Spaces:
Running
Running
Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- Dockerfile +16 -0
- README.md +12 -5
- __init__.py +0 -0
- __pycache__/__init__.cpython-310.pyc +0 -0
- __pycache__/app.cpython-310.pyc +0 -0
- app.py +115 -0
- css.css +157 -0
- requirements.txt +1 -0
- script.py +21 -0
- space.py +456 -0
- src/.gitignore +9 -0
- src/.ruff_cache/.gitignore +2 -0
- src/.ruff_cache/0.3.3/4346399827795627723 +0 -0
- src/.ruff_cache/0.3.3/6690235712601223868 +0 -0
- src/.ruff_cache/CACHEDIR.TAG +1 -0
- src/README.md +550 -0
- src/backend/gradio_logsview/__init__.py +3 -0
- src/backend/gradio_logsview/logsview.py +250 -0
- src/backend/gradio_logsview/logsview.pyi +375 -0
- src/backend/gradio_logsview/templates/component/.gitignore +1 -0
- src/backend/gradio_logsview/templates/component/Index-d65e8fec.js +0 -0
- src/backend/gradio_logsview/templates/component/dockerfile-1dc69d82.js +285 -0
- src/backend/gradio_logsview/templates/component/frontmatter-5c399b27.js +44 -0
- src/backend/gradio_logsview/templates/component/index-0383c262.js +547 -0
- src/backend/gradio_logsview/templates/component/index-15a09f21.js +76 -0
- src/backend/gradio_logsview/templates/component/index-2ee8fec2.js +1301 -0
- src/backend/gradio_logsview/templates/component/index-667e8271.js +1758 -0
- src/backend/gradio_logsview/templates/component/index-b0f813de.js +979 -0
- src/backend/gradio_logsview/templates/component/index-c6b5a0c3.js +600 -0
- src/backend/gradio_logsview/templates/component/index-cb2e00e0.js +923 -0
- src/backend/gradio_logsview/templates/component/index.js +9 -0
- src/backend/gradio_logsview/templates/component/r-1df568be.js +108 -0
- src/backend/gradio_logsview/templates/component/shell-9b920301.js +184 -0
- src/backend/gradio_logsview/templates/component/sql-ef4d3ec0.js +291 -0
- src/backend/gradio_logsview/templates/component/style.css +1 -0
- src/backend/gradio_logsview/templates/component/yaml-cef3802d.js +53 -0
- src/backend/gradio_logsview/templates/example/index.js +91 -0
- src/backend/gradio_logsview/templates/example/style.css +1 -0
- src/demo/__init__.py +0 -0
- src/demo/app.py +115 -0
- src/demo/css.css +157 -0
- src/demo/script.py +21 -0
- src/demo/space.py +456 -0
- src/frontend/Example.svelte +19 -0
- src/frontend/Index.svelte +102 -0
- src/frontend/package-lock.json +2357 -0
- src/frontend/package.json +44 -0
- src/frontend/shared/Code.svelte +258 -0
- src/frontend/shared/Copy.svelte +68 -0
- src/frontend/shared/Download.svelte +88 -0
Dockerfile
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
FROM python:3.9
|
3 |
+
|
4 |
+
WORKDIR /code
|
5 |
+
|
6 |
+
COPY --link --chown=1000 . .
|
7 |
+
|
8 |
+
RUN mkdir -p /tmp/cache/
|
9 |
+
RUN chmod a+rwx -R /tmp/cache/
|
10 |
+
ENV TRANSFORMERS_CACHE=/tmp/cache/
|
11 |
+
|
12 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
13 |
+
|
14 |
+
ENV PYTHONUNBUFFERED=1 GRADIO_ALLOW_FLAGGING=never GRADIO_NUM_PORTS=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 SYSTEM=spaces
|
15 |
+
|
16 |
+
CMD ["python", "space.py"]
|
README.md
CHANGED
@@ -1,10 +1,17 @@
|
|
|
|
1 |
---
|
2 |
-
|
3 |
-
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: docker
|
7 |
pinned: false
|
|
|
8 |
---
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
---
|
3 |
+
tags: [gradio-custom-component,gradio-template-Code,logging,subprocess,process]
|
4 |
+
title: gradio_logsview V0.0.1
|
5 |
+
colorFrom: gray
|
6 |
+
colorTo: purple
|
7 |
sdk: docker
|
8 |
pinned: false
|
9 |
+
license: apache-2.0
|
10 |
---
|
11 |
|
12 |
+
|
13 |
+
# Name: gradio_logsview
|
14 |
+
|
15 |
+
Description: Visualize logs in your Gradio app
|
16 |
+
|
17 |
+
Install with: pip install gradio_logsview
|
__init__.py
ADDED
File without changes
|
__pycache__/__init__.cpython-310.pyc
ADDED
Binary file (141 Bytes). View file
|
|
__pycache__/app.cpython-310.pyc
ADDED
Binary file (3.44 kB). View file
|
|
app.py
ADDED
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import logging
|
2 |
+
import random
|
3 |
+
import time
|
4 |
+
|
5 |
+
import gradio as gr
|
6 |
+
from gradio_logsview import LogsView
|
7 |
+
|
8 |
+
|
9 |
+
def random_values(failing: bool = False):
|
10 |
+
for i in range(10):
|
11 |
+
logging.log(
|
12 |
+
random.choice(
|
13 |
+
[ # Random levels
|
14 |
+
logging.INFO,
|
15 |
+
logging.DEBUG,
|
16 |
+
logging.WARNING,
|
17 |
+
logging.ERROR,
|
18 |
+
logging.CRITICAL,
|
19 |
+
]
|
20 |
+
),
|
21 |
+
f"Value {i+1}", # Random values
|
22 |
+
)
|
23 |
+
time.sleep(random.uniform(0, 1))
|
24 |
+
if failing and i == 5:
|
25 |
+
raise ValueError("Failing!!")
|
26 |
+
|
27 |
+
|
28 |
+
def fn_process_success():
|
29 |
+
yield from LogsView.run_process(["python", "-u", "demo/script.py"])
|
30 |
+
|
31 |
+
|
32 |
+
def fn_process_failing():
|
33 |
+
yield from LogsView.run_process(["python", "-u", "demo/script.py", "--failing"])
|
34 |
+
|
35 |
+
|
36 |
+
def fn_thread_success():
|
37 |
+
yield from LogsView.run_thread(random_values, log_level=logging.INFO, failing=False)
|
38 |
+
|
39 |
+
|
40 |
+
def fn_thread_failing():
|
41 |
+
yield from LogsView.run_thread(random_values, log_level=logging.INFO, failing=True)
|
42 |
+
|
43 |
+
|
44 |
+
markdown_top = """
|
45 |
+
# LogsView Demo
|
46 |
+
|
47 |
+
This demo shows how to use the `LogsView` component to display logs from a process or a thread in real-time.
|
48 |
+
|
49 |
+
Click on any button to launch a process or a thread and see the logs displayed in real-time.
|
50 |
+
In the thread example, logs are generated randomly with different log levels.
|
51 |
+
In the process example, logs are generated by a Python script but any command can be executed.
|
52 |
+
"""
|
53 |
+
|
54 |
+
|
55 |
+
markdown_bottom = """
|
56 |
+
## How to run in a thread?
|
57 |
+
|
58 |
+
With `LogsView.run_thread`, you can run a function in a separate thread and capture logs in real-time.
|
59 |
+
You can configure which logs to capture (log level and logger name).
|
60 |
+
|
61 |
+
```py
|
62 |
+
from gradio_logsview import LogsView
|
63 |
+
|
64 |
+
def fn_thread():
|
65 |
+
# Run `my_function` in a separate thread
|
66 |
+
# All logs above `INFO` level will be captured and displayed in real-time.
|
67 |
+
yield from LogsView.run_thread(my_function, log_level=logging.INFO, arg1="value1")
|
68 |
+
|
69 |
+
with gr.Blocks() as demo:
|
70 |
+
logs = LogsView()
|
71 |
+
btn = gr.Button("Run thread")
|
72 |
+
btn.click(fn_thread, outputs=logs)
|
73 |
+
```
|
74 |
+
|
75 |
+
## How to run in a process?
|
76 |
+
|
77 |
+
With `LogsView.run_process`, you can run a command in a separate process and capture logs from the process in real-time.
|
78 |
+
|
79 |
+
```py
|
80 |
+
from gradio_logsview import LogsView
|
81 |
+
|
82 |
+
def fn_process():
|
83 |
+
# Run a process and capture all logs from the process
|
84 |
+
yield from LogsView.run_process(
|
85 |
+
cmd=[mergekit-yaml", "config.yaml", "merge", "--copy-", "--cuda", "--low-cpu-memory"]
|
86 |
+
)
|
87 |
+
|
88 |
+
with gr.Blocks() as demo:
|
89 |
+
logs = LogsView()
|
90 |
+
btn = gr.Button("Run process")
|
91 |
+
btn.click(fn_process, outputs=logs)
|
92 |
+
```
|
93 |
+
"""
|
94 |
+
|
95 |
+
with gr.Blocks() as demo:
|
96 |
+
gr.Markdown(markdown_top)
|
97 |
+
|
98 |
+
with gr.Row():
|
99 |
+
btn_thread_success = gr.Button("Run thread (success)")
|
100 |
+
btn_thread_failing = gr.Button("Run thread (failing)")
|
101 |
+
with gr.Row():
|
102 |
+
btn_process_success = gr.Button("Run process (success)")
|
103 |
+
btn_process_failing = gr.Button("Run process (failing)")
|
104 |
+
logs = LogsView()
|
105 |
+
|
106 |
+
gr.Markdown(markdown_bottom)
|
107 |
+
|
108 |
+
btn_thread_failing.click(fn_thread_failing, outputs=logs)
|
109 |
+
btn_thread_success.click(fn_thread_success, outputs=logs)
|
110 |
+
btn_process_failing.click(fn_process_failing, outputs=logs)
|
111 |
+
btn_process_success.click(fn_process_success, outputs=logs)
|
112 |
+
|
113 |
+
|
114 |
+
if __name__ == "__main__":
|
115 |
+
demo.launch()
|
css.css
ADDED
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
html {
|
2 |
+
font-family: Inter;
|
3 |
+
font-size: 16px;
|
4 |
+
font-weight: 400;
|
5 |
+
line-height: 1.5;
|
6 |
+
-webkit-text-size-adjust: 100%;
|
7 |
+
background: #fff;
|
8 |
+
color: #323232;
|
9 |
+
-webkit-font-smoothing: antialiased;
|
10 |
+
-moz-osx-font-smoothing: grayscale;
|
11 |
+
text-rendering: optimizeLegibility;
|
12 |
+
}
|
13 |
+
|
14 |
+
:root {
|
15 |
+
--space: 1;
|
16 |
+
--vspace: calc(var(--space) * 1rem);
|
17 |
+
--vspace-0: calc(3 * var(--space) * 1rem);
|
18 |
+
--vspace-1: calc(2 * var(--space) * 1rem);
|
19 |
+
--vspace-2: calc(1.5 * var(--space) * 1rem);
|
20 |
+
--vspace-3: calc(0.5 * var(--space) * 1rem);
|
21 |
+
}
|
22 |
+
|
23 |
+
.app {
|
24 |
+
max-width: 748px !important;
|
25 |
+
}
|
26 |
+
|
27 |
+
.prose p {
|
28 |
+
margin: var(--vspace) 0;
|
29 |
+
line-height: var(--vspace * 2);
|
30 |
+
font-size: 1rem;
|
31 |
+
}
|
32 |
+
|
33 |
+
code {
|
34 |
+
font-family: "Inconsolata", sans-serif;
|
35 |
+
font-size: 16px;
|
36 |
+
}
|
37 |
+
|
38 |
+
h1,
|
39 |
+
h1 code {
|
40 |
+
font-weight: 400;
|
41 |
+
line-height: calc(2.5 / var(--space) * var(--vspace));
|
42 |
+
}
|
43 |
+
|
44 |
+
h1 code {
|
45 |
+
background: none;
|
46 |
+
border: none;
|
47 |
+
letter-spacing: 0.05em;
|
48 |
+
padding-bottom: 5px;
|
49 |
+
position: relative;
|
50 |
+
padding: 0;
|
51 |
+
}
|
52 |
+
|
53 |
+
h2 {
|
54 |
+
margin: var(--vspace-1) 0 var(--vspace-2) 0;
|
55 |
+
line-height: 1em;
|
56 |
+
}
|
57 |
+
|
58 |
+
h3,
|
59 |
+
h3 code {
|
60 |
+
margin: var(--vspace-1) 0 var(--vspace-2) 0;
|
61 |
+
line-height: 1em;
|
62 |
+
}
|
63 |
+
|
64 |
+
h4,
|
65 |
+
h5,
|
66 |
+
h6 {
|
67 |
+
margin: var(--vspace-3) 0 var(--vspace-3) 0;
|
68 |
+
line-height: var(--vspace);
|
69 |
+
}
|
70 |
+
|
71 |
+
.bigtitle,
|
72 |
+
h1,
|
73 |
+
h1 code {
|
74 |
+
font-size: calc(8px * 4.5);
|
75 |
+
word-break: break-word;
|
76 |
+
}
|
77 |
+
|
78 |
+
.title,
|
79 |
+
h2,
|
80 |
+
h2 code {
|
81 |
+
font-size: calc(8px * 3.375);
|
82 |
+
font-weight: lighter;
|
83 |
+
word-break: break-word;
|
84 |
+
border: none;
|
85 |
+
background: none;
|
86 |
+
}
|
87 |
+
|
88 |
+
.subheading1,
|
89 |
+
h3,
|
90 |
+
h3 code {
|
91 |
+
font-size: calc(8px * 1.8);
|
92 |
+
font-weight: 600;
|
93 |
+
border: none;
|
94 |
+
background: none;
|
95 |
+
letter-spacing: 0.1em;
|
96 |
+
text-transform: uppercase;
|
97 |
+
}
|
98 |
+
|
99 |
+
h2 code {
|
100 |
+
padding: 0;
|
101 |
+
position: relative;
|
102 |
+
letter-spacing: 0.05em;
|
103 |
+
}
|
104 |
+
|
105 |
+
blockquote {
|
106 |
+
font-size: calc(8px * 1.1667);
|
107 |
+
font-style: italic;
|
108 |
+
line-height: calc(1.1667 * var(--vspace));
|
109 |
+
margin: var(--vspace-2) var(--vspace-2);
|
110 |
+
}
|
111 |
+
|
112 |
+
.subheading2,
|
113 |
+
h4 {
|
114 |
+
font-size: calc(8px * 1.4292);
|
115 |
+
text-transform: uppercase;
|
116 |
+
font-weight: 600;
|
117 |
+
}
|
118 |
+
|
119 |
+
.subheading3,
|
120 |
+
h5 {
|
121 |
+
font-size: calc(8px * 1.2917);
|
122 |
+
line-height: calc(1.2917 * var(--vspace));
|
123 |
+
|
124 |
+
font-weight: lighter;
|
125 |
+
text-transform: uppercase;
|
126 |
+
letter-spacing: 0.15em;
|
127 |
+
}
|
128 |
+
|
129 |
+
h6 {
|
130 |
+
font-size: calc(8px * 1.1667);
|
131 |
+
font-size: 1.1667em;
|
132 |
+
font-weight: normal;
|
133 |
+
font-style: italic;
|
134 |
+
font-family: "le-monde-livre-classic-byol", serif !important;
|
135 |
+
letter-spacing: 0px !important;
|
136 |
+
}
|
137 |
+
|
138 |
+
#start .md > *:first-child {
|
139 |
+
margin-top: 0;
|
140 |
+
}
|
141 |
+
|
142 |
+
h2 + h3 {
|
143 |
+
margin-top: 0;
|
144 |
+
}
|
145 |
+
|
146 |
+
.md hr {
|
147 |
+
border: none;
|
148 |
+
border-top: 1px solid var(--block-border-color);
|
149 |
+
margin: var(--vspace-2) 0 var(--vspace-2) 0;
|
150 |
+
}
|
151 |
+
.prose ul {
|
152 |
+
margin: var(--vspace-2) 0 var(--vspace-1) 0;
|
153 |
+
}
|
154 |
+
|
155 |
+
.gap {
|
156 |
+
gap: 0;
|
157 |
+
}
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
gradio_logsview-0.0.1-py3-none-any.whl
|
script.py
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import argparse
|
2 |
+
import random
|
3 |
+
import time
|
4 |
+
|
5 |
+
|
6 |
+
def random_values(failing: bool = False):
|
7 |
+
for i in range(10):
|
8 |
+
print(f"Value {i+1}")
|
9 |
+
time.sleep(random.uniform(0, 1))
|
10 |
+
if failing and i == 5:
|
11 |
+
raise ValueError("Failing!!")
|
12 |
+
|
13 |
+
|
14 |
+
def main():
|
15 |
+
parser = argparse.ArgumentParser()
|
16 |
+
parser.add_argument("--failing", action="store_true")
|
17 |
+
args = parser.parse_args()
|
18 |
+
random_values(args.failing)
|
19 |
+
|
20 |
+
|
21 |
+
main()
|
space.py
ADDED
@@ -0,0 +1,456 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
import gradio as gr
|
3 |
+
from app import demo as app
|
4 |
+
import os
|
5 |
+
|
6 |
+
_docs = {'LogsView': {'description': 'Creates a component to visualize logs from a subprocess in real-time.', 'members': {'__init__': {'value': {'type': 'str | Callable | tuple[str] | None', 'default': 'None', 'description': 'Default value to show in the code editor. If callable, the function will be called whenever the app loads to set the initial value of the component.'}, 'every': {'type': 'float | None', 'default': 'None', 'description': "If `value` is a callable, run the function 'every' number of seconds while the client connection is open. Has no effect otherwise. The event can be accessed (e.g. to cancel it) via this component's .load_event attribute."}, 'lines': {'type': 'int', 'default': '5', 'description': None}, 'label': {'type': 'str | None', 'default': 'None', 'description': 'The label for this component. Appears above the component and is also used as the header if there are a table of examples for this component. If None and used in a `gr.Interface`, the label will be the name of the parameter this component is assigned to.'}, 'show_label': {'type': 'bool | None', 'default': 'None', 'description': 'if True, will display label.'}, 'container': {'type': 'bool', 'default': 'True', 'description': 'If True, will place the component in a container - providing some extra padding around the border.'}, 'scale': {'type': 'int | None', 'default': 'None', 'description': 'relative size compared to adjacent Components. For example if Components A and B are in a Row, and A has scale=2, and B has scale=1, A will be twice as wide as B. Should be an integer. scale applies in Rows, and to top-level Components in Blocks where fill_height=True.'}, 'min_width': {'type': 'int', 'default': '160', 'description': 'minimum pixel width, will wrap if not sufficient screen space to satisfy this value. If a certain scale value results in this Component being narrower than min_width, the min_width parameter will be respected first.'}, 'visible': {'type': 'bool', 'default': 'True', 'description': 'If False, component will be hidden.'}, 'elem_id': {'type': 'str | None', 'default': 'None', 'description': 'An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.'}, 'elem_classes': {'type': 'list[str] | str | None', 'default': 'None', 'description': 'An optional list of strings that are assigned as the classes of this component in the HTML DOM. Can be used for targeting CSS styles.'}, 'render': {'type': 'bool', 'default': 'True', 'description': 'If False, component will not render be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later.'}}, 'postprocess': {'value': {'type': 'list[Log]', 'description': 'Expects a list of `Log` logs.'}}, 'preprocess': {'return': {'type': 'LogsView', 'description': 'Passes the code entered as a `str`.'}, 'value': None}}, 'events': {'change': {'type': None, 'default': None, 'description': 'Triggered when the value of the LogsView changes either because of user input (e.g. a user types in a textbox) OR because of a function update (e.g. an image receives a value from the output of an event trigger). See `.input()` for a listener that is only triggered by user input.'}, 'input': {'type': None, 'default': None, 'description': 'This listener is triggered when the user changes the value of the LogsView.'}, 'focus': {'type': None, 'default': None, 'description': 'This listener is triggered when the LogsView is focused.'}, 'blur': {'type': None, 'default': None, 'description': 'This listener is triggered when the LogsView is unfocused/blurred.'}}}, '__meta__': {'additional_interfaces': {'Log': {'source': '@dataclass\nclass Log:\n level: Literal[\n "INFO", "DEBUG", "WARNING", "ERROR", "CRITICAL"\n ]\n message: str\n timestamp: str'}, 'LogsView': {'source': 'class LogsView(Component):\n EVENTS = [\n Events.change,\n Events.input,\n Events.focus,\n Events.blur,\n ]\n\n def __init__(\n self,\n value: str | Callable | tuple[str] | None = None,\n *,\n every: float | None = None,\n lines: int = 5,\n label: str | None = None,\n show_label: bool | None = None,\n container: bool = True,\n scale: int | None = None,\n min_width: int = 160,\n visible: bool = True,\n elem_id: str | None = None,\n elem_classes: list[str] | str | None = None,\n render: bool = True,\n ):\n self.language = "shell"\n self.lines = lines\n self.interactive = False\n super().__init__(\n label=label,\n every=every,\n show_label=show_label,\n container=container,\n scale=scale,\n min_width=min_width,\n visible=visible,\n elem_id=elem_id,\n elem_classes=elem_classes,\n render=render,\n value=value,\n )\n\n def preprocess(self, payload: str | None) -> "LogsView":\n raise NotImplementedError(\n "LogsView cannot be used as an input component."\n )\n\n def postprocess(self, value: List[Log]) -> List[Log]:\n return value\n\n def api_info(self) -> dict[str, Any]:\n return {\n "items": {\n "level": "string",\n "message": "string",\n "timestamp": "number",\n },\n "title": "Logs",\n "type": "array",\n }\n\n def example_payload(self) -> Any:\n return [\n Log(\n "INFO",\n "Hello World",\n datetime.now().isoformat(),\n )\n ]\n\n def example_value(self) -> Any:\n return [\n Log(\n "INFO",\n "Hello World",\n datetime.now().isoformat(),\n )\n ]\n\n @classmethod\n def run_process(\n cls,\n command: List[str],\n date_format: str = "%Y-%m-%d %H:%M:%S",\n ) -> Generator[List[Log], None, None]:\n process = subprocess.Popen(\n command,\n stdout=subprocess.PIPE,\n stderr=subprocess.STDOUT,\n text=True,\n )\n\n if process.stdout is None:\n raise ValueError("stdout is None")\n\n logs = []\n\n def _log(level: str, message: str):\n log = Log(\n level=level,\n message=message,\n timestamp=datetime.now().strftime(\n date_format\n ),\n )\n logs.append(log)\n return logs\n\n _log("INFO", f"Running {\' \'.join(command)}")\n for line in process.stdout:\n yield _log("INFO", line.strip())\n\n # TODO: what if task is cancelled but process is still running?\n\n process.stdout.close()\n return_code = process.wait()\n if return_code:\n yield _log(\n "ERROR",\n f"Process exited with code {return_code}",\n )\n else:\n yield _log(\n "INFO", "Process exited successfully"\n )\n\n @classmethod\n def run_thread(\n cls,\n fn: Callable,\n log_level: int = logging.INFO,\n logger_name: str | None = None,\n date_format: str = "%Y-%m-%d %H:%M:%S",\n **kwargs,\n ) -> Generator[List[Log], None, None]:\n logs = [\n Log(\n level="INFO",\n message=f"Running {fn.__name__}({\', \'.join(f\'{k}={v}\' for k, v in kwargs.items())})",\n timestamp=datetime.now().strftime(\n date_format\n ),\n )\n ]\n yield logs\n\n thread = Thread(\n target=non_failing_fn(fn), kwargs=kwargs\n )\n\n def _log(record: logging.LogRecord) -> bool:\n if record.thread != thread.ident:\n return False # Skip if not from the thread\n if logger_name and not record.name.startswith(\n logger_name\n ):\n return False # Skip if not from the logger\n if record.levelno < log_level:\n return False # Skip if too verbose\n log = Log(\n level=record.levelname,\n message=record.getMessage(),\n timestamp=datetime.fromtimestamp(\n record.created\n ).strftime(date_format),\n )\n logs.append(log)\n return True\n\n with capture_logging(log_level) as log_queue:\n thread.start()\n\n # Loop to capture and yield logs from the thread\n while thread.is_alive():\n while True:\n try:\n if _log(log_queue.get_nowait()):\n yield logs\n except queue.Empty:\n break\n thread.join(\n timeout=0.1\n ) # adjust the timeout as needed\n\n # After the thread completes, yield any remaining logs\n while True:\n try:\n if _log(log_queue.get_nowait()):\n yield logs\n except queue.Empty:\n break\n\n logs.append(\n Log(\n level="INFO",\n message="Thread completed successfully",\n timestamp=datetime.now().strftime(\n date_format\n ),\n )\n )'}}, 'user_fn_refs': {'LogsView': ['Log', 'LogsView']}}}
|
7 |
+
|
8 |
+
abs_path = os.path.join(os.path.dirname(__file__), "css.css")
|
9 |
+
|
10 |
+
with gr.Blocks(
|
11 |
+
css=abs_path,
|
12 |
+
theme=gr.themes.Default(
|
13 |
+
font_mono=[
|
14 |
+
gr.themes.GoogleFont("Inconsolata"),
|
15 |
+
"monospace",
|
16 |
+
],
|
17 |
+
),
|
18 |
+
) as demo:
|
19 |
+
gr.Markdown(
|
20 |
+
"""
|
21 |
+
# `gradio_logsview`
|
22 |
+
|
23 |
+
<div style="display: flex; gap: 7px;">
|
24 |
+
<img alt="Static Badge" src="https://img.shields.io/badge/version%20-%200.0.1%20-%20orange">
|
25 |
+
</div>
|
26 |
+
|
27 |
+
Visualize logs in your Gradio app
|
28 |
+
""", elem_classes=["md-custom"], header_links=True)
|
29 |
+
app.render()
|
30 |
+
gr.Markdown(
|
31 |
+
"""
|
32 |
+
## Installation
|
33 |
+
|
34 |
+
```bash
|
35 |
+
pip install gradio_logsview
|
36 |
+
```
|
37 |
+
|
38 |
+
## Usage
|
39 |
+
|
40 |
+
```python
|
41 |
+
import logging
|
42 |
+
import random
|
43 |
+
import time
|
44 |
+
|
45 |
+
import gradio as gr
|
46 |
+
from gradio_logsview import LogsView
|
47 |
+
|
48 |
+
|
49 |
+
def random_values(failing: bool = False):
|
50 |
+
for i in range(10):
|
51 |
+
logging.log(
|
52 |
+
random.choice(
|
53 |
+
[ # Random levels
|
54 |
+
logging.INFO,
|
55 |
+
logging.DEBUG,
|
56 |
+
logging.WARNING,
|
57 |
+
logging.ERROR,
|
58 |
+
logging.CRITICAL,
|
59 |
+
]
|
60 |
+
),
|
61 |
+
f"Value {i+1}", # Random values
|
62 |
+
)
|
63 |
+
time.sleep(random.uniform(0, 1))
|
64 |
+
if failing and i == 5:
|
65 |
+
raise ValueError("Failing!!")
|
66 |
+
|
67 |
+
|
68 |
+
def fn_process_success():
|
69 |
+
yield from LogsView.run_process(["python", "-u", "demo/script.py"])
|
70 |
+
|
71 |
+
|
72 |
+
def fn_process_failing():
|
73 |
+
yield from LogsView.run_process(["python", "-u", "demo/script.py", "--failing"])
|
74 |
+
|
75 |
+
|
76 |
+
def fn_thread_success():
|
77 |
+
yield from LogsView.run_thread(random_values, log_level=logging.INFO, failing=False)
|
78 |
+
|
79 |
+
|
80 |
+
def fn_thread_failing():
|
81 |
+
yield from LogsView.run_thread(random_values, log_level=logging.INFO, failing=True)
|
82 |
+
|
83 |
+
|
84 |
+
markdown_top = \"\"\"
|
85 |
+
# LogsView Demo
|
86 |
+
|
87 |
+
This demo shows how to use the `LogsView` component to display logs from a process or a thread in real-time.
|
88 |
+
|
89 |
+
Click on any button to launch a process or a thread and see the logs displayed in real-time.
|
90 |
+
In the thread example, logs are generated randomly with different log levels.
|
91 |
+
In the process example, logs are generated by a Python script but any command can be executed.
|
92 |
+
\"\"\"
|
93 |
+
|
94 |
+
|
95 |
+
markdown_bottom = \"\"\"
|
96 |
+
## How to run in a thread?
|
97 |
+
|
98 |
+
With `LogsView.run_thread`, you can run a function in a separate thread and capture logs in real-time.
|
99 |
+
You can configure which logs to capture (log level and logger name).
|
100 |
+
|
101 |
+
```py
|
102 |
+
from gradio_logsview import LogsView
|
103 |
+
|
104 |
+
def fn_thread():
|
105 |
+
# Run `my_function` in a separate thread
|
106 |
+
# All logs above `INFO` level will be captured and displayed in real-time.
|
107 |
+
yield from LogsView.run_thread(my_function, log_level=logging.INFO, arg1="value1")
|
108 |
+
|
109 |
+
with gr.Blocks() as demo:
|
110 |
+
logs = LogsView()
|
111 |
+
btn = gr.Button("Run thread")
|
112 |
+
btn.click(fn_thread, outputs=logs)
|
113 |
+
```
|
114 |
+
|
115 |
+
## How to run in a process?
|
116 |
+
|
117 |
+
With `LogsView.run_process`, you can run a command in a separate process and capture logs from the process in real-time.
|
118 |
+
|
119 |
+
```py
|
120 |
+
from gradio_logsview import LogsView
|
121 |
+
|
122 |
+
def fn_process():
|
123 |
+
# Run a process and capture all logs from the process
|
124 |
+
yield from LogsView.run_process(
|
125 |
+
cmd=[mergekit-yaml", "config.yaml", "merge", "--copy-", "--cuda", "--low-cpu-memory"]
|
126 |
+
)
|
127 |
+
|
128 |
+
with gr.Blocks() as demo:
|
129 |
+
logs = LogsView()
|
130 |
+
btn = gr.Button("Run process")
|
131 |
+
btn.click(fn_process, outputs=logs)
|
132 |
+
```
|
133 |
+
\"\"\"
|
134 |
+
|
135 |
+
with gr.Blocks() as demo:
|
136 |
+
gr.Markdown(markdown_top)
|
137 |
+
|
138 |
+
with gr.Row():
|
139 |
+
btn_thread_success = gr.Button("Run thread (success)")
|
140 |
+
btn_thread_failing = gr.Button("Run thread (failing)")
|
141 |
+
with gr.Row():
|
142 |
+
btn_process_success = gr.Button("Run process (success)")
|
143 |
+
btn_process_failing = gr.Button("Run process (failing)")
|
144 |
+
logs = LogsView()
|
145 |
+
|
146 |
+
gr.Markdown(markdown_bottom)
|
147 |
+
|
148 |
+
btn_thread_failing.click(fn_thread_failing, outputs=logs)
|
149 |
+
btn_thread_success.click(fn_thread_success, outputs=logs)
|
150 |
+
btn_process_failing.click(fn_process_failing, outputs=logs)
|
151 |
+
btn_process_success.click(fn_process_success, outputs=logs)
|
152 |
+
|
153 |
+
|
154 |
+
if __name__ == "__main__":
|
155 |
+
demo.launch()
|
156 |
+
|
157 |
+
```
|
158 |
+
""", elem_classes=["md-custom"], header_links=True)
|
159 |
+
|
160 |
+
|
161 |
+
gr.Markdown("""
|
162 |
+
## `LogsView`
|
163 |
+
|
164 |
+
### Initialization
|
165 |
+
""", elem_classes=["md-custom"], header_links=True)
|
166 |
+
|
167 |
+
gr.ParamViewer(value=_docs["LogsView"]["members"]["__init__"], linkify=['Log', 'LogsView'])
|
168 |
+
|
169 |
+
|
170 |
+
gr.Markdown("### Events")
|
171 |
+
gr.ParamViewer(value=_docs["LogsView"]["events"], linkify=['Event'])
|
172 |
+
|
173 |
+
|
174 |
+
|
175 |
+
|
176 |
+
gr.Markdown("""
|
177 |
+
|
178 |
+
### User function
|
179 |
+
|
180 |
+
The impact on the users predict function varies depending on whether the component is used as an input or output for an event (or both).
|
181 |
+
|
182 |
+
- When used as an Input, the component only impacts the input signature of the user function.
|
183 |
+
- When used as an output, the component only impacts the return signature of the user function.
|
184 |
+
|
185 |
+
The code snippet below is accurate in cases where the component is used as both an input and an output.
|
186 |
+
|
187 |
+
- **As input:** Is passed, passes the code entered as a `str`.
|
188 |
+
- **As output:** Should return, expects a list of `Log` logs.
|
189 |
+
|
190 |
+
```python
|
191 |
+
def predict(
|
192 |
+
value: LogsView
|
193 |
+
) -> list[Log]:
|
194 |
+
return value
|
195 |
+
```
|
196 |
+
""", elem_classes=["md-custom", "LogsView-user-fn"], header_links=True)
|
197 |
+
|
198 |
+
|
199 |
+
|
200 |
+
|
201 |
+
code_Log = gr.Markdown("""
|
202 |
+
## `Log`
|
203 |
+
```python
|
204 |
+
@dataclass
|
205 |
+
class Log:
|
206 |
+
level: Literal[
|
207 |
+
"INFO", "DEBUG", "WARNING", "ERROR", "CRITICAL"
|
208 |
+
]
|
209 |
+
message: str
|
210 |
+
timestamp: str
|
211 |
+
```""", elem_classes=["md-custom", "Log"], header_links=True)
|
212 |
+
|
213 |
+
code_LogsView = gr.Markdown("""
|
214 |
+
## `LogsView`
|
215 |
+
```python
|
216 |
+
class LogsView(Component):
|
217 |
+
EVENTS = [
|
218 |
+
Events.change,
|
219 |
+
Events.input,
|
220 |
+
Events.focus,
|
221 |
+
Events.blur,
|
222 |
+
]
|
223 |
+
|
224 |
+
def __init__(
|
225 |
+
self,
|
226 |
+
value: str | Callable | tuple[str] | None = None,
|
227 |
+
*,
|
228 |
+
every: float | None = None,
|
229 |
+
lines: int = 5,
|
230 |
+
label: str | None = None,
|
231 |
+
show_label: bool | None = None,
|
232 |
+
container: bool = True,
|
233 |
+
scale: int | None = None,
|
234 |
+
min_width: int = 160,
|
235 |
+
visible: bool = True,
|
236 |
+
elem_id: str | None = None,
|
237 |
+
elem_classes: list[str] | str | None = None,
|
238 |
+
render: bool = True,
|
239 |
+
):
|
240 |
+
self.language = "shell"
|
241 |
+
self.lines = lines
|
242 |
+
self.interactive = False
|
243 |
+
super().__init__(
|
244 |
+
label=label,
|
245 |
+
every=every,
|
246 |
+
show_label=show_label,
|
247 |
+
container=container,
|
248 |
+
scale=scale,
|
249 |
+
min_width=min_width,
|
250 |
+
visible=visible,
|
251 |
+
elem_id=elem_id,
|
252 |
+
elem_classes=elem_classes,
|
253 |
+
render=render,
|
254 |
+
value=value,
|
255 |
+
)
|
256 |
+
|
257 |
+
def preprocess(self, payload: str | None) -> "LogsView":
|
258 |
+
raise NotImplementedError(
|
259 |
+
"LogsView cannot be used as an input component."
|
260 |
+
)
|
261 |
+
|
262 |
+
def postprocess(self, value: List[Log]) -> List[Log]:
|
263 |
+
return value
|
264 |
+
|
265 |
+
def api_info(self) -> dict[str, Any]:
|
266 |
+
return {
|
267 |
+
"items": {
|
268 |
+
"level": "string",
|
269 |
+
"message": "string",
|
270 |
+
"timestamp": "number",
|
271 |
+
},
|
272 |
+
"title": "Logs",
|
273 |
+
"type": "array",
|
274 |
+
}
|
275 |
+
|
276 |
+
def example_payload(self) -> Any:
|
277 |
+
return [
|
278 |
+
Log(
|
279 |
+
"INFO",
|
280 |
+
"Hello World",
|
281 |
+
datetime.now().isoformat(),
|
282 |
+
)
|
283 |
+
]
|
284 |
+
|
285 |
+
def example_value(self) -> Any:
|
286 |
+
return [
|
287 |
+
Log(
|
288 |
+
"INFO",
|
289 |
+
"Hello World",
|
290 |
+
datetime.now().isoformat(),
|
291 |
+
)
|
292 |
+
]
|
293 |
+
|
294 |
+
@classmethod
|
295 |
+
def run_process(
|
296 |
+
cls,
|
297 |
+
command: List[str],
|
298 |
+
date_format: str = "%Y-%m-%d %H:%M:%S",
|
299 |
+
) -> Generator[List[Log], None, None]:
|
300 |
+
process = subprocess.Popen(
|
301 |
+
command,
|
302 |
+
stdout=subprocess.PIPE,
|
303 |
+
stderr=subprocess.STDOUT,
|
304 |
+
text=True,
|
305 |
+
)
|
306 |
+
|
307 |
+
if process.stdout is None:
|
308 |
+
raise ValueError("stdout is None")
|
309 |
+
|
310 |
+
logs = []
|
311 |
+
|
312 |
+
def _log(level: str, message: str):
|
313 |
+
log = Log(
|
314 |
+
level=level,
|
315 |
+
message=message,
|
316 |
+
timestamp=datetime.now().strftime(
|
317 |
+
date_format
|
318 |
+
),
|
319 |
+
)
|
320 |
+
logs.append(log)
|
321 |
+
return logs
|
322 |
+
|
323 |
+
_log("INFO", f"Running {' '.join(command)}")
|
324 |
+
for line in process.stdout:
|
325 |
+
yield _log("INFO", line.strip())
|
326 |
+
|
327 |
+
# TODO: what if task is cancelled but process is still running?
|
328 |
+
|
329 |
+
process.stdout.close()
|
330 |
+
return_code = process.wait()
|
331 |
+
if return_code:
|
332 |
+
yield _log(
|
333 |
+
"ERROR",
|
334 |
+
f"Process exited with code {return_code}",
|
335 |
+
)
|
336 |
+
else:
|
337 |
+
yield _log(
|
338 |
+
"INFO", "Process exited successfully"
|
339 |
+
)
|
340 |
+
|
341 |
+
@classmethod
|
342 |
+
def run_thread(
|
343 |
+
cls,
|
344 |
+
fn: Callable,
|
345 |
+
log_level: int = logging.INFO,
|
346 |
+
logger_name: str | None = None,
|
347 |
+
date_format: str = "%Y-%m-%d %H:%M:%S",
|
348 |
+
**kwargs,
|
349 |
+
) -> Generator[List[Log], None, None]:
|
350 |
+
logs = [
|
351 |
+
Log(
|
352 |
+
level="INFO",
|
353 |
+
message=f"Running {fn.__name__}({', '.join(f'{k}={v}' for k, v in kwargs.items())})",
|
354 |
+
timestamp=datetime.now().strftime(
|
355 |
+
date_format
|
356 |
+
),
|
357 |
+
)
|
358 |
+
]
|
359 |
+
yield logs
|
360 |
+
|
361 |
+
thread = Thread(
|
362 |
+
target=non_failing_fn(fn), kwargs=kwargs
|
363 |
+
)
|
364 |
+
|
365 |
+
def _log(record: logging.LogRecord) -> bool:
|
366 |
+
if record.thread != thread.ident:
|
367 |
+
return False # Skip if not from the thread
|
368 |
+
if logger_name and not record.name.startswith(
|
369 |
+
logger_name
|
370 |
+
):
|
371 |
+
return False # Skip if not from the logger
|
372 |
+
if record.levelno < log_level:
|
373 |
+
return False # Skip if too verbose
|
374 |
+
log = Log(
|
375 |
+
level=record.levelname,
|
376 |
+
message=record.getMessage(),
|
377 |
+
timestamp=datetime.fromtimestamp(
|
378 |
+
record.created
|
379 |
+
).strftime(date_format),
|
380 |
+
)
|
381 |
+
logs.append(log)
|
382 |
+
return True
|
383 |
+
|
384 |
+
with capture_logging(log_level) as log_queue:
|
385 |
+
thread.start()
|
386 |
+
|
387 |
+
# Loop to capture and yield logs from the thread
|
388 |
+
while thread.is_alive():
|
389 |
+
while True:
|
390 |
+
try:
|
391 |
+
if _log(log_queue.get_nowait()):
|
392 |
+
yield logs
|
393 |
+
except queue.Empty:
|
394 |
+
break
|
395 |
+
thread.join(
|
396 |
+
timeout=0.1
|
397 |
+
) # adjust the timeout as needed
|
398 |
+
|
399 |
+
# After the thread completes, yield any remaining logs
|
400 |
+
while True:
|
401 |
+
try:
|
402 |
+
if _log(log_queue.get_nowait()):
|
403 |
+
yield logs
|
404 |
+
except queue.Empty:
|
405 |
+
break
|
406 |
+
|
407 |
+
logs.append(
|
408 |
+
Log(
|
409 |
+
level="INFO",
|
410 |
+
message="Thread completed successfully",
|
411 |
+
timestamp=datetime.now().strftime(
|
412 |
+
date_format
|
413 |
+
),
|
414 |
+
)
|
415 |
+
)
|
416 |
+
```""", elem_classes=["md-custom", "LogsView"], header_links=True)
|
417 |
+
|
418 |
+
demo.load(None, js=r"""function() {
|
419 |
+
const refs = {
|
420 |
+
Log: [],
|
421 |
+
LogsView: [], };
|
422 |
+
const user_fn_refs = {
|
423 |
+
LogsView: ['Log', 'LogsView'], };
|
424 |
+
requestAnimationFrame(() => {
|
425 |
+
|
426 |
+
Object.entries(user_fn_refs).forEach(([key, refs]) => {
|
427 |
+
if (refs.length > 0) {
|
428 |
+
const el = document.querySelector(`.${key}-user-fn`);
|
429 |
+
if (!el) return;
|
430 |
+
refs.forEach(ref => {
|
431 |
+
el.innerHTML = el.innerHTML.replace(
|
432 |
+
new RegExp("\\b"+ref+"\\b", "g"),
|
433 |
+
`<a href="#h-${ref.toLowerCase()}">${ref}</a>`
|
434 |
+
);
|
435 |
+
})
|
436 |
+
}
|
437 |
+
})
|
438 |
+
|
439 |
+
Object.entries(refs).forEach(([key, refs]) => {
|
440 |
+
if (refs.length > 0) {
|
441 |
+
const el = document.querySelector(`.${key}`);
|
442 |
+
if (!el) return;
|
443 |
+
refs.forEach(ref => {
|
444 |
+
el.innerHTML = el.innerHTML.replace(
|
445 |
+
new RegExp("\\b"+ref+"\\b", "g"),
|
446 |
+
`<a href="#h-${ref.toLowerCase()}">${ref}</a>`
|
447 |
+
);
|
448 |
+
})
|
449 |
+
}
|
450 |
+
})
|
451 |
+
})
|
452 |
+
}
|
453 |
+
|
454 |
+
""")
|
455 |
+
|
456 |
+
demo.launch()
|
src/.gitignore
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.eggs/
|
2 |
+
dist/
|
3 |
+
*.pyc
|
4 |
+
__pycache__/
|
5 |
+
*.py[cod]
|
6 |
+
*$py.class
|
7 |
+
__tmp/*
|
8 |
+
*.pyi
|
9 |
+
node_modules
|
src/.ruff_cache/.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
# Automatically created by ruff.
|
2 |
+
*
|
src/.ruff_cache/0.3.3/4346399827795627723
ADDED
Binary file (145 Bytes). View file
|
|
src/.ruff_cache/0.3.3/6690235712601223868
ADDED
Binary file (156 Bytes). View file
|
|
src/.ruff_cache/CACHEDIR.TAG
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Signature: 8a477f597d28d172789f06886806bc55
|
src/README.md
ADDED
@@ -0,0 +1,550 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# `gradio_logsview`
|
3 |
+
<img alt="Static Badge" src="https://img.shields.io/badge/version%20-%200.0.1%20-%20orange">
|
4 |
+
|
5 |
+
Visualize logs in your Gradio app
|
6 |
+
|
7 |
+
## Installation
|
8 |
+
|
9 |
+
```bash
|
10 |
+
pip install gradio_logsview
|
11 |
+
```
|
12 |
+
|
13 |
+
## Usage
|
14 |
+
|
15 |
+
```python
|
16 |
+
import logging
|
17 |
+
import random
|
18 |
+
import time
|
19 |
+
|
20 |
+
import gradio as gr
|
21 |
+
from gradio_logsview import LogsView
|
22 |
+
|
23 |
+
|
24 |
+
def random_values(failing: bool = False):
|
25 |
+
for i in range(10):
|
26 |
+
logging.log(
|
27 |
+
random.choice(
|
28 |
+
[ # Random levels
|
29 |
+
logging.INFO,
|
30 |
+
logging.DEBUG,
|
31 |
+
logging.WARNING,
|
32 |
+
logging.ERROR,
|
33 |
+
logging.CRITICAL,
|
34 |
+
]
|
35 |
+
),
|
36 |
+
f"Value {i+1}", # Random values
|
37 |
+
)
|
38 |
+
time.sleep(random.uniform(0, 1))
|
39 |
+
if failing and i == 5:
|
40 |
+
raise ValueError("Failing!!")
|
41 |
+
|
42 |
+
|
43 |
+
def fn_process_success():
|
44 |
+
yield from LogsView.run_process(["python", "-u", "demo/script.py"])
|
45 |
+
|
46 |
+
|
47 |
+
def fn_process_failing():
|
48 |
+
yield from LogsView.run_process(["python", "-u", "demo/script.py", "--failing"])
|
49 |
+
|
50 |
+
|
51 |
+
def fn_thread_success():
|
52 |
+
yield from LogsView.run_thread(random_values, log_level=logging.INFO, failing=False)
|
53 |
+
|
54 |
+
|
55 |
+
def fn_thread_failing():
|
56 |
+
yield from LogsView.run_thread(random_values, log_level=logging.INFO, failing=True)
|
57 |
+
|
58 |
+
|
59 |
+
markdown_top = """
|
60 |
+
# LogsView Demo
|
61 |
+
|
62 |
+
This demo shows how to use the `LogsView` component to display logs from a process or a thread in real-time.
|
63 |
+
|
64 |
+
Click on any button to launch a process or a thread and see the logs displayed in real-time.
|
65 |
+
In the thread example, logs are generated randomly with different log levels.
|
66 |
+
In the process example, logs are generated by a Python script but any command can be executed.
|
67 |
+
"""
|
68 |
+
|
69 |
+
|
70 |
+
markdown_bottom = """
|
71 |
+
## How to run in a thread?
|
72 |
+
|
73 |
+
With `LogsView.run_thread`, you can run a function in a separate thread and capture logs in real-time.
|
74 |
+
You can configure which logs to capture (log level and logger name).
|
75 |
+
|
76 |
+
```py
|
77 |
+
from gradio_logsview import LogsView
|
78 |
+
|
79 |
+
def fn_thread():
|
80 |
+
# Run `my_function` in a separate thread
|
81 |
+
# All logs above `INFO` level will be captured and displayed in real-time.
|
82 |
+
yield from LogsView.run_thread(my_function, log_level=logging.INFO, arg1="value1")
|
83 |
+
|
84 |
+
with gr.Blocks() as demo:
|
85 |
+
logs = LogsView()
|
86 |
+
btn = gr.Button("Run thread")
|
87 |
+
btn.click(fn_thread, outputs=logs)
|
88 |
+
```
|
89 |
+
|
90 |
+
## How to run in a process?
|
91 |
+
|
92 |
+
With `LogsView.run_process`, you can run a command in a separate process and capture logs from the process in real-time.
|
93 |
+
|
94 |
+
```py
|
95 |
+
from gradio_logsview import LogsView
|
96 |
+
|
97 |
+
def fn_process():
|
98 |
+
# Run a process and capture all logs from the process
|
99 |
+
yield from LogsView.run_process(
|
100 |
+
cmd=[mergekit-yaml", "config.yaml", "merge", "--copy-", "--cuda", "--low-cpu-memory"]
|
101 |
+
)
|
102 |
+
|
103 |
+
with gr.Blocks() as demo:
|
104 |
+
logs = LogsView()
|
105 |
+
btn = gr.Button("Run process")
|
106 |
+
btn.click(fn_process, outputs=logs)
|
107 |
+
```
|
108 |
+
"""
|
109 |
+
|
110 |
+
with gr.Blocks() as demo:
|
111 |
+
gr.Markdown(markdown_top)
|
112 |
+
|
113 |
+
with gr.Row():
|
114 |
+
btn_thread_success = gr.Button("Run thread (success)")
|
115 |
+
btn_thread_failing = gr.Button("Run thread (failing)")
|
116 |
+
with gr.Row():
|
117 |
+
btn_process_success = gr.Button("Run process (success)")
|
118 |
+
btn_process_failing = gr.Button("Run process (failing)")
|
119 |
+
logs = LogsView()
|
120 |
+
|
121 |
+
gr.Markdown(markdown_bottom)
|
122 |
+
|
123 |
+
btn_thread_failing.click(fn_thread_failing, outputs=logs)
|
124 |
+
btn_thread_success.click(fn_thread_success, outputs=logs)
|
125 |
+
btn_process_failing.click(fn_process_failing, outputs=logs)
|
126 |
+
btn_process_success.click(fn_process_success, outputs=logs)
|
127 |
+
|
128 |
+
|
129 |
+
if __name__ == "__main__":
|
130 |
+
demo.launch()
|
131 |
+
|
132 |
+
```
|
133 |
+
|
134 |
+
## `LogsView`
|
135 |
+
|
136 |
+
### Initialization
|
137 |
+
|
138 |
+
<table>
|
139 |
+
<thead>
|
140 |
+
<tr>
|
141 |
+
<th align="left">name</th>
|
142 |
+
<th align="left" style="width: 25%;">type</th>
|
143 |
+
<th align="left">default</th>
|
144 |
+
<th align="left">description</th>
|
145 |
+
</tr>
|
146 |
+
</thead>
|
147 |
+
<tbody>
|
148 |
+
<tr>
|
149 |
+
<td align="left"><code>value</code></td>
|
150 |
+
<td align="left" style="width: 25%;">
|
151 |
+
|
152 |
+
```python
|
153 |
+
str | Callable | tuple[str] | None
|
154 |
+
```
|
155 |
+
|
156 |
+
</td>
|
157 |
+
<td align="left"><code>None</code></td>
|
158 |
+
<td align="left">Default value to show in the code editor. If callable, the function will be called whenever the app loads to set the initial value of the component.</td>
|
159 |
+
</tr>
|
160 |
+
|
161 |
+
<tr>
|
162 |
+
<td align="left"><code>every</code></td>
|
163 |
+
<td align="left" style="width: 25%;">
|
164 |
+
|
165 |
+
```python
|
166 |
+
float | None
|
167 |
+
```
|
168 |
+
|
169 |
+
</td>
|
170 |
+
<td align="left"><code>None</code></td>
|
171 |
+
<td align="left">If `value` is a callable, run the function 'every' number of seconds while the client connection is open. Has no effect otherwise. The event can be accessed (e.g. to cancel it) via this component's .load_event attribute.</td>
|
172 |
+
</tr>
|
173 |
+
|
174 |
+
<tr>
|
175 |
+
<td align="left"><code>lines</code></td>
|
176 |
+
<td align="left" style="width: 25%;">
|
177 |
+
|
178 |
+
```python
|
179 |
+
int
|
180 |
+
```
|
181 |
+
|
182 |
+
</td>
|
183 |
+
<td align="left"><code>5</code></td>
|
184 |
+
<td align="left">None</td>
|
185 |
+
</tr>
|
186 |
+
|
187 |
+
<tr>
|
188 |
+
<td align="left"><code>label</code></td>
|
189 |
+
<td align="left" style="width: 25%;">
|
190 |
+
|
191 |
+
```python
|
192 |
+
str | None
|
193 |
+
```
|
194 |
+
|
195 |
+
</td>
|
196 |
+
<td align="left"><code>None</code></td>
|
197 |
+
<td align="left">The label for this component. Appears above the component and is also used as the header if there are a table of examples for this component. If None and used in a `gr.Interface`, the label will be the name of the parameter this component is assigned to.</td>
|
198 |
+
</tr>
|
199 |
+
|
200 |
+
<tr>
|
201 |
+
<td align="left"><code>show_label</code></td>
|
202 |
+
<td align="left" style="width: 25%;">
|
203 |
+
|
204 |
+
```python
|
205 |
+
bool | None
|
206 |
+
```
|
207 |
+
|
208 |
+
</td>
|
209 |
+
<td align="left"><code>None</code></td>
|
210 |
+
<td align="left">if True, will display label.</td>
|
211 |
+
</tr>
|
212 |
+
|
213 |
+
<tr>
|
214 |
+
<td align="left"><code>container</code></td>
|
215 |
+
<td align="left" style="width: 25%;">
|
216 |
+
|
217 |
+
```python
|
218 |
+
bool
|
219 |
+
```
|
220 |
+
|
221 |
+
</td>
|
222 |
+
<td align="left"><code>True</code></td>
|
223 |
+
<td align="left">If True, will place the component in a container - providing some extra padding around the border.</td>
|
224 |
+
</tr>
|
225 |
+
|
226 |
+
<tr>
|
227 |
+
<td align="left"><code>scale</code></td>
|
228 |
+
<td align="left" style="width: 25%;">
|
229 |
+
|
230 |
+
```python
|
231 |
+
int | None
|
232 |
+
```
|
233 |
+
|
234 |
+
</td>
|
235 |
+
<td align="left"><code>None</code></td>
|
236 |
+
<td align="left">relative size compared to adjacent Components. For example if Components A and B are in a Row, and A has scale=2, and B has scale=1, A will be twice as wide as B. Should be an integer. scale applies in Rows, and to top-level Components in Blocks where fill_height=True.</td>
|
237 |
+
</tr>
|
238 |
+
|
239 |
+
<tr>
|
240 |
+
<td align="left"><code>min_width</code></td>
|
241 |
+
<td align="left" style="width: 25%;">
|
242 |
+
|
243 |
+
```python
|
244 |
+
int
|
245 |
+
```
|
246 |
+
|
247 |
+
</td>
|
248 |
+
<td align="left"><code>160</code></td>
|
249 |
+
<td align="left">minimum pixel width, will wrap if not sufficient screen space to satisfy this value. If a certain scale value results in this Component being narrower than min_width, the min_width parameter will be respected first.</td>
|
250 |
+
</tr>
|
251 |
+
|
252 |
+
<tr>
|
253 |
+
<td align="left"><code>visible</code></td>
|
254 |
+
<td align="left" style="width: 25%;">
|
255 |
+
|
256 |
+
```python
|
257 |
+
bool
|
258 |
+
```
|
259 |
+
|
260 |
+
</td>
|
261 |
+
<td align="left"><code>True</code></td>
|
262 |
+
<td align="left">If False, component will be hidden.</td>
|
263 |
+
</tr>
|
264 |
+
|
265 |
+
<tr>
|
266 |
+
<td align="left"><code>elem_id</code></td>
|
267 |
+
<td align="left" style="width: 25%;">
|
268 |
+
|
269 |
+
```python
|
270 |
+
str | None
|
271 |
+
```
|
272 |
+
|
273 |
+
</td>
|
274 |
+
<td align="left"><code>None</code></td>
|
275 |
+
<td align="left">An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.</td>
|
276 |
+
</tr>
|
277 |
+
|
278 |
+
<tr>
|
279 |
+
<td align="left"><code>elem_classes</code></td>
|
280 |
+
<td align="left" style="width: 25%;">
|
281 |
+
|
282 |
+
```python
|
283 |
+
list[str] | str | None
|
284 |
+
```
|
285 |
+
|
286 |
+
</td>
|
287 |
+
<td align="left"><code>None</code></td>
|
288 |
+
<td align="left">An optional list of strings that are assigned as the classes of this component in the HTML DOM. Can be used for targeting CSS styles.</td>
|
289 |
+
</tr>
|
290 |
+
|
291 |
+
<tr>
|
292 |
+
<td align="left"><code>render</code></td>
|
293 |
+
<td align="left" style="width: 25%;">
|
294 |
+
|
295 |
+
```python
|
296 |
+
bool
|
297 |
+
```
|
298 |
+
|
299 |
+
</td>
|
300 |
+
<td align="left"><code>True</code></td>
|
301 |
+
<td align="left">If False, component will not render be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later.</td>
|
302 |
+
</tr>
|
303 |
+
</tbody></table>
|
304 |
+
|
305 |
+
|
306 |
+
### Events
|
307 |
+
|
308 |
+
| name | description |
|
309 |
+
|:-----|:------------|
|
310 |
+
| `change` | Triggered when the value of the LogsView changes either because of user input (e.g. a user types in a textbox) OR because of a function update (e.g. an image receives a value from the output of an event trigger). See `.input()` for a listener that is only triggered by user input. |
|
311 |
+
| `input` | This listener is triggered when the user changes the value of the LogsView. |
|
312 |
+
| `focus` | This listener is triggered when the LogsView is focused. |
|
313 |
+
| `blur` | This listener is triggered when the LogsView is unfocused/blurred. |
|
314 |
+
|
315 |
+
|
316 |
+
|
317 |
+
### User function
|
318 |
+
|
319 |
+
The impact on the users predict function varies depending on whether the component is used as an input or output for an event (or both).
|
320 |
+
|
321 |
+
- When used as an Input, the component only impacts the input signature of the user function.
|
322 |
+
- When used as an output, the component only impacts the return signature of the user function.
|
323 |
+
|
324 |
+
The code snippet below is accurate in cases where the component is used as both an input and an output.
|
325 |
+
|
326 |
+
- **As output:** Is passed, passes the code entered as a `str`.
|
327 |
+
- **As input:** Should return, expects a list of `Log` logs.
|
328 |
+
|
329 |
+
```python
|
330 |
+
def predict(
|
331 |
+
value: LogsView
|
332 |
+
) -> list[Log]:
|
333 |
+
return value
|
334 |
+
```
|
335 |
+
|
336 |
+
|
337 |
+
## `Log`
|
338 |
+
```python
|
339 |
+
@dataclass
|
340 |
+
class Log:
|
341 |
+
level: Literal[
|
342 |
+
"INFO", "DEBUG", "WARNING", "ERROR", "CRITICAL"
|
343 |
+
]
|
344 |
+
message: str
|
345 |
+
timestamp: str
|
346 |
+
```
|
347 |
+
|
348 |
+
## `LogsView`
|
349 |
+
```python
|
350 |
+
class LogsView(Component):
|
351 |
+
EVENTS = [
|
352 |
+
Events.change,
|
353 |
+
Events.input,
|
354 |
+
Events.focus,
|
355 |
+
Events.blur,
|
356 |
+
]
|
357 |
+
|
358 |
+
def __init__(
|
359 |
+
self,
|
360 |
+
value: str | Callable | tuple[str] | None = None,
|
361 |
+
*,
|
362 |
+
every: float | None = None,
|
363 |
+
lines: int = 5,
|
364 |
+
label: str | None = None,
|
365 |
+
show_label: bool | None = None,
|
366 |
+
container: bool = True,
|
367 |
+
scale: int | None = None,
|
368 |
+
min_width: int = 160,
|
369 |
+
visible: bool = True,
|
370 |
+
elem_id: str | None = None,
|
371 |
+
elem_classes: list[str] | str | None = None,
|
372 |
+
render: bool = True,
|
373 |
+
):
|
374 |
+
self.language = "shell"
|
375 |
+
self.lines = lines
|
376 |
+
self.interactive = False
|
377 |
+
super().__init__(
|
378 |
+
label=label,
|
379 |
+
every=every,
|
380 |
+
show_label=show_label,
|
381 |
+
container=container,
|
382 |
+
scale=scale,
|
383 |
+
min_width=min_width,
|
384 |
+
visible=visible,
|
385 |
+
elem_id=elem_id,
|
386 |
+
elem_classes=elem_classes,
|
387 |
+
render=render,
|
388 |
+
value=value,
|
389 |
+
)
|
390 |
+
|
391 |
+
def preprocess(self, payload: str | None) -> "LogsView":
|
392 |
+
raise NotImplementedError(
|
393 |
+
"LogsView cannot be used as an input component."
|
394 |
+
)
|
395 |
+
|
396 |
+
def postprocess(self, value: List[Log]) -> List[Log]:
|
397 |
+
return value
|
398 |
+
|
399 |
+
def api_info(self) -> dict[str, Any]:
|
400 |
+
return {
|
401 |
+
"items": {
|
402 |
+
"level": "string",
|
403 |
+
"message": "string",
|
404 |
+
"timestamp": "number",
|
405 |
+
},
|
406 |
+
"title": "Logs",
|
407 |
+
"type": "array",
|
408 |
+
}
|
409 |
+
|
410 |
+
def example_payload(self) -> Any:
|
411 |
+
return [
|
412 |
+
Log(
|
413 |
+
"INFO",
|
414 |
+
"Hello World",
|
415 |
+
datetime.now().isoformat(),
|
416 |
+
)
|
417 |
+
]
|
418 |
+
|
419 |
+
def example_value(self) -> Any:
|
420 |
+
return [
|
421 |
+
Log(
|
422 |
+
"INFO",
|
423 |
+
"Hello World",
|
424 |
+
datetime.now().isoformat(),
|
425 |
+
)
|
426 |
+
]
|
427 |
+
|
428 |
+
@classmethod
|
429 |
+
def run_process(
|
430 |
+
cls,
|
431 |
+
command: List[str],
|
432 |
+
date_format: str = "%Y-%m-%d %H:%M:%S",
|
433 |
+
) -> Generator[List[Log], None, None]:
|
434 |
+
process = subprocess.Popen(
|
435 |
+
command,
|
436 |
+
stdout=subprocess.PIPE,
|
437 |
+
stderr=subprocess.STDOUT,
|
438 |
+
text=True,
|
439 |
+
)
|
440 |
+
|
441 |
+
if process.stdout is None:
|
442 |
+
raise ValueError("stdout is None")
|
443 |
+
|
444 |
+
logs = []
|
445 |
+
|
446 |
+
def _log(level: str, message: str):
|
447 |
+
log = Log(
|
448 |
+
level=level,
|
449 |
+
message=message,
|
450 |
+
timestamp=datetime.now().strftime(
|
451 |
+
date_format
|
452 |
+
),
|
453 |
+
)
|
454 |
+
logs.append(log)
|
455 |
+
return logs
|
456 |
+
|
457 |
+
_log("INFO", f"Running {' '.join(command)}")
|
458 |
+
for line in process.stdout:
|
459 |
+
yield _log("INFO", line.strip())
|
460 |
+
|
461 |
+
# TODO: what if task is cancelled but process is still running?
|
462 |
+
|
463 |
+
process.stdout.close()
|
464 |
+
return_code = process.wait()
|
465 |
+
if return_code:
|
466 |
+
yield _log(
|
467 |
+
"ERROR",
|
468 |
+
f"Process exited with code {return_code}",
|
469 |
+
)
|
470 |
+
else:
|
471 |
+
yield _log(
|
472 |
+
"INFO", "Process exited successfully"
|
473 |
+
)
|
474 |
+
|
475 |
+
@classmethod
|
476 |
+
def run_thread(
|
477 |
+
cls,
|
478 |
+
fn: Callable,
|
479 |
+
log_level: int = logging.INFO,
|
480 |
+
logger_name: str | None = None,
|
481 |
+
date_format: str = "%Y-%m-%d %H:%M:%S",
|
482 |
+
**kwargs,
|
483 |
+
) -> Generator[List[Log], None, None]:
|
484 |
+
logs = [
|
485 |
+
Log(
|
486 |
+
level="INFO",
|
487 |
+
message=f"Running {fn.__name__}({', '.join(f'{k}={v}' for k, v in kwargs.items())})",
|
488 |
+
timestamp=datetime.now().strftime(
|
489 |
+
date_format
|
490 |
+
),
|
491 |
+
)
|
492 |
+
]
|
493 |
+
yield logs
|
494 |
+
|
495 |
+
thread = Thread(
|
496 |
+
target=non_failing_fn(fn), kwargs=kwargs
|
497 |
+
)
|
498 |
+
|
499 |
+
def _log(record: logging.LogRecord) -> bool:
|
500 |
+
if record.thread != thread.ident:
|
501 |
+
return False # Skip if not from the thread
|
502 |
+
if logger_name and not record.name.startswith(
|
503 |
+
logger_name
|
504 |
+
):
|
505 |
+
return False # Skip if not from the logger
|
506 |
+
if record.levelno < log_level:
|
507 |
+
return False # Skip if too verbose
|
508 |
+
log = Log(
|
509 |
+
level=record.levelname,
|
510 |
+
message=record.getMessage(),
|
511 |
+
timestamp=datetime.fromtimestamp(
|
512 |
+
record.created
|
513 |
+
).strftime(date_format),
|
514 |
+
)
|
515 |
+
logs.append(log)
|
516 |
+
return True
|
517 |
+
|
518 |
+
with capture_logging(log_level) as log_queue:
|
519 |
+
thread.start()
|
520 |
+
|
521 |
+
# Loop to capture and yield logs from the thread
|
522 |
+
while thread.is_alive():
|
523 |
+
while True:
|
524 |
+
try:
|
525 |
+
if _log(log_queue.get_nowait()):
|
526 |
+
yield logs
|
527 |
+
except queue.Empty:
|
528 |
+
break
|
529 |
+
thread.join(
|
530 |
+
timeout=0.1
|
531 |
+
) # adjust the timeout as needed
|
532 |
+
|
533 |
+
# After the thread completes, yield any remaining logs
|
534 |
+
while True:
|
535 |
+
try:
|
536 |
+
if _log(log_queue.get_nowait()):
|
537 |
+
yield logs
|
538 |
+
except queue.Empty:
|
539 |
+
break
|
540 |
+
|
541 |
+
logs.append(
|
542 |
+
Log(
|
543 |
+
level="INFO",
|
544 |
+
message="Thread completed successfully",
|
545 |
+
timestamp=datetime.now().strftime(
|
546 |
+
date_format
|
547 |
+
),
|
548 |
+
)
|
549 |
+
)
|
550 |
+
```
|
src/backend/gradio_logsview/__init__.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from .logsview import LogsView
|
2 |
+
|
3 |
+
__all__ = ["LogsView"]
|
src/backend/gradio_logsview/logsview.py
ADDED
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""LogsView() custom component"""
|
2 |
+
|
3 |
+
from __future__ import annotations
|
4 |
+
|
5 |
+
import logging
|
6 |
+
import queue
|
7 |
+
import subprocess
|
8 |
+
import threading
|
9 |
+
import time
|
10 |
+
from contextlib import contextmanager
|
11 |
+
from dataclasses import dataclass
|
12 |
+
from datetime import datetime
|
13 |
+
from functools import wraps
|
14 |
+
from logging.handlers import QueueHandler
|
15 |
+
from queue import Queue
|
16 |
+
from threading import Thread
|
17 |
+
from typing import Any, Callable, Generator, Iterable, List, Literal
|
18 |
+
|
19 |
+
from gradio.components.base import Component
|
20 |
+
from gradio.events import Events
|
21 |
+
|
22 |
+
|
23 |
+
@dataclass
|
24 |
+
class Log:
|
25 |
+
level: Literal["INFO", "DEBUG", "WARNING", "ERROR", "CRITICAL"]
|
26 |
+
message: str
|
27 |
+
timestamp: str
|
28 |
+
|
29 |
+
|
30 |
+
class LogsView(Component):
|
31 |
+
"""
|
32 |
+
Creates a component to visualize logs from a subprocess in real-time.
|
33 |
+
"""
|
34 |
+
|
35 |
+
EVENTS = [
|
36 |
+
Events.change,
|
37 |
+
Events.input,
|
38 |
+
Events.focus,
|
39 |
+
Events.blur,
|
40 |
+
]
|
41 |
+
|
42 |
+
def __init__(
|
43 |
+
self,
|
44 |
+
value: str | Callable | tuple[str] | None = None,
|
45 |
+
*,
|
46 |
+
every: float | None = None,
|
47 |
+
lines: int = 5,
|
48 |
+
label: str | None = None,
|
49 |
+
show_label: bool | None = None,
|
50 |
+
container: bool = True,
|
51 |
+
scale: int | None = None,
|
52 |
+
min_width: int = 160,
|
53 |
+
visible: bool = True,
|
54 |
+
elem_id: str | None = None,
|
55 |
+
elem_classes: list[str] | str | None = None,
|
56 |
+
render: bool = True,
|
57 |
+
):
|
58 |
+
"""
|
59 |
+
Parameters:
|
60 |
+
value: Default value to show in the code editor. If callable, the function will be called whenever the app loads to set the initial value of the component.
|
61 |
+
every: If `value` is a callable, run the function 'every' number of seconds while the client connection is open. Has no effect otherwise. The event can be accessed (e.g. to cancel it) via this component's .load_event attribute.
|
62 |
+
label: The label for this component. Appears above the component and is also used as the header if there are a table of examples for this component. If None and used in a `gr.Interface`, the label will be the name of the parameter this component is assigned to.
|
63 |
+
show_label: if True, will display label.
|
64 |
+
container: If True, will place the component in a container - providing some extra padding around the border.
|
65 |
+
scale: relative size compared to adjacent Components. For example if Components A and B are in a Row, and A has scale=2, and B has scale=1, A will be twice as wide as B. Should be an integer. scale applies in Rows, and to top-level Components in Blocks where fill_height=True.
|
66 |
+
min_width: minimum pixel width, will wrap if not sufficient screen space to satisfy this value. If a certain scale value results in this Component being narrower than min_width, the min_width parameter will be respected first.
|
67 |
+
visible: If False, component will be hidden.
|
68 |
+
elem_id: An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.
|
69 |
+
elem_classes: An optional list of strings that are assigned as the classes of this component in the HTML DOM. Can be used for targeting CSS styles.
|
70 |
+
render: If False, component will not render be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later.
|
71 |
+
"""
|
72 |
+
self.language = "shell"
|
73 |
+
self.lines = lines
|
74 |
+
self.interactive = False
|
75 |
+
super().__init__(
|
76 |
+
label=label,
|
77 |
+
every=every,
|
78 |
+
show_label=show_label,
|
79 |
+
container=container,
|
80 |
+
scale=scale,
|
81 |
+
min_width=min_width,
|
82 |
+
visible=visible,
|
83 |
+
elem_id=elem_id,
|
84 |
+
elem_classes=elem_classes,
|
85 |
+
render=render,
|
86 |
+
value=value,
|
87 |
+
)
|
88 |
+
|
89 |
+
def preprocess(self, payload: str | None) -> "LogsView":
|
90 |
+
"""
|
91 |
+
Parameters:
|
92 |
+
payload: string corresponding to the code
|
93 |
+
Returns:
|
94 |
+
Passes the code entered as a `str`.
|
95 |
+
"""
|
96 |
+
raise NotImplementedError("LogsView cannot be used as an input component.")
|
97 |
+
|
98 |
+
def postprocess(self, value: List[Log]) -> List[Log]:
|
99 |
+
"""
|
100 |
+
Parameters:
|
101 |
+
value: Expects a list of `Log` logs.
|
102 |
+
Returns:
|
103 |
+
Returns the list of `Log` logs.
|
104 |
+
"""
|
105 |
+
return value
|
106 |
+
|
107 |
+
def api_info(self) -> dict[str, Any]:
|
108 |
+
return {
|
109 |
+
"items": {"level": "string", "message": "string", "timestamp": "number"},
|
110 |
+
"title": "Logs",
|
111 |
+
"type": "array",
|
112 |
+
}
|
113 |
+
|
114 |
+
def example_payload(self) -> Any:
|
115 |
+
return [Log("INFO", "Hello World", datetime.now().isoformat())]
|
116 |
+
|
117 |
+
def example_value(self) -> Any:
|
118 |
+
return [Log("INFO", "Hello World", datetime.now().isoformat())]
|
119 |
+
|
120 |
+
@classmethod
|
121 |
+
def run_process(
|
122 |
+
cls, command: List[str], date_format: str = "%Y-%m-%d %H:%M:%S"
|
123 |
+
) -> Generator[List[Log], None, None]:
|
124 |
+
"""Run a command in a subprocess and yield logs in real-time."""
|
125 |
+
process = subprocess.Popen(
|
126 |
+
command,
|
127 |
+
stdout=subprocess.PIPE,
|
128 |
+
stderr=subprocess.STDOUT,
|
129 |
+
text=True,
|
130 |
+
)
|
131 |
+
|
132 |
+
if process.stdout is None:
|
133 |
+
raise ValueError("stdout is None")
|
134 |
+
|
135 |
+
logs = []
|
136 |
+
|
137 |
+
def _log(level: str, message: str):
|
138 |
+
log = Log(
|
139 |
+
level=level,
|
140 |
+
message=message,
|
141 |
+
timestamp=datetime.now().strftime(date_format),
|
142 |
+
)
|
143 |
+
logs.append(log)
|
144 |
+
return logs
|
145 |
+
|
146 |
+
_log("INFO", f"Running {' '.join(command)}")
|
147 |
+
for line in process.stdout:
|
148 |
+
yield _log("INFO", line.strip())
|
149 |
+
|
150 |
+
# TODO: what if task is cancelled but process is still running?
|
151 |
+
|
152 |
+
process.stdout.close()
|
153 |
+
return_code = process.wait()
|
154 |
+
if return_code:
|
155 |
+
yield _log("ERROR", f"Process exited with code {return_code}")
|
156 |
+
else:
|
157 |
+
yield _log("INFO", "Process exited successfully")
|
158 |
+
|
159 |
+
@classmethod
|
160 |
+
def run_thread(
|
161 |
+
cls,
|
162 |
+
fn: Callable,
|
163 |
+
log_level: int = logging.INFO,
|
164 |
+
logger_name: str | None = None,
|
165 |
+
date_format: str = "%Y-%m-%d %H:%M:%S",
|
166 |
+
**kwargs,
|
167 |
+
) -> Generator[List[Log], None, None]:
|
168 |
+
"""Run a function in a thread and capture logs in real-time to yield them."""
|
169 |
+
logs = [
|
170 |
+
Log(
|
171 |
+
level="INFO",
|
172 |
+
message=f"Running {fn.__name__}({', '.join(f'{k}={v}' for k, v in kwargs.items())})",
|
173 |
+
timestamp=datetime.now().strftime(date_format),
|
174 |
+
)
|
175 |
+
]
|
176 |
+
yield logs
|
177 |
+
|
178 |
+
thread = Thread(target=non_failing_fn(fn), kwargs=kwargs)
|
179 |
+
|
180 |
+
def _log(record: logging.LogRecord) -> bool:
|
181 |
+
"""Handle log record and return True if log should be yielded."""
|
182 |
+
if record.thread != thread.ident:
|
183 |
+
return False # Skip if not from the thread
|
184 |
+
if logger_name and not record.name.startswith(logger_name):
|
185 |
+
return False # Skip if not from the logger
|
186 |
+
if record.levelno < log_level:
|
187 |
+
return False # Skip if too verbose
|
188 |
+
log = Log(
|
189 |
+
level=record.levelname,
|
190 |
+
message=record.getMessage(),
|
191 |
+
timestamp=datetime.fromtimestamp(record.created).strftime(date_format),
|
192 |
+
)
|
193 |
+
logs.append(log)
|
194 |
+
return True
|
195 |
+
|
196 |
+
with capture_logging(log_level) as log_queue:
|
197 |
+
thread.start()
|
198 |
+
|
199 |
+
# Loop to capture and yield logs from the thread
|
200 |
+
while thread.is_alive():
|
201 |
+
while True:
|
202 |
+
try:
|
203 |
+
if _log(log_queue.get_nowait()):
|
204 |
+
yield logs
|
205 |
+
except queue.Empty:
|
206 |
+
break
|
207 |
+
thread.join(timeout=0.1) # adjust the timeout as needed
|
208 |
+
|
209 |
+
# After the thread completes, yield any remaining logs
|
210 |
+
while True:
|
211 |
+
try:
|
212 |
+
if _log(log_queue.get_nowait()):
|
213 |
+
yield logs
|
214 |
+
except queue.Empty:
|
215 |
+
break
|
216 |
+
|
217 |
+
logs.append(
|
218 |
+
Log(
|
219 |
+
level="INFO",
|
220 |
+
message="Thread completed successfully",
|
221 |
+
timestamp=datetime.now().strftime(date_format),
|
222 |
+
)
|
223 |
+
)
|
224 |
+
|
225 |
+
|
226 |
+
@contextmanager
|
227 |
+
def capture_logging(log_level: int) -> Generator[Queue, None, None]:
|
228 |
+
# Create a queue to capture log messages
|
229 |
+
log_queue = queue.Queue()
|
230 |
+
logger = logging.getLogger()
|
231 |
+
logger.setLevel(log_level)
|
232 |
+
handler = QueueHandler(log_queue)
|
233 |
+
logger.addHandler(handler)
|
234 |
+
|
235 |
+
# Yield the queue
|
236 |
+
yield log_queue
|
237 |
+
|
238 |
+
# Clean up
|
239 |
+
logger.removeHandler(handler)
|
240 |
+
|
241 |
+
|
242 |
+
def non_failing_fn(fn: Callable, *args, **kwargs) -> Callable:
|
243 |
+
@wraps(fn)
|
244 |
+
def _inner(*args, **kwargs):
|
245 |
+
try:
|
246 |
+
return fn(*args, **kwargs)
|
247 |
+
except Exception as e:
|
248 |
+
logging.error(f"Error in {fn.__name__}: {e}", stack_info=True)
|
249 |
+
|
250 |
+
return _inner
|
src/backend/gradio_logsview/logsview.pyi
ADDED
@@ -0,0 +1,375 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""gr.Code() component"""
|
2 |
+
|
3 |
+
from __future__ import annotations
|
4 |
+
|
5 |
+
from typing import Any, Callable, Literal
|
6 |
+
|
7 |
+
from gradio_client.documentation import document
|
8 |
+
|
9 |
+
from gradio.components.base import Component
|
10 |
+
from gradio.events import Events
|
11 |
+
|
12 |
+
|
13 |
+
class LogsView(Component):
|
14 |
+
"""
|
15 |
+
Creates a component to visualize logs from a subprocess in real-time.
|
16 |
+
"""
|
17 |
+
|
18 |
+
EVENTS = [
|
19 |
+
Events.change,
|
20 |
+
Events.input,
|
21 |
+
Events.focus,
|
22 |
+
Events.blur,
|
23 |
+
]
|
24 |
+
|
25 |
+
def __init__(
|
26 |
+
self,
|
27 |
+
value: str | Callable | tuple[str] | None = None,
|
28 |
+
*,
|
29 |
+
every: float | None = None,
|
30 |
+
lines: int = 5,
|
31 |
+
label: str | None = None,
|
32 |
+
show_label: bool | None = None,
|
33 |
+
container: bool = True,
|
34 |
+
scale: int | None = None,
|
35 |
+
min_width: int = 160,
|
36 |
+
visible: bool = True,
|
37 |
+
elem_id: str | None = None,
|
38 |
+
elem_classes: list[str] | str | None = None,
|
39 |
+
render: bool = True,
|
40 |
+
):
|
41 |
+
"""
|
42 |
+
Parameters:
|
43 |
+
value: Default value to show in the code editor. If callable, the function will be called whenever the app loads to set the initial value of the component.
|
44 |
+
every: If `value` is a callable, run the function 'every' number of seconds while the client connection is open. Has no effect otherwise. The event can be accessed (e.g. to cancel it) via this component's .load_event attribute.
|
45 |
+
label: The label for this component. Appears above the component and is also used as the header if there are a table of examples for this component. If None and used in a `gr.Interface`, the label will be the name of the parameter this component is assigned to.
|
46 |
+
show_label: if True, will display label.
|
47 |
+
container: If True, will place the component in a container - providing some extra padding around the border.
|
48 |
+
scale: relative size compared to adjacent Components. For example if Components A and B are in a Row, and A has scale=2, and B has scale=1, A will be twice as wide as B. Should be an integer. scale applies in Rows, and to top-level Components in Blocks where fill_height=True.
|
49 |
+
min_width: minimum pixel width, will wrap if not sufficient screen space to satisfy this value. If a certain scale value results in this Component being narrower than min_width, the min_width parameter will be respected first.
|
50 |
+
visible: If False, component will be hidden.
|
51 |
+
elem_id: An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.
|
52 |
+
elem_classes: An optional list of strings that are assigned as the classes of this component in the HTML DOM. Can be used for targeting CSS styles.
|
53 |
+
render: If False, component will not render be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later.
|
54 |
+
"""
|
55 |
+
self.language = "shell"
|
56 |
+
self.lines = lines
|
57 |
+
self.interactive = False
|
58 |
+
super().__init__(
|
59 |
+
label=label,
|
60 |
+
every=every,
|
61 |
+
show_label=show_label,
|
62 |
+
container=container,
|
63 |
+
scale=scale,
|
64 |
+
min_width=min_width,
|
65 |
+
visible=visible,
|
66 |
+
elem_id=elem_id,
|
67 |
+
elem_classes=elem_classes,
|
68 |
+
render=render,
|
69 |
+
value=value,
|
70 |
+
)
|
71 |
+
|
72 |
+
def preprocess(self, payload: str | None) -> "LogsView":
|
73 |
+
"""
|
74 |
+
Parameters:
|
75 |
+
payload: string corresponding to the code
|
76 |
+
Returns:
|
77 |
+
Passes the code entered as a `str`.
|
78 |
+
"""
|
79 |
+
raise NotImplementedError("LogsView cannot be used as an input component.")
|
80 |
+
|
81 |
+
def postprocess(self, value: List[Log]) -> List[Log]:
|
82 |
+
"""
|
83 |
+
Parameters:
|
84 |
+
value: Expects a list of `Log` logs.
|
85 |
+
Returns:
|
86 |
+
Returns the list of `Log` logs.
|
87 |
+
"""
|
88 |
+
return value
|
89 |
+
|
90 |
+
def api_info(self) -> dict[str, Any]:
|
91 |
+
return {
|
92 |
+
"items": {"level": "string", "message": "string", "timestamp": "number"},
|
93 |
+
"title": "Logs",
|
94 |
+
"type": "array",
|
95 |
+
}
|
96 |
+
|
97 |
+
def example_payload(self) -> Any:
|
98 |
+
return [Log("INFO", "Hello World", datetime.now().isoformat())]
|
99 |
+
|
100 |
+
def example_value(self) -> Any:
|
101 |
+
return [Log("INFO", "Hello World", datetime.now().isoformat())]
|
102 |
+
|
103 |
+
@classmethod
|
104 |
+
def run_process(
|
105 |
+
cls, command: List[str], date_format: str = "%Y-%m-%d %H:%M:%S"
|
106 |
+
) -> Generator[List[Log], None, None]:
|
107 |
+
"""Run a command in a subprocess and yield logs in real-time."""
|
108 |
+
process = subprocess.Popen(
|
109 |
+
command,
|
110 |
+
stdout=subprocess.PIPE,
|
111 |
+
stderr=subprocess.STDOUT,
|
112 |
+
text=True,
|
113 |
+
)
|
114 |
+
|
115 |
+
if process.stdout is None:
|
116 |
+
raise ValueError("stdout is None")
|
117 |
+
|
118 |
+
logs = []
|
119 |
+
|
120 |
+
def _log(level: str, message: str):
|
121 |
+
log = Log(
|
122 |
+
level=level,
|
123 |
+
message=message,
|
124 |
+
timestamp=datetime.now().strftime(date_format),
|
125 |
+
)
|
126 |
+
logs.append(log)
|
127 |
+
return logs
|
128 |
+
|
129 |
+
_log("INFO", f"Running {' '.join(command)}")
|
130 |
+
for line in process.stdout:
|
131 |
+
yield _log("INFO", line.strip())
|
132 |
+
|
133 |
+
# TODO: what if task is cancelled but process is still running?
|
134 |
+
|
135 |
+
process.stdout.close()
|
136 |
+
return_code = process.wait()
|
137 |
+
if return_code:
|
138 |
+
yield _log("ERROR", f"Process exited with code {return_code}")
|
139 |
+
else:
|
140 |
+
yield _log("INFO", "Process exited successfully")
|
141 |
+
|
142 |
+
@classmethod
|
143 |
+
def run_thread(
|
144 |
+
cls,
|
145 |
+
fn: Callable,
|
146 |
+
log_level: int = logging.INFO,
|
147 |
+
logger_name: str | None = None,
|
148 |
+
date_format: str = "%Y-%m-%d %H:%M:%S",
|
149 |
+
**kwargs,
|
150 |
+
) -> Generator[List[Log], None, None]:
|
151 |
+
"""Run a function in a thread and capture logs in real-time to yield them."""
|
152 |
+
logs = [
|
153 |
+
Log(
|
154 |
+
level="INFO",
|
155 |
+
message=f"Running {fn.__name__}({', '.join(f'{k}={v}' for k, v in kwargs.items())})",
|
156 |
+
timestamp=datetime.now().strftime(date_format),
|
157 |
+
)
|
158 |
+
]
|
159 |
+
yield logs
|
160 |
+
|
161 |
+
thread = Thread(target=non_failing_fn(fn), kwargs=kwargs)
|
162 |
+
|
163 |
+
def _log(record: logging.LogRecord) -> bool:
|
164 |
+
"""Handle log record and return True if log should be yielded."""
|
165 |
+
if record.thread != thread.ident:
|
166 |
+
return False # Skip if not from the thread
|
167 |
+
if logger_name and not record.name.startswith(logger_name):
|
168 |
+
return False # Skip if not from the logger
|
169 |
+
if record.levelno < log_level:
|
170 |
+
return False # Skip if too verbose
|
171 |
+
log = Log(
|
172 |
+
level=record.levelname,
|
173 |
+
message=record.getMessage(),
|
174 |
+
timestamp=datetime.fromtimestamp(record.created).strftime(date_format),
|
175 |
+
)
|
176 |
+
logs.append(log)
|
177 |
+
return True
|
178 |
+
|
179 |
+
with capture_logging(log_level) as log_queue:
|
180 |
+
thread.start()
|
181 |
+
|
182 |
+
# Loop to capture and yield logs from the thread
|
183 |
+
while thread.is_alive():
|
184 |
+
while True:
|
185 |
+
try:
|
186 |
+
if _log(log_queue.get_nowait()):
|
187 |
+
yield logs
|
188 |
+
except queue.Empty:
|
189 |
+
break
|
190 |
+
thread.join(timeout=0.1) # adjust the timeout as needed
|
191 |
+
|
192 |
+
# After the thread completes, yield any remaining logs
|
193 |
+
while True:
|
194 |
+
try:
|
195 |
+
if _log(log_queue.get_nowait()):
|
196 |
+
yield logs
|
197 |
+
except queue.Empty:
|
198 |
+
break
|
199 |
+
|
200 |
+
logs.append(
|
201 |
+
Log(
|
202 |
+
level="INFO",
|
203 |
+
message="Thread completed successfully",
|
204 |
+
timestamp=datetime.now().strftime(date_format),
|
205 |
+
)
|
206 |
+
)
|
207 |
+
|
208 |
+
|
209 |
+
def change(self,
|
210 |
+
fn: Callable | None,
|
211 |
+
inputs: Component | Sequence[Component] | set[Component] | None = None,
|
212 |
+
outputs: Component | Sequence[Component] | None = None,
|
213 |
+
api_name: str | None | Literal[False] = None,
|
214 |
+
scroll_to_output: bool = False,
|
215 |
+
show_progress: Literal["full", "minimal", "hidden"] = "full",
|
216 |
+
queue: bool | None = None,
|
217 |
+
batch: bool = False,
|
218 |
+
max_batch_size: int = 4,
|
219 |
+
preprocess: bool = True,
|
220 |
+
postprocess: bool = True,
|
221 |
+
cancels: dict[str, Any] | list[dict[str, Any]] | None = None,
|
222 |
+
every: float | None = None,
|
223 |
+
trigger_mode: Literal["once", "multiple", "always_last"] | None = None,
|
224 |
+
js: str | None = None,
|
225 |
+
concurrency_limit: int | None | Literal["default"] = "default",
|
226 |
+
concurrency_id: str | None = None,
|
227 |
+
show_api: bool = True) -> Dependency:
|
228 |
+
"""
|
229 |
+
Parameters:
|
230 |
+
fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
|
231 |
+
inputs: List of gradio.components to use as inputs. If the function takes no inputs, this should be an empty list.
|
232 |
+
outputs: List of gradio.components to use as outputs. If the function returns no outputs, this should be an empty list.
|
233 |
+
api_name: Defines how the endpoint appears in the API docs. Can be a string, None, or False. If False, the endpoint will not be exposed in the api docs. If set to None, the endpoint will be exposed in the api docs as an unnamed endpoint, although this behavior will be changed in Gradio 4.0. If set to a string, the endpoint will be exposed in the api docs with the given name.
|
234 |
+
scroll_to_output: If True, will scroll to output component on completion
|
235 |
+
show_progress: If True, will show progress animation while pending
|
236 |
+
queue: If True, will place the request on the queue, if the queue has been enabled. If False, will not put this event on the queue, even if the queue has been enabled. If None, will use the queue setting of the gradio app.
|
237 |
+
batch: If True, then the function should process a batch of inputs, meaning that it should accept a list of input values for each parameter. The lists should be of equal length (and be up to length `max_batch_size`). The function is then *required* to return a tuple of lists (even if there is only 1 output component), with each list in the tuple corresponding to one output component.
|
238 |
+
max_batch_size: Maximum number of inputs to batch together if this is called from the queue (only relevant if batch=True)
|
239 |
+
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
|
240 |
+
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
|
241 |
+
cancels: A list of other events to cancel when this listener is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method. Functions that have not yet run (or generators that are iterating) will be cancelled, but functions that are currently running will be allowed to finish.
|
242 |
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds.
|
243 |
+
trigger_mode: If "once" (default for all events except `.change()`) would not allow any submissions while an event is pending. If set to "multiple", unlimited submissions are allowed while pending, and "always_last" (default for `.change()` and `.key_up()` events) would allow a second submission after the pending event is complete.
|
244 |
+
js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
|
245 |
+
concurrency_limit: If set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
|
246 |
+
concurrency_id: If set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
|
247 |
+
show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps to use this event. If fn is None, show_api will automatically be set to False.
|
248 |
+
"""
|
249 |
+
...
|
250 |
+
|
251 |
+
def input(self,
|
252 |
+
fn: Callable | None,
|
253 |
+
inputs: Component | Sequence[Component] | set[Component] | None = None,
|
254 |
+
outputs: Component | Sequence[Component] | None = None,
|
255 |
+
api_name: str | None | Literal[False] = None,
|
256 |
+
scroll_to_output: bool = False,
|
257 |
+
show_progress: Literal["full", "minimal", "hidden"] = "full",
|
258 |
+
queue: bool | None = None,
|
259 |
+
batch: bool = False,
|
260 |
+
max_batch_size: int = 4,
|
261 |
+
preprocess: bool = True,
|
262 |
+
postprocess: bool = True,
|
263 |
+
cancels: dict[str, Any] | list[dict[str, Any]] | None = None,
|
264 |
+
every: float | None = None,
|
265 |
+
trigger_mode: Literal["once", "multiple", "always_last"] | None = None,
|
266 |
+
js: str | None = None,
|
267 |
+
concurrency_limit: int | None | Literal["default"] = "default",
|
268 |
+
concurrency_id: str | None = None,
|
269 |
+
show_api: bool = True) -> Dependency:
|
270 |
+
"""
|
271 |
+
Parameters:
|
272 |
+
fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
|
273 |
+
inputs: List of gradio.components to use as inputs. If the function takes no inputs, this should be an empty list.
|
274 |
+
outputs: List of gradio.components to use as outputs. If the function returns no outputs, this should be an empty list.
|
275 |
+
api_name: Defines how the endpoint appears in the API docs. Can be a string, None, or False. If False, the endpoint will not be exposed in the api docs. If set to None, the endpoint will be exposed in the api docs as an unnamed endpoint, although this behavior will be changed in Gradio 4.0. If set to a string, the endpoint will be exposed in the api docs with the given name.
|
276 |
+
scroll_to_output: If True, will scroll to output component on completion
|
277 |
+
show_progress: If True, will show progress animation while pending
|
278 |
+
queue: If True, will place the request on the queue, if the queue has been enabled. If False, will not put this event on the queue, even if the queue has been enabled. If None, will use the queue setting of the gradio app.
|
279 |
+
batch: If True, then the function should process a batch of inputs, meaning that it should accept a list of input values for each parameter. The lists should be of equal length (and be up to length `max_batch_size`). The function is then *required* to return a tuple of lists (even if there is only 1 output component), with each list in the tuple corresponding to one output component.
|
280 |
+
max_batch_size: Maximum number of inputs to batch together if this is called from the queue (only relevant if batch=True)
|
281 |
+
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
|
282 |
+
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
|
283 |
+
cancels: A list of other events to cancel when this listener is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method. Functions that have not yet run (or generators that are iterating) will be cancelled, but functions that are currently running will be allowed to finish.
|
284 |
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds.
|
285 |
+
trigger_mode: If "once" (default for all events except `.change()`) would not allow any submissions while an event is pending. If set to "multiple", unlimited submissions are allowed while pending, and "always_last" (default for `.change()` and `.key_up()` events) would allow a second submission after the pending event is complete.
|
286 |
+
js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
|
287 |
+
concurrency_limit: If set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
|
288 |
+
concurrency_id: If set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
|
289 |
+
show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps to use this event. If fn is None, show_api will automatically be set to False.
|
290 |
+
"""
|
291 |
+
...
|
292 |
+
|
293 |
+
def focus(self,
|
294 |
+
fn: Callable | None,
|
295 |
+
inputs: Component | Sequence[Component] | set[Component] | None = None,
|
296 |
+
outputs: Component | Sequence[Component] | None = None,
|
297 |
+
api_name: str | None | Literal[False] = None,
|
298 |
+
scroll_to_output: bool = False,
|
299 |
+
show_progress: Literal["full", "minimal", "hidden"] = "full",
|
300 |
+
queue: bool | None = None,
|
301 |
+
batch: bool = False,
|
302 |
+
max_batch_size: int = 4,
|
303 |
+
preprocess: bool = True,
|
304 |
+
postprocess: bool = True,
|
305 |
+
cancels: dict[str, Any] | list[dict[str, Any]] | None = None,
|
306 |
+
every: float | None = None,
|
307 |
+
trigger_mode: Literal["once", "multiple", "always_last"] | None = None,
|
308 |
+
js: str | None = None,
|
309 |
+
concurrency_limit: int | None | Literal["default"] = "default",
|
310 |
+
concurrency_id: str | None = None,
|
311 |
+
show_api: bool = True) -> Dependency:
|
312 |
+
"""
|
313 |
+
Parameters:
|
314 |
+
fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
|
315 |
+
inputs: List of gradio.components to use as inputs. If the function takes no inputs, this should be an empty list.
|
316 |
+
outputs: List of gradio.components to use as outputs. If the function returns no outputs, this should be an empty list.
|
317 |
+
api_name: Defines how the endpoint appears in the API docs. Can be a string, None, or False. If False, the endpoint will not be exposed in the api docs. If set to None, the endpoint will be exposed in the api docs as an unnamed endpoint, although this behavior will be changed in Gradio 4.0. If set to a string, the endpoint will be exposed in the api docs with the given name.
|
318 |
+
scroll_to_output: If True, will scroll to output component on completion
|
319 |
+
show_progress: If True, will show progress animation while pending
|
320 |
+
queue: If True, will place the request on the queue, if the queue has been enabled. If False, will not put this event on the queue, even if the queue has been enabled. If None, will use the queue setting of the gradio app.
|
321 |
+
batch: If True, then the function should process a batch of inputs, meaning that it should accept a list of input values for each parameter. The lists should be of equal length (and be up to length `max_batch_size`). The function is then *required* to return a tuple of lists (even if there is only 1 output component), with each list in the tuple corresponding to one output component.
|
322 |
+
max_batch_size: Maximum number of inputs to batch together if this is called from the queue (only relevant if batch=True)
|
323 |
+
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
|
324 |
+
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
|
325 |
+
cancels: A list of other events to cancel when this listener is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method. Functions that have not yet run (or generators that are iterating) will be cancelled, but functions that are currently running will be allowed to finish.
|
326 |
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds.
|
327 |
+
trigger_mode: If "once" (default for all events except `.change()`) would not allow any submissions while an event is pending. If set to "multiple", unlimited submissions are allowed while pending, and "always_last" (default for `.change()` and `.key_up()` events) would allow a second submission after the pending event is complete.
|
328 |
+
js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
|
329 |
+
concurrency_limit: If set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
|
330 |
+
concurrency_id: If set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
|
331 |
+
show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps to use this event. If fn is None, show_api will automatically be set to False.
|
332 |
+
"""
|
333 |
+
...
|
334 |
+
|
335 |
+
def blur(self,
|
336 |
+
fn: Callable | None,
|
337 |
+
inputs: Component | Sequence[Component] | set[Component] | None = None,
|
338 |
+
outputs: Component | Sequence[Component] | None = None,
|
339 |
+
api_name: str | None | Literal[False] = None,
|
340 |
+
scroll_to_output: bool = False,
|
341 |
+
show_progress: Literal["full", "minimal", "hidden"] = "full",
|
342 |
+
queue: bool | None = None,
|
343 |
+
batch: bool = False,
|
344 |
+
max_batch_size: int = 4,
|
345 |
+
preprocess: bool = True,
|
346 |
+
postprocess: bool = True,
|
347 |
+
cancels: dict[str, Any] | list[dict[str, Any]] | None = None,
|
348 |
+
every: float | None = None,
|
349 |
+
trigger_mode: Literal["once", "multiple", "always_last"] | None = None,
|
350 |
+
js: str | None = None,
|
351 |
+
concurrency_limit: int | None | Literal["default"] = "default",
|
352 |
+
concurrency_id: str | None = None,
|
353 |
+
show_api: bool = True) -> Dependency:
|
354 |
+
"""
|
355 |
+
Parameters:
|
356 |
+
fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
|
357 |
+
inputs: List of gradio.components to use as inputs. If the function takes no inputs, this should be an empty list.
|
358 |
+
outputs: List of gradio.components to use as outputs. If the function returns no outputs, this should be an empty list.
|
359 |
+
api_name: Defines how the endpoint appears in the API docs. Can be a string, None, or False. If False, the endpoint will not be exposed in the api docs. If set to None, the endpoint will be exposed in the api docs as an unnamed endpoint, although this behavior will be changed in Gradio 4.0. If set to a string, the endpoint will be exposed in the api docs with the given name.
|
360 |
+
scroll_to_output: If True, will scroll to output component on completion
|
361 |
+
show_progress: If True, will show progress animation while pending
|
362 |
+
queue: If True, will place the request on the queue, if the queue has been enabled. If False, will not put this event on the queue, even if the queue has been enabled. If None, will use the queue setting of the gradio app.
|
363 |
+
batch: If True, then the function should process a batch of inputs, meaning that it should accept a list of input values for each parameter. The lists should be of equal length (and be up to length `max_batch_size`). The function is then *required* to return a tuple of lists (even if there is only 1 output component), with each list in the tuple corresponding to one output component.
|
364 |
+
max_batch_size: Maximum number of inputs to batch together if this is called from the queue (only relevant if batch=True)
|
365 |
+
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
|
366 |
+
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
|
367 |
+
cancels: A list of other events to cancel when this listener is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method. Functions that have not yet run (or generators that are iterating) will be cancelled, but functions that are currently running will be allowed to finish.
|
368 |
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds.
|
369 |
+
trigger_mode: If "once" (default for all events except `.change()`) would not allow any submissions while an event is pending. If set to "multiple", unlimited submissions are allowed while pending, and "always_last" (default for `.change()` and `.key_up()` events) would allow a second submission after the pending event is complete.
|
370 |
+
js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
|
371 |
+
concurrency_limit: If set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
|
372 |
+
concurrency_id: If set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit.
|
373 |
+
show_api: whether to show this event in the "view API" page of the Gradio app, or in the ".view_api()" method of the Gradio clients. Unlike setting api_name to False, setting show_api to False will still allow downstream apps to use this event. If fn is None, show_api will automatically be set to False.
|
374 |
+
"""
|
375 |
+
...
|
src/backend/gradio_logsview/templates/component/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
*
|
src/backend/gradio_logsview/templates/component/Index-d65e8fec.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
src/backend/gradio_logsview/templates/component/dockerfile-1dc69d82.js
ADDED
@@ -0,0 +1,285 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function c(n) {
|
2 |
+
a(n, "start");
|
3 |
+
var t = {}, e = n.languageData || {}, s = !1;
|
4 |
+
for (var l in n)
|
5 |
+
if (l != e && n.hasOwnProperty(l))
|
6 |
+
for (var u = t[l] = [], o = n[l], r = 0; r < o.length; r++) {
|
7 |
+
var i = o[r];
|
8 |
+
u.push(new w(i, n)), (i.indent || i.dedent) && (s = !0);
|
9 |
+
}
|
10 |
+
return {
|
11 |
+
name: e.name,
|
12 |
+
startState: function() {
|
13 |
+
return { state: "start", pending: null, indent: s ? [] : null };
|
14 |
+
},
|
15 |
+
copyState: function(g) {
|
16 |
+
var x = { state: g.state, pending: g.pending, indent: g.indent && g.indent.slice(0) };
|
17 |
+
return g.stack && (x.stack = g.stack.slice(0)), x;
|
18 |
+
},
|
19 |
+
token: v(t),
|
20 |
+
indent: R(t, e),
|
21 |
+
languageData: e
|
22 |
+
};
|
23 |
+
}
|
24 |
+
function a(n, t) {
|
25 |
+
if (!n.hasOwnProperty(t))
|
26 |
+
throw new Error("Undefined state " + t + " in simple mode");
|
27 |
+
}
|
28 |
+
function h(n, t) {
|
29 |
+
if (!n)
|
30 |
+
return /(?:)/;
|
31 |
+
var e = "";
|
32 |
+
return n instanceof RegExp ? (n.ignoreCase && (e = "i"), n = n.source) : n = String(n), new RegExp((t === !1 ? "" : "^") + "(?:" + n + ")", e);
|
33 |
+
}
|
34 |
+
function y(n) {
|
35 |
+
if (!n)
|
36 |
+
return null;
|
37 |
+
if (n.apply)
|
38 |
+
return n;
|
39 |
+
if (typeof n == "string")
|
40 |
+
return n.replace(/\./g, " ");
|
41 |
+
for (var t = [], e = 0; e < n.length; e++)
|
42 |
+
t.push(n[e] && n[e].replace(/\./g, " "));
|
43 |
+
return t;
|
44 |
+
}
|
45 |
+
function w(n, t) {
|
46 |
+
(n.next || n.push) && a(t, n.next || n.push), this.regex = h(n.regex), this.token = y(n.token), this.data = n;
|
47 |
+
}
|
48 |
+
function v(n) {
|
49 |
+
return function(t, e) {
|
50 |
+
if (e.pending) {
|
51 |
+
var s = e.pending.shift();
|
52 |
+
return e.pending.length == 0 && (e.pending = null), t.pos += s.text.length, s.token;
|
53 |
+
}
|
54 |
+
for (var l = n[e.state], u = 0; u < l.length; u++) {
|
55 |
+
var o = l[u], r = (!o.data.sol || t.sol()) && t.match(o.regex);
|
56 |
+
if (r) {
|
57 |
+
o.data.next ? e.state = o.data.next : o.data.push ? ((e.stack || (e.stack = [])).push(e.state), e.state = o.data.push) : o.data.pop && e.stack && e.stack.length && (e.state = e.stack.pop()), o.data.indent && e.indent.push(t.indentation() + t.indentUnit), o.data.dedent && e.indent.pop();
|
58 |
+
var i = o.token;
|
59 |
+
if (i && i.apply && (i = i(r)), r.length > 2 && o.token && typeof o.token != "string") {
|
60 |
+
e.pending = [];
|
61 |
+
for (var g = 2; g < r.length; g++)
|
62 |
+
r[g] && e.pending.push({ text: r[g], token: o.token[g - 1] });
|
63 |
+
return t.backUp(r[0].length - (r[1] ? r[1].length : 0)), i[0];
|
64 |
+
} else
|
65 |
+
return i && i.join ? i[0] : i;
|
66 |
+
}
|
67 |
+
}
|
68 |
+
return t.next(), null;
|
69 |
+
};
|
70 |
+
}
|
71 |
+
function R(n, t) {
|
72 |
+
return function(e, s) {
|
73 |
+
if (e.indent == null || t.dontIndentStates && t.doneIndentState.indexOf(e.state) > -1)
|
74 |
+
return null;
|
75 |
+
var l = e.indent.length - 1, u = n[e.state];
|
76 |
+
n:
|
77 |
+
for (; ; ) {
|
78 |
+
for (var o = 0; o < u.length; o++) {
|
79 |
+
var r = u[o];
|
80 |
+
if (r.data.dedent && r.data.dedentIfLineStart !== !1) {
|
81 |
+
var i = r.regex.exec(s);
|
82 |
+
if (i && i[0]) {
|
83 |
+
l--, (r.next || r.push) && (u = n[r.next || r.push]), s = s.slice(i[0].length);
|
84 |
+
continue n;
|
85 |
+
}
|
86 |
+
}
|
87 |
+
}
|
88 |
+
break;
|
89 |
+
}
|
90 |
+
return l < 0 ? 0 : e.indent[l];
|
91 |
+
};
|
92 |
+
}
|
93 |
+
var p = "from", $ = new RegExp("^(\\s*)\\b(" + p + ")\\b", "i"), d = ["run", "cmd", "entrypoint", "shell"], b = new RegExp("^(\\s*)(" + d.join("|") + ")(\\s+\\[)", "i"), f = "expose", m = new RegExp("^(\\s*)(" + f + ")(\\s+)", "i"), S = [
|
94 |
+
"arg",
|
95 |
+
"from",
|
96 |
+
"maintainer",
|
97 |
+
"label",
|
98 |
+
"env",
|
99 |
+
"add",
|
100 |
+
"copy",
|
101 |
+
"volume",
|
102 |
+
"user",
|
103 |
+
"workdir",
|
104 |
+
"onbuild",
|
105 |
+
"stopsignal",
|
106 |
+
"healthcheck",
|
107 |
+
"shell"
|
108 |
+
], E = [p, f].concat(d).concat(S), k = "(" + E.join("|") + ")", I = new RegExp("^(\\s*)" + k + "(\\s*)(#.*)?$", "i"), O = new RegExp("^(\\s*)" + k + "(\\s+)", "i");
|
109 |
+
const D = c({
|
110 |
+
start: [
|
111 |
+
// Block comment: This is a line starting with a comment
|
112 |
+
{
|
113 |
+
regex: /^\s*#.*$/,
|
114 |
+
sol: !0,
|
115 |
+
token: "comment"
|
116 |
+
},
|
117 |
+
{
|
118 |
+
regex: $,
|
119 |
+
token: [null, "keyword"],
|
120 |
+
sol: !0,
|
121 |
+
next: "from"
|
122 |
+
},
|
123 |
+
// Highlight an instruction without any arguments (for convenience)
|
124 |
+
{
|
125 |
+
regex: I,
|
126 |
+
token: [null, "keyword", null, "error"],
|
127 |
+
sol: !0
|
128 |
+
},
|
129 |
+
{
|
130 |
+
regex: b,
|
131 |
+
token: [null, "keyword", null],
|
132 |
+
sol: !0,
|
133 |
+
next: "array"
|
134 |
+
},
|
135 |
+
{
|
136 |
+
regex: m,
|
137 |
+
token: [null, "keyword", null],
|
138 |
+
sol: !0,
|
139 |
+
next: "expose"
|
140 |
+
},
|
141 |
+
// Highlight an instruction followed by arguments
|
142 |
+
{
|
143 |
+
regex: O,
|
144 |
+
token: [null, "keyword", null],
|
145 |
+
sol: !0,
|
146 |
+
next: "arguments"
|
147 |
+
},
|
148 |
+
{
|
149 |
+
regex: /./,
|
150 |
+
token: null
|
151 |
+
}
|
152 |
+
],
|
153 |
+
from: [
|
154 |
+
{
|
155 |
+
regex: /\s*$/,
|
156 |
+
token: null,
|
157 |
+
next: "start"
|
158 |
+
},
|
159 |
+
{
|
160 |
+
// Line comment without instruction arguments is an error
|
161 |
+
regex: /(\s*)(#.*)$/,
|
162 |
+
token: [null, "error"],
|
163 |
+
next: "start"
|
164 |
+
},
|
165 |
+
{
|
166 |
+
regex: /(\s*\S+\s+)(as)/i,
|
167 |
+
token: [null, "keyword"],
|
168 |
+
next: "start"
|
169 |
+
},
|
170 |
+
// Fail safe return to start
|
171 |
+
{
|
172 |
+
token: null,
|
173 |
+
next: "start"
|
174 |
+
}
|
175 |
+
],
|
176 |
+
single: [
|
177 |
+
{
|
178 |
+
regex: /(?:[^\\']|\\.)/,
|
179 |
+
token: "string"
|
180 |
+
},
|
181 |
+
{
|
182 |
+
regex: /'/,
|
183 |
+
token: "string",
|
184 |
+
pop: !0
|
185 |
+
}
|
186 |
+
],
|
187 |
+
double: [
|
188 |
+
{
|
189 |
+
regex: /(?:[^\\"]|\\.)/,
|
190 |
+
token: "string"
|
191 |
+
},
|
192 |
+
{
|
193 |
+
regex: /"/,
|
194 |
+
token: "string",
|
195 |
+
pop: !0
|
196 |
+
}
|
197 |
+
],
|
198 |
+
array: [
|
199 |
+
{
|
200 |
+
regex: /\]/,
|
201 |
+
token: null,
|
202 |
+
next: "start"
|
203 |
+
},
|
204 |
+
{
|
205 |
+
regex: /"(?:[^\\"]|\\.)*"?/,
|
206 |
+
token: "string"
|
207 |
+
}
|
208 |
+
],
|
209 |
+
expose: [
|
210 |
+
{
|
211 |
+
regex: /\d+$/,
|
212 |
+
token: "number",
|
213 |
+
next: "start"
|
214 |
+
},
|
215 |
+
{
|
216 |
+
regex: /[^\d]+$/,
|
217 |
+
token: null,
|
218 |
+
next: "start"
|
219 |
+
},
|
220 |
+
{
|
221 |
+
regex: /\d+/,
|
222 |
+
token: "number"
|
223 |
+
},
|
224 |
+
{
|
225 |
+
regex: /[^\d]+/,
|
226 |
+
token: null
|
227 |
+
},
|
228 |
+
// Fail safe return to start
|
229 |
+
{
|
230 |
+
token: null,
|
231 |
+
next: "start"
|
232 |
+
}
|
233 |
+
],
|
234 |
+
arguments: [
|
235 |
+
{
|
236 |
+
regex: /^\s*#.*$/,
|
237 |
+
sol: !0,
|
238 |
+
token: "comment"
|
239 |
+
},
|
240 |
+
{
|
241 |
+
regex: /"(?:[^\\"]|\\.)*"?$/,
|
242 |
+
token: "string",
|
243 |
+
next: "start"
|
244 |
+
},
|
245 |
+
{
|
246 |
+
regex: /"/,
|
247 |
+
token: "string",
|
248 |
+
push: "double"
|
249 |
+
},
|
250 |
+
{
|
251 |
+
regex: /'(?:[^\\']|\\.)*'?$/,
|
252 |
+
token: "string",
|
253 |
+
next: "start"
|
254 |
+
},
|
255 |
+
{
|
256 |
+
regex: /'/,
|
257 |
+
token: "string",
|
258 |
+
push: "single"
|
259 |
+
},
|
260 |
+
{
|
261 |
+
regex: /[^#"']+[\\`]$/,
|
262 |
+
token: null
|
263 |
+
},
|
264 |
+
{
|
265 |
+
regex: /[^#"']+$/,
|
266 |
+
token: null,
|
267 |
+
next: "start"
|
268 |
+
},
|
269 |
+
{
|
270 |
+
regex: /[^#"']+/,
|
271 |
+
token: null
|
272 |
+
},
|
273 |
+
// Fail safe return to start
|
274 |
+
{
|
275 |
+
token: null,
|
276 |
+
next: "start"
|
277 |
+
}
|
278 |
+
],
|
279 |
+
languageData: {
|
280 |
+
commentTokens: { line: "#" }
|
281 |
+
}
|
282 |
+
});
|
283 |
+
export {
|
284 |
+
D as dockerFile
|
285 |
+
};
|
src/backend/gradio_logsview/templates/component/frontmatter-5c399b27.js
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { s, t as o, f as m, c as l, p as i, S as f } from "./Index-d65e8fec.js";
|
2 |
+
import { yaml as p } from "./yaml-cef3802d.js";
|
3 |
+
const n = /^---\s*$/m, F = {
|
4 |
+
defineNodes: [{ name: "Frontmatter", block: !0 }, "FrontmatterMark"],
|
5 |
+
props: [
|
6 |
+
s({
|
7 |
+
Frontmatter: [o.documentMeta, o.monospace],
|
8 |
+
FrontmatterMark: o.processingInstruction
|
9 |
+
}),
|
10 |
+
m.add({
|
11 |
+
Frontmatter: l,
|
12 |
+
FrontmatterMark: () => null
|
13 |
+
})
|
14 |
+
],
|
15 |
+
wrap: i((t) => {
|
16 |
+
const { parser: e } = f.define(p);
|
17 |
+
return t.type.name === "Frontmatter" ? {
|
18 |
+
parser: e,
|
19 |
+
overlay: [{ from: t.from + 4, to: t.to - 4 }]
|
20 |
+
} : null;
|
21 |
+
}),
|
22 |
+
parseBlock: [
|
23 |
+
{
|
24 |
+
name: "Frontmatter",
|
25 |
+
before: "HorizontalRule",
|
26 |
+
parse: (t, e) => {
|
27 |
+
let r;
|
28 |
+
const a = new Array();
|
29 |
+
if (t.lineStart === 0 && n.test(e.text)) {
|
30 |
+
for (a.push(t.elt("FrontmatterMark", 0, 4)); t.nextLine(); )
|
31 |
+
if (n.test(e.text)) {
|
32 |
+
r = t.lineStart + 4;
|
33 |
+
break;
|
34 |
+
}
|
35 |
+
return r !== void 0 && (a.push(t.elt("FrontmatterMark", r - 4, r)), t.addElement(t.elt("Frontmatter", 0, r, a))), !0;
|
36 |
+
}
|
37 |
+
return !1;
|
38 |
+
}
|
39 |
+
}
|
40 |
+
]
|
41 |
+
};
|
42 |
+
export {
|
43 |
+
F as frontmatter
|
44 |
+
};
|
src/backend/gradio_logsview/templates/component/index-0383c262.js
ADDED
@@ -0,0 +1,547 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { C, E as Y, L as I, a as x } from "./index-2ee8fec2.js";
|
2 |
+
import { s as A, t as i, h as t, a as k, L as J, b as B, B as f, G as N, d as D, f as L, c as K, H as h, e as F, i as H, g as M, F as OO, E as aO, I as QO, w as iO, N as eO } from "./Index-d65e8fec.js";
|
3 |
+
const $O = 309, _ = 1, ZO = 2, rO = 3, nO = 310, pO = 312, tO = 313, oO = 4, PO = 5, lO = 0, y = [
|
4 |
+
9,
|
5 |
+
10,
|
6 |
+
11,
|
7 |
+
12,
|
8 |
+
13,
|
9 |
+
32,
|
10 |
+
133,
|
11 |
+
160,
|
12 |
+
5760,
|
13 |
+
8192,
|
14 |
+
8193,
|
15 |
+
8194,
|
16 |
+
8195,
|
17 |
+
8196,
|
18 |
+
8197,
|
19 |
+
8198,
|
20 |
+
8199,
|
21 |
+
8200,
|
22 |
+
8201,
|
23 |
+
8202,
|
24 |
+
8232,
|
25 |
+
8233,
|
26 |
+
8239,
|
27 |
+
8287,
|
28 |
+
12288
|
29 |
+
], v = 125, cO = 59, g = 47, sO = 42, SO = 43, XO = 45, dO = 60, YO = 44, wO = new C({
|
30 |
+
start: !1,
|
31 |
+
shift(O, a) {
|
32 |
+
return a == oO || a == PO || a == pO ? O : a == tO;
|
33 |
+
},
|
34 |
+
strict: !1
|
35 |
+
}), fO = new Y((O, a) => {
|
36 |
+
let { next: Q } = O;
|
37 |
+
(Q == v || Q == -1 || a.context) && O.acceptToken(nO);
|
38 |
+
}, { contextual: !0, fallback: !0 }), WO = new Y((O, a) => {
|
39 |
+
let { next: Q } = O, e;
|
40 |
+
y.indexOf(Q) > -1 || Q == g && ((e = O.peek(1)) == g || e == sO) || Q != v && Q != cO && Q != -1 && !a.context && O.acceptToken($O);
|
41 |
+
}, { contextual: !0 }), qO = new Y((O, a) => {
|
42 |
+
let { next: Q } = O;
|
43 |
+
if ((Q == SO || Q == XO) && (O.advance(), Q == O.next)) {
|
44 |
+
O.advance();
|
45 |
+
let e = !a.context && a.canShift(_);
|
46 |
+
O.acceptToken(e ? _ : ZO);
|
47 |
+
}
|
48 |
+
}, { contextual: !0 });
|
49 |
+
function W(O, a) {
|
50 |
+
return O >= 65 && O <= 90 || O >= 97 && O <= 122 || O == 95 || O >= 192 || !a && O >= 48 && O <= 57;
|
51 |
+
}
|
52 |
+
const yO = new Y((O, a) => {
|
53 |
+
if (O.next != dO || !a.dialectEnabled(lO) || (O.advance(), O.next == g))
|
54 |
+
return;
|
55 |
+
let Q = 0;
|
56 |
+
for (; y.indexOf(O.next) > -1; )
|
57 |
+
O.advance(), Q++;
|
58 |
+
if (W(O.next, !0)) {
|
59 |
+
for (O.advance(), Q++; W(O.next, !1); )
|
60 |
+
O.advance(), Q++;
|
61 |
+
for (; y.indexOf(O.next) > -1; )
|
62 |
+
O.advance(), Q++;
|
63 |
+
if (O.next == YO)
|
64 |
+
return;
|
65 |
+
for (let e = 0; ; e++) {
|
66 |
+
if (e == 7) {
|
67 |
+
if (!W(O.next, !0))
|
68 |
+
return;
|
69 |
+
break;
|
70 |
+
}
|
71 |
+
if (O.next != "extends".charCodeAt(e))
|
72 |
+
break;
|
73 |
+
O.advance(), Q++;
|
74 |
+
}
|
75 |
+
}
|
76 |
+
O.acceptToken(rO, -Q);
|
77 |
+
}), gO = A({
|
78 |
+
"get set async static": i.modifier,
|
79 |
+
"for while do if else switch try catch finally return throw break continue default case": i.controlKeyword,
|
80 |
+
"in of await yield void typeof delete instanceof": i.operatorKeyword,
|
81 |
+
"let var const using function class extends": i.definitionKeyword,
|
82 |
+
"import export from": i.moduleKeyword,
|
83 |
+
"with debugger as new": i.keyword,
|
84 |
+
TemplateString: i.special(i.string),
|
85 |
+
super: i.atom,
|
86 |
+
BooleanLiteral: i.bool,
|
87 |
+
this: i.self,
|
88 |
+
null: i.null,
|
89 |
+
Star: i.modifier,
|
90 |
+
VariableName: i.variableName,
|
91 |
+
"CallExpression/VariableName TaggedTemplateExpression/VariableName": i.function(i.variableName),
|
92 |
+
VariableDefinition: i.definition(i.variableName),
|
93 |
+
Label: i.labelName,
|
94 |
+
PropertyName: i.propertyName,
|
95 |
+
PrivatePropertyName: i.special(i.propertyName),
|
96 |
+
"CallExpression/MemberExpression/PropertyName": i.function(i.propertyName),
|
97 |
+
"FunctionDeclaration/VariableDefinition": i.function(i.definition(i.variableName)),
|
98 |
+
"ClassDeclaration/VariableDefinition": i.definition(i.className),
|
99 |
+
PropertyDefinition: i.definition(i.propertyName),
|
100 |
+
PrivatePropertyDefinition: i.definition(i.special(i.propertyName)),
|
101 |
+
UpdateOp: i.updateOperator,
|
102 |
+
"LineComment Hashbang": i.lineComment,
|
103 |
+
BlockComment: i.blockComment,
|
104 |
+
Number: i.number,
|
105 |
+
String: i.string,
|
106 |
+
Escape: i.escape,
|
107 |
+
ArithOp: i.arithmeticOperator,
|
108 |
+
LogicOp: i.logicOperator,
|
109 |
+
BitOp: i.bitwiseOperator,
|
110 |
+
CompareOp: i.compareOperator,
|
111 |
+
RegExp: i.regexp,
|
112 |
+
Equals: i.definitionOperator,
|
113 |
+
Arrow: i.function(i.punctuation),
|
114 |
+
": Spread": i.punctuation,
|
115 |
+
"( )": i.paren,
|
116 |
+
"[ ]": i.squareBracket,
|
117 |
+
"{ }": i.brace,
|
118 |
+
"InterpolationStart InterpolationEnd": i.special(i.brace),
|
119 |
+
".": i.derefOperator,
|
120 |
+
", ;": i.separator,
|
121 |
+
"@": i.meta,
|
122 |
+
TypeName: i.typeName,
|
123 |
+
TypeDefinition: i.definition(i.typeName),
|
124 |
+
"type enum interface implements namespace module declare": i.definitionKeyword,
|
125 |
+
"abstract global Privacy readonly override": i.modifier,
|
126 |
+
"is keyof unique infer": i.operatorKeyword,
|
127 |
+
JSXAttributeValue: i.attributeValue,
|
128 |
+
JSXText: i.content,
|
129 |
+
"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag": i.angleBracket,
|
130 |
+
"JSXIdentifier JSXNameSpacedName": i.tagName,
|
131 |
+
"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName": i.attributeName,
|
132 |
+
"JSXBuiltin/JSXIdentifier": i.standard(i.tagName)
|
133 |
+
}), kO = { __proto__: null, export: 18, as: 23, from: 31, default: 34, async: 39, function: 40, extends: 52, this: 56, true: 64, false: 64, null: 76, void: 80, typeof: 84, super: 102, new: 136, delete: 152, yield: 161, await: 165, class: 170, public: 227, private: 227, protected: 227, readonly: 229, instanceof: 248, satisfies: 251, in: 252, const: 254, import: 286, keyof: 339, unique: 343, infer: 349, is: 385, abstract: 405, implements: 407, type: 409, let: 412, var: 414, using: 417, interface: 423, enum: 427, namespace: 433, module: 435, declare: 439, global: 443, for: 462, of: 471, while: 474, with: 478, do: 482, if: 486, else: 488, switch: 492, case: 498, try: 504, catch: 508, finally: 512, return: 516, throw: 520, break: 524, continue: 528, debugger: 532 }, mO = { __proto__: null, async: 123, get: 125, set: 127, declare: 187, public: 189, private: 189, protected: 189, static: 191, abstract: 193, override: 195, readonly: 201, accessor: 203, new: 389 }, bO = { __proto__: null, "<": 143 }, xO = I.deserialize({
|
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ithOp JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",
|
139 |
+
maxTerm: 372,
|
140 |
+
context: wO,
|
141 |
+
nodeProps: [
|
142 |
+
["isolate", -8, 4, 5, 13, 33, 35, 48, 50, 52, ""],
|
143 |
+
["group", -26, 8, 16, 18, 65, 201, 205, 209, 210, 212, 215, 218, 228, 230, 236, 238, 240, 242, 245, 251, 257, 259, 261, 263, 265, 267, 268, "Statement", -32, 12, 13, 28, 31, 32, 38, 48, 51, 52, 54, 59, 67, 75, 79, 81, 83, 84, 106, 107, 116, 117, 134, 137, 139, 140, 141, 142, 144, 145, 164, 165, 167, "Expression", -23, 27, 29, 33, 37, 39, 41, 168, 170, 172, 173, 175, 176, 177, 179, 180, 181, 183, 184, 185, 195, 197, 199, 200, "Type", -3, 87, 99, 105, "ClassItem"],
|
144 |
+
["openedBy", 22, "<", 34, "InterpolationStart", 53, "[", 57, "{", 72, "(", 157, "JSXStartCloseTag"],
|
145 |
+
["closedBy", 23, ">", 36, "InterpolationEnd", 47, "]", 58, "}", 73, ")", 162, "JSXEndTag"]
|
146 |
+
],
|
147 |
+
propSources: [gO],
|
148 |
+
skippedNodes: [0, 4, 5, 271],
|
149 |
+
repeatNodeCount: 37,
|
150 |
+
tokenData: "$HR(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b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c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$Bp#BZ$ISEr$IS$I_$Bp$I_$JTEr$JT$JU$Bp$JU$KVEr$KV$KW$Bp$KW&FUEr&FU&FV$Bp&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$Bp?HUOEr(CS$F^k$f&j(Op(R!b'u(;d$Y#t'{&;d([!LYOY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",
|
151 |
+
tokenizers: [WO, qO, yO, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, fO, new x("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOt~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(Z~~", 141, 332), new x("j~RQYZXz{^~^O'x~~aP!P!Qd~iO'y~~", 25, 315)],
|
152 |
+
topRules: { Script: [0, 6], SingleExpression: [1, 269], SingleClassItem: [2, 270] },
|
153 |
+
dialects: { jsx: 0, ts: 14826 },
|
154 |
+
dynamicPrecedences: { 69: 1, 79: 1, 81: 1, 165: 1, 193: 1 },
|
155 |
+
specialized: [{ term: 319, get: (O) => kO[O] || -1 }, { term: 334, get: (O) => mO[O] || -1 }, { term: 70, get: (O) => bO[O] || -1 }],
|
156 |
+
tokenPrec: 14850
|
157 |
+
}), G = [
|
158 |
+
/* @__PURE__ */ t("function ${name}(${params}) {\n ${}\n}", {
|
159 |
+
label: "function",
|
160 |
+
detail: "definition",
|
161 |
+
type: "keyword"
|
162 |
+
}),
|
163 |
+
/* @__PURE__ */ t("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}", {
|
164 |
+
label: "for",
|
165 |
+
detail: "loop",
|
166 |
+
type: "keyword"
|
167 |
+
}),
|
168 |
+
/* @__PURE__ */ t("for (let ${name} of ${collection}) {\n ${}\n}", {
|
169 |
+
label: "for",
|
170 |
+
detail: "of loop",
|
171 |
+
type: "keyword"
|
172 |
+
}),
|
173 |
+
/* @__PURE__ */ t("do {\n ${}\n} while (${})", {
|
174 |
+
label: "do",
|
175 |
+
detail: "loop",
|
176 |
+
type: "keyword"
|
177 |
+
}),
|
178 |
+
/* @__PURE__ */ t("while (${}) {\n ${}\n}", {
|
179 |
+
label: "while",
|
180 |
+
detail: "loop",
|
181 |
+
type: "keyword"
|
182 |
+
}),
|
183 |
+
/* @__PURE__ */ t(`try {
|
184 |
+
\${}
|
185 |
+
} catch (\${error}) {
|
186 |
+
\${}
|
187 |
+
}`, {
|
188 |
+
label: "try",
|
189 |
+
detail: "/ catch block",
|
190 |
+
type: "keyword"
|
191 |
+
}),
|
192 |
+
/* @__PURE__ */ t("if (${}) {\n ${}\n}", {
|
193 |
+
label: "if",
|
194 |
+
detail: "block",
|
195 |
+
type: "keyword"
|
196 |
+
}),
|
197 |
+
/* @__PURE__ */ t(`if (\${}) {
|
198 |
+
\${}
|
199 |
+
} else {
|
200 |
+
\${}
|
201 |
+
}`, {
|
202 |
+
label: "if",
|
203 |
+
detail: "/ else block",
|
204 |
+
type: "keyword"
|
205 |
+
}),
|
206 |
+
/* @__PURE__ */ t(`class \${name} {
|
207 |
+
constructor(\${params}) {
|
208 |
+
\${}
|
209 |
+
}
|
210 |
+
}`, {
|
211 |
+
label: "class",
|
212 |
+
detail: "definition",
|
213 |
+
type: "keyword"
|
214 |
+
}),
|
215 |
+
/* @__PURE__ */ t('import {${names}} from "${module}"\n${}', {
|
216 |
+
label: "import",
|
217 |
+
detail: "named",
|
218 |
+
type: "keyword"
|
219 |
+
}),
|
220 |
+
/* @__PURE__ */ t('import ${name} from "${module}"\n${}', {
|
221 |
+
label: "import",
|
222 |
+
detail: "default",
|
223 |
+
type: "keyword"
|
224 |
+
})
|
225 |
+
], _O = /* @__PURE__ */ G.concat([
|
226 |
+
/* @__PURE__ */ t("interface ${name} {\n ${}\n}", {
|
227 |
+
label: "interface",
|
228 |
+
detail: "definition",
|
229 |
+
type: "keyword"
|
230 |
+
}),
|
231 |
+
/* @__PURE__ */ t("type ${name} = ${type}", {
|
232 |
+
label: "type",
|
233 |
+
detail: "definition",
|
234 |
+
type: "keyword"
|
235 |
+
}),
|
236 |
+
/* @__PURE__ */ t("enum ${name} {\n ${}\n}", {
|
237 |
+
label: "enum",
|
238 |
+
detail: "definition",
|
239 |
+
type: "keyword"
|
240 |
+
})
|
241 |
+
]), j = /* @__PURE__ */ new eO(), T = /* @__PURE__ */ new Set([
|
242 |
+
"Script",
|
243 |
+
"Block",
|
244 |
+
"FunctionExpression",
|
245 |
+
"FunctionDeclaration",
|
246 |
+
"ArrowFunction",
|
247 |
+
"MethodDeclaration",
|
248 |
+
"ForStatement"
|
249 |
+
]);
|
250 |
+
function S(O) {
|
251 |
+
return (a, Q) => {
|
252 |
+
let e = a.node.getChild("VariableDefinition");
|
253 |
+
return e && Q(e, O), !0;
|
254 |
+
};
|
255 |
+
}
|
256 |
+
const jO = ["FunctionDeclaration"], uO = {
|
257 |
+
FunctionDeclaration: /* @__PURE__ */ S("function"),
|
258 |
+
ClassDeclaration: /* @__PURE__ */ S("class"),
|
259 |
+
ClassExpression: () => !0,
|
260 |
+
EnumDeclaration: /* @__PURE__ */ S("constant"),
|
261 |
+
TypeAliasDeclaration: /* @__PURE__ */ S("type"),
|
262 |
+
NamespaceDeclaration: /* @__PURE__ */ S("namespace"),
|
263 |
+
VariableDefinition(O, a) {
|
264 |
+
O.matchContext(jO) || a(O, "variable");
|
265 |
+
},
|
266 |
+
TypeDefinition(O, a) {
|
267 |
+
a(O, "type");
|
268 |
+
},
|
269 |
+
__proto__: null
|
270 |
+
};
|
271 |
+
function U(O, a) {
|
272 |
+
let Q = j.get(a);
|
273 |
+
if (Q)
|
274 |
+
return Q;
|
275 |
+
let e = [], Z = !0;
|
276 |
+
function r($, n) {
|
277 |
+
let o = O.sliceString($.from, $.to);
|
278 |
+
e.push({ label: o, type: n });
|
279 |
+
}
|
280 |
+
return a.cursor(QO.IncludeAnonymous).iterate(($) => {
|
281 |
+
if (Z)
|
282 |
+
Z = !1;
|
283 |
+
else if ($.name) {
|
284 |
+
let n = uO[$.name];
|
285 |
+
if (n && n($, r) || T.has($.name))
|
286 |
+
return !1;
|
287 |
+
} else if ($.to - $.from > 8192) {
|
288 |
+
for (let n of U(O, $.node))
|
289 |
+
e.push(n);
|
290 |
+
return !1;
|
291 |
+
}
|
292 |
+
}), j.set(a, e), e;
|
293 |
+
}
|
294 |
+
const d = /^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/, m = [
|
295 |
+
"TemplateString",
|
296 |
+
"String",
|
297 |
+
"RegExp",
|
298 |
+
"LineComment",
|
299 |
+
"BlockComment",
|
300 |
+
"VariableDefinition",
|
301 |
+
"TypeDefinition",
|
302 |
+
"Label",
|
303 |
+
"PropertyDefinition",
|
304 |
+
"PropertyName",
|
305 |
+
"PrivatePropertyDefinition",
|
306 |
+
"PrivatePropertyName",
|
307 |
+
".",
|
308 |
+
"?."
|
309 |
+
];
|
310 |
+
function RO(O) {
|
311 |
+
let a = k(O.state).resolveInner(O.pos, -1);
|
312 |
+
if (m.indexOf(a.name) > -1)
|
313 |
+
return null;
|
314 |
+
let Q = a.name == "VariableName" || a.to - a.from < 20 && d.test(O.state.sliceDoc(a.from, a.to));
|
315 |
+
if (!Q && !O.explicit)
|
316 |
+
return null;
|
317 |
+
let e = [];
|
318 |
+
for (let Z = a; Z; Z = Z.parent)
|
319 |
+
T.has(Z.name) && (e = e.concat(U(O.state.doc, Z)));
|
320 |
+
return {
|
321 |
+
options: e,
|
322 |
+
from: Q ? a.from : O.pos,
|
323 |
+
validFor: d
|
324 |
+
};
|
325 |
+
}
|
326 |
+
function q(O, a, Q) {
|
327 |
+
var e;
|
328 |
+
let Z = [];
|
329 |
+
for (; ; ) {
|
330 |
+
let r = a.firstChild, $;
|
331 |
+
if ((r == null ? void 0 : r.name) == "VariableName")
|
332 |
+
return Z.push(O(r)), { path: Z.reverse(), name: Q };
|
333 |
+
if ((r == null ? void 0 : r.name) == "MemberExpression" && ((e = $ = r.lastChild) === null || e === void 0 ? void 0 : e.name) == "PropertyName")
|
334 |
+
Z.push(O($)), a = r;
|
335 |
+
else
|
336 |
+
return null;
|
337 |
+
}
|
338 |
+
}
|
339 |
+
function hO(O) {
|
340 |
+
let a = (e) => O.state.doc.sliceString(e.from, e.to), Q = k(O.state).resolveInner(O.pos, -1);
|
341 |
+
return Q.name == "PropertyName" ? q(a, Q.parent, a(Q)) : (Q.name == "." || Q.name == "?.") && Q.parent.name == "MemberExpression" ? q(a, Q.parent, "") : m.indexOf(Q.name) > -1 ? null : Q.name == "VariableName" || Q.to - Q.from < 20 && d.test(a(Q)) ? { path: [], name: a(Q) } : Q.name == "MemberExpression" ? q(a, Q, "") : O.explicit ? { path: [], name: "" } : null;
|
342 |
+
}
|
343 |
+
function vO(O, a) {
|
344 |
+
let Q = [], e = /* @__PURE__ */ new Set();
|
345 |
+
for (let Z = 0; ; Z++) {
|
346 |
+
for (let $ of (Object.getOwnPropertyNames || Object.keys)(O)) {
|
347 |
+
if (!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test($) || e.has($))
|
348 |
+
continue;
|
349 |
+
e.add($);
|
350 |
+
let n;
|
351 |
+
try {
|
352 |
+
n = O[$];
|
353 |
+
} catch {
|
354 |
+
continue;
|
355 |
+
}
|
356 |
+
Q.push({
|
357 |
+
label: $,
|
358 |
+
type: typeof n == "function" ? /^[A-Z]/.test($) ? "class" : a ? "function" : "method" : a ? "variable" : "property",
|
359 |
+
boost: -Z
|
360 |
+
});
|
361 |
+
}
|
362 |
+
let r = Object.getPrototypeOf(O);
|
363 |
+
if (!r)
|
364 |
+
return Q;
|
365 |
+
O = r;
|
366 |
+
}
|
367 |
+
}
|
368 |
+
function BO(O) {
|
369 |
+
let a = /* @__PURE__ */ new Map();
|
370 |
+
return (Q) => {
|
371 |
+
let e = hO(Q);
|
372 |
+
if (!e)
|
373 |
+
return null;
|
374 |
+
let Z = O;
|
375 |
+
for (let $ of e.path)
|
376 |
+
if (Z = Z[$], !Z)
|
377 |
+
return null;
|
378 |
+
let r = a.get(Z);
|
379 |
+
return r || a.set(Z, r = vO(Z, !e.path.length)), {
|
380 |
+
from: Q.pos - e.name.length,
|
381 |
+
options: r,
|
382 |
+
validFor: d
|
383 |
+
};
|
384 |
+
};
|
385 |
+
}
|
386 |
+
const l = /* @__PURE__ */ J.define({
|
387 |
+
name: "javascript",
|
388 |
+
parser: /* @__PURE__ */ xO.configure({
|
389 |
+
props: [
|
390 |
+
/* @__PURE__ */ B.add({
|
391 |
+
IfStatement: /* @__PURE__ */ f({ except: /^\s*({|else\b)/ }),
|
392 |
+
TryStatement: /* @__PURE__ */ f({ except: /^\s*({|catch\b|finally\b)/ }),
|
393 |
+
LabeledStatement: N,
|
394 |
+
SwitchBody: (O) => {
|
395 |
+
let a = O.textAfter, Q = /^\s*\}/.test(a), e = /^\s*(case|default)\b/.test(a);
|
396 |
+
return O.baseIndent + (Q ? 0 : e ? 1 : 2) * O.unit;
|
397 |
+
},
|
398 |
+
Block: /* @__PURE__ */ D({ closing: "}" }),
|
399 |
+
ArrowFunction: (O) => O.baseIndent + O.unit,
|
400 |
+
"TemplateString BlockComment": () => null,
|
401 |
+
"Statement Property": /* @__PURE__ */ f({ except: /^{/ }),
|
402 |
+
JSXElement(O) {
|
403 |
+
let a = /^\s*<\//.test(O.textAfter);
|
404 |
+
return O.lineIndent(O.node.from) + (a ? 0 : O.unit);
|
405 |
+
},
|
406 |
+
JSXEscape(O) {
|
407 |
+
let a = /\s*\}/.test(O.textAfter);
|
408 |
+
return O.lineIndent(O.node.from) + (a ? 0 : O.unit);
|
409 |
+
},
|
410 |
+
"JSXOpenTag JSXSelfClosingTag"(O) {
|
411 |
+
return O.column(O.node.from) + O.unit;
|
412 |
+
}
|
413 |
+
}),
|
414 |
+
/* @__PURE__ */ L.add({
|
415 |
+
"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType": K,
|
416 |
+
BlockComment(O) {
|
417 |
+
return { from: O.from + 2, to: O.to - 2 };
|
418 |
+
}
|
419 |
+
})
|
420 |
+
]
|
421 |
+
}),
|
422 |
+
languageData: {
|
423 |
+
closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] },
|
424 |
+
commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
|
425 |
+
indentOnInput: /^\s*(?:case |default:|\{|\}|<\/)$/,
|
426 |
+
wordChars: "$"
|
427 |
+
}
|
428 |
+
}), V = {
|
429 |
+
test: (O) => /^JSX/.test(O.name),
|
430 |
+
facet: /* @__PURE__ */ iO({ commentTokens: { block: { open: "{/*", close: "*/}" } } })
|
431 |
+
}, GO = /* @__PURE__ */ l.configure({ dialect: "ts" }, "typescript"), TO = /* @__PURE__ */ l.configure({
|
432 |
+
dialect: "jsx",
|
433 |
+
props: [/* @__PURE__ */ h.add((O) => O.isTop ? [V] : void 0)]
|
434 |
+
}), UO = /* @__PURE__ */ l.configure({
|
435 |
+
dialect: "jsx ts",
|
436 |
+
props: [/* @__PURE__ */ h.add((O) => O.isTop ? [V] : void 0)]
|
437 |
+
}, "typescript");
|
438 |
+
let z = (O) => ({ label: O, type: "keyword" });
|
439 |
+
const E = /* @__PURE__ */ "break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(z), VO = /* @__PURE__ */ E.concat(/* @__PURE__ */ ["declare", "implements", "private", "protected", "public"].map(z));
|
440 |
+
function NO(O = {}) {
|
441 |
+
let a = O.jsx ? O.typescript ? UO : TO : O.typescript ? GO : l, Q = O.typescript ? _O.concat(VO) : G.concat(E);
|
442 |
+
return new F(a, [
|
443 |
+
l.data.of({
|
444 |
+
autocomplete: H(m, M(Q))
|
445 |
+
}),
|
446 |
+
l.data.of({
|
447 |
+
autocomplete: RO
|
448 |
+
}),
|
449 |
+
O.jsx ? CO : []
|
450 |
+
]);
|
451 |
+
}
|
452 |
+
function zO(O) {
|
453 |
+
for (; ; ) {
|
454 |
+
if (O.name == "JSXOpenTag" || O.name == "JSXSelfClosingTag" || O.name == "JSXFragmentTag")
|
455 |
+
return O;
|
456 |
+
if (O.name == "JSXEscape" || !O.parent)
|
457 |
+
return null;
|
458 |
+
O = O.parent;
|
459 |
+
}
|
460 |
+
}
|
461 |
+
function u(O, a, Q = O.length) {
|
462 |
+
for (let e = a == null ? void 0 : a.firstChild; e; e = e.nextSibling)
|
463 |
+
if (e.name == "JSXIdentifier" || e.name == "JSXBuiltin" || e.name == "JSXNamespacedName" || e.name == "JSXMemberExpression")
|
464 |
+
return O.sliceString(e.from, Math.min(e.to, Q));
|
465 |
+
return "";
|
466 |
+
}
|
467 |
+
const EO = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), CO = /* @__PURE__ */ OO.inputHandler.of((O, a, Q, e, Z) => {
|
468 |
+
if ((EO ? O.composing : O.compositionStarted) || O.state.readOnly || a != Q || e != ">" && e != "/" || !l.isActiveAt(O.state, a, -1))
|
469 |
+
return !1;
|
470 |
+
let r = Z(), { state: $ } = r, n = $.changeByRange((o) => {
|
471 |
+
var c;
|
472 |
+
let { head: p } = o, P = k($).resolveInner(p - 1, -1), X;
|
473 |
+
if (P.name == "JSXStartTag" && (P = P.parent), !($.doc.sliceString(p - 1, p) != e || P.name == "JSXAttributeValue" && P.to > p)) {
|
474 |
+
if (e == ">" && P.name == "JSXFragmentTag")
|
475 |
+
return { range: o, changes: { from: p, insert: "</>" } };
|
476 |
+
if (e == "/" && P.name == "JSXStartCloseTag") {
|
477 |
+
let s = P.parent, w = s.parent;
|
478 |
+
if (w && s.from == p - 2 && ((X = u($.doc, w.firstChild, p)) || ((c = w.firstChild) === null || c === void 0 ? void 0 : c.name) == "JSXFragmentTag")) {
|
479 |
+
let b = `${X}>`;
|
480 |
+
return { range: aO.cursor(p + b.length, -1), changes: { from: p, insert: b } };
|
481 |
+
}
|
482 |
+
} else if (e == ">") {
|
483 |
+
let s = zO(P);
|
484 |
+
if (s && s.name == "JSXOpenTag" && !/^\/?>|^<\//.test($.doc.sliceString(p, p + 2)) && (X = u($.doc, s, p)))
|
485 |
+
return { range: o, changes: { from: p, insert: `</${X}>` } };
|
486 |
+
}
|
487 |
+
}
|
488 |
+
return { range: o };
|
489 |
+
});
|
490 |
+
return n.changes.empty ? !1 : (O.dispatch([
|
491 |
+
r,
|
492 |
+
$.update(n, { userEvent: "input.complete", scrollIntoView: !0 })
|
493 |
+
]), !0);
|
494 |
+
});
|
495 |
+
function DO(O, a) {
|
496 |
+
return a || (a = {
|
497 |
+
parserOptions: { ecmaVersion: 2019, sourceType: "module" },
|
498 |
+
env: { browser: !0, node: !0, es6: !0, es2015: !0, es2017: !0, es2020: !0 },
|
499 |
+
rules: {}
|
500 |
+
}, O.getRules().forEach((Q, e) => {
|
501 |
+
Q.meta.docs.recommended && (a.rules[e] = 2);
|
502 |
+
})), (Q) => {
|
503 |
+
let { state: e } = Q, Z = [];
|
504 |
+
for (let { from: r, to: $ } of l.findRegions(e)) {
|
505 |
+
let n = e.doc.lineAt(r), o = { line: n.number - 1, col: r - n.from, pos: r };
|
506 |
+
for (let c of O.verify(e.sliceDoc(r, $), a))
|
507 |
+
Z.push(IO(c, e.doc, o));
|
508 |
+
}
|
509 |
+
return Z;
|
510 |
+
};
|
511 |
+
}
|
512 |
+
function R(O, a, Q, e) {
|
513 |
+
return Q.line(O + e.line).from + a + (O == 1 ? e.col - 1 : -1);
|
514 |
+
}
|
515 |
+
function IO(O, a, Q) {
|
516 |
+
let e = R(O.line, O.column, a, Q), Z = {
|
517 |
+
from: e,
|
518 |
+
to: O.endLine != null && O.endColumn != 1 ? R(O.endLine, O.endColumn, a, Q) : e,
|
519 |
+
message: O.message,
|
520 |
+
source: O.ruleId ? "eslint:" + O.ruleId : "eslint",
|
521 |
+
severity: O.severity == 1 ? "warning" : "error"
|
522 |
+
};
|
523 |
+
if (O.fix) {
|
524 |
+
let { range: r, text: $ } = O.fix, n = r[0] + Q.pos - e, o = r[1] + Q.pos - e;
|
525 |
+
Z.actions = [{
|
526 |
+
name: "fix",
|
527 |
+
apply(c, p) {
|
528 |
+
c.dispatch({ changes: { from: p + n, to: p + o, insert: $ }, scrollIntoView: !0 });
|
529 |
+
}
|
530 |
+
}];
|
531 |
+
}
|
532 |
+
return Z;
|
533 |
+
}
|
534 |
+
export {
|
535 |
+
CO as autoCloseTags,
|
536 |
+
hO as completionPath,
|
537 |
+
DO as esLint,
|
538 |
+
NO as javascript,
|
539 |
+
l as javascriptLanguage,
|
540 |
+
TO as jsxLanguage,
|
541 |
+
RO as localCompletionSource,
|
542 |
+
BO as scopeCompletionSource,
|
543 |
+
G as snippets,
|
544 |
+
UO as tsxLanguage,
|
545 |
+
GO as typescriptLanguage,
|
546 |
+
_O as typescriptSnippets
|
547 |
+
};
|
src/backend/gradio_logsview/templates/component/index-15a09f21.js
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { L as s } from "./index-2ee8fec2.js";
|
2 |
+
import { s as n, t as r, L as o, b as P, B as a, f as Q, c as i, e as c } from "./Index-d65e8fec.js";
|
3 |
+
const g = n({
|
4 |
+
String: r.string,
|
5 |
+
Number: r.number,
|
6 |
+
"True False": r.bool,
|
7 |
+
PropertyName: r.propertyName,
|
8 |
+
Null: r.null,
|
9 |
+
",": r.separator,
|
10 |
+
"[ ]": r.squareBracket,
|
11 |
+
"{ }": r.brace
|
12 |
+
}), p = s.deserialize({
|
13 |
+
version: 14,
|
14 |
+
states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",
|
15 |
+
stateData: "#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",
|
16 |
+
goto: "!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
|
17 |
+
nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",
|
18 |
+
maxTerm: 25,
|
19 |
+
nodeProps: [
|
20 |
+
["isolate", -2, 6, 11, ""],
|
21 |
+
["openedBy", 7, "{", 12, "["],
|
22 |
+
["closedBy", 8, "}", 13, "]"]
|
23 |
+
],
|
24 |
+
propSources: [g],
|
25 |
+
skippedNodes: [0],
|
26 |
+
repeatNodeCount: 2,
|
27 |
+
tokenData: "(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",
|
28 |
+
tokenizers: [0],
|
29 |
+
topRules: { JsonText: [0, 1] },
|
30 |
+
tokenPrec: 0
|
31 |
+
}), d = () => (t) => {
|
32 |
+
try {
|
33 |
+
JSON.parse(t.state.doc.toString());
|
34 |
+
} catch (O) {
|
35 |
+
if (!(O instanceof SyntaxError))
|
36 |
+
throw O;
|
37 |
+
const e = u(O, t.state.doc);
|
38 |
+
return [{
|
39 |
+
from: e,
|
40 |
+
message: O.message,
|
41 |
+
severity: "error",
|
42 |
+
to: e
|
43 |
+
}];
|
44 |
+
}
|
45 |
+
return [];
|
46 |
+
};
|
47 |
+
function u(t, O) {
|
48 |
+
let e;
|
49 |
+
return (e = t.message.match(/at position (\d+)/)) ? Math.min(+e[1], O.length) : (e = t.message.match(/at line (\d+) column (\d+)/)) ? Math.min(O.line(+e[1]).from + +e[2] - 1, O.length) : 0;
|
50 |
+
}
|
51 |
+
const l = /* @__PURE__ */ o.define({
|
52 |
+
name: "json",
|
53 |
+
parser: /* @__PURE__ */ p.configure({
|
54 |
+
props: [
|
55 |
+
/* @__PURE__ */ P.add({
|
56 |
+
Object: /* @__PURE__ */ a({ except: /^\s*\}/ }),
|
57 |
+
Array: /* @__PURE__ */ a({ except: /^\s*\]/ })
|
58 |
+
}),
|
59 |
+
/* @__PURE__ */ Q.add({
|
60 |
+
"Object Array": i
|
61 |
+
})
|
62 |
+
]
|
63 |
+
}),
|
64 |
+
languageData: {
|
65 |
+
closeBrackets: { brackets: ["[", "{", '"'] },
|
66 |
+
indentOnInput: /^\s*[\}\]]$/
|
67 |
+
}
|
68 |
+
});
|
69 |
+
function h() {
|
70 |
+
return new c(l);
|
71 |
+
}
|
72 |
+
export {
|
73 |
+
h as json,
|
74 |
+
l as jsonLanguage,
|
75 |
+
d as jsonParseLinter
|
76 |
+
};
|
src/backend/gradio_logsview/templates/component/index-2ee8fec2.js
ADDED
@@ -0,0 +1,1301 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { P as L, l as M, j as $, J as E, k as y, m as S, I as j } from "./Index-d65e8fec.js";
|
2 |
+
class v {
|
3 |
+
/**
|
4 |
+
@internal
|
5 |
+
*/
|
6 |
+
constructor(t, e, s, i, h, r, n, o, a, u = 0, f) {
|
7 |
+
this.p = t, this.stack = e, this.state = s, this.reducePos = i, this.pos = h, this.score = r, this.buffer = n, this.bufferBase = o, this.curContext = a, this.lookAhead = u, this.parent = f;
|
8 |
+
}
|
9 |
+
/**
|
10 |
+
@internal
|
11 |
+
*/
|
12 |
+
toString() {
|
13 |
+
return `[${this.stack.filter((t, e) => e % 3 == 0).concat(this.state)}]@${this.pos}${this.score ? "!" + this.score : ""}`;
|
14 |
+
}
|
15 |
+
// Start an empty stack
|
16 |
+
/**
|
17 |
+
@internal
|
18 |
+
*/
|
19 |
+
static start(t, e, s = 0) {
|
20 |
+
let i = t.parser.context;
|
21 |
+
return new v(t, [], e, s, s, 0, [], 0, i ? new N(i, i.start) : null, 0, null);
|
22 |
+
}
|
23 |
+
/**
|
24 |
+
The stack's current [context](#lr.ContextTracker) value, if
|
25 |
+
any. Its type will depend on the context tracker's type
|
26 |
+
parameter, or it will be `null` if there is no context
|
27 |
+
tracker.
|
28 |
+
*/
|
29 |
+
get context() {
|
30 |
+
return this.curContext ? this.curContext.context : null;
|
31 |
+
}
|
32 |
+
// Push a state onto the stack, tracking its start position as well
|
33 |
+
// as the buffer base at that point.
|
34 |
+
/**
|
35 |
+
@internal
|
36 |
+
*/
|
37 |
+
pushState(t, e) {
|
38 |
+
this.stack.push(this.state, e, this.bufferBase + this.buffer.length), this.state = t;
|
39 |
+
}
|
40 |
+
// Apply a reduce action
|
41 |
+
/**
|
42 |
+
@internal
|
43 |
+
*/
|
44 |
+
reduce(t) {
|
45 |
+
var e;
|
46 |
+
let s = t >> 19, i = t & 65535, { parser: h } = this.p, r = h.dynamicPrecedence(i);
|
47 |
+
if (r && (this.score += r), s == 0) {
|
48 |
+
this.pushState(h.getGoto(this.state, i, !0), this.reducePos), i < h.minRepeatTerm && this.storeNode(i, this.reducePos, this.reducePos, 4, !0), this.reduceContext(i, this.reducePos);
|
49 |
+
return;
|
50 |
+
}
|
51 |
+
let n = this.stack.length - (s - 1) * 3 - (t & 262144 ? 6 : 0), o = n ? this.stack[n - 2] : this.p.ranges[0].from, a = this.reducePos - o;
|
52 |
+
a >= 2e3 && !(!((e = this.p.parser.nodeSet.types[i]) === null || e === void 0) && e.isAnonymous) && (o == this.p.lastBigReductionStart ? (this.p.bigReductionCount++, this.p.lastBigReductionSize = a) : this.p.lastBigReductionSize < a && (this.p.bigReductionCount = 1, this.p.lastBigReductionStart = o, this.p.lastBigReductionSize = a));
|
53 |
+
let u = n ? this.stack[n - 1] : 0, f = this.bufferBase + this.buffer.length - u;
|
54 |
+
if (i < h.minRepeatTerm || t & 131072) {
|
55 |
+
let c = h.stateFlag(
|
56 |
+
this.state,
|
57 |
+
1
|
58 |
+
/* StateFlag.Skipped */
|
59 |
+
) ? this.pos : this.reducePos;
|
60 |
+
this.storeNode(i, o, c, f + 4, !0);
|
61 |
+
}
|
62 |
+
if (t & 262144)
|
63 |
+
this.state = this.stack[n];
|
64 |
+
else {
|
65 |
+
let c = this.stack[n - 3];
|
66 |
+
this.state = h.getGoto(c, i, !0);
|
67 |
+
}
|
68 |
+
for (; this.stack.length > n; )
|
69 |
+
this.stack.pop();
|
70 |
+
this.reduceContext(i, o);
|
71 |
+
}
|
72 |
+
// Shift a value into the buffer
|
73 |
+
/**
|
74 |
+
@internal
|
75 |
+
*/
|
76 |
+
storeNode(t, e, s, i = 4, h = !1) {
|
77 |
+
if (t == 0 && (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {
|
78 |
+
let r = this, n = this.buffer.length;
|
79 |
+
if (n == 0 && r.parent && (n = r.bufferBase - r.parent.bufferBase, r = r.parent), n > 0 && r.buffer[n - 4] == 0 && r.buffer[n - 1] > -1) {
|
80 |
+
if (e == s)
|
81 |
+
return;
|
82 |
+
if (r.buffer[n - 2] >= e) {
|
83 |
+
r.buffer[n - 2] = s;
|
84 |
+
return;
|
85 |
+
}
|
86 |
+
}
|
87 |
+
}
|
88 |
+
if (!h || this.pos == s)
|
89 |
+
this.buffer.push(t, e, s, i);
|
90 |
+
else {
|
91 |
+
let r = this.buffer.length;
|
92 |
+
if (r > 0 && this.buffer[r - 4] != 0)
|
93 |
+
for (; r > 0 && this.buffer[r - 2] > s; )
|
94 |
+
this.buffer[r] = this.buffer[r - 4], this.buffer[r + 1] = this.buffer[r - 3], this.buffer[r + 2] = this.buffer[r - 2], this.buffer[r + 3] = this.buffer[r - 1], r -= 4, i > 4 && (i -= 4);
|
95 |
+
this.buffer[r] = t, this.buffer[r + 1] = e, this.buffer[r + 2] = s, this.buffer[r + 3] = i;
|
96 |
+
}
|
97 |
+
}
|
98 |
+
// Apply a shift action
|
99 |
+
/**
|
100 |
+
@internal
|
101 |
+
*/
|
102 |
+
shift(t, e, s, i) {
|
103 |
+
if (t & 131072)
|
104 |
+
this.pushState(t & 65535, this.pos);
|
105 |
+
else if (t & 262144)
|
106 |
+
this.pos = i, this.shiftContext(e, s), e <= this.p.parser.maxNode && this.buffer.push(e, s, i, 4);
|
107 |
+
else {
|
108 |
+
let h = t, { parser: r } = this.p;
|
109 |
+
(i > this.pos || e <= r.maxNode) && (this.pos = i, r.stateFlag(
|
110 |
+
h,
|
111 |
+
1
|
112 |
+
/* StateFlag.Skipped */
|
113 |
+
) || (this.reducePos = i)), this.pushState(h, s), this.shiftContext(e, s), e <= r.maxNode && this.buffer.push(e, s, i, 4);
|
114 |
+
}
|
115 |
+
}
|
116 |
+
// Apply an action
|
117 |
+
/**
|
118 |
+
@internal
|
119 |
+
*/
|
120 |
+
apply(t, e, s, i) {
|
121 |
+
t & 65536 ? this.reduce(t) : this.shift(t, e, s, i);
|
122 |
+
}
|
123 |
+
// Add a prebuilt (reused) node into the buffer.
|
124 |
+
/**
|
125 |
+
@internal
|
126 |
+
*/
|
127 |
+
useNode(t, e) {
|
128 |
+
let s = this.p.reused.length - 1;
|
129 |
+
(s < 0 || this.p.reused[s] != t) && (this.p.reused.push(t), s++);
|
130 |
+
let i = this.pos;
|
131 |
+
this.reducePos = this.pos = i + t.length, this.pushState(e, i), this.buffer.push(
|
132 |
+
s,
|
133 |
+
i,
|
134 |
+
this.reducePos,
|
135 |
+
-1
|
136 |
+
/* size == -1 means this is a reused value */
|
137 |
+
), this.curContext && this.updateContext(this.curContext.tracker.reuse(this.curContext.context, t, this, this.p.stream.reset(this.pos - t.length)));
|
138 |
+
}
|
139 |
+
// Split the stack. Due to the buffer sharing and the fact
|
140 |
+
// that `this.stack` tends to stay quite shallow, this isn't very
|
141 |
+
// expensive.
|
142 |
+
/**
|
143 |
+
@internal
|
144 |
+
*/
|
145 |
+
split() {
|
146 |
+
let t = this, e = t.buffer.length;
|
147 |
+
for (; e > 0 && t.buffer[e - 2] > t.reducePos; )
|
148 |
+
e -= 4;
|
149 |
+
let s = t.buffer.slice(e), i = t.bufferBase + e;
|
150 |
+
for (; t && i == t.bufferBase; )
|
151 |
+
t = t.parent;
|
152 |
+
return new v(this.p, this.stack.slice(), this.state, this.reducePos, this.pos, this.score, s, i, this.curContext, this.lookAhead, t);
|
153 |
+
}
|
154 |
+
// Try to recover from an error by 'deleting' (ignoring) one token.
|
155 |
+
/**
|
156 |
+
@internal
|
157 |
+
*/
|
158 |
+
recoverByDelete(t, e) {
|
159 |
+
let s = t <= this.p.parser.maxNode;
|
160 |
+
s && this.storeNode(t, this.pos, e, 4), this.storeNode(0, this.pos, e, s ? 8 : 4), this.pos = this.reducePos = e, this.score -= 190;
|
161 |
+
}
|
162 |
+
/**
|
163 |
+
Check if the given term would be able to be shifted (optionally
|
164 |
+
after some reductions) on this stack. This can be useful for
|
165 |
+
external tokenizers that want to make sure they only provide a
|
166 |
+
given token when it applies.
|
167 |
+
*/
|
168 |
+
canShift(t) {
|
169 |
+
for (let e = new G(this); ; ) {
|
170 |
+
let s = this.p.parser.stateSlot(
|
171 |
+
e.state,
|
172 |
+
4
|
173 |
+
/* ParseState.DefaultReduce */
|
174 |
+
) || this.p.parser.hasAction(e.state, t);
|
175 |
+
if (s == 0)
|
176 |
+
return !1;
|
177 |
+
if (!(s & 65536))
|
178 |
+
return !0;
|
179 |
+
e.reduce(s);
|
180 |
+
}
|
181 |
+
}
|
182 |
+
// Apply up to Recover.MaxNext recovery actions that conceptually
|
183 |
+
// inserts some missing token or rule.
|
184 |
+
/**
|
185 |
+
@internal
|
186 |
+
*/
|
187 |
+
recoverByInsert(t) {
|
188 |
+
if (this.stack.length >= 300)
|
189 |
+
return [];
|
190 |
+
let e = this.p.parser.nextStates(this.state);
|
191 |
+
if (e.length > 8 || this.stack.length >= 120) {
|
192 |
+
let i = [];
|
193 |
+
for (let h = 0, r; h < e.length; h += 2)
|
194 |
+
(r = e[h + 1]) != this.state && this.p.parser.hasAction(r, t) && i.push(e[h], r);
|
195 |
+
if (this.stack.length < 120)
|
196 |
+
for (let h = 0; i.length < 8 && h < e.length; h += 2) {
|
197 |
+
let r = e[h + 1];
|
198 |
+
i.some((n, o) => o & 1 && n == r) || i.push(e[h], r);
|
199 |
+
}
|
200 |
+
e = i;
|
201 |
+
}
|
202 |
+
let s = [];
|
203 |
+
for (let i = 0; i < e.length && s.length < 4; i += 2) {
|
204 |
+
let h = e[i + 1];
|
205 |
+
if (h == this.state)
|
206 |
+
continue;
|
207 |
+
let r = this.split();
|
208 |
+
r.pushState(h, this.pos), r.storeNode(0, r.pos, r.pos, 4, !0), r.shiftContext(e[i], this.pos), r.reducePos = this.pos, r.score -= 200, s.push(r);
|
209 |
+
}
|
210 |
+
return s;
|
211 |
+
}
|
212 |
+
// Force a reduce, if possible. Return false if that can't
|
213 |
+
// be done.
|
214 |
+
/**
|
215 |
+
@internal
|
216 |
+
*/
|
217 |
+
forceReduce() {
|
218 |
+
let { parser: t } = this.p, e = t.stateSlot(
|
219 |
+
this.state,
|
220 |
+
5
|
221 |
+
/* ParseState.ForcedReduce */
|
222 |
+
);
|
223 |
+
if (!(e & 65536))
|
224 |
+
return !1;
|
225 |
+
if (!t.validAction(this.state, e)) {
|
226 |
+
let s = e >> 19, i = e & 65535, h = this.stack.length - s * 3;
|
227 |
+
if (h < 0 || t.getGoto(this.stack[h], i, !1) < 0) {
|
228 |
+
let r = this.findForcedReduction();
|
229 |
+
if (r == null)
|
230 |
+
return !1;
|
231 |
+
e = r;
|
232 |
+
}
|
233 |
+
this.storeNode(0, this.pos, this.pos, 4, !0), this.score -= 100;
|
234 |
+
}
|
235 |
+
return this.reducePos = this.pos, this.reduce(e), !0;
|
236 |
+
}
|
237 |
+
/**
|
238 |
+
Try to scan through the automaton to find some kind of reduction
|
239 |
+
that can be applied. Used when the regular ForcedReduce field
|
240 |
+
isn't a valid action. @internal
|
241 |
+
*/
|
242 |
+
findForcedReduction() {
|
243 |
+
let { parser: t } = this.p, e = [], s = (i, h) => {
|
244 |
+
if (!e.includes(i))
|
245 |
+
return e.push(i), t.allActions(i, (r) => {
|
246 |
+
if (!(r & 393216))
|
247 |
+
if (r & 65536) {
|
248 |
+
let n = (r >> 19) - h;
|
249 |
+
if (n > 1) {
|
250 |
+
let o = r & 65535, a = this.stack.length - n * 3;
|
251 |
+
if (a >= 0 && t.getGoto(this.stack[a], o, !1) >= 0)
|
252 |
+
return n << 19 | 65536 | o;
|
253 |
+
}
|
254 |
+
} else {
|
255 |
+
let n = s(r, h + 1);
|
256 |
+
if (n != null)
|
257 |
+
return n;
|
258 |
+
}
|
259 |
+
});
|
260 |
+
};
|
261 |
+
return s(this.state, 0);
|
262 |
+
}
|
263 |
+
/**
|
264 |
+
@internal
|
265 |
+
*/
|
266 |
+
forceAll() {
|
267 |
+
for (; !this.p.parser.stateFlag(
|
268 |
+
this.state,
|
269 |
+
2
|
270 |
+
/* StateFlag.Accepting */
|
271 |
+
); )
|
272 |
+
if (!this.forceReduce()) {
|
273 |
+
this.storeNode(0, this.pos, this.pos, 4, !0);
|
274 |
+
break;
|
275 |
+
}
|
276 |
+
return this;
|
277 |
+
}
|
278 |
+
/**
|
279 |
+
Check whether this state has no further actions (assumed to be a direct descendant of the
|
280 |
+
top state, since any other states must be able to continue
|
281 |
+
somehow). @internal
|
282 |
+
*/
|
283 |
+
get deadEnd() {
|
284 |
+
if (this.stack.length != 3)
|
285 |
+
return !1;
|
286 |
+
let { parser: t } = this.p;
|
287 |
+
return t.data[t.stateSlot(
|
288 |
+
this.state,
|
289 |
+
1
|
290 |
+
/* ParseState.Actions */
|
291 |
+
)] == 65535 && !t.stateSlot(
|
292 |
+
this.state,
|
293 |
+
4
|
294 |
+
/* ParseState.DefaultReduce */
|
295 |
+
);
|
296 |
+
}
|
297 |
+
/**
|
298 |
+
Restart the stack (put it back in its start state). Only safe
|
299 |
+
when this.stack.length == 3 (state is directly below the top
|
300 |
+
state). @internal
|
301 |
+
*/
|
302 |
+
restart() {
|
303 |
+
this.storeNode(0, this.pos, this.pos, 4, !0), this.state = this.stack[0], this.stack.length = 0;
|
304 |
+
}
|
305 |
+
/**
|
306 |
+
@internal
|
307 |
+
*/
|
308 |
+
sameState(t) {
|
309 |
+
if (this.state != t.state || this.stack.length != t.stack.length)
|
310 |
+
return !1;
|
311 |
+
for (let e = 0; e < this.stack.length; e += 3)
|
312 |
+
if (this.stack[e] != t.stack[e])
|
313 |
+
return !1;
|
314 |
+
return !0;
|
315 |
+
}
|
316 |
+
/**
|
317 |
+
Get the parser used by this stack.
|
318 |
+
*/
|
319 |
+
get parser() {
|
320 |
+
return this.p.parser;
|
321 |
+
}
|
322 |
+
/**
|
323 |
+
Test whether a given dialect (by numeric ID, as exported from
|
324 |
+
the terms file) is enabled.
|
325 |
+
*/
|
326 |
+
dialectEnabled(t) {
|
327 |
+
return this.p.parser.dialect.flags[t];
|
328 |
+
}
|
329 |
+
shiftContext(t, e) {
|
330 |
+
this.curContext && this.updateContext(this.curContext.tracker.shift(this.curContext.context, t, this, this.p.stream.reset(e)));
|
331 |
+
}
|
332 |
+
reduceContext(t, e) {
|
333 |
+
this.curContext && this.updateContext(this.curContext.tracker.reduce(this.curContext.context, t, this, this.p.stream.reset(e)));
|
334 |
+
}
|
335 |
+
/**
|
336 |
+
@internal
|
337 |
+
*/
|
338 |
+
emitContext() {
|
339 |
+
let t = this.buffer.length - 1;
|
340 |
+
(t < 0 || this.buffer[t] != -3) && this.buffer.push(this.curContext.hash, this.pos, this.pos, -3);
|
341 |
+
}
|
342 |
+
/**
|
343 |
+
@internal
|
344 |
+
*/
|
345 |
+
emitLookAhead() {
|
346 |
+
let t = this.buffer.length - 1;
|
347 |
+
(t < 0 || this.buffer[t] != -4) && this.buffer.push(this.lookAhead, this.pos, this.pos, -4);
|
348 |
+
}
|
349 |
+
updateContext(t) {
|
350 |
+
if (t != this.curContext.context) {
|
351 |
+
let e = new N(this.curContext.tracker, t);
|
352 |
+
e.hash != this.curContext.hash && this.emitContext(), this.curContext = e;
|
353 |
+
}
|
354 |
+
}
|
355 |
+
/**
|
356 |
+
@internal
|
357 |
+
*/
|
358 |
+
setLookAhead(t) {
|
359 |
+
t > this.lookAhead && (this.emitLookAhead(), this.lookAhead = t);
|
360 |
+
}
|
361 |
+
/**
|
362 |
+
@internal
|
363 |
+
*/
|
364 |
+
close() {
|
365 |
+
this.curContext && this.curContext.tracker.strict && this.emitContext(), this.lookAhead > 0 && this.emitLookAhead();
|
366 |
+
}
|
367 |
+
}
|
368 |
+
class N {
|
369 |
+
constructor(t, e) {
|
370 |
+
this.tracker = t, this.context = e, this.hash = t.strict ? t.hash(e) : 0;
|
371 |
+
}
|
372 |
+
}
|
373 |
+
class G {
|
374 |
+
constructor(t) {
|
375 |
+
this.start = t, this.state = t.state, this.stack = t.stack, this.base = this.stack.length;
|
376 |
+
}
|
377 |
+
reduce(t) {
|
378 |
+
let e = t & 65535, s = t >> 19;
|
379 |
+
s == 0 ? (this.stack == this.start.stack && (this.stack = this.stack.slice()), this.stack.push(this.state, 0, 0), this.base += 3) : this.base -= (s - 1) * 3;
|
380 |
+
let i = this.start.p.parser.getGoto(this.stack[this.base - 3], e, !0);
|
381 |
+
this.state = i;
|
382 |
+
}
|
383 |
+
}
|
384 |
+
class A {
|
385 |
+
constructor(t, e, s) {
|
386 |
+
this.stack = t, this.pos = e, this.index = s, this.buffer = t.buffer, this.index == 0 && this.maybeNext();
|
387 |
+
}
|
388 |
+
static create(t, e = t.bufferBase + t.buffer.length) {
|
389 |
+
return new A(t, e, e - t.bufferBase);
|
390 |
+
}
|
391 |
+
maybeNext() {
|
392 |
+
let t = this.stack.parent;
|
393 |
+
t != null && (this.index = this.stack.bufferBase - t.bufferBase, this.stack = t, this.buffer = t.buffer);
|
394 |
+
}
|
395 |
+
get id() {
|
396 |
+
return this.buffer[this.index - 4];
|
397 |
+
}
|
398 |
+
get start() {
|
399 |
+
return this.buffer[this.index - 3];
|
400 |
+
}
|
401 |
+
get end() {
|
402 |
+
return this.buffer[this.index - 2];
|
403 |
+
}
|
404 |
+
get size() {
|
405 |
+
return this.buffer[this.index - 1];
|
406 |
+
}
|
407 |
+
next() {
|
408 |
+
this.index -= 4, this.pos -= 4, this.index == 0 && this.maybeNext();
|
409 |
+
}
|
410 |
+
fork() {
|
411 |
+
return new A(this.stack, this.pos, this.index);
|
412 |
+
}
|
413 |
+
}
|
414 |
+
function x(l, t = Uint16Array) {
|
415 |
+
if (typeof l != "string")
|
416 |
+
return l;
|
417 |
+
let e = null;
|
418 |
+
for (let s = 0, i = 0; s < l.length; ) {
|
419 |
+
let h = 0;
|
420 |
+
for (; ; ) {
|
421 |
+
let r = l.charCodeAt(s++), n = !1;
|
422 |
+
if (r == 126) {
|
423 |
+
h = 65535;
|
424 |
+
break;
|
425 |
+
}
|
426 |
+
r >= 92 && r--, r >= 34 && r--;
|
427 |
+
let o = r - 32;
|
428 |
+
if (o >= 46 && (o -= 46, n = !0), h += o, n)
|
429 |
+
break;
|
430 |
+
h *= 46;
|
431 |
+
}
|
432 |
+
e ? e[i++] = h : e = new t(h);
|
433 |
+
}
|
434 |
+
return e;
|
435 |
+
}
|
436 |
+
class P {
|
437 |
+
constructor() {
|
438 |
+
this.start = -1, this.value = -1, this.end = -1, this.extended = -1, this.lookAhead = 0, this.mask = 0, this.context = 0;
|
439 |
+
}
|
440 |
+
}
|
441 |
+
const R = new P();
|
442 |
+
class U {
|
443 |
+
/**
|
444 |
+
@internal
|
445 |
+
*/
|
446 |
+
constructor(t, e) {
|
447 |
+
this.input = t, this.ranges = e, this.chunk = "", this.chunkOff = 0, this.chunk2 = "", this.chunk2Pos = 0, this.next = -1, this.token = R, this.rangeIndex = 0, this.pos = this.chunkPos = e[0].from, this.range = e[0], this.end = e[e.length - 1].to, this.readNext();
|
448 |
+
}
|
449 |
+
/**
|
450 |
+
@internal
|
451 |
+
*/
|
452 |
+
resolveOffset(t, e) {
|
453 |
+
let s = this.range, i = this.rangeIndex, h = this.pos + t;
|
454 |
+
for (; h < s.from; ) {
|
455 |
+
if (!i)
|
456 |
+
return null;
|
457 |
+
let r = this.ranges[--i];
|
458 |
+
h -= s.from - r.to, s = r;
|
459 |
+
}
|
460 |
+
for (; e < 0 ? h > s.to : h >= s.to; ) {
|
461 |
+
if (i == this.ranges.length - 1)
|
462 |
+
return null;
|
463 |
+
let r = this.ranges[++i];
|
464 |
+
h += r.from - s.to, s = r;
|
465 |
+
}
|
466 |
+
return h;
|
467 |
+
}
|
468 |
+
/**
|
469 |
+
@internal
|
470 |
+
*/
|
471 |
+
clipPos(t) {
|
472 |
+
if (t >= this.range.from && t < this.range.to)
|
473 |
+
return t;
|
474 |
+
for (let e of this.ranges)
|
475 |
+
if (e.to > t)
|
476 |
+
return Math.max(t, e.from);
|
477 |
+
return this.end;
|
478 |
+
}
|
479 |
+
/**
|
480 |
+
Look at a code unit near the stream position. `.peek(0)` equals
|
481 |
+
`.next`, `.peek(-1)` gives you the previous character, and so
|
482 |
+
on.
|
483 |
+
|
484 |
+
Note that looking around during tokenizing creates dependencies
|
485 |
+
on potentially far-away content, which may reduce the
|
486 |
+
effectiveness incremental parsing—when looking forward—or even
|
487 |
+
cause invalid reparses when looking backward more than 25 code
|
488 |
+
units, since the library does not track lookbehind.
|
489 |
+
*/
|
490 |
+
peek(t) {
|
491 |
+
let e = this.chunkOff + t, s, i;
|
492 |
+
if (e >= 0 && e < this.chunk.length)
|
493 |
+
s = this.pos + t, i = this.chunk.charCodeAt(e);
|
494 |
+
else {
|
495 |
+
let h = this.resolveOffset(t, 1);
|
496 |
+
if (h == null)
|
497 |
+
return -1;
|
498 |
+
if (s = h, s >= this.chunk2Pos && s < this.chunk2Pos + this.chunk2.length)
|
499 |
+
i = this.chunk2.charCodeAt(s - this.chunk2Pos);
|
500 |
+
else {
|
501 |
+
let r = this.rangeIndex, n = this.range;
|
502 |
+
for (; n.to <= s; )
|
503 |
+
n = this.ranges[++r];
|
504 |
+
this.chunk2 = this.input.chunk(this.chunk2Pos = s), s + this.chunk2.length > n.to && (this.chunk2 = this.chunk2.slice(0, n.to - s)), i = this.chunk2.charCodeAt(0);
|
505 |
+
}
|
506 |
+
}
|
507 |
+
return s >= this.token.lookAhead && (this.token.lookAhead = s + 1), i;
|
508 |
+
}
|
509 |
+
/**
|
510 |
+
Accept a token. By default, the end of the token is set to the
|
511 |
+
current stream position, but you can pass an offset (relative to
|
512 |
+
the stream position) to change that.
|
513 |
+
*/
|
514 |
+
acceptToken(t, e = 0) {
|
515 |
+
let s = e ? this.resolveOffset(e, -1) : this.pos;
|
516 |
+
if (s == null || s < this.token.start)
|
517 |
+
throw new RangeError("Token end out of bounds");
|
518 |
+
this.token.value = t, this.token.end = s;
|
519 |
+
}
|
520 |
+
/**
|
521 |
+
Accept a token ending at a specific given position.
|
522 |
+
*/
|
523 |
+
acceptTokenTo(t, e) {
|
524 |
+
this.token.value = t, this.token.end = e;
|
525 |
+
}
|
526 |
+
getChunk() {
|
527 |
+
if (this.pos >= this.chunk2Pos && this.pos < this.chunk2Pos + this.chunk2.length) {
|
528 |
+
let { chunk: t, chunkPos: e } = this;
|
529 |
+
this.chunk = this.chunk2, this.chunkPos = this.chunk2Pos, this.chunk2 = t, this.chunk2Pos = e, this.chunkOff = this.pos - this.chunkPos;
|
530 |
+
} else {
|
531 |
+
this.chunk2 = this.chunk, this.chunk2Pos = this.chunkPos;
|
532 |
+
let t = this.input.chunk(this.pos), e = this.pos + t.length;
|
533 |
+
this.chunk = e > this.range.to ? t.slice(0, this.range.to - this.pos) : t, this.chunkPos = this.pos, this.chunkOff = 0;
|
534 |
+
}
|
535 |
+
}
|
536 |
+
readNext() {
|
537 |
+
return this.chunkOff >= this.chunk.length && (this.getChunk(), this.chunkOff == this.chunk.length) ? this.next = -1 : this.next = this.chunk.charCodeAt(this.chunkOff);
|
538 |
+
}
|
539 |
+
/**
|
540 |
+
Move the stream forward N (defaults to 1) code units. Returns
|
541 |
+
the new value of [`next`](#lr.InputStream.next).
|
542 |
+
*/
|
543 |
+
advance(t = 1) {
|
544 |
+
for (this.chunkOff += t; this.pos + t >= this.range.to; ) {
|
545 |
+
if (this.rangeIndex == this.ranges.length - 1)
|
546 |
+
return this.setDone();
|
547 |
+
t -= this.range.to - this.pos, this.range = this.ranges[++this.rangeIndex], this.pos = this.range.from;
|
548 |
+
}
|
549 |
+
return this.pos += t, this.pos >= this.token.lookAhead && (this.token.lookAhead = this.pos + 1), this.readNext();
|
550 |
+
}
|
551 |
+
setDone() {
|
552 |
+
return this.pos = this.chunkPos = this.end, this.range = this.ranges[this.rangeIndex = this.ranges.length - 1], this.chunk = "", this.next = -1;
|
553 |
+
}
|
554 |
+
/**
|
555 |
+
@internal
|
556 |
+
*/
|
557 |
+
reset(t, e) {
|
558 |
+
if (e ? (this.token = e, e.start = t, e.lookAhead = t + 1, e.value = e.extended = -1) : this.token = R, this.pos != t) {
|
559 |
+
if (this.pos = t, t == this.end)
|
560 |
+
return this.setDone(), this;
|
561 |
+
for (; t < this.range.from; )
|
562 |
+
this.range = this.ranges[--this.rangeIndex];
|
563 |
+
for (; t >= this.range.to; )
|
564 |
+
this.range = this.ranges[++this.rangeIndex];
|
565 |
+
t >= this.chunkPos && t < this.chunkPos + this.chunk.length ? this.chunkOff = t - this.chunkPos : (this.chunk = "", this.chunkOff = 0), this.readNext();
|
566 |
+
}
|
567 |
+
return this;
|
568 |
+
}
|
569 |
+
/**
|
570 |
+
@internal
|
571 |
+
*/
|
572 |
+
read(t, e) {
|
573 |
+
if (t >= this.chunkPos && e <= this.chunkPos + this.chunk.length)
|
574 |
+
return this.chunk.slice(t - this.chunkPos, e - this.chunkPos);
|
575 |
+
if (t >= this.chunk2Pos && e <= this.chunk2Pos + this.chunk2.length)
|
576 |
+
return this.chunk2.slice(t - this.chunk2Pos, e - this.chunk2Pos);
|
577 |
+
if (t >= this.range.from && e <= this.range.to)
|
578 |
+
return this.input.read(t, e);
|
579 |
+
let s = "";
|
580 |
+
for (let i of this.ranges) {
|
581 |
+
if (i.from >= e)
|
582 |
+
break;
|
583 |
+
i.to > t && (s += this.input.read(Math.max(i.from, t), Math.min(i.to, e)));
|
584 |
+
}
|
585 |
+
return s;
|
586 |
+
}
|
587 |
+
}
|
588 |
+
class m {
|
589 |
+
constructor(t, e) {
|
590 |
+
this.data = t, this.id = e;
|
591 |
+
}
|
592 |
+
token(t, e) {
|
593 |
+
let { parser: s } = e.p;
|
594 |
+
F(this.data, t, e, this.id, s.data, s.tokenPrecTable);
|
595 |
+
}
|
596 |
+
}
|
597 |
+
m.prototype.contextual = m.prototype.fallback = m.prototype.extend = !1;
|
598 |
+
class H {
|
599 |
+
constructor(t, e, s) {
|
600 |
+
this.precTable = e, this.elseToken = s, this.data = typeof t == "string" ? x(t) : t;
|
601 |
+
}
|
602 |
+
token(t, e) {
|
603 |
+
let s = t.pos, i = 0;
|
604 |
+
for (; ; ) {
|
605 |
+
let h = t.next < 0, r = t.resolveOffset(1, 1);
|
606 |
+
if (F(this.data, t, e, 0, this.data, this.precTable), t.token.value > -1)
|
607 |
+
break;
|
608 |
+
if (this.elseToken == null)
|
609 |
+
return;
|
610 |
+
if (h || i++, r == null)
|
611 |
+
break;
|
612 |
+
t.reset(r, t.token);
|
613 |
+
}
|
614 |
+
i && (t.reset(s, t.token), t.acceptToken(this.elseToken, i));
|
615 |
+
}
|
616 |
+
}
|
617 |
+
H.prototype.contextual = m.prototype.fallback = m.prototype.extend = !1;
|
618 |
+
class Y {
|
619 |
+
/**
|
620 |
+
Create a tokenizer. The first argument is the function that,
|
621 |
+
given an input stream, scans for the types of tokens it
|
622 |
+
recognizes at the stream's position, and calls
|
623 |
+
[`acceptToken`](#lr.InputStream.acceptToken) when it finds
|
624 |
+
one.
|
625 |
+
*/
|
626 |
+
constructor(t, e = {}) {
|
627 |
+
this.token = t, this.contextual = !!e.contextual, this.fallback = !!e.fallback, this.extend = !!e.extend;
|
628 |
+
}
|
629 |
+
}
|
630 |
+
function F(l, t, e, s, i, h) {
|
631 |
+
let r = 0, n = 1 << s, { dialect: o } = e.p.parser;
|
632 |
+
t:
|
633 |
+
for (; n & l[r]; ) {
|
634 |
+
let a = l[r + 1];
|
635 |
+
for (let p = r + 3; p < a; p += 2)
|
636 |
+
if ((l[p + 1] & n) > 0) {
|
637 |
+
let d = l[p];
|
638 |
+
if (o.allows(d) && (t.token.value == -1 || t.token.value == d || W(d, t.token.value, i, h))) {
|
639 |
+
t.acceptToken(d);
|
640 |
+
break;
|
641 |
+
}
|
642 |
+
}
|
643 |
+
let u = t.next, f = 0, c = l[r + 2];
|
644 |
+
if (t.next < 0 && c > f && l[a + c * 3 - 3] == 65535) {
|
645 |
+
r = l[a + c * 3 - 1];
|
646 |
+
continue t;
|
647 |
+
}
|
648 |
+
for (; f < c; ) {
|
649 |
+
let p = f + c >> 1, d = a + p + (p << 1), b = l[d], O = l[d + 1] || 65536;
|
650 |
+
if (u < b)
|
651 |
+
c = p;
|
652 |
+
else if (u >= O)
|
653 |
+
f = p + 1;
|
654 |
+
else {
|
655 |
+
r = l[d + 2], t.advance();
|
656 |
+
continue t;
|
657 |
+
}
|
658 |
+
}
|
659 |
+
break;
|
660 |
+
}
|
661 |
+
}
|
662 |
+
function z(l, t, e) {
|
663 |
+
for (let s = t, i; (i = l[s]) != 65535; s++)
|
664 |
+
if (i == e)
|
665 |
+
return s - t;
|
666 |
+
return -1;
|
667 |
+
}
|
668 |
+
function W(l, t, e, s) {
|
669 |
+
let i = z(e, s, t);
|
670 |
+
return i < 0 || z(e, s, l) < i;
|
671 |
+
}
|
672 |
+
const g = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
|
673 |
+
let T = null;
|
674 |
+
function I(l, t, e) {
|
675 |
+
let s = l.cursor(j.IncludeAnonymous);
|
676 |
+
for (s.moveTo(t); ; )
|
677 |
+
if (!(e < 0 ? s.childBefore(t) : s.childAfter(t)))
|
678 |
+
for (; ; ) {
|
679 |
+
if ((e < 0 ? s.to < t : s.from > t) && !s.type.isError)
|
680 |
+
return e < 0 ? Math.max(0, Math.min(
|
681 |
+
s.to - 1,
|
682 |
+
t - 25
|
683 |
+
/* Safety.Margin */
|
684 |
+
)) : Math.min(l.length, Math.max(
|
685 |
+
s.from + 1,
|
686 |
+
t + 25
|
687 |
+
/* Safety.Margin */
|
688 |
+
));
|
689 |
+
if (e < 0 ? s.prevSibling() : s.nextSibling())
|
690 |
+
break;
|
691 |
+
if (!s.parent())
|
692 |
+
return e < 0 ? 0 : l.length;
|
693 |
+
}
|
694 |
+
}
|
695 |
+
class J {
|
696 |
+
constructor(t, e) {
|
697 |
+
this.fragments = t, this.nodeSet = e, this.i = 0, this.fragment = null, this.safeFrom = -1, this.safeTo = -1, this.trees = [], this.start = [], this.index = [], this.nextFragment();
|
698 |
+
}
|
699 |
+
nextFragment() {
|
700 |
+
let t = this.fragment = this.i == this.fragments.length ? null : this.fragments[this.i++];
|
701 |
+
if (t) {
|
702 |
+
for (this.safeFrom = t.openStart ? I(t.tree, t.from + t.offset, 1) - t.offset : t.from, this.safeTo = t.openEnd ? I(t.tree, t.to + t.offset, -1) - t.offset : t.to; this.trees.length; )
|
703 |
+
this.trees.pop(), this.start.pop(), this.index.pop();
|
704 |
+
this.trees.push(t.tree), this.start.push(-t.offset), this.index.push(0), this.nextStart = this.safeFrom;
|
705 |
+
} else
|
706 |
+
this.nextStart = 1e9;
|
707 |
+
}
|
708 |
+
// `pos` must be >= any previously given `pos` for this cursor
|
709 |
+
nodeAt(t) {
|
710 |
+
if (t < this.nextStart)
|
711 |
+
return null;
|
712 |
+
for (; this.fragment && this.safeTo <= t; )
|
713 |
+
this.nextFragment();
|
714 |
+
if (!this.fragment)
|
715 |
+
return null;
|
716 |
+
for (; ; ) {
|
717 |
+
let e = this.trees.length - 1;
|
718 |
+
if (e < 0)
|
719 |
+
return this.nextFragment(), null;
|
720 |
+
let s = this.trees[e], i = this.index[e];
|
721 |
+
if (i == s.children.length) {
|
722 |
+
this.trees.pop(), this.start.pop(), this.index.pop();
|
723 |
+
continue;
|
724 |
+
}
|
725 |
+
let h = s.children[i], r = this.start[e] + s.positions[i];
|
726 |
+
if (r > t)
|
727 |
+
return this.nextStart = r, null;
|
728 |
+
if (h instanceof S) {
|
729 |
+
if (r == t) {
|
730 |
+
if (r < this.safeFrom)
|
731 |
+
return null;
|
732 |
+
let n = r + h.length;
|
733 |
+
if (n <= this.safeTo) {
|
734 |
+
let o = h.prop(y.lookAhead);
|
735 |
+
if (!o || n + o < this.fragment.to)
|
736 |
+
return h;
|
737 |
+
}
|
738 |
+
}
|
739 |
+
this.index[e]++, r + h.length >= Math.max(this.safeFrom, t) && (this.trees.push(h), this.start.push(r), this.index.push(0));
|
740 |
+
} else
|
741 |
+
this.index[e]++, this.nextStart = r + h.length;
|
742 |
+
}
|
743 |
+
}
|
744 |
+
}
|
745 |
+
class q {
|
746 |
+
constructor(t, e) {
|
747 |
+
this.stream = e, this.tokens = [], this.mainToken = null, this.actions = [], this.tokens = t.tokenizers.map((s) => new P());
|
748 |
+
}
|
749 |
+
getActions(t) {
|
750 |
+
let e = 0, s = null, { parser: i } = t.p, { tokenizers: h } = i, r = i.stateSlot(
|
751 |
+
t.state,
|
752 |
+
3
|
753 |
+
/* ParseState.TokenizerMask */
|
754 |
+
), n = t.curContext ? t.curContext.hash : 0, o = 0;
|
755 |
+
for (let a = 0; a < h.length; a++) {
|
756 |
+
if (!(1 << a & r))
|
757 |
+
continue;
|
758 |
+
let u = h[a], f = this.tokens[a];
|
759 |
+
if (!(s && !u.fallback) && ((u.contextual || f.start != t.pos || f.mask != r || f.context != n) && (this.updateCachedToken(f, u, t), f.mask = r, f.context = n), f.lookAhead > f.end + 25 && (o = Math.max(f.lookAhead, o)), f.value != 0)) {
|
760 |
+
let c = e;
|
761 |
+
if (f.extended > -1 && (e = this.addActions(t, f.extended, f.end, e)), e = this.addActions(t, f.value, f.end, e), !u.extend && (s = f, e > c))
|
762 |
+
break;
|
763 |
+
}
|
764 |
+
}
|
765 |
+
for (; this.actions.length > e; )
|
766 |
+
this.actions.pop();
|
767 |
+
return o && t.setLookAhead(o), !s && t.pos == this.stream.end && (s = new P(), s.value = t.p.parser.eofTerm, s.start = s.end = t.pos, e = this.addActions(t, s.value, s.end, e)), this.mainToken = s, this.actions;
|
768 |
+
}
|
769 |
+
getMainToken(t) {
|
770 |
+
if (this.mainToken)
|
771 |
+
return this.mainToken;
|
772 |
+
let e = new P(), { pos: s, p: i } = t;
|
773 |
+
return e.start = s, e.end = Math.min(s + 1, i.stream.end), e.value = s == i.stream.end ? i.parser.eofTerm : 0, e;
|
774 |
+
}
|
775 |
+
updateCachedToken(t, e, s) {
|
776 |
+
let i = this.stream.clipPos(s.pos);
|
777 |
+
if (e.token(this.stream.reset(i, t), s), t.value > -1) {
|
778 |
+
let { parser: h } = s.p;
|
779 |
+
for (let r = 0; r < h.specialized.length; r++)
|
780 |
+
if (h.specialized[r] == t.value) {
|
781 |
+
let n = h.specializers[r](this.stream.read(t.start, t.end), s);
|
782 |
+
if (n >= 0 && s.p.parser.dialect.allows(n >> 1)) {
|
783 |
+
n & 1 ? t.extended = n >> 1 : t.value = n >> 1;
|
784 |
+
break;
|
785 |
+
}
|
786 |
+
}
|
787 |
+
} else
|
788 |
+
t.value = 0, t.end = this.stream.clipPos(i + 1);
|
789 |
+
}
|
790 |
+
putAction(t, e, s, i) {
|
791 |
+
for (let h = 0; h < i; h += 3)
|
792 |
+
if (this.actions[h] == t)
|
793 |
+
return i;
|
794 |
+
return this.actions[i++] = t, this.actions[i++] = e, this.actions[i++] = s, i;
|
795 |
+
}
|
796 |
+
addActions(t, e, s, i) {
|
797 |
+
let { state: h } = t, { parser: r } = t.p, { data: n } = r;
|
798 |
+
for (let o = 0; o < 2; o++)
|
799 |
+
for (let a = r.stateSlot(
|
800 |
+
h,
|
801 |
+
o ? 2 : 1
|
802 |
+
/* ParseState.Actions */
|
803 |
+
); ; a += 3) {
|
804 |
+
if (n[a] == 65535)
|
805 |
+
if (n[a + 1] == 1)
|
806 |
+
a = k(n, a + 2);
|
807 |
+
else {
|
808 |
+
i == 0 && n[a + 1] == 2 && (i = this.putAction(k(n, a + 2), e, s, i));
|
809 |
+
break;
|
810 |
+
}
|
811 |
+
n[a] == e && (i = this.putAction(k(n, a + 1), e, s, i));
|
812 |
+
}
|
813 |
+
return i;
|
814 |
+
}
|
815 |
+
}
|
816 |
+
class K {
|
817 |
+
constructor(t, e, s, i) {
|
818 |
+
this.parser = t, this.input = e, this.ranges = i, this.recovering = 0, this.nextStackID = 9812, this.minStackPos = 0, this.reused = [], this.stoppedAt = null, this.lastBigReductionStart = -1, this.lastBigReductionSize = 0, this.bigReductionCount = 0, this.stream = new U(e, i), this.tokens = new q(t, this.stream), this.topTerm = t.top[1];
|
819 |
+
let { from: h } = i[0];
|
820 |
+
this.stacks = [v.start(this, t.top[0], h)], this.fragments = s.length && this.stream.end - h > t.bufferLength * 4 ? new J(s, t.nodeSet) : null;
|
821 |
+
}
|
822 |
+
get parsedPos() {
|
823 |
+
return this.minStackPos;
|
824 |
+
}
|
825 |
+
// Move the parser forward. This will process all parse stacks at
|
826 |
+
// `this.pos` and try to advance them to a further position. If no
|
827 |
+
// stack for such a position is found, it'll start error-recovery.
|
828 |
+
//
|
829 |
+
// When the parse is finished, this will return a syntax tree. When
|
830 |
+
// not, it returns `null`.
|
831 |
+
advance() {
|
832 |
+
let t = this.stacks, e = this.minStackPos, s = this.stacks = [], i, h;
|
833 |
+
if (this.bigReductionCount > 300 && t.length == 1) {
|
834 |
+
let [r] = t;
|
835 |
+
for (; r.forceReduce() && r.stack.length && r.stack[r.stack.length - 2] >= this.lastBigReductionStart; )
|
836 |
+
;
|
837 |
+
this.bigReductionCount = this.lastBigReductionSize = 0;
|
838 |
+
}
|
839 |
+
for (let r = 0; r < t.length; r++) {
|
840 |
+
let n = t[r];
|
841 |
+
for (; ; ) {
|
842 |
+
if (this.tokens.mainToken = null, n.pos > e)
|
843 |
+
s.push(n);
|
844 |
+
else {
|
845 |
+
if (this.advanceStack(n, s, t))
|
846 |
+
continue;
|
847 |
+
{
|
848 |
+
i || (i = [], h = []), i.push(n);
|
849 |
+
let o = this.tokens.getMainToken(n);
|
850 |
+
h.push(o.value, o.end);
|
851 |
+
}
|
852 |
+
}
|
853 |
+
break;
|
854 |
+
}
|
855 |
+
}
|
856 |
+
if (!s.length) {
|
857 |
+
let r = i && V(i);
|
858 |
+
if (r)
|
859 |
+
return g && console.log("Finish with " + this.stackID(r)), this.stackToTree(r);
|
860 |
+
if (this.parser.strict)
|
861 |
+
throw g && i && console.log("Stuck with token " + (this.tokens.mainToken ? this.parser.getName(this.tokens.mainToken.value) : "none")), new SyntaxError("No parse at " + e);
|
862 |
+
this.recovering || (this.recovering = 5);
|
863 |
+
}
|
864 |
+
if (this.recovering && i) {
|
865 |
+
let r = this.stoppedAt != null && i[0].pos > this.stoppedAt ? i[0] : this.runRecovery(i, h, s);
|
866 |
+
if (r)
|
867 |
+
return g && console.log("Force-finish " + this.stackID(r)), this.stackToTree(r.forceAll());
|
868 |
+
}
|
869 |
+
if (this.recovering) {
|
870 |
+
let r = this.recovering == 1 ? 1 : this.recovering * 3;
|
871 |
+
if (s.length > r)
|
872 |
+
for (s.sort((n, o) => o.score - n.score); s.length > r; )
|
873 |
+
s.pop();
|
874 |
+
s.some((n) => n.reducePos > e) && this.recovering--;
|
875 |
+
} else if (s.length > 1) {
|
876 |
+
t:
|
877 |
+
for (let r = 0; r < s.length - 1; r++) {
|
878 |
+
let n = s[r];
|
879 |
+
for (let o = r + 1; o < s.length; o++) {
|
880 |
+
let a = s[o];
|
881 |
+
if (n.sameState(a) || n.buffer.length > 500 && a.buffer.length > 500)
|
882 |
+
if ((n.score - a.score || n.buffer.length - a.buffer.length) > 0)
|
883 |
+
s.splice(o--, 1);
|
884 |
+
else {
|
885 |
+
s.splice(r--, 1);
|
886 |
+
continue t;
|
887 |
+
}
|
888 |
+
}
|
889 |
+
}
|
890 |
+
s.length > 12 && s.splice(
|
891 |
+
12,
|
892 |
+
s.length - 12
|
893 |
+
/* Rec.MaxStackCount */
|
894 |
+
);
|
895 |
+
}
|
896 |
+
this.minStackPos = s[0].pos;
|
897 |
+
for (let r = 1; r < s.length; r++)
|
898 |
+
s[r].pos < this.minStackPos && (this.minStackPos = s[r].pos);
|
899 |
+
return null;
|
900 |
+
}
|
901 |
+
stopAt(t) {
|
902 |
+
if (this.stoppedAt != null && this.stoppedAt < t)
|
903 |
+
throw new RangeError("Can't move stoppedAt forward");
|
904 |
+
this.stoppedAt = t;
|
905 |
+
}
|
906 |
+
// Returns an updated version of the given stack, or null if the
|
907 |
+
// stack can't advance normally. When `split` and `stacks` are
|
908 |
+
// given, stacks split off by ambiguous operations will be pushed to
|
909 |
+
// `split`, or added to `stacks` if they move `pos` forward.
|
910 |
+
advanceStack(t, e, s) {
|
911 |
+
let i = t.pos, { parser: h } = this, r = g ? this.stackID(t) + " -> " : "";
|
912 |
+
if (this.stoppedAt != null && i > this.stoppedAt)
|
913 |
+
return t.forceReduce() ? t : null;
|
914 |
+
if (this.fragments) {
|
915 |
+
let a = t.curContext && t.curContext.tracker.strict, u = a ? t.curContext.hash : 0;
|
916 |
+
for (let f = this.fragments.nodeAt(i); f; ) {
|
917 |
+
let c = this.parser.nodeSet.types[f.type.id] == f.type ? h.getGoto(t.state, f.type.id) : -1;
|
918 |
+
if (c > -1 && f.length && (!a || (f.prop(y.contextHash) || 0) == u))
|
919 |
+
return t.useNode(f, c), g && console.log(r + this.stackID(t) + ` (via reuse of ${h.getName(f.type.id)})`), !0;
|
920 |
+
if (!(f instanceof S) || f.children.length == 0 || f.positions[0] > 0)
|
921 |
+
break;
|
922 |
+
let p = f.children[0];
|
923 |
+
if (p instanceof S && f.positions[0] == 0)
|
924 |
+
f = p;
|
925 |
+
else
|
926 |
+
break;
|
927 |
+
}
|
928 |
+
}
|
929 |
+
let n = h.stateSlot(
|
930 |
+
t.state,
|
931 |
+
4
|
932 |
+
/* ParseState.DefaultReduce */
|
933 |
+
);
|
934 |
+
if (n > 0)
|
935 |
+
return t.reduce(n), g && console.log(r + this.stackID(t) + ` (via always-reduce ${h.getName(
|
936 |
+
n & 65535
|
937 |
+
/* Action.ValueMask */
|
938 |
+
)})`), !0;
|
939 |
+
if (t.stack.length >= 8400)
|
940 |
+
for (; t.stack.length > 6e3 && t.forceReduce(); )
|
941 |
+
;
|
942 |
+
let o = this.tokens.getActions(t);
|
943 |
+
for (let a = 0; a < o.length; ) {
|
944 |
+
let u = o[a++], f = o[a++], c = o[a++], p = a == o.length || !s, d = p ? t : t.split(), b = this.tokens.mainToken;
|
945 |
+
if (d.apply(u, f, b ? b.start : d.pos, c), g && console.log(r + this.stackID(d) + ` (via ${u & 65536 ? `reduce of ${h.getName(
|
946 |
+
u & 65535
|
947 |
+
/* Action.ValueMask */
|
948 |
+
)}` : "shift"} for ${h.getName(f)} @ ${i}${d == t ? "" : ", split"})`), p)
|
949 |
+
return !0;
|
950 |
+
d.pos > i ? e.push(d) : s.push(d);
|
951 |
+
}
|
952 |
+
return !1;
|
953 |
+
}
|
954 |
+
// Advance a given stack forward as far as it will go. Returns the
|
955 |
+
// (possibly updated) stack if it got stuck, or null if it moved
|
956 |
+
// forward and was given to `pushStackDedup`.
|
957 |
+
advanceFully(t, e) {
|
958 |
+
let s = t.pos;
|
959 |
+
for (; ; ) {
|
960 |
+
if (!this.advanceStack(t, null, null))
|
961 |
+
return !1;
|
962 |
+
if (t.pos > s)
|
963 |
+
return D(t, e), !0;
|
964 |
+
}
|
965 |
+
}
|
966 |
+
runRecovery(t, e, s) {
|
967 |
+
let i = null, h = !1;
|
968 |
+
for (let r = 0; r < t.length; r++) {
|
969 |
+
let n = t[r], o = e[r << 1], a = e[(r << 1) + 1], u = g ? this.stackID(n) + " -> " : "";
|
970 |
+
if (n.deadEnd && (h || (h = !0, n.restart(), g && console.log(u + this.stackID(n) + " (restarted)"), this.advanceFully(n, s))))
|
971 |
+
continue;
|
972 |
+
let f = n.split(), c = u;
|
973 |
+
for (let p = 0; f.forceReduce() && p < 10 && (g && console.log(c + this.stackID(f) + " (via force-reduce)"), !this.advanceFully(f, s)); p++)
|
974 |
+
g && (c = this.stackID(f) + " -> ");
|
975 |
+
for (let p of n.recoverByInsert(o))
|
976 |
+
g && console.log(u + this.stackID(p) + " (via recover-insert)"), this.advanceFully(p, s);
|
977 |
+
this.stream.end > n.pos ? (a == n.pos && (a++, o = 0), n.recoverByDelete(o, a), g && console.log(u + this.stackID(n) + ` (via recover-delete ${this.parser.getName(o)})`), D(n, s)) : (!i || i.score < n.score) && (i = n);
|
978 |
+
}
|
979 |
+
return i;
|
980 |
+
}
|
981 |
+
// Convert the stack's buffer to a syntax tree.
|
982 |
+
stackToTree(t) {
|
983 |
+
return t.close(), S.build({
|
984 |
+
buffer: A.create(t),
|
985 |
+
nodeSet: this.parser.nodeSet,
|
986 |
+
topID: this.topTerm,
|
987 |
+
maxBufferLength: this.parser.bufferLength,
|
988 |
+
reused: this.reused,
|
989 |
+
start: this.ranges[0].from,
|
990 |
+
length: t.pos - this.ranges[0].from,
|
991 |
+
minRepeatType: this.parser.minRepeatTerm
|
992 |
+
});
|
993 |
+
}
|
994 |
+
stackID(t) {
|
995 |
+
let e = (T || (T = /* @__PURE__ */ new WeakMap())).get(t);
|
996 |
+
return e || T.set(t, e = String.fromCodePoint(this.nextStackID++)), e + t;
|
997 |
+
}
|
998 |
+
}
|
999 |
+
function D(l, t) {
|
1000 |
+
for (let e = 0; e < t.length; e++) {
|
1001 |
+
let s = t[e];
|
1002 |
+
if (s.pos == l.pos && s.sameState(l)) {
|
1003 |
+
t[e].score < l.score && (t[e] = l);
|
1004 |
+
return;
|
1005 |
+
}
|
1006 |
+
}
|
1007 |
+
t.push(l);
|
1008 |
+
}
|
1009 |
+
class Q {
|
1010 |
+
constructor(t, e, s) {
|
1011 |
+
this.source = t, this.flags = e, this.disabled = s;
|
1012 |
+
}
|
1013 |
+
allows(t) {
|
1014 |
+
return !this.disabled || this.disabled[t] == 0;
|
1015 |
+
}
|
1016 |
+
}
|
1017 |
+
const C = (l) => l;
|
1018 |
+
class Z {
|
1019 |
+
/**
|
1020 |
+
Define a context tracker.
|
1021 |
+
*/
|
1022 |
+
constructor(t) {
|
1023 |
+
this.start = t.start, this.shift = t.shift || C, this.reduce = t.reduce || C, this.reuse = t.reuse || C, this.hash = t.hash || (() => 0), this.strict = t.strict !== !1;
|
1024 |
+
}
|
1025 |
+
}
|
1026 |
+
class w extends L {
|
1027 |
+
/**
|
1028 |
+
@internal
|
1029 |
+
*/
|
1030 |
+
constructor(t) {
|
1031 |
+
if (super(), this.wrappers = [], t.version != 14)
|
1032 |
+
throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);
|
1033 |
+
let e = t.nodeNames.split(" ");
|
1034 |
+
this.minRepeatTerm = e.length;
|
1035 |
+
for (let n = 0; n < t.repeatNodeCount; n++)
|
1036 |
+
e.push("");
|
1037 |
+
let s = Object.keys(t.topRules).map((n) => t.topRules[n][1]), i = [];
|
1038 |
+
for (let n = 0; n < e.length; n++)
|
1039 |
+
i.push([]);
|
1040 |
+
function h(n, o, a) {
|
1041 |
+
i[n].push([o, o.deserialize(String(a))]);
|
1042 |
+
}
|
1043 |
+
if (t.nodeProps)
|
1044 |
+
for (let n of t.nodeProps) {
|
1045 |
+
let o = n[0];
|
1046 |
+
typeof o == "string" && (o = y[o]);
|
1047 |
+
for (let a = 1; a < n.length; ) {
|
1048 |
+
let u = n[a++];
|
1049 |
+
if (u >= 0)
|
1050 |
+
h(u, o, n[a++]);
|
1051 |
+
else {
|
1052 |
+
let f = n[a + -u];
|
1053 |
+
for (let c = -u; c > 0; c--)
|
1054 |
+
h(n[a++], o, f);
|
1055 |
+
a++;
|
1056 |
+
}
|
1057 |
+
}
|
1058 |
+
}
|
1059 |
+
this.nodeSet = new M(e.map((n, o) => $.define({
|
1060 |
+
name: o >= this.minRepeatTerm ? void 0 : n,
|
1061 |
+
id: o,
|
1062 |
+
props: i[o],
|
1063 |
+
top: s.indexOf(o) > -1,
|
1064 |
+
error: o == 0,
|
1065 |
+
skipped: t.skippedNodes && t.skippedNodes.indexOf(o) > -1
|
1066 |
+
}))), t.propSources && (this.nodeSet = this.nodeSet.extend(...t.propSources)), this.strict = !1, this.bufferLength = E;
|
1067 |
+
let r = x(t.tokenData);
|
1068 |
+
this.context = t.context, this.specializerSpecs = t.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length);
|
1069 |
+
for (let n = 0; n < this.specializerSpecs.length; n++)
|
1070 |
+
this.specialized[n] = this.specializerSpecs[n].term;
|
1071 |
+
this.specializers = this.specializerSpecs.map(B), this.states = x(t.states, Uint32Array), this.data = x(t.stateData), this.goto = x(t.goto), this.maxTerm = t.maxTerm, this.tokenizers = t.tokenizers.map((n) => typeof n == "number" ? new m(r, n) : n), this.topRules = t.topRules, this.dialects = t.dialects || {}, this.dynamicPrecedences = t.dynamicPrecedences || null, this.tokenPrecTable = t.tokenPrec, this.termNames = t.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]];
|
1072 |
+
}
|
1073 |
+
createParse(t, e, s) {
|
1074 |
+
let i = new K(this, t, e, s);
|
1075 |
+
for (let h of this.wrappers)
|
1076 |
+
i = h(i, t, e, s);
|
1077 |
+
return i;
|
1078 |
+
}
|
1079 |
+
/**
|
1080 |
+
Get a goto table entry @internal
|
1081 |
+
*/
|
1082 |
+
getGoto(t, e, s = !1) {
|
1083 |
+
let i = this.goto;
|
1084 |
+
if (e >= i[0])
|
1085 |
+
return -1;
|
1086 |
+
for (let h = i[e + 1]; ; ) {
|
1087 |
+
let r = i[h++], n = r & 1, o = i[h++];
|
1088 |
+
if (n && s)
|
1089 |
+
return o;
|
1090 |
+
for (let a = h + (r >> 1); h < a; h++)
|
1091 |
+
if (i[h] == t)
|
1092 |
+
return o;
|
1093 |
+
if (n)
|
1094 |
+
return -1;
|
1095 |
+
}
|
1096 |
+
}
|
1097 |
+
/**
|
1098 |
+
Check if this state has an action for a given terminal @internal
|
1099 |
+
*/
|
1100 |
+
hasAction(t, e) {
|
1101 |
+
let s = this.data;
|
1102 |
+
for (let i = 0; i < 2; i++)
|
1103 |
+
for (let h = this.stateSlot(
|
1104 |
+
t,
|
1105 |
+
i ? 2 : 1
|
1106 |
+
/* ParseState.Actions */
|
1107 |
+
), r; ; h += 3) {
|
1108 |
+
if ((r = s[h]) == 65535)
|
1109 |
+
if (s[h + 1] == 1)
|
1110 |
+
r = s[h = k(s, h + 2)];
|
1111 |
+
else {
|
1112 |
+
if (s[h + 1] == 2)
|
1113 |
+
return k(s, h + 2);
|
1114 |
+
break;
|
1115 |
+
}
|
1116 |
+
if (r == e || r == 0)
|
1117 |
+
return k(s, h + 1);
|
1118 |
+
}
|
1119 |
+
return 0;
|
1120 |
+
}
|
1121 |
+
/**
|
1122 |
+
@internal
|
1123 |
+
*/
|
1124 |
+
stateSlot(t, e) {
|
1125 |
+
return this.states[t * 6 + e];
|
1126 |
+
}
|
1127 |
+
/**
|
1128 |
+
@internal
|
1129 |
+
*/
|
1130 |
+
stateFlag(t, e) {
|
1131 |
+
return (this.stateSlot(
|
1132 |
+
t,
|
1133 |
+
0
|
1134 |
+
/* ParseState.Flags */
|
1135 |
+
) & e) > 0;
|
1136 |
+
}
|
1137 |
+
/**
|
1138 |
+
@internal
|
1139 |
+
*/
|
1140 |
+
validAction(t, e) {
|
1141 |
+
return !!this.allActions(t, (s) => s == e ? !0 : null);
|
1142 |
+
}
|
1143 |
+
/**
|
1144 |
+
@internal
|
1145 |
+
*/
|
1146 |
+
allActions(t, e) {
|
1147 |
+
let s = this.stateSlot(
|
1148 |
+
t,
|
1149 |
+
4
|
1150 |
+
/* ParseState.DefaultReduce */
|
1151 |
+
), i = s ? e(s) : void 0;
|
1152 |
+
for (let h = this.stateSlot(
|
1153 |
+
t,
|
1154 |
+
1
|
1155 |
+
/* ParseState.Actions */
|
1156 |
+
); i == null; h += 3) {
|
1157 |
+
if (this.data[h] == 65535)
|
1158 |
+
if (this.data[h + 1] == 1)
|
1159 |
+
h = k(this.data, h + 2);
|
1160 |
+
else
|
1161 |
+
break;
|
1162 |
+
i = e(k(this.data, h + 1));
|
1163 |
+
}
|
1164 |
+
return i;
|
1165 |
+
}
|
1166 |
+
/**
|
1167 |
+
Get the states that can follow this one through shift actions or
|
1168 |
+
goto jumps. @internal
|
1169 |
+
*/
|
1170 |
+
nextStates(t) {
|
1171 |
+
let e = [];
|
1172 |
+
for (let s = this.stateSlot(
|
1173 |
+
t,
|
1174 |
+
1
|
1175 |
+
/* ParseState.Actions */
|
1176 |
+
); ; s += 3) {
|
1177 |
+
if (this.data[s] == 65535)
|
1178 |
+
if (this.data[s + 1] == 1)
|
1179 |
+
s = k(this.data, s + 2);
|
1180 |
+
else
|
1181 |
+
break;
|
1182 |
+
if (!(this.data[s + 2] & 1)) {
|
1183 |
+
let i = this.data[s + 1];
|
1184 |
+
e.some((h, r) => r & 1 && h == i) || e.push(this.data[s], i);
|
1185 |
+
}
|
1186 |
+
}
|
1187 |
+
return e;
|
1188 |
+
}
|
1189 |
+
/**
|
1190 |
+
Configure the parser. Returns a new parser instance that has the
|
1191 |
+
given settings modified. Settings not provided in `config` are
|
1192 |
+
kept from the original parser.
|
1193 |
+
*/
|
1194 |
+
configure(t) {
|
1195 |
+
let e = Object.assign(Object.create(w.prototype), this);
|
1196 |
+
if (t.props && (e.nodeSet = this.nodeSet.extend(...t.props)), t.top) {
|
1197 |
+
let s = this.topRules[t.top];
|
1198 |
+
if (!s)
|
1199 |
+
throw new RangeError(`Invalid top rule name ${t.top}`);
|
1200 |
+
e.top = s;
|
1201 |
+
}
|
1202 |
+
return t.tokenizers && (e.tokenizers = this.tokenizers.map((s) => {
|
1203 |
+
let i = t.tokenizers.find((h) => h.from == s);
|
1204 |
+
return i ? i.to : s;
|
1205 |
+
})), t.specializers && (e.specializers = this.specializers.slice(), e.specializerSpecs = this.specializerSpecs.map((s, i) => {
|
1206 |
+
let h = t.specializers.find((n) => n.from == s.external);
|
1207 |
+
if (!h)
|
1208 |
+
return s;
|
1209 |
+
let r = Object.assign(Object.assign({}, s), { external: h.to });
|
1210 |
+
return e.specializers[i] = B(r), r;
|
1211 |
+
})), t.contextTracker && (e.context = t.contextTracker), t.dialect && (e.dialect = this.parseDialect(t.dialect)), t.strict != null && (e.strict = t.strict), t.wrap && (e.wrappers = e.wrappers.concat(t.wrap)), t.bufferLength != null && (e.bufferLength = t.bufferLength), e;
|
1212 |
+
}
|
1213 |
+
/**
|
1214 |
+
Tells you whether any [parse wrappers](#lr.ParserConfig.wrap)
|
1215 |
+
are registered for this parser.
|
1216 |
+
*/
|
1217 |
+
hasWrappers() {
|
1218 |
+
return this.wrappers.length > 0;
|
1219 |
+
}
|
1220 |
+
/**
|
1221 |
+
Returns the name associated with a given term. This will only
|
1222 |
+
work for all terms when the parser was generated with the
|
1223 |
+
`--names` option. By default, only the names of tagged terms are
|
1224 |
+
stored.
|
1225 |
+
*/
|
1226 |
+
getName(t) {
|
1227 |
+
return this.termNames ? this.termNames[t] : String(t <= this.maxNode && this.nodeSet.types[t].name || t);
|
1228 |
+
}
|
1229 |
+
/**
|
1230 |
+
The eof term id is always allocated directly after the node
|
1231 |
+
types. @internal
|
1232 |
+
*/
|
1233 |
+
get eofTerm() {
|
1234 |
+
return this.maxNode + 1;
|
1235 |
+
}
|
1236 |
+
/**
|
1237 |
+
The type of top node produced by the parser.
|
1238 |
+
*/
|
1239 |
+
get topNode() {
|
1240 |
+
return this.nodeSet.types[this.top[1]];
|
1241 |
+
}
|
1242 |
+
/**
|
1243 |
+
@internal
|
1244 |
+
*/
|
1245 |
+
dynamicPrecedence(t) {
|
1246 |
+
let e = this.dynamicPrecedences;
|
1247 |
+
return e == null ? 0 : e[t] || 0;
|
1248 |
+
}
|
1249 |
+
/**
|
1250 |
+
@internal
|
1251 |
+
*/
|
1252 |
+
parseDialect(t) {
|
1253 |
+
let e = Object.keys(this.dialects), s = e.map(() => !1);
|
1254 |
+
if (t)
|
1255 |
+
for (let h of t.split(" ")) {
|
1256 |
+
let r = e.indexOf(h);
|
1257 |
+
r >= 0 && (s[r] = !0);
|
1258 |
+
}
|
1259 |
+
let i = null;
|
1260 |
+
for (let h = 0; h < e.length; h++)
|
1261 |
+
if (!s[h])
|
1262 |
+
for (let r = this.dialects[e[h]], n; (n = this.data[r++]) != 65535; )
|
1263 |
+
(i || (i = new Uint8Array(this.maxTerm + 1)))[n] = 1;
|
1264 |
+
return new Q(t, s, i);
|
1265 |
+
}
|
1266 |
+
/**
|
1267 |
+
Used by the output of the parser generator. Not available to
|
1268 |
+
user code. @hide
|
1269 |
+
*/
|
1270 |
+
static deserialize(t) {
|
1271 |
+
return new w(t);
|
1272 |
+
}
|
1273 |
+
}
|
1274 |
+
function k(l, t) {
|
1275 |
+
return l[t] | l[t + 1] << 16;
|
1276 |
+
}
|
1277 |
+
function V(l) {
|
1278 |
+
let t = null;
|
1279 |
+
for (let e of l) {
|
1280 |
+
let s = e.p.stoppedAt;
|
1281 |
+
(e.pos == e.p.stream.end || s != null && e.pos > s) && e.p.parser.stateFlag(
|
1282 |
+
e.state,
|
1283 |
+
2
|
1284 |
+
/* StateFlag.Accepting */
|
1285 |
+
) && (!t || t.score < e.score) && (t = e);
|
1286 |
+
}
|
1287 |
+
return t;
|
1288 |
+
}
|
1289 |
+
function B(l) {
|
1290 |
+
if (l.external) {
|
1291 |
+
let t = l.extend ? 1 : 0;
|
1292 |
+
return (e, s) => l.external(e, s) << 1 | t;
|
1293 |
+
}
|
1294 |
+
return l.get;
|
1295 |
+
}
|
1296 |
+
export {
|
1297 |
+
Z as C,
|
1298 |
+
Y as E,
|
1299 |
+
w as L,
|
1300 |
+
H as a
|
1301 |
+
};
|
src/backend/gradio_logsview/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, w as ut, f as Be, b as dt, x as pt, y as ct, z as le, A as mt } from "./Index-d65e8fec.js";
|
2 |
+
import { htmlCompletionSource as gt, html as kt } from "./index-b0f813de.js";
|
3 |
+
import "./index-2ee8fec2.js";
|
4 |
+
import "./index-cb2e00e0.js";
|
5 |
+
import "./index-0383c262.js";
|
6 |
+
class j {
|
7 |
+
static create(e, r, n, s, i) {
|
8 |
+
let o = s + (s << 8) + e + (r << 4) | 0;
|
9 |
+
return new j(e, r, n, o, i, [], []);
|
10 |
+
}
|
11 |
+
constructor(e, r, n, s, i, o, a) {
|
12 |
+
this.type = e, this.value = r, this.from = n, this.hash = s, this.end = i, this.children = o, this.positions = a, this.hashProp = [[H.contextHash, s]];
|
13 |
+
}
|
14 |
+
addChild(e, r) {
|
15 |
+
e.prop(H.contextHash) != this.hash && (e = new E(e.type, e.children, e.positions, e.length, this.hashProp)), this.children.push(e), this.positions.push(r);
|
16 |
+
}
|
17 |
+
toTree(e, r = this.end) {
|
18 |
+
let n = this.children.length - 1;
|
19 |
+
return n >= 0 && (r = Math.max(r, this.positions[n] + this.children[n].length + this.from)), new E(e.types[this.type], this.children, this.positions, r - this.from).balance({
|
20 |
+
makeTree: (s, i, o) => new E(_.none, s, i, o, this.hashProp)
|
21 |
+
});
|
22 |
+
}
|
23 |
+
}
|
24 |
+
var u;
|
25 |
+
(function(t) {
|
26 |
+
t[t.Document = 1] = "Document", t[t.CodeBlock = 2] = "CodeBlock", t[t.FencedCode = 3] = "FencedCode", t[t.Blockquote = 4] = "Blockquote", t[t.HorizontalRule = 5] = "HorizontalRule", t[t.BulletList = 6] = "BulletList", t[t.OrderedList = 7] = "OrderedList", t[t.ListItem = 8] = "ListItem", t[t.ATXHeading1 = 9] = "ATXHeading1", t[t.ATXHeading2 = 10] = "ATXHeading2", t[t.ATXHeading3 = 11] = "ATXHeading3", t[t.ATXHeading4 = 12] = "ATXHeading4", t[t.ATXHeading5 = 13] = "ATXHeading5", t[t.ATXHeading6 = 14] = "ATXHeading6", t[t.SetextHeading1 = 15] = "SetextHeading1", t[t.SetextHeading2 = 16] = "SetextHeading2", t[t.HTMLBlock = 17] = "HTMLBlock", t[t.LinkReference = 18] = "LinkReference", t[t.Paragraph = 19] = "Paragraph", t[t.CommentBlock = 20] = "CommentBlock", t[t.ProcessingInstructionBlock = 21] = "ProcessingInstructionBlock", t[t.Escape = 22] = "Escape", t[t.Entity = 23] = "Entity", t[t.HardBreak = 24] = "HardBreak", t[t.Emphasis = 25] = "Emphasis", t[t.StrongEmphasis = 26] = "StrongEmphasis", t[t.Link = 27] = "Link", t[t.Image = 28] = "Image", t[t.InlineCode = 29] = "InlineCode", t[t.HTMLTag = 30] = "HTMLTag", t[t.Comment = 31] = "Comment", t[t.ProcessingInstruction = 32] = "ProcessingInstruction", t[t.Autolink = 33] = "Autolink", t[t.HeaderMark = 34] = "HeaderMark", t[t.QuoteMark = 35] = "QuoteMark", t[t.ListMark = 36] = "ListMark", t[t.LinkMark = 37] = "LinkMark", t[t.EmphasisMark = 38] = "EmphasisMark", t[t.CodeMark = 39] = "CodeMark", t[t.CodeText = 40] = "CodeText", t[t.CodeInfo = 41] = "CodeInfo", t[t.LinkTitle = 42] = "LinkTitle", t[t.LinkLabel = 43] = "LinkLabel", t[t.URL = 44] = "URL";
|
27 |
+
})(u || (u = {}));
|
28 |
+
class Lt {
|
29 |
+
/// @internal
|
30 |
+
constructor(e, r) {
|
31 |
+
this.start = e, this.content = r, this.marks = [], this.parsers = [];
|
32 |
+
}
|
33 |
+
}
|
34 |
+
class bt {
|
35 |
+
constructor() {
|
36 |
+
this.text = "", this.baseIndent = 0, this.basePos = 0, this.depth = 0, this.markers = [], this.pos = 0, this.indent = 0, this.next = -1;
|
37 |
+
}
|
38 |
+
/// @internal
|
39 |
+
forward() {
|
40 |
+
this.basePos > this.pos && this.forwardInner();
|
41 |
+
}
|
42 |
+
/// @internal
|
43 |
+
forwardInner() {
|
44 |
+
let e = this.skipSpace(this.basePos);
|
45 |
+
this.indent = this.countIndent(e, this.pos, this.indent), this.pos = e, this.next = e == this.text.length ? -1 : this.text.charCodeAt(e);
|
46 |
+
}
|
47 |
+
/// Skip whitespace after the given position, return the position of
|
48 |
+
/// the next non-space character or the end of the line if there's
|
49 |
+
/// only space after `from`.
|
50 |
+
skipSpace(e) {
|
51 |
+
return R(this.text, e);
|
52 |
+
}
|
53 |
+
/// @internal
|
54 |
+
reset(e) {
|
55 |
+
for (this.text = e, this.baseIndent = this.basePos = this.pos = this.indent = 0, this.forwardInner(), this.depth = 1; this.markers.length; )
|
56 |
+
this.markers.pop();
|
57 |
+
}
|
58 |
+
/// Move the line's base position forward to the given position.
|
59 |
+
/// This should only be called by composite [block
|
60 |
+
/// parsers](#BlockParser.parse) or [markup skipping
|
61 |
+
/// functions](#NodeSpec.composite).
|
62 |
+
moveBase(e) {
|
63 |
+
this.basePos = e, this.baseIndent = this.countIndent(e, this.pos, this.indent);
|
64 |
+
}
|
65 |
+
/// Move the line's base position forward to the given _column_.
|
66 |
+
moveBaseColumn(e) {
|
67 |
+
this.baseIndent = e, this.basePos = this.findColumn(e);
|
68 |
+
}
|
69 |
+
/// Store a composite-block-level marker. Should be called from
|
70 |
+
/// [markup skipping functions](#NodeSpec.composite) when they
|
71 |
+
/// consume any non-whitespace characters.
|
72 |
+
addMarker(e) {
|
73 |
+
this.markers.push(e);
|
74 |
+
}
|
75 |
+
/// Find the column position at `to`, optionally starting at a given
|
76 |
+
/// position and column.
|
77 |
+
countIndent(e, r = 0, n = 0) {
|
78 |
+
for (let s = r; s < e; s++)
|
79 |
+
n += this.text.charCodeAt(s) == 9 ? 4 - n % 4 : 1;
|
80 |
+
return n;
|
81 |
+
}
|
82 |
+
/// Find the position corresponding to the given column.
|
83 |
+
findColumn(e) {
|
84 |
+
let r = 0;
|
85 |
+
for (let n = 0; r < this.text.length && n < e; r++)
|
86 |
+
n += this.text.charCodeAt(r) == 9 ? 4 - n % 4 : 1;
|
87 |
+
return r;
|
88 |
+
}
|
89 |
+
/// @internal
|
90 |
+
scrub() {
|
91 |
+
if (!this.baseIndent)
|
92 |
+
return this.text;
|
93 |
+
let e = "";
|
94 |
+
for (let r = 0; r < this.basePos; r++)
|
95 |
+
e += " ";
|
96 |
+
return e + this.text.slice(this.basePos);
|
97 |
+
}
|
98 |
+
}
|
99 |
+
function he(t, e, r) {
|
100 |
+
if (r.pos == r.text.length || t != e.block && r.indent >= e.stack[r.depth + 1].value + r.baseIndent)
|
101 |
+
return !0;
|
102 |
+
if (r.indent >= r.baseIndent + 4)
|
103 |
+
return !1;
|
104 |
+
let n = (t.type == u.OrderedList ? se : ne)(r, e, !1);
|
105 |
+
return n > 0 && (t.type != u.BulletList || re(r, e, !1) < 0) && r.text.charCodeAt(r.pos + n - 1) == t.value;
|
106 |
+
}
|
107 |
+
const Ee = {
|
108 |
+
[u.Blockquote](t, e, r) {
|
109 |
+
return r.next != 62 ? !1 : (r.markers.push(g(u.QuoteMark, e.lineStart + r.pos, e.lineStart + r.pos + 1)), r.moveBase(r.pos + (C(r.text.charCodeAt(r.pos + 1)) ? 2 : 1)), t.end = e.lineStart + r.text.length, !0);
|
110 |
+
},
|
111 |
+
[u.ListItem](t, e, r) {
|
112 |
+
return r.indent < r.baseIndent + t.value && r.next > -1 ? !1 : (r.moveBaseColumn(r.baseIndent + t.value), !0);
|
113 |
+
},
|
114 |
+
[u.OrderedList]: he,
|
115 |
+
[u.BulletList]: he,
|
116 |
+
[u.Document]() {
|
117 |
+
return !0;
|
118 |
+
}
|
119 |
+
};
|
120 |
+
function C(t) {
|
121 |
+
return t == 32 || t == 9 || t == 10 || t == 13;
|
122 |
+
}
|
123 |
+
function R(t, e = 0) {
|
124 |
+
for (; e < t.length && C(t.charCodeAt(e)); )
|
125 |
+
e++;
|
126 |
+
return e;
|
127 |
+
}
|
128 |
+
function fe(t, e, r) {
|
129 |
+
for (; e > r && C(t.charCodeAt(e - 1)); )
|
130 |
+
e--;
|
131 |
+
return e;
|
132 |
+
}
|
133 |
+
function Me(t) {
|
134 |
+
if (t.next != 96 && t.next != 126)
|
135 |
+
return -1;
|
136 |
+
let e = t.pos + 1;
|
137 |
+
for (; e < t.text.length && t.text.charCodeAt(e) == t.next; )
|
138 |
+
e++;
|
139 |
+
if (e < t.pos + 3)
|
140 |
+
return -1;
|
141 |
+
if (t.next == 96) {
|
142 |
+
for (let r = e; r < t.text.length; r++)
|
143 |
+
if (t.text.charCodeAt(r) == 96)
|
144 |
+
return -1;
|
145 |
+
}
|
146 |
+
return e;
|
147 |
+
}
|
148 |
+
function Pe(t) {
|
149 |
+
return t.next != 62 ? -1 : t.text.charCodeAt(t.pos + 1) == 32 ? 2 : 1;
|
150 |
+
}
|
151 |
+
function re(t, e, r) {
|
152 |
+
if (t.next != 42 && t.next != 45 && t.next != 95)
|
153 |
+
return -1;
|
154 |
+
let n = 1;
|
155 |
+
for (let s = t.pos + 1; s < t.text.length; s++) {
|
156 |
+
let i = t.text.charCodeAt(s);
|
157 |
+
if (i == t.next)
|
158 |
+
n++;
|
159 |
+
else if (!C(i))
|
160 |
+
return -1;
|
161 |
+
}
|
162 |
+
return r && t.next == 45 && Ne(t) > -1 && t.depth == e.stack.length || n < 3 ? -1 : 1;
|
163 |
+
}
|
164 |
+
function He(t, e) {
|
165 |
+
for (let r = t.stack.length - 1; r >= 0; r--)
|
166 |
+
if (t.stack[r].type == e)
|
167 |
+
return !0;
|
168 |
+
return !1;
|
169 |
+
}
|
170 |
+
function ne(t, e, r) {
|
171 |
+
return (t.next == 45 || t.next == 43 || t.next == 42) && (t.pos == t.text.length - 1 || C(t.text.charCodeAt(t.pos + 1))) && (!r || He(e, u.BulletList) || t.skipSpace(t.pos + 2) < t.text.length) ? 1 : -1;
|
172 |
+
}
|
173 |
+
function se(t, e, r) {
|
174 |
+
let n = t.pos, s = t.next;
|
175 |
+
for (; s >= 48 && s <= 57; ) {
|
176 |
+
n++;
|
177 |
+
if (n == t.text.length)
|
178 |
+
return -1;
|
179 |
+
s = t.text.charCodeAt(n);
|
180 |
+
}
|
181 |
+
return n == t.pos || n > t.pos + 9 || s != 46 && s != 41 || n < t.text.length - 1 && !C(t.text.charCodeAt(n + 1)) || r && !He(e, u.OrderedList) && (t.skipSpace(n + 1) == t.text.length || n > t.pos + 1 || t.next != 49) ? -1 : n + 1 - t.pos;
|
182 |
+
}
|
183 |
+
function ve(t) {
|
184 |
+
if (t.next != 35)
|
185 |
+
return -1;
|
186 |
+
let e = t.pos + 1;
|
187 |
+
for (; e < t.text.length && t.text.charCodeAt(e) == 35; )
|
188 |
+
e++;
|
189 |
+
if (e < t.text.length && t.text.charCodeAt(e) != 32)
|
190 |
+
return -1;
|
191 |
+
let r = e - t.pos;
|
192 |
+
return r > 6 ? -1 : r;
|
193 |
+
}
|
194 |
+
function Ne(t) {
|
195 |
+
if (t.next != 45 && t.next != 61 || t.indent >= t.baseIndent + 4)
|
196 |
+
return -1;
|
197 |
+
let e = t.pos + 1;
|
198 |
+
for (; e < t.text.length && t.text.charCodeAt(e) == t.next; )
|
199 |
+
e++;
|
200 |
+
let r = e;
|
201 |
+
for (; e < t.text.length && C(t.text.charCodeAt(e)); )
|
202 |
+
e++;
|
203 |
+
return e == t.text.length ? r : -1;
|
204 |
+
}
|
205 |
+
const K = /^[ \t]*$/, ye = /-->/, Re = /\?>/, J = [
|
206 |
+
[/^<(?:script|pre|style)(?:\s|>|$)/i, /<\/(?:script|pre|style)>/i],
|
207 |
+
[/^\s*<!--/, ye],
|
208 |
+
[/^\s*<\?/, Re],
|
209 |
+
[/^\s*<![A-Z]/, />/],
|
210 |
+
[/^\s*<!\[CDATA\[/, /\]\]>/],
|
211 |
+
[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i, K],
|
212 |
+
[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i, K]
|
213 |
+
];
|
214 |
+
function Oe(t, e, r) {
|
215 |
+
if (t.next != 60)
|
216 |
+
return -1;
|
217 |
+
let n = t.text.slice(t.pos);
|
218 |
+
for (let s = 0, i = J.length - (r ? 1 : 0); s < i; s++)
|
219 |
+
if (J[s][0].test(n))
|
220 |
+
return s;
|
221 |
+
return -1;
|
222 |
+
}
|
223 |
+
function ue(t, e) {
|
224 |
+
let r = t.countIndent(e, t.pos, t.indent), n = t.countIndent(t.skipSpace(e), e, r);
|
225 |
+
return n >= r + 5 ? r + 1 : n;
|
226 |
+
}
|
227 |
+
function B(t, e, r) {
|
228 |
+
let n = t.length - 1;
|
229 |
+
n >= 0 && t[n].to == e && t[n].type == u.CodeText ? t[n].to = r : t.push(g(u.CodeText, e, r));
|
230 |
+
}
|
231 |
+
const F = {
|
232 |
+
LinkReference: void 0,
|
233 |
+
IndentedCode(t, e) {
|
234 |
+
let r = e.baseIndent + 4;
|
235 |
+
if (e.indent < r)
|
236 |
+
return !1;
|
237 |
+
let n = e.findColumn(r), s = t.lineStart + n, i = t.lineStart + e.text.length, o = [], a = [];
|
238 |
+
for (B(o, s, i); t.nextLine() && e.depth >= t.stack.length; )
|
239 |
+
if (e.pos == e.text.length) {
|
240 |
+
B(a, t.lineStart - 1, t.lineStart);
|
241 |
+
for (let l of e.markers)
|
242 |
+
a.push(l);
|
243 |
+
} else {
|
244 |
+
if (e.indent < r)
|
245 |
+
break;
|
246 |
+
{
|
247 |
+
if (a.length) {
|
248 |
+
for (let f of a)
|
249 |
+
f.type == u.CodeText ? B(o, f.from, f.to) : o.push(f);
|
250 |
+
a = [];
|
251 |
+
}
|
252 |
+
B(o, t.lineStart - 1, t.lineStart);
|
253 |
+
for (let f of e.markers)
|
254 |
+
o.push(f);
|
255 |
+
i = t.lineStart + e.text.length;
|
256 |
+
let l = t.lineStart + e.findColumn(e.baseIndent + 4);
|
257 |
+
l < i && B(o, l, i);
|
258 |
+
}
|
259 |
+
}
|
260 |
+
return a.length && (a = a.filter((l) => l.type != u.CodeText), a.length && (e.markers = a.concat(e.markers))), t.addNode(t.buffer.writeElements(o, -s).finish(u.CodeBlock, i - s), s), !0;
|
261 |
+
},
|
262 |
+
FencedCode(t, e) {
|
263 |
+
let r = Me(e);
|
264 |
+
if (r < 0)
|
265 |
+
return !1;
|
266 |
+
let n = t.lineStart + e.pos, s = e.next, i = r - e.pos, o = e.skipSpace(r), a = fe(e.text, e.text.length, o), l = [g(u.CodeMark, n, n + i)];
|
267 |
+
o < a && l.push(g(u.CodeInfo, t.lineStart + o, t.lineStart + a));
|
268 |
+
for (let f = !0; t.nextLine() && e.depth >= t.stack.length; f = !1) {
|
269 |
+
let h = e.pos;
|
270 |
+
if (e.indent - e.baseIndent < 4)
|
271 |
+
for (; h < e.text.length && e.text.charCodeAt(h) == s; )
|
272 |
+
h++;
|
273 |
+
if (h - e.pos >= i && e.skipSpace(h) == e.text.length) {
|
274 |
+
for (let p of e.markers)
|
275 |
+
l.push(p);
|
276 |
+
l.push(g(u.CodeMark, t.lineStart + e.pos, t.lineStart + h)), t.nextLine();
|
277 |
+
break;
|
278 |
+
} else {
|
279 |
+
f || B(l, t.lineStart - 1, t.lineStart);
|
280 |
+
for (let m of e.markers)
|
281 |
+
l.push(m);
|
282 |
+
let p = t.lineStart + e.basePos, d = t.lineStart + e.text.length;
|
283 |
+
p < d && B(l, p, d);
|
284 |
+
}
|
285 |
+
}
|
286 |
+
return t.addNode(t.buffer.writeElements(l, -n).finish(u.FencedCode, t.prevLineEnd() - n), n), !0;
|
287 |
+
},
|
288 |
+
Blockquote(t, e) {
|
289 |
+
let r = Pe(e);
|
290 |
+
return r < 0 ? !1 : (t.startContext(u.Blockquote, e.pos), t.addNode(u.QuoteMark, t.lineStart + e.pos, t.lineStart + e.pos + 1), e.moveBase(e.pos + r), null);
|
291 |
+
},
|
292 |
+
HorizontalRule(t, e) {
|
293 |
+
if (re(e, t, !1) < 0)
|
294 |
+
return !1;
|
295 |
+
let r = t.lineStart + e.pos;
|
296 |
+
return t.nextLine(), t.addNode(u.HorizontalRule, r), !0;
|
297 |
+
},
|
298 |
+
BulletList(t, e) {
|
299 |
+
let r = ne(e, t, !1);
|
300 |
+
if (r < 0)
|
301 |
+
return !1;
|
302 |
+
t.block.type != u.BulletList && t.startContext(u.BulletList, e.basePos, e.next);
|
303 |
+
let n = ue(e, e.pos + 1);
|
304 |
+
return t.startContext(u.ListItem, e.basePos, n - e.baseIndent), t.addNode(u.ListMark, t.lineStart + e.pos, t.lineStart + e.pos + r), e.moveBaseColumn(n), null;
|
305 |
+
},
|
306 |
+
OrderedList(t, e) {
|
307 |
+
let r = se(e, t, !1);
|
308 |
+
if (r < 0)
|
309 |
+
return !1;
|
310 |
+
t.block.type != u.OrderedList && t.startContext(u.OrderedList, e.basePos, e.text.charCodeAt(e.pos + r - 1));
|
311 |
+
let n = ue(e, e.pos + r);
|
312 |
+
return t.startContext(u.ListItem, e.basePos, n - e.baseIndent), t.addNode(u.ListMark, t.lineStart + e.pos, t.lineStart + e.pos + r), e.moveBaseColumn(n), null;
|
313 |
+
},
|
314 |
+
ATXHeading(t, e) {
|
315 |
+
let r = ve(e);
|
316 |
+
if (r < 0)
|
317 |
+
return !1;
|
318 |
+
let n = e.pos, s = t.lineStart + n, i = fe(e.text, e.text.length, n), o = i;
|
319 |
+
for (; o > n && e.text.charCodeAt(o - 1) == e.next; )
|
320 |
+
o--;
|
321 |
+
(o == i || o == n || !C(e.text.charCodeAt(o - 1))) && (o = e.text.length);
|
322 |
+
let a = t.buffer.write(u.HeaderMark, 0, r).writeElements(t.parser.parseInline(e.text.slice(n + r + 1, o), s + r + 1), -s);
|
323 |
+
o < e.text.length && a.write(u.HeaderMark, o - n, i - n);
|
324 |
+
let l = a.finish(u.ATXHeading1 - 1 + r, e.text.length - n);
|
325 |
+
return t.nextLine(), t.addNode(l, s), !0;
|
326 |
+
},
|
327 |
+
HTMLBlock(t, e) {
|
328 |
+
let r = Oe(e, t, !1);
|
329 |
+
if (r < 0)
|
330 |
+
return !1;
|
331 |
+
let n = t.lineStart + e.pos, s = J[r][1], i = [], o = s != K;
|
332 |
+
for (; !s.test(e.text) && t.nextLine(); ) {
|
333 |
+
if (e.depth < t.stack.length) {
|
334 |
+
o = !1;
|
335 |
+
break;
|
336 |
+
}
|
337 |
+
for (let f of e.markers)
|
338 |
+
i.push(f);
|
339 |
+
}
|
340 |
+
o && t.nextLine();
|
341 |
+
let a = s == ye ? u.CommentBlock : s == Re ? u.ProcessingInstructionBlock : u.HTMLBlock, l = t.prevLineEnd();
|
342 |
+
return t.addNode(t.buffer.writeElements(i, -n).finish(a, l - n), n), !0;
|
343 |
+
},
|
344 |
+
SetextHeading: void 0
|
345 |
+
// Specifies relative precedence for block-continue function
|
346 |
+
};
|
347 |
+
class wt {
|
348 |
+
constructor(e) {
|
349 |
+
this.stage = 0, this.elts = [], this.pos = 0, this.start = e.start, this.advance(e.content);
|
350 |
+
}
|
351 |
+
nextLine(e, r, n) {
|
352 |
+
if (this.stage == -1)
|
353 |
+
return !1;
|
354 |
+
let s = n.content + `
|
355 |
+
` + r.scrub(), i = this.advance(s);
|
356 |
+
return i > -1 && i < s.length ? this.complete(e, n, i) : !1;
|
357 |
+
}
|
358 |
+
finish(e, r) {
|
359 |
+
return (this.stage == 2 || this.stage == 3) && R(r.content, this.pos) == r.content.length ? this.complete(e, r, r.content.length) : !1;
|
360 |
+
}
|
361 |
+
complete(e, r, n) {
|
362 |
+
return e.addLeafElement(r, g(u.LinkReference, this.start, this.start + n, this.elts)), !0;
|
363 |
+
}
|
364 |
+
nextStage(e) {
|
365 |
+
return e ? (this.pos = e.to - this.start, this.elts.push(e), this.stage++, !0) : (e === !1 && (this.stage = -1), !1);
|
366 |
+
}
|
367 |
+
advance(e) {
|
368 |
+
for (; ; ) {
|
369 |
+
if (this.stage == -1)
|
370 |
+
return -1;
|
371 |
+
if (this.stage == 0) {
|
372 |
+
if (!this.nextStage(qe(e, this.pos, this.start, !0)))
|
373 |
+
return -1;
|
374 |
+
if (e.charCodeAt(this.pos) != 58)
|
375 |
+
return this.stage = -1;
|
376 |
+
this.elts.push(g(u.LinkMark, this.pos + this.start, this.pos + this.start + 1)), this.pos++;
|
377 |
+
} else if (this.stage == 1) {
|
378 |
+
if (!this.nextStage(je(e, R(e, this.pos), this.start)))
|
379 |
+
return -1;
|
380 |
+
} else if (this.stage == 2) {
|
381 |
+
let r = R(e, this.pos), n = 0;
|
382 |
+
if (r > this.pos) {
|
383 |
+
let s = _e(e, r, this.start);
|
384 |
+
if (s) {
|
385 |
+
let i = Q(e, s.to - this.start);
|
386 |
+
i > 0 && (this.nextStage(s), n = i);
|
387 |
+
}
|
388 |
+
}
|
389 |
+
return n || (n = Q(e, this.pos)), n > 0 && n < e.length ? n : -1;
|
390 |
+
} else
|
391 |
+
return Q(e, this.pos);
|
392 |
+
}
|
393 |
+
}
|
394 |
+
}
|
395 |
+
function Q(t, e) {
|
396 |
+
for (; e < t.length; e++) {
|
397 |
+
let r = t.charCodeAt(e);
|
398 |
+
if (r == 10)
|
399 |
+
break;
|
400 |
+
if (!C(r))
|
401 |
+
return -1;
|
402 |
+
}
|
403 |
+
return e;
|
404 |
+
}
|
405 |
+
class St {
|
406 |
+
nextLine(e, r, n) {
|
407 |
+
let s = r.depth < e.stack.length ? -1 : Ne(r), i = r.next;
|
408 |
+
if (s < 0)
|
409 |
+
return !1;
|
410 |
+
let o = g(u.HeaderMark, e.lineStart + r.pos, e.lineStart + s);
|
411 |
+
return e.nextLine(), e.addLeafElement(n, g(i == 61 ? u.SetextHeading1 : u.SetextHeading2, n.start, e.prevLineEnd(), [
|
412 |
+
...e.parser.parseInline(n.content, n.start),
|
413 |
+
o
|
414 |
+
])), !0;
|
415 |
+
}
|
416 |
+
finish() {
|
417 |
+
return !1;
|
418 |
+
}
|
419 |
+
}
|
420 |
+
const Ct = {
|
421 |
+
LinkReference(t, e) {
|
422 |
+
return e.content.charCodeAt(0) == 91 ? new wt(e) : null;
|
423 |
+
},
|
424 |
+
SetextHeading() {
|
425 |
+
return new St();
|
426 |
+
}
|
427 |
+
}, xt = [
|
428 |
+
(t, e) => ve(e) >= 0,
|
429 |
+
(t, e) => Me(e) >= 0,
|
430 |
+
(t, e) => Pe(e) >= 0,
|
431 |
+
(t, e) => ne(e, t, !0) >= 0,
|
432 |
+
(t, e) => se(e, t, !0) >= 0,
|
433 |
+
(t, e) => re(e, t, !0) >= 0,
|
434 |
+
(t, e) => Oe(e, t, !0) >= 0
|
435 |
+
], At = { text: "", end: 0 };
|
436 |
+
class It {
|
437 |
+
/// @internal
|
438 |
+
constructor(e, r, n, s) {
|
439 |
+
this.parser = e, this.input = r, this.ranges = s, this.line = new bt(), this.atEnd = !1, this.reusePlaceholders = /* @__PURE__ */ new Map(), this.stoppedAt = null, this.rangeI = 0, this.to = s[s.length - 1].to, this.lineStart = this.absoluteLineStart = this.absoluteLineEnd = s[0].from, this.block = j.create(u.Document, 0, this.lineStart, 0, 0), this.stack = [this.block], this.fragments = n.length ? new Pt(n, r) : null, this.readLine();
|
440 |
+
}
|
441 |
+
get parsedPos() {
|
442 |
+
return this.absoluteLineStart;
|
443 |
+
}
|
444 |
+
advance() {
|
445 |
+
if (this.stoppedAt != null && this.absoluteLineStart > this.stoppedAt)
|
446 |
+
return this.finish();
|
447 |
+
let { line: e } = this;
|
448 |
+
for (; ; ) {
|
449 |
+
for (let n = 0; ; ) {
|
450 |
+
let s = e.depth < this.stack.length ? this.stack[this.stack.length - 1] : null;
|
451 |
+
for (; n < e.markers.length && (!s || e.markers[n].from < s.end); ) {
|
452 |
+
let i = e.markers[n++];
|
453 |
+
this.addNode(i.type, i.from, i.to);
|
454 |
+
}
|
455 |
+
if (!s)
|
456 |
+
break;
|
457 |
+
this.finishContext();
|
458 |
+
}
|
459 |
+
if (e.pos < e.text.length)
|
460 |
+
break;
|
461 |
+
if (!this.nextLine())
|
462 |
+
return this.finish();
|
463 |
+
}
|
464 |
+
if (this.fragments && this.reuseFragment(e.basePos))
|
465 |
+
return null;
|
466 |
+
e:
|
467 |
+
for (; ; ) {
|
468 |
+
for (let n of this.parser.blockParsers)
|
469 |
+
if (n) {
|
470 |
+
let s = n(this, e);
|
471 |
+
if (s != !1) {
|
472 |
+
if (s == !0)
|
473 |
+
return null;
|
474 |
+
e.forward();
|
475 |
+
continue e;
|
476 |
+
}
|
477 |
+
}
|
478 |
+
break;
|
479 |
+
}
|
480 |
+
let r = new Lt(this.lineStart + e.pos, e.text.slice(e.pos));
|
481 |
+
for (let n of this.parser.leafBlockParsers)
|
482 |
+
if (n) {
|
483 |
+
let s = n(this, r);
|
484 |
+
s && r.parsers.push(s);
|
485 |
+
}
|
486 |
+
e:
|
487 |
+
for (; this.nextLine() && e.pos != e.text.length; ) {
|
488 |
+
if (e.indent < e.baseIndent + 4) {
|
489 |
+
for (let n of this.parser.endLeafBlock)
|
490 |
+
if (n(this, e, r))
|
491 |
+
break e;
|
492 |
+
}
|
493 |
+
for (let n of r.parsers)
|
494 |
+
if (n.nextLine(this, e, r))
|
495 |
+
return null;
|
496 |
+
r.content += `
|
497 |
+
` + e.scrub();
|
498 |
+
for (let n of e.markers)
|
499 |
+
r.marks.push(n);
|
500 |
+
}
|
501 |
+
return this.finishLeaf(r), null;
|
502 |
+
}
|
503 |
+
stopAt(e) {
|
504 |
+
if (this.stoppedAt != null && this.stoppedAt < e)
|
505 |
+
throw new RangeError("Can't move stoppedAt forward");
|
506 |
+
this.stoppedAt = e;
|
507 |
+
}
|
508 |
+
reuseFragment(e) {
|
509 |
+
if (!this.fragments.moveTo(this.absoluteLineStart + e, this.absoluteLineStart) || !this.fragments.matches(this.block.hash))
|
510 |
+
return !1;
|
511 |
+
let r = this.fragments.takeNodes(this);
|
512 |
+
return r ? (this.absoluteLineStart += r, this.lineStart = Ue(this.absoluteLineStart, this.ranges), this.moveRangeI(), this.absoluteLineStart < this.to ? (this.lineStart++, this.absoluteLineStart++, this.readLine()) : (this.atEnd = !0, this.readLine()), !0) : !1;
|
513 |
+
}
|
514 |
+
/// The number of parent blocks surrounding the current block.
|
515 |
+
get depth() {
|
516 |
+
return this.stack.length;
|
517 |
+
}
|
518 |
+
/// Get the type of the parent block at the given depth. When no
|
519 |
+
/// depth is passed, return the type of the innermost parent.
|
520 |
+
parentType(e = this.depth - 1) {
|
521 |
+
return this.parser.nodeSet.types[this.stack[e].type];
|
522 |
+
}
|
523 |
+
/// Move to the next input line. This should only be called by
|
524 |
+
/// (non-composite) [block parsers](#BlockParser.parse) that consume
|
525 |
+
/// the line directly, or leaf block parser
|
526 |
+
/// [`nextLine`](#LeafBlockParser.nextLine) methods when they
|
527 |
+
/// consume the current line (and return true).
|
528 |
+
nextLine() {
|
529 |
+
return this.lineStart += this.line.text.length, this.absoluteLineEnd >= this.to ? (this.absoluteLineStart = this.absoluteLineEnd, this.atEnd = !0, this.readLine(), !1) : (this.lineStart++, this.absoluteLineStart = this.absoluteLineEnd + 1, this.moveRangeI(), this.readLine(), !0);
|
530 |
+
}
|
531 |
+
moveRangeI() {
|
532 |
+
for (; this.rangeI < this.ranges.length - 1 && this.absoluteLineStart >= this.ranges[this.rangeI].to; )
|
533 |
+
this.rangeI++, this.absoluteLineStart = Math.max(this.absoluteLineStart, this.ranges[this.rangeI].from);
|
534 |
+
}
|
535 |
+
/// @internal
|
536 |
+
scanLine(e) {
|
537 |
+
let r = At;
|
538 |
+
if (r.end = e, e >= this.to)
|
539 |
+
r.text = "";
|
540 |
+
else if (r.text = this.lineChunkAt(e), r.end += r.text.length, this.ranges.length > 1) {
|
541 |
+
let n = this.absoluteLineStart, s = this.rangeI;
|
542 |
+
for (; this.ranges[s].to < r.end; ) {
|
543 |
+
s++;
|
544 |
+
let i = this.ranges[s].from, o = this.lineChunkAt(i);
|
545 |
+
r.end = i + o.length, r.text = r.text.slice(0, this.ranges[s - 1].to - n) + o, n = r.end - r.text.length;
|
546 |
+
}
|
547 |
+
}
|
548 |
+
return r;
|
549 |
+
}
|
550 |
+
/// @internal
|
551 |
+
readLine() {
|
552 |
+
let { line: e } = this, { text: r, end: n } = this.scanLine(this.absoluteLineStart);
|
553 |
+
for (this.absoluteLineEnd = n, e.reset(r); e.depth < this.stack.length; e.depth++) {
|
554 |
+
let s = this.stack[e.depth], i = this.parser.skipContextMarkup[s.type];
|
555 |
+
if (!i)
|
556 |
+
throw new Error("Unhandled block context " + u[s.type]);
|
557 |
+
if (!i(s, this, e))
|
558 |
+
break;
|
559 |
+
e.forward();
|
560 |
+
}
|
561 |
+
}
|
562 |
+
lineChunkAt(e) {
|
563 |
+
let r = this.input.chunk(e), n;
|
564 |
+
if (this.input.lineChunks)
|
565 |
+
n = r == `
|
566 |
+
` ? "" : r;
|
567 |
+
else {
|
568 |
+
let s = r.indexOf(`
|
569 |
+
`);
|
570 |
+
n = s < 0 ? r : r.slice(0, s);
|
571 |
+
}
|
572 |
+
return e + n.length > this.to ? n.slice(0, this.to - e) : n;
|
573 |
+
}
|
574 |
+
/// The end position of the previous line.
|
575 |
+
prevLineEnd() {
|
576 |
+
return this.atEnd ? this.lineStart : this.lineStart - 1;
|
577 |
+
}
|
578 |
+
/// @internal
|
579 |
+
startContext(e, r, n = 0) {
|
580 |
+
this.block = j.create(e, n, this.lineStart + r, this.block.hash, this.lineStart + this.line.text.length), this.stack.push(this.block);
|
581 |
+
}
|
582 |
+
/// Start a composite block. Should only be called from [block
|
583 |
+
/// parser functions](#BlockParser.parse) that return null.
|
584 |
+
startComposite(e, r, n = 0) {
|
585 |
+
this.startContext(this.parser.getNodeType(e), r, n);
|
586 |
+
}
|
587 |
+
/// @internal
|
588 |
+
addNode(e, r, n) {
|
589 |
+
typeof e == "number" && (e = new E(this.parser.nodeSet.types[e], v, v, (n ?? this.prevLineEnd()) - r)), this.block.addChild(e, r - this.block.from);
|
590 |
+
}
|
591 |
+
/// Add a block element. Can be called by [block
|
592 |
+
/// parsers](#BlockParser.parse).
|
593 |
+
addElement(e) {
|
594 |
+
this.block.addChild(e.toTree(this.parser.nodeSet), e.from - this.block.from);
|
595 |
+
}
|
596 |
+
/// Add a block element from a [leaf parser](#LeafBlockParser). This
|
597 |
+
/// makes sure any extra composite block markup (such as blockquote
|
598 |
+
/// markers) inside the block are also added to the syntax tree.
|
599 |
+
addLeafElement(e, r) {
|
600 |
+
this.addNode(this.buffer.writeElements(W(r.children, e.marks), -r.from).finish(r.type, r.to - r.from), r.from);
|
601 |
+
}
|
602 |
+
/// @internal
|
603 |
+
finishContext() {
|
604 |
+
let e = this.stack.pop(), r = this.stack[this.stack.length - 1];
|
605 |
+
r.addChild(e.toTree(this.parser.nodeSet), e.from - r.from), this.block = r;
|
606 |
+
}
|
607 |
+
finish() {
|
608 |
+
for (; this.stack.length > 1; )
|
609 |
+
this.finishContext();
|
610 |
+
return this.addGaps(this.block.toTree(this.parser.nodeSet, this.lineStart));
|
611 |
+
}
|
612 |
+
addGaps(e) {
|
613 |
+
return this.ranges.length > 1 ? Te(this.ranges, 0, e.topNode, this.ranges[0].from, this.reusePlaceholders) : e;
|
614 |
+
}
|
615 |
+
/// @internal
|
616 |
+
finishLeaf(e) {
|
617 |
+
for (let n of e.parsers)
|
618 |
+
if (n.finish(this, e))
|
619 |
+
return;
|
620 |
+
let r = W(this.parser.parseInline(e.content, e.start), e.marks);
|
621 |
+
this.addNode(this.buffer.writeElements(r, -e.start).finish(u.Paragraph, e.content.length), e.start);
|
622 |
+
}
|
623 |
+
elt(e, r, n, s) {
|
624 |
+
return typeof e == "string" ? g(this.parser.getNodeType(e), r, n, s) : new Fe(e, r);
|
625 |
+
}
|
626 |
+
/// @internal
|
627 |
+
get buffer() {
|
628 |
+
return new De(this.parser.nodeSet);
|
629 |
+
}
|
630 |
+
}
|
631 |
+
function Te(t, e, r, n, s) {
|
632 |
+
let i = t[e].to, o = [], a = [], l = r.from + n;
|
633 |
+
function f(h, p) {
|
634 |
+
for (; p ? h >= i : h > i; ) {
|
635 |
+
let d = t[e + 1].from - i;
|
636 |
+
n += d, h += d, e++, i = t[e].to;
|
637 |
+
}
|
638 |
+
}
|
639 |
+
for (let h = r.firstChild; h; h = h.nextSibling) {
|
640 |
+
f(h.from + n, !0);
|
641 |
+
let p = h.from + n, d, m = s.get(h.tree);
|
642 |
+
m ? d = m : h.to + n > i ? (d = Te(t, e, h, n, s), f(h.to + n, !1)) : d = h.toTree(), o.push(d), a.push(p - l);
|
643 |
+
}
|
644 |
+
return f(r.to + n, !1), new E(r.type, o, a, r.to + n - l, r.tree ? r.tree.propValues : void 0);
|
645 |
+
}
|
646 |
+
class U extends rt {
|
647 |
+
/// @internal
|
648 |
+
constructor(e, r, n, s, i, o, a, l, f) {
|
649 |
+
super(), this.nodeSet = e, this.blockParsers = r, this.leafBlockParsers = n, this.blockNames = s, this.endLeafBlock = i, this.skipContextMarkup = o, this.inlineParsers = a, this.inlineNames = l, this.wrappers = f, this.nodeTypes = /* @__PURE__ */ Object.create(null);
|
650 |
+
for (let h of e.types)
|
651 |
+
this.nodeTypes[h.name] = h.id;
|
652 |
+
}
|
653 |
+
createParse(e, r, n) {
|
654 |
+
let s = new It(this, e, r, n);
|
655 |
+
for (let i of this.wrappers)
|
656 |
+
s = i(s, e, r, n);
|
657 |
+
return s;
|
658 |
+
}
|
659 |
+
/// Reconfigure the parser.
|
660 |
+
configure(e) {
|
661 |
+
let r = Y(e);
|
662 |
+
if (!r)
|
663 |
+
return this;
|
664 |
+
let { nodeSet: n, skipContextMarkup: s } = this, i = this.blockParsers.slice(), o = this.leafBlockParsers.slice(), a = this.blockNames.slice(), l = this.inlineParsers.slice(), f = this.inlineNames.slice(), h = this.endLeafBlock.slice(), p = this.wrappers;
|
665 |
+
if (N(r.defineNodes)) {
|
666 |
+
s = Object.assign({}, s);
|
667 |
+
let d = n.types.slice(), m;
|
668 |
+
for (let L of r.defineNodes) {
|
669 |
+
let { name: k, block: w, composite: S, style: b } = typeof L == "string" ? { name: L } : L;
|
670 |
+
if (d.some((I) => I.name == k))
|
671 |
+
continue;
|
672 |
+
S && (s[d.length] = (I, et, tt) => S(et, tt, I.value));
|
673 |
+
let A = d.length, M = S ? ["Block", "BlockContext"] : w ? A >= u.ATXHeading1 && A <= u.SetextHeading2 ? ["Block", "LeafBlock", "Heading"] : ["Block", "LeafBlock"] : void 0;
|
674 |
+
d.push(_.define({
|
675 |
+
id: A,
|
676 |
+
name: k,
|
677 |
+
props: M && [[H.group, M]]
|
678 |
+
})), b && (m || (m = {}), Array.isArray(b) || b instanceof nt ? m[k] = b : Object.assign(m, b));
|
679 |
+
}
|
680 |
+
n = new Ie(d), m && (n = n.extend(Ae(m)));
|
681 |
+
}
|
682 |
+
if (N(r.props) && (n = n.extend(...r.props)), N(r.remove))
|
683 |
+
for (let d of r.remove) {
|
684 |
+
let m = this.blockNames.indexOf(d), L = this.inlineNames.indexOf(d);
|
685 |
+
m > -1 && (i[m] = o[m] = void 0), L > -1 && (l[L] = void 0);
|
686 |
+
}
|
687 |
+
if (N(r.parseBlock))
|
688 |
+
for (let d of r.parseBlock) {
|
689 |
+
let m = a.indexOf(d.name);
|
690 |
+
if (m > -1)
|
691 |
+
i[m] = d.parse, o[m] = d.leaf;
|
692 |
+
else {
|
693 |
+
let L = d.before ? X(a, d.before) : d.after ? X(a, d.after) + 1 : a.length - 1;
|
694 |
+
i.splice(L, 0, d.parse), o.splice(L, 0, d.leaf), a.splice(L, 0, d.name);
|
695 |
+
}
|
696 |
+
d.endLeaf && h.push(d.endLeaf);
|
697 |
+
}
|
698 |
+
if (N(r.parseInline))
|
699 |
+
for (let d of r.parseInline) {
|
700 |
+
let m = f.indexOf(d.name);
|
701 |
+
if (m > -1)
|
702 |
+
l[m] = d.parse;
|
703 |
+
else {
|
704 |
+
let L = d.before ? X(f, d.before) : d.after ? X(f, d.after) + 1 : f.length - 1;
|
705 |
+
l.splice(L, 0, d.parse), f.splice(L, 0, d.name);
|
706 |
+
}
|
707 |
+
}
|
708 |
+
return r.wrap && (p = p.concat(r.wrap)), new U(n, i, o, a, h, s, l, f, p);
|
709 |
+
}
|
710 |
+
/// @internal
|
711 |
+
getNodeType(e) {
|
712 |
+
let r = this.nodeTypes[e];
|
713 |
+
if (r == null)
|
714 |
+
throw new RangeError(`Unknown node type '${e}'`);
|
715 |
+
return r;
|
716 |
+
}
|
717 |
+
/// Parse the given piece of inline text at the given offset,
|
718 |
+
/// returning an array of [`Element`](#Element) objects representing
|
719 |
+
/// the inline content.
|
720 |
+
parseInline(e, r) {
|
721 |
+
let n = new Et(this, e, r);
|
722 |
+
e:
|
723 |
+
for (let s = r; s < n.end; ) {
|
724 |
+
let i = n.char(s);
|
725 |
+
for (let o of this.inlineParsers)
|
726 |
+
if (o) {
|
727 |
+
let a = o(n, i, s);
|
728 |
+
if (a >= 0) {
|
729 |
+
s = a;
|
730 |
+
continue e;
|
731 |
+
}
|
732 |
+
}
|
733 |
+
s++;
|
734 |
+
}
|
735 |
+
return n.resolveMarkers(0);
|
736 |
+
}
|
737 |
+
}
|
738 |
+
function N(t) {
|
739 |
+
return t != null && t.length > 0;
|
740 |
+
}
|
741 |
+
function Y(t) {
|
742 |
+
if (!Array.isArray(t))
|
743 |
+
return t;
|
744 |
+
if (t.length == 0)
|
745 |
+
return null;
|
746 |
+
let e = Y(t[0]);
|
747 |
+
if (t.length == 1)
|
748 |
+
return e;
|
749 |
+
let r = Y(t.slice(1));
|
750 |
+
if (!r || !e)
|
751 |
+
return e || r;
|
752 |
+
let n = (o, a) => (o || v).concat(a || v), s = e.wrap, i = r.wrap;
|
753 |
+
return {
|
754 |
+
props: n(e.props, r.props),
|
755 |
+
defineNodes: n(e.defineNodes, r.defineNodes),
|
756 |
+
parseBlock: n(e.parseBlock, r.parseBlock),
|
757 |
+
parseInline: n(e.parseInline, r.parseInline),
|
758 |
+
remove: n(e.remove, r.remove),
|
759 |
+
wrap: s ? i ? (o, a, l, f) => s(i(o, a, l, f), a, l, f) : s : i
|
760 |
+
};
|
761 |
+
}
|
762 |
+
function X(t, e) {
|
763 |
+
let r = t.indexOf(e);
|
764 |
+
if (r < 0)
|
765 |
+
throw new RangeError(`Position specified relative to unknown parser ${e}`);
|
766 |
+
return r;
|
767 |
+
}
|
768 |
+
let ze = [_.none];
|
769 |
+
for (let t = 1, e; e = u[t]; t++)
|
770 |
+
ze[t] = _.define({
|
771 |
+
id: t,
|
772 |
+
name: e,
|
773 |
+
props: t >= u.Escape ? [] : [[H.group, t in Ee ? ["Block", "BlockContext"] : ["Block", "LeafBlock"]]],
|
774 |
+
top: e == "Document"
|
775 |
+
});
|
776 |
+
const v = [];
|
777 |
+
class De {
|
778 |
+
constructor(e) {
|
779 |
+
this.nodeSet = e, this.content = [], this.nodes = [];
|
780 |
+
}
|
781 |
+
write(e, r, n, s = 0) {
|
782 |
+
return this.content.push(e, r, n, 4 + s * 4), this;
|
783 |
+
}
|
784 |
+
writeElements(e, r = 0) {
|
785 |
+
for (let n of e)
|
786 |
+
n.writeTo(this, r);
|
787 |
+
return this;
|
788 |
+
}
|
789 |
+
finish(e, r) {
|
790 |
+
return E.build({
|
791 |
+
buffer: this.content,
|
792 |
+
nodeSet: this.nodeSet,
|
793 |
+
reused: this.nodes,
|
794 |
+
topID: e,
|
795 |
+
length: r
|
796 |
+
});
|
797 |
+
}
|
798 |
+
}
|
799 |
+
class z {
|
800 |
+
/// @internal
|
801 |
+
constructor(e, r, n, s = v) {
|
802 |
+
this.type = e, this.from = r, this.to = n, this.children = s;
|
803 |
+
}
|
804 |
+
/// @internal
|
805 |
+
writeTo(e, r) {
|
806 |
+
let n = e.content.length;
|
807 |
+
e.writeElements(this.children, r), e.content.push(this.type, this.from + r, this.to + r, e.content.length + 4 - n);
|
808 |
+
}
|
809 |
+
/// @internal
|
810 |
+
toTree(e) {
|
811 |
+
return new De(e).writeElements(this.children, -this.from).finish(this.type, this.to - this.from);
|
812 |
+
}
|
813 |
+
}
|
814 |
+
class Fe {
|
815 |
+
constructor(e, r) {
|
816 |
+
this.tree = e, this.from = r;
|
817 |
+
}
|
818 |
+
get to() {
|
819 |
+
return this.from + this.tree.length;
|
820 |
+
}
|
821 |
+
get type() {
|
822 |
+
return this.tree.type.id;
|
823 |
+
}
|
824 |
+
get children() {
|
825 |
+
return v;
|
826 |
+
}
|
827 |
+
writeTo(e, r) {
|
828 |
+
e.nodes.push(this.tree), e.content.push(e.nodes.length - 1, this.from + r, this.to + r, -1);
|
829 |
+
}
|
830 |
+
toTree() {
|
831 |
+
return this.tree;
|
832 |
+
}
|
833 |
+
}
|
834 |
+
function g(t, e, r, n) {
|
835 |
+
return new z(t, e, r, n);
|
836 |
+
}
|
837 |
+
const Xe = { resolve: "Emphasis", mark: "EmphasisMark" }, $e = { resolve: "Emphasis", mark: "EmphasisMark" }, y = {}, de = {};
|
838 |
+
class x {
|
839 |
+
constructor(e, r, n, s) {
|
840 |
+
this.type = e, this.from = r, this.to = n, this.side = s;
|
841 |
+
}
|
842 |
+
}
|
843 |
+
const pe = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";
|
844 |
+
let D = /[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;
|
845 |
+
try {
|
846 |
+
D = new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]", "u");
|
847 |
+
} catch {
|
848 |
+
}
|
849 |
+
const Z = {
|
850 |
+
Escape(t, e, r) {
|
851 |
+
if (e != 92 || r == t.end - 1)
|
852 |
+
return -1;
|
853 |
+
let n = t.char(r + 1);
|
854 |
+
for (let s = 0; s < pe.length; s++)
|
855 |
+
if (pe.charCodeAt(s) == n)
|
856 |
+
return t.append(g(u.Escape, r, r + 2));
|
857 |
+
return -1;
|
858 |
+
},
|
859 |
+
Entity(t, e, r) {
|
860 |
+
if (e != 38)
|
861 |
+
return -1;
|
862 |
+
let n = /^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(t.slice(r + 1, r + 31));
|
863 |
+
return n ? t.append(g(u.Entity, r, r + 1 + n[0].length)) : -1;
|
864 |
+
},
|
865 |
+
InlineCode(t, e, r) {
|
866 |
+
if (e != 96 || r && t.char(r - 1) == 96)
|
867 |
+
return -1;
|
868 |
+
let n = r + 1;
|
869 |
+
for (; n < t.end && t.char(n) == 96; )
|
870 |
+
n++;
|
871 |
+
let s = n - r, i = 0;
|
872 |
+
for (; n < t.end; n++)
|
873 |
+
if (t.char(n) == 96) {
|
874 |
+
if (i++, i == s && t.char(n + 1) != 96)
|
875 |
+
return t.append(g(u.InlineCode, r, n + 1, [
|
876 |
+
g(u.CodeMark, r, r + s),
|
877 |
+
g(u.CodeMark, n + 1 - s, n + 1)
|
878 |
+
]));
|
879 |
+
} else
|
880 |
+
i = 0;
|
881 |
+
return -1;
|
882 |
+
},
|
883 |
+
HTMLTag(t, e, r) {
|
884 |
+
if (e != 60 || r == t.end - 1)
|
885 |
+
return -1;
|
886 |
+
let n = t.slice(r + 1, t.end), s = /^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(n);
|
887 |
+
if (s)
|
888 |
+
return t.append(g(u.Autolink, r, r + 1 + s[0].length, [
|
889 |
+
g(u.LinkMark, r, r + 1),
|
890 |
+
// url[0] includes the closing bracket, so exclude it from this slice
|
891 |
+
g(u.URL, r + 1, r + s[0].length),
|
892 |
+
g(u.LinkMark, r + s[0].length, r + 1 + s[0].length)
|
893 |
+
]));
|
894 |
+
let i = /^!--[^>](?:-[^-]|[^-])*?-->/i.exec(n);
|
895 |
+
if (i)
|
896 |
+
return t.append(g(u.Comment, r, r + 1 + i[0].length));
|
897 |
+
let o = /^\?[^]*?\?>/.exec(n);
|
898 |
+
if (o)
|
899 |
+
return t.append(g(u.ProcessingInstruction, r, r + 1 + o[0].length));
|
900 |
+
let a = /^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(n);
|
901 |
+
return a ? t.append(g(u.HTMLTag, r, r + 1 + a[0].length)) : -1;
|
902 |
+
},
|
903 |
+
Emphasis(t, e, r) {
|
904 |
+
if (e != 95 && e != 42)
|
905 |
+
return -1;
|
906 |
+
let n = r + 1;
|
907 |
+
for (; t.char(n) == e; )
|
908 |
+
n++;
|
909 |
+
let s = t.slice(r - 1, r), i = t.slice(n, n + 1), o = D.test(s), a = D.test(i), l = /\s|^$/.test(s), f = /\s|^$/.test(i), h = !f && (!a || l || o), p = !l && (!o || f || a), d = h && (e == 42 || !p || o), m = p && (e == 42 || !h || a);
|
910 |
+
return t.append(new x(e == 95 ? Xe : $e, r, n, (d ? 1 : 0) | (m ? 2 : 0)));
|
911 |
+
},
|
912 |
+
HardBreak(t, e, r) {
|
913 |
+
if (e == 92 && t.char(r + 1) == 10)
|
914 |
+
return t.append(g(u.HardBreak, r, r + 2));
|
915 |
+
if (e == 32) {
|
916 |
+
let n = r + 1;
|
917 |
+
for (; t.char(n) == 32; )
|
918 |
+
n++;
|
919 |
+
if (t.char(n) == 10 && n >= r + 2)
|
920 |
+
return t.append(g(u.HardBreak, r, n + 1));
|
921 |
+
}
|
922 |
+
return -1;
|
923 |
+
},
|
924 |
+
Link(t, e, r) {
|
925 |
+
return e == 91 ? t.append(new x(
|
926 |
+
y,
|
927 |
+
r,
|
928 |
+
r + 1,
|
929 |
+
1
|
930 |
+
/* Mark.Open */
|
931 |
+
)) : -1;
|
932 |
+
},
|
933 |
+
Image(t, e, r) {
|
934 |
+
return e == 33 && t.char(r + 1) == 91 ? t.append(new x(
|
935 |
+
de,
|
936 |
+
r,
|
937 |
+
r + 2,
|
938 |
+
1
|
939 |
+
/* Mark.Open */
|
940 |
+
)) : -1;
|
941 |
+
},
|
942 |
+
LinkEnd(t, e, r) {
|
943 |
+
if (e != 93)
|
944 |
+
return -1;
|
945 |
+
for (let n = t.parts.length - 1; n >= 0; n--) {
|
946 |
+
let s = t.parts[n];
|
947 |
+
if (s instanceof x && (s.type == y || s.type == de)) {
|
948 |
+
if (!s.side || t.skipSpace(s.to) == r && !/[(\[]/.test(t.slice(r + 1, r + 2)))
|
949 |
+
return t.parts[n] = null, -1;
|
950 |
+
let i = t.takeContent(n), o = t.parts[n] = Bt(t, i, s.type == y ? u.Link : u.Image, s.from, r + 1);
|
951 |
+
if (s.type == y)
|
952 |
+
for (let a = 0; a < n; a++) {
|
953 |
+
let l = t.parts[a];
|
954 |
+
l instanceof x && l.type == y && (l.side = 0);
|
955 |
+
}
|
956 |
+
return o.to;
|
957 |
+
}
|
958 |
+
}
|
959 |
+
return -1;
|
960 |
+
}
|
961 |
+
};
|
962 |
+
function Bt(t, e, r, n, s) {
|
963 |
+
let { text: i } = t, o = t.char(s), a = s;
|
964 |
+
if (e.unshift(g(u.LinkMark, n, n + (r == u.Image ? 2 : 1))), e.push(g(u.LinkMark, s - 1, s)), o == 40) {
|
965 |
+
let l = t.skipSpace(s + 1), f = je(i, l - t.offset, t.offset), h;
|
966 |
+
f && (l = t.skipSpace(f.to), l != f.to && (h = _e(i, l - t.offset, t.offset), h && (l = t.skipSpace(h.to)))), t.char(l) == 41 && (e.push(g(u.LinkMark, s, s + 1)), a = l + 1, f && e.push(f), h && e.push(h), e.push(g(u.LinkMark, l, a)));
|
967 |
+
} else if (o == 91) {
|
968 |
+
let l = qe(i, s - t.offset, t.offset, !1);
|
969 |
+
l && (e.push(l), a = l.to);
|
970 |
+
}
|
971 |
+
return g(r, n, a, e);
|
972 |
+
}
|
973 |
+
function je(t, e, r) {
|
974 |
+
if (t.charCodeAt(e) == 60) {
|
975 |
+
for (let s = e + 1; s < t.length; s++) {
|
976 |
+
let i = t.charCodeAt(s);
|
977 |
+
if (i == 62)
|
978 |
+
return g(u.URL, e + r, s + 1 + r);
|
979 |
+
if (i == 60 || i == 10)
|
980 |
+
return !1;
|
981 |
+
}
|
982 |
+
return null;
|
983 |
+
} else {
|
984 |
+
let s = 0, i = e;
|
985 |
+
for (let o = !1; i < t.length; i++) {
|
986 |
+
let a = t.charCodeAt(i);
|
987 |
+
if (C(a))
|
988 |
+
break;
|
989 |
+
if (o)
|
990 |
+
o = !1;
|
991 |
+
else if (a == 40)
|
992 |
+
s++;
|
993 |
+
else if (a == 41) {
|
994 |
+
if (!s)
|
995 |
+
break;
|
996 |
+
s--;
|
997 |
+
} else
|
998 |
+
a == 92 && (o = !0);
|
999 |
+
}
|
1000 |
+
return i > e ? g(u.URL, e + r, i + r) : i == t.length ? null : !1;
|
1001 |
+
}
|
1002 |
+
}
|
1003 |
+
function _e(t, e, r) {
|
1004 |
+
let n = t.charCodeAt(e);
|
1005 |
+
if (n != 39 && n != 34 && n != 40)
|
1006 |
+
return !1;
|
1007 |
+
let s = n == 40 ? 41 : n;
|
1008 |
+
for (let i = e + 1, o = !1; i < t.length; i++) {
|
1009 |
+
let a = t.charCodeAt(i);
|
1010 |
+
if (o)
|
1011 |
+
o = !1;
|
1012 |
+
else {
|
1013 |
+
if (a == s)
|
1014 |
+
return g(u.LinkTitle, e + r, i + 1 + r);
|
1015 |
+
a == 92 && (o = !0);
|
1016 |
+
}
|
1017 |
+
}
|
1018 |
+
return null;
|
1019 |
+
}
|
1020 |
+
function qe(t, e, r, n) {
|
1021 |
+
for (let s = !1, i = e + 1, o = Math.min(t.length, i + 999); i < o; i++) {
|
1022 |
+
let a = t.charCodeAt(i);
|
1023 |
+
if (s)
|
1024 |
+
s = !1;
|
1025 |
+
else {
|
1026 |
+
if (a == 93)
|
1027 |
+
return n ? !1 : g(u.LinkLabel, e + r, i + 1 + r);
|
1028 |
+
if (n && !C(a) && (n = !1), a == 91)
|
1029 |
+
return !1;
|
1030 |
+
a == 92 && (s = !0);
|
1031 |
+
}
|
1032 |
+
}
|
1033 |
+
return null;
|
1034 |
+
}
|
1035 |
+
class Et {
|
1036 |
+
/// @internal
|
1037 |
+
constructor(e, r, n) {
|
1038 |
+
this.parser = e, this.text = r, this.offset = n, this.parts = [];
|
1039 |
+
}
|
1040 |
+
/// Get the character code at the given (document-relative)
|
1041 |
+
/// position.
|
1042 |
+
char(e) {
|
1043 |
+
return e >= this.end ? -1 : this.text.charCodeAt(e - this.offset);
|
1044 |
+
}
|
1045 |
+
/// The position of the end of this inline section.
|
1046 |
+
get end() {
|
1047 |
+
return this.offset + this.text.length;
|
1048 |
+
}
|
1049 |
+
/// Get a substring of this inline section. Again uses
|
1050 |
+
/// document-relative positions.
|
1051 |
+
slice(e, r) {
|
1052 |
+
return this.text.slice(e - this.offset, r - this.offset);
|
1053 |
+
}
|
1054 |
+
/// @internal
|
1055 |
+
append(e) {
|
1056 |
+
return this.parts.push(e), e.to;
|
1057 |
+
}
|
1058 |
+
/// Add a [delimiter](#DelimiterType) at this given position. `open`
|
1059 |
+
/// and `close` indicate whether this delimiter is opening, closing,
|
1060 |
+
/// or both. Returns the end of the delimiter, for convenient
|
1061 |
+
/// returning from [parse functions](#InlineParser.parse).
|
1062 |
+
addDelimiter(e, r, n, s, i) {
|
1063 |
+
return this.append(new x(e, r, n, (s ? 1 : 0) | (i ? 2 : 0)));
|
1064 |
+
}
|
1065 |
+
/// Add an inline element. Returns the end of the element.
|
1066 |
+
addElement(e) {
|
1067 |
+
return this.append(e);
|
1068 |
+
}
|
1069 |
+
/// Resolve markers between this.parts.length and from, wrapping matched markers in the
|
1070 |
+
/// appropriate node and updating the content of this.parts. @internal
|
1071 |
+
resolveMarkers(e) {
|
1072 |
+
for (let n = e; n < this.parts.length; n++) {
|
1073 |
+
let s = this.parts[n];
|
1074 |
+
if (!(s instanceof x && s.type.resolve && s.side & 2))
|
1075 |
+
continue;
|
1076 |
+
let i = s.type == Xe || s.type == $e, o = s.to - s.from, a, l = n - 1;
|
1077 |
+
for (; l >= e; l--) {
|
1078 |
+
let k = this.parts[l];
|
1079 |
+
if (k instanceof x && k.side & 1 && k.type == s.type && // Ignore emphasis delimiters where the character count doesn't match
|
1080 |
+
!(i && (s.side & 1 || k.side & 2) && (k.to - k.from + o) % 3 == 0 && ((k.to - k.from) % 3 || o % 3))) {
|
1081 |
+
a = k;
|
1082 |
+
break;
|
1083 |
+
}
|
1084 |
+
}
|
1085 |
+
if (!a)
|
1086 |
+
continue;
|
1087 |
+
let f = s.type.resolve, h = [], p = a.from, d = s.to;
|
1088 |
+
if (i) {
|
1089 |
+
let k = Math.min(2, a.to - a.from, o);
|
1090 |
+
p = a.to - k, d = s.from + k, f = k == 1 ? "Emphasis" : "StrongEmphasis";
|
1091 |
+
}
|
1092 |
+
a.type.mark && h.push(this.elt(a.type.mark, p, a.to));
|
1093 |
+
for (let k = l + 1; k < n; k++)
|
1094 |
+
this.parts[k] instanceof z && h.push(this.parts[k]), this.parts[k] = null;
|
1095 |
+
s.type.mark && h.push(this.elt(s.type.mark, s.from, d));
|
1096 |
+
let m = this.elt(f, p, d, h);
|
1097 |
+
this.parts[l] = i && a.from != p ? new x(a.type, a.from, p, a.side) : null, (this.parts[n] = i && s.to != d ? new x(s.type, d, s.to, s.side) : null) ? this.parts.splice(n, 0, m) : this.parts[n] = m;
|
1098 |
+
}
|
1099 |
+
let r = [];
|
1100 |
+
for (let n = e; n < this.parts.length; n++) {
|
1101 |
+
let s = this.parts[n];
|
1102 |
+
s instanceof z && r.push(s);
|
1103 |
+
}
|
1104 |
+
return r;
|
1105 |
+
}
|
1106 |
+
/// Find an opening delimiter of the given type. Returns `null` if
|
1107 |
+
/// no delimiter is found, or an index that can be passed to
|
1108 |
+
/// [`takeContent`](#InlineContext.takeContent) otherwise.
|
1109 |
+
findOpeningDelimiter(e) {
|
1110 |
+
for (let r = this.parts.length - 1; r >= 0; r--) {
|
1111 |
+
let n = this.parts[r];
|
1112 |
+
if (n instanceof x && n.type == e)
|
1113 |
+
return r;
|
1114 |
+
}
|
1115 |
+
return null;
|
1116 |
+
}
|
1117 |
+
/// Remove all inline elements and delimiters starting from the
|
1118 |
+
/// given index (which you should get from
|
1119 |
+
/// [`findOpeningDelimiter`](#InlineContext.findOpeningDelimiter),
|
1120 |
+
/// resolve delimiters inside of them, and return them as an array
|
1121 |
+
/// of elements.
|
1122 |
+
takeContent(e) {
|
1123 |
+
let r = this.resolveMarkers(e);
|
1124 |
+
return this.parts.length = e, r;
|
1125 |
+
}
|
1126 |
+
/// Skip space after the given (document) position, returning either
|
1127 |
+
/// the position of the next non-space character or the end of the
|
1128 |
+
/// section.
|
1129 |
+
skipSpace(e) {
|
1130 |
+
return R(this.text, e - this.offset) + this.offset;
|
1131 |
+
}
|
1132 |
+
elt(e, r, n, s) {
|
1133 |
+
return typeof e == "string" ? g(this.parser.getNodeType(e), r, n, s) : new Fe(e, r);
|
1134 |
+
}
|
1135 |
+
}
|
1136 |
+
function W(t, e) {
|
1137 |
+
if (!e.length)
|
1138 |
+
return t;
|
1139 |
+
if (!t.length)
|
1140 |
+
return e;
|
1141 |
+
let r = t.slice(), n = 0;
|
1142 |
+
for (let s of e) {
|
1143 |
+
for (; n < r.length && r[n].to < s.to; )
|
1144 |
+
n++;
|
1145 |
+
if (n < r.length && r[n].from < s.from) {
|
1146 |
+
let i = r[n];
|
1147 |
+
i instanceof z && (r[n] = new z(i.type, i.from, i.to, W(i.children, [s])));
|
1148 |
+
} else
|
1149 |
+
r.splice(n++, 0, s);
|
1150 |
+
}
|
1151 |
+
return r;
|
1152 |
+
}
|
1153 |
+
const Mt = [u.CodeBlock, u.ListItem, u.OrderedList, u.BulletList];
|
1154 |
+
class Pt {
|
1155 |
+
constructor(e, r) {
|
1156 |
+
this.fragments = e, this.input = r, this.i = 0, this.fragment = null, this.fragmentEnd = -1, this.cursor = null, e.length && (this.fragment = e[this.i++]);
|
1157 |
+
}
|
1158 |
+
nextFragment() {
|
1159 |
+
this.fragment = this.i < this.fragments.length ? this.fragments[this.i++] : null, this.cursor = null, this.fragmentEnd = -1;
|
1160 |
+
}
|
1161 |
+
moveTo(e, r) {
|
1162 |
+
for (; this.fragment && this.fragment.to <= e; )
|
1163 |
+
this.nextFragment();
|
1164 |
+
if (!this.fragment || this.fragment.from > (e ? e - 1 : 0))
|
1165 |
+
return !1;
|
1166 |
+
if (this.fragmentEnd < 0) {
|
1167 |
+
let i = this.fragment.to;
|
1168 |
+
for (; i > 0 && this.input.read(i - 1, i) != `
|
1169 |
+
`; )
|
1170 |
+
i--;
|
1171 |
+
this.fragmentEnd = i ? i - 1 : 0;
|
1172 |
+
}
|
1173 |
+
let n = this.cursor;
|
1174 |
+
n || (n = this.cursor = this.fragment.tree.cursor(), n.firstChild());
|
1175 |
+
let s = e + this.fragment.offset;
|
1176 |
+
for (; n.to <= s; )
|
1177 |
+
if (!n.parent())
|
1178 |
+
return !1;
|
1179 |
+
for (; ; ) {
|
1180 |
+
if (n.from >= s)
|
1181 |
+
return this.fragment.from <= r;
|
1182 |
+
if (!n.childAfter(s))
|
1183 |
+
return !1;
|
1184 |
+
}
|
1185 |
+
}
|
1186 |
+
matches(e) {
|
1187 |
+
let r = this.cursor.tree;
|
1188 |
+
return r && r.prop(H.contextHash) == e;
|
1189 |
+
}
|
1190 |
+
takeNodes(e) {
|
1191 |
+
let r = this.cursor, n = this.fragment.offset, s = this.fragmentEnd - (this.fragment.openEnd ? 1 : 0), i = e.absoluteLineStart, o = i, a = e.block.children.length, l = o, f = a;
|
1192 |
+
for (; ; ) {
|
1193 |
+
if (r.to - n > s) {
|
1194 |
+
if (r.type.isAnonymous && r.firstChild())
|
1195 |
+
continue;
|
1196 |
+
break;
|
1197 |
+
}
|
1198 |
+
let h = Ue(r.from - n, e.ranges);
|
1199 |
+
if (r.to - n <= e.ranges[e.rangeI].to)
|
1200 |
+
e.addNode(r.tree, h);
|
1201 |
+
else {
|
1202 |
+
let p = new E(e.parser.nodeSet.types[u.Paragraph], [], [], 0, e.block.hashProp);
|
1203 |
+
e.reusePlaceholders.set(p, r.tree), e.addNode(p, h);
|
1204 |
+
}
|
1205 |
+
if (r.type.is("Block") && (Mt.indexOf(r.type.id) < 0 ? (o = r.to - n, a = e.block.children.length) : (o = l, a = f, l = r.to - n, f = e.block.children.length)), !r.nextSibling())
|
1206 |
+
break;
|
1207 |
+
}
|
1208 |
+
for (; e.block.children.length > a; )
|
1209 |
+
e.block.children.pop(), e.block.positions.pop();
|
1210 |
+
return o - i;
|
1211 |
+
}
|
1212 |
+
}
|
1213 |
+
function Ue(t, e) {
|
1214 |
+
let r = t;
|
1215 |
+
for (let n = 1; n < e.length; n++) {
|
1216 |
+
let s = e[n - 1].to, i = e[n].from;
|
1217 |
+
s < t && (r -= i - s);
|
1218 |
+
}
|
1219 |
+
return r;
|
1220 |
+
}
|
1221 |
+
const Ht = Ae({
|
1222 |
+
"Blockquote/...": c.quote,
|
1223 |
+
HorizontalRule: c.contentSeparator,
|
1224 |
+
"ATXHeading1/... SetextHeading1/...": c.heading1,
|
1225 |
+
"ATXHeading2/... SetextHeading2/...": c.heading2,
|
1226 |
+
"ATXHeading3/...": c.heading3,
|
1227 |
+
"ATXHeading4/...": c.heading4,
|
1228 |
+
"ATXHeading5/...": c.heading5,
|
1229 |
+
"ATXHeading6/...": c.heading6,
|
1230 |
+
"Comment CommentBlock": c.comment,
|
1231 |
+
Escape: c.escape,
|
1232 |
+
Entity: c.character,
|
1233 |
+
"Emphasis/...": c.emphasis,
|
1234 |
+
"StrongEmphasis/...": c.strong,
|
1235 |
+
"Link/... Image/...": c.link,
|
1236 |
+
"OrderedList/... BulletList/...": c.list,
|
1237 |
+
"BlockQuote/...": c.quote,
|
1238 |
+
"InlineCode CodeText": c.monospace,
|
1239 |
+
"URL Autolink": c.url,
|
1240 |
+
"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark": c.processingInstruction,
|
1241 |
+
"CodeInfo LinkLabel": c.labelName,
|
1242 |
+
LinkTitle: c.string,
|
1243 |
+
Paragraph: c.content
|
1244 |
+
}), vt = new U(new Ie(ze).extend(Ht), Object.keys(F).map((t) => F[t]), Object.keys(F).map((t) => Ct[t]), Object.keys(F), xt, Ee, Object.keys(Z).map((t) => Z[t]), Object.keys(Z), []);
|
1245 |
+
function Nt(t, e, r) {
|
1246 |
+
let n = [];
|
1247 |
+
for (let s = t.firstChild, i = e; ; s = s.nextSibling) {
|
1248 |
+
let o = s ? s.from : r;
|
1249 |
+
if (o > i && n.push({ from: i, to: o }), !s)
|
1250 |
+
break;
|
1251 |
+
i = s.to;
|
1252 |
+
}
|
1253 |
+
return n;
|
1254 |
+
}
|
1255 |
+
function yt(t) {
|
1256 |
+
let { codeParser: e, htmlParser: r } = t;
|
1257 |
+
return { wrap: st((s, i) => {
|
1258 |
+
let o = s.type.id;
|
1259 |
+
if (e && (o == u.CodeBlock || o == u.FencedCode)) {
|
1260 |
+
let a = "";
|
1261 |
+
if (o == u.FencedCode) {
|
1262 |
+
let f = s.node.getChild(u.CodeInfo);
|
1263 |
+
f && (a = i.read(f.from, f.to));
|
1264 |
+
}
|
1265 |
+
let l = e(a);
|
1266 |
+
if (l)
|
1267 |
+
return { parser: l, overlay: (f) => f.type.id == u.CodeText };
|
1268 |
+
} else if (r && (o == u.HTMLBlock || o == u.HTMLTag))
|
1269 |
+
return { parser: r, overlay: Nt(s.node, s.from, s.to) };
|
1270 |
+
return null;
|
1271 |
+
}) };
|
1272 |
+
}
|
1273 |
+
const Rt = { resolve: "Strikethrough", mark: "StrikethroughMark" }, Ot = {
|
1274 |
+
defineNodes: [{
|
1275 |
+
name: "Strikethrough",
|
1276 |
+
style: { "Strikethrough/...": c.strikethrough }
|
1277 |
+
}, {
|
1278 |
+
name: "StrikethroughMark",
|
1279 |
+
style: c.processingInstruction
|
1280 |
+
}],
|
1281 |
+
parseInline: [{
|
1282 |
+
name: "Strikethrough",
|
1283 |
+
parse(t, e, r) {
|
1284 |
+
if (e != 126 || t.char(r + 1) != 126 || t.char(r + 2) == 126)
|
1285 |
+
return -1;
|
1286 |
+
let n = t.slice(r - 1, r), s = t.slice(r + 2, r + 3), i = /\s|^$/.test(n), o = /\s|^$/.test(s), a = D.test(n), l = D.test(s);
|
1287 |
+
return t.addDelimiter(Rt, r, r + 2, !o && (!l || i || a), !i && (!a || o || l));
|
1288 |
+
},
|
1289 |
+
after: "Emphasis"
|
1290 |
+
}]
|
1291 |
+
};
|
1292 |
+
function O(t, e, r = 0, n, s = 0) {
|
1293 |
+
let i = 0, o = !0, a = -1, l = -1, f = !1, h = () => {
|
1294 |
+
n.push(t.elt("TableCell", s + a, s + l, t.parser.parseInline(e.slice(a, l), s + a)));
|
1295 |
+
};
|
1296 |
+
for (let p = r; p < e.length; p++) {
|
1297 |
+
let d = e.charCodeAt(p);
|
1298 |
+
d == 124 && !f ? ((!o || a > -1) && i++, o = !1, n && (a > -1 && h(), n.push(t.elt("TableDelimiter", p + s, p + s + 1))), a = l = -1) : (f || d != 32 && d != 9) && (a < 0 && (a = p), l = p + 1), f = !f && d == 92;
|
1299 |
+
}
|
1300 |
+
return a > -1 && (i++, n && h()), i;
|
1301 |
+
}
|
1302 |
+
function ce(t, e) {
|
1303 |
+
for (let r = e; r < t.length; r++) {
|
1304 |
+
let n = t.charCodeAt(r);
|
1305 |
+
if (n == 124)
|
1306 |
+
return !0;
|
1307 |
+
n == 92 && r++;
|
1308 |
+
}
|
1309 |
+
return !1;
|
1310 |
+
}
|
1311 |
+
const Qe = /^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;
|
1312 |
+
class me {
|
1313 |
+
constructor() {
|
1314 |
+
this.rows = null;
|
1315 |
+
}
|
1316 |
+
nextLine(e, r, n) {
|
1317 |
+
if (this.rows == null) {
|
1318 |
+
this.rows = !1;
|
1319 |
+
let s;
|
1320 |
+
if ((r.next == 45 || r.next == 58 || r.next == 124) && Qe.test(s = r.text.slice(r.pos))) {
|
1321 |
+
let i = [];
|
1322 |
+
O(e, n.content, 0, i, n.start) == O(e, s, r.pos) && (this.rows = [
|
1323 |
+
e.elt("TableHeader", n.start, n.start + n.content.length, i),
|
1324 |
+
e.elt("TableDelimiter", e.lineStart + r.pos, e.lineStart + r.text.length)
|
1325 |
+
]);
|
1326 |
+
}
|
1327 |
+
} else if (this.rows) {
|
1328 |
+
let s = [];
|
1329 |
+
O(e, r.text, r.pos, s, e.lineStart), this.rows.push(e.elt("TableRow", e.lineStart + r.pos, e.lineStart + r.text.length, s));
|
1330 |
+
}
|
1331 |
+
return !1;
|
1332 |
+
}
|
1333 |
+
finish(e, r) {
|
1334 |
+
return this.rows ? (e.addLeafElement(r, e.elt("Table", r.start, r.start + r.content.length, this.rows)), !0) : !1;
|
1335 |
+
}
|
1336 |
+
}
|
1337 |
+
const Tt = {
|
1338 |
+
defineNodes: [
|
1339 |
+
{ name: "Table", block: !0 },
|
1340 |
+
{ name: "TableHeader", style: { "TableHeader/...": c.heading } },
|
1341 |
+
"TableRow",
|
1342 |
+
{ name: "TableCell", style: c.content },
|
1343 |
+
{ name: "TableDelimiter", style: c.processingInstruction }
|
1344 |
+
],
|
1345 |
+
parseBlock: [{
|
1346 |
+
name: "Table",
|
1347 |
+
leaf(t, e) {
|
1348 |
+
return ce(e.content, 0) ? new me() : null;
|
1349 |
+
},
|
1350 |
+
endLeaf(t, e, r) {
|
1351 |
+
if (r.parsers.some((s) => s instanceof me) || !ce(e.text, e.basePos))
|
1352 |
+
return !1;
|
1353 |
+
let n = t.scanLine(t.absoluteLineEnd + 1).text;
|
1354 |
+
return Qe.test(n) && O(t, e.text, e.basePos) == O(t, n, e.basePos);
|
1355 |
+
},
|
1356 |
+
before: "SetextHeading"
|
1357 |
+
}]
|
1358 |
+
};
|
1359 |
+
class zt {
|
1360 |
+
nextLine() {
|
1361 |
+
return !1;
|
1362 |
+
}
|
1363 |
+
finish(e, r) {
|
1364 |
+
return e.addLeafElement(r, e.elt("Task", r.start, r.start + r.content.length, [
|
1365 |
+
e.elt("TaskMarker", r.start, r.start + 3),
|
1366 |
+
...e.parser.parseInline(r.content.slice(3), r.start + 3)
|
1367 |
+
])), !0;
|
1368 |
+
}
|
1369 |
+
}
|
1370 |
+
const Dt = {
|
1371 |
+
defineNodes: [
|
1372 |
+
{ name: "Task", block: !0, style: c.list },
|
1373 |
+
{ name: "TaskMarker", style: c.atom }
|
1374 |
+
],
|
1375 |
+
parseBlock: [{
|
1376 |
+
name: "TaskList",
|
1377 |
+
leaf(t, e) {
|
1378 |
+
return /^\[[ xX]\][ \t]/.test(e.content) && t.parentType().name == "ListItem" ? new zt() : null;
|
1379 |
+
},
|
1380 |
+
after: "SetextHeading"
|
1381 |
+
}]
|
1382 |
+
}, ge = /(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy, ke = /[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy, Ft = /[\w-]+\.[\w-]+($|\/)/, Le = /[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy, be = /\/[a-zA-Z\d@.]+/gy;
|
1383 |
+
function we(t, e, r, n) {
|
1384 |
+
let s = 0;
|
1385 |
+
for (let i = e; i < r; i++)
|
1386 |
+
t[i] == n && s++;
|
1387 |
+
return s;
|
1388 |
+
}
|
1389 |
+
function Xt(t, e) {
|
1390 |
+
ke.lastIndex = e;
|
1391 |
+
let r = ke.exec(t);
|
1392 |
+
if (!r || Ft.exec(r[0])[0].indexOf("_") > -1)
|
1393 |
+
return -1;
|
1394 |
+
let n = e + r[0].length;
|
1395 |
+
for (; ; ) {
|
1396 |
+
let s = t[n - 1], i;
|
1397 |
+
if (/[?!.,:*_~]/.test(s) || s == ")" && we(t, e, n, ")") > we(t, e, n, "("))
|
1398 |
+
n--;
|
1399 |
+
else if (s == ";" && (i = /&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e, n))))
|
1400 |
+
n = e + i.index;
|
1401 |
+
else
|
1402 |
+
break;
|
1403 |
+
}
|
1404 |
+
return n;
|
1405 |
+
}
|
1406 |
+
function Se(t, e) {
|
1407 |
+
Le.lastIndex = e;
|
1408 |
+
let r = Le.exec(t);
|
1409 |
+
if (!r)
|
1410 |
+
return -1;
|
1411 |
+
let n = r[0][r[0].length - 1];
|
1412 |
+
return n == "_" || n == "-" ? -1 : e + r[0].length - (n == "." ? 1 : 0);
|
1413 |
+
}
|
1414 |
+
const $t = {
|
1415 |
+
parseInline: [{
|
1416 |
+
name: "Autolink",
|
1417 |
+
parse(t, e, r) {
|
1418 |
+
let n = r - t.offset;
|
1419 |
+
ge.lastIndex = n;
|
1420 |
+
let s = ge.exec(t.text), i = -1;
|
1421 |
+
return !s || (s[1] || s[2] ? i = Xt(t.text, n + s[0].length) : s[3] ? i = Se(t.text, n) : (i = Se(t.text, n + s[0].length), i > -1 && s[0] == "xmpp:" && (be.lastIndex = i, s = be.exec(t.text), s && (i = s.index + s[0].length))), i < 0) ? -1 : (t.addElement(t.elt("URL", r, i + t.offset)), i + t.offset);
|
1422 |
+
}
|
1423 |
+
}]
|
1424 |
+
}, jt = [Tt, Dt, Ot, $t];
|
1425 |
+
function Ze(t, e, r) {
|
1426 |
+
return (n, s, i) => {
|
1427 |
+
if (s != t || n.char(i + 1) == t)
|
1428 |
+
return -1;
|
1429 |
+
let o = [n.elt(r, i, i + 1)];
|
1430 |
+
for (let a = i + 1; a < n.end; a++) {
|
1431 |
+
let l = n.char(a);
|
1432 |
+
if (l == t)
|
1433 |
+
return n.addElement(n.elt(e, i, a + 1, o.concat(n.elt(r, a, a + 1))));
|
1434 |
+
if (l == 92 && o.push(n.elt("Escape", a, a++ + 2)), C(l))
|
1435 |
+
break;
|
1436 |
+
}
|
1437 |
+
return -1;
|
1438 |
+
};
|
1439 |
+
}
|
1440 |
+
const _t = {
|
1441 |
+
defineNodes: [
|
1442 |
+
{ name: "Superscript", style: c.special(c.content) },
|
1443 |
+
{ name: "SuperscriptMark", style: c.processingInstruction }
|
1444 |
+
],
|
1445 |
+
parseInline: [{
|
1446 |
+
name: "Superscript",
|
1447 |
+
parse: Ze(94, "Superscript", "SuperscriptMark")
|
1448 |
+
}]
|
1449 |
+
}, qt = {
|
1450 |
+
defineNodes: [
|
1451 |
+
{ name: "Subscript", style: c.special(c.content) },
|
1452 |
+
{ name: "SubscriptMark", style: c.processingInstruction }
|
1453 |
+
],
|
1454 |
+
parseInline: [{
|
1455 |
+
name: "Subscript",
|
1456 |
+
parse: Ze(126, "Subscript", "SubscriptMark")
|
1457 |
+
}]
|
1458 |
+
}, Ut = {
|
1459 |
+
defineNodes: [{ name: "Emoji", style: c.character }],
|
1460 |
+
parseInline: [{
|
1461 |
+
name: "Emoji",
|
1462 |
+
parse(t, e, r) {
|
1463 |
+
let n;
|
1464 |
+
return e != 58 || !(n = /^[a-zA-Z_0-9]+:/.exec(t.slice(r + 1, t.end))) ? -1 : t.addElement(t.elt("Emoji", r, r + 1 + n[0].length));
|
1465 |
+
}
|
1466 |
+
}]
|
1467 |
+
}, Ge = /* @__PURE__ */ ut({ commentTokens: { block: { open: "<!--", close: "-->" } } }), Ve = /* @__PURE__ */ new H(), Ke = /* @__PURE__ */ vt.configure({
|
1468 |
+
props: [
|
1469 |
+
/* @__PURE__ */ Be.add((t) => !t.is("Block") || t.is("Document") || ee(t) != null ? void 0 : (e, r) => ({ from: r.doc.lineAt(e.from).to, to: e.to })),
|
1470 |
+
/* @__PURE__ */ Ve.add(ee),
|
1471 |
+
/* @__PURE__ */ dt.add({
|
1472 |
+
Document: () => null
|
1473 |
+
}),
|
1474 |
+
/* @__PURE__ */ pt.add({
|
1475 |
+
Document: Ge
|
1476 |
+
})
|
1477 |
+
]
|
1478 |
+
});
|
1479 |
+
function ee(t) {
|
1480 |
+
let e = /^(?:ATX|Setext)Heading(\d)$/.exec(t.name);
|
1481 |
+
return e ? +e[1] : void 0;
|
1482 |
+
}
|
1483 |
+
function Qt(t, e) {
|
1484 |
+
let r = t;
|
1485 |
+
for (; ; ) {
|
1486 |
+
let n = r.nextSibling, s;
|
1487 |
+
if (!n || (s = ee(n.type)) != null && s <= e)
|
1488 |
+
break;
|
1489 |
+
r = n;
|
1490 |
+
}
|
1491 |
+
return r.to;
|
1492 |
+
}
|
1493 |
+
const Zt = /* @__PURE__ */ ct.of((t, e, r) => {
|
1494 |
+
for (let n = q(t).resolveInner(r, -1); n && !(n.from < e); n = n.parent) {
|
1495 |
+
let s = n.type.prop(Ve);
|
1496 |
+
if (s == null)
|
1497 |
+
continue;
|
1498 |
+
let i = Qt(n, s);
|
1499 |
+
if (i > r)
|
1500 |
+
return { from: r, to: i };
|
1501 |
+
}
|
1502 |
+
return null;
|
1503 |
+
});
|
1504 |
+
function ie(t) {
|
1505 |
+
return new ht(Ge, t, [Zt], "markdown");
|
1506 |
+
}
|
1507 |
+
const Gt = /* @__PURE__ */ ie(Ke), Vt = /* @__PURE__ */ Ke.configure([jt, qt, _t, Ut, {
|
1508 |
+
props: [
|
1509 |
+
/* @__PURE__ */ Be.add({
|
1510 |
+
Table: (t, e) => ({ from: e.doc.lineAt(t.from).to, to: t.to })
|
1511 |
+
})
|
1512 |
+
]
|
1513 |
+
}]), Je = /* @__PURE__ */ ie(Vt);
|
1514 |
+
function Kt(t, e) {
|
1515 |
+
return (r) => {
|
1516 |
+
if (r && t) {
|
1517 |
+
let n = null;
|
1518 |
+
if (r = /\S*/.exec(r)[0], typeof t == "function" ? n = t(r) : n = le.matchLanguageName(t, r, !0), n instanceof le)
|
1519 |
+
return n.support ? n.support.language.parser : mt.getSkippingParser(n.load());
|
1520 |
+
if (n)
|
1521 |
+
return n.parser;
|
1522 |
+
}
|
1523 |
+
return e ? e.parser : null;
|
1524 |
+
};
|
1525 |
+
}
|
1526 |
+
class $ {
|
1527 |
+
constructor(e, r, n, s, i, o, a) {
|
1528 |
+
this.node = e, this.from = r, this.to = n, this.spaceBefore = s, this.spaceAfter = i, this.type = o, this.item = a;
|
1529 |
+
}
|
1530 |
+
blank(e, r = !0) {
|
1531 |
+
let n = this.spaceBefore + (this.node.name == "Blockquote" ? ">" : "");
|
1532 |
+
if (e != null) {
|
1533 |
+
for (; n.length < e; )
|
1534 |
+
n += " ";
|
1535 |
+
return n;
|
1536 |
+
} else {
|
1537 |
+
for (let s = this.to - this.from - n.length - this.spaceAfter.length; s > 0; s--)
|
1538 |
+
n += " ";
|
1539 |
+
return n + (r ? this.spaceAfter : "");
|
1540 |
+
}
|
1541 |
+
}
|
1542 |
+
marker(e, r) {
|
1543 |
+
let n = this.node.name == "OrderedList" ? String(+We(this.item, e)[2] + r) : "";
|
1544 |
+
return this.spaceBefore + n + this.type + this.spaceAfter;
|
1545 |
+
}
|
1546 |
+
}
|
1547 |
+
function Ye(t, e) {
|
1548 |
+
let r = [];
|
1549 |
+
for (let s = t; s && s.name != "Document"; s = s.parent)
|
1550 |
+
(s.name == "ListItem" || s.name == "Blockquote" || s.name == "FencedCode") && r.push(s);
|
1551 |
+
let n = [];
|
1552 |
+
for (let s = r.length - 1; s >= 0; s--) {
|
1553 |
+
let i = r[s], o, a = e.lineAt(i.from), l = i.from - a.from;
|
1554 |
+
if (i.name == "FencedCode")
|
1555 |
+
n.push(new $(i, l, l, "", "", "", null));
|
1556 |
+
else if (i.name == "Blockquote" && (o = /^ *>( ?)/.exec(a.text.slice(l))))
|
1557 |
+
n.push(new $(i, l, l + o[0].length, "", o[1], ">", null));
|
1558 |
+
else if (i.name == "ListItem" && i.parent.name == "OrderedList" && (o = /^( *)\d+([.)])( *)/.exec(a.text.slice(l)))) {
|
1559 |
+
let f = o[3], h = o[0].length;
|
1560 |
+
f.length >= 4 && (f = f.slice(0, f.length - 4), h -= 4), n.push(new $(i.parent, l, l + h, o[1], f, o[2], i));
|
1561 |
+
} else if (i.name == "ListItem" && i.parent.name == "BulletList" && (o = /^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(a.text.slice(l)))) {
|
1562 |
+
let f = o[4], h = o[0].length;
|
1563 |
+
f.length > 4 && (f = f.slice(0, f.length - 4), h -= 4);
|
1564 |
+
let p = o[2];
|
1565 |
+
o[3] && (p += o[3].replace(/[xX]/, " ")), n.push(new $(i.parent, l, l + h, o[1], f, p, i));
|
1566 |
+
}
|
1567 |
+
}
|
1568 |
+
return n;
|
1569 |
+
}
|
1570 |
+
function We(t, e) {
|
1571 |
+
return /^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from, t.from + 10));
|
1572 |
+
}
|
1573 |
+
function G(t, e, r, n = 0) {
|
1574 |
+
for (let s = -1, i = t; ; ) {
|
1575 |
+
if (i.name == "ListItem") {
|
1576 |
+
let a = We(i, e), l = +a[2];
|
1577 |
+
if (s >= 0) {
|
1578 |
+
if (l != s + 1)
|
1579 |
+
return;
|
1580 |
+
r.push({ from: i.from + a[1].length, to: i.from + a[0].length, insert: String(s + 2 + n) });
|
1581 |
+
}
|
1582 |
+
s = l;
|
1583 |
+
}
|
1584 |
+
let o = i.nextSibling;
|
1585 |
+
if (!o)
|
1586 |
+
break;
|
1587 |
+
i = o;
|
1588 |
+
}
|
1589 |
+
}
|
1590 |
+
function oe(t, e) {
|
1591 |
+
let r = /^[ \t]*/.exec(t)[0].length;
|
1592 |
+
if (!r || e.facet(ft) != " ")
|
1593 |
+
return t;
|
1594 |
+
let n = T(t, 4, r), s = "";
|
1595 |
+
for (let i = n; i > 0; )
|
1596 |
+
i >= 4 ? (s += " ", i -= 4) : (s += " ", i--);
|
1597 |
+
return s + t.slice(r);
|
1598 |
+
}
|
1599 |
+
const Jt = ({ state: t, dispatch: e }) => {
|
1600 |
+
let r = q(t), { doc: n } = t, s = null, i = t.changeByRange((o) => {
|
1601 |
+
if (!o.empty || !Je.isActiveAt(t, o.from))
|
1602 |
+
return s = { range: o };
|
1603 |
+
let a = o.from, l = n.lineAt(a), f = Ye(r.resolveInner(a, -1), n);
|
1604 |
+
for (; f.length && f[f.length - 1].from > a - l.from; )
|
1605 |
+
f.pop();
|
1606 |
+
if (!f.length)
|
1607 |
+
return s = { range: o };
|
1608 |
+
let h = f[f.length - 1];
|
1609 |
+
if (h.to - h.spaceAfter.length > a - l.from)
|
1610 |
+
return s = { range: o };
|
1611 |
+
let p = a >= h.to - h.spaceAfter.length && !/\S/.test(l.text.slice(h.to));
|
1612 |
+
if (h.item && p) {
|
1613 |
+
let w = h.node.firstChild, S = h.node.getChild("ListItem", "ListItem");
|
1614 |
+
if (w.to >= a || S && S.to < a || l.from > 0 && !/[^\s>]/.test(n.lineAt(l.from - 1).text)) {
|
1615 |
+
let b = f.length > 1 ? f[f.length - 2] : null, A, M = "";
|
1616 |
+
b && b.item ? (A = l.from + b.from, M = b.marker(n, 1)) : A = l.from + (b ? b.to : 0);
|
1617 |
+
let I = [{ from: A, to: a, insert: M }];
|
1618 |
+
return h.node.name == "OrderedList" && G(h.item, n, I, -2), b && b.node.name == "OrderedList" && G(b.item, n, I), { range: P.cursor(A + M.length), changes: I };
|
1619 |
+
} else {
|
1620 |
+
let b = xe(f, t, l);
|
1621 |
+
return {
|
1622 |
+
range: P.cursor(a + b.length + 1),
|
1623 |
+
changes: { from: l.from, insert: b + t.lineBreak }
|
1624 |
+
};
|
1625 |
+
}
|
1626 |
+
}
|
1627 |
+
if (h.node.name == "Blockquote" && p && l.from) {
|
1628 |
+
let w = n.lineAt(l.from - 1), S = />\s*$/.exec(w.text);
|
1629 |
+
if (S && S.index == h.from) {
|
1630 |
+
let b = t.changes([
|
1631 |
+
{ from: w.from + S.index, to: w.to },
|
1632 |
+
{ from: l.from + h.from, to: l.to }
|
1633 |
+
]);
|
1634 |
+
return { range: o.map(b), changes: b };
|
1635 |
+
}
|
1636 |
+
}
|
1637 |
+
let d = [];
|
1638 |
+
h.node.name == "OrderedList" && G(h.item, n, d);
|
1639 |
+
let m = h.item && h.item.from < l.from, L = "";
|
1640 |
+
if (!m || /^[\s\d.)\-+*>]*/.exec(l.text)[0].length >= h.to)
|
1641 |
+
for (let w = 0, S = f.length - 1; w <= S; w++)
|
1642 |
+
L += w == S && !m ? f[w].marker(n, 1) : f[w].blank(w < S ? T(l.text, 4, f[w + 1].from) - L.length : null);
|
1643 |
+
let k = a;
|
1644 |
+
for (; k > l.from && /\s/.test(l.text.charAt(k - l.from - 1)); )
|
1645 |
+
k--;
|
1646 |
+
return L = oe(L, t), Yt(h.node, t.doc) && (L = xe(f, t, l) + t.lineBreak + L), d.push({ from: k, to: a, insert: t.lineBreak + L }), { range: P.cursor(k + L.length + 1), changes: d };
|
1647 |
+
});
|
1648 |
+
return s ? !1 : (e(t.update(i, { scrollIntoView: !0, userEvent: "input" })), !0);
|
1649 |
+
};
|
1650 |
+
function Ce(t) {
|
1651 |
+
return t.name == "QuoteMark" || t.name == "ListMark";
|
1652 |
+
}
|
1653 |
+
function Yt(t, e) {
|
1654 |
+
if (t.name != "OrderedList" && t.name != "BulletList")
|
1655 |
+
return !1;
|
1656 |
+
let r = t.firstChild, n = t.getChild("ListItem", "ListItem");
|
1657 |
+
if (!n)
|
1658 |
+
return !1;
|
1659 |
+
let s = e.lineAt(r.to), i = e.lineAt(n.from), o = /^[\s>]*$/.test(s.text);
|
1660 |
+
return s.number + (o ? 0 : 1) < i.number;
|
1661 |
+
}
|
1662 |
+
function xe(t, e, r) {
|
1663 |
+
let n = "";
|
1664 |
+
for (let s = 0, i = t.length - 2; s <= i; s++)
|
1665 |
+
n += t[s].blank(s < i ? T(r.text, 4, t[s + 1].from) - n.length : null, s < i);
|
1666 |
+
return oe(n, e);
|
1667 |
+
}
|
1668 |
+
function Wt(t, e) {
|
1669 |
+
let r = t.resolveInner(e, -1), n = e;
|
1670 |
+
Ce(r) && (n = r.from, r = r.parent);
|
1671 |
+
for (let s; s = r.childBefore(n); )
|
1672 |
+
if (Ce(s))
|
1673 |
+
n = s.from;
|
1674 |
+
else if (s.name == "OrderedList" || s.name == "BulletList")
|
1675 |
+
r = s.lastChild, n = r.to;
|
1676 |
+
else
|
1677 |
+
break;
|
1678 |
+
return r;
|
1679 |
+
}
|
1680 |
+
const er = ({ state: t, dispatch: e }) => {
|
1681 |
+
let r = q(t), n = null, s = t.changeByRange((i) => {
|
1682 |
+
let o = i.from, { doc: a } = t;
|
1683 |
+
if (i.empty && Je.isActiveAt(t, i.from)) {
|
1684 |
+
let l = a.lineAt(o), f = Ye(Wt(r, o), a);
|
1685 |
+
if (f.length) {
|
1686 |
+
let h = f[f.length - 1], p = h.to - h.spaceAfter.length + (h.spaceAfter ? 1 : 0);
|
1687 |
+
if (o - l.from > p && !/\S/.test(l.text.slice(p, o - l.from)))
|
1688 |
+
return {
|
1689 |
+
range: P.cursor(l.from + p),
|
1690 |
+
changes: { from: l.from + p, to: o }
|
1691 |
+
};
|
1692 |
+
if (o - l.from == p && // Only apply this if we're on the line that has the
|
1693 |
+
// construct's syntax, or there's only indentation in the
|
1694 |
+
// target range
|
1695 |
+
(!h.item || l.from <= h.item.from || !/\S/.test(l.text.slice(0, h.to)))) {
|
1696 |
+
let d = l.from + h.from;
|
1697 |
+
if (h.item && h.node.from < h.item.from && /\S/.test(l.text.slice(h.from, h.to))) {
|
1698 |
+
let m = h.blank(T(l.text, 4, h.to) - T(l.text, 4, h.from));
|
1699 |
+
return d == l.from && (m = oe(m, t)), {
|
1700 |
+
range: P.cursor(d + m.length),
|
1701 |
+
changes: { from: d, to: l.from + h.to, insert: m }
|
1702 |
+
};
|
1703 |
+
}
|
1704 |
+
if (d < o)
|
1705 |
+
return { range: P.cursor(d), changes: { from: d, to: o } };
|
1706 |
+
}
|
1707 |
+
}
|
1708 |
+
}
|
1709 |
+
return n = { range: i };
|
1710 |
+
});
|
1711 |
+
return n ? !1 : (e(t.update(s, { scrollIntoView: !0, userEvent: "delete" })), !0);
|
1712 |
+
}, tr = [
|
1713 |
+
{ key: "Enter", run: Jt },
|
1714 |
+
{ key: "Backspace", run: er }
|
1715 |
+
], te = /* @__PURE__ */ kt({ matchClosingTags: !1 });
|
1716 |
+
function hr(t = {}) {
|
1717 |
+
let { codeLanguages: e, defaultCodeLanguage: r, addKeymap: n = !0, base: { parser: s } = Gt, completeHTMLTags: i = !0 } = t;
|
1718 |
+
if (!(s instanceof U))
|
1719 |
+
throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");
|
1720 |
+
let o = t.extensions ? [t.extensions] : [], a = [te.support], l;
|
1721 |
+
r instanceof ae ? (a.push(r.support), l = r.language) : r && (l = r);
|
1722 |
+
let f = e || l ? Kt(e, l) : void 0;
|
1723 |
+
o.push(yt({ codeParser: f, htmlParser: te.language.parser })), n && a.push(it.high(ot.of(tr)));
|
1724 |
+
let h = ie(s.configure(o));
|
1725 |
+
return i && a.push(h.data.of({ autocomplete: rr })), new ae(h, a);
|
1726 |
+
}
|
1727 |
+
function rr(t) {
|
1728 |
+
let { state: e, pos: r } = t, n = /<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(r - 25, r));
|
1729 |
+
if (!n)
|
1730 |
+
return null;
|
1731 |
+
let s = q(e).resolveInner(r, -1);
|
1732 |
+
for (; s && !s.type.isTop; ) {
|
1733 |
+
if (s.name == "CodeBlock" || s.name == "FencedCode" || s.name == "ProcessingInstructionBlock" || s.name == "CommentBlock" || s.name == "Link" || s.name == "Image")
|
1734 |
+
return null;
|
1735 |
+
s = s.parent;
|
1736 |
+
}
|
1737 |
+
return {
|
1738 |
+
from: r - n[0].length,
|
1739 |
+
to: r,
|
1740 |
+
options: nr(),
|
1741 |
+
validFor: /^<[:\-\.\w\u00b7-\uffff]*$/
|
1742 |
+
};
|
1743 |
+
}
|
1744 |
+
let V = null;
|
1745 |
+
function nr() {
|
1746 |
+
if (V)
|
1747 |
+
return V;
|
1748 |
+
let t = gt(new at(lt.create({ extensions: te }), 0, !0));
|
1749 |
+
return V = t ? t.options : [];
|
1750 |
+
}
|
1751 |
+
export {
|
1752 |
+
Gt as commonmarkLanguage,
|
1753 |
+
er as deleteMarkupBackward,
|
1754 |
+
Jt as insertNewlineContinueMarkup,
|
1755 |
+
hr as markdown,
|
1756 |
+
tr as markdownKeymap,
|
1757 |
+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e } from "./Index-d65e8fec.js";
|
3 |
+
import { cssLanguage as J, css as _e } from "./index-cb2e00e0.js";
|
4 |
+
import { typescriptLanguage as qe, jsxLanguage as Ce, tsxLanguage as Qe, javascriptLanguage as M, javascript as Ae } from "./index-0383c262.js";
|
5 |
+
const Ye = 54, Me = 1, Re = 55, Ee = 2, Ze = 56, Be = 3, z = 4, ze = 5, v = 6, ee = 7, te = 8, ae = 9, le = 10, We = 11, De = 12, Ne = 13, $ = 57, Ge = 14, W = 58, re = 20, Ie = 22, ne = 23, je = 24, A = 26, se = 27, Ue = 28, Le = 31, Fe = 34, He = 36, Ke = 37, Je = 0, et = 1, tt = {
|
6 |
+
area: !0,
|
7 |
+
base: !0,
|
8 |
+
br: !0,
|
9 |
+
col: !0,
|
10 |
+
command: !0,
|
11 |
+
embed: !0,
|
12 |
+
frame: !0,
|
13 |
+
hr: !0,
|
14 |
+
img: !0,
|
15 |
+
input: !0,
|
16 |
+
keygen: !0,
|
17 |
+
link: !0,
|
18 |
+
meta: !0,
|
19 |
+
param: !0,
|
20 |
+
source: !0,
|
21 |
+
track: !0,
|
22 |
+
wbr: !0,
|
23 |
+
menuitem: !0
|
24 |
+
}, at = {
|
25 |
+
dd: !0,
|
26 |
+
li: !0,
|
27 |
+
optgroup: !0,
|
28 |
+
option: !0,
|
29 |
+
p: !0,
|
30 |
+
rp: !0,
|
31 |
+
rt: !0,
|
32 |
+
tbody: !0,
|
33 |
+
td: !0,
|
34 |
+
tfoot: !0,
|
35 |
+
th: !0,
|
36 |
+
tr: !0
|
37 |
+
}, D = {
|
38 |
+
dd: { dd: !0, dt: !0 },
|
39 |
+
dt: { dd: !0, dt: !0 },
|
40 |
+
li: { li: !0 },
|
41 |
+
option: { option: !0, optgroup: !0 },
|
42 |
+
optgroup: { optgroup: !0 },
|
43 |
+
p: {
|
44 |
+
address: !0,
|
45 |
+
article: !0,
|
46 |
+
aside: !0,
|
47 |
+
blockquote: !0,
|
48 |
+
dir: !0,
|
49 |
+
div: !0,
|
50 |
+
dl: !0,
|
51 |
+
fieldset: !0,
|
52 |
+
footer: !0,
|
53 |
+
form: !0,
|
54 |
+
h1: !0,
|
55 |
+
h2: !0,
|
56 |
+
h3: !0,
|
57 |
+
h4: !0,
|
58 |
+
h5: !0,
|
59 |
+
h6: !0,
|
60 |
+
header: !0,
|
61 |
+
hgroup: !0,
|
62 |
+
hr: !0,
|
63 |
+
menu: !0,
|
64 |
+
nav: !0,
|
65 |
+
ol: !0,
|
66 |
+
p: !0,
|
67 |
+
pre: !0,
|
68 |
+
section: !0,
|
69 |
+
table: !0,
|
70 |
+
ul: !0
|
71 |
+
},
|
72 |
+
rp: { rp: !0, rt: !0 },
|
73 |
+
rt: { rp: !0, rt: !0 },
|
74 |
+
tbody: { tbody: !0, tfoot: !0 },
|
75 |
+
td: { td: !0, th: !0 },
|
76 |
+
tfoot: { tbody: !0 },
|
77 |
+
th: { td: !0, th: !0 },
|
78 |
+
thead: { tbody: !0, tfoot: !0 },
|
79 |
+
tr: { tr: !0 }
|
80 |
+
};
|
81 |
+
function lt(e) {
|
82 |
+
return e == 45 || e == 46 || e == 58 || e >= 65 && e <= 90 || e == 95 || e >= 97 && e <= 122 || e >= 161;
|
83 |
+
}
|
84 |
+
function oe(e) {
|
85 |
+
return e == 9 || e == 10 || e == 13 || e == 32;
|
86 |
+
}
|
87 |
+
let N = null, G = null, I = 0;
|
88 |
+
function Y(e, a) {
|
89 |
+
let r = e.pos + a;
|
90 |
+
if (I == r && G == e)
|
91 |
+
return N;
|
92 |
+
let l = e.peek(a);
|
93 |
+
for (; oe(l); )
|
94 |
+
l = e.peek(++a);
|
95 |
+
let t = "";
|
96 |
+
for (; lt(l); )
|
97 |
+
t += String.fromCharCode(l), l = e.peek(++a);
|
98 |
+
return G = e, I = r, N = t ? t.toLowerCase() : l == rt || l == nt ? void 0 : null;
|
99 |
+
}
|
100 |
+
const ue = 60, X = 62, R = 47, rt = 63, nt = 33, st = 45;
|
101 |
+
function j(e, a) {
|
102 |
+
this.name = e, this.parent = a, this.hash = a ? a.hash : 0;
|
103 |
+
for (let r = 0; r < e.length; r++)
|
104 |
+
this.hash += (this.hash << 4) + e.charCodeAt(r) + (e.charCodeAt(r) << 8);
|
105 |
+
}
|
106 |
+
const ot = [v, le, ee, te, ae], ut = new be({
|
107 |
+
start: null,
|
108 |
+
shift(e, a, r, l) {
|
109 |
+
return ot.indexOf(a) > -1 ? new j(Y(l, 1) || "", e) : e;
|
110 |
+
},
|
111 |
+
reduce(e, a) {
|
112 |
+
return a == re && e ? e.parent : e;
|
113 |
+
},
|
114 |
+
reuse(e, a, r, l) {
|
115 |
+
let t = a.type.id;
|
116 |
+
return t == v || t == He ? new j(Y(l, 1) || "", e) : e;
|
117 |
+
},
|
118 |
+
hash(e) {
|
119 |
+
return e ? e.hash : 0;
|
120 |
+
},
|
121 |
+
strict: !1
|
122 |
+
}), Ot = new k((e, a) => {
|
123 |
+
if (e.next != ue) {
|
124 |
+
e.next < 0 && a.context && e.acceptToken($);
|
125 |
+
return;
|
126 |
+
}
|
127 |
+
e.advance();
|
128 |
+
let r = e.next == R;
|
129 |
+
r && e.advance();
|
130 |
+
let l = Y(e, 0);
|
131 |
+
if (l === void 0)
|
132 |
+
return;
|
133 |
+
if (!l)
|
134 |
+
return e.acceptToken(r ? Ge : v);
|
135 |
+
let t = a.context ? a.context.name : null;
|
136 |
+
if (r) {
|
137 |
+
if (l == t)
|
138 |
+
return e.acceptToken(We);
|
139 |
+
if (t && at[t])
|
140 |
+
return e.acceptToken($, -2);
|
141 |
+
if (a.dialectEnabled(Je))
|
142 |
+
return e.acceptToken(De);
|
143 |
+
for (let s = a.context; s; s = s.parent)
|
144 |
+
if (s.name == l)
|
145 |
+
return;
|
146 |
+
e.acceptToken(Ne);
|
147 |
+
} else {
|
148 |
+
if (l == "script")
|
149 |
+
return e.acceptToken(ee);
|
150 |
+
if (l == "style")
|
151 |
+
return e.acceptToken(te);
|
152 |
+
if (l == "textarea")
|
153 |
+
return e.acceptToken(ae);
|
154 |
+
if (tt.hasOwnProperty(l))
|
155 |
+
return e.acceptToken(le);
|
156 |
+
t && D[t] && D[t][l] ? e.acceptToken($, -1) : e.acceptToken(v);
|
157 |
+
}
|
158 |
+
}, { contextual: !0 }), it = new k((e) => {
|
159 |
+
for (let a = 0, r = 0; ; r++) {
|
160 |
+
if (e.next < 0) {
|
161 |
+
r && e.acceptToken(W);
|
162 |
+
break;
|
163 |
+
}
|
164 |
+
if (e.next == st)
|
165 |
+
a++;
|
166 |
+
else if (e.next == X && a >= 2) {
|
167 |
+
r >= 3 && e.acceptToken(W, -2);
|
168 |
+
break;
|
169 |
+
} else
|
170 |
+
a = 0;
|
171 |
+
e.advance();
|
172 |
+
}
|
173 |
+
});
|
174 |
+
function ct(e) {
|
175 |
+
for (; e; e = e.parent)
|
176 |
+
if (e.name == "svg" || e.name == "math")
|
177 |
+
return !0;
|
178 |
+
return !1;
|
179 |
+
}
|
180 |
+
const dt = new k((e, a) => {
|
181 |
+
if (e.next == R && e.peek(1) == X) {
|
182 |
+
let r = a.dialectEnabled(et) || ct(a.context);
|
183 |
+
e.acceptToken(r ? ze : z, 2);
|
184 |
+
} else
|
185 |
+
e.next == X && e.acceptToken(z, 1);
|
186 |
+
});
|
187 |
+
function E(e, a, r) {
|
188 |
+
let l = 2 + e.length;
|
189 |
+
return new k((t) => {
|
190 |
+
for (let s = 0, o = 0, u = 0; ; u++) {
|
191 |
+
if (t.next < 0) {
|
192 |
+
u && t.acceptToken(a);
|
193 |
+
break;
|
194 |
+
}
|
195 |
+
if (s == 0 && t.next == ue || s == 1 && t.next == R || s >= 2 && s < l && t.next == e.charCodeAt(s - 2))
|
196 |
+
s++, o++;
|
197 |
+
else if ((s == 2 || s == l) && oe(t.next))
|
198 |
+
o++;
|
199 |
+
else if (s == l && t.next == X) {
|
200 |
+
u > o ? t.acceptToken(a, -o) : t.acceptToken(r, -(o - 2));
|
201 |
+
break;
|
202 |
+
} else if ((t.next == 10 || t.next == 13) && u) {
|
203 |
+
t.acceptToken(a, 1);
|
204 |
+
break;
|
205 |
+
} else
|
206 |
+
s = o = 0;
|
207 |
+
t.advance();
|
208 |
+
}
|
209 |
+
});
|
210 |
+
}
|
211 |
+
const pt = E("script", Ye, Me), mt = E("style", Re, Ee), ft = E("textarea", Ze, Be), St = Te({
|
212 |
+
"Text RawText": h.content,
|
213 |
+
"StartTag StartCloseTag SelfClosingEndTag EndTag": h.angleBracket,
|
214 |
+
TagName: h.tagName,
|
215 |
+
"MismatchedCloseTag/TagName": [h.tagName, h.invalid],
|
216 |
+
AttributeName: h.attributeName,
|
217 |
+
"AttributeValue UnquotedAttributeValue": h.attributeValue,
|
218 |
+
Is: h.definitionOperator,
|
219 |
+
"EntityReference CharacterReference": h.character,
|
220 |
+
Comment: h.blockComment,
|
221 |
+
ProcessingInst: h.processingInstruction,
|
222 |
+
DoctypeDecl: h.documentMeta
|
223 |
+
}), gt = Pe.deserialize({
|
224 |
+
version: 14,
|
225 |
+
states: ",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&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ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",
|
227 |
+
goto: "%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",
|
228 |
+
nodeNames: "⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",
|
229 |
+
maxTerm: 67,
|
230 |
+
context: ut,
|
231 |
+
nodeProps: [
|
232 |
+
["closedBy", -10, 1, 2, 3, 7, 8, 9, 10, 11, 12, 13, "EndTag", 6, "EndTag SelfClosingEndTag", -4, 21, 30, 33, 36, "CloseTag"],
|
233 |
+
["openedBy", 4, "StartTag StartCloseTag", 5, "StartTag", -4, 29, 32, 35, 37, "OpenTag"],
|
234 |
+
["group", -9, 14, 17, 18, 19, 20, 39, 40, 41, 42, "Entity", 16, "Entity TextContent", -3, 28, 31, 34, "TextContent Entity"],
|
235 |
+
["isolate", -11, 21, 29, 30, 32, 33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'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",
|
241 |
+
tokenizers: [pt, mt, ft, dt, Ot, it, 0, 1, 2, 3, 4, 5],
|
242 |
+
topRules: { Document: [0, 15] },
|
243 |
+
dialects: { noMatch: 0, selfClosing: 509 },
|
244 |
+
tokenPrec: 511
|
245 |
+
});
|
246 |
+
function Oe(e, a) {
|
247 |
+
let r = /* @__PURE__ */ Object.create(null);
|
248 |
+
for (let l of e.getChildren(ne)) {
|
249 |
+
let t = l.getChild(je), s = l.getChild(A) || l.getChild(se);
|
250 |
+
t && (r[a.read(t.from, t.to)] = s ? s.type.id == A ? a.read(s.from + 1, s.to - 1) : a.read(s.from, s.to) : "");
|
251 |
+
}
|
252 |
+
return r;
|
253 |
+
}
|
254 |
+
function U(e, a) {
|
255 |
+
let r = e.getChild(Ie);
|
256 |
+
return r ? a.read(r.from, r.to) : " ";
|
257 |
+
}
|
258 |
+
function _(e, a, r) {
|
259 |
+
let l;
|
260 |
+
for (let t of r)
|
261 |
+
if (!t.attrs || t.attrs(l || (l = Oe(e.node.parent.firstChild, a))))
|
262 |
+
return { parser: t.parser };
|
263 |
+
return null;
|
264 |
+
}
|
265 |
+
function ie(e = [], a = []) {
|
266 |
+
let r = [], l = [], t = [], s = [];
|
267 |
+
for (let u of e)
|
268 |
+
(u.tag == "script" ? r : u.tag == "style" ? l : u.tag == "textarea" ? t : s).push(u);
|
269 |
+
let o = a.length ? /* @__PURE__ */ Object.create(null) : null;
|
270 |
+
for (let u of a)
|
271 |
+
(o[u.name] || (o[u.name] = [])).push(u);
|
272 |
+
return xe((u, O) => {
|
273 |
+
let f = u.type.id;
|
274 |
+
if (f == Ue)
|
275 |
+
return _(u, O, r);
|
276 |
+
if (f == Le)
|
277 |
+
return _(u, O, l);
|
278 |
+
if (f == Fe)
|
279 |
+
return _(u, O, t);
|
280 |
+
if (f == re && s.length) {
|
281 |
+
let p = u.node, d = p.firstChild, m = d && U(d, O), c;
|
282 |
+
if (m) {
|
283 |
+
for (let i of s)
|
284 |
+
if (i.tag == m && (!i.attrs || i.attrs(c || (c = Oe(p, O))))) {
|
285 |
+
let g = p.lastChild, b = g.type.id == Ke ? g.from : p.to;
|
286 |
+
if (b > d.to)
|
287 |
+
return { parser: i.parser, overlay: [{ from: d.to, to: b }] };
|
288 |
+
}
|
289 |
+
}
|
290 |
+
}
|
291 |
+
if (o && f == ne) {
|
292 |
+
let p = u.node, d;
|
293 |
+
if (d = p.firstChild) {
|
294 |
+
let m = o[O.read(d.from, d.to)];
|
295 |
+
if (m)
|
296 |
+
for (let c of m) {
|
297 |
+
if (c.tagName && c.tagName != U(p.parent, O))
|
298 |
+
continue;
|
299 |
+
let i = p.lastChild;
|
300 |
+
if (i.type.id == A) {
|
301 |
+
let g = i.from + 1, b = i.lastChild, P = i.to - (b && b.isError ? 0 : 1);
|
302 |
+
if (P > g)
|
303 |
+
return { parser: c.parser, overlay: [{ from: g, to: P }] };
|
304 |
+
} else if (i.type.id == se)
|
305 |
+
return { parser: c.parser, overlay: [{ from: i.from, to: i.to }] };
|
306 |
+
}
|
307 |
+
}
|
308 |
+
}
|
309 |
+
return null;
|
310 |
+
});
|
311 |
+
}
|
312 |
+
const V = ["_blank", "_self", "_top", "_parent"], q = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], C = ["get", "post", "put", "delete"], Q = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], S = ["true", "false"], n = {}, ht = {
|
313 |
+
a: {
|
314 |
+
attrs: {
|
315 |
+
href: null,
|
316 |
+
ping: null,
|
317 |
+
type: null,
|
318 |
+
media: null,
|
319 |
+
target: V,
|
320 |
+
hreflang: null
|
321 |
+
}
|
322 |
+
},
|
323 |
+
abbr: n,
|
324 |
+
address: n,
|
325 |
+
area: {
|
326 |
+
attrs: {
|
327 |
+
alt: null,
|
328 |
+
coords: null,
|
329 |
+
href: null,
|
330 |
+
target: null,
|
331 |
+
ping: null,
|
332 |
+
media: null,
|
333 |
+
hreflang: null,
|
334 |
+
type: null,
|
335 |
+
shape: ["default", "rect", "circle", "poly"]
|
336 |
+
}
|
337 |
+
},
|
338 |
+
article: n,
|
339 |
+
aside: n,
|
340 |
+
audio: {
|
341 |
+
attrs: {
|
342 |
+
src: null,
|
343 |
+
mediagroup: null,
|
344 |
+
crossorigin: ["anonymous", "use-credentials"],
|
345 |
+
preload: ["none", "metadata", "auto"],
|
346 |
+
autoplay: ["autoplay"],
|
347 |
+
loop: ["loop"],
|
348 |
+
controls: ["controls"]
|
349 |
+
}
|
350 |
+
},
|
351 |
+
b: n,
|
352 |
+
base: { attrs: { href: null, target: V } },
|
353 |
+
bdi: n,
|
354 |
+
bdo: n,
|
355 |
+
blockquote: { attrs: { cite: null } },
|
356 |
+
body: n,
|
357 |
+
br: n,
|
358 |
+
button: {
|
359 |
+
attrs: {
|
360 |
+
form: null,
|
361 |
+
formaction: null,
|
362 |
+
name: null,
|
363 |
+
value: null,
|
364 |
+
autofocus: ["autofocus"],
|
365 |
+
disabled: ["autofocus"],
|
366 |
+
formenctype: Q,
|
367 |
+
formmethod: C,
|
368 |
+
formnovalidate: ["novalidate"],
|
369 |
+
formtarget: V,
|
370 |
+
type: ["submit", "reset", "button"]
|
371 |
+
}
|
372 |
+
},
|
373 |
+
canvas: { attrs: { width: null, height: null } },
|
374 |
+
caption: n,
|
375 |
+
center: n,
|
376 |
+
cite: n,
|
377 |
+
code: n,
|
378 |
+
col: { attrs: { span: null } },
|
379 |
+
colgroup: { attrs: { span: null } },
|
380 |
+
command: {
|
381 |
+
attrs: {
|
382 |
+
type: ["command", "checkbox", "radio"],
|
383 |
+
label: null,
|
384 |
+
icon: null,
|
385 |
+
radiogroup: null,
|
386 |
+
command: null,
|
387 |
+
title: null,
|
388 |
+
disabled: ["disabled"],
|
389 |
+
checked: ["checked"]
|
390 |
+
}
|
391 |
+
},
|
392 |
+
data: { attrs: { value: null } },
|
393 |
+
datagrid: { attrs: { disabled: ["disabled"], multiple: ["multiple"] } },
|
394 |
+
datalist: { attrs: { data: null } },
|
395 |
+
dd: n,
|
396 |
+
del: { attrs: { cite: null, datetime: null } },
|
397 |
+
details: { attrs: { open: ["open"] } },
|
398 |
+
dfn: n,
|
399 |
+
div: n,
|
400 |
+
dl: n,
|
401 |
+
dt: n,
|
402 |
+
em: n,
|
403 |
+
embed: { attrs: { src: null, type: null, width: null, height: null } },
|
404 |
+
eventsource: { attrs: { src: null } },
|
405 |
+
fieldset: { attrs: { disabled: ["disabled"], form: null, name: null } },
|
406 |
+
figcaption: n,
|
407 |
+
figure: n,
|
408 |
+
footer: n,
|
409 |
+
form: {
|
410 |
+
attrs: {
|
411 |
+
action: null,
|
412 |
+
name: null,
|
413 |
+
"accept-charset": q,
|
414 |
+
autocomplete: ["on", "off"],
|
415 |
+
enctype: Q,
|
416 |
+
method: C,
|
417 |
+
novalidate: ["novalidate"],
|
418 |
+
target: V
|
419 |
+
}
|
420 |
+
},
|
421 |
+
h1: n,
|
422 |
+
h2: n,
|
423 |
+
h3: n,
|
424 |
+
h4: n,
|
425 |
+
h5: n,
|
426 |
+
h6: n,
|
427 |
+
head: {
|
428 |
+
children: ["title", "base", "link", "style", "meta", "script", "noscript", "command"]
|
429 |
+
},
|
430 |
+
header: n,
|
431 |
+
hgroup: n,
|
432 |
+
hr: n,
|
433 |
+
html: {
|
434 |
+
attrs: { manifest: null }
|
435 |
+
},
|
436 |
+
i: n,
|
437 |
+
iframe: {
|
438 |
+
attrs: {
|
439 |
+
src: null,
|
440 |
+
srcdoc: null,
|
441 |
+
name: null,
|
442 |
+
width: null,
|
443 |
+
height: null,
|
444 |
+
sandbox: ["allow-top-navigation", "allow-same-origin", "allow-forms", "allow-scripts"],
|
445 |
+
seamless: ["seamless"]
|
446 |
+
}
|
447 |
+
},
|
448 |
+
img: {
|
449 |
+
attrs: {
|
450 |
+
alt: null,
|
451 |
+
src: null,
|
452 |
+
ismap: null,
|
453 |
+
usemap: null,
|
454 |
+
width: null,
|
455 |
+
height: null,
|
456 |
+
crossorigin: ["anonymous", "use-credentials"]
|
457 |
+
}
|
458 |
+
},
|
459 |
+
input: {
|
460 |
+
attrs: {
|
461 |
+
alt: null,
|
462 |
+
dirname: null,
|
463 |
+
form: null,
|
464 |
+
formaction: null,
|
465 |
+
height: null,
|
466 |
+
list: null,
|
467 |
+
max: null,
|
468 |
+
maxlength: null,
|
469 |
+
min: null,
|
470 |
+
name: null,
|
471 |
+
pattern: null,
|
472 |
+
placeholder: null,
|
473 |
+
size: null,
|
474 |
+
src: null,
|
475 |
+
step: null,
|
476 |
+
value: null,
|
477 |
+
width: null,
|
478 |
+
accept: ["audio/*", "video/*", "image/*"],
|
479 |
+
autocomplete: ["on", "off"],
|
480 |
+
autofocus: ["autofocus"],
|
481 |
+
checked: ["checked"],
|
482 |
+
disabled: ["disabled"],
|
483 |
+
formenctype: Q,
|
484 |
+
formmethod: C,
|
485 |
+
formnovalidate: ["novalidate"],
|
486 |
+
formtarget: V,
|
487 |
+
multiple: ["multiple"],
|
488 |
+
readonly: ["readonly"],
|
489 |
+
required: ["required"],
|
490 |
+
type: [
|
491 |
+
"hidden",
|
492 |
+
"text",
|
493 |
+
"search",
|
494 |
+
"tel",
|
495 |
+
"url",
|
496 |
+
"email",
|
497 |
+
"password",
|
498 |
+
"datetime",
|
499 |
+
"date",
|
500 |
+
"month",
|
501 |
+
"week",
|
502 |
+
"time",
|
503 |
+
"datetime-local",
|
504 |
+
"number",
|
505 |
+
"range",
|
506 |
+
"color",
|
507 |
+
"checkbox",
|
508 |
+
"radio",
|
509 |
+
"file",
|
510 |
+
"submit",
|
511 |
+
"image",
|
512 |
+
"reset",
|
513 |
+
"button"
|
514 |
+
]
|
515 |
+
}
|
516 |
+
},
|
517 |
+
ins: { attrs: { cite: null, datetime: null } },
|
518 |
+
kbd: n,
|
519 |
+
keygen: {
|
520 |
+
attrs: {
|
521 |
+
challenge: null,
|
522 |
+
form: null,
|
523 |
+
name: null,
|
524 |
+
autofocus: ["autofocus"],
|
525 |
+
disabled: ["disabled"],
|
526 |
+
keytype: ["RSA"]
|
527 |
+
}
|
528 |
+
},
|
529 |
+
label: { attrs: { for: null, form: null } },
|
530 |
+
legend: n,
|
531 |
+
li: { attrs: { value: null } },
|
532 |
+
link: {
|
533 |
+
attrs: {
|
534 |
+
href: null,
|
535 |
+
type: null,
|
536 |
+
hreflang: null,
|
537 |
+
media: null,
|
538 |
+
sizes: ["all", "16x16", "16x16 32x32", "16x16 32x32 64x64"]
|
539 |
+
}
|
540 |
+
},
|
541 |
+
map: { attrs: { name: null } },
|
542 |
+
mark: n,
|
543 |
+
menu: { attrs: { label: null, type: ["list", "context", "toolbar"] } },
|
544 |
+
meta: {
|
545 |
+
attrs: {
|
546 |
+
content: null,
|
547 |
+
charset: q,
|
548 |
+
name: ["viewport", "application-name", "author", "description", "generator", "keywords"],
|
549 |
+
"http-equiv": ["content-language", "content-type", "default-style", "refresh"]
|
550 |
+
}
|
551 |
+
},
|
552 |
+
meter: { attrs: { value: null, min: null, low: null, high: null, max: null, optimum: null } },
|
553 |
+
nav: n,
|
554 |
+
noscript: n,
|
555 |
+
object: {
|
556 |
+
attrs: {
|
557 |
+
data: null,
|
558 |
+
type: null,
|
559 |
+
name: null,
|
560 |
+
usemap: null,
|
561 |
+
form: null,
|
562 |
+
width: null,
|
563 |
+
height: null,
|
564 |
+
typemustmatch: ["typemustmatch"]
|
565 |
+
}
|
566 |
+
},
|
567 |
+
ol: {
|
568 |
+
attrs: { reversed: ["reversed"], start: null, type: ["1", "a", "A", "i", "I"] },
|
569 |
+
children: ["li", "script", "template", "ul", "ol"]
|
570 |
+
},
|
571 |
+
optgroup: { attrs: { disabled: ["disabled"], label: null } },
|
572 |
+
option: { attrs: { disabled: ["disabled"], label: null, selected: ["selected"], value: null } },
|
573 |
+
output: { attrs: { for: null, form: null, name: null } },
|
574 |
+
p: n,
|
575 |
+
param: { attrs: { name: null, value: null } },
|
576 |
+
pre: n,
|
577 |
+
progress: { attrs: { value: null, max: null } },
|
578 |
+
q: { attrs: { cite: null } },
|
579 |
+
rp: n,
|
580 |
+
rt: n,
|
581 |
+
ruby: n,
|
582 |
+
samp: n,
|
583 |
+
script: {
|
584 |
+
attrs: {
|
585 |
+
type: ["text/javascript"],
|
586 |
+
src: null,
|
587 |
+
async: ["async"],
|
588 |
+
defer: ["defer"],
|
589 |
+
charset: q
|
590 |
+
}
|
591 |
+
},
|
592 |
+
section: n,
|
593 |
+
select: {
|
594 |
+
attrs: {
|
595 |
+
form: null,
|
596 |
+
name: null,
|
597 |
+
size: null,
|
598 |
+
autofocus: ["autofocus"],
|
599 |
+
disabled: ["disabled"],
|
600 |
+
multiple: ["multiple"]
|
601 |
+
}
|
602 |
+
},
|
603 |
+
slot: { attrs: { name: null } },
|
604 |
+
small: n,
|
605 |
+
source: { attrs: { src: null, type: null, media: null } },
|
606 |
+
span: n,
|
607 |
+
strong: n,
|
608 |
+
style: {
|
609 |
+
attrs: {
|
610 |
+
type: ["text/css"],
|
611 |
+
media: null,
|
612 |
+
scoped: null
|
613 |
+
}
|
614 |
+
},
|
615 |
+
sub: n,
|
616 |
+
summary: n,
|
617 |
+
sup: n,
|
618 |
+
table: n,
|
619 |
+
tbody: n,
|
620 |
+
td: { attrs: { colspan: null, rowspan: null, headers: null } },
|
621 |
+
template: n,
|
622 |
+
textarea: {
|
623 |
+
attrs: {
|
624 |
+
dirname: null,
|
625 |
+
form: null,
|
626 |
+
maxlength: null,
|
627 |
+
name: null,
|
628 |
+
placeholder: null,
|
629 |
+
rows: null,
|
630 |
+
cols: null,
|
631 |
+
autofocus: ["autofocus"],
|
632 |
+
disabled: ["disabled"],
|
633 |
+
readonly: ["readonly"],
|
634 |
+
required: ["required"],
|
635 |
+
wrap: ["soft", "hard"]
|
636 |
+
}
|
637 |
+
},
|
638 |
+
tfoot: n,
|
639 |
+
th: { attrs: { colspan: null, rowspan: null, headers: null, scope: ["row", "col", "rowgroup", "colgroup"] } },
|
640 |
+
thead: n,
|
641 |
+
time: { attrs: { datetime: null } },
|
642 |
+
title: n,
|
643 |
+
tr: n,
|
644 |
+
track: {
|
645 |
+
attrs: {
|
646 |
+
src: null,
|
647 |
+
label: null,
|
648 |
+
default: null,
|
649 |
+
kind: ["subtitles", "captions", "descriptions", "chapters", "metadata"],
|
650 |
+
srclang: null
|
651 |
+
}
|
652 |
+
},
|
653 |
+
ul: { children: ["li", "script", "template", "ul", "ol"] },
|
654 |
+
var: n,
|
655 |
+
video: {
|
656 |
+
attrs: {
|
657 |
+
src: null,
|
658 |
+
poster: null,
|
659 |
+
width: null,
|
660 |
+
height: null,
|
661 |
+
crossorigin: ["anonymous", "use-credentials"],
|
662 |
+
preload: ["auto", "metadata", "none"],
|
663 |
+
autoplay: ["autoplay"],
|
664 |
+
mediagroup: ["movie"],
|
665 |
+
muted: ["muted"],
|
666 |
+
controls: ["controls"]
|
667 |
+
}
|
668 |
+
},
|
669 |
+
wbr: n
|
670 |
+
}, ce = {
|
671 |
+
accesskey: null,
|
672 |
+
class: null,
|
673 |
+
contenteditable: S,
|
674 |
+
contextmenu: null,
|
675 |
+
dir: ["ltr", "rtl", "auto"],
|
676 |
+
draggable: ["true", "false", "auto"],
|
677 |
+
dropzone: ["copy", "move", "link", "string:", "file:"],
|
678 |
+
hidden: ["hidden"],
|
679 |
+
id: null,
|
680 |
+
inert: ["inert"],
|
681 |
+
itemid: null,
|
682 |
+
itemprop: null,
|
683 |
+
itemref: null,
|
684 |
+
itemscope: ["itemscope"],
|
685 |
+
itemtype: null,
|
686 |
+
lang: ["ar", "bn", "de", "en-GB", "en-US", "es", "fr", "hi", "id", "ja", "pa", "pt", "ru", "tr", "zh"],
|
687 |
+
spellcheck: S,
|
688 |
+
autocorrect: S,
|
689 |
+
autocapitalize: S,
|
690 |
+
style: null,
|
691 |
+
tabindex: null,
|
692 |
+
title: null,
|
693 |
+
translate: ["yes", "no"],
|
694 |
+
rel: ["stylesheet", "alternate", "author", "bookmark", "help", "license", "next", "nofollow", "noreferrer", "prefetch", "prev", "search", "tag"],
|
695 |
+
role: /* @__PURE__ */ "alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),
|
696 |
+
"aria-activedescendant": null,
|
697 |
+
"aria-atomic": S,
|
698 |
+
"aria-autocomplete": ["inline", "list", "both", "none"],
|
699 |
+
"aria-busy": S,
|
700 |
+
"aria-checked": ["true", "false", "mixed", "undefined"],
|
701 |
+
"aria-controls": null,
|
702 |
+
"aria-describedby": null,
|
703 |
+
"aria-disabled": S,
|
704 |
+
"aria-dropeffect": null,
|
705 |
+
"aria-expanded": ["true", "false", "undefined"],
|
706 |
+
"aria-flowto": null,
|
707 |
+
"aria-grabbed": ["true", "false", "undefined"],
|
708 |
+
"aria-haspopup": S,
|
709 |
+
"aria-hidden": S,
|
710 |
+
"aria-invalid": ["true", "false", "grammar", "spelling"],
|
711 |
+
"aria-label": null,
|
712 |
+
"aria-labelledby": null,
|
713 |
+
"aria-level": null,
|
714 |
+
"aria-live": ["off", "polite", "assertive"],
|
715 |
+
"aria-multiline": S,
|
716 |
+
"aria-multiselectable": S,
|
717 |
+
"aria-owns": null,
|
718 |
+
"aria-posinset": null,
|
719 |
+
"aria-pressed": ["true", "false", "mixed", "undefined"],
|
720 |
+
"aria-readonly": S,
|
721 |
+
"aria-relevant": null,
|
722 |
+
"aria-required": S,
|
723 |
+
"aria-selected": ["true", "false", "undefined"],
|
724 |
+
"aria-setsize": null,
|
725 |
+
"aria-sort": ["ascending", "descending", "none", "other"],
|
726 |
+
"aria-valuemax": null,
|
727 |
+
"aria-valuemin": null,
|
728 |
+
"aria-valuenow": null,
|
729 |
+
"aria-valuetext": null
|
730 |
+
}, de = /* @__PURE__ */ "beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((e) => "on" + e);
|
731 |
+
for (let e of de)
|
732 |
+
ce[e] = null;
|
733 |
+
class w {
|
734 |
+
constructor(a, r) {
|
735 |
+
this.tags = Object.assign(Object.assign({}, ht), a), this.globalAttrs = Object.assign(Object.assign({}, ce), r), this.allTags = Object.keys(this.tags), this.globalAttrNames = Object.keys(this.globalAttrs);
|
736 |
+
}
|
737 |
+
}
|
738 |
+
w.default = /* @__PURE__ */ new w();
|
739 |
+
function T(e, a, r = e.length) {
|
740 |
+
if (!a)
|
741 |
+
return "";
|
742 |
+
let l = a.firstChild, t = l && l.getChild("TagName");
|
743 |
+
return t ? e.sliceString(t.from, Math.min(t.to, r)) : "";
|
744 |
+
}
|
745 |
+
function x(e, a = !1) {
|
746 |
+
for (; e; e = e.parent)
|
747 |
+
if (e.name == "Element")
|
748 |
+
if (a)
|
749 |
+
a = !1;
|
750 |
+
else
|
751 |
+
return e;
|
752 |
+
return null;
|
753 |
+
}
|
754 |
+
function pe(e, a, r) {
|
755 |
+
let l = r.tags[T(e, x(a))];
|
756 |
+
return (l == null ? void 0 : l.children) || r.allTags;
|
757 |
+
}
|
758 |
+
function Z(e, a) {
|
759 |
+
let r = [];
|
760 |
+
for (let l = x(a); l && !l.type.isTop; l = x(l.parent)) {
|
761 |
+
let t = T(e, l);
|
762 |
+
if (t && l.lastChild.name == "CloseTag")
|
763 |
+
break;
|
764 |
+
t && r.indexOf(t) < 0 && (a.name == "EndTag" || a.from >= l.firstChild.to) && r.push(t);
|
765 |
+
}
|
766 |
+
return r;
|
767 |
+
}
|
768 |
+
const me = /^[:\-\.\w\u00b7-\uffff]*$/;
|
769 |
+
function L(e, a, r, l, t) {
|
770 |
+
let s = /\s*>/.test(e.sliceDoc(t, t + 5)) ? "" : ">", o = x(r, !0);
|
771 |
+
return {
|
772 |
+
from: l,
|
773 |
+
to: t,
|
774 |
+
options: pe(e.doc, o, a).map((u) => ({ label: u, type: "type" })).concat(Z(e.doc, r).map((u, O) => ({
|
775 |
+
label: "/" + u,
|
776 |
+
apply: "/" + u + s,
|
777 |
+
type: "type",
|
778 |
+
boost: 99 - O
|
779 |
+
}))),
|
780 |
+
validFor: /^\/?[:\-\.\w\u00b7-\uffff]*$/
|
781 |
+
};
|
782 |
+
}
|
783 |
+
function F(e, a, r, l) {
|
784 |
+
let t = /\s*>/.test(e.sliceDoc(l, l + 5)) ? "" : ">";
|
785 |
+
return {
|
786 |
+
from: r,
|
787 |
+
to: l,
|
788 |
+
options: Z(e.doc, a).map((s, o) => ({ label: s, apply: s + t, type: "type", boost: 99 - o })),
|
789 |
+
validFor: me
|
790 |
+
};
|
791 |
+
}
|
792 |
+
function bt(e, a, r, l) {
|
793 |
+
let t = [], s = 0;
|
794 |
+
for (let o of pe(e.doc, r, a))
|
795 |
+
t.push({ label: "<" + o, type: "type" });
|
796 |
+
for (let o of Z(e.doc, r))
|
797 |
+
t.push({ label: "</" + o + ">", type: "type", boost: 99 - s++ });
|
798 |
+
return { from: l, to: l, options: t, validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/ };
|
799 |
+
}
|
800 |
+
function Pt(e, a, r, l, t) {
|
801 |
+
let s = x(r), o = s ? a.tags[T(e.doc, s)] : null, u = o && o.attrs ? Object.keys(o.attrs) : [], O = o && o.globalAttrs === !1 ? u : u.length ? u.concat(a.globalAttrNames) : a.globalAttrNames;
|
802 |
+
return {
|
803 |
+
from: l,
|
804 |
+
to: t,
|
805 |
+
options: O.map((f) => ({ label: f, type: "property" })),
|
806 |
+
validFor: me
|
807 |
+
};
|
808 |
+
}
|
809 |
+
function Tt(e, a, r, l, t) {
|
810 |
+
var s;
|
811 |
+
let o = (s = r.parent) === null || s === void 0 ? void 0 : s.getChild("AttributeName"), u = [], O;
|
812 |
+
if (o) {
|
813 |
+
let f = e.sliceDoc(o.from, o.to), p = a.globalAttrs[f];
|
814 |
+
if (!p) {
|
815 |
+
let d = x(r), m = d ? a.tags[T(e.doc, d)] : null;
|
816 |
+
p = (m == null ? void 0 : m.attrs) && m.attrs[f];
|
817 |
+
}
|
818 |
+
if (p) {
|
819 |
+
let d = e.sliceDoc(l, t).toLowerCase(), m = '"', c = '"';
|
820 |
+
/^['"]/.test(d) ? (O = d[0] == '"' ? /^[^"]*$/ : /^[^']*$/, m = "", c = e.sliceDoc(t, t + 1) == d[0] ? "" : d[0], d = d.slice(1), l++) : O = /^[^\s<>='"]*$/;
|
821 |
+
for (let i of p)
|
822 |
+
u.push({ label: i, apply: m + i + c, type: "constant" });
|
823 |
+
}
|
824 |
+
}
|
825 |
+
return { from: l, to: t, options: u, validFor: O };
|
826 |
+
}
|
827 |
+
function fe(e, a) {
|
828 |
+
let { state: r, pos: l } = a, t = K(r).resolveInner(l, -1), s = t.resolve(l);
|
829 |
+
for (let o = l, u; s == t && (u = t.childBefore(o)); ) {
|
830 |
+
let O = u.lastChild;
|
831 |
+
if (!O || !O.type.isError || O.from < O.to)
|
832 |
+
break;
|
833 |
+
s = t = u, o = O.from;
|
834 |
+
}
|
835 |
+
return t.name == "TagName" ? t.parent && /CloseTag$/.test(t.parent.name) ? F(r, t, t.from, l) : L(r, e, t, t.from, l) : t.name == "StartTag" ? L(r, e, t, l, l) : t.name == "StartCloseTag" || t.name == "IncompleteCloseTag" ? F(r, t, l, l) : t.name == "OpenTag" || t.name == "SelfClosingTag" || t.name == "AttributeName" ? Pt(r, e, t, t.name == "AttributeName" ? t.from : l, l) : t.name == "Is" || t.name == "AttributeValue" || t.name == "UnquotedAttributeValue" ? Tt(r, e, t, t.name == "Is" ? l : t.from, l) : a.explicit && (s.name == "Element" || s.name == "Text" || s.name == "Document") ? bt(r, e, t, l) : null;
|
836 |
+
}
|
837 |
+
function $t(e) {
|
838 |
+
return fe(w.default, e);
|
839 |
+
}
|
840 |
+
function xt(e) {
|
841 |
+
let { extraTags: a, extraGlobalAttributes: r } = e, l = r || a ? new w(a, r) : w.default;
|
842 |
+
return (t) => fe(l, t);
|
843 |
+
}
|
844 |
+
const Vt = /* @__PURE__ */ M.parser.configure({ top: "SingleExpression" }), Se = [
|
845 |
+
{
|
846 |
+
tag: "script",
|
847 |
+
attrs: (e) => e.type == "text/typescript" || e.lang == "ts",
|
848 |
+
parser: qe.parser
|
849 |
+
},
|
850 |
+
{
|
851 |
+
tag: "script",
|
852 |
+
attrs: (e) => e.type == "text/babel" || e.type == "text/jsx",
|
853 |
+
parser: Ce.parser
|
854 |
+
},
|
855 |
+
{
|
856 |
+
tag: "script",
|
857 |
+
attrs: (e) => e.type == "text/typescript-jsx",
|
858 |
+
parser: Qe.parser
|
859 |
+
},
|
860 |
+
{
|
861 |
+
tag: "script",
|
862 |
+
attrs(e) {
|
863 |
+
return /^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type);
|
864 |
+
},
|
865 |
+
parser: Vt
|
866 |
+
},
|
867 |
+
{
|
868 |
+
tag: "script",
|
869 |
+
attrs(e) {
|
870 |
+
return !e.type || /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type);
|
871 |
+
},
|
872 |
+
parser: M.parser
|
873 |
+
},
|
874 |
+
{
|
875 |
+
tag: "style",
|
876 |
+
attrs(e) {
|
877 |
+
return (!e.lang || e.lang == "css") && (!e.type || /^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type));
|
878 |
+
},
|
879 |
+
parser: J.parser
|
880 |
+
}
|
881 |
+
], ge = /* @__PURE__ */ [
|
882 |
+
{
|
883 |
+
name: "style",
|
884 |
+
parser: /* @__PURE__ */ J.parser.configure({ top: "Styles" })
|
885 |
+
}
|
886 |
+
].concat(/* @__PURE__ */ de.map((e) => ({ name: e, parser: M.parser }))), he = /* @__PURE__ */ Ve.define({
|
887 |
+
name: "html",
|
888 |
+
parser: /* @__PURE__ */ gt.configure({
|
889 |
+
props: [
|
890 |
+
/* @__PURE__ */ we.add({
|
891 |
+
Element(e) {
|
892 |
+
let a = /^(\s*)(<\/)?/.exec(e.textAfter);
|
893 |
+
return e.node.to <= e.pos + a[0].length ? e.continue() : e.lineIndent(e.node.from) + (a[2] ? 0 : e.unit);
|
894 |
+
},
|
895 |
+
"OpenTag CloseTag SelfClosingTag"(e) {
|
896 |
+
return e.column(e.node.from) + e.unit;
|
897 |
+
},
|
898 |
+
Document(e) {
|
899 |
+
if (e.pos + /\s*/.exec(e.textAfter)[0].length < e.node.to)
|
900 |
+
return e.continue();
|
901 |
+
let a = null, r;
|
902 |
+
for (let l = e.node; ; ) {
|
903 |
+
let t = l.lastChild;
|
904 |
+
if (!t || t.name != "Element" || t.to != l.to)
|
905 |
+
break;
|
906 |
+
a = l = t;
|
907 |
+
}
|
908 |
+
return a && !((r = a.lastChild) && (r.name == "CloseTag" || r.name == "SelfClosingTag")) ? e.lineIndent(a.from) + e.unit : null;
|
909 |
+
}
|
910 |
+
}),
|
911 |
+
/* @__PURE__ */ ye.add({
|
912 |
+
Element(e) {
|
913 |
+
let a = e.firstChild, r = e.lastChild;
|
914 |
+
return !a || a.name != "OpenTag" ? null : { from: a.to, to: r.name == "CloseTag" ? r.from : e.to };
|
915 |
+
}
|
916 |
+
}),
|
917 |
+
/* @__PURE__ */ ve.add({
|
918 |
+
"OpenTag CloseTag": (e) => e.getChild("TagName")
|
919 |
+
})
|
920 |
+
]
|
921 |
+
}),
|
922 |
+
languageData: {
|
923 |
+
commentTokens: { block: { open: "<!--", close: "-->" } },
|
924 |
+
indentOnInput: /^\s*<\/\w+\W$/,
|
925 |
+
wordChars: "-._"
|
926 |
+
}
|
927 |
+
}), y = /* @__PURE__ */ he.configure({
|
928 |
+
wrap: /* @__PURE__ */ ie(Se, ge)
|
929 |
+
});
|
930 |
+
function _t(e = {}) {
|
931 |
+
let a = "", r;
|
932 |
+
e.matchClosingTags === !1 && (a = "noMatch"), e.selfClosingTags === !0 && (a = (a ? a + " " : "") + "selfClosing"), (e.nestedLanguages && e.nestedLanguages.length || e.nestedAttributes && e.nestedAttributes.length) && (r = ie((e.nestedLanguages || []).concat(Se), (e.nestedAttributes || []).concat(ge)));
|
933 |
+
let l = r ? he.configure({ wrap: r, dialect: a }) : a ? y.configure({ dialect: a }) : y;
|
934 |
+
return new Xe(l, [
|
935 |
+
y.data.of({ autocomplete: xt(e) }),
|
936 |
+
e.autoCloseTags !== !1 ? wt : [],
|
937 |
+
Ae().support,
|
938 |
+
_e().support
|
939 |
+
]);
|
940 |
+
}
|
941 |
+
const H = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), wt = /* @__PURE__ */ ke.inputHandler.of((e, a, r, l, t) => {
|
942 |
+
if (e.composing || e.state.readOnly || a != r || l != ">" && l != "/" || !y.isActiveAt(e.state, a, -1))
|
943 |
+
return !1;
|
944 |
+
let s = t(), { state: o } = s, u = o.changeByRange((O) => {
|
945 |
+
var f, p, d;
|
946 |
+
let m = o.doc.sliceString(O.from - 1, O.to) == l, { head: c } = O, i = K(o).resolveInner(c - 1, -1), g;
|
947 |
+
if ((i.name == "TagName" || i.name == "StartTag") && (i = i.parent), m && l == ">" && i.name == "OpenTag") {
|
948 |
+
if (((p = (f = i.parent) === null || f === void 0 ? void 0 : f.lastChild) === null || p === void 0 ? void 0 : p.name) != "CloseTag" && (g = T(o.doc, i.parent, c)) && !H.has(g)) {
|
949 |
+
let b = c + (o.doc.sliceString(c, c + 1) === ">" ? 1 : 0), P = `</${g}>`;
|
950 |
+
return { range: O, changes: { from: c, to: b, insert: P } };
|
951 |
+
}
|
952 |
+
} else if (m && l == "/" && i.name == "IncompleteCloseTag") {
|
953 |
+
let b = i.parent;
|
954 |
+
if (i.from == c - 2 && ((d = b.lastChild) === null || d === void 0 ? void 0 : d.name) != "CloseTag" && (g = T(o.doc, b, c)) && !H.has(g)) {
|
955 |
+
let P = c + (o.doc.sliceString(c, c + 1) === ">" ? 1 : 0), B = `${g}>`;
|
956 |
+
return {
|
957 |
+
range: $e.cursor(c + B.length, -1),
|
958 |
+
changes: { from: c, to: P, insert: B }
|
959 |
+
};
|
960 |
+
}
|
961 |
+
}
|
962 |
+
return { range: O };
|
963 |
+
});
|
964 |
+
return u.changes.empty ? !1 : (e.dispatch([
|
965 |
+
s,
|
966 |
+
o.update(u, {
|
967 |
+
userEvent: "input.complete",
|
968 |
+
scrollIntoView: !0
|
969 |
+
})
|
970 |
+
]), !0);
|
971 |
+
});
|
972 |
+
export {
|
973 |
+
wt as autoCloseTags,
|
974 |
+
_t as html,
|
975 |
+
$t as htmlCompletionSource,
|
976 |
+
xt as htmlCompletionSourceWith,
|
977 |
+
y as htmlLanguage,
|
978 |
+
he as htmlPlain
|
979 |
+
};
|
src/backend/gradio_logsview/templates/component/index-c6b5a0c3.js
ADDED
@@ -0,0 +1,600 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { E as q, C as D, L as A } from "./index-2ee8fec2.js";
|
2 |
+
import { s as N, t as n, a as L, i as H, L as B, b as K, d as X, f as M, c as OO, e as aO, I as eO, g as iO, N as nO, h as o } from "./Index-d65e8fec.js";
|
3 |
+
const rO = 1, G = 194, w = 195, QO = 196, v = 197, tO = 198, oO = 199, dO = 200, sO = 2, E = 3, k = 201, TO = 24, lO = 25, SO = 49, pO = 50, hO = 55, PO = 56, mO = 57, $O = 59, gO = 60, qO = 61, cO = 62, XO = 63, fO = 65, _O = 238, RO = 71, yO = 241, WO = 242, zO = 243, vO = 244, kO = 245, bO = 246, uO = 247, xO = 248, Z = 72, UO = 249, VO = 250, GO = 251, wO = 252, EO = 253, ZO = 254, jO = 255, YO = 256, FO = 73, JO = 77, CO = 264, IO = 112, DO = 130, AO = 151, NO = 152, LO = 155, p = 10, h = 13, W = 32, c = 9, z = 35, HO = 40, BO = 46, y = 123, b = 125, j = 39, Y = 34, KO = 92, MO = 111, Oa = 120, aa = 78, ea = 117, ia = 85, na = /* @__PURE__ */ new Set([
|
4 |
+
lO,
|
5 |
+
SO,
|
6 |
+
pO,
|
7 |
+
CO,
|
8 |
+
fO,
|
9 |
+
DO,
|
10 |
+
PO,
|
11 |
+
mO,
|
12 |
+
_O,
|
13 |
+
cO,
|
14 |
+
XO,
|
15 |
+
Z,
|
16 |
+
FO,
|
17 |
+
JO,
|
18 |
+
gO,
|
19 |
+
qO,
|
20 |
+
AO,
|
21 |
+
NO,
|
22 |
+
LO,
|
23 |
+
IO
|
24 |
+
]);
|
25 |
+
function f(O) {
|
26 |
+
return O == p || O == h;
|
27 |
+
}
|
28 |
+
function _(O) {
|
29 |
+
return O >= 48 && O <= 57 || O >= 65 && O <= 70 || O >= 97 && O <= 102;
|
30 |
+
}
|
31 |
+
const ra = new q((O, e) => {
|
32 |
+
let a;
|
33 |
+
if (O.next < 0)
|
34 |
+
O.acceptToken(oO);
|
35 |
+
else if (e.context.flags & $)
|
36 |
+
f(O.next) && O.acceptToken(tO, 1);
|
37 |
+
else if (((a = O.peek(-1)) < 0 || f(a)) && e.canShift(v)) {
|
38 |
+
let i = 0;
|
39 |
+
for (; O.next == W || O.next == c; )
|
40 |
+
O.advance(), i++;
|
41 |
+
(O.next == p || O.next == h || O.next == z) && O.acceptToken(v, -i);
|
42 |
+
} else
|
43 |
+
f(O.next) && O.acceptToken(QO, 1);
|
44 |
+
}, { contextual: !0 }), Qa = new q((O, e) => {
|
45 |
+
let a = e.context;
|
46 |
+
if (a.flags)
|
47 |
+
return;
|
48 |
+
let i = O.peek(-1);
|
49 |
+
if (i == p || i == h) {
|
50 |
+
let r = 0, S = 0;
|
51 |
+
for (; ; ) {
|
52 |
+
if (O.next == W)
|
53 |
+
r++;
|
54 |
+
else if (O.next == c)
|
55 |
+
r += 8 - r % 8;
|
56 |
+
else
|
57 |
+
break;
|
58 |
+
O.advance(), S++;
|
59 |
+
}
|
60 |
+
r != a.indent && O.next != p && O.next != h && O.next != z && (r < a.indent ? O.acceptToken(w, -S) : O.acceptToken(G));
|
61 |
+
}
|
62 |
+
}), $ = 1, F = 2, d = 4, s = 8, T = 16, l = 32;
|
63 |
+
function g(O, e, a) {
|
64 |
+
this.parent = O, this.indent = e, this.flags = a, this.hash = (O ? O.hash + O.hash << 8 : 0) + e + (e << 4) + a + (a << 6);
|
65 |
+
}
|
66 |
+
const ta = new g(null, 0, 0);
|
67 |
+
function oa(O) {
|
68 |
+
let e = 0;
|
69 |
+
for (let a = 0; a < O.length; a++)
|
70 |
+
e += O.charCodeAt(a) == c ? 8 - e % 8 : 1;
|
71 |
+
return e;
|
72 |
+
}
|
73 |
+
const u = new Map([
|
74 |
+
[yO, 0],
|
75 |
+
[WO, d],
|
76 |
+
[zO, s],
|
77 |
+
[vO, s | d],
|
78 |
+
[kO, T],
|
79 |
+
[bO, T | d],
|
80 |
+
[uO, T | s],
|
81 |
+
[xO, T | s | d],
|
82 |
+
[UO, l],
|
83 |
+
[VO, l | d],
|
84 |
+
[GO, l | s],
|
85 |
+
[wO, l | s | d],
|
86 |
+
[EO, l | T],
|
87 |
+
[ZO, l | T | d],
|
88 |
+
[jO, l | T | s],
|
89 |
+
[YO, l | T | s | d]
|
90 |
+
].map(([O, e]) => [O, e | F])), da = new D({
|
91 |
+
start: ta,
|
92 |
+
reduce(O, e, a, i) {
|
93 |
+
return O.flags & $ && na.has(e) || (e == RO || e == Z) && O.flags & F ? O.parent : O;
|
94 |
+
},
|
95 |
+
shift(O, e, a, i) {
|
96 |
+
return e == G ? new g(O, oa(i.read(i.pos, a.pos)), 0) : e == w ? O.parent : e == TO || e == hO || e == $O || e == E ? new g(O, 0, $) : u.has(e) ? new g(O, 0, u.get(e) | O.flags & $) : O;
|
97 |
+
},
|
98 |
+
hash(O) {
|
99 |
+
return O.hash;
|
100 |
+
}
|
101 |
+
}), sa = new q((O) => {
|
102 |
+
for (let e = 0; e < 5; e++) {
|
103 |
+
if (O.next != "print".charCodeAt(e))
|
104 |
+
return;
|
105 |
+
O.advance();
|
106 |
+
}
|
107 |
+
if (!/\w/.test(String.fromCharCode(O.next)))
|
108 |
+
for (let e = 0; ; e++) {
|
109 |
+
let a = O.peek(e);
|
110 |
+
if (!(a == W || a == c)) {
|
111 |
+
a != HO && a != BO && a != p && a != h && a != z && O.acceptToken(rO);
|
112 |
+
return;
|
113 |
+
}
|
114 |
+
}
|
115 |
+
}), Ta = new q((O, e) => {
|
116 |
+
let { flags: a } = e.context, i = a & d ? Y : j, r = (a & s) > 0, S = !(a & T), Q = (a & l) > 0, t = O.pos;
|
117 |
+
for (; !(O.next < 0); )
|
118 |
+
if (Q && O.next == y)
|
119 |
+
if (O.peek(1) == y)
|
120 |
+
O.advance(2);
|
121 |
+
else {
|
122 |
+
if (O.pos == t) {
|
123 |
+
O.acceptToken(E, 1);
|
124 |
+
return;
|
125 |
+
}
|
126 |
+
break;
|
127 |
+
}
|
128 |
+
else if (S && O.next == KO) {
|
129 |
+
if (O.pos == t) {
|
130 |
+
O.advance();
|
131 |
+
let P = O.next;
|
132 |
+
P >= 0 && (O.advance(), la(O, P)), O.acceptToken(sO);
|
133 |
+
return;
|
134 |
+
}
|
135 |
+
break;
|
136 |
+
} else if (O.next == i && (!r || O.peek(1) == i && O.peek(2) == i)) {
|
137 |
+
if (O.pos == t) {
|
138 |
+
O.acceptToken(k, r ? 3 : 1);
|
139 |
+
return;
|
140 |
+
}
|
141 |
+
break;
|
142 |
+
} else if (O.next == p) {
|
143 |
+
if (r)
|
144 |
+
O.advance();
|
145 |
+
else if (O.pos == t) {
|
146 |
+
O.acceptToken(k);
|
147 |
+
return;
|
148 |
+
}
|
149 |
+
break;
|
150 |
+
} else
|
151 |
+
O.advance();
|
152 |
+
O.pos > t && O.acceptToken(dO);
|
153 |
+
});
|
154 |
+
function la(O, e) {
|
155 |
+
if (e == MO)
|
156 |
+
for (let a = 0; a < 2 && O.next >= 48 && O.next <= 55; a++)
|
157 |
+
O.advance();
|
158 |
+
else if (e == Oa)
|
159 |
+
for (let a = 0; a < 2 && _(O.next); a++)
|
160 |
+
O.advance();
|
161 |
+
else if (e == ea)
|
162 |
+
for (let a = 0; a < 4 && _(O.next); a++)
|
163 |
+
O.advance();
|
164 |
+
else if (e == ia)
|
165 |
+
for (let a = 0; a < 8 && _(O.next); a++)
|
166 |
+
O.advance();
|
167 |
+
else if (e == aa && O.next == y) {
|
168 |
+
for (O.advance(); O.next >= 0 && O.next != b && O.next != j && O.next != Y && O.next != p; )
|
169 |
+
O.advance();
|
170 |
+
O.next == b && O.advance();
|
171 |
+
}
|
172 |
+
}
|
173 |
+
const Sa = N({
|
174 |
+
'async "*" "**" FormatConversion FormatSpec': n.modifier,
|
175 |
+
"for while if elif else try except finally return raise break continue with pass assert await yield match case": n.controlKeyword,
|
176 |
+
"in not and or is del": n.operatorKeyword,
|
177 |
+
"from def class global nonlocal lambda": n.definitionKeyword,
|
178 |
+
import: n.moduleKeyword,
|
179 |
+
"with as print": n.keyword,
|
180 |
+
Boolean: n.bool,
|
181 |
+
None: n.null,
|
182 |
+
VariableName: n.variableName,
|
183 |
+
"CallExpression/VariableName": n.function(n.variableName),
|
184 |
+
"FunctionDefinition/VariableName": n.function(n.definition(n.variableName)),
|
185 |
+
"ClassDefinition/VariableName": n.definition(n.className),
|
186 |
+
PropertyName: n.propertyName,
|
187 |
+
"CallExpression/MemberExpression/PropertyName": n.function(n.propertyName),
|
188 |
+
Comment: n.lineComment,
|
189 |
+
Number: n.number,
|
190 |
+
String: n.string,
|
191 |
+
FormatString: n.special(n.string),
|
192 |
+
Escape: n.escape,
|
193 |
+
UpdateOp: n.updateOperator,
|
194 |
+
"ArithOp!": n.arithmeticOperator,
|
195 |
+
BitOp: n.bitwiseOperator,
|
196 |
+
CompareOp: n.compareOperator,
|
197 |
+
AssignOp: n.definitionOperator,
|
198 |
+
Ellipsis: n.punctuation,
|
199 |
+
At: n.meta,
|
200 |
+
"( )": n.paren,
|
201 |
+
"[ ]": n.squareBracket,
|
202 |
+
"{ }": n.brace,
|
203 |
+
".": n.derefOperator,
|
204 |
+
", ;": n.separator
|
205 |
+
}), pa = { __proto__: null, await: 44, or: 54, and: 56, in: 60, not: 62, is: 64, if: 70, else: 72, lambda: 76, yield: 94, from: 96, async: 102, for: 104, None: 162, True: 164, False: 164, del: 178, pass: 182, break: 186, continue: 190, return: 194, raise: 202, import: 206, as: 208, global: 212, nonlocal: 214, assert: 218, type: 223, elif: 236, while: 240, try: 246, except: 248, finally: 250, with: 254, def: 258, class: 268, match: 279, case: 285 }, ha = A.deserialize({
|
206 |
+
version: 14,
|
207 |
+
states: "##pO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'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drxy}!P!Q!U!i!k#[#y#{#}$Q$f${%Q%[%^%e%j%l%u&X&h&i&p&s&z'R'U'g'h'k'm'n'y(R(X(_(b(u)U)])_)h)r)v*Q*[*_*`*c*i*l*n*q*r*u*|*}+Q+X+[+c,P,Q,T,_,`,a,c,d,g,k,m,o,q,r,v-_-a-h-k.e.f/[0j0k0lQ#qpW%U!o!s0e0oQ%V!pQ%W!qQ%Y!tQ%d0dS'q%X0iQ's0fQ't0gQ,h*jQ-p,iS.h-n/tR0q0sU#uq.j0rR(r&Z[cOn#g$h)l+wZ!xY#[#}$Q+QQ#W[Q#zrR$TxQ%`!yQ%g!}Q%m#RQ'e$yQ(Q%cQ(U%hQ(^%nQ(a%oQ*t(ZQ,^*YQ-o,hQ.l-pR/^.kQ$StQ'|%aR*k'}Q.k-nR0O/tR#QZR#V[R%O!iQ$|!iV*Z'h*[,_!]!lQ!n#c#p$R$b$n$s$t$u$v$w$x%c%h%n%o&^&y'b(l(w)b*g*p+o,n/r0hR%R!kT#]^#_Q%v#[R,s+QQ(h%vS+V(i(jQ,u+WQ-s,sS.m-t-uR/_.nT+R(f+TQ$^}Q&e$QQ)g&zR+s)hQ#khQ$VzQ$Y{R&m$XQ(|&lR+a)PQ(|&lQ+`)OR+a)PR$[|R)Z&rXlOn)l+wQ$d!RR&{$eQ$k!UR&|$fR*P'YQ)}'YV-b,W-c.SQ.c-gQ/Q.]R/R.^U.[-g.].^Q/V.`Q/c.uQ/h.{U/j.}/k/zQ/o/SQ/}/pQ0P/uU0R/v0T0]Q0^0VQ0b0[R0c0_R/U._R/e.u",
|
210 |
+
nodeNames: "⚠ print Escape { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatSelfDoc FormatConversion FormatSpec FormatReplacement FormatSelfDoc ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",
|
211 |
+
maxTerm: 277,
|
212 |
+
context: da,
|
213 |
+
nodeProps: [
|
214 |
+
["isolate", -5, 4, 71, 72, 73, 77, ""],
|
215 |
+
["group", -15, 6, 85, 87, 88, 90, 92, 94, 96, 98, 99, 100, 102, 105, 108, 110, "Statement Statement", -22, 8, 18, 21, 25, 40, 49, 50, 56, 57, 60, 61, 62, 63, 64, 67, 70, 71, 72, 79, 80, 81, 82, "Expression", -10, 114, 116, 119, 121, 122, 126, 128, 133, 135, 138, "Statement", -9, 143, 144, 147, 148, 150, 151, 152, 153, 154, "Pattern"],
|
216 |
+
["openedBy", 23, "(", 54, "[", 58, "{"],
|
217 |
+
["closedBy", 24, ")", 55, "]", 59, "}"]
|
218 |
+
],
|
219 |
+
propSources: [Sa],
|
220 |
+
skippedNodes: [0, 4],
|
221 |
+
repeatNodeCount: 34,
|
222 |
+
tokenData: "!2|~R!`OX%TXY%oY[%T[]%o]p%Tpq%oqr'ars)Yst*xtu%Tuv,dvw-hwx.Uxy/tyz0[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TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!dJU!d!eLx!e!hJU!h!i!(`!i!}JU!}#R%T#R#SJU#S#T%T#T#UJU#U#VLx#V#YJU#Y#Z!(`#Z#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUo!.}a&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",
|
223 |
+
tokenizers: [sa, Qa, ra, Ta, 0, 1, 2, 3, 4],
|
224 |
+
topRules: { Script: [0, 5] },
|
225 |
+
specialized: [{ term: 221, get: (O) => pa[O] || -1 }],
|
226 |
+
tokenPrec: 7646
|
227 |
+
}), x = /* @__PURE__ */ new nO(), J = /* @__PURE__ */ new Set([
|
228 |
+
"Script",
|
229 |
+
"Body",
|
230 |
+
"FunctionDefinition",
|
231 |
+
"ClassDefinition",
|
232 |
+
"LambdaExpression",
|
233 |
+
"ForStatement",
|
234 |
+
"MatchClause"
|
235 |
+
]);
|
236 |
+
function m(O) {
|
237 |
+
return (e, a, i) => {
|
238 |
+
if (i)
|
239 |
+
return !1;
|
240 |
+
let r = e.node.getChild("VariableName");
|
241 |
+
return r && a(r, O), !0;
|
242 |
+
};
|
243 |
+
}
|
244 |
+
const Pa = {
|
245 |
+
FunctionDefinition: /* @__PURE__ */ m("function"),
|
246 |
+
ClassDefinition: /* @__PURE__ */ m("class"),
|
247 |
+
ForStatement(O, e, a) {
|
248 |
+
if (a) {
|
249 |
+
for (let i = O.node.firstChild; i; i = i.nextSibling)
|
250 |
+
if (i.name == "VariableName")
|
251 |
+
e(i, "variable");
|
252 |
+
else if (i.name == "in")
|
253 |
+
break;
|
254 |
+
}
|
255 |
+
},
|
256 |
+
ImportStatement(O, e) {
|
257 |
+
var a, i;
|
258 |
+
let { node: r } = O, S = ((a = r.firstChild) === null || a === void 0 ? void 0 : a.name) == "from";
|
259 |
+
for (let Q = r.getChild("import"); Q; Q = Q.nextSibling)
|
260 |
+
Q.name == "VariableName" && ((i = Q.nextSibling) === null || i === void 0 ? void 0 : i.name) != "as" && e(Q, S ? "variable" : "namespace");
|
261 |
+
},
|
262 |
+
AssignStatement(O, e) {
|
263 |
+
for (let a = O.node.firstChild; a; a = a.nextSibling)
|
264 |
+
if (a.name == "VariableName")
|
265 |
+
e(a, "variable");
|
266 |
+
else if (a.name == ":" || a.name == "AssignOp")
|
267 |
+
break;
|
268 |
+
},
|
269 |
+
ParamList(O, e) {
|
270 |
+
for (let a = null, i = O.node.firstChild; i; i = i.nextSibling)
|
271 |
+
i.name == "VariableName" && (!a || !/\*|AssignOp/.test(a.name)) && e(i, "variable"), a = i;
|
272 |
+
},
|
273 |
+
CapturePattern: /* @__PURE__ */ m("variable"),
|
274 |
+
AsPattern: /* @__PURE__ */ m("variable"),
|
275 |
+
__proto__: null
|
276 |
+
};
|
277 |
+
function C(O, e) {
|
278 |
+
let a = x.get(e);
|
279 |
+
if (a)
|
280 |
+
return a;
|
281 |
+
let i = [], r = !0;
|
282 |
+
function S(Q, t) {
|
283 |
+
let P = O.sliceString(Q.from, Q.to);
|
284 |
+
i.push({ label: P, type: t });
|
285 |
+
}
|
286 |
+
return e.cursor(eO.IncludeAnonymous).iterate((Q) => {
|
287 |
+
if (Q.name) {
|
288 |
+
let t = Pa[Q.name];
|
289 |
+
if (t && t(Q, S, r) || !r && J.has(Q.name))
|
290 |
+
return !1;
|
291 |
+
r = !1;
|
292 |
+
} else if (Q.to - Q.from > 8192) {
|
293 |
+
for (let t of C(O, Q.node))
|
294 |
+
i.push(t);
|
295 |
+
return !1;
|
296 |
+
}
|
297 |
+
}), x.set(e, i), i;
|
298 |
+
}
|
299 |
+
const U = /^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/, I = ["String", "FormatString", "Comment", "PropertyName"];
|
300 |
+
function ma(O) {
|
301 |
+
let e = L(O.state).resolveInner(O.pos, -1);
|
302 |
+
if (I.indexOf(e.name) > -1)
|
303 |
+
return null;
|
304 |
+
let a = e.name == "VariableName" || e.to - e.from < 20 && U.test(O.state.sliceDoc(e.from, e.to));
|
305 |
+
if (!a && !O.explicit)
|
306 |
+
return null;
|
307 |
+
let i = [];
|
308 |
+
for (let r = e; r; r = r.parent)
|
309 |
+
J.has(r.name) && (i = i.concat(C(O.state.doc, r)));
|
310 |
+
return {
|
311 |
+
options: i,
|
312 |
+
from: a ? e.from : O.pos,
|
313 |
+
validFor: U
|
314 |
+
};
|
315 |
+
}
|
316 |
+
const $a = /* @__PURE__ */ [
|
317 |
+
"__annotations__",
|
318 |
+
"__builtins__",
|
319 |
+
"__debug__",
|
320 |
+
"__doc__",
|
321 |
+
"__import__",
|
322 |
+
"__name__",
|
323 |
+
"__loader__",
|
324 |
+
"__package__",
|
325 |
+
"__spec__",
|
326 |
+
"False",
|
327 |
+
"None",
|
328 |
+
"True"
|
329 |
+
].map((O) => ({ label: O, type: "constant" })).concat(/* @__PURE__ */ [
|
330 |
+
"ArithmeticError",
|
331 |
+
"AssertionError",
|
332 |
+
"AttributeError",
|
333 |
+
"BaseException",
|
334 |
+
"BlockingIOError",
|
335 |
+
"BrokenPipeError",
|
336 |
+
"BufferError",
|
337 |
+
"BytesWarning",
|
338 |
+
"ChildProcessError",
|
339 |
+
"ConnectionAbortedError",
|
340 |
+
"ConnectionError",
|
341 |
+
"ConnectionRefusedError",
|
342 |
+
"ConnectionResetError",
|
343 |
+
"DeprecationWarning",
|
344 |
+
"EOFError",
|
345 |
+
"Ellipsis",
|
346 |
+
"EncodingWarning",
|
347 |
+
"EnvironmentError",
|
348 |
+
"Exception",
|
349 |
+
"FileExistsError",
|
350 |
+
"FileNotFoundError",
|
351 |
+
"FloatingPointError",
|
352 |
+
"FutureWarning",
|
353 |
+
"GeneratorExit",
|
354 |
+
"IOError",
|
355 |
+
"ImportError",
|
356 |
+
"ImportWarning",
|
357 |
+
"IndentationError",
|
358 |
+
"IndexError",
|
359 |
+
"InterruptedError",
|
360 |
+
"IsADirectoryError",
|
361 |
+
"KeyError",
|
362 |
+
"KeyboardInterrupt",
|
363 |
+
"LookupError",
|
364 |
+
"MemoryError",
|
365 |
+
"ModuleNotFoundError",
|
366 |
+
"NameError",
|
367 |
+
"NotADirectoryError",
|
368 |
+
"NotImplemented",
|
369 |
+
"NotImplementedError",
|
370 |
+
"OSError",
|
371 |
+
"OverflowError",
|
372 |
+
"PendingDeprecationWarning",
|
373 |
+
"PermissionError",
|
374 |
+
"ProcessLookupError",
|
375 |
+
"RecursionError",
|
376 |
+
"ReferenceError",
|
377 |
+
"ResourceWarning",
|
378 |
+
"RuntimeError",
|
379 |
+
"RuntimeWarning",
|
380 |
+
"StopAsyncIteration",
|
381 |
+
"StopIteration",
|
382 |
+
"SyntaxError",
|
383 |
+
"SyntaxWarning",
|
384 |
+
"SystemError",
|
385 |
+
"SystemExit",
|
386 |
+
"TabError",
|
387 |
+
"TimeoutError",
|
388 |
+
"TypeError",
|
389 |
+
"UnboundLocalError",
|
390 |
+
"UnicodeDecodeError",
|
391 |
+
"UnicodeEncodeError",
|
392 |
+
"UnicodeError",
|
393 |
+
"UnicodeTranslateError",
|
394 |
+
"UnicodeWarning",
|
395 |
+
"UserWarning",
|
396 |
+
"ValueError",
|
397 |
+
"Warning",
|
398 |
+
"ZeroDivisionError"
|
399 |
+
].map((O) => ({ label: O, type: "type" }))).concat(/* @__PURE__ */ [
|
400 |
+
"bool",
|
401 |
+
"bytearray",
|
402 |
+
"bytes",
|
403 |
+
"classmethod",
|
404 |
+
"complex",
|
405 |
+
"float",
|
406 |
+
"frozenset",
|
407 |
+
"int",
|
408 |
+
"list",
|
409 |
+
"map",
|
410 |
+
"memoryview",
|
411 |
+
"object",
|
412 |
+
"range",
|
413 |
+
"set",
|
414 |
+
"staticmethod",
|
415 |
+
"str",
|
416 |
+
"super",
|
417 |
+
"tuple",
|
418 |
+
"type"
|
419 |
+
].map((O) => ({ label: O, type: "class" }))).concat(/* @__PURE__ */ [
|
420 |
+
"abs",
|
421 |
+
"aiter",
|
422 |
+
"all",
|
423 |
+
"anext",
|
424 |
+
"any",
|
425 |
+
"ascii",
|
426 |
+
"bin",
|
427 |
+
"breakpoint",
|
428 |
+
"callable",
|
429 |
+
"chr",
|
430 |
+
"compile",
|
431 |
+
"delattr",
|
432 |
+
"dict",
|
433 |
+
"dir",
|
434 |
+
"divmod",
|
435 |
+
"enumerate",
|
436 |
+
"eval",
|
437 |
+
"exec",
|
438 |
+
"exit",
|
439 |
+
"filter",
|
440 |
+
"format",
|
441 |
+
"getattr",
|
442 |
+
"globals",
|
443 |
+
"hasattr",
|
444 |
+
"hash",
|
445 |
+
"help",
|
446 |
+
"hex",
|
447 |
+
"id",
|
448 |
+
"input",
|
449 |
+
"isinstance",
|
450 |
+
"issubclass",
|
451 |
+
"iter",
|
452 |
+
"len",
|
453 |
+
"license",
|
454 |
+
"locals",
|
455 |
+
"max",
|
456 |
+
"min",
|
457 |
+
"next",
|
458 |
+
"oct",
|
459 |
+
"open",
|
460 |
+
"ord",
|
461 |
+
"pow",
|
462 |
+
"print",
|
463 |
+
"property",
|
464 |
+
"quit",
|
465 |
+
"repr",
|
466 |
+
"reversed",
|
467 |
+
"round",
|
468 |
+
"setattr",
|
469 |
+
"slice",
|
470 |
+
"sorted",
|
471 |
+
"sum",
|
472 |
+
"vars",
|
473 |
+
"zip"
|
474 |
+
].map((O) => ({ label: O, type: "function" }))), ga = [
|
475 |
+
/* @__PURE__ */ o("def ${name}(${params}):\n ${}", {
|
476 |
+
label: "def",
|
477 |
+
detail: "function",
|
478 |
+
type: "keyword"
|
479 |
+
}),
|
480 |
+
/* @__PURE__ */ o("for ${name} in ${collection}:\n ${}", {
|
481 |
+
label: "for",
|
482 |
+
detail: "loop",
|
483 |
+
type: "keyword"
|
484 |
+
}),
|
485 |
+
/* @__PURE__ */ o("while ${}:\n ${}", {
|
486 |
+
label: "while",
|
487 |
+
detail: "loop",
|
488 |
+
type: "keyword"
|
489 |
+
}),
|
490 |
+
/* @__PURE__ */ o("try:\n ${}\nexcept ${error}:\n ${}", {
|
491 |
+
label: "try",
|
492 |
+
detail: "/ except block",
|
493 |
+
type: "keyword"
|
494 |
+
}),
|
495 |
+
/* @__PURE__ */ o(`if \${}:
|
496 |
+
|
497 |
+
`, {
|
498 |
+
label: "if",
|
499 |
+
detail: "block",
|
500 |
+
type: "keyword"
|
501 |
+
}),
|
502 |
+
/* @__PURE__ */ o("if ${}:\n ${}\nelse:\n ${}", {
|
503 |
+
label: "if",
|
504 |
+
detail: "/ else block",
|
505 |
+
type: "keyword"
|
506 |
+
}),
|
507 |
+
/* @__PURE__ */ o("class ${name}:\n def __init__(self, ${params}):\n ${}", {
|
508 |
+
label: "class",
|
509 |
+
detail: "definition",
|
510 |
+
type: "keyword"
|
511 |
+
}),
|
512 |
+
/* @__PURE__ */ o("import ${module}", {
|
513 |
+
label: "import",
|
514 |
+
detail: "statement",
|
515 |
+
type: "keyword"
|
516 |
+
}),
|
517 |
+
/* @__PURE__ */ o("from ${module} import ${names}", {
|
518 |
+
label: "from",
|
519 |
+
detail: "import",
|
520 |
+
type: "keyword"
|
521 |
+
})
|
522 |
+
], qa = /* @__PURE__ */ H(I, /* @__PURE__ */ iO(/* @__PURE__ */ $a.concat(ga)));
|
523 |
+
function V(O, e) {
|
524 |
+
let a = O.baseIndentFor(e), i = O.lineAt(O.pos, -1), r = i.from + i.text.length;
|
525 |
+
return /^\s*($|#)/.test(i.text) && O.node.to < r + 100 && !/\S/.test(O.state.sliceDoc(r, O.node.to)) && O.lineIndent(O.pos, -1) <= a || /^\s*(else:|elif |except |finally:)/.test(O.textAfter) && O.lineIndent(O.pos, -1) > a ? null : a + O.unit;
|
526 |
+
}
|
527 |
+
const R = /* @__PURE__ */ B.define({
|
528 |
+
name: "python",
|
529 |
+
parser: /* @__PURE__ */ ha.configure({
|
530 |
+
props: [
|
531 |
+
/* @__PURE__ */ K.add({
|
532 |
+
Body: (O) => {
|
533 |
+
var e;
|
534 |
+
return (e = V(O, O.node)) !== null && e !== void 0 ? e : O.continue();
|
535 |
+
},
|
536 |
+
IfStatement: (O) => /^\s*(else:|elif )/.test(O.textAfter) ? O.baseIndent : O.continue(),
|
537 |
+
"ForStatement WhileStatement": (O) => /^\s*else:/.test(O.textAfter) ? O.baseIndent : O.continue(),
|
538 |
+
TryStatement: (O) => /^\s*(except |finally:|else:)/.test(O.textAfter) ? O.baseIndent : O.continue(),
|
539 |
+
"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression": /* @__PURE__ */ X({ closing: ")" }),
|
540 |
+
"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression": /* @__PURE__ */ X({ closing: "}" }),
|
541 |
+
"ArrayExpression ArrayComprehensionExpression": /* @__PURE__ */ X({ closing: "]" }),
|
542 |
+
"String FormatString": () => null,
|
543 |
+
Script: (O) => {
|
544 |
+
if (O.pos + /\s*/.exec(O.textAfter)[0].length >= O.node.to) {
|
545 |
+
let e = null;
|
546 |
+
for (let a = O.node, i = a.to; a = a.lastChild, !(!a || a.to != i); )
|
547 |
+
a.type.name == "Body" && (e = a);
|
548 |
+
if (e) {
|
549 |
+
let a = V(O, e);
|
550 |
+
if (a != null)
|
551 |
+
return a;
|
552 |
+
}
|
553 |
+
}
|
554 |
+
return O.continue();
|
555 |
+
}
|
556 |
+
}),
|
557 |
+
/* @__PURE__ */ M.add({
|
558 |
+
"ArrayExpression DictionaryExpression SetExpression TupleExpression": OO,
|
559 |
+
Body: (O, e) => ({ from: O.from + 1, to: O.to - (O.to == e.doc.length ? 0 : 1) })
|
560 |
+
})
|
561 |
+
]
|
562 |
+
}),
|
563 |
+
languageData: {
|
564 |
+
closeBrackets: {
|
565 |
+
brackets: ["(", "[", "{", "'", '"', "'''", '"""'],
|
566 |
+
stringPrefixes: [
|
567 |
+
"f",
|
568 |
+
"fr",
|
569 |
+
"rf",
|
570 |
+
"r",
|
571 |
+
"u",
|
572 |
+
"b",
|
573 |
+
"br",
|
574 |
+
"rb",
|
575 |
+
"F",
|
576 |
+
"FR",
|
577 |
+
"RF",
|
578 |
+
"R",
|
579 |
+
"U",
|
580 |
+
"B",
|
581 |
+
"BR",
|
582 |
+
"RB"
|
583 |
+
]
|
584 |
+
},
|
585 |
+
commentTokens: { line: "#" },
|
586 |
+
indentOnInput: /^\s*([\}\]\)]|else:|elif |except |finally:)$/
|
587 |
+
}
|
588 |
+
});
|
589 |
+
function fa() {
|
590 |
+
return new aO(R, [
|
591 |
+
R.data.of({ autocomplete: ma }),
|
592 |
+
R.data.of({ autocomplete: qa })
|
593 |
+
]);
|
594 |
+
}
|
595 |
+
export {
|
596 |
+
qa as globalCompletion,
|
597 |
+
ma as localCompletionSource,
|
598 |
+
fa as python,
|
599 |
+
R as pythonLanguage
|
600 |
+
};
|
src/backend/gradio_logsview/templates/component/index-cb2e00e0.js
ADDED
@@ -0,0 +1,923 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { E as m, L as v, a as z } from "./index-2ee8fec2.js";
|
2 |
+
import { s as k, t as o, a as x, L as T, b as W, B as R, f as U, c as Y, e as q, I as _, N as E } from "./Index-d65e8fec.js";
|
3 |
+
const Z = 99, S = 1, C = 100, G = 101, g = 2, y = [
|
4 |
+
9,
|
5 |
+
10,
|
6 |
+
11,
|
7 |
+
12,
|
8 |
+
13,
|
9 |
+
32,
|
10 |
+
133,
|
11 |
+
160,
|
12 |
+
5760,
|
13 |
+
8192,
|
14 |
+
8193,
|
15 |
+
8194,
|
16 |
+
8195,
|
17 |
+
8196,
|
18 |
+
8197,
|
19 |
+
8198,
|
20 |
+
8199,
|
21 |
+
8200,
|
22 |
+
8201,
|
23 |
+
8202,
|
24 |
+
8232,
|
25 |
+
8233,
|
26 |
+
8239,
|
27 |
+
8287,
|
28 |
+
12288
|
29 |
+
], N = 58, V = 40, P = 95, j = 91, Q = 45, D = 46, I = 35, B = 37, F = 38, K = 92, L = 10;
|
30 |
+
function d(e) {
|
31 |
+
return e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 161;
|
32 |
+
}
|
33 |
+
function X(e) {
|
34 |
+
return e >= 48 && e <= 57;
|
35 |
+
}
|
36 |
+
const A = new m((e, t) => {
|
37 |
+
for (let l = !1, a = 0, O = 0; ; O++) {
|
38 |
+
let { next: r } = e;
|
39 |
+
if (d(r) || r == Q || r == P || l && X(r))
|
40 |
+
!l && (r != Q || O > 0) && (l = !0), a === O && r == Q && a++, e.advance();
|
41 |
+
else if (r == K && e.peek(1) != L)
|
42 |
+
e.advance(), e.next > -1 && e.advance(), l = !0;
|
43 |
+
else {
|
44 |
+
l && e.acceptToken(r == V ? C : a == 2 && t.canShift(g) ? g : G);
|
45 |
+
break;
|
46 |
+
}
|
47 |
+
}
|
48 |
+
}), J = new m((e) => {
|
49 |
+
if (y.includes(e.peek(-1))) {
|
50 |
+
let { next: t } = e;
|
51 |
+
(d(t) || t == P || t == I || t == D || t == j || t == N && d(e.peek(1)) || t == Q || t == F) && e.acceptToken(Z);
|
52 |
+
}
|
53 |
+
}), H = new m((e) => {
|
54 |
+
if (!y.includes(e.peek(-1))) {
|
55 |
+
let { next: t } = e;
|
56 |
+
if (t == B && (e.advance(), e.acceptToken(S)), d(t)) {
|
57 |
+
do
|
58 |
+
e.advance();
|
59 |
+
while (d(e.next) || X(e.next));
|
60 |
+
e.acceptToken(S);
|
61 |
+
}
|
62 |
+
}
|
63 |
+
}), M = k({
|
64 |
+
"AtKeyword import charset namespace keyframes media supports": o.definitionKeyword,
|
65 |
+
"from to selector": o.keyword,
|
66 |
+
NamespaceName: o.namespace,
|
67 |
+
KeyframeName: o.labelName,
|
68 |
+
KeyframeRangeName: o.operatorKeyword,
|
69 |
+
TagName: o.tagName,
|
70 |
+
ClassName: o.className,
|
71 |
+
PseudoClassName: o.constant(o.className),
|
72 |
+
IdName: o.labelName,
|
73 |
+
"FeatureName PropertyName": o.propertyName,
|
74 |
+
AttributeName: o.attributeName,
|
75 |
+
NumberLiteral: o.number,
|
76 |
+
KeywordQuery: o.keyword,
|
77 |
+
UnaryQueryOp: o.operatorKeyword,
|
78 |
+
"CallTag ValueName": o.atom,
|
79 |
+
VariableName: o.variableName,
|
80 |
+
Callee: o.operatorKeyword,
|
81 |
+
Unit: o.unit,
|
82 |
+
"UniversalSelector NestingSelector": o.definitionOperator,
|
83 |
+
MatchOp: o.compareOperator,
|
84 |
+
"ChildOp SiblingOp, LogicOp": o.logicOperator,
|
85 |
+
BinOp: o.arithmeticOperator,
|
86 |
+
Important: o.modifier,
|
87 |
+
Comment: o.blockComment,
|
88 |
+
ColorLiteral: o.color,
|
89 |
+
"ParenthesizedContent StringLiteral": o.string,
|
90 |
+
":": o.punctuation,
|
91 |
+
"PseudoOp #": o.derefOperator,
|
92 |
+
"; ,": o.separator,
|
93 |
+
"( )": o.paren,
|
94 |
+
"[ ]": o.squareBracket,
|
95 |
+
"{ }": o.brace
|
96 |
+
}), ee = { __proto__: null, lang: 32, "nth-child": 32, "nth-last-child": 32, "nth-of-type": 32, "nth-last-of-type": 32, dir: 32, "host-context": 32, url: 60, "url-prefix": 60, domain: 60, regexp: 60, selector: 138 }, Oe = { __proto__: null, "@import": 118, "@media": 142, "@charset": 146, "@namespace": 150, "@keyframes": 156, "@supports": 168 }, ae = { __proto__: null, not: 132, only: 132 }, te = v.deserialize({
|
97 |
+
version: 14,
|
98 |
+
states: ":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOO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mR$|$fQ$z$eR%W$z_cOPdhw!n#s^UOPdhw!n#sQ!uoQ!}tQ#OuQ#PvQ#|#RR$_#hR$Q#SQ!VZQ!d]Q#V!TQ#q!m[$O#S$P$Y$q$v%SQ$R#UQ$T#XS$h#q$jQ$m#zR%O$iR#}#RQiPR#QwQ!c[Q!kaR#Y!VU!_[a!VQ!j`Q#c!^Q#g!`Q$[#dR$]#e",
|
101 |
+
nodeNames: "⚠ Unit VariableName Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName , PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtRule Styles",
|
102 |
+
maxTerm: 117,
|
103 |
+
nodeProps: [
|
104 |
+
["isolate", -2, 3, 24, ""],
|
105 |
+
["openedBy", 17, "(", 32, "[", 50, "{"],
|
106 |
+
["closedBy", 18, ")", 33, "]", 51, "}"]
|
107 |
+
],
|
108 |
+
propSources: [M],
|
109 |
+
skippedNodes: [0, 3, 87],
|
110 |
+
repeatNodeCount: 11,
|
111 |
+
tokenData: "J^~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Ab![!]B]!]!^CX!^!_$}!_!`Cj!`!aC{!a!b$}!b!cDw!c!}$}!}#OFa#O#P$}#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^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",
|
112 |
+
tokenizers: [J, H, A, 1, 2, 3, 4, new z("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~", 28, 105)],
|
113 |
+
topRules: { StyleSheet: [0, 4], Styles: [1, 86] },
|
114 |
+
specialized: [{ term: 100, get: (e) => ee[e] || -1 }, { term: 58, get: (e) => Oe[e] || -1 }, { term: 101, get: (e) => ae[e] || -1 }],
|
115 |
+
tokenPrec: 1200
|
116 |
+
});
|
117 |
+
let p = null;
|
118 |
+
function u() {
|
119 |
+
if (!p && typeof document == "object" && document.body) {
|
120 |
+
let { style: e } = document.body, t = [], l = /* @__PURE__ */ new Set();
|
121 |
+
for (let a in e)
|
122 |
+
a != "cssText" && a != "cssFloat" && typeof e[a] == "string" && (/[A-Z]/.test(a) && (a = a.replace(/[A-Z]/g, (O) => "-" + O.toLowerCase())), l.has(a) || (t.push(a), l.add(a)));
|
123 |
+
p = t.sort().map((a) => ({ type: "property", label: a }));
|
124 |
+
}
|
125 |
+
return p || [];
|
126 |
+
}
|
127 |
+
const f = /* @__PURE__ */ [
|
128 |
+
"active",
|
129 |
+
"after",
|
130 |
+
"any-link",
|
131 |
+
"autofill",
|
132 |
+
"backdrop",
|
133 |
+
"before",
|
134 |
+
"checked",
|
135 |
+
"cue",
|
136 |
+
"default",
|
137 |
+
"defined",
|
138 |
+
"disabled",
|
139 |
+
"empty",
|
140 |
+
"enabled",
|
141 |
+
"file-selector-button",
|
142 |
+
"first",
|
143 |
+
"first-child",
|
144 |
+
"first-letter",
|
145 |
+
"first-line",
|
146 |
+
"first-of-type",
|
147 |
+
"focus",
|
148 |
+
"focus-visible",
|
149 |
+
"focus-within",
|
150 |
+
"fullscreen",
|
151 |
+
"has",
|
152 |
+
"host",
|
153 |
+
"host-context",
|
154 |
+
"hover",
|
155 |
+
"in-range",
|
156 |
+
"indeterminate",
|
157 |
+
"invalid",
|
158 |
+
"is",
|
159 |
+
"lang",
|
160 |
+
"last-child",
|
161 |
+
"last-of-type",
|
162 |
+
"left",
|
163 |
+
"link",
|
164 |
+
"marker",
|
165 |
+
"modal",
|
166 |
+
"not",
|
167 |
+
"nth-child",
|
168 |
+
"nth-last-child",
|
169 |
+
"nth-last-of-type",
|
170 |
+
"nth-of-type",
|
171 |
+
"only-child",
|
172 |
+
"only-of-type",
|
173 |
+
"optional",
|
174 |
+
"out-of-range",
|
175 |
+
"part",
|
176 |
+
"placeholder",
|
177 |
+
"placeholder-shown",
|
178 |
+
"read-only",
|
179 |
+
"read-write",
|
180 |
+
"required",
|
181 |
+
"right",
|
182 |
+
"root",
|
183 |
+
"scope",
|
184 |
+
"selection",
|
185 |
+
"slotted",
|
186 |
+
"target",
|
187 |
+
"target-text",
|
188 |
+
"valid",
|
189 |
+
"visited",
|
190 |
+
"where"
|
191 |
+
].map((e) => ({ type: "class", label: e })), h = /* @__PURE__ */ [
|
192 |
+
"above",
|
193 |
+
"absolute",
|
194 |
+
"activeborder",
|
195 |
+
"additive",
|
196 |
+
"activecaption",
|
197 |
+
"after-white-space",
|
198 |
+
"ahead",
|
199 |
+
"alias",
|
200 |
+
"all",
|
201 |
+
"all-scroll",
|
202 |
+
"alphabetic",
|
203 |
+
"alternate",
|
204 |
+
"always",
|
205 |
+
"antialiased",
|
206 |
+
"appworkspace",
|
207 |
+
"asterisks",
|
208 |
+
"attr",
|
209 |
+
"auto",
|
210 |
+
"auto-flow",
|
211 |
+
"avoid",
|
212 |
+
"avoid-column",
|
213 |
+
"avoid-page",
|
214 |
+
"avoid-region",
|
215 |
+
"axis-pan",
|
216 |
+
"background",
|
217 |
+
"backwards",
|
218 |
+
"baseline",
|
219 |
+
"below",
|
220 |
+
"bidi-override",
|
221 |
+
"blink",
|
222 |
+
"block",
|
223 |
+
"block-axis",
|
224 |
+
"bold",
|
225 |
+
"bolder",
|
226 |
+
"border",
|
227 |
+
"border-box",
|
228 |
+
"both",
|
229 |
+
"bottom",
|
230 |
+
"break",
|
231 |
+
"break-all",
|
232 |
+
"break-word",
|
233 |
+
"bullets",
|
234 |
+
"button",
|
235 |
+
"button-bevel",
|
236 |
+
"buttonface",
|
237 |
+
"buttonhighlight",
|
238 |
+
"buttonshadow",
|
239 |
+
"buttontext",
|
240 |
+
"calc",
|
241 |
+
"capitalize",
|
242 |
+
"caps-lock-indicator",
|
243 |
+
"caption",
|
244 |
+
"captiontext",
|
245 |
+
"caret",
|
246 |
+
"cell",
|
247 |
+
"center",
|
248 |
+
"checkbox",
|
249 |
+
"circle",
|
250 |
+
"cjk-decimal",
|
251 |
+
"clear",
|
252 |
+
"clip",
|
253 |
+
"close-quote",
|
254 |
+
"col-resize",
|
255 |
+
"collapse",
|
256 |
+
"color",
|
257 |
+
"color-burn",
|
258 |
+
"color-dodge",
|
259 |
+
"column",
|
260 |
+
"column-reverse",
|
261 |
+
"compact",
|
262 |
+
"condensed",
|
263 |
+
"contain",
|
264 |
+
"content",
|
265 |
+
"contents",
|
266 |
+
"content-box",
|
267 |
+
"context-menu",
|
268 |
+
"continuous",
|
269 |
+
"copy",
|
270 |
+
"counter",
|
271 |
+
"counters",
|
272 |
+
"cover",
|
273 |
+
"crop",
|
274 |
+
"cross",
|
275 |
+
"crosshair",
|
276 |
+
"currentcolor",
|
277 |
+
"cursive",
|
278 |
+
"cyclic",
|
279 |
+
"darken",
|
280 |
+
"dashed",
|
281 |
+
"decimal",
|
282 |
+
"decimal-leading-zero",
|
283 |
+
"default",
|
284 |
+
"default-button",
|
285 |
+
"dense",
|
286 |
+
"destination-atop",
|
287 |
+
"destination-in",
|
288 |
+
"destination-out",
|
289 |
+
"destination-over",
|
290 |
+
"difference",
|
291 |
+
"disc",
|
292 |
+
"discard",
|
293 |
+
"disclosure-closed",
|
294 |
+
"disclosure-open",
|
295 |
+
"document",
|
296 |
+
"dot-dash",
|
297 |
+
"dot-dot-dash",
|
298 |
+
"dotted",
|
299 |
+
"double",
|
300 |
+
"down",
|
301 |
+
"e-resize",
|
302 |
+
"ease",
|
303 |
+
"ease-in",
|
304 |
+
"ease-in-out",
|
305 |
+
"ease-out",
|
306 |
+
"element",
|
307 |
+
"ellipse",
|
308 |
+
"ellipsis",
|
309 |
+
"embed",
|
310 |
+
"end",
|
311 |
+
"ethiopic-abegede-gez",
|
312 |
+
"ethiopic-halehame-aa-er",
|
313 |
+
"ethiopic-halehame-gez",
|
314 |
+
"ew-resize",
|
315 |
+
"exclusion",
|
316 |
+
"expanded",
|
317 |
+
"extends",
|
318 |
+
"extra-condensed",
|
319 |
+
"extra-expanded",
|
320 |
+
"fantasy",
|
321 |
+
"fast",
|
322 |
+
"fill",
|
323 |
+
"fill-box",
|
324 |
+
"fixed",
|
325 |
+
"flat",
|
326 |
+
"flex",
|
327 |
+
"flex-end",
|
328 |
+
"flex-start",
|
329 |
+
"footnotes",
|
330 |
+
"forwards",
|
331 |
+
"from",
|
332 |
+
"geometricPrecision",
|
333 |
+
"graytext",
|
334 |
+
"grid",
|
335 |
+
"groove",
|
336 |
+
"hand",
|
337 |
+
"hard-light",
|
338 |
+
"help",
|
339 |
+
"hidden",
|
340 |
+
"hide",
|
341 |
+
"higher",
|
342 |
+
"highlight",
|
343 |
+
"highlighttext",
|
344 |
+
"horizontal",
|
345 |
+
"hsl",
|
346 |
+
"hsla",
|
347 |
+
"hue",
|
348 |
+
"icon",
|
349 |
+
"ignore",
|
350 |
+
"inactiveborder",
|
351 |
+
"inactivecaption",
|
352 |
+
"inactivecaptiontext",
|
353 |
+
"infinite",
|
354 |
+
"infobackground",
|
355 |
+
"infotext",
|
356 |
+
"inherit",
|
357 |
+
"initial",
|
358 |
+
"inline",
|
359 |
+
"inline-axis",
|
360 |
+
"inline-block",
|
361 |
+
"inline-flex",
|
362 |
+
"inline-grid",
|
363 |
+
"inline-table",
|
364 |
+
"inset",
|
365 |
+
"inside",
|
366 |
+
"intrinsic",
|
367 |
+
"invert",
|
368 |
+
"italic",
|
369 |
+
"justify",
|
370 |
+
"keep-all",
|
371 |
+
"landscape",
|
372 |
+
"large",
|
373 |
+
"larger",
|
374 |
+
"left",
|
375 |
+
"level",
|
376 |
+
"lighter",
|
377 |
+
"lighten",
|
378 |
+
"line-through",
|
379 |
+
"linear",
|
380 |
+
"linear-gradient",
|
381 |
+
"lines",
|
382 |
+
"list-item",
|
383 |
+
"listbox",
|
384 |
+
"listitem",
|
385 |
+
"local",
|
386 |
+
"logical",
|
387 |
+
"loud",
|
388 |
+
"lower",
|
389 |
+
"lower-hexadecimal",
|
390 |
+
"lower-latin",
|
391 |
+
"lower-norwegian",
|
392 |
+
"lowercase",
|
393 |
+
"ltr",
|
394 |
+
"luminosity",
|
395 |
+
"manipulation",
|
396 |
+
"match",
|
397 |
+
"matrix",
|
398 |
+
"matrix3d",
|
399 |
+
"medium",
|
400 |
+
"menu",
|
401 |
+
"menutext",
|
402 |
+
"message-box",
|
403 |
+
"middle",
|
404 |
+
"min-intrinsic",
|
405 |
+
"mix",
|
406 |
+
"monospace",
|
407 |
+
"move",
|
408 |
+
"multiple",
|
409 |
+
"multiple_mask_images",
|
410 |
+
"multiply",
|
411 |
+
"n-resize",
|
412 |
+
"narrower",
|
413 |
+
"ne-resize",
|
414 |
+
"nesw-resize",
|
415 |
+
"no-close-quote",
|
416 |
+
"no-drop",
|
417 |
+
"no-open-quote",
|
418 |
+
"no-repeat",
|
419 |
+
"none",
|
420 |
+
"normal",
|
421 |
+
"not-allowed",
|
422 |
+
"nowrap",
|
423 |
+
"ns-resize",
|
424 |
+
"numbers",
|
425 |
+
"numeric",
|
426 |
+
"nw-resize",
|
427 |
+
"nwse-resize",
|
428 |
+
"oblique",
|
429 |
+
"opacity",
|
430 |
+
"open-quote",
|
431 |
+
"optimizeLegibility",
|
432 |
+
"optimizeSpeed",
|
433 |
+
"outset",
|
434 |
+
"outside",
|
435 |
+
"outside-shape",
|
436 |
+
"overlay",
|
437 |
+
"overline",
|
438 |
+
"padding",
|
439 |
+
"padding-box",
|
440 |
+
"painted",
|
441 |
+
"page",
|
442 |
+
"paused",
|
443 |
+
"perspective",
|
444 |
+
"pinch-zoom",
|
445 |
+
"plus-darker",
|
446 |
+
"plus-lighter",
|
447 |
+
"pointer",
|
448 |
+
"polygon",
|
449 |
+
"portrait",
|
450 |
+
"pre",
|
451 |
+
"pre-line",
|
452 |
+
"pre-wrap",
|
453 |
+
"preserve-3d",
|
454 |
+
"progress",
|
455 |
+
"push-button",
|
456 |
+
"radial-gradient",
|
457 |
+
"radio",
|
458 |
+
"read-only",
|
459 |
+
"read-write",
|
460 |
+
"read-write-plaintext-only",
|
461 |
+
"rectangle",
|
462 |
+
"region",
|
463 |
+
"relative",
|
464 |
+
"repeat",
|
465 |
+
"repeating-linear-gradient",
|
466 |
+
"repeating-radial-gradient",
|
467 |
+
"repeat-x",
|
468 |
+
"repeat-y",
|
469 |
+
"reset",
|
470 |
+
"reverse",
|
471 |
+
"rgb",
|
472 |
+
"rgba",
|
473 |
+
"ridge",
|
474 |
+
"right",
|
475 |
+
"rotate",
|
476 |
+
"rotate3d",
|
477 |
+
"rotateX",
|
478 |
+
"rotateY",
|
479 |
+
"rotateZ",
|
480 |
+
"round",
|
481 |
+
"row",
|
482 |
+
"row-resize",
|
483 |
+
"row-reverse",
|
484 |
+
"rtl",
|
485 |
+
"run-in",
|
486 |
+
"running",
|
487 |
+
"s-resize",
|
488 |
+
"sans-serif",
|
489 |
+
"saturation",
|
490 |
+
"scale",
|
491 |
+
"scale3d",
|
492 |
+
"scaleX",
|
493 |
+
"scaleY",
|
494 |
+
"scaleZ",
|
495 |
+
"screen",
|
496 |
+
"scroll",
|
497 |
+
"scrollbar",
|
498 |
+
"scroll-position",
|
499 |
+
"se-resize",
|
500 |
+
"self-start",
|
501 |
+
"self-end",
|
502 |
+
"semi-condensed",
|
503 |
+
"semi-expanded",
|
504 |
+
"separate",
|
505 |
+
"serif",
|
506 |
+
"show",
|
507 |
+
"single",
|
508 |
+
"skew",
|
509 |
+
"skewX",
|
510 |
+
"skewY",
|
511 |
+
"skip-white-space",
|
512 |
+
"slide",
|
513 |
+
"slider-horizontal",
|
514 |
+
"slider-vertical",
|
515 |
+
"sliderthumb-horizontal",
|
516 |
+
"sliderthumb-vertical",
|
517 |
+
"slow",
|
518 |
+
"small",
|
519 |
+
"small-caps",
|
520 |
+
"small-caption",
|
521 |
+
"smaller",
|
522 |
+
"soft-light",
|
523 |
+
"solid",
|
524 |
+
"source-atop",
|
525 |
+
"source-in",
|
526 |
+
"source-out",
|
527 |
+
"source-over",
|
528 |
+
"space",
|
529 |
+
"space-around",
|
530 |
+
"space-between",
|
531 |
+
"space-evenly",
|
532 |
+
"spell-out",
|
533 |
+
"square",
|
534 |
+
"start",
|
535 |
+
"static",
|
536 |
+
"status-bar",
|
537 |
+
"stretch",
|
538 |
+
"stroke",
|
539 |
+
"stroke-box",
|
540 |
+
"sub",
|
541 |
+
"subpixel-antialiased",
|
542 |
+
"svg_masks",
|
543 |
+
"super",
|
544 |
+
"sw-resize",
|
545 |
+
"symbolic",
|
546 |
+
"symbols",
|
547 |
+
"system-ui",
|
548 |
+
"table",
|
549 |
+
"table-caption",
|
550 |
+
"table-cell",
|
551 |
+
"table-column",
|
552 |
+
"table-column-group",
|
553 |
+
"table-footer-group",
|
554 |
+
"table-header-group",
|
555 |
+
"table-row",
|
556 |
+
"table-row-group",
|
557 |
+
"text",
|
558 |
+
"text-bottom",
|
559 |
+
"text-top",
|
560 |
+
"textarea",
|
561 |
+
"textfield",
|
562 |
+
"thick",
|
563 |
+
"thin",
|
564 |
+
"threeddarkshadow",
|
565 |
+
"threedface",
|
566 |
+
"threedhighlight",
|
567 |
+
"threedlightshadow",
|
568 |
+
"threedshadow",
|
569 |
+
"to",
|
570 |
+
"top",
|
571 |
+
"transform",
|
572 |
+
"translate",
|
573 |
+
"translate3d",
|
574 |
+
"translateX",
|
575 |
+
"translateY",
|
576 |
+
"translateZ",
|
577 |
+
"transparent",
|
578 |
+
"ultra-condensed",
|
579 |
+
"ultra-expanded",
|
580 |
+
"underline",
|
581 |
+
"unidirectional-pan",
|
582 |
+
"unset",
|
583 |
+
"up",
|
584 |
+
"upper-latin",
|
585 |
+
"uppercase",
|
586 |
+
"url",
|
587 |
+
"var",
|
588 |
+
"vertical",
|
589 |
+
"vertical-text",
|
590 |
+
"view-box",
|
591 |
+
"visible",
|
592 |
+
"visibleFill",
|
593 |
+
"visiblePainted",
|
594 |
+
"visibleStroke",
|
595 |
+
"visual",
|
596 |
+
"w-resize",
|
597 |
+
"wait",
|
598 |
+
"wave",
|
599 |
+
"wider",
|
600 |
+
"window",
|
601 |
+
"windowframe",
|
602 |
+
"windowtext",
|
603 |
+
"words",
|
604 |
+
"wrap",
|
605 |
+
"wrap-reverse",
|
606 |
+
"x-large",
|
607 |
+
"x-small",
|
608 |
+
"xor",
|
609 |
+
"xx-large",
|
610 |
+
"xx-small"
|
611 |
+
].map((e) => ({ type: "keyword", label: e })).concat(/* @__PURE__ */ [
|
612 |
+
"aliceblue",
|
613 |
+
"antiquewhite",
|
614 |
+
"aqua",
|
615 |
+
"aquamarine",
|
616 |
+
"azure",
|
617 |
+
"beige",
|
618 |
+
"bisque",
|
619 |
+
"black",
|
620 |
+
"blanchedalmond",
|
621 |
+
"blue",
|
622 |
+
"blueviolet",
|
623 |
+
"brown",
|
624 |
+
"burlywood",
|
625 |
+
"cadetblue",
|
626 |
+
"chartreuse",
|
627 |
+
"chocolate",
|
628 |
+
"coral",
|
629 |
+
"cornflowerblue",
|
630 |
+
"cornsilk",
|
631 |
+
"crimson",
|
632 |
+
"cyan",
|
633 |
+
"darkblue",
|
634 |
+
"darkcyan",
|
635 |
+
"darkgoldenrod",
|
636 |
+
"darkgray",
|
637 |
+
"darkgreen",
|
638 |
+
"darkkhaki",
|
639 |
+
"darkmagenta",
|
640 |
+
"darkolivegreen",
|
641 |
+
"darkorange",
|
642 |
+
"darkorchid",
|
643 |
+
"darkred",
|
644 |
+
"darksalmon",
|
645 |
+
"darkseagreen",
|
646 |
+
"darkslateblue",
|
647 |
+
"darkslategray",
|
648 |
+
"darkturquoise",
|
649 |
+
"darkviolet",
|
650 |
+
"deeppink",
|
651 |
+
"deepskyblue",
|
652 |
+
"dimgray",
|
653 |
+
"dodgerblue",
|
654 |
+
"firebrick",
|
655 |
+
"floralwhite",
|
656 |
+
"forestgreen",
|
657 |
+
"fuchsia",
|
658 |
+
"gainsboro",
|
659 |
+
"ghostwhite",
|
660 |
+
"gold",
|
661 |
+
"goldenrod",
|
662 |
+
"gray",
|
663 |
+
"grey",
|
664 |
+
"green",
|
665 |
+
"greenyellow",
|
666 |
+
"honeydew",
|
667 |
+
"hotpink",
|
668 |
+
"indianred",
|
669 |
+
"indigo",
|
670 |
+
"ivory",
|
671 |
+
"khaki",
|
672 |
+
"lavender",
|
673 |
+
"lavenderblush",
|
674 |
+
"lawngreen",
|
675 |
+
"lemonchiffon",
|
676 |
+
"lightblue",
|
677 |
+
"lightcoral",
|
678 |
+
"lightcyan",
|
679 |
+
"lightgoldenrodyellow",
|
680 |
+
"lightgray",
|
681 |
+
"lightgreen",
|
682 |
+
"lightpink",
|
683 |
+
"lightsalmon",
|
684 |
+
"lightseagreen",
|
685 |
+
"lightskyblue",
|
686 |
+
"lightslategray",
|
687 |
+
"lightsteelblue",
|
688 |
+
"lightyellow",
|
689 |
+
"lime",
|
690 |
+
"limegreen",
|
691 |
+
"linen",
|
692 |
+
"magenta",
|
693 |
+
"maroon",
|
694 |
+
"mediumaquamarine",
|
695 |
+
"mediumblue",
|
696 |
+
"mediumorchid",
|
697 |
+
"mediumpurple",
|
698 |
+
"mediumseagreen",
|
699 |
+
"mediumslateblue",
|
700 |
+
"mediumspringgreen",
|
701 |
+
"mediumturquoise",
|
702 |
+
"mediumvioletred",
|
703 |
+
"midnightblue",
|
704 |
+
"mintcream",
|
705 |
+
"mistyrose",
|
706 |
+
"moccasin",
|
707 |
+
"navajowhite",
|
708 |
+
"navy",
|
709 |
+
"oldlace",
|
710 |
+
"olive",
|
711 |
+
"olivedrab",
|
712 |
+
"orange",
|
713 |
+
"orangered",
|
714 |
+
"orchid",
|
715 |
+
"palegoldenrod",
|
716 |
+
"palegreen",
|
717 |
+
"paleturquoise",
|
718 |
+
"palevioletred",
|
719 |
+
"papayawhip",
|
720 |
+
"peachpuff",
|
721 |
+
"peru",
|
722 |
+
"pink",
|
723 |
+
"plum",
|
724 |
+
"powderblue",
|
725 |
+
"purple",
|
726 |
+
"rebeccapurple",
|
727 |
+
"red",
|
728 |
+
"rosybrown",
|
729 |
+
"royalblue",
|
730 |
+
"saddlebrown",
|
731 |
+
"salmon",
|
732 |
+
"sandybrown",
|
733 |
+
"seagreen",
|
734 |
+
"seashell",
|
735 |
+
"sienna",
|
736 |
+
"silver",
|
737 |
+
"skyblue",
|
738 |
+
"slateblue",
|
739 |
+
"slategray",
|
740 |
+
"snow",
|
741 |
+
"springgreen",
|
742 |
+
"steelblue",
|
743 |
+
"tan",
|
744 |
+
"teal",
|
745 |
+
"thistle",
|
746 |
+
"tomato",
|
747 |
+
"turquoise",
|
748 |
+
"violet",
|
749 |
+
"wheat",
|
750 |
+
"white",
|
751 |
+
"whitesmoke",
|
752 |
+
"yellow",
|
753 |
+
"yellowgreen"
|
754 |
+
].map((e) => ({ type: "constant", label: e }))), oe = /* @__PURE__ */ [
|
755 |
+
"a",
|
756 |
+
"abbr",
|
757 |
+
"address",
|
758 |
+
"article",
|
759 |
+
"aside",
|
760 |
+
"b",
|
761 |
+
"bdi",
|
762 |
+
"bdo",
|
763 |
+
"blockquote",
|
764 |
+
"body",
|
765 |
+
"br",
|
766 |
+
"button",
|
767 |
+
"canvas",
|
768 |
+
"caption",
|
769 |
+
"cite",
|
770 |
+
"code",
|
771 |
+
"col",
|
772 |
+
"colgroup",
|
773 |
+
"dd",
|
774 |
+
"del",
|
775 |
+
"details",
|
776 |
+
"dfn",
|
777 |
+
"dialog",
|
778 |
+
"div",
|
779 |
+
"dl",
|
780 |
+
"dt",
|
781 |
+
"em",
|
782 |
+
"figcaption",
|
783 |
+
"figure",
|
784 |
+
"footer",
|
785 |
+
"form",
|
786 |
+
"header",
|
787 |
+
"hgroup",
|
788 |
+
"h1",
|
789 |
+
"h2",
|
790 |
+
"h3",
|
791 |
+
"h4",
|
792 |
+
"h5",
|
793 |
+
"h6",
|
794 |
+
"hr",
|
795 |
+
"html",
|
796 |
+
"i",
|
797 |
+
"iframe",
|
798 |
+
"img",
|
799 |
+
"input",
|
800 |
+
"ins",
|
801 |
+
"kbd",
|
802 |
+
"label",
|
803 |
+
"legend",
|
804 |
+
"li",
|
805 |
+
"main",
|
806 |
+
"meter",
|
807 |
+
"nav",
|
808 |
+
"ol",
|
809 |
+
"output",
|
810 |
+
"p",
|
811 |
+
"pre",
|
812 |
+
"ruby",
|
813 |
+
"section",
|
814 |
+
"select",
|
815 |
+
"small",
|
816 |
+
"source",
|
817 |
+
"span",
|
818 |
+
"strong",
|
819 |
+
"sub",
|
820 |
+
"summary",
|
821 |
+
"sup",
|
822 |
+
"table",
|
823 |
+
"tbody",
|
824 |
+
"td",
|
825 |
+
"template",
|
826 |
+
"textarea",
|
827 |
+
"tfoot",
|
828 |
+
"th",
|
829 |
+
"thead",
|
830 |
+
"tr",
|
831 |
+
"u",
|
832 |
+
"ul"
|
833 |
+
].map((e) => ({ type: "type", label: e })), s = /^(\w[\w-]*|-\w[\w-]*|)$/, re = /^-(-[\w-]*)?$/;
|
834 |
+
function le(e, t) {
|
835 |
+
var l;
|
836 |
+
if ((e.name == "(" || e.type.isError) && (e = e.parent || e), e.name != "ArgList")
|
837 |
+
return !1;
|
838 |
+
let a = (l = e.parent) === null || l === void 0 ? void 0 : l.firstChild;
|
839 |
+
return (a == null ? void 0 : a.name) != "Callee" ? !1 : t.sliceString(a.from, a.to) == "var";
|
840 |
+
}
|
841 |
+
const b = /* @__PURE__ */ new E(), ie = ["Declaration"];
|
842 |
+
function ne(e) {
|
843 |
+
for (let t = e; ; ) {
|
844 |
+
if (t.type.isTop)
|
845 |
+
return t;
|
846 |
+
if (!(t = t.parent))
|
847 |
+
return e;
|
848 |
+
}
|
849 |
+
}
|
850 |
+
function w(e, t, l) {
|
851 |
+
if (t.to - t.from > 4096) {
|
852 |
+
let a = b.get(t);
|
853 |
+
if (a)
|
854 |
+
return a;
|
855 |
+
let O = [], r = /* @__PURE__ */ new Set(), i = t.cursor(_.IncludeAnonymous);
|
856 |
+
if (i.firstChild())
|
857 |
+
do
|
858 |
+
for (let n of w(e, i.node, l))
|
859 |
+
r.has(n.label) || (r.add(n.label), O.push(n));
|
860 |
+
while (i.nextSibling());
|
861 |
+
return b.set(t, O), O;
|
862 |
+
} else {
|
863 |
+
let a = [], O = /* @__PURE__ */ new Set();
|
864 |
+
return t.cursor().iterate((r) => {
|
865 |
+
var i;
|
866 |
+
if (l(r) && r.matchContext(ie) && ((i = r.node.nextSibling) === null || i === void 0 ? void 0 : i.name) == ":") {
|
867 |
+
let n = e.sliceString(r.from, r.to);
|
868 |
+
O.has(n) || (O.add(n), a.push({ label: n, type: "variable" }));
|
869 |
+
}
|
870 |
+
}), a;
|
871 |
+
}
|
872 |
+
}
|
873 |
+
const se = (e) => (t) => {
|
874 |
+
let { state: l, pos: a } = t, O = x(l).resolveInner(a, -1), r = O.type.isError && O.from == O.to - 1 && l.doc.sliceString(O.from, O.to) == "-";
|
875 |
+
if (O.name == "PropertyName" || (r || O.name == "TagName") && /^(Block|Styles)$/.test(O.resolve(O.to).name))
|
876 |
+
return { from: O.from, options: u(), validFor: s };
|
877 |
+
if (O.name == "ValueName")
|
878 |
+
return { from: O.from, options: h, validFor: s };
|
879 |
+
if (O.name == "PseudoClassName")
|
880 |
+
return { from: O.from, options: f, validFor: s };
|
881 |
+
if (e(O) || (t.explicit || r) && le(O, l.doc))
|
882 |
+
return {
|
883 |
+
from: e(O) || r ? O.from : a,
|
884 |
+
options: w(l.doc, ne(O), e),
|
885 |
+
validFor: re
|
886 |
+
};
|
887 |
+
if (O.name == "TagName") {
|
888 |
+
for (let { parent: c } = O; c; c = c.parent)
|
889 |
+
if (c.name == "Block")
|
890 |
+
return { from: O.from, options: u(), validFor: s };
|
891 |
+
return { from: O.from, options: oe, validFor: s };
|
892 |
+
}
|
893 |
+
if (!t.explicit)
|
894 |
+
return null;
|
895 |
+
let i = O.resolve(a), n = i.childBefore(a);
|
896 |
+
return n && n.name == ":" && i.name == "PseudoClassSelector" ? { from: a, options: f, validFor: s } : n && n.name == ":" && i.name == "Declaration" || i.name == "ArgList" ? { from: a, options: h, validFor: s } : i.name == "Block" || i.name == "Styles" ? { from: a, options: u(), validFor: s } : null;
|
897 |
+
}, de = /* @__PURE__ */ se((e) => e.name == "VariableName"), $ = /* @__PURE__ */ T.define({
|
898 |
+
name: "css",
|
899 |
+
parser: /* @__PURE__ */ te.configure({
|
900 |
+
props: [
|
901 |
+
/* @__PURE__ */ W.add({
|
902 |
+
Declaration: /* @__PURE__ */ R()
|
903 |
+
}),
|
904 |
+
/* @__PURE__ */ U.add({
|
905 |
+
"Block KeyframeList": Y
|
906 |
+
})
|
907 |
+
]
|
908 |
+
}),
|
909 |
+
languageData: {
|
910 |
+
commentTokens: { block: { open: "/*", close: "*/" } },
|
911 |
+
indentOnInput: /^\s*\}$/,
|
912 |
+
wordChars: "-"
|
913 |
+
}
|
914 |
+
});
|
915 |
+
function pe() {
|
916 |
+
return new q($, $.data.of({ autocomplete: de }));
|
917 |
+
}
|
918 |
+
export {
|
919 |
+
pe as css,
|
920 |
+
de as cssCompletionSource,
|
921 |
+
$ as cssLanguage,
|
922 |
+
se as defineCSSCompletionSource
|
923 |
+
};
|
src/backend/gradio_logsview/templates/component/index.js
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { R as e, Q as o, O as B, M as d, W as l, K as p } from "./Index-d65e8fec.js";
|
2 |
+
export {
|
3 |
+
e as BaseCode,
|
4 |
+
o as BaseCopy,
|
5 |
+
B as BaseDownload,
|
6 |
+
d as BaseExample,
|
7 |
+
l as BaseWidget,
|
8 |
+
p as default
|
9 |
+
};
|
src/backend/gradio_logsview/templates/component/r-1df568be.js
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function f(e) {
|
2 |
+
for (var n = {}, r = 0; r < e.length; ++r)
|
3 |
+
n[e[r]] = !0;
|
4 |
+
return n;
|
5 |
+
}
|
6 |
+
var b = ["NULL", "NA", "Inf", "NaN", "NA_integer_", "NA_real_", "NA_complex_", "NA_character_", "TRUE", "FALSE"], g = ["list", "quote", "bquote", "eval", "return", "call", "parse", "deparse"], s = ["if", "else", "repeat", "while", "function", "for", "in", "next", "break"], y = ["if", "else", "repeat", "while", "function", "for"], h = f(b), m = f(g), N = f(s), A = f(y), k = /[+\-*\/^<>=!&|~$:]/, t;
|
7 |
+
function p(e, n) {
|
8 |
+
t = null;
|
9 |
+
var r = e.next();
|
10 |
+
if (r == "#")
|
11 |
+
return e.skipToEnd(), "comment";
|
12 |
+
if (r == "0" && e.eat("x"))
|
13 |
+
return e.eatWhile(/[\da-f]/i), "number";
|
14 |
+
if (r == "." && e.eat(/\d/))
|
15 |
+
return e.match(/\d*(?:e[+\-]?\d+)?/), "number";
|
16 |
+
if (/\d/.test(r))
|
17 |
+
return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/), "number";
|
18 |
+
if (r == "'" || r == '"')
|
19 |
+
return n.tokenize = E(r), "string";
|
20 |
+
if (r == "`")
|
21 |
+
return e.match(/[^`]+`/), "string.special";
|
22 |
+
if (r == "." && e.match(/.(?:[.]|\d+)/))
|
23 |
+
return "keyword";
|
24 |
+
if (/[a-zA-Z\.]/.test(r)) {
|
25 |
+
e.eatWhile(/[\w\.]/);
|
26 |
+
var i = e.current();
|
27 |
+
return h.propertyIsEnumerable(i) ? "atom" : N.propertyIsEnumerable(i) ? (A.propertyIsEnumerable(i) && !e.match(/\s*if(\s+|$)/, !1) && (t = "block"), "keyword") : m.propertyIsEnumerable(i) ? "builtin" : "variable";
|
28 |
+
} else
|
29 |
+
return r == "%" ? (e.skipTo("%") && e.next(), "variableName.special") : r == "<" && e.eat("-") || r == "<" && e.match("<-") || r == "-" && e.match(/>>?/) || r == "=" && n.ctx.argList ? "operator" : k.test(r) ? (r == "$" || e.eatWhile(k), "operator") : /[\(\){}\[\];]/.test(r) ? (t = r, r == ";" ? "punctuation" : null) : null;
|
30 |
+
}
|
31 |
+
function E(e) {
|
32 |
+
return function(n, r) {
|
33 |
+
if (n.eat("\\")) {
|
34 |
+
var i = n.next();
|
35 |
+
return i == "x" ? n.match(/^[a-f0-9]{2}/i) : (i == "u" || i == "U") && n.eat("{") && n.skipTo("}") ? n.next() : i == "u" ? n.match(/^[a-f0-9]{4}/i) : i == "U" ? n.match(/^[a-f0-9]{8}/i) : /[0-7]/.test(i) && n.match(/^[0-7]{1,2}/), "string.special";
|
36 |
+
} else {
|
37 |
+
for (var l; (l = n.next()) != null; ) {
|
38 |
+
if (l == e) {
|
39 |
+
r.tokenize = p;
|
40 |
+
break;
|
41 |
+
}
|
42 |
+
if (l == "\\") {
|
43 |
+
n.backUp(1);
|
44 |
+
break;
|
45 |
+
}
|
46 |
+
}
|
47 |
+
return "string";
|
48 |
+
}
|
49 |
+
};
|
50 |
+
}
|
51 |
+
var v = 1, u = 2, c = 4;
|
52 |
+
function o(e, n, r) {
|
53 |
+
e.ctx = {
|
54 |
+
type: n,
|
55 |
+
indent: e.indent,
|
56 |
+
flags: 0,
|
57 |
+
column: r.column(),
|
58 |
+
prev: e.ctx
|
59 |
+
};
|
60 |
+
}
|
61 |
+
function x(e, n) {
|
62 |
+
var r = e.ctx;
|
63 |
+
e.ctx = {
|
64 |
+
type: r.type,
|
65 |
+
indent: r.indent,
|
66 |
+
flags: r.flags | n,
|
67 |
+
column: r.column,
|
68 |
+
prev: r.prev
|
69 |
+
};
|
70 |
+
}
|
71 |
+
function a(e) {
|
72 |
+
e.indent = e.ctx.indent, e.ctx = e.ctx.prev;
|
73 |
+
}
|
74 |
+
const I = {
|
75 |
+
name: "r",
|
76 |
+
startState: function(e) {
|
77 |
+
return {
|
78 |
+
tokenize: p,
|
79 |
+
ctx: {
|
80 |
+
type: "top",
|
81 |
+
indent: -e,
|
82 |
+
flags: u
|
83 |
+
},
|
84 |
+
indent: 0,
|
85 |
+
afterIdent: !1
|
86 |
+
};
|
87 |
+
},
|
88 |
+
token: function(e, n) {
|
89 |
+
if (e.sol() && (n.ctx.flags & 3 || (n.ctx.flags |= u), n.ctx.flags & c && a(n), n.indent = e.indentation()), e.eatSpace())
|
90 |
+
return null;
|
91 |
+
var r = n.tokenize(e, n);
|
92 |
+
return r != "comment" && !(n.ctx.flags & u) && x(n, v), (t == ";" || t == "{" || t == "}") && n.ctx.type == "block" && a(n), t == "{" ? o(n, "}", e) : t == "(" ? (o(n, ")", e), n.afterIdent && (n.ctx.argList = !0)) : t == "[" ? o(n, "]", e) : t == "block" ? o(n, "block", e) : t == n.ctx.type ? a(n) : n.ctx.type == "block" && r != "comment" && x(n, c), n.afterIdent = r == "variable" || r == "keyword", r;
|
93 |
+
},
|
94 |
+
indent: function(e, n, r) {
|
95 |
+
if (e.tokenize != p)
|
96 |
+
return 0;
|
97 |
+
var i = n && n.charAt(0), l = e.ctx, d = i == l.type;
|
98 |
+
return l.flags & c && (l = l.prev), l.type == "block" ? l.indent + (i == "{" ? 0 : r.unit) : l.flags & v ? l.column + (d ? 0 : 1) : l.indent + (d ? 0 : r.unit);
|
99 |
+
},
|
100 |
+
languageData: {
|
101 |
+
wordChars: ".",
|
102 |
+
commentTokens: { line: "#" },
|
103 |
+
autocomplete: b.concat(g, s)
|
104 |
+
}
|
105 |
+
};
|
106 |
+
export {
|
107 |
+
I as r
|
108 |
+
};
|
src/backend/gradio_logsview/templates/component/shell-9b920301.js
ADDED
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
var c = {};
|
2 |
+
function s(n, e) {
|
3 |
+
for (var i = 0; i < e.length; i++)
|
4 |
+
c[e[i]] = n;
|
5 |
+
}
|
6 |
+
var k = ["true", "false"], h = [
|
7 |
+
"if",
|
8 |
+
"then",
|
9 |
+
"do",
|
10 |
+
"else",
|
11 |
+
"elif",
|
12 |
+
"while",
|
13 |
+
"until",
|
14 |
+
"for",
|
15 |
+
"in",
|
16 |
+
"esac",
|
17 |
+
"fi",
|
18 |
+
"fin",
|
19 |
+
"fil",
|
20 |
+
"done",
|
21 |
+
"exit",
|
22 |
+
"set",
|
23 |
+
"unset",
|
24 |
+
"export",
|
25 |
+
"function"
|
26 |
+
], p = [
|
27 |
+
"ab",
|
28 |
+
"awk",
|
29 |
+
"bash",
|
30 |
+
"beep",
|
31 |
+
"cat",
|
32 |
+
"cc",
|
33 |
+
"cd",
|
34 |
+
"chown",
|
35 |
+
"chmod",
|
36 |
+
"chroot",
|
37 |
+
"clear",
|
38 |
+
"cp",
|
39 |
+
"curl",
|
40 |
+
"cut",
|
41 |
+
"diff",
|
42 |
+
"echo",
|
43 |
+
"find",
|
44 |
+
"gawk",
|
45 |
+
"gcc",
|
46 |
+
"get",
|
47 |
+
"git",
|
48 |
+
"grep",
|
49 |
+
"hg",
|
50 |
+
"kill",
|
51 |
+
"killall",
|
52 |
+
"ln",
|
53 |
+
"ls",
|
54 |
+
"make",
|
55 |
+
"mkdir",
|
56 |
+
"openssl",
|
57 |
+
"mv",
|
58 |
+
"nc",
|
59 |
+
"nl",
|
60 |
+
"node",
|
61 |
+
"npm",
|
62 |
+
"ping",
|
63 |
+
"ps",
|
64 |
+
"restart",
|
65 |
+
"rm",
|
66 |
+
"rmdir",
|
67 |
+
"sed",
|
68 |
+
"service",
|
69 |
+
"sh",
|
70 |
+
"shopt",
|
71 |
+
"shred",
|
72 |
+
"source",
|
73 |
+
"sort",
|
74 |
+
"sleep",
|
75 |
+
"ssh",
|
76 |
+
"start",
|
77 |
+
"stop",
|
78 |
+
"su",
|
79 |
+
"sudo",
|
80 |
+
"svn",
|
81 |
+
"tee",
|
82 |
+
"telnet",
|
83 |
+
"top",
|
84 |
+
"touch",
|
85 |
+
"vi",
|
86 |
+
"vim",
|
87 |
+
"wall",
|
88 |
+
"wc",
|
89 |
+
"wget",
|
90 |
+
"who",
|
91 |
+
"write",
|
92 |
+
"yes",
|
93 |
+
"zsh"
|
94 |
+
];
|
95 |
+
s("atom", k);
|
96 |
+
s("keyword", h);
|
97 |
+
s("builtin", p);
|
98 |
+
function d(n, e) {
|
99 |
+
if (n.eatSpace())
|
100 |
+
return null;
|
101 |
+
var i = n.sol(), t = n.next();
|
102 |
+
if (t === "\\")
|
103 |
+
return n.next(), null;
|
104 |
+
if (t === "'" || t === '"' || t === "`")
|
105 |
+
return e.tokens.unshift(l(t, t === "`" ? "quote" : "string")), u(n, e);
|
106 |
+
if (t === "#")
|
107 |
+
return i && n.eat("!") ? (n.skipToEnd(), "meta") : (n.skipToEnd(), "comment");
|
108 |
+
if (t === "$")
|
109 |
+
return e.tokens.unshift(a), u(n, e);
|
110 |
+
if (t === "+" || t === "=")
|
111 |
+
return "operator";
|
112 |
+
if (t === "-")
|
113 |
+
return n.eat("-"), n.eatWhile(/\w/), "attribute";
|
114 |
+
if (t == "<") {
|
115 |
+
if (n.match("<<"))
|
116 |
+
return "operator";
|
117 |
+
var o = n.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);
|
118 |
+
if (o)
|
119 |
+
return e.tokens.unshift(w(o[1] || o[2])), "string.special";
|
120 |
+
}
|
121 |
+
if (/\d/.test(t) && (n.eatWhile(/\d/), n.eol() || !/\w/.test(n.peek())))
|
122 |
+
return "number";
|
123 |
+
n.eatWhile(/[\w-]/);
|
124 |
+
var r = n.current();
|
125 |
+
return n.peek() === "=" && /\w+/.test(r) ? "def" : c.hasOwnProperty(r) ? c[r] : null;
|
126 |
+
}
|
127 |
+
function l(n, e) {
|
128 |
+
var i = n == "(" ? ")" : n == "{" ? "}" : n;
|
129 |
+
return function(t, o) {
|
130 |
+
for (var r, f = !1; (r = t.next()) != null; ) {
|
131 |
+
if (r === i && !f) {
|
132 |
+
o.tokens.shift();
|
133 |
+
break;
|
134 |
+
} else if (r === "$" && !f && n !== "'" && t.peek() != i) {
|
135 |
+
f = !0, t.backUp(1), o.tokens.unshift(a);
|
136 |
+
break;
|
137 |
+
} else {
|
138 |
+
if (!f && n !== i && r === n)
|
139 |
+
return o.tokens.unshift(l(n, e)), u(t, o);
|
140 |
+
if (!f && /['"]/.test(r) && !/['"]/.test(n)) {
|
141 |
+
o.tokens.unshift(g(r, "string")), t.backUp(1);
|
142 |
+
break;
|
143 |
+
}
|
144 |
+
}
|
145 |
+
f = !f && r === "\\";
|
146 |
+
}
|
147 |
+
return e;
|
148 |
+
};
|
149 |
+
}
|
150 |
+
function g(n, e) {
|
151 |
+
return function(i, t) {
|
152 |
+
return t.tokens[0] = l(n, e), i.next(), u(i, t);
|
153 |
+
};
|
154 |
+
}
|
155 |
+
var a = function(n, e) {
|
156 |
+
e.tokens.length > 1 && n.eat("$");
|
157 |
+
var i = n.next();
|
158 |
+
return /['"({]/.test(i) ? (e.tokens[0] = l(i, i == "(" ? "quote" : i == "{" ? "def" : "string"), u(n, e)) : (/\d/.test(i) || n.eatWhile(/\w/), e.tokens.shift(), "def");
|
159 |
+
};
|
160 |
+
function w(n) {
|
161 |
+
return function(e, i) {
|
162 |
+
return e.sol() && e.string == n && i.tokens.shift(), e.skipToEnd(), "string.special";
|
163 |
+
};
|
164 |
+
}
|
165 |
+
function u(n, e) {
|
166 |
+
return (e.tokens[0] || d)(n, e);
|
167 |
+
}
|
168 |
+
const v = {
|
169 |
+
name: "shell",
|
170 |
+
startState: function() {
|
171 |
+
return { tokens: [] };
|
172 |
+
},
|
173 |
+
token: function(n, e) {
|
174 |
+
return u(n, e);
|
175 |
+
},
|
176 |
+
languageData: {
|
177 |
+
autocomplete: k.concat(h, p),
|
178 |
+
closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] },
|
179 |
+
commentTokens: { line: "#" }
|
180 |
+
}
|
181 |
+
};
|
182 |
+
export {
|
183 |
+
v as shell
|
184 |
+
};
|
src/backend/gradio_logsview/templates/component/sql-ef4d3ec0.js
ADDED
@@ -0,0 +1,291 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function s(a) {
|
2 |
+
var c = a.client || {}, h = a.atoms || { false: !0, true: !0, null: !0 }, p = a.builtin || e(z), S = a.keywords || e(d), _ = a.operatorChars || /^[*+\-%<>!=&|~^\/]/, o = a.support || {}, y = a.hooks || {}, C = a.dateSQL || { date: !0, time: !0, timestamp: !0 }, Q = a.backslashStringEscapes !== !1, j = a.brackets || /^[\{}\(\)\[\]]/, v = a.punctuation || /^[;.,:]/;
|
3 |
+
function g(t, i) {
|
4 |
+
var r = t.next();
|
5 |
+
if (y[r]) {
|
6 |
+
var n = y[r](t, i);
|
7 |
+
if (n !== !1)
|
8 |
+
return n;
|
9 |
+
}
|
10 |
+
if (o.hexNumber && (r == "0" && t.match(/^[xX][0-9a-fA-F]+/) || (r == "x" || r == "X") && t.match(/^'[0-9a-fA-F]*'/)))
|
11 |
+
return "number";
|
12 |
+
if (o.binaryNumber && ((r == "b" || r == "B") && t.match(/^'[01]+'/) || r == "0" && t.match(/^b[01]*/)))
|
13 |
+
return "number";
|
14 |
+
if (r.charCodeAt(0) > 47 && r.charCodeAt(0) < 58)
|
15 |
+
return t.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/), o.decimallessFloat && t.match(/^\.(?!\.)/), "number";
|
16 |
+
if (r == "?" && (t.eatSpace() || t.eol() || t.eat(";")))
|
17 |
+
return "macroName";
|
18 |
+
if (r == "'" || r == '"' && o.doubleQuote)
|
19 |
+
return i.tokenize = x(r), i.tokenize(t, i);
|
20 |
+
if ((o.nCharCast && (r == "n" || r == "N") || o.charsetCast && r == "_" && t.match(/[a-z][a-z0-9]*/i)) && (t.peek() == "'" || t.peek() == '"'))
|
21 |
+
return "keyword";
|
22 |
+
if (o.escapeConstant && (r == "e" || r == "E") && (t.peek() == "'" || t.peek() == '"' && o.doubleQuote))
|
23 |
+
return i.tokenize = function(m, k) {
|
24 |
+
return (k.tokenize = x(m.next(), !0))(m, k);
|
25 |
+
}, "keyword";
|
26 |
+
if (o.commentSlashSlash && r == "/" && t.eat("/"))
|
27 |
+
return t.skipToEnd(), "comment";
|
28 |
+
if (o.commentHash && r == "#" || r == "-" && t.eat("-") && (!o.commentSpaceRequired || t.eat(" ")))
|
29 |
+
return t.skipToEnd(), "comment";
|
30 |
+
if (r == "/" && t.eat("*"))
|
31 |
+
return i.tokenize = b(1), i.tokenize(t, i);
|
32 |
+
if (r == ".") {
|
33 |
+
if (o.zerolessFloat && t.match(/^(?:\d+(?:e[+-]?\d+)?)/i))
|
34 |
+
return "number";
|
35 |
+
if (t.match(/^\.+/))
|
36 |
+
return null;
|
37 |
+
if (o.ODBCdotTable && t.match(/^[\w\d_$#]+/))
|
38 |
+
return "type";
|
39 |
+
} else {
|
40 |
+
if (_.test(r))
|
41 |
+
return t.eatWhile(_), "operator";
|
42 |
+
if (j.test(r))
|
43 |
+
return "bracket";
|
44 |
+
if (v.test(r))
|
45 |
+
return t.eatWhile(v), "punctuation";
|
46 |
+
if (r == "{" && (t.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/) || t.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))
|
47 |
+
return "number";
|
48 |
+
t.eatWhile(/^[_\w\d]/);
|
49 |
+
var l = t.current().toLowerCase();
|
50 |
+
return C.hasOwnProperty(l) && (t.match(/^( )+'[^']*'/) || t.match(/^( )+"[^"]*"/)) ? "number" : h.hasOwnProperty(l) ? "atom" : p.hasOwnProperty(l) ? "type" : S.hasOwnProperty(l) ? "keyword" : c.hasOwnProperty(l) ? "builtin" : null;
|
51 |
+
}
|
52 |
+
}
|
53 |
+
function x(t, i) {
|
54 |
+
return function(r, n) {
|
55 |
+
for (var l = !1, m; (m = r.next()) != null; ) {
|
56 |
+
if (m == t && !l) {
|
57 |
+
n.tokenize = g;
|
58 |
+
break;
|
59 |
+
}
|
60 |
+
l = (Q || i) && !l && m == "\\";
|
61 |
+
}
|
62 |
+
return "string";
|
63 |
+
};
|
64 |
+
}
|
65 |
+
function b(t) {
|
66 |
+
return function(i, r) {
|
67 |
+
var n = i.match(/^.*?(\/\*|\*\/)/);
|
68 |
+
return n ? n[1] == "/*" ? r.tokenize = b(t + 1) : t > 1 ? r.tokenize = b(t - 1) : r.tokenize = g : i.skipToEnd(), "comment";
|
69 |
+
};
|
70 |
+
}
|
71 |
+
function w(t, i, r) {
|
72 |
+
i.context = {
|
73 |
+
prev: i.context,
|
74 |
+
indent: t.indentation(),
|
75 |
+
col: t.column(),
|
76 |
+
type: r
|
77 |
+
};
|
78 |
+
}
|
79 |
+
function L(t) {
|
80 |
+
t.indent = t.context.indent, t.context = t.context.prev;
|
81 |
+
}
|
82 |
+
return {
|
83 |
+
name: "sql",
|
84 |
+
startState: function() {
|
85 |
+
return { tokenize: g, context: null };
|
86 |
+
},
|
87 |
+
token: function(t, i) {
|
88 |
+
if (t.sol() && i.context && i.context.align == null && (i.context.align = !1), i.tokenize == g && t.eatSpace())
|
89 |
+
return null;
|
90 |
+
var r = i.tokenize(t, i);
|
91 |
+
if (r == "comment")
|
92 |
+
return r;
|
93 |
+
i.context && i.context.align == null && (i.context.align = !0);
|
94 |
+
var n = t.current();
|
95 |
+
return n == "(" ? w(t, i, ")") : n == "[" ? w(t, i, "]") : i.context && i.context.type == n && L(i), r;
|
96 |
+
},
|
97 |
+
indent: function(t, i, r) {
|
98 |
+
var n = t.context;
|
99 |
+
if (!n)
|
100 |
+
return null;
|
101 |
+
var l = i.charAt(0) == n.type;
|
102 |
+
return n.align ? n.col + (l ? 0 : 1) : n.indent + (l ? 0 : r.unit);
|
103 |
+
},
|
104 |
+
languageData: {
|
105 |
+
commentTokens: {
|
106 |
+
line: o.commentSlashSlash ? "//" : o.commentHash ? "#" : "--",
|
107 |
+
block: { open: "/*", close: "*/" }
|
108 |
+
},
|
109 |
+
closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] }
|
110 |
+
}
|
111 |
+
};
|
112 |
+
}
|
113 |
+
function f(a) {
|
114 |
+
for (var c; (c = a.next()) != null; )
|
115 |
+
if (c == "`" && !a.eat("`"))
|
116 |
+
return "string.special";
|
117 |
+
return a.backUp(a.current().length - 1), a.eatWhile(/\w/) ? "string.special" : null;
|
118 |
+
}
|
119 |
+
function N(a) {
|
120 |
+
for (var c; (c = a.next()) != null; )
|
121 |
+
if (c == '"' && !a.eat('"'))
|
122 |
+
return "string.special";
|
123 |
+
return a.backUp(a.current().length - 1), a.eatWhile(/\w/) ? "string.special" : null;
|
124 |
+
}
|
125 |
+
function u(a) {
|
126 |
+
return a.eat("@") && (a.match("session."), a.match("local."), a.match("global.")), a.eat("'") ? (a.match(/^.*'/), "string.special") : a.eat('"') ? (a.match(/^.*"/), "string.special") : a.eat("`") ? (a.match(/^.*`/), "string.special") : a.match(/^[0-9a-zA-Z$\.\_]+/) ? "string.special" : null;
|
127 |
+
}
|
128 |
+
function q(a) {
|
129 |
+
return a.eat("N") ? "atom" : a.match(/^[a-zA-Z.#!?]/) ? "string.special" : null;
|
130 |
+
}
|
131 |
+
var d = "alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";
|
132 |
+
function e(a) {
|
133 |
+
for (var c = {}, h = a.split(" "), p = 0; p < h.length; ++p)
|
134 |
+
c[h[p]] = !0;
|
135 |
+
return c;
|
136 |
+
}
|
137 |
+
var z = "bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";
|
138 |
+
const F = s({
|
139 |
+
keywords: e(d + "begin"),
|
140 |
+
builtin: e(z),
|
141 |
+
atoms: e("false true null unknown"),
|
142 |
+
dateSQL: e("date time timestamp"),
|
143 |
+
support: e("ODBCdotTable doubleQuote binaryNumber hexNumber")
|
144 |
+
}), T = s({
|
145 |
+
client: e("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),
|
146 |
+
keywords: e(d + "begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),
|
147 |
+
builtin: e("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),
|
148 |
+
atoms: e("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),
|
149 |
+
operatorChars: /^[*+\-%<>!=^\&|\/]/,
|
150 |
+
brackets: /^[\{}\(\)]/,
|
151 |
+
punctuation: /^[;.,:/]/,
|
152 |
+
backslashStringEscapes: !1,
|
153 |
+
dateSQL: e("date datetimeoffset datetime2 smalldatetime datetime time"),
|
154 |
+
hooks: {
|
155 |
+
"@": u
|
156 |
+
}
|
157 |
+
}), B = s({
|
158 |
+
client: e("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),
|
159 |
+
keywords: e(d + "accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),
|
160 |
+
builtin: e("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),
|
161 |
+
atoms: e("false true null unknown"),
|
162 |
+
operatorChars: /^[*+\-%<>!=&|^]/,
|
163 |
+
dateSQL: e("date time timestamp"),
|
164 |
+
support: e("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),
|
165 |
+
hooks: {
|
166 |
+
"@": u,
|
167 |
+
"`": f,
|
168 |
+
"\\": q
|
169 |
+
}
|
170 |
+
}), D = s({
|
171 |
+
client: e("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),
|
172 |
+
keywords: e(d + "accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),
|
173 |
+
builtin: e("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),
|
174 |
+
atoms: e("false true null unknown"),
|
175 |
+
operatorChars: /^[*+\-%<>!=&|^]/,
|
176 |
+
dateSQL: e("date time timestamp"),
|
177 |
+
support: e("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),
|
178 |
+
hooks: {
|
179 |
+
"@": u,
|
180 |
+
"`": f,
|
181 |
+
"\\": q
|
182 |
+
}
|
183 |
+
}), O = s({
|
184 |
+
// commands of the official SQLite client, ref: https://www.sqlite.org/cli.html#dotcmd
|
185 |
+
client: e("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),
|
186 |
+
// ref: http://sqlite.org/lang_keywords.html
|
187 |
+
keywords: e(d + "abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),
|
188 |
+
// SQLite is weakly typed, ref: http://sqlite.org/datatype3.html. This is just a list of some common types.
|
189 |
+
builtin: e("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),
|
190 |
+
// ref: http://sqlite.org/syntax/literal-value.html
|
191 |
+
atoms: e("null current_date current_time current_timestamp"),
|
192 |
+
// ref: http://sqlite.org/lang_expr.html#binaryops
|
193 |
+
operatorChars: /^[*+\-%<>!=&|/~]/,
|
194 |
+
// SQLite is weakly typed, ref: http://sqlite.org/datatype3.html. This is just a list of some common types.
|
195 |
+
dateSQL: e("date time timestamp datetime"),
|
196 |
+
support: e("decimallessFloat zerolessFloat"),
|
197 |
+
identifierQuote: '"',
|
198 |
+
//ref: http://sqlite.org/lang_keywords.html
|
199 |
+
hooks: {
|
200 |
+
// bind-parameters ref:http://sqlite.org/lang_expr.html#varparam
|
201 |
+
"@": u,
|
202 |
+
":": u,
|
203 |
+
"?": u,
|
204 |
+
$: u,
|
205 |
+
// The preferred way to escape Identifiers is using double quotes, ref: http://sqlite.org/lang_keywords.html
|
206 |
+
'"': N,
|
207 |
+
// there is also support for backticks, ref: http://sqlite.org/lang_keywords.html
|
208 |
+
"`": f
|
209 |
+
}
|
210 |
+
}), $ = s({
|
211 |
+
client: {},
|
212 |
+
keywords: e("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),
|
213 |
+
builtin: e("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),
|
214 |
+
atoms: e("false true infinity NaN"),
|
215 |
+
operatorChars: /^[<>=]/,
|
216 |
+
dateSQL: {},
|
217 |
+
support: e("commentSlashSlash decimallessFloat"),
|
218 |
+
hooks: {}
|
219 |
+
}), E = s({
|
220 |
+
client: e("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),
|
221 |
+
keywords: e("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),
|
222 |
+
builtin: e("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),
|
223 |
+
operatorChars: /^[*\/+\-%<>!=~]/,
|
224 |
+
dateSQL: e("date time timestamp"),
|
225 |
+
support: e("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")
|
226 |
+
}), A = s({
|
227 |
+
keywords: e("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),
|
228 |
+
builtin: e("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),
|
229 |
+
atoms: e("false true null unknown"),
|
230 |
+
operatorChars: /^[*+\-%<>!=]/,
|
231 |
+
dateSQL: e("date timestamp"),
|
232 |
+
support: e("ODBCdotTable doubleQuote binaryNumber hexNumber")
|
233 |
+
}), P = s({
|
234 |
+
client: e("source"),
|
235 |
+
// For PostgreSQL - https://www.postgresql.org/docs/11/sql-keywords-appendix.html
|
236 |
+
// For pl/pgsql lang - https://github.com/postgres/postgres/blob/REL_11_2/src/pl/plpgsql/src/pl_scanner.c
|
237 |
+
keywords: e(d + "a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),
|
238 |
+
// https://www.postgresql.org/docs/11/datatype.html
|
239 |
+
builtin: e("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),
|
240 |
+
atoms: e("false true null unknown"),
|
241 |
+
operatorChars: /^[*\/+\-%<>!=&|^\/#@?~]/,
|
242 |
+
backslashStringEscapes: !1,
|
243 |
+
dateSQL: e("date time timestamp"),
|
244 |
+
support: e("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")
|
245 |
+
}), W = s({
|
246 |
+
keywords: e("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),
|
247 |
+
atoms: e("false true"),
|
248 |
+
builtin: e("blob datetime first key __key__ string integer double boolean null"),
|
249 |
+
operatorChars: /^[*+\-%<>!=]/
|
250 |
+
}), H = s({
|
251 |
+
client: e("source"),
|
252 |
+
//https://github.com/greenplum-db/gpdb/blob/master/src/include/parser/kwlist.h
|
253 |
+
keywords: e("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),
|
254 |
+
builtin: e("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),
|
255 |
+
atoms: e("false true null unknown"),
|
256 |
+
operatorChars: /^[*+\-%<>!=&|^\/#@?~]/,
|
257 |
+
dateSQL: e("date time timestamp"),
|
258 |
+
support: e("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")
|
259 |
+
}), R = s({
|
260 |
+
keywords: e("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),
|
261 |
+
builtin: e("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),
|
262 |
+
atoms: e("false true null"),
|
263 |
+
operatorChars: /^[*\/+\-%<>!=~&|^]/,
|
264 |
+
dateSQL: e("date time timestamp"),
|
265 |
+
support: e("ODBCdotTable doubleQuote zerolessFloat")
|
266 |
+
}), I = s({
|
267 |
+
client: e("source"),
|
268 |
+
// http://www.espertech.com/esper/release-5.5.0/esper-reference/html/appendix_keywords.html
|
269 |
+
keywords: e("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),
|
270 |
+
builtin: {},
|
271 |
+
atoms: e("false true null"),
|
272 |
+
operatorChars: /^[*+\-%<>!=&|^\/#@?~]/,
|
273 |
+
dateSQL: e("time"),
|
274 |
+
support: e("decimallessFloat zerolessFloat binaryNumber hexNumber")
|
275 |
+
});
|
276 |
+
export {
|
277 |
+
$ as cassandra,
|
278 |
+
I as esper,
|
279 |
+
H as gpSQL,
|
280 |
+
W as gql,
|
281 |
+
A as hive,
|
282 |
+
D as mariaDB,
|
283 |
+
T as msSQL,
|
284 |
+
B as mySQL,
|
285 |
+
P as pgSQL,
|
286 |
+
E as plSQL,
|
287 |
+
R as sparkSQL,
|
288 |
+
s as sql,
|
289 |
+
O as sqlite,
|
290 |
+
F as standardSQL
|
291 |
+
};
|
src/backend/gradio_logsview/templates/component/style.css
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
.wrap.svelte-1f1hlu0{display:flex;flex-direction:column;flex-flow:column;margin:0;padding:0;height:100%}.codemirror-wrapper.svelte-1f1hlu0{height:100%;overflow:auto}.cm-editor{height:100%}.cm-selectionBackground{background-color:#b9d2ff30!important}.cm-focused{outline:none!important}.dropdown-arrow.svelte-145leq6{fill:currentColor}button.svelte-qjb524{position:relative;cursor:pointer;padding:5px;width:22px;height:22px}.check.svelte-qjb524{position:absolute;top:0;right:0;z-index:var(--layer-top);background:var(--background-fill-primary);padding:var(--size-1);width:100%;height:100%;color:var(--body-text-color)}.container.svelte-peh06t{position:relative;cursor:pointer;padding:5px;width:22px;height:22px}.check.svelte-peh06t{position:absolute;top:0;right:0;z-index:var(--layer-top);background:var(--background-fill-primary);padding:var(--size-1);width:100%;height:100%;color:var(--body-text-color)}div.svelte-1bqqv16{display:flex;position:absolute;top:var(--block-label-margin);right:var(--block-label-margin);align-items:center;z-index:var(--layer-2);transition:.15s;box-shadow:var(--shadow-drop);border:1px solid var(--border-color-primary);border-top:none;border-right:none;border-radius:var(--block-label-right-radius);background:var(--block-label-background-fill);overflow:hidden;color:var(--block-label-text-color);font:var(--font);font-size:var(--button-small-text-size)}svg.svelte-43sxxs.svelte-43sxxs{width:var(--size-20);height:var(--size-20)}svg.svelte-43sxxs path.svelte-43sxxs{fill:var(--loader-color)}div.svelte-43sxxs.svelte-43sxxs{z-index:var(--layer-2)}.margin.svelte-43sxxs.svelte-43sxxs{margin:var(--size-4)}.wrap.svelte-1yserjw.svelte-1yserjw{display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:var(--layer-top);transition:opacity .1s ease-in-out;border-radius:var(--block-radius);background:var(--block-background-fill);padding:0 var(--size-6);max-height:var(--size-screen-h);overflow:hidden;pointer-events:none}.wrap.center.svelte-1yserjw.svelte-1yserjw{top:0;right:0;left:0}.wrap.default.svelte-1yserjw.svelte-1yserjw{top:0;right:0;bottom:0;left:0}.hide.svelte-1yserjw.svelte-1yserjw{opacity:0;pointer-events:none}.generating.svelte-1yserjw.svelte-1yserjw{animation:svelte-1yserjw-pulse 2s cubic-bezier(.4,0,.6,1) infinite;border:2px solid var(--color-accent);background:transparent;z-index:var(--layer-1)}.translucent.svelte-1yserjw.svelte-1yserjw{background:none}@keyframes svelte-1yserjw-pulse{0%,to{opacity:1}50%{opacity:.5}}.loading.svelte-1yserjw.svelte-1yserjw{z-index:var(--layer-2);color:var(--body-text-color)}.eta-bar.svelte-1yserjw.svelte-1yserjw{position:absolute;top:0;right:0;bottom:0;left:0;transform-origin:left;opacity:.8;z-index:var(--layer-1);transition:10ms;background:var(--background-fill-secondary)}.progress-bar-wrap.svelte-1yserjw.svelte-1yserjw{border:1px solid var(--border-color-primary);background:var(--background-fill-primary);width:55.5%;height:var(--size-4)}.progress-bar.svelte-1yserjw.svelte-1yserjw{transform-origin:left;background-color:var(--loader-color);width:var(--size-full);height:var(--size-full)}.progress-level.svelte-1yserjw.svelte-1yserjw{display:flex;flex-direction:column;align-items:center;gap:1;z-index:var(--layer-2);width:var(--size-full)}.progress-level-inner.svelte-1yserjw.svelte-1yserjw{margin:var(--size-2) auto;color:var(--body-text-color);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text.svelte-1yserjw.svelte-1yserjw{position:absolute;top:0;right:0;z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text-center.svelte-1yserjw.svelte-1yserjw{display:flex;position:absolute;top:0;right:0;justify-content:center;align-items:center;transform:translateY(var(--size-6));z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono);text-align:center}.error.svelte-1yserjw.svelte-1yserjw{box-shadow:var(--shadow-drop);border:solid 1px var(--error-border-color);border-radius:var(--radius-full);background:var(--error-background-fill);padding-right:var(--size-4);padding-left:var(--size-4);color:var(--error-text-color);font-weight:var(--weight-semibold);font-size:var(--text-lg);line-height:var(--line-lg);font-family:var(--font)}.minimal.svelte-1yserjw .progress-text.svelte-1yserjw{background:var(--block-background-fill)}.border.svelte-1yserjw.svelte-1yserjw{border:1px solid var(--border-color-primary)}.toast-body.svelte-solcu7{display:flex;position:relative;right:0;left:0;align-items:center;margin:var(--size-6) var(--size-4);margin:auto;border-radius:var(--container-radius);overflow:hidden;pointer-events:auto}.toast-body.error.svelte-solcu7{border:1px solid var(--color-red-700);background:var(--color-red-50)}.dark .toast-body.error.svelte-solcu7{border:1px solid var(--color-red-500);background-color:var(--color-grey-950)}.toast-body.warning.svelte-solcu7{border:1px solid var(--color-yellow-700);background:var(--color-yellow-50)}.dark .toast-body.warning.svelte-solcu7{border:1px solid var(--color-yellow-500);background-color:var(--color-grey-950)}.toast-body.info.svelte-solcu7{border:1px solid var(--color-grey-700);background:var(--color-grey-50)}.dark .toast-body.info.svelte-solcu7{border:1px solid var(--color-grey-500);background-color:var(--color-grey-950)}.toast-title.svelte-solcu7{display:flex;align-items:center;font-weight:var(--weight-bold);font-size:var(--text-lg);line-height:var(--line-sm);text-transform:capitalize}.toast-title.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-title.error.svelte-solcu7{color:var(--color-red-50)}.toast-title.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-title.warning.svelte-solcu7{color:var(--color-yellow-50)}.toast-title.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-title.info.svelte-solcu7{color:var(--color-grey-50)}.toast-close.svelte-solcu7{margin:0 var(--size-3);border-radius:var(--size-3);padding:0px var(--size-1-5);font-size:var(--size-5);line-height:var(--size-5)}.toast-close.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-close.error.svelte-solcu7{color:var(--color-red-500)}.toast-close.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-close.warning.svelte-solcu7{color:var(--color-yellow-500)}.toast-close.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-close.info.svelte-solcu7{color:var(--color-grey-500)}.toast-text.svelte-solcu7{font-size:var(--text-lg)}.toast-text.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-text.error.svelte-solcu7{color:var(--color-red-50)}.toast-text.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-text.warning.svelte-solcu7{color:var(--color-yellow-50)}.toast-text.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-text.info.svelte-solcu7{color:var(--color-grey-50)}.toast-details.svelte-solcu7{margin:var(--size-3) var(--size-3) var(--size-3) 0;width:100%}.toast-icon.svelte-solcu7{display:flex;position:absolute;position:relative;flex-shrink:0;justify-content:center;align-items:center;margin:var(--size-2);border-radius:var(--radius-full);padding:var(--size-1);padding-left:calc(var(--size-1) - 1px);width:35px;height:35px}.toast-icon.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-icon.error.svelte-solcu7{color:var(--color-red-500)}.toast-icon.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-icon.warning.svelte-solcu7{color:var(--color-yellow-500)}.toast-icon.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-icon.info.svelte-solcu7{color:var(--color-grey-500)}@keyframes svelte-solcu7-countdown{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.timer.svelte-solcu7{position:absolute;bottom:0;left:0;transform-origin:0 0;animation:svelte-solcu7-countdown 10s linear forwards;width:100%;height:var(--size-1)}.timer.error.svelte-solcu7{background:var(--color-red-700)}.dark .timer.error.svelte-solcu7{background:var(--color-red-500)}.timer.warning.svelte-solcu7{background:var(--color-yellow-700)}.dark .timer.warning.svelte-solcu7{background:var(--color-yellow-500)}.timer.info.svelte-solcu7{background:var(--color-grey-700)}.dark .timer.info.svelte-solcu7{background:var(--color-grey-500)}.toast-wrap.svelte-gatr8h{display:flex;position:fixed;top:var(--size-4);right:var(--size-4);flex-direction:column;align-items:end;gap:var(--size-2);z-index:var(--layer-top);width:calc(100% - var(--size-8))}@media (--screen-sm){.toast-wrap.svelte-gatr8h{width:calc(var(--size-96) + var(--size-10))}}.block.svelte-nl1om8{position:relative;margin:0;box-shadow:var(--block-shadow);border-width:var(--block-border-width);border-color:var(--block-border-color);border-radius:var(--block-radius);background:var(--block-background-fill);width:100%;line-height:var(--line-sm)}.block.border_focus.svelte-nl1om8{border-color:var(--color-accent)}.block.border_contrast.svelte-nl1om8{border-color:var(--body-text-color)}.padded.svelte-nl1om8{padding:var(--block-padding)}.hidden.svelte-nl1om8{display:none}.hide-container.svelte-nl1om8{margin:0;box-shadow:none;--block-border-width:0;background:transparent;padding:0;overflow:visible}div.svelte-1hnfib2{margin-bottom:var(--spacing-lg);color:var(--block-info-text-color);font-weight:var(--block-info-text-weight);font-size:var(--block-info-text-size);line-height:var(--line-sm)}span.has-info.svelte-22c38v{margin-bottom:var(--spacing-xs)}span.svelte-22c38v:not(.has-info){margin-bottom:var(--spacing-lg)}span.svelte-22c38v{display:inline-block;position:relative;z-index:var(--layer-4);border:solid var(--block-title-border-width) var(--block-title-border-color);border-radius:var(--block-title-radius);background:var(--block-title-background-fill);padding:var(--block-title-padding);color:var(--block-title-text-color);font-weight:var(--block-title-text-weight);font-size:var(--block-title-text-size);line-height:var(--line-sm)}.hide.svelte-22c38v{margin:0;height:0}label.svelte-9gxdi0{display:inline-flex;align-items:center;z-index:var(--layer-2);box-shadow:var(--block-label-shadow);border:var(--block-label-border-width) solid var(--border-color-primary);border-top:none;border-left:none;border-radius:var(--block-label-radius);background:var(--block-label-background-fill);padding:var(--block-label-padding);pointer-events:none;color:var(--block-label-text-color);font-weight:var(--block-label-text-weight);font-size:var(--block-label-text-size);line-height:var(--line-sm)}.gr-group label.svelte-9gxdi0{border-top-left-radius:0}label.float.svelte-9gxdi0{position:absolute;top:var(--block-label-margin);left:var(--block-label-margin)}label.svelte-9gxdi0:not(.float){position:static;margin-top:var(--block-label-margin);margin-left:var(--block-label-margin)}.hide.svelte-9gxdi0{height:0}span.svelte-9gxdi0{opacity:.8;margin-right:var(--size-2);width:calc(var(--block-label-text-size) - 1px);height:calc(var(--block-label-text-size) - 1px)}.hide-label.svelte-9gxdi0{box-shadow:none;border-width:0;background:transparent;overflow:visible}button.svelte-lpi64a{display:flex;justify-content:center;align-items:center;gap:1px;z-index:var(--layer-2);border-radius:var(--radius-sm);color:var(--block-label-text-color);border:1px solid transparent}button[disabled].svelte-lpi64a{opacity:.5;box-shadow:none}button[disabled].svelte-lpi64a:hover{cursor:not-allowed}.padded.svelte-lpi64a{padding:2px;background:var(--bg-color);box-shadow:var(--shadow-drop);border:1px solid var(--button-secondary-border-color)}button.svelte-lpi64a:hover,button.highlight.svelte-lpi64a{cursor:pointer;color:var(--color-accent)}.padded.svelte-lpi64a:hover{border:2px solid var(--button-secondary-border-color-hover);padding:1px;color:var(--block-label-text-color)}span.svelte-lpi64a{padding:0 1px;font-size:10px}div.svelte-lpi64a{padding:2px;display:flex;align-items:flex-end}.small.svelte-lpi64a{width:14px;height:14px}.large.svelte-lpi64a{width:22px;height:22px}.pending.svelte-lpi64a{animation:svelte-lpi64a-flash .5s infinite}@keyframes svelte-lpi64a-flash{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.transparent.svelte-lpi64a{background:transparent;border:none;box-shadow:none}.empty.svelte-3w3rth{display:flex;justify-content:center;align-items:center;margin-top:calc(0px - var(--size-6));height:var(--size-full)}.icon.svelte-3w3rth{opacity:.5;height:var(--size-5);color:var(--body-text-color)}.small.svelte-3w3rth{min-height:calc(var(--size-32) - 20px)}.large.svelte-3w3rth{min-height:calc(var(--size-64) - 20px)}.unpadded_box.svelte-3w3rth{margin-top:0}.small_parent.svelte-3w3rth{min-height:100%!important}.wrap.svelte-kzcjhc{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:var(--size-60);color:var(--block-label-text-color);line-height:var(--line-md);height:100%;padding-top:var(--size-3)}.or.svelte-kzcjhc{color:var(--body-text-color-subdued);display:flex}.icon-wrap.svelte-kzcjhc{width:30px;margin-bottom:var(--spacing-lg)}@media (--screen-md){.wrap.svelte-kzcjhc{font-size:var(--text-lg)}}.hovered.svelte-kzcjhc{color:var(--color-accent)}div.svelte-ipfyu7{border-top:1px solid transparent;display:flex;max-height:100%;justify-content:center;gap:var(--spacing-sm);height:auto;align-items:flex-end;padding-bottom:var(--spacing-xl);color:var(--block-label-text-color);flex-shrink:0;width:95%}.show_border.svelte-ipfyu7{border-top:1px solid var(--block-border-color);margin-top:var(--spacing-xxl);box-shadow:var(--shadow-drop)}.source-selection.svelte-1jp3vgd{display:flex;align-items:center;justify-content:center;border-top:1px solid var(--border-color-primary);width:95%;bottom:0;left:0;right:0;margin-left:auto;margin-right:auto}.icon.svelte-1jp3vgd{width:22px;height:22px;margin:var(--spacing-lg) var(--spacing-xs);padding:var(--spacing-xs);color:var(--neutral-400);border-radius:var(--radius-md)}.selected.svelte-1jp3vgd{color:var(--color-accent)}.icon.svelte-1jp3vgd:hover,.icon.svelte-1jp3vgd:focus{color:var(--color-accent)}pre.svelte-1ioyqn2{text-align:left}.gallery.svelte-1ioyqn2{padding:var(--size-1) var(--size-2)}
|
src/backend/gradio_logsview/templates/component/yaml-cef3802d.js
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
var l = ["true", "false", "on", "off", "yes", "no"], f = new RegExp("\\b((" + l.join(")|(") + "))$", "i");
|
2 |
+
const a = {
|
3 |
+
name: "yaml",
|
4 |
+
token: function(n, i) {
|
5 |
+
var r = n.peek(), e = i.escaped;
|
6 |
+
if (i.escaped = !1, r == "#" && (n.pos == 0 || /\s/.test(n.string.charAt(n.pos - 1))))
|
7 |
+
return n.skipToEnd(), "comment";
|
8 |
+
if (n.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))
|
9 |
+
return "string";
|
10 |
+
if (i.literal && n.indentation() > i.keyCol)
|
11 |
+
return n.skipToEnd(), "string";
|
12 |
+
if (i.literal && (i.literal = !1), n.sol()) {
|
13 |
+
if (i.keyCol = 0, i.pair = !1, i.pairStart = !1, n.match("---") || n.match("..."))
|
14 |
+
return "def";
|
15 |
+
if (n.match(/^\s*-\s+/))
|
16 |
+
return "meta";
|
17 |
+
}
|
18 |
+
if (n.match(/^(\{|\}|\[|\])/))
|
19 |
+
return r == "{" ? i.inlinePairs++ : r == "}" ? i.inlinePairs-- : r == "[" ? i.inlineList++ : i.inlineList--, "meta";
|
20 |
+
if (i.inlineList > 0 && !e && r == ",")
|
21 |
+
return n.next(), "meta";
|
22 |
+
if (i.inlinePairs > 0 && !e && r == ",")
|
23 |
+
return i.keyCol = 0, i.pair = !1, i.pairStart = !1, n.next(), "meta";
|
24 |
+
if (i.pairStart) {
|
25 |
+
if (n.match(/^\s*(\||\>)\s*/))
|
26 |
+
return i.literal = !0, "meta";
|
27 |
+
if (n.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))
|
28 |
+
return "variable";
|
29 |
+
if (i.inlinePairs == 0 && n.match(/^\s*-?[0-9\.\,]+\s?$/) || i.inlinePairs > 0 && n.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))
|
30 |
+
return "number";
|
31 |
+
if (n.match(f))
|
32 |
+
return "keyword";
|
33 |
+
}
|
34 |
+
return !i.pair && n.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/) ? (i.pair = !0, i.keyCol = n.indentation(), "atom") : i.pair && n.match(/^:\s*/) ? (i.pairStart = !0, "meta") : (i.pairStart = !1, i.escaped = r == "\\", n.next(), null);
|
35 |
+
},
|
36 |
+
startState: function() {
|
37 |
+
return {
|
38 |
+
pair: !1,
|
39 |
+
pairStart: !1,
|
40 |
+
keyCol: 0,
|
41 |
+
inlinePairs: 0,
|
42 |
+
inlineList: 0,
|
43 |
+
literal: !1,
|
44 |
+
escaped: !1
|
45 |
+
};
|
46 |
+
},
|
47 |
+
languageData: {
|
48 |
+
commentTokens: { line: "#" }
|
49 |
+
}
|
50 |
+
};
|
51 |
+
export {
|
52 |
+
a as yaml
|
53 |
+
};
|
src/backend/gradio_logsview/templates/example/index.js
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const {
|
2 |
+
SvelteComponent: u,
|
3 |
+
append: c,
|
4 |
+
attr: o,
|
5 |
+
detach: r,
|
6 |
+
element: d,
|
7 |
+
init: g,
|
8 |
+
insert: v,
|
9 |
+
noop: f,
|
10 |
+
safe_not_equal: y,
|
11 |
+
set_data: m,
|
12 |
+
text: b,
|
13 |
+
toggle_class: i
|
14 |
+
} = window.__gradio__svelte__internal;
|
15 |
+
function h(a) {
|
16 |
+
let e, n = (
|
17 |
+
/*value*/
|
18 |
+
(a[0] ? (
|
19 |
+
/*value*/
|
20 |
+
a[0]
|
21 |
+
) : "") + ""
|
22 |
+
), s;
|
23 |
+
return {
|
24 |
+
c() {
|
25 |
+
e = d("pre"), s = b(n), o(e, "class", "svelte-1ioyqn2"), i(
|
26 |
+
e,
|
27 |
+
"table",
|
28 |
+
/*type*/
|
29 |
+
a[1] === "table"
|
30 |
+
), i(
|
31 |
+
e,
|
32 |
+
"gallery",
|
33 |
+
/*type*/
|
34 |
+
a[1] === "gallery"
|
35 |
+
), i(
|
36 |
+
e,
|
37 |
+
"selected",
|
38 |
+
/*selected*/
|
39 |
+
a[2]
|
40 |
+
);
|
41 |
+
},
|
42 |
+
m(t, l) {
|
43 |
+
v(t, e, l), c(e, s);
|
44 |
+
},
|
45 |
+
p(t, [l]) {
|
46 |
+
l & /*value*/
|
47 |
+
1 && n !== (n = /*value*/
|
48 |
+
(t[0] ? (
|
49 |
+
/*value*/
|
50 |
+
t[0]
|
51 |
+
) : "") + "") && m(s, n), l & /*type*/
|
52 |
+
2 && i(
|
53 |
+
e,
|
54 |
+
"table",
|
55 |
+
/*type*/
|
56 |
+
t[1] === "table"
|
57 |
+
), l & /*type*/
|
58 |
+
2 && i(
|
59 |
+
e,
|
60 |
+
"gallery",
|
61 |
+
/*type*/
|
62 |
+
t[1] === "gallery"
|
63 |
+
), l & /*selected*/
|
64 |
+
4 && i(
|
65 |
+
e,
|
66 |
+
"selected",
|
67 |
+
/*selected*/
|
68 |
+
t[2]
|
69 |
+
);
|
70 |
+
},
|
71 |
+
i: f,
|
72 |
+
o: f,
|
73 |
+
d(t) {
|
74 |
+
t && r(e);
|
75 |
+
}
|
76 |
+
};
|
77 |
+
}
|
78 |
+
function p(a, e, n) {
|
79 |
+
let { value: s } = e, { type: t } = e, { selected: l = !1 } = e;
|
80 |
+
return a.$$set = (_) => {
|
81 |
+
"value" in _ && n(0, s = _.value), "type" in _ && n(1, t = _.type), "selected" in _ && n(2, l = _.selected);
|
82 |
+
}, [s, t, l];
|
83 |
+
}
|
84 |
+
class q extends u {
|
85 |
+
constructor(e) {
|
86 |
+
super(), g(this, e, p, h, y, { value: 0, type: 1, selected: 2 });
|
87 |
+
}
|
88 |
+
}
|
89 |
+
export {
|
90 |
+
q as default
|
91 |
+
};
|
src/backend/gradio_logsview/templates/example/style.css
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
pre.svelte-1ioyqn2{text-align:left}.gallery.svelte-1ioyqn2{padding:var(--size-1) var(--size-2)}
|
src/demo/__init__.py
ADDED
File without changes
|
src/demo/app.py
ADDED
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import logging
|
2 |
+
import random
|
3 |
+
import time
|
4 |
+
|
5 |
+
import gradio as gr
|
6 |
+
from gradio_logsview import LogsView
|
7 |
+
|
8 |
+
|
9 |
+
def random_values(failing: bool = False):
|
10 |
+
for i in range(10):
|
11 |
+
logging.log(
|
12 |
+
random.choice(
|
13 |
+
[ # Random levels
|
14 |
+
logging.INFO,
|
15 |
+
logging.DEBUG,
|
16 |
+
logging.WARNING,
|
17 |
+
logging.ERROR,
|
18 |
+
logging.CRITICAL,
|
19 |
+
]
|
20 |
+
),
|
21 |
+
f"Value {i+1}", # Random values
|
22 |
+
)
|
23 |
+
time.sleep(random.uniform(0, 1))
|
24 |
+
if failing and i == 5:
|
25 |
+
raise ValueError("Failing!!")
|
26 |
+
|
27 |
+
|
28 |
+
def fn_process_success():
|
29 |
+
yield from LogsView.run_process(["python", "-u", "demo/script.py"])
|
30 |
+
|
31 |
+
|
32 |
+
def fn_process_failing():
|
33 |
+
yield from LogsView.run_process(["python", "-u", "demo/script.py", "--failing"])
|
34 |
+
|
35 |
+
|
36 |
+
def fn_thread_success():
|
37 |
+
yield from LogsView.run_thread(random_values, log_level=logging.INFO, failing=False)
|
38 |
+
|
39 |
+
|
40 |
+
def fn_thread_failing():
|
41 |
+
yield from LogsView.run_thread(random_values, log_level=logging.INFO, failing=True)
|
42 |
+
|
43 |
+
|
44 |
+
markdown_top = """
|
45 |
+
# LogsView Demo
|
46 |
+
|
47 |
+
This demo shows how to use the `LogsView` component to display logs from a process or a thread in real-time.
|
48 |
+
|
49 |
+
Click on any button to launch a process or a thread and see the logs displayed in real-time.
|
50 |
+
In the thread example, logs are generated randomly with different log levels.
|
51 |
+
In the process example, logs are generated by a Python script but any command can be executed.
|
52 |
+
"""
|
53 |
+
|
54 |
+
|
55 |
+
markdown_bottom = """
|
56 |
+
## How to run in a thread?
|
57 |
+
|
58 |
+
With `LogsView.run_thread`, you can run a function in a separate thread and capture logs in real-time.
|
59 |
+
You can configure which logs to capture (log level and logger name).
|
60 |
+
|
61 |
+
```py
|
62 |
+
from gradio_logsview import LogsView
|
63 |
+
|
64 |
+
def fn_thread():
|
65 |
+
# Run `my_function` in a separate thread
|
66 |
+
# All logs above `INFO` level will be captured and displayed in real-time.
|
67 |
+
yield from LogsView.run_thread(my_function, log_level=logging.INFO, arg1="value1")
|
68 |
+
|
69 |
+
with gr.Blocks() as demo:
|
70 |
+
logs = LogsView()
|
71 |
+
btn = gr.Button("Run thread")
|
72 |
+
btn.click(fn_thread, outputs=logs)
|
73 |
+
```
|
74 |
+
|
75 |
+
## How to run in a process?
|
76 |
+
|
77 |
+
With `LogsView.run_process`, you can run a command in a separate process and capture logs from the process in real-time.
|
78 |
+
|
79 |
+
```py
|
80 |
+
from gradio_logsview import LogsView
|
81 |
+
|
82 |
+
def fn_process():
|
83 |
+
# Run a process and capture all logs from the process
|
84 |
+
yield from LogsView.run_process(
|
85 |
+
cmd=[mergekit-yaml", "config.yaml", "merge", "--copy-", "--cuda", "--low-cpu-memory"]
|
86 |
+
)
|
87 |
+
|
88 |
+
with gr.Blocks() as demo:
|
89 |
+
logs = LogsView()
|
90 |
+
btn = gr.Button("Run process")
|
91 |
+
btn.click(fn_process, outputs=logs)
|
92 |
+
```
|
93 |
+
"""
|
94 |
+
|
95 |
+
with gr.Blocks() as demo:
|
96 |
+
gr.Markdown(markdown_top)
|
97 |
+
|
98 |
+
with gr.Row():
|
99 |
+
btn_thread_success = gr.Button("Run thread (success)")
|
100 |
+
btn_thread_failing = gr.Button("Run thread (failing)")
|
101 |
+
with gr.Row():
|
102 |
+
btn_process_success = gr.Button("Run process (success)")
|
103 |
+
btn_process_failing = gr.Button("Run process (failing)")
|
104 |
+
logs = LogsView()
|
105 |
+
|
106 |
+
gr.Markdown(markdown_bottom)
|
107 |
+
|
108 |
+
btn_thread_failing.click(fn_thread_failing, outputs=logs)
|
109 |
+
btn_thread_success.click(fn_thread_success, outputs=logs)
|
110 |
+
btn_process_failing.click(fn_process_failing, outputs=logs)
|
111 |
+
btn_process_success.click(fn_process_success, outputs=logs)
|
112 |
+
|
113 |
+
|
114 |
+
if __name__ == "__main__":
|
115 |
+
demo.launch()
|
src/demo/css.css
ADDED
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
html {
|
2 |
+
font-family: Inter;
|
3 |
+
font-size: 16px;
|
4 |
+
font-weight: 400;
|
5 |
+
line-height: 1.5;
|
6 |
+
-webkit-text-size-adjust: 100%;
|
7 |
+
background: #fff;
|
8 |
+
color: #323232;
|
9 |
+
-webkit-font-smoothing: antialiased;
|
10 |
+
-moz-osx-font-smoothing: grayscale;
|
11 |
+
text-rendering: optimizeLegibility;
|
12 |
+
}
|
13 |
+
|
14 |
+
:root {
|
15 |
+
--space: 1;
|
16 |
+
--vspace: calc(var(--space) * 1rem);
|
17 |
+
--vspace-0: calc(3 * var(--space) * 1rem);
|
18 |
+
--vspace-1: calc(2 * var(--space) * 1rem);
|
19 |
+
--vspace-2: calc(1.5 * var(--space) * 1rem);
|
20 |
+
--vspace-3: calc(0.5 * var(--space) * 1rem);
|
21 |
+
}
|
22 |
+
|
23 |
+
.app {
|
24 |
+
max-width: 748px !important;
|
25 |
+
}
|
26 |
+
|
27 |
+
.prose p {
|
28 |
+
margin: var(--vspace) 0;
|
29 |
+
line-height: var(--vspace * 2);
|
30 |
+
font-size: 1rem;
|
31 |
+
}
|
32 |
+
|
33 |
+
code {
|
34 |
+
font-family: "Inconsolata", sans-serif;
|
35 |
+
font-size: 16px;
|
36 |
+
}
|
37 |
+
|
38 |
+
h1,
|
39 |
+
h1 code {
|
40 |
+
font-weight: 400;
|
41 |
+
line-height: calc(2.5 / var(--space) * var(--vspace));
|
42 |
+
}
|
43 |
+
|
44 |
+
h1 code {
|
45 |
+
background: none;
|
46 |
+
border: none;
|
47 |
+
letter-spacing: 0.05em;
|
48 |
+
padding-bottom: 5px;
|
49 |
+
position: relative;
|
50 |
+
padding: 0;
|
51 |
+
}
|
52 |
+
|
53 |
+
h2 {
|
54 |
+
margin: var(--vspace-1) 0 var(--vspace-2) 0;
|
55 |
+
line-height: 1em;
|
56 |
+
}
|
57 |
+
|
58 |
+
h3,
|
59 |
+
h3 code {
|
60 |
+
margin: var(--vspace-1) 0 var(--vspace-2) 0;
|
61 |
+
line-height: 1em;
|
62 |
+
}
|
63 |
+
|
64 |
+
h4,
|
65 |
+
h5,
|
66 |
+
h6 {
|
67 |
+
margin: var(--vspace-3) 0 var(--vspace-3) 0;
|
68 |
+
line-height: var(--vspace);
|
69 |
+
}
|
70 |
+
|
71 |
+
.bigtitle,
|
72 |
+
h1,
|
73 |
+
h1 code {
|
74 |
+
font-size: calc(8px * 4.5);
|
75 |
+
word-break: break-word;
|
76 |
+
}
|
77 |
+
|
78 |
+
.title,
|
79 |
+
h2,
|
80 |
+
h2 code {
|
81 |
+
font-size: calc(8px * 3.375);
|
82 |
+
font-weight: lighter;
|
83 |
+
word-break: break-word;
|
84 |
+
border: none;
|
85 |
+
background: none;
|
86 |
+
}
|
87 |
+
|
88 |
+
.subheading1,
|
89 |
+
h3,
|
90 |
+
h3 code {
|
91 |
+
font-size: calc(8px * 1.8);
|
92 |
+
font-weight: 600;
|
93 |
+
border: none;
|
94 |
+
background: none;
|
95 |
+
letter-spacing: 0.1em;
|
96 |
+
text-transform: uppercase;
|
97 |
+
}
|
98 |
+
|
99 |
+
h2 code {
|
100 |
+
padding: 0;
|
101 |
+
position: relative;
|
102 |
+
letter-spacing: 0.05em;
|
103 |
+
}
|
104 |
+
|
105 |
+
blockquote {
|
106 |
+
font-size: calc(8px * 1.1667);
|
107 |
+
font-style: italic;
|
108 |
+
line-height: calc(1.1667 * var(--vspace));
|
109 |
+
margin: var(--vspace-2) var(--vspace-2);
|
110 |
+
}
|
111 |
+
|
112 |
+
.subheading2,
|
113 |
+
h4 {
|
114 |
+
font-size: calc(8px * 1.4292);
|
115 |
+
text-transform: uppercase;
|
116 |
+
font-weight: 600;
|
117 |
+
}
|
118 |
+
|
119 |
+
.subheading3,
|
120 |
+
h5 {
|
121 |
+
font-size: calc(8px * 1.2917);
|
122 |
+
line-height: calc(1.2917 * var(--vspace));
|
123 |
+
|
124 |
+
font-weight: lighter;
|
125 |
+
text-transform: uppercase;
|
126 |
+
letter-spacing: 0.15em;
|
127 |
+
}
|
128 |
+
|
129 |
+
h6 {
|
130 |
+
font-size: calc(8px * 1.1667);
|
131 |
+
font-size: 1.1667em;
|
132 |
+
font-weight: normal;
|
133 |
+
font-style: italic;
|
134 |
+
font-family: "le-monde-livre-classic-byol", serif !important;
|
135 |
+
letter-spacing: 0px !important;
|
136 |
+
}
|
137 |
+
|
138 |
+
#start .md > *:first-child {
|
139 |
+
margin-top: 0;
|
140 |
+
}
|
141 |
+
|
142 |
+
h2 + h3 {
|
143 |
+
margin-top: 0;
|
144 |
+
}
|
145 |
+
|
146 |
+
.md hr {
|
147 |
+
border: none;
|
148 |
+
border-top: 1px solid var(--block-border-color);
|
149 |
+
margin: var(--vspace-2) 0 var(--vspace-2) 0;
|
150 |
+
}
|
151 |
+
.prose ul {
|
152 |
+
margin: var(--vspace-2) 0 var(--vspace-1) 0;
|
153 |
+
}
|
154 |
+
|
155 |
+
.gap {
|
156 |
+
gap: 0;
|
157 |
+
}
|
src/demo/script.py
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import argparse
|
2 |
+
import random
|
3 |
+
import time
|
4 |
+
|
5 |
+
|
6 |
+
def random_values(failing: bool = False):
|
7 |
+
for i in range(10):
|
8 |
+
print(f"Value {i+1}")
|
9 |
+
time.sleep(random.uniform(0, 1))
|
10 |
+
if failing and i == 5:
|
11 |
+
raise ValueError("Failing!!")
|
12 |
+
|
13 |
+
|
14 |
+
def main():
|
15 |
+
parser = argparse.ArgumentParser()
|
16 |
+
parser.add_argument("--failing", action="store_true")
|
17 |
+
args = parser.parse_args()
|
18 |
+
random_values(args.failing)
|
19 |
+
|
20 |
+
|
21 |
+
main()
|
src/demo/space.py
ADDED
@@ -0,0 +1,456 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
import gradio as gr
|
3 |
+
from app import demo as app
|
4 |
+
import os
|
5 |
+
|
6 |
+
_docs = {'LogsView': {'description': 'Creates a component to visualize logs from a subprocess in real-time.', 'members': {'__init__': {'value': {'type': 'str | Callable | tuple[str] | None', 'default': 'None', 'description': 'Default value to show in the code editor. If callable, the function will be called whenever the app loads to set the initial value of the component.'}, 'every': {'type': 'float | None', 'default': 'None', 'description': "If `value` is a callable, run the function 'every' number of seconds while the client connection is open. Has no effect otherwise. The event can be accessed (e.g. to cancel it) via this component's .load_event attribute."}, 'lines': {'type': 'int', 'default': '5', 'description': None}, 'label': {'type': 'str | None', 'default': 'None', 'description': 'The label for this component. Appears above the component and is also used as the header if there are a table of examples for this component. If None and used in a `gr.Interface`, the label will be the name of the parameter this component is assigned to.'}, 'show_label': {'type': 'bool | None', 'default': 'None', 'description': 'if True, will display label.'}, 'container': {'type': 'bool', 'default': 'True', 'description': 'If True, will place the component in a container - providing some extra padding around the border.'}, 'scale': {'type': 'int | None', 'default': 'None', 'description': 'relative size compared to adjacent Components. For example if Components A and B are in a Row, and A has scale=2, and B has scale=1, A will be twice as wide as B. Should be an integer. scale applies in Rows, and to top-level Components in Blocks where fill_height=True.'}, 'min_width': {'type': 'int', 'default': '160', 'description': 'minimum pixel width, will wrap if not sufficient screen space to satisfy this value. If a certain scale value results in this Component being narrower than min_width, the min_width parameter will be respected first.'}, 'visible': {'type': 'bool', 'default': 'True', 'description': 'If False, component will be hidden.'}, 'elem_id': {'type': 'str | None', 'default': 'None', 'description': 'An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.'}, 'elem_classes': {'type': 'list[str] | str | None', 'default': 'None', 'description': 'An optional list of strings that are assigned as the classes of this component in the HTML DOM. Can be used for targeting CSS styles.'}, 'render': {'type': 'bool', 'default': 'True', 'description': 'If False, component will not render be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later.'}}, 'postprocess': {'value': {'type': 'list[Log]', 'description': 'Expects a list of `Log` logs.'}}, 'preprocess': {'return': {'type': 'LogsView', 'description': 'Passes the code entered as a `str`.'}, 'value': None}}, 'events': {'change': {'type': None, 'default': None, 'description': 'Triggered when the value of the LogsView changes either because of user input (e.g. a user types in a textbox) OR because of a function update (e.g. an image receives a value from the output of an event trigger). See `.input()` for a listener that is only triggered by user input.'}, 'input': {'type': None, 'default': None, 'description': 'This listener is triggered when the user changes the value of the LogsView.'}, 'focus': {'type': None, 'default': None, 'description': 'This listener is triggered when the LogsView is focused.'}, 'blur': {'type': None, 'default': None, 'description': 'This listener is triggered when the LogsView is unfocused/blurred.'}}}, '__meta__': {'additional_interfaces': {'Log': {'source': '@dataclass\nclass Log:\n level: Literal[\n "INFO", "DEBUG", "WARNING", "ERROR", "CRITICAL"\n ]\n message: str\n timestamp: str'}, 'LogsView': {'source': 'class LogsView(Component):\n EVENTS = [\n Events.change,\n Events.input,\n Events.focus,\n Events.blur,\n ]\n\n def __init__(\n self,\n value: str | Callable | tuple[str] | None = None,\n *,\n every: float | None = None,\n lines: int = 5,\n label: str | None = None,\n show_label: bool | None = None,\n container: bool = True,\n scale: int | None = None,\n min_width: int = 160,\n visible: bool = True,\n elem_id: str | None = None,\n elem_classes: list[str] | str | None = None,\n render: bool = True,\n ):\n self.language = "shell"\n self.lines = lines\n self.interactive = False\n super().__init__(\n label=label,\n every=every,\n show_label=show_label,\n container=container,\n scale=scale,\n min_width=min_width,\n visible=visible,\n elem_id=elem_id,\n elem_classes=elem_classes,\n render=render,\n value=value,\n )\n\n def preprocess(self, payload: str | None) -> "LogsView":\n raise NotImplementedError(\n "LogsView cannot be used as an input component."\n )\n\n def postprocess(self, value: List[Log]) -> List[Log]:\n return value\n\n def api_info(self) -> dict[str, Any]:\n return {\n "items": {\n "level": "string",\n "message": "string",\n "timestamp": "number",\n },\n "title": "Logs",\n "type": "array",\n }\n\n def example_payload(self) -> Any:\n return [\n Log(\n "INFO",\n "Hello World",\n datetime.now().isoformat(),\n )\n ]\n\n def example_value(self) -> Any:\n return [\n Log(\n "INFO",\n "Hello World",\n datetime.now().isoformat(),\n )\n ]\n\n @classmethod\n def run_process(\n cls,\n command: List[str],\n date_format: str = "%Y-%m-%d %H:%M:%S",\n ) -> Generator[List[Log], None, None]:\n process = subprocess.Popen(\n command,\n stdout=subprocess.PIPE,\n stderr=subprocess.STDOUT,\n text=True,\n )\n\n if process.stdout is None:\n raise ValueError("stdout is None")\n\n logs = []\n\n def _log(level: str, message: str):\n log = Log(\n level=level,\n message=message,\n timestamp=datetime.now().strftime(\n date_format\n ),\n )\n logs.append(log)\n return logs\n\n _log("INFO", f"Running {\' \'.join(command)}")\n for line in process.stdout:\n yield _log("INFO", line.strip())\n\n # TODO: what if task is cancelled but process is still running?\n\n process.stdout.close()\n return_code = process.wait()\n if return_code:\n yield _log(\n "ERROR",\n f"Process exited with code {return_code}",\n )\n else:\n yield _log(\n "INFO", "Process exited successfully"\n )\n\n @classmethod\n def run_thread(\n cls,\n fn: Callable,\n log_level: int = logging.INFO,\n logger_name: str | None = None,\n date_format: str = "%Y-%m-%d %H:%M:%S",\n **kwargs,\n ) -> Generator[List[Log], None, None]:\n logs = [\n Log(\n level="INFO",\n message=f"Running {fn.__name__}({\', \'.join(f\'{k}={v}\' for k, v in kwargs.items())})",\n timestamp=datetime.now().strftime(\n date_format\n ),\n )\n ]\n yield logs\n\n thread = Thread(\n target=non_failing_fn(fn), kwargs=kwargs\n )\n\n def _log(record: logging.LogRecord) -> bool:\n if record.thread != thread.ident:\n return False # Skip if not from the thread\n if logger_name and not record.name.startswith(\n logger_name\n ):\n return False # Skip if not from the logger\n if record.levelno < log_level:\n return False # Skip if too verbose\n log = Log(\n level=record.levelname,\n message=record.getMessage(),\n timestamp=datetime.fromtimestamp(\n record.created\n ).strftime(date_format),\n )\n logs.append(log)\n return True\n\n with capture_logging(log_level) as log_queue:\n thread.start()\n\n # Loop to capture and yield logs from the thread\n while thread.is_alive():\n while True:\n try:\n if _log(log_queue.get_nowait()):\n yield logs\n except queue.Empty:\n break\n thread.join(\n timeout=0.1\n ) # adjust the timeout as needed\n\n # After the thread completes, yield any remaining logs\n while True:\n try:\n if _log(log_queue.get_nowait()):\n yield logs\n except queue.Empty:\n break\n\n logs.append(\n Log(\n level="INFO",\n message="Thread completed successfully",\n timestamp=datetime.now().strftime(\n date_format\n ),\n )\n )'}}, 'user_fn_refs': {'LogsView': ['Log', 'LogsView']}}}
|
7 |
+
|
8 |
+
abs_path = os.path.join(os.path.dirname(__file__), "css.css")
|
9 |
+
|
10 |
+
with gr.Blocks(
|
11 |
+
css=abs_path,
|
12 |
+
theme=gr.themes.Default(
|
13 |
+
font_mono=[
|
14 |
+
gr.themes.GoogleFont("Inconsolata"),
|
15 |
+
"monospace",
|
16 |
+
],
|
17 |
+
),
|
18 |
+
) as demo:
|
19 |
+
gr.Markdown(
|
20 |
+
"""
|
21 |
+
# `gradio_logsview`
|
22 |
+
|
23 |
+
<div style="display: flex; gap: 7px;">
|
24 |
+
<img alt="Static Badge" src="https://img.shields.io/badge/version%20-%200.0.1%20-%20orange">
|
25 |
+
</div>
|
26 |
+
|
27 |
+
Visualize logs in your Gradio app
|
28 |
+
""", elem_classes=["md-custom"], header_links=True)
|
29 |
+
app.render()
|
30 |
+
gr.Markdown(
|
31 |
+
"""
|
32 |
+
## Installation
|
33 |
+
|
34 |
+
```bash
|
35 |
+
pip install gradio_logsview
|
36 |
+
```
|
37 |
+
|
38 |
+
## Usage
|
39 |
+
|
40 |
+
```python
|
41 |
+
import logging
|
42 |
+
import random
|
43 |
+
import time
|
44 |
+
|
45 |
+
import gradio as gr
|
46 |
+
from gradio_logsview import LogsView
|
47 |
+
|
48 |
+
|
49 |
+
def random_values(failing: bool = False):
|
50 |
+
for i in range(10):
|
51 |
+
logging.log(
|
52 |
+
random.choice(
|
53 |
+
[ # Random levels
|
54 |
+
logging.INFO,
|
55 |
+
logging.DEBUG,
|
56 |
+
logging.WARNING,
|
57 |
+
logging.ERROR,
|
58 |
+
logging.CRITICAL,
|
59 |
+
]
|
60 |
+
),
|
61 |
+
f"Value {i+1}", # Random values
|
62 |
+
)
|
63 |
+
time.sleep(random.uniform(0, 1))
|
64 |
+
if failing and i == 5:
|
65 |
+
raise ValueError("Failing!!")
|
66 |
+
|
67 |
+
|
68 |
+
def fn_process_success():
|
69 |
+
yield from LogsView.run_process(["python", "-u", "demo/script.py"])
|
70 |
+
|
71 |
+
|
72 |
+
def fn_process_failing():
|
73 |
+
yield from LogsView.run_process(["python", "-u", "demo/script.py", "--failing"])
|
74 |
+
|
75 |
+
|
76 |
+
def fn_thread_success():
|
77 |
+
yield from LogsView.run_thread(random_values, log_level=logging.INFO, failing=False)
|
78 |
+
|
79 |
+
|
80 |
+
def fn_thread_failing():
|
81 |
+
yield from LogsView.run_thread(random_values, log_level=logging.INFO, failing=True)
|
82 |
+
|
83 |
+
|
84 |
+
markdown_top = \"\"\"
|
85 |
+
# LogsView Demo
|
86 |
+
|
87 |
+
This demo shows how to use the `LogsView` component to display logs from a process or a thread in real-time.
|
88 |
+
|
89 |
+
Click on any button to launch a process or a thread and see the logs displayed in real-time.
|
90 |
+
In the thread example, logs are generated randomly with different log levels.
|
91 |
+
In the process example, logs are generated by a Python script but any command can be executed.
|
92 |
+
\"\"\"
|
93 |
+
|
94 |
+
|
95 |
+
markdown_bottom = \"\"\"
|
96 |
+
## How to run in a thread?
|
97 |
+
|
98 |
+
With `LogsView.run_thread`, you can run a function in a separate thread and capture logs in real-time.
|
99 |
+
You can configure which logs to capture (log level and logger name).
|
100 |
+
|
101 |
+
```py
|
102 |
+
from gradio_logsview import LogsView
|
103 |
+
|
104 |
+
def fn_thread():
|
105 |
+
# Run `my_function` in a separate thread
|
106 |
+
# All logs above `INFO` level will be captured and displayed in real-time.
|
107 |
+
yield from LogsView.run_thread(my_function, log_level=logging.INFO, arg1="value1")
|
108 |
+
|
109 |
+
with gr.Blocks() as demo:
|
110 |
+
logs = LogsView()
|
111 |
+
btn = gr.Button("Run thread")
|
112 |
+
btn.click(fn_thread, outputs=logs)
|
113 |
+
```
|
114 |
+
|
115 |
+
## How to run in a process?
|
116 |
+
|
117 |
+
With `LogsView.run_process`, you can run a command in a separate process and capture logs from the process in real-time.
|
118 |
+
|
119 |
+
```py
|
120 |
+
from gradio_logsview import LogsView
|
121 |
+
|
122 |
+
def fn_process():
|
123 |
+
# Run a process and capture all logs from the process
|
124 |
+
yield from LogsView.run_process(
|
125 |
+
cmd=[mergekit-yaml", "config.yaml", "merge", "--copy-", "--cuda", "--low-cpu-memory"]
|
126 |
+
)
|
127 |
+
|
128 |
+
with gr.Blocks() as demo:
|
129 |
+
logs = LogsView()
|
130 |
+
btn = gr.Button("Run process")
|
131 |
+
btn.click(fn_process, outputs=logs)
|
132 |
+
```
|
133 |
+
\"\"\"
|
134 |
+
|
135 |
+
with gr.Blocks() as demo:
|
136 |
+
gr.Markdown(markdown_top)
|
137 |
+
|
138 |
+
with gr.Row():
|
139 |
+
btn_thread_success = gr.Button("Run thread (success)")
|
140 |
+
btn_thread_failing = gr.Button("Run thread (failing)")
|
141 |
+
with gr.Row():
|
142 |
+
btn_process_success = gr.Button("Run process (success)")
|
143 |
+
btn_process_failing = gr.Button("Run process (failing)")
|
144 |
+
logs = LogsView()
|
145 |
+
|
146 |
+
gr.Markdown(markdown_bottom)
|
147 |
+
|
148 |
+
btn_thread_failing.click(fn_thread_failing, outputs=logs)
|
149 |
+
btn_thread_success.click(fn_thread_success, outputs=logs)
|
150 |
+
btn_process_failing.click(fn_process_failing, outputs=logs)
|
151 |
+
btn_process_success.click(fn_process_success, outputs=logs)
|
152 |
+
|
153 |
+
|
154 |
+
if __name__ == "__main__":
|
155 |
+
demo.launch()
|
156 |
+
|
157 |
+
```
|
158 |
+
""", elem_classes=["md-custom"], header_links=True)
|
159 |
+
|
160 |
+
|
161 |
+
gr.Markdown("""
|
162 |
+
## `LogsView`
|
163 |
+
|
164 |
+
### Initialization
|
165 |
+
""", elem_classes=["md-custom"], header_links=True)
|
166 |
+
|
167 |
+
gr.ParamViewer(value=_docs["LogsView"]["members"]["__init__"], linkify=['Log', 'LogsView'])
|
168 |
+
|
169 |
+
|
170 |
+
gr.Markdown("### Events")
|
171 |
+
gr.ParamViewer(value=_docs["LogsView"]["events"], linkify=['Event'])
|
172 |
+
|
173 |
+
|
174 |
+
|
175 |
+
|
176 |
+
gr.Markdown("""
|
177 |
+
|
178 |
+
### User function
|
179 |
+
|
180 |
+
The impact on the users predict function varies depending on whether the component is used as an input or output for an event (or both).
|
181 |
+
|
182 |
+
- When used as an Input, the component only impacts the input signature of the user function.
|
183 |
+
- When used as an output, the component only impacts the return signature of the user function.
|
184 |
+
|
185 |
+
The code snippet below is accurate in cases where the component is used as both an input and an output.
|
186 |
+
|
187 |
+
- **As input:** Is passed, passes the code entered as a `str`.
|
188 |
+
- **As output:** Should return, expects a list of `Log` logs.
|
189 |
+
|
190 |
+
```python
|
191 |
+
def predict(
|
192 |
+
value: LogsView
|
193 |
+
) -> list[Log]:
|
194 |
+
return value
|
195 |
+
```
|
196 |
+
""", elem_classes=["md-custom", "LogsView-user-fn"], header_links=True)
|
197 |
+
|
198 |
+
|
199 |
+
|
200 |
+
|
201 |
+
code_Log = gr.Markdown("""
|
202 |
+
## `Log`
|
203 |
+
```python
|
204 |
+
@dataclass
|
205 |
+
class Log:
|
206 |
+
level: Literal[
|
207 |
+
"INFO", "DEBUG", "WARNING", "ERROR", "CRITICAL"
|
208 |
+
]
|
209 |
+
message: str
|
210 |
+
timestamp: str
|
211 |
+
```""", elem_classes=["md-custom", "Log"], header_links=True)
|
212 |
+
|
213 |
+
code_LogsView = gr.Markdown("""
|
214 |
+
## `LogsView`
|
215 |
+
```python
|
216 |
+
class LogsView(Component):
|
217 |
+
EVENTS = [
|
218 |
+
Events.change,
|
219 |
+
Events.input,
|
220 |
+
Events.focus,
|
221 |
+
Events.blur,
|
222 |
+
]
|
223 |
+
|
224 |
+
def __init__(
|
225 |
+
self,
|
226 |
+
value: str | Callable | tuple[str] | None = None,
|
227 |
+
*,
|
228 |
+
every: float | None = None,
|
229 |
+
lines: int = 5,
|
230 |
+
label: str | None = None,
|
231 |
+
show_label: bool | None = None,
|
232 |
+
container: bool = True,
|
233 |
+
scale: int | None = None,
|
234 |
+
min_width: int = 160,
|
235 |
+
visible: bool = True,
|
236 |
+
elem_id: str | None = None,
|
237 |
+
elem_classes: list[str] | str | None = None,
|
238 |
+
render: bool = True,
|
239 |
+
):
|
240 |
+
self.language = "shell"
|
241 |
+
self.lines = lines
|
242 |
+
self.interactive = False
|
243 |
+
super().__init__(
|
244 |
+
label=label,
|
245 |
+
every=every,
|
246 |
+
show_label=show_label,
|
247 |
+
container=container,
|
248 |
+
scale=scale,
|
249 |
+
min_width=min_width,
|
250 |
+
visible=visible,
|
251 |
+
elem_id=elem_id,
|
252 |
+
elem_classes=elem_classes,
|
253 |
+
render=render,
|
254 |
+
value=value,
|
255 |
+
)
|
256 |
+
|
257 |
+
def preprocess(self, payload: str | None) -> "LogsView":
|
258 |
+
raise NotImplementedError(
|
259 |
+
"LogsView cannot be used as an input component."
|
260 |
+
)
|
261 |
+
|
262 |
+
def postprocess(self, value: List[Log]) -> List[Log]:
|
263 |
+
return value
|
264 |
+
|
265 |
+
def api_info(self) -> dict[str, Any]:
|
266 |
+
return {
|
267 |
+
"items": {
|
268 |
+
"level": "string",
|
269 |
+
"message": "string",
|
270 |
+
"timestamp": "number",
|
271 |
+
},
|
272 |
+
"title": "Logs",
|
273 |
+
"type": "array",
|
274 |
+
}
|
275 |
+
|
276 |
+
def example_payload(self) -> Any:
|
277 |
+
return [
|
278 |
+
Log(
|
279 |
+
"INFO",
|
280 |
+
"Hello World",
|
281 |
+
datetime.now().isoformat(),
|
282 |
+
)
|
283 |
+
]
|
284 |
+
|
285 |
+
def example_value(self) -> Any:
|
286 |
+
return [
|
287 |
+
Log(
|
288 |
+
"INFO",
|
289 |
+
"Hello World",
|
290 |
+
datetime.now().isoformat(),
|
291 |
+
)
|
292 |
+
]
|
293 |
+
|
294 |
+
@classmethod
|
295 |
+
def run_process(
|
296 |
+
cls,
|
297 |
+
command: List[str],
|
298 |
+
date_format: str = "%Y-%m-%d %H:%M:%S",
|
299 |
+
) -> Generator[List[Log], None, None]:
|
300 |
+
process = subprocess.Popen(
|
301 |
+
command,
|
302 |
+
stdout=subprocess.PIPE,
|
303 |
+
stderr=subprocess.STDOUT,
|
304 |
+
text=True,
|
305 |
+
)
|
306 |
+
|
307 |
+
if process.stdout is None:
|
308 |
+
raise ValueError("stdout is None")
|
309 |
+
|
310 |
+
logs = []
|
311 |
+
|
312 |
+
def _log(level: str, message: str):
|
313 |
+
log = Log(
|
314 |
+
level=level,
|
315 |
+
message=message,
|
316 |
+
timestamp=datetime.now().strftime(
|
317 |
+
date_format
|
318 |
+
),
|
319 |
+
)
|
320 |
+
logs.append(log)
|
321 |
+
return logs
|
322 |
+
|
323 |
+
_log("INFO", f"Running {' '.join(command)}")
|
324 |
+
for line in process.stdout:
|
325 |
+
yield _log("INFO", line.strip())
|
326 |
+
|
327 |
+
# TODO: what if task is cancelled but process is still running?
|
328 |
+
|
329 |
+
process.stdout.close()
|
330 |
+
return_code = process.wait()
|
331 |
+
if return_code:
|
332 |
+
yield _log(
|
333 |
+
"ERROR",
|
334 |
+
f"Process exited with code {return_code}",
|
335 |
+
)
|
336 |
+
else:
|
337 |
+
yield _log(
|
338 |
+
"INFO", "Process exited successfully"
|
339 |
+
)
|
340 |
+
|
341 |
+
@classmethod
|
342 |
+
def run_thread(
|
343 |
+
cls,
|
344 |
+
fn: Callable,
|
345 |
+
log_level: int = logging.INFO,
|
346 |
+
logger_name: str | None = None,
|
347 |
+
date_format: str = "%Y-%m-%d %H:%M:%S",
|
348 |
+
**kwargs,
|
349 |
+
) -> Generator[List[Log], None, None]:
|
350 |
+
logs = [
|
351 |
+
Log(
|
352 |
+
level="INFO",
|
353 |
+
message=f"Running {fn.__name__}({', '.join(f'{k}={v}' for k, v in kwargs.items())})",
|
354 |
+
timestamp=datetime.now().strftime(
|
355 |
+
date_format
|
356 |
+
),
|
357 |
+
)
|
358 |
+
]
|
359 |
+
yield logs
|
360 |
+
|
361 |
+
thread = Thread(
|
362 |
+
target=non_failing_fn(fn), kwargs=kwargs
|
363 |
+
)
|
364 |
+
|
365 |
+
def _log(record: logging.LogRecord) -> bool:
|
366 |
+
if record.thread != thread.ident:
|
367 |
+
return False # Skip if not from the thread
|
368 |
+
if logger_name and not record.name.startswith(
|
369 |
+
logger_name
|
370 |
+
):
|
371 |
+
return False # Skip if not from the logger
|
372 |
+
if record.levelno < log_level:
|
373 |
+
return False # Skip if too verbose
|
374 |
+
log = Log(
|
375 |
+
level=record.levelname,
|
376 |
+
message=record.getMessage(),
|
377 |
+
timestamp=datetime.fromtimestamp(
|
378 |
+
record.created
|
379 |
+
).strftime(date_format),
|
380 |
+
)
|
381 |
+
logs.append(log)
|
382 |
+
return True
|
383 |
+
|
384 |
+
with capture_logging(log_level) as log_queue:
|
385 |
+
thread.start()
|
386 |
+
|
387 |
+
# Loop to capture and yield logs from the thread
|
388 |
+
while thread.is_alive():
|
389 |
+
while True:
|
390 |
+
try:
|
391 |
+
if _log(log_queue.get_nowait()):
|
392 |
+
yield logs
|
393 |
+
except queue.Empty:
|
394 |
+
break
|
395 |
+
thread.join(
|
396 |
+
timeout=0.1
|
397 |
+
) # adjust the timeout as needed
|
398 |
+
|
399 |
+
# After the thread completes, yield any remaining logs
|
400 |
+
while True:
|
401 |
+
try:
|
402 |
+
if _log(log_queue.get_nowait()):
|
403 |
+
yield logs
|
404 |
+
except queue.Empty:
|
405 |
+
break
|
406 |
+
|
407 |
+
logs.append(
|
408 |
+
Log(
|
409 |
+
level="INFO",
|
410 |
+
message="Thread completed successfully",
|
411 |
+
timestamp=datetime.now().strftime(
|
412 |
+
date_format
|
413 |
+
),
|
414 |
+
)
|
415 |
+
)
|
416 |
+
```""", elem_classes=["md-custom", "LogsView"], header_links=True)
|
417 |
+
|
418 |
+
demo.load(None, js=r"""function() {
|
419 |
+
const refs = {
|
420 |
+
Log: [],
|
421 |
+
LogsView: [], };
|
422 |
+
const user_fn_refs = {
|
423 |
+
LogsView: ['Log', 'LogsView'], };
|
424 |
+
requestAnimationFrame(() => {
|
425 |
+
|
426 |
+
Object.entries(user_fn_refs).forEach(([key, refs]) => {
|
427 |
+
if (refs.length > 0) {
|
428 |
+
const el = document.querySelector(`.${key}-user-fn`);
|
429 |
+
if (!el) return;
|
430 |
+
refs.forEach(ref => {
|
431 |
+
el.innerHTML = el.innerHTML.replace(
|
432 |
+
new RegExp("\\b"+ref+"\\b", "g"),
|
433 |
+
`<a href="#h-${ref.toLowerCase()}">${ref}</a>`
|
434 |
+
);
|
435 |
+
})
|
436 |
+
}
|
437 |
+
})
|
438 |
+
|
439 |
+
Object.entries(refs).forEach(([key, refs]) => {
|
440 |
+
if (refs.length > 0) {
|
441 |
+
const el = document.querySelector(`.${key}`);
|
442 |
+
if (!el) return;
|
443 |
+
refs.forEach(ref => {
|
444 |
+
el.innerHTML = el.innerHTML.replace(
|
445 |
+
new RegExp("\\b"+ref+"\\b", "g"),
|
446 |
+
`<a href="#h-${ref.toLowerCase()}">${ref}</a>`
|
447 |
+
);
|
448 |
+
})
|
449 |
+
}
|
450 |
+
})
|
451 |
+
})
|
452 |
+
}
|
453 |
+
|
454 |
+
""")
|
455 |
+
|
456 |
+
demo.launch()
|
src/frontend/Example.svelte
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script lang="ts">
|
2 |
+
export let value: string | null;
|
3 |
+
export let type: "gallery" | "table";
|
4 |
+
export let selected = false;
|
5 |
+
</script>
|
6 |
+
|
7 |
+
<pre
|
8 |
+
class:table={type === "table"}
|
9 |
+
class:gallery={type === "gallery"}
|
10 |
+
class:selected>{value ? value : ""}</pre>
|
11 |
+
|
12 |
+
<style>
|
13 |
+
pre {
|
14 |
+
text-align: left;
|
15 |
+
}
|
16 |
+
.gallery {
|
17 |
+
padding: var(--size-1) var(--size-2);
|
18 |
+
}
|
19 |
+
</style>
|
src/frontend/Index.svelte
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script context="module" lang="ts">
|
2 |
+
export { default as BaseCode } from "./shared/Code.svelte";
|
3 |
+
export { default as BaseCopy } from "./shared/Copy.svelte";
|
4 |
+
export { default as BaseDownload } from "./shared/Download.svelte";
|
5 |
+
export { default as BaseWidget } from "./shared/Widgets.svelte";
|
6 |
+
export { default as BaseExample } from "./Example.svelte";
|
7 |
+
</script>
|
8 |
+
|
9 |
+
<script lang="ts">
|
10 |
+
interface Log {
|
11 |
+
level: "INFO" | "DEBUG" | "WARNING" | "ERROR" | "CRITICAL";
|
12 |
+
message: string;
|
13 |
+
timestamp: string;
|
14 |
+
}
|
15 |
+
|
16 |
+
import type { Gradio } from "@gradio/utils";
|
17 |
+
import { afterUpdate } from "svelte";
|
18 |
+
|
19 |
+
import type { LoadingStatus } from "@gradio/statustracker";
|
20 |
+
|
21 |
+
import Code from "./shared/Code.svelte";
|
22 |
+
import Widget from "./shared/Widgets.svelte";
|
23 |
+
import { StatusTracker } from "@gradio/statustracker";
|
24 |
+
import { Block, BlockLabel, Empty } from "@gradio/atoms";
|
25 |
+
import { Code as CodeIcon } from "@gradio/icons";
|
26 |
+
|
27 |
+
export let gradio: Gradio<{
|
28 |
+
change: typeof value;
|
29 |
+
input: never;
|
30 |
+
blur: never;
|
31 |
+
focus: never;
|
32 |
+
}>;
|
33 |
+
export let value: Log[] = [];
|
34 |
+
export let value_as_string: string | null = "";
|
35 |
+
export let value_is_output = false;
|
36 |
+
export let language = "";
|
37 |
+
export let lines = 5;
|
38 |
+
export let target: HTMLElement;
|
39 |
+
export let elem_id = "";
|
40 |
+
export let elem_classes: string[] = [];
|
41 |
+
export let visible = true;
|
42 |
+
export let label = gradio.i18n("code.code");
|
43 |
+
export let show_label = true;
|
44 |
+
export let loading_status: LoadingStatus;
|
45 |
+
export let scale: number | null = null;
|
46 |
+
|
47 |
+
export let interactive: boolean;
|
48 |
+
|
49 |
+
let dark_mode = target.classList.contains("dark");
|
50 |
+
|
51 |
+
function handle_change(): void {
|
52 |
+
gradio.dispatch("change", value);
|
53 |
+
if (!value_is_output) {
|
54 |
+
gradio.dispatch("input");
|
55 |
+
}
|
56 |
+
}
|
57 |
+
afterUpdate(() => {
|
58 |
+
value_is_output = false;
|
59 |
+
});
|
60 |
+
$: value, handle_change(), format_logs();
|
61 |
+
|
62 |
+
function format_logs(): void {
|
63 |
+
value_as_string = value?.map((log) => {
|
64 |
+
return `[${log.timestamp}] [${log.level}] ${log.message}`;
|
65 |
+
}).join("\n");
|
66 |
+
}
|
67 |
+
</script>
|
68 |
+
|
69 |
+
<Block
|
70 |
+
variant={"solid"}
|
71 |
+
padding={false}
|
72 |
+
{elem_id}
|
73 |
+
{elem_classes}
|
74 |
+
{visible}
|
75 |
+
{scale}
|
76 |
+
>
|
77 |
+
<StatusTracker
|
78 |
+
autoscroll={gradio.autoscroll}
|
79 |
+
i18n={gradio.i18n}
|
80 |
+
{...loading_status}
|
81 |
+
/>
|
82 |
+
|
83 |
+
<BlockLabel Icon={CodeIcon} {show_label} {label} float={false} />
|
84 |
+
|
85 |
+
{#if !value && !interactive}
|
86 |
+
<Empty unpadded_box={true} size="large">
|
87 |
+
<CodeIcon />
|
88 |
+
</Empty>
|
89 |
+
{:else}
|
90 |
+
<Widget {language} value={value_as_string} />
|
91 |
+
|
92 |
+
<Code
|
93 |
+
value={value_as_string}
|
94 |
+
{language}
|
95 |
+
{lines}
|
96 |
+
{dark_mode}
|
97 |
+
readonly={!interactive}
|
98 |
+
on:blur={() => gradio.dispatch("blur")}
|
99 |
+
on:focus={() => gradio.dispatch("focus")}
|
100 |
+
/>
|
101 |
+
{/if}
|
102 |
+
</Block>
|
src/frontend/package-lock.json
ADDED
@@ -0,0 +1,2357 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gradio_logsview",
|
3 |
+
"version": "0.5.10",
|
4 |
+
"lockfileVersion": 2,
|
5 |
+
"requires": true,
|
6 |
+
"packages": {
|
7 |
+
"": {
|
8 |
+
"name": "gradio_logsview",
|
9 |
+
"version": "0.5.10",
|
10 |
+
"license": "ISC",
|
11 |
+
"dependencies": {
|
12 |
+
"@codemirror/autocomplete": "^6.3.0",
|
13 |
+
"@codemirror/commands": "^6.1.2",
|
14 |
+
"@codemirror/lang-css": "^6.1.0",
|
15 |
+
"@codemirror/lang-html": "^6.4.2",
|
16 |
+
"@codemirror/lang-javascript": "^6.1.4",
|
17 |
+
"@codemirror/lang-json": "^6.0.1",
|
18 |
+
"@codemirror/lang-markdown": "^6.1.0",
|
19 |
+
"@codemirror/lang-python": "^6.0.4",
|
20 |
+
"@codemirror/language": "^6.6.0",
|
21 |
+
"@codemirror/legacy-modes": "^6.3.1",
|
22 |
+
"@codemirror/lint": "^6.0.0",
|
23 |
+
"@codemirror/search": "^6.2.2",
|
24 |
+
"@codemirror/state": "^6.1.2",
|
25 |
+
"@codemirror/view": "^6.4.1",
|
26 |
+
"@gradio/atoms": "0.6.1",
|
27 |
+
"@gradio/icons": "0.3.4",
|
28 |
+
"@gradio/statustracker": "0.4.10",
|
29 |
+
"@gradio/upload": "0.8.3",
|
30 |
+
"@gradio/utils": "0.3.0",
|
31 |
+
"@gradio/wasm": "0.10.0",
|
32 |
+
"@lezer/common": "^1.0.2",
|
33 |
+
"@lezer/highlight": "^1.1.3",
|
34 |
+
"@lezer/markdown": "^1.0.2",
|
35 |
+
"cm6-theme-basic-dark": "^0.2.0",
|
36 |
+
"cm6-theme-basic-light": "^0.2.0",
|
37 |
+
"codemirror": "^6.0.1"
|
38 |
+
}
|
39 |
+
},
|
40 |
+
"node_modules/@ampproject/remapping": {
|
41 |
+
"version": "2.3.0",
|
42 |
+
"resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz",
|
43 |
+
"integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==",
|
44 |
+
"peer": true,
|
45 |
+
"dependencies": {
|
46 |
+
"@jridgewell/gen-mapping": "^0.3.5",
|
47 |
+
"@jridgewell/trace-mapping": "^0.3.24"
|
48 |
+
},
|
49 |
+
"engines": {
|
50 |
+
"node": ">=6.0.0"
|
51 |
+
}
|
52 |
+
},
|
53 |
+
"node_modules/@codemirror/autocomplete": {
|
54 |
+
"version": "6.15.0",
|
55 |
+
"resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.15.0.tgz",
|
56 |
+
"integrity": "sha512-G2Zm0mXznxz97JhaaOdoEG2cVupn4JjPaS4AcNvZzhOsnnG9YVN68VzfoUw6dYTsIxT6a/cmoFEN47KAWhXaOg==",
|
57 |
+
"dependencies": {
|
58 |
+
"@codemirror/language": "^6.0.0",
|
59 |
+
"@codemirror/state": "^6.0.0",
|
60 |
+
"@codemirror/view": "^6.17.0",
|
61 |
+
"@lezer/common": "^1.0.0"
|
62 |
+
},
|
63 |
+
"peerDependencies": {
|
64 |
+
"@codemirror/language": "^6.0.0",
|
65 |
+
"@codemirror/state": "^6.0.0",
|
66 |
+
"@codemirror/view": "^6.0.0",
|
67 |
+
"@lezer/common": "^1.0.0"
|
68 |
+
}
|
69 |
+
},
|
70 |
+
"node_modules/@codemirror/commands": {
|
71 |
+
"version": "6.3.3",
|
72 |
+
"resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.3.3.tgz",
|
73 |
+
"integrity": "sha512-dO4hcF0fGT9tu1Pj1D2PvGvxjeGkbC6RGcZw6Qs74TH+Ed1gw98jmUgd2axWvIZEqTeTuFrg1lEB1KV6cK9h1A==",
|
74 |
+
"dependencies": {
|
75 |
+
"@codemirror/language": "^6.0.0",
|
76 |
+
"@codemirror/state": "^6.4.0",
|
77 |
+
"@codemirror/view": "^6.0.0",
|
78 |
+
"@lezer/common": "^1.1.0"
|
79 |
+
}
|
80 |
+
},
|
81 |
+
"node_modules/@codemirror/lang-css": {
|
82 |
+
"version": "6.2.1",
|
83 |
+
"resolved": "https://registry.npmjs.org/@codemirror/lang-css/-/lang-css-6.2.1.tgz",
|
84 |
+
"integrity": "sha512-/UNWDNV5Viwi/1lpr/dIXJNWiwDxpw13I4pTUAsNxZdg6E0mI2kTQb0P2iHczg1Tu+H4EBgJR+hYhKiHKko7qg==",
|
85 |
+
"dependencies": {
|
86 |
+
"@codemirror/autocomplete": "^6.0.0",
|
87 |
+
"@codemirror/language": "^6.0.0",
|
88 |
+
"@codemirror/state": "^6.0.0",
|
89 |
+
"@lezer/common": "^1.0.2",
|
90 |
+
"@lezer/css": "^1.0.0"
|
91 |
+
}
|
92 |
+
},
|
93 |
+
"node_modules/@codemirror/lang-html": {
|
94 |
+
"version": "6.4.8",
|
95 |
+
"resolved": "https://registry.npmjs.org/@codemirror/lang-html/-/lang-html-6.4.8.tgz",
|
96 |
+
"integrity": "sha512-tE2YK7wDlb9ZpAH6mpTPiYm6rhfdQKVDa5r9IwIFlwwgvVaKsCfuKKZoJGWsmMZIf3FQAuJ5CHMPLymOtg1hXw==",
|
97 |
+
"dependencies": {
|
98 |
+
"@codemirror/autocomplete": "^6.0.0",
|
99 |
+
"@codemirror/lang-css": "^6.0.0",
|
100 |
+
"@codemirror/lang-javascript": "^6.0.0",
|
101 |
+
"@codemirror/language": "^6.4.0",
|
102 |
+
"@codemirror/state": "^6.0.0",
|
103 |
+
"@codemirror/view": "^6.17.0",
|
104 |
+
"@lezer/common": "^1.0.0",
|
105 |
+
"@lezer/css": "^1.1.0",
|
106 |
+
"@lezer/html": "^1.3.0"
|
107 |
+
}
|
108 |
+
},
|
109 |
+
"node_modules/@codemirror/lang-javascript": {
|
110 |
+
"version": "6.2.2",
|
111 |
+
"resolved": "https://registry.npmjs.org/@codemirror/lang-javascript/-/lang-javascript-6.2.2.tgz",
|
112 |
+
"integrity": "sha512-VGQfY+FCc285AhWuwjYxQyUQcYurWlxdKYT4bqwr3Twnd5wP5WSeu52t4tvvuWmljT4EmgEgZCqSieokhtY8hg==",
|
113 |
+
"dependencies": {
|
114 |
+
"@codemirror/autocomplete": "^6.0.0",
|
115 |
+
"@codemirror/language": "^6.6.0",
|
116 |
+
"@codemirror/lint": "^6.0.0",
|
117 |
+
"@codemirror/state": "^6.0.0",
|
118 |
+
"@codemirror/view": "^6.17.0",
|
119 |
+
"@lezer/common": "^1.0.0",
|
120 |
+
"@lezer/javascript": "^1.0.0"
|
121 |
+
}
|
122 |
+
},
|
123 |
+
"node_modules/@codemirror/lang-json": {
|
124 |
+
"version": "6.0.1",
|
125 |
+
"resolved": "https://registry.npmjs.org/@codemirror/lang-json/-/lang-json-6.0.1.tgz",
|
126 |
+
"integrity": "sha512-+T1flHdgpqDDlJZ2Lkil/rLiRy684WMLc74xUnjJH48GQdfJo/pudlTRreZmKwzP8/tGdKf83wlbAdOCzlJOGQ==",
|
127 |
+
"dependencies": {
|
128 |
+
"@codemirror/language": "^6.0.0",
|
129 |
+
"@lezer/json": "^1.0.0"
|
130 |
+
}
|
131 |
+
},
|
132 |
+
"node_modules/@codemirror/lang-markdown": {
|
133 |
+
"version": "6.2.4",
|
134 |
+
"resolved": "https://registry.npmjs.org/@codemirror/lang-markdown/-/lang-markdown-6.2.4.tgz",
|
135 |
+
"integrity": "sha512-UghkA1vSMs8bT7RSZM6vsIocigyah2bV00eRQuZy76401UmFZdsTsbQNBGdyxRQDOLeEvF5iFwap0BM8LKyd+g==",
|
136 |
+
"dependencies": {
|
137 |
+
"@codemirror/autocomplete": "^6.7.1",
|
138 |
+
"@codemirror/lang-html": "^6.0.0",
|
139 |
+
"@codemirror/language": "^6.3.0",
|
140 |
+
"@codemirror/state": "^6.0.0",
|
141 |
+
"@codemirror/view": "^6.0.0",
|
142 |
+
"@lezer/common": "^1.2.1",
|
143 |
+
"@lezer/markdown": "^1.0.0"
|
144 |
+
}
|
145 |
+
},
|
146 |
+
"node_modules/@codemirror/lang-python": {
|
147 |
+
"version": "6.1.5",
|
148 |
+
"resolved": "https://registry.npmjs.org/@codemirror/lang-python/-/lang-python-6.1.5.tgz",
|
149 |
+
"integrity": "sha512-hCm+8X6wrnXJCGf+QhmFu1AXkdTVG7dHy0Ly6SI1N3SRPptaMvwX6oNQonOXOMPvmcjiB0xq342KAxX3BYpijw==",
|
150 |
+
"dependencies": {
|
151 |
+
"@codemirror/autocomplete": "^6.3.2",
|
152 |
+
"@codemirror/language": "^6.8.0",
|
153 |
+
"@codemirror/state": "^6.0.0",
|
154 |
+
"@lezer/common": "^1.2.1",
|
155 |
+
"@lezer/python": "^1.1.4"
|
156 |
+
}
|
157 |
+
},
|
158 |
+
"node_modules/@codemirror/language": {
|
159 |
+
"version": "6.10.1",
|
160 |
+
"resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.10.1.tgz",
|
161 |
+
"integrity": "sha512-5GrXzrhq6k+gL5fjkAwt90nYDmjlzTIJV8THnxNFtNKWotMIlzzN+CpqxqwXOECnUdOndmSeWntVrVcv5axWRQ==",
|
162 |
+
"dependencies": {
|
163 |
+
"@codemirror/state": "^6.0.0",
|
164 |
+
"@codemirror/view": "^6.23.0",
|
165 |
+
"@lezer/common": "^1.1.0",
|
166 |
+
"@lezer/highlight": "^1.0.0",
|
167 |
+
"@lezer/lr": "^1.0.0",
|
168 |
+
"style-mod": "^4.0.0"
|
169 |
+
}
|
170 |
+
},
|
171 |
+
"node_modules/@codemirror/legacy-modes": {
|
172 |
+
"version": "6.3.3",
|
173 |
+
"resolved": "https://registry.npmjs.org/@codemirror/legacy-modes/-/legacy-modes-6.3.3.tgz",
|
174 |
+
"integrity": "sha512-X0Z48odJ0KIoh/HY8Ltz75/4tDYc9msQf1E/2trlxFaFFhgjpVHjZ/BCXe1Lk7s4Gd67LL/CeEEHNI+xHOiESg==",
|
175 |
+
"dependencies": {
|
176 |
+
"@codemirror/language": "^6.0.0"
|
177 |
+
}
|
178 |
+
},
|
179 |
+
"node_modules/@codemirror/lint": {
|
180 |
+
"version": "6.5.0",
|
181 |
+
"resolved": "https://registry.npmjs.org/@codemirror/lint/-/lint-6.5.0.tgz",
|
182 |
+
"integrity": "sha512-+5YyicIaaAZKU8K43IQi8TBy6mF6giGeWAH7N96Z5LC30Wm5JMjqxOYIE9mxwMG1NbhT2mA3l9hA4uuKUM3E5g==",
|
183 |
+
"dependencies": {
|
184 |
+
"@codemirror/state": "^6.0.0",
|
185 |
+
"@codemirror/view": "^6.0.0",
|
186 |
+
"crelt": "^1.0.5"
|
187 |
+
}
|
188 |
+
},
|
189 |
+
"node_modules/@codemirror/search": {
|
190 |
+
"version": "6.5.6",
|
191 |
+
"resolved": "https://registry.npmjs.org/@codemirror/search/-/search-6.5.6.tgz",
|
192 |
+
"integrity": "sha512-rpMgcsh7o0GuCDUXKPvww+muLA1pDJaFrpq/CCHtpQJYz8xopu4D1hPcKRoDD0YlF8gZaqTNIRa4VRBWyhyy7Q==",
|
193 |
+
"dependencies": {
|
194 |
+
"@codemirror/state": "^6.0.0",
|
195 |
+
"@codemirror/view": "^6.0.0",
|
196 |
+
"crelt": "^1.0.5"
|
197 |
+
}
|
198 |
+
},
|
199 |
+
"node_modules/@codemirror/state": {
|
200 |
+
"version": "6.4.1",
|
201 |
+
"resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.4.1.tgz",
|
202 |
+
"integrity": "sha512-QkEyUiLhsJoZkbumGZlswmAhA7CBU02Wrz7zvH4SrcifbsqwlXShVXg65f3v/ts57W3dqyamEriMhij1Z3Zz4A=="
|
203 |
+
},
|
204 |
+
"node_modules/@codemirror/view": {
|
205 |
+
"version": "6.26.1",
|
206 |
+
"resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.26.1.tgz",
|
207 |
+
"integrity": "sha512-wLw0t3R9AwOSQThdZ5Onw8QQtem5asE7+bPlnzc57eubPqiuJKIzwjMZ+C42vQett+iva+J8VgFV4RYWDBh5FA==",
|
208 |
+
"dependencies": {
|
209 |
+
"@codemirror/state": "^6.4.0",
|
210 |
+
"style-mod": "^4.1.0",
|
211 |
+
"w3c-keyname": "^2.2.4"
|
212 |
+
}
|
213 |
+
},
|
214 |
+
"node_modules/@esbuild/aix-ppc64": {
|
215 |
+
"version": "0.19.12",
|
216 |
+
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz",
|
217 |
+
"integrity": "sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==",
|
218 |
+
"cpu": [
|
219 |
+
"ppc64"
|
220 |
+
],
|
221 |
+
"optional": true,
|
222 |
+
"os": [
|
223 |
+
"aix"
|
224 |
+
],
|
225 |
+
"engines": {
|
226 |
+
"node": ">=12"
|
227 |
+
}
|
228 |
+
},
|
229 |
+
"node_modules/@esbuild/android-arm": {
|
230 |
+
"version": "0.19.12",
|
231 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.12.tgz",
|
232 |
+
"integrity": "sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==",
|
233 |
+
"cpu": [
|
234 |
+
"arm"
|
235 |
+
],
|
236 |
+
"optional": true,
|
237 |
+
"os": [
|
238 |
+
"android"
|
239 |
+
],
|
240 |
+
"engines": {
|
241 |
+
"node": ">=12"
|
242 |
+
}
|
243 |
+
},
|
244 |
+
"node_modules/@esbuild/android-arm64": {
|
245 |
+
"version": "0.19.12",
|
246 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.12.tgz",
|
247 |
+
"integrity": "sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==",
|
248 |
+
"cpu": [
|
249 |
+
"arm64"
|
250 |
+
],
|
251 |
+
"optional": true,
|
252 |
+
"os": [
|
253 |
+
"android"
|
254 |
+
],
|
255 |
+
"engines": {
|
256 |
+
"node": ">=12"
|
257 |
+
}
|
258 |
+
},
|
259 |
+
"node_modules/@esbuild/android-x64": {
|
260 |
+
"version": "0.19.12",
|
261 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.12.tgz",
|
262 |
+
"integrity": "sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==",
|
263 |
+
"cpu": [
|
264 |
+
"x64"
|
265 |
+
],
|
266 |
+
"optional": true,
|
267 |
+
"os": [
|
268 |
+
"android"
|
269 |
+
],
|
270 |
+
"engines": {
|
271 |
+
"node": ">=12"
|
272 |
+
}
|
273 |
+
},
|
274 |
+
"node_modules/@esbuild/darwin-arm64": {
|
275 |
+
"version": "0.19.12",
|
276 |
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.12.tgz",
|
277 |
+
"integrity": "sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==",
|
278 |
+
"cpu": [
|
279 |
+
"arm64"
|
280 |
+
],
|
281 |
+
"optional": true,
|
282 |
+
"os": [
|
283 |
+
"darwin"
|
284 |
+
],
|
285 |
+
"engines": {
|
286 |
+
"node": ">=12"
|
287 |
+
}
|
288 |
+
},
|
289 |
+
"node_modules/@esbuild/darwin-x64": {
|
290 |
+
"version": "0.19.12",
|
291 |
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.12.tgz",
|
292 |
+
"integrity": "sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==",
|
293 |
+
"cpu": [
|
294 |
+
"x64"
|
295 |
+
],
|
296 |
+
"optional": true,
|
297 |
+
"os": [
|
298 |
+
"darwin"
|
299 |
+
],
|
300 |
+
"engines": {
|
301 |
+
"node": ">=12"
|
302 |
+
}
|
303 |
+
},
|
304 |
+
"node_modules/@esbuild/freebsd-arm64": {
|
305 |
+
"version": "0.19.12",
|
306 |
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.12.tgz",
|
307 |
+
"integrity": "sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==",
|
308 |
+
"cpu": [
|
309 |
+
"arm64"
|
310 |
+
],
|
311 |
+
"optional": true,
|
312 |
+
"os": [
|
313 |
+
"freebsd"
|
314 |
+
],
|
315 |
+
"engines": {
|
316 |
+
"node": ">=12"
|
317 |
+
}
|
318 |
+
},
|
319 |
+
"node_modules/@esbuild/freebsd-x64": {
|
320 |
+
"version": "0.19.12",
|
321 |
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.12.tgz",
|
322 |
+
"integrity": "sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==",
|
323 |
+
"cpu": [
|
324 |
+
"x64"
|
325 |
+
],
|
326 |
+
"optional": true,
|
327 |
+
"os": [
|
328 |
+
"freebsd"
|
329 |
+
],
|
330 |
+
"engines": {
|
331 |
+
"node": ">=12"
|
332 |
+
}
|
333 |
+
},
|
334 |
+
"node_modules/@esbuild/linux-arm": {
|
335 |
+
"version": "0.19.12",
|
336 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.12.tgz",
|
337 |
+
"integrity": "sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==",
|
338 |
+
"cpu": [
|
339 |
+
"arm"
|
340 |
+
],
|
341 |
+
"optional": true,
|
342 |
+
"os": [
|
343 |
+
"linux"
|
344 |
+
],
|
345 |
+
"engines": {
|
346 |
+
"node": ">=12"
|
347 |
+
}
|
348 |
+
},
|
349 |
+
"node_modules/@esbuild/linux-arm64": {
|
350 |
+
"version": "0.19.12",
|
351 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.12.tgz",
|
352 |
+
"integrity": "sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==",
|
353 |
+
"cpu": [
|
354 |
+
"arm64"
|
355 |
+
],
|
356 |
+
"optional": true,
|
357 |
+
"os": [
|
358 |
+
"linux"
|
359 |
+
],
|
360 |
+
"engines": {
|
361 |
+
"node": ">=12"
|
362 |
+
}
|
363 |
+
},
|
364 |
+
"node_modules/@esbuild/linux-ia32": {
|
365 |
+
"version": "0.19.12",
|
366 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.12.tgz",
|
367 |
+
"integrity": "sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==",
|
368 |
+
"cpu": [
|
369 |
+
"ia32"
|
370 |
+
],
|
371 |
+
"optional": true,
|
372 |
+
"os": [
|
373 |
+
"linux"
|
374 |
+
],
|
375 |
+
"engines": {
|
376 |
+
"node": ">=12"
|
377 |
+
}
|
378 |
+
},
|
379 |
+
"node_modules/@esbuild/linux-loong64": {
|
380 |
+
"version": "0.19.12",
|
381 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.12.tgz",
|
382 |
+
"integrity": "sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==",
|
383 |
+
"cpu": [
|
384 |
+
"loong64"
|
385 |
+
],
|
386 |
+
"optional": true,
|
387 |
+
"os": [
|
388 |
+
"linux"
|
389 |
+
],
|
390 |
+
"engines": {
|
391 |
+
"node": ">=12"
|
392 |
+
}
|
393 |
+
},
|
394 |
+
"node_modules/@esbuild/linux-mips64el": {
|
395 |
+
"version": "0.19.12",
|
396 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.12.tgz",
|
397 |
+
"integrity": "sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==",
|
398 |
+
"cpu": [
|
399 |
+
"mips64el"
|
400 |
+
],
|
401 |
+
"optional": true,
|
402 |
+
"os": [
|
403 |
+
"linux"
|
404 |
+
],
|
405 |
+
"engines": {
|
406 |
+
"node": ">=12"
|
407 |
+
}
|
408 |
+
},
|
409 |
+
"node_modules/@esbuild/linux-ppc64": {
|
410 |
+
"version": "0.19.12",
|
411 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.12.tgz",
|
412 |
+
"integrity": "sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==",
|
413 |
+
"cpu": [
|
414 |
+
"ppc64"
|
415 |
+
],
|
416 |
+
"optional": true,
|
417 |
+
"os": [
|
418 |
+
"linux"
|
419 |
+
],
|
420 |
+
"engines": {
|
421 |
+
"node": ">=12"
|
422 |
+
}
|
423 |
+
},
|
424 |
+
"node_modules/@esbuild/linux-riscv64": {
|
425 |
+
"version": "0.19.12",
|
426 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.12.tgz",
|
427 |
+
"integrity": "sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==",
|
428 |
+
"cpu": [
|
429 |
+
"riscv64"
|
430 |
+
],
|
431 |
+
"optional": true,
|
432 |
+
"os": [
|
433 |
+
"linux"
|
434 |
+
],
|
435 |
+
"engines": {
|
436 |
+
"node": ">=12"
|
437 |
+
}
|
438 |
+
},
|
439 |
+
"node_modules/@esbuild/linux-s390x": {
|
440 |
+
"version": "0.19.12",
|
441 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.12.tgz",
|
442 |
+
"integrity": "sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==",
|
443 |
+
"cpu": [
|
444 |
+
"s390x"
|
445 |
+
],
|
446 |
+
"optional": true,
|
447 |
+
"os": [
|
448 |
+
"linux"
|
449 |
+
],
|
450 |
+
"engines": {
|
451 |
+
"node": ">=12"
|
452 |
+
}
|
453 |
+
},
|
454 |
+
"node_modules/@esbuild/linux-x64": {
|
455 |
+
"version": "0.19.12",
|
456 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.12.tgz",
|
457 |
+
"integrity": "sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==",
|
458 |
+
"cpu": [
|
459 |
+
"x64"
|
460 |
+
],
|
461 |
+
"optional": true,
|
462 |
+
"os": [
|
463 |
+
"linux"
|
464 |
+
],
|
465 |
+
"engines": {
|
466 |
+
"node": ">=12"
|
467 |
+
}
|
468 |
+
},
|
469 |
+
"node_modules/@esbuild/netbsd-x64": {
|
470 |
+
"version": "0.19.12",
|
471 |
+
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.12.tgz",
|
472 |
+
"integrity": "sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==",
|
473 |
+
"cpu": [
|
474 |
+
"x64"
|
475 |
+
],
|
476 |
+
"optional": true,
|
477 |
+
"os": [
|
478 |
+
"netbsd"
|
479 |
+
],
|
480 |
+
"engines": {
|
481 |
+
"node": ">=12"
|
482 |
+
}
|
483 |
+
},
|
484 |
+
"node_modules/@esbuild/openbsd-x64": {
|
485 |
+
"version": "0.19.12",
|
486 |
+
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.12.tgz",
|
487 |
+
"integrity": "sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==",
|
488 |
+
"cpu": [
|
489 |
+
"x64"
|
490 |
+
],
|
491 |
+
"optional": true,
|
492 |
+
"os": [
|
493 |
+
"openbsd"
|
494 |
+
],
|
495 |
+
"engines": {
|
496 |
+
"node": ">=12"
|
497 |
+
}
|
498 |
+
},
|
499 |
+
"node_modules/@esbuild/sunos-x64": {
|
500 |
+
"version": "0.19.12",
|
501 |
+
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.12.tgz",
|
502 |
+
"integrity": "sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==",
|
503 |
+
"cpu": [
|
504 |
+
"x64"
|
505 |
+
],
|
506 |
+
"optional": true,
|
507 |
+
"os": [
|
508 |
+
"sunos"
|
509 |
+
],
|
510 |
+
"engines": {
|
511 |
+
"node": ">=12"
|
512 |
+
}
|
513 |
+
},
|
514 |
+
"node_modules/@esbuild/win32-arm64": {
|
515 |
+
"version": "0.19.12",
|
516 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.12.tgz",
|
517 |
+
"integrity": "sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==",
|
518 |
+
"cpu": [
|
519 |
+
"arm64"
|
520 |
+
],
|
521 |
+
"optional": true,
|
522 |
+
"os": [
|
523 |
+
"win32"
|
524 |
+
],
|
525 |
+
"engines": {
|
526 |
+
"node": ">=12"
|
527 |
+
}
|
528 |
+
},
|
529 |
+
"node_modules/@esbuild/win32-ia32": {
|
530 |
+
"version": "0.19.12",
|
531 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.12.tgz",
|
532 |
+
"integrity": "sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==",
|
533 |
+
"cpu": [
|
534 |
+
"ia32"
|
535 |
+
],
|
536 |
+
"optional": true,
|
537 |
+
"os": [
|
538 |
+
"win32"
|
539 |
+
],
|
540 |
+
"engines": {
|
541 |
+
"node": ">=12"
|
542 |
+
}
|
543 |
+
},
|
544 |
+
"node_modules/@esbuild/win32-x64": {
|
545 |
+
"version": "0.19.12",
|
546 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.12.tgz",
|
547 |
+
"integrity": "sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==",
|
548 |
+
"cpu": [
|
549 |
+
"x64"
|
550 |
+
],
|
551 |
+
"optional": true,
|
552 |
+
"os": [
|
553 |
+
"win32"
|
554 |
+
],
|
555 |
+
"engines": {
|
556 |
+
"node": ">=12"
|
557 |
+
}
|
558 |
+
},
|
559 |
+
"node_modules/@formatjs/ecma402-abstract": {
|
560 |
+
"version": "1.11.4",
|
561 |
+
"resolved": "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-1.11.4.tgz",
|
562 |
+
"integrity": "sha512-EBikYFp2JCdIfGEb5G9dyCkTGDmC57KSHhRQOC3aYxoPWVZvfWCDjZwkGYHN7Lis/fmuWl906bnNTJifDQ3sXw==",
|
563 |
+
"dependencies": {
|
564 |
+
"@formatjs/intl-localematcher": "0.2.25",
|
565 |
+
"tslib": "^2.1.0"
|
566 |
+
}
|
567 |
+
},
|
568 |
+
"node_modules/@formatjs/fast-memoize": {
|
569 |
+
"version": "1.2.1",
|
570 |
+
"resolved": "https://registry.npmjs.org/@formatjs/fast-memoize/-/fast-memoize-1.2.1.tgz",
|
571 |
+
"integrity": "sha512-Rg0e76nomkz3vF9IPlKeV+Qynok0r7YZjL6syLz4/urSg0IbjPZCB/iYUMNsYA643gh4mgrX3T7KEIFIxJBQeg==",
|
572 |
+
"dependencies": {
|
573 |
+
"tslib": "^2.1.0"
|
574 |
+
}
|
575 |
+
},
|
576 |
+
"node_modules/@formatjs/icu-messageformat-parser": {
|
577 |
+
"version": "2.1.0",
|
578 |
+
"resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.1.0.tgz",
|
579 |
+
"integrity": "sha512-Qxv/lmCN6hKpBSss2uQ8IROVnta2r9jd3ymUEIjm2UyIkUCHVcbUVRGL/KS/wv7876edvsPe+hjHVJ4z8YuVaw==",
|
580 |
+
"dependencies": {
|
581 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
582 |
+
"@formatjs/icu-skeleton-parser": "1.3.6",
|
583 |
+
"tslib": "^2.1.0"
|
584 |
+
}
|
585 |
+
},
|
586 |
+
"node_modules/@formatjs/icu-skeleton-parser": {
|
587 |
+
"version": "1.3.6",
|
588 |
+
"resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.3.6.tgz",
|
589 |
+
"integrity": "sha512-I96mOxvml/YLrwU2Txnd4klA7V8fRhb6JG/4hm3VMNmeJo1F03IpV2L3wWt7EweqNLES59SZ4d6hVOPCSf80Bg==",
|
590 |
+
"dependencies": {
|
591 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
592 |
+
"tslib": "^2.1.0"
|
593 |
+
}
|
594 |
+
},
|
595 |
+
"node_modules/@formatjs/intl-localematcher": {
|
596 |
+
"version": "0.2.25",
|
597 |
+
"resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.2.25.tgz",
|
598 |
+
"integrity": "sha512-YmLcX70BxoSopLFdLr1Ds99NdlTI2oWoLbaUW2M406lxOIPzE1KQhRz2fPUkq34xVZQaihCoU29h0KK7An3bhA==",
|
599 |
+
"dependencies": {
|
600 |
+
"tslib": "^2.1.0"
|
601 |
+
}
|
602 |
+
},
|
603 |
+
"node_modules/@gradio/atoms": {
|
604 |
+
"version": "0.6.1",
|
605 |
+
"resolved": "https://registry.npmjs.org/@gradio/atoms/-/atoms-0.6.1.tgz",
|
606 |
+
"integrity": "sha512-u7+cleKA0Et6AhEq5xTiaGIAYPR2He7/JSYcM3Sg+vkFOXhbJTPUnHLub+y9HiseheEmnZDGddFBr+RL5Jaxbg==",
|
607 |
+
"dependencies": {
|
608 |
+
"@gradio/icons": "^0.3.4",
|
609 |
+
"@gradio/utils": "^0.3.0"
|
610 |
+
}
|
611 |
+
},
|
612 |
+
"node_modules/@gradio/client": {
|
613 |
+
"version": "0.15.0",
|
614 |
+
"resolved": "https://registry.npmjs.org/@gradio/client/-/client-0.15.0.tgz",
|
615 |
+
"integrity": "sha512-WQtLRy7mZYR07UsriSLHh3E/zwv53LzQGVCeEz6ue4YwsqEgaDrDwKIGjnpkL06HaZ94Gy/dAvZvUDI4MCO62g==",
|
616 |
+
"dependencies": {
|
617 |
+
"bufferutil": "^4.0.7",
|
618 |
+
"semiver": "^1.1.0",
|
619 |
+
"ws": "^8.13.0"
|
620 |
+
},
|
621 |
+
"engines": {
|
622 |
+
"node": ">=18.0.0"
|
623 |
+
}
|
624 |
+
},
|
625 |
+
"node_modules/@gradio/column": {
|
626 |
+
"version": "0.1.0",
|
627 |
+
"resolved": "https://registry.npmjs.org/@gradio/column/-/column-0.1.0.tgz",
|
628 |
+
"integrity": "sha512-P24nqqVnMXBaDA1f/zSN5HZRho4PxP8Dq+7VltPHlmxIEiZYik2AJ4J0LeuIha34FDO0guu/16evdrpvGIUAfw=="
|
629 |
+
},
|
630 |
+
"node_modules/@gradio/icons": {
|
631 |
+
"version": "0.3.4",
|
632 |
+
"resolved": "https://registry.npmjs.org/@gradio/icons/-/icons-0.3.4.tgz",
|
633 |
+
"integrity": "sha512-rtH7u3OiYy9UuO1bnebXkTXgc+D62H6BILrMtM4EfsKGgQQICD0n7NPvbPtS0zpi/fz0ppCdlfFIKKIOeVaeFg=="
|
634 |
+
},
|
635 |
+
"node_modules/@gradio/statustracker": {
|
636 |
+
"version": "0.4.10",
|
637 |
+
"resolved": "https://registry.npmjs.org/@gradio/statustracker/-/statustracker-0.4.10.tgz",
|
638 |
+
"integrity": "sha512-1uM30C6L/E26czWZE+a8w1Y5g4FuVkfR59ZxhfL6KfWyERJmhlA8iFWrCCrS4uPZ6wFDXDsY6Im8jqL15uqPzg==",
|
639 |
+
"dependencies": {
|
640 |
+
"@gradio/atoms": "^0.6.1",
|
641 |
+
"@gradio/column": "^0.1.0",
|
642 |
+
"@gradio/icons": "^0.3.4",
|
643 |
+
"@gradio/utils": "^0.3.0"
|
644 |
+
}
|
645 |
+
},
|
646 |
+
"node_modules/@gradio/theme": {
|
647 |
+
"version": "0.2.0",
|
648 |
+
"resolved": "https://registry.npmjs.org/@gradio/theme/-/theme-0.2.0.tgz",
|
649 |
+
"integrity": "sha512-33c68Nk7oRXLn08OxPfjcPm7S4tXGOUV1I1bVgzdM2YV5o1QBOS1GEnXPZPu/CEYPePLMB6bsDwffrLEyLGWVQ=="
|
650 |
+
},
|
651 |
+
"node_modules/@gradio/upload": {
|
652 |
+
"version": "0.8.3",
|
653 |
+
"resolved": "https://registry.npmjs.org/@gradio/upload/-/upload-0.8.3.tgz",
|
654 |
+
"integrity": "sha512-rufkvHPn1CwEuo/dgDMbSdLAG6m5poTT0hyDYnqdRkIAeBi6gU73xPylKUdQcVBIJvYGexkTU83jij4pnet6yQ==",
|
655 |
+
"dependencies": {
|
656 |
+
"@gradio/atoms": "^0.6.1",
|
657 |
+
"@gradio/client": "^0.15.0",
|
658 |
+
"@gradio/icons": "^0.3.4",
|
659 |
+
"@gradio/upload": "^0.8.3",
|
660 |
+
"@gradio/utils": "^0.3.0",
|
661 |
+
"@gradio/wasm": "^0.10.0"
|
662 |
+
}
|
663 |
+
},
|
664 |
+
"node_modules/@gradio/utils": {
|
665 |
+
"version": "0.3.0",
|
666 |
+
"resolved": "https://registry.npmjs.org/@gradio/utils/-/utils-0.3.0.tgz",
|
667 |
+
"integrity": "sha512-VxP0h7UoWazkdSB875ChvTXWamBwMguuRc+8OyQFZjdj14lcqLEQuj54es3FDBpXOp5GMLFh48Q5FLLjYxMgSg==",
|
668 |
+
"dependencies": {
|
669 |
+
"@gradio/theme": "^0.2.0",
|
670 |
+
"svelte-i18n": "^3.6.0"
|
671 |
+
}
|
672 |
+
},
|
673 |
+
"node_modules/@gradio/wasm": {
|
674 |
+
"version": "0.10.0",
|
675 |
+
"resolved": "https://registry.npmjs.org/@gradio/wasm/-/wasm-0.10.0.tgz",
|
676 |
+
"integrity": "sha512-ephuiuimvMad6KzNPz/3OdnjgE5wsJdVfAAqu+J0qloetbH42LfeRLsVe5WqGo2WpjzXq5MC8I8MJ7lpQMhUpw==",
|
677 |
+
"dependencies": {
|
678 |
+
"@types/path-browserify": "^1.0.0",
|
679 |
+
"path-browserify": "^1.0.1"
|
680 |
+
}
|
681 |
+
},
|
682 |
+
"node_modules/@jridgewell/gen-mapping": {
|
683 |
+
"version": "0.3.5",
|
684 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz",
|
685 |
+
"integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==",
|
686 |
+
"peer": true,
|
687 |
+
"dependencies": {
|
688 |
+
"@jridgewell/set-array": "^1.2.1",
|
689 |
+
"@jridgewell/sourcemap-codec": "^1.4.10",
|
690 |
+
"@jridgewell/trace-mapping": "^0.3.24"
|
691 |
+
},
|
692 |
+
"engines": {
|
693 |
+
"node": ">=6.0.0"
|
694 |
+
}
|
695 |
+
},
|
696 |
+
"node_modules/@jridgewell/resolve-uri": {
|
697 |
+
"version": "3.1.2",
|
698 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
|
699 |
+
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
|
700 |
+
"peer": true,
|
701 |
+
"engines": {
|
702 |
+
"node": ">=6.0.0"
|
703 |
+
}
|
704 |
+
},
|
705 |
+
"node_modules/@jridgewell/set-array": {
|
706 |
+
"version": "1.2.1",
|
707 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz",
|
708 |
+
"integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==",
|
709 |
+
"peer": true,
|
710 |
+
"engines": {
|
711 |
+
"node": ">=6.0.0"
|
712 |
+
}
|
713 |
+
},
|
714 |
+
"node_modules/@jridgewell/sourcemap-codec": {
|
715 |
+
"version": "1.4.15",
|
716 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
|
717 |
+
"integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==",
|
718 |
+
"peer": true
|
719 |
+
},
|
720 |
+
"node_modules/@jridgewell/trace-mapping": {
|
721 |
+
"version": "0.3.25",
|
722 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz",
|
723 |
+
"integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==",
|
724 |
+
"peer": true,
|
725 |
+
"dependencies": {
|
726 |
+
"@jridgewell/resolve-uri": "^3.1.0",
|
727 |
+
"@jridgewell/sourcemap-codec": "^1.4.14"
|
728 |
+
}
|
729 |
+
},
|
730 |
+
"node_modules/@lezer/common": {
|
731 |
+
"version": "1.2.1",
|
732 |
+
"resolved": "https://registry.npmjs.org/@lezer/common/-/common-1.2.1.tgz",
|
733 |
+
"integrity": "sha512-yemX0ZD2xS/73llMZIK6KplkjIjf2EvAHcinDi/TfJ9hS25G0388+ClHt6/3but0oOxinTcQHJLDXh6w1crzFQ=="
|
734 |
+
},
|
735 |
+
"node_modules/@lezer/css": {
|
736 |
+
"version": "1.1.8",
|
737 |
+
"resolved": "https://registry.npmjs.org/@lezer/css/-/css-1.1.8.tgz",
|
738 |
+
"integrity": "sha512-7JhxupKuMBaWQKjQoLtzhGj83DdnZY9MckEOG5+/iLKNK2ZJqKc6hf6uc0HjwCX7Qlok44jBNqZhHKDhEhZYLA==",
|
739 |
+
"dependencies": {
|
740 |
+
"@lezer/common": "^1.2.0",
|
741 |
+
"@lezer/highlight": "^1.0.0",
|
742 |
+
"@lezer/lr": "^1.0.0"
|
743 |
+
}
|
744 |
+
},
|
745 |
+
"node_modules/@lezer/highlight": {
|
746 |
+
"version": "1.2.0",
|
747 |
+
"resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.2.0.tgz",
|
748 |
+
"integrity": "sha512-WrS5Mw51sGrpqjlh3d4/fOwpEV2Hd3YOkp9DBt4k8XZQcoTHZFB7sx030A6OcahF4J1nDQAa3jXlTVVYH50IFA==",
|
749 |
+
"dependencies": {
|
750 |
+
"@lezer/common": "^1.0.0"
|
751 |
+
}
|
752 |
+
},
|
753 |
+
"node_modules/@lezer/html": {
|
754 |
+
"version": "1.3.9",
|
755 |
+
"resolved": "https://registry.npmjs.org/@lezer/html/-/html-1.3.9.tgz",
|
756 |
+
"integrity": "sha512-MXxeCMPyrcemSLGaTQEZx0dBUH0i+RPl8RN5GwMAzo53nTsd/Unc/t5ZxACeQoyPUM5/GkPLRUs2WliOImzkRA==",
|
757 |
+
"dependencies": {
|
758 |
+
"@lezer/common": "^1.2.0",
|
759 |
+
"@lezer/highlight": "^1.0.0",
|
760 |
+
"@lezer/lr": "^1.0.0"
|
761 |
+
}
|
762 |
+
},
|
763 |
+
"node_modules/@lezer/javascript": {
|
764 |
+
"version": "1.4.14",
|
765 |
+
"resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.4.14.tgz",
|
766 |
+
"integrity": "sha512-GEdUyspTRgc5dwIGebUk+f3BekvqEWVIYsIuAC3pA8e8wcikGwBZRWRa450L0s8noGWuULwnmi4yjxTnYz9PpA==",
|
767 |
+
"dependencies": {
|
768 |
+
"@lezer/common": "^1.2.0",
|
769 |
+
"@lezer/highlight": "^1.1.3",
|
770 |
+
"@lezer/lr": "^1.3.0"
|
771 |
+
}
|
772 |
+
},
|
773 |
+
"node_modules/@lezer/json": {
|
774 |
+
"version": "1.0.2",
|
775 |
+
"resolved": "https://registry.npmjs.org/@lezer/json/-/json-1.0.2.tgz",
|
776 |
+
"integrity": "sha512-xHT2P4S5eeCYECyKNPhr4cbEL9tc8w83SPwRC373o9uEdrvGKTZoJVAGxpOsZckMlEh9W23Pc72ew918RWQOBQ==",
|
777 |
+
"dependencies": {
|
778 |
+
"@lezer/common": "^1.2.0",
|
779 |
+
"@lezer/highlight": "^1.0.0",
|
780 |
+
"@lezer/lr": "^1.0.0"
|
781 |
+
}
|
782 |
+
},
|
783 |
+
"node_modules/@lezer/lr": {
|
784 |
+
"version": "1.4.0",
|
785 |
+
"resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.0.tgz",
|
786 |
+
"integrity": "sha512-Wst46p51km8gH0ZUmeNrtpRYmdlRHUpN1DQd3GFAyKANi8WVz8c2jHYTf1CVScFaCjQw1iO3ZZdqGDxQPRErTg==",
|
787 |
+
"dependencies": {
|
788 |
+
"@lezer/common": "^1.0.0"
|
789 |
+
}
|
790 |
+
},
|
791 |
+
"node_modules/@lezer/markdown": {
|
792 |
+
"version": "1.2.0",
|
793 |
+
"resolved": "https://registry.npmjs.org/@lezer/markdown/-/markdown-1.2.0.tgz",
|
794 |
+
"integrity": "sha512-d7MwsfAukZJo1GpPrcPGa3MxaFFOqNp0gbqF+3F7pTeNDOgeJN1muXzx1XXDPt+Ac+/voCzsH7qXqnn+xReG/g==",
|
795 |
+
"dependencies": {
|
796 |
+
"@lezer/common": "^1.0.0",
|
797 |
+
"@lezer/highlight": "^1.0.0"
|
798 |
+
}
|
799 |
+
},
|
800 |
+
"node_modules/@lezer/python": {
|
801 |
+
"version": "1.1.13",
|
802 |
+
"resolved": "https://registry.npmjs.org/@lezer/python/-/python-1.1.13.tgz",
|
803 |
+
"integrity": "sha512-AdbRAtdQq94PfTNd4kqMEJhH2fqa2JdoyyqqVewY6w34w2Gi6dg2JuOtOgR21Bi0zP9r0KjSSHOUq/tP7FVT8A==",
|
804 |
+
"dependencies": {
|
805 |
+
"@lezer/common": "^1.2.0",
|
806 |
+
"@lezer/highlight": "^1.0.0",
|
807 |
+
"@lezer/lr": "^1.0.0"
|
808 |
+
}
|
809 |
+
},
|
810 |
+
"node_modules/@types/estree": {
|
811 |
+
"version": "1.0.5",
|
812 |
+
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz",
|
813 |
+
"integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==",
|
814 |
+
"peer": true
|
815 |
+
},
|
816 |
+
"node_modules/@types/path-browserify": {
|
817 |
+
"version": "1.0.2",
|
818 |
+
"resolved": "https://registry.npmjs.org/@types/path-browserify/-/path-browserify-1.0.2.tgz",
|
819 |
+
"integrity": "sha512-ZkC5IUqqIFPXx3ASTTybTzmQdwHwe2C0u3eL75ldQ6T9E9IWFJodn6hIfbZGab73DfyiHN4Xw15gNxUq2FbvBA=="
|
820 |
+
},
|
821 |
+
"node_modules/acorn": {
|
822 |
+
"version": "8.11.3",
|
823 |
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz",
|
824 |
+
"integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==",
|
825 |
+
"peer": true,
|
826 |
+
"bin": {
|
827 |
+
"acorn": "bin/acorn"
|
828 |
+
},
|
829 |
+
"engines": {
|
830 |
+
"node": ">=0.4.0"
|
831 |
+
}
|
832 |
+
},
|
833 |
+
"node_modules/aria-query": {
|
834 |
+
"version": "5.3.0",
|
835 |
+
"resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
|
836 |
+
"integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",
|
837 |
+
"peer": true,
|
838 |
+
"dependencies": {
|
839 |
+
"dequal": "^2.0.3"
|
840 |
+
}
|
841 |
+
},
|
842 |
+
"node_modules/axobject-query": {
|
843 |
+
"version": "4.0.0",
|
844 |
+
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.0.0.tgz",
|
845 |
+
"integrity": "sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw==",
|
846 |
+
"peer": true,
|
847 |
+
"dependencies": {
|
848 |
+
"dequal": "^2.0.3"
|
849 |
+
}
|
850 |
+
},
|
851 |
+
"node_modules/bufferutil": {
|
852 |
+
"version": "4.0.8",
|
853 |
+
"resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.8.tgz",
|
854 |
+
"integrity": "sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==",
|
855 |
+
"hasInstallScript": true,
|
856 |
+
"dependencies": {
|
857 |
+
"node-gyp-build": "^4.3.0"
|
858 |
+
},
|
859 |
+
"engines": {
|
860 |
+
"node": ">=6.14.2"
|
861 |
+
}
|
862 |
+
},
|
863 |
+
"node_modules/cli-color": {
|
864 |
+
"version": "2.0.4",
|
865 |
+
"resolved": "https://registry.npmjs.org/cli-color/-/cli-color-2.0.4.tgz",
|
866 |
+
"integrity": "sha512-zlnpg0jNcibNrO7GG9IeHH7maWFeCz+Ja1wx/7tZNU5ASSSSZ+/qZciM0/LHCYxSdqv5h2sdbQ/PXYdOuetXvA==",
|
867 |
+
"dependencies": {
|
868 |
+
"d": "^1.0.1",
|
869 |
+
"es5-ext": "^0.10.64",
|
870 |
+
"es6-iterator": "^2.0.3",
|
871 |
+
"memoizee": "^0.4.15",
|
872 |
+
"timers-ext": "^0.1.7"
|
873 |
+
},
|
874 |
+
"engines": {
|
875 |
+
"node": ">=0.10"
|
876 |
+
}
|
877 |
+
},
|
878 |
+
"node_modules/cm6-theme-basic-dark": {
|
879 |
+
"version": "0.2.0",
|
880 |
+
"resolved": "https://registry.npmjs.org/cm6-theme-basic-dark/-/cm6-theme-basic-dark-0.2.0.tgz",
|
881 |
+
"integrity": "sha512-+mNNJecRtxS/KkloMDCQF0oTrT6aFGRZTjnBcdT5UG1pcDO4Brq8l1+0KR/8dZ7hub2gOGOzoi3rGFD8GzlH7Q==",
|
882 |
+
"peerDependencies": {
|
883 |
+
"@codemirror/language": "^6.0.0",
|
884 |
+
"@codemirror/state": "^6.0.0",
|
885 |
+
"@codemirror/view": "^6.0.0",
|
886 |
+
"@lezer/highlight": "^1.0.0"
|
887 |
+
}
|
888 |
+
},
|
889 |
+
"node_modules/cm6-theme-basic-light": {
|
890 |
+
"version": "0.2.0",
|
891 |
+
"resolved": "https://registry.npmjs.org/cm6-theme-basic-light/-/cm6-theme-basic-light-0.2.0.tgz",
|
892 |
+
"integrity": "sha512-1prg2gv44sYfpHscP26uLT/ePrh0mlmVwMSoSd3zYKQ92Ab3jPRLzyCnpyOCQLJbK+YdNs4HvMRqMNYdy4pMhA==",
|
893 |
+
"peerDependencies": {
|
894 |
+
"@codemirror/language": "^6.0.0",
|
895 |
+
"@codemirror/state": "^6.0.0",
|
896 |
+
"@codemirror/view": "^6.0.0",
|
897 |
+
"@lezer/highlight": "^1.0.0"
|
898 |
+
}
|
899 |
+
},
|
900 |
+
"node_modules/code-red": {
|
901 |
+
"version": "1.0.4",
|
902 |
+
"resolved": "https://registry.npmjs.org/code-red/-/code-red-1.0.4.tgz",
|
903 |
+
"integrity": "sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==",
|
904 |
+
"peer": true,
|
905 |
+
"dependencies": {
|
906 |
+
"@jridgewell/sourcemap-codec": "^1.4.15",
|
907 |
+
"@types/estree": "^1.0.1",
|
908 |
+
"acorn": "^8.10.0",
|
909 |
+
"estree-walker": "^3.0.3",
|
910 |
+
"periscopic": "^3.1.0"
|
911 |
+
}
|
912 |
+
},
|
913 |
+
"node_modules/codemirror": {
|
914 |
+
"version": "6.0.1",
|
915 |
+
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-6.0.1.tgz",
|
916 |
+
"integrity": "sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg==",
|
917 |
+
"dependencies": {
|
918 |
+
"@codemirror/autocomplete": "^6.0.0",
|
919 |
+
"@codemirror/commands": "^6.0.0",
|
920 |
+
"@codemirror/language": "^6.0.0",
|
921 |
+
"@codemirror/lint": "^6.0.0",
|
922 |
+
"@codemirror/search": "^6.0.0",
|
923 |
+
"@codemirror/state": "^6.0.0",
|
924 |
+
"@codemirror/view": "^6.0.0"
|
925 |
+
}
|
926 |
+
},
|
927 |
+
"node_modules/crelt": {
|
928 |
+
"version": "1.0.6",
|
929 |
+
"resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.6.tgz",
|
930 |
+
"integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g=="
|
931 |
+
},
|
932 |
+
"node_modules/css-tree": {
|
933 |
+
"version": "2.3.1",
|
934 |
+
"resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz",
|
935 |
+
"integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==",
|
936 |
+
"peer": true,
|
937 |
+
"dependencies": {
|
938 |
+
"mdn-data": "2.0.30",
|
939 |
+
"source-map-js": "^1.0.1"
|
940 |
+
},
|
941 |
+
"engines": {
|
942 |
+
"node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
|
943 |
+
}
|
944 |
+
},
|
945 |
+
"node_modules/d": {
|
946 |
+
"version": "1.0.2",
|
947 |
+
"resolved": "https://registry.npmjs.org/d/-/d-1.0.2.tgz",
|
948 |
+
"integrity": "sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==",
|
949 |
+
"dependencies": {
|
950 |
+
"es5-ext": "^0.10.64",
|
951 |
+
"type": "^2.7.2"
|
952 |
+
},
|
953 |
+
"engines": {
|
954 |
+
"node": ">=0.12"
|
955 |
+
}
|
956 |
+
},
|
957 |
+
"node_modules/deepmerge": {
|
958 |
+
"version": "4.3.1",
|
959 |
+
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
|
960 |
+
"integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",
|
961 |
+
"engines": {
|
962 |
+
"node": ">=0.10.0"
|
963 |
+
}
|
964 |
+
},
|
965 |
+
"node_modules/dequal": {
|
966 |
+
"version": "2.0.3",
|
967 |
+
"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
|
968 |
+
"integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
|
969 |
+
"peer": true,
|
970 |
+
"engines": {
|
971 |
+
"node": ">=6"
|
972 |
+
}
|
973 |
+
},
|
974 |
+
"node_modules/es5-ext": {
|
975 |
+
"version": "0.10.64",
|
976 |
+
"resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz",
|
977 |
+
"integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==",
|
978 |
+
"hasInstallScript": true,
|
979 |
+
"dependencies": {
|
980 |
+
"es6-iterator": "^2.0.3",
|
981 |
+
"es6-symbol": "^3.1.3",
|
982 |
+
"esniff": "^2.0.1",
|
983 |
+
"next-tick": "^1.1.0"
|
984 |
+
},
|
985 |
+
"engines": {
|
986 |
+
"node": ">=0.10"
|
987 |
+
}
|
988 |
+
},
|
989 |
+
"node_modules/es6-iterator": {
|
990 |
+
"version": "2.0.3",
|
991 |
+
"resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz",
|
992 |
+
"integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==",
|
993 |
+
"dependencies": {
|
994 |
+
"d": "1",
|
995 |
+
"es5-ext": "^0.10.35",
|
996 |
+
"es6-symbol": "^3.1.1"
|
997 |
+
}
|
998 |
+
},
|
999 |
+
"node_modules/es6-symbol": {
|
1000 |
+
"version": "3.1.4",
|
1001 |
+
"resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.4.tgz",
|
1002 |
+
"integrity": "sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==",
|
1003 |
+
"dependencies": {
|
1004 |
+
"d": "^1.0.2",
|
1005 |
+
"ext": "^1.7.0"
|
1006 |
+
},
|
1007 |
+
"engines": {
|
1008 |
+
"node": ">=0.12"
|
1009 |
+
}
|
1010 |
+
},
|
1011 |
+
"node_modules/es6-weak-map": {
|
1012 |
+
"version": "2.0.3",
|
1013 |
+
"resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz",
|
1014 |
+
"integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==",
|
1015 |
+
"dependencies": {
|
1016 |
+
"d": "1",
|
1017 |
+
"es5-ext": "^0.10.46",
|
1018 |
+
"es6-iterator": "^2.0.3",
|
1019 |
+
"es6-symbol": "^3.1.1"
|
1020 |
+
}
|
1021 |
+
},
|
1022 |
+
"node_modules/esbuild": {
|
1023 |
+
"version": "0.19.12",
|
1024 |
+
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.12.tgz",
|
1025 |
+
"integrity": "sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==",
|
1026 |
+
"hasInstallScript": true,
|
1027 |
+
"bin": {
|
1028 |
+
"esbuild": "bin/esbuild"
|
1029 |
+
},
|
1030 |
+
"engines": {
|
1031 |
+
"node": ">=12"
|
1032 |
+
},
|
1033 |
+
"optionalDependencies": {
|
1034 |
+
"@esbuild/aix-ppc64": "0.19.12",
|
1035 |
+
"@esbuild/android-arm": "0.19.12",
|
1036 |
+
"@esbuild/android-arm64": "0.19.12",
|
1037 |
+
"@esbuild/android-x64": "0.19.12",
|
1038 |
+
"@esbuild/darwin-arm64": "0.19.12",
|
1039 |
+
"@esbuild/darwin-x64": "0.19.12",
|
1040 |
+
"@esbuild/freebsd-arm64": "0.19.12",
|
1041 |
+
"@esbuild/freebsd-x64": "0.19.12",
|
1042 |
+
"@esbuild/linux-arm": "0.19.12",
|
1043 |
+
"@esbuild/linux-arm64": "0.19.12",
|
1044 |
+
"@esbuild/linux-ia32": "0.19.12",
|
1045 |
+
"@esbuild/linux-loong64": "0.19.12",
|
1046 |
+
"@esbuild/linux-mips64el": "0.19.12",
|
1047 |
+
"@esbuild/linux-ppc64": "0.19.12",
|
1048 |
+
"@esbuild/linux-riscv64": "0.19.12",
|
1049 |
+
"@esbuild/linux-s390x": "0.19.12",
|
1050 |
+
"@esbuild/linux-x64": "0.19.12",
|
1051 |
+
"@esbuild/netbsd-x64": "0.19.12",
|
1052 |
+
"@esbuild/openbsd-x64": "0.19.12",
|
1053 |
+
"@esbuild/sunos-x64": "0.19.12",
|
1054 |
+
"@esbuild/win32-arm64": "0.19.12",
|
1055 |
+
"@esbuild/win32-ia32": "0.19.12",
|
1056 |
+
"@esbuild/win32-x64": "0.19.12"
|
1057 |
+
}
|
1058 |
+
},
|
1059 |
+
"node_modules/esniff": {
|
1060 |
+
"version": "2.0.1",
|
1061 |
+
"resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz",
|
1062 |
+
"integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==",
|
1063 |
+
"dependencies": {
|
1064 |
+
"d": "^1.0.1",
|
1065 |
+
"es5-ext": "^0.10.62",
|
1066 |
+
"event-emitter": "^0.3.5",
|
1067 |
+
"type": "^2.7.2"
|
1068 |
+
},
|
1069 |
+
"engines": {
|
1070 |
+
"node": ">=0.10"
|
1071 |
+
}
|
1072 |
+
},
|
1073 |
+
"node_modules/estree-walker": {
|
1074 |
+
"version": "3.0.3",
|
1075 |
+
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
|
1076 |
+
"integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
|
1077 |
+
"peer": true,
|
1078 |
+
"dependencies": {
|
1079 |
+
"@types/estree": "^1.0.0"
|
1080 |
+
}
|
1081 |
+
},
|
1082 |
+
"node_modules/event-emitter": {
|
1083 |
+
"version": "0.3.5",
|
1084 |
+
"resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz",
|
1085 |
+
"integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==",
|
1086 |
+
"dependencies": {
|
1087 |
+
"d": "1",
|
1088 |
+
"es5-ext": "~0.10.14"
|
1089 |
+
}
|
1090 |
+
},
|
1091 |
+
"node_modules/ext": {
|
1092 |
+
"version": "1.7.0",
|
1093 |
+
"resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz",
|
1094 |
+
"integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==",
|
1095 |
+
"dependencies": {
|
1096 |
+
"type": "^2.7.2"
|
1097 |
+
}
|
1098 |
+
},
|
1099 |
+
"node_modules/globalyzer": {
|
1100 |
+
"version": "0.1.0",
|
1101 |
+
"resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz",
|
1102 |
+
"integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q=="
|
1103 |
+
},
|
1104 |
+
"node_modules/globrex": {
|
1105 |
+
"version": "0.1.2",
|
1106 |
+
"resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",
|
1107 |
+
"integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg=="
|
1108 |
+
},
|
1109 |
+
"node_modules/intl-messageformat": {
|
1110 |
+
"version": "9.13.0",
|
1111 |
+
"resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-9.13.0.tgz",
|
1112 |
+
"integrity": "sha512-7sGC7QnSQGa5LZP7bXLDhVDtQOeKGeBFGHF2Y8LVBwYZoQZCgWeKoPGTa5GMG8g/TzDgeXuYJQis7Ggiw2xTOw==",
|
1113 |
+
"dependencies": {
|
1114 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
1115 |
+
"@formatjs/fast-memoize": "1.2.1",
|
1116 |
+
"@formatjs/icu-messageformat-parser": "2.1.0",
|
1117 |
+
"tslib": "^2.1.0"
|
1118 |
+
}
|
1119 |
+
},
|
1120 |
+
"node_modules/is-promise": {
|
1121 |
+
"version": "2.2.2",
|
1122 |
+
"resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz",
|
1123 |
+
"integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ=="
|
1124 |
+
},
|
1125 |
+
"node_modules/is-reference": {
|
1126 |
+
"version": "3.0.2",
|
1127 |
+
"resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.2.tgz",
|
1128 |
+
"integrity": "sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==",
|
1129 |
+
"peer": true,
|
1130 |
+
"dependencies": {
|
1131 |
+
"@types/estree": "*"
|
1132 |
+
}
|
1133 |
+
},
|
1134 |
+
"node_modules/locate-character": {
|
1135 |
+
"version": "3.0.0",
|
1136 |
+
"resolved": "https://registry.npmjs.org/locate-character/-/locate-character-3.0.0.tgz",
|
1137 |
+
"integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==",
|
1138 |
+
"peer": true
|
1139 |
+
},
|
1140 |
+
"node_modules/lru-queue": {
|
1141 |
+
"version": "0.1.0",
|
1142 |
+
"resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz",
|
1143 |
+
"integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==",
|
1144 |
+
"dependencies": {
|
1145 |
+
"es5-ext": "~0.10.2"
|
1146 |
+
}
|
1147 |
+
},
|
1148 |
+
"node_modules/magic-string": {
|
1149 |
+
"version": "0.30.8",
|
1150 |
+
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.8.tgz",
|
1151 |
+
"integrity": "sha512-ISQTe55T2ao7XtlAStud6qwYPZjE4GK1S/BeVPus4jrq6JuOnQ00YKQC581RWhR122W7msZV263KzVeLoqidyQ==",
|
1152 |
+
"peer": true,
|
1153 |
+
"dependencies": {
|
1154 |
+
"@jridgewell/sourcemap-codec": "^1.4.15"
|
1155 |
+
},
|
1156 |
+
"engines": {
|
1157 |
+
"node": ">=12"
|
1158 |
+
}
|
1159 |
+
},
|
1160 |
+
"node_modules/mdn-data": {
|
1161 |
+
"version": "2.0.30",
|
1162 |
+
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",
|
1163 |
+
"integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==",
|
1164 |
+
"peer": true
|
1165 |
+
},
|
1166 |
+
"node_modules/memoizee": {
|
1167 |
+
"version": "0.4.15",
|
1168 |
+
"resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.15.tgz",
|
1169 |
+
"integrity": "sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ==",
|
1170 |
+
"dependencies": {
|
1171 |
+
"d": "^1.0.1",
|
1172 |
+
"es5-ext": "^0.10.53",
|
1173 |
+
"es6-weak-map": "^2.0.3",
|
1174 |
+
"event-emitter": "^0.3.5",
|
1175 |
+
"is-promise": "^2.2.2",
|
1176 |
+
"lru-queue": "^0.1.0",
|
1177 |
+
"next-tick": "^1.1.0",
|
1178 |
+
"timers-ext": "^0.1.7"
|
1179 |
+
}
|
1180 |
+
},
|
1181 |
+
"node_modules/mri": {
|
1182 |
+
"version": "1.2.0",
|
1183 |
+
"resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz",
|
1184 |
+
"integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==",
|
1185 |
+
"engines": {
|
1186 |
+
"node": ">=4"
|
1187 |
+
}
|
1188 |
+
},
|
1189 |
+
"node_modules/next-tick": {
|
1190 |
+
"version": "1.1.0",
|
1191 |
+
"resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz",
|
1192 |
+
"integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ=="
|
1193 |
+
},
|
1194 |
+
"node_modules/node-gyp-build": {
|
1195 |
+
"version": "4.8.0",
|
1196 |
+
"resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.0.tgz",
|
1197 |
+
"integrity": "sha512-u6fs2AEUljNho3EYTJNBfImO5QTo/J/1Etd+NVdCj7qWKUSN/bSLkZwhDv7I+w/MSC6qJ4cknepkAYykDdK8og==",
|
1198 |
+
"bin": {
|
1199 |
+
"node-gyp-build": "bin.js",
|
1200 |
+
"node-gyp-build-optional": "optional.js",
|
1201 |
+
"node-gyp-build-test": "build-test.js"
|
1202 |
+
}
|
1203 |
+
},
|
1204 |
+
"node_modules/path-browserify": {
|
1205 |
+
"version": "1.0.1",
|
1206 |
+
"resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz",
|
1207 |
+
"integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g=="
|
1208 |
+
},
|
1209 |
+
"node_modules/periscopic": {
|
1210 |
+
"version": "3.1.0",
|
1211 |
+
"resolved": "https://registry.npmjs.org/periscopic/-/periscopic-3.1.0.tgz",
|
1212 |
+
"integrity": "sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==",
|
1213 |
+
"peer": true,
|
1214 |
+
"dependencies": {
|
1215 |
+
"@types/estree": "^1.0.0",
|
1216 |
+
"estree-walker": "^3.0.0",
|
1217 |
+
"is-reference": "^3.0.0"
|
1218 |
+
}
|
1219 |
+
},
|
1220 |
+
"node_modules/sade": {
|
1221 |
+
"version": "1.8.1",
|
1222 |
+
"resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz",
|
1223 |
+
"integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==",
|
1224 |
+
"dependencies": {
|
1225 |
+
"mri": "^1.1.0"
|
1226 |
+
},
|
1227 |
+
"engines": {
|
1228 |
+
"node": ">=6"
|
1229 |
+
}
|
1230 |
+
},
|
1231 |
+
"node_modules/semiver": {
|
1232 |
+
"version": "1.1.0",
|
1233 |
+
"resolved": "https://registry.npmjs.org/semiver/-/semiver-1.1.0.tgz",
|
1234 |
+
"integrity": "sha512-QNI2ChmuioGC1/xjyYwyZYADILWyW6AmS1UH6gDj/SFUUUS4MBAWs/7mxnkRPc/F4iHezDP+O8t0dO8WHiEOdg==",
|
1235 |
+
"engines": {
|
1236 |
+
"node": ">=6"
|
1237 |
+
}
|
1238 |
+
},
|
1239 |
+
"node_modules/source-map-js": {
|
1240 |
+
"version": "1.2.0",
|
1241 |
+
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz",
|
1242 |
+
"integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==",
|
1243 |
+
"peer": true,
|
1244 |
+
"engines": {
|
1245 |
+
"node": ">=0.10.0"
|
1246 |
+
}
|
1247 |
+
},
|
1248 |
+
"node_modules/style-mod": {
|
1249 |
+
"version": "4.1.2",
|
1250 |
+
"resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.1.2.tgz",
|
1251 |
+
"integrity": "sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw=="
|
1252 |
+
},
|
1253 |
+
"node_modules/svelte": {
|
1254 |
+
"version": "4.2.12",
|
1255 |
+
"resolved": "https://registry.npmjs.org/svelte/-/svelte-4.2.12.tgz",
|
1256 |
+
"integrity": "sha512-d8+wsh5TfPwqVzbm4/HCXC783/KPHV60NvwitJnyTA5lWn1elhXMNWhXGCJ7PwPa8qFUnyJNIyuIRt2mT0WMug==",
|
1257 |
+
"peer": true,
|
1258 |
+
"dependencies": {
|
1259 |
+
"@ampproject/remapping": "^2.2.1",
|
1260 |
+
"@jridgewell/sourcemap-codec": "^1.4.15",
|
1261 |
+
"@jridgewell/trace-mapping": "^0.3.18",
|
1262 |
+
"@types/estree": "^1.0.1",
|
1263 |
+
"acorn": "^8.9.0",
|
1264 |
+
"aria-query": "^5.3.0",
|
1265 |
+
"axobject-query": "^4.0.0",
|
1266 |
+
"code-red": "^1.0.3",
|
1267 |
+
"css-tree": "^2.3.1",
|
1268 |
+
"estree-walker": "^3.0.3",
|
1269 |
+
"is-reference": "^3.0.1",
|
1270 |
+
"locate-character": "^3.0.0",
|
1271 |
+
"magic-string": "^0.30.4",
|
1272 |
+
"periscopic": "^3.1.0"
|
1273 |
+
},
|
1274 |
+
"engines": {
|
1275 |
+
"node": ">=16"
|
1276 |
+
}
|
1277 |
+
},
|
1278 |
+
"node_modules/svelte-i18n": {
|
1279 |
+
"version": "3.7.4",
|
1280 |
+
"resolved": "https://registry.npmjs.org/svelte-i18n/-/svelte-i18n-3.7.4.tgz",
|
1281 |
+
"integrity": "sha512-yGRCNo+eBT4cPuU7IVsYTYjxB7I2V8qgUZPlHnNctJj5IgbJgV78flsRzpjZ/8iUYZrS49oCt7uxlU3AZv/N5Q==",
|
1282 |
+
"dependencies": {
|
1283 |
+
"cli-color": "^2.0.3",
|
1284 |
+
"deepmerge": "^4.2.2",
|
1285 |
+
"esbuild": "^0.19.2",
|
1286 |
+
"estree-walker": "^2",
|
1287 |
+
"intl-messageformat": "^9.13.0",
|
1288 |
+
"sade": "^1.8.1",
|
1289 |
+
"tiny-glob": "^0.2.9"
|
1290 |
+
},
|
1291 |
+
"bin": {
|
1292 |
+
"svelte-i18n": "dist/cli.js"
|
1293 |
+
},
|
1294 |
+
"engines": {
|
1295 |
+
"node": ">= 16"
|
1296 |
+
},
|
1297 |
+
"peerDependencies": {
|
1298 |
+
"svelte": "^3 || ^4"
|
1299 |
+
}
|
1300 |
+
},
|
1301 |
+
"node_modules/svelte-i18n/node_modules/estree-walker": {
|
1302 |
+
"version": "2.0.2",
|
1303 |
+
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
|
1304 |
+
"integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="
|
1305 |
+
},
|
1306 |
+
"node_modules/timers-ext": {
|
1307 |
+
"version": "0.1.7",
|
1308 |
+
"resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.7.tgz",
|
1309 |
+
"integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==",
|
1310 |
+
"dependencies": {
|
1311 |
+
"es5-ext": "~0.10.46",
|
1312 |
+
"next-tick": "1"
|
1313 |
+
}
|
1314 |
+
},
|
1315 |
+
"node_modules/tiny-glob": {
|
1316 |
+
"version": "0.2.9",
|
1317 |
+
"resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz",
|
1318 |
+
"integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==",
|
1319 |
+
"dependencies": {
|
1320 |
+
"globalyzer": "0.1.0",
|
1321 |
+
"globrex": "^0.1.2"
|
1322 |
+
}
|
1323 |
+
},
|
1324 |
+
"node_modules/tslib": {
|
1325 |
+
"version": "2.6.2",
|
1326 |
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
|
1327 |
+
"integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q=="
|
1328 |
+
},
|
1329 |
+
"node_modules/type": {
|
1330 |
+
"version": "2.7.2",
|
1331 |
+
"resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz",
|
1332 |
+
"integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw=="
|
1333 |
+
},
|
1334 |
+
"node_modules/w3c-keyname": {
|
1335 |
+
"version": "2.2.8",
|
1336 |
+
"resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz",
|
1337 |
+
"integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ=="
|
1338 |
+
},
|
1339 |
+
"node_modules/ws": {
|
1340 |
+
"version": "8.16.0",
|
1341 |
+
"resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz",
|
1342 |
+
"integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==",
|
1343 |
+
"engines": {
|
1344 |
+
"node": ">=10.0.0"
|
1345 |
+
},
|
1346 |
+
"peerDependencies": {
|
1347 |
+
"bufferutil": "^4.0.1",
|
1348 |
+
"utf-8-validate": ">=5.0.2"
|
1349 |
+
},
|
1350 |
+
"peerDependenciesMeta": {
|
1351 |
+
"bufferutil": {
|
1352 |
+
"optional": true
|
1353 |
+
},
|
1354 |
+
"utf-8-validate": {
|
1355 |
+
"optional": true
|
1356 |
+
}
|
1357 |
+
}
|
1358 |
+
}
|
1359 |
+
},
|
1360 |
+
"dependencies": {
|
1361 |
+
"@ampproject/remapping": {
|
1362 |
+
"version": "2.3.0",
|
1363 |
+
"resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz",
|
1364 |
+
"integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==",
|
1365 |
+
"peer": true,
|
1366 |
+
"requires": {
|
1367 |
+
"@jridgewell/gen-mapping": "^0.3.5",
|
1368 |
+
"@jridgewell/trace-mapping": "^0.3.24"
|
1369 |
+
}
|
1370 |
+
},
|
1371 |
+
"@codemirror/autocomplete": {
|
1372 |
+
"version": "6.15.0",
|
1373 |
+
"resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.15.0.tgz",
|
1374 |
+
"integrity": "sha512-G2Zm0mXznxz97JhaaOdoEG2cVupn4JjPaS4AcNvZzhOsnnG9YVN68VzfoUw6dYTsIxT6a/cmoFEN47KAWhXaOg==",
|
1375 |
+
"requires": {
|
1376 |
+
"@codemirror/language": "^6.0.0",
|
1377 |
+
"@codemirror/state": "^6.0.0",
|
1378 |
+
"@codemirror/view": "^6.17.0",
|
1379 |
+
"@lezer/common": "^1.0.0"
|
1380 |
+
}
|
1381 |
+
},
|
1382 |
+
"@codemirror/commands": {
|
1383 |
+
"version": "6.3.3",
|
1384 |
+
"resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.3.3.tgz",
|
1385 |
+
"integrity": "sha512-dO4hcF0fGT9tu1Pj1D2PvGvxjeGkbC6RGcZw6Qs74TH+Ed1gw98jmUgd2axWvIZEqTeTuFrg1lEB1KV6cK9h1A==",
|
1386 |
+
"requires": {
|
1387 |
+
"@codemirror/language": "^6.0.0",
|
1388 |
+
"@codemirror/state": "^6.4.0",
|
1389 |
+
"@codemirror/view": "^6.0.0",
|
1390 |
+
"@lezer/common": "^1.1.0"
|
1391 |
+
}
|
1392 |
+
},
|
1393 |
+
"@codemirror/lang-css": {
|
1394 |
+
"version": "6.2.1",
|
1395 |
+
"resolved": "https://registry.npmjs.org/@codemirror/lang-css/-/lang-css-6.2.1.tgz",
|
1396 |
+
"integrity": "sha512-/UNWDNV5Viwi/1lpr/dIXJNWiwDxpw13I4pTUAsNxZdg6E0mI2kTQb0P2iHczg1Tu+H4EBgJR+hYhKiHKko7qg==",
|
1397 |
+
"requires": {
|
1398 |
+
"@codemirror/autocomplete": "^6.0.0",
|
1399 |
+
"@codemirror/language": "^6.0.0",
|
1400 |
+
"@codemirror/state": "^6.0.0",
|
1401 |
+
"@lezer/common": "^1.0.2",
|
1402 |
+
"@lezer/css": "^1.0.0"
|
1403 |
+
}
|
1404 |
+
},
|
1405 |
+
"@codemirror/lang-html": {
|
1406 |
+
"version": "6.4.8",
|
1407 |
+
"resolved": "https://registry.npmjs.org/@codemirror/lang-html/-/lang-html-6.4.8.tgz",
|
1408 |
+
"integrity": "sha512-tE2YK7wDlb9ZpAH6mpTPiYm6rhfdQKVDa5r9IwIFlwwgvVaKsCfuKKZoJGWsmMZIf3FQAuJ5CHMPLymOtg1hXw==",
|
1409 |
+
"requires": {
|
1410 |
+
"@codemirror/autocomplete": "^6.0.0",
|
1411 |
+
"@codemirror/lang-css": "^6.0.0",
|
1412 |
+
"@codemirror/lang-javascript": "^6.0.0",
|
1413 |
+
"@codemirror/language": "^6.4.0",
|
1414 |
+
"@codemirror/state": "^6.0.0",
|
1415 |
+
"@codemirror/view": "^6.17.0",
|
1416 |
+
"@lezer/common": "^1.0.0",
|
1417 |
+
"@lezer/css": "^1.1.0",
|
1418 |
+
"@lezer/html": "^1.3.0"
|
1419 |
+
}
|
1420 |
+
},
|
1421 |
+
"@codemirror/lang-javascript": {
|
1422 |
+
"version": "6.2.2",
|
1423 |
+
"resolved": "https://registry.npmjs.org/@codemirror/lang-javascript/-/lang-javascript-6.2.2.tgz",
|
1424 |
+
"integrity": "sha512-VGQfY+FCc285AhWuwjYxQyUQcYurWlxdKYT4bqwr3Twnd5wP5WSeu52t4tvvuWmljT4EmgEgZCqSieokhtY8hg==",
|
1425 |
+
"requires": {
|
1426 |
+
"@codemirror/autocomplete": "^6.0.0",
|
1427 |
+
"@codemirror/language": "^6.6.0",
|
1428 |
+
"@codemirror/lint": "^6.0.0",
|
1429 |
+
"@codemirror/state": "^6.0.0",
|
1430 |
+
"@codemirror/view": "^6.17.0",
|
1431 |
+
"@lezer/common": "^1.0.0",
|
1432 |
+
"@lezer/javascript": "^1.0.0"
|
1433 |
+
}
|
1434 |
+
},
|
1435 |
+
"@codemirror/lang-json": {
|
1436 |
+
"version": "6.0.1",
|
1437 |
+
"resolved": "https://registry.npmjs.org/@codemirror/lang-json/-/lang-json-6.0.1.tgz",
|
1438 |
+
"integrity": "sha512-+T1flHdgpqDDlJZ2Lkil/rLiRy684WMLc74xUnjJH48GQdfJo/pudlTRreZmKwzP8/tGdKf83wlbAdOCzlJOGQ==",
|
1439 |
+
"requires": {
|
1440 |
+
"@codemirror/language": "^6.0.0",
|
1441 |
+
"@lezer/json": "^1.0.0"
|
1442 |
+
}
|
1443 |
+
},
|
1444 |
+
"@codemirror/lang-markdown": {
|
1445 |
+
"version": "6.2.4",
|
1446 |
+
"resolved": "https://registry.npmjs.org/@codemirror/lang-markdown/-/lang-markdown-6.2.4.tgz",
|
1447 |
+
"integrity": "sha512-UghkA1vSMs8bT7RSZM6vsIocigyah2bV00eRQuZy76401UmFZdsTsbQNBGdyxRQDOLeEvF5iFwap0BM8LKyd+g==",
|
1448 |
+
"requires": {
|
1449 |
+
"@codemirror/autocomplete": "^6.7.1",
|
1450 |
+
"@codemirror/lang-html": "^6.0.0",
|
1451 |
+
"@codemirror/language": "^6.3.0",
|
1452 |
+
"@codemirror/state": "^6.0.0",
|
1453 |
+
"@codemirror/view": "^6.0.0",
|
1454 |
+
"@lezer/common": "^1.2.1",
|
1455 |
+
"@lezer/markdown": "^1.0.0"
|
1456 |
+
}
|
1457 |
+
},
|
1458 |
+
"@codemirror/lang-python": {
|
1459 |
+
"version": "6.1.5",
|
1460 |
+
"resolved": "https://registry.npmjs.org/@codemirror/lang-python/-/lang-python-6.1.5.tgz",
|
1461 |
+
"integrity": "sha512-hCm+8X6wrnXJCGf+QhmFu1AXkdTVG7dHy0Ly6SI1N3SRPptaMvwX6oNQonOXOMPvmcjiB0xq342KAxX3BYpijw==",
|
1462 |
+
"requires": {
|
1463 |
+
"@codemirror/autocomplete": "^6.3.2",
|
1464 |
+
"@codemirror/language": "^6.8.0",
|
1465 |
+
"@codemirror/state": "^6.0.0",
|
1466 |
+
"@lezer/common": "^1.2.1",
|
1467 |
+
"@lezer/python": "^1.1.4"
|
1468 |
+
}
|
1469 |
+
},
|
1470 |
+
"@codemirror/language": {
|
1471 |
+
"version": "6.10.1",
|
1472 |
+
"resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.10.1.tgz",
|
1473 |
+
"integrity": "sha512-5GrXzrhq6k+gL5fjkAwt90nYDmjlzTIJV8THnxNFtNKWotMIlzzN+CpqxqwXOECnUdOndmSeWntVrVcv5axWRQ==",
|
1474 |
+
"requires": {
|
1475 |
+
"@codemirror/state": "^6.0.0",
|
1476 |
+
"@codemirror/view": "^6.23.0",
|
1477 |
+
"@lezer/common": "^1.1.0",
|
1478 |
+
"@lezer/highlight": "^1.0.0",
|
1479 |
+
"@lezer/lr": "^1.0.0",
|
1480 |
+
"style-mod": "^4.0.0"
|
1481 |
+
}
|
1482 |
+
},
|
1483 |
+
"@codemirror/legacy-modes": {
|
1484 |
+
"version": "6.3.3",
|
1485 |
+
"resolved": "https://registry.npmjs.org/@codemirror/legacy-modes/-/legacy-modes-6.3.3.tgz",
|
1486 |
+
"integrity": "sha512-X0Z48odJ0KIoh/HY8Ltz75/4tDYc9msQf1E/2trlxFaFFhgjpVHjZ/BCXe1Lk7s4Gd67LL/CeEEHNI+xHOiESg==",
|
1487 |
+
"requires": {
|
1488 |
+
"@codemirror/language": "^6.0.0"
|
1489 |
+
}
|
1490 |
+
},
|
1491 |
+
"@codemirror/lint": {
|
1492 |
+
"version": "6.5.0",
|
1493 |
+
"resolved": "https://registry.npmjs.org/@codemirror/lint/-/lint-6.5.0.tgz",
|
1494 |
+
"integrity": "sha512-+5YyicIaaAZKU8K43IQi8TBy6mF6giGeWAH7N96Z5LC30Wm5JMjqxOYIE9mxwMG1NbhT2mA3l9hA4uuKUM3E5g==",
|
1495 |
+
"requires": {
|
1496 |
+
"@codemirror/state": "^6.0.0",
|
1497 |
+
"@codemirror/view": "^6.0.0",
|
1498 |
+
"crelt": "^1.0.5"
|
1499 |
+
}
|
1500 |
+
},
|
1501 |
+
"@codemirror/search": {
|
1502 |
+
"version": "6.5.6",
|
1503 |
+
"resolved": "https://registry.npmjs.org/@codemirror/search/-/search-6.5.6.tgz",
|
1504 |
+
"integrity": "sha512-rpMgcsh7o0GuCDUXKPvww+muLA1pDJaFrpq/CCHtpQJYz8xopu4D1hPcKRoDD0YlF8gZaqTNIRa4VRBWyhyy7Q==",
|
1505 |
+
"requires": {
|
1506 |
+
"@codemirror/state": "^6.0.0",
|
1507 |
+
"@codemirror/view": "^6.0.0",
|
1508 |
+
"crelt": "^1.0.5"
|
1509 |
+
}
|
1510 |
+
},
|
1511 |
+
"@codemirror/state": {
|
1512 |
+
"version": "6.4.1",
|
1513 |
+
"resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.4.1.tgz",
|
1514 |
+
"integrity": "sha512-QkEyUiLhsJoZkbumGZlswmAhA7CBU02Wrz7zvH4SrcifbsqwlXShVXg65f3v/ts57W3dqyamEriMhij1Z3Zz4A=="
|
1515 |
+
},
|
1516 |
+
"@codemirror/view": {
|
1517 |
+
"version": "6.26.1",
|
1518 |
+
"resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.26.1.tgz",
|
1519 |
+
"integrity": "sha512-wLw0t3R9AwOSQThdZ5Onw8QQtem5asE7+bPlnzc57eubPqiuJKIzwjMZ+C42vQett+iva+J8VgFV4RYWDBh5FA==",
|
1520 |
+
"requires": {
|
1521 |
+
"@codemirror/state": "^6.4.0",
|
1522 |
+
"style-mod": "^4.1.0",
|
1523 |
+
"w3c-keyname": "^2.2.4"
|
1524 |
+
}
|
1525 |
+
},
|
1526 |
+
"@esbuild/aix-ppc64": {
|
1527 |
+
"version": "0.19.12",
|
1528 |
+
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz",
|
1529 |
+
"integrity": "sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==",
|
1530 |
+
"optional": true
|
1531 |
+
},
|
1532 |
+
"@esbuild/android-arm": {
|
1533 |
+
"version": "0.19.12",
|
1534 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.12.tgz",
|
1535 |
+
"integrity": "sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==",
|
1536 |
+
"optional": true
|
1537 |
+
},
|
1538 |
+
"@esbuild/android-arm64": {
|
1539 |
+
"version": "0.19.12",
|
1540 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.12.tgz",
|
1541 |
+
"integrity": "sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==",
|
1542 |
+
"optional": true
|
1543 |
+
},
|
1544 |
+
"@esbuild/android-x64": {
|
1545 |
+
"version": "0.19.12",
|
1546 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.12.tgz",
|
1547 |
+
"integrity": "sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==",
|
1548 |
+
"optional": true
|
1549 |
+
},
|
1550 |
+
"@esbuild/darwin-arm64": {
|
1551 |
+
"version": "0.19.12",
|
1552 |
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.12.tgz",
|
1553 |
+
"integrity": "sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==",
|
1554 |
+
"optional": true
|
1555 |
+
},
|
1556 |
+
"@esbuild/darwin-x64": {
|
1557 |
+
"version": "0.19.12",
|
1558 |
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.12.tgz",
|
1559 |
+
"integrity": "sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==",
|
1560 |
+
"optional": true
|
1561 |
+
},
|
1562 |
+
"@esbuild/freebsd-arm64": {
|
1563 |
+
"version": "0.19.12",
|
1564 |
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.12.tgz",
|
1565 |
+
"integrity": "sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==",
|
1566 |
+
"optional": true
|
1567 |
+
},
|
1568 |
+
"@esbuild/freebsd-x64": {
|
1569 |
+
"version": "0.19.12",
|
1570 |
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.12.tgz",
|
1571 |
+
"integrity": "sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==",
|
1572 |
+
"optional": true
|
1573 |
+
},
|
1574 |
+
"@esbuild/linux-arm": {
|
1575 |
+
"version": "0.19.12",
|
1576 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.12.tgz",
|
1577 |
+
"integrity": "sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==",
|
1578 |
+
"optional": true
|
1579 |
+
},
|
1580 |
+
"@esbuild/linux-arm64": {
|
1581 |
+
"version": "0.19.12",
|
1582 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.12.tgz",
|
1583 |
+
"integrity": "sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==",
|
1584 |
+
"optional": true
|
1585 |
+
},
|
1586 |
+
"@esbuild/linux-ia32": {
|
1587 |
+
"version": "0.19.12",
|
1588 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.12.tgz",
|
1589 |
+
"integrity": "sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==",
|
1590 |
+
"optional": true
|
1591 |
+
},
|
1592 |
+
"@esbuild/linux-loong64": {
|
1593 |
+
"version": "0.19.12",
|
1594 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.12.tgz",
|
1595 |
+
"integrity": "sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==",
|
1596 |
+
"optional": true
|
1597 |
+
},
|
1598 |
+
"@esbuild/linux-mips64el": {
|
1599 |
+
"version": "0.19.12",
|
1600 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.12.tgz",
|
1601 |
+
"integrity": "sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==",
|
1602 |
+
"optional": true
|
1603 |
+
},
|
1604 |
+
"@esbuild/linux-ppc64": {
|
1605 |
+
"version": "0.19.12",
|
1606 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.12.tgz",
|
1607 |
+
"integrity": "sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==",
|
1608 |
+
"optional": true
|
1609 |
+
},
|
1610 |
+
"@esbuild/linux-riscv64": {
|
1611 |
+
"version": "0.19.12",
|
1612 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.12.tgz",
|
1613 |
+
"integrity": "sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==",
|
1614 |
+
"optional": true
|
1615 |
+
},
|
1616 |
+
"@esbuild/linux-s390x": {
|
1617 |
+
"version": "0.19.12",
|
1618 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.12.tgz",
|
1619 |
+
"integrity": "sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==",
|
1620 |
+
"optional": true
|
1621 |
+
},
|
1622 |
+
"@esbuild/linux-x64": {
|
1623 |
+
"version": "0.19.12",
|
1624 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.12.tgz",
|
1625 |
+
"integrity": "sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==",
|
1626 |
+
"optional": true
|
1627 |
+
},
|
1628 |
+
"@esbuild/netbsd-x64": {
|
1629 |
+
"version": "0.19.12",
|
1630 |
+
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.12.tgz",
|
1631 |
+
"integrity": "sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==",
|
1632 |
+
"optional": true
|
1633 |
+
},
|
1634 |
+
"@esbuild/openbsd-x64": {
|
1635 |
+
"version": "0.19.12",
|
1636 |
+
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.12.tgz",
|
1637 |
+
"integrity": "sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==",
|
1638 |
+
"optional": true
|
1639 |
+
},
|
1640 |
+
"@esbuild/sunos-x64": {
|
1641 |
+
"version": "0.19.12",
|
1642 |
+
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.12.tgz",
|
1643 |
+
"integrity": "sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==",
|
1644 |
+
"optional": true
|
1645 |
+
},
|
1646 |
+
"@esbuild/win32-arm64": {
|
1647 |
+
"version": "0.19.12",
|
1648 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.12.tgz",
|
1649 |
+
"integrity": "sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==",
|
1650 |
+
"optional": true
|
1651 |
+
},
|
1652 |
+
"@esbuild/win32-ia32": {
|
1653 |
+
"version": "0.19.12",
|
1654 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.12.tgz",
|
1655 |
+
"integrity": "sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==",
|
1656 |
+
"optional": true
|
1657 |
+
},
|
1658 |
+
"@esbuild/win32-x64": {
|
1659 |
+
"version": "0.19.12",
|
1660 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.12.tgz",
|
1661 |
+
"integrity": "sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==",
|
1662 |
+
"optional": true
|
1663 |
+
},
|
1664 |
+
"@formatjs/ecma402-abstract": {
|
1665 |
+
"version": "1.11.4",
|
1666 |
+
"resolved": "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-1.11.4.tgz",
|
1667 |
+
"integrity": "sha512-EBikYFp2JCdIfGEb5G9dyCkTGDmC57KSHhRQOC3aYxoPWVZvfWCDjZwkGYHN7Lis/fmuWl906bnNTJifDQ3sXw==",
|
1668 |
+
"requires": {
|
1669 |
+
"@formatjs/intl-localematcher": "0.2.25",
|
1670 |
+
"tslib": "^2.1.0"
|
1671 |
+
}
|
1672 |
+
},
|
1673 |
+
"@formatjs/fast-memoize": {
|
1674 |
+
"version": "1.2.1",
|
1675 |
+
"resolved": "https://registry.npmjs.org/@formatjs/fast-memoize/-/fast-memoize-1.2.1.tgz",
|
1676 |
+
"integrity": "sha512-Rg0e76nomkz3vF9IPlKeV+Qynok0r7YZjL6syLz4/urSg0IbjPZCB/iYUMNsYA643gh4mgrX3T7KEIFIxJBQeg==",
|
1677 |
+
"requires": {
|
1678 |
+
"tslib": "^2.1.0"
|
1679 |
+
}
|
1680 |
+
},
|
1681 |
+
"@formatjs/icu-messageformat-parser": {
|
1682 |
+
"version": "2.1.0",
|
1683 |
+
"resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.1.0.tgz",
|
1684 |
+
"integrity": "sha512-Qxv/lmCN6hKpBSss2uQ8IROVnta2r9jd3ymUEIjm2UyIkUCHVcbUVRGL/KS/wv7876edvsPe+hjHVJ4z8YuVaw==",
|
1685 |
+
"requires": {
|
1686 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
1687 |
+
"@formatjs/icu-skeleton-parser": "1.3.6",
|
1688 |
+
"tslib": "^2.1.0"
|
1689 |
+
}
|
1690 |
+
},
|
1691 |
+
"@formatjs/icu-skeleton-parser": {
|
1692 |
+
"version": "1.3.6",
|
1693 |
+
"resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.3.6.tgz",
|
1694 |
+
"integrity": "sha512-I96mOxvml/YLrwU2Txnd4klA7V8fRhb6JG/4hm3VMNmeJo1F03IpV2L3wWt7EweqNLES59SZ4d6hVOPCSf80Bg==",
|
1695 |
+
"requires": {
|
1696 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
1697 |
+
"tslib": "^2.1.0"
|
1698 |
+
}
|
1699 |
+
},
|
1700 |
+
"@formatjs/intl-localematcher": {
|
1701 |
+
"version": "0.2.25",
|
1702 |
+
"resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.2.25.tgz",
|
1703 |
+
"integrity": "sha512-YmLcX70BxoSopLFdLr1Ds99NdlTI2oWoLbaUW2M406lxOIPzE1KQhRz2fPUkq34xVZQaihCoU29h0KK7An3bhA==",
|
1704 |
+
"requires": {
|
1705 |
+
"tslib": "^2.1.0"
|
1706 |
+
}
|
1707 |
+
},
|
1708 |
+
"@gradio/atoms": {
|
1709 |
+
"version": "0.6.1",
|
1710 |
+
"resolved": "https://registry.npmjs.org/@gradio/atoms/-/atoms-0.6.1.tgz",
|
1711 |
+
"integrity": "sha512-u7+cleKA0Et6AhEq5xTiaGIAYPR2He7/JSYcM3Sg+vkFOXhbJTPUnHLub+y9HiseheEmnZDGddFBr+RL5Jaxbg==",
|
1712 |
+
"requires": {
|
1713 |
+
"@gradio/icons": "^0.3.4",
|
1714 |
+
"@gradio/utils": "^0.3.0"
|
1715 |
+
}
|
1716 |
+
},
|
1717 |
+
"@gradio/client": {
|
1718 |
+
"version": "0.15.0",
|
1719 |
+
"resolved": "https://registry.npmjs.org/@gradio/client/-/client-0.15.0.tgz",
|
1720 |
+
"integrity": "sha512-WQtLRy7mZYR07UsriSLHh3E/zwv53LzQGVCeEz6ue4YwsqEgaDrDwKIGjnpkL06HaZ94Gy/dAvZvUDI4MCO62g==",
|
1721 |
+
"requires": {
|
1722 |
+
"bufferutil": "^4.0.7",
|
1723 |
+
"semiver": "^1.1.0",
|
1724 |
+
"ws": "^8.13.0"
|
1725 |
+
}
|
1726 |
+
},
|
1727 |
+
"@gradio/column": {
|
1728 |
+
"version": "0.1.0",
|
1729 |
+
"resolved": "https://registry.npmjs.org/@gradio/column/-/column-0.1.0.tgz",
|
1730 |
+
"integrity": "sha512-P24nqqVnMXBaDA1f/zSN5HZRho4PxP8Dq+7VltPHlmxIEiZYik2AJ4J0LeuIha34FDO0guu/16evdrpvGIUAfw=="
|
1731 |
+
},
|
1732 |
+
"@gradio/icons": {
|
1733 |
+
"version": "0.3.4",
|
1734 |
+
"resolved": "https://registry.npmjs.org/@gradio/icons/-/icons-0.3.4.tgz",
|
1735 |
+
"integrity": "sha512-rtH7u3OiYy9UuO1bnebXkTXgc+D62H6BILrMtM4EfsKGgQQICD0n7NPvbPtS0zpi/fz0ppCdlfFIKKIOeVaeFg=="
|
1736 |
+
},
|
1737 |
+
"@gradio/statustracker": {
|
1738 |
+
"version": "0.4.10",
|
1739 |
+
"resolved": "https://registry.npmjs.org/@gradio/statustracker/-/statustracker-0.4.10.tgz",
|
1740 |
+
"integrity": "sha512-1uM30C6L/E26czWZE+a8w1Y5g4FuVkfR59ZxhfL6KfWyERJmhlA8iFWrCCrS4uPZ6wFDXDsY6Im8jqL15uqPzg==",
|
1741 |
+
"requires": {
|
1742 |
+
"@gradio/atoms": "^0.6.1",
|
1743 |
+
"@gradio/column": "^0.1.0",
|
1744 |
+
"@gradio/icons": "^0.3.4",
|
1745 |
+
"@gradio/utils": "^0.3.0"
|
1746 |
+
}
|
1747 |
+
},
|
1748 |
+
"@gradio/theme": {
|
1749 |
+
"version": "0.2.0",
|
1750 |
+
"resolved": "https://registry.npmjs.org/@gradio/theme/-/theme-0.2.0.tgz",
|
1751 |
+
"integrity": "sha512-33c68Nk7oRXLn08OxPfjcPm7S4tXGOUV1I1bVgzdM2YV5o1QBOS1GEnXPZPu/CEYPePLMB6bsDwffrLEyLGWVQ=="
|
1752 |
+
},
|
1753 |
+
"@gradio/upload": {
|
1754 |
+
"version": "0.8.3",
|
1755 |
+
"resolved": "https://registry.npmjs.org/@gradio/upload/-/upload-0.8.3.tgz",
|
1756 |
+
"integrity": "sha512-rufkvHPn1CwEuo/dgDMbSdLAG6m5poTT0hyDYnqdRkIAeBi6gU73xPylKUdQcVBIJvYGexkTU83jij4pnet6yQ==",
|
1757 |
+
"requires": {
|
1758 |
+
"@gradio/atoms": "^0.6.1",
|
1759 |
+
"@gradio/client": "^0.15.0",
|
1760 |
+
"@gradio/icons": "^0.3.4",
|
1761 |
+
"@gradio/upload": "^0.8.3",
|
1762 |
+
"@gradio/utils": "^0.3.0",
|
1763 |
+
"@gradio/wasm": "^0.10.0"
|
1764 |
+
}
|
1765 |
+
},
|
1766 |
+
"@gradio/utils": {
|
1767 |
+
"version": "0.3.0",
|
1768 |
+
"resolved": "https://registry.npmjs.org/@gradio/utils/-/utils-0.3.0.tgz",
|
1769 |
+
"integrity": "sha512-VxP0h7UoWazkdSB875ChvTXWamBwMguuRc+8OyQFZjdj14lcqLEQuj54es3FDBpXOp5GMLFh48Q5FLLjYxMgSg==",
|
1770 |
+
"requires": {
|
1771 |
+
"@gradio/theme": "^0.2.0",
|
1772 |
+
"svelte-i18n": "^3.6.0"
|
1773 |
+
}
|
1774 |
+
},
|
1775 |
+
"@gradio/wasm": {
|
1776 |
+
"version": "0.10.0",
|
1777 |
+
"resolved": "https://registry.npmjs.org/@gradio/wasm/-/wasm-0.10.0.tgz",
|
1778 |
+
"integrity": "sha512-ephuiuimvMad6KzNPz/3OdnjgE5wsJdVfAAqu+J0qloetbH42LfeRLsVe5WqGo2WpjzXq5MC8I8MJ7lpQMhUpw==",
|
1779 |
+
"requires": {
|
1780 |
+
"@types/path-browserify": "^1.0.0",
|
1781 |
+
"path-browserify": "^1.0.1"
|
1782 |
+
}
|
1783 |
+
},
|
1784 |
+
"@jridgewell/gen-mapping": {
|
1785 |
+
"version": "0.3.5",
|
1786 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz",
|
1787 |
+
"integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==",
|
1788 |
+
"peer": true,
|
1789 |
+
"requires": {
|
1790 |
+
"@jridgewell/set-array": "^1.2.1",
|
1791 |
+
"@jridgewell/sourcemap-codec": "^1.4.10",
|
1792 |
+
"@jridgewell/trace-mapping": "^0.3.24"
|
1793 |
+
}
|
1794 |
+
},
|
1795 |
+
"@jridgewell/resolve-uri": {
|
1796 |
+
"version": "3.1.2",
|
1797 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
|
1798 |
+
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
|
1799 |
+
"peer": true
|
1800 |
+
},
|
1801 |
+
"@jridgewell/set-array": {
|
1802 |
+
"version": "1.2.1",
|
1803 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz",
|
1804 |
+
"integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==",
|
1805 |
+
"peer": true
|
1806 |
+
},
|
1807 |
+
"@jridgewell/sourcemap-codec": {
|
1808 |
+
"version": "1.4.15",
|
1809 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
|
1810 |
+
"integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==",
|
1811 |
+
"peer": true
|
1812 |
+
},
|
1813 |
+
"@jridgewell/trace-mapping": {
|
1814 |
+
"version": "0.3.25",
|
1815 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz",
|
1816 |
+
"integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==",
|
1817 |
+
"peer": true,
|
1818 |
+
"requires": {
|
1819 |
+
"@jridgewell/resolve-uri": "^3.1.0",
|
1820 |
+
"@jridgewell/sourcemap-codec": "^1.4.14"
|
1821 |
+
}
|
1822 |
+
},
|
1823 |
+
"@lezer/common": {
|
1824 |
+
"version": "1.2.1",
|
1825 |
+
"resolved": "https://registry.npmjs.org/@lezer/common/-/common-1.2.1.tgz",
|
1826 |
+
"integrity": "sha512-yemX0ZD2xS/73llMZIK6KplkjIjf2EvAHcinDi/TfJ9hS25G0388+ClHt6/3but0oOxinTcQHJLDXh6w1crzFQ=="
|
1827 |
+
},
|
1828 |
+
"@lezer/css": {
|
1829 |
+
"version": "1.1.8",
|
1830 |
+
"resolved": "https://registry.npmjs.org/@lezer/css/-/css-1.1.8.tgz",
|
1831 |
+
"integrity": "sha512-7JhxupKuMBaWQKjQoLtzhGj83DdnZY9MckEOG5+/iLKNK2ZJqKc6hf6uc0HjwCX7Qlok44jBNqZhHKDhEhZYLA==",
|
1832 |
+
"requires": {
|
1833 |
+
"@lezer/common": "^1.2.0",
|
1834 |
+
"@lezer/highlight": "^1.0.0",
|
1835 |
+
"@lezer/lr": "^1.0.0"
|
1836 |
+
}
|
1837 |
+
},
|
1838 |
+
"@lezer/highlight": {
|
1839 |
+
"version": "1.2.0",
|
1840 |
+
"resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.2.0.tgz",
|
1841 |
+
"integrity": "sha512-WrS5Mw51sGrpqjlh3d4/fOwpEV2Hd3YOkp9DBt4k8XZQcoTHZFB7sx030A6OcahF4J1nDQAa3jXlTVVYH50IFA==",
|
1842 |
+
"requires": {
|
1843 |
+
"@lezer/common": "^1.0.0"
|
1844 |
+
}
|
1845 |
+
},
|
1846 |
+
"@lezer/html": {
|
1847 |
+
"version": "1.3.9",
|
1848 |
+
"resolved": "https://registry.npmjs.org/@lezer/html/-/html-1.3.9.tgz",
|
1849 |
+
"integrity": "sha512-MXxeCMPyrcemSLGaTQEZx0dBUH0i+RPl8RN5GwMAzo53nTsd/Unc/t5ZxACeQoyPUM5/GkPLRUs2WliOImzkRA==",
|
1850 |
+
"requires": {
|
1851 |
+
"@lezer/common": "^1.2.0",
|
1852 |
+
"@lezer/highlight": "^1.0.0",
|
1853 |
+
"@lezer/lr": "^1.0.0"
|
1854 |
+
}
|
1855 |
+
},
|
1856 |
+
"@lezer/javascript": {
|
1857 |
+
"version": "1.4.14",
|
1858 |
+
"resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.4.14.tgz",
|
1859 |
+
"integrity": "sha512-GEdUyspTRgc5dwIGebUk+f3BekvqEWVIYsIuAC3pA8e8wcikGwBZRWRa450L0s8noGWuULwnmi4yjxTnYz9PpA==",
|
1860 |
+
"requires": {
|
1861 |
+
"@lezer/common": "^1.2.0",
|
1862 |
+
"@lezer/highlight": "^1.1.3",
|
1863 |
+
"@lezer/lr": "^1.3.0"
|
1864 |
+
}
|
1865 |
+
},
|
1866 |
+
"@lezer/json": {
|
1867 |
+
"version": "1.0.2",
|
1868 |
+
"resolved": "https://registry.npmjs.org/@lezer/json/-/json-1.0.2.tgz",
|
1869 |
+
"integrity": "sha512-xHT2P4S5eeCYECyKNPhr4cbEL9tc8w83SPwRC373o9uEdrvGKTZoJVAGxpOsZckMlEh9W23Pc72ew918RWQOBQ==",
|
1870 |
+
"requires": {
|
1871 |
+
"@lezer/common": "^1.2.0",
|
1872 |
+
"@lezer/highlight": "^1.0.0",
|
1873 |
+
"@lezer/lr": "^1.0.0"
|
1874 |
+
}
|
1875 |
+
},
|
1876 |
+
"@lezer/lr": {
|
1877 |
+
"version": "1.4.0",
|
1878 |
+
"resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.0.tgz",
|
1879 |
+
"integrity": "sha512-Wst46p51km8gH0ZUmeNrtpRYmdlRHUpN1DQd3GFAyKANi8WVz8c2jHYTf1CVScFaCjQw1iO3ZZdqGDxQPRErTg==",
|
1880 |
+
"requires": {
|
1881 |
+
"@lezer/common": "^1.0.0"
|
1882 |
+
}
|
1883 |
+
},
|
1884 |
+
"@lezer/markdown": {
|
1885 |
+
"version": "1.2.0",
|
1886 |
+
"resolved": "https://registry.npmjs.org/@lezer/markdown/-/markdown-1.2.0.tgz",
|
1887 |
+
"integrity": "sha512-d7MwsfAukZJo1GpPrcPGa3MxaFFOqNp0gbqF+3F7pTeNDOgeJN1muXzx1XXDPt+Ac+/voCzsH7qXqnn+xReG/g==",
|
1888 |
+
"requires": {
|
1889 |
+
"@lezer/common": "^1.0.0",
|
1890 |
+
"@lezer/highlight": "^1.0.0"
|
1891 |
+
}
|
1892 |
+
},
|
1893 |
+
"@lezer/python": {
|
1894 |
+
"version": "1.1.13",
|
1895 |
+
"resolved": "https://registry.npmjs.org/@lezer/python/-/python-1.1.13.tgz",
|
1896 |
+
"integrity": "sha512-AdbRAtdQq94PfTNd4kqMEJhH2fqa2JdoyyqqVewY6w34w2Gi6dg2JuOtOgR21Bi0zP9r0KjSSHOUq/tP7FVT8A==",
|
1897 |
+
"requires": {
|
1898 |
+
"@lezer/common": "^1.2.0",
|
1899 |
+
"@lezer/highlight": "^1.0.0",
|
1900 |
+
"@lezer/lr": "^1.0.0"
|
1901 |
+
}
|
1902 |
+
},
|
1903 |
+
"@types/estree": {
|
1904 |
+
"version": "1.0.5",
|
1905 |
+
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz",
|
1906 |
+
"integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==",
|
1907 |
+
"peer": true
|
1908 |
+
},
|
1909 |
+
"@types/path-browserify": {
|
1910 |
+
"version": "1.0.2",
|
1911 |
+
"resolved": "https://registry.npmjs.org/@types/path-browserify/-/path-browserify-1.0.2.tgz",
|
1912 |
+
"integrity": "sha512-ZkC5IUqqIFPXx3ASTTybTzmQdwHwe2C0u3eL75ldQ6T9E9IWFJodn6hIfbZGab73DfyiHN4Xw15gNxUq2FbvBA=="
|
1913 |
+
},
|
1914 |
+
"acorn": {
|
1915 |
+
"version": "8.11.3",
|
1916 |
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz",
|
1917 |
+
"integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==",
|
1918 |
+
"peer": true
|
1919 |
+
},
|
1920 |
+
"aria-query": {
|
1921 |
+
"version": "5.3.0",
|
1922 |
+
"resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
|
1923 |
+
"integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",
|
1924 |
+
"peer": true,
|
1925 |
+
"requires": {
|
1926 |
+
"dequal": "^2.0.3"
|
1927 |
+
}
|
1928 |
+
},
|
1929 |
+
"axobject-query": {
|
1930 |
+
"version": "4.0.0",
|
1931 |
+
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.0.0.tgz",
|
1932 |
+
"integrity": "sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw==",
|
1933 |
+
"peer": true,
|
1934 |
+
"requires": {
|
1935 |
+
"dequal": "^2.0.3"
|
1936 |
+
}
|
1937 |
+
},
|
1938 |
+
"bufferutil": {
|
1939 |
+
"version": "4.0.8",
|
1940 |
+
"resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.8.tgz",
|
1941 |
+
"integrity": "sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==",
|
1942 |
+
"requires": {
|
1943 |
+
"node-gyp-build": "^4.3.0"
|
1944 |
+
}
|
1945 |
+
},
|
1946 |
+
"cli-color": {
|
1947 |
+
"version": "2.0.4",
|
1948 |
+
"resolved": "https://registry.npmjs.org/cli-color/-/cli-color-2.0.4.tgz",
|
1949 |
+
"integrity": "sha512-zlnpg0jNcibNrO7GG9IeHH7maWFeCz+Ja1wx/7tZNU5ASSSSZ+/qZciM0/LHCYxSdqv5h2sdbQ/PXYdOuetXvA==",
|
1950 |
+
"requires": {
|
1951 |
+
"d": "^1.0.1",
|
1952 |
+
"es5-ext": "^0.10.64",
|
1953 |
+
"es6-iterator": "^2.0.3",
|
1954 |
+
"memoizee": "^0.4.15",
|
1955 |
+
"timers-ext": "^0.1.7"
|
1956 |
+
}
|
1957 |
+
},
|
1958 |
+
"cm6-theme-basic-dark": {
|
1959 |
+
"version": "0.2.0",
|
1960 |
+
"resolved": "https://registry.npmjs.org/cm6-theme-basic-dark/-/cm6-theme-basic-dark-0.2.0.tgz",
|
1961 |
+
"integrity": "sha512-+mNNJecRtxS/KkloMDCQF0oTrT6aFGRZTjnBcdT5UG1pcDO4Brq8l1+0KR/8dZ7hub2gOGOzoi3rGFD8GzlH7Q==",
|
1962 |
+
"requires": {}
|
1963 |
+
},
|
1964 |
+
"cm6-theme-basic-light": {
|
1965 |
+
"version": "0.2.0",
|
1966 |
+
"resolved": "https://registry.npmjs.org/cm6-theme-basic-light/-/cm6-theme-basic-light-0.2.0.tgz",
|
1967 |
+
"integrity": "sha512-1prg2gv44sYfpHscP26uLT/ePrh0mlmVwMSoSd3zYKQ92Ab3jPRLzyCnpyOCQLJbK+YdNs4HvMRqMNYdy4pMhA==",
|
1968 |
+
"requires": {}
|
1969 |
+
},
|
1970 |
+
"code-red": {
|
1971 |
+
"version": "1.0.4",
|
1972 |
+
"resolved": "https://registry.npmjs.org/code-red/-/code-red-1.0.4.tgz",
|
1973 |
+
"integrity": "sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==",
|
1974 |
+
"peer": true,
|
1975 |
+
"requires": {
|
1976 |
+
"@jridgewell/sourcemap-codec": "^1.4.15",
|
1977 |
+
"@types/estree": "^1.0.1",
|
1978 |
+
"acorn": "^8.10.0",
|
1979 |
+
"estree-walker": "^3.0.3",
|
1980 |
+
"periscopic": "^3.1.0"
|
1981 |
+
}
|
1982 |
+
},
|
1983 |
+
"codemirror": {
|
1984 |
+
"version": "6.0.1",
|
1985 |
+
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-6.0.1.tgz",
|
1986 |
+
"integrity": "sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg==",
|
1987 |
+
"requires": {
|
1988 |
+
"@codemirror/autocomplete": "^6.0.0",
|
1989 |
+
"@codemirror/commands": "^6.0.0",
|
1990 |
+
"@codemirror/language": "^6.0.0",
|
1991 |
+
"@codemirror/lint": "^6.0.0",
|
1992 |
+
"@codemirror/search": "^6.0.0",
|
1993 |
+
"@codemirror/state": "^6.0.0",
|
1994 |
+
"@codemirror/view": "^6.0.0"
|
1995 |
+
}
|
1996 |
+
},
|
1997 |
+
"crelt": {
|
1998 |
+
"version": "1.0.6",
|
1999 |
+
"resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.6.tgz",
|
2000 |
+
"integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g=="
|
2001 |
+
},
|
2002 |
+
"css-tree": {
|
2003 |
+
"version": "2.3.1",
|
2004 |
+
"resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz",
|
2005 |
+
"integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==",
|
2006 |
+
"peer": true,
|
2007 |
+
"requires": {
|
2008 |
+
"mdn-data": "2.0.30",
|
2009 |
+
"source-map-js": "^1.0.1"
|
2010 |
+
}
|
2011 |
+
},
|
2012 |
+
"d": {
|
2013 |
+
"version": "1.0.2",
|
2014 |
+
"resolved": "https://registry.npmjs.org/d/-/d-1.0.2.tgz",
|
2015 |
+
"integrity": "sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==",
|
2016 |
+
"requires": {
|
2017 |
+
"es5-ext": "^0.10.64",
|
2018 |
+
"type": "^2.7.2"
|
2019 |
+
}
|
2020 |
+
},
|
2021 |
+
"deepmerge": {
|
2022 |
+
"version": "4.3.1",
|
2023 |
+
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
|
2024 |
+
"integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A=="
|
2025 |
+
},
|
2026 |
+
"dequal": {
|
2027 |
+
"version": "2.0.3",
|
2028 |
+
"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
|
2029 |
+
"integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
|
2030 |
+
"peer": true
|
2031 |
+
},
|
2032 |
+
"es5-ext": {
|
2033 |
+
"version": "0.10.64",
|
2034 |
+
"resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz",
|
2035 |
+
"integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==",
|
2036 |
+
"requires": {
|
2037 |
+
"es6-iterator": "^2.0.3",
|
2038 |
+
"es6-symbol": "^3.1.3",
|
2039 |
+
"esniff": "^2.0.1",
|
2040 |
+
"next-tick": "^1.1.0"
|
2041 |
+
}
|
2042 |
+
},
|
2043 |
+
"es6-iterator": {
|
2044 |
+
"version": "2.0.3",
|
2045 |
+
"resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz",
|
2046 |
+
"integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==",
|
2047 |
+
"requires": {
|
2048 |
+
"d": "1",
|
2049 |
+
"es5-ext": "^0.10.35",
|
2050 |
+
"es6-symbol": "^3.1.1"
|
2051 |
+
}
|
2052 |
+
},
|
2053 |
+
"es6-symbol": {
|
2054 |
+
"version": "3.1.4",
|
2055 |
+
"resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.4.tgz",
|
2056 |
+
"integrity": "sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==",
|
2057 |
+
"requires": {
|
2058 |
+
"d": "^1.0.2",
|
2059 |
+
"ext": "^1.7.0"
|
2060 |
+
}
|
2061 |
+
},
|
2062 |
+
"es6-weak-map": {
|
2063 |
+
"version": "2.0.3",
|
2064 |
+
"resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz",
|
2065 |
+
"integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==",
|
2066 |
+
"requires": {
|
2067 |
+
"d": "1",
|
2068 |
+
"es5-ext": "^0.10.46",
|
2069 |
+
"es6-iterator": "^2.0.3",
|
2070 |
+
"es6-symbol": "^3.1.1"
|
2071 |
+
}
|
2072 |
+
},
|
2073 |
+
"esbuild": {
|
2074 |
+
"version": "0.19.12",
|
2075 |
+
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.12.tgz",
|
2076 |
+
"integrity": "sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==",
|
2077 |
+
"requires": {
|
2078 |
+
"@esbuild/aix-ppc64": "0.19.12",
|
2079 |
+
"@esbuild/android-arm": "0.19.12",
|
2080 |
+
"@esbuild/android-arm64": "0.19.12",
|
2081 |
+
"@esbuild/android-x64": "0.19.12",
|
2082 |
+
"@esbuild/darwin-arm64": "0.19.12",
|
2083 |
+
"@esbuild/darwin-x64": "0.19.12",
|
2084 |
+
"@esbuild/freebsd-arm64": "0.19.12",
|
2085 |
+
"@esbuild/freebsd-x64": "0.19.12",
|
2086 |
+
"@esbuild/linux-arm": "0.19.12",
|
2087 |
+
"@esbuild/linux-arm64": "0.19.12",
|
2088 |
+
"@esbuild/linux-ia32": "0.19.12",
|
2089 |
+
"@esbuild/linux-loong64": "0.19.12",
|
2090 |
+
"@esbuild/linux-mips64el": "0.19.12",
|
2091 |
+
"@esbuild/linux-ppc64": "0.19.12",
|
2092 |
+
"@esbuild/linux-riscv64": "0.19.12",
|
2093 |
+
"@esbuild/linux-s390x": "0.19.12",
|
2094 |
+
"@esbuild/linux-x64": "0.19.12",
|
2095 |
+
"@esbuild/netbsd-x64": "0.19.12",
|
2096 |
+
"@esbuild/openbsd-x64": "0.19.12",
|
2097 |
+
"@esbuild/sunos-x64": "0.19.12",
|
2098 |
+
"@esbuild/win32-arm64": "0.19.12",
|
2099 |
+
"@esbuild/win32-ia32": "0.19.12",
|
2100 |
+
"@esbuild/win32-x64": "0.19.12"
|
2101 |
+
}
|
2102 |
+
},
|
2103 |
+
"esniff": {
|
2104 |
+
"version": "2.0.1",
|
2105 |
+
"resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz",
|
2106 |
+
"integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==",
|
2107 |
+
"requires": {
|
2108 |
+
"d": "^1.0.1",
|
2109 |
+
"es5-ext": "^0.10.62",
|
2110 |
+
"event-emitter": "^0.3.5",
|
2111 |
+
"type": "^2.7.2"
|
2112 |
+
}
|
2113 |
+
},
|
2114 |
+
"estree-walker": {
|
2115 |
+
"version": "3.0.3",
|
2116 |
+
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
|
2117 |
+
"integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
|
2118 |
+
"peer": true,
|
2119 |
+
"requires": {
|
2120 |
+
"@types/estree": "^1.0.0"
|
2121 |
+
}
|
2122 |
+
},
|
2123 |
+
"event-emitter": {
|
2124 |
+
"version": "0.3.5",
|
2125 |
+
"resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz",
|
2126 |
+
"integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==",
|
2127 |
+
"requires": {
|
2128 |
+
"d": "1",
|
2129 |
+
"es5-ext": "~0.10.14"
|
2130 |
+
}
|
2131 |
+
},
|
2132 |
+
"ext": {
|
2133 |
+
"version": "1.7.0",
|
2134 |
+
"resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz",
|
2135 |
+
"integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==",
|
2136 |
+
"requires": {
|
2137 |
+
"type": "^2.7.2"
|
2138 |
+
}
|
2139 |
+
},
|
2140 |
+
"globalyzer": {
|
2141 |
+
"version": "0.1.0",
|
2142 |
+
"resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz",
|
2143 |
+
"integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q=="
|
2144 |
+
},
|
2145 |
+
"globrex": {
|
2146 |
+
"version": "0.1.2",
|
2147 |
+
"resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",
|
2148 |
+
"integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg=="
|
2149 |
+
},
|
2150 |
+
"intl-messageformat": {
|
2151 |
+
"version": "9.13.0",
|
2152 |
+
"resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-9.13.0.tgz",
|
2153 |
+
"integrity": "sha512-7sGC7QnSQGa5LZP7bXLDhVDtQOeKGeBFGHF2Y8LVBwYZoQZCgWeKoPGTa5GMG8g/TzDgeXuYJQis7Ggiw2xTOw==",
|
2154 |
+
"requires": {
|
2155 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
2156 |
+
"@formatjs/fast-memoize": "1.2.1",
|
2157 |
+
"@formatjs/icu-messageformat-parser": "2.1.0",
|
2158 |
+
"tslib": "^2.1.0"
|
2159 |
+
}
|
2160 |
+
},
|
2161 |
+
"is-promise": {
|
2162 |
+
"version": "2.2.2",
|
2163 |
+
"resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz",
|
2164 |
+
"integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ=="
|
2165 |
+
},
|
2166 |
+
"is-reference": {
|
2167 |
+
"version": "3.0.2",
|
2168 |
+
"resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.2.tgz",
|
2169 |
+
"integrity": "sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==",
|
2170 |
+
"peer": true,
|
2171 |
+
"requires": {
|
2172 |
+
"@types/estree": "*"
|
2173 |
+
}
|
2174 |
+
},
|
2175 |
+
"locate-character": {
|
2176 |
+
"version": "3.0.0",
|
2177 |
+
"resolved": "https://registry.npmjs.org/locate-character/-/locate-character-3.0.0.tgz",
|
2178 |
+
"integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==",
|
2179 |
+
"peer": true
|
2180 |
+
},
|
2181 |
+
"lru-queue": {
|
2182 |
+
"version": "0.1.0",
|
2183 |
+
"resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz",
|
2184 |
+
"integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==",
|
2185 |
+
"requires": {
|
2186 |
+
"es5-ext": "~0.10.2"
|
2187 |
+
}
|
2188 |
+
},
|
2189 |
+
"magic-string": {
|
2190 |
+
"version": "0.30.8",
|
2191 |
+
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.8.tgz",
|
2192 |
+
"integrity": "sha512-ISQTe55T2ao7XtlAStud6qwYPZjE4GK1S/BeVPus4jrq6JuOnQ00YKQC581RWhR122W7msZV263KzVeLoqidyQ==",
|
2193 |
+
"peer": true,
|
2194 |
+
"requires": {
|
2195 |
+
"@jridgewell/sourcemap-codec": "^1.4.15"
|
2196 |
+
}
|
2197 |
+
},
|
2198 |
+
"mdn-data": {
|
2199 |
+
"version": "2.0.30",
|
2200 |
+
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",
|
2201 |
+
"integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==",
|
2202 |
+
"peer": true
|
2203 |
+
},
|
2204 |
+
"memoizee": {
|
2205 |
+
"version": "0.4.15",
|
2206 |
+
"resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.15.tgz",
|
2207 |
+
"integrity": "sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ==",
|
2208 |
+
"requires": {
|
2209 |
+
"d": "^1.0.1",
|
2210 |
+
"es5-ext": "^0.10.53",
|
2211 |
+
"es6-weak-map": "^2.0.3",
|
2212 |
+
"event-emitter": "^0.3.5",
|
2213 |
+
"is-promise": "^2.2.2",
|
2214 |
+
"lru-queue": "^0.1.0",
|
2215 |
+
"next-tick": "^1.1.0",
|
2216 |
+
"timers-ext": "^0.1.7"
|
2217 |
+
}
|
2218 |
+
},
|
2219 |
+
"mri": {
|
2220 |
+
"version": "1.2.0",
|
2221 |
+
"resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz",
|
2222 |
+
"integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA=="
|
2223 |
+
},
|
2224 |
+
"next-tick": {
|
2225 |
+
"version": "1.1.0",
|
2226 |
+
"resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz",
|
2227 |
+
"integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ=="
|
2228 |
+
},
|
2229 |
+
"node-gyp-build": {
|
2230 |
+
"version": "4.8.0",
|
2231 |
+
"resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.0.tgz",
|
2232 |
+
"integrity": "sha512-u6fs2AEUljNho3EYTJNBfImO5QTo/J/1Etd+NVdCj7qWKUSN/bSLkZwhDv7I+w/MSC6qJ4cknepkAYykDdK8og=="
|
2233 |
+
},
|
2234 |
+
"path-browserify": {
|
2235 |
+
"version": "1.0.1",
|
2236 |
+
"resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz",
|
2237 |
+
"integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g=="
|
2238 |
+
},
|
2239 |
+
"periscopic": {
|
2240 |
+
"version": "3.1.0",
|
2241 |
+
"resolved": "https://registry.npmjs.org/periscopic/-/periscopic-3.1.0.tgz",
|
2242 |
+
"integrity": "sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==",
|
2243 |
+
"peer": true,
|
2244 |
+
"requires": {
|
2245 |
+
"@types/estree": "^1.0.0",
|
2246 |
+
"estree-walker": "^3.0.0",
|
2247 |
+
"is-reference": "^3.0.0"
|
2248 |
+
}
|
2249 |
+
},
|
2250 |
+
"sade": {
|
2251 |
+
"version": "1.8.1",
|
2252 |
+
"resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz",
|
2253 |
+
"integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==",
|
2254 |
+
"requires": {
|
2255 |
+
"mri": "^1.1.0"
|
2256 |
+
}
|
2257 |
+
},
|
2258 |
+
"semiver": {
|
2259 |
+
"version": "1.1.0",
|
2260 |
+
"resolved": "https://registry.npmjs.org/semiver/-/semiver-1.1.0.tgz",
|
2261 |
+
"integrity": "sha512-QNI2ChmuioGC1/xjyYwyZYADILWyW6AmS1UH6gDj/SFUUUS4MBAWs/7mxnkRPc/F4iHezDP+O8t0dO8WHiEOdg=="
|
2262 |
+
},
|
2263 |
+
"source-map-js": {
|
2264 |
+
"version": "1.2.0",
|
2265 |
+
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz",
|
2266 |
+
"integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==",
|
2267 |
+
"peer": true
|
2268 |
+
},
|
2269 |
+
"style-mod": {
|
2270 |
+
"version": "4.1.2",
|
2271 |
+
"resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.1.2.tgz",
|
2272 |
+
"integrity": "sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw=="
|
2273 |
+
},
|
2274 |
+
"svelte": {
|
2275 |
+
"version": "4.2.12",
|
2276 |
+
"resolved": "https://registry.npmjs.org/svelte/-/svelte-4.2.12.tgz",
|
2277 |
+
"integrity": "sha512-d8+wsh5TfPwqVzbm4/HCXC783/KPHV60NvwitJnyTA5lWn1elhXMNWhXGCJ7PwPa8qFUnyJNIyuIRt2mT0WMug==",
|
2278 |
+
"peer": true,
|
2279 |
+
"requires": {
|
2280 |
+
"@ampproject/remapping": "^2.2.1",
|
2281 |
+
"@jridgewell/sourcemap-codec": "^1.4.15",
|
2282 |
+
"@jridgewell/trace-mapping": "^0.3.18",
|
2283 |
+
"@types/estree": "^1.0.1",
|
2284 |
+
"acorn": "^8.9.0",
|
2285 |
+
"aria-query": "^5.3.0",
|
2286 |
+
"axobject-query": "^4.0.0",
|
2287 |
+
"code-red": "^1.0.3",
|
2288 |
+
"css-tree": "^2.3.1",
|
2289 |
+
"estree-walker": "^3.0.3",
|
2290 |
+
"is-reference": "^3.0.1",
|
2291 |
+
"locate-character": "^3.0.0",
|
2292 |
+
"magic-string": "^0.30.4",
|
2293 |
+
"periscopic": "^3.1.0"
|
2294 |
+
}
|
2295 |
+
},
|
2296 |
+
"svelte-i18n": {
|
2297 |
+
"version": "3.7.4",
|
2298 |
+
"resolved": "https://registry.npmjs.org/svelte-i18n/-/svelte-i18n-3.7.4.tgz",
|
2299 |
+
"integrity": "sha512-yGRCNo+eBT4cPuU7IVsYTYjxB7I2V8qgUZPlHnNctJj5IgbJgV78flsRzpjZ/8iUYZrS49oCt7uxlU3AZv/N5Q==",
|
2300 |
+
"requires": {
|
2301 |
+
"cli-color": "^2.0.3",
|
2302 |
+
"deepmerge": "^4.2.2",
|
2303 |
+
"esbuild": "^0.19.2",
|
2304 |
+
"estree-walker": "^2",
|
2305 |
+
"intl-messageformat": "^9.13.0",
|
2306 |
+
"sade": "^1.8.1",
|
2307 |
+
"tiny-glob": "^0.2.9"
|
2308 |
+
},
|
2309 |
+
"dependencies": {
|
2310 |
+
"estree-walker": {
|
2311 |
+
"version": "2.0.2",
|
2312 |
+
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
|
2313 |
+
"integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="
|
2314 |
+
}
|
2315 |
+
}
|
2316 |
+
},
|
2317 |
+
"timers-ext": {
|
2318 |
+
"version": "0.1.7",
|
2319 |
+
"resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.7.tgz",
|
2320 |
+
"integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==",
|
2321 |
+
"requires": {
|
2322 |
+
"es5-ext": "~0.10.46",
|
2323 |
+
"next-tick": "1"
|
2324 |
+
}
|
2325 |
+
},
|
2326 |
+
"tiny-glob": {
|
2327 |
+
"version": "0.2.9",
|
2328 |
+
"resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz",
|
2329 |
+
"integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==",
|
2330 |
+
"requires": {
|
2331 |
+
"globalyzer": "0.1.0",
|
2332 |
+
"globrex": "^0.1.2"
|
2333 |
+
}
|
2334 |
+
},
|
2335 |
+
"tslib": {
|
2336 |
+
"version": "2.6.2",
|
2337 |
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
|
2338 |
+
"integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q=="
|
2339 |
+
},
|
2340 |
+
"type": {
|
2341 |
+
"version": "2.7.2",
|
2342 |
+
"resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz",
|
2343 |
+
"integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw=="
|
2344 |
+
},
|
2345 |
+
"w3c-keyname": {
|
2346 |
+
"version": "2.2.8",
|
2347 |
+
"resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz",
|
2348 |
+
"integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ=="
|
2349 |
+
},
|
2350 |
+
"ws": {
|
2351 |
+
"version": "8.16.0",
|
2352 |
+
"resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz",
|
2353 |
+
"integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==",
|
2354 |
+
"requires": {}
|
2355 |
+
}
|
2356 |
+
}
|
2357 |
+
}
|
src/frontend/package.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gradio_logsview",
|
3 |
+
"version": "0.5.10",
|
4 |
+
"description": "Gradio UI packages",
|
5 |
+
"type": "module",
|
6 |
+
"author": "",
|
7 |
+
"license": "ISC",
|
8 |
+
"private": false,
|
9 |
+
"dependencies": {
|
10 |
+
"@codemirror/autocomplete": "^6.3.0",
|
11 |
+
"@codemirror/commands": "^6.1.2",
|
12 |
+
"@codemirror/lang-css": "^6.1.0",
|
13 |
+
"@codemirror/lang-html": "^6.4.2",
|
14 |
+
"@codemirror/lang-javascript": "^6.1.4",
|
15 |
+
"@codemirror/lang-json": "^6.0.1",
|
16 |
+
"@codemirror/lang-markdown": "^6.1.0",
|
17 |
+
"@codemirror/lang-python": "^6.0.4",
|
18 |
+
"@codemirror/language": "^6.6.0",
|
19 |
+
"@codemirror/legacy-modes": "^6.3.1",
|
20 |
+
"@codemirror/lint": "^6.0.0",
|
21 |
+
"@codemirror/search": "^6.2.2",
|
22 |
+
"@codemirror/state": "^6.1.2",
|
23 |
+
"@codemirror/view": "^6.4.1",
|
24 |
+
"@gradio/atoms": "0.6.1",
|
25 |
+
"@gradio/icons": "0.3.4",
|
26 |
+
"@gradio/statustracker": "0.4.10",
|
27 |
+
"@gradio/upload": "0.8.3",
|
28 |
+
"@gradio/utils": "0.3.0",
|
29 |
+
"@gradio/wasm": "0.10.0",
|
30 |
+
"@lezer/common": "^1.0.2",
|
31 |
+
"@lezer/highlight": "^1.1.3",
|
32 |
+
"@lezer/markdown": "^1.0.2",
|
33 |
+
"cm6-theme-basic-dark": "^0.2.0",
|
34 |
+
"cm6-theme-basic-light": "^0.2.0",
|
35 |
+
"codemirror": "^6.0.1"
|
36 |
+
},
|
37 |
+
"main_changeset": true,
|
38 |
+
"main": "./Index.svelte",
|
39 |
+
"exports": {
|
40 |
+
".": "./Index.svelte",
|
41 |
+
"./example": "./Example.svelte",
|
42 |
+
"./package.json": "./package.json"
|
43 |
+
}
|
44 |
+
}
|
src/frontend/shared/Code.svelte
ADDED
@@ -0,0 +1,258 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script lang="ts">
|
2 |
+
import { createEventDispatcher, onMount } from "svelte";
|
3 |
+
import {
|
4 |
+
EditorView,
|
5 |
+
ViewUpdate,
|
6 |
+
keymap,
|
7 |
+
placeholder as placeholderExt
|
8 |
+
} from "@codemirror/view";
|
9 |
+
import { StateEffect, EditorState, type Extension } from "@codemirror/state";
|
10 |
+
import { indentWithTab } from "@codemirror/commands";
|
11 |
+
|
12 |
+
import { basicDark } from "cm6-theme-basic-dark";
|
13 |
+
import { basicLight } from "cm6-theme-basic-light";
|
14 |
+
import { basicSetup } from "./extensions";
|
15 |
+
import { getLanguageExtension } from "./language";
|
16 |
+
|
17 |
+
export let class_names = "";
|
18 |
+
export let value = "";
|
19 |
+
export let dark_mode: boolean;
|
20 |
+
export let basic = true;
|
21 |
+
export let language: string;
|
22 |
+
export let lines = 5;
|
23 |
+
export let extensions: Extension[] = [];
|
24 |
+
export let use_tab = true;
|
25 |
+
export let readonly = false;
|
26 |
+
export let placeholder: string | HTMLElement | null | undefined = undefined;
|
27 |
+
|
28 |
+
const dispatch = createEventDispatcher<{
|
29 |
+
change: string;
|
30 |
+
blur: undefined;
|
31 |
+
focus: undefined;
|
32 |
+
}>();
|
33 |
+
let lang_extension: Extension | undefined;
|
34 |
+
let element: HTMLDivElement;
|
35 |
+
let view: EditorView;
|
36 |
+
|
37 |
+
$: get_lang(language);
|
38 |
+
|
39 |
+
async function get_lang(val: string): Promise<void> {
|
40 |
+
const ext = await getLanguageExtension(val);
|
41 |
+
lang_extension = ext;
|
42 |
+
}
|
43 |
+
|
44 |
+
$: reconfigure(), lang_extension;
|
45 |
+
$: set_doc(value);
|
46 |
+
$: update_lines();
|
47 |
+
|
48 |
+
function set_doc(new_doc: string): void {
|
49 |
+
if (view && new_doc !== view.state.doc.toString()) {
|
50 |
+
view.dispatch({
|
51 |
+
changes: {
|
52 |
+
from: 0,
|
53 |
+
to: view.state.doc.length,
|
54 |
+
insert: new_doc
|
55 |
+
}
|
56 |
+
});
|
57 |
+
}
|
58 |
+
}
|
59 |
+
|
60 |
+
function update_lines(): void {
|
61 |
+
if (view) {
|
62 |
+
view.requestMeasure({ read: update_gutters });
|
63 |
+
}
|
64 |
+
}
|
65 |
+
|
66 |
+
function create_editor_view(): EditorView {
|
67 |
+
const editorView = new EditorView({
|
68 |
+
parent: element,
|
69 |
+
state: create_editor_state(value)
|
70 |
+
});
|
71 |
+
editorView.dom.addEventListener("focus", handle_focus, true);
|
72 |
+
editorView.dom.addEventListener("blur", handle_blur, true);
|
73 |
+
return editorView;
|
74 |
+
}
|
75 |
+
|
76 |
+
function handle_focus(): void {
|
77 |
+
dispatch("focus");
|
78 |
+
}
|
79 |
+
|
80 |
+
function handle_blur(): void {
|
81 |
+
dispatch("blur");
|
82 |
+
}
|
83 |
+
|
84 |
+
function getGutterLineHeight(_view: EditorView): string | null {
|
85 |
+
let elements = _view.dom.querySelectorAll<HTMLElement>(".cm-gutterElement");
|
86 |
+
if (elements.length === 0) {
|
87 |
+
return null;
|
88 |
+
}
|
89 |
+
for (var i = 0; i < elements.length; i++) {
|
90 |
+
let node = elements[i];
|
91 |
+
let height = getComputedStyle(node)?.height ?? "0px";
|
92 |
+
if (height != "0px") {
|
93 |
+
return height;
|
94 |
+
}
|
95 |
+
}
|
96 |
+
return null;
|
97 |
+
}
|
98 |
+
|
99 |
+
function update_gutters(_view: EditorView): any {
|
100 |
+
let gutters = _view.dom.querySelectorAll<HTMLElement>(".cm-gutter");
|
101 |
+
let _lines = lines + 1;
|
102 |
+
let lineHeight = getGutterLineHeight(_view);
|
103 |
+
if (!lineHeight) {
|
104 |
+
return null;
|
105 |
+
}
|
106 |
+
for (var i = 0; i < gutters.length; i++) {
|
107 |
+
let node = gutters[i];
|
108 |
+
node.style.minHeight = `calc(${lineHeight} * ${_lines})`;
|
109 |
+
}
|
110 |
+
return null;
|
111 |
+
}
|
112 |
+
|
113 |
+
function handle_change(vu: ViewUpdate): void {
|
114 |
+
if (vu.docChanged) {
|
115 |
+
const doc = vu.state.doc;
|
116 |
+
const text = doc.toString();
|
117 |
+
value = text;
|
118 |
+
dispatch("change", text);
|
119 |
+
}
|
120 |
+
view.requestMeasure({ read: update_gutters });
|
121 |
+
}
|
122 |
+
|
123 |
+
function get_extensions(): Extension[] {
|
124 |
+
const stateExtensions = [
|
125 |
+
...get_base_extensions(
|
126 |
+
basic,
|
127 |
+
use_tab,
|
128 |
+
placeholder,
|
129 |
+
readonly,
|
130 |
+
lang_extension
|
131 |
+
),
|
132 |
+
FontTheme,
|
133 |
+
...get_theme(),
|
134 |
+
...extensions
|
135 |
+
];
|
136 |
+
return stateExtensions;
|
137 |
+
}
|
138 |
+
|
139 |
+
const FontTheme = EditorView.theme({
|
140 |
+
"&": {
|
141 |
+
fontSize: "var(--text-sm)",
|
142 |
+
backgroundColor: "var(--border-color-secondary)"
|
143 |
+
},
|
144 |
+
".cm-content": {
|
145 |
+
paddingTop: "5px",
|
146 |
+
paddingBottom: "5px",
|
147 |
+
color: "var(--body-text-color)",
|
148 |
+
fontFamily: "var(--font-mono)",
|
149 |
+
minHeight: "100%"
|
150 |
+
},
|
151 |
+
".cm-gutters": {
|
152 |
+
marginRight: "1px",
|
153 |
+
borderRight: "1px solid var(--border-color-primary)",
|
154 |
+
backgroundColor: "transparent",
|
155 |
+
color: "var(--body-text-color-subdued)"
|
156 |
+
},
|
157 |
+
".cm-focused": {
|
158 |
+
outline: "none"
|
159 |
+
},
|
160 |
+
".cm-scroller": {
|
161 |
+
height: "auto"
|
162 |
+
},
|
163 |
+
".cm-cursor": {
|
164 |
+
borderLeftColor: "var(--body-text-color)"
|
165 |
+
}
|
166 |
+
});
|
167 |
+
|
168 |
+
function create_editor_state(_value: string | null | undefined): EditorState {
|
169 |
+
return EditorState.create({
|
170 |
+
doc: _value ?? undefined,
|
171 |
+
extensions: get_extensions()
|
172 |
+
});
|
173 |
+
}
|
174 |
+
|
175 |
+
function get_base_extensions(
|
176 |
+
basic: boolean,
|
177 |
+
use_tab: boolean,
|
178 |
+
placeholder: string | HTMLElement | null | undefined,
|
179 |
+
readonly: boolean,
|
180 |
+
lang: Extension | null | undefined
|
181 |
+
): Extension[] {
|
182 |
+
const extensions: Extension[] = [
|
183 |
+
EditorView.editable.of(!readonly),
|
184 |
+
EditorState.readOnly.of(readonly),
|
185 |
+
EditorView.contentAttributes.of({ "aria-label": "Code input container" })
|
186 |
+
];
|
187 |
+
|
188 |
+
if (basic) {
|
189 |
+
extensions.push(basicSetup);
|
190 |
+
}
|
191 |
+
if (use_tab) {
|
192 |
+
extensions.push(keymap.of([indentWithTab]));
|
193 |
+
}
|
194 |
+
if (placeholder) {
|
195 |
+
extensions.push(placeholderExt(placeholder));
|
196 |
+
}
|
197 |
+
if (lang) {
|
198 |
+
extensions.push(lang);
|
199 |
+
}
|
200 |
+
|
201 |
+
extensions.push(EditorView.updateListener.of(handle_change));
|
202 |
+
return extensions;
|
203 |
+
}
|
204 |
+
|
205 |
+
function get_theme(): Extension[] {
|
206 |
+
const extensions: Extension[] = [];
|
207 |
+
|
208 |
+
if (dark_mode) {
|
209 |
+
extensions.push(basicDark);
|
210 |
+
} else {
|
211 |
+
extensions.push(basicLight);
|
212 |
+
}
|
213 |
+
return extensions;
|
214 |
+
}
|
215 |
+
|
216 |
+
function reconfigure(): void {
|
217 |
+
view?.dispatch({
|
218 |
+
effects: StateEffect.reconfigure.of(get_extensions())
|
219 |
+
});
|
220 |
+
}
|
221 |
+
|
222 |
+
onMount(() => {
|
223 |
+
view = create_editor_view();
|
224 |
+
return () => view?.destroy();
|
225 |
+
});
|
226 |
+
</script>
|
227 |
+
|
228 |
+
<div class="wrap">
|
229 |
+
<div class="codemirror-wrapper {class_names}" bind:this={element} />
|
230 |
+
</div>
|
231 |
+
|
232 |
+
<style>
|
233 |
+
.wrap {
|
234 |
+
display: flex;
|
235 |
+
flex-direction: column;
|
236 |
+
flex-flow: column;
|
237 |
+
margin: 0;
|
238 |
+
padding: 0;
|
239 |
+
height: 100%;
|
240 |
+
}
|
241 |
+
.codemirror-wrapper {
|
242 |
+
height: 100%;
|
243 |
+
overflow: auto;
|
244 |
+
}
|
245 |
+
|
246 |
+
:global(.cm-editor) {
|
247 |
+
height: 100%;
|
248 |
+
}
|
249 |
+
|
250 |
+
/* Dunno why this doesn't work through the theme API -- don't remove*/
|
251 |
+
:global(.cm-selectionBackground) {
|
252 |
+
background-color: #b9d2ff30 !important;
|
253 |
+
}
|
254 |
+
|
255 |
+
:global(.cm-focused) {
|
256 |
+
outline: none !important;
|
257 |
+
}
|
258 |
+
</style>
|
src/frontend/shared/Copy.svelte
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script lang="ts">
|
2 |
+
import { onDestroy } from "svelte";
|
3 |
+
import { fade } from "svelte/transition";
|
4 |
+
import { Copy, Check } from "@gradio/icons";
|
5 |
+
|
6 |
+
let copied = false;
|
7 |
+
export let value: string;
|
8 |
+
let timer: NodeJS.Timeout;
|
9 |
+
|
10 |
+
function copy_feedback(): void {
|
11 |
+
copied = true;
|
12 |
+
if (timer) clearTimeout(timer);
|
13 |
+
timer = setTimeout(() => {
|
14 |
+
copied = false;
|
15 |
+
}, 2000);
|
16 |
+
}
|
17 |
+
|
18 |
+
async function handle_copy(): Promise<void> {
|
19 |
+
if ("clipboard" in navigator) {
|
20 |
+
await navigator.clipboard.writeText(value);
|
21 |
+
copy_feedback();
|
22 |
+
}
|
23 |
+
}
|
24 |
+
|
25 |
+
onDestroy(() => {
|
26 |
+
if (timer) clearTimeout(timer);
|
27 |
+
});
|
28 |
+
</script>
|
29 |
+
|
30 |
+
<button
|
31 |
+
on:click={handle_copy}
|
32 |
+
title="copy"
|
33 |
+
class:copied
|
34 |
+
aria-roledescription="Copy value"
|
35 |
+
aria-label="Copy"
|
36 |
+
>
|
37 |
+
<Copy />
|
38 |
+
{#if copied}
|
39 |
+
<span
|
40 |
+
class="check"
|
41 |
+
transition:fade
|
42 |
+
aria-roledescription="Value copied"
|
43 |
+
aria-label="Copied"><Check /></span
|
44 |
+
>
|
45 |
+
{/if}
|
46 |
+
</button>
|
47 |
+
|
48 |
+
<style>
|
49 |
+
button {
|
50 |
+
position: relative;
|
51 |
+
cursor: pointer;
|
52 |
+
padding: 5px;
|
53 |
+
width: 22px;
|
54 |
+
height: 22px;
|
55 |
+
}
|
56 |
+
|
57 |
+
.check {
|
58 |
+
position: absolute;
|
59 |
+
top: 0;
|
60 |
+
right: 0;
|
61 |
+
z-index: var(--layer-top);
|
62 |
+
background: var(--background-fill-primary);
|
63 |
+
padding: var(--size-1);
|
64 |
+
width: 100%;
|
65 |
+
height: 100%;
|
66 |
+
color: var(--body-text-color);
|
67 |
+
}
|
68 |
+
</style>
|
src/frontend/shared/Download.svelte
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script lang="ts">
|
2 |
+
import { onDestroy } from "svelte";
|
3 |
+
import { fade } from "svelte/transition";
|
4 |
+
import { Download, Check } from "@gradio/icons";
|
5 |
+
import { DownloadLink } from "@gradio/wasm/svelte";
|
6 |
+
|
7 |
+
export let value: string;
|
8 |
+
export let language: string;
|
9 |
+
|
10 |
+
$: ext = get_ext_for_type(language);
|
11 |
+
|
12 |
+
function get_ext_for_type(type: string): string {
|
13 |
+
const exts: Record<string, string> = {
|
14 |
+
py: "py",
|
15 |
+
python: "py",
|
16 |
+
md: "md",
|
17 |
+
markdown: "md",
|
18 |
+
json: "json",
|
19 |
+
html: "html",
|
20 |
+
css: "css",
|
21 |
+
js: "js",
|
22 |
+
javascript: "js",
|
23 |
+
ts: "ts",
|
24 |
+
typescript: "ts",
|
25 |
+
yaml: "yaml",
|
26 |
+
yml: "yml",
|
27 |
+
dockerfile: "dockerfile",
|
28 |
+
sh: "sh",
|
29 |
+
shell: "sh",
|
30 |
+
r: "r"
|
31 |
+
};
|
32 |
+
|
33 |
+
return exts[type] || "txt";
|
34 |
+
}
|
35 |
+
|
36 |
+
let copied = false;
|
37 |
+
let timer: NodeJS.Timeout;
|
38 |
+
|
39 |
+
function copy_feedback(): void {
|
40 |
+
copied = true;
|
41 |
+
if (timer) clearTimeout(timer);
|
42 |
+
timer = setTimeout(() => {
|
43 |
+
copied = false;
|
44 |
+
}, 2000);
|
45 |
+
}
|
46 |
+
|
47 |
+
$: download_value = URL.createObjectURL(new Blob([value]));
|
48 |
+
|
49 |
+
onDestroy(() => {
|
50 |
+
if (timer) clearTimeout(timer);
|
51 |
+
});
|
52 |
+
</script>
|
53 |
+
|
54 |
+
<div class="container">
|
55 |
+
<DownloadLink
|
56 |
+
download="file.{ext}"
|
57 |
+
href={download_value}
|
58 |
+
on:click={copy_feedback}
|
59 |
+
>
|
60 |
+
<Download />
|
61 |
+
{#if copied}
|
62 |
+
<span class="check" transition:fade><Check /></span>
|
63 |
+
{/if}
|
64 |
+
</DownloadLink>
|
65 |
+
</div>
|
66 |
+
|
67 |
+
<style>
|
68 |
+
.container {
|
69 |
+
position: relative;
|
70 |
+
cursor: pointer;
|
71 |
+
padding: 5px;
|
72 |
+
|
73 |
+
width: 22px;
|
74 |
+
height: 22px;
|
75 |
+
}
|
76 |
+
|
77 |
+
.check {
|
78 |
+
position: absolute;
|
79 |
+
top: 0;
|
80 |
+
right: 0;
|
81 |
+
z-index: var(--layer-top);
|
82 |
+
background: var(--background-fill-primary);
|
83 |
+
padding: var(--size-1);
|
84 |
+
width: 100%;
|
85 |
+
height: 100%;
|
86 |
+
color: var(--body-text-color);
|
87 |
+
}
|
88 |
+
</style>
|