/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}:root{--bg: #1b1b1f;--panel: #26262b;--panel-2: #2e2e34;--border: #3a3a42;--text: #e8e8ea;--muted: #9a9aa3;--accent: #4c8dff;--accent-hover: #3a7bef;--ok: #43c463;--warn: #e6b54a;--danger: #ff5f56;--radius: 12px;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{margin:0;height:100%}body{background:var(--bg);color:var(--text);font-size:15px;overscroll-behavior:none}button{font-family:inherit;color:var(--text);background:var(--panel-2);border:1px solid var(--border);border-radius:10px;padding:11px 14px;font-size:15px;cursor:pointer}button:active:not(:disabled){transform:scale(.97)}button:disabled{opacity:.45}button.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}button.ghost{background:transparent}input{font-family:inherit;font-size:16px;color:var(--text);background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:12px 14px;width:100%}input:focus{outline:none;border-color:var(--accent)}.mono{font-family:SF Mono,ui-monospace,Menlo,monospace}.muted{color:var(--muted)}.screen{display:flex;flex-direction:column;height:100%}.appbar{display:flex;align-items:center;gap:10px;padding:calc(var(--safe-top) + 12px) 16px 12px;background:var(--panel);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:5}.appbar .title{font-weight:700;font-size:17px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.appbar .iconbtn{background:transparent;border:none;padding:6px 8px;font-size:18px;color:var(--muted)}.scroll{flex:1;overflow-y:auto;padding:16px;-webkit-overflow-scrolling:touch}.dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex-shrink:0;background:var(--muted)}.dot.ok{background:var(--ok);box-shadow:0 0 6px #43c463b3}.dot.warn{background:var(--warn)}.dot.off{background:var(--danger)}.card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin-bottom:14px}.section-title{font-size:13px;color:var(--muted);margin:18px 4px 8px;text-transform:uppercase;letter-spacing:.04em}.segmented{display:flex;background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:4px;gap:4px;margin:14px 0}.segmented button{flex:1;background:transparent;border:none;border-radius:7px;padding:9px 0;color:var(--muted);font-size:14px}.segmented button.active{background:var(--accent);color:#fff;font-weight:600}.ws-card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:14px;overflow:hidden}.ws-head{padding:14px 16px;border-bottom:1px solid var(--border)}.ws-head .key{font-weight:700}.wt-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-top:1px solid rgba(255,255,255,.04)}.wt-row:first-child{border-top:none}.wt-name{overflow:hidden}.wt-name strong{display:block;font-size:15px}.wt-name .path{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60vw}.open-btn{flex-shrink:0;background:var(--accent);border-color:var(--accent);color:#fff;padding:9px 14px;border-radius:9px;font-size:14px;font-weight:600}.term-item{display:flex;align-items:center;gap:10px;padding:14px 16px}.banner{padding:12px 14px;border-radius:10px;margin-bottom:14px;font-size:14px}.banner.error{background:#ff5f5624;border:1px solid var(--danger)}.pair-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:28px;text-align:center;gap:18px}.pair-wrap h1{font-size:22px;margin:0}.scanner{width:100%;max-width:320px;aspect-ratio:1;border-radius:16px;overflow:hidden;background:#000;position:relative;border:2px solid var(--border)}.scanner video{width:100%;height:100%;object-fit:cover}.scanner .frame{position:absolute;top:14%;right:14%;bottom:14%;left:14%;border:3px solid var(--accent);border-radius:14px;box-shadow:0 0 0 100vmax #00000040}.term-screen{display:flex;flex-direction:column;height:100%;background:#1b1b1f}.term-host-wrap{flex:1;min-height:0;overflow:auto;padding:6px 8px}.term-host{height:100%}.toolbar{border-top:1px solid var(--border);background:var(--panel);padding:8px 8px calc(var(--safe-bottom) + 8px)}.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;-webkit-overflow-scrolling:touch}.chip{flex-shrink:0;background:var(--panel-2);border:1px solid var(--border);border-radius:100px;padding:8px 14px;font-size:13px;white-space:nowrap}.keys{display:flex;gap:6px}.keys button{flex:1;padding:10px 0;font-size:13px;border-radius:8px}.keys button.held{background:var(--accent);border-color:var(--accent);color:#fff}.keys button.enter{flex:1.6;background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.cmdbar{display:flex;gap:8px;margin-top:8px}.cmdbar input{flex:1}.cmdbar button{flex-shrink:0}.center-msg{display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;height:100%;color:var(--muted);padding:28px;text-align:center}.spin{width:26px;height:26px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.empty{text-align:center;color:var(--muted);padding:30px 0}
