@adia-ai/web-modules 0.7.28 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/chat/chat-shell/css/chat-shell.bespoke.css +11 -11
- package/chat/chat-shell/css/chat-shell.tokens.css +4 -4
- package/dist/chat/chat-shell.min.css +1 -1
- package/dist/chat/chat-shell.min.js +1 -1
- package/dist/editor/editor-shell.min.css +1 -1
- package/dist/everything.min.js +49 -49
- package/dist/shell/admin-shell.min.css +1 -1
- package/dist/web-modules.min.css +1 -1
- package/dist/web-modules.sheet.js +1 -1
- package/editor/editor-shell/css/editor-shell.bespoke.css +11 -11
- package/editor/editor-shell/css/editor-shell.tokens.css +3 -3
- package/package.json +4 -4
- package/shell/admin-shell/css/admin-shell.bespoke.css +23 -11
- package/shell/admin-shell/css/admin-shell.entity-item.css +1 -1
- package/shell/admin-shell/css/admin-shell.main.css +2 -2
- package/shell/admin-shell/css/admin-shell.sidebar.css +1 -1
- package/shell/admin-shell/css/admin-shell.tokens.css +9 -9
- package/shell/embed-shell/embed-shell.css +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
# Changelog — @adia-ai/web-modules
|
|
2
|
+
## [0.8.1] — 2026-07-15
|
|
3
|
+
|
|
4
|
+
### Maintenance
|
|
5
|
+
- **`dist/everything.min.js` rebundled** for the `tags-input-ui` chip-slot template shipped in @adia-ai/web-components 0.8.1 (the kitchen-sink bundle inlines it). No web-modules source changes. See `packages/web-components/CHANGELOG.md#081--2026-07-15`.
|
|
6
|
+
## [0.8.0] — 2026-07-15
|
|
7
|
+
|
|
8
|
+
### BREAKING — Material Design color-token adoption (MINOR cut; see `.claude/docs/MIGRATION GUIDE.md` § v0.8.0)
|
|
9
|
+
- **Token sweep onto `--md-sys-color-*`** across all composite modules (80 files: `billing/`, `chat/`, `dashboard/`, `editor/`, `feedback/`, `onboarding/`, `settings/`, `shell/`, `simple/`, `theme/`) — same migration as @adia-ai/web-components@0.8.0; see that CHANGELOG for the full contract. `dist/` bundles rebuilt to match.
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- **`admin-shell` — doubled border at the rounded content panel's top corners** (TKT-0022, operator-reported, two independent causes): (1) `admin-page-header`'s drop-shadow was a leftover from when the band used a raised background — once rebased flush with the content surface, its square-corner shadow clashed with the container's rounded-corner shadow; removed, `border-bottom` alone separates (the same pattern `admin-page-footer` already used). (2) `admin-scroll`'s `border-inline` tapered out halfway around the 20px corner arc while its box-shadow ring traced the full corner — two divergent hairlines at exactly the radius; now a full `border`, one continuous arc.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- **4 module yaml SoTs re-synced with their swept CSS** (`plan-picker`, `payment-method-list`, `onboarding-checklist`, `confirm-dialog`) — token `default:` docs referenced the removed `--a-accent-*` names; sidecars regenerated.
|
|
2
16
|
## [0.7.28] — 2026-07-14
|
|
3
17
|
|
|
4
18
|
### Fixed — GH #223, editor-sidebar `expand()` permanent wedge
|
|
@@ -21,15 +21,15 @@ chat-sidebar > chat-header:first-child {
|
|
|
21
21
|
padding: 0 var(--chat-header-px, var(--a-space-3));
|
|
22
22
|
height: var(--chat-header-height, var(--a-size-lg));
|
|
23
23
|
font-size: var(--chat-header-font, var(--a-ui-size));
|
|
24
|
-
border-bottom: var(--chat-border, 1px solid var(--
|
|
24
|
+
border-bottom: var(--chat-border, 1px solid var(--md-sys-color-neutral-outline-variant));
|
|
25
25
|
flex-shrink: 0;
|
|
26
|
-
background: var(--chat-bg, var(--
|
|
26
|
+
background: var(--chat-bg, var(--md-sys-color-neutral-background));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* Slot vocabulary inside chat-header */
|
|
30
30
|
chat-header > [slot="name"] {
|
|
31
31
|
font-weight: var(--a-weight-medium, 500);
|
|
32
|
-
color: var(--
|
|
32
|
+
color: var(--md-sys-color-neutral-on-surface);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
chat-header > [slot="status"] {
|
|
@@ -63,7 +63,7 @@ chat-shell > chat-thread {
|
|
|
63
63
|
flex-direction: column;
|
|
64
64
|
gap: var(--chat-message-gap, var(--a-space-3));
|
|
65
65
|
padding: var(--chat-thread-py, var(--a-space-4)) var(--chat-thread-px, var(--a-space-4));
|
|
66
|
-
background: var(--chat-thread-bg, var(--
|
|
66
|
+
background: var(--chat-thread-bg, var(--md-sys-color-neutral-background));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
chat-thread[streaming] {
|
|
@@ -89,8 +89,8 @@ chat-shell > chat-composer {
|
|
|
89
89
|
align-items: stretch;
|
|
90
90
|
gap: var(--a-space-2);
|
|
91
91
|
padding: var(--chat-composer-py, var(--a-space-3)) var(--chat-composer-px, var(--a-space-3));
|
|
92
|
-
border-top: var(--chat-border, 1px solid var(--
|
|
93
|
-
background: var(--chat-bg, var(--
|
|
92
|
+
border-top: var(--chat-border, 1px solid var(--md-sys-color-neutral-outline-variant));
|
|
93
|
+
background: var(--chat-bg, var(--md-sys-color-neutral-background));
|
|
94
94
|
flex-shrink: 0;
|
|
95
95
|
}
|
|
96
96
|
|
|
@@ -138,17 +138,17 @@ chat-composer[disabled] {
|
|
|
138
138
|
container-type: inline-size;
|
|
139
139
|
container-name: sidebar;
|
|
140
140
|
transition: width var(--chat-duration, var(--a-duration, 200ms)) var(--chat-easing, var(--a-easing, ease));
|
|
141
|
-
background: var(--chat-bg, var(--
|
|
141
|
+
background: var(--chat-bg, var(--md-sys-color-neutral-background));
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
chat-sidebar[slot="leading"] {
|
|
145
145
|
width: var(--chat-sidebar-width-leading, 240px);
|
|
146
|
-
border-right: var(--chat-border, 1px solid var(--
|
|
146
|
+
border-right: var(--chat-border, 1px solid var(--md-sys-color-neutral-outline-variant));
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
chat-sidebar[slot="trailing"] {
|
|
150
150
|
width: var(--chat-sidebar-width-trailing, 320px);
|
|
151
|
-
border-left: var(--chat-border, 1px solid var(--
|
|
151
|
+
border-left: var(--chat-border, 1px solid var(--md-sys-color-neutral-outline-variant));
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
/* Resize handle */
|
|
@@ -166,7 +166,7 @@ chat-sidebar[slot="leading"] > [data-resize] { right: -3px; }
|
|
|
166
166
|
chat-sidebar[slot="trailing"] > [data-resize] { left: -3px; }
|
|
167
167
|
|
|
168
168
|
:is(chat-sidebar[slot="leading"], chat-sidebar[slot="trailing"]) > [data-resize]:hover {
|
|
169
|
-
background: var(--
|
|
169
|
+
background: var(--md-sys-color-primary);
|
|
170
170
|
opacity: 0.5;
|
|
171
171
|
}
|
|
172
172
|
|
|
@@ -175,7 +175,7 @@ chat-sidebar[resizing] {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
chat-sidebar[resizing] > [data-resize] {
|
|
178
|
-
background: var(--
|
|
178
|
+
background: var(--md-sys-color-primary);
|
|
179
179
|
opacity: 0.8;
|
|
180
180
|
}
|
|
181
181
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
--chat-header-height: var(--a-chrome-app-header-height);
|
|
13
13
|
--chat-header-px: var(--a-space-4);
|
|
14
14
|
--chat-header-gap: var(--a-space-2);
|
|
15
|
-
--chat-header-border: 1px solid var(--
|
|
15
|
+
--chat-header-border: 1px solid var(--md-sys-color-neutral-outline-variant);
|
|
16
16
|
|
|
17
17
|
/* Messages area */
|
|
18
18
|
--chat-messages-px: var(--a-space-4);
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
--chat-message-max-width: 85%;
|
|
22
22
|
|
|
23
23
|
/* User bubble */
|
|
24
|
-
--chat-user-bg: var(--
|
|
25
|
-
--chat-user-fg: var(--
|
|
24
|
+
--chat-user-bg: var(--md-sys-color-primary);
|
|
25
|
+
--chat-user-fg: var(--md-sys-color-primary-on-primary);
|
|
26
26
|
--chat-user-radius: var(--a-radius-md);
|
|
27
27
|
--chat-user-tail-radius: var(--a-radius-sm);
|
|
28
28
|
--chat-user-px: var(--a-space-3);
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
/* Assistant bubble */
|
|
32
32
|
--chat-assistant-bg: var(--a-canvas-2);
|
|
33
|
-
--chat-assistant-fg: var(--
|
|
33
|
+
--chat-assistant-fg: var(--md-sys-color-neutral-on-surface);
|
|
34
34
|
--chat-assistant-radius: var(--a-radius-lg);
|
|
35
35
|
--chat-assistant-tail-radius: var(--a-radius-sm);
|
|
36
36
|
--chat-assistant-px: var(--a-space-3);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:where(chat-shell){--chat-bg:var(--a-canvas-0);--chat-border:unset;--chat-radius:unset;--chat-header-height:var(--a-chrome-app-header-height);--chat-header-px:var(--a-space-4);--chat-header-gap:var(--a-space-2);--chat-header-border:1px solid var(--a-border-subtle);--chat-messages-px:var(--a-space-4);--chat-messages-py:var(--a-space-4);--chat-messages-gap:var(--a-space-3);--chat-message-max-width:85%;--chat-user-bg:var(--a-primary);--chat-user-fg:var(--a-primary-fg);--chat-user-radius:var(--a-radius-md);--chat-user-tail-radius:var(--a-radius-sm);--chat-user-px:var(--a-space-3);--chat-user-py:var(--a-space-1);--chat-assistant-bg:var(--a-canvas-2);--chat-assistant-fg:var(--a-fg);--chat-assistant-radius:var(--a-radius-lg);--chat-assistant-tail-radius:var(--a-radius-sm);--chat-assistant-px:var(--a-space-3);--chat-assistant-py:var(--a-space-1);--chat-avatar-size:1.75rem;--chat-avatar-bg:var(--chat-assistant-bg);--chat-avatar-fg:var(--chat-assistant-fg);--chat-avatar-font:var(--a-ui-sm);--chat-avatar-weight:var(--a-weight-semibold);--chat-cursor-width:2px;--chat-cursor-color:currentColor;--chat-cursor-speed:.8s;--chat-footer-px:var(--a-space-3);--chat-footer-py:var(--a-space-3);--chat-actions-gap:var(--a-space-1);--chat-code-bg:var(--a-canvas-2);--chat-code-radius:var(--a-radius-md);--chat-font-size:var(--a-ui-size);--chat-line-height:var(--a-leading-normal);--chat-weight-semibold:var(--a-weight-semibold);--chat-header-name-font:var(--a-ui-lg);--chat-header-status-font:var(--a-ui-md);--chat-header-status-fg:var(--a-fg-muted);--chat-error-gap:var(--a-space-2);--chat-error-fg:var(--a-danger-strong);--chat-error-font:var(--a-ui-sm);--chat-actions-duration:var(--a-duration-fast);--chat-actions-easing:var(--a-easing);--chat-avatar-radius:var(--a-radius-full);--chat-thinking-fg:var(--a-fg-muted);--chat-code-inline-radius:var(--a-radius-sm);--chat-code-inline-family:var(--a-font-family-code);--chat-code-block-px:var(--a-space-3);--chat-code-block-my:var(--a-space-2);--chat-code-block-font:var(--a-ui-sm)}chat-shell{box-sizing:border-box;border:var(--chat-border);border-radius:var(--chat-radius);background:var(--chat-bg);flex-direction:column;height:100%;display:flex;overflow:hidden}chat-shell>header{align-items:center;gap:var(--chat-header-gap);min-height:var(--chat-header-height);padding:0 var(--chat-header-px);border-bottom:var(--chat-header-border);flex-shrink:0;display:flex}chat-shell>header [data-chat-name]{font-weight:var(--chat-weight-semibold);font-size:var(--chat-header-name-font)}chat-shell>header chat-status{font-size:var(--chat-header-status-font);color:var(--chat-header-status-fg);margin-inline-start:auto}chat-shell>chat-thread,chat-shell>section{padding:var(--chat-messages-py) var(--chat-messages-px);gap:var(--chat-messages-gap);flex-direction:column;flex:1;min-height:0;display:flex;overflow-y:auto}chat-shell>footer{padding:var(--chat-footer-py) var(--chat-footer-px);flex-shrink:0;align-items:center;display:flex}chat-shell>footer chat-input-ui{flex:1}chat-shell [data-role]{gap:var(--chat-header-gap);max-width:var(--chat-message-max-width);align-items:flex-end;display:flex}chat-shell [data-role=user]{flex-direction:row-reverse;align-self:flex-end}chat-shell [data-role=assistant]{align-self:flex-start}chat-shell [data-role] [data-avatar]{width:var(--chat-avatar-size);height:var(--chat-avatar-size);border-radius:var(--chat-avatar-radius);background:var(--chat-avatar-bg);color:var(--chat-avatar-fg);font-size:var(--chat-avatar-font);font-weight:var(--chat-avatar-weight);flex-shrink:0;justify-content:center;align-items:center;display:flex}chat-shell [data-role] [data-bubble]{padding:var(--chat-assistant-py) var(--chat-assistant-px);border-radius:var(--chat-assistant-radius);font-size:var(--chat-font-size);line-height:var(--chat-line-height);white-space:pre-wrap;word-break:break-word}chat-shell [data-role] [data-bubble]>:first-child{margin-block-start:0}chat-shell [data-role] [data-bubble]>:last-child{margin-block-end:0}chat-shell [data-role=user] [data-bubble]{background:var(--chat-user-bg);color:var(--chat-user-fg);padding:var(--chat-user-py) var(--chat-user-px);border-radius:var(--chat-user-radius);border-bottom-right-radius:var(--chat-user-tail-radius)}chat-shell [data-role=assistant] [data-bubble]{background:var(--chat-assistant-bg);color:var(--chat-assistant-fg);border-bottom-left-radius:var(--chat-assistant-tail-radius)}chat-shell [data-role=error]{align-self:center;align-items:center;gap:var(--chat-error-gap);max-width:none;color:var(--chat-error-fg);font-size:var(--chat-error-font);display:flex}chat-shell [data-role] [data-actions]{gap:var(--chat-actions-gap);opacity:0;transition:opacity var(--chat-actions-duration) var(--chat-actions-easing);display:flex}chat-shell [data-role]:hover [data-actions]{opacity:1}chat-shell [data-cursor]{width:var(--chat-cursor-width);background:var(--chat-cursor-color);vertical-align:text-bottom;height:1em;animation:chat-shell-blink var(--chat-cursor-speed) step-end infinite;margin-inline-start:1px;display:inline-block}@keyframes chat-shell-blink{50%{opacity:0}}@media (prefers-reduced-motion:reduce){chat-shell [data-cursor]{opacity:.7;animation:none}}chat-shell [data-role=assistant][data-thinking] [data-bubble]{color:var(--chat-thinking-fg)}chat-shell [data-bubble] [data-content]{white-space:normal}chat-shell [data-bubble] [data-content] p{margin:0 0 .5em}chat-shell [data-bubble] [data-content] p:last-child{margin-bottom:0}chat-shell [data-bubble] [data-content] strong{font-weight:var(--chat-weight-semibold)}chat-shell [data-bubble] [data-content] code{background:var(--chat-code-bg);border-radius:var(--chat-code-inline-radius);font-family:var(--chat-code-inline-family);padding:.1em .15em;font-size:.875em}chat-shell [data-bubble] [data-content] pre{background:var(--chat-code-bg);border-radius:var(--chat-code-radius);padding:var(--chat-code-block-px);margin:var(--chat-code-block-my) 0;font-size:var(--chat-code-block-font);line-height:1.5;overflow-x:auto}chat-shell [data-bubble] [data-content] pre code{font-size:inherit;background:0 0;border-radius:0;padding:0}chat-shell [data-bubble] [data-content] ul,chat-shell [data-bubble] [data-content] ol{margin:.25em 0;padding-inline-start:1.25em}chat-shell [data-bubble] [data-content] li{margin-bottom:.15em}chat-shell [data-bubble] [data-content] a{color:inherit;text-underline-offset:2px;text-decoration:underline}chat-shell [data-bubble] [data-content] h1,chat-shell [data-bubble] [data-content] h2,chat-shell [data-bubble] [data-content] h3,chat-shell [data-bubble] [data-content] h4{font-weight:var(--chat-weight-semibold);margin:.75em 0 .25em}chat-shell [data-bubble] [data-content] h1:first-child,chat-shell [data-bubble] [data-content] h2:first-child,chat-shell [data-bubble] [data-content] h3:first-child{margin-top:0}chat-shell chat-empty{margin:auto}chat-shell[streaming] chat-empty,chat-shell:has([data-role]) chat-empty{display:none}chat-shell>chat-header,chat-sidebar>chat-header[slot=header],chat-sidebar>chat-header:first-child{align-items:center;gap:var(--chat-header-gap,var(--a-space-2));padding:0 var(--chat-header-px,var(--a-space-3));height:var(--chat-header-height,var(--a-size-lg));font-size:var(--chat-header-font,var(--a-ui-size));border-bottom:var(--chat-border,1px solid var(--a-border-subtle));background:var(--chat-bg,var(--a-bg));flex-shrink:0;display:flex}chat-header>[slot=name]{font-weight:var(--a-weight-medium,500);color:var(--a-fg)}chat-header>[slot=status]{margin-inline-start:var(--a-space-2)}chat-header>[slot=action]:first-of-type{margin-inline-start:auto}chat-header>[slot=action-leading]{margin-inline-end:var(--a-space-2)}chat-status{align-items:center;gap:var(--a-space-1);font-size:var(--a-ui-sm);color:var(--a-fg-muted);display:inline-flex}chat-shell>chat-thread{overscroll-behavior:contain;gap:var(--chat-message-gap,var(--a-space-3));min-height:0;padding:var(--chat-thread-py,var(--a-space-4)) var(--chat-thread-px,var(--a-space-4));background:var(--chat-thread-bg,var(--a-bg));flex-direction:column;flex:1;display:flex;overflow-y:auto}chat-thread:not([empty])>chat-empty{display:none}chat-thread[empty]>chat-empty{padding:var(--a-space-6);flex:1;justify-content:center;align-items:center;display:flex}chat-shell>chat-composer{align-items:stretch;gap:var(--a-space-2);padding:var(--chat-composer-py,var(--a-space-3)) var(--chat-composer-px,var(--a-space-3));border-top:var(--chat-border,1px solid var(--a-border-subtle));background:var(--chat-bg,var(--a-bg));flex-shrink:0;display:flex}chat-composer>[slot=leading],chat-composer>[slot=attach],chat-composer>[slot=trailing]{align-items:center;gap:var(--a-space-1);flex-shrink:0;display:inline-flex}chat-composer>:is(chat-input-ui,input-ui,textarea-ui){flex:1;min-width:0}chat-composer[disabled]{opacity:.6;pointer-events:none}:is(chat-sidebar[slot=leading],chat-sidebar[slot=trailing]){min-width:var(--chat-sidebar-min-width,48px);max-width:var(--chat-sidebar-max-width,480px);min-height:0;font-size:var(--chat-sidebar-font,var(--a-ui-size));transition:width var(--chat-duration,var(--a-duration,.2s)) var(--chat-easing,var(--a-easing,ease));background:var(--chat-bg,var(--a-bg));flex-direction:column;flex-shrink:0;display:flex;position:relative;container:sidebar/inline-size}chat-sidebar[slot=leading]{width:var(--chat-sidebar-width-leading,240px);border-right:var(--chat-border,1px solid var(--a-border-subtle))}chat-sidebar[slot=trailing]{width:var(--chat-sidebar-width-trailing,320px);border-left:var(--chat-border,1px solid var(--a-border-subtle))}:is(chat-sidebar[slot=leading],chat-sidebar[slot=trailing])>[data-resize]{cursor:col-resize;z-index:1;-webkit-user-select:none;user-select:none;width:6px;position:absolute;top:0;bottom:0}chat-sidebar[slot=leading]>[data-resize]{right:-3px}chat-sidebar[slot=trailing]>[data-resize]{left:-3px}:is(chat-sidebar[slot=leading],chat-sidebar[slot=trailing])>[data-resize]:hover{background:var(--a-accent);opacity:.5}chat-sidebar[resizing]{transition:none}chat-sidebar[resizing]>[data-resize]{background:var(--a-accent);opacity:.8}chat-shell:has(>chat-sidebar){flex-direction:row;display:flex}chat-shell:has(>chat-sidebar)>:not(chat-sidebar){display:contents}
|
|
1
|
+
:where(chat-shell){--chat-bg:var(--a-canvas-0);--chat-border:unset;--chat-radius:unset;--chat-header-height:var(--a-chrome-app-header-height);--chat-header-px:var(--a-space-4);--chat-header-gap:var(--a-space-2);--chat-header-border:1px solid var(--md-sys-color-neutral-outline-variant);--chat-messages-px:var(--a-space-4);--chat-messages-py:var(--a-space-4);--chat-messages-gap:var(--a-space-3);--chat-message-max-width:85%;--chat-user-bg:var(--md-sys-color-primary);--chat-user-fg:var(--md-sys-color-primary-on-primary);--chat-user-radius:var(--a-radius-md);--chat-user-tail-radius:var(--a-radius-sm);--chat-user-px:var(--a-space-3);--chat-user-py:var(--a-space-1);--chat-assistant-bg:var(--a-canvas-2);--chat-assistant-fg:var(--md-sys-color-neutral-on-surface);--chat-assistant-radius:var(--a-radius-lg);--chat-assistant-tail-radius:var(--a-radius-sm);--chat-assistant-px:var(--a-space-3);--chat-assistant-py:var(--a-space-1);--chat-avatar-size:1.75rem;--chat-avatar-bg:var(--chat-assistant-bg);--chat-avatar-fg:var(--chat-assistant-fg);--chat-avatar-font:var(--a-ui-sm);--chat-avatar-weight:var(--a-weight-semibold);--chat-cursor-width:2px;--chat-cursor-color:currentColor;--chat-cursor-speed:.8s;--chat-footer-px:var(--a-space-3);--chat-footer-py:var(--a-space-3);--chat-actions-gap:var(--a-space-1);--chat-code-bg:var(--a-canvas-2);--chat-code-radius:var(--a-radius-md);--chat-font-size:var(--a-ui-size);--chat-line-height:var(--a-leading-normal);--chat-weight-semibold:var(--a-weight-semibold);--chat-header-name-font:var(--a-ui-lg);--chat-header-status-font:var(--a-ui-md);--chat-header-status-fg:var(--a-fg-muted);--chat-error-gap:var(--a-space-2);--chat-error-fg:var(--a-danger-strong);--chat-error-font:var(--a-ui-sm);--chat-actions-duration:var(--a-duration-fast);--chat-actions-easing:var(--a-easing);--chat-avatar-radius:var(--a-radius-full);--chat-thinking-fg:var(--a-fg-muted);--chat-code-inline-radius:var(--a-radius-sm);--chat-code-inline-family:var(--a-font-family-code);--chat-code-block-px:var(--a-space-3);--chat-code-block-my:var(--a-space-2);--chat-code-block-font:var(--a-ui-sm)}chat-shell{box-sizing:border-box;border:var(--chat-border);border-radius:var(--chat-radius);background:var(--chat-bg);flex-direction:column;height:100%;display:flex;overflow:hidden}chat-shell>header{align-items:center;gap:var(--chat-header-gap);min-height:var(--chat-header-height);padding:0 var(--chat-header-px);border-bottom:var(--chat-header-border);flex-shrink:0;display:flex}chat-shell>header [data-chat-name]{font-weight:var(--chat-weight-semibold);font-size:var(--chat-header-name-font)}chat-shell>header chat-status{font-size:var(--chat-header-status-font);color:var(--chat-header-status-fg);margin-inline-start:auto}chat-shell>chat-thread,chat-shell>section{padding:var(--chat-messages-py) var(--chat-messages-px);gap:var(--chat-messages-gap);flex-direction:column;flex:1;min-height:0;display:flex;overflow-y:auto}chat-shell>footer{padding:var(--chat-footer-py) var(--chat-footer-px);flex-shrink:0;align-items:center;display:flex}chat-shell>footer chat-input-ui{flex:1}chat-shell [data-role]{gap:var(--chat-header-gap);max-width:var(--chat-message-max-width);align-items:flex-end;display:flex}chat-shell [data-role=user]{flex-direction:row-reverse;align-self:flex-end}chat-shell [data-role=assistant]{align-self:flex-start}chat-shell [data-role] [data-avatar]{width:var(--chat-avatar-size);height:var(--chat-avatar-size);border-radius:var(--chat-avatar-radius);background:var(--chat-avatar-bg);color:var(--chat-avatar-fg);font-size:var(--chat-avatar-font);font-weight:var(--chat-avatar-weight);flex-shrink:0;justify-content:center;align-items:center;display:flex}chat-shell [data-role] [data-bubble]{padding:var(--chat-assistant-py) var(--chat-assistant-px);border-radius:var(--chat-assistant-radius);font-size:var(--chat-font-size);line-height:var(--chat-line-height);white-space:pre-wrap;word-break:break-word}chat-shell [data-role] [data-bubble]>:first-child{margin-block-start:0}chat-shell [data-role] [data-bubble]>:last-child{margin-block-end:0}chat-shell [data-role=user] [data-bubble]{background:var(--chat-user-bg);color:var(--chat-user-fg);padding:var(--chat-user-py) var(--chat-user-px);border-radius:var(--chat-user-radius);border-bottom-right-radius:var(--chat-user-tail-radius)}chat-shell [data-role=assistant] [data-bubble]{background:var(--chat-assistant-bg);color:var(--chat-assistant-fg);border-bottom-left-radius:var(--chat-assistant-tail-radius)}chat-shell [data-role=error]{align-self:center;align-items:center;gap:var(--chat-error-gap);max-width:none;color:var(--chat-error-fg);font-size:var(--chat-error-font);display:flex}chat-shell [data-role] [data-actions]{gap:var(--chat-actions-gap);opacity:0;transition:opacity var(--chat-actions-duration) var(--chat-actions-easing);display:flex}chat-shell [data-role]:hover [data-actions]{opacity:1}chat-shell [data-cursor]{width:var(--chat-cursor-width);background:var(--chat-cursor-color);vertical-align:text-bottom;height:1em;animation:chat-shell-blink var(--chat-cursor-speed) step-end infinite;margin-inline-start:1px;display:inline-block}@keyframes chat-shell-blink{50%{opacity:0}}@media (prefers-reduced-motion:reduce){chat-shell [data-cursor]{opacity:.7;animation:none}}chat-shell [data-role=assistant][data-thinking] [data-bubble]{color:var(--chat-thinking-fg)}chat-shell [data-bubble] [data-content]{white-space:normal}chat-shell [data-bubble] [data-content] p{margin:0 0 .5em}chat-shell [data-bubble] [data-content] p:last-child{margin-bottom:0}chat-shell [data-bubble] [data-content] strong{font-weight:var(--chat-weight-semibold)}chat-shell [data-bubble] [data-content] code{background:var(--chat-code-bg);border-radius:var(--chat-code-inline-radius);font-family:var(--chat-code-inline-family);padding:.1em .15em;font-size:.875em}chat-shell [data-bubble] [data-content] pre{background:var(--chat-code-bg);border-radius:var(--chat-code-radius);padding:var(--chat-code-block-px);margin:var(--chat-code-block-my) 0;font-size:var(--chat-code-block-font);line-height:1.5;overflow-x:auto}chat-shell [data-bubble] [data-content] pre code{font-size:inherit;background:0 0;border-radius:0;padding:0}chat-shell [data-bubble] [data-content] ul,chat-shell [data-bubble] [data-content] ol{margin:.25em 0;padding-inline-start:1.25em}chat-shell [data-bubble] [data-content] li{margin-bottom:.15em}chat-shell [data-bubble] [data-content] a{color:inherit;text-underline-offset:2px;text-decoration:underline}chat-shell [data-bubble] [data-content] h1,chat-shell [data-bubble] [data-content] h2,chat-shell [data-bubble] [data-content] h3,chat-shell [data-bubble] [data-content] h4{font-weight:var(--chat-weight-semibold);margin:.75em 0 .25em}chat-shell [data-bubble] [data-content] h1:first-child,chat-shell [data-bubble] [data-content] h2:first-child,chat-shell [data-bubble] [data-content] h3:first-child{margin-top:0}chat-shell chat-empty{margin:auto}chat-shell[streaming] chat-empty,chat-shell:has([data-role]) chat-empty{display:none}chat-shell>chat-header,chat-sidebar>chat-header[slot=header],chat-sidebar>chat-header:first-child{align-items:center;gap:var(--chat-header-gap,var(--a-space-2));padding:0 var(--chat-header-px,var(--a-space-3));height:var(--chat-header-height,var(--a-size-lg));font-size:var(--chat-header-font,var(--a-ui-size));border-bottom:var(--chat-border,1px solid var(--md-sys-color-neutral-outline-variant));background:var(--chat-bg,var(--md-sys-color-neutral-background));flex-shrink:0;display:flex}chat-header>[slot=name]{font-weight:var(--a-weight-medium,500);color:var(--md-sys-color-neutral-on-surface)}chat-header>[slot=status]{margin-inline-start:var(--a-space-2)}chat-header>[slot=action]:first-of-type{margin-inline-start:auto}chat-header>[slot=action-leading]{margin-inline-end:var(--a-space-2)}chat-status{align-items:center;gap:var(--a-space-1);font-size:var(--a-ui-sm);color:var(--a-fg-muted);display:inline-flex}chat-shell>chat-thread{overscroll-behavior:contain;gap:var(--chat-message-gap,var(--a-space-3));min-height:0;padding:var(--chat-thread-py,var(--a-space-4)) var(--chat-thread-px,var(--a-space-4));background:var(--chat-thread-bg,var(--md-sys-color-neutral-background));flex-direction:column;flex:1;display:flex;overflow-y:auto}chat-thread:not([empty])>chat-empty{display:none}chat-thread[empty]>chat-empty{padding:var(--a-space-6);flex:1;justify-content:center;align-items:center;display:flex}chat-shell>chat-composer{align-items:stretch;gap:var(--a-space-2);padding:var(--chat-composer-py,var(--a-space-3)) var(--chat-composer-px,var(--a-space-3));border-top:var(--chat-border,1px solid var(--md-sys-color-neutral-outline-variant));background:var(--chat-bg,var(--md-sys-color-neutral-background));flex-shrink:0;display:flex}chat-composer>[slot=leading],chat-composer>[slot=attach],chat-composer>[slot=trailing]{align-items:center;gap:var(--a-space-1);flex-shrink:0;display:inline-flex}chat-composer>:is(chat-input-ui,input-ui,textarea-ui){flex:1;min-width:0}chat-composer[disabled]{opacity:.6;pointer-events:none}:is(chat-sidebar[slot=leading],chat-sidebar[slot=trailing]){min-width:var(--chat-sidebar-min-width,48px);max-width:var(--chat-sidebar-max-width,480px);min-height:0;font-size:var(--chat-sidebar-font,var(--a-ui-size));transition:width var(--chat-duration,var(--a-duration,.2s)) var(--chat-easing,var(--a-easing,ease));background:var(--chat-bg,var(--md-sys-color-neutral-background));flex-direction:column;flex-shrink:0;display:flex;position:relative;container:sidebar/inline-size}chat-sidebar[slot=leading]{width:var(--chat-sidebar-width-leading,240px);border-right:var(--chat-border,1px solid var(--md-sys-color-neutral-outline-variant))}chat-sidebar[slot=trailing]{width:var(--chat-sidebar-width-trailing,320px);border-left:var(--chat-border,1px solid var(--md-sys-color-neutral-outline-variant))}:is(chat-sidebar[slot=leading],chat-sidebar[slot=trailing])>[data-resize]{cursor:col-resize;z-index:1;-webkit-user-select:none;user-select:none;width:6px;position:absolute;top:0;bottom:0}chat-sidebar[slot=leading]>[data-resize]{right:-3px}chat-sidebar[slot=trailing]>[data-resize]{left:-3px}:is(chat-sidebar[slot=leading],chat-sidebar[slot=trailing])>[data-resize]:hover{background:var(--md-sys-color-primary);opacity:.5}chat-sidebar[resizing]{transition:none}chat-sidebar[resizing]>[data-resize]{background:var(--md-sys-color-primary);opacity:.8}chat-shell:has(>chat-sidebar){flex-direction:row;display:flex}chat-shell:has(>chat-sidebar)>:not(chat-sidebar){display:contents}
|
|
@@ -32,7 +32,7 @@ var FS=Object.defineProperty;var N=(i,e)=>()=>(i&&(e=i(i=0)),e);var Si=(i,e)=>{f
|
|
|
32
32
|
`?"":t;else{let r=t.indexOf(`
|
|
33
33
|
`);n=r<0?t:t.slice(0,r)}return e+n.length>this.to?n.slice(0,this.to-e):n}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,n=0){this.block=tl.create(e,n,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t,n=0){this.startContext(this.parser.getNodeType(e),t,n)}addNode(e,t,n){typeof e=="number"&&(e=new j(this.parser.nodeSet.types[e],zn,zn,(n??this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(Tf(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?x0(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let n of e.parsers)if(n.finish(this,e))return;let t=Tf(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish(P.Paragraph,e.content.length),e.start)}elt(e,t,n,r){return typeof e=="string"?q(this.parser.getNodeType(e),t,n,r):new al(e,t)}get buffer(){return new ll(this.parser.nodeSet)}};Yn=class i extends yt{constructor(e,t,n,r,s,o,l,a,h){super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=n,this.blockNames=r,this.endLeafBlock=s,this.skipContextMarkup=o,this.inlineParsers=l,this.inlineNames=a,this.wrappers=h,this.nodeTypes=Object.create(null);for(let c of e.types)this.nodeTypes[c.name]=c.id}createParse(e,t,n){let r=new sl(this,e,t,n);for(let s of this.wrappers)r=s(r,e,t,n);return r}configure(e){let t=$f(e);if(!t)return this;let{nodeSet:n,skipContextMarkup:r}=this,s=this.blockParsers.slice(),o=this.leafBlockParsers.slice(),l=this.blockNames.slice(),a=this.inlineParsers.slice(),h=this.inlineNames.slice(),c=this.endLeafBlock.slice(),f=this.wrappers;if(Br(t.defineNodes)){r=Object.assign({},r);let u=n.types.slice(),d;for(let O of t.defineNodes){let{name:m,block:g,composite:b,style:S}=typeof O=="string"?{name:O}:O;if(u.some(x=>x.name==m))continue;b&&(r[u.length]=(x,k,w)=>b(k,w,x.value));let y=u.length,C=b?["Block","BlockContext"]:g?y>=P.ATXHeading1&&y<=P.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;u.push(te.define({id:y,name:m,props:C&&[[R.group,C]]})),S&&(d||(d={}),Array.isArray(S)||S instanceof ze?d[m]=S:Object.assign(d,S))}n=new St(u),d&&(n=n.extend(Oe(d)))}if(Br(t.props)&&(n=n.extend(...t.props)),Br(t.remove))for(let u of t.remove){let d=this.blockNames.indexOf(u),O=this.inlineNames.indexOf(u);d>-1&&(s[d]=o[d]=void 0),O>-1&&(a[O]=void 0)}if(Br(t.parseBlock))for(let u of t.parseBlock){let d=l.indexOf(u.name);if(d>-1)s[d]=u.parse,o[d]=u.leaf;else{let O=u.before?ol(l,u.before):u.after?ol(l,u.after)+1:l.length-1;s.splice(O,0,u.parse),o.splice(O,0,u.leaf),l.splice(O,0,u.name)}u.endLeaf&&c.push(u.endLeaf)}if(Br(t.parseInline))for(let u of t.parseInline){let d=h.indexOf(u.name);if(d>-1)a[d]=u.parse;else{let O=u.before?ol(h,u.before):u.after?ol(h,u.after)+1:h.length-1;a.splice(O,0,u.parse),h.splice(O,0,u.name)}}return t.wrap&&(f=f.concat(t.wrap)),new i(n,s,o,l,c,r,a,h,f)}getNodeType(e){let t=this.nodeTypes[e];if(t==null)throw new RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let n=new Vn(this,e,t);e:for(let r=t;r<n.end;){let s=n.char(r);for(let o of this.inlineParsers)if(o){let l=o(n,s,r);if(l>=0){r=l;continue e}}r++}return n.resolveMarkers(0)}};k0=[te.none];for(let i=1,e;e=P[i];i++)k0[i]=te.define({id:i,name:e,props:i>=P.Escape?[]:[[R.group,i in c0?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});zn=[],ll=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,n,r=0){return this.content.push(e,t,n,4+r*4),this}writeElements(e,t=0){for(let n of e)n.writeTo(this,t);return this}finish(e,t){return j.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}},pi=class{constructor(e,t,n,r=zn){this.type=e,this.from=t,this.to=n,this.children=r}writeTo(e,t){let n=e.content.length;e.writeElements(this.children,t),e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-n)}toTree(e){return new ll(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}},al=class{constructor(e,t){this.tree=e,this.from=t}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return zn}writeTo(e,t){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+t,this.to+t,-1)}toTree(){return this.tree}};w0={resolve:"Emphasis",mark:"EmphasisMark"},P0={resolve:"Emphasis",mark:"EmphasisMark"},Fi={},hl={},Le=class{constructor(e,t,n,r){this.type=e,this.from=t,this.to=n,this.side=r}},$0="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",Ir=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Ir=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}vf={Escape(i,e,t){if(e!=92||t==i.end-1)return-1;let n=i.char(t+1);for(let r=0;r<$0.length;r++)if($0.charCodeAt(r)==n)return i.append(q(P.Escape,t,t+2));return-1},Entity(i,e,t){if(e!=38)return-1;let n=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(i.slice(t+1,t+31));return n?i.append(q(P.Entity,t,t+1+n[0].length)):-1},InlineCode(i,e,t){if(e!=96||t&&i.char(t-1)==96)return-1;let n=t+1;for(;n<i.end&&i.char(n)==96;)n++;let r=n-t,s=0;for(;n<i.end;n++)if(i.char(n)==96){if(s++,s==r&&i.char(n+1)!=96)return i.append(q(P.InlineCode,t,n+1,[q(P.CodeMark,t,t+r),q(P.CodeMark,n+1-r,n+1)]))}else s=0;return-1},HTMLTag(i,e,t){if(e!=60||t==i.end-1)return-1;let n=i.slice(t+1,i.end),r=/^(?:[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);if(r)return i.append(q(P.Autolink,t,t+1+r[0].length,[q(P.LinkMark,t,t+1),q(P.URL,t+1,t+r[0].length),q(P.LinkMark,t+r[0].length,t+1+r[0].length)]));let s=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(n);if(s)return i.append(q(P.Comment,t,t+1+s[0].length));let o=/^\?[^]*?\?>/.exec(n);if(o)return i.append(q(P.ProcessingInstruction,t,t+1+o[0].length));let l=/^(?:![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);return l?i.append(q(P.HTMLTag,t,t+1+l[0].length)):-1},Emphasis(i,e,t){if(e!=95&&e!=42)return-1;let n=t+1;for(;i.char(n)==e;)n++;let r=i.slice(t-1,t),s=i.slice(n,n+1),o=Ir.test(r),l=Ir.test(s),a=/\s|^$/.test(r),h=/\s|^$/.test(s),c=!h&&(!l||a||o),f=!a&&(!o||h||l),u=c&&(e==42||!f||o),d=f&&(e==42||!c||l);return i.append(new Le(e==95?w0:P0,t,n,(u?1:0)|(d?2:0)))},HardBreak(i,e,t){if(e==92&&i.char(t+1)==10)return i.append(q(P.HardBreak,t,t+2));if(e==32){let n=t+1;for(;i.char(n)==32;)n++;if(i.char(n)==10&&n>=t+2)return i.append(q(P.HardBreak,t,n+1))}return-1},Link(i,e,t){return e==91?i.append(new Le(Fi,t,t+1,1)):-1},Image(i,e,t){return e==33&&i.char(t+1)==91?i.append(new Le(hl,t,t+2,1)):-1},LinkEnd(i,e,t){if(e!=93)return-1;for(let n=i.parts.length-1;n>=0;n--){let r=i.parts[n];if(r instanceof Le&&(r.type==Fi||r.type==hl)){if(!r.side||i.skipSpace(r.to)==t&&!/[(\[]/.test(i.slice(t+1,t+2)))return i.parts[n]=null,-1;let s=i.takeContent(n),o=i.parts[n]=a$(i,s,r.type==Fi?P.Link:P.Image,r.from,t+1);if(r.type==Fi)for(let l=0;l<n;l++){let a=i.parts[l];a instanceof Le&&a.type==Fi&&(a.side=0)}return o.to}}return-1}};Vn=class{constructor(e,t,n){this.parser=e,this.text=t,this.offset=n,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,r,s){return this.append(new Le(e,t,n,(r?1:0)|(s?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let t=this.parts[e];if(t instanceof Le&&(t.type==Fi||t.type==hl))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let n=e;n<this.parts.length;n++){let r=this.parts[n];if(!(r instanceof Le&&r.type.resolve&&r.side&2))continue;let s=r.type==w0||r.type==P0,o=r.to-r.from,l,a=n-1;for(;a>=e;a--){let m=this.parts[a];if(m instanceof Le&&m.side&1&&m.type==r.type&&!(s&&(r.side&1||m.side&2)&&(m.to-m.from+o)%3==0&&((m.to-m.from)%3||o%3))){l=m;break}}if(!l)continue;let h=r.type.resolve,c=[],f=l.from,u=r.to;if(s){let m=Math.min(2,l.to-l.from,o);f=l.to-m,u=r.from+m,h=m==1?"Emphasis":"StrongEmphasis"}l.type.mark&&c.push(this.elt(l.type.mark,f,l.to));for(let m=a+1;m<n;m++)this.parts[m]instanceof pi&&c.push(this.parts[m]),this.parts[m]=null;r.type.mark&&c.push(this.elt(r.type.mark,r.from,u));let d=this.elt(h,f,u,c);this.parts[a]=s&&l.from!=f?new Le(l.type,l.from,f,l.side):null,(this.parts[n]=s&&r.to!=u?new Le(r.type,u,r.to,r.side):null)?this.parts.splice(n,0,d):this.parts[n]=d}let t=[];for(let n=e;n<this.parts.length;n++){let r=this.parts[n];r instanceof pi&&t.push(r)}return t}findOpeningDelimiter(e){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof Le&&n.type==e&&n.side&1)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}getDelimiterAt(e){let t=this.parts[e];return t instanceof Le?t:null}skipSpace(e){return qr(this.text,e-this.offset)+this.offset}elt(e,t,n,r){return typeof e=="string"?q(this.parser.getNodeType(e),t,n,r):new al(e,t)}};Vn.linkStart=Fi,Vn.imageStart=hl;h$=[P.CodeBlock,P.ListItem,P.OrderedList,P.BulletList],Cf=class{constructor(e,t){this.fragments=e,this.input=t,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,t){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let s=this.fragment.to;for(;s>0&&this.input.read(s-1,s)!=`
|
|
34
34
|
`;)s--;this.fragmentEnd=s?s-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(R.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),s=e.absoluteLineStart,o=s,l=e.block.children.length,a=o,h=l;for(;;){if(t.to-n>r){if(t.type.isAnonymous&&t.firstChild())continue;break}let c=X0(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,c);else{let f=new j(e.parser.nodeSet.types[P.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(f,t.tree),e.addNode(f,c)}if(t.type.is("Block")&&(h$.indexOf(t.type.id)<0?(o=t.to-n,l=e.block.children.length):(o=a,l=h),a=t.to-n,h=e.block.children.length),!t.nextSibling())break}for(;e.block.children.length>l;)e.block.children.pop(),e.block.positions.pop();return o-s}};c$=Oe({"Blockquote/...":p.quote,HorizontalRule:p.contentSeparator,"ATXHeading1/... SetextHeading1/...":p.heading1,"ATXHeading2/... SetextHeading2/...":p.heading2,"ATXHeading3/...":p.heading3,"ATXHeading4/...":p.heading4,"ATXHeading5/...":p.heading5,"ATXHeading6/...":p.heading6,"Comment CommentBlock":p.comment,Escape:p.escape,Entity:p.character,"Emphasis/...":p.emphasis,"StrongEmphasis/...":p.strong,"Link/... Image/...":p.link,"OrderedList/... BulletList/...":p.list,"BlockQuote/...":p.quote,"InlineCode CodeText":p.monospace,"URL Autolink":p.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":p.processingInstruction,"CodeInfo LinkLabel":p.labelName,LinkTitle:p.string,Paragraph:p.content}),Af=new Yn(new St(k0).extend(c$),Object.keys(rl).map(i=>rl[i]),Object.keys(rl).map(i=>Q0[i]),Object.keys(rl),o$,c0,Object.keys(vf).map(i=>vf[i]),Object.keys(vf),[]);u$={resolve:"Strikethrough",mark:"StrikethroughMark"},A0={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":p.strikethrough}},{name:"StrikethroughMark",style:p.processingInstruction}],parseInline:[{name:"Strikethrough",parse(i,e,t){if(e!=126||i.char(t+1)!=126||i.char(t+2)==126)return-1;let n=i.slice(t-1,t),r=i.slice(t+2,t+3),s=/\s|^$/.test(n),o=/\s|^$/.test(r),l=Ir.test(n),a=Ir.test(r);return i.addDelimiter(u$,t,t+2,!o&&(!a||s||l),!s&&(!l||o||a))},after:"Emphasis"}]};Z0=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/,cl=class{constructor(){this.rows=null}nextLine(e,t,n){if(this.rows==null){this.rows=!1;let r;if((t.next==45||t.next==58||t.next==124)&&Z0.test(r=t.text.slice(t.pos))){let s=[];Nr(e,n.content,0,s,n.start)==Nr(e,r,t.pos)&&(this.rows=[e.elt("TableHeader",n.start,n.start+n.content.length,s),e.elt("TableDelimiter",e.lineStart+t.pos,e.lineStart+t.text.length)])}}else if(this.rows){let r=[];Nr(e,t.text,t.pos,r,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+t.pos,e.lineStart+t.text.length,r))}return!1}finish(e,t){return this.rows?(e.addLeafElement(t,e.elt("Table",t.start,t.start+t.content.length,this.rows)),!0):!1}},M0={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":p.heading}},"TableRow",{name:"TableCell",style:p.content},{name:"TableDelimiter",style:p.processingInstruction}],parseBlock:[{name:"Table",leaf(i,e){return R0(e.content,0)?new cl:null},endLeaf(i,e,t){if(t.parsers.some(r=>r instanceof cl)||!R0(e.text,e.basePos))return!1;let n=i.peekLine();return Z0.test(n)&&Nr(i,e.text,e.basePos)==Nr(i,n,e.basePos)},before:"SetextHeading"}]},Xf=class{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}},E0={defineNodes:[{name:"Task",block:!0,style:p.list},{name:"TaskMarker",style:p.atom}],parseBlock:[{name:"TaskList",leaf(i,e){return/^\[[ xX]\][ \t]/.test(e.content)&&i.parentType().name=="ListItem"?new Xf:null},after:"SetextHeading"}]},L0=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,_0=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,d$=/[\w-]+\.[\w-]+($|\/)/,j0=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,z0=/\/[a-zA-Z\d@.]+/gy;D0={parseInline:[{name:"Autolink",parse(i,e,t){let n=t-i.offset;if(n&&/\w/.test(i.text[n-1]))return-1;L0.lastIndex=n;let r=L0.exec(i.text),s=-1;if(!r)return-1;if(r[1]||r[2]){if(s=O$(i.text,n+r[0].length),s>-1&&i.hasOpenLink){let o=/([^\[\]]|\[[^\]]*\])*/.exec(i.text.slice(n,s));s=n+o[0].length}}else r[3]?s=Y0(i.text,n):(s=Y0(i.text,n+r[0].length),s>-1&&r[0]=="xmpp:"&&(z0.lastIndex=s,r=z0.exec(i.text),r&&(s=r.index+r[0].length)));return s<0?-1:(i.addElement(i.elt("URL",t,s+i.offset)),s+i.offset)}}]},Zf=[M0,E0,A0,D0];Mf={defineNodes:[{name:"Superscript",style:p.special(p.content)},{name:"SuperscriptMark",style:p.processingInstruction}],parseInline:[{name:"Superscript",parse:W0(94,"Superscript","SuperscriptMark")}]},Ef={defineNodes:[{name:"Subscript",style:p.special(p.content)},{name:"SubscriptMark",style:p.processingInstruction}],parseInline:[{name:"Subscript",parse:W0(126,"Subscript","SubscriptMark")}]},Lf={defineNodes:[{name:"Emoji",style:p.character}],parseInline:[{name:"Emoji",parse(i,e,t){let n;return e!=58||!(n=/^[a-zA-Z_0-9]+:/.exec(i.slice(t+1,i.end)))?-1:i.addElement(i.elt("Emoji",t,t+1+n[0].length))}}]}});var eb={};Si(eb,{commonmarkLanguage:()=>Df,deleteMarkupBackward:()=>Bf,insertNewlineContinueMarkup:()=>qf,insertNewlineContinueMarkupCommand:()=>Wf,markdown:()=>J0,markdownKeymap:()=>If,markdownLanguage:()=>Dn,pasteURLAsLink:()=>Nf});function _f(i){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(i.name);return e?+e[1]:void 0}function p$(i){return i.name=="OrderedList"||i.name=="BulletList"}function m$(i,e){let t=i;for(;;){let n=t.nextSibling,r;if(!n||(r=_f(n.type))!=null&&r<=e)break;t=n}return t.to}function jf(i){return new de(B0,i,[],"markdown")}function S$(i,e){return t=>{if(t&&i){let n=null;if(t=/\S*/.exec(t)[0],typeof i=="function"?n=i(t):n=Rn.matchLanguageName(i,t,!0),n instanceof Rn)return n.support?n.support.language.parser:ui.getSkippingParser(n.load());if(n)return n.parser}return e?e.parser:null}}function G0(i,e){let t=[],n=[];for(let r=i;r;r=r.parent){if(r.name=="FencedCode")return n;(r.name=="ListItem"||r.name=="Blockquote")&&t.push(r)}for(let r=t.length-1;r>=0;r--){let s=t[r],o,l=e.lineAt(s.from),a=s.from-l.from;if(s.name=="Blockquote"&&(o=/^ *>( ?)/.exec(l.text.slice(a))))n.push(new Gr(s,a,a+o[0].length,"",o[1],">",null));else if(s.name=="ListItem"&&s.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(l.text.slice(a)))){let h=o[3],c=o[0].length;h.length>=4&&(h=h.slice(0,h.length-4),c-=4),n.push(new Gr(s.parent,a,a+c,o[1],h,o[2],s))}else if(s.name=="ListItem"&&s.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(l.text.slice(a)))){let h=o[4],c=o[0].length;h.length>4&&(h=h.slice(0,h.length-4),c-=4);let f=o[2];o[3]&&(f+=o[3].replace(/[xX]/," ")),n.push(new Gr(s.parent,a,a+c,o[1],h,f,s))}}return n}function U0(i,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(i.from,i.from+10))}function zf(i,e,t,n=0){for(let r=-1,s=i;;){if(s.name=="ListItem"){let l=U0(s,e),a=+l[2];if(r>=0){if(a!=r+1)return;t.push({from:s.from+l[1].length,to:s.from+l[0].length,insert:String(r+2+n)})}r=a}let o=s.nextSibling;if(!o)break;s=o}}function Vf(i,e){let t=/^[ \t]*/.exec(i)[0].length;if(!t||e.facet(Ft)!=" ")return i;let n=ke(i,4,t),r="";for(let s=n;s>0;)s>=4?(r+=" ",s-=4):(r+=" ",s--);return r+i.slice(t)}function F0(i){return i.name=="QuoteMark"||i.name=="ListMark"}function y$(i,e){if(i.name!="OrderedList"&&i.name!="BulletList")return!1;let t=i.firstChild,n=i.getChild("ListItem","ListItem");if(!n)return!1;let r=e.lineAt(t.to),s=e.lineAt(n.from),o=/^[\s>]*$/.test(r.text);return r.number+(o?0:1)<s.number}function H0(i,e,t){let n="";for(let r=0,s=i.length-2;r<=s;r++)n+=i[r].blank(r<s?ke(t.text,4,i[r+1].from)-n.length:null,r<s);return Vf(n,e)}function Q$(i,e){let t=i.resolveInner(e,-1),n=e;F0(t)&&(n=t.from,t=t.parent);for(let r;r=t.childBefore(n);)if(F0(r))n=r.from;else if(r.name=="OrderedList"||r.name=="BulletList")t=r.lastChild,n=t.to;else break;return t}function J0(i={}){let{codeLanguages:e,defaultCodeLanguage:t,addKeymap:n=!0,base:{parser:r}=Df,completeHTMLTags:s=!0,pasteURLAsLink:o=!0,htmlTagLanguage:l=K0}=i;if(!(r instanceof Yn))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let a=i.extensions?[i.extensions]:[],h=[l.support,g$],c;o&&h.push(Nf),t instanceof le?(h.push(t.support),c=t.language):t&&(c=t);let f=e||c?S$(e,c):void 0;a.push(Rf({codeParser:f,htmlParser:l.language.parser})),n&&h.push(Ve.high(Ct.of(If)));let u=jf(r.configure(a));return s&&h.push(u.data.of({autocomplete:x$})),new le(u,h)}function x$(i){let{state:e,pos:t}=i,n=/<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(t-25,t));if(!n)return null;let r=V(e).resolveInner(t,-1);for(;r&&!r.type.isTop;){if(r.name=="CodeBlock"||r.name=="FencedCode"||r.name=="ProcessingInstructionBlock"||r.name=="CommentBlock"||r.name=="Link"||r.name=="Image")return null;r=r.parent}return{from:t-n[0].length,to:t,options:k$(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}function k$(){if(Yf)return Yf;let i=Jo(new Gi(F.create({extensions:K0}),0,!0));return Yf=i?i.options:[]}var B0,I0,N0,g$,Df,b$,Dn,Gr,Wf,qf,Bf,If,K0,Yf,w$,Nf,tb=N(()=>{$t();qt();Rt();nf();q0();gf();ut();B0=Wi({commentTokens:{block:{open:"<!--",close:"-->"}}}),I0=new R,N0=Af.configure({props:[Ee.add(i=>!i.is("Block")||i.is("Document")||_f(i)!=null||p$(i)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),I0.add(_f),Me.add({Document:()=>null}),Xt.add({Document:B0})]});g$=Mo.of((i,e,t)=>{for(let n=V(i).resolveInner(t,-1);n&&!(n.from<e);n=n.parent){let r=n.type.prop(I0);if(r==null)continue;let s=m$(n,r);if(s>t)return{from:t,to:s}}return null});Df=jf(N0),b$=N0.configure([Zf,Ef,Mf,Lf,{props:[Ee.add({Table:(i,e)=>({from:e.doc.lineAt(i.from).to,to:i.to})})]}]),Dn=jf(b$);Gr=class{constructor(e,t,n,r,s,o,l){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=s,this.type=o,this.item=l}blank(e,t=!0){let n=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;n.length<e;)n+=" ";return n}else{for(let r=this.to-this.from-n.length-this.spaceAfter.length;r>0;r--)n+=" ";return n+(t?this.spaceAfter:"")}}marker(e,t){let n=this.node.name=="OrderedList"?String(+U0(this.item,e)[2]+t):"";return this.spaceBefore+n+this.type+this.spaceAfter}};Wf=(i={})=>({state:e,dispatch:t})=>{let n=V(e),{doc:r}=e,s=null,o=e.changeByRange(l=>{if(!l.empty||!Dn.isActiveAt(e,l.from,-1)&&!Dn.isActiveAt(e,l.from,1))return s={range:l};let a=l.from,h=r.lineAt(a),c=G0(n.resolveInner(a,-1),r);for(;c.length&&c[c.length-1].from>a-h.from;)c.pop();if(!c.length)return s={range:l};let f=c[c.length-1];if(f.to-f.spaceAfter.length>a-h.from)return s={range:l};let u=a>=f.to-f.spaceAfter.length&&!/\S/.test(h.text.slice(f.to));if(f.item&&u){let b=f.node.firstChild,S=f.node.getChild("ListItem","ListItem");if(b.to>=a||S&&S.to<a||h.from>0&&!/[^\s>]/.test(r.lineAt(h.from-1).text)||i.nonTightLists===!1){let y=c.length>1?c[c.length-2]:null,C,x="";y&&y.item?(C=h.from+y.from,x=y.marker(r,1)):C=h.from+(y?y.to:0);let k=[{from:C,to:a,insert:x}];return f.node.name=="OrderedList"&&zf(f.item,r,k,-2),y&&y.node.name=="OrderedList"&&zf(y.item,r,k),{range:Q.cursor(C+x.length),changes:k}}else{let y=H0(c,e,h);return{range:Q.cursor(a+y.length+1),changes:{from:h.from,insert:y+e.lineBreak}}}}if(f.node.name=="Blockquote"&&u&&h.from){let b=r.lineAt(h.from-1),S=/>\s*$/.exec(b.text);if(S&&S.index==f.from){let y=e.changes([{from:b.from+S.index,to:b.to},{from:h.from+f.from,to:h.to}]);return{range:l.map(y),changes:y}}}let d=[];f.node.name=="OrderedList"&&zf(f.item,r,d);let O=f.item&&f.item.from<h.from,m="";if(!O||/^[\s\d.)\-+*>]*/.exec(h.text)[0].length>=f.to)for(let b=0,S=c.length-1;b<=S;b++)m+=b==S&&!O?c[b].marker(r,1):c[b].blank(b<S?ke(h.text,4,c[b+1].from)-m.length:null);let g=a;for(;g>h.from&&/\s/.test(h.text.charAt(g-h.from-1));)g--;return m=Vf(m,e),y$(f.node,e.doc)&&(m=H0(c,e,h)+e.lineBreak+m),d.push({from:g,to:a,insert:e.lineBreak+m}),{range:Q.cursor(g+m.length+1),changes:d}});return s?!1:(t(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)},qf=Wf();Bf=({state:i,dispatch:e})=>{let t=V(i),n=null,r=i.changeByRange(s=>{let o=s.from,{doc:l}=i;if(s.empty&&Dn.isActiveAt(i,s.from)){let a=l.lineAt(o),h=G0(Q$(t,o),l);if(h.length){let c=h[h.length-1],f=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(o-a.from>f&&!/\S/.test(a.text.slice(f,o-a.from)))return{range:Q.cursor(a.from+f),changes:{from:a.from+f,to:o}};if(o-a.from==f&&(!c.item||a.from<=c.item.from||!/\S/.test(a.text.slice(0,c.to)))){let u=a.from+c.from;if(c.item&&c.node.from<c.item.from&&/\S/.test(a.text.slice(c.from,c.to))){let d=c.blank(ke(a.text,4,c.to)-ke(a.text,4,c.from));return u==a.from&&(d=Vf(d,i)),{range:Q.cursor(u+d.length),changes:{from:u,to:a.from+c.to,insert:d}}}if(u<o)return{range:Q.cursor(u),changes:{from:u,to:o}}}}}return n={range:s}});return n?!1:(e(i.update(r,{scrollIntoView:!0,userEvent:"delete"})),!0)},If=[{key:"Enter",run:qf},{key:"Backspace",run:Bf}],K0=el({matchClosingTags:!1});Yf=null;w$=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,Nf=$.domEventHandlers({paste:(i,e)=>{var t;let{main:n}=e.state.selection;if(n.empty)return!1;let r=(t=i.clipboardData)===null||t===void 0?void 0:t.getData("text/plain");if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r="https://"+r),!Dn.isActiveAt(e.state,n.from,1)))return!1;let s=V(e.state),o=!1;return s.iterate({from:n.from,to:n.to,enter:l=>{(l.from>n.from||w$.test(l.name))&&(o=!0)},leave:l=>{l.to<n.to&&(o=!0)}}),o?!1:(e.dispatch({changes:[{from:n.from,insert:"["},{from:n.to,insert:`](${r})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}})});function Fr(i,e){for(let t=0,n=e-i.pos-1;;n--,t++){let r=i.peek(n);if(ti(r)||r==-1)return t}}function Hf(i){return i==32||i==9}function ti(i){return i==10||i==13}function lb(i){return Hf(i)||ti(i)}function Hi(i){return i<0||lb(i)}function qn(i,e,t=0){return i.peek(t)==e&&i.peek(t+1)==e&&i.peek(t+2)==e&&Hi(i.peek(t+3))}function I$(i){return i>32&&i<127&&i!=34&&i!=37&&i!=44&&i!=60&&i!=62&&i!=92&&i!=94&&i!=96&&i!=123&&i!=124&&i!=125}function ab(i){return i>=48&&i<=57||i>=97&&i<=102||i>=65&&i<=70}function hb(i,e){return i.next==37?(i.advance(),ab(i.next)&&i.advance(),ab(i.next)&&i.advance(),!0):I$(i.next)||e&&i.next==44?(i.advance(),!0):!1}function cb(i){if(i.advance(),i.next==60){for(i.advance();;)if(!hb(i,!0)){i.next==62&&i.advance();break}}else for(;hb(i,!1););}function Kf(i){for(i.advance();!Hi(i.next)&&fl(i.next)!="f";)i.advance()}function Jf(i,e){let t=i.next,n=!1,r=i.pos;for(i.advance();;){let s=i.next;if(s<0)break;if(i.advance(),s==t)if(s==39)if(i.next==39)i.advance();else break;else break;else if(s==92&&t==34)i.next>=0&&i.advance();else if(ti(s)){if(e)return!1;n=!0}else if(e&&i.pos>=r+1024)return!1}return!n}function N$(i){for(let e=[],t=i.pos+1024;;)if(i.next==91||i.next==123)e.push(i.next),i.advance();else if(i.next==39||i.next==34){if(!Jf(i,!0))return!1}else if(i.next==93||i.next==125){if(e[e.length-1]!=i.next-2)return!1;if(e.pop(),i.advance(),!e.length)return!0}else{if(i.next<0||i.pos>t||ti(i.next))return!1;i.advance()}}function fl(i){return i<33?"u":i>125?"s":G$[i-33]}function eu(i,e){let t=fl(i);return t!="u"&&!(e&&t=="f")}function fb(i,e,t,n){if(fl(i.next)=="s"||(i.next==63||i.next==58||i.next==45)&&eu(i.peek(1),t))i.advance();else return!1;let r=i.pos;for(;;){let s=i.next,o=0,l=n+1;for(;lb(s);){if(ti(s)){if(e)return!1;l=0}else l++;s=i.peek(++o)}if(!(s>=0&&(s==58?eu(i.peek(o+1),t):s==35?i.peek(o-1)!=32:eu(s,t)))||!t&&l<=n||l==0&&!t&&(qn(i,45,o)||qn(i,46,o)))break;if(e&&fl(s)=="f")return!1;for(let h=o;h>=0;h--)i.advance();if(e&&i.pos>r+1024)return!1}return!0}var Wn,ib,P$,$$,nb,v$,rb,T$,C$,sb,X$,A$,R$,Z$,M$,E$,ob,L$,_$,j$,z$,V$,Y$,D$,Gf,Uf,Ur,Ff,ei,W$,q$,B$,G$,U$,F$,H$,tu,ub=N(()=>{$i();wt();Wn=63,ib=64,P$=1,$$=2,nb=3,v$=4,rb=5,T$=6,C$=7,sb=65,X$=66,A$=8,R$=9,Z$=10,M$=11,E$=12,ob=13,L$=19,_$=20,j$=29,z$=33,V$=34,Y$=47,D$=0,Gf=1,Uf=2,Ur=3,Ff=4,ei=class{constructor(e,t,n){this.parent=e,this.depth=t,this.type=n,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)+n}};ei.top=new ei(null,-1,D$);W$=new zt({start:ei.top,reduce(i,e){return i.type==Ur&&(e==_$||e==V$)?i.parent:i},shift(i,e,t,n){if(e==nb)return new ei(i,Fr(n,n.pos),Gf);if(e==sb||e==rb)return new ei(i,Fr(n,n.pos),Uf);if(e==Wn)return i.parent;if(e==L$||e==z$)return new ei(i,0,Ur);if(e==ob&&i.type==Ff)return i.parent;if(e==Y$){let r=/[1-9]/.exec(n.read(n.pos,t.pos));if(r)return new ei(i,i.depth+ +r[0],Ff)}return i},hash(i){return i.hash}});q$=new ie((i,e)=>{if(i.next==-1&&e.canShift(ib))return i.acceptToken(ib);let t=i.peek(-1);if((ti(t)||t<0)&&e.context.type!=Ur){if(qn(i,45))if(e.canShift(Wn))i.acceptToken(Wn);else return i.acceptToken(P$,3);if(qn(i,46))if(e.canShift(Wn))i.acceptToken(Wn);else return i.acceptToken($$,3);let n=0;for(;i.next==32;)n++,i.advance();(n<e.context.depth||n==e.context.depth&&e.context.type==Gf&&(i.next!=45||!Hi(i.peek(1))))&&i.next!=-1&&!ti(i.next)&&i.next!=35&&i.acceptToken(Wn,-n)}},{contextual:!0}),B$=new ie((i,e)=>{if(e.context.type==Ur){i.next==63&&(i.advance(),Hi(i.next)&&i.acceptToken(C$));return}if(i.next==45)i.advance(),Hi(i.next)&&i.acceptToken(e.context.type==Gf&&e.context.depth==Fr(i,i.pos-1)?v$:nb);else if(i.next==63)i.advance(),Hi(i.next)&&i.acceptToken(e.context.type==Uf&&e.context.depth==Fr(i,i.pos-1)?T$:rb);else{let t=i.pos;for(;;)if(Hf(i.next)){if(i.pos==t)return;i.advance()}else if(i.next==33)cb(i);else if(i.next==38)Kf(i);else if(i.next==42){Kf(i);break}else if(i.next==39||i.next==34){if(Jf(i,!0))break;return}else if(i.next==91||i.next==123){if(!N$(i))return;break}else{fb(i,!0,!1,0);break}for(;Hf(i.next);)i.advance();if(i.next==58){if(i.pos==t&&e.canShift(j$))return;let n=i.peek(1);Hi(n)&&i.acceptTokenTo(e.context.type==Uf&&e.context.depth==Fr(i,t)?X$:sb,t)}}},{contextual:!0});G$="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";U$=new ie((i,e)=>{if(i.next==33)cb(i),i.acceptToken(E$);else if(i.next==38||i.next==42){let t=i.next==38?Z$:M$;Kf(i),i.acceptToken(t)}else i.next==39||i.next==34?(Jf(i,!1),i.acceptToken(R$)):fb(i,!1,e.context.type==Ur,e.context.depth)&&i.acceptToken(A$)}),F$=new ie((i,e)=>{let t=e.context.type==Ff?e.context.depth:-1,n=i.pos;e:for(;;){let r=0,s=i.next;for(;s==32;)s=i.peek(++r);if(!r&&(qn(i,45,r)||qn(i,46,r))||!ti(s)&&(t<0&&(t=Math.max(e.context.depth+1,r)),r<t))break;for(;;){if(i.next<0)break e;let o=ti(i.next);if(i.advance(),o)continue e;n=i.pos}}i.acceptTokenTo(ob,n)}),H$=Oe({DirectiveName:p.keyword,DirectiveContent:p.attributeValue,"DirectiveEnd DocEnd":p.meta,QuotedLiteral:p.string,BlockLiteralHeader:p.special(p.string),BlockLiteralContent:p.content,Literal:p.content,"Key/Literal Key/QuotedLiteral":p.definition(p.propertyName),"Anchor Alias":p.labelName,Tag:p.typeName,Comment:p.lineComment,": , -":p.separator,"?":p.punctuation,"[ ]":p.squareBracket,"{ }":p.brace}),tu=Ce.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-sQgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WOaO,59vO/cQgO'#D_OOQR,59x,59xO0VQgO'#DaOOQR,59z,59zOOQP,59|,59|O0yOaO,59|O1ROaO,59|O1aOqO,59|OOQP-E7h-E7hO1oQgO,59XOOQP,59X,59XO2PQaO'#DeO2_QgO'#DeO2oQgO'#DkOOQP'#Dk'#DkQ)jQaOOO3PQdO'#CsOOQO,59^,59^O3kQdO'#CuOOQO,59`,59`OOQO,59c,59cO4VQdO,59cO4aQdO'#CzO4kQ`O'#CzOOQO,59b,59bOOQU,5:Q,5:QOOQR1G.v1G.vO4pQ`O1G.vOOQU-E7d-E7dO4xQdO,59kOOQO,59k,59kO5SQdO'#DQO5^Q`O'#DQOOQO,5:d,5:dOOQU,5:R,5:ROOQR1G/U1G/UO5cQ`O1G/UOOQU-E7e-E7eO5kQgO'#DhO5xQcO1G/XOOQR1G/X1G/XOOQR,59q,59qO6TQgO,59qO6eQdO'#DiO6lQgO'#DiO7PQcO1G/[OOQR1G/[1G/[OOQR,59r,59rO#|QfO,59rOOQR1G/b1G/bO7_OWO1G/bO7dOaO1G/bOOQR,59y,59yOOQR,59{,59{OOQP1G/h1G/hO7lOaO1G/hO7tOaO1G/hO8POaO1G/hOOQP1G.s1G.sO8_QgO,5:POOQP,5:P,5:POOQP,5:V,5:VOOQP-E7i-E7iOOQO,59_,59_OOQO,59a,59aOOQO1G.}1G.}OOQO,59f,59fO8oQdO,59fOOQR7+$b7+$bP,XQ`O'#DfOOQO1G/V1G/VOOQO,59l,59lO8yQdO,59lOOQR7+$p7+$pP9TQ`O'#DgOOQR'#DT'#DTOOQR,5:S,5:SOOQR-E7f-E7fOOQR7+$s7+$sOOQR1G/]1G/]O9YQgO'#DYO9jQ`O'#DYOOQR,5:T,5:TO#|QfO'#DZO9oQcO'#DZOOQR-E7g-E7gOOQR7+$v7+$vOOQR1G/^1G/^OOQR7+$|7+$|O:QOWO7+$|OOQP7+%S7+%SO:VOaO7+%SO:_OaO7+%SOOQP1G/k1G/kOOQO1G/Q1G/QOOQO1G/W1G/WOOQR,59t,59tO:jQgO,59tOOQR,59u,59uO#|QfO,59uOOQR<<Hh<<HhOOQP<<Hn<<HnO:zOaO<<HnOOQR1G/`1G/`OOQR1G/a1G/aOOQPAN>YAN>Y",stateData:";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcPOqQO~OmzO~P%OOm!OOUzP!azP!bzP!dzP~P#|O^!SO!b!QO!f!TO!g!RO~ORSOTUOWROXROcPOqQO!PVO!cTO~OY!UOP!QXQ!QX!V!QX!`!QXS!QX!a!QX!b!QXU!QXm!QX!d!QX~P&aO[!WOP!SXQ!SX!V!SX!`!SXS!SX!a!SX!b!SXU!SXm!SX!d!SX~P&aO^!ZO!W![O!b!YO!f!]O!g!YO~OP!_O!V[OQaX!`aX~OPaXQaX!VaX!`aX~P#|OP!bOQ!cO!V[O~OP_O!V[O~P#|OWROXROY!fOcPOqQObfXmfXofXpfX~OWROXRO[!hOcPOqQObhXmhXohXphX~ObeXmlXoeX~ObkXokX~P%OOm!kO~Om!lObnPonP~P%OOb!pOo!oO~Ob!pO~P!bOm!sOosXpsX~OosXpsX~P%OOm!uOotPptP~P%OOo!xOp!yO~Op!yO~P#WOS!|O!a#OO!b#OO~OUyX!ayX!byX!dyX~P#|Om#QO~OU#SO!a#UO!b#UO!d#RO~Om#WOUzX!azX!bzX!dzX~O]#XO~O!b#XO!g#YO~O^#ZO!b#XO!g#YO~OP!RXQ!RX!V!RX!`!RXS!RX!a!RX!b!RXU!RXm!RX!d!RX~P&aOP!TXQ!TX!V!TX!`!TXS!TX!a!TX!b!TXU!TXm!TX!d!TX~P&aO!b#^O!g#^O~O^#_O!b#^O!f#`O!g#^O~O^#_O!W#aO!b#^O!g#^O~OPaaQaa!Vaa!`aa~P#|OP#cO!V[OQ!XX!`!XX~OP!XXQ!XX!V!XX!`!XX~P#|OP_O!V[OQ!_X!`!_X~P#|OWROXROcPOqQObgXmgXogXpgX~OWROXROcPOqQObiXmiXoiXpiX~Obkaoka~P%OObnXonX~P%OOm#kO~Ob#lOo!oO~Oosapsa~P%OOotXptX~P%OOm#pO~Oo!xOp#qO~OSwP!awP!bwP~P#|OS!|O!a#vO!b#vO~OUya!aya!bya!dya~P#|Om#xO~P%OOm#{OU}P!a}P!b}P!d}P~P#|OU#SO!a$OO!b$OO!d#RO~O]$QO~O!b$QO!g$RO~O!b$SO!g$SO~O^$TO!b$SO!g$SO~O^$TO!b$SO!f$UO!g$SO~OP!XaQ!Xa!V!Xa!`!Xa~P#|Obnaona~P%OOotapta~P%OOo!xO~OU|X!a|X!b|X!d|X~P#|Om$ZO~Om$]OU}X!a}X!b}X!d}X~O]$^O~O!b$_O!g$_O~O^$`O!b$_O!g$_O~OU|a!a|a!b|a!d|a~P#|O!b$cO!g$cO~O",goto:",]!mPPPPPPPPPPPPPPPPP!nPP!v#v#|$`#|$c$f$j$nP%VPPP!v%Y%^%a%{&O%a&R&U&X&_&b%aP&e&{&e'O'RPP']'a'g'm's'y(XPPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:"\u26A0 DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:W$,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[H$],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[q$,B$,U$,F$,0,1],topRules:{Stream:[0,15]},tokenPrec:0})});var pb={};Si(pb,{yaml:()=>db,yamlFrontmatter:()=>Ob,yamlLanguage:()=>ul});function db(){return new le(ul)}function Ob(i){let{language:e,support:t}=i.content instanceof le?i.content:{language:i.content,support:[]};return new le(J$.configure({wrap:Pi(n=>n.name=="FrontmatterContent"?{parser:ul.parser}:n.name=="Body"?{parser:e.parser}:null)}),t)}var K$,ul,J$,mb=N(()=>{ub();Rt();ut();wt();$i();K$=Ce.deserialize({version:14,states:"!vOQOPOOO]OPO'#C_OhOPO'#C^OOOO'#Cc'#CcOpOPO'#CaQOOOOOO{OPOOOOOO'#Cb'#CbO!WOPO'#C`O!`OPO,58xOOOO-E6a-E6aOOOO-E6`-E6`OOOO'#C_'#C_OOOO1G.d1G.d",stateData:"!h~OXPOYROWTP~OWVXXRXYRX~OYVOXSP~OXROYROWTX~OXROYROWTP~OYVOXSX~OX[O~OXY~",goto:"vWPPX[beioRUOQQOR]XRXQTTOUQWQRZWSSOURYS",nodeNames:"\u26A0 Document Frontmatter DashLine FrontmatterContent Body",maxTerm:10,skippedNodes:[0],repeatNodeCount:2,tokenData:"$z~RXOYnYZ!^Z]n]^!^^}n}!O!i!O;'Sn;'S;=`!c<%lOn~qXOYnYZ!^Z]n]^!^^;'Sn;'S;=`!c<%l~n~On~~!^~!cOY~~!fP;=`<%ln~!lZOYnYZ!^Z]n]^!^^}n}!O#_!O;'Sn;'S;=`!c<%l~n~On~~!^~#bZOYnYZ!^Z]n]^!^^}n}!O$T!O;'Sn;'S;=`!c<%l~n~On~~!^~$WXOYnYZ$sZ]n]^$s^;'Sn;'S;=`!c<%l~n~On~~$s~$zOX~Y~",tokenizers:[0],topRules:{Document:[0,1]},tokenPrec:67}),ul=qe.define({name:"yaml",parser:tu.configure({props:[Me.add({Stream:i=>{for(let e=i.node.resolve(i.pos,-1);e&&e.to>=i.pos;e=e.parent){if(e.name=="BlockLiteralContent"&&e.from<e.to)return i.baseIndentFor(e);if(e.name=="BlockLiteral")return i.baseIndentFor(e)+i.unit;if(e.name=="BlockSequence"||e.name=="BlockMapping")return i.column(e.firstChild.from,1);if(e.name=="QuotedLiteral")return null;if(e.name=="Literal"){let t=i.column(e.from,1);if(t==i.lineIndent(e.from,1))return t;if(e.to>i.pos)return null}}return null},FlowMapping:Mn({closing:"}"}),FlowSequence:Mn({closing:"]"})}),Ee.add({"FlowMapping FlowSequence":Ht,"Item Pair BlockLiteral":(i,e)=>({from:e.doc.lineAt(i.from).to,to:i.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});J$=qe.define({name:"yaml-frontmatter",parser:K$.configure({props:[Oe({DashLine:p.meta})]})})});function Ki(i,e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=i(e,t);return r?(n(t.update(r)),!0):!1}}function iu(i,e){let t=i.languageDataAt("commentTokens",e,1);return t.length?t[0]:{}}function rv(i,{open:e,close:t},n,r){let s=i.sliceDoc(n-Hr,n),o=i.sliceDoc(r,r+Hr),l=/\s*$/.exec(s)[0].length,a=/^\s*/.exec(o)[0].length,h=s.length-l;if(s.slice(h-e.length,h)==e&&o.slice(a,a+t.length)==t)return{open:{pos:n-l,margin:l&&1},close:{pos:r+a,margin:a&&1}};let c,f;r-n<=2*Hr?c=f=i.sliceDoc(n,r):(c=i.sliceDoc(n,n+Hr),f=i.sliceDoc(r-Hr,r));let u=/^\s*/.exec(c)[0].length,d=/\s*$/.exec(f)[0].length,O=f.length-d-t.length;return c.slice(u,u+e.length)==e&&f.slice(O,O+t.length)==t?{open:{pos:n+u+e.length,margin:/\s/.test(c.charAt(u+e.length))?1:0},close:{pos:r-d-t.length,margin:/\s/.test(f.charAt(O-1))?1:0}}:null}function sv(i){let e=[];for(let t of i.selection.ranges){let n=i.doc.lineAt(t.from),r=t.to<=n.to?n:i.doc.lineAt(t.to);r.from>n.from&&r.from==t.to&&(r=t.to==n.to+1?n:i.doc.lineAt(t.to-1));let s=e.length-1;s>=0&&e[s].to>n.from?e[s].to=r.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:r.to})}return e}function dl(i,e,t=e.selection.ranges){let n=t.map(s=>iu(e,s.from).block);if(!n.every(s=>s))return null;let r=t.map((s,o)=>rv(e,n[o],s.from,s.to));if(i!=2&&!r.every(s=>s))return{changes:e.changes(t.map((s,o)=>r[o]?[]:[{from:s.from,insert:n[o].open+" "},{from:s.to,insert:" "+n[o].close}]))};if(i!=1&&r.some(s=>s)){let s=[];for(let o=0,l;o<r.length;o++)if(l=r[o]){let a=n[o],{open:h,close:c}=l;s.push({from:h.pos-a.open.length,to:h.pos+h.margin},{from:c.pos-c.margin,to:c.pos+a.close.length})}return{changes:s}}return null}function nu(i,e,t=e.selection.ranges){let n=[],r=-1;e:for(let{from:s,to:o}of t){let l=n.length,a=1e9,h;for(let c=s;c<=o;){let f=e.doc.lineAt(c);if(h==null&&(h=iu(e,f.from).line,!h))continue e;if(f.from>r&&(s==o||o>f.from)){r=f.from;let u=/^\s*/.exec(f.text)[0].length,d=u==f.length,O=f.text.slice(u,u+h.length)==h?u:-1;u<f.text.length&&u<a&&(a=u),n.push({line:f,comment:O,token:h,indent:u,empty:d,single:!1})}c=f.to+1}if(a<1e9)for(let c=l;c<n.length;c++)n[c].indent<n[c].line.text.length&&(n[c].indent=a);n.length==l+1&&(n[l].single=!0)}if(i!=2&&n.some(s=>s.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:l,token:a,indent:h,empty:c,single:f}of n)(f||!c)&&s.push({from:l.from+h,insert:a+" "});let o=e.changes(s);return{changes:o,selection:e.selection.map(o,1)}}else if(i!=1&&n.some(s=>s.comment>=0)){let s=[];for(let{line:o,comment:l,token:a}of n)if(l>=0){let h=o.from+l,c=h+a.length;o.text[c-o.from]==" "&&c++,s.push({from:h,to:c})}return{changes:s}}return null}function Tl(i={}){return[Ol,kb.of(i),$.domEventHandlers({beforeinput(e,t){let n=e.inputType=="historyUndo"?su:e.inputType=="historyRedo"?ml:null;return n?(e.preventDefault(),n(t)):!1}})]}function pl(i,e){return function({state:t,dispatch:n}){if(!e&&t.readOnly)return!1;let r=t.field(Ol,!1);if(!r)return!1;let s=r.pop(i,t,e);return s?(n(s),!0):!1}}function $b(i){return function(e){let t=e.field(Ol,!1);if(!t)return 0;let n=i==0?t.done:t.undone;return n.length-(n.length&&!n[0].changes?1:0)}}function gl(i,e,t,n){let r=e+1>t+20?e-t-1:0,s=i.slice(r,e);return s.push(n),s}function hv(i,e){let t=[],n=!1;return i.iterChangedRanges((r,s)=>t.push(r,s)),e.iterChangedRanges((r,s,o,l)=>{for(let a=0;a<t.length;){let h=t[a++],c=t[a++];l>=h&&o<=c&&(n=!0)}}),n}function cv(i,e){return i.ranges.length==e.ranges.length&&i.ranges.filter((t,n)=>t.empty!=e.ranges[n].empty).length===0}function vb(i,e){return i.length?e.length?i.concat(e):i:e}function Tb(i,e){if(i.length){let t=i[i.length-1],n=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-fv));return n.length&&n[n.length-1].eq(e)?i:(n.push(e),gl(i,i.length-1,1e9,t.setSelAfter(n)))}else return[Ot.selection([e])]}function uv(i){let e=i[i.length-1],t=i.slice();return t[i.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function ou(i,e){if(!i.length)return i;let t=i.length,n=ft;for(;t;){let r=dv(i[t-1],e,n);if(r.changes&&!r.changes.empty||r.effects.length){let s=i.slice(0,t);return s[t-1]=r,s}else e=r.mapped,t--,n=r.selectionsAfter}return n.length?[Ot.selection(n)]:ft}function dv(i,e,t){let n=vb(i.selectionsAfter.length?i.selectionsAfter.map(l=>l.map(e)):ft,t);if(!i.changes)return Ot.selection(n);let r=i.changes.map(e),s=e.mapDesc(i.changes,!0),o=i.mapped?i.mapped.composeDesc(s):s;return new Ot(r,M.mapEffects(i.effects,e),o,i.startSelection.map(s),n)}function Bn(i,e){return Q.create(i.ranges.map(e),i.mainIndex)}function pt(i,e){return i.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Ie({state:i,dispatch:e},t){let n=Bn(i.selection,t);return n.eq(i.selection,!0)?!1:(e(pt(i,n)),!0)}function en(i,e){return Q.cursor(e?i.to:i.from)}function bl(i,e){return Ie(i,t=>t.empty?i.moveByChar(t,e):en(t,e))}function Pe(i){return i.textDirectionAt(i.state.selection.main.head)==B.LTR}function hu(i,e,t){let n=e.head,r=i.doc.lineAt(n);return n==(t?r.to:r.from)?n=t?Math.min(i.doc.length,r.to+1):Math.max(0,r.from-1):n=r.from+he(r.text,n-r.from,t),Q.cursor(n,t?-1:1)}function Cb(i,e){return Ie(i,t=>t.empty?hu(i.state,t,e):en(t,e))}function Sl(i,e){return Ie(i,t=>t.empty?i.moveByGroup(t,e):en(t,e))}function cu(i,e,t){let n=i.state.charCategorizer(e),r=n(t),s=r!=ne.Space;return o=>{let l=n(o);return l!=ne.Space?s&&l==r:(s=!1,!0)}}function Zb(i,e,t){let n=i.state.charCategorizer(e.from),r=ne.Space,s=e.from,o=0,l=!1,a=!1,h=!1,c=u=>{if(l)return!1;s+=t?u.length:-u.length;let d=n(u),O;if(d==ne.Word&&u.charCodeAt(0)<128&&/[\W_]/.test(u)&&(d=-1),r==ne.Space&&(r=d),r!=d)return!1;if(r==ne.Word)if(u.toLowerCase()==u){if(!t&&a)return!1;h=!0}else if(h){if(t)return!1;l=!0}else{if(a&&t&&n(O=i.state.sliceDoc(s,s+1))==ne.Word&&O.toLowerCase()==O)return!1;a=!0}return o++,!0},f=i.moveByChar(e,t,u=>(c(u),c));if(Rb&&r==ne.Word&&f.from==e.from+o*(t?1:-1)){let u=Math.min(e.head,f.head),d=Math.max(e.head,f.head),O=i.state.sliceDoc(u,d);if(O.length>1&&/[\u4E00-\uffff]/.test(O)){let m=Array.from(Rb.segment(O));if(m.length>1)return t?Q.cursor(e.head+m[1].index,-1):Q.cursor(f.head+m[m.length-1].index,1)}}return f}function Mb(i,e){return Ie(i,t=>t.empty?Zb(i,t,e):en(t,e))}function wv(i,e,t){if(e.type.prop(t))return!0;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(i.sliceDoc(e.from,e.to)))||e.firstChild}function yl(i,e,t){let n=V(i).resolveInner(e.head),r=t?R.closedBy:R.openedBy;for(let a=e.head;;){let h=t?n.childAfter(a):n.childBefore(a);if(!h)break;wv(i,h,r)?n=h:a=t?h.to:h.from}let s=n.type.prop(r),o,l;return s&&(o=t?ht(i,n.from,1):ht(i,n.to,-1))&&o.matched?l=t?o.end.to:o.end.from:l=t?n.to:n.from,Q.cursor(l,t?-1:1)}function _b(i,e){return Ie(i,t=>{if(!t.empty)return en(t,e);let n=i.moveVertically(t,e);return n.head!=t.head?n:i.moveToLineBoundary(t,e)})}function jb(i){let e=i.scrollDOM.clientHeight<i.scrollDOM.scrollHeight-2,t=0,n=0,r;if(e){for(let s of i.state.facet($.scrollMargins)){let o=s(i);o?.top&&(t=Math.max(o?.top,t)),o?.bottom&&(n=Math.max(o?.bottom,n))}r=i.scrollDOM.clientHeight-t-n}else r=(i.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:t,marginBottom:n,selfScroll:e,height:Math.max(i.defaultLineHeight,r-5)}}function zb(i,e){let t=jb(i),{state:n}=i,r=Bn(n.selection,o=>o.empty?i.moveVertically(o,e,t.height):en(o,e));if(r.eq(n.selection))return!1;let s;if(t.selfScroll){let o=i.coordsAtPos(n.selection.main.head),l=i.scrollDOM.getBoundingClientRect(),a=l.top+t.marginTop,h=l.bottom-t.marginBottom;o&&o.top>a&&o.bottom<h&&(s=$.scrollIntoView(r.main.head,{y:"start",yMargin:o.top-a}))}return i.dispatch(pt(n,r),{effects:s}),!0}function mi(i,e,t){let n=i.lineBlockAt(e.head),r=i.moveToLineBoundary(e,t);if(r.head==e.head&&r.head!=(t?n.to:n.from)&&(r=i.moveToLineBoundary(e,t,!1)),!t&&r.head==n.from&&n.length){let s=/^\s*/.exec(i.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;s&&e.head!=n.from+s&&(r=Q.cursor(n.from+s))}return r}function Ib(i,e,t){let n=!1,r=Bn(i.selection,s=>{let o=ht(i,s.head,-1)||ht(i,s.head,1)||s.head>0&&ht(i,s.head-1,1)||s.head<i.doc.length&&ht(i,s.head+1,-1);if(!o||!o.end)return s;n=!0;let l=o.start.from==s.head?o.end.to:o.end.from;return t?Q.range(s.anchor,l):Q.cursor(l)});return n?(e(pt(i,r)),!0):!1}function $e(i,e){let t=Bn(i.state.selection,n=>{let r=e(n);return Q.range(n.anchor,r.head,r.goalColumn,r.bidiLevel||void 0,r.assoc)});return t.eq(i.state.selection)?!1:(i.dispatch(pt(i.state,t)),!0)}function xl(i,e){return $e(i,t=>i.moveByChar(t,e))}function kl(i,e){return $e(i,t=>i.moveByGroup(t,e))}function Fb(i,e){return $e(i,t=>Zb(i,t,e))}function Jb(i,e){return $e(i,t=>i.moveVertically(t,e))}function eS(i,e){return $e(i,t=>i.moveVertically(t,e,jb(i).height))}function cS(i,e){let{state:t}=i,n=t.selection,r=t.selection.ranges.slice();for(let s of t.selection.ranges){let o=t.doc.lineAt(s.head);if(e?o.to<i.state.doc.length:o.from>0)for(let l=s;;){let a=i.moveVertically(l,e);if(a.head<o.from||a.head>o.to){r.some(h=>h.head==a.head)||r.push(a);break}else{if(a.head==l.head)break;l=a}}}return r.length==n.ranges.length?!1:(i.dispatch(pt(t,Q.create(r,r.length-1))),!0)}function tn(i,e){if(i.state.readOnly)return!1;let t="delete.selection",{state:n}=i,r=n.changeByRange(s=>{let{from:o,to:l}=s;if(o==l){let a=e(s);a<o?(t="delete.backward",a=wl(i,a,!1)):a>o&&(t="delete.forward",a=wl(i,a,!0)),o=Math.min(o,a),l=Math.max(l,a)}else o=wl(i,o,!1),l=wl(i,l,!0);return o==l?{range:s}:{changes:{from:o,to:l},range:Q.cursor(o,o<s.head?-1:1)}});return r.changes.empty?!1:(i.dispatch(n.update(r,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?$.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function wl(i,e,t){if(i instanceof $)for(let n of i.state.facet($.atomicRanges).map(r=>r(i)))n.between(e,e,(r,s)=>{r<e&&s>e&&(e=t?s:r)});return e}function $l(i){let e=[],t=-1;for(let n of i.selection.ranges){let r=i.doc.lineAt(n.from),s=i.doc.lineAt(n.to);if(!n.empty&&n.to==s.from&&(s=i.doc.lineAt(n.to-1)),t>=r.number){let o=e[e.length-1];o.to=s.to,o.ranges.push(n)}else e.push({from:r.from,to:s.to,ranges:[n]});t=s.number+1}return e}function QS(i,e,t){if(i.readOnly)return!1;let n=[],r=[];for(let s of $l(i)){if(t?s.to==i.doc.length:s.from==0)continue;let o=i.doc.lineAt(t?s.to+1:s.from-1),l=o.length+1;if(t){n.push({from:s.to,to:o.to},{from:s.from,insert:o.text+i.lineBreak});for(let a of s.ranges)r.push(Q.range(Math.min(i.doc.length,a.anchor+l),Math.min(i.doc.length,a.head+l)))}else{n.push({from:o.from,to:s.from},{from:s.to,insert:i.lineBreak+o.text});for(let a of s.ranges)r.push(Q.range(a.anchor-l,a.head-l))}}return n.length?(e(i.update({changes:n,scrollIntoView:!0,selection:Q.create(r,i.selection.mainIndex),userEvent:"move.line"})),!0):!1}function wS(i,e,t){if(i.readOnly)return!1;let n=[];for(let s of $l(i))t?n.push({from:s.from,insert:i.doc.slice(s.from,s.to)+i.lineBreak}):n.push({from:s.to,insert:i.lineBreak+i.doc.slice(s.from,s.to)});let r=i.changes(n);return e(i.update({changes:r,selection:i.selection.map(r,t?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}function Yv(i,e){if(/\(\)|\[\]|\{\}/.test(i.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=V(i).resolveInner(e),n=t.childBefore(e),r=t.childAfter(e),s;return n&&r&&n.to<=e&&r.from>=e&&(s=n.type.prop(R.closedBy))&&s.indexOf(r.name)>-1&&i.doc.lineAt(n.to).from==i.doc.lineAt(r.from).from&&!/\S/.test(i.sliceDoc(n.to,r.from))?{from:n.to,to:r.from}:null}function CS(i){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{let{from:s,to:o}=r,l=e.doc.lineAt(s),a=!i&&s==o&&Yv(e,s);i&&(s=o=(o<=l.to?l:e.doc.lineAt(o)).to);let h=new Nt(e,{simulateBreak:s,simulateDoubleBreak:!!a}),c=Zn(h,s);for(c==null&&(c=ke(/^\s*/.exec(e.doc.lineAt(s).text)[0],e.tabSize));o<l.to&&/\s/.test(l.text[o-l.from]);)o++;a?{from:s,to:o}=a:s>l.from&&s<l.from+100&&!/\S/.test(l.text.slice(0,s))&&(s=l.from);let f=["",di(e,c)];return a&&f.push(di(e,h.lineIndent(l.from,-1))),{changes:{from:s,to:o,insert:Y.of(f)},range:Q.cursor(s+1+f[1].length)}});return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}function Tu(i,e){let t=-1;return i.changeByRange(n=>{let r=[];for(let o=n.from;o<=n.to;){let l=i.doc.lineAt(o);l.number>t&&(n.empty||n.to>l.from)&&(e(l,r,n),t=l.number),o=l.to+1}let s=i.changes(r);return{changes:r,range:Q.range(s.mapPos(n.anchor,1),s.mapPos(n.head,1))}})}var gb,bb,ev,tv,Sb,iv,nv,yb,Hr,ru,Qb,xb,kb,Ol,ov,su,ml,wb,Pb,lv,av,Ot,ft,fv,Ov,Ji,Cl,lu,au,pv,mv,gv,bv,Xb,Ab,Sv,yv,Qv,Rb,xv,kv,Eb,Lb,fu,uu,du,Ql,Vb,Yb,Db,Wb,qb,Bb,Nb,Pv,Ou,pu,$v,vv,Tv,Cv,Gb,Ub,Xv,Av,Rv,Zv,Mv,Hb,Kb,mu,gu,bu,Su,tS,iS,nS,rS,sS,oS,yu,Qu,xu,ku,lS,aS,hS,fS,uS,dS,wu,Pl,Ev,Pu,OS,$u,pS,Lv,mS,_v,gS,bS,jv,SS,yS,xS,kS,PS,$S,vS,zv,Vv,vu,TS,XS,vl,Cu,AS,Dv,Wv,RS,ZS,Xl,Al,MS=N(()=>{$t();qt();Rt();ut();gb=i=>{let{state:e}=i,t=e.doc.lineAt(e.selection.main.from),n=iu(i.state,t.from);return n.line?bb(i):n.block?yb(i):!1};bb=Ki(nu,0),ev=Ki(nu,1),tv=Ki(nu,2),Sb=Ki(dl,0),iv=Ki(dl,1),nv=Ki(dl,2),yb=Ki((i,e)=>dl(i,e,sv(e)),0);Hr=50;ru=Xe.define(),Qb=Xe.define(),xb=T.define(),kb=T.define({combine(i){return Ae(i,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}}),Ol=re.define({create(){return Ji.empty},update(i,e){let t=e.state.facet(kb),n=e.annotation(ru);if(n){let a=Ot.fromTransaction(e,n.selection),h=n.side,c=h==0?i.undone:i.done;return a?c=gl(c,c.length,t.minDepth,a):c=Tb(c,e.startState.selection),new Ji(h==0?n.rest:c,h==0?c:n.rest)}let r=e.annotation(Qb);if((r=="full"||r=="before")&&(i=i.isolate()),e.annotation(oe.addToHistory)===!1)return e.changes.empty?i:i.addMapping(e.changes.desc);let s=Ot.fromTransaction(e),o=e.annotation(oe.time),l=e.annotation(oe.userEvent);return s?i=i.addChanges(s,o,l,t,e):e.selection&&(i=i.addSelection(e.startState.selection,o,l,t.newGroupDelay)),(r=="full"||r=="after")&&(i=i.isolate()),i},toJSON(i){return{done:i.done.map(e=>e.toJSON()),undone:i.undone.map(e=>e.toJSON())}},fromJSON(i){return new Ji(i.done.map(Ot.fromJSON),i.undone.map(Ot.fromJSON))}});ov=Ol;su=pl(0,!1),ml=pl(1,!1),wb=pl(0,!0),Pb=pl(1,!0);lv=$b(0),av=$b(1),Ot=class i{constructor(e,t,n,r,s){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=s}setSelAfter(e){return new i(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(e){return new i(e.changes&&Qe.fromJSON(e.changes),[],e.mapped&&Pt.fromJSON(e.mapped),e.startSelection&&Q.fromJSON(e.startSelection),e.selectionsAfter.map(Q.fromJSON))}static fromTransaction(e,t){let n=ft;for(let r of e.startState.facet(xb)){let s=r(e);s.length&&(n=n.concat(s))}return!n.length&&e.changes.empty?null:new i(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,ft)}static selection(e){return new i(void 0,ft,void 0,void 0,e)}};ft=[],fv=200;Ov=/^(input\.type|delete)($|\.)/,Ji=class i{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new i(this.done,this.undone):this}addChanges(e,t,n,r,s){let o=this.done,l=o[o.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!n||Ov.test(n))&&(!l.selectionsAfter.length&&t-this.prevTime<r.newGroupDelay&&r.joinToEvent(s,hv(l.changes,e.changes))||n=="input.type.compose")?o=gl(o,o.length-1,r.minDepth,new Ot(e.changes.compose(l.changes),vb(M.mapEffects(e.effects,l.changes),l.effects),l.mapped,l.startSelection,ft)):o=gl(o,o.length,r.minDepth,e),new i(o,ft,t,n)}addSelection(e,t,n,r){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:ft;return s.length>0&&t-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&cv(s[s.length-1],e)?this:new i(Tb(this.done,e),this.undone,t,n)}addMapping(e){return new i(ou(this.done,e),ou(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=e==0?this.done:this.undone;if(r.length==0)return null;let s=r[r.length-1],o=s.selectionsAfter[0]||(s.startSelection?s.startSelection.map(s.changes.invertedDesc,1):t.selection);if(n&&s.selectionsAfter.length)return t.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:ru.of({side:e,rest:uv(r),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let l=r.length==1?ft:r.slice(0,r.length-1);return s.mapped&&(l=ou(l,s.mapped)),t.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:ru.of({side:e,rest:l,selection:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}};Ji.empty=new Ji(ft,ft);Cl=[{key:"Mod-z",run:su,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:ml,preventDefault:!0},{linux:"Ctrl-Shift-z",run:ml,preventDefault:!0},{key:"Mod-u",run:wb,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Pb,preventDefault:!0}];lu=i=>bl(i,!Pe(i)),au=i=>bl(i,Pe(i)),pv=i=>bl(i,!0),mv=i=>bl(i,!1);gv=i=>Cb(i,!0),bv=i=>Cb(i,!1);Xb=i=>Sl(i,!Pe(i)),Ab=i=>Sl(i,Pe(i)),Sv=i=>Sl(i,!0),yv=i=>Sl(i,!1);Qv=i=>Ie(i,e=>e.empty?i.moveByChar(e,!0,t=>cu(i,e.head,t)):en(e,!0)),Rb=typeof Intl<"u"&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;xv=i=>Mb(i,!0),kv=i=>Mb(i,!1);Eb=i=>Ie(i,e=>yl(i.state,e,!Pe(i))),Lb=i=>Ie(i,e=>yl(i.state,e,Pe(i)));fu=i=>_b(i,!1),uu=i=>_b(i,!0);du=i=>zb(i,!1),Ql=i=>zb(i,!0);Vb=i=>Ie(i,e=>mi(i,e,!0)),Yb=i=>Ie(i,e=>mi(i,e,!1)),Db=i=>Ie(i,e=>mi(i,e,!Pe(i))),Wb=i=>Ie(i,e=>mi(i,e,Pe(i))),qb=i=>Ie(i,e=>Q.cursor(i.lineBlockAt(e.head).from,1)),Bb=i=>Ie(i,e=>Q.cursor(i.lineBlockAt(e.head).to,-1));Nb=({state:i,dispatch:e})=>Ib(i,e,!1),Pv=({state:i,dispatch:e})=>Ib(i,e,!0);Ou=i=>xl(i,!Pe(i)),pu=i=>xl(i,Pe(i)),$v=i=>xl(i,!0),vv=i=>xl(i,!1),Tv=i=>$e(i,e=>hu(i.state,e,!0)),Cv=i=>$e(i,e=>hu(i.state,e,!1));Gb=i=>kl(i,!Pe(i)),Ub=i=>kl(i,Pe(i)),Xv=i=>kl(i,!0),Av=i=>kl(i,!1),Rv=i=>$e(i,e=>i.moveByChar(e,!0,t=>cu(i,e.head,t)));Zv=i=>Fb(i,!0),Mv=i=>Fb(i,!1),Hb=i=>$e(i,e=>yl(i.state,e,!Pe(i))),Kb=i=>$e(i,e=>yl(i.state,e,Pe(i)));mu=i=>Jb(i,!1),gu=i=>Jb(i,!0);bu=i=>eS(i,!1),Su=i=>eS(i,!0),tS=i=>$e(i,e=>mi(i,e,!0)),iS=i=>$e(i,e=>mi(i,e,!1)),nS=i=>$e(i,e=>mi(i,e,!Pe(i))),rS=i=>$e(i,e=>mi(i,e,Pe(i))),sS=i=>$e(i,e=>Q.cursor(i.lineBlockAt(e.head).from)),oS=i=>$e(i,e=>Q.cursor(i.lineBlockAt(e.head).to)),yu=({state:i,dispatch:e})=>(e(pt(i,{anchor:0})),!0),Qu=({state:i,dispatch:e})=>(e(pt(i,{anchor:i.doc.length})),!0),xu=({state:i,dispatch:e})=>(e(pt(i,{anchor:i.selection.main.anchor,head:0})),!0),ku=({state:i,dispatch:e})=>(e(pt(i,{anchor:i.selection.main.anchor,head:i.doc.length})),!0),lS=({state:i,dispatch:e})=>(e(i.update({selection:{anchor:0,head:i.doc.length},userEvent:"select"})),!0),aS=({state:i,dispatch:e})=>{let t=$l(i).map(({from:n,to:r})=>Q.range(n,Math.min(r+1,i.doc.length)));return e(i.update({selection:Q.create(t),userEvent:"select"})),!0},hS=({state:i,dispatch:e})=>{let t=Bn(i.selection,n=>{let r=V(i),s=r.resolveStack(n.from,1);if(n.empty){let o=r.resolveStack(n.from,-1);o.node.from>=s.node.from&&o.node.to<=s.node.to&&(s=o)}for(let o=s;o;o=o.next){let{node:l}=o;if((l.from<n.from&&l.to>=n.to||l.to>n.to&&l.from<=n.from)&&o.next)return Q.range(l.to,l.from)}return n});return t.eq(i.selection)?!1:(e(pt(i,t)),!0)};fS=i=>cS(i,!1),uS=i=>cS(i,!0),dS=({state:i,dispatch:e})=>{let t=i.selection,n=null;return t.ranges.length>1?n=Q.create([t.main]):t.main.empty||(n=Q.create([Q.cursor(t.main.head)])),n?(e(pt(i,n)),!0):!1};wu=(i,e,t)=>tn(i,n=>{let r=n.from,{state:s}=i,o=s.doc.lineAt(r),l,a;if(t&&!e&&r>o.from&&r<o.from+200&&!/[^ \t]/.test(l=o.text.slice(0,r-o.from))){if(l[l.length-1]==" ")return r-1;let h=ke(l,s.tabSize),c=h%Gt(s)||Gt(s);for(let f=0;f<c&&l[l.length-1-f]==" ";f++)r--;a=r}else a=he(o.text,r-o.from,e,e)+o.from,a==r&&o.number!=(e?s.doc.lines:1)?a+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(a-o.from,r-o.from))&&(a=he(o.text,a-o.from,!1,!1)+o.from);return a}),Pl=i=>wu(i,!1,!0),Ev=i=>wu(i,!1,!1),Pu=i=>wu(i,!0,!1),OS=(i,e)=>tn(i,t=>{let n=t.head,{state:r}=i,s=r.doc.lineAt(n),o=r.charCategorizer(n);for(let l=null;;){if(n==(e?s.to:s.from)){n==t.head&&s.number!=(e?r.doc.lines:1)&&(n+=e?1:-1);break}let a=he(s.text,n-s.from,e)+s.from,h=s.text.slice(Math.min(n,a)-s.from,Math.max(n,a)-s.from),c=o(h);if(l!=null&&c!=l)break;(h!=" "||n!=t.head)&&(l=c),n=a}return n}),$u=i=>OS(i,!1),pS=i=>OS(i,!0),Lv=i=>tn(i,e=>i.moveByChar(e,!0,t=>cu(i,e.head,t)).head),mS=i=>tn(i,e=>{let t=i.lineBlockAt(e.head).to;return e.head<t?t:Math.min(i.state.doc.length,e.head+1)}),_v=i=>tn(i,e=>{let t=i.lineBlockAt(e.head).from;return e.head>t?t:Math.max(0,e.head-1)}),gS=i=>tn(i,e=>{let t=i.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),bS=i=>tn(i,e=>{let t=i.moveToLineBoundary(e,!0).head;return e.head<t?t:Math.min(i.state.doc.length,e.head+1)}),jv=({state:i,dispatch:e})=>{if(i.readOnly)return!1;let t=[];for(let n=0,r="",s=i.doc.iter();;){if(s.next(),s.lineBreak||s.done){let o=r.search(/\s+$/);if(o>-1&&t.push({from:n-(r.length-o),to:n}),s.done)break;r=""}else r=s.value;n+=s.value.length}return t.length?(e(i.update({changes:t,userEvent:"delete"})),!0):!1},SS=({state:i,dispatch:e})=>{if(i.readOnly)return!1;let t=i.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:Y.of(["",""])},range:Q.cursor(n.from)}));return e(i.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},yS=({state:i,dispatch:e})=>{if(i.readOnly)return!1;let t=i.changeByRange(n=>{if(!n.empty||n.from==0||n.from==i.doc.length)return{range:n};let r=n.from,s=i.doc.lineAt(r),o=r==s.from?r-1:he(s.text,r-s.from,!1)+s.from,l=r==s.to?r+1:he(s.text,r-s.from,!0)+s.from;return{changes:{from:o,to:l,insert:i.doc.slice(r,l).append(i.doc.slice(o,r))},range:Q.cursor(l)}});return t.changes.empty?!1:(e(i.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};xS=({state:i,dispatch:e})=>QS(i,e,!1),kS=({state:i,dispatch:e})=>QS(i,e,!0);PS=({state:i,dispatch:e})=>wS(i,e,!1),$S=({state:i,dispatch:e})=>wS(i,e,!0),vS=i=>{if(i.state.readOnly)return!1;let{state:e}=i,t=e.changes($l(e).map(({from:r,to:s})=>(r>0?r--:s<e.doc.length&&s++,{from:r,to:s}))),n=Bn(e.selection,r=>{let s;if(i.lineWrapping){let o=i.lineBlockAt(r.head),l=i.coordsAtPos(r.head,r.assoc||1);l&&(s=o.bottom+i.documentTop-l.bottom+i.defaultLineHeight/2)}return i.moveVertically(r,!0,s)}).map(t);return i.dispatch({changes:t,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0},zv=({state:i,dispatch:e})=>(e(i.update(i.replaceSelection(i.lineBreak),{scrollIntoView:!0,userEvent:"input"})),!0),Vv=({state:i,dispatch:e})=>(e(i.update(i.changeByRange(t=>{let n=/^\s*/.exec(i.doc.lineAt(t.from).text)[0];return{changes:{from:t.from,to:t.to,insert:i.lineBreak+n},range:Q.cursor(t.from+n.length+1)}}),{scrollIntoView:!0,userEvent:"input"})),!0);vu=CS(!1),TS=CS(!0);XS=({state:i,dispatch:e})=>{if(i.readOnly)return!1;let t=Object.create(null),n=new Nt(i,{overrideIndentation:s=>{let o=t[s];return o??-1}}),r=Tu(i,(s,o,l)=>{let a=Zn(n,s.from);if(a==null)return;/\S/.test(s.text)||(a=0);let h=/^\s*/.exec(s.text)[0],c=di(i,a);(h!=c||l.from<s.from+h.length)&&(t[s.from]=a,o.push({from:s.from,to:s.from+h.length,insert:c}))});return r.changes.empty||e(i.update(r,{userEvent:"indent"})),!0},vl=({state:i,dispatch:e})=>i.readOnly?!1:(e(i.update(Tu(i,(t,n)=>{n.push({from:t.from,insert:i.facet(Ft)})}),{userEvent:"input.indent"})),!0),Cu=({state:i,dispatch:e})=>i.readOnly?!1:(e(i.update(Tu(i,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let s=ke(r,i.tabSize),o=0,l=di(i,Math.max(0,s-Gt(i)));for(;o<r.length&&o<l.length&&r.charCodeAt(o)==l.charCodeAt(o);)o++;n.push({from:t.from+o,to:t.from+r.length,insert:l.slice(o)})}),{userEvent:"delete.dedent"})),!0),AS=i=>(i.setTabFocusMode(),!0),Dv=i=>(i.setTabFocusMode(2e3),!0),Wv=({state:i,dispatch:e})=>i.selection.ranges.some(t=>!t.empty)?vl({state:i,dispatch:e}):(e(i.update(i.replaceSelection(" "),{scrollIntoView:!0,userEvent:"input"})),!0),RS=[{key:"Ctrl-b",run:lu,shift:Ou,preventDefault:!0},{key:"Ctrl-f",run:au,shift:pu},{key:"Ctrl-p",run:fu,shift:mu},{key:"Ctrl-n",run:uu,shift:gu},{key:"Ctrl-a",run:qb,shift:sS},{key:"Ctrl-e",run:Bb,shift:oS},{key:"Ctrl-d",run:Pu},{key:"Ctrl-h",run:Pl},{key:"Ctrl-k",run:mS},{key:"Ctrl-Alt-h",run:$u},{key:"Ctrl-o",run:SS},{key:"Ctrl-t",run:yS},{key:"Ctrl-v",run:Ql}],ZS=[{key:"ArrowLeft",run:lu,shift:Ou,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Xb,shift:Gb,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:Db,shift:nS,preventDefault:!0},{key:"ArrowRight",run:au,shift:pu,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Ab,shift:Ub,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Wb,shift:rS,preventDefault:!0},{key:"ArrowUp",run:fu,shift:mu,preventDefault:!0},{mac:"Cmd-ArrowUp",run:yu,shift:xu},{mac:"Ctrl-ArrowUp",run:du,shift:bu},{key:"ArrowDown",run:uu,shift:gu,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Qu,shift:ku},{mac:"Ctrl-ArrowDown",run:Ql,shift:Su},{key:"PageUp",run:du,shift:bu},{key:"PageDown",run:Ql,shift:Su},{key:"Home",run:Yb,shift:iS,preventDefault:!0},{key:"Mod-Home",run:yu,shift:xu},{key:"End",run:Vb,shift:tS,preventDefault:!0},{key:"Mod-End",run:Qu,shift:ku},{key:"Enter",run:vu,shift:vu},{key:"Mod-a",run:lS},{key:"Backspace",run:Pl,shift:Pl,preventDefault:!0},{key:"Delete",run:Pu,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:$u,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:pS,preventDefault:!0},{mac:"Mod-Backspace",run:gS,preventDefault:!0},{mac:"Mod-Delete",run:bS,preventDefault:!0}].concat(RS.map(i=>({mac:i.key,run:i.run,shift:i.shift}))),Xl=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Eb,shift:Hb},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Lb,shift:Kb},{key:"Alt-ArrowUp",run:xS},{key:"Shift-Alt-ArrowUp",run:PS},{key:"Alt-ArrowDown",run:kS},{key:"Shift-Alt-ArrowDown",run:$S},{key:"Mod-Alt-ArrowUp",run:fS},{key:"Mod-Alt-ArrowDown",run:uS},{key:"Escape",run:dS},{key:"Mod-Enter",run:TS},{key:"Alt-l",mac:"Ctrl-l",run:aS},{key:"Mod-i",run:hS,preventDefault:!0},{key:"Mod-[",run:Cu},{key:"Mod-]",run:vl},{key:"Mod-Alt-\\",run:XS},{key:"Shift-Mod-k",run:vS},{key:"Shift-Mod-\\",run:Nb},{key:"Mod-/",run:gb},{key:"Alt-A",run:Sb},{key:"Ctrl-m",mac:"Shift-Alt-m",run:AS}].concat(ZS),Al={key:"Tab",run:vl,shift:Cu}});function gi(i,e=null,t=0){let n=null;return i.between(t,1e9,(r,s,{spec:o})=>{if(!(e&&o.diagnostics.indexOf(e)<0))if(!n)n=new Rl(r,s,e||o.diagnostics[0]);else{if(o.diagnostics.indexOf(n.diagnostic)<0)return!1;n=new Rl(n.from,s,n.diagnostic)}}),n}function ES(i,e){let t=e.pos,n=e.end||t,r=i.state.facet(Zt).hideOn(i,t,n);if(r!=null)return r;let s=i.startState.doc.lineAt(e.pos);return!!(i.effects.some(o=>o.is(Kr))||i.changes.touchesRange(s.from,Math.max(s.to,n)))}function LS(i,e){return i.field(ve,!1)?e:e.concat(M.appendConfig.of(GS))}function _S(i,e){return{effects:LS(i,[Kr.of(e)])}}function qv(i){let e=i.field(ve,!1);return e?e.diagnostics.size:0}function Iv(i,e,t){let{diagnostics:n}=i.state.field(ve),r,s=-1,o=-1;n.between(e-(t<0?1:0),e+(t>0?1:0),(a,h,{spec:c})=>{if(e>=a&&e<=h&&(a==h||(e>a||t>0)&&(e<h||t<0)))return r=c.diagnostics,s=a,o=h,!1});let l=i.state.facet(Zt).tooltipFilter;return r&&l&&(r=l(r,i.state)),r?{pos:s,end:o,above:i.state.doc.lineAt(s).to<o,create(){return{dom:zS(i,r)}}}:null}function zS(i,e){return fe("ul",{class:"cm-tooltip-lint"},e.map(t=>BS(i,t,!1)))}function Uv(i,e,t){let n=[],r=-1;for(let s of i)s.then(o=>{n.push(o),clearTimeout(r),n.length==i.length?e(n):r=setTimeout(()=>e(n),200)},t)}function WS(i,e){return i?e?(t,n)=>e(i(t,n),n):i:e}function es(i,e={}){return[Zt.of({source:i,config:e}),DS,GS]}function Fv(i){let e=i.plugin(DS);e&&e.force()}function qS(i){let e=[];if(i)e:for(let{name:t}of i){for(let n=0;n<t.length;n++){let r=t[n];if(/[a-zA-Z]/.test(r)&&!e.some(s=>s.toLowerCase()==r.toLowerCase())){e.push(r);continue e}}e.push("")}return e}function BS(i,e,t){var n;let r=t?qS(e.actions):[];return fe("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},fe("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(i):e.message),(n=e.actions)===null||n===void 0?void 0:n.map((s,o)=>{let l=!1,a=d=>{if(d.preventDefault(),l)return;l=!0;let O=gi(i.state.field(ve).diagnostics,e);O&&s.apply(i,O.from,O.to)},{name:h}=s,c=r[o]?h.indexOf(r[o]):-1,f=c<0?h:[h.slice(0,c),fe("u",h.slice(c,c+1)),h.slice(c+1)],u=s.markClass?" "+s.markClass:"";return fe("button",{type:"button",class:"cm-diagnosticAction"+u,onclick:a,onmousedown:a,"aria-label":` Action: ${h}${c<0?"":` (access key "${r[o]})"`}.`},f)}),e.source&&fe("div",{class:"cm-diagnosticSource"},e.source))}function Ml(i,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(i)}</svg>')`}function El(i){return Ml(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${i}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}function Kv(i){return i=="error"?4:i=="warning"?3:i=="info"?2:1}function IS(i){let e="hint",t=1;for(let n of i){let r=Kv(n.severity);r>t&&(t=r,e=n.severity)}return e}function Jv(i,e){let t=n=>{let r=e.getBoundingClientRect();if(!(n.clientX>r.left-10&&n.clientX<r.right+10&&n.clientY>r.top-10&&n.clientY<r.bottom+10)){for(let s=n.target;s;s=s.parentNode)if(s.nodeType==1&&s.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",t),i.state.field(NS)&&i.dispatch({effects:Mu.of(null)})}};window.addEventListener("mousemove",t)}function eT(i,e,t){function n(){let o=i.elementAtHeight(e.getBoundingClientRect().top+5-i.documentTop);i.coordsAtPos(o.from)&&i.dispatch({effects:Mu.of({pos:o.from,above:!1,clip:!1,create(){return{dom:zS(i,t),getCoords:()=>e.getBoundingClientRect()}}})}),e.onmouseout=e.onmousemove=null,Jv(i,e)}let{hoverTime:r}=i.state.facet(_l),s=setTimeout(n,r);e.onmouseout=()=>{clearTimeout(s),e.onmouseout=e.onmousemove=null},e.onmousemove=()=>{clearTimeout(s),s=setTimeout(n,r)}}function tT(i,e){let t=Object.create(null);for(let r of e){let s=i.lineAt(r.from);(t[s.from]||(t[s.from]=[])).push(r)}let n=[];for(let r in t)n.push(new Ll(t[r]).range(+r));return z.of(n,!0)}function jl(i={}){return[_l.of(i),Zu,iT,nT,NS]}function rT(i,e){let t=i.field(ve,!1);if(t&&t.diagnostics.size){let n=[],r=[],s=-1;for(let o=z.iter([t.diagnostics]);;o.next()){for(let l=0;l<n.length;l++)(!o.value||o.value.spec.diagnostics.indexOf(n[l])<0)&&(e(n[l],r[l],s),n.splice(l,1),r.splice(l--,1));if(!o.value)break;for(let l of o.value.spec.diagnostics)n.indexOf(l)<0&&(n.push(l),r.push(o.from));s=o.to}}}var Rl,nn,Kr,Xu,jS,ve,Bv,VS,Au,YS,Nv,Gv,DS,Zt,Ru,Zl,Jr,Hv,Ll,iT,Zu,Mu,NS,nT,GS,_l,US=N(()=>{qt();$t();Ya();Rl=class{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}},nn=class i{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let r=n.facet(Zt).markerFilter;r&&(e=r(e,n));let s=e.slice().sort((d,O)=>d.from-O.from||d.to-O.to),o=new Ke,l=[],a=0,h=n.doc.iter(),c=0,f=n.doc.length;for(let d=0;;){let O=d==s.length?null:s[d];if(!O&&!l.length)break;let m,g;if(l.length)m=a,g=l.reduce((y,C)=>Math.min(y,C.to),O&&O.from>m?O.from:1e8);else{if(m=O.from,m>f)break;g=O.to,l.push(O),d++}for(;d<s.length;){let y=s[d];if(y.from==m&&(y.to>y.from||y.to==m))l.push(y),d++,g=Math.min(y.to,g);else{g=Math.min(y.from,g);break}}g=Math.min(g,f);let b=!1;if(l.some(y=>y.from==m&&(y.to==g||g==f))&&(b=m==g,!b&&g-m<10)){let y=m-(c+h.value.length);y>0&&(h.next(y),c=m);for(let C=m;;){if(C>=g){b=!0;break}if(!h.lineBreak&&c+h.value.length>C)break;C=c+h.value.length,c+=h.value.length,h.next()}}let S=IS(l);if(b)o.add(m,m,Z.widget({widget:new Ru(S),diagnostics:l.slice()}));else{let y=l.reduce((C,x)=>x.markClass?C+" "+x.markClass:C,"");o.add(m,g,Z.mark({class:"cm-lintRange cm-lintRange-"+S+y,diagnostics:l.slice(),inclusiveEnd:l.some(C=>C.to>g)}))}if(a=g,a==f)break;for(let y=0;y<l.length;y++)l[y].to<=a&&l.splice(y--,1)}let u=o.finish();return new i(u,t,gi(u))}};Kr=M.define(),Xu=M.define(),jS=M.define(),ve=re.define({create(){return new nn(Z.none,null,null)},update(i,e){if(e.docChanged&&i.diagnostics.size){let t=i.diagnostics.map(e.changes),n=null,r=i.panel;if(i.selected){let s=e.changes.mapPos(i.selected.from,1);n=gi(t,i.selected.diagnostic,s)||gi(t,null,s)}!t.size&&r&&e.state.facet(Zt).autoPanel&&(r=null),i=new nn(t,r,n)}for(let t of e.effects)if(t.is(Kr)){let n=e.state.facet(Zt).autoPanel?t.value.length?Jr.open:null:i.panel;i=nn.init(t.value,n,e.state)}else t.is(Xu)?i=new nn(i.diagnostics,t.value?Jr.open:null,i.selected):t.is(jS)&&(i=new nn(i.diagnostics,i.panel,t.value));return i},provide:i=>[Cn.from(i,e=>e.panel),$.decorations.from(i,e=>e.diagnostics)]});Bv=Z.mark({class:"cm-lintRange cm-lintRange-active"});VS=i=>{let e=i.state.field(ve,!1);(!e||!e.panel)&&i.dispatch({effects:LS(i.state,[Xu.of(!0)])});let t=xo(i,Jr.open);return t&&t.dom.querySelector(".cm-panel-lint ul").focus(),!0},Au=i=>{let e=i.state.field(ve,!1);return!e||!e.panel?!1:(i.dispatch({effects:Xu.of(!1)}),!0)},YS=i=>{let e=i.state.field(ve,!1);if(!e)return!1;let t=i.state.selection.main,n=gi(e.diagnostics,null,t.to+1);return!n&&(n=gi(e.diagnostics,null,0),!n||n.from==t.from&&n.to==t.to)?!1:(i.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0}),!0)},Nv=i=>{let{state:e}=i,t=e.field(ve,!1);if(!t)return!1;let n=e.selection.main,r,s,o,l;return t.diagnostics.between(0,e.doc.length,(a,h)=>{h<n.to&&(r==null||r<a)&&(r=a,s=h),(o==null||a>o)&&(o=a,l=h)}),o==null||r==null&&o==n.from?!1:(i.dispatch({selection:{anchor:r??o,head:s??l},scrollIntoView:!0}),!0)},Gv=[{key:"Mod-Shift-m",run:VS,preventDefault:!0},{key:"F8",run:YS}],DS=J.fromClass(class{constructor(i){this.view=i,this.timeout=-1,this.set=!0;let{delay:e}=i.state.facet(Zt);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){clearTimeout(this.timeout);let i=Date.now();if(i<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-i);else{this.set=!1;let{state:e}=this.view,{sources:t}=e.facet(Zt);t.length&&Uv(t.map(n=>Promise.resolve(n(this.view))),n=>{this.view.state.doc==e.doc&&this.view.dispatch(_S(this.view.state,n.reduce((r,s)=>r.concat(s))))},n=>{ue(this.view.state,n)})}}update(i){let e=i.state.facet(Zt);(i.docChanged||e!=i.startState.facet(Zt)||e.needsRefresh&&e.needsRefresh(i))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}});Zt=T.define({combine(i){return{sources:i.map(e=>e.source).filter(e=>e!=null),...Ae(i.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:WS,tooltipFilter:WS,needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t,hideOn:(e,t)=>e?t?(n,r,s)=>e(n,r,s)||t(n,r,s):e:t,autoPanel:(e,t)=>e||t})}}});Ru=class extends Se{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return fe("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}},Zl=class{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=BS(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}},Jr=class i{constructor(e){this.view=e,this.items=[];let t=r=>{if(!(r.ctrlKey||r.altKey||r.metaKey)){if(r.keyCode==27)Au(this.view),this.view.focus();else if(r.keyCode==38||r.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(r.keyCode==40||r.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(r.keyCode==36)this.moveSelection(0);else if(r.keyCode==35)this.moveSelection(this.items.length-1);else if(r.keyCode==13)this.view.focus();else if(r.keyCode>=65&&r.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:s}=this.items[this.selectedIndex],o=qS(s.actions);for(let l=0;l<o.length;l++)if(o[l].toUpperCase().charCodeAt(0)==r.keyCode){let a=gi(this.view.state.field(ve).diagnostics,s);a&&s.actions[l].apply(e,a.from,a.to)}}else return;r.preventDefault()}},n=r=>{for(let s=0;s<this.items.length;s++)this.items[s].dom.contains(r.target)&&this.moveSelection(s)};this.list=fe("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:n}),this.dom=fe("div",{class:"cm-panel-lint"},this.list,fe("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>Au(this.view)},"\xD7")),this.update()}get selectedIndex(){let e=this.view.state.field(ve).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(ve),n=0,r=!1,s=null,o=new Set;for(e.between(0,this.view.state.doc.length,(l,a,{spec:h})=>{for(let c of h.diagnostics){if(o.has(c))continue;o.add(c);let f=-1,u;for(let d=n;d<this.items.length;d++)if(this.items[d].diagnostic==c){f=d;break}f<0?(u=new Zl(this.view,c),this.items.splice(n,0,u),r=!0):(u=this.items[f],f>n&&(this.items.splice(n,f-n),r=!0)),t&&u.diagnostic==t.diagnostic?u.dom.hasAttribute("aria-selected")||(u.dom.setAttribute("aria-selected","true"),s=u):u.dom.hasAttribute("aria-selected")&&u.dom.removeAttribute("aria-selected"),n++}});n<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();this.items.length==0&&(this.items.push(new Zl(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),r=!0),s?(this.list.setAttribute("aria-activedescendant",s.id),this.view.requestMeasure({key:this,read:()=>({sel:s.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:l,panel:a})=>{let h=a.height/this.list.offsetHeight;l.top<a.top?this.list.scrollTop-=(a.top-l.top)/h:l.bottom>a.bottom&&(this.list.scrollTop+=(l.bottom-a.bottom)/h)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let n=e;e=n.nextSibling,n.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=this.view.state.field(ve),n=gi(t.diagnostics,this.items[e].diagnostic);n&&this.view.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0,effects:jS.of(n)})}static open(e){return new i(e)}};Hv=$.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:El("#d11")},".cm-lintRange-warning":{backgroundImage:El("orange")},".cm-lintRange-info":{backgroundImage:El("#999")},".cm-lintRange-hint":{backgroundImage:El("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:"#86714a80"},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:"#2e343e"}}});Ll=class extends Ze{constructor(e){super(),this.diagnostics=e,this.severity=IS(e)}toDOM(e){let t=document.createElement("div");t.className="cm-lint-marker cm-lint-marker-"+this.severity;let n=this.diagnostics,r=e.state.facet(_l).tooltipFilter;return r&&(n=r(n,e.state)),n.length&&(t.onmouseover=()=>eT(e,t,n)),t}};iT=$r({class:"cm-gutter-lint",markers:i=>i.state.field(Zu),widgetMarker:(i,e,t)=>{let n=[];return i.state.field(Zu).between(t.from,t.to,(r,s,o)=>{r>t.from&&r<t.to&&n.push(...o.diagnostics)}),n.length?new Ll(n):null}}),Zu=re.define({create(){return z.empty},update(i,e){i=i.map(e.changes);let t=e.state.facet(_l).markerFilter;for(let n of e.effects)if(n.is(Kr)){let r=n.value;t&&(r=t(r||[],e.state)),i=tT(e.state.doc,r.slice(0))}return i}}),Mu=M.define(),NS=re.define({create(){return null},update(i,e){return i&&e.docChanged&&(i=ES(e,i)?null:{...i,pos:e.changes.mapPos(i.pos)}),e.effects.reduce((t,n)=>n.is(Mu)?n.value:t,i)},provide:i=>Yi.from(i)}),nT=$.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:Ml('<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>')},".cm-lint-marker-warning":{content:Ml('<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>')},".cm-lint-marker-error":{content:Ml('<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>')}}),GS=[ve,$.decorations.compute([ve],i=>{let{selected:e,panel:t}=i.field(ve);return!e||!t||e.from==e.to?Z.none:Z.set([Bv.range(e.from,e.to)])}),ec(Iv,{hideOn:ES}),Hv],_l=T.define({combine(i){return Ae(i,{hoverTime:300,markerFilter:null,tooltipFilter:null})}})});var Lu={};Si(Lu,{Compartment:()=>oi,EditorSelection:()=>Q,EditorState:()=>F,EditorView:()=>$,HighlightStyle:()=>Ut,LOAD_TIMEOUT_MS:()=>Eu,LanguageSupport:()=>le,StateEffect:()=>M,adiaBaseTheme:()=>sT,adiaHighlightStyle:()=>oT,defaultHighlightStyle:()=>_o,defaultKeymap:()=>Xl,drawSelection:()=>ko,highlightActiveLine:()=>wo,highlightActiveLineGutter:()=>To,history:()=>Tl,historyKeymap:()=>Cl,importWithTimeout:()=>aT,indentWithTab:()=>Al,jsonLinter:()=>hT,keymap:()=>Ct,languages:()=>lT,lineNumbers:()=>vo,lintGutter:()=>jl,linter:()=>es,placeholder:()=>Po,syntaxHighlighting:()=>Lo});function aT(i,e){return Promise.race([i(),new Promise((t,n)=>setTimeout(()=>n(new Error(`code-editor: ${e} load timed out after ${Eu}ms`)),Eu))])}function cT(i,e){let t=e.length,n=i.match(/at position (\d+)/);if(n){let o=Math.min(t,Number(n[1]));return{from:o,to:Math.min(t,o+1)}}let r=i.match(/line (\d+) column (\d+)/);if(r){let o=Number(r[1]),l=Number(r[2]),a=0,h=1;for(let f=0;f<e.length&&h<o;f++)e[f]===`
|
|
35
|
-
`&&(h++,a=f+1);let c=Math.min(t,a+Math.max(0,l-1));return{from:c,to:Math.min(t,c+1)}}let s=Math.max(0,t);return{from:Math.max(0,s-1),to:s}}var sT,oT,lT,Eu,hT,_u=N(()=>{"use strict";$t();qt();MS();Rt();US();wt();sT=$.theme({"&":{fontFamily:"inherit",fontSize:"inherit",color:"inherit",backgroundColor:"transparent"},".cm-content":{
|
|
35
|
+
`&&(h++,a=f+1);let c=Math.min(t,a+Math.max(0,l-1));return{from:c,to:Math.min(t,c+1)}}let s=Math.max(0,t);return{from:Math.max(0,s-1),to:s}}var sT,oT,lT,Eu,hT,_u=N(()=>{"use strict";$t();qt();MS();Rt();US();wt();sT=$.theme({"&":{fontFamily:"inherit",fontSize:"inherit",color:"inherit",backgroundColor:"transparent"},".cm-content":{caretColor:"inherit"},".cm-focused":{outline:"none"}}),oT=Ut.define([{tag:[p.comment,p.lineComment,p.blockComment,p.docComment],class:"tok-comment"},{tag:[p.keyword,p.controlKeyword,p.modifier,p.operatorKeyword],class:"tok-keyword"},{tag:[p.string,p.character,p.regexp,p.escape,p.special(p.string)],class:"tok-string"},{tag:[p.number,p.integer,p.float],class:"tok-number"},{tag:[p.bool,p.null,p.atom],class:"tok-boolean"},{tag:[p.operator,p.logicOperator,p.arithmeticOperator,p.compareOperator,p.updateOperator,p.definitionOperator],class:"tok-operator"},{tag:[p.punctuation,p.bracket,p.paren,p.brace,p.squareBracket,p.angleBracket,p.separator],class:"tok-punctuation"},{tag:[p.function(p.variableName),p.function(p.propertyName),p.macroName],class:"tok-function"},{tag:[p.variableName,p.local(p.variableName),p.self],class:"tok-variable"},{tag:[p.typeName,p.className,p.namespace],class:"tok-type"},{tag:[p.propertyName,p.labelName,p.definition(p.variableName)],class:"tok-property"},{tag:[p.tagName,p.heading,p.contentSeparator],class:"tok-tag"},{tag:[p.attributeName,p.attributeValue],class:"tok-attribute"},{tag:[p.url,p.link],class:"tok-url"},{tag:[p.invalid,p.deleted],class:"tok-invalid"}]),lT={json:()=>Promise.resolve().then(()=>(Xm(),Cm)).then(i=>({extension:i.json()})),html:()=>Promise.resolve().then(()=>(gf(),a0)).then(i=>({extension:i.html()})),javascript:()=>Promise.resolve().then(()=>(cf(),Fg)).then(i=>({extension:i.javascript({jsx:!1,typescript:!1})})),css:()=>Promise.resolve().then(()=>(Mc(),og)).then(i=>({extension:i.css()})),markdown:()=>Promise.resolve().then(()=>(tb(),eb)).then(i=>({extension:i.markdown()})),yaml:()=>Promise.resolve().then(()=>(mb(),pb)).then(i=>({extension:i.yaml()}))},Eu=1e4;hT=es(i=>{let e=i.state.doc.toString();if(e.trim()==="")return[];try{return JSON.parse(e),[]}catch(t){let n=t instanceof Error?t.message:String(t),{from:r,to:s}=cT(n,e);return[{from:r,to:s,severity:"error",message:n.replace(/^SyntaxError:\s*/,""),source:"json"}]}})});var ns=Symbol("signal"),Ge=null,yi=null,rs=!1;function Yu(i){for(let e of i){if(e.disposed){i.delete(e);continue}e.dirty=!0,yi||(yi=new Set,rs||queueMicrotask(Du)),yi.add(e)}}function Du(){let i,e=0;for(;i=yi;){if(++e>100){yi=null,console.error("signals: drain loop exceeded 100 iterations");break}yi=null;for(let t of i)if(!t.disposed&&t.dirty){t.dirty=!1;try{t.run()}catch(n){t.onError?t.onError(n):(t.disposed=!0,queueMicrotask(()=>{throw n}))}}}}function HS(i){if(rs){i();return}rs=!0;try{i()}finally{rs=!1,yi&&Du()}}function Vl(i){let e=Ge;Ge=null;try{return i()}finally{Ge=e}}function sn(i){let e=new Set;return{[ns]:!0,get value(){return Ge&&e.add(Ge),i},set value(t){Object.is(i,t)||(i=t,Yu(e))},peek(){return i}}}function Yl(i){let e=new Set,t,n=!0,r={dirty:!1,disposed:!1,run(){n=!0,Yu(e)}};return{[ns]:!0,get value(){if(Ge&&e.add(Ge),n){let s=Ge;Ge=r;try{t=i(),n=!1}finally{Ge=s}}return t},peek(){return t}}}function Qi(i,e){let t={dirty:!1,disposed:!1,host:e?.host??null,onError:e?.onError??null,run(){let n=Ge;Ge=t;try{i()}finally{Ge=n}}};return t.run(),()=>{t.disposed=!0}}function Dl(i){return i!=null&&typeof i=="object"&&i[ns]===!0}var[Wl,ln]=[Symbol(),Symbol()];function KS(i,...e){return{strings:i,values:e}}function JS(i,...e){let t="";for(let r=0;r<i.length;r++)t+=i[r],r<e.length&&(t+=e[r]);let n=new CSSStyleSheet;return n.replaceSync(t),n}var Wu=new WeakMap;function ey(i){let e=0,t=0,n=0;for(;n<i.length;){if(e===0&&i.charCodeAt(n)===60&&i.charCodeAt(n+1)===33&&i.charCodeAt(n+2)===45&&i.charCodeAt(n+3)===45){let s=i.indexOf("-->",n+4);if(s===-1){t=0;break}n=s+3,t=0;continue}let r=i.charCodeAt(n);e?r===(e===1?39:34)&&(e=0):r===39?e=1:r===34?e=2:r===60?t=1:r===62&&(t=0),n++}return t===1}function ty(i){let e=Wu.get(i);if(e)return e;let t="";for(let n=0;n<i.length;n++)t+=i[n],n<i.length-1&&(t+=ey(t)?`{{p:${n}}}`:`<!--p:${n}-->`);return e=document.createElement("template"),e.innerHTML=t,Wu.set(i,e),e}var qu={classname:"className",innertext:"innerText",innerhtml:"innerHTML",outerhtml:"outerHTML",textcontent:"textContent",tabindex:"tabIndex",arialabel:"ariaLabel",ariadescribedby:"ariaDescribedBy",arialabelledby:"ariaLabelledBy",ariarole:"role",contenteditable:"contentEditable",readonly:"readOnly",maxlength:"maxLength",minlength:"minLength",colspan:"colSpan",rowspan:"rowSpan",cellpadding:"cellPadding",cellspacing:"cellSpacing",usemap:"useMap",ismap:"isMap",accesskey:"accessKey",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defaultselected:"defaultSelected"};function Bu(i,e){if(qu[e])return qu[e];let t=Object.getOwnPropertyNames(i);for(let r=0;r<t.length;r++){let s=t[r];if(s!==e&&s.toLowerCase()===e)return s}let n=Object.getPrototypeOf(i);for(;n&&n!==Object.prototype;){let r=Object.getOwnPropertyNames(n);for(let s=0;s<r.length;s++){let o=r[s];if(o!==e&&o.toLowerCase()===e)return o}n=Object.getPrototypeOf(n)}return e}function on(i,e){let t=e._i;(!t||t.s!==i.strings)&&(t&&os(t.p),t=iy(i,e),e._i=t),oy(t.p,i.values)}function iy(i,e){let{strings:t}=i,r=ty(t).content.cloneNode(!0),s=ny(e);s&&(r=ry(r,s));let o=sy(r,i.values.length);return e.replaceChildren(r),{s:t,p:o}}var ss="http://www.w3.org/2000/svg",In="http://www.w3.org/1998/Math/MathML",Iu="http://www.w3.org/1999/xhtml";function ny(i){if(!i||i.nodeType!==1)return null;if(i.namespaceURI===ss)return ss;if(i.namespaceURI===In)return In;if(typeof i.closest!="function")return null;let e=i.closest("svg, math, foreignObject, annotation-xml");if(!e)return null;let t=e.localName;if(t==="foreignobject"||t==="foreignObject")return null;if(t==="annotation-xml"){let n=(e.getAttribute("encoding")||"").toLowerCase();return n==="text/html"||n==="application/xhtml+xml"?null:In}return t==="svg"?ss:t==="math"?In:null}function ry(i,e){let t=document.createDocumentFragment();return Nu(i,t,e),t}function Nu(i,e,t){for(let n of[...i.childNodes])if(n.nodeType===1){let s=document.createElementNS(t,n.localName);for(let a of n.attributes)a.namespaceURI?s.setAttributeNS(a.namespaceURI,a.name,a.value):s.setAttribute(a.name,a.value);e.appendChild(s);let o=n.localName,l=t;if(t===ss&&(o==="foreignObject"||o==="foreignobject"))l=Iu;else if(t===In&&o==="annotation-xml"){let a=(n.getAttribute("encoding")||"").toLowerCase();(a==="text/html"||a==="application/xhtml+xml")&&(l=Iu)}Nu(n,s,l)}else e.appendChild(n.cloneNode(!0))}function sy(i,e){let t=new Array(e),n=document.createTreeWalker(i,129),r;for(;r=n.nextNode();)if(r.nodeType===8){let s=r.data.match(/^p:(\d+)$/);if(s){let o=document.createTextNode("");r.replaceWith(o),n.currentNode=o,t[+s[1]]={t:"n",n:o,c:void 0,_fx:null}}}else if(r.nodeType===1)for(let s of[...r.attributes]){let o=s.value.match(/^\{\{p:(\d+)\}\}$/);if(!o){if(s.value.includes("{{p:")){let h=s.name,c=h==="class"?' class="${expression}" \u2190 full replacement (whole class string is the expression)\n .className=${expression} \u2190 writes to the className property (resolved camelCase since FB-55 fix)\n':h==="style"?' style="${expression}" \u2190 full replacement of the style string\n .style.cssText=${expression} \u2190 write CSS text via the style.cssText accessor\n':` ${h}="\${expression}" \u2190 full replacement (whole attr is the placeholder)
|
|
36
36
|
.${h}=\${expression} \u2190 property assignment (preferred for objects/functions)
|
|
37
37
|
`;console.warn(`[template] Partial attribute interpolation is not supported.
|
|
38
38
|
Element: <${r.tagName.toLowerCase()}>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:where(editor-shell){--editor-bg:var(--a-canvas-0);--editor-border:1px solid var(--
|
|
1
|
+
:where(editor-shell){--editor-bg:var(--a-canvas-0);--editor-border:1px solid var(--md-sys-color-neutral-outline-variant);--editor-panel-bg:var(--a-canvas-2);--editor-bar-height:var(--a-chrome-pane-header-height);--editor-bar-px:var(--a-space-3);--editor-bar-gap:var(--a-space-2);--editor-bar-font:var(--a-ui-size);--editor-bar-fg:var(--md-sys-color-neutral-on-surface-variant);--editor-bar-fg-strong:var(--md-sys-color-neutral-on-surface);--editor-canvas-bg:var(--a-canvas-1);--editor-canvas-fg:var(--a-fg-muted);--editor-canvas-toolbar-bg:var(--editor-panel-bg);--editor-canvas-toolbar-px:var(--a-space-3);--editor-canvas-toolbar-gap:var(--a-space-2);--editor-title-weight:var(--a-weight-medium);--editor-pane-width-left:240px;--editor-pane-width-right:280px}editor-shell{box-sizing:border-box;background:var(--editor-bg);flex-direction:column;height:100%;display:flex;overflow:hidden}editor-shell editor-canvas{background:var(--editor-canvas-bg);min-width:0;color:var(--editor-canvas-fg);flex:1;justify-content:flex-start;align-items:stretch;display:flex}editor-shell pane-ui{--pane-radius:0;--pane-bg:var(--editor-panel-bg);flex-shrink:0;height:100%}editor-shell editor-sidebar[slot=leading]>pane-ui{width:var(--editor-pane-width-left)}editor-shell editor-sidebar[slot=trailing]>pane-ui{width:var(--editor-pane-width-right)}editor-shell>editor-toolbar{box-sizing:border-box;align-items:center;gap:var(--editor-toolbar-gap,var(--a-space-2));padding:0 var(--editor-toolbar-px,var(--a-space-3));height:var(--editor-toolbar-height,var(--a-size-lg));font-size:var(--editor-toolbar-font,var(--a-ui-size));box-shadow:inset 0 -1px 0 var(--md-sys-color-neutral-outline-variant);background:var(--editor-panel-bg,var(--md-sys-color-neutral-background));flex-shrink:0;grid-area:toolbar;display:flex}editor-toolbar>[slot=title]{font-weight:var(--a-weight-medium,500);color:var(--md-sys-color-neutral-on-surface)}editor-toolbar>[slot=action-leading]{margin-inline-end:var(--a-space-2)}editor-toolbar>[slot=status]{color:var(--a-fg-muted);margin-inline-start:var(--a-space-2)}editor-toolbar>[slot=action]{margin-inline-start:auto}editor-toolbar>[slot=action]~[slot=action]{margin-inline-start:var(--a-space-2)}editor-shell>editor-canvas{background:var(--editor-canvas-bg,var(--a-bg-subtle));flex-direction:column;flex:1;grid-area:canvas;justify-content:flex-start;align-items:stretch;min-width:0;min-height:0;display:flex;position:relative;overflow:auto}editor-canvas>*{transform:scale(var(--editor-canvas-zoom,1));transform-origin:0 0}editor-canvas-toolbar{align-items:center;gap:var(--editor-canvas-toolbar-gap,var(--a-space-2));padding:0 var(--editor-canvas-toolbar-px,var(--a-space-3));box-shadow:inset 0 -1px 0 var(--md-sys-color-neutral-outline-variant);background:var(--editor-canvas-toolbar-bg,var(--editor-panel-bg,var(--md-sys-color-neutral-background)));z-index:1;flex-shrink:0;display:flex;position:sticky;top:0;transform:none}editor-canvas-toolbar>[slot=title]{font-weight:var(--a-weight-medium,500);color:var(--md-sys-color-neutral-on-surface)}editor-canvas-toolbar>[slot=action-leading]{align-items:center;gap:var(--editor-canvas-toolbar-gap,var(--a-space-2));flex-shrink:0;margin-inline-end:var(--a-space-2);display:flex}editor-canvas-toolbar>[slot=action]{align-items:center;gap:var(--editor-canvas-toolbar-gap,var(--a-space-2));flex-shrink:0;margin-inline-start:auto;display:flex}editor-canvas-toolbar>[slot=action]~[slot=action]{margin-inline-start:var(--editor-canvas-toolbar-gap,var(--a-space-2))}editor-canvas:not([empty])>editor-canvas-empty{display:none}editor-canvas[empty]>editor-canvas-empty{padding:var(--a-space-6);flex:1;justify-content:center;align-items:center;display:flex}:is(editor-sidebar[slot=leading],editor-sidebar[slot=trailing]){flex-direction:column;flex-shrink:0;min-height:0;display:flex;position:relative}editor-sidebar[slot=leading]{border-right:var(--editor-border,1px solid var(--md-sys-color-neutral-outline-variant));grid-area:leading}editor-sidebar[slot=trailing]{border-left:var(--editor-border,1px solid var(--md-sys-color-neutral-outline-variant));grid-area:trailing}editor-sidebar>pane-ui{flex-direction:column;flex:1;min-height:0;display:flex}editor-sidebar{transition:width var(--editor-sidebar-duration,var(--a-duration,.18s)) var(--editor-sidebar-easing,var(--a-easing,ease));container:editor-sidebar/inline-size}editor-sidebar>pane-ui{transition:width var(--editor-sidebar-duration,var(--a-duration,.18s)) var(--editor-sidebar-easing,var(--a-easing,ease))}editor-sidebar[collapsed]>pane-ui{min-width:var(--editor-sidebar-collapsed-width,48px);overflow:hidden;width:var(--editor-sidebar-collapsed-width,48px)!important}editor-sidebar[collapsed]>pane-ui>section,editor-sidebar[collapsed]>pane-ui>footer{display:none}editor-sidebar[collapsed]>pane-ui>header{justify-content:flex-start;align-items:center;gap:var(--a-space-1);padding:var(--a-space-2) 0;flex-direction:column;display:flex}editor-sidebar[collapsed]>pane-ui>header :is(span:not([data-icon]):not([slot]),label,h1,h2,h3){display:none}editor-sidebar[collapsed]{background:var(--editor-sidebar-rail-bg,var(--a-bg-subtle,var(--md-sys-color-neutral-background)))}editor-sidebar:is([resizing],:has(pane-ui[data-resizing])),editor-sidebar:is([resizing],:has(pane-ui[data-resizing]))>pane-ui{transition:none}editor-shell>editor-statusbar{box-sizing:border-box;align-items:center;gap:var(--editor-statusbar-gap,var(--a-space-2));padding:0 var(--editor-statusbar-px,var(--a-space-3));height:var(--editor-statusbar-height,var(--a-size-md));font-size:var(--editor-statusbar-font,var(--a-ui-sm));box-shadow:inset 0 1px 0 var(--md-sys-color-neutral-outline-variant);background:var(--editor-panel-bg,var(--md-sys-color-neutral-background));color:var(--a-fg-muted);flex-shrink:0;grid-area:statusbar;display:flex}editor-statusbar>[slot=cursor],editor-statusbar>[slot=zoom]{font-family:var(--a-font-family-mono);margin-inline-start:var(--a-space-2)}editor-statusbar>[slot=action]{margin-inline-start:auto}editor-statusbar>[slot=action]~[slot=action]{margin-inline-start:var(--a-space-2)}editor-shell:has(>editor-canvas){grid-template:"toolbar toolbar toolbar""leading canvas trailing"1fr"statusbar statusbar statusbar"/auto 1fr auto;height:100%;display:grid}
|