@aiquants/markdown-explorer 0.26.0 → 0.27.0
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 +55 -0
- package/README.md +39 -24
- package/dist/{EditSurface-Co4Rvfa1.cjs → EditSurface-B1yD7ywF.cjs} +1 -1
- package/dist/{EditSurface-Blymamic.js → EditSurface-sUNqYw9o.js} +5 -5
- package/dist/{ExplorerSplit-WApgYMPb.cjs → ExplorerSplit-Bn3ZnEMZ.cjs} +1 -1
- package/dist/{ExplorerSplit-BZ0PA3z3.js → ExplorerSplit-pClUl3-e.js} +3 -3
- package/dist/{MultiLayout-dAW_JCzg.cjs → MultiLayout-0Jh08fxo.cjs} +1 -1
- package/dist/{MultiLayout-B5-1N3JD.js → MultiLayout-B-ft4_Vs.js} +4 -4
- package/dist/{NativeScrollBar-BraWuZvN.js → NativeScrollBar-ByawerpG.js} +1 -1
- package/dist/{NativeScrollBar-ThVMbI0Y.cjs → NativeScrollBar-D9QrjRJa.cjs} +1 -1
- package/dist/{TreeLayout-C60lb9hP.cjs → TreeLayout-CXHbKdxy.cjs} +1 -1
- package/dist/{TreeLayout-CChoxh9W.js → TreeLayout-DjIVKBG4.js} +3 -3
- package/dist/core/config.d.cts +7 -0
- package/dist/core/config.d.ts +7 -0
- package/dist/core/contracts.d.cts +8 -2
- package/dist/core/contracts.d.ts +8 -2
- package/dist/core/dataRoute.d.cts +40 -0
- package/dist/core/dataRoute.d.ts +40 -0
- package/dist/core/labels.d.cts +10 -1
- package/dist/core/labels.d.ts +10 -1
- package/dist/{dataRoute-BEvesOvN.js → dataRoute-DLhQfdoW.js} +111 -103
- package/dist/dataRoute-DwYtgyt6.cjs +1 -0
- package/dist/index-BNAkC0g3.js +4800 -0
- package/dist/index-DRMNpWDJ.cjs +15 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +27 -26
- package/dist/{location-DIxIjqs7.js → location-BNFdxzhn.js} +134 -130
- package/dist/location-yvU5HUY1.cjs +1 -0
- package/dist/{merge-DRWmjC24.cjs → merge-BBU1pDoT.cjs} +1 -1
- package/dist/{merge-CgSp-0Dd.js → merge-DhHzRcAI.js} +1 -1
- package/dist/{sanitizePolicy-gVKBhabq.js → sanitizePolicy-By0tKOpZ.js} +1 -1
- package/dist/{sanitizePolicy-CZwOaJ92.cjs → sanitizePolicy-T5T-3vV5.cjs} +1 -1
- package/dist/sanitizeWorker.cjs +1 -1
- package/dist/sanitizeWorker.js +1 -1
- package/dist/server/ports.d.cts +4 -3
- package/dist/server/ports.d.ts +4 -3
- package/dist/server.cjs +1 -1
- package/dist/server.js +500 -493
- package/dist/styles/markdown-explorer.css +1 -1
- package/dist/{useSplitPersistence-Df63lnQZ.js → useSplitPersistence-D5EjJwCg.js} +1 -1
- package/dist/{useSplitPersistence-D-T75Hlh.cjs → useSplitPersistence-xGOSwpLM.cjs} +1 -1
- package/docs/behavior/dom-hooks.md +10 -6
- package/docs/behavior/layout.md +8 -3
- package/docs/behavior/localization.md +5 -2
- package/docs/behavior/security.md +7 -2
- package/docs/behavior/url-contract.md +3 -3
- package/package.json +5 -5
- package/dist/dataRoute-Cv7fgCW7.cjs +0 -1
- package/dist/index-B6FkGD-p.cjs +0 -13
- package/dist/index-Bd6hgisa.js +0 -4097
- package/dist/location-D3DgoELB.cjs +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
|
|
2
2
|
/*! @aiquants/markdown-explorer — component styles, layered in `components`. The layer order is pinned first (theme, base, components, utilities, as Tailwind CSS declares it), so a Tailwind host's preflight in `base` cannot override the explorer when this sheet is the first to name a layer. */
|
|
3
|
-
@layer theme,base;@layer components{.aqmx-root{--aqmx-space-1:.0625rem;--aqmx-space-2:.125rem;--aqmx-space-3:.1875rem;--aqmx-space-4:.3125rem;--aqmx-space-5:.5rem;--aqmx-space-6:.8125rem;--aqmx-space-7:1.3125rem;--aqmx-space-8:2.125rem;--aqmx-space-9:3.4375rem;--aqmx-control:2.75rem;--aqmx-focus-ring-width:var(--aqmx-space-2);--aqmx-focus-ring-offset:var(--aqmx-space-2);--aqmx-icon:1rem;--aqmx-radius-s:.3125rem;--aqmx-radius-m:.5rem;--aqmx-radius-l:.8125rem;--aqmx-duration-1:89ms;--aqmx-duration-2:.144s;--aqmx-duration-3:.233s;--aqmx-duration-4:.377s;--aqmx-delay-progress:.233s;--aqmx-ease:cubic-bezier(.2, 0, 0, 1);--aqmx-font-size-body:.8125rem;--aqmx-font-size-title:1rem;--aqmx-font-size-display:1.3125rem;--aqmx-line-height-compact:1.382;--aqmx-line-height-prose:1.618;--aqmx-column-measure:40ch;--aqmx-surface:#fff;--aqmx-surface-raised:#f8fafc;--aqmx-surface-sunken:#f1f5f9;--aqmx-border:#cbd5e1;--aqmx-border-strong:#94a3b8;--aqmx-text:#0f172a;--aqmx-text-muted:#3d4a5c;--aqmx-accent:#1d3fa6;--aqmx-accent-surface:#dbeafe;--aqmx-tree-line:#64748b;--aqmx-tree-row-tint:#0f172a0f;--aqmx-tree-row-accent-tint:#2563eb29;--aqmx-focus:#2563eb;--aqmx-info-surface:#eff6ff;--aqmx-info-border:#93c5fd;--aqmx-info-text:#1e3a8a;--aqmx-warning-surface:#fffbeb;--aqmx-warning-border:#fcd34d;--aqmx-warning-text:#78350f;--aqmx-danger-surface:#fef2f2;--aqmx-danger-border:#fca5a5;--aqmx-danger-text:#7f1d1d;--aqmx-syntax-heading:#172554;--aqmx-syntax-link:#1e3a8a;--aqmx-syntax-url:#5b21b6;--aqmx-syntax-code:#7c2d12;--aqmx-syntax-quote:#334155;--aqmx-syntax-mark:#3d4a5c;--aqmx-editor-gutter:#334155;--aqmx-editor-selection:#2563eb36;--aqmx-editor-active-line:#0f172a0d;--aqmx-conflict-ours-tint:#16a34a21;--aqmx-conflict-theirs-tint:#2563eb21;--aqmx-conflict-marker-tint:#d9770636;--aqmx-shadow:0 .0625rem .1875rem #0f172a21, 0 .3125rem .8125rem #0f172a14}.aqmx-root[data-aqmx-theme=dark]{--aqmx-surface:#0f172a;--aqmx-surface-raised:#1e293b;--aqmx-surface-sunken:#020617;--aqmx-border:#334155;--aqmx-border-strong:#64748b;--aqmx-text:#e2e8f0;--aqmx-text-muted:#aab6c8;--aqmx-accent:#bfdbfe;--aqmx-accent-surface:#1e3a8a;--aqmx-tree-line:#94a3b8;--aqmx-tree-row-tint:#e2e8f00f;--aqmx-tree-row-accent-tint:#2563eb70;--aqmx-focus:#60a5fa;--aqmx-info-surface:#172554;--aqmx-info-border:#1d4ed8;--aqmx-info-text:#bfdbfe;--aqmx-warning-surface:#422006;--aqmx-warning-border:#a16207;--aqmx-warning-text:#fde68a;--aqmx-danger-surface:#450a0a;--aqmx-danger-border:#b91c1c;--aqmx-danger-text:#fecaca;--aqmx-syntax-heading:#bfdbfe;--aqmx-syntax-link:#c7d2fe;--aqmx-syntax-url:#ddd6fe;--aqmx-syntax-code:#fdba74;--aqmx-syntax-quote:#cbd5e1;--aqmx-syntax-mark:#cbd5e1;--aqmx-editor-gutter:#cbd5e1;--aqmx-editor-selection:#3b82f657;--aqmx-editor-active-line:#e2e8f00d;--aqmx-conflict-ours-tint:#22c55e36;--aqmx-conflict-theirs-tint:#3b82f636;--aqmx-conflict-marker-tint:#f59e0b36;--aqmx-shadow:0 .0625rem .1875rem #0000008c, 0 .3125rem .8125rem #00000057}@media (pointer:coarse){.aqmx-root{--aqmx-font-size-body:1rem}}@media (forced-colors:active){.aqmx-root.aqmx-root[data-aqmx-theme]{--aqmx-tree-line:CanvasText}}@media (prefers-reduced-motion:reduce){.aqmx-root{--aqmx-duration-1:0s;--aqmx-duration-2:0s;--aqmx-duration-3:0s;--aqmx-duration-4:0s}}.aqmx-root{block-size:100%;min-block-size:0;inline-size:100%;min-inline-size:0;color:var(--aqmx-text);background:var(--aqmx-surface);font-size:var(--aqmx-font-size-body);line-height:var(--aqmx-line-height-compact);flex-direction:column;display:flex;position:relative}.aqmx-root *,.aqmx-root :before,.aqmx-root :after{box-sizing:border-box}.aqmx-icon-button{inline-size:var(--aqmx-control);block-size:var(--aqmx-control);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text-muted);cursor:pointer;transition:background-color var(--aqmx-duration-2) var(--aqmx-ease), color var(--aqmx-duration-2) var(--aqmx-ease);background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.aqmx-icon-button:hover{color:var(--aqmx-text);background:var(--aqmx-surface-sunken)}.aqmx-icon-button[aria-pressed=true],.aqmx-icon-button:has(>input:checked),.aqmx-icon-button[aria-expanded=true]{color:var(--aqmx-accent);background:var(--aqmx-accent-surface)}.aqmx-icon-button:disabled{opacity:.382;cursor:not-allowed}.aqmx-icon-button[aria-disabled=true]{cursor:not-allowed}.aqmx-icon-button[aria-disabled=true]:hover{color:var(--aqmx-text-muted);background:0 0}.aqmx-icon-button>svg{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon)}.aqmx-icon-button[aria-disabled=true]>svg{opacity:.382}.aqmx-icon-button:has(>input[type=radio]){position:relative}.aqmx-icon-button>input[type=radio]{opacity:0;cursor:inherit;margin:0;position:absolute;inset:0}.aqmx-root :focus-visible,.aqmx-icon-button:has(>input:focus-visible){outline:var(--aqmx-focus-ring-width) solid var(--aqmx-focus);outline-offset:var(--aqmx-focus-ring-offset)}.aqmx-callout{gap:var(--aqmx-space-5);padding:var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-info-border);border-radius:var(--aqmx-radius-l);color:var(--aqmx-info-text);background:var(--aqmx-info-surface);line-height:var(--aqmx-line-height-prose);display:grid}.aqmx-callout[data-aqmx-tone=warning]{border-color:var(--aqmx-warning-border);color:var(--aqmx-warning-text);background:var(--aqmx-warning-surface)}.aqmx-callout[data-aqmx-tone=danger]{border-color:var(--aqmx-danger-border);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface)}.aqmx-callout-title{font-size:var(--aqmx-font-size-title);font-weight:600;line-height:var(--aqmx-line-height-compact);margin:0}.aqmx-callout-body{margin:0}.aqmx-callout-actions{gap:var(--aqmx-space-5);flex-wrap:wrap;display:flex}.aqmx-callout-action{min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-6);border:var(--aqmx-space-1) solid currentColor;border-radius:var(--aqmx-radius-m);color:inherit;font:inherit;cursor:pointer;background:0 0;justify-self:start;align-items:center;font-weight:600;text-decoration:none;display:inline-flex}.aqmx-progress{z-index:2;block-size:var(--aqmx-space-3);pointer-events:none;position:absolute;inset-block-start:0;inset-inline:0;overflow:hidden}.aqmx-progress:before{content:"";background:var(--aqmx-accent);inline-size:38.1966%;animation:aqmx-progress calc(var(--aqmx-duration-4) * 3) var(--aqmx-ease) infinite;position:absolute;inset-block:0}@keyframes aqmx-progress{0%{inset-inline-start:-38.1966%}to{inset-inline-start:100%}}.aqmx-empty{place-content:center;justify-items:center;gap:var(--aqmx-space-6);block-size:100%;padding:var(--aqmx-space-8);color:var(--aqmx-text-muted);text-align:center;line-height:var(--aqmx-line-height-prose);display:grid}.aqmx-empty-title{color:var(--aqmx-text);font-size:var(--aqmx-font-size-title);margin:0;font-weight:600}.aqmx-skeleton{gap:var(--aqmx-space-6);padding:var(--aqmx-space-7);display:grid}.aqmx-skeleton>span{block-size:var(--aqmx-space-6);border-radius:var(--aqmx-radius-s);background:var(--aqmx-surface-sunken);animation:aqmx-pulse calc(var(--aqmx-duration-4) * 4) ease-in-out infinite;display:block}.aqmx-skeleton>span:nth-child(3n+1){inline-size:61.8034%}.aqmx-skeleton>span:nth-child(3n+2){inline-size:100%}.aqmx-skeleton>span:nth-child(3n){inline-size:85.4102%}@keyframes aqmx-pulse{50%{opacity:.618}}.aqmx-sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.aqmx-toast{z-index:60;max-inline-size:min(34rem, calc(100% - var(--aqmx-space-8)));padding:var(--aqmx-space-5) var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-warning-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-warning-text);background:var(--aqmx-warning-surface);box-shadow:var(--aqmx-shadow);position:absolute;inset-block-start:var(--aqmx-space-6);inset-inline-end:var(--aqmx-space-7)}@media (prefers-reduced-motion:reduce){.aqmx-progress:before,.aqmx-skeleton>span{animation:none}}@media (forced-colors:active){.aqmx-icon-button[aria-pressed=true],.aqmx-icon-button:has(>input:checked),.aqmx-icon-button[aria-expanded=true]{forced-color-adjust:none;color:highlighttext;background:highlight}.aqmx-icon-button[aria-disabled=true]{color:graytext}.aqmx-root :focus-visible,.aqmx-icon-button:has(>input:focus-visible){outline-color:highlight}.aqmx-progress:before{forced-color-adjust:none;background:highlight}.aqmx-skeleton>span{forced-color-adjust:none;background:graytext}}.aqmx-explorer{gap:var(--aqmx-space-5);block-size:100%;min-block-size:0;min-inline-size:0;padding:var(--aqmx-space-4);color:var(--aqmx-text);background:var(--aqmx-surface);flex-direction:column;display:flex;position:relative;overflow-y:auto}.aqmx-explorer-header{align-items:center;gap:var(--aqmx-space-4);min-block-size:var(--aqmx-control);flex-wrap:wrap;flex:none;display:flex}.aqmx-explorer-source{min-inline-size:min(100%,9rem);block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-5);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text);background:var(--aqmx-surface-raised);font:inherit;text-overflow:ellipsis;cursor:pointer;flex:9rem}.aqmx-explorer-actions{justify-content:flex-end;align-items:center;gap:var(--aqmx-space-2);flex-wrap:wrap;flex:0 auto;min-inline-size:0;margin-inline-start:auto;display:flex}.aqmx-explorer-body{gap:var(--aqmx-space-5);flex-direction:column;flex:1 1 0;min-block-size:0;min-inline-size:0;display:flex;position:relative}.aqmx-labelled-button{gap:var(--aqmx-space-2);min-inline-size:var(--aqmx-control);inline-size:auto;padding-inline:var(--aqmx-space-3);white-space:nowrap;flex:0 auto;display:inline-flex}.aqmx-labelled-button>svg{flex:none}.aqmx-labelled-button>span{text-overflow:ellipsis;min-inline-size:0;overflow:hidden}.aqmx-explorer-refresh-failure,.aqmx-explorer-expand-all-stop{padding:var(--aqmx-space-4) var(--aqmx-space-5);border:var(--aqmx-space-1) solid;border-radius:var(--aqmx-radius-m);line-height:var(--aqmx-line-height-compact);overflow-wrap:anywhere;flex:none;margin:0}.aqmx-explorer-refresh-failure{border-color:var(--aqmx-danger-border);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface)}.aqmx-explorer-expand-all-stop{border-color:var(--aqmx-info-border);color:var(--aqmx-info-text);background:var(--aqmx-info-surface)}.aqmx-explorer-actions>.aqmx-labelled-button[data-aqmx-busy=true]>svg{animation:aqmx-explorer-spin calc(var(--aqmx-duration-4) * 3) linear infinite}@keyframes aqmx-explorer-spin{to{rotate:1turn}}.aqmx-explorer-actions>.aqmx-icon-button[aria-busy=true]{cursor:progress}.aqmx-explorer-menu{z-index:50;gap:var(--aqmx-space-1);max-block-size:100%;inline-size:min(21rem,100%);padding:var(--aqmx-space-3);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);background:var(--aqmx-surface-raised);box-shadow:var(--aqmx-shadow);display:grid;position:absolute;inset-block-start:0;inset-inline-end:0;overflow-y:auto}.aqmx-explorer-menu-item{align-items:center;gap:var(--aqmx-space-5);inline-size:100%;min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-5);border-radius:var(--aqmx-radius-s);color:var(--aqmx-text);font:inherit;text-align:start;cursor:pointer;transition:background-color var(--aqmx-duration-1) var(--aqmx-ease);background:0 0;border:0;display:flex}.aqmx-explorer-menu-item:hover,.aqmx-explorer-menu-item:focus-visible{background:var(--aqmx-surface-sunken)}.aqmx-explorer-menu-icon{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon);color:var(--aqmx-text-muted);flex:none}.aqmx-explorer-menu-name{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-inline-size:0;overflow:hidden}.aqmx-explorer-menu-value{color:var(--aqmx-accent);font-variant-numeric:tabular-nums;flex:none;font-weight:600}.aqmx-explorer-notices{gap:var(--aqmx-space-5);flex:none;display:grid}.aqmx-explorer-tree-area{min-block-size:calc(var(--aqmx-control) * 3);flex-direction:column;flex:1 1 0;min-inline-size:0;display:flex;position:relative}.aqmx-explorer-tree{flex:1 1 0;min-block-size:0;position:relative}.aqmx-explorer-tree-view{block-size:100%}.aqmx-explorer-tree-progress{z-index:1;align-items:center;gap:var(--aqmx-space-2) var(--aqmx-space-4);max-inline-size:calc(100% - var(--aqmx-space-5) * 3);padding:var(--aqmx-space-3) var(--aqmx-space-5);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text-muted);background:var(--aqmx-surface-raised);box-shadow:var(--aqmx-shadow);line-height:var(--aqmx-line-height-compact);overflow-wrap:anywhere;pointer-events:none;animation:aqmx-appear var(--aqmx-duration-2) ease-out var(--aqmx-delay-progress) both;flex-wrap:wrap;margin:0;display:flex;position:absolute;inset-block-end:var(--aqmx-space-9);inset-inline-start:var(--aqmx-space-5)}.aqmx-explorer-tree-progress-icon{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon);animation:aqmx-explorer-spin calc(var(--aqmx-duration-4) * 3) linear infinite;flex:none}@keyframes aqmx-appear{0%{opacity:0}}.aqmx-explorer-tree-probe{inline-size:0;block-size:var(--aqmx-control);visibility:hidden;pointer-events:none;color:var(--aqmx-tree-line);forced-color-adjust:none;position:absolute;inset-block-start:0;inset-inline-start:0;overflow:hidden}.aqmx-explorer-loading{gap:var(--aqmx-space-5);padding:var(--aqmx-space-6) var(--aqmx-space-5);color:var(--aqmx-text-muted);display:grid}.aqmx-explorer-loading-text{margin:0}.aqmx-explorer-loading>.aqmx-skeleton{padding:0}.aqmx-explorer-tree-message{padding:var(--aqmx-space-5);overflow-y:auto}.aqmx-explorer-empty-icon{inline-size:var(--aqmx-space-8);block-size:var(--aqmx-space-8);color:var(--aqmx-border-strong)}.aqmx-explorer-empty-body{margin:0}.aqmx-explorer-tree [role=treeitem]{border-radius:var(--aqmx-radius-s);color:var(--aqmx-text);transition:background-color var(--aqmx-duration-1) var(--aqmx-ease)}.aqmx-explorer-tree [role=treeitem]:hover{color:var(--aqmx-text);background:var(--aqmx-tree-row-tint)}.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true]{color:var(--aqmx-text);background:var(--aqmx-tree-row-tint);box-shadow:inset var(--aqmx-space-2) 0 0 currentColor}.aqmx-explorer-tree [role=treeitem][data-entry-selected=true],.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true]{color:var(--aqmx-accent);background:var(--aqmx-tree-row-accent-tint)}.aqmx-explorer-tree [role=treeitem]:focus-visible{outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true]:focus-visible{box-shadow:inset calc(var(--aqmx-space-2) + var(--aqmx-focus-ring-width)) 0 0 currentColor}.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true]{font-weight:600}.aqmx-explorer-tree [role=treeitem][data-aqmx-children=loading]{animation:aqmx-pulse calc(var(--aqmx-duration-4) * 4) ease-in-out infinite}.aqmx-explorer-tree [role=treeitem][data-aqmx-loop]{color:var(--aqmx-text-muted);font-style:italic}.aqmx-explorer-folder-failed{--aqmx-folder-name-floor:3em;align-items:center;min-inline-size:0;max-inline-size:100%;display:flex}.aqmx-explorer-folder-name{flex:10000 1 var(--aqmx-folder-name-floor);text-overflow:ellipsis;white-space:nowrap;min-inline-size:0;max-inline-size:max-content;overflow:hidden}.aqmx-explorer-folder-error{min-inline-size:0;color:var(--aqmx-danger-text);text-indent:var(--aqmx-space-4);text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;overflow:hidden}.aqmx-explorer-folder-retry{flex:1000000 0 calc(var(--aqmx-icon) + (var(--aqmx-space-3) + var(--aqmx-space-1)) * 2);min-inline-size:calc(var(--aqmx-icon) + (var(--aqmx-space-3) + var(--aqmx-space-1)) * 2);max-inline-size:max-content;min-block-size:var(--aqmx-control);padding:0 var(--aqmx-space-3);border:var(--aqmx-space-1) solid var(--aqmx-danger-border);border-radius:var(--aqmx-radius-s);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface);font:inherit;line-height:var(--aqmx-line-height-compact);cursor:pointer;justify-content:center;align-items:center;margin-inline-start:var(--aqmx-space-4);display:inline-flex;overflow:hidden}.aqmx-explorer-folder-retry:focus-visible{outline-offset:calc(-1 * (var(--aqmx-focus-ring-width) + var(--aqmx-space-1)))}.aqmx-explorer-folder-retry-icon{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon);flex:none}.aqmx-explorer-folder-retry-text{min-inline-size:0;text-indent:var(--aqmx-space-3);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.aqmx-explorer-tray{gap:var(--aqmx-space-4);min-block-size:calc(var(--aqmx-control) + (var(--aqmx-space-5) + var(--aqmx-space-1)) * 2);padding:var(--aqmx-space-5);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);background:var(--aqmx-surface-raised);box-shadow:var(--aqmx-shadow);flex-direction:column;flex:0 auto;display:flex;overflow-y:auto}.aqmx-explorer-tray-header{justify-content:space-between;align-items:center;gap:var(--aqmx-space-5);flex:none;display:flex}.aqmx-explorer-tray-title{margin:0;font-weight:600}.aqmx-explorer-tray-button{min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-5);border-radius:var(--aqmx-radius-m);color:var(--aqmx-accent);font:inherit;cursor:pointer;background:0 0;border:0;flex:none;font-weight:600}.aqmx-explorer-tray-button:hover{background:var(--aqmx-surface-sunken)}.aqmx-explorer-tray-list{gap:var(--aqmx-space-1);min-block-size:var(--aqmx-control);max-block-size:calc(var(--aqmx-control) * 3);flex:0 auto;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.aqmx-explorer-tray-item{align-items:center;gap:var(--aqmx-space-4);display:flex}.aqmx-explorer-tray-name{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-inline-size:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.aqmx-explorer-tray-open{min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-6);border-radius:var(--aqmx-radius-m);color:var(--aqmx-surface);background:var(--aqmx-accent);font:inherit;cursor:pointer;border:0;flex:none;font-weight:600}@media (forced-colors:active){.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true],.aqmx-explorer-tree [role=treeitem][data-entry-selected=true],.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true],.aqmx-explorer-menu-item[aria-checked=true]{forced-color-adjust:none;color:highlighttext;background:highlight}.aqmx-explorer-menu-item[aria-checked=true] *,.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true] *,.aqmx-explorer-tree [role=treeitem][data-entry-selected=true] *,.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true] *{color:inherit!important}.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true]:focus-visible,.aqmx-explorer-tree [role=treeitem][data-entry-selected=true]:focus-visible,.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true]:focus-visible{outline-color:highlighttext}.aqmx-explorer-tray-button,.aqmx-explorer-tray-open,.aqmx-explorer-tray-remove{border:var(--aqmx-space-1) solid ButtonText}}@media (prefers-reduced-motion:reduce){.aqmx-explorer-actions>.aqmx-labelled-button[data-aqmx-busy=true]>svg,.aqmx-explorer-tree-progress-icon,.aqmx-explorer-tree [role=treeitem][data-aqmx-children=loading]{animation:none}.aqmx-explorer-tree-view{transition-duration:0s!important}}.aqmx-document{contain:layout paint;--aqmd-toolbar-inset-block-start:calc(var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset));block-size:100%;min-block-size:0;inline-size:100%;min-inline-size:0;color:var(--aqmx-text);background:var(--aqmx-surface);flex-direction:column;display:flex;position:relative;overflow:hidden}.aqmx-document-viewer:has([data-aqmd-scroll-bar]){--aqmd-toolbar-inset-inline-end:calc(var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset))}.aqmx-document [data-theme]{background-color:#0000!important}.aqmx-document .markdown-body :is(sup,sub) a{outline-offset:var(--aqmx-focus-ring-offset)!important}.aqmx-document *{scroll-margin:calc(var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset))}.aqmx-document :is([data-aqmd-scroll-container],[data-aqmx-document-scroller]):focus-visible{outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-document[aria-busy=true]>:not(.aqmx-progress){opacity:.618;transition:opacity var(--aqmx-duration-3) var(--aqmx-ease)}.aqmx-document-viewer{flex:1 1 0;min-block-size:0;min-inline-size:0}.aqmx-document-notice{margin:var(--aqmx-space-6) var(--aqmx-space-7) 0;overflow-wrap:anywhere;flex:none}.aqmx-document-scroll-row{flex:1 1 0;min-block-size:0}.aqmx-document-failure{min-block-size:0;padding:var(--aqmx-space-7);flex:1 1 0;overflow:auto}.aqmx-document-file{flex-direction:column;flex:1 1 0;min-block-size:0;min-inline-size:0;display:flex}.aqmx-document-spreadsheet-body{flex:1 1 0;min-block-size:0;overflow:auto}.aqmx-document-spreadsheet-column{flex-direction:column;min-block-size:100%;display:flex}.aqmx-document-spreadsheet{min-inline-size:0;padding:var(--aqmx-space-6) var(--aqmx-space-7) var(--aqmx-space-7);flex:auto;grid-template:minmax(min-content,1fr)/minmax(0,1fr);display:grid}.aqmx-document-spreadsheet-stage{padding:var(--aqmx-space-7);background:var(--aqmx-surface-sunken);flex:auto;place-items:center;display:grid}.aqmx-document-notice+.aqmx-document-spreadsheet-stage{margin-block-start:var(--aqmx-space-6)}.aqmx-document-spreadsheet-failure{padding:var(--aqmx-space-7);flex:auto}.aqmx-document-spreadsheet>[data-aqmd-spreadsheet]{margin-block:0}.aqmx-document-toolbar{align-items:center;gap:var(--aqmx-space-3);padding:var(--aqmx-space-3) var(--aqmx-space-6);border-block-end:var(--aqmx-space-1) solid var(--aqmx-border);background:var(--aqmx-surface-raised);flex-wrap:wrap;flex:none;display:flex}.aqmx-document-file-icon{color:var(--aqmx-text-muted);flex:none;display:inline-flex}.aqmx-document-file-icon>svg{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon)}.aqmx-document-title{text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-inline-size:0;font-weight:600;overflow:hidden}.aqmx-document-level{min-inline-size:var(--aqmx-space-9);color:var(--aqmx-text-muted);font-variant-numeric:tabular-nums;text-align:center;flex:none}.aqmx-document-canvas{touch-action:pan-x pan-y;min-block-size:0;padding:var(--aqmx-space-7);background-color:var(--aqmx-surface-sunken);background-image:radial-gradient(var(--aqmx-border) var(--aqmx-space-1), transparent var(--aqmx-space-1));background-size:var(--aqmx-space-6) var(--aqmx-space-6);flex:1 1 0;grid-template:minmax(0,1fr)/minmax(0,1fr);display:grid;overflow:auto}.aqmx-document-image{margin:auto;display:block}.aqmx-document-image[data-aqmx-image-mode=fit]{object-fit:contain;max-block-size:100%;max-inline-size:100%}.aqmx-document-image[data-aqmx-image-mode=level]{max-block-size:none;max-inline-size:none}.aqmx-document-stage{min-block-size:0;padding:var(--aqmx-space-7);background:var(--aqmx-surface-sunken);flex:1 1 0;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;display:grid;overflow:auto}.aqmx-document-file[data-aqmx-media-type=pdf] .aqmx-document-stage{place-items:stretch stretch;padding:0}.aqmx-document-video{border-radius:var(--aqmx-radius-l);background:var(--aqmx-surface-raised);max-block-size:100%;max-inline-size:100%;box-shadow:var(--aqmx-shadow)}.aqmx-document-audio{inline-size:min(100%, var(--aqmx-column-measure))}.aqmx-document-frame{background:var(--aqmx-surface);border:0;block-size:100%;inline-size:100%}.aqmx-document-inert-link{color:var(--aqmx-text-muted);cursor:not-allowed;text-decoration-style:dotted}.aqmx-document[data-aqmx-document-flow=content]{contain:layout;block-size:auto;overflow:visible}.aqmx-document[data-aqmx-document-flow=content]>*,.aqmx-document[data-aqmx-document-flow=content] .aqmx-document-file>*{flex:none}.aqmx-document[data-aqmx-document-flow=content] .aqmx-document-frame{aspect-ratio:1/1.41421;block-size:auto}.aqmx-document-refresh-bar{flex-direction:column;flex:none;display:flex;container:aqmx-document-bar/inline-size}.aqmx-document-refresh-row{justify-content:flex-end;align-items:center;gap:var(--aqmx-space-2);padding:calc(var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset));display:flex}.aqmx-document-column>.aqmx-document-refresh-bar>.aqmx-document-refresh-row{padding-inline-end:calc(var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset) + var(--aqmx-page-bar-inset-inline-end,0px))}.aqmx-document-refresh-failure{margin:0 var(--aqmx-space-3) var(--aqmx-space-2);padding:var(--aqmx-space-4) var(--aqmx-space-5);border:var(--aqmx-space-1) solid var(--aqmx-danger-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface);line-height:var(--aqmx-line-height-compact);overflow-wrap:anywhere}.aqmx-document-refresh-row>.aqmx-icon-button[data-aqmx-busy=true]>svg{animation:aqmx-explorer-spin calc(var(--aqmx-duration-4) * 3) linear infinite}.aqmx-document-refresh-row>.aqmx-icon-button[aria-busy=true]{cursor:progress}@media (prefers-reduced-motion:reduce){.aqmx-document-refresh-row>.aqmx-icon-button[data-aqmx-busy=true]>svg{animation:none}}.aqmx-edit{background:var(--aqmx-surface);flex:1 1 0;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(0,1fr);min-block-size:0;min-inline-size:0;display:grid;position:relative}.aqmx-edit[data-aqmx-edit-layout=content]{display:block}.aqmx-edit-editor,.aqmx-edit-preview{background:var(--aqmx-surface);min-block-size:0;min-inline-size:0}.aqmx-edit-editor{-webkit-user-select:text;user-select:text}.aqmx-edit-editor:has(.cm-content:focus-visible){outline:var(--aqmx-focus-ring-width) solid var(--aqmx-focus);outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-edit-preview{flex-direction:column;display:flex;overflow:hidden}.aqmx-edit-preview [data-aqmd-scroll-container]{overflow-anchor:none}.aqmx-edit[data-aqmx-edit-split=beside]{grid-template-columns:minmax(0, calc(var(--aqmx-edit-share) - var(--aqmx-edit-gutter) / 2)) var(--aqmx-edit-gutter) minmax(0, 1fr)}.aqmx-edit[data-aqmx-edit-split=stacked]{grid-template-rows:minmax(0, calc(var(--aqmx-edit-share) - var(--aqmx-edit-gutter) / 2)) var(--aqmx-edit-gutter) minmax(0, 1fr)}.aqmx-edit[data-aqmx-edit-split]>.aqmx-edit-editor{grid-area:1/1}.aqmx-edit[data-aqmx-edit-split=beside]>.aqmx-edit-preview{grid-area:1/3}.aqmx-edit[data-aqmx-edit-split=stacked]>.aqmx-edit-preview{grid-area:3/1}.aqmx-edit[data-aqmx-edit-split]:before{content:"";background:var(--aqmx-border)}.aqmx-edit[data-aqmx-edit-split=beside]:before{inline-size:var(--aqmx-space-1);grid-area:1/2;justify-self:center}.aqmx-edit[data-aqmx-edit-split=stacked]:before{block-size:var(--aqmx-space-1);grid-area:2/1;align-self:center}.aqmx-edit-split{pointer-events:none;position:absolute;inset:0}.aqmx-edit-split-handle{pointer-events:auto}.aqmx-edit-split-probe{inline-size:var(--aqmx-column-measure);visibility:hidden;block-size:0;position:absolute;inset-block-start:0;inset-inline-start:0;overflow:hidden}.aqmx-edit:is([data-aqmx-edit-view=editor],[data-aqmx-edit-view=preview])>:is(.aqmx-edit-editor,.aqmx-edit-preview){grid-area:1/1}.aqmx-edit[data-aqmx-edit-view=editor]>.aqmx-edit-preview,.aqmx-edit[data-aqmx-edit-view=preview]>.aqmx-edit-editor{visibility:hidden}.aqmx-edit[data-aqmx-edit-layout=content]>.aqmx-edit-preview{display:block;overflow:visible}.aqmx-edit[data-aqmx-edit-layout=content]>[hidden]{display:none}.aqmx-edit-view{gap:var(--aqmx-space-2);flex:0 auto;min-inline-size:0;display:flex}@container aqmx-document-bar not (min-inline-size:calc(80ch + 24px)){.aqmx-edit-view>.aqmx-labelled-button>span{display:none}}@media (pointer:coarse){@container aqmx-document-bar not (min-inline-size:calc(80ch + 44px)){.aqmx-edit-view>.aqmx-labelled-button>span{display:none}}}.aqmx-edit-editor [data-aqmx-conflict-line=ours]{background-color:var(--aqmx-conflict-ours-tint)}.aqmx-edit-editor [data-aqmx-conflict-line=theirs]{background-color:var(--aqmx-conflict-theirs-tint)}.aqmx-edit-editor [data-aqmx-conflict-line=marker]{background-color:var(--aqmx-conflict-marker-tint)}.aqmx-edit-editor [data-aqmx-conflict-actions]{gap:var(--aqmx-space-3);padding:var(--aqmx-space-3) var(--aqmx-space-6);background-color:var(--aqmx-conflict-marker-tint);font-family:system-ui,sans-serif;font-size:var(--aqmx-font-size-body);line-height:var(--aqmx-line-height-compact);flex-wrap:wrap;display:flex}.aqmx-edit-editor [data-aqmx-conflict-choice]{min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-border-strong);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text);background:var(--aqmx-surface);font:inherit;cursor:pointer;font-weight:600}.aqmx-edit-editor [data-aqmx-conflict-choice]:hover{background:var(--aqmx-surface-sunken)}.aqmx-multi-panel-frame .aqmx-document[data-aqmx-document-flow=content] .cm-panels-top{inset-block-start:var(--aqmx-multi-panel-pinned-block-size)!important}.aqmx-edit-message{min-block-size:0;padding:var(--aqmx-space-7);flex:1 1 0;overflow:auto}.aqmx-edit-grant-actions{gap:var(--aqmx-space-5);flex-wrap:wrap;display:flex}.aqmx-edit-status{min-inline-size:0;padding-inline:var(--aqmx-space-3);color:var(--aqmx-text-muted);text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;margin:0;overflow:hidden}.aqmx-edit-status[data-aqmx-save=conflicts]{color:var(--aqmx-warning-text)}.aqmx-edit-status[data-aqmx-save=failed]{color:var(--aqmx-danger-text)}.aqmx-document-refresh-bar>.aqmx-edit-grant{margin:0 var(--aqmx-space-3) var(--aqmx-space-2)}.aqmx-confirm{inset:var(--aqmx-dialog-top) auto auto var(--aqmx-dialog-left);margin:var(--aqmx-space-7);inline-size:min(34rem, calc(100vw - 2 * var(--aqmx-space-7)));border:var(--aqmx-space-1) solid var(--aqmx-border-strong);border-radius:var(--aqmx-radius-l);max-inline-size:none;color:var(--aqmx-text);background:var(--aqmx-surface);box-shadow:var(--aqmx-shadow);padding:0;position:fixed}.aqmx-confirm::backdrop{background:#0f172a61}.aqmx-confirm-panel{gap:var(--aqmx-space-6);padding:var(--aqmx-space-7);display:grid}.aqmx-confirm-title{font-size:var(--aqmx-font-size-title);font-weight:600;line-height:var(--aqmx-line-height-compact);margin:0}.aqmx-confirm-body{line-height:var(--aqmx-line-height-prose);overflow-wrap:anywhere;margin:0}.aqmx-confirm-actions{justify-content:flex-end;gap:var(--aqmx-space-5);flex-wrap:wrap;display:flex}.aqmx-confirm-actions>.aqmx-callout-action{justify-self:auto}.aqmx-confirm-actions>[data-aqmx-tone=danger]{border-color:var(--aqmx-danger-border);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface)}.aqmx-confirm-actions>[aria-disabled=true]{opacity:.618;cursor:not-allowed}.aqmx-history{inline-size:min(55rem, calc(100vw - 2 * var(--aqmx-space-7)))}.aqmx-history-panel{max-block-size:calc(100vh - 2 * var(--aqmx-space-7));overflow:auto}.aqmx-history-note{color:var(--aqmx-text-muted);margin:0}.aqmx-history-list{gap:var(--aqmx-space-2);max-block-size:34vh;margin:0;padding:0;list-style:none;display:grid;overflow:auto}.aqmx-history-entry{align-items:center;gap:var(--aqmx-space-5);inline-size:100%;min-block-size:var(--aqmx-control);padding:var(--aqmx-space-3) var(--aqmx-space-5);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text);font:inherit;text-align:start;cursor:pointer;background:0 0;border:0;flex-wrap:wrap;display:flex}.aqmx-history-entry:hover{background:var(--aqmx-surface-sunken)}.aqmx-history-entry[aria-pressed=true]{color:var(--aqmx-accent);background:var(--aqmx-accent-surface)}.aqmx-history-mark{padding-inline:var(--aqmx-space-4);border:var(--aqmx-space-1) solid currentColor;border-radius:var(--aqmx-radius-s)}.aqmx-history-text{max-block-size:34vh;padding:var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);background:var(--aqmx-surface-raised);overflow:auto}.aqmx-history-text>pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.aqmx-multi-stage{--aqmx-multi-panel-body-floor:calc(3rem * var(--aqmx-line-height-prose));--aqdd-stage-padding-block:var(--aqmx-space-7);--aqdd-stage-padding-inline:var(--aqmx-space-6) calc(var(--aqmx-space-6) + var(--aqmx-multi-stage-bar-gutter));--aqdd-column-gap:var(--aqmx-space-6);--aqdd-panel-surface:var(--aqmx-surface);--aqdd-panel-border:var(--aqmx-border);--aqdd-panel-title-color:var(--aqmx-text);--aqdd-header-button-color:var(--aqmx-text-muted);--aqdd-header-button-hover-color:var(--aqmx-text);--aqdd-header-button-hover-surface:var(--aqmx-surface-sunken);--aqdd-custom-badge-color:var(--aqmx-warning-text);--aqdd-custom-badge-surface:var(--aqmx-warning-surface);--aqdd-restore-button-color:var(--aqmx-surface);--aqdd-restore-button-surface:var(--aqmx-accent);--aqdd-restore-button-hover-surface:var(--aqmx-info-text);--aqdd-drop-placeholder-color:var(--aqmx-accent);--aqdd-drop-placeholder-surface:var(--aqmx-surface);--aqdd-drop-placeholder-target-surface:var(--aqmx-accent-surface);background:var(--aqmx-surface-sunken);block-size:100%;min-block-size:0;min-inline-size:0;color:var(--aqmx-text);flex-direction:column;display:flex;position:relative}.aqmx-multi-stage:focus-visible{outline:var(--aqmx-focus-ring-width) solid var(--aqmx-focus);outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-multi-probe{inline-size:var(--aqmx-column-measure);visibility:hidden;pointer-events:none;block-size:0;font-size:1rem;position:absolute;inset-block-start:0;inset-inline-start:0;overflow:hidden}.aqmx-multi-layout{flex:auto;min-block-size:0}.aqmx-multi-skeleton{grid-template-columns:repeat(auto-fit, minmax(min(100%, var(--aqmx-column-measure)), 1fr));align-content:start;gap:var(--aqmx-space-7);padding:var(--aqmx-space-7);display:grid;overflow:hidden}.aqmx-multi-skeleton-column{border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-l);background:var(--aqmx-surface)}.aqmx-multi-column{min-inline-size:0}.aqmx-multi-panel{outline:var(--aqmx-space-1) solid var(--aqmx-border-strong);outline-offset:0;color:var(--aqmx-text)}.aqmx-multi-panel[data-maximized]{outline-color:var(--aqmx-focus)}.aqmx-multi-panel-frame{content-visibility:auto;contain-intrinsic-block-size:auto var(--aqmx-space-9);min-block-size:100%}.aqmx-multi-panel-frame:focus-visible{outline:var(--aqmx-focus-ring-width) solid var(--aqmx-focus);outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-multi-panel-frame[data-aqmx-maximized=false]{-webkit-user-select:none;user-select:none}.aqmx-multi-panel-frame>.aqmx-document-refresh-bar{z-index:1;background:var(--aqmx-surface);position:sticky;inset-block-start:0}.aqmx-multi-panel-frame{--aqmx-multi-panel-pinned-block-size:0px}.aqmx-multi-panel-frame .aqmx-document[data-aqmx-document-flow=content] *{scroll-margin-block-start:calc(var(--aqmx-multi-panel-pinned-block-size) + var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset))}.aqmx-multi-panel-frame:has(>.aqmx-document[data-aqmx-document-flow=fill]){flex-direction:column;block-size:100%;display:flex}.aqmx-multi-panel-frame>.aqmx-document[data-aqmx-document-flow=fill]{flex:1 1 0;block-size:auto}.aqmx-multi-panel-frame .aqmx-document-toolbar>.aqmx-icon-button{flex-shrink:1;min-inline-size:0}.aqmx-multi-toast{animation:aqmx-multi-toast-in var(--aqmx-duration-3) var(--aqmx-ease)}.aqmx-multi-toast:popover-open{max-inline-size:min(34rem, calc(var(--aqmx-multi-toast-room) - var(--aqmx-space-8)));margin:0;position:fixed;inset:auto;inset-block-start:calc(var(--aqmx-multi-toast-block-start) + var(--aqmx-space-6));inset-inline-end:calc(var(--aqmx-multi-toast-inline-end) + var(--aqmx-space-7));overflow:visible}@keyframes aqmx-multi-toast-in{0%{opacity:0;translate:0 calc(var(--aqmx-space-5) * -1)}}@media (prefers-reduced-motion:reduce){.aqmx-multi-toast{animation:none}}@media (forced-colors:active){.aqmx-multi-stage:focus-visible,.aqmx-multi-stage :focus-visible,.aqmx-multi-panel[data-maximized]{outline-color:highlight}}.aqmx-split-frame{flex-direction:column;flex:auto;min-block-size:0;min-inline-size:0;display:flex;position:relative}.aqmx-rem-probe{visibility:hidden;pointer-events:none;block-size:0;inline-size:1rem;position:absolute;inset-block-start:0;inset-inline-start:0}.aqmx-split{flex:auto;min-block-size:0}.aqmx-split-explorer,.aqmx-split-content{background:var(--aqmx-surface);min-block-size:0}.aqmx-split-explorer{background:var(--aqmx-surface-raised)}.aqmx-split-explorer .aqmx-explorer{margin-inline-end:calc(var(--aqmx-split-band) / 2)}.aqmx-split-content{padding-inline-start:calc(var(--aqmx-split-band) / 2)}.aqmx-split-handle{background:var(--aqmx-surface-raised);transition:background-color var(--aqmx-duration-2) var(--aqmx-ease)}.aqmx-split-handle:hover,.aqmx-split-handle:focus-visible{background:var(--aqmx-surface-sunken)}.aqmx-sheet-bar{padding:var(--aqmx-space-3) var(--aqmx-space-5);border-block-end:var(--aqmx-space-1) solid var(--aqmx-border);background:var(--aqmx-surface-raised);flex:none;align-items:center;display:flex}.aqmx-sheet-toggle,.aqmx-sheet-close{justify-content:center;align-items:center;gap:var(--aqmx-space-5);min-inline-size:var(--aqmx-control);min-block-size:var(--aqmx-control);padding:0 var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text);background:var(--aqmx-surface);font:inherit;cursor:pointer;transition:background-color var(--aqmx-duration-2) var(--aqmx-ease);display:inline-flex}.aqmx-sheet-close{z-index:1;color:var(--aqmx-text-muted);background:var(--aqmx-surface);pointer-events:auto;border-color:#0000;padding:0;position:relative}.aqmx-sheet-toggle:hover,.aqmx-sheet-close:hover{background:var(--aqmx-surface-sunken)}.aqmx-sheet-toggle>svg,.aqmx-sheet-close>svg{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon);flex:none}.aqmx-sheet{inline-size:min(calc(100vw - var(--aqmx-space-9)), 21rem);border:0;border-inline-end:var(--aqmx-space-1) solid var(--aqmx-border);block-size:100dvh;max-block-size:none;max-inline-size:none;color:var(--aqmx-text);background:var(--aqmx-surface-raised);box-shadow:var(--aqmx-shadow);margin:0;padding:0;position:fixed;inset-block:0;inset-inline:0 auto}.aqmx-sheet::backdrop{background:#0f172a61}.aqmx-sheet-panel{flex-direction:column;block-size:100%;display:flex;position:relative}.aqmx-sheet-header{z-index:1;padding:var(--aqmx-space-4);pointer-events:none;justify-content:flex-end;align-items:flex-start;display:flex;position:absolute;inset-block-start:0;inset-inline:0}.aqmx-sheet .aqmx-explorer-header>:first-child{min-block-size:var(--aqmx-control);margin-inline-end:calc(var(--aqmx-control) + var(--aqmx-space-4))}.aqmx-sheet .aqmx-explorer-source{flex-basis:100%;min-inline-size:0}.aqmx-sheet-notice-slot>.aqmx-toast{--aqmx-sheet-notice-band:calc(var(--aqmx-control) + var(--aqmx-space-4) * 2);--aqmx-sheet-notice-line:calc(var(--aqmx-line-height-compact) * 1em);--aqmx-sheet-notice-inset:calc((var(--aqmx-sheet-notice-band) - var(--aqmx-sheet-notice-line)) / 2);z-index:0;max-inline-size:none;padding-block:var(--aqmx-sheet-notice-inset) 0;padding-inline:var(--aqmx-space-6) var(--aqmx-space-4);border:0;border-block-end:var(--aqmx-space-1) solid var(--aqmx-warning-border);line-height:var(--aqmx-line-height-compact);overflow-wrap:anywhere;box-shadow:none;pointer-events:auto;border-radius:0;position:absolute;inset-block:0 auto;inset-inline:0}.aqmx-sheet-notice-slot>.aqmx-toast:before{content:"";float:inline-end;inline-size:calc(var(--aqmx-control) + var(--aqmx-space-4));block-size:calc(var(--aqmx-sheet-notice-band) - var(--aqmx-sheet-notice-inset) - var(--aqmx-space-1))}.aqmx-sheet-notice-slot>.aqmx-toast:after{content:"";block-size:calc(var(--aqmx-sheet-notice-inset) - var(--aqmx-space-1));display:block}.aqmx-sheet-body{isolation:isolate;flex-direction:column;flex:auto;min-block-size:0;display:flex;position:relative;overflow:hidden}.aqmx-document-column{flex-direction:column;min-block-size:0;display:flex}.aqmx-document-column>.aqmx-document{flex:1 1 0;block-size:auto;min-block-size:0}.aqmx-single{flex:auto;position:relative}.aqmx-tree-document{block-size:100%;inline-size:100%}.aqmx-split-fallback,.aqmx-stage-fallback{background:var(--aqmx-surface-sunken);flex:auto;min-block-size:0}@media (forced-colors:active){.aqmx-sheet-toggle[aria-expanded=true]{forced-color-adjust:none;color:highlighttext;background:highlight}.aqmx-sheet-toggle:focus-visible,.aqmx-sheet-close:focus-visible{outline-color:highlight}.aqmx-split-handle:focus-visible{outline:var(--aqmx-focus-ring-width) solid Highlight!important;outline-offset:calc(-1 * var(--aqmx-focus-ring-width))!important}}@media (prefers-reduced-motion:reduce){.aqmx-split-handle,.aqmx-split-handle *{transition-duration:0s!important}}}@layer utilities;
|
|
3
|
+
@layer theme,base;@layer components{.aqmx-root{--aqmx-space-1:.0625rem;--aqmx-space-2:.125rem;--aqmx-space-3:.1875rem;--aqmx-space-4:.3125rem;--aqmx-space-5:.5rem;--aqmx-space-6:.8125rem;--aqmx-space-7:1.3125rem;--aqmx-space-8:2.125rem;--aqmx-space-9:3.4375rem;--aqmx-control:2.75rem;--aqmx-focus-ring-width:var(--aqmx-space-2);--aqmx-focus-ring-offset:var(--aqmx-space-2);--aqmx-icon:1rem;--aqmx-radius-s:.3125rem;--aqmx-radius-m:.5rem;--aqmx-radius-l:.8125rem;--aqmx-duration-1:89ms;--aqmx-duration-2:.144s;--aqmx-duration-3:.233s;--aqmx-duration-4:.377s;--aqmx-delay-progress:.233s;--aqmx-ease:cubic-bezier(.2, 0, 0, 1);--aqmx-font-size-body:.8125rem;--aqmx-font-size-title:1rem;--aqmx-font-size-display:1.3125rem;--aqmx-line-height-compact:1.382;--aqmx-line-height-prose:1.618;--aqmx-column-measure:40ch;--aqmx-surface:#fff;--aqmx-surface-raised:#f8fafc;--aqmx-surface-sunken:#f1f5f9;--aqmx-border:#cbd5e1;--aqmx-border-strong:#94a3b8;--aqmx-text:#0f172a;--aqmx-text-muted:#3d4a5c;--aqmx-accent:#1d3fa6;--aqmx-accent-surface:#dbeafe;--aqmx-tree-line:#64748b;--aqmx-tree-row-tint:#0f172a0f;--aqmx-tree-row-accent-tint:#2563eb29;--aqmx-focus:#2563eb;--aqmx-info-surface:#eff6ff;--aqmx-info-border:#93c5fd;--aqmx-info-text:#1e3a8a;--aqmx-warning-surface:#fffbeb;--aqmx-warning-border:#fcd34d;--aqmx-warning-text:#78350f;--aqmx-danger-surface:#fef2f2;--aqmx-danger-border:#fca5a5;--aqmx-danger-text:#7f1d1d;--aqmx-syntax-heading:#172554;--aqmx-syntax-link:#1e3a8a;--aqmx-syntax-url:#5b21b6;--aqmx-syntax-code:#7c2d12;--aqmx-syntax-quote:#334155;--aqmx-syntax-mark:#3d4a5c;--aqmx-editor-gutter:#334155;--aqmx-editor-selection:#2563eb36;--aqmx-editor-active-line:#0f172a0d;--aqmx-conflict-ours-tint:#16a34a21;--aqmx-conflict-theirs-tint:#2563eb21;--aqmx-conflict-marker-tint:#d9770636;--aqmx-shadow:0 .0625rem .1875rem #0f172a21, 0 .3125rem .8125rem #0f172a14}.aqmx-root[data-aqmx-theme=dark]{--aqmx-surface:#0f172a;--aqmx-surface-raised:#1e293b;--aqmx-surface-sunken:#020617;--aqmx-border:#334155;--aqmx-border-strong:#64748b;--aqmx-text:#e2e8f0;--aqmx-text-muted:#aab6c8;--aqmx-accent:#bfdbfe;--aqmx-accent-surface:#1e3a8a;--aqmx-tree-line:#94a3b8;--aqmx-tree-row-tint:#e2e8f00f;--aqmx-tree-row-accent-tint:#2563eb70;--aqmx-focus:#60a5fa;--aqmx-info-surface:#172554;--aqmx-info-border:#1d4ed8;--aqmx-info-text:#bfdbfe;--aqmx-warning-surface:#422006;--aqmx-warning-border:#a16207;--aqmx-warning-text:#fde68a;--aqmx-danger-surface:#450a0a;--aqmx-danger-border:#b91c1c;--aqmx-danger-text:#fecaca;--aqmx-syntax-heading:#bfdbfe;--aqmx-syntax-link:#c7d2fe;--aqmx-syntax-url:#ddd6fe;--aqmx-syntax-code:#fdba74;--aqmx-syntax-quote:#cbd5e1;--aqmx-syntax-mark:#cbd5e1;--aqmx-editor-gutter:#cbd5e1;--aqmx-editor-selection:#3b82f657;--aqmx-editor-active-line:#e2e8f00d;--aqmx-conflict-ours-tint:#22c55e36;--aqmx-conflict-theirs-tint:#3b82f636;--aqmx-conflict-marker-tint:#f59e0b36;--aqmx-shadow:0 .0625rem .1875rem #0000008c, 0 .3125rem .8125rem #00000057}@media (pointer:coarse){.aqmx-root{--aqmx-font-size-body:1rem}}@media (forced-colors:active){.aqmx-root.aqmx-root[data-aqmx-theme]{--aqmx-tree-line:CanvasText}}@media (prefers-reduced-motion:reduce){.aqmx-root{--aqmx-duration-1:0s;--aqmx-duration-2:0s;--aqmx-duration-3:0s;--aqmx-duration-4:0s}}.aqmx-root{block-size:100%;min-block-size:0;inline-size:100%;min-inline-size:0;color:var(--aqmx-text);background:var(--aqmx-surface);font-size:var(--aqmx-font-size-body);line-height:var(--aqmx-line-height-compact);flex-direction:column;display:flex;position:relative}.aqmx-root *,.aqmx-root :before,.aqmx-root :after{box-sizing:border-box}.aqmx-icon-button{inline-size:var(--aqmx-control);block-size:var(--aqmx-control);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text-muted);cursor:pointer;transition:background-color var(--aqmx-duration-2) var(--aqmx-ease), color var(--aqmx-duration-2) var(--aqmx-ease);background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.aqmx-icon-button:hover{color:var(--aqmx-text);background:var(--aqmx-surface-sunken)}.aqmx-icon-button[aria-pressed=true],.aqmx-icon-button:has(>input:checked),.aqmx-icon-button[aria-expanded=true]{color:var(--aqmx-accent);background:var(--aqmx-accent-surface)}.aqmx-icon-button:disabled{opacity:.382;cursor:not-allowed}.aqmx-icon-button[aria-disabled=true]{cursor:not-allowed}.aqmx-icon-button[aria-disabled=true]:hover{color:var(--aqmx-text-muted);background:0 0}.aqmx-icon-button>svg{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon)}.aqmx-icon-button[aria-disabled=true]>svg{opacity:.382}.aqmx-icon-button:has(>input[type=radio]){position:relative}.aqmx-icon-button>input[type=radio]{opacity:0;cursor:inherit;margin:0;position:absolute;inset:0}.aqmx-root :focus-visible,.aqmx-icon-button:has(>input:focus-visible){outline:var(--aqmx-focus-ring-width) solid var(--aqmx-focus);outline-offset:var(--aqmx-focus-ring-offset)}.aqmx-callout{gap:var(--aqmx-space-5);padding:var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-info-border);border-radius:var(--aqmx-radius-l);color:var(--aqmx-info-text);background:var(--aqmx-info-surface);line-height:var(--aqmx-line-height-prose);display:grid}.aqmx-callout[data-aqmx-tone=warning]{border-color:var(--aqmx-warning-border);color:var(--aqmx-warning-text);background:var(--aqmx-warning-surface)}.aqmx-callout[data-aqmx-tone=danger]{border-color:var(--aqmx-danger-border);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface)}.aqmx-callout-title{font-size:var(--aqmx-font-size-title);font-weight:600;line-height:var(--aqmx-line-height-compact);margin:0}.aqmx-callout-body{margin:0}.aqmx-callout-actions{gap:var(--aqmx-space-5);flex-wrap:wrap;display:flex}.aqmx-callout-action{min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-6);border:var(--aqmx-space-1) solid currentColor;border-radius:var(--aqmx-radius-m);color:inherit;font:inherit;cursor:pointer;background:0 0;justify-self:start;align-items:center;font-weight:600;text-decoration:none;display:inline-flex}.aqmx-progress{z-index:2;block-size:var(--aqmx-space-3);pointer-events:none;position:absolute;inset-block-start:0;inset-inline:0;overflow:hidden}.aqmx-progress:before{content:"";background:var(--aqmx-accent);inline-size:38.1966%;animation:aqmx-progress calc(var(--aqmx-duration-4) * 3) var(--aqmx-ease) infinite;position:absolute;inset-block:0}@keyframes aqmx-progress{0%{inset-inline-start:-38.1966%}to{inset-inline-start:100%}}.aqmx-empty{place-content:center;justify-items:center;gap:var(--aqmx-space-6);block-size:100%;padding:var(--aqmx-space-8);color:var(--aqmx-text-muted);text-align:center;line-height:var(--aqmx-line-height-prose);display:grid}.aqmx-empty-title{color:var(--aqmx-text);font-size:var(--aqmx-font-size-title);margin:0;font-weight:600}.aqmx-skeleton{gap:var(--aqmx-space-6);padding:var(--aqmx-space-7);display:grid}.aqmx-skeleton>span{block-size:var(--aqmx-space-6);border-radius:var(--aqmx-radius-s);background:var(--aqmx-surface-sunken);animation:aqmx-pulse calc(var(--aqmx-duration-4) * 4) ease-in-out infinite;display:block}.aqmx-skeleton>span:nth-child(3n+1){inline-size:61.8034%}.aqmx-skeleton>span:nth-child(3n+2){inline-size:100%}.aqmx-skeleton>span:nth-child(3n){inline-size:85.4102%}@keyframes aqmx-pulse{50%{opacity:.618}}.aqmx-sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.aqmx-toast{z-index:60;max-inline-size:min(34rem, calc(100% - var(--aqmx-space-8)));padding:var(--aqmx-space-5) var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-warning-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-warning-text);background:var(--aqmx-warning-surface);box-shadow:var(--aqmx-shadow);position:absolute;inset-block-start:var(--aqmx-space-6);inset-inline-end:var(--aqmx-space-7)}@media (prefers-reduced-motion:reduce){.aqmx-progress:before,.aqmx-skeleton>span{animation:none}}@media (forced-colors:active){.aqmx-icon-button[aria-pressed=true],.aqmx-icon-button:has(>input:checked),.aqmx-icon-button[aria-expanded=true]{forced-color-adjust:none;color:highlighttext;background:highlight}.aqmx-icon-button[aria-disabled=true]{color:graytext}.aqmx-root :focus-visible,.aqmx-icon-button:has(>input:focus-visible){outline-color:highlight}.aqmx-progress:before{forced-color-adjust:none;background:highlight}.aqmx-skeleton>span{forced-color-adjust:none;background:graytext}}.aqmx-explorer{gap:var(--aqmx-space-5);block-size:100%;min-block-size:0;min-inline-size:0;padding:var(--aqmx-space-4);color:var(--aqmx-text);background:var(--aqmx-surface);flex-direction:column;display:flex;position:relative;overflow-y:auto}.aqmx-explorer-header{align-items:center;gap:var(--aqmx-space-4);min-block-size:var(--aqmx-control);flex-wrap:wrap;flex:none;display:flex}.aqmx-explorer-source{min-inline-size:min(100%,9rem);block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-5);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text);background:var(--aqmx-surface-raised);font:inherit;text-overflow:ellipsis;cursor:pointer;flex:9rem}.aqmx-explorer-actions{justify-content:flex-end;align-items:center;gap:var(--aqmx-space-2);flex-wrap:wrap;flex:0 auto;min-inline-size:0;margin-inline-start:auto;display:flex}.aqmx-explorer-body{gap:var(--aqmx-space-5);flex-direction:column;flex:1 1 0;min-block-size:0;min-inline-size:0;display:flex;position:relative}.aqmx-labelled-button{gap:var(--aqmx-space-2);min-inline-size:var(--aqmx-control);inline-size:auto;padding-inline:var(--aqmx-space-3);white-space:nowrap;flex:0 auto;display:inline-flex}.aqmx-labelled-button>svg{flex:none}.aqmx-labelled-button>span{text-overflow:ellipsis;min-inline-size:0;overflow:hidden}.aqmx-explorer-refresh-failure,.aqmx-explorer-expand-all-stop{padding:var(--aqmx-space-4) var(--aqmx-space-5);border:var(--aqmx-space-1) solid;border-radius:var(--aqmx-radius-m);line-height:var(--aqmx-line-height-compact);overflow-wrap:anywhere;flex:none;margin:0}.aqmx-explorer-refresh-failure{border-color:var(--aqmx-danger-border);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface)}.aqmx-explorer-expand-all-stop{border-color:var(--aqmx-info-border);color:var(--aqmx-info-text);background:var(--aqmx-info-surface)}.aqmx-explorer-actions>.aqmx-labelled-button[data-aqmx-busy=true]>svg{animation:aqmx-explorer-spin calc(var(--aqmx-duration-4) * 3) linear infinite}@keyframes aqmx-explorer-spin{to{rotate:1turn}}.aqmx-explorer-actions>.aqmx-icon-button[aria-busy=true]{cursor:progress}.aqmx-explorer-menu{z-index:50;gap:var(--aqmx-space-1);max-block-size:100%;inline-size:min(21rem,100%);padding:var(--aqmx-space-3);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);background:var(--aqmx-surface-raised);box-shadow:var(--aqmx-shadow);display:grid;position:absolute;inset-block-start:0;inset-inline-end:0;overflow-y:auto}.aqmx-explorer-menu-item{align-items:center;gap:var(--aqmx-space-5);inline-size:100%;min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-5);border-radius:var(--aqmx-radius-s);color:var(--aqmx-text);font:inherit;text-align:start;cursor:pointer;transition:background-color var(--aqmx-duration-1) var(--aqmx-ease);background:0 0;border:0;display:flex}.aqmx-explorer-menu-item:hover,.aqmx-explorer-menu-item:focus-visible{background:var(--aqmx-surface-sunken)}.aqmx-explorer-menu-icon{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon);color:var(--aqmx-text-muted);flex:none}.aqmx-explorer-menu-name{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-inline-size:0;overflow:hidden}.aqmx-explorer-menu-value{color:var(--aqmx-accent);font-variant-numeric:tabular-nums;flex:none;font-weight:600}.aqmx-explorer-notices{gap:var(--aqmx-space-5);flex:none;display:grid}.aqmx-explorer-tree-area{min-block-size:calc(var(--aqmx-control) * 3);flex-direction:column;flex:1 1 0;min-inline-size:0;display:flex;position:relative}.aqmx-explorer-tree{flex:1 1 0;min-block-size:0;position:relative}.aqmx-explorer-tree-view{block-size:100%}.aqmx-explorer-tree-progress{z-index:1;align-items:center;gap:var(--aqmx-space-2) var(--aqmx-space-4);max-inline-size:calc(100% - var(--aqmx-space-5) * 3);padding:var(--aqmx-space-3) var(--aqmx-space-5);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text-muted);background:var(--aqmx-surface-raised);box-shadow:var(--aqmx-shadow);line-height:var(--aqmx-line-height-compact);overflow-wrap:anywhere;pointer-events:none;animation:aqmx-appear var(--aqmx-duration-2) ease-out var(--aqmx-delay-progress) both;flex-wrap:wrap;margin:0;display:flex;position:absolute;inset-block-end:var(--aqmx-space-9);inset-inline-start:var(--aqmx-space-5)}.aqmx-explorer-tree-progress-icon{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon);animation:aqmx-explorer-spin calc(var(--aqmx-duration-4) * 3) linear infinite;flex:none}@keyframes aqmx-appear{0%{opacity:0}}.aqmx-explorer-tree-probe{inline-size:0;block-size:var(--aqmx-control);visibility:hidden;pointer-events:none;color:var(--aqmx-tree-line);forced-color-adjust:none;position:absolute;inset-block-start:0;inset-inline-start:0;overflow:hidden}.aqmx-explorer-loading{gap:var(--aqmx-space-5);padding:var(--aqmx-space-6) var(--aqmx-space-5);color:var(--aqmx-text-muted);display:grid}.aqmx-explorer-loading-text{margin:0}.aqmx-explorer-loading>.aqmx-skeleton{padding:0}.aqmx-explorer-tree-message{padding:var(--aqmx-space-5);overflow-y:auto}.aqmx-explorer-empty-icon{inline-size:var(--aqmx-space-8);block-size:var(--aqmx-space-8);color:var(--aqmx-border-strong)}.aqmx-explorer-empty-body{margin:0}.aqmx-explorer-tree [role=treeitem]{border-radius:var(--aqmx-radius-s);color:var(--aqmx-text);transition:background-color var(--aqmx-duration-1) var(--aqmx-ease)}.aqmx-explorer-tree [role=treeitem]:hover{color:var(--aqmx-text);background:var(--aqmx-tree-row-tint)}.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true]{color:var(--aqmx-text);background:var(--aqmx-tree-row-tint);box-shadow:inset var(--aqmx-space-2) 0 0 currentColor}.aqmx-explorer-tree [role=treeitem][data-entry-selected=true],.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true]{color:var(--aqmx-accent);background:var(--aqmx-tree-row-accent-tint)}.aqmx-explorer-tree [role=treeitem]:focus-visible{outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true]:focus-visible{box-shadow:inset calc(var(--aqmx-space-2) + var(--aqmx-focus-ring-width)) 0 0 currentColor}.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true]{font-weight:600}.aqmx-explorer-tree [role=treeitem][data-aqmx-children=loading]{animation:aqmx-pulse calc(var(--aqmx-duration-4) * 4) ease-in-out infinite}.aqmx-explorer-tree [role=treeitem][data-aqmx-loop]{color:var(--aqmx-text-muted);font-style:italic}.aqmx-explorer-folder-failed{--aqmx-folder-name-floor:3em;align-items:center;min-inline-size:0;max-inline-size:100%;display:flex}.aqmx-explorer-folder-name{flex:10000 1 var(--aqmx-folder-name-floor);text-overflow:ellipsis;white-space:nowrap;min-inline-size:0;max-inline-size:max-content;overflow:hidden}.aqmx-explorer-folder-error{min-inline-size:0;color:var(--aqmx-danger-text);text-indent:var(--aqmx-space-4);text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;overflow:hidden}.aqmx-explorer-folder-retry{flex:1000000 0 calc(var(--aqmx-icon) + (var(--aqmx-space-3) + var(--aqmx-space-1)) * 2);min-inline-size:calc(var(--aqmx-icon) + (var(--aqmx-space-3) + var(--aqmx-space-1)) * 2);max-inline-size:max-content;min-block-size:var(--aqmx-control);padding:0 var(--aqmx-space-3);border:var(--aqmx-space-1) solid var(--aqmx-danger-border);border-radius:var(--aqmx-radius-s);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface);font:inherit;line-height:var(--aqmx-line-height-compact);cursor:pointer;justify-content:center;align-items:center;margin-inline-start:var(--aqmx-space-4);display:inline-flex;overflow:hidden}.aqmx-explorer-folder-retry:focus-visible{outline-offset:calc(-1 * (var(--aqmx-focus-ring-width) + var(--aqmx-space-1)))}.aqmx-explorer-folder-retry-icon{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon);flex:none}.aqmx-explorer-folder-retry-text{min-inline-size:0;text-indent:var(--aqmx-space-3);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.aqmx-explorer-tray{gap:var(--aqmx-space-4);min-block-size:calc(var(--aqmx-control) + (var(--aqmx-space-5) + var(--aqmx-space-1)) * 2);padding:var(--aqmx-space-5);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);background:var(--aqmx-surface-raised);box-shadow:var(--aqmx-shadow);flex-direction:column;flex:0 auto;display:flex;overflow-y:auto}.aqmx-explorer-tray-header{justify-content:space-between;align-items:center;gap:var(--aqmx-space-5);flex:none;display:flex}.aqmx-explorer-tray-title{margin:0;font-weight:600}.aqmx-explorer-tray-button{min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-5);border-radius:var(--aqmx-radius-m);color:var(--aqmx-accent);font:inherit;cursor:pointer;background:0 0;border:0;flex:none;font-weight:600}.aqmx-explorer-tray-button:hover{background:var(--aqmx-surface-sunken)}.aqmx-explorer-tray-list{gap:var(--aqmx-space-1);min-block-size:var(--aqmx-control);max-block-size:calc(var(--aqmx-control) * 3);flex:0 auto;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.aqmx-explorer-tray-item{align-items:center;gap:var(--aqmx-space-4);display:flex}.aqmx-explorer-tray-name{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-inline-size:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.aqmx-explorer-tray-open{min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-6);border-radius:var(--aqmx-radius-m);color:var(--aqmx-surface);background:var(--aqmx-accent);font:inherit;cursor:pointer;border:0;flex:none;font-weight:600}@media (forced-colors:active){.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true],.aqmx-explorer-tree [role=treeitem][data-entry-selected=true],.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true],.aqmx-explorer-menu-item[aria-checked=true]{forced-color-adjust:none;color:highlighttext;background:highlight}.aqmx-explorer-menu-item[aria-checked=true] *,.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true] *,.aqmx-explorer-tree [role=treeitem][data-entry-selected=true] *,.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true] *{color:inherit!important}.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true]:focus-visible,.aqmx-explorer-tree [role=treeitem][data-entry-selected=true]:focus-visible,.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true]:focus-visible{outline-color:highlighttext}.aqmx-explorer-tray-button,.aqmx-explorer-tray-open,.aqmx-explorer-tray-remove{border:var(--aqmx-space-1) solid ButtonText}}@media (prefers-reduced-motion:reduce){.aqmx-explorer-actions>.aqmx-labelled-button[data-aqmx-busy=true]>svg,.aqmx-explorer-tree-progress-icon,.aqmx-explorer-tree [role=treeitem][data-aqmx-children=loading]{animation:none}.aqmx-explorer-tree-view{transition-duration:0s!important}}.aqmx-document{contain:layout paint;--aqmd-toolbar-inset-block-start:calc(var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset));block-size:100%;min-block-size:0;inline-size:100%;min-inline-size:0;color:var(--aqmx-text);background:var(--aqmx-surface);flex-direction:column;display:flex;position:relative;overflow:hidden}.aqmx-document-viewer:has([data-aqmd-scroll-bar]){--aqmd-toolbar-inset-inline-end:calc(var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset))}.aqmx-document [data-theme]{background-color:#0000!important}.aqmx-document .markdown-body :is(sup,sub) a{outline-offset:var(--aqmx-focus-ring-offset)!important}.aqmx-document *{scroll-margin:calc(var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset))}.aqmx-document :is([data-aqmd-scroll-container],[data-aqmx-document-scroller]):focus-visible{outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-document[aria-busy=true]>:not(.aqmx-progress){opacity:.618;transition:opacity var(--aqmx-duration-3) var(--aqmx-ease)}.aqmx-document-viewer{flex:1 1 0;min-block-size:0;min-inline-size:0}.aqmx-document-notice{margin:var(--aqmx-space-6) var(--aqmx-space-7) 0;overflow-wrap:anywhere;flex:none}.aqmx-document-scroll-row{flex:1 1 0;min-block-size:0}.aqmx-document-failure{min-block-size:0;padding:var(--aqmx-space-7);flex:1 1 0;overflow:auto}.aqmx-document-file{flex-direction:column;flex:1 1 0;min-block-size:0;min-inline-size:0;display:flex}.aqmx-document-spreadsheet-body{flex:1 1 0;min-block-size:0;overflow:auto}.aqmx-document-spreadsheet-column{flex-direction:column;min-block-size:100%;display:flex}.aqmx-document-spreadsheet{min-inline-size:0;padding:var(--aqmx-space-6) var(--aqmx-space-7) var(--aqmx-space-7);flex:auto;grid-template:minmax(min-content,1fr)/minmax(0,1fr);display:grid}.aqmx-document-spreadsheet-stage{padding:var(--aqmx-space-7);background:var(--aqmx-surface-sunken);flex:auto;place-items:center;display:grid}.aqmx-document-notice+.aqmx-document-spreadsheet-stage{margin-block-start:var(--aqmx-space-6)}.aqmx-document-spreadsheet-failure{padding:var(--aqmx-space-7);flex:auto}.aqmx-document-spreadsheet>[data-aqmd-spreadsheet]{margin-block:0}.aqmx-sheet-tabs{gap:var(--aqmx-space-3);margin:var(--aqmx-space-6) var(--aqmx-space-7) 0;flex-wrap:wrap;flex:none;display:flex}.aqmx-sheet-tab{min-inline-size:var(--aqmx-control);min-block-size:var(--aqmx-control);max-inline-size:100%;padding-inline:var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text-muted);font:inherit;text-align:start;overflow-wrap:anywhere;cursor:pointer;background:0 0;align-items:center;display:inline-flex}.aqmx-sheet-tab:hover{color:var(--aqmx-text);background:var(--aqmx-surface-sunken)}.aqmx-sheet-tab[aria-selected=true]{color:var(--aqmx-accent);background:var(--aqmx-accent-surface);border-color:currentColor;font-weight:600}.aqmx-document-spreadsheet-sheet{flex-direction:column;flex:auto;min-inline-size:0;display:flex}@media (forced-colors:active){.aqmx-sheet-tab[aria-selected=true]{forced-color-adjust:none;color:highlighttext;background:highlight}}.aqmx-document-toolbar{align-items:center;gap:var(--aqmx-space-3);padding:var(--aqmx-space-3) var(--aqmx-space-6);border-block-end:var(--aqmx-space-1) solid var(--aqmx-border);background:var(--aqmx-surface-raised);flex-wrap:wrap;flex:none;display:flex}.aqmx-document-file-icon{color:var(--aqmx-text-muted);flex:none;display:inline-flex}.aqmx-document-file-icon>svg{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon)}.aqmx-document-title{text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-inline-size:0;font-weight:600;overflow:hidden}.aqmx-document-level{min-inline-size:var(--aqmx-space-9);color:var(--aqmx-text-muted);font-variant-numeric:tabular-nums;text-align:center;flex:none}.aqmx-document-canvas{touch-action:pan-x pan-y;min-block-size:0;padding:var(--aqmx-space-7);background-color:var(--aqmx-surface-sunken);background-image:radial-gradient(var(--aqmx-border) var(--aqmx-space-1), transparent var(--aqmx-space-1));background-size:var(--aqmx-space-6) var(--aqmx-space-6);flex:1 1 0;grid-template:minmax(0,1fr)/minmax(0,1fr);display:grid;overflow:auto}.aqmx-document-image{margin:auto;display:block}.aqmx-document-image[data-aqmx-image-mode=fit]{object-fit:contain;max-block-size:100%;max-inline-size:100%}.aqmx-document-image[data-aqmx-image-mode=level]{max-block-size:none;max-inline-size:none}.aqmx-document-stage{min-block-size:0;padding:var(--aqmx-space-7);background:var(--aqmx-surface-sunken);flex:1 1 0;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;display:grid;overflow:auto}.aqmx-document-file[data-aqmx-media-type=pdf] .aqmx-document-stage{place-items:stretch stretch;padding:0}.aqmx-document-video{border-radius:var(--aqmx-radius-l);background:var(--aqmx-surface-raised);max-block-size:100%;max-inline-size:100%;box-shadow:var(--aqmx-shadow)}.aqmx-document-audio{inline-size:min(100%, var(--aqmx-column-measure))}.aqmx-document-frame{background:var(--aqmx-surface);border:0;block-size:100%;inline-size:100%}.aqmx-document-inert-link{color:var(--aqmx-text-muted);cursor:not-allowed;text-decoration-style:dotted}.aqmx-document[data-aqmx-document-flow=content]{contain:layout;block-size:auto;overflow:visible}.aqmx-document[data-aqmx-document-flow=content]>*,.aqmx-document[data-aqmx-document-flow=content] .aqmx-document-file>*{flex:none}.aqmx-document[data-aqmx-document-flow=content] .aqmx-document-frame{aspect-ratio:1/1.41421;block-size:auto}.aqmx-document-refresh-bar{flex-direction:column;flex:none;display:flex;container:aqmx-document-bar/inline-size}.aqmx-document-refresh-row{justify-content:flex-end;align-items:center;gap:var(--aqmx-space-2);padding:calc(var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset));display:flex}.aqmx-document-column>.aqmx-document-refresh-bar>.aqmx-document-refresh-row{padding-inline-end:calc(var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset) + var(--aqmx-page-bar-inset-inline-end,0px))}.aqmx-document-refresh-failure{margin:0 var(--aqmx-space-3) var(--aqmx-space-2);padding:var(--aqmx-space-4) var(--aqmx-space-5);border:var(--aqmx-space-1) solid var(--aqmx-danger-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface);line-height:var(--aqmx-line-height-compact);overflow-wrap:anywhere}.aqmx-document-refresh-row>.aqmx-icon-button[data-aqmx-busy=true]>svg{animation:aqmx-explorer-spin calc(var(--aqmx-duration-4) * 3) linear infinite}.aqmx-document-refresh-row>.aqmx-icon-button[aria-busy=true]{cursor:progress}@media (prefers-reduced-motion:reduce){.aqmx-document-refresh-row>.aqmx-icon-button[data-aqmx-busy=true]>svg{animation:none}}.aqmx-edit{background:var(--aqmx-surface);flex:1 1 0;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(0,1fr);min-block-size:0;min-inline-size:0;display:grid;position:relative}.aqmx-edit[data-aqmx-edit-layout=content]{display:block}.aqmx-edit-editor,.aqmx-edit-preview{background:var(--aqmx-surface);min-block-size:0;min-inline-size:0}.aqmx-edit-editor{-webkit-user-select:text;user-select:text}.aqmx-edit-editor:has(.cm-content:focus-visible){outline:var(--aqmx-focus-ring-width) solid var(--aqmx-focus);outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-edit-preview{flex-direction:column;display:flex;overflow:hidden}.aqmx-edit-preview [data-aqmd-scroll-container]{overflow-anchor:none}.aqmx-edit[data-aqmx-edit-split=beside]{grid-template-columns:minmax(0, calc(var(--aqmx-edit-share) - var(--aqmx-edit-gutter) / 2)) var(--aqmx-edit-gutter) minmax(0, 1fr)}.aqmx-edit[data-aqmx-edit-split=stacked]{grid-template-rows:minmax(0, calc(var(--aqmx-edit-share) - var(--aqmx-edit-gutter) / 2)) var(--aqmx-edit-gutter) minmax(0, 1fr)}.aqmx-edit[data-aqmx-edit-split]>.aqmx-edit-editor{grid-area:1/1}.aqmx-edit[data-aqmx-edit-split=beside]>.aqmx-edit-preview{grid-area:1/3}.aqmx-edit[data-aqmx-edit-split=stacked]>.aqmx-edit-preview{grid-area:3/1}.aqmx-edit[data-aqmx-edit-split]:before{content:"";background:var(--aqmx-border)}.aqmx-edit[data-aqmx-edit-split=beside]:before{inline-size:var(--aqmx-space-1);grid-area:1/2;justify-self:center}.aqmx-edit[data-aqmx-edit-split=stacked]:before{block-size:var(--aqmx-space-1);grid-area:2/1;align-self:center}.aqmx-edit-split{pointer-events:none;position:absolute;inset:0}.aqmx-edit-split-handle{pointer-events:auto}.aqmx-edit-split-probe{inline-size:var(--aqmx-column-measure);visibility:hidden;block-size:0;position:absolute;inset-block-start:0;inset-inline-start:0;overflow:hidden}.aqmx-edit:is([data-aqmx-edit-view=editor],[data-aqmx-edit-view=preview])>:is(.aqmx-edit-editor,.aqmx-edit-preview){grid-area:1/1}.aqmx-edit[data-aqmx-edit-view=editor]>.aqmx-edit-preview,.aqmx-edit[data-aqmx-edit-view=preview]>.aqmx-edit-editor{visibility:hidden}.aqmx-edit[data-aqmx-edit-layout=content]>.aqmx-edit-preview{display:block;overflow:visible}.aqmx-edit[data-aqmx-edit-layout=content]>[hidden]{display:none}.aqmx-edit-view{gap:var(--aqmx-space-2);flex:0 auto;min-inline-size:0;display:flex}@container aqmx-document-bar not (min-inline-size:calc(80ch + 24px)){.aqmx-edit-view>.aqmx-labelled-button>span{display:none}}@media (pointer:coarse){@container aqmx-document-bar not (min-inline-size:calc(80ch + 44px)){.aqmx-edit-view>.aqmx-labelled-button>span{display:none}}}.aqmx-edit-editor [data-aqmx-conflict-line=ours]{background-color:var(--aqmx-conflict-ours-tint)}.aqmx-edit-editor [data-aqmx-conflict-line=theirs]{background-color:var(--aqmx-conflict-theirs-tint)}.aqmx-edit-editor [data-aqmx-conflict-line=marker]{background-color:var(--aqmx-conflict-marker-tint)}.aqmx-edit-editor [data-aqmx-conflict-actions]{gap:var(--aqmx-space-3);padding:var(--aqmx-space-3) var(--aqmx-space-6);background-color:var(--aqmx-conflict-marker-tint);font-family:system-ui,sans-serif;font-size:var(--aqmx-font-size-body);line-height:var(--aqmx-line-height-compact);flex-wrap:wrap;display:flex}.aqmx-edit-editor [data-aqmx-conflict-choice]{min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-border-strong);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text);background:var(--aqmx-surface);font:inherit;cursor:pointer;font-weight:600}.aqmx-edit-editor [data-aqmx-conflict-choice]:hover{background:var(--aqmx-surface-sunken)}.aqmx-multi-panel-frame .aqmx-document[data-aqmx-document-flow=content] .cm-panels-top{inset-block-start:var(--aqmx-multi-panel-pinned-block-size)!important}.aqmx-edit-message{min-block-size:0;padding:var(--aqmx-space-7);flex:1 1 0;overflow:auto}.aqmx-edit-grant-actions{gap:var(--aqmx-space-5);flex-wrap:wrap;display:flex}.aqmx-edit-status{min-inline-size:0;padding-inline:var(--aqmx-space-3);color:var(--aqmx-text-muted);text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;margin:0;overflow:hidden}.aqmx-edit-status[data-aqmx-save=conflicts]{color:var(--aqmx-warning-text)}.aqmx-edit-status[data-aqmx-save=failed]{color:var(--aqmx-danger-text)}.aqmx-document-refresh-bar>.aqmx-edit-grant{margin:0 var(--aqmx-space-3) var(--aqmx-space-2)}.aqmx-confirm{inset:var(--aqmx-dialog-top) auto auto var(--aqmx-dialog-left);margin:var(--aqmx-space-7);inline-size:min(34rem, calc(100vw - 2 * var(--aqmx-space-7)));border:var(--aqmx-space-1) solid var(--aqmx-border-strong);border-radius:var(--aqmx-radius-l);max-inline-size:none;color:var(--aqmx-text);background:var(--aqmx-surface);box-shadow:var(--aqmx-shadow);padding:0;position:fixed}.aqmx-confirm::backdrop{background:#0f172a61}.aqmx-confirm-panel{gap:var(--aqmx-space-6);padding:var(--aqmx-space-7);display:grid}.aqmx-confirm-title{font-size:var(--aqmx-font-size-title);font-weight:600;line-height:var(--aqmx-line-height-compact);margin:0}.aqmx-confirm-body{line-height:var(--aqmx-line-height-prose);overflow-wrap:anywhere;margin:0}.aqmx-confirm-actions{justify-content:flex-end;gap:var(--aqmx-space-5);flex-wrap:wrap;display:flex}.aqmx-confirm-actions>.aqmx-callout-action{justify-self:auto}.aqmx-confirm-actions>[data-aqmx-tone=danger]{border-color:var(--aqmx-danger-border);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface)}.aqmx-confirm-actions>[aria-disabled=true]{opacity:.618;cursor:not-allowed}.aqmx-history{inline-size:min(55rem, calc(100vw - 2 * var(--aqmx-space-7)))}.aqmx-history-panel{max-block-size:calc(100vh - 2 * var(--aqmx-space-7));overflow:auto}.aqmx-history-note{color:var(--aqmx-text-muted);margin:0}.aqmx-history-list{gap:var(--aqmx-space-2);max-block-size:34vh;margin:0;padding:0;list-style:none;display:grid;overflow:auto}.aqmx-history-entry{align-items:center;gap:var(--aqmx-space-5);inline-size:100%;min-block-size:var(--aqmx-control);padding:var(--aqmx-space-3) var(--aqmx-space-5);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text);font:inherit;text-align:start;cursor:pointer;background:0 0;border:0;flex-wrap:wrap;display:flex}.aqmx-history-entry:hover{background:var(--aqmx-surface-sunken)}.aqmx-history-entry[aria-pressed=true]{color:var(--aqmx-accent);background:var(--aqmx-accent-surface)}.aqmx-history-mark{padding-inline:var(--aqmx-space-4);border:var(--aqmx-space-1) solid currentColor;border-radius:var(--aqmx-radius-s)}.aqmx-history-text{max-block-size:34vh;padding:var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);background:var(--aqmx-surface-raised);overflow:auto}.aqmx-history-text>pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.aqmx-multi-stage{--aqmx-multi-panel-body-floor:calc(3rem * var(--aqmx-line-height-prose));--aqdd-stage-padding-block:var(--aqmx-space-7);--aqdd-stage-padding-inline:var(--aqmx-space-6) calc(var(--aqmx-space-6) + var(--aqmx-multi-stage-bar-gutter));--aqdd-column-gap:var(--aqmx-space-6);--aqdd-panel-surface:var(--aqmx-surface);--aqdd-panel-border:var(--aqmx-border);--aqdd-panel-title-color:var(--aqmx-text);--aqdd-header-button-color:var(--aqmx-text-muted);--aqdd-header-button-hover-color:var(--aqmx-text);--aqdd-header-button-hover-surface:var(--aqmx-surface-sunken);--aqdd-custom-badge-color:var(--aqmx-warning-text);--aqdd-custom-badge-surface:var(--aqmx-warning-surface);--aqdd-restore-button-color:var(--aqmx-surface);--aqdd-restore-button-surface:var(--aqmx-accent);--aqdd-restore-button-hover-surface:var(--aqmx-info-text);--aqdd-drop-placeholder-color:var(--aqmx-accent);--aqdd-drop-placeholder-surface:var(--aqmx-surface);--aqdd-drop-placeholder-target-surface:var(--aqmx-accent-surface);background:var(--aqmx-surface-sunken);block-size:100%;min-block-size:0;min-inline-size:0;color:var(--aqmx-text);flex-direction:column;display:flex;position:relative}.aqmx-multi-stage:focus-visible{outline:var(--aqmx-focus-ring-width) solid var(--aqmx-focus);outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-multi-probe{inline-size:var(--aqmx-column-measure);visibility:hidden;pointer-events:none;block-size:0;font-size:1rem;position:absolute;inset-block-start:0;inset-inline-start:0;overflow:hidden}.aqmx-multi-layout{flex:auto;min-block-size:0}.aqmx-multi-skeleton{grid-template-columns:repeat(auto-fit, minmax(min(100%, var(--aqmx-column-measure)), 1fr));align-content:start;gap:var(--aqmx-space-7);padding:var(--aqmx-space-7);display:grid;overflow:hidden}.aqmx-multi-skeleton-column{border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-l);background:var(--aqmx-surface)}.aqmx-multi-column{min-inline-size:0}.aqmx-multi-panel{outline:var(--aqmx-space-1) solid var(--aqmx-border-strong);outline-offset:0;color:var(--aqmx-text)}.aqmx-multi-panel[data-maximized]{outline-color:var(--aqmx-focus)}.aqmx-multi-panel-frame{content-visibility:auto;contain-intrinsic-block-size:auto var(--aqmx-space-9);min-block-size:100%}.aqmx-multi-panel-frame:focus-visible{outline:var(--aqmx-focus-ring-width) solid var(--aqmx-focus);outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-multi-panel-frame[data-aqmx-maximized=false]{-webkit-user-select:none;user-select:none}.aqmx-multi-panel-frame>.aqmx-document-refresh-bar{z-index:1;background:var(--aqmx-surface);position:sticky;inset-block-start:0}.aqmx-multi-panel-frame{--aqmx-multi-panel-pinned-block-size:0px}.aqmx-multi-panel-frame .aqmx-document[data-aqmx-document-flow=content] *{scroll-margin-block-start:calc(var(--aqmx-multi-panel-pinned-block-size) + var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset))}.aqmx-multi-panel-frame:has(>.aqmx-document[data-aqmx-document-flow=fill]){flex-direction:column;block-size:100%;display:flex}.aqmx-multi-panel-frame>.aqmx-document[data-aqmx-document-flow=fill]{flex:1 1 0;block-size:auto}.aqmx-multi-panel-frame .aqmx-document-toolbar>.aqmx-icon-button{flex-shrink:1;min-inline-size:0}.aqmx-multi-toast{animation:aqmx-multi-toast-in var(--aqmx-duration-3) var(--aqmx-ease)}.aqmx-multi-toast:popover-open{max-inline-size:min(34rem, calc(var(--aqmx-multi-toast-room) - var(--aqmx-space-8)));margin:0;position:fixed;inset:auto;inset-block-start:calc(var(--aqmx-multi-toast-block-start) + var(--aqmx-space-6));inset-inline-end:calc(var(--aqmx-multi-toast-inline-end) + var(--aqmx-space-7));overflow:visible}@keyframes aqmx-multi-toast-in{0%{opacity:0;translate:0 calc(var(--aqmx-space-5) * -1)}}@media (prefers-reduced-motion:reduce){.aqmx-multi-toast{animation:none}}@media (forced-colors:active){.aqmx-multi-stage:focus-visible,.aqmx-multi-stage :focus-visible,.aqmx-multi-panel[data-maximized]{outline-color:highlight}}.aqmx-split-frame{flex-direction:column;flex:auto;min-block-size:0;min-inline-size:0;display:flex;position:relative}.aqmx-rem-probe{visibility:hidden;pointer-events:none;block-size:0;inline-size:1rem;position:absolute;inset-block-start:0;inset-inline-start:0}.aqmx-split{flex:auto;min-block-size:0}.aqmx-split-explorer,.aqmx-split-content{background:var(--aqmx-surface);min-block-size:0}.aqmx-split-explorer{background:var(--aqmx-surface-raised)}.aqmx-split-explorer .aqmx-explorer{margin-inline-end:calc(var(--aqmx-split-band) / 2)}.aqmx-split-content{padding-inline-start:calc(var(--aqmx-split-band) / 2)}.aqmx-split-handle{background:var(--aqmx-surface-raised);transition:background-color var(--aqmx-duration-2) var(--aqmx-ease)}.aqmx-split-handle:hover,.aqmx-split-handle:focus-visible{background:var(--aqmx-surface-sunken)}.aqmx-sheet-bar{padding:var(--aqmx-space-3) var(--aqmx-space-5);border-block-end:var(--aqmx-space-1) solid var(--aqmx-border);background:var(--aqmx-surface-raised);flex:none;align-items:center;display:flex}.aqmx-sheet-toggle,.aqmx-sheet-close{justify-content:center;align-items:center;gap:var(--aqmx-space-5);min-inline-size:var(--aqmx-control);min-block-size:var(--aqmx-control);padding:0 var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text);background:var(--aqmx-surface);font:inherit;cursor:pointer;transition:background-color var(--aqmx-duration-2) var(--aqmx-ease);display:inline-flex}.aqmx-sheet-close{z-index:1;color:var(--aqmx-text-muted);background:var(--aqmx-surface);pointer-events:auto;border-color:#0000;padding:0;position:relative}.aqmx-sheet-toggle:hover,.aqmx-sheet-close:hover{background:var(--aqmx-surface-sunken)}.aqmx-sheet-toggle>svg,.aqmx-sheet-close>svg{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon);flex:none}.aqmx-sheet{inline-size:min(calc(100vw - var(--aqmx-space-9)), 21rem);border:0;border-inline-end:var(--aqmx-space-1) solid var(--aqmx-border);block-size:100dvh;max-block-size:none;max-inline-size:none;color:var(--aqmx-text);background:var(--aqmx-surface-raised);box-shadow:var(--aqmx-shadow);margin:0;padding:0;position:fixed;inset-block:0;inset-inline:0 auto}.aqmx-sheet::backdrop{background:#0f172a61}.aqmx-sheet-panel{flex-direction:column;block-size:100%;display:flex;position:relative}.aqmx-sheet-header{z-index:1;padding:var(--aqmx-space-4);pointer-events:none;justify-content:flex-end;align-items:flex-start;display:flex;position:absolute;inset-block-start:0;inset-inline:0}.aqmx-sheet .aqmx-explorer-header>:first-child{min-block-size:var(--aqmx-control);margin-inline-end:calc(var(--aqmx-control) + var(--aqmx-space-4))}.aqmx-sheet .aqmx-explorer-source{flex-basis:100%;min-inline-size:0}.aqmx-sheet-notice-slot>.aqmx-toast{--aqmx-sheet-notice-band:calc(var(--aqmx-control) + var(--aqmx-space-4) * 2);--aqmx-sheet-notice-line:calc(var(--aqmx-line-height-compact) * 1em);--aqmx-sheet-notice-inset:calc((var(--aqmx-sheet-notice-band) - var(--aqmx-sheet-notice-line)) / 2);z-index:0;max-inline-size:none;padding-block:var(--aqmx-sheet-notice-inset) 0;padding-inline:var(--aqmx-space-6) var(--aqmx-space-4);border:0;border-block-end:var(--aqmx-space-1) solid var(--aqmx-warning-border);line-height:var(--aqmx-line-height-compact);overflow-wrap:anywhere;box-shadow:none;pointer-events:auto;border-radius:0;position:absolute;inset-block:0 auto;inset-inline:0}.aqmx-sheet-notice-slot>.aqmx-toast:before{content:"";float:inline-end;inline-size:calc(var(--aqmx-control) + var(--aqmx-space-4));block-size:calc(var(--aqmx-sheet-notice-band) - var(--aqmx-sheet-notice-inset) - var(--aqmx-space-1))}.aqmx-sheet-notice-slot>.aqmx-toast:after{content:"";block-size:calc(var(--aqmx-sheet-notice-inset) - var(--aqmx-space-1));display:block}.aqmx-sheet-body{isolation:isolate;flex-direction:column;flex:auto;min-block-size:0;display:flex;position:relative;overflow:hidden}.aqmx-document-column{flex-direction:column;min-block-size:0;display:flex}.aqmx-document-column>.aqmx-document{flex:1 1 0;block-size:auto;min-block-size:0}.aqmx-single{flex:auto;position:relative}.aqmx-tree-document{block-size:100%;inline-size:100%}.aqmx-split-fallback,.aqmx-stage-fallback{background:var(--aqmx-surface-sunken);flex:auto;min-block-size:0}@media (forced-colors:active){.aqmx-sheet-toggle[aria-expanded=true]{forced-color-adjust:none;color:highlighttext;background:highlight}.aqmx-sheet-toggle:focus-visible,.aqmx-sheet-close:focus-visible{outline-color:highlight}.aqmx-split-handle:focus-visible{outline:var(--aqmx-focus-ring-width) solid Highlight!important;outline-offset:calc(-1 * var(--aqmx-focus-ring-width))!important}}@media (prefers-reduced-motion:reduce){.aqmx-split-handle,.aqmx-split-handle *{transition-duration:0s!important}}}@layer utilities;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSyncExternalStore as d, useRef as c, useLayoutEffect as E, useCallback as a, useEffect as S, useMemo as h } from "react";
|
|
2
|
-
import { S as y } from "./location-
|
|
2
|
+
import { S as y } from "./location-BNFdxzhn.js";
|
|
3
3
|
const m = "(pointer: coarse)", C = (e) => {
|
|
4
4
|
const t = window.matchMedia(m);
|
|
5
5
|
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react"),d=require("./location-
|
|
1
|
+
"use strict";const e=require("react"),d=require("./location-yvU5HUY1.cjs"),f="(pointer: coarse)",E=r=>{const n=window.matchMedia(f);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},S=()=>window.matchMedia(f).matches,m=()=>!1,C=()=>e.useSyncExternalStore(E,S,m),R=r=>{const n=e.useRef(r);e.useLayoutEffect(()=>{n.current=r},[r]);const c=e.useRef(null),t=e.useRef(null),s=e.useRef(!1),u=e.useCallback(()=>{t.current!==null&&clearTimeout(t.current),t.current=setTimeout(()=>{t.current=null,c.current!==null&&n.current(c.current)},d.SPLIT_PERSIST_DELAY_MS)},[]);e.useEffect(()=>()=>{t.current!==null&&clearTimeout(t.current)},[]);const a=e.useCallback((o,l)=>{c.current=o,l.source==="keyboard"?u():l.source==="pointer"&&(s.current=!0)},[u]),i=e.useCallback(o=>{if(o){s.current=!1;return}s.current&&(s.current=!1,u())},[u]);return e.useMemo(()=>({layoutChanged:a,draggingChanged:i}),[a,i])};exports.useCoarsePointer=C;exports.useSplitPersistence=R;
|
|
@@ -92,16 +92,20 @@ The tree's stand-in Tab stop, present while the tab-stop row is outside the tree
|
|
|
92
92
|
| `data-testid="markdown-explorer-image-level"` | The zoom level (an `output`) | A polite status: assistive technology reads the new level when it changes |
|
|
93
93
|
| `data-testid="markdown-explorer-media-view"` / `-media-player` | Media viewer and its player | The view carries `data-aqmx-media-type` (`video` / `audio` / `pdf`) |
|
|
94
94
|
| `data-testid="markdown-explorer-pdf-not-shown"` / `-pdf-not-shown-open` / `-pdf-not-shown-download` | A PDF's note in place of its frame, where the browser shows no PDF inside a page (`navigator.pdfViewerEnabled` is `false`), and its links | The note has `role="note"` and the label `pdfNotShown`; `-pdf-not-shown-open` opens the document's `url` in a new tab and `-pdf-not-shown-download` downloads it under the file's name. No `-media-player` is drawn then, and the server's HTML has neither (only the browser can say which applies). |
|
|
95
|
-
| `data-testid="markdown-explorer-file-name"` / `-file-open` / `-file-download` | Header of an image, media, text, spreadsheet or file view | A text view's
|
|
95
|
+
| `data-testid="markdown-explorer-file-name"` / `-file-open` / `-file-download` | Header of an image, media, text, spreadsheet or file view | A text view's `-file-open` leads to the file as plain text (`as=text`), and so does a spreadsheet view's, except for a workbook that names no first sheet as text (`firstSheetText` `null`), whose `-file-open` is the asset URL itself, as every other link is. |
|
|
96
96
|
| `data-testid="markdown-explorer-file-copy"` | Copy the text, in the header of a text read whole (a text file, or a Markdown document shown as written) | Carries `data-aqmx-copy-outcome`: `idle`, then `copied` or `failed` for 2 seconds after a press. Absent when only the file's beginning was read. |
|
|
97
97
|
| `data-testid="markdown-explorer-file-view"` | The view of a file the explorer cannot show (a `file` document) | Holds the file header and the note below. |
|
|
98
|
-
| `data-testid="markdown-explorer-spreadsheet-view"` | The view of a spreadsheet document (a table file shown as a table) | Carries `data-aqmx-spreadsheet`: `loading` until the first reading, then `table`, `empty`, `unreadable` or `failure` (`failure` only while nothing was read: a reading again that fails keeps what was shown, and its value). Holds the file header and the file's body, the document's scroller (`data-aqmx-document-scroller`, inside `@aiquants/markdown`'s HostedScrollArea row in the tree and single views), which holds the notes and the table: `@aiquants/markdown`'s table block (`[data-aqmd-spreadsheet]`, read-only, named after the file
|
|
99
|
-
| `data-testid="markdown-explorer-spreadsheet-
|
|
100
|
-
| `data-testid="markdown-explorer-spreadsheet-
|
|
101
|
-
| `data-testid="markdown-explorer-spreadsheet-
|
|
98
|
+
| `data-testid="markdown-explorer-spreadsheet-view"` | The view of a spreadsheet document (a table file shown as a table) | Carries `data-aqmx-spreadsheet`: `loading` until the first reading, then `table`, `empty`, `unreadable` or `failure` (`failure` only while nothing was read: a reading again that fails keeps what was shown, and its value). Holds the file header and the file's body, the document's scroller (`data-aqmx-document-scroller`, inside `@aiquants/markdown`'s HostedScrollArea row in the tree and single views), which holds the notes, a workbook's sheet tabs and its sheet panel, and the table: `@aiquants/markdown`'s table block (`[data-aqmd-spreadsheet]`, read-only, named after the file — a workbook's sheet after the file and the sheet, `spreadsheetSheetName`; `data-aqmd-spreadsheet-layout` `fill` in a page pane and `inline` in a multi-view panel) inside an element carrying `data-theme` (the explorer's colour scheme, as `@aiquants/markdown`'s stylesheet reads it). A workbook's state is its shown sheet's: `loading` while that sheet is read for the first time |
|
|
99
|
+
| `data-testid="markdown-explorer-spreadsheet-sheets"` | The tabs of a workbook's shown sheets (`role="tablist"`, named `spreadsheetSheets(name)`), above its sheet panel | Present only for a workbook with more than one shown sheet. One `role="tab"` button per sheet in the workbook's order, named by the sheet, carrying `data-aqmx-sheet-tab` (the sheet's position), `aria-selected` and `aria-controls` (the panel); the selected tab is the one tab stop (`tabindex` `0`, the others `-1`). The arrow keys along the row (following the writing direction, wrapping at the ends), Home and End move the focus only; Enter, Space or a press selects the sheet (manual activation) |
|
|
100
|
+
| `data-testid="markdown-explorer-spreadsheet-sheet"` | A workbook's sheet panel, holding the shown sheet's note, table or placeholder | Carries `data-aqmx-sheet` (the shown sheet's position); with tabs it is `role="tabpanel"`, `aria-labelledby` the selected tab |
|
|
101
|
+
| `data-testid="markdown-explorer-spreadsheet-sheet-skeleton"` | Placeholder in the sheet panel while a sheet is read for the first time (a sheet read once shows again at once) | Hidden from assistive technology; the panel holds the screen-reader text `spreadsheetSheetLoading` beside it |
|
|
102
|
+
| `data-testid="markdown-explorer-spreadsheet-unshown-sheets"` / `-spreadsheet-unlisted-sheets` | Notes above a workbook's tabs: sheets left out (hidden and very hidden sheets, chart sheets, dialog and macro sheets) and sheets past the reader's limit | `role="note"`, the labels `spreadsheetUnshownSheets(count)` (the sheets left out) and `spreadsheetUnlistedSheets(count)` (the sheets listed) |
|
|
103
|
+
| `data-testid="markdown-explorer-spreadsheet-first-sheet"` | Note above the table of a workbook shown as its first sheet's text: the document names that text (`firstSheetText`, a storage that converts the file on read) and the workbook delivery brought no workbook package within `spreadsheets.maxWorkbookBytes`, or one the reader refused | `role="note"`, the label `spreadsheetWorkbookFirstSheet` |
|
|
104
|
+
| `data-testid="markdown-explorer-spreadsheet-truncated"` | Note above a table that shows only part of its file (of a workbook, inside the sheet panel: only part of the sheet) | `role="note"`, the label `spreadsheetTruncated` |
|
|
105
|
+
| `data-testid="markdown-explorer-spreadsheet-empty"` | Note in place of the table of a file without data (read whole, its cells — taken whole within the preview's budget — all empty, or none at all), or of a workbook's sheet without data | `role="note"`, the label `spreadsheetEmpty` (a workbook's sheet: `spreadsheetSheetEmpty`) |
|
|
102
106
|
| `data-testid="markdown-explorer-spreadsheet-skeleton"` | Placeholder until a table file's first reading | Hidden from assistive technology; the view holds the screen-reader text `spreadsheetLoading` beside it |
|
|
103
107
|
| `data-testid="markdown-explorer-spreadsheet-failure"` | Failure to read a table file before anything was read | Carries `data-aqmx-failure` (the reason); its callout has no role: the pane's announcer speaks the failure (`documentFailed`; a multi-view panel's once its URL has rendered). A `failed` reading offers Try again (`retry`); when the retry succeeds the focus moves into the file's body and a page view announces the document (`documentShown`) |
|
|
104
|
-
| `data-testid="markdown-explorer-spreadsheet-unreadable"` / `-spreadsheet-unreadable-download` | Note in place of the table of a file whose bytes are no table, and its download link | `role="note"`; carries `data-aqmx-unreadable`: `encoding` (no encoding of the explorer's rule reads the bytes; the label `spreadsheetUnreadableEncoding`, given the encodings tried by their written names), `binary` (the text holds NUL; `spreadsheetNotText`) or `long-row` (the reading stopped at `spreadsheets.maxBytes` with no row ended within it — the first row runs past it, or, in a TSV, a quote that opens in it closes nowhere within it; `spreadsheetLongRow`). The link's `href` is the document's `url` and its `download` the file's name |
|
|
108
|
+
| `data-testid="markdown-explorer-spreadsheet-unreadable"` / `-spreadsheet-unreadable-download` | Note in place of the table of a file whose bytes are no table, and its download link | `role="note"`; carries `data-aqmx-unreadable`: `encoding` (no encoding of the explorer's rule reads the bytes; the label `spreadsheetUnreadableEncoding`, given the encodings tried by their written names), `binary` (the text holds NUL; `spreadsheetNotText`) or `long-row` (the reading stopped at `spreadsheets.maxBytes` with no row ended within it — the first row runs past it, or, in a TSV, a quote that opens in it closes nowhere within it; `spreadsheetLongRow`); for a workbook, in place of the tabs or, for one sheet, inside the sheet panel, `encrypted` (a password-protected workbook or an encrypted part; `spreadsheetWorkbookEncrypted`), `not-workbook` (bytes no Office Open XML workbook or OpenDocument spreadsheet, a legacy `.xls`, a package the reader cannot open or a sheet it cannot read; `spreadsheetNotWorkbook`) or `too-large` (more than `spreadsheets.maxWorkbookBytes`, or a part that inflates past the reader's limit; `spreadsheetWorkbookTooLarge`). The link's `href` is the document's `url` and its `download` the file's name |
|
|
105
109
|
| `data-testid="markdown-explorer-file-not-shown"` / `-file-not-shown-download` | The file view's note (`role="note"`, the label `fileNotShown`) and its download link | The link's `href` is the document's `url` and its `download` the file's name. |
|
|
106
110
|
|
|
107
111
|
Links inside Markdown to documents carry `data-link-kind="doc"` and their `data-doc-path`, and `data-doc-exists` only as `"false"` (a `"true"` the server sent is not rendered). An inert link — one the server sent without `data-doc-path`, or whose `data-doc-path` `isAcceptableDocumentPath` refuses — carries `data-link-kind="doc"` and `data-doc-exists="false"` and no `data-doc-path`.
|
package/docs/behavior/layout.md
CHANGED
|
@@ -185,23 +185,28 @@ Documents in the multi-panel view sit in `multiView.columns` logical columns (4
|
|
|
185
185
|
The region itself never takes focus, and focus outside the region, focus that was never in it, and focus the reader moved away from it are never taken. The reader moves it away by moving it to an element or into a frame outside the region, or by pressing anywhere outside the region — whenever the press happens, also after the focus had already fallen to the page, and whether or not the press moves the focus — unless the focus stays inside the region (a press whose default action the page prevented).
|
|
186
186
|
Focus that fell from the region to the page while the reader stayed with it (a press on the document's text, the browser's own fragment navigation, the focused content removed, the window losing the focus to another window or application) counts as inside.
|
|
187
187
|
So does focus in a frame inside the region (a PDF document's frame, an embedded frame of `iframeHosts`), also when it entered the frame straight from outside the region (a click from the tree, Tab), and a press outside the region moves it away from there as well.
|
|
188
|
-
- **Source of a Markdown document, an SVG image or a table file.** While the bar's document is a loaded Markdown document, SVG image (an image document whose `imageType` is `svg`) or spreadsheet, the bar's button row holds a Source toggle before Refresh document:
|
|
188
|
+
- **Source of a Markdown document, an SVG image or a table file.** While the bar's document is a loaded Markdown document, SVG image (an image document whose `imageType` is `svg`) or CSV or TSV spreadsheet, the bar's button row holds a Source toggle before Refresh document:
|
|
189
189
|
a toggle button (`aria-pressed`) labelled like its neighbour — visible text beside a page view's pane (`showMarkupLabel`, «Source» / 「ソース」, its accessible name; its tooltip is `showMarkup`, `showSvgMarkup` for an SVG image, «Show the image's SVG as written» / 「画像の SVG を書いたまま表示」, or `showSpreadsheetMarkup` for a table file, «Show the table's CSV as written» / 「表の CSV を書いたまま表示」),
|
|
190
190
|
icon-only in a panel and named after the panel's document (`showMarkupNamed`, «Source of a.md» / 「a.md のソース」).
|
|
191
|
-
A raster image, a media, text or file document and a failure show no toggle, and neither does a document still loading, which gets it once it is there.
|
|
191
|
+
A raster image, a media, text or file document, a workbook (a spreadsheet document whose `format` is `workbook`: its bytes are no text) and a failure show no toggle, and neither does a document still loading, which gets it once it is there.
|
|
192
192
|
A table file's source is its CSV or TSV as written, read by the same rule as its table (a byte order mark's encoding, UTF-8 or the configured legacy encoding).
|
|
193
193
|
Pressing it shows the document as written instead of rendered, in place and without moving the focus from the toggle: the pane reads the document's file through the data route's `text` operation (only once the toggle is pressed) and shows the text the way it shows a text file — the file header with Copy the text, Open (the whole file as plain text in a new tab) and Download, the note `textTruncated` when the server cut the file at its `textMaxBytes`, and the text, which wraps and is never interpreted.
|
|
194
194
|
Copy the text (an icon button, `copyText`) puts the text on the clipboard exactly as read, line endings included, and is offered only for a text read whole, so a cut file is never copied in part (Download fetches it whole). The outcome is announced (`copiedText`, or `copyTextFailed` when the browser has no asynchronous clipboard — an insecure origin — or refuses the write) and shown for 2 seconds by the button's icon and tooltip, while its accessible name stays the same; a second press counts the 2 seconds again. The same button heads every text file.
|
|
195
195
|
Until the first answer the region shows a skeleton (`markupLoading` for screen readers); a failure before any text shows the failure callout, with Try again for a `failed` read, and is announced once (`documentFailed`), like a document's; a retry that succeeds moves a focus the swap dropped into the text and, in a page view, announces the document (`documentShown`), as the pane does for a document that replaces a failure.
|
|
196
196
|
Every new answer for the document — Refresh document, Refresh tree, a background revalidation — reads the text again, the previous text staying on screen meanwhile and the region busy (its progress line and `aria-busy`); a reading again that fails keeps the text: Refresh document reports it in the bar (see Document refresh), and a background answer's reading that fails says nothing, as a background failure under a loaded document does. The next press shows the document rendered again (an SVG image as the image).
|
|
197
197
|
The choice is part of the URL (`markup`, see the [URL contract](url-contract.md#shape)), written by replacing the entry: a reload, a shared link and Back and Forward show the document the same way, and the switches between the tree and multi views carry it for the document they open. It belongs to that document only: another document opens rendered, and the document still shown while the next one loads keeps the way it showed. The region tells which way a Markdown document, an SVG image or a table file shows with `data-aqmx-document-view` (`rendered` / `markup`).
|
|
198
|
-
- **Table file.** A spreadsheet document shows its file header and, below it, the file's body: one scroller (the document's, with the pane's pointer scroll bar in a page view) that holds the notes — a
|
|
198
|
+
- **Table file.** A spreadsheet document shows its file header and, below it, the file's body: one scroller (the document's, with the pane's pointer scroll bar in a page view) that holds the notes — a table that is only part of its file (`spreadsheetTruncated`) and a workbook's notes below —, which take the same insets as every document notice (13 px above, 21 px at the sides), and the table.
|
|
199
199
|
The table sits on a stage whose padding continues that rhythm (13 px above, 21 px at the sides and below, `--aqmx-space-6` and `--aqmx-space-7`): in a page pane the stage takes the rest of the body's height and the table block fills it (its `fill` layout:
|
|
200
200
|
the block's toolbar and notice line keep their height and the grid's box takes the rest, scrolling inside), so the body does not scroll around the table, unless the pane is shorter than the file header, the notes, the stage's padding and the table block at its fewest — its toolbar and notice line, whose 44 px controls wrap onto more lines in a narrow pane, and the box's three rows at the grid's zoom, capped at the viewport's height less two 44 px bands —, as at a 400 % zoom, where the body scrolls to the notes and the whole table;
|
|
201
201
|
in a multi-view panel the table takes the height of its rows (its `inline` layout, at most the viewport's), as every child of a panel follows its content, and the panel's area scrolls.
|
|
202
202
|
The table is `@aiquants/markdown`'s table block, read-only, named after the file, in the explorer's colour scheme (`data-theme` on the stage); until the first reading the body shows the skeleton, after which a page view announces the document (`documentShown`); a failure before anything was read shows the failure view with its retry and is announced alone (`documentFailed`; a retry that succeeds moves the focus into the body and a page view announces the document); and bytes that are no table — or a file without data (`spreadsheetEmpty`:
|
|
203
203
|
read whole, its cells, taken whole within the preview's budget, all empty, or none at all) — show a note in place of the table on the file view's sunken stage, 13 px below a note above it, with the download for bytes that are no table (`spreadsheetUnreadableEncoding`, `spreadsheetNotText`, and `spreadsheetLongRow` when no row ends within `spreadsheets.maxBytes`).
|
|
204
204
|
A reading again (a new answer for the document, a retry) keeps what was shown, with the region busy; Refresh document reports a failure of it in the bar, and a background answer's reading that fails says nothing.
|
|
205
|
+
- **Workbook.** A spreadsheet document whose `format` is `workbook` (an Office Open XML workbook — `.xlsx`, `.xlsm` — or an OpenDocument spreadsheet, `.ods`) is read in the browser from the file's workbook delivery (`as=workbook`), whole up to `spreadsheets.maxWorkbookBytes`, and shows its shown sheets (hidden sheets and sheets without a table left out) one at a time in a sheet panel that continues the body's column, so its table fills a page pane as a table file's does.
|
|
206
|
+
With more than one sheet, a row of tabs (`spreadsheetSheets(name)`) sits above the panel with the notes' insets (13 px above, 21 px at the sides) and wraps in a narrow pane or at a large text size, every tab a target of at least 44 × 44 CSS px under every pointer whose long name wraps inside the tab; the selected tab takes the pressed controls' accent surface, its border in the text colour and a heavier weight (under forced colors, Highlight).
|
|
207
|
+
The first sheet shows first, and a reading again (Refresh document, a retry, a new answer) shows the sheet the reader chose, found by its name, or the first when the workbook no longer has it. Each sheet is read when first shown (its placeholder `spreadsheetSheetLoading` meanwhile) and kept for the workbook read, so going back shows it at once; its table is named after the file and the sheet (`spreadsheetSheetName(name, sheet)`), a sheet without data shows `spreadsheetSheetEmpty`, and a sheet the reader cannot read its note with the download.
|
|
208
|
+
Notes above the tabs count the sheets left out (`spreadsheetUnshownSheets`) and say how many are listed when the workbook has more than the reader lists (`spreadsheetUnlistedSheets`). A workbook the reader refuses shows its note with the download in place of the tabs: `spreadsheetWorkbookEncrypted`, `spreadsheetNotWorkbook` (a legacy `.xls` included) or `spreadsheetWorkbookTooLarge`.
|
|
209
|
+
When the document names its first sheet as text (`firstSheetText`, `csv` or `tsv`: a storage that converts the file on read, such as a Google Sheets spreadsheet) and the delivery brings no workbook package within the budget — the storage's own text when it could not convert the workbook — or one the reader refuses, the view reads that text (`as=text`) instead and shows it as a table file's table, below the note `spreadsheetWorkbookFirstSheet`.
|
|
205
210
|
- **Source of an SVG image inside a document.** In a rendered Markdown document — a page view's pane, a panel and the editor's preview alike — every storage SVG image that stands alone in a paragraph (as `@aiquants/markdown`'s viewer picks them: an image the converter wrote with `data-asset-src`, not inside a link or beside text) has a toolbar above it at the row's end (`viewerSvgImageToolbar`) holding Copy (`viewerSvgImageCopy`) and then the Source toggle (`viewerSvgImageSource`, `aria-pressed`), which swaps the image for its SVG as written and back, keeping the focus on the toggle.
|
|
206
211
|
The explorer reads the SVG through the same `text` operation as a document's source, only while the source shows or when Copy is pressed on the image (a read the reader leaves is aborted), so it is refused and admitted exactly as the image itself; the block shows a loading line (`viewerSvgImageLoading`), the text named after the image (`viewerSvgImageSourceRegion`), the note `viewerSvgImageTruncated` under a file cut at `textMaxBytes`,
|
|
207
212
|
and a failure (`viewerSvgImageFailed`) with Try again (`viewerSvgImageRetry`) for a `failed` read. Copy shows while the image shows, where it reads the file and copies the image as a PNG that pastes as an image (`viewerSvgImageCopyImage`, its outcome `viewerSvgImageCopiedImage` or `viewerSvgImageCopyImageFailed`), and while the whole file shows, where it copies the SVG as written (`viewerSvgImageCopy`, its outcome `viewerSvgImageCopied` or `viewerSvgImageCopyFailed`); a file cut at `textMaxBytes` is never copied.
|
|
@@ -26,12 +26,15 @@ This page is part of the host-facing contract of `@aiquants/markdown-explorer`;
|
|
|
26
26
|
- `refreshTreeLabel` is the visible text of the explorer's Refresh tree button and `refreshDocumentLabel` that of the page views' (tree and single) Refresh document button, each also its button's accessible name; `refreshTree` and `refreshDocument` are their tooltips.
|
|
27
27
|
A multi-view panel's Refresh document is icon-only, and `refreshDocumentNamed(name)` (the panel title) is its accessible name and its tooltip. A successful reload is announced with `treeRefreshed` or `documentRefreshed(name)` — a document's once the part its content reads itself (a table file's table, a document shown as written) is read again too. A failed one is shown with `treeRefreshFailed(reason)` (an alert in the explorer)
|
|
28
28
|
or `documentRefreshFailed(reason)` (the bar's notice, which the announcer also speaks, for a failure of the document's answer or of that part's reading), where `reason` is the failure's title (the matching `failure…Title` label).
|
|
29
|
-
- `showMarkupLabel` is the visible text of the page views' Source toggle beside Refresh document (shown for a Markdown document, an SVG image and a table file), also its accessible name, and `showMarkup` its tooltip (`showSvgMarkup` for an SVG image, `showSpreadsheetMarkup(format)` with `CSV` or `TSV` for a table file); a multi-view panel's toggle is icon-only, and `showMarkupNamed(name)` (the panel title) is its accessible name and its tooltip.
|
|
29
|
+
- `showMarkupLabel` is the visible text of the page views' Source toggle beside Refresh document (shown for a Markdown document, an SVG image and a CSV or TSV table file), also its accessible name, and `showMarkup` its tooltip (`showSvgMarkup` for an SVG image, `showSpreadsheetMarkup(format)` with `CSV` or `TSV` for a table file); a multi-view panel's toggle is icon-only, and `showMarkupNamed(name)` (the panel title) is its accessible name and its tooltip.
|
|
30
30
|
The toggle's pressed state, not its name, tells whether the source shows. `markupLoading` is the screen-reader text while the source loads; a source that cannot be read is announced with `documentFailed(name, title)`, like a document, and a source that replaces that failure on a retry with `documentShown(name)` in a page view; a reading again that fails keeps the source, and a refresh reports it with `documentRefreshFailed(reason)` in the bar; a cut source shows `textTruncated`, like a cut text file.
|
|
31
31
|
- A table file's view names its table after the file and its full-screen table with `spreadsheetFullscreen(name)`; its other table labels are the ```spreadsheets table's (below), a host's replacements included.
|
|
32
32
|
`spreadsheetLoading` is the screen-reader text until its first reading, after which a page view announces the document with `documentShown(name)`; a reading that fails before anything was read is announced with `documentFailed(name, title)` alone (a table that replaces it on a retry with `documentShown(name)` in a page view), and one that fails again later keeps the table, a refresh reporting it with `documentRefreshFailed(reason)` in the bar;
|
|
33
|
-
its notes are `
|
|
33
|
+
its notes are `spreadsheetTruncated` (part of the file) and, in place of the table, `spreadsheetEmpty` (a file without data: read whole, its cells, taken whole within the preview's budget, all empty, or none at all), `spreadsheetUnreadableEncoding(encodings)` (bytes in no encoding of the explorer's rule; the encodings tried, one or two, by their written names: the one a byte order mark names, or `UTF-8` and the legacy encoding, such as `Shift_JIS`), `spreadsheetNotText` (text holding NUL)
|
|
34
34
|
or `spreadsheetLongRow` (no row ends within the bytes read, `spreadsheets.maxBytes`: the first row runs past them, or, in a TSV, a quote that opens in it closes nowhere within them).
|
|
35
|
+
- A workbook's view names a sheet's table after the file and the sheet with `spreadsheetSheetName(name, sheet)` (its full-screen table with `spreadsheetFullscreen` of that name) and its tabs with `spreadsheetSheets(name)`, each tab named by its sheet as the workbook writes it.
|
|
36
|
+
`spreadsheetSheetLoading` is the screen-reader text while a sheet is read for the first time; a sheet without data shows `spreadsheetSheetEmpty`. Its notes are `spreadsheetUnshownSheets(count)` (sheets left out: hidden, or without a table), `spreadsheetUnlistedSheets(count)` (the number of sheets listed, when the workbook has more than the reader lists) and `spreadsheetWorkbookFirstSheet` (the first sheet's text shown instead of the workbook);
|
|
37
|
+
in place of the tabs or a sheet's table, `spreadsheetWorkbookEncrypted` (a password-protected workbook), `spreadsheetNotWorkbook` (bytes that are no workbook the explorer reads, a legacy `.xls` included) or `spreadsheetWorkbookTooLarge` (past `spreadsheets.maxWorkbookBytes` or the reader's limit for one part).
|
|
35
38
|
- `copyText` is the accessible name and tooltip of the icon-only Copy the text button in the header of a text read whole (a text file, or a Markdown document shown as written). A copy is announced with `copiedText`, or with `copyTextFailed` when the browser has no asynchronous clipboard or refuses the write; for 2 seconds the outcome's label is also the button's tooltip, while its name stays `copyText`.
|
|
36
39
|
- `switchToTree` and `switchToMulti` name their destination with the README's view names ("Open in the tree view" / "ツリービューで開く", "Open in the multi-panel view" / "マルチビューで開く"); no label names the single view, which no control inside the explorer opens.
|
|
37
40
|
|
|
@@ -32,7 +32,11 @@ The explorer renders documents that the reader did not write, from storage the r
|
|
|
32
32
|
- The text of a file takes the same admission: a `text` request passes the deny rules (a refusal is logged once with the operation `text`, since the explorer asks it only for a document it rendered — a Markdown document, an SVG image or a table file, for the document bar's Source toggle — and for a storage SVG image such a document shows, for the image's own Source toggle and Copy, whose bytes the `asset` operation serves under the same rules), then the same union of boundaries and confirmations, and the host's `asset` receives the admitting source's `readPath`;
|
|
33
33
|
a boundary miss is answered `forbidden` without a log.
|
|
34
34
|
It serves nothing the `asset` operation does not already serve the same reader: the beginning of that file's bytes, at most `textMaxBytes`, decoded by the explorer's one rule (a byte order mark's encoding, UTF-8, the configuration's `legacyTextEncoding`, else the first encoding tried with U+FFFD) and escaped as a JSON string, which the browser shows as text and never interprets.
|
|
35
|
-
- A table file's preview reads the file through the `asset` operation's plain-text display (`as=text`),
|
|
35
|
+
- A table file's preview reads the file through the `asset` operation's plain-text display (`as=text`), and a workbook's through its workbook delivery (`as=workbook`), so both take the asset's admission and serve the reader nothing a download would not;
|
|
36
|
+
the operation reads the bytes itself, so the browser's request stays on the page's origin (never redirected to the storage) and carries the reader's session as any data request does. The browser stops reading once the table is as large as a preview shows or the bytes reach `spreadsheets.maxBytes`, and puts the cells into the grid as text, never as markup or a link.
|
|
37
|
+
- A workbook is read whole up to `spreadsheets.maxWorkbookBytes` (more bytes cancel the request and refuse the workbook) and opened in the browser by the explorer's own reader, which uses only the browser's built-ins: the ZIP directory is read in place (a package spread over disks, in ZIP64 or naming one entry twice is refused, and an encrypted entry or a password-protected workbook is refused as encrypted),
|
|
38
|
+
every part inflates through `DecompressionStream` and stops at 64 MiB whatever its directory declares, and its XML is scanned as it inflates, as UTF-8 that must decode, with a document type declaration refused, so no entity expands (only the five predefined entities and character references are read).
|
|
39
|
+
At most 256 sheets are listed, a sheet is read only when shown and only up to the preview's budget, and a cell shows its stored value: formulas are never evaluated, and macros, external links, embedded objects and pictures are never read.
|
|
36
40
|
|
|
37
41
|
## HTML
|
|
38
42
|
|
|
@@ -121,6 +125,7 @@ In a tree or children listing, an entry with an empty name, or with a path the b
|
|
|
121
125
|
The plain-text display (`as=text`) names its `charset` from the file's first 64 KiB by the explorer's one text rule before it answers, holding the host's chunks that carry those bytes until they are sent:
|
|
122
126
|
a whole GET opens the file once and sends them first, and a HEAD or a range reads them on their own (as a range, or the whole file cancelled after them when the host reports no size; a range then opens its own bytes).
|
|
123
127
|
A beginning that ends before the reported size is answered `failed` (logged) before any header is sent. Its ETag is `"<legacy encoding>;<version>"` (the legacy encoding's written name, nothing when none is configured), so a cached copy revalidates into a new `charset` when the configuration changes. The bytes are sent as stored, never converted.
|
|
128
|
+
The workbook delivery (`as=workbook`) asks the host's port for a workbook (`delivery: "workbook"`, which a storage that converts the file on read answers with one) and sends what the port delivers, always the whole file (a `Range` is ignored: the reader needs the whole package), as `application/octet-stream` with `Content-Disposition: attachment` under the file's name and the stored file's security and cache headers; its ETag is `"workbook;<version>"`, so neither delivery's cached copy ever answers the other. As for the plain-text display, the port may not answer it with a redirect.
|
|
124
129
|
- Responses never contain tokens, principals, server paths or raw error messages. A failure carries only its reason and an optional host-defined code (`[a-z0-9-]{1,64}`); everything else goes to the server's `logger`. `new ExplorerError` throws a `RangeError` for a malformed code, and a failure document returned with one is logged and sent as `failed`.
|
|
125
130
|
|
|
126
131
|
- The `link-card` operation passes the answers of `@aiquants/markdown`'s link-card handler through unchanged (see [Link cards](#link-cards)): a card is `200` JSON with `Cache-Control: private, max-age=1800`, a link without a card `204 No Content` with `X-Link-Card-Skip`, and the handler's own errors JSON with `no-store`; each carries `nosniff` and never `Set-Cookie`. Only the explorer's own refusals in front of it (`not-found`, 405, a refused authentication) are the explorer's failure JSON above.
|
|
@@ -183,6 +188,6 @@ In a tree or children listing, an entry with an empty name, or with a path the b
|
|
|
183
188
|
|
|
184
189
|
- Any regular file the document admission admits, whatever its kind: the bytes of image and media documents, the whole file behind a text preview, every `file` document (a file the explorer cannot show) and every image embedded in Markdown.
|
|
185
190
|
- Inline only for raster images, audio, video and PDF; everything else, SVG and an empty or unknown type included, as an attachment — unless the request asks for the plain-text display (`as=text`, the text viewers' Open in a new tab and a table file's preview), which shows any admitted file in place as `text/plain; charset=<encoding>` (the encoding the explorer's one text rule reads the file's first 64 KiB in) whatever its declared type,
|
|
186
|
-
under the same `nosniff` and sandboxing policy, so an HTML or SVG file opened that way shows its source and runs nothing. Both dispositions name the file (`filename*=UTF-8''<name>`, the RFC 8187 encoding of the name with `'`, `(`, `)` and `*` percent-encoded too), so a saved file keeps its name although every asset URL's path ends in `asset`.
|
|
191
|
+
under the same `nosniff` and sandboxing policy, so an HTML or SVG file opened that way shows its source and runs nothing. A workbook's preview delivery (`as=workbook`) is always an attachment of `application/octet-stream`, whatever the declared type. Both dispositions name the file (`filename*=UTF-8''<name>`, the RFC 8187 encoding of the name with `'`, `(`, `)` and `*` percent-encoded too), so a saved file keeps its name although every asset URL's path ends in `asset`.
|
|
187
192
|
- The type is the one the host declares, parsed as a browser parses it, never guessed from the name; `nosniff` stops the browser from guessing either, and the sandboxing policy keeps an SVG or HTML file opened on its own from running script.
|
|
188
193
|
- For `createFileSystemSource`, files of unknown extensions are downloadable, and so are the whole bytes of every Markdown and text file the source admits: raw Markdown keeps what the rendered view drops (front matter, HTML comments), and a text file is served beyond its preview. Its deny rules — `DEFAULT_DENIED_PATH_SEGMENTS` (environment files, keys and certificates, credential files, Terraform state, shell histories) plus the host's `deny` patterns — are the only filter, so add a pattern for anything else the folder must withhold.
|
|
@@ -103,8 +103,8 @@ The explorer serves every file it shows or offers for download through the `asse
|
|
|
103
103
|
| --- | --- |
|
|
104
104
|
| Path | `<dataPath>/asset`. GET and HEAD only; any other method answers 405 with `Allow: GET, HEAD`. |
|
|
105
105
|
| `path` | Required exactly once: the document path exactly as the explorer shows it (workspace-relative, `gcs://bucket/object`, `gdrive://…`), an acceptable document path; otherwise 400. `filePath` is not a parameter (`?filePath=` alone answers 400). |
|
|
106
|
-
| `v` | Written only on the URL a document carries (image, media, text, spreadsheet and file documents), from the version the host reported: a cache-buster the server never reads. The response's ETag always names the file's current version (`"<version>"`,
|
|
107
|
-
| `as` | Optional: `text`
|
|
106
|
+
| `v` | Written only on the URL a document carries (image, media, text, spreadsheet and file documents), from the version the host reported: a cache-buster the server never reads. The response's ETag always names the file's current version (`"<version>"`, `"<legacy encoding>;<version>"` with `as=text`, or `"workbook;<version>"` with `as=workbook`). |
|
|
107
|
+
| `as` | Optional, exactly once: `text` asks for the file as plain text shown in place (`text/plain; charset=<encoding>`, the encoding the explorer's one text rule reads the file's first 64 KiB in, `inline`), whatever type the host declares; `workbook` asks for a workbook's preview: the bytes the host's port delivers when asked for a workbook (a storage that converts the file on read converts it into one), always whole, to download (`application/octet-stream`, `attachment`). Any other value, an empty one or the parameter repeated answers 400 before the port is called. `explorerPlainTextHref(assetHref)` adds `as=text` to a text or spreadsheet document's `url` for the viewers' Open in a new tab and a table file's preview, and `explorerWorkbookHref(assetHref)` adds `as=workbook` to a workbook's `url` for its preview. |
|
|
108
108
|
| Encoding | `encodeURIComponent` once, decoded once by `URLSearchParams`: exact for `%`, `#`, `?`, `+`, spaces, NFC and NFD names and a trailing `.data`. The request's own path always ends in `asset`, never in `.data`, so no name needs another escape. |
|
|
109
109
|
|
|
110
110
|
Two writers call it: the copy of the host's `document` answer, for the `url` of image, media, text, spreadsheet and file documents (with `v`), and the sanitizer, for images marked with `data-asset-src` (without `v`). With `dataPath` `/docs/_data`:
|
|
@@ -112,7 +112,7 @@ Two writers call it: the copy of the host's `document` answer, for the `url` of
|
|
|
112
112
|
- `` in `guide/README.md` → `<img data-asset-src="guide/images/diagram.png" data-asset-exists="true">` from the parser → `src="/docs/_data/asset?path=guide%2Fimages%2Fdiagram.png"` after the sanitizer.
|
|
113
113
|
- An image document opened in the tree view: `url: "/docs/_data/asset?path=guide%2Fimages%2Fdiagram.png&v=<version>"`.
|
|
114
114
|
- An image embedded in a `gcs://` document: `/docs/_data/asset?path=gcs%3A%2F%2Fbucket%2Freports%2Ffig%201.png`.
|
|
115
|
-
- A linked `notes/report.
|
|
115
|
+
- A linked `notes/report.xls` opens as a `file` document whose `url` is `/docs/_data/asset?path=notes%2Freport.xls&v=<version>`, answered as an attachment.
|
|
116
116
|
|
|
117
117
|
The browser accepts the `url` of an image, media, text or file document only when it is root-relative on the page's own origin (`/x`, never `//host` or `/\host`) and spelled in visible ASCII, which is exactly what the explorer writes. What the operation admits and answers is in the README's [Serving files](../../README.md#serving-files) and in [Security](security.md#what-the-explorer-serves).
|
|
118
118
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiquants/markdown-explorer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Markdown document explorer for React Router 8 (framework mode): a source tree with a single-document view and a multi-panel reading view, storage-agnostic server ports, golden-ratio layout and an en / ja UI.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css"
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"@aiquants/directory-tree": "^5.0.1",
|
|
72
72
|
"@aiquants/drag-drop-panels": "^0.12.0",
|
|
73
|
-
"@aiquants/markdown": "^11.6.
|
|
73
|
+
"@aiquants/markdown": "^11.6.3",
|
|
74
74
|
"@aiquants/resize-panels": "^2.2.0",
|
|
75
|
-
"@aiquants/spreadsheet": "^0.17.
|
|
75
|
+
"@aiquants/spreadsheet": "^0.17.2",
|
|
76
76
|
"@aiquants/virtualscroll": "^3.22.1",
|
|
77
77
|
"react": "^19.2.7",
|
|
78
78
|
"react-dom": "^19.2.7",
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@aiquants/directory-tree": "5.0.1",
|
|
83
83
|
"@aiquants/drag-drop-panels": "0.12.0",
|
|
84
|
-
"@aiquants/markdown": "11.6.
|
|
84
|
+
"@aiquants/markdown": "11.6.3",
|
|
85
85
|
"@aiquants/resize-panels": "2.2.0",
|
|
86
|
-
"@aiquants/spreadsheet": "0.17.
|
|
86
|
+
"@aiquants/spreadsheet": "0.17.2",
|
|
87
87
|
"@aiquants/virtualscroll": "3.22.1",
|
|
88
88
|
"@heroicons/react": "^2.2.0",
|
|
89
89
|
"@playwright/test": "^1.59.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const b=Object.freeze([".env*","*.env","*.env.*","*.env~*","*.env-*","*.env_*","*.env#*",".git",".git-credentials",".svn",".hg","node_modules","secrets",".secrets","secrets.json","secrets.yml","secrets.yaml","secrets.toml","secrets.ini","secrets.txt",".ssh",".aws",".gnupg",".docker",".kube",".terraform",".npmrc",".yarnrc",".yarnrc.yml",".netrc","_netrc",".pypirc",".pgpass",".my.cnf",".htpasswd",".vault-token","id_rsa*","id_dsa*","id_ecdsa*","id_ed25519*","*.pem","*.key","*.p8","*.p12","*.pfx","*.ppk","*.jks","*.keystore","*.kdbx","*credentials*.json","service-account*.json","*.tfstate","*.tfstate.*","*.tfvars","*.tfvars.json",".*_history","fish_history"]),z=/[\u0000-\u001f\u007f]/u,F=/\p{Cs}/u,V=e=>{const t=e.split("/").filter(n=>n!=="").at(-1);return t===void 0?e:t},R=e=>e.length>0&&e.length<=4096&&!F.test(e)&&!z.test(e)&&!e.includes("\\"),x=e=>e.normalize("NFKC").toUpperCase().toLowerCase(),M=/(?:%[0-9A-Fa-f]{2})+/gu,G=new TextDecoder("utf-8"),K=/[/\\]/u,Y=e=>e.replace(M,t=>G.decode(Uint8Array.from(t.slice(1).split("%").map(n=>Number.parseInt(n,16))))),W=e=>{const t=[e];let n=e;for(let r=0;r<3&&n.includes("%");r+=1){const o=Y(n);if(o===n)break;t.push(o),n=o}return t.map(x)},J=e=>{if(typeof e!="string"||e.trim()===""||e.includes("/")||e.includes("\\"))throw new RangeError(`[markdown-explorer] a deny pattern must be one non-blank path segment; got ${JSON.stringify(e)}`);const t=x(e).split("*").map(n=>n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join(".*");return new RegExp(`^${t}$`,"su")},m=e=>{if(!Array.isArray(e))throw new RangeError("[markdown-explorer] deny rules must be an array of segment patterns");const t=e.map(J),n=o=>o!==""&&t.some(i=>i.test(o)),r=o=>o!==""&&W(o).some(i=>n(i)||i.split(K).some(n));return{deniesPath:o=>o.split("/").some(r),deniesName:r}},Q=m(b),q=Object.freeze({deniesPath:()=>!1,deniesName:()=>!1}),B=e=>e===void 0?Q:e===!1?q:m(e),Z=(e,t)=>m(e).deniesPath(t),y=Object.freeze(["unauthorized","forbidden","not-found","not-configured","invalid","too-large","unsupported","failed"]),ee=Object.freeze(["file","directory"]),te=Object.freeze(["video","audio","pdf"]),ne=Object.freeze(["raster","svg"]),re=Object.freeze(["csv","tsv"]),oe=Object.freeze(["info","warning","danger"]),se=Object.freeze(["markdown","text","image","media","spreadsheet","file","failure"]),O=Object.freeze({min:1,max:6}),ie=1e4,c=e=>typeof e=="string"&&/^\/(?![/\\])[\x21-\x7E]*$/u.test(e),ae=Object.freeze(["http:","https:","mailto:"]),_=1024,le=/^[a-z0-9-]{1,64}$/u,ce="https://relative.invalid/",h=64,u=(e,t)=>typeof t=="string"&&e.includes(t),s=e=>typeof e=="string"?JSON.stringify(e.length>h?`${e.slice(0,h)}…`:e):typeof e,T=e=>u(y,e),ue=e=>u(ee,e),P=e=>u(te,e),S=e=>u(ne,e),fe=e=>u(re,e),de=e=>u(oe,e),Ee=e=>u(se,e),g=e=>typeof e=="string"&&le.test(e),pe=(e,t)=>{if(typeof e!="string")return!1;try{return t.includes(new URL(e,ce).protocol)}catch{return!1}},d=e=>{if(e===null||typeof e!="object")return"a failure must be an object";const{reason:t,code:n}=e;return T(t)?n!==void 0&&!g(n)?`a failure code must be 1 to 64 lowercase letters, digits or hyphens; got ${s(n)}`:null:`unknown failure reason ${s(t)}`},L=e=>{if(e===null||typeof e!="object")return"an entry must be an object";const{name:t,path:n,type:r,mimeType:o,modifiedAt:i,children:a,lazy:l}=e;return typeof t!="string"||t===""?"an entry needs a non-empty name":typeof n!="string"||!R(n)?"an entry needs an acceptable path":ue(r)?o!==void 0&&typeof o!="string"?"an entry mimeType must be a string":i!==void 0&&!Number.isSafeInteger(i)?`an entry modifiedAt must be a safe integer of epoch milliseconds; got ${s(i)}`:l!==void 0&&typeof l!="boolean"?"an entry lazy flag must be a boolean":a!==void 0&&!Array.isArray(a)?"entry children must be an array":r==="file"&&(a!==void 0||l===!0)?"a file entry cannot have children or be lazy":l===!0&&Array.isArray(a)&&a.length>0?"a lazy directory must not list children":null:`an entry type must be "file" or "directory"; got ${s(r)}`},N=e=>{if(L(e)!==null)return!1;const{children:t}=e;return t===void 0||t.every(N)},D=e=>{if(e===null||typeof e!="object")return!1;const{status:t,entries:n,failure:r}=e;return t==="ok"?Array.isArray(n)&&n.every(N):t==="error"&&d(r)===null},Re=e=>{if(e===null||typeof e!="object")return!1;const{status:t,ancestors:n,failure:r}=e;return t==="ok"?n===null||v(n):t==="error"&&d(r)===null},v=e=>Array.isArray(e)&&e.every(t=>typeof t=="string"&&R(t))&&new Set(e).size===e.length,me=e=>{if(e===null||typeof e!="object")return!1;const{status:t,source:n,ancestors:r,failure:o}=e;return t==="ok"?n===null&&r===null||typeof n=="string"&&n!==""&&v(r):t==="error"&&d(o)===null},ye=e=>{if(e===null||typeof e!="object")return!1;const{status:t,loadedAt:n}=e;return t==="ok"&&!(Number.isSafeInteger(n)&&n>=0)?!1:D(e)},A=e=>{if(e===null||typeof e!="object")return"a heading must be an object";const{text:t,depth:n,id:r}=e;return typeof t!="string"||typeof r!="string"?"a heading needs text and id strings":typeof n!="number"||!Number.isInteger(n)||n<O.min||n>O.max?`a heading depth must be an integer in 1..6; got ${String(n)}`:null},w=e=>{if(e===null||typeof e!="object")return"a document must be an object";const t=e,{kind:n}=t;if(!Ee(n))return`unknown document kind ${s(n)}`;if(n==="failure")return d(t.failure);if(typeof t.name!="string")return"a document needs a name string";switch(n){case"markdown":{const{htmlContent:r,headings:o}=t;if(typeof r!="string"||!Array.isArray(o))return"a markdown document needs htmlContent and headings";for(const i of o){const a=A(i);if(a!==null)return a}return ge(t.edit)}case"text":return typeof t.text!="string"||typeof t.truncated!="boolean"?"a text document needs text and truncated":c(t.url)?null:"a text document needs a root-relative url";case"image":return c(t.url)?S(t.imageType)?null:`unknown image type ${s(t.imageType)}`:"an image document needs a root-relative url";case"media":return c(t.url)?P(t.mediaType)?null:`unknown media type ${s(t.mediaType)}`:"a media document needs a root-relative url";case"spreadsheet":return c(t.url)?I(t):"a spreadsheet document needs a root-relative url";case"file":return c(t.url)?null:"a file document needs a root-relative url"}},k=e=>w(e)===null,_e=e=>k(e)&&(e.kind==="text"||e.kind==="failure"),ge=e=>{if(e===null)return null;if(typeof e!="object")return"a markdown document's edit must be null or an object";const{kind:t,href:n}=e;return t==="inline"?n===void 0?null:"an inline edit carries no href":t==="draft"?n===void 0?null:"a draft edit carries no href":t!=="external"?`unknown edit kind ${s(t)}`:j(n)},Ae=e=>{if(e===null)return null;if(typeof e!="object")return"a spreadsheet document's edit must be null or an object";const{kind:t,href:n}=e;return t!=="external"?`a spreadsheet document's edit must be external; got ${s(t)}`:j(n)},I=e=>fe(e.format)?typeof e.firstSheetOnly!="boolean"?"a spreadsheet document needs a boolean firstSheetOnly":Ae(e.edit):`unknown spreadsheet format ${s(e.format)}`,j=e=>Oe(e)?null:`an external edit needs an absolute https: href; got ${s(e)}`,Oe=e=>{if(typeof e!="string")return!1;try{return new URL(e).protocol==="https:"}catch{return!1}},f=e=>typeof e=="string"&&e.length>0&&e.length<=_,he=e=>c(e.href)?null:`a grant needs a root-relative href; got ${s(e.href)}`,$=e=>{if(e===null||typeof e!="object")return"a revision must be an object";const{id:t,modifiedAt:n,size:r,author:o,kept:i,current:a}=e;return f(t)?n!==null&&(typeof n!="string"||Number.isNaN(Date.parse(n)))?`a revision's modifiedAt must be a date-time string or null; got ${s(n)}`:typeof r!="number"||!Number.isSafeInteger(r)||r<0?`a revision's size must be a non-negative integer; got ${s(r)}`:o!==null&&typeof o!="string"?`a revision's author must be a string or null; got ${s(o)}`:typeof i!="boolean"||typeof a!="boolean"?"a revision needs kept and current booleans":null:`a revision id must be a non-empty string of at most ${_} characters; got ${s(t)}`},E=(e,t)=>{if(e===null||typeof e!="object")return"an answer must be an object";const n=e,{kind:r}=n;if(r==="failure")return d(n.failure);if(typeof r!="string"||!t.includes(r))return`unexpected answer kind ${s(r)}`;switch(r){case"grant":return he(n);case"edit":return typeof n.text!="string"||typeof n.history!="boolean"?"an edit source needs text and history":f(n.version)?null:`an edit source needs a version; got ${s(n.version)}`;case"draft":return typeof n.text=="string"?null:"a draft source needs text";case"saved":return f(n.version)?null:`a saved answer needs a version; got ${s(n.version)}`;case"conflict":return typeof n.text!="string"?"a conflict needs the current text":f(n.version)?null:`a conflict needs the current version; got ${s(n.version)}`;case"preview":{const{htmlContent:o,headings:i}=n;if(typeof o!="string"||!Array.isArray(i))return"a preview needs htmlContent and headings";for(const a of i){const l=A(a);if(l!==null)return l}return null}case"revisions":{if(!Array.isArray(n.revisions))return"revisions need an array";for(const o of n.revisions){const i=$(o);if(i!==null)return i}return null}case"revision":return typeof n.text!="string"?"a revision answer needs text":f(n.id)?null:`a revision answer needs an id; got ${s(n.id)}`;default:return`unexpected answer kind ${s(r)}`}},be=Object.freeze(["edit","draft","grant"]),xe=Object.freeze(["saved","conflict","grant"]),X=Object.freeze(["preview"]),Te=Object.freeze(["revisions"]),Pe=Object.freeze(["revision"]),Se=e=>E(e,be)===null,Le=e=>E(e,xe)===null,Ne=e=>E(e,X)===null,De=e=>E(e,Te)===null,ve=e=>E(e,Pe)===null,we=e=>e!==null&&typeof e=="object"&&e.kind==="unavailable"?null:E(e,X),ke=(e,t)=>({kind:"failure",failure:C(e,t)}),C=(e,t)=>g(t)?{reason:e,code:t}:{reason:e},Ie=Object.freeze(["tree","children","ancestors","reveal","document","text","edit","save","preview","revisions","revision","refresh","asset","link-card"]),p=Object.freeze({source:"source",path:"path",version:"v",base:"base",revision:"revision",display:"as"}),je="asset",$e="link-card",Xe=(e,t,n)=>{const r=`${e}/${je}?${p.path}=${encodeURIComponent(t)}`;return n===null?r:`${r}&${p.version}=${encodeURIComponent(n)}`},U="text",Ce=e=>{if(!e.includes("?"))throw new RangeError(`[markdown-explorer] an asset URL always carries a query; got ${JSON.stringify(e)}`);return`${e}&${p.display}=${U}`},Ue=e=>{const t=e.getAll(p.display);return t.length===0?"file":t.length===1&&t[0]===U?"text":null},He=e=>`${e}/${$e}`,ze="X-Markdown-Explorer-Scope",Fe="X-Markdown-Explorer",Ve="refresh",Me="edit",Ge="text/markdown",Ke=e=>Ie.includes(e),H=Object.freeze({invalid:400,unauthorized:401,forbidden:403,"not-found":404,"too-large":413,"not-configured":500,unsupported:500,failed:500}),Ye=e=>{const[t,...n]=y.filter(r=>H[r]===e);return t!==void 0&&n.length===0?t:"failed"};exports.DEFAULT_DENIED_PATH_SEGMENTS=b;exports.EXPLORER_DATA_QUERY=p;exports.EXPLORER_DRAFT_MEDIA_TYPE=Ge;exports.EXPLORER_EDIT_PROOF=Me;exports.EXPLORER_EDIT_TOKEN_MAX_LENGTH=_;exports.EXPLORER_FAILURE_REASONS=y;exports.EXPLORER_FAILURE_STATUS=H;exports.EXPLORER_LINK_PROTOCOLS=ae;exports.EXPLORER_MAX_HEADINGS=ie;exports.EXPLORER_PROOF_HEADER=Fe;exports.EXPLORER_REFRESH_PROOF=Ve;exports.EXPLORER_SCOPE_HEADER=ze;exports.MAX_DOCUMENT_PATH_LENGTH=4096;exports.documentViolation=w;exports.draftAnswerViolation=we;exports.entryViolation=L;exports.explorerAssetHref=Xe;exports.explorerLinkCardEndpoint=He;exports.explorerPlainTextHref=Ce;exports.failureDocument=ke;exports.failureOf=C;exports.failureReasonOfStatus=Ye;exports.failureViolation=d;exports.headingViolation=A;exports.isAcceptableDocumentPath=R;exports.isAcceptableUrl=pe;exports.isDeniedPath=Z;exports.isExplorerAncestorsResult=Re;exports.isExplorerChildrenResult=D;exports.isExplorerDataOperation=Ke;exports.isExplorerDocument=k;exports.isExplorerEditAnswer=Se;exports.isExplorerEditToken=f;exports.isExplorerFailureCode=g;exports.isExplorerFailureReason=T;exports.isExplorerImageType=S;exports.isExplorerMediaType=P;exports.isExplorerNoticeTone=de;exports.isExplorerPreviewAnswer=Ne;exports.isExplorerRevealResult=me;exports.isExplorerRevisionAnswer=ve;exports.isExplorerRevisionsAnswer=De;exports.isExplorerSaveAnswer=Le;exports.isExplorerTextAnswer=_e;exports.isExplorerTreeResult=ye;exports.isRootRelativeUrl=c;exports.lastPathSegment=V;exports.readExplorerAssetDisplay=Ue;exports.resolvePathRules=B;exports.revisionViolation=$;exports.spreadsheetFieldsViolation=I;
|