@plume-canvas/plugin-agent 0.1.4 → 0.1.6

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.
@@ -1,4 +1,4 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.md[data-v-c8442bfe]{color:var(--ui-ink);word-break:break-word;font-size:14px;line-height:1.65}.md[data-v-c8442bfe] .md-p{margin:0 0 6px}.md[data-v-c8442bfe] .md-p:last-child{margin-bottom:0}.md[data-v-c8442bfe] .md-h{margin:8px 0 4px;font-size:15px;font-weight:600}.md[data-v-c8442bfe] .md-list{margin:4px 0 6px;padding-left:20px;list-style:outside}.md[data-v-c8442bfe] .md-list li{list-style:inherit;margin:2px 0}.md[data-v-c8442bfe] .md-list li::marker{color:var(--ui-ink-dim,#919191)}.md[data-v-c8442bfe] code{background:var(--ui-veil,#0000000d);border-radius:5px;padding:1px 5px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11px}.md[data-v-c8442bfe] .md-code{border:1px solid var(--ui-line,#e2e5ea);background:var(--ui-panel-soft,#fff);border-radius:8px;margin:6px 0;padding:8px 10px;overflow-x:auto}.md[data-v-c8442bfe] .md-code code{white-space:pre;background:0 0;padding:0;font-size:11px}.md[data-v-c8442bfe] a{color:var(--ui-accent,#0891b2);text-decoration:underline}.tvb[data-v-48ba766f]{flex-direction:column;gap:8px;min-width:0;display:flex}.tvb-io[data-v-48ba766f]{flex-direction:column;gap:4px;min-width:0;display:flex}.tvb-io-label[data-v-48ba766f]{letter-spacing:.04em;color:var(--ui-ink-dim,#919191);font-size:11px;font-weight:600}.tvc-pre[data-v-48ba766f],.tvb-pre[data-v-48ba766f]{background:var(--ui-code-bg,#00000040);white-space:pre-wrap;word-break:break-all;max-width:100%;max-height:320px;color:var(--ui-ink-dim,#919191);border-radius:8px;margin:0;padding:8px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;line-height:18px;overflow:auto}.tvc[data-v-48ba766f]{flex-direction:column;gap:6px;min-width:0;display:flex}.tvc-body[data-v-48ba766f]{flex-direction:column;gap:6px;min-width:0;max-height:200px;display:flex;overflow:auto}.tvc-head[data-v-48ba766f]{min-width:0;color:var(--ui-ink,#f7f7f7);align-items:center;gap:6px;font-size:12px;display:flex}.tvc-head-icon[data-v-48ba766f]{color:var(--ui-ink-dim,#919191);flex:none;place-items:center;display:grid}.tvc-title[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ui-ink,#f7f7f7);flex:auto;font-size:12px;font-weight:600;overflow:hidden}.tvc-badge[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;background:var(--ui-accent-soft,#0891b21f);min-width:0;max-width:60%;color:var(--ui-accent-hover,#0e7490);border-radius:999px;flex:0 auto;margin-left:auto;padding:1px 7px;font-size:11px;line-height:16px;overflow:hidden}.tvc-chips-wrap[data-v-48ba766f]{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.tvc-chips-label[data-v-48ba766f]{letter-spacing:.04em;color:var(--ui-ink-dim,#919191);flex:none;margin-right:2px;font-size:11px;font-weight:600}.tvc-chips[data-v-48ba766f]{flex-wrap:wrap;gap:4px;min-width:0;display:flex}.tvc-chip[data-v-48ba766f]{background:var(--ui-chip,#ffffff1a);max-width:100%;color:var(--ui-ink,#f7f7f7);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:2px 8px;font-size:11px;line-height:17px;display:inline-flex;overflow:hidden}.tvc-chip-count[data-v-48ba766f]{color:var(--ui-ink,#f7f7f7);font-variant-numeric:tabular-nums;flex:none;font-weight:700}.tvc-media[data-v-48ba766f]{align-items:center;gap:8px;min-width:0;display:flex}.tvc-media-thumb[data-v-48ba766f]{object-fit:cover;border:1px solid var(--ui-line,#363636);background:var(--ui-veil,#ffffff0a);cursor:zoom-in;border-radius:8px;flex:none;width:40px;height:40px;display:block}.tvc-media-thumb[data-v-48ba766f]:focus-visible{outline:2px solid var(--ui-accent,#0891b2);outline-offset:1px}.tvc-media-broken[data-v-48ba766f]{border:1px dashed var(--ui-line,#363636);background:var(--ui-veil,#ffffff0a);width:40px;height:40px;color:var(--ui-ink-dim,#919191);border-radius:8px;flex:none;place-items:center;display:grid}.tvc-media-play[data-v-48ba766f]{border:1px solid var(--ui-line,#363636);background:var(--ui-veil,#ffffff0f);width:40px;height:40px;color:var(--ui-ink-dim,#919191);border-radius:8px;flex:none;position:relative}.tvc-media-play[data-v-48ba766f]:hover{color:var(--ui-ink,#f7f7f7);border-color:var(--ui-ink-dim,#919191)}.tvc-media-play[data-v-48ba766f]:focus-visible{outline:2px solid var(--ui-accent,#0891b2);outline-offset:1px}.tvc-media-play-badge[data-v-48ba766f]{color:var(--ui-ink,#f7f7f7);font-size:8px;line-height:1;position:absolute;bottom:1px;right:2px}.tvc-media-text[data-v-48ba766f]{flex-direction:column;gap:1px;min-width:0;display:flex}.tvc-media-title[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#f7f7f7);font-size:12px;overflow:hidden}.tvc-media-sub[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-dim,#919191);font-size:11px;overflow:hidden}.tvc-rows[data-v-48ba766f]{flex-direction:column;gap:2px;display:flex}.tvc-row[data-v-48ba766f]{border-radius:8px;align-items:center;gap:8px;min-width:0;padding:3px 4px;display:flex}.tvc-row-icon[data-v-48ba766f]{background:var(--ui-chip,#ffffff1a);width:22px;height:22px;color:var(--ui-ink-dim,#919191);border-radius:6px;flex:none;place-items:center;display:grid}.tvc-row-text[data-v-48ba766f]{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.tvc-row-title[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#f7f7f7);font-size:12px;overflow:hidden}.tvc-row-sub[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-dim,#919191);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11px;overflow:hidden}.tvc-row-tag[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;background:var(--ui-chip,#ffffff1a);min-width:0;max-width:40%;color:var(--ui-ink-dim,#919191);border-radius:999px;flex:0 auto;padding:1px 7px;font-size:11px;line-height:16px;overflow:hidden}.tvc-more[data-v-48ba766f]{color:var(--ui-ink-dim,#919191);margin:0;padding:0 4px;font-size:11px}.tvc-imgs[data-v-48ba766f]{align-items:center;gap:6px;min-width:0;display:flex;overflow:hidden}.tvc-img[data-v-48ba766f]{margin:0}.tvc-img img[data-v-48ba766f]{object-fit:cover;border:1px solid var(--ui-line,#363636);background:var(--ui-veil,#ffffff0a);cursor:zoom-in;border-radius:8px;width:40px;height:40px;display:block}.tvc-img img[data-v-48ba766f]:focus-visible{outline:2px solid var(--ui-accent,#0891b2);outline-offset:1px}.tvc-img-broken[data-v-48ba766f]{border:1px dashed var(--ui-line,#363636);background:var(--ui-veil,#ffffff0a);width:40px;height:40px;color:var(--ui-ink-dim,#919191);border-radius:8px;place-items:center;display:grid}.tvc-img-more[data-v-48ba766f]{border:1px dashed var(--ui-line,#363636);width:40px;height:40px;color:var(--ui-ink-dim,#919191);border-radius:8px;flex:none;place-items:center;font-size:11px;display:grid}.tvc-img-sum[data-v-48ba766f]{min-width:0;color:var(--ui-ink-dim,#919191);text-overflow:ellipsis;white-space:nowrap;margin-left:2px;font-size:11px;overflow:hidden}.tvc-progress-wrap[data-v-48ba766f]{align-items:center;gap:8px;display:flex}.tvc-progress[data-v-48ba766f]{background:var(--ui-veil,#ffffff14);border-radius:999px;flex:1;height:6px;overflow:hidden}.tvc-progress-fill[data-v-48ba766f]{background:var(--ui-accent,#0891b2);border-radius:999px;height:100%;transition:width .24s}.tvc-progress-text[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:55%;color:var(--ui-ink-dim,#919191);font-variant-numeric:tabular-nums;flex:0 auto;font-size:11px;overflow:hidden}.tvc-note[data-v-48ba766f]{white-space:pre-wrap;word-break:break-word;margin:0;font-size:12px;line-height:20px}.tvc-note.is-ok[data-v-48ba766f]{color:var(--ui-accent-hover,#0e7490)}.tvc-note.is-error[data-v-48ba766f]{color:var(--ui-danger,#ef4444)}.tvc-note.is-info[data-v-48ba766f]{color:var(--ui-ink-dim,#919191)}.tvc-head-toggle[data-v-48ba766f]{color:var(--ui-ink-dim,#919191);flex:none;margin-inline:-6px -4px}.tvc-head-toggle[data-v-48ba766f]:hover,.tvc-head-toggle[data-v-48ba766f]:active,.tvc-head-toggle[aria-expanded=true][data-v-48ba766f]{color:var(--ui-ink,#f7f7f7);background:0 0!important}.tvc-details-caret[data-v-48ba766f]{flex:none;transition:transform .18s}.tvc-details-caret.is-open[data-v-48ba766f]{transform:rotate(90deg)}.tvc-details[data-v-48ba766f]{max-height:var(--ac-expand-max-height,min(360px, 50vh));flex-direction:column;gap:8px;display:flex;overflow-y:auto}.tvc-details .tvc-pre[data-v-48ba766f]{max-height:max(240px, calc(var(--ac-expand-max-height,min(360px, 50vh)) - 60px))}.tvc-details-row[data-v-48ba766f]{align-items:center;gap:6px;min-width:0;display:flex}.tvc-details-block[data-v-48ba766f]{flex-direction:column;gap:4px;min-width:0;display:flex}.tvc-details-label[data-v-48ba766f]{letter-spacing:.04em;color:var(--ui-ink-dim,#919191);flex:none;font-size:11px;font-weight:600}.tvc-details-tool[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;background:var(--ui-veil,#ffffff0f);min-width:0;color:var(--ui-ink,#f7f7f7);border-radius:6px;padding:2px 6px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11px;overflow:hidden}@media (prefers-reduced-motion:reduce){.tvc-progress-fill[data-v-48ba766f],.tvc-details-caret[data-v-48ba766f]{transition:none}}.ac-scrollarea[data-v-1da6411b]{flex-direction:column;flex:1;min-width:0;min-height:0;padding-right:0;display:flex;overflow:hidden}.ac-scrollarea[data-v-1da6411b] [data-slot=scroll-area]{flex-direction:column;flex:1;width:100%;height:100%;min-height:0;padding-right:0;display:flex;overflow:visible}.ac-scrollarea[data-v-1da6411b] [data-slot=scroll-area-viewport]{flex-direction:column;flex:1 1 0;width:100%;min-width:0;height:100%;min-height:0;max-height:100%;display:flex}.ac-scrollarea[data-v-1da6411b] [data-slot=scroll-area-viewport]>div:not([data-agent-scroll-body]){flex-direction:column;flex:auto;height:100%;min-height:0;max-height:none;display:flex}.ac-scrollarea[data-direction=y][data-v-1da6411b] [data-slot=scroll-area-viewport]{overflow:hidden auto}.ac-scrollarea[data-direction=x][data-v-1da6411b] [data-slot=scroll-area-viewport]{overflow:auto hidden}.ac-scrollarea[data-direction=both][data-v-1da6411b] [data-slot=scroll-area-viewport]{overflow:auto}.ac-scrollarea-content[data-v-1da6411b]{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.ac-scrollarea-fill[data-v-1da6411b]{flex-direction:column;flex:none;display:flex}.ac-scrollarea-fill.is-fill-height[data-v-1da6411b]{flex:1 1 0;height:100%;min-height:0}.ac-approval[data-v-ea65229c]{flex-direction:column;align-items:stretch;gap:8px;max-width:100%;margin:4px 0 10px;display:flex}.ac-approval-head[data-v-ea65229c]{align-items:center;gap:8px;min-width:0;display:flex}.ac-approval-media[data-v-ea65229c]{color:var(--ui-warn,#e3a25f);flex:none}.ac-approval-title[data-v-ea65229c]{min-width:0;color:var(--ui-ink,#f7f7f7);word-break:break-word;margin:0;font-size:13px;font-weight:600;line-height:20px}.ac-approval-block[data-v-ea65229c]{flex-direction:column;gap:4px;min-width:0;display:flex}.ac-approval-label[data-v-ea65229c]{color:var(--ui-ink-dim,#919191);font-size:11px;line-height:16px}.ac-approval-cmd[data-v-ea65229c]{border:1px solid var(--ui-line,#363636);background:var(--ui-code-bg,#00000040);max-width:100%;max-height:96px;color:var(--ui-ink,#f7f7f7);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:8px;margin:0;padding:8px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px;line-height:1.7;overflow:auto}.ac-approval-desc[data-v-ea65229c]{word-break:break-word;min-width:0;max-width:100%}.ac-approval-foot[data-v-ea65229c]{justify-content:flex-end;gap:8px;display:flex}.ac-earlier{min-height:8px;color:var(--ui-ink-mute,#9aa3af);justify-content:center;align-items:center;gap:6px;padding:6px 0 2px;font-size:11px;display:flex}.ac-earlier-loading{align-items:center;gap:6px;display:inline-flex}.ac-earlier-hint{-webkit-user-select:none;user-select:none}.ac-welcome{flex-direction:column;align-items:center;gap:20px;padding-top:32px;display:flex}.ac-welcome-orb{background:linear-gradient(160deg,#7dd3fc,#0891b2 55%,#0e7490);border-radius:999px;flex:none;width:44px;height:44px;box-shadow:0 0 30px #0891b273}.ac-welcome-title{color:var(--ui-ink,#f7f7f7);margin:0;padding:0 6px;font-size:16px;font-weight:500;line-height:24px}.ac-model-split{align-items:center;gap:8px;margin:4px 0 12px;display:flex}.ac-model-split-line{background:var(--ui-line,#363636);flex:1;min-width:8px;height:1px}.ac-model-split-badge{min-width:0;max-width:100%}.ac-model-split-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:180px;color:var(--ui-ink,#f7f7f7);overflow:hidden}.ac-user-text{white-space:pre-wrap}.ac-user-images{flex-wrap:wrap;justify-content:flex-end;align-self:flex-end;align-items:flex-start;gap:8px;max-width:100%;margin-top:8px;display:flex}.ac-user-images .ac-user-image{background:var(--ui-veil,#ffffff0f);cursor:zoom-in;border:0;border-radius:12px;width:200px;max-width:100%;height:200px;padding:0;overflow:hidden}.ac-user-image img{object-fit:cover;width:100%;height:100%;display:block}.ac-user-image:hover,.ac-user-image:active{background:var(--ui-veil,#ffffff0f)}.ac-editing-badge{background:color-mix(in srgb, var(--ui-warn,#e3a25f) 16%, transparent);height:20px;color:var(--ui-warn,#e3a25f);border-radius:999px;align-self:flex-end;align-items:center;gap:4px;margin-top:4px;padding:0 4px 0 8px;font-size:11px;font-weight:600;display:inline-flex}.ac-editing-x:hover,.ac-editing-x:active,.ac-editing-x[aria-expanded=true]{background:0 0!important}.ac-editing-x:hover{color:var(--ui-ink,#f7f7f7)}.ac-stopped{color:var(--ui-danger,#ef4444);align-items:center;gap:6px;margin:6px 0 0;font-size:13px;line-height:22px;display:flex}.ac-notice{color:var(--ui-ink-dim,#919191);margin:6px 0 0;font-size:12px}.ac-hint-card{background:var(--ui-veil,#ffffff0f);width:100%;color:var(--ui-ink-dim,#919191);border-radius:12px;padding:10px 28px 10px 12px;font-size:12px;line-height:1.6;position:relative}.ac-hint-text{margin:0}.ac-hint-text strong{color:var(--ui-ink,#f7f7f7)}.ac-hint-close{color:var(--ui-ink-dim,#919191);position:absolute;top:2px;right:2px}.ac-hint-close:hover{color:var(--ui-ink,#f7f7f7)}.ac-suggestions{flex-direction:column;width:100%;display:flex}.ac-suggestion{width:100%;color:var(--ui-ink-dim,#919191);text-align:left;justify-content:flex-start;gap:10px;font-size:14px}.ac-suggestion>span:not(.ac-suggestion-arrow){text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.ac-suggestion .ac-suggestion-arrow{flex:none}.ac-suggestion-arrow{color:var(--ui-ink-dim,#919191)}.ac-msg{margin-bottom:16px;display:flex}.ac-msg.user{margin-bottom:4px}.ac-compact-note,.ac-error-bar{align-items:flex-start;gap:8px;margin:4px 0 12px;font-size:12px;line-height:18px;display:flex}.ac-compact-note{background:var(--ui-veil,#ffffff0f);color:var(--ui-ink-dim,#919191);border-radius:10px;padding:8px 10px}.ac-error-bar{flex:1;min-width:0}.ac-note-x{color:inherit;flex:none;margin-top:-6px;margin-bottom:-6px;margin-left:auto}.ac-bubble{min-width:0}.ac-user-line{color:var(--ui-ink,#f7f7f7);word-break:break-word;max-height:192px;margin:0;font-size:14px;line-height:24px;display:block;overflow:hidden}.ac-user-line.is-open{max-height:none}.ac-user-toggle{color:var(--ui-ink-dim,#919191);align-self:flex-start;gap:4px;margin:6px 0 0;font-size:12px;font-weight:600;line-height:16px}.ac-user-bubble{min-width:0;max-width:85%}.ac-user-bubble--editing [data-slot=bubble-content]{box-shadow:inset 0 0 0 1.5px var(--ui-warn,#e3a25f)}.ac-sent-tag{background:var(--ui-hover-strong,#0000001a);vertical-align:bottom;border-radius:6px;align-items:center;gap:4px;max-width:200px;height:22px;margin:0 2px;padding:0 6px 0 4px;display:inline-flex}.ac-sent-tag.is-clickable{cursor:pointer;transition:background .14s}.ac-sent-tag.is-clickable:hover{background:var(--ui-accent-soft,#0891b229)}.ac-sent-tag.is-clickable:focus-visible{outline:2px solid var(--ui-accent,#0891b2);outline-offset:1px}.ac-sent-tag-icon{color:var(--ui-ink-dim,#919191);flex:none;place-items:center;display:grid}.ac-sent-tag-icon :deep(svg){width:13px;height:13px}.ac-sent-tag-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ui-ink,#f7f7f7);font-size:12px;font-weight:500;line-height:1;overflow:hidden}.ac-sent-tag.is-compact{height:18px;padding:0 5px;font-size:11px}.ac-msg,.ac-msg.user .ac-bubble{position:relative}.ac-msg-actions{opacity:0;pointer-events:none;justify-content:flex-end;align-items:center;gap:2px;height:22px;margin-top:4px;transition:opacity .16s;display:flex}.ac-msg.user:hover .ac-msg-actions,.ac-msg-actions:focus-within{opacity:1;pointer-events:auto}.ac-msg-time{color:var(--ui-ink-dim,#919191);margin-right:4px;font-size:11px}.ac-msg-btn{color:var(--ui-ink-dim,#919191)}.ac-msg-btn:hover,.ac-msg-btn:active{background:0 0}.ac-msg-btn:hover{color:var(--ui-ink,#f7f7f7)}.ac-msg-btn .is-ok{color:var(--ui-accent,#0891b2)}.ac-bubble :deep(.md){color:var(--ui-ink,#f7f7f7);font-size:14px;line-height:24px}.ac-bubble :deep(.md .md-p){margin:0 0 10px}.ac-bubble :deep(.md .md-p:last-child){margin-bottom:0}.ac-bubble :deep(.md .md-h){margin:14px 0 8px;font-size:14px;font-weight:700}.ac-bubble :deep(.md .md-list){margin:6px 0 10px;padding-left:24px;list-style:outside}.ac-bubble :deep(.md .md-list li){margin:4px 0}.ac-tool-card{border:1px solid var(--ui-line,#e2e5ea);background:var(--ui-veil,#0000000a);box-shadow:none;border-radius:10px;gap:6px;margin:6px 0;padding:6px 8px}.ac-tool-card [data-slot=card-content]{padding:0}.ac-spin{animation:.9s linear infinite ac-rotate}.ac-onboard{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.ac-onboard strong{font-size:15px}.ac-onboard p{color:var(--ui-ink-dim,#919191);margin:0;font-size:13px}.ac-onboard-icon{color:var(--ui-accent,#0891b2)}.ac-onboard-path{opacity:.75;word-break:break-all;font-size:12px}.ac-branch-nav{justify-content:center;align-items:center;gap:2px;margin:4px 0 12px;display:flex}.ac-pick-box[aria-pressed=true],.ac-mcp-card.is-picked .ac-pick-box,.ac-tool-row.is-picked .ac-pick-box{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent,#0891b2)}.ac-pick-box[aria-pressed=true] :deep(svg){opacity:1}.ac-mcp-card.is-picked .ac-pick-box :deep(svg){opacity:1}.ac-tool-row.is-picked .ac-pick-box :deep(svg){opacity:1}.ac-tool-row{text-align:left;background:0 0;border:0;border-radius:7px;gap:7px;width:100%;padding:4px 6px}.ac-tool-row:hover{background:var(--ui-panel,#fff);box-shadow:var(--ui-shadow-e1,0 2px 10px #0000000a)}.ac-tool-row.is-picked{background:var(--ui-accent-soft,#0891b214);box-shadow:none}.ac-tool-copy{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.ac-tool-name{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 11.5px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-tool-desc{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-mute,#9ca3af);font-size:10.5px;overflow:hidden}.ac-empty-state{height:100%;min-height:190px;color:var(--ui-ink-mute,#9ca3af);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:20px;display:flex}.ac-empty-icon{background:var(--ui-veil,#0000000a);width:38px;height:38px;color:var(--ui-ink-mute,#9ca3af);border-radius:12px;place-items:center;margin-bottom:2px;display:grid}.ac-empty-title{color:var(--ui-ink-dim,#6b7280);font-size:12px;font-weight:600}.ac-empty-desc{font-size:11px}.ac-root{height:100%;min-height:0;color:var(--ui-ink,#f7f7f7);--ac-expand-max-height:min(360px, 50vh);flex-direction:column;display:flex;position:relative}.ac-scroll{flex:1;min-height:0;padding:12px 2px 0 16px;overflow-y:auto}.ac-scroll-body{padding-right:14px}.ac-inner{-webkit-user-select:text;user-select:text;flex-direction:column;display:flex}@keyframes ac-rotate{to{transform:rotate(360deg)}}.ac-branch-arrow{color:var(--ui-ink-dim,#919191);flex:none}.ac-branch-arrow:disabled{opacity:.35}.ac-branch-pos{text-align:center;font-variant-numeric:tabular-nums;justify-content:center;min-width:48px}.ac-scroll-wrap{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.ac-to-bottom{z-index:5;border:1px solid var(--ui-line,#363636);background:var(--ui-overlay-solid,#212121);color:var(--ui-ink-dim,#919191);box-shadow:var(--ui-shadow-md,0 18px 44px #00000029);border-radius:999px;transition:color .15s,transform .15s;position:absolute;bottom:12px;left:50%;transform:translate(-50%)}.ac-to-bottom:hover{color:var(--ui-ink,#f7f7f7);transform:translate(-50%)translateY(-1px)}@media (prefers-reduced-motion:reduce){.ac-to-bottom{transition:none}.ac-spin,.ac-pending-spin{animation:none}}.ac-skill-panel[data-v-a0688518]{padding-bottom:8px}.ac-panel-foot[data-v-a0688518]{border-top:1px solid var(--ui-line-soft,#0000000f);background:var(--ui-overlay,#fffffff0);flex:none;align-items:center;gap:8px;min-height:36px;padding:6px 10px;display:flex}.ac-model-foot .ac-selection-summary[data-v-a0688518]{justify-content:flex-start}.ac-menu-hint[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--ui-ink-dim,#919191);font-size:11px;overflow:hidden}.ac-menu-empty[data-v-a0688518]{color:var(--ui-ink-dim,#919191);margin:8px 10px;font-size:12px}.ac-composer[data-v-a0688518]{flex:none;padding:4px 8px 12px;position:relative}.ac-input-box[data-v-a0688518]{border:1px solid var(--ui-line,#363636);background:var(--ui-overlay-solid,#212121);border-radius:16px;flex-direction:column;gap:8px;padding:8px;display:flex;position:relative}@container (width<=300px){.ac-goal-bar[data-v-a0688518]{display:none}}@container (width<=250px){.ac-goal-flag[data-v-a0688518]{display:none}}@media (prefers-reduced-motion:reduce){.ac-queue-pause[data-v-a0688518]{transition:none}}.ac-icon-btn[data-v-a0688518]{background:var(--ui-veil,#0000000a);color:var(--ui-ink-dim,#6b7280);flex:none;position:relative}.ac-icon-btn[data-v-a0688518]:hover{background:var(--ui-hover,#0000000f);color:var(--ui-ink,#111827)}.ac-icon-btn[data-v-a0688518]:active{transform:scale(.96)}.ac-icon-btn[aria-expanded=true][data-v-a0688518]{background:var(--ui-accent-soft,#0891b21a);color:var(--ui-accent-hover,#0e7490)}.ac-option-title[data-v-a0688518]{min-width:0;color:var(--ui-ink,#111827);flex-wrap:nowrap;align-items:center;gap:6px;font-size:13px;font-weight:600;line-height:1.35;display:flex}.ac-option-label[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ac-option-title[data-v-a0688518]>:last-child:not(.ac-option-label){white-space:nowrap;flex:none}.ac-option-desc[data-v-a0688518]{color:var(--ui-ink-dim,#6b7280);white-space:normal;word-break:break-word;margin-top:3px;font-size:12px;line-height:1.45;display:block}.ac-dot-sep[data-v-a0688518]{background:var(--ui-line,#00000014);flex:none;width:1px;height:8px}.ac-check-mark[data-v-a0688518]{width:16px;height:16px;color:var(--ui-ink,#18202b);flex:none;place-items:center;display:grid}.ac-split[data-v-a0688518]{flex:1;min-height:0;display:flex;overflow:hidden}.ac-view-stack[data-v-a0688518]{flex:1;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);min-height:0;display:grid;position:relative}.ac-view-pane[data-v-a0688518]{opacity:0;visibility:hidden;pointer-events:none;flex:1;grid-area:1/1;height:100%;min-height:0;max-height:100%;transition:none;overflow:hidden}.ac-view-pane.is-active[data-v-a0688518]{opacity:1;visibility:visible;pointer-events:auto}@media (prefers-reduced-motion:reduce){.ac-view-pane[data-v-a0688518]{transition:none}}.ac-split-rail[data-v-a0688518]{background:var(--ui-veil,#00000006);flex-direction:column;flex:none;width:168px;min-height:0;padding:6px 0 6px 6px;display:flex}.ac-rail-label[data-v-a0688518]{letter-spacing:.04em;color:var(--ui-ink-mute,#9ca3af);flex:none;padding:4px 8px 6px;font-size:10px;font-weight:700}.ac-rail-scroll[data-v-a0688518]{overscroll-behavior:contain;flex:1;min-height:0}.ac-rail-scroll[data-v-a0688518] .ac-rail-scroll-body{flex-direction:column;gap:2px;padding:0 6px 4px 0;display:flex}.ac-rail-icon[data-v-a0688518],.ac-rail-brand[data-v-a0688518]{flex:none;place-items:center;width:14px;height:14px;display:grid}.ac-rail-brand[data-v-a0688518] svg{width:14px;height:14px}.ac-rail-brand[data-v-a0688518] img{object-fit:contain;border-radius:3px;width:14px;height:14px;display:block}.ac-rail-name[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;text-align:left;flex:1;min-width:0;overflow:hidden}.ac-rail-count[data-v-a0688518]{color:var(--ui-ink-mute,#9ca3af);flex:none;font-size:10px;font-weight:600}.ac-split-rail button[data-v-a0688518]{width:100%;color:var(--ui-ink-dim,#6b7280);border-radius:8px;justify-content:flex-start;gap:8px;padding-inline:8px;font-size:12.5px}.ac-split-rail button[data-v-a0688518]:hover{color:var(--ui-ink,#18202b)}.ac-split-rail button[aria-pressed=true][data-v-a0688518]{background:var(--ui-hover,#0000000f);color:var(--ui-ink,#18202b);box-shadow:none;font-weight:600}.ac-split-rail button[aria-pressed=true][data-v-a0688518]:hover{background:var(--ui-hover-strong,#00000017)}.ac-split-main[data-v-a0688518]{flex-direction:column;flex:1;min-width:0;min-height:0;padding-left:8px;display:flex;overflow:hidden}.ac-split-scroll[data-v-a0688518] .ac-split-scroll-body{flex-direction:column;min-height:100%;display:flex}.ac-split-scroll .ac-empty-state[data-v-a0688518]{flex:1;height:auto;min-height:0}.ac-panel .ac-empty-state[data-v-a0688518]{min-height:190px;color:var(--ui-ink-mute,#9ca3af);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:20px;display:flex}.ac-panel .ac-empty-state[data-v-a0688518]:last-child,.ac-panel-scroll[data-v-a0688518] .ac-panel-scroll-body>.ac-empty-state,.ac-mcp-scroll[data-v-a0688518] .ac-mcp-scroll-body>.ac-empty-state,.ac-menu-scroll[data-v-a0688518] .ac-model-scroll-body>div>.ac-empty-state{flex:1;min-height:0}.ac-menu-scroll[data-v-a0688518] .ac-model-scroll-body>div{flex-direction:column;flex:1;min-height:0;display:flex}.ac-panel .ac-empty-icon[data-v-a0688518]{background:var(--ui-veil,#0000000a);width:38px;height:38px;color:var(--ui-ink-mute,#9ca3af);border-radius:12px;place-items:center;margin-bottom:2px;display:grid}.ac-panel .ac-empty-title[data-v-a0688518]{color:var(--ui-ink-dim,#6b7280);font-size:12px;font-weight:600}.ac-panel .ac-empty-desc[data-v-a0688518]{font-size:11px}.ac-split-scroll[data-v-a0688518]{overscroll-behavior:contain;flex:1;min-width:0;max-width:100%;height:auto;min-height:0;max-height:100%;overflow:hidden}.ac-split-scroll[data-v-a0688518] .ac-split-scroll-body{padding:6px 6px 10px 10px}.ac-split-scroll .ac-model-row-list[data-v-a0688518],.ac-split-scroll .ac-skill-grid--split[data-v-a0688518]{padding-top:8px;padding-bottom:2px}.ac-tile-top[data-v-a0688518]{align-items:flex-start;gap:4px;display:flex}.ac-server-icon[data-v-a0688518]{background:var(--ui-accent-soft,#0891b21a);width:32px;height:32px;color:var(--ui-accent-hover,#0e7490);border-radius:10px;flex:none;place-items:center;display:grid}.ac-server-icon[data-v-a0688518] svg{width:16px;height:16px}.ac-server-copy[data-v-a0688518]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-server-name[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 12.5px/1.35 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-server-desc[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-mute,#9ca3af);font-size:11px;line-height:1.35;overflow:hidden}.ac-server-side[data-v-a0688518]{flex:none;align-items:center;gap:4px;padding-left:4px;display:flex}.ac-status[data-v-a0688518]{background:var(--ui-veil,#0000000b);height:20px;color:var(--ui-ink-dim,#5b6472);white-space:nowrap;border-radius:999px;align-items:center;gap:5px;padding:0 7px;font-size:10px;font-weight:600;display:inline-flex}.ac-status[data-v-a0688518]:before{content:"";background:var(--ui-ink-mute,#9ca3af);border-radius:50%;width:4px;height:4px}.ac-status.is-ok[data-v-a0688518]{background:var(--ui-accent-soft,#0891b217);color:var(--ui-accent-hover,#0e7490)}.ac-status.is-ok[data-v-a0688518]:before{background:var(--ui-accent,#0891b2)}.ac-status.is-bad[data-v-a0688518]{background:var(--ui-warn-soft,#f59e0b24);color:var(--ui-warn,#b45309)}.ac-status.is-bad[data-v-a0688518]:before{background:var(--ui-warn,#b45309)}.ac-expand-btn[data-v-a0688518]{width:18px;height:18px;color:var(--ui-ink-mute,#9ca3af);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;place-items:center;display:grid}.ac-expand-btn[data-v-a0688518]:hover{background:var(--ui-veil,#0000000a);color:var(--ui-ink,#111827)}.ac-expand-btn[data-v-a0688518] svg{transition:transform .18s var(--ui-ease-back,cubic-bezier(.34, 1.56, .64, 1))}.ac-expand-btn[data-v-a0688518] svg.is-open{transform:rotate(180deg)}.ac-selection-summary[data-v-a0688518]{min-width:0;color:var(--ui-ink-dim,#6b7280);flex:1;align-items:center;gap:5px;font-size:11px;line-height:1.35;display:flex}.ac-selected-number[data-v-a0688518]{color:var(--ui-ink,#111827);font-size:12px;font-weight:700}@container (width<=469px){.ac-panel-head-top[data-v-a0688518]{grid-template-columns:minmax(0,1fr) auto}}@container (width<=540px){.ac-detect-label[data-v-a0688518]{display:none}}@container (width<=386px){.ac-panel-tools[data-v-a0688518]{gap:4px}.ac-panel-head[data-v-a0688518]{padding-left:10px;padding-right:10px}}@container (width<=460px){.ac-split[data-v-a0688518]{flex-direction:column}.ac-split-rail[data-v-a0688518]{border-right:0;border-bottom:1px solid var(--ui-line-soft,#0000000f);flex:none;width:auto}.ac-rail-label[data-v-a0688518]{display:none}.ac-rail-scroll[data-v-a0688518]{flex-direction:row;gap:5px;padding:7px 10px;overflow:auto hidden}.ac-rail-icon[data-v-a0688518],.ac-rail-brand[data-v-a0688518],.ac-rail-brand[data-v-a0688518] img,.ac-rail-brand[data-v-a0688518] svg{width:13px;height:13px}.ac-rail-count[data-v-a0688518]{display:none}.ac-split-scroll[data-v-a0688518]{padding:9px 10px 10px}.ac-skill-grid--split[data-v-a0688518]{grid-template-columns:repeat(auto-fill,minmax(min(100%,154px),1fr))}}@container (width<=360px){.ac-panel-head-top[data-v-a0688518]{gap:5px}.ac-panel-title[data-v-a0688518]{font-size:14px}.ac-panel-count[data-v-a0688518]{display:none}.ac-skill-grid[data-v-a0688518],.ac-model-grid[data-v-a0688518],.ac-skill-grid--split[data-v-a0688518]{grid-template-columns:1fr}.ac-mcp-card[data-v-a0688518]{gap:5px;padding:7px 6px}.ac-mcp-card .ac-server-icon[data-v-a0688518]{display:none}.ac-panel-foot[data-v-a0688518]{padding-left:10px;padding-right:10px}}.ac-view-tabs[data-v-a0688518]{background:var(--ui-hover-soft,#0000000d);border-radius:999px;flex:none;align-items:center;gap:2px;padding:2px;display:inline-flex}.ac-view-tab[data-v-a0688518]{appearance:none;color:var(--ui-ink-dim,#6b7280);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:999px;margin:0;padding:3px 12px;font-size:12px;font-weight:600;line-height:20px;transition:color .12s ease-out,background-color .12s ease-out}.ac-view-tab[data-v-a0688518]:hover{color:var(--ui-ink,#18202b)}.ac-view-tab.is-active[data-v-a0688518]{background:var(--ui-panel,#fff);color:var(--ui-ink,#18202b);box-shadow:0 1px 3px #0f172a1f, 0 0 0 1px var(--ui-line,#e2e5ea)}.ac-view-tab[data-v-a0688518]:focus-visible{outline:2px solid color-mix(in srgb, var(--ui-accent,#0891b2) 60%, transparent);outline-offset:1px}.ac-review-body[data-v-a0688518]{padding:2px 12px 12px}.ac-review-list[data-v-a0688518]{flex-direction:column;gap:8px;display:flex}.ac-review-item[data-v-a0688518]{flex-direction:column;align-items:stretch;gap:0;width:100%;display:flex}.ac-review-item .ac-option-title[data-v-a0688518]{width:100%}.ac-review-item[aria-checked=true][data-v-a0688518]{background:var(--ui-hover,#0000000f)}.ac-review-item[aria-checked=true] .ac-option-label[data-v-a0688518]{color:var(--ui-ink,#111827)}.ac-option-icon[data-v-a0688518]{color:var(--ui-ink-dim,#6b7280);flex:none}.ac-review-item .ac-review-check[data-v-a0688518]{margin-left:auto}.ac-skill-grid[data-v-a0688518]{grid-template-columns:repeat(1,minmax(0,1fr));gap:8px;display:grid}.ac-skill-card[data-v-a0688518]{cursor:pointer;border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);text-align:left;border-radius:12px;align-items:center;gap:9px;width:100%;min-width:0;height:auto;min-height:72px;padding:8px;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s;display:flex}.ac-skill-card[data-v-a0688518]:focus-visible,.ac-skill-tile[data-v-a0688518]:focus-visible{outline:2px solid var(--ui-accent-ring,#0891b299);outline-offset:2px}.ac-skill-card[data-v-a0688518]:hover{background:var(--ui-hover-soft,#00000008);border-color:var(--ui-line,#0000001f);box-shadow:var(--ui-shadow-e1,0 2px 10px #0000000a);transform:translateY(-1px)}.ac-skill-thumb[data-v-a0688518]{width:54px;height:54px;color:var(--ui-primary-ink,#fffffff0);background:radial-gradient(circle at 78% 18%, var(--ui-primary-ink,#ffffff47), transparent 36%), linear-gradient(145deg, hsl(var(--cover-h1,208) 66% 54%), hsl(var(--cover-h2,250) 62% 40%));border-radius:10px;flex:none;place-items:center;display:grid;position:relative;overflow:hidden}.ac-skill-thumb[data-v-a0688518]:after{content:"";background:var(--ui-primary-ink,#ffffff1f);border-radius:50%;height:28px;position:absolute;inset:auto -8px -16px 12px;transform:rotate(-8deg)}.ac-skill-icon[data-v-a0688518]{z-index:1;place-items:center;display:grid;position:relative}.ac-skill-icon[data-v-a0688518] svg{width:23px;height:23px}.ac-skill-copy[data-v-a0688518]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-skill-name-row[data-v-a0688518]{align-items:center;gap:5px;min-width:0;display:flex}.ac-skill-name[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ui-ink,#111827);flex:1;font-size:12.5px;font-weight:600;line-height:1.35;overflow:hidden}.ac-skill-desc[data-v-a0688518]{-webkit-line-clamp:2;color:var(--ui-ink-dim,#6b7280);-webkit-box-orient:vertical;font-size:12px;line-height:1.4;display:-webkit-box;overflow:hidden}.ac-skill-meta[data-v-a0688518]{min-width:0;color:var(--ui-ink-mute,#9ca3af);white-space:nowrap;align-items:center;gap:5px;font-size:10.5px;display:flex;overflow:hidden}[aria-pressed=true]>.ac-check-mark[data-v-a0688518],[aria-pressed=true] .ac-skill-name-row>.ac-check-mark[data-v-a0688518],[aria-pressed=true] .ac-model-card-top>.ac-check-mark[data-v-a0688518],[aria-checked=true] .ac-model-card-top>.ac-check-mark[data-v-a0688518],[aria-checked=true] .ac-option-title>.ac-check-mark[data-v-a0688518],[aria-checked=true]>.ac-check-mark[data-v-a0688518],[aria-selected=true]>.ac-check-mark[data-v-a0688518],[aria-selected=true] .ac-model-card-top>.ac-check-mark[data-v-a0688518]{opacity:1}.ac-skill-grid--split[data-v-a0688518]{grid-template-columns:repeat(auto-fill,minmax(min(100%,176px),1fr))}.ac-skill-tile[data-v-a0688518]{cursor:pointer;border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);text-align:left;border-radius:12px;flex-direction:column;min-width:0;height:auto;min-height:150px;transition:border-color .18s,box-shadow .18s,transform .18s;display:flex;overflow:hidden}.ac-skill-tile[data-v-a0688518]:hover{border-color:var(--ui-line,#0000001f);box-shadow:var(--ui-shadow-e1,0 2px 10px #0000000a);transform:translateY(-1px)}.ac-skill-tile[aria-pressed=true][data-v-a0688518]{border-color:var(--ui-accent-line,#0891b247);box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-accent,#0891b2) 7%, transparent)}.ac-skill-cover[data-v-a0688518]{width:100%;height:60px;color:var(--ui-primary-ink,#fffffff0);background:radial-gradient(circle at 82% 16%, var(--ui-primary-ink,#ffffff4d), transparent 34%), linear-gradient(145deg, hsl(var(--cover-h1,208) 66% 54%), hsl(var(--cover-h2,250) 62% 40%));place-items:center;display:grid;position:relative;overflow:hidden}.ac-skill-cover[data-v-a0688518]:after{content:"";background:var(--ui-primary-ink,#ffffff1f);border-radius:50%;height:40px;position:absolute;inset:auto -20px -18px 16px;transform:rotate(-7deg)}.ac-skill-cover .ac-skill-icon[data-v-a0688518] svg{width:26px;height:26px}.ac-skill-tile-body[data-v-a0688518]{flex-direction:column;gap:2px;padding:8px 9px 9px;display:flex}.ac-tile-top .ac-skill-name[data-v-a0688518]{white-space:normal}.ac-skill-tile .ac-skill-name[data-v-a0688518]{font-size:12px}.ac-skill-tile .ac-skill-desc[data-v-a0688518]{font-size:11px}.ac-skill-tile .ac-skill-meta[data-v-a0688518]{font-size:10px}.ac-model-grid[data-v-a0688518]{grid-template-columns:repeat(1,minmax(0,1fr));grid-auto-rows:min-content;gap:8px;padding-right:0;display:grid}.ac-model-brand[data-v-a0688518]{background:var(--ui-panel,#fff);width:35px;height:35px;color:var(--ui-ink,#374151);box-shadow:inset 0 0 0 1px var(--ui-line-soft,#0000000d);border-radius:9px;flex:none;place-items:center;display:grid}.ac-model-brand[data-v-a0688518] svg{width:22px;height:22px}.ac-model-brand[data-v-a0688518] img{object-fit:contain;border-radius:6px;width:22px;height:22px;display:block}.ac-model-copy[data-v-a0688518]{text-align:left;flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-model-id[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 12.5px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-model-meta[data-v-a0688518]{white-space:nowrap;min-width:0;color:var(--ui-ink-mute,#9ca3af);align-items:center;gap:5px;font-size:10.5px;display:flex;overflow:hidden}.ac-model-line[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.ac-model-tip[data-v-a0688518]{white-space:normal;flex-direction:column;gap:2px;max-width:280px;display:flex}.ac-model-tip-desc[data-v-a0688518]{opacity:.78;word-break:break-word;line-height:1.4}.ac-model-card-top[data-v-a0688518]{align-items:flex-start;gap:4px;min-width:0;display:flex}.ac-model-card-top .ac-model-id[data-v-a0688518]{flex:1}.ac-model-row-list[data-v-a0688518]{flex-direction:column;gap:6px;display:flex}.ac-model-badges[data-v-a0688518]{flex:none;align-items:center;gap:4px;display:flex}.ac-menu-scroll[data-v-a0688518] .ac-model-scroll-body{padding:4px 12px 12px}.ac-model-row-list[data-v-a0688518]{gap:2px}.ac-model-row-list button[data-v-a0688518],.ac-model-grid button[data-v-a0688518]{text-align:left;border-radius:10px;justify-content:flex-start;gap:10px;width:100%;min-width:0;height:auto;min-height:0;padding:8px 10px}.ac-model-row-list button[data-v-a0688518]:hover,.ac-model-grid button[data-v-a0688518]:hover,.ac-model-row-list button[aria-selected=true][data-v-a0688518],.ac-model-grid button[aria-selected=true][data-v-a0688518]{background:var(--ui-hover,#0000000f)}.ac-model-entry[data-v-a0688518]{text-align:left;border-radius:10px;align-items:center;gap:10px;min-width:0;padding:8px 10px;transition:background .12s;display:flex}.ac-model-entry[data-v-a0688518]:hover,.ac-model-entry[aria-selected=true][data-v-a0688518]{background:var(--ui-hover,#0000000f)}.ac-model-entry .ac-model-hit[data-v-a0688518],.ac-model-entry .ac-model-hit[data-v-a0688518]:hover,.ac-model-entry .ac-model-hit[aria-selected=true][data-v-a0688518]{background:0 0;width:100%;min-width:0;height:auto}.ac-model-entry-sub[data-v-a0688518]{cursor:default;width:100%;font-weight:400}.ac-model-entry-sub .ac-model-copy[data-v-a0688518]{flex:1;min-width:0}.ac-model-account-item[data-v-a0688518]{justify-content:space-between}.ac-model-account-item-name[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ac-model-panel.is-split .ac-menu-scroll[data-v-a0688518]{min-height:0}.ac-model-panel.is-split .ac-menu-scroll[data-v-a0688518] .ac-model-scroll-body{flex:1;min-height:0;padding:0;overflow:hidden}.ac-model-panel.is-split .ac-split[data-v-a0688518]{min-height:0}.ac-mcp-list[data-v-a0688518]{flex-direction:column;gap:6px;display:flex}.ac-mcp-item[data-v-a0688518]{border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);border-radius:10px;flex-direction:column;min-width:0;transition:border-color .18s,background .18s,box-shadow .18s;display:flex;overflow:hidden}.ac-mcp-item[data-v-a0688518]:hover{border-color:var(--ui-line-strong,#00000024)}.ac-mcp-item.is-picked[data-v-a0688518]{border-color:var(--ui-accent-line,#0891b247);background:linear-gradient(180deg, var(--ui-accent-soft,#0891b20d), var(--ui-panel,#fff) 42%)}.ac-mcp-item.is-open[data-v-a0688518]{border-color:var(--ui-line-strong,#00000024)}.ac-mcp-card[data-v-a0688518]{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:0;align-items:center;gap:8px;width:100%;min-width:0;padding:8px 10px;display:flex;overflow:hidden}.ac-pick-box[data-v-a0688518]{border:1px solid var(--ui-line-strong,#0000002e);background:var(--ui-panel,#fff);color:#0000;border-radius:6px;flex:none;place-items:center;width:20px;height:20px;padding:0;transition:background .15s,border-color .15s,color .15s;display:grid}.ac-pick-box[data-v-a0688518]:hover{border-color:var(--ui-ink-dim,#6b7280)}.ac-pick-box[aria-pressed=true][data-v-a0688518]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent,#0891b2);color:#fff}.ac-mcp-main[data-v-a0688518]{text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:9px;min-width:0;padding:0;display:flex}.ac-mcp-tools[data-v-a0688518]{border:0;border-top:1px solid var(--ui-line-soft,#0000000f);background:var(--ui-veil,#00000004);border-radius:0;flex-direction:column;gap:4px;margin:0;padding:8px 10px 10px;display:flex;overflow:hidden}.ac-tool-list[data-v-a0688518]{border-left:1px solid var(--ui-line,#0000001a);flex-direction:column;gap:2px;margin-left:2px;padding-left:10px;display:flex}.ac-tool-row[data-v-a0688518]{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:flex-start;gap:8px;width:100%;min-width:0;padding:6px 8px;transition:background .14s;display:flex}.ac-tool-row[data-v-a0688518]:hover{background:var(--ui-hover,#0000000d)}.ac-tool-row.is-picked[data-v-a0688518]{background:var(--ui-hover,#0000000f)}.ac-tool-radio[data-v-a0688518]{border:1.5px solid var(--ui-line-strong,#00000038);background:var(--ui-panel,#fff);color:#0000;border-radius:50%;flex:none;place-items:center;width:14px;height:14px;margin-top:2px;transition:background .14s,border-color .14s,color .14s;display:grid}.ac-tool-row:hover .ac-tool-radio[data-v-a0688518]{border-color:var(--ui-ink-dim,#6b7280)}.ac-tool-row.is-picked .ac-tool-radio[data-v-a0688518]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent,#0891b2);color:#fff}.ac-tool-row .ac-tool-copy[data-v-a0688518]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-tool-row .ac-tool-name[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 11.5px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-tool-row .ac-tool-desc[data-v-a0688518]{-webkit-line-clamp:2;color:var(--ui-ink-mute,#9ca3af);-webkit-box-orient:vertical;font-size:10.5px;line-height:1.5;display:-webkit-box;overflow:hidden}.ac-mcp-tools-empty[data-v-a0688518]{color:var(--ui-ink-mute,#9ca3af);padding:8px 5px;font-size:11px;line-height:1.5}.ac-panel-note[data-v-a0688518]{color:var(--ui-ink-mute,#9ca3af);background:var(--ui-veil,#00000008);border-radius:8px;margin:10px 0 2px;padding:8px 10px;font-size:11px;line-height:1.5}.ac-menu-head[data-v-a0688518]{flex:none;align-items:center;gap:8px;padding:8px 10px 6px;display:flex}.ac-menu-head-title[data-v-a0688518]{color:var(--ui-ink,#f7f7f7);font-size:12px;font-weight:600}.ac-menu-head-count[data-v-a0688518]{background:var(--ui-chip,#ffffff1a);text-align:center;min-width:18px;color:var(--ui-ink-dim,#919191);border-radius:999px;padding:0 5px;font-size:11px;line-height:16px}.ac-menu-head-spacer[data-v-a0688518]{flex:1;min-width:4px}.ac-menu-head-btn[data-v-a0688518]{border:1px solid var(--ui-line,#363636);height:22px;color:var(--ui-ink-dim,#919191);cursor:pointer;background:0 0;border-radius:999px;flex:none;align-items:center;gap:4px;padding:0 8px;font-size:11px;display:inline-flex}.ac-menu-head-btn[data-v-a0688518]:hover:not(:disabled){background:var(--ui-hover,#ffffff1a);color:var(--ui-ink,#f7f7f7)}.ac-menu-head-btn[data-v-a0688518]:disabled{opacity:.6;cursor:default}.ac-menu-card-badge[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;background:var(--ui-accent-soft,#0891b21f);max-width:96px;color:var(--ui-accent-hover,#0e7490);border-radius:999px;flex:none;margin-top:3px;padding:1px 6px;font-size:11px;line-height:15px;overflow:hidden}.ac-menu-card-badge.is-bad[data-v-a0688518]{background:var(--ui-danger-veil,#ef44441a);color:var(--ui-danger,#ef4444)}.ac-menu-scroll[data-v-a0688518]{flex-direction:column;flex:1;gap:2px;min-height:0;padding:0;display:flex;overflow:visible}.ac-menu-card[data-v-a0688518]{background:var(--ui-veil,#ffffff0a);text-align:left;cursor:pointer;border:1px solid #0000;border-radius:10px;align-items:flex-start;gap:10px;width:100%;padding:9px 10px;transition:background .14s,border-color .14s;display:flex}.ac-menu-card[data-v-a0688518]:hover{background:var(--ui-hover,#ffffff1a)}.ac-menu-card[aria-selected=true][data-v-a0688518]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent-soft,#0891b21f)}.ac-menu-card-icon[data-v-a0688518]{background:var(--ui-chip,#ffffff1a);width:26px;height:26px;color:var(--ui-ink-dim,#919191);border-radius:8px;flex:none;place-items:center;display:grid}.ac-menu-card-icon[data-v-a0688518] svg{width:15px;height:15px}.ac-menu-card[aria-selected=true] .ac-menu-card-icon[data-v-a0688518]{color:var(--ui-accent,#0891b2)}.ac-menu-card-text[data-v-a0688518]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-menu-card-name[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#f7f7f7);font-size:13px;overflow:hidden}.ac-menu-card[aria-selected=true] .ac-menu-card-name[data-v-a0688518]{color:var(--ui-accent,#0891b2);font-weight:600}.ac-menu-card-hint[data-v-a0688518]{-webkit-line-clamp:2;color:var(--ui-ink-dim,#919191);-webkit-box-orient:vertical;font-size:11px;line-height:1.5;display:-webkit-box;overflow:hidden}.ac-menu-card-check[data-v-a0688518]{color:var(--ui-accent,#0891b2);flex:none;margin-top:5px}.ac-panel[data-v-a0688518]{flex-direction:column;flex:1;width:100%;min-height:min(460px,100dvh - 200px);padding:0;font:13px/1.5 -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;display:flex;container-type:inline-size}.ac-panel.is-split[data-v-a0688518]{min-height:min(460px,100dvh - 200px)}.ac-panel-head[data-v-a0688518]{flex-direction:column;flex:none;gap:10px;padding:12px 12px 10px;display:flex}.ac-panel-head-top[data-v-a0688518]{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;display:grid}.ac-panel-head-top--review[data-v-a0688518]{grid-template-columns:minmax(0,1fr) auto}.ac-panel-heading>svg[data-v-a0688518]{color:var(--ui-ink-dim,#6b7280);flex:none}.is-auto-auth[data-v-a0688518]{color:var(--ui-danger,#ef4444)!important}.ac-panel-heading[data-v-a0688518]{flex:1;align-items:center;gap:7px;min-width:0;display:flex}.ac-panel-title[data-v-a0688518]{letter-spacing:-.01em;white-space:nowrap;color:var(--ui-ink,#111827);margin:0;font-size:15px;font-weight:700;line-height:1.3}.ac-panel-count[data-v-a0688518]{background:var(--ui-veil,#0000000a);min-width:20px;height:18px;color:var(--ui-ink-dim,#6b7280);border-radius:999px;justify-content:center;align-items:center;padding:0 6px;font-size:10px;font-weight:700;line-height:1;display:inline-flex}.ac-panel-lede[data-v-a0688518]{color:var(--ui-ink-dim,#6b7280);margin:0;font-size:12px;line-height:1.45}.ac-review-state[data-v-a0688518]{background:var(--ui-accent-soft,#0891b21a);height:18px;color:var(--ui-accent-hover,#0e7490);white-space:nowrap;border-radius:999px;flex:none;align-items:center;gap:4px;padding:0 6px;font-size:10px;font-weight:600;display:inline-flex}.ac-panel-tools[data-v-a0688518]{flex:none;justify-content:flex-end;align-items:center;gap:5px;display:flex}.ac-panel-body[data-v-a0688518]{flex-direction:column;flex:1;min-height:0;display:flex;position:relative;overflow:hidden}.ac-mcp-panel .ac-selection-summary[data-v-a0688518]{flex-wrap:wrap;row-gap:2px}.ac-panel-scroll[data-v-a0688518]{flex:1;min-height:0}.ac-panel-scroll[data-v-a0688518] .ac-panel-scroll-body{padding:2px 12px 12px}.ac-editing-badge[data-v-abd25458]{background:color-mix(in srgb, var(--ui-warn,#e3a25f) 16%, transparent);height:20px;color:var(--ui-warn,#e3a25f);border-radius:999px;align-self:flex-end;align-items:center;gap:4px;margin-top:4px;padding:0 4px 0 8px;font-size:11px;font-weight:600;display:inline-flex}.ac-editing-badge.is-compact[data-v-abd25458]{white-space:nowrap;flex:none;align-self:center;height:18px;margin-top:0}.ac-editing-badge.is-compact span[data-v-abd25458]{white-space:nowrap}.ac-editing-mark[data-v-abd25458]{background:color-mix(in srgb, var(--ui-warn,#e3a25f) 16%, transparent);width:100%;height:26px;color:var(--ui-warn,#e3a25f);border-radius:8px;align-items:center;gap:4px;margin:0;padding:0 4px 0 10px;font-size:12px;font-weight:600;display:flex}.ac-editing-mark-btn[data-v-abd25458]{color:inherit;font-size:11px;font-weight:600}.ac-editing-mark-btn[data-v-abd25458]:hover{text-decoration:underline}.ac-editing-mark-spacer[data-v-abd25458]{flex:1}.ac-editing-x[data-v-abd25458]{color:inherit}.ac-editing-x[data-v-abd25458]:hover,.ac-editing-x[data-v-abd25458]:active,.ac-editing-x[aria-expanded=true][data-v-abd25458]{background:0 0!important}.ac-editing-x[data-v-abd25458]:hover{color:var(--ui-ink,#f7f7f7)}.ac-rot[data-v-abd25458]{transform:rotate(90deg)}.ac-pending[data-v-abd25458]{color:var(--ui-ink-dim,#919191);align-items:center;gap:8px;margin:6px 0 0;font-size:14px;line-height:24px;display:flex}.ac-pending-spin[data-v-abd25458]{border:2px solid;border-top-color:#0000;border-radius:50%;flex:none;width:14px;height:14px;animation:.8s linear infinite ac-rotate;display:inline-block}.ac-notify[data-v-abd25458]{background:var(--ui-accent-soft,#0891b233);height:40px;color:var(--ui-ink,#f7f7f7);border-radius:12px;align-items:center;gap:8px;margin-bottom:8px;padding:0 6px 0 10px;display:flex}.ac-notify-icon[data-v-abd25458]{color:var(--ui-accent,#0891b2);flex:none}.ac-notify-text[data-v-abd25458]{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:13px;overflow:hidden}.ac-notify-btn[data-v-abd25458]{color:var(--ui-ink,#f7f7f7);flex:none;font-size:13px;font-weight:600}.ac-notify-btn[data-v-abd25458]:hover{color:var(--ui-accent,#0891b2)}.ac-notify-close[data-v-abd25458]{color:var(--ui-ink-dim,#919191);flex:none}.ac-pending-box[data-v-abd25458]{border:1px solid var(--ui-line,#363636);background:var(--ui-veil,#ffffff0a);border-radius:14px 14px 0 0;width:90%;margin:0 auto -1px;position:relative;overflow:hidden;container-type:inline-size}.ac-pending-list[data-v-abd25458]{flex-direction:column;min-width:0;display:flex}.ac-pending-row[data-v-abd25458]{border-radius:0;align-items:center;gap:8px;min-width:0;min-height:36px;padding:0 8px 0 10px;display:flex}.ac-pending-row+.ac-pending-row[data-v-abd25458]{border-top:1px solid var(--ui-line-soft,#2a2a2a)}.ac-pending-row[data-v-abd25458]:hover{background:var(--ui-hover,#ffffff1a)}.ac-pending-lead[data-v-abd25458]{color:var(--ui-ink-mute,#a8a8a8);flex:none;place-items:center;display:grid}.ac-queue-row.is-editing[data-v-abd25458]{background:color-mix(in srgb, var(--ui-warn,#e3a25f) 12%, transparent)}.ac-queue-row.is-sending[data-v-abd25458]{opacity:.7}.ac-queue-thumb[data-v-abd25458]{object-fit:cover;cursor:zoom-in;background:var(--ui-chip,#ffffff1a);border-radius:4px;flex:none;width:16px;height:16px}.ac-queue-thumb[data-v-abd25458],.ac-goal-ratio~.ac-queue-thumb[data-v-abd25458]{border:1px solid color-mix(in srgb, var(--ui-ink,#f7f7f7) 22%, transparent);box-shadow:0 0 0 1px #0000000f}.ac-queue-thumb-more[data-v-abd25458]{background:var(--ui-chip,#ffffff1a);min-width:16px;height:16px;color:var(--ui-ink-dim,#919191);border-radius:4px;flex:none;place-items:center;padding:0 3px;font-size:9px;font-weight:700;display:grid}.ac-queue-text[data-v-abd25458]{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ui-ink,#f7f7f7);flex:1;font-size:12px;line-height:16px;overflow:hidden}.ac-queue-row.is-editing .ac-queue-text[data-v-abd25458]{color:var(--ui-ink-dim,#919191)}.ac-queue-flag[data-v-abd25458]{flex:none;height:18px;padding-inline:6px;font-size:10px}.ac-queue-lead-swap[data-v-abd25458]{cursor:grab;border-radius:4px;flex:none;place-items:center;width:16px;height:20px;display:grid}.ac-queue-lead-swap[data-v-abd25458]:active{cursor:grabbing}.ac-queue-lead-swap[data-v-abd25458]>*{grid-area:1/1;justify-content:center;align-items:center;display:inline-flex}.ac-queue-lead-swap .ac-pending-lead[data-v-abd25458]{transition:opacity .15s}.ac-pending-row .ac-queue-lead-swap .ac-queue-handle[data-v-abd25458]{opacity:0}.ac-pending-row:hover .ac-queue-lead-swap .ac-queue-handle[data-v-abd25458],.ac-pending-row.is-hover .ac-queue-lead-swap .ac-queue-handle[data-v-abd25458]{opacity:1}.ac-pending-row:hover .ac-queue-lead-swap .ac-pending-lead[data-v-abd25458],.ac-pending-row.is-hover .ac-queue-lead-swap .ac-pending-lead[data-v-abd25458]{opacity:0}.ac-queue-row--ghost[data-v-abd25458]{opacity:.4}.ac-queue-row--chosen[data-v-abd25458]{background:var(--ui-hover,#ffffff0f)}.ac-queue-actions[data-v-abd25458]{flex:none;align-items:center;gap:2px;display:flex}.ac-queue-btn[data-v-abd25458]{color:var(--ui-ink-dim,#919191);flex:none}.ac-queue-btn[data-v-abd25458]:hover{background:var(--ui-hover-strong,#ffffff24);color:var(--ui-ink,#f7f7f7)}.ac-queue-btn.is-danger[data-v-abd25458]:hover{background:var(--ui-danger-veil,#ef44441a);color:var(--ui-danger,#ef4444)}.ac-queue-pause[data-v-abd25458]{z-index:6;border:1px solid var(--ui-line,#363636);background:var(--ui-overlay-solid,#212121);color:var(--ui-ink-dim,#919191);box-shadow:var(--ui-shadow-md,0 18px 44px #00000029);border-radius:999px;gap:5px;font-size:11px;font-weight:600;transition:color .15s;position:absolute;top:0;left:50%;transform:translate(-50%,-50%)}.ac-queue-pause[data-v-abd25458]:hover{color:var(--ui-ink,#f7f7f7);background:linear-gradient(var(--ui-hover-strong,#ffffff26), var(--ui-hover-strong,#ffffff26)), var(--ui-overlay-solid,#212121)}.ac-queue-pause.is-paused[data-v-abd25458]{background:var(--ui-warn,#e3a25f);color:#fff;border-color:#0000}.ac-queue-pause-cnt[data-v-abd25458]{background:var(--ui-chip,#ffffff1a);min-width:16px;height:16px;color:var(--ui-ink-dim,#919191);border-radius:999px;place-items:center;padding:0 5px;font-size:10px;display:grid}.ac-queue-pause.is-paused .ac-queue-pause-cnt[data-v-abd25458]{color:#fff;background:#ffffff47}.ac-goal-row[data-v-abd25458]{background:var(--ui-chip,#ffffff1a)}.ac-goal-row[data-v-abd25458]:hover{background:var(--ui-hover-strong,#ffffff26)}.ac-goal-row.is-editing[data-v-abd25458]{background:color-mix(in srgb, var(--ui-warn,#e3a25f) 16%, transparent)}.ac-goal-row.is-editing[data-v-abd25458]:hover{background:color-mix(in srgb, var(--ui-warn,#e3a25f) 20%, transparent)}.ac-goal-row .ac-pending-lead[data-v-abd25458]{color:var(--ui-ink-dim,#919191)}.ac-goal-lead[data-v-abd25458]{color:var(--ui-ink-dim,#919191);flex:none}.ac-goal-lead .ac-goal-lead-edit[data-v-abd25458],.ac-goal-lead:hover .ac-goal-lead-target[data-v-abd25458]{display:none}.ac-goal-lead:hover .ac-goal-lead-edit[data-v-abd25458]{display:block}.ac-goal-lead.is-editing .ac-goal-lead-target[data-v-abd25458]{display:none}.ac-goal-lead.is-editing .ac-goal-lead-edit[data-v-abd25458]{display:block}.ac-goal-row-text[data-v-abd25458]{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ui-ink,#f7f7f7);flex:auto;font-size:12px;font-weight:600;overflow:hidden}.ac-goal-flag[data-v-abd25458]{flex:none;height:18px;padding-inline:6px;font-size:10px}.ac-goal-flag.is-paused[data-v-abd25458]{background:color-mix(in srgb, var(--ui-warn,#e3a25f) 18%, transparent);color:var(--ui-warn,#e3a25f);border-color:#0000}.ac-goal-flag.is-done[data-v-abd25458]{background:var(--ui-chip,#ffffff1a);color:var(--ui-ink-dim,#919191);border-color:#0000}.ac-goal-round[data-v-abd25458]{color:var(--ui-ink-dim,#919191);white-space:nowrap;flex:none;font-size:12px}.ac-goal-token[data-v-abd25458]{color:var(--ui-ink,#f7f7f7);white-space:nowrap;flex:none;align-items:center;gap:4px;font-size:12px;font-weight:600;display:inline-flex}.ac-goal-token-prefix[data-v-abd25458]{color:var(--ui-ink-dim,#919191);flex:none;font-weight:600}.ac-goal-token-val[data-v-abd25458]{white-space:pre;cursor:text;text-underline-offset:3px;min-width:2.2ch;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-color:var(--ui-ink-mute,#a8a8a8);text-decoration-color:var(--ui-ink-mute,#a8a8a8);outline:none;flex:none;padding:0;font-size:12px;font-weight:600;line-height:16px}.ac-goal-token-val[data-v-abd25458]:hover{-webkit-text-decoration-color:var(--ui-ink,#f7f7f7);text-decoration-color:var(--ui-ink,#f7f7f7)}.ac-goal-token-val[data-v-abd25458]:focus{text-decoration-style:solid;-webkit-text-decoration-color:var(--ui-ink,#f7f7f7);text-decoration-color:var(--ui-ink,#f7f7f7)}.ac-goal-token-val.is-readonly[data-v-abd25458]{cursor:default;text-decoration:none}.ac-goal-ratio[data-v-abd25458]{color:var(--ui-ink,#f7f7f7);white-space:nowrap;flex:none;align-items:center;gap:1px;font-size:12px;font-weight:600;display:inline-flex}.ac-goal-ratio .ac-goal-token-val[data-v-abd25458]{text-align:center;min-width:2.6ch}.ac-goal-ratio-sep[data-v-abd25458]{color:var(--ui-ink-mute,#a8a8a8);flex:none;padding:0 1px;font-weight:600}.ac-goal-mark[data-v-abd25458]{background:var(--ui-veil,#ffffff0f);width:100%;height:26px;color:var(--ui-ink,#f7f7f7);border-radius:8px;align-items:center;gap:6px;padding:0 4px 0 8px;display:flex}.ac-goal-icon[data-v-abd25458]{flex:none}.ac-goal-mark-label[data-v-abd25458],.ac-goal-mark .ac-goal-token-prefix[data-v-abd25458],.ac-goal-mark .ac-goal-token-val[data-v-abd25458]{font-size:12px;font-weight:600;line-height:20px}.ac-goal-mark .ac-goal-token[data-v-abd25458]{color:var(--ui-ink,#f7f7f7)}.ac-goal-btn[data-v-abd25458]{color:inherit;flex:none}.ac-goal-btn[data-v-abd25458]:hover,.ac-goal-btn[data-v-abd25458]:active,.ac-goal-btn[aria-expanded=true][data-v-abd25458]{background:0 0!important}.ac-goal-btn[data-v-abd25458]:hover{color:var(--ui-ink,#f7f7f7)}.ac-goal-btn .is-hollow[data-v-abd25458]{opacity:.55}.ac-goal-row.is-narrow .ac-goal-bar[data-v-abd25458]{display:none}.ac-editor[data-v-abd25458]{min-height:64px;max-height:min(45vh,15rem);position:relative;overflow-y:auto}.ac-placeholder[data-v-abd25458]{color:var(--ui-ink-dim,#919191);pointer-events:none;font-size:14px;line-height:24px;position:absolute;top:0;left:0}.ac-toolbar[data-v-abd25458]{align-items:center;gap:3px;min-width:0;display:flex}.ac-file[data-v-abd25458]{display:none}.ac-tool-check[data-v-abd25458]{opacity:0;flex:none;margin-top:2px}[aria-checked=true]>.ac-tool-check[data-v-abd25458]{opacity:1}.ac-tool-copy[data-v-abd25458]{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.ac-tool-name[data-v-abd25458]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 11.5px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-tool-desc[data-v-abd25458]{-webkit-line-clamp:2;color:var(--ui-ink-mute,#9ca3af);-webkit-box-orient:vertical;font-size:10.5px;line-height:1.45;display:-webkit-box;overflow:hidden}.ac-pill-text[data-v-abd25458]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ac-pill-caret[data-v-abd25458]{flex:none}.ac-tb-spacer[data-v-abd25458]{flex:1;min-width:8px}.ac-ctx-ring[data-v-abd25458]{width:32px;height:32px;color:var(--ui-ink-dim,#919191);cursor:pointer;background:0 0;border:0;border-radius:999px;place-items:center;margin-right:2px;padding:0;display:grid}.ac-ctx-ring[data-v-abd25458]:hover{color:var(--ui-ink,#f7f7f7)}.ac-ctx-ring[data-v-abd25458]:focus-visible{outline:2px solid var(--ui-accent,#0891b2);outline-offset:1px}.ac-ctx-ring .ac-ctx-track[data-v-abd25458]{opacity:.25}.ac-ctxwrap[data-v-abd25458]{align-items:center;gap:2px;min-width:0;display:inline-flex}.ac-attach-list[data-v-abd25458]{flex-wrap:wrap;gap:6px;padding:2px 2px 0;display:flex}.ac-attach[data-v-abd25458]{border:1px solid var(--ui-line,#363636);background:var(--ui-veil,#ffffff0a);border-radius:10px;flex:none;width:56px;height:56px;position:relative;overflow:hidden}.ac-attach img[data-v-abd25458]{object-fit:cover;width:100%;height:100%;display:block}.ac-attach-del[data-v-abd25458]{background:var(--ui-scrim,#0009);color:var(--ui-tip-ink,#fff);position:absolute;top:2px;right:2px}.ac-attach-del[data-v-abd25458]:hover{background:var(--ui-danger,#ef4444)}.ac-toolbar .is-running[data-v-abd25458]{background:var(--ui-danger,#ef4444);color:var(--ui-on-accent,#fff)}.ac-stop-square[data-v-abd25458]{background:currentColor;border-radius:2px;width:11px;height:11px}.ac-menu-head[data-v-abd25458]{flex:none;align-items:center;gap:8px;padding:8px 10px 6px;display:flex}.ac-menu-head-title[data-v-abd25458]{color:var(--ui-ink,#f7f7f7);font-size:12px;font-weight:600}.ac-menu-head-count[data-v-abd25458]{background:var(--ui-chip,#ffffff1a);text-align:center;min-width:18px;color:var(--ui-ink-dim,#919191);border-radius:999px;padding:0 5px;font-size:11px;line-height:16px}.ac-menu-head-spacer[data-v-abd25458]{flex:1;min-width:4px}.ac-menu-head-btn[data-v-abd25458]{border:1px solid var(--ui-line,#363636);height:22px;color:var(--ui-ink-dim,#919191);cursor:pointer;background:0 0;border-radius:999px;flex:none;align-items:center;gap:4px;padding:0 8px;font-size:11px;display:inline-flex}.ac-menu-head-btn[data-v-abd25458]:hover:not(:disabled){background:var(--ui-hover,#ffffff1a);color:var(--ui-ink,#f7f7f7)}.ac-menu-head-btn[data-v-abd25458]:disabled{opacity:.6;cursor:default}.ac-menu-card-badge[data-v-abd25458]{text-overflow:ellipsis;white-space:nowrap;background:var(--ui-accent-soft,#0891b21f);max-width:96px;color:var(--ui-accent-hover,#0e7490);border-radius:999px;flex:none;margin-top:3px;padding:1px 6px;font-size:11px;line-height:15px;overflow:hidden}.ac-menu-card-badge.is-bad[data-v-abd25458]{background:var(--ui-danger-veil,#ef44441a);color:var(--ui-danger,#ef4444)}.ac-menu-scroll[data-v-abd25458]{flex-direction:column;flex:1;gap:2px;min-height:0;padding:0;display:flex;overflow:visible}.ac-menu-card[data-v-abd25458]{background:var(--ui-veil,#ffffff0a);text-align:left;cursor:pointer;border:1px solid #0000;border-radius:10px;align-items:flex-start;gap:10px;width:100%;padding:9px 10px;transition:background .14s,border-color .14s;display:flex}.ac-menu-card[data-v-abd25458]:hover{background:var(--ui-hover,#ffffff1a)}.ac-menu-card[aria-selected=true][data-v-abd25458]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent-soft,#0891b21f)}.ac-menu-card-icon[data-v-abd25458]{background:var(--ui-chip,#ffffff1a);width:26px;height:26px;color:var(--ui-ink-dim,#919191);border-radius:8px;flex:none;place-items:center;display:grid}.ac-menu-card-icon[data-v-abd25458] svg{width:15px;height:15px}.ac-menu-card[aria-selected=true] .ac-menu-card-icon[data-v-abd25458]{color:var(--ui-accent,#0891b2)}.ac-menu-card-text[data-v-abd25458]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-menu-card-name[data-v-abd25458]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#f7f7f7);font-size:13px;overflow:hidden}.ac-menu-card[aria-selected=true] .ac-menu-card-name[data-v-abd25458]{color:var(--ui-accent,#0891b2);font-weight:600}.ac-menu-card-hint[data-v-abd25458]{-webkit-line-clamp:2;color:var(--ui-ink-dim,#919191);-webkit-box-orient:vertical;font-size:11px;line-height:1.5;display:-webkit-box;overflow:hidden}.ac-menu-card-check[data-v-abd25458]{color:var(--ui-accent,#0891b2);flex:none;margin-top:5px}.ac-panel[data-v-abd25458]{flex-direction:column;flex:1;width:100%;min-height:min(460px,100dvh - 200px);padding:0;font:13px/1.5 -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;display:flex;container-type:inline-size}.ac-panel.is-split[data-v-abd25458]{min-height:min(460px,100dvh - 200px)}.ac-panel-head[data-v-abd25458]{flex-direction:column;flex:none;gap:10px;padding:12px 12px 10px;display:flex}.ac-panel-head-top[data-v-abd25458]{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;display:grid}.ac-panel-head-top--review[data-v-abd25458]{grid-template-columns:minmax(0,1fr) auto}.ac-panel-heading>svg[data-v-abd25458]{color:var(--ui-ink-dim,#6b7280);flex:none}.is-auto-auth[data-v-abd25458]{color:var(--ui-danger,#ef4444)!important}.ac-panel-heading[data-v-abd25458]{flex:1;align-items:center;gap:7px;min-width:0;display:flex}.ac-panel-title[data-v-abd25458]{letter-spacing:-.01em;white-space:nowrap;color:var(--ui-ink,#111827);margin:0;font-size:15px;font-weight:700;line-height:1.3}.ac-panel-count[data-v-abd25458]{background:var(--ui-veil,#0000000a);min-width:20px;height:18px;color:var(--ui-ink-dim,#6b7280);border-radius:999px;justify-content:center;align-items:center;padding:0 6px;font-size:10px;font-weight:700;line-height:1;display:inline-flex}.ac-panel-lede[data-v-abd25458]{color:var(--ui-ink-dim,#6b7280);margin:0;font-size:12px;line-height:1.45}.ac-review-state[data-v-abd25458]{background:var(--ui-accent-soft,#0891b21a);height:18px;color:var(--ui-accent-hover,#0e7490);white-space:nowrap;border-radius:999px;flex:none;align-items:center;gap:4px;padding:0 6px;font-size:10px;font-weight:600;display:inline-flex}.ac-panel-tools[data-v-abd25458]{flex:none;justify-content:flex-end;align-items:center;gap:5px;display:flex}.ac-panel-body[data-v-abd25458]{flex-direction:column;flex:1;min-height:0;display:flex;position:relative;overflow:hidden}.ac-mcp-panel .ac-selection-summary[data-v-abd25458]{flex-wrap:wrap;row-gap:2px}.ac-panel-scroll[data-v-abd25458]{flex:1;min-height:0}.ac-panel-scroll[data-v-abd25458] .ac-panel-scroll-body,.ac-review-body[data-v-abd25458]{padding:2px 12px 12px}.ac-review-list[data-v-abd25458]{flex-direction:column;gap:8px;display:flex}.ac-review-item[data-v-abd25458]{flex-direction:column;align-items:stretch;gap:0;width:100%;display:flex}.ac-review-item .ac-option-title[data-v-abd25458]{width:100%}.ac-review-item[aria-checked=true][data-v-abd25458]{background:var(--ui-hover,#0000000f)}.ac-review-item[aria-checked=true] .ac-option-label[data-v-abd25458]{color:var(--ui-ink,#111827)}.ac-option-icon[data-v-abd25458]{color:var(--ui-ink-dim,#6b7280);flex:none}.ac-review-item .ac-review-check[data-v-abd25458]{margin-left:auto}.ac-skill-grid[data-v-abd25458]{grid-template-columns:repeat(1,minmax(0,1fr));gap:8px;display:grid}.ac-skill-card[data-v-abd25458]{cursor:pointer;border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);text-align:left;border-radius:12px;align-items:center;gap:9px;width:100%;min-width:0;height:auto;min-height:72px;padding:8px;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s;display:flex}.ac-skill-card[data-v-abd25458]:focus-visible,.ac-skill-tile[data-v-abd25458]:focus-visible{outline:2px solid var(--ui-accent-ring,#0891b299);outline-offset:2px}.ac-skill-card[data-v-abd25458]:hover{background:var(--ui-hover-soft,#00000008);border-color:var(--ui-line,#0000001f);box-shadow:var(--ui-shadow-e1,0 2px 10px #0000000a);transform:translateY(-1px)}.ac-skill-thumb[data-v-abd25458]{width:54px;height:54px;color:var(--ui-primary-ink,#fffffff0);background:radial-gradient(circle at 78% 18%, var(--ui-primary-ink,#ffffff47), transparent 36%), linear-gradient(145deg, hsl(var(--cover-h1,208) 66% 54%), hsl(var(--cover-h2,250) 62% 40%));border-radius:10px;flex:none;place-items:center;display:grid;position:relative;overflow:hidden}.ac-skill-thumb[data-v-abd25458]:after{content:"";background:var(--ui-primary-ink,#ffffff1f);border-radius:50%;height:28px;position:absolute;inset:auto -8px -16px 12px;transform:rotate(-8deg)}.ac-skill-icon[data-v-abd25458]{z-index:1;place-items:center;display:grid;position:relative}.ac-skill-icon[data-v-abd25458] svg{width:23px;height:23px}.ac-skill-copy[data-v-abd25458]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-skill-name-row[data-v-abd25458]{align-items:center;gap:5px;min-width:0;display:flex}.ac-skill-name[data-v-abd25458]{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ui-ink,#111827);flex:1;font-size:12.5px;font-weight:600;line-height:1.35;overflow:hidden}.ac-skill-desc[data-v-abd25458]{-webkit-line-clamp:2;color:var(--ui-ink-dim,#6b7280);-webkit-box-orient:vertical;font-size:12px;line-height:1.4;display:-webkit-box;overflow:hidden}.ac-skill-meta[data-v-abd25458]{min-width:0;color:var(--ui-ink-mute,#9ca3af);white-space:nowrap;align-items:center;gap:5px;font-size:10.5px;display:flex;overflow:hidden}[aria-pressed=true]>.ac-check-mark[data-v-abd25458],[aria-pressed=true] .ac-skill-name-row>.ac-check-mark[data-v-abd25458],[aria-pressed=true] .ac-model-card-top>.ac-check-mark[data-v-abd25458],[aria-checked=true] .ac-model-card-top>.ac-check-mark[data-v-abd25458],[aria-checked=true] .ac-option-title>.ac-check-mark[data-v-abd25458],[aria-checked=true]>.ac-check-mark[data-v-abd25458],[aria-selected=true]>.ac-check-mark[data-v-abd25458],[aria-selected=true] .ac-model-card-top>.ac-check-mark[data-v-abd25458]{opacity:1}.ac-skill-grid--split[data-v-abd25458]{grid-template-columns:repeat(auto-fill,minmax(min(100%,176px),1fr))}.ac-skill-tile[data-v-abd25458]{cursor:pointer;border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);text-align:left;border-radius:12px;flex-direction:column;min-width:0;height:auto;min-height:150px;transition:border-color .18s,box-shadow .18s,transform .18s;display:flex;overflow:hidden}.ac-skill-tile[data-v-abd25458]:hover{border-color:var(--ui-line,#0000001f);box-shadow:var(--ui-shadow-e1,0 2px 10px #0000000a);transform:translateY(-1px)}.ac-skill-tile[aria-pressed=true][data-v-abd25458]{border-color:var(--ui-accent-line,#0891b247);box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-accent,#0891b2) 7%, transparent)}.ac-skill-cover[data-v-abd25458]{width:100%;height:60px;color:var(--ui-primary-ink,#fffffff0);background:radial-gradient(circle at 82% 16%, var(--ui-primary-ink,#ffffff4d), transparent 34%), linear-gradient(145deg, hsl(var(--cover-h1,208) 66% 54%), hsl(var(--cover-h2,250) 62% 40%));place-items:center;display:grid;position:relative;overflow:hidden}.ac-skill-cover[data-v-abd25458]:after{content:"";background:var(--ui-primary-ink,#ffffff1f);border-radius:50%;height:40px;position:absolute;inset:auto -20px -18px 16px;transform:rotate(-7deg)}.ac-skill-cover .ac-skill-icon[data-v-abd25458] svg{width:26px;height:26px}.ac-skill-tile-body[data-v-abd25458]{flex-direction:column;gap:2px;padding:8px 9px 9px;display:flex}.ac-tile-top .ac-skill-name[data-v-abd25458]{white-space:normal}.ac-skill-tile .ac-skill-name[data-v-abd25458]{font-size:12px}.ac-skill-tile .ac-skill-desc[data-v-abd25458]{font-size:11px}.ac-skill-tile .ac-skill-meta[data-v-abd25458]{font-size:10px}.ac-model-grid[data-v-abd25458]{grid-template-columns:repeat(1,minmax(0,1fr));grid-auto-rows:min-content;gap:8px;padding-right:0;display:grid}.ac-model-brand[data-v-abd25458]{background:var(--ui-panel,#fff);width:35px;height:35px;color:var(--ui-ink,#374151);box-shadow:inset 0 0 0 1px var(--ui-line-soft,#0000000d);border-radius:9px;flex:none;place-items:center;display:grid}.ac-model-brand[data-v-abd25458] svg{width:22px;height:22px}.ac-model-brand[data-v-abd25458] img{object-fit:contain;border-radius:6px;width:22px;height:22px;display:block}.ac-model-copy[data-v-abd25458]{text-align:left;flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-model-id[data-v-abd25458]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 12.5px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-model-meta[data-v-abd25458]{white-space:nowrap;min-width:0;color:var(--ui-ink-mute,#9ca3af);align-items:center;gap:5px;font-size:10.5px;display:flex;overflow:hidden}.ac-model-line[data-v-abd25458]{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.ac-model-tip[data-v-abd25458]{white-space:normal;flex-direction:column;gap:2px;max-width:280px;display:flex}.ac-model-tip-desc[data-v-abd25458]{opacity:.78;word-break:break-word;line-height:1.4}.ac-model-card-top[data-v-abd25458]{align-items:flex-start;gap:4px;min-width:0;display:flex}.ac-model-card-top .ac-model-id[data-v-abd25458]{flex:1}.ac-model-row-list[data-v-abd25458]{flex-direction:column;gap:6px;display:flex}.ac-model-badges[data-v-abd25458]{flex:none;align-items:center;gap:4px;display:flex}.ac-menu-scroll[data-v-abd25458] .ac-model-scroll-body{padding:4px 12px 12px}.ac-model-row-list[data-v-abd25458]{gap:2px}.ac-model-row-list button[data-v-abd25458],.ac-model-grid button[data-v-abd25458]{text-align:left;border-radius:10px;justify-content:flex-start;gap:10px;width:100%;min-width:0;height:auto;min-height:0;padding:8px 10px}.ac-model-row-list button[data-v-abd25458]:hover,.ac-model-grid button[data-v-abd25458]:hover,.ac-model-row-list button[aria-selected=true][data-v-abd25458],.ac-model-grid button[aria-selected=true][data-v-abd25458]{background:var(--ui-hover,#0000000f)}.ac-model-entry[data-v-abd25458]{text-align:left;border-radius:10px;align-items:center;gap:10px;min-width:0;padding:8px 10px;transition:background .12s;display:flex}.ac-model-entry[data-v-abd25458]:hover,.ac-model-entry[aria-selected=true][data-v-abd25458]{background:var(--ui-hover,#0000000f)}.ac-model-entry .ac-model-hit[data-v-abd25458],.ac-model-entry .ac-model-hit[data-v-abd25458]:hover,.ac-model-entry .ac-model-hit[aria-selected=true][data-v-abd25458]{background:0 0;width:100%;min-width:0;height:auto}.ac-model-entry-sub[data-v-abd25458]{cursor:default;width:100%;font-weight:400}.ac-model-entry-sub .ac-model-copy[data-v-abd25458]{flex:1;min-width:0}.ac-model-account-item[data-v-abd25458]{justify-content:space-between}.ac-model-account-item-name[data-v-abd25458]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ac-model-panel.is-split .ac-menu-scroll[data-v-abd25458]{min-height:0}.ac-model-panel.is-split .ac-menu-scroll[data-v-abd25458] .ac-model-scroll-body{flex:1;min-height:0;padding:0;overflow:hidden}.ac-model-panel.is-split .ac-split[data-v-abd25458]{min-height:0}.ac-mcp-list[data-v-abd25458]{flex-direction:column;gap:6px;display:flex}.ac-mcp-item[data-v-abd25458]{border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);border-radius:10px;flex-direction:column;min-width:0;transition:border-color .18s,background .18s,box-shadow .18s;display:flex;overflow:hidden}.ac-mcp-item[data-v-abd25458]:hover{border-color:var(--ui-line-strong,#00000024)}.ac-mcp-item.is-picked[data-v-abd25458]{border-color:var(--ui-accent-line,#0891b247);background:linear-gradient(180deg, var(--ui-accent-soft,#0891b20d), var(--ui-panel,#fff) 42%)}.ac-mcp-item.is-open[data-v-abd25458]{border-color:var(--ui-line-strong,#00000024)}.ac-mcp-card[data-v-abd25458]{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:0;align-items:center;gap:8px;width:100%;min-width:0;padding:8px 10px;display:flex;overflow:hidden}.ac-pick-box[data-v-abd25458]{border:1px solid var(--ui-line-strong,#0000002e);background:var(--ui-panel,#fff);color:#0000;border-radius:6px;flex:none;place-items:center;width:20px;height:20px;padding:0;transition:background .15s,border-color .15s,color .15s;display:grid}.ac-pick-box[data-v-abd25458]:hover{border-color:var(--ui-ink-dim,#6b7280)}.ac-pick-box[aria-pressed=true][data-v-abd25458]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent,#0891b2);color:#fff}.ac-mcp-main[data-v-abd25458]{text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:9px;min-width:0;padding:0;display:flex}.ac-mcp-tools[data-v-abd25458]{border:0;border-top:1px solid var(--ui-line-soft,#0000000f);background:var(--ui-veil,#00000004);border-radius:0;flex-direction:column;gap:4px;margin:0;padding:8px 10px 10px;display:flex;overflow:hidden}.ac-tool-list[data-v-abd25458]{border-left:1px solid var(--ui-line,#0000001a);flex-direction:column;gap:2px;margin-left:2px;padding-left:10px;display:flex}.ac-tool-row[data-v-abd25458]{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:flex-start;gap:8px;width:100%;min-width:0;padding:6px 8px;transition:background .14s;display:flex}.ac-tool-row[data-v-abd25458]:hover{background:var(--ui-hover,#0000000d)}.ac-tool-row.is-picked[data-v-abd25458]{background:var(--ui-hover,#0000000f)}.ac-tool-radio[data-v-abd25458]{border:1.5px solid var(--ui-line-strong,#00000038);background:var(--ui-panel,#fff);color:#0000;border-radius:50%;flex:none;place-items:center;width:14px;height:14px;margin-top:2px;transition:background .14s,border-color .14s,color .14s;display:grid}.ac-tool-row:hover .ac-tool-radio[data-v-abd25458]{border-color:var(--ui-ink-dim,#6b7280)}.ac-tool-row.is-picked .ac-tool-radio[data-v-abd25458]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent,#0891b2);color:#fff}.ac-tool-row .ac-tool-copy[data-v-abd25458]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-tool-row .ac-tool-name[data-v-abd25458]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 11.5px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-tool-row .ac-tool-desc[data-v-abd25458]{-webkit-line-clamp:2;color:var(--ui-ink-mute,#9ca3af);-webkit-box-orient:vertical;font-size:10.5px;line-height:1.5;display:-webkit-box;overflow:hidden}.ac-mcp-tools-empty[data-v-abd25458]{color:var(--ui-ink-mute,#9ca3af);padding:8px 5px;font-size:11px;line-height:1.5}.ac-panel-note[data-v-abd25458]{color:var(--ui-ink-mute,#9ca3af);background:var(--ui-veil,#00000008);border-radius:8px;margin:10px 0 2px;padding:8px 10px;font-size:11px;line-height:1.5}.ac-skill-panel[data-v-abd25458]{padding-bottom:8px}.ac-panel-foot[data-v-abd25458]{border-top:1px solid var(--ui-line-soft,#0000000f);background:var(--ui-overlay,#fffffff0);flex:none;align-items:center;gap:8px;min-height:36px;padding:6px 10px;display:flex}.ac-model-foot .ac-selection-summary[data-v-abd25458]{justify-content:flex-start}.ac-menu-hint[data-v-abd25458]{text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--ui-ink-dim,#919191);font-size:11px;overflow:hidden}.ac-menu-empty[data-v-abd25458]{color:var(--ui-ink-dim,#919191);margin:8px 10px;font-size:12px}.ac-composer[data-v-abd25458]{flex:none;padding:4px 8px 12px;position:relative}.ac-input-box[data-v-abd25458]{border:1px solid var(--ui-line,#363636);background:var(--ui-overlay-solid,#212121);border-radius:16px;flex-direction:column;gap:8px;padding:8px;display:flex;position:relative}@container (width<=300px){.ac-goal-bar[data-v-abd25458]{display:none}}@container (width<=250px){.ac-goal-flag[data-v-abd25458]{display:none}}@media (prefers-reduced-motion:reduce){.ac-queue-pause[data-v-abd25458]{transition:none}}.ac-icon-btn[data-v-abd25458]{background:var(--ui-veil,#0000000a);color:var(--ui-ink-dim,#6b7280);flex:none;position:relative}.ac-icon-btn[data-v-abd25458]:hover{background:var(--ui-hover,#0000000f);color:var(--ui-ink,#111827)}.ac-icon-btn[data-v-abd25458]:active{transform:scale(.96)}.ac-icon-btn[aria-expanded=true][data-v-abd25458]{background:var(--ui-accent-soft,#0891b21a);color:var(--ui-accent-hover,#0e7490)}.ac-option-title[data-v-abd25458]{min-width:0;color:var(--ui-ink,#111827);flex-wrap:nowrap;align-items:center;gap:6px;font-size:13px;font-weight:600;line-height:1.35;display:flex}.ac-option-label[data-v-abd25458]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ac-option-title[data-v-abd25458]>:last-child:not(.ac-option-label){white-space:nowrap;flex:none}.ac-option-desc[data-v-abd25458]{color:var(--ui-ink-dim,#6b7280);white-space:normal;word-break:break-word;margin-top:3px;font-size:12px;line-height:1.45;display:block}.ac-dot-sep[data-v-abd25458]{background:var(--ui-line,#00000014);flex:none;width:1px;height:8px}.ac-check-mark[data-v-abd25458]{width:16px;height:16px;color:var(--ui-ink,#18202b);flex:none;place-items:center;display:grid}.ac-split[data-v-abd25458]{flex:1;min-height:0;display:flex;overflow:hidden}.ac-view-stack[data-v-abd25458]{flex:1;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);min-height:0;display:grid;position:relative}.ac-view-pane[data-v-abd25458]{opacity:0;visibility:hidden;pointer-events:none;flex:1;grid-area:1/1;height:100%;min-height:0;max-height:100%;transition:none;overflow:hidden}.ac-view-pane.is-active[data-v-abd25458]{opacity:1;visibility:visible;pointer-events:auto}@media (prefers-reduced-motion:reduce){.ac-view-pane[data-v-abd25458]{transition:none}}.ac-split-rail[data-v-abd25458]{background:var(--ui-veil,#00000006);flex-direction:column;flex:none;width:168px;min-height:0;padding:6px 0 6px 6px;display:flex}.ac-rail-label[data-v-abd25458]{letter-spacing:.04em;color:var(--ui-ink-mute,#9ca3af);flex:none;padding:4px 8px 6px;font-size:10px;font-weight:700}.ac-rail-scroll[data-v-abd25458]{overscroll-behavior:contain;flex:1;min-height:0}.ac-rail-scroll[data-v-abd25458] .ac-rail-scroll-body{flex-direction:column;gap:2px;padding:0 6px 4px 0;display:flex}.ac-rail-icon[data-v-abd25458],.ac-rail-brand[data-v-abd25458]{flex:none;place-items:center;width:14px;height:14px;display:grid}.ac-rail-brand[data-v-abd25458] svg{width:14px;height:14px}.ac-rail-brand[data-v-abd25458] img{object-fit:contain;border-radius:3px;width:14px;height:14px;display:block}.ac-rail-name[data-v-abd25458]{text-overflow:ellipsis;white-space:nowrap;text-align:left;flex:1;min-width:0;overflow:hidden}.ac-rail-count[data-v-abd25458]{color:var(--ui-ink-mute,#9ca3af);flex:none;font-size:10px;font-weight:600}.ac-split-rail button[data-v-abd25458]{width:100%;color:var(--ui-ink-dim,#6b7280);border-radius:8px;justify-content:flex-start;gap:8px;padding-inline:8px;font-size:12.5px}.ac-split-rail button[data-v-abd25458]:hover{color:var(--ui-ink,#18202b)}.ac-split-rail button[aria-pressed=true][data-v-abd25458]{background:var(--ui-hover,#0000000f);color:var(--ui-ink,#18202b);box-shadow:none;font-weight:600}.ac-split-rail button[aria-pressed=true][data-v-abd25458]:hover{background:var(--ui-hover-strong,#00000017)}.ac-split-main[data-v-abd25458]{flex-direction:column;flex:1;min-width:0;min-height:0;padding-left:8px;display:flex;overflow:hidden}.ac-split-scroll[data-v-abd25458] .ac-split-scroll-body{flex-direction:column;min-height:100%;display:flex}.ac-split-scroll .ac-empty-state[data-v-abd25458]{flex:1;height:auto;min-height:0}.ac-panel .ac-empty-state[data-v-abd25458]{min-height:190px;color:var(--ui-ink-mute,#9ca3af);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:20px;display:flex}.ac-panel .ac-empty-state[data-v-abd25458]:last-child,.ac-panel-scroll[data-v-abd25458] .ac-panel-scroll-body>.ac-empty-state,.ac-mcp-scroll[data-v-abd25458] .ac-mcp-scroll-body>.ac-empty-state,.ac-menu-scroll[data-v-abd25458] .ac-model-scroll-body>div>.ac-empty-state{flex:1;min-height:0}.ac-menu-scroll[data-v-abd25458] .ac-model-scroll-body>div{flex-direction:column;flex:1;min-height:0;display:flex}.ac-panel .ac-empty-icon[data-v-abd25458]{background:var(--ui-veil,#0000000a);width:38px;height:38px;color:var(--ui-ink-mute,#9ca3af);border-radius:12px;place-items:center;margin-bottom:2px;display:grid}.ac-panel .ac-empty-title[data-v-abd25458]{color:var(--ui-ink-dim,#6b7280);font-size:12px;font-weight:600}.ac-panel .ac-empty-desc[data-v-abd25458]{font-size:11px}.ac-split-scroll[data-v-abd25458]{overscroll-behavior:contain;flex:1;min-width:0;max-width:100%;height:auto;min-height:0;max-height:100%;overflow:hidden}.ac-split-scroll[data-v-abd25458] .ac-split-scroll-body{padding:6px 6px 10px 10px}.ac-split-scroll .ac-model-row-list[data-v-abd25458],.ac-split-scroll .ac-skill-grid--split[data-v-abd25458]{padding-top:8px;padding-bottom:2px}.ac-tile-top[data-v-abd25458]{align-items:flex-start;gap:4px;display:flex}.ac-server-icon[data-v-abd25458]{background:var(--ui-accent-soft,#0891b21a);width:32px;height:32px;color:var(--ui-accent-hover,#0e7490);border-radius:10px;flex:none;place-items:center;display:grid}.ac-server-icon[data-v-abd25458] svg{width:16px;height:16px}.ac-server-copy[data-v-abd25458]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-server-name[data-v-abd25458]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 12.5px/1.35 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-server-desc[data-v-abd25458]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-mute,#9ca3af);font-size:11px;line-height:1.35;overflow:hidden}.ac-server-side[data-v-abd25458]{flex:none;align-items:center;gap:4px;padding-left:4px;display:flex}.ac-status[data-v-abd25458]{background:var(--ui-veil,#0000000b);height:20px;color:var(--ui-ink-dim,#5b6472);white-space:nowrap;border-radius:999px;align-items:center;gap:5px;padding:0 7px;font-size:10px;font-weight:600;display:inline-flex}.ac-status[data-v-abd25458]:before{content:"";background:var(--ui-ink-mute,#9ca3af);border-radius:50%;width:4px;height:4px}.ac-status.is-ok[data-v-abd25458]{background:var(--ui-accent-soft,#0891b217);color:var(--ui-accent-hover,#0e7490)}.ac-status.is-ok[data-v-abd25458]:before{background:var(--ui-accent,#0891b2)}.ac-status.is-bad[data-v-abd25458]{background:var(--ui-warn-soft,#f59e0b24);color:var(--ui-warn,#b45309)}.ac-status.is-bad[data-v-abd25458]:before{background:var(--ui-warn,#b45309)}.ac-expand-btn[data-v-abd25458]{width:18px;height:18px;color:var(--ui-ink-mute,#9ca3af);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;place-items:center;display:grid}.ac-expand-btn[data-v-abd25458]:hover{background:var(--ui-veil,#0000000a);color:var(--ui-ink,#111827)}.ac-expand-btn[data-v-abd25458] svg{transition:transform .18s var(--ui-ease-back,cubic-bezier(.34, 1.56, .64, 1))}.ac-expand-btn[data-v-abd25458] svg.is-open{transform:rotate(180deg)}.ac-selection-summary[data-v-abd25458]{min-width:0;color:var(--ui-ink-dim,#6b7280);flex:1;align-items:center;gap:5px;font-size:11px;line-height:1.35;display:flex}.ac-selected-number[data-v-abd25458]{color:var(--ui-ink,#111827);font-size:12px;font-weight:700}@container (width<=469px){.ac-panel-head-top[data-v-abd25458]{grid-template-columns:minmax(0,1fr) auto}}@container (width<=540px){.ac-detect-label[data-v-abd25458]{display:none}}@container (width<=386px){.ac-panel-tools[data-v-abd25458]{gap:4px}.ac-panel-head[data-v-abd25458]{padding-left:10px;padding-right:10px}}@container (width<=460px){.ac-split[data-v-abd25458]{flex-direction:column}.ac-split-rail[data-v-abd25458]{border-right:0;border-bottom:1px solid var(--ui-line-soft,#0000000f);flex:none;width:auto}.ac-rail-label[data-v-abd25458]{display:none}.ac-rail-scroll[data-v-abd25458]{flex-direction:row;gap:5px;padding:7px 10px;overflow:auto hidden}.ac-rail-icon[data-v-abd25458],.ac-rail-brand[data-v-abd25458],.ac-rail-brand[data-v-abd25458] img,.ac-rail-brand[data-v-abd25458] svg{width:13px;height:13px}.ac-rail-count[data-v-abd25458]{display:none}.ac-split-scroll[data-v-abd25458]{padding:9px 10px 10px}.ac-skill-grid--split[data-v-abd25458]{grid-template-columns:repeat(auto-fill,minmax(min(100%,154px),1fr))}}@container (width<=360px){.ac-panel-head-top[data-v-abd25458]{gap:5px}.ac-panel-title[data-v-abd25458]{font-size:14px}.ac-panel-count[data-v-abd25458]{display:none}.ac-skill-grid[data-v-abd25458],.ac-model-grid[data-v-abd25458],.ac-skill-grid--split[data-v-abd25458]{grid-template-columns:1fr}.ac-mcp-card[data-v-abd25458]{gap:5px;padding:7px 6px}.ac-mcp-card .ac-server-icon[data-v-abd25458]{display:none}.ac-panel-foot[data-v-abd25458]{padding-left:10px;padding-right:10px}}.ac-view-tabs[data-v-abd25458]{background:var(--ui-hover-soft,#0000000d);border-radius:999px;flex:none;align-items:center;gap:2px;padding:2px;display:inline-flex}.ac-view-tab[data-v-abd25458]{appearance:none;color:var(--ui-ink-dim,#6b7280);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:999px;margin:0;padding:3px 12px;font-size:12px;font-weight:600;line-height:20px;transition:color .12s ease-out,background-color .12s ease-out}.ac-view-tab[data-v-abd25458]:hover{color:var(--ui-ink,#18202b)}.ac-view-tab.is-active[data-v-abd25458]{background:var(--ui-panel,#fff);color:var(--ui-ink,#18202b);box-shadow:0 1px 3px #0f172a1f, 0 0 0 1px var(--ui-line,#e2e5ea)}.ac-view-tab[data-v-abd25458]:focus-visible{outline:2px solid color-mix(in srgb, var(--ui-accent,#0891b2) 60%, transparent);outline-offset:1px}.ac-editor .prose-mirror-editor .ProseMirror,.ac-editor .prose-mirror-editor>div:first-child{min-height:64px}.ac-editor .prose-mirror-editor .ProseMirror{font-size:14px;line-height:24px}.prose-mirror-editor .ac-tag{background:var(--ui-hover-strong,#0000001a);vertical-align:bottom;-webkit-user-select:none;user-select:none;cursor:pointer;border-radius:6px;align-items:center;gap:4px;max-width:200px;height:22px;margin:0 2px;padding:0 6px 0 4px;display:inline-flex}.prose-mirror-editor .ac-tag.resource-node{border-bottom:0;height:22px;padding:0 6px 0 4px}.prose-mirror-editor .ac-tag .ac-tag-icon{width:16px;height:16px;color:var(--ui-ink-dim,#919191);border-radius:4px;flex:none;place-items:center;display:grid;position:relative;overflow:hidden}.prose-mirror-editor .ac-tag .ac-tag-icon svg{width:13px;height:13px}.prose-mirror-editor .ac-tag .ac-tag-thumb{border-radius:inherit;pointer-events:none;background-position:50%;background-repeat:no-repeat;background-size:cover;position:absolute;inset:0}.prose-mirror-editor .ac-tag .ac-tag-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ui-ink,#f7f7f7);font-size:12px;font-weight:500;line-height:1;overflow:hidden}.prose-mirror-editor .ProseMirror-selectednode.ac-tag,.prose-mirror-editor .ac-tag.resource-node-selected{background:var(--ui-accent,#0891b2)}.prose-mirror-editor .ProseMirror-selectednode.ac-tag .ac-tag-label,.prose-mirror-editor .ac-tag.resource-node-selected .ac-tag-label,.prose-mirror-editor .ProseMirror-selectednode.ac-tag .ac-tag-icon,.prose-mirror-editor .ac-tag.resource-node-selected .ac-tag-icon{color:var(--ui-on-accent,#fff)}.mention-menu .ac-mrow{align-items:center;gap:8px;min-width:0;display:flex}.mention-menu .ac-mrow-icon{background:var(--ui-chip,#ffffff1a);width:24px;height:24px;color:var(--ui-ink,#f7f7f7);border-radius:6px;flex:none;place-items:center;display:grid;position:relative;overflow:hidden}.mention-menu .ac-mrow-icon svg{width:14px;height:14px}.mention-menu .ac-mrow-glyph{place-items:center;display:grid}.mention-menu .ac-mrow-thumb{border-radius:inherit;background-position:50%;background-repeat:no-repeat;background-size:cover;position:absolute;inset:0}.mention-menu .ac-mrow-text{flex-direction:column;flex:1;min-width:0;display:flex}.mention-menu .ac-mrow-name{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#f7f7f7);font-size:13px;line-height:18px;overflow:hidden}.mention-menu .ac-mrow-hint{opacity:0;text-overflow:ellipsis;white-space:nowrap;max-height:0;color:var(--ui-ink-dim,#919191);font-size:11px;line-height:16px;transition:max-height .18s,opacity .18s;overflow:hidden}.mention-menu .menu-item:hover .ac-mrow-hint,.mention-menu .menu-item.active .ac-mrow-hint{opacity:1;max-height:16px}@media (prefers-reduced-motion:reduce){.mention-menu .ac-mrow-hint{transition:none}}.ac-root[data-v-dc8c31bd]{height:100%;min-height:0;color:var(--ui-ink,#f7f7f7);--ac-expand-max-height:min(360px, 50vh);flex-direction:column;display:flex;position:relative}.ac-onboard[data-v-dc8c31bd]{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.ac-onboard strong[data-v-dc8c31bd]{font-size:15px}.ac-onboard p[data-v-dc8c31bd]{color:var(--ui-ink-dim,#919191);margin:0;font-size:13px}.ac-onboard-icon[data-v-dc8c31bd]{color:var(--ui-accent,#0891b2)}.ac-onboard-path[data-v-dc8c31bd]{opacity:.75;word-break:break-all;font-size:12px}.ac-menu-head[data-v-771dc089]{flex:none;align-items:center;gap:8px;padding:8px 10px 6px;display:flex}.ac-menu-head-title[data-v-771dc089]{color:var(--ui-ink,#f7f7f7);font-size:12px;font-weight:600}.ac-menu-head-count[data-v-771dc089]{background:var(--ui-chip,#ffffff1a);text-align:center;min-width:18px;color:var(--ui-ink-dim,#919191);border-radius:999px;padding:0 5px;font-size:11px;line-height:16px}.ac-menu-head-spacer[data-v-771dc089]{flex:1;min-width:4px}.ac-menu-head-btn[data-v-771dc089]{border:1px solid var(--ui-line,#363636);height:22px;color:var(--ui-ink-dim,#919191);cursor:pointer;background:0 0;border-radius:999px;flex:none;align-items:center;gap:4px;padding:0 8px;font-size:11px;display:inline-flex}.ac-menu-head-btn[data-v-771dc089]:hover:not(:disabled){background:var(--ui-hover,#ffffff1a);color:var(--ui-ink,#f7f7f7)}.ac-menu-head-btn[data-v-771dc089]:disabled{opacity:.6;cursor:default}.ac-menu-card-badge[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;background:var(--ui-accent-soft,#0891b21f);max-width:96px;color:var(--ui-accent-hover,#0e7490);border-radius:999px;flex:none;margin-top:3px;padding:1px 6px;font-size:11px;line-height:15px;overflow:hidden}.ac-menu-card-badge.is-bad[data-v-771dc089]{background:var(--ui-danger-veil,#ef44441a);color:var(--ui-danger,#ef4444)}.ac-menu-scroll[data-v-771dc089]{flex-direction:column;flex:1;gap:2px;min-height:0;padding:0;display:flex;overflow:visible}.ac-menu-card[data-v-771dc089]{background:var(--ui-veil,#ffffff0a);text-align:left;cursor:pointer;border:1px solid #0000;border-radius:10px;align-items:flex-start;gap:10px;width:100%;padding:9px 10px;transition:background .14s,border-color .14s;display:flex}.ac-menu-card[data-v-771dc089]:hover{background:var(--ui-hover,#ffffff1a)}.ac-menu-card[aria-selected=true][data-v-771dc089]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent-soft,#0891b21f)}.ac-menu-card-icon[data-v-771dc089]{background:var(--ui-chip,#ffffff1a);width:26px;height:26px;color:var(--ui-ink-dim,#919191);border-radius:8px;flex:none;place-items:center;display:grid}.ac-menu-card-icon[data-v-771dc089] svg{width:15px;height:15px}.ac-menu-card[aria-selected=true] .ac-menu-card-icon[data-v-771dc089]{color:var(--ui-accent,#0891b2)}.ac-menu-card-text[data-v-771dc089]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-menu-card-name[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#f7f7f7);font-size:13px;overflow:hidden}.ac-menu-card[aria-selected=true] .ac-menu-card-name[data-v-771dc089]{color:var(--ui-accent,#0891b2);font-weight:600}.ac-menu-card-hint[data-v-771dc089]{-webkit-line-clamp:2;color:var(--ui-ink-dim,#919191);-webkit-box-orient:vertical;font-size:11px;line-height:1.5;display:-webkit-box;overflow:hidden}.ac-menu-card-check[data-v-771dc089]{color:var(--ui-accent,#0891b2);flex:none;margin-top:5px}.ac-panel[data-v-771dc089]{flex-direction:column;flex:1;width:100%;min-height:min(460px,100dvh - 200px);padding:0;font:13px/1.5 -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;display:flex;container-type:inline-size}.ac-panel.is-split[data-v-771dc089]{min-height:min(460px,100dvh - 200px)}.ac-panel-head[data-v-771dc089]{flex-direction:column;flex:none;gap:10px;padding:12px 12px 10px;display:flex}.ac-panel-head-top[data-v-771dc089]{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;display:grid}.ac-panel-head-top--review[data-v-771dc089]{grid-template-columns:minmax(0,1fr) auto}.ac-panel-heading>svg[data-v-771dc089]{color:var(--ui-ink-dim,#6b7280);flex:none}.is-auto-auth[data-v-771dc089]{color:var(--ui-danger,#ef4444)!important}.ac-panel-heading[data-v-771dc089]{flex:1;align-items:center;gap:7px;min-width:0;display:flex}.ac-panel-title[data-v-771dc089]{letter-spacing:-.01em;white-space:nowrap;color:var(--ui-ink,#111827);margin:0;font-size:15px;font-weight:700;line-height:1.3}.ac-panel-count[data-v-771dc089]{background:var(--ui-veil,#0000000a);min-width:20px;height:18px;color:var(--ui-ink-dim,#6b7280);border-radius:999px;justify-content:center;align-items:center;padding:0 6px;font-size:10px;font-weight:700;line-height:1;display:inline-flex}.ac-panel-lede[data-v-771dc089]{color:var(--ui-ink-dim,#6b7280);margin:0;font-size:12px;line-height:1.45}.ac-review-state[data-v-771dc089]{background:var(--ui-accent-soft,#0891b21a);height:18px;color:var(--ui-accent-hover,#0e7490);white-space:nowrap;border-radius:999px;flex:none;align-items:center;gap:4px;padding:0 6px;font-size:10px;font-weight:600;display:inline-flex}.ac-panel-tools[data-v-771dc089]{flex:none;justify-content:flex-end;align-items:center;gap:5px;display:flex}.ac-panel-body[data-v-771dc089]{flex-direction:column;flex:1;min-height:0;display:flex;position:relative;overflow:hidden}.ac-mcp-panel .ac-selection-summary[data-v-771dc089]{flex-wrap:wrap;row-gap:2px}.ac-panel-scroll[data-v-771dc089]{flex:1;min-height:0}.ac-panel-scroll[data-v-771dc089] .ac-panel-scroll-body,.ac-review-body[data-v-771dc089]{padding:2px 12px 12px}.ac-review-list[data-v-771dc089]{flex-direction:column;gap:8px;display:flex}.ac-review-item[data-v-771dc089]{flex-direction:column;align-items:stretch;gap:0;width:100%;display:flex}.ac-review-item .ac-option-title[data-v-771dc089]{width:100%}.ac-review-item[aria-checked=true][data-v-771dc089]{background:var(--ui-hover,#0000000f)}.ac-review-item[aria-checked=true] .ac-option-label[data-v-771dc089]{color:var(--ui-ink,#111827)}.ac-option-icon[data-v-771dc089]{color:var(--ui-ink-dim,#6b7280);flex:none}.ac-review-item .ac-review-check[data-v-771dc089]{margin-left:auto}.ac-skill-grid[data-v-771dc089]{grid-template-columns:repeat(1,minmax(0,1fr));gap:8px;display:grid}.ac-skill-card[data-v-771dc089]{cursor:pointer;border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);text-align:left;border-radius:12px;align-items:center;gap:9px;width:100%;min-width:0;height:auto;min-height:72px;padding:8px;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s;display:flex}.ac-skill-card[data-v-771dc089]:focus-visible,.ac-skill-tile[data-v-771dc089]:focus-visible{outline:2px solid var(--ui-accent-ring,#0891b299);outline-offset:2px}.ac-skill-card[data-v-771dc089]:hover{background:var(--ui-hover-soft,#00000008);border-color:var(--ui-line,#0000001f);box-shadow:var(--ui-shadow-e1,0 2px 10px #0000000a);transform:translateY(-1px)}.ac-skill-thumb[data-v-771dc089]{width:54px;height:54px;color:var(--ui-primary-ink,#fffffff0);background:radial-gradient(circle at 78% 18%, var(--ui-primary-ink,#ffffff47), transparent 36%), linear-gradient(145deg, hsl(var(--cover-h1,208) 66% 54%), hsl(var(--cover-h2,250) 62% 40%));border-radius:10px;flex:none;place-items:center;display:grid;position:relative;overflow:hidden}.ac-skill-thumb[data-v-771dc089]:after{content:"";background:var(--ui-primary-ink,#ffffff1f);border-radius:50%;height:28px;position:absolute;inset:auto -8px -16px 12px;transform:rotate(-8deg)}.ac-skill-icon[data-v-771dc089]{z-index:1;place-items:center;display:grid;position:relative}.ac-skill-icon[data-v-771dc089] svg{width:23px;height:23px}.ac-skill-copy[data-v-771dc089]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-skill-name-row[data-v-771dc089]{align-items:center;gap:5px;min-width:0;display:flex}.ac-skill-name[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ui-ink,#111827);flex:1;font-size:12.5px;font-weight:600;line-height:1.35;overflow:hidden}.ac-skill-desc[data-v-771dc089]{-webkit-line-clamp:2;color:var(--ui-ink-dim,#6b7280);-webkit-box-orient:vertical;font-size:12px;line-height:1.4;display:-webkit-box;overflow:hidden}.ac-skill-meta[data-v-771dc089]{min-width:0;color:var(--ui-ink-mute,#9ca3af);white-space:nowrap;align-items:center;gap:5px;font-size:10.5px;display:flex;overflow:hidden}[aria-pressed=true]>.ac-check-mark[data-v-771dc089],[aria-pressed=true] .ac-skill-name-row>.ac-check-mark[data-v-771dc089],[aria-pressed=true] .ac-model-card-top>.ac-check-mark[data-v-771dc089],[aria-checked=true] .ac-model-card-top>.ac-check-mark[data-v-771dc089],[aria-checked=true] .ac-option-title>.ac-check-mark[data-v-771dc089],[aria-checked=true]>.ac-check-mark[data-v-771dc089],[aria-selected=true]>.ac-check-mark[data-v-771dc089],[aria-selected=true] .ac-model-card-top>.ac-check-mark[data-v-771dc089]{opacity:1}.ac-skill-grid--split[data-v-771dc089]{grid-template-columns:repeat(auto-fill,minmax(min(100%,176px),1fr))}.ac-skill-tile[data-v-771dc089]{cursor:pointer;border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);text-align:left;border-radius:12px;flex-direction:column;min-width:0;height:auto;min-height:150px;transition:border-color .18s,box-shadow .18s,transform .18s;display:flex;overflow:hidden}.ac-skill-tile[data-v-771dc089]:hover{border-color:var(--ui-line,#0000001f);box-shadow:var(--ui-shadow-e1,0 2px 10px #0000000a);transform:translateY(-1px)}.ac-skill-tile[aria-pressed=true][data-v-771dc089]{border-color:var(--ui-accent-line,#0891b247);box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-accent,#0891b2) 7%, transparent)}.ac-skill-cover[data-v-771dc089]{width:100%;height:60px;color:var(--ui-primary-ink,#fffffff0);background:radial-gradient(circle at 82% 16%, var(--ui-primary-ink,#ffffff4d), transparent 34%), linear-gradient(145deg, hsl(var(--cover-h1,208) 66% 54%), hsl(var(--cover-h2,250) 62% 40%));place-items:center;display:grid;position:relative;overflow:hidden}.ac-skill-cover[data-v-771dc089]:after{content:"";background:var(--ui-primary-ink,#ffffff1f);border-radius:50%;height:40px;position:absolute;inset:auto -20px -18px 16px;transform:rotate(-7deg)}.ac-skill-cover .ac-skill-icon[data-v-771dc089] svg{width:26px;height:26px}.ac-skill-tile-body[data-v-771dc089]{flex-direction:column;gap:2px;padding:8px 9px 9px;display:flex}.ac-tile-top .ac-skill-name[data-v-771dc089]{white-space:normal}.ac-skill-tile .ac-skill-name[data-v-771dc089]{font-size:12px}.ac-skill-tile .ac-skill-desc[data-v-771dc089]{font-size:11px}.ac-skill-tile .ac-skill-meta[data-v-771dc089]{font-size:10px}.ac-model-grid[data-v-771dc089]{grid-template-columns:repeat(1,minmax(0,1fr));grid-auto-rows:min-content;gap:8px;padding-right:0;display:grid}.ac-model-brand[data-v-771dc089]{background:var(--ui-panel,#fff);width:35px;height:35px;color:var(--ui-ink,#374151);box-shadow:inset 0 0 0 1px var(--ui-line-soft,#0000000d);border-radius:9px;flex:none;place-items:center;display:grid}.ac-model-brand[data-v-771dc089] svg{width:22px;height:22px}.ac-model-brand[data-v-771dc089] img{object-fit:contain;border-radius:6px;width:22px;height:22px;display:block}.ac-model-copy[data-v-771dc089]{text-align:left;flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-model-id[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 12.5px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-model-meta[data-v-771dc089]{white-space:nowrap;min-width:0;color:var(--ui-ink-mute,#9ca3af);align-items:center;gap:5px;font-size:10.5px;display:flex;overflow:hidden}.ac-model-line[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.ac-model-tip[data-v-771dc089]{white-space:normal;flex-direction:column;gap:2px;max-width:280px;display:flex}.ac-model-tip-desc[data-v-771dc089]{opacity:.78;word-break:break-word;line-height:1.4}.ac-model-card-top[data-v-771dc089]{align-items:flex-start;gap:4px;min-width:0;display:flex}.ac-model-card-top .ac-model-id[data-v-771dc089]{flex:1}.ac-model-row-list[data-v-771dc089]{flex-direction:column;gap:6px;display:flex}.ac-model-badges[data-v-771dc089]{flex:none;align-items:center;gap:4px;display:flex}.ac-menu-scroll[data-v-771dc089] .ac-model-scroll-body{padding:4px 12px 12px}.ac-model-row-list[data-v-771dc089]{gap:2px}.ac-model-row-list button[data-v-771dc089],.ac-model-grid button[data-v-771dc089]{text-align:left;border-radius:10px;justify-content:flex-start;gap:10px;width:100%;min-width:0;height:auto;min-height:0;padding:8px 10px}.ac-model-row-list button[data-v-771dc089]:hover,.ac-model-grid button[data-v-771dc089]:hover,.ac-model-row-list button[aria-selected=true][data-v-771dc089],.ac-model-grid button[aria-selected=true][data-v-771dc089]{background:var(--ui-hover,#0000000f)}.ac-model-entry[data-v-771dc089]{text-align:left;border-radius:10px;align-items:center;gap:10px;min-width:0;padding:8px 10px;transition:background .12s;display:flex}.ac-model-entry[data-v-771dc089]:hover,.ac-model-entry[aria-selected=true][data-v-771dc089]{background:var(--ui-hover,#0000000f)}.ac-model-entry .ac-model-hit[data-v-771dc089],.ac-model-entry .ac-model-hit[data-v-771dc089]:hover,.ac-model-entry .ac-model-hit[aria-selected=true][data-v-771dc089]{background:0 0;width:100%;min-width:0;height:auto}.ac-model-entry-sub[data-v-771dc089]{cursor:default;width:100%;font-weight:400}.ac-model-entry-sub .ac-model-copy[data-v-771dc089]{flex:1;min-width:0}.ac-model-account-item[data-v-771dc089]{justify-content:space-between}.ac-model-account-item-name[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ac-model-panel.is-split .ac-menu-scroll[data-v-771dc089]{min-height:0}.ac-model-panel.is-split .ac-menu-scroll[data-v-771dc089] .ac-model-scroll-body{flex:1;min-height:0;padding:0;overflow:hidden}.ac-model-panel.is-split .ac-split[data-v-771dc089]{min-height:0}.ac-mcp-list[data-v-771dc089]{flex-direction:column;gap:6px;display:flex}.ac-mcp-item[data-v-771dc089]{border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);border-radius:10px;flex-direction:column;min-width:0;transition:border-color .18s,background .18s,box-shadow .18s;display:flex;overflow:hidden}.ac-mcp-item[data-v-771dc089]:hover{border-color:var(--ui-line-strong,#00000024)}.ac-mcp-item.is-picked[data-v-771dc089]{border-color:var(--ui-accent-line,#0891b247);background:linear-gradient(180deg, var(--ui-accent-soft,#0891b20d), var(--ui-panel,#fff) 42%)}.ac-mcp-item.is-open[data-v-771dc089]{border-color:var(--ui-line-strong,#00000024)}.ac-mcp-card[data-v-771dc089]{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:0;align-items:center;gap:8px;width:100%;min-width:0;padding:8px 10px;display:flex;overflow:hidden}.ac-pick-box[data-v-771dc089]{border:1px solid var(--ui-line-strong,#0000002e);background:var(--ui-panel,#fff);color:#0000;border-radius:6px;flex:none;place-items:center;width:20px;height:20px;padding:0;transition:background .15s,border-color .15s,color .15s;display:grid}.ac-pick-box[data-v-771dc089]:hover{border-color:var(--ui-ink-dim,#6b7280)}.ac-pick-box[aria-pressed=true][data-v-771dc089]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent,#0891b2);color:#fff}.ac-mcp-main[data-v-771dc089]{text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:9px;min-width:0;padding:0;display:flex}.ac-mcp-tools[data-v-771dc089]{border:0;border-top:1px solid var(--ui-line-soft,#0000000f);background:var(--ui-veil,#00000004);border-radius:0;flex-direction:column;gap:4px;margin:0;padding:8px 10px 10px;display:flex;overflow:hidden}.ac-tool-list[data-v-771dc089]{border-left:1px solid var(--ui-line,#0000001a);flex-direction:column;gap:2px;margin-left:2px;padding-left:10px;display:flex}.ac-tool-row[data-v-771dc089]{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:flex-start;gap:8px;width:100%;min-width:0;padding:6px 8px;transition:background .14s;display:flex}.ac-tool-row[data-v-771dc089]:hover{background:var(--ui-hover,#0000000d)}.ac-tool-row.is-picked[data-v-771dc089]{background:var(--ui-hover,#0000000f)}.ac-tool-radio[data-v-771dc089]{border:1.5px solid var(--ui-line-strong,#00000038);background:var(--ui-panel,#fff);color:#0000;border-radius:50%;flex:none;place-items:center;width:14px;height:14px;margin-top:2px;transition:background .14s,border-color .14s,color .14s;display:grid}.ac-tool-row:hover .ac-tool-radio[data-v-771dc089]{border-color:var(--ui-ink-dim,#6b7280)}.ac-tool-row.is-picked .ac-tool-radio[data-v-771dc089]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent,#0891b2);color:#fff}.ac-tool-row .ac-tool-copy[data-v-771dc089]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-tool-row .ac-tool-name[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 11.5px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-tool-row .ac-tool-desc[data-v-771dc089]{-webkit-line-clamp:2;color:var(--ui-ink-mute,#9ca3af);-webkit-box-orient:vertical;font-size:10.5px;line-height:1.5;display:-webkit-box;overflow:hidden}.ac-mcp-tools-empty[data-v-771dc089]{color:var(--ui-ink-mute,#9ca3af);padding:8px 5px;font-size:11px;line-height:1.5}.ac-panel-note[data-v-771dc089]{color:var(--ui-ink-mute,#9ca3af);background:var(--ui-veil,#00000008);border-radius:8px;margin:10px 0 2px;padding:8px 10px;font-size:11px;line-height:1.5}.ac-skill-panel[data-v-771dc089]{padding-bottom:8px}.ac-panel-foot[data-v-771dc089]{border-top:1px solid var(--ui-line-soft,#0000000f);background:var(--ui-overlay,#fffffff0);flex:none;align-items:center;gap:8px;min-height:36px;padding:6px 10px;display:flex}.ac-model-foot .ac-selection-summary[data-v-771dc089]{justify-content:flex-start}.ac-menu-hint[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--ui-ink-dim,#919191);font-size:11px;overflow:hidden}.ac-menu-empty[data-v-771dc089]{color:var(--ui-ink-dim,#919191);margin:8px 10px;font-size:12px}.ac-composer[data-v-771dc089]{flex:none;padding:4px 8px 12px;position:relative}.ac-input-box[data-v-771dc089]{border:1px solid var(--ui-line,#363636);background:var(--ui-overlay-solid,#212121);border-radius:16px;flex-direction:column;gap:8px;padding:8px;display:flex;position:relative}@container (width<=300px){.ac-goal-bar[data-v-771dc089]{display:none}}@container (width<=250px){.ac-goal-flag[data-v-771dc089]{display:none}}@media (prefers-reduced-motion:reduce){.ac-queue-pause[data-v-771dc089]{transition:none}}.ac-icon-btn[data-v-771dc089]{background:var(--ui-veil,#0000000a);color:var(--ui-ink-dim,#6b7280);flex:none;position:relative}.ac-icon-btn[data-v-771dc089]:hover{background:var(--ui-hover,#0000000f);color:var(--ui-ink,#111827)}.ac-icon-btn[data-v-771dc089]:active{transform:scale(.96)}.ac-icon-btn[aria-expanded=true][data-v-771dc089]{background:var(--ui-accent-soft,#0891b21a);color:var(--ui-accent-hover,#0e7490)}.ac-option-title[data-v-771dc089]{min-width:0;color:var(--ui-ink,#111827);flex-wrap:nowrap;align-items:center;gap:6px;font-size:13px;font-weight:600;line-height:1.35;display:flex}.ac-option-label[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ac-option-title[data-v-771dc089]>:last-child:not(.ac-option-label){white-space:nowrap;flex:none}.ac-option-desc[data-v-771dc089]{color:var(--ui-ink-dim,#6b7280);white-space:normal;word-break:break-word;margin-top:3px;font-size:12px;line-height:1.45;display:block}.ac-dot-sep[data-v-771dc089]{background:var(--ui-line,#00000014);flex:none;width:1px;height:8px}.ac-check-mark[data-v-771dc089]{width:16px;height:16px;color:var(--ui-ink,#18202b);flex:none;place-items:center;display:grid}.ac-split[data-v-771dc089]{flex:1;min-height:0;display:flex;overflow:hidden}.ac-view-stack[data-v-771dc089]{flex:1;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);min-height:0;display:grid;position:relative}.ac-view-pane[data-v-771dc089]{opacity:0;visibility:hidden;pointer-events:none;flex:1;grid-area:1/1;height:100%;min-height:0;max-height:100%;transition:none;overflow:hidden}.ac-view-pane.is-active[data-v-771dc089]{opacity:1;visibility:visible;pointer-events:auto}@media (prefers-reduced-motion:reduce){.ac-view-pane[data-v-771dc089]{transition:none}}.ac-split-rail[data-v-771dc089]{background:var(--ui-veil,#00000006);flex-direction:column;flex:none;width:168px;min-height:0;padding:6px 0 6px 6px;display:flex}.ac-rail-label[data-v-771dc089]{letter-spacing:.04em;color:var(--ui-ink-mute,#9ca3af);flex:none;padding:4px 8px 6px;font-size:10px;font-weight:700}.ac-rail-scroll[data-v-771dc089]{overscroll-behavior:contain;flex:1;min-height:0}.ac-rail-scroll[data-v-771dc089] .ac-rail-scroll-body{flex-direction:column;gap:2px;padding:0 6px 4px 0;display:flex}.ac-rail-icon[data-v-771dc089],.ac-rail-brand[data-v-771dc089]{flex:none;place-items:center;width:14px;height:14px;display:grid}.ac-rail-brand[data-v-771dc089] svg{width:14px;height:14px}.ac-rail-brand[data-v-771dc089] img{object-fit:contain;border-radius:3px;width:14px;height:14px;display:block}.ac-rail-name[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;text-align:left;flex:1;min-width:0;overflow:hidden}.ac-rail-count[data-v-771dc089]{color:var(--ui-ink-mute,#9ca3af);flex:none;font-size:10px;font-weight:600}.ac-split-rail button[data-v-771dc089]{width:100%;color:var(--ui-ink-dim,#6b7280);border-radius:8px;justify-content:flex-start;gap:8px;padding-inline:8px;font-size:12.5px}.ac-split-rail button[data-v-771dc089]:hover{color:var(--ui-ink,#18202b)}.ac-split-rail button[aria-pressed=true][data-v-771dc089]{background:var(--ui-hover,#0000000f);color:var(--ui-ink,#18202b);box-shadow:none;font-weight:600}.ac-split-rail button[aria-pressed=true][data-v-771dc089]:hover{background:var(--ui-hover-strong,#00000017)}.ac-split-main[data-v-771dc089]{flex-direction:column;flex:1;min-width:0;min-height:0;padding-left:8px;display:flex;overflow:hidden}.ac-split-scroll[data-v-771dc089] .ac-split-scroll-body{flex-direction:column;min-height:100%;display:flex}.ac-split-scroll .ac-empty-state[data-v-771dc089]{flex:1;height:auto;min-height:0}.ac-panel .ac-empty-state[data-v-771dc089]{min-height:190px;color:var(--ui-ink-mute,#9ca3af);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:20px;display:flex}.ac-panel .ac-empty-state[data-v-771dc089]:last-child,.ac-panel-scroll[data-v-771dc089] .ac-panel-scroll-body>.ac-empty-state,.ac-mcp-scroll[data-v-771dc089] .ac-mcp-scroll-body>.ac-empty-state,.ac-menu-scroll[data-v-771dc089] .ac-model-scroll-body>div>.ac-empty-state{flex:1;min-height:0}.ac-menu-scroll[data-v-771dc089] .ac-model-scroll-body>div{flex-direction:column;flex:1;min-height:0;display:flex}.ac-panel .ac-empty-icon[data-v-771dc089]{background:var(--ui-veil,#0000000a);width:38px;height:38px;color:var(--ui-ink-mute,#9ca3af);border-radius:12px;place-items:center;margin-bottom:2px;display:grid}.ac-panel .ac-empty-title[data-v-771dc089]{color:var(--ui-ink-dim,#6b7280);font-size:12px;font-weight:600}.ac-panel .ac-empty-desc[data-v-771dc089]{font-size:11px}.ac-split-scroll[data-v-771dc089]{overscroll-behavior:contain;flex:1;min-width:0;max-width:100%;height:auto;min-height:0;max-height:100%;overflow:hidden}.ac-split-scroll[data-v-771dc089] .ac-split-scroll-body{padding:6px 6px 10px 10px}.ac-split-scroll .ac-model-row-list[data-v-771dc089],.ac-split-scroll .ac-skill-grid--split[data-v-771dc089]{padding-top:8px;padding-bottom:2px}.ac-tile-top[data-v-771dc089]{align-items:flex-start;gap:4px;display:flex}.ac-server-icon[data-v-771dc089]{background:var(--ui-accent-soft,#0891b21a);width:32px;height:32px;color:var(--ui-accent-hover,#0e7490);border-radius:10px;flex:none;place-items:center;display:grid}.ac-server-icon[data-v-771dc089] svg{width:16px;height:16px}.ac-server-copy[data-v-771dc089]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-server-name[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 12.5px/1.35 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-server-desc[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-mute,#9ca3af);font-size:11px;line-height:1.35;overflow:hidden}.ac-server-side[data-v-771dc089]{flex:none;align-items:center;gap:4px;padding-left:4px;display:flex}.ac-status[data-v-771dc089]{background:var(--ui-veil,#0000000b);height:20px;color:var(--ui-ink-dim,#5b6472);white-space:nowrap;border-radius:999px;align-items:center;gap:5px;padding:0 7px;font-size:10px;font-weight:600;display:inline-flex}.ac-status[data-v-771dc089]:before{content:"";background:var(--ui-ink-mute,#9ca3af);border-radius:50%;width:4px;height:4px}.ac-status.is-ok[data-v-771dc089]{background:var(--ui-accent-soft,#0891b217);color:var(--ui-accent-hover,#0e7490)}.ac-status.is-ok[data-v-771dc089]:before{background:var(--ui-accent,#0891b2)}.ac-status.is-bad[data-v-771dc089]{background:var(--ui-warn-soft,#f59e0b24);color:var(--ui-warn,#b45309)}.ac-status.is-bad[data-v-771dc089]:before{background:var(--ui-warn,#b45309)}.ac-expand-btn[data-v-771dc089]{width:18px;height:18px;color:var(--ui-ink-mute,#9ca3af);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;place-items:center;display:grid}.ac-expand-btn[data-v-771dc089]:hover{background:var(--ui-veil,#0000000a);color:var(--ui-ink,#111827)}.ac-expand-btn[data-v-771dc089] svg{transition:transform .18s var(--ui-ease-back,cubic-bezier(.34, 1.56, .64, 1))}.ac-expand-btn[data-v-771dc089] svg.is-open{transform:rotate(180deg)}.ac-selection-summary[data-v-771dc089]{min-width:0;color:var(--ui-ink-dim,#6b7280);flex:1;align-items:center;gap:5px;font-size:11px;line-height:1.35;display:flex}.ac-selected-number[data-v-771dc089]{color:var(--ui-ink,#111827);font-size:12px;font-weight:700}@container (width<=469px){.ac-panel-head-top[data-v-771dc089]{grid-template-columns:minmax(0,1fr) auto}}@container (width<=540px){.ac-detect-label[data-v-771dc089]{display:none}}@container (width<=386px){.ac-panel-tools[data-v-771dc089]{gap:4px}.ac-panel-head[data-v-771dc089]{padding-left:10px;padding-right:10px}}@container (width<=460px){.ac-split[data-v-771dc089]{flex-direction:column}.ac-split-rail[data-v-771dc089]{border-right:0;border-bottom:1px solid var(--ui-line-soft,#0000000f);flex:none;width:auto}.ac-rail-label[data-v-771dc089]{display:none}.ac-rail-scroll[data-v-771dc089]{flex-direction:row;gap:5px;padding:7px 10px;overflow:auto hidden}.ac-rail-icon[data-v-771dc089],.ac-rail-brand[data-v-771dc089],.ac-rail-brand[data-v-771dc089] img,.ac-rail-brand[data-v-771dc089] svg{width:13px;height:13px}.ac-rail-count[data-v-771dc089]{display:none}.ac-split-scroll[data-v-771dc089]{padding:9px 10px 10px}.ac-skill-grid--split[data-v-771dc089]{grid-template-columns:repeat(auto-fill,minmax(min(100%,154px),1fr))}}@container (width<=360px){.ac-panel-head-top[data-v-771dc089]{gap:5px}.ac-panel-title[data-v-771dc089]{font-size:14px}.ac-panel-count[data-v-771dc089]{display:none}.ac-skill-grid[data-v-771dc089],.ac-model-grid[data-v-771dc089],.ac-skill-grid--split[data-v-771dc089]{grid-template-columns:1fr}.ac-mcp-card[data-v-771dc089]{gap:5px;padding:7px 6px}.ac-mcp-card .ac-server-icon[data-v-771dc089]{display:none}.ac-panel-foot[data-v-771dc089]{padding-left:10px;padding-right:10px}}.ac-view-tabs[data-v-771dc089]{background:var(--ui-hover-soft,#0000000d);border-radius:999px;flex:none;align-items:center;gap:2px;padding:2px;display:inline-flex}.ac-view-tab[data-v-771dc089]{appearance:none;color:var(--ui-ink-dim,#6b7280);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:999px;margin:0;padding:3px 12px;font-size:12px;font-weight:600;line-height:20px;transition:color .12s ease-out,background-color .12s ease-out}.ac-view-tab[data-v-771dc089]:hover{color:var(--ui-ink,#18202b)}.ac-view-tab.is-active[data-v-771dc089]{background:var(--ui-panel,#fff);color:var(--ui-ink,#18202b);box-shadow:0 1px 3px #0f172a1f, 0 0 0 1px var(--ui-line,#e2e5ea)}.ac-view-tab[data-v-771dc089]:focus-visible{outline:2px solid color-mix(in srgb, var(--ui-accent,#0891b2) 60%, transparent);outline-offset:1px}.agent-settings-nav-anchor[data-v-c1cb0fd7]{display:none}.ap{flex-direction:column;flex:none;gap:14px;display:flex}.ap-count{color:var(--ui-ink-dim,#6b7280);font-size:10px}.ap-input{width:100%}.ap-hint{color:var(--ui-ink-dim,#6b7280);font-size:10px}.ap-empty{text-align:center;color:var(--ui-ink-dim,#6b7280);padding:16px 12px;font-size:12px}.ap-error{border:1px solid var(--ui-danger,#ef4444);color:var(--ui-danger,#ef4444);border-radius:8px;margin:0;padding:8px 10px;font-size:12px}.ap-tag{color:var(--ui-ink-dim,#6b7280);font-size:10px}.ap-quick{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.ap-picker{flex-direction:column;gap:8px;display:flex}.ap-picker-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-tagpool{border:1px solid var(--ui-line,#e2e5ea);background:var(--ui-panel-soft,#fff);border-radius:8px;flex-wrap:wrap;gap:6px;max-height:220px;padding:8px;display:flex;overflow-y:auto}.ap-tagchip{border:1px solid var(--ui-line,#e2e5ea);max-width:100%;height:24px;color:var(--ui-ink-dim,#6b7280);white-space:nowrap;text-overflow:ellipsis;cursor:pointer;background:0 0;border-radius:999px;padding:0 9px;font-size:11px;line-height:22px;transition:background .14s,border-color .14s,color .14s;overflow:hidden}.ap-tagchip:hover{border-color:var(--ui-ink-mute,#8c95a3);color:var(--ui-ink,#18202b)}.ap-tagchip.is-on{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent-soft,#0891b21f);color:var(--ui-accent-hover,#0e7490);font-weight:600}.ap-probe{border-top:1px solid var(--ui-line-soft,#eef0f4);flex-direction:column;gap:8px;display:flex}.ap-probe .ap-hint.is-bad,.ap-probe .is-bad{color:var(--ui-danger,#ef4444)}.ap-toolgroup{flex-direction:column;gap:4px;display:flex}.ap-toolgroup-name{color:var(--ui-ink,#18202b);font-size:11px}.ap-toolgroup .ap-tagpool{max-height:160px}.ap-toolgroup .ap-tagchip{cursor:default}.ap .shadcn-settings-row{padding:10px 0}.ap .shadcn-settings-row__label{font-size:12px}.ap .shadcn-settings-row__desc{font-size:11px}.ap .ap-form-stack{flex-direction:column;gap:8px;display:flex}.ap .ap-detail-foot.is-sticky{z-index:1;background:var(--ui-panel,#fff);padding:8px 0;position:sticky;bottom:0}.ap .ap-detail-foot.is-sticky:before{content:"";background:var(--ui-line-soft,#eef0f4);height:1px;position:absolute;top:0;left:0;right:0}.ap .ap-form-actions.is-sticky{z-index:1;background:var(--ui-panel,#fff);padding:10px 0;position:sticky;bottom:0}.ap .ap-form-actions.is-sticky:before{content:"";background:var(--ui-line-soft,#eef0f4);height:1px;position:absolute;top:0;left:0;right:0}.sdh[data-v-ff337a5a]{z-index:2;background:var(--ui-panel,#fff);flex-direction:column;gap:6px;min-width:0;padding-bottom:8px;display:flex;position:sticky;top:0}.sdh-top[data-v-ff337a5a]{justify-content:space-between;align-items:center;gap:8px;min-height:24px;display:flex}.sdh-back[data-v-ff337a5a]{color:var(--ui-ink-dim,#6b7280);margin-left:-8px;padding-inline:8px}.sdh-text[data-v-ff337a5a]{flex-direction:column;gap:2px;min-width:0;display:flex}.sdh-title[data-v-ff337a5a]{color:var(--ui-ink,#18202b);text-align:left;margin:0;font-size:14px;font-weight:700;line-height:1.35}.sdh-desc[data-v-ff337a5a]{color:var(--ui-ink-dim,#6b7280);text-align:left;margin:0;font-size:11px;line-height:1.55}.ap-list-head[data-v-e17084d5]{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-list[data-v-e17084d5]{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.ap-list-row[data-v-e17084d5]{border-radius:10px;align-items:center;gap:12px;padding:9px 8px;display:flex}.ap-list-row[data-v-e17084d5]:hover{background:var(--ui-hover,#f4f6f9)}.ap-list-main[data-v-e17084d5]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ap-list-title[data-v-e17084d5]{align-items:center;gap:6px;min-width:0;display:flex}.ap-list-name[data-v-e17084d5]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#18202b);font-size:13px;font-weight:600;overflow:hidden}.ap-badge[data-v-e17084d5]{background:var(--ui-accent-soft,#0891b21f);color:var(--ui-accent-hover,#0e7490);border-radius:999px;flex:none;padding:1px 6px;font-size:10px}.ap-list-desc[data-v-e17084d5],.ap-list-meta[data-v-e17084d5]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-dim,#6b7280);font-size:11px;overflow:hidden}.ap-list-meta[data-v-e17084d5]{color:var(--ui-ink-mute,#8c95a3);font-size:10.5px}.ap-model-form[data-v-e17084d5]{padding-bottom:4px}.ap-model-pull[data-v-e17084d5]{flex-wrap:wrap;align-items:center;gap:8px;padding:4px 0 10px;display:flex}.ap-custom-row[data-v-e17084d5]{align-items:center;gap:8px;padding-bottom:10px;display:flex}.ap-custom-row .ap-input[data-v-e17084d5]{flex:1;min-width:0}.ap-input[data-v-e17084d5]{width:100%}.ap-select[data-v-e17084d5]{width:200px}.ap-detail-actions[data-v-e17084d5]{align-items:center;gap:8px;display:flex}.ap-tagchip[data-v-e17084d5]{max-width:100%;height:24px;font-family:var(--font-mono,ui-monospace, monospace);padding:0 8px;font-size:10px}.ap-edit-foot[data-v-e17084d5]{justify-content:flex-end;padding-top:10px;display:flex}.ap-test-toolbar[data-v-e17084d5]{justify-content:space-between;align-items:center;gap:8px;padding:4px 0 8px;display:flex}.ap-test-actions[data-v-e17084d5]{justify-content:space-between;align-items:center;gap:8px;padding-top:4px;display:flex}.ap-saved-list[data-v-e17084d5]{flex-direction:column;gap:1px;display:flex}.ap-saved-row[data-v-e17084d5]{cursor:pointer;border-radius:8px;align-items:center;gap:8px;padding:7px 6px;display:flex}.ap-saved-row[data-v-e17084d5]:hover{background:var(--ui-hover,#f4f6f9)}.ap-saved-check[data-v-e17084d5]{width:14px;height:14px;accent-color:var(--ui-accent,#0891b2);flex:none}.ap-saved-name[data-v-e17084d5]{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;font-family:var(--font-mono,ui-monospace, monospace);color:var(--ui-ink,#18202b);flex:1;overflow:hidden}.ap-models[data-v-e17084d5]{--ap-state-ok:#16a34a;--ap-state-bad:#dc2626}html.dark .ap-models[data-v-e17084d5]{--ap-state-ok:#4ade80;--ap-state-bad:#f87171}.ap-saved-result[data-v-e17084d5]{color:var(--ap-state-bad);flex:none;font-size:10px}.ap-saved-result.is-ok[data-v-e17084d5]{color:var(--ap-state-ok)}.ap-probe-results[data-v-e17084d5]{flex-direction:column;gap:6px;padding-top:8px;display:flex}.ap-probe-model[data-v-e17084d5]{font-family:var(--font-mono,ui-monospace, monospace);color:var(--ui-ink-dim,#6b7280);font-size:11px}.ap-probe-result[data-v-e17084d5]{border:1px solid var(--ui-line,#e2e5ea);border-radius:8px;flex-direction:column;gap:3px;padding:8px 10px;display:flex}.ap-probe-result.is-ok[data-v-e17084d5]{border-color:var(--ap-state-ok)}.ap-probe-result.is-ok .ap-probe-title>svg[data-v-e17084d5]{color:var(--ap-state-ok)}.ap-probe-result[data-v-e17084d5]:not(.is-ok){border-color:var(--ap-state-bad)}.ap-probe-result:not(.is-ok) .ap-probe-title>svg[data-v-e17084d5]{color:var(--ap-state-bad)}.ap-probe-title[data-v-e17084d5]{color:var(--ui-ink,#18202b);align-items:center;gap:6px;margin:0;font-size:12px;display:flex}.ap-probe-title .ap-probe-model[data-v-e17084d5]{color:var(--ui-ink,#18202b);font-size:12px;font-weight:600}.ap-probe-state[data-v-e17084d5]{margin-left:auto;font-size:10px;font-weight:600}.ap-probe-state.is-ok[data-v-e17084d5]{color:var(--ap-state-ok)}.ap-probe-state.is-bad[data-v-e17084d5]{color:var(--ap-state-bad)}.ap-probe-desc[data-v-e17084d5]{color:var(--ui-ink-dim,#6b7280);margin:0;font-size:11px;line-height:1.5}.ap-probe-reply[data-v-e17084d5]{color:var(--ui-ink-mute,#8c95a3);margin:0;font-size:10px;line-height:1.5}.ap-flush-card[data-v-e17084d5] .shadcn-settings-section__body{background:0 0;border:0;padding:0;overflow:visible}.ap-skill-form[data-v-e5c1cc7e]{padding:10px 0}.ap-form-actions[data-v-e5c1cc7e]{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ap-list-head[data-v-a9a72e33]{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-list[data-v-a9a72e33]{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.ap-list-row[data-v-a9a72e33]{border-radius:10px;align-items:center;gap:12px;padding:9px 8px;display:flex}.ap-list-row[data-v-a9a72e33]:hover{background:var(--ui-hover,#f4f6f9)}.ap-list-item[data-v-a9a72e33]{border-radius:10px}.ap-list-item[data-v-a9a72e33]:hover{background:var(--ui-hover,#f4f6f9)}.ap-list-item .ap-list-row[data-v-a9a72e33]:hover{background:0 0}.ap-mcp[data-v-a9a72e33]{--ap-state-ok:#16a34a;--ap-state-bad:#dc2626}html.dark .ap-mcp[data-v-a9a72e33]{--ap-state-ok:#4ade80;--ap-state-bad:#f87171}.ap-server-state[data-v-a9a72e33]{flex:none;font-size:10px;font-weight:600}.ap-server-state.is-ok[data-v-a9a72e33]{color:var(--ap-state-ok)}.ap-server-state.is-bad[data-v-a9a72e33]{color:var(--ap-state-bad)}.ap-server-detail[data-v-a9a72e33]{border:1px solid var(--ui-line,#e2e5ea);border-radius:8px;flex-direction:column;gap:6px;margin:0 8px 8px;padding:8px 10px;display:flex}.ap-list-main[data-v-a9a72e33]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ap-list-title[data-v-a9a72e33]{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.ap-list-name[data-v-a9a72e33]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#18202b);font-size:13px;font-weight:600;overflow:hidden}.ap-list-desc[data-v-a9a72e33],.ap-list-meta[data-v-a9a72e33],.ap-list-err[data-v-a9a72e33]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-dim,#6b7280);font-size:11px;overflow:hidden}.ap-list-meta[data-v-a9a72e33]{color:var(--ui-ink-mute,#8c95a3);font-size:10.5px}.ap-list-err[data-v-a9a72e33]{color:var(--ui-danger,#ef4444)}.ap-readonly[data-v-a9a72e33]{color:var(--ui-ink-mute,#8c95a3);flex:none;font-size:11px}.ap-empty-card[data-v-a9a72e33]{border:1px dashed var(--ui-line,#e2e5ea);border-radius:10px;flex-direction:column;align-items:center;gap:5px;padding:24px 12px;display:flex}.ap-empty-card strong[data-v-a9a72e33]{color:var(--ui-ink,#18202b);font-size:12px;font-weight:600}.ap-empty-card span[data-v-a9a72e33]{color:var(--ui-ink-dim,#6b7280);font-size:11px}.ap-mcp-probe[data-v-a9a72e33]{padding:10px 0 4px}.ap-mcp-form[data-v-a9a72e33]{padding:4px 0}.ap-draft-probe[data-v-a9a72e33]{flex-wrap:wrap;align-items:center;gap:8px;padding:6px 0;display:flex}.ap-probe-result[data-v-a9a72e33]{border:1px solid var(--ui-line,#e2e5ea);border-radius:8px;flex-direction:column;gap:4px;margin-bottom:6px;padding:8px 10px;display:flex}.ap-probe-result.is-ok[data-v-a9a72e33]{border-color:var(--ap-state-ok)}.ap-probe-result[data-v-a9a72e33]:not(.is-ok){border-color:var(--ap-state-bad)}.ap-probe-title[data-v-a9a72e33]{align-items:center;gap:6px;margin:0;display:flex}.ap-probe-state[data-v-a9a72e33]{font-size:12px;font-weight:600}.ap-probe-state.is-ok[data-v-a9a72e33]{color:var(--ap-state-ok)}.ap-probe-state.is-bad[data-v-a9a72e33]{color:var(--ap-state-bad)}.ap-probe-desc[data-v-a9a72e33]{color:var(--ui-ink-dim,#6b7280);margin:0;font-size:11px;line-height:1.5}.ap-probe-desc.is-bad-text[data-v-a9a72e33]{color:var(--ap-state-bad)}.ap-form-actions[data-v-a9a72e33]{justify-content:flex-end;gap:8px;padding-top:10px;display:flex}.ap-input[data-v-a9a72e33]{width:100%}.ap-select[data-v-a9a72e33]{width:160px}.ap-rule-toolbar[data-v-09d02ab7]{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-rule-form[data-v-09d02ab7]{padding:10px 0}.ap-form-actions[data-v-09d02ab7]{align-items:center;gap:8px;display:flex}.ap-form-actions[data-v-09d02ab7] input{flex:1}.ap-rule-actions[data-v-09d02ab7]{flex:none;align-items:center;gap:6px;display:flex}.ap-rule-row[data-v-09d02ab7]{align-items:center;gap:12px;padding:9px 0;display:flex}.ap-rule-row+.ap-rule-row[data-v-09d02ab7]{border-top:1px solid var(--ui-line-faint,#eef0f4)}.ap-rule-main[data-v-09d02ab7]{flex:1;min-width:0}.ap-rule-title[data-v-09d02ab7]{align-items:center;gap:6px;display:flex}.ap-rule-pattern[data-v-09d02ab7]{text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-family:var(--font-mono,ui-monospace, monospace);color:var(--ui-ink,#18202b);overflow:hidden}.ap-rule-badge[data-v-09d02ab7]{background:var(--ui-hover,#f4f6f9);color:var(--ui-ink-dim,#6b7280);border-radius:999px;flex:none;padding:1px 6px;font-size:10px}.ap-rule-desc[data-v-09d02ab7]{color:var(--ui-ink-dim,#6b7280);font-size:11px}.ap-rule-detail-head[data-v-09d02ab7]{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-rule-back[data-v-09d02ab7]{color:var(--ui-ink-dim,#6b7280);margin-left:-8px;padding-inline:8px}.ap-rule-detail-actions[data-v-09d02ab7]{align-items:center;gap:8px;display:flex}.ap-rule-detail-title[data-v-09d02ab7]{color:var(--ui-ink,#18202b);margin:6px 0 0;font-size:14px;font-weight:700}.ap-input[data-v-09d02ab7]{width:100%}.ap-flush-card[data-v-09d02ab7] .shadcn-settings-section__body{background:0 0;border:0;padding:0;overflow:visible}.pv[data-v-885b18f2]{border:1px solid var(--ui-line-soft,#eef0f4);border-radius:var(--radius-control,8px);background:var(--ui-panel,#fff);flex-direction:column;gap:7px;padding:9px 10px;display:flex}.pv-head[data-v-885b18f2]{justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.pv-head-text[data-v-885b18f2]{align-items:baseline;gap:6px;min-width:0;display:flex}.pv-title[data-v-885b18f2]{color:var(--ui-ink,#18202b);font-size:11px;font-weight:600}.pv-count[data-v-885b18f2]{color:var(--ui-ink-dim,#6b7280);font-size:10px}.pv-search[data-v-885b18f2]{flex:none;width:140px;height:26px;font-size:11px}.pv-hint[data-v-885b18f2]{color:var(--ui-ink-dim,#6b7280);margin:0;font-size:10px;line-height:1.5}.pv-empty[data-v-885b18f2]{color:var(--ui-ink-mute,#8c95a3);margin:0;padding:4px 0;font-size:11px}.pv-group[data-v-885b18f2]{flex-direction:column;gap:5px;display:flex}.pv-group-title[data-v-885b18f2]{letter-spacing:.02em;color:var(--ui-ink-dim,#6b7280);font-size:10px}.pv-chips[data-v-885b18f2]{flex-wrap:wrap;gap:4px;display:flex}.pv-chip[data-v-885b18f2]{height:22px;font-family:var(--font-mono,ui-monospace, monospace);padding:0 8px}.pv-chip code[data-v-885b18f2]{font-size:10px}.ped[data-v-5e15f21d]{flex-direction:column;gap:8px;display:flex}.ped-textarea[data-v-5e15f21d]{field-sizing:fixed;min-height:140px;font-family:var(--font-mono,ui-monospace, monospace);font-size:12px;line-height:1.6;overflow-y:auto}.ap-list-head[data-v-9c41acbb]{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-list-actions[data-v-9c41acbb]{flex:none;align-items:center;gap:8px;display:flex}.ap-list[data-v-9c41acbb]{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.ap-list-row[data-v-9c41acbb]{border-radius:10px;align-items:center;gap:12px;padding:9px 8px;display:flex}.ap-list-row[data-v-9c41acbb]:hover{background:var(--ui-hover,#f4f6f9)}.ap-list-main[data-v-9c41acbb]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ap-list-title[data-v-9c41acbb]{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.ap-list-name[data-v-9c41acbb]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#18202b);font-size:13px;font-weight:600;overflow:hidden}.ap-badge[data-v-9c41acbb]{background:var(--ui-hover,#f4f6f9);color:var(--ui-ink-dim,#6b7280);border-radius:999px;flex:none;padding:1px 6px;font-size:10px}.ap-badge.is-on[data-v-9c41acbb]{background:var(--ui-accent-soft,#0891b21f);color:var(--ui-accent-hover,#0e7490)}.ap-list-desc[data-v-9c41acbb],.ap-list-meta[data-v-9c41acbb]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-dim,#6b7280);font-size:11px;overflow:hidden}.ap-list-meta[data-v-9c41acbb]{color:var(--ui-ink-mute,#8c95a3);font-size:10.5px}.ap-detail-form[data-v-9c41acbb]{flex-direction:column;gap:14px;padding-top:4px;display:flex}.ap-field[data-v-9c41acbb]{flex-direction:column;gap:6px;display:flex}.ap-field-head[data-v-9c41acbb]{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-field-label[data-v-9c41acbb]{color:var(--ui-ink,#18202b);font-size:12px;font-weight:600}.ap-input[data-v-9c41acbb]{width:100%}.ap-count[data-v-9c41acbb]{color:var(--ui-ink-dim,#6b7280);font-size:10px}.ap-detail-foot[data-v-9c41acbb]{justify-content:space-between;align-items:center;gap:10px;padding-top:2px;display:flex}.ap-ok[data-v-9c41acbb]{color:var(--ui-accent,#0891b2);align-items:center;gap:4px;display:inline-flex}.ap-warnblock[data-v-9c41acbb]{border:1px solid var(--ui-warn,#b45309);border-radius:var(--radius-control,8px);flex-direction:column;align-items:flex-start;gap:6px;padding:8px 10px;display:flex}.ap-warnline[data-v-9c41acbb]{color:var(--ui-warn,#b45309);align-items:flex-start;gap:6px;margin:0;font-size:12px;display:flex}.ap-warnline code[data-v-9c41acbb]{font-family:var(--font-mono,ui-monospace, monospace)}.ap-select[data-v-aefc556c]{width:200px}.ap-form-actions[data-v-aefc556c]{align-items:center;gap:8px;display:flex}.ap-prompt-form[data-v-9a04ad09]{flex-direction:column;gap:10px;padding-top:4px;display:flex}.ap-field[data-v-9a04ad09]{flex-direction:column;gap:6px;display:flex}.ap-field-head[data-v-9a04ad09]{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-field-label[data-v-9a04ad09]{color:var(--ui-ink,#18202b);font-size:12px;font-weight:600}.ap-count[data-v-9a04ad09]{color:var(--ui-ink-dim,#6b7280);font-size:10px}.ap-detail-foot[data-v-9a04ad09]{justify-content:space-between;align-items:center;gap:10px;display:flex}.ap-detail-actions[data-v-9a04ad09]{align-items:center;gap:8px;display:inline-flex}.ap-ok[data-v-9a04ad09]{color:var(--ui-accent,#0891b2);align-items:center;gap:4px;display:inline-flex}.ap-warnblock[data-v-9a04ad09]{border:1px solid var(--ui-warn,#b45309);border-radius:var(--radius-control,8px);flex-direction:column;gap:6px;padding:8px 10px;display:flex}.ap-warnline[data-v-9a04ad09]{color:var(--ui-warn,#b45309);align-items:flex-start;gap:6px;margin:0;font-size:12px;display:flex}.ap-warnline code[data-v-9a04ad09]{font-family:var(--font-mono,ui-monospace, monospace)}.ap-template-form[data-v-5bfb4435]{flex-direction:column;gap:10px;padding-top:4px;display:flex}.ap-field[data-v-5bfb4435]{flex-direction:column;gap:6px;display:flex}.ap-field-head[data-v-5bfb4435]{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-field-label[data-v-5bfb4435]{color:var(--ui-ink,#18202b);font-size:12px;font-weight:600}.ap-count[data-v-5bfb4435]{color:var(--ui-ink-dim,#6b7280);font-size:10px}.ap-detail-foot[data-v-5bfb4435]{justify-content:space-between;align-items:center;gap:10px;display:flex}.ap-detail-actions[data-v-5bfb4435]{align-items:center;gap:8px;display:inline-flex}.ap-ok[data-v-5bfb4435]{color:var(--ui-accent,#0891b2);align-items:center;gap:4px;display:inline-flex}.ap-warnbody[data-v-5bfb4435]{flex-direction:column;align-items:flex-start;gap:6px;display:flex}.ap-warnline[data-v-5bfb4435]{color:var(--ui-warn,#b45309);align-items:flex-start;gap:6px;margin:0;font-size:12px;display:flex}.ap-warnline code[data-v-5bfb4435]{font-family:var(--font-mono,ui-monospace, monospace)}.asp[data-v-50f7f139]{flex-direction:column;gap:12px;min-width:0;display:flex}.asp-head[data-v-50f7f139]{border-bottom:1px solid var(--ui-line-soft,#eef0f4);align-items:center;gap:10px;min-width:0;padding-bottom:2px;display:flex}.asp-tab-list[data-v-50f7f139]{flex-wrap:wrap;flex:1;justify-content:flex-start;align-items:center;gap:2px 4px;min-width:0;height:auto;padding:0 0 5px;overflow:visible}.asp-tab[data-v-50f7f139]{border-radius:var(--radius-control,8px);flex:none;height:auto;min-height:30px;padding:5px 10px;font-size:12px;font-weight:600}.asp-err[data-v-50f7f139]{text-overflow:ellipsis;white-space:nowrap;max-width:40%;color:var(--ui-danger,#ef4444);flex:none;font-size:11px;overflow:hidden}.asp-body[data-v-50f7f139]{flex-direction:column;min-width:0;display:flex}
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.md[data-v-c8442bfe]{color:var(--ui-ink);word-break:break-word;font-size:14px;line-height:1.65}.md[data-v-c8442bfe] .md-p{margin:0 0 6px}.md[data-v-c8442bfe] .md-p:last-child{margin-bottom:0}.md[data-v-c8442bfe] .md-h{margin:8px 0 4px;font-size:15px;font-weight:600}.md[data-v-c8442bfe] .md-list{margin:4px 0 6px;padding-left:20px;list-style:outside}.md[data-v-c8442bfe] .md-list li{list-style:inherit;margin:2px 0}.md[data-v-c8442bfe] .md-list li::marker{color:var(--ui-ink-dim,#919191)}.md[data-v-c8442bfe] code{background:var(--ui-veil,#0000000d);border-radius:5px;padding:1px 5px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11px}.md[data-v-c8442bfe] .md-code{border:1px solid var(--ui-line,#e2e5ea);background:var(--ui-panel-soft,#fff);border-radius:8px;margin:6px 0;padding:8px 10px;overflow-x:auto}.md[data-v-c8442bfe] .md-code code{white-space:pre;background:0 0;padding:0;font-size:11px}.md[data-v-c8442bfe] a{color:var(--ui-accent,#0891b2);text-decoration:underline}.tvb[data-v-48ba766f]{flex-direction:column;gap:8px;min-width:0;display:flex}.tvb-io[data-v-48ba766f]{flex-direction:column;gap:4px;min-width:0;display:flex}.tvb-io-label[data-v-48ba766f]{letter-spacing:.04em;color:var(--ui-ink-dim,#919191);font-size:11px;font-weight:600}.tvc-pre[data-v-48ba766f],.tvb-pre[data-v-48ba766f]{background:var(--ui-code-bg,#00000040);white-space:pre-wrap;word-break:break-all;max-width:100%;max-height:320px;color:var(--ui-ink-dim,#919191);border-radius:8px;margin:0;padding:8px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;line-height:18px;overflow:auto}.tvc[data-v-48ba766f]{flex-direction:column;gap:6px;min-width:0;display:flex}.tvc-body[data-v-48ba766f]{flex-direction:column;gap:6px;min-width:0;max-height:200px;display:flex;overflow:auto}.tvc-head[data-v-48ba766f]{min-width:0;color:var(--ui-ink,#f7f7f7);align-items:center;gap:6px;font-size:12px;display:flex}.tvc-head-icon[data-v-48ba766f]{color:var(--ui-ink-dim,#919191);flex:none;place-items:center;display:grid}.tvc-title[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ui-ink,#f7f7f7);flex:auto;font-size:12px;font-weight:600;overflow:hidden}.tvc-badge[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;background:var(--ui-accent-soft,#0891b21f);min-width:0;max-width:60%;color:var(--ui-accent-hover,#0e7490);border-radius:999px;flex:0 auto;margin-left:auto;padding:1px 7px;font-size:11px;line-height:16px;overflow:hidden}.tvc-chips-wrap[data-v-48ba766f]{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.tvc-chips-label[data-v-48ba766f]{letter-spacing:.04em;color:var(--ui-ink-dim,#919191);flex:none;margin-right:2px;font-size:11px;font-weight:600}.tvc-chips[data-v-48ba766f]{flex-wrap:wrap;gap:4px;min-width:0;display:flex}.tvc-chip[data-v-48ba766f]{background:var(--ui-chip,#ffffff1a);max-width:100%;color:var(--ui-ink,#f7f7f7);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:2px 8px;font-size:11px;line-height:17px;display:inline-flex;overflow:hidden}.tvc-chip-count[data-v-48ba766f]{color:var(--ui-ink,#f7f7f7);font-variant-numeric:tabular-nums;flex:none;font-weight:700}.tvc-media[data-v-48ba766f]{align-items:center;gap:8px;min-width:0;display:flex}.tvc-media-thumb[data-v-48ba766f]{object-fit:cover;border:1px solid var(--ui-line,#363636);background:var(--ui-veil,#ffffff0a);cursor:zoom-in;border-radius:8px;flex:none;width:40px;height:40px;display:block}.tvc-media-thumb[data-v-48ba766f]:focus-visible{outline:2px solid var(--ui-accent,#0891b2);outline-offset:1px}.tvc-media-broken[data-v-48ba766f]{border:1px dashed var(--ui-line,#363636);background:var(--ui-veil,#ffffff0a);width:40px;height:40px;color:var(--ui-ink-dim,#919191);border-radius:8px;flex:none;place-items:center;display:grid}.tvc-media-play[data-v-48ba766f]{border:1px solid var(--ui-line,#363636);background:var(--ui-veil,#ffffff0f);width:40px;height:40px;color:var(--ui-ink-dim,#919191);border-radius:8px;flex:none;position:relative}.tvc-media-play[data-v-48ba766f]:hover{color:var(--ui-ink,#f7f7f7);border-color:var(--ui-ink-dim,#919191)}.tvc-media-play[data-v-48ba766f]:focus-visible{outline:2px solid var(--ui-accent,#0891b2);outline-offset:1px}.tvc-media-play-badge[data-v-48ba766f]{color:var(--ui-ink,#f7f7f7);font-size:8px;line-height:1;position:absolute;bottom:1px;right:2px}.tvc-media-text[data-v-48ba766f]{flex-direction:column;gap:1px;min-width:0;display:flex}.tvc-media-title[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#f7f7f7);font-size:12px;overflow:hidden}.tvc-media-sub[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-dim,#919191);font-size:11px;overflow:hidden}.tvc-rows[data-v-48ba766f]{flex-direction:column;gap:2px;display:flex}.tvc-row[data-v-48ba766f]{border-radius:8px;align-items:center;gap:8px;min-width:0;padding:3px 4px;display:flex}.tvc-row-icon[data-v-48ba766f]{background:var(--ui-chip,#ffffff1a);width:22px;height:22px;color:var(--ui-ink-dim,#919191);border-radius:6px;flex:none;place-items:center;display:grid}.tvc-row-text[data-v-48ba766f]{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.tvc-row-title[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#f7f7f7);font-size:12px;overflow:hidden}.tvc-row-sub[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-dim,#919191);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11px;overflow:hidden}.tvc-row-tag[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;background:var(--ui-chip,#ffffff1a);min-width:0;max-width:40%;color:var(--ui-ink-dim,#919191);border-radius:999px;flex:0 auto;padding:1px 7px;font-size:11px;line-height:16px;overflow:hidden}.tvc-more[data-v-48ba766f]{color:var(--ui-ink-dim,#919191);margin:0;padding:0 4px;font-size:11px}.tvc-imgs[data-v-48ba766f]{align-items:center;gap:6px;min-width:0;display:flex;overflow:hidden}.tvc-img[data-v-48ba766f]{margin:0}.tvc-img img[data-v-48ba766f]{object-fit:cover;border:1px solid var(--ui-line,#363636);background:var(--ui-veil,#ffffff0a);cursor:zoom-in;border-radius:8px;width:40px;height:40px;display:block}.tvc-img img[data-v-48ba766f]:focus-visible{outline:2px solid var(--ui-accent,#0891b2);outline-offset:1px}.tvc-img-broken[data-v-48ba766f]{border:1px dashed var(--ui-line,#363636);background:var(--ui-veil,#ffffff0a);width:40px;height:40px;color:var(--ui-ink-dim,#919191);border-radius:8px;place-items:center;display:grid}.tvc-img-more[data-v-48ba766f]{border:1px dashed var(--ui-line,#363636);width:40px;height:40px;color:var(--ui-ink-dim,#919191);border-radius:8px;flex:none;place-items:center;font-size:11px;display:grid}.tvc-img-sum[data-v-48ba766f]{min-width:0;color:var(--ui-ink-dim,#919191);text-overflow:ellipsis;white-space:nowrap;margin-left:2px;font-size:11px;overflow:hidden}.tvc-progress-wrap[data-v-48ba766f]{align-items:center;gap:8px;display:flex}.tvc-progress[data-v-48ba766f]{background:var(--ui-veil,#ffffff14);border-radius:999px;flex:1;height:6px;overflow:hidden}.tvc-progress-fill[data-v-48ba766f]{background:var(--ui-accent,#0891b2);border-radius:999px;height:100%;transition:width .24s}.tvc-progress-text[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:55%;color:var(--ui-ink-dim,#919191);font-variant-numeric:tabular-nums;flex:0 auto;font-size:11px;overflow:hidden}.tvc-note[data-v-48ba766f]{white-space:pre-wrap;word-break:break-word;margin:0;font-size:12px;line-height:20px}.tvc-note.is-ok[data-v-48ba766f]{color:var(--ui-accent-hover,#0e7490)}.tvc-note.is-error[data-v-48ba766f]{color:var(--ui-danger,#ef4444)}.tvc-note.is-info[data-v-48ba766f]{color:var(--ui-ink-dim,#919191)}.tvc-head-toggle[data-v-48ba766f]{color:var(--ui-ink-dim,#919191);flex:none;margin-inline:-6px -4px}.tvc-head-toggle[data-v-48ba766f]:hover,.tvc-head-toggle[data-v-48ba766f]:active,.tvc-head-toggle[aria-expanded=true][data-v-48ba766f]{color:var(--ui-ink,#f7f7f7);background:0 0!important}.tvc-details-caret[data-v-48ba766f]{flex:none;transition:transform .18s}.tvc-details-caret.is-open[data-v-48ba766f]{transform:rotate(90deg)}.tvc-details[data-v-48ba766f]{max-height:var(--ac-expand-max-height,min(360px, 50vh));flex-direction:column;gap:8px;display:flex;overflow-y:auto}.tvc-details .tvc-pre[data-v-48ba766f]{max-height:max(240px, calc(var(--ac-expand-max-height,min(360px, 50vh)) - 60px))}.tvc-details-row[data-v-48ba766f]{align-items:center;gap:6px;min-width:0;display:flex}.tvc-details-block[data-v-48ba766f]{flex-direction:column;gap:4px;min-width:0;display:flex}.tvc-details-label[data-v-48ba766f]{letter-spacing:.04em;color:var(--ui-ink-dim,#919191);flex:none;font-size:11px;font-weight:600}.tvc-details-tool[data-v-48ba766f]{text-overflow:ellipsis;white-space:nowrap;background:var(--ui-veil,#ffffff0f);min-width:0;color:var(--ui-ink,#f7f7f7);border-radius:6px;padding:2px 6px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11px;overflow:hidden}@media (prefers-reduced-motion:reduce){.tvc-progress-fill[data-v-48ba766f],.tvc-details-caret[data-v-48ba766f]{transition:none}}.ac-scrollarea[data-v-1da6411b]{flex-direction:column;flex:1;min-width:0;min-height:0;padding-right:0;display:flex;overflow:hidden}.ac-scrollarea[data-v-1da6411b] [data-slot=scroll-area]{flex-direction:column;flex:1;width:100%;height:100%;min-height:0;padding-right:0;display:flex;overflow:visible}.ac-scrollarea[data-v-1da6411b] [data-slot=scroll-area-viewport]{flex-direction:column;flex:1 1 0;width:100%;min-width:0;height:100%;min-height:0;max-height:100%;display:flex}.ac-scrollarea[data-v-1da6411b] [data-slot=scroll-area-viewport]>div:not([data-agent-scroll-body]){flex-direction:column;flex:auto;height:100%;min-height:0;max-height:none;display:flex}.ac-scrollarea[data-direction=y][data-v-1da6411b] [data-slot=scroll-area-viewport]{overflow:hidden auto}.ac-scrollarea[data-direction=x][data-v-1da6411b] [data-slot=scroll-area-viewport]{overflow:auto hidden}.ac-scrollarea[data-direction=both][data-v-1da6411b] [data-slot=scroll-area-viewport]{overflow:auto}.ac-scrollarea-content[data-v-1da6411b]{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.ac-scrollarea-fill[data-v-1da6411b]{flex-direction:column;flex:none;display:flex}.ac-scrollarea-fill.is-fill-height[data-v-1da6411b]{flex:1 1 0;height:100%;min-height:0}.ac-approval[data-v-ea65229c]{flex-direction:column;align-items:stretch;gap:8px;max-width:100%;margin:4px 0 10px;display:flex}.ac-approval-head[data-v-ea65229c]{align-items:center;gap:8px;min-width:0;display:flex}.ac-approval-media[data-v-ea65229c]{color:var(--ui-warn,#e3a25f);flex:none}.ac-approval-title[data-v-ea65229c]{min-width:0;color:var(--ui-ink,#f7f7f7);word-break:break-word;margin:0;font-size:13px;font-weight:600;line-height:20px}.ac-approval-block[data-v-ea65229c]{flex-direction:column;gap:4px;min-width:0;display:flex}.ac-approval-label[data-v-ea65229c]{color:var(--ui-ink-dim,#919191);font-size:11px;line-height:16px}.ac-approval-cmd[data-v-ea65229c]{border:1px solid var(--ui-line,#363636);background:var(--ui-code-bg,#00000040);max-width:100%;max-height:96px;color:var(--ui-ink,#f7f7f7);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:8px;margin:0;padding:8px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px;line-height:1.7;overflow:auto}.ac-approval-desc[data-v-ea65229c]{word-break:break-word;min-width:0;max-width:100%}.ac-approval-foot[data-v-ea65229c]{justify-content:flex-end;gap:8px;display:flex}.ac-earlier{min-height:8px;color:var(--ui-ink-mute,#9aa3af);justify-content:center;align-items:center;gap:6px;padding:6px 0 2px;font-size:11px;display:flex}.ac-earlier-loading{align-items:center;gap:6px;display:inline-flex}.ac-earlier-hint{-webkit-user-select:none;user-select:none}.ac-welcome{flex-direction:column;align-items:center;gap:20px;padding-top:32px;display:flex}.ac-welcome-orb{background:linear-gradient(160deg,#7dd3fc,#0891b2 55%,#0e7490);border-radius:999px;flex:none;width:44px;height:44px;box-shadow:0 0 30px #0891b273}.ac-welcome-title{color:var(--ui-ink,#f7f7f7);margin:0;padding:0 6px;font-size:16px;font-weight:500;line-height:24px}.ac-model-split{align-items:center;gap:8px;margin:4px 0 12px;display:flex}.ac-model-split-line{background:var(--ui-line,#363636);flex:1;min-width:8px;height:1px}.ac-model-split-badge{min-width:0;max-width:100%}.ac-model-split-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:180px;color:var(--ui-ink,#f7f7f7);overflow:hidden}.ac-user-text{white-space:pre-wrap}.ac-user-images{flex-wrap:wrap;justify-content:flex-end;align-self:flex-end;align-items:flex-start;gap:8px;max-width:100%;margin-top:8px;display:flex}.ac-user-images .ac-user-image{background:var(--ui-veil,#ffffff0f);cursor:zoom-in;border:0;border-radius:12px;width:200px;max-width:100%;height:200px;padding:0;overflow:hidden}.ac-user-image img{object-fit:cover;width:100%;height:100%;display:block}.ac-user-image:hover,.ac-user-image:active{background:var(--ui-veil,#ffffff0f)}.ac-editing-badge{background:color-mix(in srgb, var(--ui-warn,#e3a25f) 16%, transparent);height:20px;color:var(--ui-warn,#e3a25f);border-radius:999px;align-self:flex-end;align-items:center;gap:4px;margin-top:4px;padding:0 4px 0 8px;font-size:11px;font-weight:600;display:inline-flex}.ac-editing-x:hover,.ac-editing-x:active,.ac-editing-x[aria-expanded=true]{background:0 0!important}.ac-editing-x:hover{color:var(--ui-ink,#f7f7f7)}.ac-stopped{color:var(--ui-danger,#ef4444);align-items:center;gap:6px;margin:6px 0 0;font-size:13px;line-height:22px;display:flex}.ac-notice{color:var(--ui-ink-dim,#919191);margin:6px 0 0;font-size:12px}.ac-hint-card{background:var(--ui-veil,#ffffff0f);width:100%;color:var(--ui-ink-dim,#919191);border-radius:12px;padding:10px 28px 10px 12px;font-size:12px;line-height:1.6;position:relative}.ac-hint-text{margin:0}.ac-hint-text strong{color:var(--ui-ink,#f7f7f7)}.ac-hint-close{color:var(--ui-ink-dim,#919191);position:absolute;top:2px;right:2px}.ac-hint-close:hover{color:var(--ui-ink,#f7f7f7)}.ac-suggestions{flex-direction:column;width:100%;display:flex}.ac-suggestion{width:100%;color:var(--ui-ink-dim,#919191);text-align:left;justify-content:flex-start;gap:10px;font-size:14px}.ac-suggestion>span:not(.ac-suggestion-arrow){text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.ac-suggestion .ac-suggestion-arrow{flex:none}.ac-suggestion-arrow{color:var(--ui-ink-dim,#919191)}.ac-msg{margin-bottom:16px;display:flex}.ac-msg.user{margin-bottom:4px}.ac-compact-note,.ac-error-bar{align-items:flex-start;gap:8px;margin:4px 0 12px;font-size:12px;line-height:18px;display:flex}.ac-compact-note{background:var(--ui-veil,#ffffff0f);color:var(--ui-ink-dim,#919191);border-radius:10px;padding:8px 10px}.ac-error-bar{flex:1;min-width:0}.ac-note-x{color:inherit;flex:none;margin-top:-6px;margin-bottom:-6px;margin-left:auto}.ac-bubble{min-width:0}.ac-user-line{color:var(--ui-ink,#f7f7f7);word-break:break-word;max-height:192px;margin:0;font-size:14px;line-height:24px;display:block;overflow:hidden}.ac-user-line.is-open{max-height:none}.ac-user-toggle{color:var(--ui-ink-dim,#919191);align-self:flex-start;gap:4px;margin:6px 0 0;font-size:12px;font-weight:600;line-height:16px}.ac-user-bubble{min-width:0;max-width:85%}.ac-user-bubble--editing [data-slot=bubble-content]{box-shadow:inset 0 0 0 1.5px var(--ui-warn,#e3a25f)}.ac-sent-tag{background:var(--ui-hover-strong,#0000001a);vertical-align:bottom;border-radius:6px;align-items:center;gap:4px;max-width:200px;height:22px;margin:0 2px;padding:0 6px 0 4px;display:inline-flex}.ac-sent-tag.is-clickable{cursor:pointer;transition:background .14s}.ac-sent-tag.is-clickable:hover{background:var(--ui-accent-soft,#0891b229)}.ac-sent-tag.is-clickable:focus-visible{outline:2px solid var(--ui-accent,#0891b2);outline-offset:1px}.ac-sent-tag-icon{color:var(--ui-ink-dim,#919191);flex:none;place-items:center;display:grid}.ac-sent-tag-icon :deep(svg){width:13px;height:13px}.ac-sent-tag-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ui-ink,#f7f7f7);font-size:12px;font-weight:500;line-height:1;overflow:hidden}.ac-sent-tag.is-compact{height:18px;padding:0 5px;font-size:11px}.ac-msg,.ac-msg.user .ac-bubble{position:relative}.ac-msg-actions{opacity:0;pointer-events:none;justify-content:flex-end;align-items:center;gap:2px;height:22px;margin-top:4px;transition:opacity .16s;display:flex}.ac-msg.user:hover .ac-msg-actions,.ac-msg-actions:focus-within{opacity:1;pointer-events:auto}.ac-msg-time{color:var(--ui-ink-dim,#919191);margin-right:4px;font-size:11px}.ac-msg-btn{color:var(--ui-ink-dim,#919191)}.ac-msg-btn:hover,.ac-msg-btn:active{background:0 0}.ac-msg-btn:hover{color:var(--ui-ink,#f7f7f7)}.ac-msg-btn .is-ok{color:var(--ui-accent,#0891b2)}.ac-bubble :deep(.md){color:var(--ui-ink,#f7f7f7);font-size:14px;line-height:24px}.ac-bubble :deep(.md .md-p){margin:0 0 10px}.ac-bubble :deep(.md .md-p:last-child){margin-bottom:0}.ac-bubble :deep(.md .md-h){margin:14px 0 8px;font-size:14px;font-weight:700}.ac-bubble :deep(.md .md-list){margin:6px 0 10px;padding-left:24px;list-style:outside}.ac-bubble :deep(.md .md-list li){margin:4px 0}.ac-tool-card{border:1px solid var(--ui-line,#e2e5ea);background:var(--ui-veil,#0000000a);box-shadow:none;border-radius:10px;gap:6px;margin:6px 0;padding:6px 8px}.ac-tool-card [data-slot=card-content]{padding:0}.ac-spin{animation:.9s linear infinite ac-rotate}.ac-onboard{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.ac-onboard strong{font-size:15px}.ac-onboard p{color:var(--ui-ink-dim,#919191);margin:0;font-size:13px}.ac-onboard-icon{color:var(--ui-accent,#0891b2)}.ac-onboard-path{opacity:.75;word-break:break-all;font-size:12px}.ac-branch-nav{justify-content:center;align-items:center;gap:2px;margin:4px 0 12px;display:flex}.ac-pick-box[aria-pressed=true],.ac-mcp-card.is-picked .ac-pick-box,.ac-tool-row.is-picked .ac-pick-box{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent,#0891b2)}.ac-pick-box[aria-pressed=true] :deep(svg){opacity:1}.ac-mcp-card.is-picked .ac-pick-box :deep(svg){opacity:1}.ac-tool-row.is-picked .ac-pick-box :deep(svg){opacity:1}.ac-tool-row{text-align:left;background:0 0;border:0;border-radius:7px;gap:7px;width:100%;padding:4px 6px}.ac-tool-row:hover{background:var(--ui-panel,#fff);box-shadow:var(--ui-shadow-e1,0 2px 10px #0000000a)}.ac-tool-row.is-picked{background:var(--ui-accent-soft,#0891b214);box-shadow:none}.ac-tool-copy{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.ac-tool-name{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 11.5px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-tool-desc{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-mute,#9ca3af);font-size:10.5px;overflow:hidden}.ac-empty-state{height:100%;min-height:190px;color:var(--ui-ink-mute,#9ca3af);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:20px;display:flex}.ac-empty-icon{background:var(--ui-veil,#0000000a);width:38px;height:38px;color:var(--ui-ink-mute,#9ca3af);border-radius:12px;place-items:center;margin-bottom:2px;display:grid}.ac-empty-title{color:var(--ui-ink-dim,#6b7280);font-size:12px;font-weight:600}.ac-empty-desc{font-size:11px}.ac-root{height:100%;min-height:0;color:var(--ui-ink,#f7f7f7);--ac-expand-max-height:min(360px, 50vh);flex-direction:column;display:flex;position:relative}.ac-scroll{flex:1;min-height:0;padding:12px 2px 0 16px;overflow-y:auto}.ac-scroll-body{padding-right:14px}.ac-inner{-webkit-user-select:text;user-select:text;flex-direction:column;display:flex}@keyframes ac-rotate{to{transform:rotate(360deg)}}.ac-branch-arrow{color:var(--ui-ink-dim,#919191);flex:none}.ac-branch-arrow:disabled{opacity:.35}.ac-branch-pos{text-align:center;font-variant-numeric:tabular-nums;justify-content:center;min-width:48px}.ac-scroll-wrap{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.ac-to-bottom{z-index:5;border:1px solid var(--ui-line,#363636);background:var(--ui-overlay-solid,#212121);color:var(--ui-ink-dim,#919191);box-shadow:var(--ui-shadow-md,0 18px 44px #00000029);border-radius:999px;transition:color .15s,transform .15s;position:absolute;bottom:12px;left:50%;transform:translate(-50%)}.ac-to-bottom:hover{color:var(--ui-ink,#f7f7f7);transform:translate(-50%)translateY(-1px)}@media (prefers-reduced-motion:reduce){.ac-to-bottom{transition:none}.ac-spin,.ac-pending-spin{animation:none}}.ac-skill-panel[data-v-a0688518]{padding-bottom:8px}.ac-panel-foot[data-v-a0688518]{border-top:1px solid var(--ui-line-soft,#0000000f);background:var(--ui-overlay,#fffffff0);flex:none;align-items:center;gap:8px;min-height:36px;padding:6px 10px;display:flex}.ac-model-foot .ac-selection-summary[data-v-a0688518]{justify-content:flex-start}.ac-menu-hint[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--ui-ink-dim,#919191);font-size:11px;overflow:hidden}.ac-mode-item[data-v-a0688518]{flex-direction:column;align-items:stretch;gap:2px;width:100%;display:flex}.ac-mode-title[data-v-a0688518]{align-items:center;gap:6px;width:100%;min-width:0;display:flex}.ac-mode-name[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#18202b);font-size:13px;overflow:hidden}.ac-mode-item[aria-checked=true] .ac-mode-name[data-v-a0688518]{font-weight:600}.ac-mode-check[data-v-a0688518]{color:var(--ui-ink,#18202b);margin-left:auto}.ac-mode-desc[data-v-a0688518]{color:var(--ui-ink-dim,#6b7280);white-space:normal;word-break:break-word;font-size:11px;line-height:1.45;display:block}.ac-menu-empty[data-v-a0688518]{color:var(--ui-ink-dim,#919191);margin:8px 10px;font-size:12px}.ac-composer[data-v-a0688518]{flex:none;padding:4px 8px 12px;position:relative}.ac-input-box[data-v-a0688518]{border:1px solid var(--ui-line,#363636);background:var(--ui-overlay-solid,#212121);border-radius:16px;flex-direction:column;gap:8px;padding:8px;display:flex;position:relative}@container (width<=300px){.ac-goal-bar[data-v-a0688518]{display:none}}@container (width<=250px){.ac-goal-flag[data-v-a0688518]{display:none}}@media (prefers-reduced-motion:reduce){.ac-queue-pause[data-v-a0688518]{transition:none}}.ac-icon-btn[data-v-a0688518]{background:var(--ui-veil,#0000000a);color:var(--ui-ink-dim,#6b7280);flex:none;position:relative}.ac-icon-btn[data-v-a0688518]:hover{background:var(--ui-hover,#0000000f);color:var(--ui-ink,#111827)}.ac-icon-btn[data-v-a0688518]:active{transform:scale(.96)}.ac-icon-btn[aria-expanded=true][data-v-a0688518]{background:var(--ui-accent-soft,#0891b21a);color:var(--ui-accent-hover,#0e7490)}.ac-option-title[data-v-a0688518]{min-width:0;color:var(--ui-ink,#111827);flex-wrap:nowrap;align-items:center;gap:6px;font-size:13px;font-weight:600;line-height:1.35;display:flex}.ac-option-label[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ac-option-title[data-v-a0688518]>:last-child:not(.ac-option-label){white-space:nowrap;flex:none}.ac-option-desc[data-v-a0688518]{color:var(--ui-ink-dim,#6b7280);white-space:normal;word-break:break-word;margin-top:3px;font-size:12px;line-height:1.45;display:block}.ac-dot-sep[data-v-a0688518]{background:var(--ui-line,#00000014);flex:none;width:1px;height:8px}.ac-check-mark[data-v-a0688518]{width:16px;height:16px;color:var(--ui-ink,#18202b);flex:none;place-items:center;display:grid}.ac-split[data-v-a0688518]{flex:1;min-height:0;display:flex;overflow:hidden}.ac-view-stack[data-v-a0688518]{flex:1;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);min-height:0;display:grid;position:relative}.ac-view-pane[data-v-a0688518]{opacity:0;visibility:hidden;pointer-events:none;flex:1;grid-area:1/1;height:100%;min-height:0;max-height:100%;transition:none;overflow:hidden}.ac-view-pane.is-active[data-v-a0688518]{opacity:1;visibility:visible;pointer-events:auto}@media (prefers-reduced-motion:reduce){.ac-view-pane[data-v-a0688518]{transition:none}}.ac-split-rail[data-v-a0688518]{background:var(--ui-veil,#00000006);flex-direction:column;flex:none;width:168px;min-height:0;padding:6px 0 6px 6px;display:flex}.ac-rail-label[data-v-a0688518]{letter-spacing:.04em;color:var(--ui-ink-mute,#9ca3af);flex:none;padding:4px 8px 6px;font-size:10px;font-weight:700}.ac-rail-scroll[data-v-a0688518]{overscroll-behavior:contain;flex:1;min-height:0}.ac-rail-scroll[data-v-a0688518] .ac-rail-scroll-body{flex-direction:column;gap:2px;padding:0 6px 4px 0;display:flex}.ac-rail-icon[data-v-a0688518],.ac-rail-brand[data-v-a0688518]{flex:none;place-items:center;width:14px;height:14px;display:grid}.ac-rail-brand[data-v-a0688518] svg{width:14px;height:14px}.ac-rail-brand[data-v-a0688518] img{object-fit:contain;border-radius:3px;width:14px;height:14px;display:block}.ac-rail-name[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;text-align:left;flex:1;min-width:0;overflow:hidden}.ac-rail-count[data-v-a0688518]{color:var(--ui-ink-mute,#9ca3af);flex:none;font-size:10px;font-weight:600}.ac-split-rail button[data-v-a0688518]{width:100%;color:var(--ui-ink-dim,#6b7280);border-radius:8px;justify-content:flex-start;gap:8px;padding-inline:8px;font-size:12.5px}.ac-split-rail button[data-v-a0688518]:hover{color:var(--ui-ink,#18202b)}.ac-split-rail button[aria-pressed=true][data-v-a0688518]{background:var(--ui-hover,#0000000f);color:var(--ui-ink,#18202b);box-shadow:none;font-weight:600}.ac-split-rail button[aria-pressed=true][data-v-a0688518]:hover{background:var(--ui-hover-strong,#00000017)}.ac-split-main[data-v-a0688518]{flex-direction:column;flex:1;min-width:0;min-height:0;padding-left:8px;display:flex;overflow:hidden}.ac-split-scroll[data-v-a0688518] .ac-split-scroll-body{flex-direction:column;min-height:100%;display:flex}.ac-split-scroll .ac-empty-state[data-v-a0688518]{flex:1;height:auto;min-height:0}.ac-panel .ac-empty-state[data-v-a0688518]{min-height:190px;color:var(--ui-ink-mute,#9ca3af);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:20px;display:flex}.ac-panel .ac-empty-state[data-v-a0688518]:last-child,.ac-panel-scroll[data-v-a0688518] .ac-panel-scroll-body>.ac-empty-state,.ac-mcp-scroll[data-v-a0688518] .ac-mcp-scroll-body>.ac-empty-state,.ac-menu-scroll[data-v-a0688518] .ac-model-scroll-body>div>.ac-empty-state{flex:1;min-height:0}.ac-menu-scroll[data-v-a0688518] .ac-model-scroll-body>div{flex-direction:column;flex:1;min-height:0;display:flex}.ac-panel .ac-empty-icon[data-v-a0688518]{background:var(--ui-veil,#0000000a);width:38px;height:38px;color:var(--ui-ink-mute,#9ca3af);border-radius:12px;place-items:center;margin-bottom:2px;display:grid}.ac-panel .ac-empty-title[data-v-a0688518]{color:var(--ui-ink-dim,#6b7280);font-size:12px;font-weight:600}.ac-panel .ac-empty-desc[data-v-a0688518]{font-size:11px}.ac-split-scroll[data-v-a0688518]{overscroll-behavior:contain;flex:1;min-width:0;max-width:100%;height:auto;min-height:0;max-height:100%;overflow:hidden}.ac-split-scroll[data-v-a0688518] .ac-split-scroll-body{padding:6px 6px 10px 10px}.ac-split-scroll .ac-model-row-list[data-v-a0688518],.ac-split-scroll .ac-skill-grid--split[data-v-a0688518]{padding-top:8px;padding-bottom:2px}.ac-tile-top[data-v-a0688518]{align-items:flex-start;gap:4px;display:flex}.ac-server-icon[data-v-a0688518]{background:var(--ui-accent-soft,#0891b21a);width:32px;height:32px;color:var(--ui-accent-hover,#0e7490);border-radius:10px;flex:none;place-items:center;display:grid}.ac-server-icon[data-v-a0688518] svg{width:16px;height:16px}.ac-server-copy[data-v-a0688518]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-server-name[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 12.5px/1.35 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-server-desc[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-mute,#9ca3af);font-size:11px;line-height:1.35;overflow:hidden}.ac-server-side[data-v-a0688518]{flex:none;align-items:center;gap:4px;padding-left:4px;display:flex}.ac-status[data-v-a0688518]{background:var(--ui-veil,#0000000b);height:20px;color:var(--ui-ink-dim,#5b6472);white-space:nowrap;border-radius:999px;align-items:center;gap:5px;padding:0 7px;font-size:10px;font-weight:600;display:inline-flex}.ac-status[data-v-a0688518]:before{content:"";background:var(--ui-ink-mute,#9ca3af);border-radius:50%;width:4px;height:4px}.ac-status.is-ok[data-v-a0688518]{background:var(--ui-accent-soft,#0891b217);color:var(--ui-accent-hover,#0e7490)}.ac-status.is-ok[data-v-a0688518]:before{background:var(--ui-accent,#0891b2)}.ac-status.is-bad[data-v-a0688518]{background:var(--ui-warn-soft,#f59e0b24);color:var(--ui-warn,#b45309)}.ac-status.is-bad[data-v-a0688518]:before{background:var(--ui-warn,#b45309)}.ac-expand-btn[data-v-a0688518]{width:18px;height:18px;color:var(--ui-ink-mute,#9ca3af);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;place-items:center;display:grid}.ac-expand-btn[data-v-a0688518]:hover{background:var(--ui-veil,#0000000a);color:var(--ui-ink,#111827)}.ac-expand-btn[data-v-a0688518] svg{transition:transform .18s var(--ui-ease-back,cubic-bezier(.34, 1.56, .64, 1))}.ac-expand-btn[data-v-a0688518] svg.is-open{transform:rotate(180deg)}.ac-selection-summary[data-v-a0688518]{min-width:0;color:var(--ui-ink-dim,#6b7280);flex:1;align-items:center;gap:5px;font-size:11px;line-height:1.35;display:flex}.ac-selected-number[data-v-a0688518]{color:var(--ui-ink,#111827);font-size:12px;font-weight:700}@container (width<=469px){.ac-panel-head-top[data-v-a0688518]{grid-template-columns:minmax(0,1fr) auto}}@container (width<=540px){.ac-detect-label[data-v-a0688518]{display:none}}@container (width<=386px){.ac-panel-tools[data-v-a0688518]{gap:4px}.ac-panel-head[data-v-a0688518]{padding-left:10px;padding-right:10px}}@container (width<=460px){.ac-split[data-v-a0688518]{flex-direction:column}.ac-split-rail[data-v-a0688518]{border-right:0;border-bottom:1px solid var(--ui-line-soft,#0000000f);flex:none;width:auto}.ac-rail-label[data-v-a0688518]{display:none}.ac-rail-scroll[data-v-a0688518]{flex-direction:row;gap:5px;padding:7px 10px;overflow:auto hidden}.ac-rail-icon[data-v-a0688518],.ac-rail-brand[data-v-a0688518],.ac-rail-brand[data-v-a0688518] img,.ac-rail-brand[data-v-a0688518] svg{width:13px;height:13px}.ac-rail-count[data-v-a0688518]{display:none}.ac-split-scroll[data-v-a0688518]{padding:9px 10px 10px}.ac-skill-grid--split[data-v-a0688518]{grid-template-columns:repeat(auto-fill,minmax(min(100%,154px),1fr))}}@container (width<=360px){.ac-panel-head-top[data-v-a0688518]{gap:5px}.ac-panel-title[data-v-a0688518]{font-size:14px}.ac-panel-count[data-v-a0688518]{display:none}.ac-skill-grid[data-v-a0688518],.ac-model-grid[data-v-a0688518],.ac-skill-grid--split[data-v-a0688518]{grid-template-columns:1fr}.ac-mcp-card[data-v-a0688518]{gap:5px;padding:7px 6px}.ac-mcp-card .ac-server-icon[data-v-a0688518]{display:none}.ac-panel-foot[data-v-a0688518]{padding-left:10px;padding-right:10px}}.ac-view-tabs[data-v-a0688518]{background:var(--ui-hover-soft,#0000000d);border-radius:999px;flex:none;align-items:center;gap:2px;padding:2px;display:inline-flex}.ac-view-tab[data-v-a0688518]{appearance:none;color:var(--ui-ink-dim,#6b7280);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:999px;margin:0;padding:3px 12px;font-size:12px;font-weight:600;line-height:20px;transition:color .12s ease-out,background-color .12s ease-out}.ac-view-tab[data-v-a0688518]:hover{color:var(--ui-ink,#18202b)}.ac-view-tab.is-active[data-v-a0688518]{background:var(--ui-panel,#fff);color:var(--ui-ink,#18202b);box-shadow:0 1px 3px #0f172a1f, 0 0 0 1px var(--ui-line,#e2e5ea)}.ac-view-tab[data-v-a0688518]:focus-visible{outline:2px solid color-mix(in srgb, var(--ui-accent,#0891b2) 60%, transparent);outline-offset:1px}.ac-review-body[data-v-a0688518]{padding:2px 12px 12px}.ac-review-list[data-v-a0688518]{flex-direction:column;gap:8px;display:flex}.ac-review-item[data-v-a0688518]{flex-direction:column;align-items:stretch;gap:0;width:100%;display:flex}.ac-review-item .ac-option-title[data-v-a0688518]{width:100%}.ac-review-item[aria-checked=true][data-v-a0688518]{background:var(--ui-hover,#0000000f)}.ac-review-item[aria-checked=true] .ac-option-label[data-v-a0688518]{color:var(--ui-ink,#111827)}.ac-option-icon[data-v-a0688518]{color:var(--ui-ink-dim,#6b7280);flex:none}.ac-review-item .ac-review-check[data-v-a0688518]{margin-left:auto}.ac-skill-grid[data-v-a0688518]{grid-template-columns:repeat(1,minmax(0,1fr));gap:8px;display:grid}.ac-skill-card[data-v-a0688518]{cursor:pointer;border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);text-align:left;border-radius:12px;align-items:center;gap:9px;width:100%;min-width:0;height:auto;min-height:72px;padding:8px;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s;display:flex}.ac-skill-card[data-v-a0688518]:focus-visible,.ac-skill-tile[data-v-a0688518]:focus-visible{outline:2px solid var(--ui-accent-ring,#0891b299);outline-offset:2px}.ac-skill-card[data-v-a0688518]:hover{background:var(--ui-hover-soft,#00000008);border-color:var(--ui-line,#0000001f);box-shadow:var(--ui-shadow-e1,0 2px 10px #0000000a);transform:translateY(-1px)}.ac-skill-thumb[data-v-a0688518]{width:54px;height:54px;color:var(--ui-primary-ink,#fffffff0);background:radial-gradient(circle at 78% 18%, var(--ui-primary-ink,#ffffff47), transparent 36%), linear-gradient(145deg, hsl(var(--cover-h1,208) 66% 54%), hsl(var(--cover-h2,250) 62% 40%));border-radius:10px;flex:none;place-items:center;display:grid;position:relative;overflow:hidden}.ac-skill-thumb[data-v-a0688518]:after{content:"";background:var(--ui-primary-ink,#ffffff1f);border-radius:50%;height:28px;position:absolute;inset:auto -8px -16px 12px;transform:rotate(-8deg)}.ac-skill-icon[data-v-a0688518]{z-index:1;place-items:center;display:grid;position:relative}.ac-skill-icon[data-v-a0688518] svg{width:23px;height:23px}.ac-skill-copy[data-v-a0688518]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-skill-name-row[data-v-a0688518]{align-items:center;gap:5px;min-width:0;display:flex}.ac-skill-name[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ui-ink,#111827);flex:1;font-size:12.5px;font-weight:600;line-height:1.35;overflow:hidden}.ac-skill-desc[data-v-a0688518]{-webkit-line-clamp:2;color:var(--ui-ink-dim,#6b7280);-webkit-box-orient:vertical;font-size:12px;line-height:1.4;display:-webkit-box;overflow:hidden}.ac-skill-meta[data-v-a0688518]{min-width:0;color:var(--ui-ink-mute,#9ca3af);white-space:nowrap;align-items:center;gap:5px;font-size:10.5px;display:flex;overflow:hidden}[aria-pressed=true]>.ac-check-mark[data-v-a0688518],[aria-pressed=true] .ac-skill-name-row>.ac-check-mark[data-v-a0688518],[aria-pressed=true] .ac-model-card-top>.ac-check-mark[data-v-a0688518],[aria-checked=true] .ac-model-card-top>.ac-check-mark[data-v-a0688518],[aria-checked=true] .ac-option-title>.ac-check-mark[data-v-a0688518],[aria-checked=true]>.ac-check-mark[data-v-a0688518],[aria-selected=true]>.ac-check-mark[data-v-a0688518],[aria-selected=true] .ac-model-card-top>.ac-check-mark[data-v-a0688518]{opacity:1}.ac-skill-grid--split[data-v-a0688518]{grid-template-columns:repeat(auto-fill,minmax(min(100%,176px),1fr))}.ac-skill-tile[data-v-a0688518]{cursor:pointer;border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);text-align:left;border-radius:12px;flex-direction:column;min-width:0;height:auto;min-height:150px;transition:border-color .18s,box-shadow .18s,transform .18s;display:flex;overflow:hidden}.ac-skill-tile[data-v-a0688518]:hover{border-color:var(--ui-line,#0000001f);box-shadow:var(--ui-shadow-e1,0 2px 10px #0000000a);transform:translateY(-1px)}.ac-skill-tile[aria-pressed=true][data-v-a0688518]{border-color:var(--ui-accent-line,#0891b247);box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-accent,#0891b2) 7%, transparent)}.ac-skill-cover[data-v-a0688518]{width:100%;height:60px;color:var(--ui-primary-ink,#fffffff0);background:radial-gradient(circle at 82% 16%, var(--ui-primary-ink,#ffffff4d), transparent 34%), linear-gradient(145deg, hsl(var(--cover-h1,208) 66% 54%), hsl(var(--cover-h2,250) 62% 40%));place-items:center;display:grid;position:relative;overflow:hidden}.ac-skill-cover[data-v-a0688518]:after{content:"";background:var(--ui-primary-ink,#ffffff1f);border-radius:50%;height:40px;position:absolute;inset:auto -20px -18px 16px;transform:rotate(-7deg)}.ac-skill-cover .ac-skill-icon[data-v-a0688518] svg{width:26px;height:26px}.ac-skill-tile-body[data-v-a0688518]{flex-direction:column;gap:2px;padding:8px 9px 9px;display:flex}.ac-tile-top .ac-skill-name[data-v-a0688518]{white-space:normal}.ac-skill-tile .ac-skill-name[data-v-a0688518]{font-size:12px}.ac-skill-tile .ac-skill-desc[data-v-a0688518]{font-size:11px}.ac-skill-tile .ac-skill-meta[data-v-a0688518]{font-size:10px}.ac-model-grid[data-v-a0688518]{grid-template-columns:repeat(1,minmax(0,1fr));grid-auto-rows:min-content;gap:8px;padding-right:0;display:grid}.ac-model-brand[data-v-a0688518]{background:var(--ui-panel,#fff);width:35px;height:35px;color:var(--ui-ink,#374151);box-shadow:inset 0 0 0 1px var(--ui-line-soft,#0000000d);border-radius:9px;flex:none;place-items:center;display:grid}.ac-model-brand[data-v-a0688518] svg{width:22px;height:22px}.ac-model-brand[data-v-a0688518] img{object-fit:contain;border-radius:6px;width:22px;height:22px;display:block}.ac-model-copy[data-v-a0688518]{text-align:left;flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-model-id[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 12.5px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-model-meta[data-v-a0688518]{white-space:nowrap;min-width:0;color:var(--ui-ink-mute,#9ca3af);align-items:center;gap:5px;font-size:10.5px;display:flex;overflow:hidden}.ac-model-line[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.ac-model-tip[data-v-a0688518]{white-space:normal;flex-direction:column;gap:2px;max-width:280px;display:flex}.ac-model-tip-desc[data-v-a0688518]{opacity:.78;word-break:break-word;line-height:1.4}.ac-model-card-top[data-v-a0688518]{align-items:flex-start;gap:4px;min-width:0;display:flex}.ac-model-card-top .ac-model-id[data-v-a0688518]{flex:1}.ac-model-row-list[data-v-a0688518]{flex-direction:column;gap:6px;display:flex}.ac-model-badges[data-v-a0688518]{flex:none;align-items:center;gap:4px;display:flex}.ac-menu-scroll[data-v-a0688518] .ac-model-scroll-body{padding:4px 12px 12px}.ac-model-row-list[data-v-a0688518]{gap:2px}.ac-model-row-list button[data-v-a0688518],.ac-model-grid button[data-v-a0688518]{text-align:left;border-radius:10px;justify-content:flex-start;gap:10px;width:100%;min-width:0;height:auto;min-height:0;padding:8px 10px}.ac-model-row-list button[data-v-a0688518]:hover,.ac-model-grid button[data-v-a0688518]:hover,.ac-model-row-list button[aria-selected=true][data-v-a0688518],.ac-model-grid button[aria-selected=true][data-v-a0688518]{background:var(--ui-hover,#0000000f)}.ac-model-entry[data-v-a0688518]{text-align:left;border-radius:10px;align-items:center;gap:10px;min-width:0;padding:8px 10px;transition:background .12s;display:flex}.ac-model-entry[data-v-a0688518]:hover,.ac-model-entry[aria-selected=true][data-v-a0688518]{background:var(--ui-hover,#0000000f)}.ac-model-entry .ac-model-hit[data-v-a0688518],.ac-model-entry .ac-model-hit[data-v-a0688518]:hover,.ac-model-entry .ac-model-hit[aria-selected=true][data-v-a0688518]{background:0 0;width:100%;min-width:0;height:auto}.ac-model-entry-sub[data-v-a0688518]{cursor:default;width:100%;font-weight:400}.ac-model-entry-sub .ac-model-copy[data-v-a0688518]{flex:1;min-width:0}.ac-model-account-item[data-v-a0688518]{justify-content:space-between}.ac-model-account-item-name[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ac-model-panel.is-split .ac-menu-scroll[data-v-a0688518]{min-height:0}.ac-model-panel.is-split .ac-menu-scroll[data-v-a0688518] .ac-model-scroll-body{flex:1;min-height:0;padding:0;overflow:hidden}.ac-model-panel.is-split .ac-split[data-v-a0688518]{min-height:0}.ac-mcp-list[data-v-a0688518]{flex-direction:column;gap:6px;display:flex}.ac-mcp-item[data-v-a0688518]{border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);border-radius:10px;flex-direction:column;min-width:0;transition:border-color .18s,background .18s,box-shadow .18s;display:flex;overflow:hidden}.ac-mcp-item[data-v-a0688518]:hover{border-color:var(--ui-line-strong,#00000024)}.ac-mcp-item.is-picked[data-v-a0688518]{border-color:var(--ui-accent-line,#0891b247);background:linear-gradient(180deg, var(--ui-accent-soft,#0891b20d), var(--ui-panel,#fff) 42%)}.ac-mcp-item.is-open[data-v-a0688518]{border-color:var(--ui-line-strong,#00000024)}.ac-mcp-card[data-v-a0688518]{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:0;align-items:center;gap:8px;width:100%;min-width:0;padding:8px 10px;display:flex;overflow:hidden}.ac-pick-box[data-v-a0688518]{border:1px solid var(--ui-line-strong,#0000002e);background:var(--ui-panel,#fff);color:#0000;border-radius:6px;flex:none;place-items:center;width:20px;height:20px;padding:0;transition:background .15s,border-color .15s,color .15s;display:grid}.ac-pick-box[data-v-a0688518]:hover{border-color:var(--ui-ink-dim,#6b7280)}.ac-pick-box[aria-pressed=true][data-v-a0688518]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent,#0891b2);color:#fff}.ac-mcp-main[data-v-a0688518]{text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:9px;min-width:0;padding:0;display:flex}.ac-mcp-tools[data-v-a0688518]{border:0;border-top:1px solid var(--ui-line-soft,#0000000f);background:var(--ui-veil,#00000004);border-radius:0;flex-direction:column;gap:4px;margin:0;padding:8px 10px 10px;display:flex;overflow:hidden}.ac-tool-list[data-v-a0688518]{border-left:1px solid var(--ui-line,#0000001a);flex-direction:column;gap:2px;margin-left:2px;padding-left:10px;display:flex}.ac-tool-row[data-v-a0688518]{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:flex-start;gap:8px;width:100%;min-width:0;padding:6px 8px;transition:background .14s;display:flex}.ac-tool-row[data-v-a0688518]:hover{background:var(--ui-hover,#0000000d)}.ac-tool-row.is-picked[data-v-a0688518]{background:var(--ui-hover,#0000000f)}.ac-tool-radio[data-v-a0688518]{border:1.5px solid var(--ui-line-strong,#00000038);background:var(--ui-panel,#fff);color:#0000;border-radius:50%;flex:none;place-items:center;width:14px;height:14px;margin-top:2px;transition:background .14s,border-color .14s,color .14s;display:grid}.ac-tool-row:hover .ac-tool-radio[data-v-a0688518]{border-color:var(--ui-ink-dim,#6b7280)}.ac-tool-row.is-picked .ac-tool-radio[data-v-a0688518]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent,#0891b2);color:#fff}.ac-tool-row .ac-tool-copy[data-v-a0688518]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-tool-row .ac-tool-name[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 11.5px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-tool-row .ac-tool-desc[data-v-a0688518]{-webkit-line-clamp:2;color:var(--ui-ink-mute,#9ca3af);-webkit-box-orient:vertical;font-size:10.5px;line-height:1.5;display:-webkit-box;overflow:hidden}.ac-mcp-tools-empty[data-v-a0688518]{color:var(--ui-ink-mute,#9ca3af);padding:8px 5px;font-size:11px;line-height:1.5}.ac-panel-note[data-v-a0688518]{color:var(--ui-ink-mute,#9ca3af);background:var(--ui-veil,#00000008);border-radius:8px;margin:10px 0 2px;padding:8px 10px;font-size:11px;line-height:1.5}.ac-menu-head[data-v-a0688518]{flex:none;align-items:center;gap:8px;padding:8px 10px 6px;display:flex}.ac-menu-head-title[data-v-a0688518]{color:var(--ui-ink,#f7f7f7);font-size:12px;font-weight:600}.ac-menu-head-count[data-v-a0688518]{background:var(--ui-chip,#ffffff1a);text-align:center;min-width:18px;color:var(--ui-ink-dim,#919191);border-radius:999px;padding:0 5px;font-size:11px;line-height:16px}.ac-menu-head-spacer[data-v-a0688518]{flex:1;min-width:4px}.ac-menu-head-btn[data-v-a0688518]{border:1px solid var(--ui-line,#363636);height:22px;color:var(--ui-ink-dim,#919191);cursor:pointer;background:0 0;border-radius:999px;flex:none;align-items:center;gap:4px;padding:0 8px;font-size:11px;display:inline-flex}.ac-menu-head-btn[data-v-a0688518]:hover:not(:disabled){background:var(--ui-hover,#ffffff1a);color:var(--ui-ink,#f7f7f7)}.ac-menu-head-btn[data-v-a0688518]:disabled{opacity:.6;cursor:default}.ac-menu-card-badge[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;background:var(--ui-accent-soft,#0891b21f);max-width:96px;color:var(--ui-accent-hover,#0e7490);border-radius:999px;flex:none;margin-top:3px;padding:1px 6px;font-size:11px;line-height:15px;overflow:hidden}.ac-menu-card-badge.is-bad[data-v-a0688518]{background:var(--ui-danger-veil,#ef44441a);color:var(--ui-danger,#ef4444)}.ac-menu-scroll[data-v-a0688518]{flex-direction:column;flex:1;gap:2px;min-height:0;padding:0;display:flex;overflow:visible}.ac-menu-card[data-v-a0688518]{background:var(--ui-veil,#ffffff0a);text-align:left;cursor:pointer;border:1px solid #0000;border-radius:10px;align-items:flex-start;gap:10px;width:100%;padding:9px 10px;transition:background .14s,border-color .14s;display:flex}.ac-menu-card[data-v-a0688518]:hover{background:var(--ui-hover,#ffffff1a)}.ac-menu-card[aria-selected=true][data-v-a0688518]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent-soft,#0891b21f)}.ac-menu-card-icon[data-v-a0688518]{background:var(--ui-chip,#ffffff1a);width:26px;height:26px;color:var(--ui-ink-dim,#919191);border-radius:8px;flex:none;place-items:center;display:grid}.ac-menu-card-icon[data-v-a0688518] svg{width:15px;height:15px}.ac-menu-card[aria-selected=true] .ac-menu-card-icon[data-v-a0688518]{color:var(--ui-accent,#0891b2)}.ac-menu-card-text[data-v-a0688518]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-menu-card-name[data-v-a0688518]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#f7f7f7);font-size:13px;overflow:hidden}.ac-menu-card[aria-selected=true] .ac-menu-card-name[data-v-a0688518]{color:var(--ui-accent,#0891b2);font-weight:600}.ac-menu-card-hint[data-v-a0688518]{-webkit-line-clamp:2;color:var(--ui-ink-dim,#919191);-webkit-box-orient:vertical;font-size:11px;line-height:1.5;display:-webkit-box;overflow:hidden}.ac-menu-card-check[data-v-a0688518]{color:var(--ui-accent,#0891b2);flex:none;margin-top:5px}.ac-panel[data-v-a0688518]{flex-direction:column;flex:1;width:100%;min-height:min(460px,100dvh - 200px);padding:0;font:13px/1.5 -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;display:flex;container-type:inline-size}.ac-panel.is-split[data-v-a0688518]{min-height:min(460px,100dvh - 200px)}.ac-panel-head[data-v-a0688518]{flex-direction:column;flex:none;gap:10px;padding:12px 12px 10px;display:flex}.ac-panel-head-top[data-v-a0688518]{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;display:grid}.ac-panel-head-top--review[data-v-a0688518]{grid-template-columns:minmax(0,1fr) auto}.ac-panel-heading>svg[data-v-a0688518]{color:var(--ui-ink-dim,#6b7280);flex:none}.is-auto-auth[data-v-a0688518]{color:var(--ui-danger,#ef4444)!important}.ac-panel-heading[data-v-a0688518]{flex:1;align-items:center;gap:7px;min-width:0;display:flex}.ac-panel-title[data-v-a0688518]{letter-spacing:-.01em;white-space:nowrap;color:var(--ui-ink,#111827);margin:0;font-size:15px;font-weight:700;line-height:1.3}.ac-panel-count[data-v-a0688518]{background:var(--ui-veil,#0000000a);min-width:20px;height:18px;color:var(--ui-ink-dim,#6b7280);border-radius:999px;justify-content:center;align-items:center;padding:0 6px;font-size:10px;font-weight:700;line-height:1;display:inline-flex}.ac-panel-lede[data-v-a0688518]{color:var(--ui-ink-dim,#6b7280);margin:0;font-size:12px;line-height:1.45}.ac-review-state[data-v-a0688518]{background:var(--ui-accent-soft,#0891b21a);height:18px;color:var(--ui-accent-hover,#0e7490);white-space:nowrap;border-radius:999px;flex:none;align-items:center;gap:4px;padding:0 6px;font-size:10px;font-weight:600;display:inline-flex}.ac-panel-tools[data-v-a0688518]{flex:none;justify-content:flex-end;align-items:center;gap:5px;display:flex}.ac-panel-body[data-v-a0688518]{flex-direction:column;flex:1;min-height:0;display:flex;position:relative;overflow:hidden}.ac-mcp-panel .ac-selection-summary[data-v-a0688518]{flex-wrap:wrap;row-gap:2px}.ac-panel-scroll[data-v-a0688518]{flex:1;min-height:0}.ac-panel-scroll[data-v-a0688518] .ac-panel-scroll-body{padding:2px 12px 12px}.ac-editing-badge[data-v-da62934c]{background:color-mix(in srgb, var(--ui-warn,#e3a25f) 16%, transparent);height:20px;color:var(--ui-warn,#e3a25f);border-radius:999px;align-self:flex-end;align-items:center;gap:4px;margin-top:4px;padding:0 4px 0 8px;font-size:11px;font-weight:600;display:inline-flex}.ac-editing-badge.is-compact[data-v-da62934c]{white-space:nowrap;flex:none;align-self:center;height:18px;margin-top:0}.ac-editing-badge.is-compact span[data-v-da62934c]{white-space:nowrap}.ac-editing-mark[data-v-da62934c]{background:color-mix(in srgb, var(--ui-warn,#e3a25f) 16%, transparent);width:100%;height:26px;color:var(--ui-warn,#e3a25f);border-radius:8px;align-items:center;gap:4px;margin:0;padding:0 4px 0 10px;font-size:12px;font-weight:600;display:flex}.ac-editing-mark-btn[data-v-da62934c]{color:inherit;font-size:11px;font-weight:600}.ac-editing-mark-btn[data-v-da62934c]:hover{text-decoration:underline}.ac-editing-mark-spacer[data-v-da62934c]{flex:1}.ac-editing-x[data-v-da62934c]{color:inherit}.ac-editing-x[data-v-da62934c]:hover,.ac-editing-x[data-v-da62934c]:active,.ac-editing-x[aria-expanded=true][data-v-da62934c]{background:0 0!important}.ac-editing-x[data-v-da62934c]:hover{color:var(--ui-ink,#f7f7f7)}.ac-rot[data-v-da62934c]{transform:rotate(90deg)}.ac-pending[data-v-da62934c]{color:var(--ui-ink-dim,#919191);align-items:center;gap:8px;margin:6px 0 0;font-size:14px;line-height:24px;display:flex}.ac-pending-spin[data-v-da62934c]{border:2px solid;border-top-color:#0000;border-radius:50%;flex:none;width:14px;height:14px;animation:.8s linear infinite ac-rotate;display:inline-block}.ac-notify[data-v-da62934c]{background:var(--ui-accent-soft,#0891b233);height:40px;color:var(--ui-ink,#f7f7f7);border-radius:12px;align-items:center;gap:8px;margin-bottom:8px;padding:0 6px 0 10px;display:flex}.ac-notify-icon[data-v-da62934c]{color:var(--ui-accent,#0891b2);flex:none}.ac-notify-text[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:13px;overflow:hidden}.ac-notify-btn[data-v-da62934c]{color:var(--ui-ink,#f7f7f7);flex:none;font-size:13px;font-weight:600}.ac-notify-btn[data-v-da62934c]:hover{color:var(--ui-accent,#0891b2)}.ac-notify-close[data-v-da62934c]{color:var(--ui-ink-dim,#919191);flex:none}.ac-pending-box[data-v-da62934c]{border:1px solid var(--ui-line,#363636);background:var(--ui-veil,#ffffff0a);border-radius:14px 14px 0 0;width:90%;margin:0 auto -1px;position:relative;overflow:hidden;container-type:inline-size}.ac-pending-list[data-v-da62934c]{flex-direction:column;min-width:0;display:flex}.ac-pending-row[data-v-da62934c]{border-radius:0;align-items:center;gap:8px;min-width:0;min-height:36px;padding:0 8px 0 10px;display:flex}.ac-pending-row+.ac-pending-row[data-v-da62934c]{border-top:1px solid var(--ui-line-soft,#2a2a2a)}.ac-pending-row[data-v-da62934c]:hover{background:var(--ui-hover,#ffffff1a)}.ac-pending-lead[data-v-da62934c]{color:var(--ui-ink-mute,#a8a8a8);flex:none;place-items:center;display:grid}.ac-queue-row.is-editing[data-v-da62934c]{background:color-mix(in srgb, var(--ui-warn,#e3a25f) 12%, transparent)}.ac-queue-row.is-sending[data-v-da62934c]{opacity:.7}.ac-queue-thumb[data-v-da62934c]{object-fit:cover;cursor:zoom-in;background:var(--ui-chip,#ffffff1a);border-radius:4px;flex:none;width:16px;height:16px}.ac-queue-thumb[data-v-da62934c],.ac-goal-ratio~.ac-queue-thumb[data-v-da62934c]{border:1px solid color-mix(in srgb, var(--ui-ink,#f7f7f7) 22%, transparent);box-shadow:0 0 0 1px #0000000f}.ac-queue-thumb-more[data-v-da62934c]{background:var(--ui-chip,#ffffff1a);min-width:16px;height:16px;color:var(--ui-ink-dim,#919191);border-radius:4px;flex:none;place-items:center;padding:0 3px;font-size:9px;font-weight:700;display:grid}.ac-queue-text[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ui-ink,#f7f7f7);flex:1;font-size:12px;line-height:16px;overflow:hidden}.ac-queue-row.is-editing .ac-queue-text[data-v-da62934c]{color:var(--ui-ink-dim,#919191)}.ac-queue-flag[data-v-da62934c]{flex:none;height:18px;padding-inline:6px;font-size:10px}.ac-queue-lead-swap[data-v-da62934c]{cursor:grab;border-radius:4px;flex:none;place-items:center;width:16px;height:20px;display:grid}.ac-queue-lead-swap[data-v-da62934c]:active{cursor:grabbing}.ac-queue-lead-swap[data-v-da62934c]>*{grid-area:1/1;justify-content:center;align-items:center;display:inline-flex}.ac-queue-lead-swap .ac-pending-lead[data-v-da62934c]{transition:opacity .15s}.ac-pending-row .ac-queue-lead-swap .ac-queue-handle[data-v-da62934c]{opacity:0}.ac-pending-row:hover .ac-queue-lead-swap .ac-queue-handle[data-v-da62934c],.ac-pending-row.is-hover .ac-queue-lead-swap .ac-queue-handle[data-v-da62934c]{opacity:1}.ac-pending-row:hover .ac-queue-lead-swap .ac-pending-lead[data-v-da62934c],.ac-pending-row.is-hover .ac-queue-lead-swap .ac-pending-lead[data-v-da62934c]{opacity:0}.ac-queue-row--ghost[data-v-da62934c]{opacity:.4}.ac-queue-row--chosen[data-v-da62934c]{background:var(--ui-hover,#ffffff0f)}.ac-queue-actions[data-v-da62934c]{flex:none;align-items:center;gap:2px;display:flex}.ac-queue-btn[data-v-da62934c]{color:var(--ui-ink-dim,#919191);flex:none}.ac-queue-btn[data-v-da62934c]:hover{background:var(--ui-hover-strong,#ffffff24);color:var(--ui-ink,#f7f7f7)}.ac-queue-btn.is-danger[data-v-da62934c]:hover{background:var(--ui-danger-veil,#ef44441a);color:var(--ui-danger,#ef4444)}.ac-queue-pause[data-v-da62934c]{z-index:6;border:1px solid var(--ui-line,#363636);background:var(--ui-overlay-solid,#212121);color:var(--ui-ink-dim,#919191);box-shadow:var(--ui-shadow-md,0 18px 44px #00000029);border-radius:999px;gap:5px;font-size:11px;font-weight:600;transition:color .15s;position:absolute;top:0;left:50%;transform:translate(-50%,-50%)}.ac-queue-pause[data-v-da62934c]:hover{color:var(--ui-ink,#f7f7f7);background:linear-gradient(var(--ui-hover-strong,#ffffff26), var(--ui-hover-strong,#ffffff26)), var(--ui-overlay-solid,#212121)}.ac-queue-pause.is-paused[data-v-da62934c]{background:var(--ui-warn,#e3a25f);color:#fff;border-color:#0000}.ac-queue-pause-cnt[data-v-da62934c]{background:var(--ui-chip,#ffffff1a);min-width:16px;height:16px;color:var(--ui-ink-dim,#919191);border-radius:999px;place-items:center;padding:0 5px;font-size:10px;display:grid}.ac-queue-pause.is-paused .ac-queue-pause-cnt[data-v-da62934c]{color:#fff;background:#ffffff47}.ac-goal-row[data-v-da62934c]{background:var(--ui-chip,#ffffff1a)}.ac-goal-row[data-v-da62934c]:hover{background:var(--ui-hover-strong,#ffffff26)}.ac-goal-row.is-editing[data-v-da62934c]{background:color-mix(in srgb, var(--ui-warn,#e3a25f) 16%, transparent)}.ac-goal-row.is-editing[data-v-da62934c]:hover{background:color-mix(in srgb, var(--ui-warn,#e3a25f) 20%, transparent)}.ac-goal-row .ac-pending-lead[data-v-da62934c]{color:var(--ui-ink-dim,#919191)}.ac-goal-lead[data-v-da62934c]{color:var(--ui-ink-dim,#919191);flex:none}.ac-goal-lead .ac-goal-lead-edit[data-v-da62934c],.ac-goal-lead:hover .ac-goal-lead-target[data-v-da62934c]{display:none}.ac-goal-lead:hover .ac-goal-lead-edit[data-v-da62934c]{display:block}.ac-goal-lead.is-editing .ac-goal-lead-target[data-v-da62934c]{display:none}.ac-goal-lead.is-editing .ac-goal-lead-edit[data-v-da62934c]{display:block}.ac-goal-row-text[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ui-ink,#f7f7f7);flex:auto;font-size:12px;font-weight:600;overflow:hidden}.ac-goal-flag[data-v-da62934c]{flex:none;height:18px;padding-inline:6px;font-size:10px}.ac-goal-flag.is-paused[data-v-da62934c]{background:color-mix(in srgb, var(--ui-warn,#e3a25f) 18%, transparent);color:var(--ui-warn,#e3a25f);border-color:#0000}.ac-goal-flag.is-done[data-v-da62934c]{background:var(--ui-chip,#ffffff1a);color:var(--ui-ink-dim,#919191);border-color:#0000}.ac-goal-round[data-v-da62934c]{color:var(--ui-ink-dim,#919191);white-space:nowrap;flex:none;font-size:12px}.ac-goal-token[data-v-da62934c]{color:var(--ui-ink,#f7f7f7);white-space:nowrap;flex:none;align-items:center;gap:4px;font-size:12px;font-weight:600;display:inline-flex}.ac-goal-token-prefix[data-v-da62934c]{color:var(--ui-ink-dim,#919191);flex:none;font-weight:600}.ac-goal-token-val[data-v-da62934c]{white-space:pre;cursor:text;text-underline-offset:3px;min-width:2.2ch;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-color:var(--ui-ink-mute,#a8a8a8);text-decoration-color:var(--ui-ink-mute,#a8a8a8);outline:none;flex:none;padding:0;font-size:12px;font-weight:600;line-height:16px}.ac-goal-token-val[data-v-da62934c]:hover{-webkit-text-decoration-color:var(--ui-ink,#f7f7f7);text-decoration-color:var(--ui-ink,#f7f7f7)}.ac-goal-token-val[data-v-da62934c]:focus{text-decoration-style:solid;-webkit-text-decoration-color:var(--ui-ink,#f7f7f7);text-decoration-color:var(--ui-ink,#f7f7f7)}.ac-goal-token-val.is-readonly[data-v-da62934c]{cursor:default;text-decoration:none}.ac-goal-ratio[data-v-da62934c]{color:var(--ui-ink,#f7f7f7);white-space:nowrap;flex:none;align-items:center;gap:1px;font-size:12px;font-weight:600;display:inline-flex}.ac-goal-ratio .ac-goal-token-val[data-v-da62934c]{text-align:center;min-width:2.6ch}.ac-goal-ratio-sep[data-v-da62934c]{color:var(--ui-ink-mute,#a8a8a8);flex:none;padding:0 1px;font-weight:600}.ac-goal-mark[data-v-da62934c]{background:var(--ui-veil,#ffffff0f);width:100%;height:26px;color:var(--ui-ink,#f7f7f7);border-radius:8px;align-items:center;gap:6px;padding:0 4px 0 8px;display:flex}.ac-goal-icon[data-v-da62934c]{flex:none}.ac-goal-mark-label[data-v-da62934c],.ac-goal-mark .ac-goal-token-prefix[data-v-da62934c],.ac-goal-mark .ac-goal-token-val[data-v-da62934c]{font-size:12px;font-weight:600;line-height:20px}.ac-goal-mark .ac-goal-token[data-v-da62934c]{color:var(--ui-ink,#f7f7f7)}.ac-goal-btn[data-v-da62934c]{color:inherit;flex:none}.ac-goal-btn[data-v-da62934c]:hover,.ac-goal-btn[data-v-da62934c]:active,.ac-goal-btn[aria-expanded=true][data-v-da62934c]{background:0 0!important}.ac-goal-btn[data-v-da62934c]:hover{color:var(--ui-ink,#f7f7f7)}.ac-goal-btn .is-hollow[data-v-da62934c]{opacity:.55}.ac-goal-row.is-narrow .ac-goal-bar[data-v-da62934c]{display:none}.ac-editor[data-v-da62934c]{min-height:64px;max-height:min(45vh,15rem);position:relative;overflow-y:auto}.ac-placeholder[data-v-da62934c]{color:var(--ui-ink-dim,#919191);pointer-events:none;font-size:14px;line-height:24px;position:absolute;top:0;left:0}.ac-toolbar[data-v-da62934c]{align-items:center;gap:3px;min-width:0;display:flex}.ac-file[data-v-da62934c]{display:none}.ac-tool-check[data-v-da62934c]{opacity:0;flex:none;margin-top:2px}[aria-checked=true]>.ac-tool-check[data-v-da62934c]{opacity:1}.ac-tool-copy[data-v-da62934c]{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.ac-tool-name[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 11.5px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-tool-desc[data-v-da62934c]{-webkit-line-clamp:2;color:var(--ui-ink-mute,#9ca3af);-webkit-box-orient:vertical;font-size:10.5px;line-height:1.45;display:-webkit-box;overflow:hidden}.ac-pill-text[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ac-pill-caret[data-v-da62934c]{flex:none}.ac-tb-spacer[data-v-da62934c]{flex:1;min-width:8px}.ac-ctx-ring[data-v-da62934c]{width:32px;height:32px;color:var(--ui-ink-dim,#919191);cursor:pointer;background:0 0;border:0;border-radius:999px;place-items:center;margin-right:2px;padding:0;display:grid}.ac-ctx-ring[data-v-da62934c]:hover{color:var(--ui-ink,#f7f7f7)}.ac-ctx-ring[data-v-da62934c]:focus-visible{outline:2px solid var(--ui-accent,#0891b2);outline-offset:1px}.ac-ctx-ring .ac-ctx-track[data-v-da62934c]{opacity:.25}.ac-ctxwrap[data-v-da62934c]{align-items:center;gap:2px;min-width:0;display:inline-flex}.ac-attach-list[data-v-da62934c]{flex-wrap:wrap;gap:6px;padding:2px 2px 0;display:flex}.ac-attach[data-v-da62934c]{border:1px solid var(--ui-line,#363636);background:var(--ui-veil,#ffffff0a);border-radius:10px;flex:none;width:56px;height:56px;position:relative;overflow:hidden}.ac-attach img[data-v-da62934c]{object-fit:cover;width:100%;height:100%;display:block}.ac-attach-del[data-v-da62934c]{background:var(--ui-scrim,#0009);color:var(--ui-tip-ink,#fff);position:absolute;top:2px;right:2px}.ac-attach-del[data-v-da62934c]:hover{background:var(--ui-danger,#ef4444)}.ac-toolbar .is-running[data-v-da62934c]{background:var(--ui-danger,#ef4444);color:var(--ui-on-accent,#fff)}.ac-stop-square[data-v-da62934c]{background:currentColor;border-radius:2px;width:11px;height:11px}.ac-menu-head[data-v-da62934c]{flex:none;align-items:center;gap:8px;padding:8px 10px 6px;display:flex}.ac-menu-head-title[data-v-da62934c]{color:var(--ui-ink,#f7f7f7);font-size:12px;font-weight:600}.ac-menu-head-count[data-v-da62934c]{background:var(--ui-chip,#ffffff1a);text-align:center;min-width:18px;color:var(--ui-ink-dim,#919191);border-radius:999px;padding:0 5px;font-size:11px;line-height:16px}.ac-menu-head-spacer[data-v-da62934c]{flex:1;min-width:4px}.ac-menu-head-btn[data-v-da62934c]{border:1px solid var(--ui-line,#363636);height:22px;color:var(--ui-ink-dim,#919191);cursor:pointer;background:0 0;border-radius:999px;flex:none;align-items:center;gap:4px;padding:0 8px;font-size:11px;display:inline-flex}.ac-menu-head-btn[data-v-da62934c]:hover:not(:disabled){background:var(--ui-hover,#ffffff1a);color:var(--ui-ink,#f7f7f7)}.ac-menu-head-btn[data-v-da62934c]:disabled{opacity:.6;cursor:default}.ac-menu-card-badge[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;background:var(--ui-accent-soft,#0891b21f);max-width:96px;color:var(--ui-accent-hover,#0e7490);border-radius:999px;flex:none;margin-top:3px;padding:1px 6px;font-size:11px;line-height:15px;overflow:hidden}.ac-menu-card-badge.is-bad[data-v-da62934c]{background:var(--ui-danger-veil,#ef44441a);color:var(--ui-danger,#ef4444)}.ac-menu-scroll[data-v-da62934c]{flex-direction:column;flex:1;gap:2px;min-height:0;padding:0;display:flex;overflow:visible}.ac-menu-card[data-v-da62934c]{background:var(--ui-veil,#ffffff0a);text-align:left;cursor:pointer;border:1px solid #0000;border-radius:10px;align-items:flex-start;gap:10px;width:100%;padding:9px 10px;transition:background .14s,border-color .14s;display:flex}.ac-menu-card[data-v-da62934c]:hover{background:var(--ui-hover,#ffffff1a)}.ac-menu-card[aria-selected=true][data-v-da62934c]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent-soft,#0891b21f)}.ac-menu-card-icon[data-v-da62934c]{background:var(--ui-chip,#ffffff1a);width:26px;height:26px;color:var(--ui-ink-dim,#919191);border-radius:8px;flex:none;place-items:center;display:grid}.ac-menu-card-icon[data-v-da62934c] svg{width:15px;height:15px}.ac-menu-card[aria-selected=true] .ac-menu-card-icon[data-v-da62934c]{color:var(--ui-accent,#0891b2)}.ac-menu-card-text[data-v-da62934c]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-menu-card-name[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#f7f7f7);font-size:13px;overflow:hidden}.ac-menu-card[aria-selected=true] .ac-menu-card-name[data-v-da62934c]{color:var(--ui-accent,#0891b2);font-weight:600}.ac-menu-card-hint[data-v-da62934c]{-webkit-line-clamp:2;color:var(--ui-ink-dim,#919191);-webkit-box-orient:vertical;font-size:11px;line-height:1.5;display:-webkit-box;overflow:hidden}.ac-menu-card-check[data-v-da62934c]{color:var(--ui-accent,#0891b2);flex:none;margin-top:5px}.ac-panel[data-v-da62934c]{flex-direction:column;flex:1;width:100%;min-height:min(460px,100dvh - 200px);padding:0;font:13px/1.5 -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;display:flex;container-type:inline-size}.ac-panel.is-split[data-v-da62934c]{min-height:min(460px,100dvh - 200px)}.ac-panel-head[data-v-da62934c]{flex-direction:column;flex:none;gap:10px;padding:12px 12px 10px;display:flex}.ac-panel-head-top[data-v-da62934c]{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;display:grid}.ac-panel-head-top--review[data-v-da62934c]{grid-template-columns:minmax(0,1fr) auto}.ac-panel-heading>svg[data-v-da62934c]{color:var(--ui-ink-dim,#6b7280);flex:none}.is-auto-auth[data-v-da62934c]{color:var(--ui-danger,#ef4444)!important}.ac-panel-heading[data-v-da62934c]{flex:1;align-items:center;gap:7px;min-width:0;display:flex}.ac-panel-title[data-v-da62934c]{letter-spacing:-.01em;white-space:nowrap;color:var(--ui-ink,#111827);margin:0;font-size:15px;font-weight:700;line-height:1.3}.ac-panel-count[data-v-da62934c]{background:var(--ui-veil,#0000000a);min-width:20px;height:18px;color:var(--ui-ink-dim,#6b7280);border-radius:999px;justify-content:center;align-items:center;padding:0 6px;font-size:10px;font-weight:700;line-height:1;display:inline-flex}.ac-panel-lede[data-v-da62934c]{color:var(--ui-ink-dim,#6b7280);margin:0;font-size:12px;line-height:1.45}.ac-review-state[data-v-da62934c]{background:var(--ui-accent-soft,#0891b21a);height:18px;color:var(--ui-accent-hover,#0e7490);white-space:nowrap;border-radius:999px;flex:none;align-items:center;gap:4px;padding:0 6px;font-size:10px;font-weight:600;display:inline-flex}.ac-panel-tools[data-v-da62934c]{flex:none;justify-content:flex-end;align-items:center;gap:5px;display:flex}.ac-panel-body[data-v-da62934c]{flex-direction:column;flex:1;min-height:0;display:flex;position:relative;overflow:hidden}.ac-mcp-panel .ac-selection-summary[data-v-da62934c]{flex-wrap:wrap;row-gap:2px}.ac-panel-scroll[data-v-da62934c]{flex:1;min-height:0}.ac-panel-scroll[data-v-da62934c] .ac-panel-scroll-body,.ac-review-body[data-v-da62934c]{padding:2px 12px 12px}.ac-review-list[data-v-da62934c]{flex-direction:column;gap:8px;display:flex}.ac-review-item[data-v-da62934c]{flex-direction:column;align-items:stretch;gap:0;width:100%;display:flex}.ac-review-item .ac-option-title[data-v-da62934c]{width:100%}.ac-review-item[aria-checked=true][data-v-da62934c]{background:var(--ui-hover,#0000000f)}.ac-review-item[aria-checked=true] .ac-option-label[data-v-da62934c]{color:var(--ui-ink,#111827)}.ac-option-icon[data-v-da62934c]{color:var(--ui-ink-dim,#6b7280);flex:none}.ac-review-item .ac-review-check[data-v-da62934c]{margin-left:auto}.ac-skill-grid[data-v-da62934c]{grid-template-columns:repeat(1,minmax(0,1fr));gap:8px;display:grid}.ac-skill-card[data-v-da62934c]{cursor:pointer;border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);text-align:left;border-radius:12px;align-items:center;gap:9px;width:100%;min-width:0;height:auto;min-height:72px;padding:8px;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s;display:flex}.ac-skill-card[data-v-da62934c]:focus-visible,.ac-skill-tile[data-v-da62934c]:focus-visible{outline:2px solid var(--ui-accent-ring,#0891b299);outline-offset:2px}.ac-skill-card[data-v-da62934c]:hover{background:var(--ui-hover-soft,#00000008);border-color:var(--ui-line,#0000001f);box-shadow:var(--ui-shadow-e1,0 2px 10px #0000000a);transform:translateY(-1px)}.ac-skill-thumb[data-v-da62934c]{width:54px;height:54px;color:var(--ui-primary-ink,#fffffff0);background:radial-gradient(circle at 78% 18%, var(--ui-primary-ink,#ffffff47), transparent 36%), linear-gradient(145deg, hsl(var(--cover-h1,208) 66% 54%), hsl(var(--cover-h2,250) 62% 40%));border-radius:10px;flex:none;place-items:center;display:grid;position:relative;overflow:hidden}.ac-skill-thumb[data-v-da62934c]:after{content:"";background:var(--ui-primary-ink,#ffffff1f);border-radius:50%;height:28px;position:absolute;inset:auto -8px -16px 12px;transform:rotate(-8deg)}.ac-skill-icon[data-v-da62934c]{z-index:1;place-items:center;display:grid;position:relative}.ac-skill-icon[data-v-da62934c] svg{width:23px;height:23px}.ac-skill-copy[data-v-da62934c]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-skill-name-row[data-v-da62934c]{align-items:center;gap:5px;min-width:0;display:flex}.ac-skill-name[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ui-ink,#111827);flex:1;font-size:12.5px;font-weight:600;line-height:1.35;overflow:hidden}.ac-skill-desc[data-v-da62934c]{-webkit-line-clamp:2;color:var(--ui-ink-dim,#6b7280);-webkit-box-orient:vertical;font-size:12px;line-height:1.4;display:-webkit-box;overflow:hidden}.ac-skill-meta[data-v-da62934c]{min-width:0;color:var(--ui-ink-mute,#9ca3af);white-space:nowrap;align-items:center;gap:5px;font-size:10.5px;display:flex;overflow:hidden}[aria-pressed=true]>.ac-check-mark[data-v-da62934c],[aria-pressed=true] .ac-skill-name-row>.ac-check-mark[data-v-da62934c],[aria-pressed=true] .ac-model-card-top>.ac-check-mark[data-v-da62934c],[aria-checked=true] .ac-model-card-top>.ac-check-mark[data-v-da62934c],[aria-checked=true] .ac-option-title>.ac-check-mark[data-v-da62934c],[aria-checked=true]>.ac-check-mark[data-v-da62934c],[aria-selected=true]>.ac-check-mark[data-v-da62934c],[aria-selected=true] .ac-model-card-top>.ac-check-mark[data-v-da62934c]{opacity:1}.ac-skill-grid--split[data-v-da62934c]{grid-template-columns:repeat(auto-fill,minmax(min(100%,176px),1fr))}.ac-skill-tile[data-v-da62934c]{cursor:pointer;border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);text-align:left;border-radius:12px;flex-direction:column;min-width:0;height:auto;min-height:150px;transition:border-color .18s,box-shadow .18s,transform .18s;display:flex;overflow:hidden}.ac-skill-tile[data-v-da62934c]:hover{border-color:var(--ui-line,#0000001f);box-shadow:var(--ui-shadow-e1,0 2px 10px #0000000a);transform:translateY(-1px)}.ac-skill-tile[aria-pressed=true][data-v-da62934c]{border-color:var(--ui-accent-line,#0891b247);box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-accent,#0891b2) 7%, transparent)}.ac-skill-cover[data-v-da62934c]{width:100%;height:60px;color:var(--ui-primary-ink,#fffffff0);background:radial-gradient(circle at 82% 16%, var(--ui-primary-ink,#ffffff4d), transparent 34%), linear-gradient(145deg, hsl(var(--cover-h1,208) 66% 54%), hsl(var(--cover-h2,250) 62% 40%));place-items:center;display:grid;position:relative;overflow:hidden}.ac-skill-cover[data-v-da62934c]:after{content:"";background:var(--ui-primary-ink,#ffffff1f);border-radius:50%;height:40px;position:absolute;inset:auto -20px -18px 16px;transform:rotate(-7deg)}.ac-skill-cover .ac-skill-icon[data-v-da62934c] svg{width:26px;height:26px}.ac-skill-tile-body[data-v-da62934c]{flex-direction:column;gap:2px;padding:8px 9px 9px;display:flex}.ac-tile-top .ac-skill-name[data-v-da62934c]{white-space:normal}.ac-skill-tile .ac-skill-name[data-v-da62934c]{font-size:12px}.ac-skill-tile .ac-skill-desc[data-v-da62934c]{font-size:11px}.ac-skill-tile .ac-skill-meta[data-v-da62934c]{font-size:10px}.ac-model-grid[data-v-da62934c]{grid-template-columns:repeat(1,minmax(0,1fr));grid-auto-rows:min-content;gap:8px;padding-right:0;display:grid}.ac-model-brand[data-v-da62934c]{background:var(--ui-panel,#fff);width:35px;height:35px;color:var(--ui-ink,#374151);box-shadow:inset 0 0 0 1px var(--ui-line-soft,#0000000d);border-radius:9px;flex:none;place-items:center;display:grid}.ac-model-brand[data-v-da62934c] svg{width:22px;height:22px}.ac-model-brand[data-v-da62934c] img{object-fit:contain;border-radius:6px;width:22px;height:22px;display:block}.ac-model-copy[data-v-da62934c]{text-align:left;flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-model-id[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 12.5px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-model-meta[data-v-da62934c]{white-space:nowrap;min-width:0;color:var(--ui-ink-mute,#9ca3af);align-items:center;gap:5px;font-size:10.5px;display:flex;overflow:hidden}.ac-model-line[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.ac-model-tip[data-v-da62934c]{white-space:normal;flex-direction:column;gap:2px;max-width:280px;display:flex}.ac-model-tip-desc[data-v-da62934c]{opacity:.78;word-break:break-word;line-height:1.4}.ac-model-card-top[data-v-da62934c]{align-items:flex-start;gap:4px;min-width:0;display:flex}.ac-model-card-top .ac-model-id[data-v-da62934c]{flex:1}.ac-model-row-list[data-v-da62934c]{flex-direction:column;gap:6px;display:flex}.ac-model-badges[data-v-da62934c]{flex:none;align-items:center;gap:4px;display:flex}.ac-menu-scroll[data-v-da62934c] .ac-model-scroll-body{padding:4px 12px 12px}.ac-model-row-list[data-v-da62934c]{gap:2px}.ac-model-row-list button[data-v-da62934c],.ac-model-grid button[data-v-da62934c]{text-align:left;border-radius:10px;justify-content:flex-start;gap:10px;width:100%;min-width:0;height:auto;min-height:0;padding:8px 10px}.ac-model-row-list button[data-v-da62934c]:hover,.ac-model-grid button[data-v-da62934c]:hover,.ac-model-row-list button[aria-selected=true][data-v-da62934c],.ac-model-grid button[aria-selected=true][data-v-da62934c]{background:var(--ui-hover,#0000000f)}.ac-model-entry[data-v-da62934c]{text-align:left;border-radius:10px;align-items:center;gap:10px;min-width:0;padding:8px 10px;transition:background .12s;display:flex}.ac-model-entry[data-v-da62934c]:hover,.ac-model-entry[aria-selected=true][data-v-da62934c]{background:var(--ui-hover,#0000000f)}.ac-model-entry .ac-model-hit[data-v-da62934c],.ac-model-entry .ac-model-hit[data-v-da62934c]:hover,.ac-model-entry .ac-model-hit[aria-selected=true][data-v-da62934c]{background:0 0;width:100%;min-width:0;height:auto}.ac-model-entry-sub[data-v-da62934c]{cursor:default;width:100%;font-weight:400}.ac-model-entry-sub .ac-model-copy[data-v-da62934c]{flex:1;min-width:0}.ac-model-account-item[data-v-da62934c]{justify-content:space-between}.ac-model-account-item-name[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ac-model-panel.is-split .ac-menu-scroll[data-v-da62934c]{min-height:0}.ac-model-panel.is-split .ac-menu-scroll[data-v-da62934c] .ac-model-scroll-body{flex:1;min-height:0;padding:0;overflow:hidden}.ac-model-panel.is-split .ac-split[data-v-da62934c]{min-height:0}.ac-mcp-list[data-v-da62934c]{flex-direction:column;gap:6px;display:flex}.ac-mcp-item[data-v-da62934c]{border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);border-radius:10px;flex-direction:column;min-width:0;transition:border-color .18s,background .18s,box-shadow .18s;display:flex;overflow:hidden}.ac-mcp-item[data-v-da62934c]:hover{border-color:var(--ui-line-strong,#00000024)}.ac-mcp-item.is-picked[data-v-da62934c]{border-color:var(--ui-accent-line,#0891b247);background:linear-gradient(180deg, var(--ui-accent-soft,#0891b20d), var(--ui-panel,#fff) 42%)}.ac-mcp-item.is-open[data-v-da62934c]{border-color:var(--ui-line-strong,#00000024)}.ac-mcp-card[data-v-da62934c]{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:0;align-items:center;gap:8px;width:100%;min-width:0;padding:8px 10px;display:flex;overflow:hidden}.ac-pick-box[data-v-da62934c]{border:1px solid var(--ui-line-strong,#0000002e);background:var(--ui-panel,#fff);color:#0000;border-radius:6px;flex:none;place-items:center;width:20px;height:20px;padding:0;transition:background .15s,border-color .15s,color .15s;display:grid}.ac-pick-box[data-v-da62934c]:hover{border-color:var(--ui-ink-dim,#6b7280)}.ac-pick-box[aria-pressed=true][data-v-da62934c]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent,#0891b2);color:#fff}.ac-mcp-main[data-v-da62934c]{text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:9px;min-width:0;padding:0;display:flex}.ac-mcp-tools[data-v-da62934c]{border:0;border-top:1px solid var(--ui-line-soft,#0000000f);background:var(--ui-veil,#00000004);border-radius:0;flex-direction:column;gap:4px;margin:0;padding:8px 10px 10px;display:flex;overflow:hidden}.ac-tool-list[data-v-da62934c]{border-left:1px solid var(--ui-line,#0000001a);flex-direction:column;gap:2px;margin-left:2px;padding-left:10px;display:flex}.ac-tool-row[data-v-da62934c]{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:flex-start;gap:8px;width:100%;min-width:0;padding:6px 8px;transition:background .14s;display:flex}.ac-tool-row[data-v-da62934c]:hover{background:var(--ui-hover,#0000000d)}.ac-tool-row.is-picked[data-v-da62934c]{background:var(--ui-hover,#0000000f)}.ac-tool-radio[data-v-da62934c]{border:1.5px solid var(--ui-line-strong,#00000038);background:var(--ui-panel,#fff);color:#0000;border-radius:50%;flex:none;place-items:center;width:14px;height:14px;margin-top:2px;transition:background .14s,border-color .14s,color .14s;display:grid}.ac-tool-row:hover .ac-tool-radio[data-v-da62934c]{border-color:var(--ui-ink-dim,#6b7280)}.ac-tool-row.is-picked .ac-tool-radio[data-v-da62934c]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent,#0891b2);color:#fff}.ac-tool-row .ac-tool-copy[data-v-da62934c]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-tool-row .ac-tool-name[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 11.5px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-tool-row .ac-tool-desc[data-v-da62934c]{-webkit-line-clamp:2;color:var(--ui-ink-mute,#9ca3af);-webkit-box-orient:vertical;font-size:10.5px;line-height:1.5;display:-webkit-box;overflow:hidden}.ac-mcp-tools-empty[data-v-da62934c]{color:var(--ui-ink-mute,#9ca3af);padding:8px 5px;font-size:11px;line-height:1.5}.ac-panel-note[data-v-da62934c]{color:var(--ui-ink-mute,#9ca3af);background:var(--ui-veil,#00000008);border-radius:8px;margin:10px 0 2px;padding:8px 10px;font-size:11px;line-height:1.5}.ac-skill-panel[data-v-da62934c]{padding-bottom:8px}.ac-panel-foot[data-v-da62934c]{border-top:1px solid var(--ui-line-soft,#0000000f);background:var(--ui-overlay,#fffffff0);flex:none;align-items:center;gap:8px;min-height:36px;padding:6px 10px;display:flex}.ac-model-foot .ac-selection-summary[data-v-da62934c]{justify-content:flex-start}.ac-menu-hint[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--ui-ink-dim,#919191);font-size:11px;overflow:hidden}.ac-mode-item[data-v-da62934c]{flex-direction:column;align-items:stretch;gap:2px;width:100%;display:flex}.ac-mode-title[data-v-da62934c]{align-items:center;gap:6px;width:100%;min-width:0;display:flex}.ac-mode-name[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#18202b);font-size:13px;overflow:hidden}.ac-mode-item[aria-checked=true] .ac-mode-name[data-v-da62934c]{font-weight:600}.ac-mode-check[data-v-da62934c]{color:var(--ui-ink,#18202b);margin-left:auto}.ac-mode-desc[data-v-da62934c]{color:var(--ui-ink-dim,#6b7280);white-space:normal;word-break:break-word;font-size:11px;line-height:1.45;display:block}.ac-menu-empty[data-v-da62934c]{color:var(--ui-ink-dim,#919191);margin:8px 10px;font-size:12px}.ac-composer[data-v-da62934c]{flex:none;padding:4px 8px 12px;position:relative}.ac-input-box[data-v-da62934c]{border:1px solid var(--ui-line,#363636);background:var(--ui-overlay-solid,#212121);border-radius:16px;flex-direction:column;gap:8px;padding:8px;display:flex;position:relative}@container (width<=300px){.ac-goal-bar[data-v-da62934c]{display:none}}@container (width<=250px){.ac-goal-flag[data-v-da62934c]{display:none}}@media (prefers-reduced-motion:reduce){.ac-queue-pause[data-v-da62934c]{transition:none}}.ac-icon-btn[data-v-da62934c]{background:var(--ui-veil,#0000000a);color:var(--ui-ink-dim,#6b7280);flex:none;position:relative}.ac-icon-btn[data-v-da62934c]:hover{background:var(--ui-hover,#0000000f);color:var(--ui-ink,#111827)}.ac-icon-btn[data-v-da62934c]:active{transform:scale(.96)}.ac-icon-btn[aria-expanded=true][data-v-da62934c]{background:var(--ui-accent-soft,#0891b21a);color:var(--ui-accent-hover,#0e7490)}.ac-option-title[data-v-da62934c]{min-width:0;color:var(--ui-ink,#111827);flex-wrap:nowrap;align-items:center;gap:6px;font-size:13px;font-weight:600;line-height:1.35;display:flex}.ac-option-label[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ac-option-title[data-v-da62934c]>:last-child:not(.ac-option-label){white-space:nowrap;flex:none}.ac-option-desc[data-v-da62934c]{color:var(--ui-ink-dim,#6b7280);white-space:normal;word-break:break-word;margin-top:3px;font-size:12px;line-height:1.45;display:block}.ac-dot-sep[data-v-da62934c]{background:var(--ui-line,#00000014);flex:none;width:1px;height:8px}.ac-check-mark[data-v-da62934c]{width:16px;height:16px;color:var(--ui-ink,#18202b);flex:none;place-items:center;display:grid}.ac-split[data-v-da62934c]{flex:1;min-height:0;display:flex;overflow:hidden}.ac-view-stack[data-v-da62934c]{flex:1;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);min-height:0;display:grid;position:relative}.ac-view-pane[data-v-da62934c]{opacity:0;visibility:hidden;pointer-events:none;flex:1;grid-area:1/1;height:100%;min-height:0;max-height:100%;transition:none;overflow:hidden}.ac-view-pane.is-active[data-v-da62934c]{opacity:1;visibility:visible;pointer-events:auto}@media (prefers-reduced-motion:reduce){.ac-view-pane[data-v-da62934c]{transition:none}}.ac-split-rail[data-v-da62934c]{background:var(--ui-veil,#00000006);flex-direction:column;flex:none;width:168px;min-height:0;padding:6px 0 6px 6px;display:flex}.ac-rail-label[data-v-da62934c]{letter-spacing:.04em;color:var(--ui-ink-mute,#9ca3af);flex:none;padding:4px 8px 6px;font-size:10px;font-weight:700}.ac-rail-scroll[data-v-da62934c]{overscroll-behavior:contain;flex:1;min-height:0}.ac-rail-scroll[data-v-da62934c] .ac-rail-scroll-body{flex-direction:column;gap:2px;padding:0 6px 4px 0;display:flex}.ac-rail-icon[data-v-da62934c],.ac-rail-brand[data-v-da62934c]{flex:none;place-items:center;width:14px;height:14px;display:grid}.ac-rail-brand[data-v-da62934c] svg{width:14px;height:14px}.ac-rail-brand[data-v-da62934c] img{object-fit:contain;border-radius:3px;width:14px;height:14px;display:block}.ac-rail-name[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;text-align:left;flex:1;min-width:0;overflow:hidden}.ac-rail-count[data-v-da62934c]{color:var(--ui-ink-mute,#9ca3af);flex:none;font-size:10px;font-weight:600}.ac-split-rail button[data-v-da62934c]{width:100%;color:var(--ui-ink-dim,#6b7280);border-radius:8px;justify-content:flex-start;gap:8px;padding-inline:8px;font-size:12.5px}.ac-split-rail button[data-v-da62934c]:hover{color:var(--ui-ink,#18202b)}.ac-split-rail button[aria-pressed=true][data-v-da62934c]{background:var(--ui-hover,#0000000f);color:var(--ui-ink,#18202b);box-shadow:none;font-weight:600}.ac-split-rail button[aria-pressed=true][data-v-da62934c]:hover{background:var(--ui-hover-strong,#00000017)}.ac-split-main[data-v-da62934c]{flex-direction:column;flex:1;min-width:0;min-height:0;padding-left:8px;display:flex;overflow:hidden}.ac-split-scroll[data-v-da62934c] .ac-split-scroll-body{flex-direction:column;min-height:100%;display:flex}.ac-split-scroll .ac-empty-state[data-v-da62934c]{flex:1;height:auto;min-height:0}.ac-panel .ac-empty-state[data-v-da62934c]{min-height:190px;color:var(--ui-ink-mute,#9ca3af);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:20px;display:flex}.ac-panel .ac-empty-state[data-v-da62934c]:last-child,.ac-panel-scroll[data-v-da62934c] .ac-panel-scroll-body>.ac-empty-state,.ac-mcp-scroll[data-v-da62934c] .ac-mcp-scroll-body>.ac-empty-state,.ac-menu-scroll[data-v-da62934c] .ac-model-scroll-body>div>.ac-empty-state{flex:1;min-height:0}.ac-menu-scroll[data-v-da62934c] .ac-model-scroll-body>div{flex-direction:column;flex:1;min-height:0;display:flex}.ac-panel .ac-empty-icon[data-v-da62934c]{background:var(--ui-veil,#0000000a);width:38px;height:38px;color:var(--ui-ink-mute,#9ca3af);border-radius:12px;place-items:center;margin-bottom:2px;display:grid}.ac-panel .ac-empty-title[data-v-da62934c]{color:var(--ui-ink-dim,#6b7280);font-size:12px;font-weight:600}.ac-panel .ac-empty-desc[data-v-da62934c]{font-size:11px}.ac-split-scroll[data-v-da62934c]{overscroll-behavior:contain;flex:1;min-width:0;max-width:100%;height:auto;min-height:0;max-height:100%;overflow:hidden}.ac-split-scroll[data-v-da62934c] .ac-split-scroll-body{padding:6px 6px 10px 10px}.ac-split-scroll .ac-model-row-list[data-v-da62934c],.ac-split-scroll .ac-skill-grid--split[data-v-da62934c]{padding-top:8px;padding-bottom:2px}.ac-tile-top[data-v-da62934c]{align-items:flex-start;gap:4px;display:flex}.ac-server-icon[data-v-da62934c]{background:var(--ui-accent-soft,#0891b21a);width:32px;height:32px;color:var(--ui-accent-hover,#0e7490);border-radius:10px;flex:none;place-items:center;display:grid}.ac-server-icon[data-v-da62934c] svg{width:16px;height:16px}.ac-server-copy[data-v-da62934c]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-server-name[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 12.5px/1.35 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-server-desc[data-v-da62934c]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-mute,#9ca3af);font-size:11px;line-height:1.35;overflow:hidden}.ac-server-side[data-v-da62934c]{flex:none;align-items:center;gap:4px;padding-left:4px;display:flex}.ac-status[data-v-da62934c]{background:var(--ui-veil,#0000000b);height:20px;color:var(--ui-ink-dim,#5b6472);white-space:nowrap;border-radius:999px;align-items:center;gap:5px;padding:0 7px;font-size:10px;font-weight:600;display:inline-flex}.ac-status[data-v-da62934c]:before{content:"";background:var(--ui-ink-mute,#9ca3af);border-radius:50%;width:4px;height:4px}.ac-status.is-ok[data-v-da62934c]{background:var(--ui-accent-soft,#0891b217);color:var(--ui-accent-hover,#0e7490)}.ac-status.is-ok[data-v-da62934c]:before{background:var(--ui-accent,#0891b2)}.ac-status.is-bad[data-v-da62934c]{background:var(--ui-warn-soft,#f59e0b24);color:var(--ui-warn,#b45309)}.ac-status.is-bad[data-v-da62934c]:before{background:var(--ui-warn,#b45309)}.ac-expand-btn[data-v-da62934c]{width:18px;height:18px;color:var(--ui-ink-mute,#9ca3af);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;place-items:center;display:grid}.ac-expand-btn[data-v-da62934c]:hover{background:var(--ui-veil,#0000000a);color:var(--ui-ink,#111827)}.ac-expand-btn[data-v-da62934c] svg{transition:transform .18s var(--ui-ease-back,cubic-bezier(.34, 1.56, .64, 1))}.ac-expand-btn[data-v-da62934c] svg.is-open{transform:rotate(180deg)}.ac-selection-summary[data-v-da62934c]{min-width:0;color:var(--ui-ink-dim,#6b7280);flex:1;align-items:center;gap:5px;font-size:11px;line-height:1.35;display:flex}.ac-selected-number[data-v-da62934c]{color:var(--ui-ink,#111827);font-size:12px;font-weight:700}@container (width<=469px){.ac-panel-head-top[data-v-da62934c]{grid-template-columns:minmax(0,1fr) auto}}@container (width<=540px){.ac-detect-label[data-v-da62934c]{display:none}}@container (width<=386px){.ac-panel-tools[data-v-da62934c]{gap:4px}.ac-panel-head[data-v-da62934c]{padding-left:10px;padding-right:10px}}@container (width<=460px){.ac-split[data-v-da62934c]{flex-direction:column}.ac-split-rail[data-v-da62934c]{border-right:0;border-bottom:1px solid var(--ui-line-soft,#0000000f);flex:none;width:auto}.ac-rail-label[data-v-da62934c]{display:none}.ac-rail-scroll[data-v-da62934c]{flex-direction:row;gap:5px;padding:7px 10px;overflow:auto hidden}.ac-rail-icon[data-v-da62934c],.ac-rail-brand[data-v-da62934c],.ac-rail-brand[data-v-da62934c] img,.ac-rail-brand[data-v-da62934c] svg{width:13px;height:13px}.ac-rail-count[data-v-da62934c]{display:none}.ac-split-scroll[data-v-da62934c]{padding:9px 10px 10px}.ac-skill-grid--split[data-v-da62934c]{grid-template-columns:repeat(auto-fill,minmax(min(100%,154px),1fr))}}@container (width<=360px){.ac-panel-head-top[data-v-da62934c]{gap:5px}.ac-panel-title[data-v-da62934c]{font-size:14px}.ac-panel-count[data-v-da62934c]{display:none}.ac-skill-grid[data-v-da62934c],.ac-model-grid[data-v-da62934c],.ac-skill-grid--split[data-v-da62934c]{grid-template-columns:1fr}.ac-mcp-card[data-v-da62934c]{gap:5px;padding:7px 6px}.ac-mcp-card .ac-server-icon[data-v-da62934c]{display:none}.ac-panel-foot[data-v-da62934c]{padding-left:10px;padding-right:10px}}.ac-view-tabs[data-v-da62934c]{background:var(--ui-hover-soft,#0000000d);border-radius:999px;flex:none;align-items:center;gap:2px;padding:2px;display:inline-flex}.ac-view-tab[data-v-da62934c]{appearance:none;color:var(--ui-ink-dim,#6b7280);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:999px;margin:0;padding:3px 12px;font-size:12px;font-weight:600;line-height:20px;transition:color .12s ease-out,background-color .12s ease-out}.ac-view-tab[data-v-da62934c]:hover{color:var(--ui-ink,#18202b)}.ac-view-tab.is-active[data-v-da62934c]{background:var(--ui-panel,#fff);color:var(--ui-ink,#18202b);box-shadow:0 1px 3px #0f172a1f, 0 0 0 1px var(--ui-line,#e2e5ea)}.ac-view-tab[data-v-da62934c]:focus-visible{outline:2px solid color-mix(in srgb, var(--ui-accent,#0891b2) 60%, transparent);outline-offset:1px}.ac-editor .prose-mirror-editor .ProseMirror,.ac-editor .prose-mirror-editor>div:first-child{min-height:64px}.ac-editor .prose-mirror-editor .ProseMirror{font-size:14px;line-height:24px}.prose-mirror-editor .ac-tag{background:var(--ui-hover-strong,#0000001a);vertical-align:bottom;-webkit-user-select:none;user-select:none;cursor:pointer;border-radius:6px;align-items:center;gap:4px;max-width:200px;height:22px;margin:0 2px;padding:0 6px 0 4px;display:inline-flex}.prose-mirror-editor .ac-tag.resource-node{border-bottom:0;height:22px;padding:0 6px 0 4px}.prose-mirror-editor .ac-tag .ac-tag-icon{width:16px;height:16px;color:var(--ui-ink-dim,#919191);border-radius:4px;flex:none;place-items:center;display:grid;position:relative;overflow:hidden}.prose-mirror-editor .ac-tag .ac-tag-icon svg{width:13px;height:13px}.prose-mirror-editor .ac-tag .ac-tag-thumb{border-radius:inherit;pointer-events:none;background-position:50%;background-repeat:no-repeat;background-size:cover;position:absolute;inset:0}.prose-mirror-editor .ac-tag .ac-tag-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ui-ink,#f7f7f7);font-size:12px;font-weight:500;line-height:1;overflow:hidden}.prose-mirror-editor .ProseMirror-selectednode.ac-tag,.prose-mirror-editor .ac-tag.resource-node-selected{background:var(--ui-accent,#0891b2)}.prose-mirror-editor .ProseMirror-selectednode.ac-tag .ac-tag-label,.prose-mirror-editor .ac-tag.resource-node-selected .ac-tag-label,.prose-mirror-editor .ProseMirror-selectednode.ac-tag .ac-tag-icon,.prose-mirror-editor .ac-tag.resource-node-selected .ac-tag-icon{color:var(--ui-on-accent,#fff)}.mention-menu .ac-mrow{align-items:center;gap:8px;min-width:0;display:flex}.mention-menu .ac-mrow-icon{background:var(--ui-chip,#ffffff1a);width:24px;height:24px;color:var(--ui-ink,#f7f7f7);border-radius:6px;flex:none;place-items:center;display:grid;position:relative;overflow:hidden}.mention-menu .ac-mrow-icon svg{width:14px;height:14px}.mention-menu .ac-mrow-glyph{place-items:center;display:grid}.mention-menu .ac-mrow-thumb{border-radius:inherit;background-position:50%;background-repeat:no-repeat;background-size:cover;position:absolute;inset:0}.mention-menu .ac-mrow-text{flex-direction:column;flex:1;min-width:0;display:flex}.mention-menu .ac-mrow-name{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#f7f7f7);font-size:13px;line-height:18px;overflow:hidden}.mention-menu .ac-mrow-hint{opacity:0;text-overflow:ellipsis;white-space:nowrap;max-height:0;color:var(--ui-ink-dim,#919191);font-size:11px;line-height:16px;transition:max-height .18s,opacity .18s;overflow:hidden}.mention-menu .menu-item:hover .ac-mrow-hint,.mention-menu .menu-item.active .ac-mrow-hint{opacity:1;max-height:16px}@media (prefers-reduced-motion:reduce){.mention-menu .ac-mrow-hint{transition:none}}.ac-root[data-v-dc8c31bd]{height:100%;min-height:0;color:var(--ui-ink,#f7f7f7);--ac-expand-max-height:min(360px, 50vh);flex-direction:column;display:flex;position:relative}.ac-onboard[data-v-dc8c31bd]{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.ac-onboard strong[data-v-dc8c31bd]{font-size:15px}.ac-onboard p[data-v-dc8c31bd]{color:var(--ui-ink-dim,#919191);margin:0;font-size:13px}.ac-onboard-icon[data-v-dc8c31bd]{color:var(--ui-accent,#0891b2)}.ac-onboard-path[data-v-dc8c31bd]{opacity:.75;word-break:break-all;font-size:12px}.ac-menu-head[data-v-771dc089]{flex:none;align-items:center;gap:8px;padding:8px 10px 6px;display:flex}.ac-menu-head-title[data-v-771dc089]{color:var(--ui-ink,#f7f7f7);font-size:12px;font-weight:600}.ac-menu-head-count[data-v-771dc089]{background:var(--ui-chip,#ffffff1a);text-align:center;min-width:18px;color:var(--ui-ink-dim,#919191);border-radius:999px;padding:0 5px;font-size:11px;line-height:16px}.ac-menu-head-spacer[data-v-771dc089]{flex:1;min-width:4px}.ac-menu-head-btn[data-v-771dc089]{border:1px solid var(--ui-line,#363636);height:22px;color:var(--ui-ink-dim,#919191);cursor:pointer;background:0 0;border-radius:999px;flex:none;align-items:center;gap:4px;padding:0 8px;font-size:11px;display:inline-flex}.ac-menu-head-btn[data-v-771dc089]:hover:not(:disabled){background:var(--ui-hover,#ffffff1a);color:var(--ui-ink,#f7f7f7)}.ac-menu-head-btn[data-v-771dc089]:disabled{opacity:.6;cursor:default}.ac-menu-card-badge[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;background:var(--ui-accent-soft,#0891b21f);max-width:96px;color:var(--ui-accent-hover,#0e7490);border-radius:999px;flex:none;margin-top:3px;padding:1px 6px;font-size:11px;line-height:15px;overflow:hidden}.ac-menu-card-badge.is-bad[data-v-771dc089]{background:var(--ui-danger-veil,#ef44441a);color:var(--ui-danger,#ef4444)}.ac-menu-scroll[data-v-771dc089]{flex-direction:column;flex:1;gap:2px;min-height:0;padding:0;display:flex;overflow:visible}.ac-menu-card[data-v-771dc089]{background:var(--ui-veil,#ffffff0a);text-align:left;cursor:pointer;border:1px solid #0000;border-radius:10px;align-items:flex-start;gap:10px;width:100%;padding:9px 10px;transition:background .14s,border-color .14s;display:flex}.ac-menu-card[data-v-771dc089]:hover{background:var(--ui-hover,#ffffff1a)}.ac-menu-card[aria-selected=true][data-v-771dc089]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent-soft,#0891b21f)}.ac-menu-card-icon[data-v-771dc089]{background:var(--ui-chip,#ffffff1a);width:26px;height:26px;color:var(--ui-ink-dim,#919191);border-radius:8px;flex:none;place-items:center;display:grid}.ac-menu-card-icon[data-v-771dc089] svg{width:15px;height:15px}.ac-menu-card[aria-selected=true] .ac-menu-card-icon[data-v-771dc089]{color:var(--ui-accent,#0891b2)}.ac-menu-card-text[data-v-771dc089]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-menu-card-name[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#f7f7f7);font-size:13px;overflow:hidden}.ac-menu-card[aria-selected=true] .ac-menu-card-name[data-v-771dc089]{color:var(--ui-accent,#0891b2);font-weight:600}.ac-menu-card-hint[data-v-771dc089]{-webkit-line-clamp:2;color:var(--ui-ink-dim,#919191);-webkit-box-orient:vertical;font-size:11px;line-height:1.5;display:-webkit-box;overflow:hidden}.ac-menu-card-check[data-v-771dc089]{color:var(--ui-accent,#0891b2);flex:none;margin-top:5px}.ac-panel[data-v-771dc089]{flex-direction:column;flex:1;width:100%;min-height:min(460px,100dvh - 200px);padding:0;font:13px/1.5 -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;display:flex;container-type:inline-size}.ac-panel.is-split[data-v-771dc089]{min-height:min(460px,100dvh - 200px)}.ac-panel-head[data-v-771dc089]{flex-direction:column;flex:none;gap:10px;padding:12px 12px 10px;display:flex}.ac-panel-head-top[data-v-771dc089]{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;display:grid}.ac-panel-head-top--review[data-v-771dc089]{grid-template-columns:minmax(0,1fr) auto}.ac-panel-heading>svg[data-v-771dc089]{color:var(--ui-ink-dim,#6b7280);flex:none}.is-auto-auth[data-v-771dc089]{color:var(--ui-danger,#ef4444)!important}.ac-panel-heading[data-v-771dc089]{flex:1;align-items:center;gap:7px;min-width:0;display:flex}.ac-panel-title[data-v-771dc089]{letter-spacing:-.01em;white-space:nowrap;color:var(--ui-ink,#111827);margin:0;font-size:15px;font-weight:700;line-height:1.3}.ac-panel-count[data-v-771dc089]{background:var(--ui-veil,#0000000a);min-width:20px;height:18px;color:var(--ui-ink-dim,#6b7280);border-radius:999px;justify-content:center;align-items:center;padding:0 6px;font-size:10px;font-weight:700;line-height:1;display:inline-flex}.ac-panel-lede[data-v-771dc089]{color:var(--ui-ink-dim,#6b7280);margin:0;font-size:12px;line-height:1.45}.ac-review-state[data-v-771dc089]{background:var(--ui-accent-soft,#0891b21a);height:18px;color:var(--ui-accent-hover,#0e7490);white-space:nowrap;border-radius:999px;flex:none;align-items:center;gap:4px;padding:0 6px;font-size:10px;font-weight:600;display:inline-flex}.ac-panel-tools[data-v-771dc089]{flex:none;justify-content:flex-end;align-items:center;gap:5px;display:flex}.ac-panel-body[data-v-771dc089]{flex-direction:column;flex:1;min-height:0;display:flex;position:relative;overflow:hidden}.ac-mcp-panel .ac-selection-summary[data-v-771dc089]{flex-wrap:wrap;row-gap:2px}.ac-panel-scroll[data-v-771dc089]{flex:1;min-height:0}.ac-panel-scroll[data-v-771dc089] .ac-panel-scroll-body,.ac-review-body[data-v-771dc089]{padding:2px 12px 12px}.ac-review-list[data-v-771dc089]{flex-direction:column;gap:8px;display:flex}.ac-review-item[data-v-771dc089]{flex-direction:column;align-items:stretch;gap:0;width:100%;display:flex}.ac-review-item .ac-option-title[data-v-771dc089]{width:100%}.ac-review-item[aria-checked=true][data-v-771dc089]{background:var(--ui-hover,#0000000f)}.ac-review-item[aria-checked=true] .ac-option-label[data-v-771dc089]{color:var(--ui-ink,#111827)}.ac-option-icon[data-v-771dc089]{color:var(--ui-ink-dim,#6b7280);flex:none}.ac-review-item .ac-review-check[data-v-771dc089]{margin-left:auto}.ac-skill-grid[data-v-771dc089]{grid-template-columns:repeat(1,minmax(0,1fr));gap:8px;display:grid}.ac-skill-card[data-v-771dc089]{cursor:pointer;border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);text-align:left;border-radius:12px;align-items:center;gap:9px;width:100%;min-width:0;height:auto;min-height:72px;padding:8px;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s;display:flex}.ac-skill-card[data-v-771dc089]:focus-visible,.ac-skill-tile[data-v-771dc089]:focus-visible{outline:2px solid var(--ui-accent-ring,#0891b299);outline-offset:2px}.ac-skill-card[data-v-771dc089]:hover{background:var(--ui-hover-soft,#00000008);border-color:var(--ui-line,#0000001f);box-shadow:var(--ui-shadow-e1,0 2px 10px #0000000a);transform:translateY(-1px)}.ac-skill-thumb[data-v-771dc089]{width:54px;height:54px;color:var(--ui-primary-ink,#fffffff0);background:radial-gradient(circle at 78% 18%, var(--ui-primary-ink,#ffffff47), transparent 36%), linear-gradient(145deg, hsl(var(--cover-h1,208) 66% 54%), hsl(var(--cover-h2,250) 62% 40%));border-radius:10px;flex:none;place-items:center;display:grid;position:relative;overflow:hidden}.ac-skill-thumb[data-v-771dc089]:after{content:"";background:var(--ui-primary-ink,#ffffff1f);border-radius:50%;height:28px;position:absolute;inset:auto -8px -16px 12px;transform:rotate(-8deg)}.ac-skill-icon[data-v-771dc089]{z-index:1;place-items:center;display:grid;position:relative}.ac-skill-icon[data-v-771dc089] svg{width:23px;height:23px}.ac-skill-copy[data-v-771dc089]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-skill-name-row[data-v-771dc089]{align-items:center;gap:5px;min-width:0;display:flex}.ac-skill-name[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ui-ink,#111827);flex:1;font-size:12.5px;font-weight:600;line-height:1.35;overflow:hidden}.ac-skill-desc[data-v-771dc089]{-webkit-line-clamp:2;color:var(--ui-ink-dim,#6b7280);-webkit-box-orient:vertical;font-size:12px;line-height:1.4;display:-webkit-box;overflow:hidden}.ac-skill-meta[data-v-771dc089]{min-width:0;color:var(--ui-ink-mute,#9ca3af);white-space:nowrap;align-items:center;gap:5px;font-size:10.5px;display:flex;overflow:hidden}[aria-pressed=true]>.ac-check-mark[data-v-771dc089],[aria-pressed=true] .ac-skill-name-row>.ac-check-mark[data-v-771dc089],[aria-pressed=true] .ac-model-card-top>.ac-check-mark[data-v-771dc089],[aria-checked=true] .ac-model-card-top>.ac-check-mark[data-v-771dc089],[aria-checked=true] .ac-option-title>.ac-check-mark[data-v-771dc089],[aria-checked=true]>.ac-check-mark[data-v-771dc089],[aria-selected=true]>.ac-check-mark[data-v-771dc089],[aria-selected=true] .ac-model-card-top>.ac-check-mark[data-v-771dc089]{opacity:1}.ac-skill-grid--split[data-v-771dc089]{grid-template-columns:repeat(auto-fill,minmax(min(100%,176px),1fr))}.ac-skill-tile[data-v-771dc089]{cursor:pointer;border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);text-align:left;border-radius:12px;flex-direction:column;min-width:0;height:auto;min-height:150px;transition:border-color .18s,box-shadow .18s,transform .18s;display:flex;overflow:hidden}.ac-skill-tile[data-v-771dc089]:hover{border-color:var(--ui-line,#0000001f);box-shadow:var(--ui-shadow-e1,0 2px 10px #0000000a);transform:translateY(-1px)}.ac-skill-tile[aria-pressed=true][data-v-771dc089]{border-color:var(--ui-accent-line,#0891b247);box-shadow:0 0 0 2px color-mix(in srgb, var(--ui-accent,#0891b2) 7%, transparent)}.ac-skill-cover[data-v-771dc089]{width:100%;height:60px;color:var(--ui-primary-ink,#fffffff0);background:radial-gradient(circle at 82% 16%, var(--ui-primary-ink,#ffffff4d), transparent 34%), linear-gradient(145deg, hsl(var(--cover-h1,208) 66% 54%), hsl(var(--cover-h2,250) 62% 40%));place-items:center;display:grid;position:relative;overflow:hidden}.ac-skill-cover[data-v-771dc089]:after{content:"";background:var(--ui-primary-ink,#ffffff1f);border-radius:50%;height:40px;position:absolute;inset:auto -20px -18px 16px;transform:rotate(-7deg)}.ac-skill-cover .ac-skill-icon[data-v-771dc089] svg{width:26px;height:26px}.ac-skill-tile-body[data-v-771dc089]{flex-direction:column;gap:2px;padding:8px 9px 9px;display:flex}.ac-tile-top .ac-skill-name[data-v-771dc089]{white-space:normal}.ac-skill-tile .ac-skill-name[data-v-771dc089]{font-size:12px}.ac-skill-tile .ac-skill-desc[data-v-771dc089]{font-size:11px}.ac-skill-tile .ac-skill-meta[data-v-771dc089]{font-size:10px}.ac-model-grid[data-v-771dc089]{grid-template-columns:repeat(1,minmax(0,1fr));grid-auto-rows:min-content;gap:8px;padding-right:0;display:grid}.ac-model-brand[data-v-771dc089]{background:var(--ui-panel,#fff);width:35px;height:35px;color:var(--ui-ink,#374151);box-shadow:inset 0 0 0 1px var(--ui-line-soft,#0000000d);border-radius:9px;flex:none;place-items:center;display:grid}.ac-model-brand[data-v-771dc089] svg{width:22px;height:22px}.ac-model-brand[data-v-771dc089] img{object-fit:contain;border-radius:6px;width:22px;height:22px;display:block}.ac-model-copy[data-v-771dc089]{text-align:left;flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-model-id[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 12.5px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-model-meta[data-v-771dc089]{white-space:nowrap;min-width:0;color:var(--ui-ink-mute,#9ca3af);align-items:center;gap:5px;font-size:10.5px;display:flex;overflow:hidden}.ac-model-line[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.ac-model-tip[data-v-771dc089]{white-space:normal;flex-direction:column;gap:2px;max-width:280px;display:flex}.ac-model-tip-desc[data-v-771dc089]{opacity:.78;word-break:break-word;line-height:1.4}.ac-model-card-top[data-v-771dc089]{align-items:flex-start;gap:4px;min-width:0;display:flex}.ac-model-card-top .ac-model-id[data-v-771dc089]{flex:1}.ac-model-row-list[data-v-771dc089]{flex-direction:column;gap:6px;display:flex}.ac-model-badges[data-v-771dc089]{flex:none;align-items:center;gap:4px;display:flex}.ac-menu-scroll[data-v-771dc089] .ac-model-scroll-body{padding:4px 12px 12px}.ac-model-row-list[data-v-771dc089]{gap:2px}.ac-model-row-list button[data-v-771dc089],.ac-model-grid button[data-v-771dc089]{text-align:left;border-radius:10px;justify-content:flex-start;gap:10px;width:100%;min-width:0;height:auto;min-height:0;padding:8px 10px}.ac-model-row-list button[data-v-771dc089]:hover,.ac-model-grid button[data-v-771dc089]:hover,.ac-model-row-list button[aria-selected=true][data-v-771dc089],.ac-model-grid button[aria-selected=true][data-v-771dc089]{background:var(--ui-hover,#0000000f)}.ac-model-entry[data-v-771dc089]{text-align:left;border-radius:10px;align-items:center;gap:10px;min-width:0;padding:8px 10px;transition:background .12s;display:flex}.ac-model-entry[data-v-771dc089]:hover,.ac-model-entry[aria-selected=true][data-v-771dc089]{background:var(--ui-hover,#0000000f)}.ac-model-entry .ac-model-hit[data-v-771dc089],.ac-model-entry .ac-model-hit[data-v-771dc089]:hover,.ac-model-entry .ac-model-hit[aria-selected=true][data-v-771dc089]{background:0 0;width:100%;min-width:0;height:auto}.ac-model-entry-sub[data-v-771dc089]{cursor:default;width:100%;font-weight:400}.ac-model-entry-sub .ac-model-copy[data-v-771dc089]{flex:1;min-width:0}.ac-model-account-item[data-v-771dc089]{justify-content:space-between}.ac-model-account-item-name[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ac-model-panel.is-split .ac-menu-scroll[data-v-771dc089]{min-height:0}.ac-model-panel.is-split .ac-menu-scroll[data-v-771dc089] .ac-model-scroll-body{flex:1;min-height:0;padding:0;overflow:hidden}.ac-model-panel.is-split .ac-split[data-v-771dc089]{min-height:0}.ac-mcp-list[data-v-771dc089]{flex-direction:column;gap:6px;display:flex}.ac-mcp-item[data-v-771dc089]{border:1px solid var(--ui-line,#00000014);background:var(--ui-panel,#fff);border-radius:10px;flex-direction:column;min-width:0;transition:border-color .18s,background .18s,box-shadow .18s;display:flex;overflow:hidden}.ac-mcp-item[data-v-771dc089]:hover{border-color:var(--ui-line-strong,#00000024)}.ac-mcp-item.is-picked[data-v-771dc089]{border-color:var(--ui-accent-line,#0891b247);background:linear-gradient(180deg, var(--ui-accent-soft,#0891b20d), var(--ui-panel,#fff) 42%)}.ac-mcp-item.is-open[data-v-771dc089]{border-color:var(--ui-line-strong,#00000024)}.ac-mcp-card[data-v-771dc089]{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:0;align-items:center;gap:8px;width:100%;min-width:0;padding:8px 10px;display:flex;overflow:hidden}.ac-pick-box[data-v-771dc089]{border:1px solid var(--ui-line-strong,#0000002e);background:var(--ui-panel,#fff);color:#0000;border-radius:6px;flex:none;place-items:center;width:20px;height:20px;padding:0;transition:background .15s,border-color .15s,color .15s;display:grid}.ac-pick-box[data-v-771dc089]:hover{border-color:var(--ui-ink-dim,#6b7280)}.ac-pick-box[aria-pressed=true][data-v-771dc089]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent,#0891b2);color:#fff}.ac-mcp-main[data-v-771dc089]{text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:9px;min-width:0;padding:0;display:flex}.ac-mcp-tools[data-v-771dc089]{border:0;border-top:1px solid var(--ui-line-soft,#0000000f);background:var(--ui-veil,#00000004);border-radius:0;flex-direction:column;gap:4px;margin:0;padding:8px 10px 10px;display:flex;overflow:hidden}.ac-tool-list[data-v-771dc089]{border-left:1px solid var(--ui-line,#0000001a);flex-direction:column;gap:2px;margin-left:2px;padding-left:10px;display:flex}.ac-tool-row[data-v-771dc089]{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:flex-start;gap:8px;width:100%;min-width:0;padding:6px 8px;transition:background .14s;display:flex}.ac-tool-row[data-v-771dc089]:hover{background:var(--ui-hover,#0000000d)}.ac-tool-row.is-picked[data-v-771dc089]{background:var(--ui-hover,#0000000f)}.ac-tool-radio[data-v-771dc089]{border:1.5px solid var(--ui-line-strong,#00000038);background:var(--ui-panel,#fff);color:#0000;border-radius:50%;flex:none;place-items:center;width:14px;height:14px;margin-top:2px;transition:background .14s,border-color .14s,color .14s;display:grid}.ac-tool-row:hover .ac-tool-radio[data-v-771dc089]{border-color:var(--ui-ink-dim,#6b7280)}.ac-tool-row.is-picked .ac-tool-radio[data-v-771dc089]{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent,#0891b2);color:#fff}.ac-tool-row .ac-tool-copy[data-v-771dc089]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-tool-row .ac-tool-name[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 11.5px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-tool-row .ac-tool-desc[data-v-771dc089]{-webkit-line-clamp:2;color:var(--ui-ink-mute,#9ca3af);-webkit-box-orient:vertical;font-size:10.5px;line-height:1.5;display:-webkit-box;overflow:hidden}.ac-mcp-tools-empty[data-v-771dc089]{color:var(--ui-ink-mute,#9ca3af);padding:8px 5px;font-size:11px;line-height:1.5}.ac-panel-note[data-v-771dc089]{color:var(--ui-ink-mute,#9ca3af);background:var(--ui-veil,#00000008);border-radius:8px;margin:10px 0 2px;padding:8px 10px;font-size:11px;line-height:1.5}.ac-skill-panel[data-v-771dc089]{padding-bottom:8px}.ac-panel-foot[data-v-771dc089]{border-top:1px solid var(--ui-line-soft,#0000000f);background:var(--ui-overlay,#fffffff0);flex:none;align-items:center;gap:8px;min-height:36px;padding:6px 10px;display:flex}.ac-model-foot .ac-selection-summary[data-v-771dc089]{justify-content:flex-start}.ac-menu-hint[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--ui-ink-dim,#919191);font-size:11px;overflow:hidden}.ac-mode-item[data-v-771dc089]{flex-direction:column;align-items:stretch;gap:2px;width:100%;display:flex}.ac-mode-title[data-v-771dc089]{align-items:center;gap:6px;width:100%;min-width:0;display:flex}.ac-mode-name[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#18202b);font-size:13px;overflow:hidden}.ac-mode-item[aria-checked=true] .ac-mode-name[data-v-771dc089]{font-weight:600}.ac-mode-check[data-v-771dc089]{color:var(--ui-ink,#18202b);margin-left:auto}.ac-mode-desc[data-v-771dc089]{color:var(--ui-ink-dim,#6b7280);white-space:normal;word-break:break-word;font-size:11px;line-height:1.45;display:block}.ac-menu-empty[data-v-771dc089]{color:var(--ui-ink-dim,#919191);margin:8px 10px;font-size:12px}.ac-composer[data-v-771dc089]{flex:none;padding:4px 8px 12px;position:relative}.ac-input-box[data-v-771dc089]{border:1px solid var(--ui-line,#363636);background:var(--ui-overlay-solid,#212121);border-radius:16px;flex-direction:column;gap:8px;padding:8px;display:flex;position:relative}@container (width<=300px){.ac-goal-bar[data-v-771dc089]{display:none}}@container (width<=250px){.ac-goal-flag[data-v-771dc089]{display:none}}@media (prefers-reduced-motion:reduce){.ac-queue-pause[data-v-771dc089]{transition:none}}.ac-icon-btn[data-v-771dc089]{background:var(--ui-veil,#0000000a);color:var(--ui-ink-dim,#6b7280);flex:none;position:relative}.ac-icon-btn[data-v-771dc089]:hover{background:var(--ui-hover,#0000000f);color:var(--ui-ink,#111827)}.ac-icon-btn[data-v-771dc089]:active{transform:scale(.96)}.ac-icon-btn[aria-expanded=true][data-v-771dc089]{background:var(--ui-accent-soft,#0891b21a);color:var(--ui-accent-hover,#0e7490)}.ac-option-title[data-v-771dc089]{min-width:0;color:var(--ui-ink,#111827);flex-wrap:nowrap;align-items:center;gap:6px;font-size:13px;font-weight:600;line-height:1.35;display:flex}.ac-option-label[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ac-option-title[data-v-771dc089]>:last-child:not(.ac-option-label){white-space:nowrap;flex:none}.ac-option-desc[data-v-771dc089]{color:var(--ui-ink-dim,#6b7280);white-space:normal;word-break:break-word;margin-top:3px;font-size:12px;line-height:1.45;display:block}.ac-dot-sep[data-v-771dc089]{background:var(--ui-line,#00000014);flex:none;width:1px;height:8px}.ac-check-mark[data-v-771dc089]{width:16px;height:16px;color:var(--ui-ink,#18202b);flex:none;place-items:center;display:grid}.ac-split[data-v-771dc089]{flex:1;min-height:0;display:flex;overflow:hidden}.ac-view-stack[data-v-771dc089]{flex:1;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);min-height:0;display:grid;position:relative}.ac-view-pane[data-v-771dc089]{opacity:0;visibility:hidden;pointer-events:none;flex:1;grid-area:1/1;height:100%;min-height:0;max-height:100%;transition:none;overflow:hidden}.ac-view-pane.is-active[data-v-771dc089]{opacity:1;visibility:visible;pointer-events:auto}@media (prefers-reduced-motion:reduce){.ac-view-pane[data-v-771dc089]{transition:none}}.ac-split-rail[data-v-771dc089]{background:var(--ui-veil,#00000006);flex-direction:column;flex:none;width:168px;min-height:0;padding:6px 0 6px 6px;display:flex}.ac-rail-label[data-v-771dc089]{letter-spacing:.04em;color:var(--ui-ink-mute,#9ca3af);flex:none;padding:4px 8px 6px;font-size:10px;font-weight:700}.ac-rail-scroll[data-v-771dc089]{overscroll-behavior:contain;flex:1;min-height:0}.ac-rail-scroll[data-v-771dc089] .ac-rail-scroll-body{flex-direction:column;gap:2px;padding:0 6px 4px 0;display:flex}.ac-rail-icon[data-v-771dc089],.ac-rail-brand[data-v-771dc089]{flex:none;place-items:center;width:14px;height:14px;display:grid}.ac-rail-brand[data-v-771dc089] svg{width:14px;height:14px}.ac-rail-brand[data-v-771dc089] img{object-fit:contain;border-radius:3px;width:14px;height:14px;display:block}.ac-rail-name[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;text-align:left;flex:1;min-width:0;overflow:hidden}.ac-rail-count[data-v-771dc089]{color:var(--ui-ink-mute,#9ca3af);flex:none;font-size:10px;font-weight:600}.ac-split-rail button[data-v-771dc089]{width:100%;color:var(--ui-ink-dim,#6b7280);border-radius:8px;justify-content:flex-start;gap:8px;padding-inline:8px;font-size:12.5px}.ac-split-rail button[data-v-771dc089]:hover{color:var(--ui-ink,#18202b)}.ac-split-rail button[aria-pressed=true][data-v-771dc089]{background:var(--ui-hover,#0000000f);color:var(--ui-ink,#18202b);box-shadow:none;font-weight:600}.ac-split-rail button[aria-pressed=true][data-v-771dc089]:hover{background:var(--ui-hover-strong,#00000017)}.ac-split-main[data-v-771dc089]{flex-direction:column;flex:1;min-width:0;min-height:0;padding-left:8px;display:flex;overflow:hidden}.ac-split-scroll[data-v-771dc089] .ac-split-scroll-body{flex-direction:column;min-height:100%;display:flex}.ac-split-scroll .ac-empty-state[data-v-771dc089]{flex:1;height:auto;min-height:0}.ac-panel .ac-empty-state[data-v-771dc089]{min-height:190px;color:var(--ui-ink-mute,#9ca3af);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:20px;display:flex}.ac-panel .ac-empty-state[data-v-771dc089]:last-child,.ac-panel-scroll[data-v-771dc089] .ac-panel-scroll-body>.ac-empty-state,.ac-mcp-scroll[data-v-771dc089] .ac-mcp-scroll-body>.ac-empty-state,.ac-menu-scroll[data-v-771dc089] .ac-model-scroll-body>div>.ac-empty-state{flex:1;min-height:0}.ac-menu-scroll[data-v-771dc089] .ac-model-scroll-body>div{flex-direction:column;flex:1;min-height:0;display:flex}.ac-panel .ac-empty-icon[data-v-771dc089]{background:var(--ui-veil,#0000000a);width:38px;height:38px;color:var(--ui-ink-mute,#9ca3af);border-radius:12px;place-items:center;margin-bottom:2px;display:grid}.ac-panel .ac-empty-title[data-v-771dc089]{color:var(--ui-ink-dim,#6b7280);font-size:12px;font-weight:600}.ac-panel .ac-empty-desc[data-v-771dc089]{font-size:11px}.ac-split-scroll[data-v-771dc089]{overscroll-behavior:contain;flex:1;min-width:0;max-width:100%;height:auto;min-height:0;max-height:100%;overflow:hidden}.ac-split-scroll[data-v-771dc089] .ac-split-scroll-body{padding:6px 6px 10px 10px}.ac-split-scroll .ac-model-row-list[data-v-771dc089],.ac-split-scroll .ac-skill-grid--split[data-v-771dc089]{padding-top:8px;padding-bottom:2px}.ac-tile-top[data-v-771dc089]{align-items:flex-start;gap:4px;display:flex}.ac-server-icon[data-v-771dc089]{background:var(--ui-accent-soft,#0891b21a);width:32px;height:32px;color:var(--ui-accent-hover,#0e7490);border-radius:10px;flex:none;place-items:center;display:grid}.ac-server-icon[data-v-771dc089] svg{width:16px;height:16px}.ac-server-copy[data-v-771dc089]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ac-server-name[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#111827);font:600 12.5px/1.35 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.ac-server-desc[data-v-771dc089]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-mute,#9ca3af);font-size:11px;line-height:1.35;overflow:hidden}.ac-server-side[data-v-771dc089]{flex:none;align-items:center;gap:4px;padding-left:4px;display:flex}.ac-status[data-v-771dc089]{background:var(--ui-veil,#0000000b);height:20px;color:var(--ui-ink-dim,#5b6472);white-space:nowrap;border-radius:999px;align-items:center;gap:5px;padding:0 7px;font-size:10px;font-weight:600;display:inline-flex}.ac-status[data-v-771dc089]:before{content:"";background:var(--ui-ink-mute,#9ca3af);border-radius:50%;width:4px;height:4px}.ac-status.is-ok[data-v-771dc089]{background:var(--ui-accent-soft,#0891b217);color:var(--ui-accent-hover,#0e7490)}.ac-status.is-ok[data-v-771dc089]:before{background:var(--ui-accent,#0891b2)}.ac-status.is-bad[data-v-771dc089]{background:var(--ui-warn-soft,#f59e0b24);color:var(--ui-warn,#b45309)}.ac-status.is-bad[data-v-771dc089]:before{background:var(--ui-warn,#b45309)}.ac-expand-btn[data-v-771dc089]{width:18px;height:18px;color:var(--ui-ink-mute,#9ca3af);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;place-items:center;display:grid}.ac-expand-btn[data-v-771dc089]:hover{background:var(--ui-veil,#0000000a);color:var(--ui-ink,#111827)}.ac-expand-btn[data-v-771dc089] svg{transition:transform .18s var(--ui-ease-back,cubic-bezier(.34, 1.56, .64, 1))}.ac-expand-btn[data-v-771dc089] svg.is-open{transform:rotate(180deg)}.ac-selection-summary[data-v-771dc089]{min-width:0;color:var(--ui-ink-dim,#6b7280);flex:1;align-items:center;gap:5px;font-size:11px;line-height:1.35;display:flex}.ac-selected-number[data-v-771dc089]{color:var(--ui-ink,#111827);font-size:12px;font-weight:700}@container (width<=469px){.ac-panel-head-top[data-v-771dc089]{grid-template-columns:minmax(0,1fr) auto}}@container (width<=540px){.ac-detect-label[data-v-771dc089]{display:none}}@container (width<=386px){.ac-panel-tools[data-v-771dc089]{gap:4px}.ac-panel-head[data-v-771dc089]{padding-left:10px;padding-right:10px}}@container (width<=460px){.ac-split[data-v-771dc089]{flex-direction:column}.ac-split-rail[data-v-771dc089]{border-right:0;border-bottom:1px solid var(--ui-line-soft,#0000000f);flex:none;width:auto}.ac-rail-label[data-v-771dc089]{display:none}.ac-rail-scroll[data-v-771dc089]{flex-direction:row;gap:5px;padding:7px 10px;overflow:auto hidden}.ac-rail-icon[data-v-771dc089],.ac-rail-brand[data-v-771dc089],.ac-rail-brand[data-v-771dc089] img,.ac-rail-brand[data-v-771dc089] svg{width:13px;height:13px}.ac-rail-count[data-v-771dc089]{display:none}.ac-split-scroll[data-v-771dc089]{padding:9px 10px 10px}.ac-skill-grid--split[data-v-771dc089]{grid-template-columns:repeat(auto-fill,minmax(min(100%,154px),1fr))}}@container (width<=360px){.ac-panel-head-top[data-v-771dc089]{gap:5px}.ac-panel-title[data-v-771dc089]{font-size:14px}.ac-panel-count[data-v-771dc089]{display:none}.ac-skill-grid[data-v-771dc089],.ac-model-grid[data-v-771dc089],.ac-skill-grid--split[data-v-771dc089]{grid-template-columns:1fr}.ac-mcp-card[data-v-771dc089]{gap:5px;padding:7px 6px}.ac-mcp-card .ac-server-icon[data-v-771dc089]{display:none}.ac-panel-foot[data-v-771dc089]{padding-left:10px;padding-right:10px}}.ac-view-tabs[data-v-771dc089]{background:var(--ui-hover-soft,#0000000d);border-radius:999px;flex:none;align-items:center;gap:2px;padding:2px;display:inline-flex}.ac-view-tab[data-v-771dc089]{appearance:none;color:var(--ui-ink-dim,#6b7280);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:999px;margin:0;padding:3px 12px;font-size:12px;font-weight:600;line-height:20px;transition:color .12s ease-out,background-color .12s ease-out}.ac-view-tab[data-v-771dc089]:hover{color:var(--ui-ink,#18202b)}.ac-view-tab.is-active[data-v-771dc089]{background:var(--ui-panel,#fff);color:var(--ui-ink,#18202b);box-shadow:0 1px 3px #0f172a1f, 0 0 0 1px var(--ui-line,#e2e5ea)}.ac-view-tab[data-v-771dc089]:focus-visible{outline:2px solid color-mix(in srgb, var(--ui-accent,#0891b2) 60%, transparent);outline-offset:1px}.agent-settings-nav-anchor[data-v-c1cb0fd7]{display:none}.ap{flex-direction:column;flex:none;gap:14px;display:flex}.ap-count{color:var(--ui-ink-dim,#6b7280);font-size:10px}.ap-input{width:100%}.ap-hint{color:var(--ui-ink-dim,#6b7280);font-size:10px}.ap-empty{text-align:center;color:var(--ui-ink-dim,#6b7280);padding:16px 12px;font-size:12px}.ap-error{border:1px solid var(--ui-danger,#ef4444);color:var(--ui-danger,#ef4444);border-radius:8px;margin:0;padding:8px 10px;font-size:12px}.ap-tag{color:var(--ui-ink-dim,#6b7280);font-size:10px}.ap-quick{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.ap-picker{flex-direction:column;gap:8px;display:flex}.ap-picker-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-tagpool{border:1px solid var(--ui-line,#e2e5ea);background:var(--ui-panel-soft,#fff);border-radius:8px;flex-wrap:wrap;gap:6px;max-height:220px;padding:8px;display:flex;overflow-y:auto}.ap-tagchip{border:1px solid var(--ui-line,#e2e5ea);max-width:100%;height:24px;color:var(--ui-ink-dim,#6b7280);white-space:nowrap;text-overflow:ellipsis;cursor:pointer;background:0 0;border-radius:999px;padding:0 9px;font-size:11px;line-height:22px;transition:background .14s,border-color .14s,color .14s;overflow:hidden}.ap-tagchip:hover{border-color:var(--ui-ink-mute,#8c95a3);color:var(--ui-ink,#18202b)}.ap-tagchip.is-on{border-color:var(--ui-accent,#0891b2);background:var(--ui-accent-soft,#0891b21f);color:var(--ui-accent-hover,#0e7490);font-weight:600}.ap-probe{border-top:1px solid var(--ui-line-soft,#eef0f4);flex-direction:column;gap:8px;display:flex}.ap-probe .ap-hint.is-bad,.ap-probe .is-bad{color:var(--ui-danger,#ef4444)}.ap-toolgroup{flex-direction:column;gap:4px;display:flex}.ap-toolgroup-name{color:var(--ui-ink,#18202b);font-size:11px}.ap-toolgroup .ap-tagpool{max-height:160px}.ap-toolgroup .ap-tagchip{cursor:default}.ap .shadcn-settings-row{padding:10px 0}.ap .shadcn-settings-row__label{font-size:12px}.ap .shadcn-settings-row__desc{font-size:11px}.ap .ap-form-stack{flex-direction:column;gap:8px;display:flex}.ap .ap-detail-foot.is-sticky{z-index:1;background:var(--ui-panel,#fff);padding:8px 0;position:sticky;bottom:0}.ap .ap-detail-foot.is-sticky:before{content:"";background:var(--ui-line-soft,#eef0f4);height:1px;position:absolute;top:0;left:0;right:0}.ap .ap-form-actions.is-sticky{z-index:1;background:var(--ui-panel,#fff);padding:10px 0;position:sticky;bottom:0}.ap .ap-form-actions.is-sticky:before{content:"";background:var(--ui-line-soft,#eef0f4);height:1px;position:absolute;top:0;left:0;right:0}.sdh[data-v-ff337a5a]{z-index:2;background:var(--ui-panel,#fff);flex-direction:column;gap:6px;min-width:0;padding-bottom:8px;display:flex;position:sticky;top:0}.sdh-top[data-v-ff337a5a]{justify-content:space-between;align-items:center;gap:8px;min-height:24px;display:flex}.sdh-back[data-v-ff337a5a]{color:var(--ui-ink-dim,#6b7280);margin-left:-8px;padding-inline:8px}.sdh-text[data-v-ff337a5a]{flex-direction:column;gap:2px;min-width:0;display:flex}.sdh-title[data-v-ff337a5a]{color:var(--ui-ink,#18202b);text-align:left;margin:0;font-size:14px;font-weight:700;line-height:1.35}.sdh-desc[data-v-ff337a5a]{color:var(--ui-ink-dim,#6b7280);text-align:left;margin:0;font-size:11px;line-height:1.55}.ap-list-head[data-v-e17084d5]{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-list[data-v-e17084d5]{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.ap-list-row[data-v-e17084d5]{border-radius:10px;align-items:center;gap:12px;padding:9px 8px;display:flex}.ap-list-row[data-v-e17084d5]:hover{background:var(--ui-hover,#f4f6f9)}.ap-list-main[data-v-e17084d5]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ap-list-title[data-v-e17084d5]{align-items:center;gap:6px;min-width:0;display:flex}.ap-list-name[data-v-e17084d5]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#18202b);font-size:13px;font-weight:600;overflow:hidden}.ap-badge[data-v-e17084d5]{background:var(--ui-accent-soft,#0891b21f);color:var(--ui-accent-hover,#0e7490);border-radius:999px;flex:none;padding:1px 6px;font-size:10px}.ap-list-desc[data-v-e17084d5],.ap-list-meta[data-v-e17084d5]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-dim,#6b7280);font-size:11px;overflow:hidden}.ap-list-meta[data-v-e17084d5]{color:var(--ui-ink-mute,#8c95a3);font-size:10.5px}.ap-model-form[data-v-e17084d5]{padding-bottom:4px}.ap-model-pull[data-v-e17084d5]{flex-wrap:wrap;align-items:center;gap:8px;padding:4px 0 10px;display:flex}.ap-custom-row[data-v-e17084d5]{align-items:center;gap:8px;padding-bottom:10px;display:flex}.ap-custom-row .ap-input[data-v-e17084d5]{flex:1;min-width:0}.ap-input[data-v-e17084d5]{width:100%}.ap-select[data-v-e17084d5]{width:200px}.ap-detail-actions[data-v-e17084d5]{align-items:center;gap:8px;display:flex}.ap-tagchip[data-v-e17084d5]{max-width:100%;height:24px;font-family:var(--font-mono,ui-monospace, monospace);padding:0 8px;font-size:10px}.ap-edit-foot[data-v-e17084d5]{justify-content:flex-end;padding-top:10px;display:flex}.ap-test-toolbar[data-v-e17084d5]{justify-content:space-between;align-items:center;gap:8px;padding:4px 0 8px;display:flex}.ap-test-actions[data-v-e17084d5]{justify-content:space-between;align-items:center;gap:8px;padding-top:4px;display:flex}.ap-saved-list[data-v-e17084d5]{flex-direction:column;gap:1px;display:flex}.ap-saved-row[data-v-e17084d5]{cursor:pointer;border-radius:8px;align-items:center;gap:8px;padding:7px 6px;display:flex}.ap-saved-row[data-v-e17084d5]:hover{background:var(--ui-hover,#f4f6f9)}.ap-saved-check[data-v-e17084d5]{width:14px;height:14px;accent-color:var(--ui-accent,#0891b2);flex:none}.ap-saved-name[data-v-e17084d5]{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;font-family:var(--font-mono,ui-monospace, monospace);color:var(--ui-ink,#18202b);flex:1;overflow:hidden}.ap-models[data-v-e17084d5]{--ap-state-ok:#16a34a;--ap-state-bad:#dc2626}html.dark .ap-models[data-v-e17084d5]{--ap-state-ok:#4ade80;--ap-state-bad:#f87171}.ap-saved-result[data-v-e17084d5]{color:var(--ap-state-bad);flex:none;font-size:10px}.ap-saved-result.is-ok[data-v-e17084d5]{color:var(--ap-state-ok)}.ap-probe-results[data-v-e17084d5]{flex-direction:column;gap:6px;padding-top:8px;display:flex}.ap-probe-model[data-v-e17084d5]{font-family:var(--font-mono,ui-monospace, monospace);color:var(--ui-ink-dim,#6b7280);font-size:11px}.ap-probe-result[data-v-e17084d5]{border:1px solid var(--ui-line,#e2e5ea);border-radius:8px;flex-direction:column;gap:3px;padding:8px 10px;display:flex}.ap-probe-result.is-ok[data-v-e17084d5]{border-color:var(--ap-state-ok)}.ap-probe-result.is-ok .ap-probe-title>svg[data-v-e17084d5]{color:var(--ap-state-ok)}.ap-probe-result[data-v-e17084d5]:not(.is-ok){border-color:var(--ap-state-bad)}.ap-probe-result:not(.is-ok) .ap-probe-title>svg[data-v-e17084d5]{color:var(--ap-state-bad)}.ap-probe-title[data-v-e17084d5]{color:var(--ui-ink,#18202b);align-items:center;gap:6px;margin:0;font-size:12px;display:flex}.ap-probe-title .ap-probe-model[data-v-e17084d5]{color:var(--ui-ink,#18202b);font-size:12px;font-weight:600}.ap-probe-state[data-v-e17084d5]{margin-left:auto;font-size:10px;font-weight:600}.ap-probe-state.is-ok[data-v-e17084d5]{color:var(--ap-state-ok)}.ap-probe-state.is-bad[data-v-e17084d5]{color:var(--ap-state-bad)}.ap-probe-desc[data-v-e17084d5]{color:var(--ui-ink-dim,#6b7280);margin:0;font-size:11px;line-height:1.5}.ap-probe-reply[data-v-e17084d5]{color:var(--ui-ink-mute,#8c95a3);margin:0;font-size:10px;line-height:1.5}.ap-flush-card[data-v-e17084d5] .shadcn-settings-section__body{background:0 0;border:0;padding:0;overflow:visible}.ap-skill-form[data-v-c78572da]{padding:10px 0}.ap-form-actions[data-v-c78572da]{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ap-list-head[data-v-a9a72e33]{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-list[data-v-a9a72e33]{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.ap-list-row[data-v-a9a72e33]{border-radius:10px;align-items:center;gap:12px;padding:9px 8px;display:flex}.ap-list-row[data-v-a9a72e33]:hover{background:var(--ui-hover,#f4f6f9)}.ap-list-item[data-v-a9a72e33]{border-radius:10px}.ap-list-item[data-v-a9a72e33]:hover{background:var(--ui-hover,#f4f6f9)}.ap-list-item .ap-list-row[data-v-a9a72e33]:hover{background:0 0}.ap-mcp[data-v-a9a72e33]{--ap-state-ok:#16a34a;--ap-state-bad:#dc2626}html.dark .ap-mcp[data-v-a9a72e33]{--ap-state-ok:#4ade80;--ap-state-bad:#f87171}.ap-server-state[data-v-a9a72e33]{flex:none;font-size:10px;font-weight:600}.ap-server-state.is-ok[data-v-a9a72e33]{color:var(--ap-state-ok)}.ap-server-state.is-bad[data-v-a9a72e33]{color:var(--ap-state-bad)}.ap-server-detail[data-v-a9a72e33]{border:1px solid var(--ui-line,#e2e5ea);border-radius:8px;flex-direction:column;gap:6px;margin:0 8px 8px;padding:8px 10px;display:flex}.ap-list-main[data-v-a9a72e33]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ap-list-title[data-v-a9a72e33]{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.ap-list-name[data-v-a9a72e33]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#18202b);font-size:13px;font-weight:600;overflow:hidden}.ap-list-desc[data-v-a9a72e33],.ap-list-meta[data-v-a9a72e33],.ap-list-err[data-v-a9a72e33]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-dim,#6b7280);font-size:11px;overflow:hidden}.ap-list-meta[data-v-a9a72e33]{color:var(--ui-ink-mute,#8c95a3);font-size:10.5px}.ap-list-err[data-v-a9a72e33]{color:var(--ui-danger,#ef4444)}.ap-readonly[data-v-a9a72e33]{color:var(--ui-ink-mute,#8c95a3);flex:none;font-size:11px}.ap-empty-card[data-v-a9a72e33]{border:1px dashed var(--ui-line,#e2e5ea);border-radius:10px;flex-direction:column;align-items:center;gap:5px;padding:24px 12px;display:flex}.ap-empty-card strong[data-v-a9a72e33]{color:var(--ui-ink,#18202b);font-size:12px;font-weight:600}.ap-empty-card span[data-v-a9a72e33]{color:var(--ui-ink-dim,#6b7280);font-size:11px}.ap-mcp-probe[data-v-a9a72e33]{padding:10px 0 4px}.ap-mcp-form[data-v-a9a72e33]{padding:4px 0}.ap-draft-probe[data-v-a9a72e33]{flex-wrap:wrap;align-items:center;gap:8px;padding:6px 0;display:flex}.ap-probe-result[data-v-a9a72e33]{border:1px solid var(--ui-line,#e2e5ea);border-radius:8px;flex-direction:column;gap:4px;margin-bottom:6px;padding:8px 10px;display:flex}.ap-probe-result.is-ok[data-v-a9a72e33]{border-color:var(--ap-state-ok)}.ap-probe-result[data-v-a9a72e33]:not(.is-ok){border-color:var(--ap-state-bad)}.ap-probe-title[data-v-a9a72e33]{align-items:center;gap:6px;margin:0;display:flex}.ap-probe-state[data-v-a9a72e33]{font-size:12px;font-weight:600}.ap-probe-state.is-ok[data-v-a9a72e33]{color:var(--ap-state-ok)}.ap-probe-state.is-bad[data-v-a9a72e33]{color:var(--ap-state-bad)}.ap-probe-desc[data-v-a9a72e33]{color:var(--ui-ink-dim,#6b7280);margin:0;font-size:11px;line-height:1.5}.ap-probe-desc.is-bad-text[data-v-a9a72e33]{color:var(--ap-state-bad)}.ap-form-actions[data-v-a9a72e33]{justify-content:flex-end;gap:8px;padding-top:10px;display:flex}.ap-input[data-v-a9a72e33]{width:100%}.ap-select[data-v-a9a72e33]{width:160px}.ap-rule-toolbar[data-v-09d02ab7]{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-rule-form[data-v-09d02ab7]{padding:10px 0}.ap-form-actions[data-v-09d02ab7]{align-items:center;gap:8px;display:flex}.ap-form-actions[data-v-09d02ab7] input{flex:1}.ap-rule-actions[data-v-09d02ab7]{flex:none;align-items:center;gap:6px;display:flex}.ap-rule-row[data-v-09d02ab7]{align-items:center;gap:12px;padding:9px 0;display:flex}.ap-rule-row+.ap-rule-row[data-v-09d02ab7]{border-top:1px solid var(--ui-line-faint,#eef0f4)}.ap-rule-main[data-v-09d02ab7]{flex:1;min-width:0}.ap-rule-title[data-v-09d02ab7]{align-items:center;gap:6px;display:flex}.ap-rule-pattern[data-v-09d02ab7]{text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-family:var(--font-mono,ui-monospace, monospace);color:var(--ui-ink,#18202b);overflow:hidden}.ap-rule-badge[data-v-09d02ab7]{background:var(--ui-hover,#f4f6f9);color:var(--ui-ink-dim,#6b7280);border-radius:999px;flex:none;padding:1px 6px;font-size:10px}.ap-rule-desc[data-v-09d02ab7]{color:var(--ui-ink-dim,#6b7280);font-size:11px}.ap-rule-detail-head[data-v-09d02ab7]{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-rule-back[data-v-09d02ab7]{color:var(--ui-ink-dim,#6b7280);margin-left:-8px;padding-inline:8px}.ap-rule-detail-actions[data-v-09d02ab7]{align-items:center;gap:8px;display:flex}.ap-rule-detail-title[data-v-09d02ab7]{color:var(--ui-ink,#18202b);margin:6px 0 0;font-size:14px;font-weight:700}.ap-input[data-v-09d02ab7]{width:100%}.ap-flush-card[data-v-09d02ab7] .shadcn-settings-section__body{background:0 0;border:0;padding:0;overflow:visible}.pv[data-v-885b18f2]{border:1px solid var(--ui-line-soft,#eef0f4);border-radius:var(--radius-control,8px);background:var(--ui-panel,#fff);flex-direction:column;gap:7px;padding:9px 10px;display:flex}.pv-head[data-v-885b18f2]{justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.pv-head-text[data-v-885b18f2]{align-items:baseline;gap:6px;min-width:0;display:flex}.pv-title[data-v-885b18f2]{color:var(--ui-ink,#18202b);font-size:11px;font-weight:600}.pv-count[data-v-885b18f2]{color:var(--ui-ink-dim,#6b7280);font-size:10px}.pv-search[data-v-885b18f2]{flex:none;width:140px;height:26px;font-size:11px}.pv-hint[data-v-885b18f2]{color:var(--ui-ink-dim,#6b7280);margin:0;font-size:10px;line-height:1.5}.pv-empty[data-v-885b18f2]{color:var(--ui-ink-mute,#8c95a3);margin:0;padding:4px 0;font-size:11px}.pv-group[data-v-885b18f2]{flex-direction:column;gap:5px;display:flex}.pv-group-title[data-v-885b18f2]{letter-spacing:.02em;color:var(--ui-ink-dim,#6b7280);font-size:10px}.pv-chips[data-v-885b18f2]{flex-wrap:wrap;gap:4px;display:flex}.pv-chip[data-v-885b18f2]{height:22px;font-family:var(--font-mono,ui-monospace, monospace);padding:0 8px}.pv-chip code[data-v-885b18f2]{font-size:10px}.ped[data-v-5e15f21d]{flex-direction:column;gap:8px;display:flex}.ped-textarea[data-v-5e15f21d]{field-sizing:fixed;min-height:140px;font-family:var(--font-mono,ui-monospace, monospace);font-size:12px;line-height:1.6;overflow-y:auto}.ap-list-head[data-v-47027ef9]{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-list-actions[data-v-47027ef9]{flex:none;align-items:center;gap:8px;display:flex}.ap-list[data-v-47027ef9]{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.ap-list-row[data-v-47027ef9]{border-radius:10px;align-items:center;gap:12px;padding:9px 8px;display:flex}.ap-list-row[data-v-47027ef9]:hover{background:var(--ui-hover,#f4f6f9)}.ap-list-main[data-v-47027ef9]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.ap-list-title[data-v-47027ef9]{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.ap-list-name[data-v-47027ef9]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink,#18202b);font-size:13px;font-weight:600;overflow:hidden}.ap-badge[data-v-47027ef9]{background:var(--ui-hover,#f4f6f9);color:var(--ui-ink-dim,#6b7280);border-radius:999px;flex:none;padding:1px 6px;font-size:10px}.ap-badge.is-on[data-v-47027ef9]{background:var(--ui-accent-soft,#0891b21f);color:var(--ui-accent-hover,#0e7490)}.ap-list-desc[data-v-47027ef9],.ap-list-meta[data-v-47027ef9]{text-overflow:ellipsis;white-space:nowrap;color:var(--ui-ink-dim,#6b7280);font-size:11px;overflow:hidden}.ap-list-meta[data-v-47027ef9]{color:var(--ui-ink-mute,#8c95a3);font-size:10.5px}.ap-detail-form[data-v-47027ef9]{flex-direction:column;gap:14px;padding-top:4px;display:flex}.ap-field[data-v-47027ef9]{flex-direction:column;gap:6px;display:flex}.ap-field-head[data-v-47027ef9]{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-field-label[data-v-47027ef9]{color:var(--ui-ink,#18202b);font-size:12px;font-weight:600}.ap-input[data-v-47027ef9]{width:100%}.ap-textarea[data-v-47027ef9]{resize:vertical;width:100%;min-height:72px;font-size:12px;line-height:1.6}.ap-count[data-v-47027ef9]{color:var(--ui-ink-dim,#6b7280);font-size:10px}.ap-detail-foot[data-v-47027ef9]{justify-content:space-between;align-items:center;gap:10px;padding-top:2px;display:flex}.ap-ok[data-v-47027ef9]{color:var(--ui-accent,#0891b2);align-items:center;gap:4px;display:inline-flex}.ap-warnblock[data-v-47027ef9]{border:1px solid var(--ui-warn,#b45309);border-radius:var(--radius-control,8px);flex-direction:column;align-items:flex-start;gap:6px;padding:8px 10px;display:flex}.ap-warnline[data-v-47027ef9]{color:var(--ui-warn,#b45309);align-items:flex-start;gap:6px;margin:0;font-size:12px;display:flex}.ap-warnline code[data-v-47027ef9]{font-family:var(--font-mono,ui-monospace, monospace)}.ap-select[data-v-aefc556c]{width:200px}.ap-form-actions[data-v-aefc556c]{align-items:center;gap:8px;display:flex}.ap-prompt-form[data-v-9a04ad09]{flex-direction:column;gap:10px;padding-top:4px;display:flex}.ap-field[data-v-9a04ad09]{flex-direction:column;gap:6px;display:flex}.ap-field-head[data-v-9a04ad09]{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-field-label[data-v-9a04ad09]{color:var(--ui-ink,#18202b);font-size:12px;font-weight:600}.ap-count[data-v-9a04ad09]{color:var(--ui-ink-dim,#6b7280);font-size:10px}.ap-detail-foot[data-v-9a04ad09]{justify-content:space-between;align-items:center;gap:10px;display:flex}.ap-detail-actions[data-v-9a04ad09]{align-items:center;gap:8px;display:inline-flex}.ap-ok[data-v-9a04ad09]{color:var(--ui-accent,#0891b2);align-items:center;gap:4px;display:inline-flex}.ap-warnblock[data-v-9a04ad09]{border:1px solid var(--ui-warn,#b45309);border-radius:var(--radius-control,8px);flex-direction:column;gap:6px;padding:8px 10px;display:flex}.ap-warnline[data-v-9a04ad09]{color:var(--ui-warn,#b45309);align-items:flex-start;gap:6px;margin:0;font-size:12px;display:flex}.ap-warnline code[data-v-9a04ad09]{font-family:var(--font-mono,ui-monospace, monospace)}.ap-template-form[data-v-5bfb4435]{flex-direction:column;gap:10px;padding-top:4px;display:flex}.ap-field[data-v-5bfb4435]{flex-direction:column;gap:6px;display:flex}.ap-field-head[data-v-5bfb4435]{justify-content:space-between;align-items:center;gap:8px;display:flex}.ap-field-label[data-v-5bfb4435]{color:var(--ui-ink,#18202b);font-size:12px;font-weight:600}.ap-count[data-v-5bfb4435]{color:var(--ui-ink-dim,#6b7280);font-size:10px}.ap-detail-foot[data-v-5bfb4435]{justify-content:space-between;align-items:center;gap:10px;display:flex}.ap-detail-actions[data-v-5bfb4435]{align-items:center;gap:8px;display:inline-flex}.ap-ok[data-v-5bfb4435]{color:var(--ui-accent,#0891b2);align-items:center;gap:4px;display:inline-flex}.ap-warnbody[data-v-5bfb4435]{flex-direction:column;align-items:flex-start;gap:6px;display:flex}.ap-warnline[data-v-5bfb4435]{color:var(--ui-warn,#b45309);align-items:flex-start;gap:6px;margin:0;font-size:12px;display:flex}.ap-warnline code[data-v-5bfb4435]{font-family:var(--font-mono,ui-monospace, monospace)}.asp[data-v-dfdd9e21]{flex-direction:column;gap:12px;min-width:0;display:flex}.asp-head[data-v-dfdd9e21]{border-bottom:1px solid var(--ui-line-soft,#eef0f4);align-items:center;gap:10px;min-width:0;padding-bottom:2px;display:flex}.asp-tab-list[data-v-dfdd9e21]{flex-wrap:wrap;flex:1;justify-content:flex-start;align-items:center;gap:2px 4px;min-width:0;height:auto;padding:0 0 5px;overflow:visible}.asp-tab[data-v-dfdd9e21]{border-radius:var(--radius-control,8px);flex:none;height:auto;min-height:30px;padding:5px 10px;font-size:12px;font-weight:600}.asp-err[data-v-dfdd9e21]{text-overflow:ellipsis;white-space:nowrap;max-width:40%;color:var(--ui-danger,#ef4444);flex:none;font-size:11px;overflow:hidden}.asp-body[data-v-dfdd9e21]{flex-direction:column;min-width:0;display:flex}
2
2
  /*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("vue"),require("@plume-canvas/plugin-sdk"),require("@plume-canvas/canvas-render"),require("@plume-canvas/editor")):typeof define==`function`&&define.amd?define([`exports`,`vue`,`@plume-canvas/plugin-sdk`,`@plume-canvas/canvas-render`,`@plume-canvas/editor`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.PlumePluginAgent={},e.Vue,e.PlumeBase,e.PlumeRender,e.ProseMirrorEditorBundle))})(this,function(e,t,n,r,i){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var a=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=c(t),a=0,l=i.length,d;a<l;a++)d=i[a],!u.call(e,d)&&d!==n&&o(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=s(t,d))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:a(l(e)),d(t||!e||!e.__esModule?o(n,`default`,{value:e,enumerable:!0}):n,e)))(t,1);var f=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},p=e=>e===``,m=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),h=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),g=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),_=e=>{let t=g(e);return t.charAt(0).toUpperCase()+t.slice(1)},v={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},y=({name:e,iconNode:n,absoluteStrokeWidth:r,"absolute-stroke-width":i,strokeWidth:a,"stroke-width":o,size:s=v.width,color:c=v.stroke,...l},{slots:u})=>(0,t.h)(`svg`,{...v,...l,width:s,height:s,stroke:c,"stroke-width":p(r)||p(i)||r===!0||i===!0?Number(a||o||v[`stroke-width`])*24/Number(s):a||o||v[`stroke-width`],class:m(`lucide`,l.class,...e?[`lucide-${h(_(e))}-icon`,`lucide-${h(e)}`]:[`lucide-icon`]),...!u.default&&!f(l)&&{"aria-hidden":`true`}},[...n.map(e=>(0,t.h)(...e)),...u.default?[u.default()]:[]]),b=(e,n)=>(r,{slots:i,attrs:a})=>(0,t.h)(y,{...a,...r,iconNode:n,name:e},i),x=b(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),S=b(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),C=b(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),w=b(`bell-ring`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`,key:`5bb3ad`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`,key:`tap9e0`}]]),T=b(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),E=b(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),D=b(`briefcase`,[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]),O=b(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),k=b(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),A=b(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),j=b(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),M=b(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),N=b(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),P=b(`circle-dot`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}]]),F=b(`circle-slash`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`9`,x2:`15`,y1:`15`,y2:`9`,key:`1dfufj`}]]),I=b(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),L=b(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),R=b(`corner-up-right`,[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M4 20v-7a4 4 0 0 1 4-4h12`,key:`1lu4f8`}]]),z=b(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),B=b(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),ee=b(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),te=b(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),V=b(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),H=b(`hand`,[[`path`,{d:`M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1fvzgz`}],[`path`,{d:`M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2`,key:`1kc0my`}],[`path`,{d:`M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8`,key:`10h0bg`}],[`path`,{d:`M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15`,key:`1s1gnw`}]]),U=b(`image-off`,[[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}],[`path`,{d:`M10.41 10.41a2 2 0 1 1-2.83-2.83`,key:`1bzlo9`}],[`line`,{x1:`13.5`,x2:`6`,y1:`13.5`,y2:`21`,key:`1q0aeu`}],[`line`,{x1:`18`,x2:`21`,y1:`12`,y2:`15`,key:`5mozeu`}],[`path`,{d:`M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59`,key:`mmje98`}],[`path`,{d:`M21 15V5a2 2 0 0 0-2-2H9`,key:`43el77`}]]),ne=b(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),re=b(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),ie=b(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),ae=b(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]),oe=b(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),se=b(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),ce=b(`music`,[[`path`,{d:`M9 18V5l12-2v13`,key:`1jmyc2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`circle`,{cx:`18`,cy:`16`,r:`3`,key:`1hluhg`}]]),le=b(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),ue=b(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),de=b(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),fe=b(`plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]),pe=b(`plug-zap`,[[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`,key:`goz73y`}],[`path`,{d:`m2 22 3-3`,key:`19mgm9`}],[`path`,{d:`M7.5 13.5 10 11`,key:`7xgeeb`}],[`path`,{d:`M10.5 16.5 13 14`,key:`10btkg`}],[`path`,{d:`m18 3-4 4h6l-4 4`,key:`16psg9`}]]),me=b(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),he=b(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),ge=b(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),_e=b(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),ve=b(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),ye=b(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),be=b(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),xe=b(`target`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),Se=b(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Ce=b(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),we=b(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Te=b(`type`,[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]),Ee=b(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),De=b(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),Oe=b(`wand-sparkles`,[[`path`,{d:`m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72`,key:`ul74o6`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`M5 6v4`,key:`ilb8ba`}],[`path`,{d:`M19 14v4`,key:`blhpug`}],[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M7 8H3`,key:`zfb6yr`}],[`path`,{d:`M21 16h-4`,key:`1cnmox`}],[`path`,{d:`M11 3H9`,key:`1obp7u`}]]),ke=b(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Ae=b(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),je=class{base;f;constructor(e={}){this.base=(e.baseUrl??``).replace(/\/+$/,``),this.f=e.fetchImpl??((...e)=>fetch(...e))}request(e,t){let r=new Headers(t?.headers);t?.body&&!r.has(`content-type`)&&r.set(`content-type`,`application/json`);let i=(0,n.withAdminToken)(Object.fromEntries(r.entries()));return this.f(this.base+e,{...t,headers:i})}async json(e,t){let n=await this.request(e,t);if(!n.ok)throw Error(await Me(n));return await n.json()}config(){return this.json(`/api/agent/config`)}async isBackendAlive(){try{return(await this.request(`/api/agent/config`,{method:`GET`})).ok}catch{return!1}}saveModel(e){return this.json(`/api/agent/models`,{method:`POST`,body:JSON.stringify(e)})}saveModelsBulk(e){return this.json(`/api/agent/models/bulk`,{method:`PUT`,body:JSON.stringify(e)})}deleteModel(e,t){return this.json(`/api/agent/models`,{method:`DELETE`,body:JSON.stringify({provider:e,modelId:t})})}setDefaultModel(e,t){return this.json(`/api/agent/models/default`,{method:`POST`,body:JSON.stringify({provider:e,modelId:t})})}setVisionModel(e,t){return this.json(`/api/agent/models/vision`,{method:`POST`,body:JSON.stringify({provider:e,modelId:t})})}importSkill(e){return this.json(`/api/agent/skills/import`,{method:`POST`,body:JSON.stringify({dir:e})})}upstreamModels(e){return this.json(`/api/agent/models/available`,{method:`POST`,body:JSON.stringify(e)})}probeModel(e){return this.json(`/api/agent/models/probe`,{method:`POST`,body:JSON.stringify(e)})}saveSystemPrompt(e){return this.json(`/api/agent/system-prompt`,{method:`PUT`,body:JSON.stringify({text:e})})}restoreSystemPrompt(){return this.json(`/api/agent/system-prompt/restore`,{method:`POST`})}restoreTemplate(){return this.json(`/api/agent/template/restore`,{method:`POST`})}saveTemplate(e){return this.json(`/api/agent/template`,{method:`PUT`,body:JSON.stringify({text:e})})}prompts(){return this.json(`/api/agent/prompts`)}savePrompts(e){return this.json(`/api/agent/prompts`,{method:`PUT`,body:JSON.stringify({prompts:e})})}restorePrompt(e){return this.json(`/api/agent/prompts/restore`,{method:`POST`,body:JSON.stringify({id:e})})}titleModel(){return this.json(`/api/agent/title-model`)}saveTitleModel(e){return this.json(`/api/agent/title-model`,{method:`PUT`,body:JSON.stringify(e)})}skillSources(){return this.json(`/api/agent/skills/sources`)}removeSkill(e){return this.json(`/api/agent/skills/`+encodeURIComponent(e),{method:`DELETE`})}addMcp(e){return this.json(`/api/agent/mcp`,{method:`POST`,body:JSON.stringify(e)})}removeMcp(e){return this.json(`/api/agent/mcp`,{method:`DELETE`,body:JSON.stringify({name:e})})}probeMcp(e){return this.json(`/api/agent/mcp/probe`,{method:`POST`,body:JSON.stringify(e?.length?{names:e}:{})})}probeMcpDraft(e){return this.json(`/api/agent/mcp/probe-draft`,{method:`POST`,body:JSON.stringify(e)})}getPolicy(){return this.json(`/api/agent/policy`)}putPolicy(e){return this.json(`/api/agent/policy`,{method:`PUT`,body:JSON.stringify(e)})}restorePolicy(){return this.json(`/api/agent/policy/restore`,{method:`POST`,body:`{}`})}async listSessions(e){return(await this.json(this.sessionsPath(e))).sessions??[]}async listSessionsWithParents(e){let t=await this.json(this.sessionsPath(e));return{sessions:t.sessions??[],parents:t.parents??{}}}async getSession(e,t){return(await this.json(this.sessionPath(e,t))).session}async setLastError(e,t,n){await this.json(this.sessionPath(e,t)+`/last-error`,{method:`POST`,body:JSON.stringify({message:n})})}async sessionJsonPath(e,t){let n=await this.json(this.sessionPath(e,t)+`/json-path`);if(n.path)return n.path;throw Error(n.error||`取不到会话 JSON 地址`)}async sessionState(e,t,n){let r=new URLSearchParams;n&&n.turnsLimit&&n.turnsLimit>0&&r.set(`turnsLimit`,String(n.turnsLimit)),n&&n.turnsBefore&&n.turnsBefore>0&&r.set(`turnsBefore`,String(n.turnsBefore));let i=r.toString();return this.json(this.sessionPath(e,t)+(i?`?`+i:``))}queueOp(e,t,n){return this.json(this.sessionPath(e,t)+`/queue`,{method:`POST`,body:JSON.stringify(n)})}getQueue(e,t){return this.json(this.sessionPath(e,t)+`/queue`)}steerQueueItem(e,t,n){return this.json(this.sessionPath(e,t)+`/queue/`+encodeURIComponent(n)+`/steer`,{method:`POST`,body:`{}`})}goalOp(e,t,n){return this.json(this.sessionPath(e,t)+`/goal`,{method:`POST`,body:JSON.stringify(n)})}setGoalImages(e,t,n){return this.json(this.sessionPath(e,t)+`/goal-images`,{method:`POST`,body:JSON.stringify({images:n})})}createSession(e,t={}){return this.json(this.sessionsPath(e),{method:`POST`,body:JSON.stringify(t)})}forkSession(e,t,n){return this.json(this.sessionPath(e,t)+`/fork`,{method:`POST`,body:JSON.stringify({afterText:n})})}switchModel(e,t,n,r){return this.json(this.sessionPath(e,t)+`/switch-model`,{method:`POST`,body:JSON.stringify({provider:n,modelId:r})})}async compact(e,t,n,r,i){let a=await this.request(this.sessionPath(e,t)+`/compact`,{method:`POST`,headers:{"content-type":`application/json`},body:`{}`,...r?{signal:r}:{}});if(!a.ok)throw Error(await Me(a));a.body&&await this.consumeSse(a.body,n,i)}branchInfo(e,t){return this.json(this.sessionPath(e,t)+`/branch-info`)}renameSession(e,t,n){return this.json(this.sessionPath(e,t),{method:`PATCH`,body:JSON.stringify({title:n})})}deleteSession(e,t){return this.json(this.sessionPath(e,t),{method:`DELETE`})}abort(e,t){return this.json(this.sessionPath(e,t)+`/abort`,{method:`POST`,body:`{}`})}reconnectMcp(e,t){return this.json(this.sessionPath(e,t)+`/mcp/reconnect`,{method:`POST`,body:`{}`})}approve(e,t,n,r){return this.json(this.sessionPath(e,t)+`/approvals/`+encodeURIComponent(n),{method:`POST`,body:JSON.stringify({decision:r})})}sessionsPath(e){return`/api/agent/canvases/`+encodeURIComponent(e)+`/sessions`}sessionPath(e,t){return this.sessionsPath(e)+`/`+encodeURIComponent(t)}async sendMessage(e,t,n,r,i,a,o){let s={text:n};r.provider&&(s.provider=r.provider),r.modelId&&(s.modelId=r.modelId),r.mcpServers?.length&&(s.mcpServers=r.mcpServers),r.skills?.length&&(s.skills=r.skills),r.systemPrompt&&(s.systemPrompt=r.systemPrompt),r.images?.length&&(s.images=r.images),r.goal&&(s.goal=r.goal);let c=await this.request(this.sessionPath(e,t)+`/messages`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(s),...a?{signal:a}:{}});if(!c.ok)throw Error(await Me(c));if(!c.body)throw Error(`响应没有内容`);await this.consumeSse(c.body,i,o)}async streamSession(e,t,n,r,i,a={}){let o=await this.request(this.sessionPath(e,t)+`/stream?since=`+Math.max(0,Math.floor(n))+(a.follow?`&follow=1`:``),{...i?{signal:i}:{}});if(!o.ok)throw Error(await Me(o));o.body&&await this.consumeSse(o.body,r,a)}async consumeSse(e,t,n){let r=e.getReader(),i=new TextDecoder,a=``;for(;;){let{done:e,value:o}=await r.read();if(e)break;a+=i.decode(o,{stream:!0});let s=a.split(`
3
3
 
4
4
  `);a=s.pop()??``;for(let e of s){let r=e.split(`
@@ -19,5 +19,5 @@
19
19
  `).map(e=>e.trim()).filter(Boolean).find(e=>/^at\s/.test(e)&&!e.includes(`node_modules`)&&!e.includes(`/@vite/`)&&!e.includes(`node:internal`))}function qo(e){let t=String(e??``).trim();if(!t)return{layer:`unknown`,headline:`未知错误`,reason:`没有错误信息`};let n=Uo(t),r=Ko(t),i=Wo(t);if(i!==void 0){let e=Go(i),a=/(?:GET|POST|PUT|PATCH|DELETE)\s+(\/api\/[^\s,)]+)/i.exec(t)?.[0]??/(\/api\/[^\s,)]+)/.exec(t)?.[1];return{layer:e.layer,headline:e.headline,reason:n.slice(0,160),status:i,...a?{where:a}:r?{where:r}:{},hint:e.hint}}let a=/\b(E[A-Z]{2,20})\b/.exec(t)?.[1];if(a&&Ho[a]){let e=Ho[a],t=/\b(rename|open|read|write|unlink|mkdir|stat|copyfile)\b/i.exec(n)?.[1];return{layer:`server`,headline:`后台写文件失败(`+(t?t+` `:``)+a+`)`,reason:e.reason,...r?{where:r}:{},hint:e.hint}}if(/Failed to fetch|NetworkError|Load failed|net::ERR_|CORS|Mixed Content/i.test(t)){let e=/net::(ERR_[A-Z_]+)/i.exec(t)?.[1];return{layer:`network`,headline:`网络请求没发出去(前端 → 后台)`,reason:e||n.slice(0,160),...r?{where:r}:{},hint:e===`ERR_CONNECTION_REFUSED`?`后台没起 / 端口不对`:`检查后台是否在跑、地址是否正确`}}let o=/(\/api\/[A-Za-z0-9_\-/]+)/.exec(t)?.[1],s=/^\[([a-zA-Z][\w:-]*)\]/.exec(n)?.[1];return o||s||/\b(cloud-server|plugin-agent\/server)\b/.test(t)?{layer:`server`,headline:`后台报错`,reason:n.slice(0,160),...o?{where:o}:s?{where:`[`+s+`]`}:r?{where:r}:{}}:/\.(vue|ts|tsx|js):\d+/.test(t)||/Vue warn|Cannot read propert|is not a function|undefined is not/i.test(t)?{layer:`client`,headline:`前端报错`,reason:n.slice(0,160),...r?{where:r}:{}}:{layer:`unknown`,headline:n.slice(0,120),reason:n.slice(0,160)}}function Jo(e){return e===`server`?`后台`:e===`client`?`前端`:e===`network`?`网络`:e===`browser`?`浏览器`:`未知`}var Yo={class:`flex flex-col gap-2 rounded-md bg-muted p-3 font-mono text-xs`},Xo={class:`text-foreground whitespace-pre-wrap break-words`},Zo={class:`text-destructive whitespace-pre-wrap break-words`},Qo={key:0},$o=(0,t.defineComponent)({__name:`AgentStackTrace`,props:{failure:{},detail:{},title:{}},setup(e){let n=e,r=(0,t.computed)(()=>n.failure.message||`工具执行失败`),i=(0,t.computed)(()=>n.failure.frames),a=(0,t.computed)(()=>n.detail||r.value),o=(0,t.computed)(()=>n.detail?n.detail:[r.value,...i.value].join(`
20
20
  `)),s=(0,t.computed)(()=>qo(o.value)),c=(0,t.computed)(()=>{if(n.title)return n.title;let e=s.value;if(e.layer===`unknown`&&e.status===void 0)return`Failed: `+r.value;let t=e.status===void 0?``:` · HTTP `+e.status;return`[`+e.headline+t+`] `+r.value.split(`
21
21
  `)[0]}),l=(0,t.computed)(()=>{let e=s.value,t=[Jo(e.layer)+` · `+e.headline];return e.where&&t.push(`位置:`+e.where),e.hint&&t.push(e.hint),t.join(`
22
- `)});return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(To),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Eo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ko),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(jo),{status:`error`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Oo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(I))]),_:1}),(0,t.createVNode)((0,t.unref)(Mo),null,{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(c.value),1)]),_:1})]),_:1})]),_:1}),(0,t.createVNode)((0,t.unref)(Do),null,{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Yo,[(0,t.createElementVNode)(`p`,Xo,(0,t.toDisplayString)(l.value),1),(0,t.createElementVNode)(`p`,Zo,(0,t.toDisplayString)(a.value),1),i.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`ol`,Qo,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n,class:(0,t.normalizeClass)(e.includes(`node_modules`)?void 0:`text-foreground`)},(0,t.toDisplayString)(e),3))),128))])):(0,t.createCommentVNode)(``,!0)])]),_:1})]),_:1})]),_:1}))}}),es={class:`ac-scroll-wrap`},ts={class:`ac-inner`},ns={key:0,class:`ac-earlier-loading`},rs={key:1,class:`ac-earlier-hint`},is={key:1,class:`ac-welcome`},as={key:0,class:`ac-hint-card`},os={class:`ac-suggestions`},ss=[`aria-label`],cs={class:`ac-model-split-name`},ls=[`href`],us=[`title`,`role`,`tabindex`,`onClick`,`onKeydown`],ds=[`innerHTML`],fs={class:`ac-sent-tag-label`},ps={key:1,class:`ac-user-text`},ms={key:2,class:`ac-editing-badge`,role:`status`},hs={key:1,class:`ac-user-images`},gs=[`src`],_s={key:3,class:`ac-stopped`,role:`status`},vs={key:4,class:`ac-notice`},ys=[`title`],bs=[`aria-label`],xs={key:2,class:`ac-compact-note`,role:`status`,"aria-live":`polite`},Ss={key:3,class:`ac-compact-note`,role:`status`},Cs={key:4,class:`ac-error-bar`,role:`alert`},ws=(0,t.defineComponent)({__name:`AgentMessageList`,setup(e){let{agent:n,s:i,showScrollToBottom:a,smoothScrollToBottom:o,scroller:s,earlierSentinel:c,hintDismissed:l,dismissHint:u,SUGGESTIONS:d,useSuggestion:f,segmentByAnchor:p,segmentModelLabel:m,assistantRows:h,openThinking:g,hasCardView:_,viewOf:v,previewToolMedia:y,toolGroupTitle:b,toolRowSummary:x,toolTitle:C,toolLineTitle:w,anyToolRunning:T,thinkingLive:D,liveThinkingRow:O,userSegments:P,displayUserText:I,onSegClick:R,segTitle:z,segClickable:B,sourcesOf:ee,failureOf:V,isTerminal:H,openUserBubbles:U,overflowingUser:ne,toggleUserBubble:re,setUserBubbleBody:ie,msgTimeText:ae,msgTimeTitle:ce,copied:le,copyMessage:de,beginEditMessage:fe,hasInlineError:pe,pagerByAnchor:me,pagerTarget:he,SHOW_PROCESS_NOTICE:ge,openPreview:_e,showPendingOn:ve}=(0,t.inject)(`agentConversation`),ye=(0,r.useUiComponent)(`Button`),be=(0,r.useUiComponent)(`Spinner`),xe=(0,r.useUiComponent)(`Card`),Se=(0,r.useUiComponent)(`CardContent`),Ce=(0,r.useUiComponent)(`Bubble`),we=(0,r.useUiComponent)(`BubbleContent`),Te=(0,r.useUiComponent)(`Badge`),Ee=(0,t.computed)(()=>{let e=new Map;for(let t of i.turns){if(t.kind!==`approval`||!t.approval||t.approval.decision)continue;let n=t.approval.toolCallId;n&&e.set(n,t.approval)}return e});function De(e){return Ee.value.get(e)}function Oe(e){return e.map(e=>De(e.id)).filter(Boolean)}function ke(e){return e.kind===`approval`&&!e.approval?.toolCallId}function je(e){return Un(e)}let Me=(0,t.ref)(null);function Ne(){let e=Me.value?.scrollElement()??null;e!==s.value&&(s.value=e)}(0,t.onMounted)(()=>{Ne(),(0,t.nextTick)(Ne)}),(0,t.watch)(Me,()=>void(0,t.nextTick)(Ne),{flush:`post`});let Pe=me;return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,es,[(0,t.unref)(a)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(ye),{key:0,variant:`ghost`,size:`icon-sm`,class:`ac-to-bottom`,"aria-label":`回到底部`,title:`回到底部`,onClick:r[0]||=e=>(0,t.unref)(o)()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(k),{size:16})]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(Wi,{ref_key:`scrollRef`,ref:Me,class:`ac-scroll`,"body-class":`ac-scroll-body`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,ts,[(0,t.unref)(i).turns.length&&((0,t.unref)(i).turnsHaveBefore||(0,t.unref)(i).turnsLoadingEarlier)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`earlierSentinel`,ref:c,class:`ac-earlier`,role:`status`},[(0,t.unref)(i).turnsLoadingEarlier?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,ns,[(0,t.createVNode)((0,t.unref)(oe),{size:13,class:`ac-spin`}),r[4]||=(0,t.createElementVNode)(`span`,null,`正在加载更早的对话…`,-1)])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,rs,`向上滚动查看更早的对话`))],512)):(0,t.createCommentVNode)(``,!0),(0,t.unref)(i).turns.length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,is,[(0,t.unref)(l)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,as,[r[5]||=(0,t.createElementVNode)(`p`,{class:`ac-hint-text`},[(0,t.createElementVNode)(`strong`,null,`我能帮你做很多事`),(0,t.createTextVNode)(`,比如回答问题、写文章、编剧本、生成图片/视频/音频…`)],-1),(0,t.createVNode)((0,t.unref)(ye),{variant:`ghost`,size:`icon-sm`,class:`ac-hint-close`,"aria-label":`我知道了`,onClick:(0,t.unref)(u)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:13})]),_:1},8,[`onClick`])])),r[6]||=(0,t.createElementVNode)(`div`,{class:`ac-welcome-orb`},null,-1),r[7]||=(0,t.createElementVNode)(`p`,{class:`ac-welcome-title`},`让 Agent 辅助你的无限创意`,-1),(0,t.createElementVNode)(`div`,os,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(d),e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(ye),{key:e.text,variant:`ghost`,size:`sm`,class:`ac-suggestion`,onClick:n=>(0,t.unref)(f)(e.text)},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icon),{size:15})),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e.text),1),(0,t.createVNode)((0,t.unref)(j),{size:14,class:`ac-suggestion-arrow`})]),_:2},1032,[`onClick`]))),128))])])),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(i).turns,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:e.id},[(0,t.unref)(p).get(e.id)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`ac-model-split`,role:`separator`,"aria-label":`从这里开始使用模型 `+(0,t.unref)(m)((0,t.unref)(p).get(e.id))},[r[8]||=(0,t.createElementVNode)(`span`,{class:`ac-model-split-line`},null,-1),(0,t.createVNode)((0,t.unref)(Te),{variant:`outline`,class:`ac-model-split-badge`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(E)),(0,t.createElementVNode)(`span`,cs,(0,t.toDisplayString)((0,t.unref)(m)((0,t.unref)(p).get(e.id))),1)]),_:2},1024),r[9]||=(0,t.createElementVNode)(`span`,{class:`ac-model-split-line`},null,-1)],8,ss)):(0,t.createCommentVNode)(``,!0),ke(e)&&!e.approval.decision?((0,t.openBlock)(),(0,t.createBlock)(zo,{key:1,approval:e.approval,onDecide:r=>(0,t.unref)(n).decide(e.approval.id,r)},null,8,[`approval`,`onDecide`])):e.kind===`approval`?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(So),{key:2,align:e.kind===`user`?`end`:`start`,class:(0,t.normalizeClass)([`ac-msg`,e.kind,{"is-editing":e.editing}])},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Co),{class:(0,t.normalizeClass)(e.kind===`user`?`ac-bubble`:`ac-bubble ac-bubble--full`)},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(h)(e),i=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:i.key},[i.type===`text`&&i.text?((0,t.openBlock)(),(0,t.createBlock)(Zr,{key:0,text:i.text},null,8,[`text`])):i.type===`thinking`&&i.text?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(To),{key:1},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Eo),{open:(0,t.unref)(g)[e.id+`:`+i.key]??(0,t.unref)(D)(e),"onUpdate:open":n=>{(0,t.unref)(g)[e.id+`:`+i.key]=n}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ko),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(jo),{status:(0,t.unref)(D)(e)?`running`:void 0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Mo),null,{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(D)(e)?`正在思考`:`思考完成`),1)]),_:2},1024)]),_:2},1032,[`status`])]),_:2},1024),(0,t.createVNode)((0,t.unref)(Do),{class:`whitespace-pre-wrap`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(i.text),1)]),_:2},1024)]),_:2},1032,[`open`,`onUpdate:open`])]),_:2},1024)):i.type===`tools`&&i.tools.length===1&&(0,t.unref)(_)(i.tools[0])?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.createVNode)((0,t.unref)(xe),{size:`sm`,class:`ac-tool-card`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Se),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Hi,{view:(0,t.unref)(v)(i.tools[0]),args:i.tools[0].arguments,output:i.tools[0].output,name:i.tools[0].name,onPreview:(0,t.unref)(y)},null,8,[`view`,`args`,`output`,`name`,`onPreview`])]),_:2},1024)]),_:2},1024),De(i.tools[0].id)?((0,t.openBlock)(),(0,t.createBlock)(zo,{key:0,approval:De(i.tools[0].id),onDecide:e=>(0,t.unref)(n).decide(De(i.tools[0].id).id,e)},null,8,[`approval`,`onDecide`])):(0,t.createCommentVNode)(``,!0)],64)):i.type===`tools`&&i.tools.length===1&&(0,t.unref)(H)(i.tools[0])?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:3},[(0,t.createVNode)(Bo,{name:i.tools[0].name,args:i.tools[0].arguments,output:i.tools[0].output,settled:i.tools[0].settled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Hi,{view:(0,t.unref)(v)(i.tools[0]),args:i.tools[0].arguments,output:i.tools[0].output,name:i.tools[0].name,onPreview:(0,t.unref)(y)},null,8,[`view`,`args`,`output`,`name`,`onPreview`])]),_:2},1032,[`name`,`args`,`output`,`settled`]),(0,t.unref)(V)(i.tools[0]).failed?((0,t.openBlock)(),(0,t.createBlock)($o,{key:0,failure:(0,t.unref)(V)(i.tools[0]),detail:i.tools[0].output,class:`mt-2`},null,8,[`failure`,`detail`])):(0,t.createCommentVNode)(``,!0),De(i.tools[0].id)?((0,t.openBlock)(),(0,t.createBlock)(zo,{key:1,approval:De(i.tools[0].id),onDecide:e=>(0,t.unref)(n).decide(De(i.tools[0].id).id,e)},null,8,[`approval`,`onDecide`])):(0,t.createCommentVNode)(``,!0)],64)):i.type===`tools`&&i.tools.length===1?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(To),{key:4},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Eo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ko),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(jo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Oo),null,{default:(0,t.withCtx)(()=>[i.tools[0].settled?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(N),{key:1,size:14})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(oe),{key:0,size:14,class:`animate-spin`}))]),_:2},1024),(0,t.createVNode)((0,t.unref)(Mo),{title:(0,t.unref)(w)(i.tools[0])},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(w)(i.tools[0])),1)]),_:2},1032,[`title`])]),_:2},1024)]),_:2},1024),(0,t.createVNode)((0,t.unref)(Do),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Hi,{view:(0,t.unref)(v)(i.tools[0]),args:i.tools[0].arguments,output:i.tools[0].output,name:i.tools[0].name,onPreview:(0,t.unref)(y)},null,8,[`view`,`args`,`output`,`name`,`onPreview`]),(0,t.unref)(V)(i.tools[0]).failed?((0,t.openBlock)(),(0,t.createBlock)($o,{key:0,failure:(0,t.unref)(V)(i.tools[0]),detail:i.tools[0].output,class:`mt-2`},null,8,[`failure`,`detail`])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(ee)(i.tools[0]).length?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(To),{key:1,class:`mt-2`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Eo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ko),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(jo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Oo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(te))]),_:1}),(0,t.createVNode)((0,t.unref)(Mo),null,{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)(`使用了 `+(0,t.toDisplayString)((0,t.unref)(ee)(i.tools[0]).length)+` 个来源`,1)]),_:2},1024)]),_:2},1024)]),_:2},1024),(0,t.createVNode)((0,t.unref)(Do),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(To),null,{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(ee)(i.tools[0]),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{key:e.url,href:e.url,target:`_blank`,rel:`noreferrer noopener`},[(0,t.createVNode)((0,t.unref)(jo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Oo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(te))]),_:1}),(0,t.createVNode)((0,t.unref)(Mo),null,{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(zn)(e)),1),r[10]||=(0,t.createElementVNode)(`span`,{class:`sr-only`},`(在新标签页打开)`,-1)]),_:2},1024),(0,t.createVNode)((0,t.unref)(Oo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(S))]),_:1})]),_:2},1024)],8,ls))),128))]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)):(0,t.createCommentVNode)(``,!0)]),_:2},1024)]),_:2},1024),De(i.tools[0].id)?((0,t.openBlock)(),(0,t.createBlock)(zo,{key:0,approval:De(i.tools[0].id),onDecide:e=>(0,t.unref)(n).decide(De(i.tools[0].id).id,e)},null,8,[`approval`,`onDecide`])):(0,t.createCommentVNode)(``,!0)]),_:2},1024)):i.type===`tools`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(To),{key:5},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Eo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ko),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(jo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Oo),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(T)(i.tools)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(oe),{key:0,size:14,class:`animate-spin`})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(N),{key:1,size:14}))]),_:2},1024),(0,t.createVNode)((0,t.unref)(Mo),null,{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(b)(i.tools)),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),(0,t.createVNode)((0,t.unref)(Do),null,{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.tools,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:e.id},[(0,t.unref)(_)(e)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(xe),{key:0,size:`sm`,class:`ac-tool-card`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Se),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Hi,{view:(0,t.unref)(v)(e),args:e.arguments,output:e.output,name:e.name,onPreview:(0,t.unref)(y)},null,8,[`view`,`args`,`output`,`name`,`onPreview`])]),_:2},1024)]),_:2},1024)):(0,t.unref)(H)(e)?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createVNode)(Bo,{name:e.name,args:e.arguments,output:e.output,settled:e.settled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Hi,{view:(0,t.unref)(v)(e),args:e.arguments,output:e.output,name:e.name,onPreview:(0,t.unref)(y)},null,8,[`view`,`args`,`output`,`name`,`onPreview`])]),_:2},1032,[`name`,`args`,`output`,`settled`]),(0,t.unref)(V)(e).failed?((0,t.openBlock)(),(0,t.createBlock)($o,{key:0,failure:(0,t.unref)(V)(e),detail:e.output,class:`mt-2`},null,8,[`failure`,`detail`])):(0,t.createCommentVNode)(``,!0)],64)):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Eo),{key:2},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ko),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(jo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Oo),null,{default:(0,t.withCtx)(()=>[e.settled?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(N),{key:1,size:14})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(oe),{key:0,size:14,class:`animate-spin`}))]),_:2},1024),(0,t.createVNode)((0,t.unref)(Mo),{title:(0,t.unref)(w)(e)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(w)(e)),1)]),_:2},1032,[`title`])]),_:2},1024)]),_:2},1024),(0,t.createVNode)((0,t.unref)(Do),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Hi,{view:(0,t.unref)(v)(e),args:e.arguments,output:e.output,name:e.name,onPreview:(0,t.unref)(y)},null,8,[`view`,`args`,`output`,`name`,`onPreview`]),(0,t.unref)(V)(e).failed?((0,t.openBlock)(),(0,t.createBlock)($o,{key:0,failure:(0,t.unref)(V)(e),detail:e.output,class:`mt-2`},null,8,[`failure`,`detail`])):(0,t.createCommentVNode)(``,!0)]),_:2},1024)]),_:2},1024))],64))),128))]),_:2},1024)]),_:2},1024),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Oe(i.tools),e=>((0,t.openBlock)(),(0,t.createBlock)(zo,{key:e.id,approval:e,onDecide:r=>(0,t.unref)(n).decide(e.id,r)},null,8,[`approval`,`onDecide`]))),128))]),_:2},1024)):(0,t.createCommentVNode)(``,!0)],64))),128)),e.kind===`user`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Ce),{key:0,align:`end`,variant:`muted`,class:(0,t.normalizeClass)([`ac-user-bubble`,{"ac-user-bubble--editing":e.editing}])},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(we),{class:`ac-user-bubble-content`},{default:(0,t.withCtx)(()=>[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,{key:0,class:(0,t.normalizeClass)([`ac-user-line`,{"is-open":(0,t.unref)(U)[e.id]}]),ref_for:!0,ref:(0,t.unref)(ie)(e.id)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(P)((0,t.unref)(I)(e.text)),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n},[e.type===`tag`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:(0,t.normalizeClass)([`ac-sent-tag`,{"is-clickable":(0,t.unref)(B)(e)}]),title:(0,t.unref)(z)(e),role:(0,t.unref)(B)(e)?`button`:void 0,tabindex:(0,t.unref)(B)(e)?0:void 0,onClick:n=>(0,t.unref)(R)(e),onKeydown:(0,t.withKeys)((0,t.withModifiers)(n=>(0,t.unref)(R)(e),[`prevent`]),[`enter`])},[(0,t.createElementVNode)(`span`,{class:`ac-sent-tag-icon`,innerHTML:e.icon,"aria-hidden":`true`},null,8,ds),(0,t.createElementVNode)(`span`,fs,(0,t.toDisplayString)(e.name),1)],42,us)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,ps,(0,t.toDisplayString)(e.value),1))],64))),128))],2)):(0,t.createCommentVNode)(``,!0),(0,t.unref)(ne)[e.id]?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(ye),{key:1,variant:`ghost`,size:`xs`,class:`ac-user-toggle`,"aria-expanded":!!(0,t.unref)(U)[e.id],"aria-label":`展开完整消息`,title:(0,t.unref)(U)[e.id]?`收起`:`展开`,onClick:n=>(0,t.unref)(re)(e.id)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(U)[e.id]?`收起`:`展开`)+` `,1),(0,t.unref)(U)[e.id]?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(M),{key:1,size:13})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(k),{key:0,size:13}))]),_:2},1032,[`aria-expanded`,`title`,`onClick`])):(0,t.createCommentVNode)(``,!0),e.editing?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,ms,[(0,t.createVNode)((0,t.unref)(ue),{size:12}),r[11]||=(0,t.createTextVNode)(`正在编辑 `,-1),(0,t.createVNode)((0,t.unref)(ye),{variant:`ghost`,size:`icon-xs`,class:`ac-editing-x`,"aria-label":`取消编辑`,onClick:r[1]||=e=>(0,t.unref)(n).cancelEdit()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:11})]),_:1})])):(0,t.createCommentVNode)(``,!0)]),_:2},1024)]),_:2},1032,[`class`])):(0,t.createCommentVNode)(``,!0),e.kind===`user`&&e.images?.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,hs,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.images,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(ye),{key:r,variant:`ghost`,size:`icon-sm`,class:`ac-user-image`,"aria-label":`查看图片 `+(Number(r)+1),onClick:r=>(0,t.unref)(_e)(n,e.images)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`img`,{src:n,alt:``},null,8,gs)]),_:2},1032,[`aria-label`,`onClick`]))),128))])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(ve)(e)&&!(0,t.unref)(O)(e)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(To),{key:2,role:`status`,"aria-live":`polite`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(jo),{status:`running`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Oo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(be),{class:`size-4`})]),_:1}),(0,t.createVNode)((0,t.unref)(Mo),null,{default:(0,t.withCtx)(()=>[...r[12]||=[(0,t.createTextVNode)(`正在思考`,-1)]]),_:1})]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0),e.aborted?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,_s,[(0,t.createVNode)((0,t.unref)(F),{size:13,"aria-hidden":`true`}),r[13]||=(0,t.createElementVNode)(`span`,null,`已停止`,-1)])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(ge)&&e.notice?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,vs,(0,t.toDisplayString)(e.notice),1)):(0,t.createCommentVNode)(``,!0),e.error?((0,t.openBlock)(),(0,t.createBlock)($o,{key:5,failure:je(e.error),detail:e.error,class:`mt-2`},null,8,[`failure`,`detail`])):(0,t.createCommentVNode)(``,!0),e.kind===`user`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(wo),{key:6,class:`ac-msg-actions`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:`ac-msg-time`,title:(0,t.unref)(ce)(e.ts)},(0,t.toDisplayString)((0,t.unref)(ae)(e.ts)),9,ys),(0,t.createVNode)((0,t.unref)(ye),{variant:`ghost`,size:`icon-xs`,class:`ac-msg-btn`,"aria-label":(0,t.unref)(le)[e.id]?`已复制`:`复制消息`,title:`复制`,onClick:n=>(0,t.unref)(de)(e.text,e.id)},{default:(0,t.withCtx)(()=>[(0,t.unref)(le)[e.id]?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(N),{key:0,size:13,class:`is-ok`})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(L),{key:1,size:11}))]),_:2},1032,[`aria-label`,`onClick`]),(0,t.createVNode)((0,t.unref)(ye),{variant:`ghost`,size:`icon-xs`,class:`ac-msg-btn`,"aria-label":`编辑消息(回填到输入框)`,title:`编辑`,onClick:n=>(0,t.unref)(fe)(e)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ue),{size:11})]),_:1},8,[`onClick`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`class`])]),_:2},1032,[`align`,`class`])),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(Pe).get(e.id)??[],(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:`pager-`+e.id+`-`+i,class:`ac-branch-nav`,role:`navigation`,"aria-label":((0,t.unref)(Pe).get(e.id)??[]).length>1?`切换分支版本 `+(i+1)+`(第 `+r.userOrdinal+` 轮之后)`:`切换分支版本`},[(0,t.createVNode)((0,t.unref)(ye),{variant:`ghost`,size:`icon-sm`,class:`ac-branch-arrow`,disabled:r.index<=0,"aria-label":`上一个版本`,title:`上一个版本 · `+r.items.map(e=>e.label).join(` / `),onClick:e=>(0,t.unref)(he)(r,-1)!==null&&(0,t.unref)(n).openSession((0,t.unref)(he)(r,-1))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(A),{size:14})]),_:1},8,[`disabled`,`title`,`onClick`]),(0,t.createVNode)((0,t.unref)(Te),{variant:`secondary`,class:`ac-branch-pos`,title:r.items[r.index]?.label??``},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.position)+` / `+(0,t.toDisplayString)(r.total),1)]),_:2},1032,[`title`]),(0,t.createVNode)((0,t.unref)(ye),{variant:`ghost`,size:`icon-sm`,class:`ac-branch-arrow`,disabled:r.index>=r.total-1,"aria-label":`下一个版本`,title:`下一个版本 · `+r.items.map(e=>e.label).join(` / `),onClick:e=>(0,t.unref)(he)(r,1)!==null&&(0,t.unref)(n).openSession((0,t.unref)(he)(r,1))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(j),{size:14})]),_:1},8,[`disabled`,`title`,`onClick`])],8,bs))),128))],64))),128)),(0,t.unref)(i).compacting?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xs,[(0,t.createVNode)((0,t.unref)(oe),{size:13,class:`ac-spin`}),r[14]||=(0,t.createElementVNode)(`span`,null,`正在压缩上下文…`,-1)])):(0,t.unref)(i).compactNotice?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ss,[(0,t.createVNode)((0,t.unref)(se),{size:14}),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(i).compactNotice),1),(0,t.createVNode)((0,t.unref)(ye),{variant:`ghost`,size:`icon-xs`,class:`ac-note-x`,"aria-label":`知道了`,onClick:r[2]||=e=>(0,t.unref)(i).compactNotice=``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1})])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(i).lastError&&!(0,t.unref)(pe)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Cs,[(0,t.createVNode)($o,{failure:je((0,t.unref)(i).lastError),detail:(0,t.unref)(i).lastError},null,8,[`failure`,`detail`]),(0,t.createVNode)((0,t.unref)(ye),{variant:`ghost`,size:`icon-xs`,class:`ac-note-x`,"aria-label":`关闭错误提示`,onClick:r[3]||=e=>(0,t.unref)(i).lastError=``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1})])):(0,t.createCommentVNode)(``,!0)])]),_:1},512)]))}}),Ts=Object.defineProperty,Es=Object.getOwnPropertySymbols,Ds=Object.prototype.hasOwnProperty,Os=Object.prototype.propertyIsEnumerable,ks=(e,t,n)=>t in e?Ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,As=(e,t)=>{for(var n in t||={})Ds.call(t,n)&&ks(e,n,t[n]);if(Es)for(var n of Es(t))Os.call(t,n)&&ks(e,n,t[n]);return e},js=(e,t)=>{var n={};for(var r in e)Ds.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Es)for(var r of Es(e))t.indexOf(r)<0&&Os.call(e,r)&&(n[r]=e[r]);return n},Ms=`[vue-draggable-plus]: `;function Ns(e){console.warn(Ms+e)}function Ps(e){console.error(Ms+e)}function Fs(e,t,n){return n>=0&&n<e.length&&e.splice(n,0,e.splice(t,1)[0]),e}function Is(e){return e.replace(/-(\w)/g,(e,t)=>t?t.toUpperCase():``)}function Ls(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[Is(n)]=e[n]),t),{})}function Rs(e,t){return Array.isArray(e)&&e.splice(t,1),e}function zs(e,t,n){return Array.isArray(e)&&e.splice(t,0,n),e}function Bs(e){return e===void 0}function Vs(e){return typeof e==`string`}function Hs(e,t,n){let r=e.children[n];e.insertBefore(t,r)}function Us(e){e.parentNode&&e.parentNode.removeChild(e)}function Ws(e,t=document){let n=null;return n=typeof t?.querySelector==`function`?(t?.querySelector)?.call(t,e):document.querySelector(e),n||Ns(`Element not found: ${e}`),n}function Gs(e,t,n=null){return function(...r){return e.apply(n,r),t.apply(n,r)}}function Ks(e,t){let n=As({},e);return Object.keys(t).forEach(r=>{n[r]?n[r]=Gs(e[r],t[r]):n[r]=t[r]}),n}function qs(e){return e instanceof HTMLElement}function Js(e,t){Object.keys(e).forEach(n=>{t(n,e[n])})}function Ys(e){return e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)}var Xs=Object.assign;function Zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Zs(Object(n),!0).forEach(function(t){ec(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $s(e){"@babel/helpers - typeof";return $s=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},$s(e)}function ec(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tc(){return tc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tc.apply(this,arguments)}function nc(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function rc(e,t){if(e==null)return{};var n=nc(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var ic=`1.15.2`;function ac(e){if(typeof window<`u`&&window.navigator)return!!navigator.userAgent.match(e)}var oc=ac(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),sc=ac(/Edge/i),cc=ac(/firefox/i),lc=ac(/safari/i)&&!ac(/chrome/i)&&!ac(/android/i),uc=ac(/iP(ad|od|hone)/i),dc=ac(/chrome/i)&&ac(/android/i),fc={capture:!1,passive:!1};function K(e,t,n){e.addEventListener(t,n,!oc&&fc)}function q(e,t,n){e.removeEventListener(t,n,!oc&&fc)}function pc(e,t){if(t){if(t[0]===`>`&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function mc(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function hc(e,t,n,r){if(e){n||=document;do{if(t!=null&&(t[0]===`>`?e.parentNode===n&&pc(e,t):pc(e,t))||r&&e===n)return e;if(e===n)break}while(e=mc(e))}return null}var gc=/\s+/g;function _c(e,t,n){e&&t&&(e.classList?e.classList[n?`add`:`remove`](t):e.className=((` `+e.className+` `).replace(gc,` `).replace(` `+t+` `,` `)+(n?` `+t:``)).replace(gc,` `))}function J(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,``):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf(`webkit`)===-1&&(t=`-webkit-`+t),r[t]=n+(typeof n==`string`?``:`px`)}}function vc(e,t){var n=``;if(typeof e==`string`)n=e;else do{var r=J(e,`transform`);r&&r!==`none`&&(n=r+` `+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function yc(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i<a;i++)n(r[i],i);return r}return[]}function bc(){return document.scrollingElement||document.documentElement}function xc(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,o,s,c,l,u,d;if(e!==window&&e.parentNode&&e!==bc()?(a=e.getBoundingClientRect(),o=a.top,s=a.left,c=a.bottom,l=a.right,u=a.height,d=a.width):(o=0,s=0,c=window.innerHeight,l=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i||=e.parentNode,!oc))do if(i&&i.getBoundingClientRect&&(J(i,`transform`)!==`none`||n&&J(i,`position`)!==`static`)){var f=i.getBoundingClientRect();o-=f.top+parseInt(J(i,`border-top-width`)),s-=f.left+parseInt(J(i,`border-left-width`)),c=o+a.height,l=s+a.width;break}while(i=i.parentNode);if(r&&e!==window){var p=vc(i||e),m=p&&p.a,h=p&&p.d;p&&(o/=h,s/=m,d/=m,u/=h,c=o+u,l=s+d)}return{top:o,left:s,bottom:c,right:l,width:d,height:u}}}function Sc(e,t,n){for(var r=Oc(e,!0),i=xc(e)[t];r;){var a=xc(r)[n],o=void 0;if(o=i>=a,!o)return r;if(r===bc())break;r=Oc(r,!1)}return!1}function Cc(e,t,n,r){for(var i=0,a=0,o=e.children;a<o.length;){if(o[a].style.display!==`none`&&o[a]!==$.ghost&&(r||o[a]!==$.dragged)&&hc(o[a],n.draggable,e,!1)){if(i===t)return o[a];i++}a++}return null}function wc(e,t){for(var n=e.lastElementChild;n&&(n===$.ghost||J(n,`display`)===`none`||t&&!pc(n,t));)n=n.previousElementSibling;return n||null}function Tc(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!==`TEMPLATE`&&e!==$.clone&&(!t||pc(e,t))&&n++;return n}function Ec(e){var t=0,n=0,r=bc();if(e)do{var i=vc(e),a=i.a,o=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function Dc(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function Oc(e,t){if(!e||!e.getBoundingClientRect)return bc();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=J(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX==`auto`||i.overflowX==`scroll`)||n.clientHeight<n.scrollHeight&&(i.overflowY==`auto`||i.overflowY==`scroll`)){if(!n.getBoundingClientRect||n===document.body)return bc();if(r||t)return n;r=!0}}while(n=n.parentNode);return bc()}function kc(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Ac(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var jc;function Mc(e,t){return function(){if(!jc){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),jc=setTimeout(function(){jc=void 0},t)}}}function Nc(){clearTimeout(jc),jc=void 0}function Pc(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Fc(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Ic(e,t,n){var r={};return Array.from(e.children).forEach(function(i){if(!(!hc(i,t.draggable,e,!1)||i.animated||i===n)){var a=xc(i);r.left=Math.min(r.left??1/0,a.left),r.top=Math.min(r.top??1/0,a.top),r.right=Math.max(r.right??-1/0,a.right),r.bottom=Math.max(r.bottom??-1/0,a.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var Lc=`Sortable`+new Date().getTime();function Rc(){var e=[],t;return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){if(!(J(t,`display`)===`none`||t===$.ghost)){e.push({target:t,rect:xc(t)});var n=Qs({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=vc(t,!0);r&&(n.top-=r.f,n.left-=r.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(Dc(e,{target:t}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(t),typeof n==`function`&&n();return}var i=!1,a=0;e.forEach(function(e){var t=0,n=e.target,o=n.fromRect,s=xc(n),c=n.prevFromRect,l=n.prevToRect,u=e.rect,d=vc(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&Ac(c,s)&&!Ac(o,s)&&(u.top-s.top)/(u.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=Bc(u,c,l,r.options)),Ac(s,o)||(n.prevFromRect=o,n.prevToRect=s,t||=r.options.animation,r.animate(n,u,s,t)),t&&(i=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},t),n.thisAnimationDuration=t)}),clearTimeout(t),i?t=setTimeout(function(){typeof n==`function`&&n()},a):typeof n==`function`&&n(),e=[]},animate:function(e,t,n,r){if(r){J(e,`transition`,``),J(e,`transform`,``);var i=vc(this.el),a=i&&i.a,o=i&&i.d,s=(t.left-n.left)/(a||1),c=(t.top-n.top)/(o||1);e.animatingX=!!s,e.animatingY=!!c,J(e,`transform`,`translate3d(`+s+`px,`+c+`px,0)`),this.forRepaintDummy=zc(e),J(e,`transition`,`transform `+r+`ms`+(this.options.easing?` `+this.options.easing:``)),J(e,`transform`,`translate3d(0,0,0)`),typeof e.animated==`number`&&clearTimeout(e.animated),e.animated=setTimeout(function(){J(e,`transition`,``),J(e,`transform`,``),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}function zc(e){return e.offsetWidth}function Bc(e,t,n,r){return Math.sqrt((t.top-e.top)**2+(t.left-e.left)**2)/Math.sqrt((t.top-n.top)**2+(t.left-n.left)**2)*r.animation}var Vc=[],Hc={initializeByDefault:!0},Uc={mount:function(e){for(var t in Hc)Hc.hasOwnProperty(t)&&!(t in e)&&(e[t]=Hc[t]);Vc.forEach(function(t){if(t.pluginName===e.pluginName)throw`Sortable: Cannot mount plugin ${e.pluginName} more than once`}),Vc.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+`Global`;Vc.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](Qs({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](Qs({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var i in Vc.forEach(function(r){var i=r.pluginName;if(!(!e.options[i]&&!r.initializeByDefault)){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,tc(n,a.defaults)}}),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);a!==void 0&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return Vc.forEach(function(r){typeof r.eventProperties==`function`&&tc(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return Vc.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]==`function`&&(r=i.optionListeners[t].call(e[i.pluginName],n))}),r}};function Wc(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,a=e.cloneEl,o=e.toEl,s=e.fromEl,c=e.oldIndex,l=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,m=e.extraEventProperties;if(t||=n&&n[Lc],t){var h,g=t.options,_=`on`+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!oc&&!sc?h=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(h=document.createEvent(`Event`),h.initEvent(r,!0,!0)),h.to=o||n,h.from=s||n,h.item=i||n,h.clone=a,h.oldIndex=c,h.newIndex=l,h.oldDraggableIndex=u,h.newDraggableIndex=d,h.originalEvent=f,h.pullMode=p?p.lastPutMode:void 0;var v=Qs(Qs({},m),Uc.getEventProperties(r,t));for(var y in v)h[y]=v[y];n&&n.dispatchEvent(h),g[_]&&g[_].call(t,h)}}var Gc=[`evt`],Kc=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=rc(n,Gc);Uc.pluginEvent.bind($)(e,t,Qs({dragEl:Y,parentEl:Jc,ghostEl:X,rootEl:Z,nextEl:Yc,lastDownEl:Xc,cloneEl:Q,cloneHidden:Zc,dragStarted:pl,putSortable:rl,activeSortable:$.active,originalEvent:r,oldIndex:Qc,oldDraggableIndex:el,newIndex:$c,newDraggableIndex:tl,hideGhostForTarget:Ml,unhideGhostForTarget:Nl,cloneNowHidden:function(){Zc=!0},cloneNowShown:function(){Zc=!1},dispatchSortableEvent:function(e){qc({sortable:t,name:e,originalEvent:r})}},i))};function qc(e){Wc(Qs({putSortable:rl,cloneEl:Q,targetEl:Y,rootEl:Z,oldIndex:Qc,oldDraggableIndex:el,newIndex:$c,newDraggableIndex:tl},e))}var Y,Jc,X,Z,Yc,Xc,Q,Zc,Qc,$c,el,tl,nl,rl,il=!1,al=!1,ol=[],sl,cl,ll,ul,dl,fl,pl,ml,hl,gl=!1,_l=!1,vl,yl,bl=[],xl=!1,Sl=[],Cl=typeof document<`u`,wl=uc,Tl=sc||oc?`cssFloat`:`float`,El=Cl&&!dc&&!uc&&`draggable`in document.createElement(`div`),Dl=function(){if(Cl){if(oc)return!1;var e=document.createElement(`x`);return e.style.cssText=`pointer-events:auto`,e.style.pointerEvents===`auto`}}(),Ol=function(e,t){var n=J(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Cc(e,0,t),a=Cc(e,1,t),o=i&&J(i),s=a&&J(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+xc(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+xc(a).width;if(n.display===`flex`)return n.flexDirection===`column`||n.flexDirection===`column-reverse`?`vertical`:`horizontal`;if(n.display===`grid`)return n.gridTemplateColumns.split(` `).length<=1?`vertical`:`horizontal`;if(i&&o.float&&o.float!==`none`){var u=o.float===`left`?`left`:`right`;return a&&(s.clear===`both`||s.clear===u)?`vertical`:`horizontal`}return i&&(o.display===`block`||o.display===`flex`||o.display===`table`||o.display===`grid`||c>=r&&n[Tl]===`none`||a&&n[Tl]===`none`&&c+l>r)?`vertical`:`horizontal`},kl=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,a=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return r===o||i===s||r+a/2===o+c/2},Al=function(e,t){var n;return ol.some(function(r){var i=r[Lc].options.emptyInsertThreshold;if(!(!i||wc(r))){var a=xc(r),o=e>=a.left-i&&e<=a.right+i,s=t>=a.top-i&&t<=a.bottom+i;if(o&&s)return n=r}}),n},jl=function(e){function t(e,n){return function(r,i,a,o){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(e==null&&(n||s))return!0;if(e==null||e===!1)return!1;if(n&&e===`clone`)return e;if(typeof e==`function`)return t(e(r,i,a,o),n)(r,i,a,o);var c=(n?r:i).options.group.name;return e===!0||typeof e==`string`&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;(!r||$s(r)!=`object`)&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Ml=function(){!Dl&&X&&J(X,`display`,`none`)},Nl=function(){!Dl&&X&&J(X,`display`,``)};Cl&&!dc&&document.addEventListener(`click`,function(e){if(al)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),al=!1,!1},!0);var Pl=function(e){if(Y){e=e.touches?e.touches[0]:e;var t=Al(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Lc]._onDragOver(n)}}},Fl=function(e){Y&&Y.parentNode[Lc]._isOutsideThisEl(e.target)};function $(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw`Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;this.el=e,this.options=t=tc({},t),e[Lc]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?`>li`:`>*`,swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ol(e,this.options)},ghostClass:`sortable-ghost`,chosenClass:`sortable-chosen`,dragClass:`sortable-drag`,ignore:`a, img`,filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData(`Text`,t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:`data-id`,delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:`sortable-fallback`,fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:$.supportPointer!==!1&&`PointerEvent`in window&&!lc,emptyInsertThreshold:5};for(var r in Uc.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in jl(t),this)i.charAt(0)===`_`&&typeof this[i]==`function`&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:El,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?K(e,`pointerdown`,this._onTapStart):(K(e,`mousedown`,this._onTapStart),K(e,`touchstart`,this._onTapStart)),this.nativeDraggable&&(K(e,`dragover`,this),K(e,`dragenter`,this)),ol.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),tc(this,Rc())}$.prototype={constructor:$,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ml=null)},_getDirection:function(e,t){return typeof this.options.direction==`function`?this.options.direction.call(this,e,t,Y):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType===`touch`&&e,s=(o||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(Gl(n),!Y&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&lc&&s&&s.tagName.toUpperCase()===`SELECT`)&&(s=hc(s,r.draggable,n,!1),!(s&&s.animated)&&Xc!==s)){if(Qc=Tc(s),el=Tc(s,r.draggable),typeof l==`function`){if(l.call(this,e,s,this)){qc({sortable:t,rootEl:c,name:`filter`,targetEl:s,toEl:n,fromEl:n}),Kc(`filter`,t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(l&&(l=l.split(`,`).some(function(r){if(r=hc(c,r.trim(),n,!1),r)return qc({sortable:t,rootEl:r,name:`filter`,targetEl:s,fromEl:n,toEl:n}),Kc(`filter`,t,{evt:e}),!0}),l)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!hc(c,r.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,a=r.options,o=i.ownerDocument,s;if(n&&!Y&&n.parentNode===i){var c=xc(n);if(Z=i,Y=n,Jc=Y.parentNode,Yc=Y.nextSibling,Xc=n,nl=a.group,$.dragged=Y,sl={target:Y,clientX:(t||e).clientX,clientY:(t||e).clientY},dl=sl.clientX-c.left,fl=sl.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Y.style[`will-change`]=`all`,s=function(){if(Kc(`delayEnded`,r,{evt:e}),$.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!cc&&r.nativeDraggable&&(Y.draggable=!0),r._triggerDragStart(e,t),qc({sortable:r,name:`choose`,originalEvent:e}),_c(Y,a.chosenClass,!0)},a.ignore.split(`,`).forEach(function(e){yc(Y,e.trim(),Rl)}),K(o,`dragover`,Pl),K(o,`mousemove`,Pl),K(o,`touchmove`,Pl),K(o,`mouseup`,r._onDrop),K(o,`touchend`,r._onDrop),K(o,`touchcancel`,r._onDrop),cc&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Y.draggable=!0),Kc(`delayStart`,this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(sc||oc))){if($.eventCanceled){this._onDrop();return}K(o,`mouseup`,r._disableDelayedDrag),K(o,`touchend`,r._disableDelayedDrag),K(o,`touchcancel`,r._disableDelayedDrag),K(o,`mousemove`,r._delayedDragTouchMoveHandler),K(o,`touchmove`,r._delayedDragTouchMoveHandler),a.supportPointer&&K(o,`pointermove`,r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Y&&Rl(Y),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;q(e,`mouseup`,this._disableDelayedDrag),q(e,`touchend`,this._disableDelayedDrag),q(e,`touchcancel`,this._disableDelayedDrag),q(e,`mousemove`,this._delayedDragTouchMoveHandler),q(e,`touchmove`,this._delayedDragTouchMoveHandler),q(e,`pointermove`,this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t||=e.pointerType==`touch`&&e,!this.nativeDraggable||t?this.options.supportPointer?K(document,`pointermove`,this._onTouchMove):t?K(document,`touchmove`,this._onTouchMove):K(document,`mousemove`,this._onTouchMove):(K(Y,`dragend`,this),K(Z,`dragstart`,this._onDragStart));try{document.selection?Kl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(il=!1,Z&&Y){Kc(`dragStarted`,this,{evt:t}),this.nativeDraggable&&K(document,`dragover`,Fl);var n=this.options;!e&&_c(Y,n.dragClass,!1),_c(Y,n.ghostClass,!0),$.active=this,e&&this._appendGhost(),qc({sortable:this,name:`start`,originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(cl){this._lastX=cl.clientX,this._lastY=cl.clientY,Ml();for(var e=document.elementFromPoint(cl.clientX,cl.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(cl.clientX,cl.clientY),e!==t);)t=e;if(Y.parentNode[Lc]._isOutsideThisEl(e),t)do{if(t[Lc]){var n=void 0;if(n=t[Lc]._onDragOver({clientX:cl.clientX,clientY:cl.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Nl()}},_onTouchMove:function(e){if(sl){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=X&&vc(X,!0),o=X&&a&&a.a,s=X&&a&&a.d,c=wl&&yl&&Ec(yl),l=(i.clientX-sl.clientX+r.x)/(o||1)+(c?c[0]-bl[0]:0)/(o||1),u=(i.clientY-sl.clientY+r.y)/(s||1)+(c?c[1]-bl[1]:0)/(s||1);if(!$.active&&!il){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(X){a?(a.e+=l-(ll||0),a.f+=u-(ul||0)):a={a:1,b:0,c:0,d:1,e:l,f:u};var d=`matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;J(X,`webkitTransform`,d),J(X,`mozTransform`,d),J(X,`msTransform`,d),J(X,`transform`,d),ll=l,ul=u,cl=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!X){var e=this.options.fallbackOnBody?document.body:Z,t=xc(Y,!0,wl,!0,e),n=this.options;if(wl){for(yl=e;J(yl,`position`)===`static`&&J(yl,`transform`)===`none`&&yl!==document;)yl=yl.parentNode;yl!==document.body&&yl!==document.documentElement?(yl===document&&(yl=bc()),t.top+=yl.scrollTop,t.left+=yl.scrollLeft):yl=bc(),bl=Ec(yl)}X=Y.cloneNode(!0),_c(X,n.ghostClass,!1),_c(X,n.fallbackClass,!0),_c(X,n.dragClass,!0),J(X,`transition`,``),J(X,`transform`,``),J(X,`box-sizing`,`border-box`),J(X,`margin`,0),J(X,`top`,t.top),J(X,`left`,t.left),J(X,`width`,t.width),J(X,`height`,t.height),J(X,`opacity`,`0.8`),J(X,`position`,wl?`absolute`:`fixed`),J(X,`zIndex`,`100000`),J(X,`pointerEvents`,`none`),$.ghost=X,e.appendChild(X),J(X,`transform-origin`,dl/parseInt(X.style.width)*100+`% `+fl/parseInt(X.style.height)*100+`%`)}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;if(Kc(`dragStart`,this,{evt:e}),$.eventCanceled){this._onDrop();return}Kc(`setupClone`,this),$.eventCanceled||(Q=Fc(Y),Q.removeAttribute(`id`),Q.draggable=!1,Q.style[`will-change`]=``,this._hideClone(),_c(Q,this.options.chosenClass,!1),$.clone=Q),n.cloneId=Kl(function(){Kc(`clone`,n),!$.eventCanceled&&(n.options.removeCloneOnHide||Z.insertBefore(Q,Y),n._hideClone(),qc({sortable:n,name:`clone`}))}),!t&&_c(Y,i.dragClass,!0),t?(al=!0,n._loopId=setInterval(n._emulateDragOver,50)):(q(document,`mouseup`,n._onDrop),q(document,`touchend`,n._onDrop),q(document,`touchcancel`,n._onDrop),r&&(r.effectAllowed=`move`,i.setData&&i.setData.call(n,r,Y)),K(document,`drop`,n),J(Y,`transform`,`translateZ(0)`)),il=!0,n._dragStartId=Kl(n._dragStarted.bind(n,t,e)),K(document,`selectstart`,n),pl=!0,lc&&J(document.body,`user-select`,`none`)},_onDragOver:function(e){var t=this.el,n=e.target,r,i,a,o=this.options,s=o.group,c=$.active,l=nl===s,u=o.sort,d=rl||c,f,p=this,m=!1;if(xl)return;function h(o,s){Kc(o,p,Qs({evt:e,isOwner:l,axis:f?`vertical`:`horizontal`,revert:a,dragRect:r,targetRect:i,canSort:u,fromSortable:d,target:n,completed:_,onMove:function(n,i){return Ll(Z,t,Y,r,n,xc(n),e,i)},changed:v},s))}function g(){h(`dragOverAnimationCapture`),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function _(r){return h(`dragOverCompleted`,{insertion:r}),r&&(l?c._hideClone():c._showClone(p),p!==d&&(_c(Y,rl?rl.options.ghostClass:c.options.ghostClass,!1),_c(Y,o.ghostClass,!0)),rl!==p&&p!==$.active?rl=p:p===$.active&&rl&&(rl=null),d===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){h(`dragOverAnimationComplete`),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===Y&&!Y.animated||n===t&&!n.animated)&&(ml=null),!o.dragoverBubble&&!e.rootEl&&n!==document&&(Y.parentNode[Lc]._isOutsideThisEl(e.target),!r&&Pl(e)),!o.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function v(){$c=Tc(Y),tl=Tc(Y,o.draggable),qc({sortable:p,name:`change`,toEl:t,newIndex:$c,newDraggableIndex:tl,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=hc(n,o.draggable,t,!0),h(`dragOver`),$.eventCanceled)return m;if(Y.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return _(!1);if(al=!1,c&&!o.disabled&&(l?u||(a=Jc!==Z):rl===this||(this.lastPutMode=nl.checkPull(this,c,Y,e))&&s.checkPut(this,c,Y,e))){if(f=this._getDirection(e,n)===`vertical`,r=xc(Y),h(`dragOverValid`),$.eventCanceled)return m;if(a)return Jc=Z,g(),this._hideClone(),h(`revert`),$.eventCanceled||(Yc?Z.insertBefore(Y,Yc):Z.appendChild(Y)),_(!0);var y=wc(t,o.draggable);if(!y||Vl(e,f,this)&&!y.animated){if(y===Y)return _(!1);if(y&&t===e.target&&(n=y),n&&(i=xc(n)),Ll(Z,t,Y,r,n,i,e,!!n)!==!1)return g(),y&&y.nextSibling?t.insertBefore(Y,y.nextSibling):t.appendChild(Y),Jc=t,v(),_(!0)}else if(y&&Bl(e,f,this)){var b=Cc(t,0,o,!0);if(b===Y)return _(!1);if(n=b,i=xc(n),Ll(Z,t,Y,r,n,i,e,!1)!==!1)return g(),t.insertBefore(Y,b),Jc=t,v(),_(!0)}else if(n.parentNode===t){i=xc(n);var x=0,S,C=Y.parentNode!==t,w=!kl(Y.animated&&Y.toRect||r,n.animated&&n.toRect||i,f),T=f?`top`:`left`,E=Sc(n,`top`,`top`)||Sc(Y,`top`,`top`),D=E?E.scrollTop:void 0;ml!==n&&(S=i[T],gl=!1,_l=!w&&o.invertSwap||C),x=Hl(e,n,i,f,w?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,_l,ml===n);var O;if(x!==0){var k=Tc(Y);do k-=x,O=Jc.children[k];while(O&&(J(O,`display`)===`none`||O===X))}if(x===0||O===n)return _(!1);ml=n,hl=x;var A=n.nextElementSibling,j=!1;j=x===1;var M=Ll(Z,t,Y,r,n,i,e,j);if(M!==!1)return(M===1||M===-1)&&(j=M===1),xl=!0,setTimeout(zl,30),g(),j&&!A?t.appendChild(Y):n.parentNode.insertBefore(Y,j?A:n),E&&Pc(E,0,D-E.scrollTop),Jc=Y.parentNode,S!==void 0&&!_l&&(vl=Math.abs(S-xc(n)[T])),v(),_(!0)}if(t.contains(Y))return _(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){q(document,`mousemove`,this._onTouchMove),q(document,`touchmove`,this._onTouchMove),q(document,`pointermove`,this._onTouchMove),q(document,`dragover`,Pl),q(document,`mousemove`,Pl),q(document,`touchmove`,Pl)},_offUpEvents:function(){var e=this.el.ownerDocument;q(e,`mouseup`,this._onDrop),q(e,`touchend`,this._onDrop),q(e,`pointerup`,this._onDrop),q(e,`touchcancel`,this._onDrop),q(document,`selectstart`,this)},_onDrop:function(e){var t=this.el,n=this.options;if($c=Tc(Y),tl=Tc(Y,n.draggable),Kc(`drop`,this,{evt:e}),Jc=Y&&Y.parentNode,$c=Tc(Y),tl=Tc(Y,n.draggable),$.eventCanceled){this._nulling();return}il=!1,_l=!1,gl=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ql(this.cloneId),ql(this._dragStartId),this.nativeDraggable&&(q(document,`drop`,this),q(t,`dragstart`,this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),lc&&J(document.body,`user-select`,``),J(Y,`transform`,``),e&&(pl&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),X&&X.parentNode&&X.parentNode.removeChild(X),(Z===Jc||rl&&rl.lastPutMode!==`clone`)&&Q&&Q.parentNode&&Q.parentNode.removeChild(Q),Y&&(this.nativeDraggable&&q(Y,`dragend`,this),Rl(Y),Y.style[`will-change`]=``,pl&&!il&&_c(Y,rl?rl.options.ghostClass:this.options.ghostClass,!1),_c(Y,this.options.chosenClass,!1),qc({sortable:this,name:`unchoose`,toEl:Jc,newIndex:null,newDraggableIndex:null,originalEvent:e}),Z===Jc?$c!==Qc&&$c>=0&&(qc({sortable:this,name:`update`,toEl:Jc,originalEvent:e}),qc({sortable:this,name:`sort`,toEl:Jc,originalEvent:e})):($c>=0&&(qc({rootEl:Jc,name:`add`,toEl:Jc,fromEl:Z,originalEvent:e}),qc({sortable:this,name:`remove`,toEl:Jc,originalEvent:e}),qc({rootEl:Jc,name:`sort`,toEl:Jc,fromEl:Z,originalEvent:e}),qc({sortable:this,name:`sort`,toEl:Jc,originalEvent:e})),rl&&rl.save()),$.active&&(($c==null||$c===-1)&&($c=Qc,tl=el),qc({sortable:this,name:`end`,toEl:Jc,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Kc(`nulling`,this),Z=Y=Jc=X=Yc=Q=Xc=Zc=sl=cl=pl=$c=tl=Qc=el=ml=hl=rl=nl=$.dragged=$.ghost=$.clone=$.active=null,Sl.forEach(function(e){e.checked=!0}),Sl.length=ll=ul=0},handleEvent:function(e){switch(e.type){case`drop`:case`dragend`:this._onDrop(e);break;case`dragenter`:case`dragover`:Y&&(this._onDragOver(e),Il(e));break;case`selectstart`:e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,a=this.options;r<i;r++)t=n[r],hc(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||Wl(t));return e},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var i=r.children[t];hc(i,this.options.draggable,r,!1)&&(n[e]=i)},this),t&&this.captureAnimationState(),e.forEach(function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return hc(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var r=Uc.modifyOption(this,e,t);r===void 0?n[e]=t:n[e]=r,e===`group`&&jl(n)},destroy:function(){Kc(`destroy`,this);var e=this.el;e[Lc]=null,q(e,`mousedown`,this._onTapStart),q(e,`touchstart`,this._onTapStart),q(e,`pointerdown`,this._onTapStart),this.nativeDraggable&&(q(e,`dragover`,this),q(e,`dragenter`,this)),Array.prototype.forEach.call(e.querySelectorAll(`[draggable]`),function(e){e.removeAttribute(`draggable`)}),this._onDrop(),this._disableDelayedDragEvents(),ol.splice(ol.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Zc){if(Kc(`hideClone`,this),$.eventCanceled)return;J(Q,`display`,`none`),this.options.removeCloneOnHide&&Q.parentNode&&Q.parentNode.removeChild(Q),Zc=!0}},_showClone:function(e){if(e.lastPutMode!==`clone`){this._hideClone();return}if(Zc){if(Kc(`showClone`,this),$.eventCanceled)return;Y.parentNode==Z&&!this.options.group.revertClone?Z.insertBefore(Q,Y):Yc?Z.insertBefore(Q,Yc):Z.appendChild(Q),this.options.group.revertClone&&this.animate(Y,Q),J(Q,`display`,``),Zc=!1}}};function Il(e){e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),e.cancelable&&e.preventDefault()}function Ll(e,t,n,r,i,a,o,s){var c,l=e[Lc],u=l.options.onMove,d;return window.CustomEvent&&!oc&&!sc?c=new CustomEvent(`move`,{bubbles:!0,cancelable:!0}):(c=document.createEvent(`Event`),c.initEvent(`move`,!0,!0)),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=i||t,c.relatedRect=a||xc(t),c.willInsertAfter=s,c.originalEvent=o,e.dispatchEvent(c),u&&(d=u.call(l,c,o)),d}function Rl(e){e.draggable=!1}function zl(){xl=!1}function Bl(e,t,n){var r=xc(Cc(n.el,0,n.options,!0)),i=Ic(n.el,n.options,X),a=10;return t?e.clientX<i.left-a||e.clientY<r.top&&e.clientX<r.right:e.clientY<i.top-a||e.clientY<r.bottom&&e.clientX<r.left}function Vl(e,t,n){var r=xc(wc(n.el,n.options.draggable)),i=Ic(n.el,n.options,X),a=10;return t?e.clientX>i.right+a||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+a||e.clientX>r.right&&e.clientY>r.top}function Hl(e,t,n,r,i,a,o,s){var c=r?e.clientY:e.clientX,l=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!o){if(s&&vl<l*i){if(!gl&&(hl===1?c>u+l*a/2:c<d-l*a/2)&&(gl=!0),gl)f=!0;else if(hl===1?c<u+vl:c>d-vl)return-hl}else if(c>u+l*(1-i)/2&&c<d-l*(1-i)/2)return Ul(t)}return f||=o,f&&(c<u+l*a/2||c>d-l*a/2)?c>u+l/2?1:-1:0}function Ul(e){return Tc(Y)<Tc(e)?1:-1}function Wl(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Gl(e){Sl.length=0;for(var t=e.getElementsByTagName(`input`),n=t.length;n--;){var r=t[n];r.checked&&Sl.push(r)}}function Kl(e){return setTimeout(e,0)}function ql(e){return clearTimeout(e)}Cl&&K(document,`touchmove`,function(e){($.active||il)&&e.cancelable&&e.preventDefault()}),$.utils={on:K,off:q,css:J,find:yc,is:function(e,t){return!!hc(e,t,e,!1)},extend:kc,throttle:Mc,closest:hc,toggleClass:_c,clone:Fc,index:Tc,nextTick:Kl,cancelNextTick:ql,detectDirection:Ol,getChild:Cc},$.get=function(e){return e[Lc]},$.mount=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw`Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;e.utils&&($.utils=Qs(Qs({},$.utils),e.utils)),Uc.mount(e)})},$.create=function(e,t){return new $(e,t)},$.version=ic;var Jl=[],Yl,Xl,Zl=!1,Ql,$l,eu,tu;function nu(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)e.charAt(0)===`_`&&typeof this[e]==`function`&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?K(document,`dragover`,this._handleAutoScroll):this.options.supportPointer?K(document,`pointermove`,this._handleFallbackAutoScroll):t.touches?K(document,`touchmove`,this._handleFallbackAutoScroll):K(document,`mousemove`,this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?q(document,`dragover`,this._handleAutoScroll):(q(document,`pointermove`,this._handleFallbackAutoScroll),q(document,`touchmove`,this._handleFallbackAutoScroll),q(document,`mousemove`,this._handleFallbackAutoScroll)),iu(),ru(),Nc()},nulling:function(){eu=Xl=Yl=Zl=tu=Ql=$l=null,Jl.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,i);if(eu=e,t||this.options.forceAutoScrollFallback||sc||oc||lc){au(e,this.options,a,t);var o=Oc(a,!0);Zl&&(!tu||r!==Ql||i!==$l)&&(tu&&iu(),tu=setInterval(function(){var a=Oc(document.elementFromPoint(r,i),!0);a!==o&&(o=a,ru()),au(e,n.options,a,t)},10),Ql=r,$l=i)}else{if(!this.options.bubbleScroll||Oc(a,!0)===bc()){ru();return}au(e,this.options,Oc(a,!1),!1)}}},tc(e,{pluginName:`scroll`,initializeByDefault:!0})}function ru(){Jl.forEach(function(e){clearInterval(e.pid)}),Jl=[]}function iu(){clearInterval(tu)}var au=Mc(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,o=t.scrollSensitivity,s=t.scrollSpeed,c=bc(),l=!1,u;Xl!==n&&(Xl=n,ru(),Yl=t.scroll,u=t.scrollFn,Yl===!0&&(Yl=Oc(n,!0)));var d=0,f=Yl;do{var p=f,m=xc(p),h=m.top,g=m.bottom,_=m.left,v=m.right,y=m.width,b=m.height,x=void 0,S=void 0,C=p.scrollWidth,w=p.scrollHeight,T=J(p),E=p.scrollLeft,D=p.scrollTop;p===c?(x=y<C&&(T.overflowX===`auto`||T.overflowX===`scroll`||T.overflowX===`visible`),S=b<w&&(T.overflowY===`auto`||T.overflowY===`scroll`||T.overflowY===`visible`)):(x=y<C&&(T.overflowX===`auto`||T.overflowX===`scroll`),S=b<w&&(T.overflowY===`auto`||T.overflowY===`scroll`));var O=x&&(Math.abs(v-i)<=o&&E+y<C)-(Math.abs(_-i)<=o&&!!E),k=S&&(Math.abs(g-a)<=o&&D+b<w)-(Math.abs(h-a)<=o&&!!D);if(!Jl[d])for(var A=0;A<=d;A++)Jl[A]||(Jl[A]={});(Jl[d].vx!=O||Jl[d].vy!=k||Jl[d].el!==p)&&(Jl[d].el=p,Jl[d].vx=O,Jl[d].vy=k,clearInterval(Jl[d].pid),(O!=0||k!=0)&&(l=!0,Jl[d].pid=setInterval(function(){r&&this.layer===0&&$.active._onTouchMove(eu);var t=Jl[this.layer].vy?Jl[this.layer].vy*s:0,n=Jl[this.layer].vx?Jl[this.layer].vx*s:0;typeof u==`function`&&u.call($.dragged.parentNode[Lc],n,t,e,eu,Jl[this.layer].el)!==`continue`||Pc(Jl[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=Oc(f,!1)));Zl=l}},30),ou=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var c=n||i;o();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(l.clientX,l.clientY);s(),c&&!c.el.contains(u)&&(a(`spill`),this.onSpill({dragEl:r,putSortable:n}))}};function su(){}su.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Cc(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:ou},tc(su,{pluginName:`revertOnSpill`});function cu(){}cu.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:ou},tc(cu,{pluginName:`removeOnSpill`}),$.mount(new nu),$.mount(cu,su);function lu(e){return e==null?e:JSON.parse(JSON.stringify(e))}function uu(e){(0,t.getCurrentInstance)()&&(0,t.onUnmounted)(e)}function du(e){(0,t.getCurrentInstance)()?(0,t.onMounted)(e):(0,t.nextTick)(e)}var fu=null,pu=null;function mu(e=null,t=null){fu=e,pu=t}function hu(){return{data:fu,clonedData:pu}}var gu=Symbol(`cloneElement`);function _u(...e){let n=(0,t.getCurrentInstance)()?.proxy,r=null,i=e[0],[,a,o]=e;Array.isArray((0,t.unref)(a))||(o=a,a=null);let s=null,{immediate:c=!0,clone:l=lu,forceFallback:u,fallbackOnBody:d,customUpdate:f}=(0,t.unref)(o)??{};function p(e){let{from:n,oldIndex:i,item:o}=e,s=Array.from(n.childNodes);r=u&&!d?s.slice(0,-1):s;let c=(0,t.unref)((0,t.unref)(a)?.[i]),f=l(c);mu(c,f),o[gu]=f}function m(e){let n=e.item[gu];if(!Bs(n)){if(Us(e.item),(0,t.isRef)(a)){let r=[...(0,t.unref)(a)];a.value=zs(r,e.newDraggableIndex,n);return}zs((0,t.unref)(a),e.newDraggableIndex,n)}}function h(e){let{from:n,item:r,oldIndex:i,oldDraggableIndex:o,pullMode:s,clone:c}=e;if(Hs(n,r,i),s===`clone`){Us(c);return}if((0,t.isRef)(a)){let e=[...(0,t.unref)(a)];a.value=Rs(e,o);return}Rs((0,t.unref)(a),o)}function g(e){if(f){f(e);return}let{from:n,item:r,oldIndex:i,oldDraggableIndex:o,newDraggableIndex:s}=e;if(Us(r),Hs(n,r,i),(0,t.isRef)(a)){let e=[...(0,t.unref)(a)];a.value=Fs(e,o,s);return}Fs((0,t.unref)(a),o,s)}function _(e){let{newIndex:n,oldIndex:i,from:a,to:o}=e,s=null,c=n===i&&a===o;try{if(c){let e=null;r?.some((t,n)=>{if(e&&r?.length!==o.childNodes.length)return a.insertBefore(e,t.nextSibling),!0;let i=o.childNodes[n];e=o?.replaceChild(t,i)})}}catch(e){s=e}finally{r=null}(0,t.nextTick)(()=>{if(mu(),s)throw s})}let v={onUpdate:g,onStart:p,onAdd:m,onRemove:h,onEnd:_};function y(e){let r=(0,t.unref)(i);return e||=Vs(r)?Ws(r,n?.$el):r,e&&!qs(e)&&(e=e.$el),e||Ps(`Root element not found`),e}function b(){let e=(0,t.unref)(o)??{},{immediate:n,clone:r}=e,i=js(e,[`immediate`,`clone`]);return Js(i,(e,t)=>{Ys(e)&&(i[e]=(e,...n)=>(Xs(e,hu()),t(e,...n)))}),Ks(a===null?{}:v,i)}let x=e=>{e=y(e),s&&S.destroy(),s=new $(e,b())};(0,t.watch)(()=>o,()=>{s&&Js(b(),(e,t)=>{s?.option(e,t)})},{deep:!0});let S={option:(e,t)=>s?.option(e,t),destroy:()=>{s?.destroy(),s=null},save:()=>s?.save(),toArray:()=>s?.toArray(),closest:(...e)=>s?.closest(...e)};return du(()=>{c&&x()}),uu(S.destroy),As({start:x,pause:()=>S?.option(`disabled`,!0),resume:()=>S?.option(`disabled`,!1)},S)}var vu=[`update`,`start`,`add`,`remove`,`choose`,`unchoose`,`end`,`sort`,`filter`,`clone`,`move`,`change`],yu=(0,t.defineComponent)({name:`VueDraggable`,model:{prop:`modelValue`,event:`update:modelValue`},props:[`clone`,`animation`,`ghostClass`,`group`,`sort`,`disabled`,`store`,`handle`,`draggable`,`swapThreshold`,`invertSwap`,`invertedSwapThreshold`,`removeCloneOnHide`,`direction`,`chosenClass`,`dragClass`,`ignore`,`filter`,`preventOnFilter`,`easing`,`setData`,`dropBubble`,`dragoverBubble`,`dataIdAttr`,`delay`,`delayOnTouchOnly`,`touchStartThreshold`,`forceFallback`,`fallbackClass`,`fallbackOnBody`,`fallbackTolerance`,`fallbackOffset`,`supportPointer`,`emptyInsertThreshold`,`scroll`,`forceAutoScrollFallback`,`scrollSensitivity`,`scrollSpeed`,`bubbleScroll`,`modelValue`,`tag`,`target`,`customUpdate`,...vu.map(e=>`on${e.replace(/^\S/,e=>e.toUpperCase())}`)],emits:[`update:modelValue`,...vu],setup(e,{slots:n,emit:r,expose:i,attrs:a}){let o=vu.reduce((e,t)=>{let n=`on${t.replace(/^\S/,e=>e.toUpperCase())}`;return e[n]=(...e)=>r(t,...e),e},{}),s=(0,t.computed)(()=>{let n=(0,t.toRefs)(e),{modelValue:r}=n,i=js(n,[`modelValue`]),s=Object.entries(i).reduce((e,[n,r])=>{let i=(0,t.unref)(r);return i!==void 0&&(e[n]=i),e},{});return As(As({},o),Ls(As(As({},a),s)))}),c=(0,t.computed)({get:()=>e.modelValue,set:e=>r(`update:modelValue`,e)}),l=(0,t.ref)(),u=(0,t.reactive)(_u(e.target||l,c,s));return i(u),()=>(0,t.h)(e.tag||`div`,{ref:l},(n?.default)?.call(n,u))}}),bu={mounted:`mounted`,unmounted:`unmounted`};bu.mounted,bu.unmounted;var xu={class:`ac-panel-head`},Su={class:`ac-panel-head-top`},Cu={class:`ac-panel-heading`},wu={class:`ac-panel-count`},Tu={class:`ac-view-tabs`,role:`tablist`,"aria-label":`面板布局`},Eu=[`aria-selected`],Du=[`aria-selected`],Ou={key:0,class:`ac-menu-empty`},ku={class:`ac-view-stack`},Au={key:0,class:`ac-model-grid`},ju=[`title`,`innerHTML`],Mu={class:`ac-model-copy`},Nu={class:`ac-model-card-top`},Pu={class:`ac-model-id`},Fu={key:1,class:`ac-check-mark`,"aria-hidden":`true`},Iu={class:`ac-model-meta`},Lu={key:1,class:`ac-empty-state`},Ru={class:`ac-empty-icon`},zu={class:`ac-split-rail`,"aria-label":`模型平台`},Bu={key:0,class:`ac-rail-icon`,"aria-hidden":`true`},Vu=[`title`,`innerHTML`],Hu={class:`ac-rail-name`},Uu={class:`ac-rail-count`},Wu={class:`ac-split-main`},Gu={key:0,class:`ac-model-row-list`},Ku=[`title`,`innerHTML`],qu={class:`ac-model-copy`},Ju={class:`ac-model-id`},Yu={class:`ac-model-meta`},Xu={class:`ac-model-badges`},Zu={key:0,class:`ac-check-mark`,"aria-hidden":`true`},Qu={key:1,class:`ac-empty-state`},$u={class:`ac-empty-icon`},ed=G((0,t.defineComponent)({__name:`ModelPicker`,props:{models:{},current:{default:null},usableOnly:{type:Boolean,default:!0},compact:{type:Boolean,default:!1},view:{}},emits:[`pick`,`update:view`],setup(e,{expose:n,emit:i}){let a=e,o=i,s=(0,r.useUiComponent)(`Button`),c=(0,r.useUiComponent)(`Badge`),l=(0,r.useUiComponent)(`InputGroup`),u=(0,r.useUiComponent)(`InputGroupAddon`),d=(0,r.useUiComponent)(`InputGroupButton`),f=(0,r.useUiComponent)(`InputGroupInput`),p=(0,t.computed)(()=>a.usableOnly?a.models.filter(e=>e.hasKey):a.models.slice()),m=(0,t.ref)(``),h=(0,t.ref)(`card`),g=(0,t.computed)(()=>a.view??h.value),_=(0,t.ref)(`all`);function v(e){if(e!==`split`&&e!==`card`)return;let t=e;h.value!==t&&(h.value=t),o(`update:view`,t)}function y(e){return e.contextWindow?Math.round(e.contextWindow/1e3)+`K`:e.isVision?`视觉`:``}function b(e){return a.current?.provider===e.provider&&a.current?.modelId===e.modelId}function x(e){return dr(e.modelId,e.provider)}function S(e){return hr(x(e))}function C(e){return mr(x(e))}let w=(0,t.computed)(()=>{let e=[];for(let t of p.value){let n=x(t),r=e.find(e=>e.key===n);r?r.count++:e.push({key:n,label:hr(n),count:1})}return[{key:`all`,label:`全部平台`,count:p.value.length},...e]}),T=(0,t.computed)(()=>{let e=m.value.trim().toLowerCase();return p.value.filter(t=>{if(_.value!==`all`&&x(t)!==_.value)return!1;if(!e)return!0;let n=hr(x(t));return(t.modelId+` `+t.provider+` `+y(t)+` `+n).toLowerCase().includes(e)})}),E=(0,t.ref)(null);function D(e){if(!e)return null;if(e instanceof HTMLElement)return e;let t=e;return typeof t.rootElement==`function`?t.rootElement():null}function k(){let e=D(E.value),t=(e??document).querySelector(`[role="option"][aria-selected="true"]`),n=e=>e?.querySelector(`[data-slot="scroll-area-viewport"]`)??e??null,r=n(t?.closest(`.ac-split-scroll, .ac-menu-scroll`)??n(e));if(!r||r.clientHeight<=0)return;let i=t&&r.contains(t)?t:r.querySelector(`[role="option"][aria-selected="true"]`);if(!i)return;let a=i.getBoundingClientRect().top-r.getBoundingClientRect().top+r.scrollTop;r.scrollTop=_r({scrollTop:r.scrollTop,scrollHeight:r.scrollHeight,clientHeight:r.clientHeight},{top:a,height:i.offsetHeight},4);let o=i.getBoundingClientRect(),s=r.getBoundingClientRect();o.bottom>s.bottom?r.scrollTop+=o.bottom-s.bottom:o.top<s.top&&(r.scrollTop-=s.top-o.top)}let A=null;function j(){k(),A!==null&&window.clearTimeout(A),A=window.setTimeout(()=>{A=null,k()},200)}let M=null,N=null;function P(){M?.disconnect(),M=null;let e=D(E.value),t=e?.querySelector(`.ac-split-scroll [data-slot="scroll-area-viewport"]`)??e?.querySelector(`[data-slot="scroll-area-viewport"]`)??null;!t||typeof ResizeObserver>`u`||(M=new ResizeObserver(()=>{N!==null&&window.clearTimeout(N),N=window.setTimeout(()=>{N=null,k()},80)}),M.observe(t))}function F(){(0,t.nextTick)(()=>{j(),P()})}(0,t.watch)(()=>[a.current?.provider,a.current?.modelId,a.models.length],()=>F()),(0,t.watch)(g,()=>F()),(0,t.watch)(_,()=>F()),(0,t.onBeforeUnmount)(()=>{M?.disconnect(),M=null,N!==null&&window.clearTimeout(N),A!==null&&window.clearTimeout(A)});function I(e){o(`pick`,{provider:e.provider,modelId:e.modelId})}return n({refreshLayout:F}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`ac-panel ac-model-panel mp-root`,{"is-split":g.value===`split`}]),role:`listbox`,"aria-label":`选择模型`},[(0,t.createElementVNode)(`div`,xu,[(0,t.createElementVNode)(`div`,Su,[(0,t.createElementVNode)(`div`,Cu,[n[4]||=(0,t.createElementVNode)(`span`,{class:`ac-panel-title`},`模型`,-1),(0,t.createElementVNode)(`span`,wu,(0,t.toDisplayString)(p.value.length),1)]),(0,t.createElementVNode)(`div`,Tu,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`ac-view-tab`,{"is-active":g.value===`card`}]),"aria-selected":g.value===`card`,role:`tab`,onClick:n[0]||=e=>v(`card`)},`卡片`,10,Eu),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`ac-view-tab`,{"is-active":g.value===`split`}]),"aria-selected":g.value===`split`,role:`tab`,onClick:n[1]||=e=>v(`split`)},`分栏`,10,Du)])]),(0,t.createVNode)((0,t.unref)(l),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(u),{align:`inline-start`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ve),{size:14,"aria-hidden":`true`})]),_:1}),(0,t.createVNode)((0,t.unref)(f),{modelValue:m.value,"onUpdate:modelValue":n[2]||=e=>m.value=e,type:`text`,name:`mp-model-search`,"data-ac-search":`model`,placeholder:`搜索模型或平台`,"aria-label":`搜索模型或平台`,autocomplete:`off`,spellcheck:`false`},null,8,[`modelValue`]),m.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(u),{key:0,align:`inline-end`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(d),{size:`icon-xs`,"aria-label":`清空搜索`,onClick:n[3]||=e=>m.value=``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae))]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1})]),p.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,ref_key:`scrollRef`,ref:E,"data-model-scroll":``,class:`ac-menu-scroll ac-panel-body`},[(0,t.createElementVNode)(`div`,ku,[(0,t.createVNode)(Wi,{class:(0,t.normalizeClass)([`ac-panel-scroll ac-view-pane`,{"is-active":g.value===`card`}]),"body-class":`ac-panel-scroll-body ac-model-scroll-body`},{default:(0,t.withCtx)(()=>[T.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Au,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(T.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(s),{key:e.provider+`/`+e.modelId,variant:`ghost`,size:`sm`,role:`option`,"aria-selected":b(e),onClick:t=>I(e)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:`ac-model-brand`,title:S(e),"aria-hidden":`true`,innerHTML:C(e)},null,8,ju),(0,t.createElementVNode)(`span`,Mu,[(0,t.createElementVNode)(`span`,Nu,[(0,t.createElementVNode)(`span`,Pu,(0,t.toDisplayString)(e.modelId),1),e.isDefault?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(c),{key:0,variant:`secondary`},{default:(0,t.withCtx)(()=>[...n[5]||=[(0,t.createTextVNode)(`默认`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0),b(e)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Fu,[(0,t.createVNode)((0,t.unref)(O),{size:16,"stroke-width":2})])):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`span`,Iu,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(S(e)),1),n[6]||=(0,t.createElementVNode)(`span`,{class:`ac-dot-sep`,"aria-hidden":`true`},null,-1),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(y(e)),1)])])]),_:2},1032,[`aria-selected`,`onClick`]))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Lu,[(0,t.createElementVNode)(`span`,Ru,[(0,t.createVNode)((0,t.unref)(ve),{size:18})]),n[7]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-title`},`没有找到模型`,-1),n[8]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-desc`},`换个模型名或平台名试试。`,-1)]))]),_:1},8,[`class`]),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`ac-view-pane ac-split`,{"is-active":g.value===`split`}])},[(0,t.createElementVNode)(`aside`,zu,[n[9]||=(0,t.createElementVNode)(`div`,{class:`ac-rail-label`},`平台`,-1),(0,t.createVNode)(Wi,{class:`ac-rail-scroll`,"body-class":`ac-rail-scroll-body`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(w.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(s),{key:e.key,variant:`ghost`,size:`sm`,"aria-pressed":_.value===e.key,onClick:t=>_.value=e.key},{default:(0,t.withCtx)(()=>[e.key===`all`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Bu,[(0,t.createVNode)((0,t.unref)(re),{size:14})])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,class:`ac-rail-brand`,title:e.label,"aria-hidden":`true`,innerHTML:(0,t.unref)(mr)(e.key)},null,8,Vu)),(0,t.createElementVNode)(`span`,Hu,(0,t.toDisplayString)(e.label),1),(0,t.createElementVNode)(`span`,Uu,(0,t.toDisplayString)(e.count),1)]),_:2},1032,[`aria-pressed`,`onClick`]))),128))]),_:1})]),(0,t.createElementVNode)(`div`,Wu,[(0,t.createVNode)(Wi,{class:`ac-split-scroll`,"body-class":`ac-split-scroll-body`},{default:(0,t.withCtx)(()=>[T.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Gu,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(T.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(s),{key:e.provider+`/`+e.modelId,variant:`ghost`,size:`sm`,role:`option`,"aria-selected":b(e),onClick:t=>I(e)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:`ac-model-brand`,title:S(e),"aria-hidden":`true`,innerHTML:C(e)},null,8,Ku),(0,t.createElementVNode)(`span`,qu,[(0,t.createElementVNode)(`span`,Ju,(0,t.toDisplayString)(e.modelId),1),(0,t.createElementVNode)(`span`,Yu,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(S(e)),1),n[10]||=(0,t.createElementVNode)(`span`,{class:`ac-dot-sep`,"aria-hidden":`true`},null,-1),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(y(e)),1)])]),(0,t.createElementVNode)(`span`,Xu,[e.isDefault?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(c),{key:0,variant:`secondary`},{default:(0,t.withCtx)(()=>[...n[11]||=[(0,t.createTextVNode)(`默认`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0)]),b(e)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Zu,[(0,t.createVNode)((0,t.unref)(O),{size:16,"stroke-width":2})])):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`aria-selected`,`onClick`]))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Qu,[(0,t.createElementVNode)(`span`,$u,[(0,t.createVNode)((0,t.unref)(ve),{size:18})]),n[12]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-title`},`没有找到模型`,-1),n[13]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-desc`},`换个模型名或平台名试试。`,-1)]))]),_:1})])],2)])],512)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ou,`没有可用模型(先去设置里配一个)`))],2))}}),[[`__scopeId`,`data-v-a0688518`]]),td={class:`ac-composer`},nd={key:0,class:`ac-notify`,role:`status`},rd={key:1,class:`ac-pending-box`},id={class:`ac-pending-list`,role:`list`,"aria-label":`目标与排队消息`},ad=[`onPointerenter`,`onPointerleave`],od={key:0,class:`ac-queue-lead-swap`,"aria-hidden":`true`},sd={class:`ac-pending-lead is-rest`},cd=[`aria-label`],ld={key:1,class:`ac-pending-lead`,"aria-hidden":`true`},ud=[`src`,`title`,`onClick`],dd=[`title`],fd=[`title`],pd=[`title`],md={key:1},hd={class:`ac-queue-actions`},gd={key:1,class:`ac-pending-lead`,"aria-hidden":`true`},_d=[`src`,`title`],vd=[`title`],yd=[`title`],bd=[`title`],xd={key:1},Sd={class:`ac-goal-round`},Cd={class:`ac-goal-ratio`,title:`已用 / 总预算(点数字可改,回车生效)`},wd={class:`ac-input-box`},Td={class:`ac-queue-pause-cnt`},Ed={key:1,class:`ac-goal-mark`},Dd={class:`ac-goal-token`},Od={key:2,class:`ac-editing-mark`,role:`status`},kd={key:3,class:`ac-attach-list`},Ad=[`src`,`aria-label`,`onClick`],jd={class:`ac-editor`},Md={key:0,class:`ac-placeholder`,"aria-hidden":`true`},Nd={class:`ac-toolbar`},Pd={key:0,class:`ac-menu-hint`},Fd={class:`ac-pill-text`},Id={class:`ac-menu-hint`},Ld={key:0,class:`ac-menu-empty`},Rd={class:`ac-review-panel`,role:`listbox`,"aria-label":`选择授权方式`},zd={class:`ac-panel-head`},Bd={class:`ac-panel-head-top ac-panel-head-top--review`},Vd={class:`ac-review-state`},Hd={class:`ac-review-body`},Ud={class:`ac-review-list`,role:`radiogroup`,"aria-label":`审核模式`},Wd={class:`ac-option-title`},Gd={class:`ac-option-label`},Kd={class:`ac-check-mark ac-review-check`,"aria-hidden":`true`},qd={class:`ac-option-desc`},Jd={class:`ac-panel-head`},Yd={class:`ac-panel-head-top`},Xd={class:`ac-panel-heading`},Zd={class:`ac-panel-count`},Qd={key:0,class:`ac-view-tabs`,role:`tablist`,"aria-label":`面板布局`},$d=[`aria-selected`],ef=[`aria-selected`],tf={class:`ac-panel-body`},nf={key:0,class:`ac-empty-state`},rf={class:`ac-empty-icon`},af={key:1,class:`ac-view-stack`},of={key:0,class:`ac-skill-grid`},sf=[`title`,`onClick`,`onKeydown`],cf=[`innerHTML`],lf={class:`ac-skill-copy`},uf={class:`ac-skill-name-row`},df={class:`ac-skill-name`},ff={class:`ac-skill-desc`},pf={class:`ac-skill-meta`},mf={key:1,class:`ac-empty-state`},hf={class:`ac-empty-icon`},gf={class:`ac-split-rail`,"aria-label":`技能分类`},_f={class:`ac-rail-icon`,"aria-hidden":`true`},vf={class:`ac-rail-name`},yf={class:`ac-rail-count`},bf={class:`ac-split-main`},xf={key:0,class:`ac-skill-grid ac-skill-grid--split`},Sf=[`title`,`onClick`,`onKeydown`],Cf=[`innerHTML`],wf={class:`ac-skill-tile-body`},Tf={class:`ac-tile-top`},Ef={class:`ac-skill-name`},Df={class:`ac-skill-desc`},Of={class:`ac-skill-meta`},kf={key:1,class:`ac-empty-state`},Af={class:`ac-empty-icon`},jf={class:`ac-panel ac-mcp-panel`,role:`listbox`,"aria-label":`选择 MCP`},Mf={class:`ac-panel-head`},Nf={class:`ac-panel-head-top`},Pf={class:`ac-panel-heading`},Ff={class:`ac-panel-count`},If={class:`ac-panel-tools`},Lf={class:`ac-detect-label`},Rf={class:`ac-panel-body`},zf={key:0,class:`ac-mcp-list`},Bf={class:`ac-mcp-card`},Vf=[`aria-pressed`,`aria-label`,`title`,`onClick`],Hf=[`title`,`aria-expanded`,`onClick`],Uf={class:`ac-server-icon`,"aria-hidden":`true`},Wf=[`innerHTML`],Gf={class:`ac-server-copy`},Kf={class:`ac-server-name`},qf={class:`ac-server-desc`},Jf={class:`ac-server-side`},Yf=[`title`],Xf={key:1,class:`ac-status`},Zf=[`aria-expanded`,`onClick`,`onKeydown`],Qf={key:0,class:`ac-mcp-tools`},$f={key:0,class:`ac-mcp-tools-empty`},ep={key:1,class:`ac-tool-list`},tp=[`aria-checked`,`title`,`onClick`],np={class:`ac-tool-radio`,"aria-hidden":`true`},rp={class:`ac-tool-copy`},ip={class:`ac-tool-name`},ap={class:`ac-tool-desc`},op={key:1,class:`ac-empty-state`},sp={class:`ac-empty-icon`},cp={key:2,class:`ac-panel-note`},lp={class:`ac-panel-foot`},up={class:`ac-selection-summary`},dp={class:`ac-selected-number`},fp={class:`ac-selected-number`},pp={key:1,class:`ac-ctxwrap`},mp=[`aria-label`,`title`],hp={width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,"aria-hidden":`true`},gp=[`stroke-dasharray`,`stroke-dashoffset`],_p={class:`flex items-center justify-between gap-3 text-sm`},vp={class:`text-muted-foreground`},yp={class:`text-xs text-muted-foreground`},bp={key:0,class:`ac-stop-square`,"aria-hidden":`true`},xp=G((0,t.defineComponent)({__name:`AgentComposer`,setup(e){let n=(0,t.inject)(`agentConversation`),a=n.mcpProbing,{agent:o,s,prompt:c,editorRef:l,attached:u,queue:d,pending:f,showNotifyTip:p,enableNotify:m,notifyDismissed:h,onQueueReorder:g,hoverRowId:_,rowMenuId:v,openPreview:y,previewItem:b,userSegments:x,displayUserText:S,onSegClick:T,segTitle:D,segClickable:A,cancelEditQueue:j,steerItem:M,removeItem:N,closeItem:P,beginEditQueue:F,goalRow:I,editingGoal:L,startEditGoalRow:B,commitGoalBudget:ee,onGoalBudgetKeydown:te,onGoalBudgetBlur:U,onGoalEditFocus:ne,formatToken:ie,tokenUnit:oe,budgetTokenText:ce,goalMark:pe,goalMarkText:ge,clearGoalMark:_e,editingKind:Se,editingKindText:we,scrollToEditing:Te,toggleQueuePause:De,cancelEditing:ke,removeAttachment:je,editorResources:Me,onEditorKeydown:Ne,onPaste:Pe,composerMenuOpen:Fe,setComposerMenuOpen:Ie,plusOpen:Le,COMPOSER_MENU_ALIGN:Re,COMPOSER_MENU_SIDE:ze,COMPOSER_MENU_OFFSET:Be,addGoalMark:Ve,pickImages:He,compactNow:Ue,onFilesPicked:We,modeOpen:Ge,modeLabel:Ke,pickMode:qe,AUTH_MODES:Je,authMode:Ye,setAuthMode:Xe,promptPresets:Ze,authOpen:Qe,modelOpen:$e,modelView:et,usableModels:tt,setModelView:nt,modelQuery:rt,filteredModels:it,isModelPicked:at,pickModel:ot,brandNameOf:st,brandSvgOf:ct,modelNote:lt,currentModelLabel:ut,modelPlatformGroups:dt,modelPlatform:ft,assistantRows:pt,hasCardView:mt,viewOf:ht,previewToolMedia:gt,openTools:_t,openToolGroups:vt,toggleTool:yt,toggleToolGroup:bt,toolGroupTitle:xt,toolRowSummary:St,openThinking:Ct,toggleThinking:wt,openUserBubbles:Tt,overflowingUser:Et,toggleUserBubble:Dt,setUserBubbleBody:Ot,msgTimeText:kt,msgTimeTitle:At,copied:jt,copyMessage:Mt,beginEditMessage:Nt,segmentByAnchor:Pt,segmentModelLabel:Ft,hasInlineError:It,pagerByAnchor:zt,pagerTarget:Bt,skillQuery:Vt,skillView:Ht,setSkillView:Ut,filteredSkills:Wt,skillCategory:Gt,skillCategoryRows:Kt,skillMetaOf:qt,skillFileCount:Jt,skillSize:Yt,skillCoverStyle:Xt,mcpQuery:Zt,mcpOpen:Qt,mcpExpanded:$t,toggleMcpExpand:en,mcpPickedServers:tn,mcpPickedTools:nn,mcpToolKey:rn,toggleMcpServer:an,toggleMcpTool:on,mcpPickTotal:sn,confirmMcpPicks:cn,mcpProbeHint:ln,mcpStatusOf:un,mcpServerDesc:dn,mcpTransport:fn,mcpToolCount:pn,mcpToolsOf:mn,runMcpProbe:hn,filteredMcpResources:gn,sendMode:_n,submit:vn,showPendingOn:yn,COMPOSER_MENU_FLAGS:bn,contextPercent:xn,contextArcOffset:Sn,CONTEXT_CIRCUMFERENCE:Cn,SUGGESTIONS:wn,useSuggestion:Tn,dismissHint:En,hintDismissed:Dn,insertRef:On,brandSvg:kn,skillOpen:An,showScrollToBottom:jn,smoothScrollToBottom:Mn,SHOW_PROCESS_NOTICE:Nn}=n,Pn=(0,t.computed)(()=>{let e=u,t=e&&typeof e==`object`&&`value`in e?e.value:e;return Array.isArray(t)?t:[]}),W=(0,r.useUiComponent)(`Button`),Fn=(0,r.useUiComponent)(`Badge`),In=(0,r.useUiComponent)(`DropdownMenu`),Ln=(0,r.useUiComponent)(`DropdownMenuContent`),Rn=(0,r.useUiComponent)(`DropdownMenuTrigger`),zn=(0,r.useUiComponent)(`DropdownMenuItem`);(0,r.useUiComponent)(`DropdownMenuLabel`),(0,r.useUiComponent)(`DropdownMenuSeparator`);let Bn=(0,r.useUiComponent)(`InputGroup`),Vn=(0,r.useUiComponent)(`InputGroupAddon`),Hn=(0,r.useUiComponent)(`InputGroupButton`),Un=(0,r.useUiComponent)(`InputGroupInput`);(0,r.useUiComponent)(`Tooltip`),(0,r.useUiComponent)(`TooltipContent`),(0,r.useUiComponent)(`TooltipProvider`),(0,r.useUiComponent)(`TooltipTrigger`),(0,r.useUiComponent)(`Popover`),(0,r.useUiComponent)(`PopoverTrigger`),(0,r.useUiComponent)(`PopoverContent`);let Wn=(0,r.useUiComponent)(`Progress`),Gn=(0,r.useUiComponent)(`HoverCard`),Kn=(0,r.useUiComponent)(`HoverCardTrigger`),qn=(0,r.useUiComponent)(`HoverCardContent`);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,td,[(0,t.unref)(p)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,nd,[(0,t.createVNode)((0,t.unref)(w),{size:14,class:`ac-notify-icon`}),n[37]||=(0,t.createElementVNode)(`span`,{class:`ac-notify-text`},`开启浏览器通知,及时获取最新消息`,-1),(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`sm`,class:`ac-notify-btn`,onClick:(0,t.unref)(m)},{default:(0,t.withCtx)(()=>[...n[36]||=[(0,t.createTextVNode)(`开启`,-1)]]),_:1},8,[`onClick`]),(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-sm`,class:`ac-notify-close`,"aria-label":`不再提示`,onClick:n[0]||=e=>h.value=!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:13})]),_:1})])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(f).hasAny?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,rd,[(0,t.createElementVNode)(`div`,id,[(0,t.createVNode)((0,t.unref)(yu),{"model-value":(0,t.unref)(d).rows,class:`ac-queue-drag`,animation:180,"ghost-class":`ac-queue-row--ghost`,"chosen-class":`ac-queue-row--chosen`,handle:`.ac-queue-lead-swap`,"onUpdate:modelValue":(0,t.unref)(g)},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(d).rows,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:(0,t.normalizeClass)([`ac-pending-row ac-queue-row`,{"is-editing":e.editing,"is-sending":e.sending,"is-hover":(0,t.unref)(_)===e.id}]),role:`listitem`,onPointerenter:t=>_.value=e.id,onPointerleave:n=>(0,t.unref)(_)===e.id&&(_.value=null)},[!e.sending&&!e.sent?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,od,[(0,t.createElementVNode)(`span`,sd,[(0,t.createVNode)((0,t.unref)(ae),{size:14})]),(0,t.createElementVNode)(`span`,{class:`ac-queue-handle`,title:`拖动调整发送顺序`,"aria-label":`拖动 `+(e.text||``).slice(0,20)},[(0,t.createVNode)((0,t.unref)(V),{size:12})],8,cd)])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,ld,[(0,t.createVNode)((0,t.unref)(ae),{size:14})])),e.thumbs.length?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:2,class:`ac-queue-thumb`,src:e.thumbs[0],alt:``,role:`button`,"aria-label":`查看排队图片`,title:`这条消息带 `+e.images.length+` 张图`,onClick:n=>(0,t.unref)(y)(e.thumbs[0],e.images)},null,8,ud)):(0,t.createCommentVNode)(``,!0),e.images.length>1?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:3,class:`ac-queue-thumb-more`,role:`status`,title:`共 `+e.images.length+` 张图`},`+`+(0,t.toDisplayString)(e.images.length-1),9,dd)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,{class:`ac-queue-text`,title:(0,t.unref)(S)(e.text)},[e.text?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)((0,t.unref)(x)((0,t.unref)(S)(e.text)),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n},[e.type===`tag`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`ac-sent-tag is-compact`,title:(0,t.unref)(D)(e)},(0,t.toDisplayString)(e.name),9,pd)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,md,(0,t.toDisplayString)(e.value),1))],64))),128)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)(`(图片)`)],64))],8,fd),e.editing?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Fn),{key:4,variant:`secondary`,class:`ac-queue-flag`,role:`status`},{default:(0,t.withCtx)(()=>[...n[38]||=[(0,t.createTextVNode)(`编辑中`,-1)]]),_:1})):e.goal?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Fn),{key:5,variant:`outline`,class:`ac-queue-flag is-goal`,title:`目标:`+(0,t.unref)(ge)(e.goal.objective,e.goal.budget)},{default:(0,t.withCtx)(()=>[...n[39]||=[(0,t.createTextVNode)(`目标`,-1)]]),_:1},8,[`title`])):(0,t.createCommentVNode)(``,!0),e.sending?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Fn),{key:6,variant:`secondary`,class:`ac-queue-flag is-sending`},{default:(0,t.withCtx)(()=>[...n[40]||=[(0,t.createTextVNode)(`发送中`,-1)]]),_:1})):e.sent?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Fn),{key:7,variant:`secondary`,class:`ac-queue-flag is-sent`},{default:(0,t.withCtx)(()=>[...n[41]||=[(0,t.createTextVNode)(`已发送`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,hd,[e.editing?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(W),{key:0,variant:`ghost`,size:`icon-sm`,class:`ac-queue-btn`,"aria-label":`取消编辑这条排队消息`,title:`取消编辑`,onClick:n=>(0,t.unref)(j)(e.id)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1},8,[`onClick`])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(W),{key:1,variant:`ghost`,size:`icon-sm`,class:`ac-queue-btn`,"aria-label":`引导(插队发送)`,title:`引导:插到当前这一轮的下一次请求`,onClick:n=>(0,t.unref)(M)(e.id)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(R),{size:12})]),_:1},8,[`onClick`])),(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-sm`,class:`ac-queue-btn is-danger`,"aria-label":`删除这条排队消息`,title:`删除`,onClick:n=>(0,t.unref)(N)(e.id)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ce),{size:12})]),_:1},8,[`onClick`]),(0,t.createVNode)((0,t.unref)(In),{open:(0,t.unref)(v)===e.id,"onUpdate:open":t=>v.value=t?e.id:null},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Rn),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-xs`,class:`ac-queue-btn`,"aria-expanded":(0,t.unref)(v)===e.id,"aria-label":`更多操作`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(z),{size:12})]),_:1},8,[`aria-expanded`])]),_:2},1024),(0,t.createVNode)((0,t.unref)(Ln),{arrow:``,align:`end`,side:`top`,"side-offset":8,class:`ac-ddmenu`,style:{minWidth:`180px`}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(zn),{onSelect:n=>{(0,t.unref)(F)(e.id),v.value=null}},{default:(0,t.withCtx)(()=>[...n[42]||=[(0,t.createTextVNode)(` 编辑消息 `,-1),(0,t.createElementVNode)(`span`,{class:`ac-menu-hint`},`改完发送,位置不变`,-1)]]),_:1},8,[`onSelect`]),(0,t.createVNode)((0,t.unref)(zn),{onSelect:n=>{(0,t.unref)(P)(e.id),v.value=null}},{default:(0,t.withCtx)(()=>[...n[43]||=[(0,t.createTextVNode)(` 关闭排队 `,-1),(0,t.createElementVNode)(`span`,{class:`ac-menu-hint`},`内容回到输入框,不再自动发`,-1)]]),_:1},8,[`onSelect`])]),_:2},1024)]),_:2},1032,[`open`,`onUpdate:open`])])],42,ad))),128))]),_:1},8,[`model-value`,`onUpdate:modelValue`]),(0,t.unref)(I)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([`ac-pending-row ac-goal-row`,{"is-editing":(0,t.unref)(L)}]),role:`listitem`},[(0,t.unref)(I).finished?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,gd,[(0,t.createVNode)((0,t.unref)(xe),{size:14})])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(W),{key:0,variant:`ghost`,size:`icon-sm`,class:(0,t.normalizeClass)([`ac-pending-lead ac-goal-lead`,{"is-editing":(0,t.unref)(L)}]),type:`button`,"aria-label":(0,t.unref)(L)?`正在编辑目标`:`编辑目标`,title:(0,t.unref)(L)?`正在编辑目标`:`编辑目标`,onClick:n[1]||=e=>(0,t.unref)(B)()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(xe),{size:14,class:`ac-goal-lead-target`}),(0,t.createVNode)((0,t.unref)(ue),{size:14,class:`ac-goal-lead-edit`})]),_:1},8,[`aria-label`,`title`,`class`])),(0,t.unref)(s).goalImages?.length?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.createElementVNode)(`img`,{class:`ac-queue-thumb`,src:(0,t.unref)(s).goalImages[0],alt:``,role:`button`,"aria-label":`查看目标图片`,title:`这个目标带 `+(0,t.unref)(s).goalImages.length+` 张图`,onClick:n[2]||=e=>(0,t.unref)(y)((0,t.unref)(s).goalImages[0],(0,t.unref)(s).goalImages)},null,8,_d),(0,t.unref)(s).goalImages.length>1?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`ac-queue-thumb-more`,role:`status`,title:`共 `+(0,t.unref)(s).goalImages.length+` 张图`},`+`+(0,t.toDisplayString)((0,t.unref)(s).goalImages.length-1),9,vd)):(0,t.createCommentVNode)(``,!0)],64)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,{class:`ac-goal-row-text`,title:(0,t.unref)(s).goal?.objective},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(x)((0,t.unref)(s).goal?.objective??``),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n},[e.type===`tag`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`ac-sent-tag is-compact`,title:(0,t.unref)(D)(e)},(0,t.toDisplayString)(e.name),9,bd)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,xd,(0,t.toDisplayString)(e.value),1))],64))),128))],8,yd),(0,t.createVNode)((0,t.unref)(Fn),{variant:`outline`,class:(0,t.normalizeClass)([`ac-goal-flag`,(0,t.unref)(I).badge.cls]),role:`status`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(I).badge.text),1)]),_:1},8,[`class`]),(0,t.unref)(L)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Fn),{key:3,variant:`secondary`,class:`ac-editing-badge is-compact`,role:`status`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ue),{size:11}),n[44]||=(0,t.createElementVNode)(`span`,null,`正在编辑`,-1)]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,Sd,`第 `+(0,t.toDisplayString)((0,t.unref)(I).round)+` 轮`,1),(0,t.createElementVNode)(`span`,Cd,[(0,t.createElementVNode)(`span`,{class:`ac-goal-token-val`,contenteditable:`true`,spellcheck:`false`,role:`textbox`,"aria-label":`已用 token,点击编辑(回车生效)`,onFocus:n[3]||=e=>(0,t.unref)(ne)(e),onKeydown:n[4]||=e=>(0,t.unref)(te)(e,e.target,`used`),onBlur:n[5]||=e=>(0,t.unref)(U)(e)},(0,t.toDisplayString)((0,t.unref)(ie)((0,t.unref)(s).goal?.tokensUsed,(0,t.unref)(oe))),33),n[45]||=(0,t.createElementVNode)(`span`,{class:`ac-goal-ratio-sep`},`/`,-1),(0,t.createElementVNode)(`span`,{class:`ac-goal-token-val`,contenteditable:`true`,spellcheck:`false`,role:`textbox`,"aria-label":`总预算,点击编辑(回车生效)`,onFocus:n[6]||=e=>(0,t.unref)(ne)(e),onKeydown:n[7]||=e=>(0,t.unref)(te)(e,e.target,`row`),onBlur:n[8]||=e=>(0,t.unref)(U)(e)},(0,t.toDisplayString)((0,t.unref)(ce)((0,t.unref)(s).goal?.budget,(0,t.unref)(oe))),33)]),(0,t.unref)(I).finished?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(W),{key:4,variant:`ghost`,size:`icon-xs`,class:`ac-goal-btn`,"aria-label":(0,t.unref)(s).goalPaused?`启动目标`:`暂停目标`,title:(0,t.unref)(s).goalPaused?`启动目标`:`暂停目标`,onClick:n[9]||=e=>(0,t.unref)(s).goalPaused?(0,t.unref)(o).resumeGoal():(0,t.unref)(o).pauseGoal()},{default:(0,t.withCtx)(()=>[(0,t.unref)(s).goalPaused?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(de),{key:0,size:12})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(le),{key:1,size:12}))]),_:1},8,[`aria-label`,`title`])),(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-xs`,class:`ac-goal-btn`,"aria-label":`结束目标`,title:`结束目标(不会自动再跑)`,onClick:n[10]||=e=>(0,t.unref)(o).endGoal()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1})],2)):(0,t.createCommentVNode)(``,!0)])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,wd,[(0,t.unref)(d).pauseVisible?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(W),{key:0,variant:`ghost`,size:`xs`,class:(0,t.normalizeClass)([`ac-queue-pause`,{"is-paused":(0,t.unref)(d).paused}]),"aria-label":(0,t.unref)(d).paused?`恢复队列`:`暂停队列自动发送`,title:(0,t.unref)(d).pauseTitle,onClick:n[11]||=e=>(0,t.unref)(De)()},{default:(0,t.withCtx)(()=>[(0,t.unref)(d).paused?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(de),{key:0,size:12})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(le),{key:1,size:12})),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(d).paused?`队列恢复`:`队列暂停`),1),(0,t.createElementVNode)(`span`,Td,(0,t.toDisplayString)((0,t.unref)(d).pendingCount),1)]),_:1},8,[`class`,`aria-label`,`title`])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(pe)&&!(0,t.unref)(L)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ed,[(0,t.createVNode)((0,t.unref)(xe),{size:13,class:`ac-goal-icon`}),n[47]||=(0,t.createElementVNode)(`span`,{class:`ac-goal-mark-label`},`目标`,-1),(0,t.createElementVNode)(`span`,Dd,[n[46]||=(0,t.createElementVNode)(`span`,{class:`ac-goal-token-prefix`},`预算`,-1),(0,t.createElementVNode)(`span`,{class:`ac-goal-token-val`,contenteditable:`true`,spellcheck:`false`,role:`textbox`,"aria-label":`总预算,点击编辑`,onFocus:n[12]||=e=>(0,t.unref)(ne)(e),onKeydown:n[13]||=e=>(0,t.unref)(te)(e,e.target,`mark`),onBlur:n[14]||=e=>(0,t.unref)(U)(e)},(0,t.toDisplayString)((0,t.unref)(ce)((0,t.unref)(pe)?.budget,(0,t.unref)(oe))),33)]),n[48]||=(0,t.createElementVNode)(`span`,{class:`ac-tb-spacer`},null,-1),(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-xs`,class:`ac-goal-btn`,"aria-label":`取消目标(这条按普通消息发)`,title:`取消目标`,onClick:n[15]||=e=>(0,t.unref)(_e)()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1})])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(Se)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Od,[(0,t.createVNode)((0,t.unref)(ue),{size:12}),(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`xs`,class:`ac-editing-mark-btn`,"aria-label":(0,t.unref)(we),onClick:(0,t.unref)(Te)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(we)),1)]),_:1},8,[`aria-label`,`onClick`]),n[49]||=(0,t.createElementVNode)(`span`,{class:`ac-editing-mark-spacer`},null,-1),(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-xs`,class:`ac-editing-x`,"aria-label":`取消编辑`,onClick:(0,t.unref)(ke)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1},8,[`onClick`])])):(0,t.createCommentVNode)(``,!0),Pn.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,kd,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Pn.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n,class:`ac-attach`},[(0,t.createElementVNode)(`img`,{src:e,alt:``,role:`button`,"aria-label":`查看图片 `+(n+1),style:{cursor:`zoom-in`},onClick:n=>(0,t.unref)(y)(e,Pn.value)},null,8,Ad),(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-sm`,class:`ac-attach-del`,"aria-label":`移除图片 `+(n+1),onClick:e=>(0,t.unref)(je)(n)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1},8,[`aria-label`,`onClick`])]))),128))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,jd,[(0,t.unref)(c)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Md,`开始你的创作,或者 @ 引用技能 / MCP`)),(0,t.unref)(s).needsModel?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i.ProseMirrorEditor),{key:1,ref_key:`editorRef`,ref:l,modelValue:(0,t.unref)(c),"onUpdate:modelValue":n[16]||=e=>(0,t.isRef)(c)?c.value=e:null,resources:(0,t.unref)(Me),onKeydownCapture:(0,t.unref)(Ne),onPaste:(0,t.unref)(Pe)},null,8,[`modelValue`,`resources`,`onKeydownCapture`,`onPaste`]))]),(0,t.createElementVNode)(`div`,Nd,[(0,t.createVNode)((0,t.unref)(In),{open:(0,t.unref)(Fe)(`plus`),"onUpdate:open":n[20]||=e=>(0,t.unref)(Ie)(`plus`,e)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Rn),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-sm`,"aria-expanded":(0,t.unref)(Le),"aria-label":`更多添加`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(me),{size:16,class:`size-4`})]),_:1},8,[`aria-expanded`])]),_:1}),(0,t.createVNode)((0,t.unref)(Ln),{arrow:``,align:(0,t.unref)(Re),side:(0,t.unref)(ze),"side-offset":(0,t.unref)(Be),style:{minWidth:`180px`}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(zn),{title:`给这条消息挂一个目标(可改预算)`,onSelect:n[17]||=e=>{(0,t.unref)(Ve)(),Le.value=!1}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(xe)),n[50]||=(0,t.createElementVNode)(`span`,null,`目标`,-1)]),_:1}),(0,t.createVNode)((0,t.unref)(zn),{title:`选图片,跟这条消息一起发`,onSelect:n[18]||=e=>{(0,t.unref)(He)(),Le.value=!1}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ee)),n[51]||=(0,t.createElementVNode)(`span`,null,`上传文件`,-1)]),_:1}),(0,t.createVNode)((0,t.unref)(zn),{disabled:(0,t.unref)(s).compacting,title:(0,t.unref)(s).compacting?`正在压缩…`:`把历史总结成摘要,腾出上下文空间`,onSelect:n[19]||=e=>{(0,t.unref)(Ue)(),Le.value=!1}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(se)),n[52]||=(0,t.createElementVNode)(`span`,null,`压缩`,-1),(0,t.unref)(s).compacting?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Pd,`正在压缩…`)):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`disabled`,`title`])]),_:1},8,[`align`,`side`,`side-offset`])]),_:1},8,[`open`]),(0,t.createElementVNode)(`input`,{ref:`fileInput`,class:`ac-file`,type:`file`,accept:`image/*`,multiple:``,"aria-hidden":`true`,tabindex:`-1`,onChange:n[21]||=(...e)=>(0,t.unref)(We)&&(0,t.unref)(We)(...e)},null,544),(0,t.createVNode)((0,t.unref)(In),{open:(0,t.unref)(Fe)(`mode`),"onUpdate:open":n[22]||=e=>(0,t.unref)(Ie)(`mode`,e)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Rn),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`sm`,"aria-expanded":(0,t.unref)(Ge),"aria-label":`选择创作模式`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Fd,(0,t.toDisplayString)((0,t.unref)(Ke)),1),(0,t.createVNode)((0,t.unref)(k),{size:13,class:`ac-pill-caret`})]),_:1},8,[`aria-expanded`])]),_:1}),(0,t.createVNode)((0,t.unref)(Ln),{arrow:``,align:(0,t.unref)(Re),side:(0,t.unref)(ze),"side-offset":(0,t.unref)(Be),style:{minWidth:`220px`}},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(Ze),e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(zn),{key:e.id,"aria-checked":(0,t.unref)(s).activePromptId===e.id,onSelect:n=>(0,t.unref)(qe)(e.id,()=>Ge.value=!1)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.name)+` `,1),(0,t.createElementVNode)(`span`,Id,(0,t.toDisplayString)(e.builtin?`内置提示词`:`自建提示词`),1)]),_:2},1032,[`aria-checked`,`onSelect`]))),128)),(0,t.unref)(Ze).length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Ld,`还没有提示词,去「设置 → Agent → 提示词」加一个`))]),_:1},8,[`align`,`side`,`side-offset`])]),_:1},8,[`open`]),(0,t.createVNode)((0,t.unref)(In),{open:(0,t.unref)(Fe)(`auth`),"onUpdate:open":n[23]||=e=>(0,t.unref)(Ie)(`auth`,e)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Rn),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-sm`,"aria-expanded":(0,t.unref)(Qe),"aria-label":`授权方式:`+((0,t.unref)(Ye)===`ask`?`接受审核`:`完全自动授权`),class:(0,t.normalizeClass)({"is-auto-auth":(0,t.unref)(Ye)===`auto`})},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(Ye)===`ask`?(0,t.unref)(H):(0,t.unref)(ye)),{size:16,class:`size-4`}))]),_:1},8,[`aria-expanded`,`aria-label`,`class`])]),_:1}),(0,t.createVNode)((0,t.unref)(Ln),{arrow:``,align:(0,t.unref)(Re),side:(0,t.unref)(ze),"side-offset":(0,t.unref)(Be),style:{width:`360px`}},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Rd,[(0,t.createElementVNode)(`div`,zd,[(0,t.createElementVNode)(`div`,Bd,[n[53]||=(0,t.createElementVNode)(`div`,{class:`ac-panel-heading`},[(0,t.createElementVNode)(`span`,{class:`ac-panel-title`},`审核模式`),(0,t.createElementVNode)(`span`,{class:`ac-panel-count`},`2`)],-1),(0,t.createElementVNode)(`span`,Vd,(0,t.toDisplayString)((0,t.unref)(Ye)===`ask`?`需要确认`:`全部放行`),1)]),n[54]||=(0,t.createElementVNode)(`p`,{class:`ac-panel-lede`},`决定工具调用要不要先停下来问你。`,-1)]),(0,t.createElementVNode)(`div`,Hd,[(0,t.createElementVNode)(`div`,Ud,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(Je),e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(zn),{key:e.value,class:`ac-review-item`,role:`radio`,"aria-checked":(0,t.unref)(Ye)===e.value,onSelect:n=>{(0,t.unref)(Xe)(e.value),Qe.value=!1}},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Wd,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icon),{size:14,class:`ac-option-icon`,"aria-hidden":`true`})),(0,t.createElementVNode)(`span`,Gd,(0,t.toDisplayString)(e.label),1),(0,t.createVNode)((0,t.unref)(Fn),{variant:e.value===`auto`?`destructive`:`secondary`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value===`auto`?`谨慎`:`推荐`),1)]),_:2},1032,[`variant`]),(0,t.createElementVNode)(`span`,Kd,[(0,t.createVNode)((0,t.unref)(O),{size:16,"stroke-width":2})])]),(0,t.createElementVNode)(`span`,qd,(0,t.toDisplayString)(e.hint),1)]),_:2},1032,[`aria-checked`,`onSelect`]))),128))])])])]),_:1},8,[`align`,`side`,`side-offset`])]),_:1},8,[`open`]),(0,t.createVNode)((0,t.unref)(In),{open:(0,t.unref)(Fe)(`model`),"onUpdate:open":n[25]||=e=>(0,t.unref)(Ie)(`model`,e)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Rn),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-sm`,"aria-expanded":(0,t.unref)($e),"aria-label":`选择模型`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(E),{size:16,class:`size-4`})]),_:1},8,[`aria-expanded`])]),_:1}),(0,t.createVNode)((0,t.unref)(Ln),{arrow:``,align:(0,t.unref)(Re),side:(0,t.unref)(ze),"side-offset":(0,t.unref)(Be),style:(0,t.normalizeStyle)({width:(0,t.unref)(et)===`split`?`588px`:`340px`,maxWidth:`calc(100vw - 24px)`,maxHeight:`min(520px, calc(100dvh - 120px))`})},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ed,{models:(0,t.unref)(s).models,current:(0,t.unref)(s).model,view:(0,t.unref)(et),"onUpdate:view":(0,t.unref)(nt),onPick:n[24]||=e=>(0,t.unref)(ot)(e,()=>$e.value=!1)},null,8,[`models`,`current`,`view`,`onUpdate:view`])]),_:1},8,[`align`,`side`,`side-offset`,`style`])]),_:1},8,[`open`]),(0,t.createVNode)((0,t.unref)(In),{open:(0,t.unref)(Fe)(`skill`),"onUpdate:open":n[30]||=e=>(0,t.unref)(Ie)(`skill`,e)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Rn),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-sm`,"aria-expanded":(0,t.unref)(An),"aria-label":`选择技能`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Oe),{size:16,class:`size-4`})]),_:1},8,[`aria-expanded`])]),_:1}),(0,t.createVNode)((0,t.unref)(Ln),{arrow:``,align:(0,t.unref)(Re),side:(0,t.unref)(ze),"side-offset":(0,t.unref)(Be),style:(0,t.normalizeStyle)({width:(0,t.unref)(Ht)===`split`&&(0,t.unref)(s).skills.length?`588px`:`340px`,maxWidth:`calc(100vw - 24px)`,maxHeight:`min(520px, calc(100dvh - 120px))`})},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`ac-panel ac-skill-panel`,{"is-split":(0,t.unref)(Ht)===`split`&&!!(0,t.unref)(s).skills.length}]),role:`listbox`,"aria-label":`选择技能`},[(0,t.createElementVNode)(`div`,Jd,[(0,t.createElementVNode)(`div`,Yd,[(0,t.createElementVNode)(`div`,Xd,[n[55]||=(0,t.createElementVNode)(`span`,{class:`ac-panel-title`},`技能`,-1),(0,t.createElementVNode)(`span`,Zd,(0,t.toDisplayString)((0,t.unref)(s).skills.length),1)]),(0,t.unref)(s).skills.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Qd,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`ac-view-tab`,{"is-active":(0,t.unref)(Ht)===`card`}]),"aria-selected":(0,t.unref)(Ht)===`card`,role:`tab`,onClick:n[26]||=e=>(0,t.unref)(Ut)(`card`)},`卡片`,10,$d),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`ac-view-tab`,{"is-active":(0,t.unref)(Ht)===`split`}]),"aria-selected":(0,t.unref)(Ht)===`split`,role:`tab`,onClick:n[27]||=e=>(0,t.unref)(Ut)(`split`)},`分栏`,10,ef)])):(0,t.createCommentVNode)(``,!0)]),(0,t.createVNode)((0,t.unref)(Bn),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Vn),{align:`inline-start`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ve),{size:14,"aria-hidden":`true`})]),_:1}),(0,t.createVNode)((0,t.unref)(Un),{modelValue:(0,t.unref)(Vt),"onUpdate:modelValue":n[28]||=e=>(0,t.isRef)(Vt)?Vt.value=e:null,type:`text`,name:`ac-skill-search`,"data-ac-search":`skill`,placeholder:`搜索技能`,"aria-label":`搜索技能`,autocomplete:`off`,spellcheck:`false`},null,8,[`modelValue`]),(0,t.unref)(Vt)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Vn),{key:0,align:`inline-end`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Hn),{size:`icon-xs`,"aria-label":`清空搜索`,onClick:n[29]||=e=>Vt.value=``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1})]),(0,t.createElementVNode)(`div`,tf,[(0,t.unref)(s).skills.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,af,[(0,t.createVNode)(Wi,{class:(0,t.normalizeClass)([`ac-panel-scroll ac-view-pane`,{"is-active":(0,t.unref)(Ht)===`card`}]),"body-class":`ac-panel-scroll-body`},{default:(0,t.withCtx)(()=>[(0,t.unref)(Wt).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,of,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(Wt),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:`ac-skill-card`,role:`option`,tabindex:`0`,"aria-pressed":!1,title:e.value,onClick:n=>(0,t.unref)(On)(e,()=>An.value=!1),onKeydown:[(0,t.withKeys)((0,t.withModifiers)(n=>(0,t.unref)(On)(e,()=>An.value=!1),[`prevent`]),[`enter`]),(0,t.withKeys)((0,t.withModifiers)(n=>(0,t.unref)(On)(e,()=>An.value=!1),[`prevent`]),[`space`])]},[(0,t.createElementVNode)(`span`,{class:`ac-skill-thumb`,style:(0,t.normalizeStyle)((0,t.unref)(Xt)(e.name)),"aria-hidden":`true`},[(0,t.createElementVNode)(`span`,{class:`ac-skill-icon`,innerHTML:(0,t.unref)(Lt)},null,8,cf)],4),(0,t.createElementVNode)(`span`,lf,[(0,t.createElementVNode)(`span`,uf,[(0,t.createElementVNode)(`span`,df,(0,t.toDisplayString)(e.name),1),(0,t.unref)(qt)(e.name).featured?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Fn),{key:0,variant:`secondary`},{default:(0,t.withCtx)(()=>[...n[58]||=[(0,t.createTextVNode)(`精选`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`span`,ff,(0,t.toDisplayString)(e.value),1),(0,t.createElementVNode)(`span`,pf,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(qt)(e.name).category),1),n[59]||=(0,t.createElementVNode)(`span`,{class:`ac-dot-sep`,"aria-hidden":`true`},null,-1),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(Jt)(e.name))+` 文件`,1)])])],40,sf))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,mf,[(0,t.createElementVNode)(`span`,hf,[(0,t.createVNode)((0,t.unref)(ve),{size:18})]),n[60]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-title`},`没有找到技能`,-1),n[61]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-desc`},`换个关键词,或清空搜索再试。`,-1)]))]),_:1},8,[`class`]),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`ac-view-pane ac-split`,{"is-active":(0,t.unref)(Ht)===`split`}])},[(0,t.createElementVNode)(`aside`,gf,[n[62]||=(0,t.createElementVNode)(`div`,{class:`ac-rail-label`},`分类`,-1),(0,t.createVNode)(Wi,{class:`ac-rail-scroll`,"body-class":`ac-rail-scroll-body`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(Kt),e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(W),{key:e.name,variant:`ghost`,size:`sm`,"aria-pressed":(0,t.unref)(Gt)===e.name,onClick:t=>Gt.value=e.name},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,_f,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.name===`全部`?(0,t.unref)(re):e.name===`精选`?(0,t.unref)(be):(0,t.unref)(E)),{size:14}))]),(0,t.createElementVNode)(`span`,vf,(0,t.toDisplayString)(e.name),1),(0,t.createElementVNode)(`span`,yf,(0,t.toDisplayString)(e.count),1)]),_:2},1032,[`aria-pressed`,`onClick`]))),128))]),_:1})]),(0,t.createElementVNode)(`div`,bf,[(0,t.createVNode)(Wi,{class:`ac-split-scroll`,"body-class":`ac-split-scroll-body`},{default:(0,t.withCtx)(()=>[(0,t.unref)(Wt).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xf,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(Wt),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:`ac-skill-tile`,role:`option`,tabindex:`0`,"aria-pressed":!1,title:e.value,onClick:n=>(0,t.unref)(On)(e,()=>An.value=!1),onKeydown:[(0,t.withKeys)((0,t.withModifiers)(n=>(0,t.unref)(On)(e,()=>An.value=!1),[`prevent`]),[`enter`]),(0,t.withKeys)((0,t.withModifiers)(n=>(0,t.unref)(On)(e,()=>An.value=!1),[`prevent`]),[`space`])]},[(0,t.createElementVNode)(`span`,{class:`ac-skill-cover`,style:(0,t.normalizeStyle)((0,t.unref)(Xt)(e.name)),"aria-hidden":`true`},[(0,t.createElementVNode)(`span`,{class:`ac-skill-icon`,innerHTML:(0,t.unref)(Lt)},null,8,Cf)],4),(0,t.createElementVNode)(`span`,wf,[(0,t.createElementVNode)(`span`,Tf,[(0,t.createElementVNode)(`span`,Ef,(0,t.toDisplayString)(e.name),1)]),(0,t.createElementVNode)(`span`,Df,(0,t.toDisplayString)(e.value),1),(0,t.createElementVNode)(`span`,Of,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(qt)(e.name).category),1),n[63]||=(0,t.createElementVNode)(`span`,{class:`ac-dot-sep`,"aria-hidden":`true`},null,-1),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(Jt)(e.name))+` 文件`,1),n[64]||=(0,t.createElementVNode)(`span`,{class:`ac-dot-sep`,"aria-hidden":`true`},null,-1),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(Yt)(e.name)),1)])])],40,Sf))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,kf,[(0,t.createElementVNode)(`span`,Af,[(0,t.createVNode)((0,t.unref)(ve),{size:18})]),n[65]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-title`},`没有找到技能`,-1),n[66]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-desc`},`换个关键词,或清空搜索再试。`,-1)]))]),_:1})])],2)])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,nf,[(0,t.createElementVNode)(`span`,rf,[(0,t.createVNode)((0,t.unref)(Oe),{size:18})]),n[56]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-title`},`还没有安装技能`,-1),n[57]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-desc`},`到「设置 → Agent → 技能」里导入,导入后即可在这里 @ 引用。`,-1)]))])],2)]),_:1},8,[`align`,`side`,`side-offset`,`style`])]),_:1},8,[`open`]),(0,t.unref)(s).mcpServers.length?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(In),{key:0,open:(0,t.unref)(Fe)(`mcp`),"onUpdate:open":n[34]||=e=>(0,t.unref)(Ie)(`mcp`,e)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Rn),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-sm`,"aria-expanded":(0,t.unref)(Qt),"aria-label":`选择 MCP`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(fe),{size:16,class:`size-4`})]),_:1},8,[`aria-expanded`])]),_:1}),(0,t.createVNode)((0,t.unref)(Ln),{arrow:``,align:(0,t.unref)(Re),side:(0,t.unref)(ze),"side-offset":(0,t.unref)(Be),style:{width:`400px`,maxWidth:`calc(100vw - 24px)`,maxHeight:`min(520px, calc(100dvh - 120px))`}},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,jf,[(0,t.createElementVNode)(`div`,Mf,[(0,t.createElementVNode)(`div`,Nf,[(0,t.createElementVNode)(`div`,Pf,[n[67]||=(0,t.createElementVNode)(`span`,{class:`ac-panel-title`},`MCP`,-1),(0,t.createElementVNode)(`span`,Ff,(0,t.toDisplayString)((0,t.unref)(s).mcpServers.length),1)]),(0,t.createElementVNode)(`div`,If,[(0,t.createVNode)((0,t.unref)(W),{variant:`outline`,size:`sm`,disabled:(0,t.unref)(a),"aria-label":(0,t.unref)(a)?`正在检测 MCP`:`检测全部 MCP 服务`,title:(0,t.unref)(a)?`正在检测`:`检测全部 MCP 服务`,onClick:(0,t.withModifiers)((0,t.unref)(hn),[`stop`])},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(he),{size:14,class:(0,t.normalizeClass)({"ac-spin":(0,t.unref)(a)})},null,8,[`class`]),(0,t.createElementVNode)(`span`,Lf,(0,t.toDisplayString)((0,t.unref)(a)?`检测中`:`重新检测`),1)]),_:1},8,[`disabled`,`aria-label`,`title`,`onClick`])])]),(0,t.createVNode)((0,t.unref)(Bn),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Vn),{align:`inline-start`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ve),{size:14,"aria-hidden":`true`})]),_:1}),(0,t.createVNode)((0,t.unref)(Un),{modelValue:(0,t.unref)(Zt),"onUpdate:modelValue":n[31]||=e=>(0,t.isRef)(Zt)?Zt.value=e:null,type:`text`,name:`ac-mcp-search`,"data-ac-search":`mcp`,placeholder:`搜索服务或工具`,"aria-label":`搜索服务或工具`,autocomplete:`off`,spellcheck:`false`},null,8,[`modelValue`]),(0,t.unref)(Zt)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Vn),{key:0,align:`inline-end`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Hn),{size:`icon-xs`,"aria-label":`清空搜索`,onClick:n[32]||=e=>Zt.value=``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1})]),(0,t.createElementVNode)(`div`,Rf,[(0,t.createVNode)(Wi,{class:`ac-panel-scroll`,"body-class":`ac-panel-scroll-body ac-mcp-scroll-body`},{default:(0,t.withCtx)(()=>[(0,t.unref)(gn).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,zf,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(gn),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:(0,t.normalizeClass)([`ac-mcp-item`,{"is-picked":(0,t.unref)(tn).has(e.name),"is-open":(0,t.unref)($t).has(e.name)||!!e.toolHits}])},[(0,t.createElementVNode)(`div`,Bf,[(0,t.createElementVNode)(`button`,{type:`button`,class:`ac-pick-box`,"aria-pressed":(0,t.unref)(tn).has(e.name),"aria-label":`引用整个 `+e.name+` 服务`,title:`引用整个 `+e.name+` 服务`,onClick:(0,t.withModifiers)(n=>(0,t.unref)(an)(e.name),[`stop`])},[(0,t.createVNode)((0,t.unref)(O),{size:12})],8,Vf),(0,t.createElementVNode)(`button`,{type:`button`,class:`ac-mcp-main`,title:e.value,"aria-expanded":(0,t.unref)($t).has(e.name)||!!e.toolHits,onClick:n=>(0,t.unref)(en)(e.name)},[(0,t.createElementVNode)(`span`,Uf,[(0,t.createElementVNode)(`span`,{innerHTML:(0,t.unref)(Rt)},null,8,Wf)]),(0,t.createElementVNode)(`span`,Gf,[(0,t.createElementVNode)(`span`,Kf,(0,t.toDisplayString)(e.name),1),(0,t.createElementVNode)(`span`,qf,(0,t.toDisplayString)((0,t.unref)(dn)(e)),1)])],8,Hf),(0,t.createElementVNode)(`span`,Jf,[(0,t.unref)(un)(e.name)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:(0,t.normalizeClass)([`ac-status`,(0,t.unref)(un)(e.name).ok?`is-ok`:`is-bad`]),title:(0,t.unref)(un)(e.name).text},(0,t.toDisplayString)((0,t.unref)(pn)(e.name))+` 工具`,11,Yf)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Xf,(0,t.toDisplayString)((0,t.unref)(fn)(e)),1)),(0,t.unref)(mn)(e.name).length?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:2,class:`ac-expand-btn`,role:`button`,tabindex:`0`,"aria-expanded":(0,t.unref)($t).has(e.name)||!!e.toolHits,"aria-label":`展开工具`,title:`展开工具`,onClick:(0,t.withModifiers)(n=>(0,t.unref)(en)(e.name),[`stop`]),onKeydown:(0,t.withKeys)((0,t.withModifiers)(n=>(0,t.unref)(en)(e.name),[`stop`,`prevent`]),[`enter`])},[(0,t.createVNode)((0,t.unref)(k),{size:14,class:(0,t.normalizeClass)({"is-open":(0,t.unref)($t).has(e.name)||!!e.toolHits})},null,8,[`class`])],40,Zf)):(0,t.createCommentVNode)(``,!0)])]),(0,t.unref)($t).has(e.name)||e.toolHits?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Qf,[(e.toolHits||(0,t.unref)(mn)(e.name)).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ep,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.toolHits||(0,t.unref)(mn)(e.name),n=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:n.fullName,type:`button`,class:(0,t.normalizeClass)([`ac-tool-row`,{"is-picked":(0,t.unref)(nn).has((0,t.unref)(rn)(e.name,n.name))}]),role:`checkbox`,"aria-checked":(0,t.unref)(nn).has((0,t.unref)(rn)(e.name,n.name)),title:n.fullName,onClick:(0,t.withModifiers)(r=>(0,t.unref)(on)(e.name,n.name),[`stop`])},[(0,t.createElementVNode)(`span`,np,[(0,t.createVNode)((0,t.unref)(O),{size:10})]),(0,t.createElementVNode)(`span`,rp,[(0,t.createElementVNode)(`span`,ip,(0,t.toDisplayString)(n.name),1),(0,t.createElementVNode)(`span`,ap,(0,t.toDisplayString)(n.description),1)])],10,tp))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,$f,` 还没有检测到工具,点「重新检测」再试。 `))])):(0,t.createCommentVNode)(``,!0)],2))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,op,[(0,t.createElementVNode)(`span`,sp,[(0,t.createVNode)((0,t.unref)(ve),{size:18})]),n[68]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-title`},`没有找到服务或工具`,-1),n[69]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-desc`},`换个关键词,或清空搜索再试。`,-1)])),(0,t.unref)(ln)?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,cp,(0,t.toDisplayString)((0,t.unref)(ln)),1)):(0,t.createCommentVNode)(``,!0)]),_:1})]),(0,t.createElementVNode)(`div`,lp,[(0,t.createElementVNode)(`span`,up,[(0,t.unref)(sn)?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[n[70]||=(0,t.createTextVNode)(` 已选 `,-1),(0,t.createElementVNode)(`b`,dp,(0,t.toDisplayString)((0,t.unref)(tn).size),1),n[71]||=(0,t.createTextVNode)(` 个服务 · `,-1),(0,t.createElementVNode)(`b`,fp,(0,t.toDisplayString)((0,t.unref)(nn).size),1),n[72]||=(0,t.createTextVNode)(` 个工具 `,-1)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)(`未选择服务或工具`)],64))]),(0,t.createVNode)((0,t.unref)(W),{size:`xs`,disabled:!(0,t.unref)(sn),onClick:n[33]||=e=>(0,t.unref)(cn)(()=>Qt.value=!1)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(O),{size:13}),n[73]||=(0,t.createTextVNode)(`确认引用 `,-1)]),_:1},8,[`disabled`])])])]),_:1},8,[`align`,`side`,`side-offset`])]),_:1},8,[`open`])):(0,t.createCommentVNode)(``,!0),n[76]||=(0,t.createElementVNode)(`span`,{class:`ac-tb-spacer`},null,-1),(0,t.unref)(s).contextLeft!==null||(0,t.unref)(s).contextUsed!==null?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,pp,[(0,t.createVNode)((0,t.unref)(Gn),{"open-delay":10,"close-delay":100},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Kn),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`button`,{type:`button`,class:`ac-ctx-ring`,"aria-label":`上下文剩余 `+((0,t.unref)(s).contextLeft??0)+`%`,title:`上下文剩余 `+((0,t.unref)(s).contextLeft??0)+`%`},[((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,hp,[n[74]||=(0,t.createElementVNode)(`circle`,{cx:`6`,cy:`6`,r:`5.25`,stroke:`currentColor`,"stroke-width":`1.5`,class:`ac-ctx-track`},null,-1),(0,t.createElementVNode)(`circle`,{cx:`6`,cy:`6`,r:`5.25`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-dasharray":(0,t.unref)(Cn),"stroke-dashoffset":(0,t.unref)(Sn),transform:`rotate(-90 6 6)`},null,8,gp)]))],8,mp)]),_:1}),(0,t.createVNode)((0,t.unref)(qn),{side:`top`,align:`end`,class:`flex w-64 flex-col gap-3`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,_p,[n[75]||=(0,t.createElementVNode)(`span`,{class:`font-medium`},`Context`,-1),(0,t.createElementVNode)(`span`,vp,(0,t.toDisplayString)((0,t.unref)(ie)((0,t.unref)(s).contextUsed,(0,t.unref)(oe)))+` / `+(0,t.toDisplayString)((0,t.unref)(ie)((0,t.unref)(s).contextLimit,(0,t.unref)(oe))),1)]),(0,t.createVNode)((0,t.unref)(Wn),{"model-value":(0,t.unref)(xn),"aria-label":`Context used`},null,8,[`model-value`]),(0,t.createElementVNode)(`p`,yp,`上下文剩余 `+(0,t.toDisplayString)((0,t.unref)(s).contextLeft??0)+`%`,1)]),_:1})]),_:1})])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(W),{size:`icon`,"data-ac-send":``,class:(0,t.normalizeClass)({"is-running":(0,t.unref)(_n)===`stop`}),"aria-label":(0,t.unref)(_n)===`stop`?`停止`:`发送`,disabled:(0,t.unref)(_n)===`disabled`,onClick:n[35]||=e=>(0,t.unref)(_n)===`stop`?(0,t.unref)(o).stop():(0,t.unref)(vn)(),style:{"--plume-radius":`999px`}},{default:(0,t.withCtx)(()=>[(0,t.unref)(_n)===`stop`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,bp)):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(C),{key:1,size:17,class:`size-[17px]`}))]),_:1},8,[`class`,`aria-label`,`disabled`])])])]))}}),[[`__scopeId`,`data-v-abd25458`]]),Sp={class:`ac-root`,"aria-label":`Agent 对话`},Cp={key:0,class:`ac-onboard`},wp={class:`ac-onboard-path`},Tp={key:1,class:`ac-onboard`},Ep={class:`ac-onboard-path`},Dp=G((0,t.defineComponent)({inheritAttrs:!1,__name:`AgentConversation`,setup(e){let n=Hr();(0,t.provide)(`agentConversation`,n);let{agent:i,s:a,MediaViewer:o,previewItem:s,previewImage:c}=n,l=(0,r.useUiComponent)(`Button`);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Sp,[(0,t.unref)(a).needsModel?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Cp,[(0,t.createVNode)((0,t.unref)(be),{size:22,class:`ac-onboard-icon`}),n[2]||=(0,t.createElementVNode)(`strong`,null,`还没有可用的模型`,-1),n[3]||=(0,t.createElementVNode)(`p`,null,`先去设置里加一个带 API Key 的模型,回来就能对话了。`,-1),(0,t.createElementVNode)(`p`,wp,(0,t.toDisplayString)((0,t.unref)(a).models.length?`现有模型都没有密钥`:`当前没有任何模型`),1)])):(0,t.unref)(a).offline?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Tp,[n[5]||=(0,t.createElementVNode)(`strong`,null,`连不上后台`,-1),(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)((0,t.unref)(a).error||`请确认 cloud-server 已经启动。`),1),(0,t.createElementVNode)(`p`,Ep,(0,t.toDisplayString)((0,t.unref)(a).baseUrl||`同源(当前页面所在地址)`),1),(0,t.createVNode)((0,t.unref)(l),{size:`sm`,onClick:n[0]||=e=>(0,t.unref)(i).refresh()},{default:(0,t.withCtx)(()=>[...n[4]||=[(0,t.createTextVNode)(`重试连接`,-1)]]),_:1})])):((0,t.openBlock)(),(0,t.createBlock)(ws,{key:2})),(0,t.createVNode)(xp),(0,t.createVNode)((0,t.unref)(o),{item:(0,t.unref)(s),onClose:n[1]||=e=>c.value=null},null,8,[`item`])]))}}),[[`__scopeId`,`data-v-dc8c31bd`]]),Op=[`aria-label`],kp={class:`ac-panel-head`},Ap={class:`ac-panel-head-top`},jp={class:`ac-panel-heading`},Mp={class:`ac-panel-title`},Np={class:`ac-panel-count`},Pp={class:`ac-view-tabs`,role:`tablist`,"aria-label":`面板布局`},Fp=[`aria-selected`],Ip=[`aria-selected`],Lp={key:0,class:`ac-menu-empty`},Rp={class:`ac-view-stack`},zp={key:0,class:`ac-model-grid`},Bp=[`title`,`innerHTML`],Vp={class:`ac-model-copy`},Hp={class:`ac-model-card-top`},Up={class:`ac-model-id`},Wp={class:`ac-model-meta`},Gp={class:`ac-model-line`},Kp={class:`ac-model-tip-desc`},qp={key:0,class:`ac-check-mark`,"aria-hidden":`true`},Jp=[`title`,`innerHTML`],Yp={class:`ac-model-copy`},Xp={class:`ac-model-card-top`},Zp={class:`ac-model-id`},Qp={class:`ac-model-meta`},$p={class:`ac-model-line`},em={class:`ac-model-tip-desc`},tm={key:0,class:`ac-check-mark`,"aria-hidden":`true`},nm={class:`ac-model-account-item-name`},rm={key:1,class:`ac-empty-state`},im={class:`ac-empty-icon`},am={class:`ac-empty-title`},om=[`aria-label`],sm={class:`ac-rail-label`},cm={key:0,class:`ac-rail-icon`,"aria-hidden":`true`},lm=[`title`,`innerHTML`],um={class:`ac-rail-name`},dm={class:`ac-rail-count`},fm={class:`ac-split-main`},pm={key:0,class:`ac-model-row-list`},mm=[`title`,`innerHTML`],hm={class:`ac-model-copy`},gm={class:`ac-model-id`},_m={class:`ac-model-meta`},vm={class:`ac-model-line`},ym={class:`ac-model-tip-desc`},bm={class:`ac-model-badges`},xm={key:0,class:`ac-check-mark`,"aria-hidden":`true`},Sm=[`title`,`innerHTML`],Cm={class:`ac-model-copy`},wm={class:`ac-model-id`},Tm={class:`ac-model-meta`},Em={class:`ac-model-line`},Dm={class:`ac-model-tip-desc`},Om={class:`ac-model-badges`},km={key:0,class:`ac-check-mark`,"aria-hidden":`true`},Am={class:`ac-model-account-item-name`},jm={key:1,class:`ac-empty-state`},Mm={class:`ac-empty-icon`},Nm={class:`ac-empty-title`},Pm=420,Fm=G((0,t.defineComponent)({__name:`ChoicePicker`,props:{items:{},currentId:{default:``},title:{default:`选择`},placeholder:{default:`搜索…`},railLabel:{default:`平台`},showAll:{type:Boolean,default:!0},emptyText:{default:`没有匹配项`}},emits:[`pick`,`pickAccount`,`update:view`],setup(e,{expose:n,emit:i}){let a=e,o=i,s=(0,r.useUiComponent)(`Button`),c=(0,r.useUiComponent)(`Badge`),l=(0,r.useUiComponent)(`Tooltip`),u=(0,r.useUiComponent)(`TooltipContent`),d=(0,r.useUiComponent)(`TooltipProvider`),f=(0,r.useUiComponent)(`TooltipTrigger`),p=(0,r.useUiComponent)(`InputGroup`),m=(0,r.useUiComponent)(`InputGroupAddon`),h=(0,r.useUiComponent)(`InputGroupButton`),g=(0,r.useUiComponent)(`InputGroupInput`),_=(0,r.useUiComponent)(`DropdownMenuSub`),v=(0,r.useUiComponent)(`DropdownMenuSubTrigger`),y=(0,r.useUiComponent)(`DropdownMenuSubContent`),b=(0,r.useUiComponent)(`DropdownMenuItem`),x=(0,r.useUiComponent)(`DropdownMenuLabel`),S=(0,t.ref)(``),C=(0,t.ref)(`card`),w=(0,t.ref)(`all`);function T(e){e===`split`&&C.value!==`split`?C.value=`split`:e===`card`&&C.value!==`card`&&(C.value=`card`),o(`update:view`,C.value)}function E(e){return e.platform||dr(e.title,``)}function D(e){let t=e.subtitle||hr(E(e)),n=e.desc||e.note||``;return n?t+` · `+n:t}let k=(0,t.computed)(()=>{let e=[];for(let t of a.items){let n=E(t),r=e.find(e=>e.key===n);r?r.count++:e.push({key:n,label:hr(n),count:1})}return a.showAll?[{key:`all`,label:`全部平台`,count:a.items.length},...e]:e}),A=(0,t.computed)(()=>{let e=S.value.trim().toLowerCase();return a.items.filter(t=>{if(w.value!==`all`&&E(t)!==w.value)return!1;if(!e)return!0;let n=hr(E(t));return(t.title+` `+(t.subtitle??``)+` `+(t.note??``)+` `+n).toLowerCase().includes(e)})}),j=(0,t.ref)(null);function M(e){if(!e)return null;if(e instanceof HTMLElement)return e;let t=e;return typeof t.rootElement==`function`?t.rootElement():null}function N(){let e=M(j.value),t=(e??document).querySelector(`[role="option"][aria-selected="true"]`),n=e=>e?.querySelector(`[data-slot="scroll-area-viewport"]`)??e??null,r=n(t?.closest(`.ac-split-scroll, .ac-menu-scroll`)??n(e));if(!r||r.clientHeight<=0)return;let i=t&&r.contains(t)?t:r.querySelector(`[role="option"][aria-selected="true"]`);if(!i)return;let a=i.getBoundingClientRect().top-r.getBoundingClientRect().top+r.scrollTop;r.scrollTop=_r({scrollTop:r.scrollTop,scrollHeight:r.scrollHeight,clientHeight:r.clientHeight},{top:a,height:i.offsetHeight},4);let o=i.getBoundingClientRect(),s=r.getBoundingClientRect();o.bottom>s.bottom?r.scrollTop+=o.bottom-s.bottom:o.top<s.top&&(r.scrollTop-=s.top-o.top)}let P=null,F=null,I=null;function L(){N(),P!==null&&window.clearTimeout(P),P=window.setTimeout(()=>{P=null,N()},200)}function R(){F?.disconnect(),F=null;let e=M(j.value),t=e?.querySelector(`.ac-split-scroll [data-slot="scroll-area-viewport"]`)??e?.querySelector(`[data-slot="scroll-area-viewport"]`)??null;!t||typeof ResizeObserver>`u`||(F=new ResizeObserver(()=>{I!==null&&window.clearTimeout(I),I=window.setTimeout(()=>{I=null,N()},80)}),F.observe(t))}function z(){(0,t.nextTick)(()=>{L(),R()})}(0,t.watch)(()=>[a.currentId,a.items.length],()=>z()),(0,t.watch)(C,()=>z()),(0,t.watch)(w,()=>z()),(0,t.onBeforeUnmount)(()=>{F?.disconnect(),F=null,I!==null&&window.clearTimeout(I),P!==null&&window.clearTimeout(P),ne(),window.removeEventListener(`pointerdown`,oe,!0)}),(0,t.onMounted)(()=>{window.addEventListener(`pointerdown`,oe,!0)});function B(e){e.disabled||o(`pick`,e)}function ee(e){return(e.accounts?.length??0)>1}function te(e){return e.accountId||e.defaultAccount||``}let V=(0,t.ref)(``);function H(e,t){if(t){ne(),V.value=e;return}V.value===e&&ie(e)}let U=null;function ne(){U!==null&&(window.clearTimeout(U),U=null)}function ie(e){ne(),U=window.setTimeout(()=>{V.value===e&&(V.value=``),U=null},Pm)}function ae(){ne()}function oe(e){if(!V.value)return;let t=e.target;!t||typeof t.closest!=`function`||t.closest(`[data-slot="dropdown-menu-sub-content"]`)||t.closest(`.ac-model-entry-sub`)||t.closest(`.ac-model-account-menu`)||(ne(),V.value=``)}function se(e,t){o(`pickAccount`,e.id,t),ne(),V.value=``}return n({refreshLayout:z}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`ac-panel cp-panel`,{"is-split":C.value===`split`}]),role:`listbox`,"aria-label":e.title},[(0,t.createElementVNode)(`div`,kp,[(0,t.createElementVNode)(`div`,Ap,[(0,t.createElementVNode)(`div`,jp,[(0,t.createElementVNode)(`span`,Mp,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)(`span`,Np,(0,t.toDisplayString)(e.items.length),1)]),(0,t.createElementVNode)(`div`,Pp,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`ac-view-tab`,{"is-active":C.value===`card`}]),"aria-selected":C.value===`card`,role:`tab`,onClick:r[0]||=e=>T(`card`)},`卡片`,10,Fp),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`ac-view-tab`,{"is-active":C.value===`split`}]),"aria-selected":C.value===`split`,role:`tab`,onClick:r[1]||=e=>T(`split`)},`分栏`,10,Ip)])]),(0,t.createVNode)((0,t.unref)(p),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(m),{align:`inline-start`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ve),{size:14,"aria-hidden":`true`})]),_:1}),(0,t.createVNode)((0,t.unref)(g),{modelValue:S.value,"onUpdate:modelValue":r[2]||=e=>S.value=e,type:`text`,name:`cp-search`,placeholder:e.placeholder,"aria-label":e.placeholder,autocomplete:`off`,spellcheck:`false`},null,8,[`modelValue`,`placeholder`,`aria-label`]),S.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(m),{key:0,align:`inline-end`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(h),{size:`icon-xs`,"aria-label":`清空搜索`,onClick:r[3]||=e=>S.value=``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae))]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1})]),e.items.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,ref_key:`scrollRef`,ref:j,class:`ac-menu-scroll ac-panel-body`},[(0,t.createElementVNode)(`div`,Rp,[(0,t.createVNode)(Wi,{class:(0,t.normalizeClass)([`ac-panel-scroll ac-view-pane`,{"is-active":C.value===`card`}]),"body-class":`ac-panel-scroll-body ac-model-scroll-body`},{default:(0,t.withCtx)(()=>[A.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,zp,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(A.value,n=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(_),{key:n.id,open:V.value===n.id,"onUpdate:open":e=>H(n.id,e)},{default:(0,t.withCtx)(()=>[ee(n)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(v),{key:0,class:`ac-model-entry ac-model-entry-sub`,"aria-selected":n.id===e.currentId,disabled:n.disabled,"text-value":n.title,onMouseenter:ae,onClick:e=>B(n)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:`ac-model-brand`,title:(0,t.unref)(hr)(E(n)),"aria-hidden":`true`,innerHTML:n.svg||(0,t.unref)(mr)(E(n))},null,8,Bp),(0,t.createElementVNode)(`span`,Vp,[(0,t.createElementVNode)(`span`,Hp,[(0,t.createElementVNode)(`span`,Up,(0,t.toDisplayString)(n.title),1),n.isDefault?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(c),{key:0,variant:`secondary`},{default:(0,t.withCtx)(()=>[...r[4]||=[(0,t.createTextVNode)(`默认`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`span`,Wp,[(0,t.createVNode)((0,t.unref)(d),{"delay-duration":260,"disable-hoverable-content":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(l),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(f),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Gp,(0,t.toDisplayString)(D(n)),1)]),_:2},1024),(0,t.createVNode)((0,t.unref)(u),{side:`right`,arrow:!0,class:`ac-model-tip`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Kp,(0,t.toDisplayString)(D(n)),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)])]),n.id===e.currentId?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,qp,[(0,t.createVNode)((0,t.unref)(O),{size:16,"stroke-width":2})])):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`aria-selected`,`disabled`,`text-value`,`onClick`])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(s),{key:1,variant:`ghost`,size:`sm`,class:`ac-model-entry ac-model-hit`,role:`option`,"aria-selected":n.id===e.currentId,disabled:n.disabled,onClick:e=>B(n)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:`ac-model-brand`,title:(0,t.unref)(hr)(E(n)),"aria-hidden":`true`,innerHTML:n.svg||(0,t.unref)(mr)(E(n))},null,8,Jp),(0,t.createElementVNode)(`span`,Yp,[(0,t.createElementVNode)(`span`,Xp,[(0,t.createElementVNode)(`span`,Zp,(0,t.toDisplayString)(n.title),1),n.isDefault?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(c),{key:0,variant:`secondary`},{default:(0,t.withCtx)(()=>[...r[5]||=[(0,t.createTextVNode)(`默认`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`span`,Qp,[(0,t.createVNode)((0,t.unref)(d),{"delay-duration":260,"disable-hoverable-content":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(l),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(f),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,$p,(0,t.toDisplayString)(D(n)),1)]),_:2},1024),(0,t.createVNode)((0,t.unref)(u),{side:`right`,arrow:!0,class:`ac-model-tip`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,em,(0,t.toDisplayString)(D(n)),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)])]),n.id===e.currentId?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,tm,[(0,t.createVNode)((0,t.unref)(O),{size:16,"stroke-width":2})])):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`aria-selected`,`disabled`,`onClick`])),ee(n)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(y),{key:2,class:`ac-model-account-menu`,onMouseenter:ae,onMouseleave:e=>ie(n.id)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(x),null,{default:(0,t.withCtx)(()=>[...r[6]||=[(0,t.createTextVNode)(`选择账号`,-1)]]),_:1}),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(n.accounts,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(b),{key:e.id,class:`ac-model-account-item`,onSelect:(0,t.withModifiers)(t=>se(n,e.id),[`prevent`])},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,nm,(0,t.toDisplayString)(e.name||e.id),1),e.id===te(n)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(O),{key:0,size:14})):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`onSelect`]))),128))]),_:2},1032,[`onMouseleave`])):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`open`,`onUpdate:open`]))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,rm,[(0,t.createElementVNode)(`span`,im,[(0,t.createVNode)((0,t.unref)(ve),{size:18})]),(0,t.createElementVNode)(`span`,am,(0,t.toDisplayString)(e.emptyText),1),r[7]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-desc`},`换个关键词或平台试试。`,-1)]))]),_:1},8,[`class`]),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`ac-view-pane ac-split`,{"is-active":C.value===`split`}])},[(0,t.createElementVNode)(`aside`,{class:`ac-split-rail`,"aria-label":e.railLabel},[(0,t.createElementVNode)(`div`,sm,(0,t.toDisplayString)(e.railLabel),1),(0,t.createVNode)(Wi,{class:`ac-rail-scroll`,"body-class":`ac-rail-scroll-body`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(k.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(s),{key:e.key,variant:`ghost`,size:`sm`,"aria-pressed":w.value===e.key,onClick:t=>w.value=e.key},{default:(0,t.withCtx)(()=>[e.key===`all`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,cm,[(0,t.createVNode)((0,t.unref)(re),{size:14})])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,class:`ac-rail-brand`,title:e.label,"aria-hidden":`true`,innerHTML:(0,t.unref)(mr)(e.key)},null,8,lm)),(0,t.createElementVNode)(`span`,um,(0,t.toDisplayString)(e.label),1),(0,t.createElementVNode)(`span`,dm,(0,t.toDisplayString)(e.count),1)]),_:2},1032,[`aria-pressed`,`onClick`]))),128))]),_:1})],8,om),(0,t.createElementVNode)(`div`,fm,[(0,t.createVNode)(Wi,{class:`ac-split-scroll`,"body-class":`ac-split-scroll-body`},{default:(0,t.withCtx)(()=>[A.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,pm,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(A.value,n=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(_),{key:n.id,open:V.value===n.id,"onUpdate:open":e=>H(n.id,e)},{default:(0,t.withCtx)(()=>[ee(n)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(v),{key:0,class:`ac-model-entry ac-model-entry-row ac-model-entry-sub`,"aria-selected":n.id===e.currentId,disabled:n.disabled,"text-value":n.title,onMouseenter:ae,onClick:e=>B(n)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:`ac-model-brand`,title:(0,t.unref)(hr)(E(n)),"aria-hidden":`true`,innerHTML:n.svg||(0,t.unref)(mr)(E(n))},null,8,mm),(0,t.createElementVNode)(`span`,hm,[(0,t.createElementVNode)(`span`,gm,(0,t.toDisplayString)(n.title),1),(0,t.createElementVNode)(`span`,_m,[(0,t.createVNode)((0,t.unref)(d),{"delay-duration":260,"disable-hoverable-content":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(l),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(f),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,vm,(0,t.toDisplayString)(D(n)),1)]),_:2},1024),(0,t.createVNode)((0,t.unref)(u),{side:`right`,arrow:!0,class:`ac-model-tip`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,ym,(0,t.toDisplayString)(D(n)),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)])]),(0,t.createElementVNode)(`span`,bm,[n.isDefault?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(c),{key:0,variant:`secondary`},{default:(0,t.withCtx)(()=>[...r[8]||=[(0,t.createTextVNode)(`默认`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0)]),n.id===e.currentId?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,xm,[(0,t.createVNode)((0,t.unref)(O),{size:16,"stroke-width":2})])):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`aria-selected`,`disabled`,`text-value`,`onClick`])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(s),{key:1,variant:`ghost`,size:`sm`,class:`ac-model-entry ac-model-entry-row ac-model-hit`,role:`option`,"aria-selected":n.id===e.currentId,disabled:n.disabled,onClick:e=>B(n)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:`ac-model-brand`,title:(0,t.unref)(hr)(E(n)),"aria-hidden":`true`,innerHTML:n.svg||(0,t.unref)(mr)(E(n))},null,8,Sm),(0,t.createElementVNode)(`span`,Cm,[(0,t.createElementVNode)(`span`,wm,(0,t.toDisplayString)(n.title),1),(0,t.createElementVNode)(`span`,Tm,[(0,t.createVNode)((0,t.unref)(d),{"delay-duration":260,"disable-hoverable-content":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(l),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(f),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Em,(0,t.toDisplayString)(D(n)),1)]),_:2},1024),(0,t.createVNode)((0,t.unref)(u),{side:`right`,arrow:!0,class:`ac-model-tip`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Dm,(0,t.toDisplayString)(D(n)),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)])]),(0,t.createElementVNode)(`span`,Om,[n.isDefault?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(c),{key:0,variant:`secondary`},{default:(0,t.withCtx)(()=>[...r[9]||=[(0,t.createTextVNode)(`默认`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0)]),n.id===e.currentId?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,km,[(0,t.createVNode)((0,t.unref)(O),{size:16,"stroke-width":2})])):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`aria-selected`,`disabled`,`onClick`])),ee(n)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(y),{key:2,class:`ac-model-account-menu`,onMouseenter:ae,onMouseleave:e=>ie(n.id)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(x),null,{default:(0,t.withCtx)(()=>[...r[10]||=[(0,t.createTextVNode)(`选择账号`,-1)]]),_:1}),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(n.accounts,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(b),{key:e.id,class:`ac-model-account-item`,onSelect:(0,t.withModifiers)(t=>se(n,e.id),[`prevent`])},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Am,(0,t.toDisplayString)(e.name||e.id),1),e.id===te(n)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(O),{key:0,size:14})):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`onSelect`]))),128))]),_:2},1032,[`onMouseleave`])):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`open`,`onUpdate:open`]))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,jm,[(0,t.createElementVNode)(`span`,Mm,[(0,t.createVNode)((0,t.unref)(ve),{size:18})]),(0,t.createElementVNode)(`span`,Nm,(0,t.toDisplayString)(e.emptyText),1),r[11]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-desc`},`换个关键词或平台试试。`,-1)]))]),_:1})])],2)])],512)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Lp,(0,t.toDisplayString)(e.emptyText),1))],10,Op))}}),[[`__scopeId`,`data-v-771dc089`]]),Im=`agent:reference-node`,Lm=G((0,t.defineComponent)({__name:`AgentRefToolbar`,setup(e){let{ctx:n}=(0,r.useCanvasRender)(),i=(0,r.useUiComponent)(`Button`),a=(0,r.useCapability)(`selection`),o=(0,t.computed)(()=>a?.ids().length??0),s=(0,t.computed)(()=>o.value>=1),c=(0,t.computed)(()=>n.tryGet(`canvas`));function l(){if(!s.value)return;let e=a?.ids()??[];c.value?.runCommand(Im,{nodeIds:e})}return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i),{class:`agent-ref-toolbar__btn`,variant:`ghost`,size:`sm`,type:`button`,title:`引用到 Agent`,"aria-label":`引用到 Agent`,disabled:!s.value,onClick:l},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(r.ToolbarIcon),{icon:(0,t.unref)(Zt)},null,8,[`icon`]),n[0]||=(0,t.createElementVNode)(`span`,null,`引用到 Agent`,-1)]),_:1},8,[`disabled`]))}}),[[`__scopeId`,`data-v-de8b88b4`]]),Rm={class:`agent-settings-nav-anchor`,"aria-hidden":`true`},zm=G((0,t.defineComponent)({__name:`AgentSettingsNav`,props:{group:{},active:{type:Boolean},onSelect:{type:Function}},setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Rm))}}),[[`__scopeId`,`data-v-c1cb0fd7`]]),Bm={class:`sdh`},Vm={class:`sdh-top`},Hm={class:`sdh-text`},Um={class:`sdh-title`},Wm={key:0,class:`sdh-desc`},Gm=G((0,t.defineComponent)({__name:`SettingsDetailHeader`,props:{backLabel:{},title:{},description:{}},emits:[`back`],setup(e){let n=(0,r.useUiComponent)(`Button`);return(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`header`,Bm,[(0,t.createElementVNode)(`div`,Vm,[(0,t.createVNode)((0,t.unref)(n),{variant:`ghost`,size:`xs`,type:`button`,class:`sdh-back`,onClick:i[0]||=e=>r.$emit(`back`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(x),{size:14,"aria-hidden":`true`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.backLabel),1)]),_:1}),(0,t.renderSlot)(r.$slots,`actions`,{},void 0,!0)]),(0,t.createElementVNode)(`div`,Hm,[(0,t.createElementVNode)(`h3`,Um,(0,t.toDisplayString)(e.title),1),e.description?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Wm,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)(``,!0)])]))}}),[[`__scopeId`,`data-v-ff337a5a`]]);async function Km(e,t,n,r){await Promise.allSettled(e.map(async e=>{try{n(e,await t(e))}finally{r?.()}}))}var qm={class:`ap ap-models`},Jm={key:0,class:`ap-error`},Ym={class:`ap-list-head`},Xm={class:`ap-hint`},Zm={class:`ap-list`},Qm={class:`ap-list-main`},$m={class:`ap-list-title`},eh={class:`ap-list-name`},th={key:0,class:`ap-badge`},nh={class:`ap-list-desc`},rh={class:`ap-list-meta`},ih={key:0,class:`ap-empty`},ah={key:1,class:`ap-hint`},oh={class:`ap-detail-actions`},sh={class:`ap-model-pull`},ch={class:`ap-hint`},lh={class:`ap-custom-row`},uh={key:0,class:`ap-picker`},dh={class:`ap-picker-head`},fh={class:`ap-hint`},ph={class:`ap-quick`},mh={class:`ap-tagpool`,role:`listbox`,"aria-multiselectable":`true`,"aria-label":`选择要保留的模型`},hh={key:1,class:`ap-hint`},gh={class:`ap-edit-foot`},_h={class:`ap-test-toolbar`},vh={key:0,class:`ap-saved-list`},yh=[`checked`,`aria-label`,`onChange`],bh={class:`ap-saved-name`},xh={key:1,class:`ap-hint`},Sh={class:`ap-test-actions`},Ch={class:`ap-quick`},wh={key:2,class:`ap-probe-results`},Th={class:`ap-probe-title`},Eh={class:`ap-probe-model`},Dh={class:`ap-probe-desc`},Oh={key:0,class:`ap-probe-reply`},kh={key:1,class:`ap-hint`},Ah=`openai-chat`,jh=`auto`,Mh=G((0,t.defineComponent)({__name:`ModelsPage`,setup(e){let n=(0,r.useUiComponent)(`Button`),i=(0,r.useUiComponent)(`Input`);(0,r.useUiComponent)(`Badge`);let a=(0,r.useUiComponent)(`Select`),o=(0,r.useUiComponent)(`SelectContent`),s=(0,r.useUiComponent)(`SelectItem`),c=(0,r.useUiComponent)(`SelectTrigger`),l=(0,r.useUiComponent)(`SelectValue`),u=(0,r.useUiComponent)(`settingsRow`),d=(0,r.useUiComponent)(`settingsSection`),f=ct(),p=f.state,m=(0,t.ref)(!1),h=(0,t.computed)(()=>[jh,Ah,...(p.clientTypes.length?p.clientTypes:[Ah]).filter(e=>e!==jh).filter(e=>e!==Ah)]),g=(0,t.computed)(()=>h.value.map(e=>({label:_(e),value:e})));function _(e){return e===jh?`自动检测(推荐)`:e===`openai-chat`?`openai-chat · OpenAI Chat(通用)`:e===`openai-responses`?`openai-responses · OpenAI Responses(通用)`:e===`ant-messages`?`ant-messages · Anthropic Messages(通用)`:e===`openai-chat-vllm-adapter`?`openai-chat-vllm-adapter · vLLM(专属)`:e===`deepseek-v4`?`deepseek-v4 · DeepSeek(专属)`:e===`minimax-m3`?`minimax-m3 · MiniMax(专属)`:e}let v=(0,t.ref)(!1),y=(0,t.ref)(!1),b=(0,t.ref)({provider:``,apiKey:``,baseUrl:``,clientType:jh,vision:!0}),x=(0,t.ref)(``),S=(0,t.ref)([]),C=(0,t.ref)(new Set),w=(0,t.ref)(!1),T=(0,t.ref)(new Set),E=(0,t.ref)({}),D=(0,t.ref)({done:0,total:0}),O=0,k=(0,t.ref)(``),A=(0,t.ref)(``),j=(0,t.ref)(``),M=(0,t.ref)(!1);(0,t.onMounted)(()=>void f.refresh());let P=(0,t.computed)(()=>{let e=new Map;for(let t of p.models){if(!t.hasKey)continue;let n=e.get(t.provider);n||(n={provider:t.provider,baseUrl:t.baseUrl??``,clientType:t.clientType??Ah,hasKey:!0,apiKeyMask:t.apiKeyMask??``,models:[]},e.set(t.provider,n)),n.models.push(t.modelId),t.isDefault&&(n.defaultModel=t.modelId),!n.baseUrl&&t.baseUrl&&(n.baseUrl=t.baseUrl),!n.apiKeyMask&&t.apiKeyMask&&(n.apiKeyMask=t.apiKeyMask)}return[...e.values()]}),F=(0,t.computed)(()=>y.value?`配置渠道 · `+b.value.provider:`添加渠道`),L=(0,t.computed)(()=>S.value.filter(e=>C.value.has(e))),R=(0,t.computed)(()=>L.value.flatMap(e=>E.value[e]?[{model:e,result:E.value[e]}]:[]));function z(){O+=1,E.value={},D.value={done:0,total:0}}function B(){w.value=!0,T.value=new Set,z()}function ee(){w.value=!1,T.value=new Set,z(),p.error=``}function te(e){b.value.provider=e.provider,b.value.baseUrl=e.baseUrl,b.value.clientType=e.clientType||Ah,b.value.apiKey=e.apiKeyMask,b.value.vision=!0,x.value=e.apiKeyMask,S.value=[...e.models],C.value=new Set(e.models),y.value=!0,v.value=!0,w.value=!1,T.value=new Set,A.value=``,j.value=``,z()}function V(){b.value={provider:``,baseUrl:``,apiKey:``,clientType:jh,vision:!0},x.value=``,S.value=[],C.value=new Set,k.value=``,y.value=!1,v.value=!0,w.value=!0,A.value=``,j.value=``,z()}function H(){v.value=!1,y.value=!1,j.value=``,p.error=``,z()}async function U(){A.value=`正在拉取…`,j.value=``;let e=await f.loadUpstreamModels({provider:b.value.provider,baseUrl:b.value.baseUrl,apiKey:b.value.apiKey});if(!e.ok){A.value=`拉取失败:`+(e.error??``)+`(可以在下面手动填写模型 ID)`;return}A.value=`拉到 `+e.models.length+` 个模型`,S.value=[...new Set([...e.models,...S.value])],y.value||(C.value=new Set),w.value=!0}function ne(){let e=k.value.trim();e&&(S.value.includes(e)||(S.value=[...S.value,e]),C.value=new Set([...C.value,e]),k.value=``,p.error=``)}function re(e){let t=new Set(C.value);t.has(e)?t.delete(e):t.add(e),C.value=t}let ie=()=>{C.value=new Set(S.value)},ae=()=>{let e=new Set;for(let t of S.value)C.value.has(t)||e.add(t);C.value=e},oe=()=>{C.value=new Set};function se(e){let t=new Set(T.value);t.has(e)?t.delete(e):t.add(e),T.value=t;let n={...E.value};delete n[e],E.value=n}let ce=()=>{T.value=new Set(L.value),z()},le=()=>{T.value=new Set,z()};async function ue(){let e=[...T.value];if(!e.length){p.error=`先勾选要测试的模型`;return}M.value=!0,p.error=``,z(),D.value={done:0,total:e.length};let t=++O,n={provider:b.value.provider||void 0,...b.value.baseUrl?{baseUrl:b.value.baseUrl}:{},...b.value.apiKey?{apiKey:b.value.apiKey}:{},clientType:b.value.clientType||jh};try{await Km(e,e=>f.probeModel({...n,modelId:e}),(e,n)=>{t===O&&(E.value={...E.value,[e]:n},n.ok&&n.clientType&&n.clientType!==jh&&(b.value.clientType=n.clientType))},()=>{t===O&&(D.value={...D.value,done:D.value.done+1})})}finally{t===O&&(M.value=!1)}}async function de(){if(!b.value.provider.trim()){p.error=`请先填渠道名`;return}if(!C.value.size){p.error=`至少勾选一个模型`;return}m.value=!0,p.error=``;try{let e=[...C.value];await f.saveModelsBulk({provider:b.value.provider.trim(),modelIds:e,...b.value.apiKey?{apiKey:b.value.apiKey}:{},...b.value.baseUrl?{baseUrl:b.value.baseUrl}:{},...b.value.clientType&&b.value.clientType!==jh?{clientType:b.value.clientType}:{},vision:b.value.vision,removeMissing:y.value,...y.value?{}:{makeDefault:e[0]}});let t=b.value.provider.trim();v.value=!1,y.value=!1,j.value=`已保存「`+t+`」:`+e.length+` 个模型`}catch(e){p.error=e instanceof Error?e.message:String(e)}finally{m.value=!1}}return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,qm,[(0,t.unref)(p).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Jm,(0,t.toDisplayString)((0,t.unref)(p).error),1)):(0,t.createCommentVNode)(``,!0),v.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.createVNode)(Gm,{"back-label":`返回渠道列表`,title:F.value,description:y.value?`改完保存会回到列表;取消勾选等于从渠道里删掉这个模型`:`填地址、拉模型或手动添加,勾选后保存`,onBack:H},{actions:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,oh,[(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,onClick:H},{default:(0,t.withCtx)(()=>[...r[7]||=[(0,t.createTextVNode)(`取消`,-1)]]),_:1}),(0,t.createVNode)((0,t.unref)(n),{type:`button`,size:`sm`,disabled:m.value,onClick:de},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(m.value?`保存中…`:y.value?`保存修改`:`添加渠道`),1)]),_:1},8,[`disabled`])])]),_:1},8,[`title`,`description`]),(0,t.createElementVNode)(`form`,{class:`ap-form-stack ap-model-form`,onSubmit:(0,t.withModifiers)(de,[`prevent`])},[(0,t.createVNode)((0,t.unref)(d),{title:`渠道信息`,class:`ap-flush-card`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(u),{label:`渠道名`,description:`给这批模型起个名字,例如 deepseek、token01`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(i),{modelValue:b.value.provider,"onUpdate:modelValue":r[0]||=e=>b.value.provider=e,class:`ap-input`,"aria-label":`渠道名`,placeholder:`例如 deepseek`},null,8,[`modelValue`])]),_:1}),(0,t.createVNode)((0,t.unref)(u),{label:`接口地址`,description:`上游 OpenAI 兼容地址,通常以 /v1 结尾`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(i),{modelValue:b.value.baseUrl,"onUpdate:modelValue":r[1]||=e=>b.value.baseUrl=e,class:`ap-input`,"aria-label":`接口地址`,placeholder:`https://{接口地址}/v1`,onInput:z},null,8,[`modelValue`])]),_:1}),(0,t.createVNode)((0,t.unref)(u),{label:`密钥`,description:y.value&&x.value?`已存密钥:`+x.value+`(只显示掩码,明文不会下发)`:`只写不回读,保存后界面只会看到掩码`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(i),{modelValue:b.value.apiKey,"onUpdate:modelValue":r[2]||=e=>b.value.apiKey=e,class:`ap-input`,type:`text`,spellcheck:`false`,autocomplete:`off`,"aria-label":`密钥`,placeholder:y.value?`留空 = 不改动已存密钥`:`粘贴密钥`,onInput:z},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`description`]),(0,t.createVNode)((0,t.unref)(u),{label:`接入协议`,description:`不确定就选「自动检测」:会依次试通用协议。第三方端点通用的是 openai-chat / openai-responses / ant-messages。`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a),{modelValue:b.value.clientType,"onUpdate:modelValue":r[3]||=e=>b.value.clientType=e},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(c),{class:`ap-select`,size:`sm`,"aria-label":`接入协议`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(l))]),_:1}),(0,t.createVNode)((0,t.unref)(o),{class:`settings-floating-layer`,position:`popper`,side:`bottom`,"side-offset":4},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(g.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(s),{key:e.value,value:e.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)]),_:2},1032,[`value`]))),128))]),_:1})]),_:1},8,[`modelValue`])]),_:1})]),_:1}),(0,t.createVNode)((0,t.unref)(d),{title:`模型清单`,description:w.value?`编辑中:点标签决定保留哪些模型,完成后点「完成编辑」`:L.value.length+` 个已保存模型 · 勾选后可以一次测多个`,class:`ap-flush-card`},{default:(0,t.withCtx)(()=>[w.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`div`,sh,[(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,onClick:U},{default:(0,t.withCtx)(()=>[...r[8]||=[(0,t.createTextVNode)(`拉取模型清单`,-1)]]),_:1}),(0,t.createElementVNode)(`span`,ch,(0,t.toDisplayString)(A.value||`向上游要模型清单,再勾选要留下的模型`),1)]),(0,t.createElementVNode)(`div`,lh,[(0,t.createVNode)((0,t.unref)(i),{modelValue:k.value,"onUpdate:modelValue":r[4]||=e=>k.value=e,class:`ap-input`,"aria-label":`自定义模型 ID`,placeholder:`上游没列出来?直接输入模型 ID`,onKeydown:(0,t.withKeys)((0,t.withModifiers)(ne,[`prevent`]),[`enter`])},null,8,[`modelValue`,`onKeydown`]),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,disabled:!k.value.trim(),onClick:ne},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(me),{size:13,"aria-hidden":`true`}),r[9]||=(0,t.createTextVNode)(` 添加模型 `,-1)]),_:1},8,[`disabled`])]),S.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,uh,[(0,t.createElementVNode)(`div`,dh,[(0,t.createElementVNode)(`span`,fh,`保留 `+(0,t.toDisplayString)(C.value.size)+` / `+(0,t.toDisplayString)(S.value.length)+` 个`,1),(0,t.createElementVNode)(`span`,ph,[(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,onClick:ie},{default:(0,t.withCtx)(()=>[...r[10]||=[(0,t.createTextVNode)(`全选`,-1)]]),_:1}),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,onClick:ae},{default:(0,t.withCtx)(()=>[...r[11]||=[(0,t.createTextVNode)(`反选`,-1)]]),_:1}),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,onClick:oe},{default:(0,t.withCtx)(()=>[...r[12]||=[(0,t.createTextVNode)(`清空`,-1)]]),_:1})])]),(0,t.createElementVNode)(`div`,mh,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(S.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:e,variant:C.value.has(e)?`default`:`outline`,size:`xs`,type:`button`,class:(0,t.normalizeClass)([`ap-tagchip`,{"is-on":C.value.has(e)}]),role:`option`,"aria-selected":C.value.has(e),title:e,onClick:t=>re(e)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e),1)]),_:2},1032,[`variant`,`class`,`aria-selected`,`title`,`onClick`]))),128))])])):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,hh,`还没有候选模型 —— 点「拉取模型清单」,或在上面手填模型 ID。`)),(0,t.createElementVNode)(`div`,gh,[(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,onClick:ee},{default:(0,t.withCtx)(()=>[...r[13]||=[(0,t.createTextVNode)(`完成编辑`,-1)]]),_:1})])],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createElementVNode)(`div`,_h,[r[15]||=(0,t.createElementVNode)(`span`,{class:`ap-hint`},`勾选模型后点「测试选中」——每个都会真发一句请求`,-1),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,onClick:B},{default:(0,t.withCtx)(()=>[...r[14]||=[(0,t.createTextVNode)(`编辑模型`,-1)]]),_:1})]),L.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,vh,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(L.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`label`,{key:e,class:(0,t.normalizeClass)([`ap-saved-row`,{"is-test-on":T.value.has(e)}])},[(0,t.createElementVNode)(`input`,{type:`checkbox`,class:`ap-saved-check`,checked:T.value.has(e),"aria-label":`选择测试 `+e,onChange:t=>se(e)},null,40,yh),(0,t.createElementVNode)(`span`,bh,(0,t.toDisplayString)(e),1),E.value[e]?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:(0,t.normalizeClass)([`ap-saved-result`,{"is-ok":E.value[e].ok}])},[E.value[e].ok?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)(`通 · `+(0,t.toDisplayString)(E.value[e].clientType)+` · `+(0,t.toDisplayString)(E.value[e].latencyMs)+`ms`,1)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)(`没通`)],64))],2)):(0,t.createCommentVNode)(``,!0)],2))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,xh,`还没有模型 —— 点「编辑模型」添加。`)),(0,t.createElementVNode)(`div`,Sh,[(0,t.createElementVNode)(`span`,Ch,[(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,onClick:ce},{default:(0,t.withCtx)(()=>[...r[16]||=[(0,t.createTextVNode)(`全选`,-1)]]),_:1}),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,onClick:le},{default:(0,t.withCtx)(()=>[...r[17]||=[(0,t.createTextVNode)(`清空`,-1)]]),_:1})]),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,disabled:M.value||!T.value.size,onClick:ue},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(M.value?`测试中…(`+D.value.done+`/`+D.value.total+`)`:`测试选中(`+T.value.size+`)`),1)]),_:1},8,[`disabled`])]),R.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,wh,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(R.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.model,class:(0,t.normalizeClass)([`ap-probe-result`,{"is-ok":e.result.ok}])},[(0,t.createElementVNode)(`p`,Th,[e.result.ok?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(N),{key:0,size:14,"aria-hidden":`true`})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(I),{key:1,size:14,"aria-hidden":`true`})),(0,t.createElementVNode)(`span`,Eh,(0,t.toDisplayString)(e.model),1),(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)([`ap-probe-state`,e.result.ok?`is-ok`:`is-bad`])},(0,t.toDisplayString)(e.result.ok?`通了`:`没通`),3)]),(0,t.createElementVNode)(`p`,Dh,[e.result.ok?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.result.clientType)+` · `+(0,t.toDisplayString)(e.result.latencyMs)+`ms`,1)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.result.error||`请求失败`),1)],64))]),e.result.reply?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Oh,`回复「`+(0,t.toDisplayString)(e.result.reply)+`」`,1)):(0,t.createCommentVNode)(``,!0),e.result.fallback===`non-stream`?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,kh,` 这个网关的流式返回缺少用量字段,检测改用了一次普通请求确认连通。 `)):(0,t.createCommentVNode)(``,!0)],2))),128))])):(0,t.createCommentVNode)(``,!0)],64))]),_:1},8,[`description`])],32)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createElementVNode)(`div`,Ym,[(0,t.createElementVNode)(`span`,Xm,(0,t.toDisplayString)(P.value.length)+` 个渠道 · `+(0,t.toDisplayString)((0,t.unref)(p).models.filter(e=>e.hasKey).length)+` 个模型`,1),(0,t.createVNode)((0,t.unref)(n),{size:`sm`,type:`button`,onClick:V},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(me),{size:13,"aria-hidden":`true`}),r[5]||=(0,t.createTextVNode)(` 添加渠道 `,-1)]),_:1})]),(0,t.createElementVNode)(`ul`,Zm,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(P.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:e.provider,class:`ap-list-row`},[(0,t.createElementVNode)(`div`,Qm,[(0,t.createElementVNode)(`div`,$m,[(0,t.createElementVNode)(`span`,eh,(0,t.toDisplayString)(e.provider),1),e.defaultModel?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,th,`默认 `+(0,t.toDisplayString)(e.defaultModel),1)):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,nh,(0,t.toDisplayString)(e.baseUrl||`未填接口地址`),1),(0,t.createElementVNode)(`div`,rh,(0,t.toDisplayString)(e.models.length)+` 个模型 · `+(0,t.toDisplayString)(e.clientType),1)]),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,"aria-label":`配置 `+e.provider,onClick:t=>te(e)},{default:(0,t.withCtx)(()=>[...r[6]||=[(0,t.createTextVNode)(`配置`,-1)]]),_:1},8,[`aria-label`,`onClick`])]))),128))]),P.value.length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,ih,`还没有渠道 —— 点右上「添加渠道」,填地址、拉模型、勾选后保存`)),j.value?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,ah,(0,t.toDisplayString)(j.value),1)):(0,t.createCommentVNode)(``,!0)],64))]))}}),[[`__scopeId`,`data-v-e17084d5`]]),Nh={class:`ap ap-skills`},Ph={key:0,class:`ap-error`},Fh={key:0,class:`ap-empty`},Ih={key:0,class:`ap-tag`},Lh={key:0,class:`ap-empty`},Rh={class:`ap-form-actions`},zh=G((0,t.defineComponent)({__name:`SkillsPage`,setup(e){let n=(0,r.useUiComponent)(`Button`),i=(0,r.useUiComponent)(`Input`),a=(0,r.useUiComponent)(`settingsRow`),o=(0,r.useUiComponent)(`settingsSection`),s=ct(),c=s.state,l=(0,t.ref)(``),u=(0,t.ref)(!1);(0,t.onMounted)(async()=>{await s.refresh(),await s.loadSkillCandidates()});async function d(){let e=l.value.trim();if(e){u.value=!0;try{await s.importSkill(e),l.value=``,await s.loadSkillCandidates()}catch(e){c.error=e instanceof Error?e.message:String(e)}finally{u.value=!1}}}return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Nh,[(0,t.unref)(c).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Ph,(0,t.toDisplayString)((0,t.unref)(c).error),1)):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(o),{title:`已安装的技能`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(c).skills,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(a),{key:e.name,label:e.name,description:e.description||`(无描述)`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n),{variant:`destructive`,size:`sm`,type:`button`,"aria-label":`卸载 `+e.name,onClick:n=>(0,t.unref)(s).removeSkill(e.name)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ce),{size:13,"aria-hidden":`true`}),r[1]||=(0,t.createTextVNode)(` 卸载 `,-1)]),_:1},8,[`aria-label`,`onClick`])]),_:2},1032,[`label`,`description`]))),128)),(0,t.unref)(c).skills.length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Fh,`还没有安装技能`))]),_:1}),(0,t.createVNode)((0,t.unref)(o),{title:`可导入的技能`,description:`扫描技能来源目录得到的候选`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(c).skillCandidates,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(a),{key:e.dir,label:e.name,description:e.description||`(无描述)`},{default:(0,t.withCtx)(()=>[e.installed?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Ih,`已安装`)):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:1,variant:`outline`,size:`sm`,type:`button`,"aria-label":`导入 `+e.name,onClick:n=>(0,t.unref)(s).importSkill(e.dir)},{default:(0,t.withCtx)(()=>[...r[2]||=[(0,t.createTextVNode)(` 导入 `,-1)]]),_:1},8,[`aria-label`,`onClick`]))]),_:2},1032,[`label`,`description`]))),128)),(0,t.unref)(c).skillCandidates.length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Lh,`来源目录里没有可用技能`))]),_:1}),(0,t.createVNode)((0,t.unref)(o),{title:`按目录导入`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`form`,{class:`ap-form-stack ap-skill-form`,onSubmit:(0,t.withModifiers)(d,[`prevent`])},[(0,t.createVNode)((0,t.unref)(i),{modelValue:l.value,"onUpdate:modelValue":r[0]||=e=>l.value=e,"aria-label":`技能目录`,placeholder:`{技能来源目录}/<技能名>`},null,8,[`modelValue`]),(0,t.createElementVNode)(`div`,Rh,[(0,t.createVNode)((0,t.unref)(n),{type:`submit`,size:`sm`,disabled:u.value||!l.value.trim()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ee),{size:13,"aria-hidden":`true`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(u.value?`导入中…`:`导入`),1)]),_:1},8,[`disabled`]),r[3]||=(0,t.createElementVNode)(`span`,{class:`ap-hint`},`填技能目录在来源目录下的绝对路径`,-1)])],32)]),_:1})]))}}),[[`__scopeId`,`data-v-e5c1cc7e`]]),Bh={class:`ap ap-mcp`},Vh={key:0,class:`ap-error`},Hh={key:1,class:`ap-mcp-list`},Uh={class:`ap-list-head`},Wh={class:`ap-hint`},Gh={class:`ap-list`},Kh={class:`ap-list-row`},qh={class:`ap-list-main`},Jh={class:`ap-list-title`},Yh={class:`ap-list-name`},Xh={class:`ap-list-desc`},Zh={key:0,class:`ap-list-err`},Qh={key:1,class:`ap-list-meta`},$h={key:2,class:`ap-readonly`},eg={key:0,class:`ap-server-detail`},tg={key:0,class:`ap-list-err`},ng={key:1,class:`ap-hint`},rg={key:2,class:`ap-tagpool`},ig={key:3,class:`ap-hint`},ag={key:0,class:`ap-empty ap-empty-card`},og={class:`ap-mcp-probe`},sg={key:1,class:`ap-probe`},cg={key:0,class:`ap-error`},lg={key:2,class:`ap-mcp-add`},ug={class:`ap-draft-probe`},dg={key:0,class:`ap-error`},fg={class:`ap-probe-title`},pg={class:`ap-probe-desc`},mg={key:0,class:`ap-tagpool`},hg={class:`ap-form-actions is-sticky`},gg=G((0,t.defineComponent)({__name:`McpPage`,setup(e){let n=(0,r.useUiComponent)(`Badge`),i=(0,r.useUiComponent)(`Button`),a=(0,r.useUiComponent)(`Input`),o=(0,r.useUiComponent)(`Select`),s=(0,r.useUiComponent)(`SelectContent`),c=(0,r.useUiComponent)(`SelectItem`),l=(0,r.useUiComponent)(`SelectTrigger`),u=(0,r.useUiComponent)(`SelectValue`),d=(0,r.useUiComponent)(`settingsRow`);(0,r.useUiComponent)(`settingsSection`);let f=ct(),p=f.state,m=[{label:`http`,value:`http`},{label:`sse`,value:`sse`},{label:`stdio`,value:`stdio`}],h=(0,t.ref)(!1),g=(0,t.ref)(!1),_=(0,t.ref)({name:``,kind:`http`,url:``,command:`node`,args:``}),v=(0,t.computed)(()=>_.value.kind===`stdio`),y=(0,t.ref)(!1),b=(0,t.ref)(null),x=(0,t.ref)(new Set),S=(0,t.ref)(!1),C=(0,t.ref)(null);(0,t.onMounted)(()=>void f.refresh());async function w(){y.value=!0,b.value=null,x.value=new Set;try{b.value=await f.probeMcp();let e=b.value.servers.filter(e=>e.status!==`completed`),t=(e.length?e:b.value.servers.slice(0,1)).map(e=>e.name);x.value=new Set(t)}finally{y.value=!1}}function T(e){return b.value?.servers.find(t=>t.name===e)}function E(e){return(b.value?.tools??[]).filter(t=>t.server===e)}function D(e){let t=new Set(x.value);t.has(e)?t.delete(e):t.add(e),x.value=t}function O(){_.value={name:``,kind:`http`,url:``,command:`node`,args:``},g.value=!0,p.error=``,C.value=null}function k(){g.value=!1,p.error=``}async function A(){S.value=!0,C.value=null,p.error=``;try{C.value=await f.probeMcpDraft({name:_.value.name.trim()||`draft`,kind:_.value.kind,...v.value?{command:_.value.command,args:_.value.args.split(/\s+/).filter(Boolean)}:{url:_.value.url}})}finally{S.value=!1}}async function j(){h.value=!0;try{await f.addMcp({name:_.value.name,kind:_.value.kind,...v.value?{command:_.value.command,args:_.value.args.split(/\s+/).filter(Boolean)}:{url:_.value.url}}),g.value=!1}catch(e){p.error=e instanceof Error?e.message:String(e)}finally{h.value=!1}}return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Bh,[(0,t.unref)(p).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Vh,(0,t.toDisplayString)((0,t.unref)(p).error),1)):(0,t.createCommentVNode)(``,!0),g.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,lg,[(0,t.createVNode)(Gm,{"back-label":`返回 MCP 列表`,title:`添加 MCP 服务`,description:`填完后回到列表查看;自带服务不会被这里改动。`,onBack:k}),(0,t.createElementVNode)(`form`,{class:`ap-form-stack ap-mcp-form`,onSubmit:(0,t.withModifiers)(j,[`prevent`])},[(0,t.createVNode)((0,t.unref)(d),{label:`名称`,description:`只作标签,字母、数字、下划线和短横线`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a),{modelValue:_.value.name,"onUpdate:modelValue":r[0]||=e=>_.value.name=e,class:`ap-input`,"aria-label":`MCP 名称`,placeholder:`给这个服务起个名字`,onInput:r[1]||=e=>C.value=null},null,8,[`modelValue`])]),_:1}),(0,t.createVNode)((0,t.unref)(d),{label:`类型`,description:`http / sse 用地址;stdio 启动本地命令`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(o),{modelValue:_.value.kind,"onUpdate:modelValue":[r[2]||=e=>_.value.kind=e,r[3]||=e=>C.value=null]},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(l),{class:`ap-select`,size:`sm`,"aria-label":`MCP 传输类型`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(u))]),_:1}),(0,t.createVNode)((0,t.unref)(s),{class:`settings-floating-layer`,position:`popper`,side:`bottom`,"side-offset":4},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(m,e=>(0,t.createVNode)((0,t.unref)(c),{key:e.value,value:e.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)]),_:2},1032,[`value`])),64))]),_:1})]),_:1},8,[`modelValue`])]),_:1}),v.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(d),{key:1,label:`命令`,description:`启动这个 MCP 服务的命令`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a),{modelValue:_.value.command,"onUpdate:modelValue":r[6]||=e=>_.value.command=e,class:`ap-input`,"aria-label":`MCP 命令`,placeholder:`例如:npx`,onInput:r[7]||=e=>C.value=null},null,8,[`modelValue`])]),_:1})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(d),{key:0,label:`URL`,description:`MCP 端点的完整地址`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a),{modelValue:_.value.url,"onUpdate:modelValue":r[4]||=e=>_.value.url=e,class:`ap-input`,"aria-label":`MCP URL`,placeholder:`https://{服务地址}/mcp`,onInput:r[5]||=e=>C.value=null},null,8,[`modelValue`])]),_:1})),v.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(d),{key:2,label:`参数`,description:`用空格分隔`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a),{modelValue:_.value.args,"onUpdate:modelValue":r[8]||=e=>_.value.args=e,class:`ap-input`,"aria-label":`MCP 参数`,placeholder:`用空格分隔`,onInput:r[9]||=e=>C.value=null},null,8,[`modelValue`])]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,ug,[(0,t.createVNode)((0,t.unref)(i),{variant:`outline`,size:`sm`,type:`button`,disabled:S.value,onClick:A},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(pe),{size:13,"aria-hidden":`true`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(S.value?`检测中…`:`检测配置`),1)]),_:1},8,[`disabled`]),r[16]||=(0,t.createElementVNode)(`span`,{class:`ap-hint`},`用表单里现在填的值连一次,不会保存`,-1)]),C.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:3,class:(0,t.normalizeClass)([`ap-probe-result`,{"is-ok":C.value.ok}])},[C.value.error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,dg,(0,t.toDisplayString)(C.value.error),1)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createElementVNode)(`p`,fg,[(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)([`ap-probe-state`,C.value.ok?`is-ok`:`is-bad`])},(0,t.toDisplayString)(C.value.ok?`连接成功`:`连接失败`),3),(0,t.createElementVNode)(`span`,pg,(0,t.toDisplayString)(C.value.servers.length)+` 个服务 · `+(0,t.toDisplayString)(C.value.tools.length)+` 个工具`,1)]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(C.value.servers,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`p`,{key:e.name,class:(0,t.normalizeClass)([`ap-probe-desc`,{"is-bad-text":e.status!==`completed`}])},[(0,t.createTextVNode)((0,t.toDisplayString)(e.name)+` · `+(0,t.toDisplayString)(e.status)+` · `+(0,t.toDisplayString)(e.tools)+` 个工具`,1),e.error?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)(` · `+(0,t.toDisplayString)(e.error),1)],64)):(0,t.createCommentVNode)(``,!0)],2))),128)),C.value.tools.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,mg,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(C.value.tools,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:e.fullName,variant:`secondary`,title:e.description},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.name),1)]),_:2},1032,[`title`]))),128))])):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(C.value.warnings,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`p`,{key:e,class:`ap-hint is-bad`},(0,t.toDisplayString)(e),1))),128))],64))],2)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,hg,[(0,t.createVNode)((0,t.unref)(i),{variant:`outline`,size:`sm`,type:`button`,onClick:k},{default:(0,t.withCtx)(()=>[...r[17]||=[(0,t.createTextVNode)(`取消`,-1)]]),_:1}),(0,t.createVNode)((0,t.unref)(i),{type:`submit`,size:`sm`,disabled:h.value||!_.value.name.trim()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(me),{size:13,"aria-hidden":`true`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(h.value?`保存中…`:`添加`),1)]),_:1},8,[`disabled`])])],32)])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Hh,[(0,t.createElementVNode)(`div`,Uh,[(0,t.createElementVNode)(`span`,Wh,(0,t.toDisplayString)((0,t.unref)(p).mcpServers.length)+` 个已配置 · 自带服务只读`,1),(0,t.createVNode)((0,t.unref)(i),{size:`sm`,type:`button`,onClick:O},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(me),{size:13,"aria-hidden":`true`}),r[10]||=(0,t.createTextVNode)(` 添加 MCP `,-1)]),_:1})]),(0,t.createElementVNode)(`ul`,Gh,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(p).mcpServers,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:e.name,class:`ap-list-item`},[(0,t.createElementVNode)(`div`,Kh,[(0,t.createElementVNode)(`div`,qh,[(0,t.createElementVNode)(`div`,Jh,[(0,t.createElementVNode)(`span`,Yh,(0,t.toDisplayString)(e.name),1),e.builtin?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:0,variant:`secondary`},{default:(0,t.withCtx)(()=>[...r[11]||=[(0,t.createTextVNode)(`自带`,-1)]]),_:1})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:1,variant:`outline`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.permission??`auto`),1)]),_:2},1024)),e.invalid?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:2,variant:`outline`},{default:(0,t.withCtx)(()=>[...r[12]||=[(0,t.createTextVNode)(`配置有误`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0),T(e.name)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:3,class:(0,t.normalizeClass)([`ap-server-state`,T(e.name).status===`completed`?`is-ok`:`is-bad`])},(0,t.toDisplayString)(T(e.name).status===`completed`?`通 · `+T(e.name).tools+` 个工具`:`没通`),3)):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,Xh,(0,t.toDisplayString)(String(e.config.url||e.config.command||``)||`(没有地址)`),1),e.invalid?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Zh,(0,t.toDisplayString)(e.invalid),1)):e.builtin?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Qh,`随智能助手内置:不能修改,也不能删除`)):(0,t.createCommentVNode)(``,!0)]),T(e.name)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i),{key:0,variant:`ghost`,size:`xs`,type:`button`,"aria-expanded":x.value.has(e.name),"aria-label":`查看 `+e.name+` 的检测结果`,onClick:t=>D(e.name)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(x.value.has(e.name)?`收起`:`详情`),1)]),_:2},1032,[`aria-expanded`,`aria-label`,`onClick`])):(0,t.createCommentVNode)(``,!0),e.builtin?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,$h,`只读`)):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i),{key:1,variant:`destructive`,size:`sm`,type:`button`,disabled:h.value,"aria-label":`删除 MCP `+e.name,onClick:n=>(0,t.unref)(f).removeMcp(e.name)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ce),{size:13,"aria-hidden":`true`}),r[13]||=(0,t.createTextVNode)(` 删除 `,-1)]),_:1},8,[`disabled`,`aria-label`,`onClick`]))]),T(e.name)&&x.value.has(e.name)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,eg,[T(e.name).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,tg,(0,t.toDisplayString)(T(e.name).error),1)):(0,t.createCommentVNode)(``,!0),E(e.name).length?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,ng,(0,t.toDisplayString)(E(e.name).length)+` 个工具 · `+(0,t.toDisplayString)(T(e.name).transport||`连接`)+` · `+(0,t.toDisplayString)(T(e.name).durationMs)+`ms `,1)):(0,t.createCommentVNode)(``,!0),E(e.name).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,rg,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(E(e.name),e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:e.fullName,variant:`secondary`,title:e.description},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.name),1)]),_:2},1032,[`title`]))),128))])):T(e.name).status===`completed`?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,ig,`连上了,但没发现任何工具。`)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0)]))),128))]),(0,t.unref)(p).mcpServers.length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ag,[(0,t.createVNode)((0,t.unref)(pe),{size:20,"aria-hidden":`true`}),r[14]||=(0,t.createElementVNode)(`strong`,null,`还没有 MCP 服务`,-1),r[15]||=(0,t.createElementVNode)(`span`,null,`点右上「添加 MCP」,填地址或命令就能接上外部工具。`,-1)])),(0,t.createElementVNode)(`div`,og,[(0,t.createVNode)((0,t.unref)(i),{variant:`outline`,size:`sm`,type:`button`,disabled:y.value||!(0,t.unref)(p).mcpServers.length,onClick:w},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(pe),{size:13,"aria-hidden":`true`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(y.value?`连接中…`:`检查连接`),1)]),_:1},8,[`disabled`])]),b.value&&(b.value.error||b.value.warnings.length)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,sg,[b.value.error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,cg,(0,t.toDisplayString)(b.value.error),1)):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(b.value.warnings,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`p`,{key:e,class:`ap-hint is-bad`},(0,t.toDisplayString)(e),1))),128))])):(0,t.createCommentVNode)(``,!0)]))]))}}),[[`__scopeId`,`data-v-a9a72e33`]]),_g={class:`ap ap-rules`},vg={key:0,class:`ap-error`},yg={class:`ap-rule-detail-head`},bg={class:`ap-rule-detail-actions`},xg={class:`ap-rule-detail-title`},Sg={class:`ap-rule-toolbar`},Cg={class:`ap-hint`},wg={class:`ap-rule-main`},Tg={class:`ap-rule-title`},Eg={class:`ap-rule-pattern`},Dg={key:0,class:`ap-rule-badge`},Og={class:`ap-rule-desc`},kg={class:`ap-rule-actions`},Ag={key:0,class:`ap-empty`},jg={class:`ap-form-actions`},Mg={class:`ap-quick`},Ng=G((0,t.defineComponent)({__name:`RulesPage`,setup(e){let n=(0,r.useUiComponent)(`Button`),i=(0,r.useUiComponent)(`Input`),a=(0,r.useUiComponent)(`Switch`),o=(0,r.useUiComponent)(`settingsRow`),s=(0,r.useUiComponent)(`settingsSection`),c=ct(),l=c.state,u=(0,r.useCanvasContextOrRender)().ctx.tryGet(`feedback`),d=(0,t.ref)(``),f=(0,t.ref)(!1),p=[{id:`exec`,pattern:`exec_command`,ask:!0,label:`执行命令`},{id:`input`,pattern:`input_command`,ask:!0,label:`向命令写入`},{id:`write`,pattern:`write_file`,ask:!0,label:`写文件`},{id:`edit`,pattern:`edit_file`,ask:!0,label:`改文件`}];(0,t.onMounted)(()=>void c.refresh());let m=(0,t.ref)(``),h=(0,t.ref)({pattern:``,label:``}),g=(0,t.computed)(()=>l.policy.rules.find(e=>e.id===m.value)),_=(0,t.computed)(()=>{let e=g.value;return e?h.value.pattern.trim()!==e.pattern||h.value.label.trim()!==(e.label??``):!1}),v=e=>p.find(t=>t.id===e.id||t.pattern===e.pattern);async function y(e,t=l.policy.enabled){f.value=!0;try{await c.savePolicy({enabled:t,rules:e})}finally{f.value=!1}}function b(){y(l.policy.rules,!l.policy.enabled)}function S(e){y(l.policy.rules.map(t=>t.id===e.id?{...t,ask:!t.ask}:t))}function C(e){y(l.policy.rules.filter(t=>t.id!==e.id))}function w(){let e=d.value.trim();e&&(d.value=``,y([...l.policy.rules,{id:e,pattern:e,ask:!0}]))}function T(e,t){y([...l.policy.rules,{id:e,pattern:e,ask:!0,...t?{label:t}:{}}])}function E(e){m.value=e.id,h.value={pattern:e.pattern,label:e.label??``},l.error=``}function D(){m.value=``,l.error=``}async function O(){let e=g.value,t=h.value.pattern.trim();if(e){if(!t){l.error=`匹配模式不能为空`;return}await y(l.policy.rules.map(n=>n.id===e.id?{id:n.id,pattern:t,ask:n.ask,...h.value.label.trim()?{label:h.value.label.trim()}:{}}:n)),l.error||D()}}async function k(e){let t=v(e);t&&await u?.confirm({title:`恢复这条规则的默认值?`,description:`会把匹配模式改成「`+t.pattern+`」,说明改成「`+(t.label??``)+`」。`,confirmText:`恢复默认`,cancelText:`取消`})&&await y(l.policy.rules.map(n=>n.id===e.id?{...n,pattern:t.pattern,label:t.label}:n))}async function A(){if(await u?.confirm({title:`恢复全部审批规则?`,description:`会丢掉你自建的规则,并把这 `+p.length+` 条出厂规则放回来;总开关也会重新打开。`,confirmText:`恢复默认`,cancelText:`取消`,tone:`destructive`})){f.value=!0;try{await c.restorePolicy()}finally{f.value=!1}}}return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,_g,[(0,t.unref)(l).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,vg,(0,t.toDisplayString)((0,t.unref)(l).error),1)):(0,t.createCommentVNode)(``,!0),g.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createElementVNode)(`div`,yg,[(0,t.createVNode)((0,t.unref)(n),{variant:`ghost`,size:`xs`,type:`button`,class:`ap-rule-back`,onClick:D},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(x),{size:14,"aria-hidden":`true`}),r[8]||=(0,t.createTextVNode)(` 返回规则列表 `,-1)]),_:1}),(0,t.createElementVNode)(`span`,bg,[v(g.value)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:0,variant:`outline`,size:`sm`,type:`button`,disabled:f.value,"aria-label":`恢复这条规则的默认值`,onClick:r[0]||=e=>k(g.value)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ge),{size:13,"aria-hidden":`true`}),r[9]||=(0,t.createTextVNode)(` 恢复默认 `,-1)]),_:1},8,[`disabled`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(n),{type:`button`,size:`sm`,disabled:f.value||!_.value,onClick:O},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(_e),{size:13,"aria-hidden":`true`}),r[10]||=(0,t.createTextVNode)(` 保存 `,-1)]),_:1},8,[`disabled`])])]),(0,t.createElementVNode)(`h3`,xg,`编辑规则 · `+(0,t.toDisplayString)(g.value.pattern),1),r[11]||=(0,t.createElementVNode)(`p`,{class:`ap-hint`},`匹配模式支持 * 通配,例如 mcp__smart__* 或 exec_command。`,-1),(0,t.createVNode)((0,t.unref)(s),{title:`规则`,class:`ap-flush-card`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(o),{label:`匹配模式`,description:`工具名,或带 * 的通配;例如 mcp__{服务名}__*`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(i),{modelValue:h.value.pattern,"onUpdate:modelValue":r[1]||=e=>h.value.pattern=e,class:`ap-input`,"aria-label":`匹配模式`,placeholder:`例如:exec_command`},null,8,[`modelValue`])]),_:1}),(0,t.createVNode)((0,t.unref)(o),{label:`说明`,description:`只是给人看的标签,可以留空`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(i),{modelValue:h.value.label,"onUpdate:modelValue":r[2]||=e=>h.value.label=e,class:`ap-input`,"aria-label":`规则说明`,placeholder:`例如:执行命令`},null,8,[`modelValue`])]),_:1}),(0,t.createVNode)((0,t.unref)(o),{label:`命中时询问`,description:`关掉 = 命中这条时直接放行`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a),{"model-value":g.value.ask,"aria-label":`命中时询问`,"onUpdate:modelValue":r[3]||=e=>S(g.value)},null,8,[`model-value`])]),_:1})]),_:1})],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.createElementVNode)(`div`,Sg,[(0,t.createElementVNode)(`span`,Cg,(0,t.toDisplayString)((0,t.unref)(l).policy.rules.length)+` 条规则 · 点「编辑」改模式与说明`,1),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,disabled:f.value,onClick:A},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ge),{size:13,"aria-hidden":`true`}),r[12]||=(0,t.createTextVNode)(` 恢复默认 `,-1)]),_:1},8,[`disabled`])]),(0,t.createVNode)((0,t.unref)(s),{title:`总开关`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(o),{label:`接受审核`,description:`打开 = 命中下面规则的工具先问你;关掉 = 完全自动授权,全部放行`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a),{"model-value":(0,t.unref)(l).policy.enabled,"aria-label":`接受审核`,"onUpdate:modelValue":b},null,8,[`model-value`])]),_:1})]),_:1}),(0,t.createVNode)((0,t.unref)(s),{title:`需要审批的工具`,description:(0,t.unref)(l).policy.rules.length+` 条规则`,class:`ap-flush-card`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(l).policy.rules,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:`ap-rule-row`},[(0,t.createElementVNode)(`div`,wg,[(0,t.createElementVNode)(`div`,Tg,[(0,t.createElementVNode)(`span`,Eg,(0,t.toDisplayString)(e.pattern),1),v(e)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Dg,`出厂`)):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,Og,(0,t.toDisplayString)(e.label||(e.ask?`命中即询问`:`直接放行`)),1)]),(0,t.createElementVNode)(`div`,kg,[(0,t.createVNode)((0,t.unref)(a),{"model-value":e.ask,"aria-label":`切换 `+e.pattern+` 是否需要审批`,"onUpdate:modelValue":t=>S(e)},null,8,[`model-value`,`aria-label`,`onUpdate:modelValue`]),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,"aria-label":`编辑规则 `+e.pattern,onClick:t=>E(e)},{default:(0,t.withCtx)(()=>[...r[13]||=[(0,t.createTextVNode)(`编辑`,-1)]]),_:1},8,[`aria-label`,`onClick`]),(0,t.createVNode)((0,t.unref)(n),{variant:`destructive`,size:`icon-sm`,type:`button`,"aria-label":`删除规则 `+e.pattern,disabled:f.value,onClick:t=>C(e)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ce),{size:13,"aria-hidden":`true`})]),_:1},8,[`aria-label`,`disabled`,`onClick`])])]))),128)),(0,t.unref)(l).policy.rules.length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Ag,`没有任何规则 —— 一切都会被放行`))]),_:1},8,[`description`]),(0,t.createVNode)((0,t.unref)(s),{title:`添加规则`,description:`匹配模式支持 * 通配,例如 mcp__smart__* 或 exec_command`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`form`,{class:`ap-form-stack ap-rule-form`,onSubmit:(0,t.withModifiers)(w,[`prevent`])},[(0,t.createElementVNode)(`div`,jg,[(0,t.createVNode)((0,t.unref)(i),{modelValue:d.value,"onUpdate:modelValue":r[4]||=e=>d.value=e,"aria-label":`匹配模式`,placeholder:`例如:mcp__{服务名}__*`},null,8,[`modelValue`]),(0,t.createVNode)((0,t.unref)(n),{type:`submit`,size:`sm`,disabled:f.value||!d.value.trim()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(me),{size:13,"aria-hidden":`true`}),r[14]||=(0,t.createTextVNode)(` 添加 `,-1)]),_:1},8,[`disabled`])]),(0,t.createElementVNode)(`div`,Mg,[r[18]||=(0,t.createElementVNode)(`span`,{class:`ap-tag`},`快加:`,-1),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,onClick:r[5]||=e=>T(`mcp__smart__*`,`smart MCP 全部工具`)},{default:(0,t.withCtx)(()=>[...r[15]||=[(0,t.createTextVNode)(`smart MCP`,-1)]]),_:1}),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,onClick:r[6]||=e=>T(`exec_command`,`执行命令`)},{default:(0,t.withCtx)(()=>[...r[16]||=[(0,t.createTextVNode)(`执行命令`,-1)]]),_:1}),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,onClick:r[7]||=e=>T(`write_file`,`写文件`)},{default:(0,t.withCtx)(()=>[...r[17]||=[(0,t.createTextVNode)(`写文件`,-1)]]),_:1})])],32)]),_:1})],64))]))}}),[[`__scopeId`,`data-v-09d02ab7`]]),Pg={class:`pv`},Fg={class:`pv-head`},Ig={class:`pv-head-text`},Lg={class:`pv-count`},Rg={key:0,class:`pv-empty`},zg={key:0,class:`pv-group`},Bg={class:`pv-chips`},Vg={key:1,class:`pv-group`},Hg={class:`pv-chips`},Ug={key:2,class:`pv-empty`},Wg=G((0,t.defineComponent)({__name:`PromptVariables`,props:{scope:{default:`content`},readonly:{type:Boolean,default:!1}},emits:[`insert`],setup(e,{emit:n}){let i=e,a=n,o=(0,r.useUiComponent)(`Button`),s=(0,r.useUiComponent)(`Input`),c=ct().state,l=(0,t.ref)(``),u=(0,t.computed)(()=>{let e=l.value.trim().toLowerCase();return(c.agentContext?.placeholders??[]).filter(t=>i.scope===`content`&&t.token===`{{AGENTS_MD}}`?!1:e?t.token.toLowerCase().includes(e)||t.description.toLowerCase().includes(e):!0)}),d=(0,t.computed)(()=>u.value.filter(e=>e.source===`plume-canvas`)),f=(0,t.computed)(()=>u.value.filter(e=>e.source===`harness`));function p(e){i.readonly||a(`insert`,e.token)}function m(e){return e.description+(e.value?`(当前:`+e.value+`)`:``)}return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Pg,[(0,t.createElementVNode)(`div`,Fg,[(0,t.createElementVNode)(`div`,Ig,[n[1]||=(0,t.createElementVNode)(`span`,{class:`pv-title`},`可用变量`,-1),(0,t.createElementVNode)(`span`,Lg,(0,t.toDisplayString)(u.value.length)+` 个`,1)]),(0,t.createVNode)((0,t.unref)(s),{modelValue:l.value,"onUpdate:modelValue":n[0]||=e=>l.value=e,class:`pv-search`,"aria-label":`筛选提示词变量`,placeholder:`筛选变量…`},null,8,[`modelValue`])]),n[4]||=(0,t.createElementVNode)(`p`,{class:`pv-hint`},`点一下插到光标处;每次建会话时换成当时的值。`,-1),(0,t.unref)(c).agentContext?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[d.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,zg,[n[2]||=(0,t.createElementVNode)(`span`,{class:`pv-group-title`},`本站运行环境`,-1),(0,t.createElementVNode)(`div`,Bg,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(d.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(o),{key:e.token,variant:`outline`,size:`xs`,type:`button`,class:`pv-chip`,title:m(e),"aria-label":`插入变量 `+e.token,onClick:t=>p(e)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`code`,null,(0,t.toDisplayString)(e.token),1)]),_:2},1032,[`title`,`aria-label`,`onClick`]))),128))])])):(0,t.createCommentVNode)(``,!0),f.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Vg,[n[3]||=(0,t.createElementVNode)(`span`,{class:`pv-group-title`},`运行时提供`,-1),(0,t.createElementVNode)(`div`,Hg,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(f.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(o),{key:e.token,variant:`outline`,size:`xs`,type:`button`,class:`pv-chip`,title:m(e),"aria-label":`插入变量 `+e.token,onClick:t=>p(e)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`code`,null,(0,t.toDisplayString)(e.token),1)]),_:2},1032,[`title`,`aria-label`,`onClick`]))),128))])])):(0,t.createCommentVNode)(``,!0),u.value.length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Ug,`没有匹配的变量`))],64)):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Rg,`还没连上后台,变量清单稍后出现。`))]))}}),[[`__scopeId`,`data-v-885b18f2`]]),Gg={class:`ped`},Kg=G((0,t.defineComponent)({__name:`PromptEditor`,props:{modelValue:{},label:{},placeholder:{},readonly:{type:Boolean,default:!1},scope:{default:`content`},height:{default:220}},emits:[`update:modelValue`],setup(e,{emit:n}){let i=e,a=n,o=(0,r.useUiComponent)(`Textarea`),s=(0,t.ref)(null);function c(){let e=s.value?.$el;return e instanceof HTMLTextAreaElement?e:null}function l(e){if(i.readonly)return;let t=c();if(!t){a(`update:modelValue`,i.modelValue+e);return}let n=t.selectionStart??i.modelValue.length,r=t.selectionEnd??n;a(`update:modelValue`,i.modelValue.slice(0,n)+e+i.modelValue.slice(r)),requestAnimationFrame(()=>{t.focus(),t.setSelectionRange(n+e.length,n+e.length)})}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Gg,[(0,t.createVNode)((0,t.unref)(o),{ref_key:`textarea`,ref:s,"model-value":e.modelValue,readonly:e.readonly,"aria-label":e.label,placeholder:e.placeholder,class:`ped-textarea`,style:(0,t.normalizeStyle)({height:e.height+`px`}),"onUpdate:modelValue":r[0]||=e=>a(`update:modelValue`,String(e))},null,8,[`model-value`,`readonly`,`aria-label`,`placeholder`,`style`]),(0,t.createVNode)(Wg,{scope:e.scope,readonly:e.readonly,onInsert:l},null,8,[`scope`,`readonly`])]))}}),[[`__scopeId`,`data-v-5e15f21d`]]),qg={class:`ap ap-prompt`},Jg={key:0,class:`ap-error`},Yg={key:1,class:`ap-warnblock`},Xg={class:`ap-warnline`},Zg={class:`ap-list-head`},Qg={class:`ap-hint`},$g={class:`ap-list-actions`},e_={class:`ap-list`},t_={class:`ap-list-main`},n_={class:`ap-list-title`},r_={class:`ap-list-name`},i_={class:`ap-badge`},a_={key:0,class:`ap-badge is-on`},o_={class:`ap-list-desc`},s_={class:`ap-list-meta`},c_={key:0,class:`ap-empty`},l_={class:`ap-detail-form`},u_={class:`ap-field`},d_={class:`ap-field`},f_={class:`ap-field-head`},p_={class:`ap-count`},m_={class:`ap-detail-foot is-sticky`},h_={key:0,class:`ap-hint ap-ok`},g_={key:1,class:`ap-hint`},__={key:2,class:`ap-hint`},v_=G((0,t.defineComponent)({__name:`PromptPage`,setup(e){let n=(0,r.useUiComponent)(`Button`),i=(0,r.useUiComponent)(`Input`),a=ct(),o=a.state,s=(0,r.useCanvasContextOrRender)().ctx.tryGet(`feedback`),c=(0,t.ref)([]),l=(0,t.ref)(``),u=(0,t.ref)(!1),d=(0,t.ref)(!1),f=(0,t.ref)(!1),p=0;function m(e){return e.map(e=>({...e}))}function h(){c.value=m(o.prompts),c.value.some(e=>e.id===l.value)||(l.value=c.value[0]?.id??``),d.value=!1}(0,t.onMounted)(async()=>{await a.refresh(),h()});let g=(0,t.computed)(()=>c.value.find(e=>e.id===l.value)),_=(0,t.ref)(``),v=(0,t.computed)(()=>JSON.stringify(c.value)!==JSON.stringify(o.prompts)),y=(0,t.computed)(()=>!o.templateHealth.ok);function b(e){l.value=e.id,_.value=e.id,d.value=!1}function x(){_.value=``,d.value=!1}async function S(){let e=g.value;!e||!e.builtin||await s?.confirm({title:`恢复「`+e.name+`」的默认内容?`,description:`会把名字和正文换回出厂版本。现在的修改会丢掉(点保存后才写回后台)。`,confirmText:`恢复默认`,cancelText:`取消`})&&(e.name=e.defaultName??e.name,e.text=e.defaultText??``,d.value=!1)}function C(){let e=`user-`+Date.now()+`-`+ ++p;c.value.push({id:e,name:`新模式`,text:``}),l.value=e,_.value=e,d.value=!1}function w(){let e=g.value;!e||e.builtin||(c.value=c.value.filter(t=>t.id!==e.id),l.value=c.value[0]?.id??``,_.value=``,d.value=!1)}async function T(){u.value=!0;try{await a.savePrompts(m(c.value)),h(),d.value=!0}catch(e){o.error=e instanceof Error?e.message:String(e)}finally{u.value=!1}}async function E(){f.value=!0;try{await a.restoreTemplate()}finally{f.value=!1}}function D(){d.value=!1}function k(e){let t=e.replace(/\s+/g,` `);return t.length>64?t.slice(0,64)+`…`:t}return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,qg,[(0,t.unref)(o).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Jg,(0,t.toDisplayString)((0,t.unref)(o).error),1)):(0,t.createCommentVNode)(``,!0),y.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Yg,[(0,t.createElementVNode)(`p`,Xg,[(0,t.createVNode)((0,t.unref)(we),{size:13}),(0,t.createElementVNode)(`span`,null,[r[2]||=(0,t.createTextVNode)(`提示词模板坏了:缺 `,-1),(0,t.createElementVNode)(`code`,null,(0,t.toDisplayString)((0,t.unref)(o).templateHealth.missing.join(`、`)),1),r[3]||=(0,t.createTextVNode)(`, 这会让这里写的提示词一个字都进不到模型。`,-1)])]),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,disabled:f.value,onClick:E},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ke),{size:13,"aria-hidden":`true`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(f.value?`恢复中…`:`恢复出厂模板`),1)]),_:1},8,[`disabled`])])):(0,t.createCommentVNode)(``,!0),_.value?g.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:3},[(0,t.createVNode)(Gm,{"back-label":`返回模式列表`,title:`编辑模式 · `+(g.value.name||`未命名模式`),description:`选中这套模式时,这段内容会接在 Agent 提示词后面一起进模型;变量在下面点一下就能插入。`,onBack:x},{actions:(0,t.withCtx)(()=>[g.value.builtin?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:0,variant:`outline`,size:`xs`,type:`button`,"aria-label":`恢复这条模式的默认内容`,onClick:S},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ge),{size:12,"aria-hidden":`true`}),r[7]||=(0,t.createTextVNode)(` 恢复默认 `,-1)]),_:1})):(0,t.createCommentVNode)(``,!0),g.value.builtin?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:1,variant:`destructive`,size:`xs`,type:`button`,"aria-label":`删除 `+g.value.name,onClick:w},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ce),{size:12,"aria-hidden":`true`}),r[8]||=(0,t.createTextVNode)(` 删除 `,-1)]),_:1},8,[`aria-label`]))]),_:1},8,[`title`]),(0,t.createElementVNode)(`div`,l_,[(0,t.createElementVNode)(`label`,u_,[r[9]||=(0,t.createElementVNode)(`span`,{class:`ap-field-label`},`模式名称`,-1),(0,t.createVNode)((0,t.unref)(i),{modelValue:g.value.name,"onUpdate:modelValue":r[0]||=e=>g.value.name=e,class:`ap-input`,"aria-label":`模式名称`,placeholder:`显示在模式选择里`,onInput:D},null,8,[`modelValue`])]),(0,t.createElementVNode)(`div`,d_,[(0,t.createElementVNode)(`div`,f_,[r[10]||=(0,t.createElementVNode)(`span`,{class:`ap-field-label`},`追加提示词`,-1),(0,t.createElementVNode)(`span`,p_,(0,t.toDisplayString)(g.value.text.length)+` 字`,1)]),(0,t.createVNode)(Kg,{modelValue:g.value.text,"onUpdate:modelValue":[r[1]||=e=>g.value.text=e,D],label:`模式提示词正文`,placeholder:`写这套模式的追加指令…`,height:240},null,8,[`modelValue`])]),(0,t.createElementVNode)(`div`,m_,[d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,h_,[(0,t.createVNode)((0,t.unref)(O),{size:12}),r[11]||=(0,t.createTextVNode)(` 已保存`,-1)])):v.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,g_,`有未保存的修改`)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,__,`存在后台,换台机器也在`)),(0,t.createVNode)((0,t.unref)(n),{type:`button`,size:`sm`,disabled:u.value||!v.value,onClick:T},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(_e),{size:13,"aria-hidden":`true`}),r[12]||=(0,t.createTextVNode)(` 保存 `,-1)]),_:1},8,[`disabled`])])])],64)):(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.createElementVNode)(`div`,Zg,[(0,t.createElementVNode)(`span`,Qg,(0,t.toDisplayString)(c.value.length)+` 套模式 · 选中哪套,就把它那一段接在 Agent 提示词后面`,1),(0,t.createElementVNode)(`div`,$g,[v.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:0,type:`button`,size:`sm`,disabled:u.value,onClick:T},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(_e),{size:13,"aria-hidden":`true`}),r[4]||=(0,t.createTextVNode)(` 保存修改 `,-1)]),_:1},8,[`disabled`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(n),{size:`sm`,type:`button`,onClick:C},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(me),{size:13,"aria-hidden":`true`}),r[5]||=(0,t.createTextVNode)(` 新建模式 `,-1)]),_:1})])]),(0,t.createElementVNode)(`ul`,e_,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:e.id,class:`ap-list-row`},[(0,t.createElementVNode)(`div`,t_,[(0,t.createElementVNode)(`div`,n_,[(0,t.createElementVNode)(`span`,r_,(0,t.toDisplayString)(e.name||`未命名模式`),1),(0,t.createElementVNode)(`span`,i_,(0,t.toDisplayString)(e.builtin?`内置 · 不可删除`:`自建`),1),e.id===(0,t.unref)(o).activePromptId?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,a_,`当前使用`)):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,o_,(0,t.toDisplayString)(e.text?k(e.text):`还没有正文`),1),(0,t.createElementVNode)(`div`,s_,(0,t.toDisplayString)(e.text.length)+` 字`,1)]),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,"aria-label":`编辑 `+e.name,onClick:t=>b(e)},{default:(0,t.withCtx)(()=>[...r[6]||=[(0,t.createTextVNode)(`编辑`,-1)]]),_:1},8,[`aria-label`,`onClick`])]))),128))]),c.value.length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,c_,`还没有模式提示词`))],64))]))}}),[[`__scopeId`,`data-v-9c41acbb`]]),y_={class:`ap ap-title-model`},b_={key:0,class:`ap-error`},x_={class:`ap-form-actions`},S_={key:0,class:`ap-hint`},C_={key:1,class:`ap-hint`},w_=`__default__`,T_=G((0,t.defineComponent)({__name:`TitleModelPage`,setup(e){let n=(0,r.useUiComponent)(`Button`),i=(0,r.useUiComponent)(`Select`),a=(0,r.useUiComponent)(`SelectContent`),o=(0,r.useUiComponent)(`SelectItem`),s=(0,r.useUiComponent)(`SelectTrigger`),c=(0,r.useUiComponent)(`SelectValue`),l=(0,r.useUiComponent)(`settingsRow`),u=(0,r.useUiComponent)(`settingsSection`),d=ct(),f=d.state,p=(0,t.ref)(``),m=(0,t.ref)(``),h=(0,t.ref)(!1),g=(0,t.ref)(!1);(0,t.onMounted)(async()=>{await d.refresh(),await d.loadTitleModel(),p.value=f.titleModel.provider,m.value=f.titleModel.modelId});let _=(0,t.computed)(()=>{let e=new Map;for(let t of f.models){if(!t.hasKey)continue;let n=e.get(t.provider)??[];n.push(t.modelId),e.set(t.provider,n)}return[...e.entries()].map(([e,t])=>({provider:e,models:t}))}),v=(0,t.computed)(()=>_.value.find(e=>e.provider===p.value)?.models??[]),y=(0,t.computed)(()=>[{label:`(用会话默认模型)`,value:w_},..._.value.map(e=>({label:e.provider,value:e.provider}))]),b=(0,t.computed)(()=>[{label:`(用会话默认模型)`,value:w_},...v.value.map(e=>({label:e,value:e}))]);function x(e){p.value=e===w_?``:e,m.value=v.value[0]??``,g.value=!1}function S(e){m.value=e===w_?``:e,g.value=!1}async function C(){h.value=!0;try{await d.saveTitleModel(p.value,m.value),g.value=!0}catch(e){f.error=e instanceof Error?e.message:String(e)}finally{h.value=!1}}return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,y_,[(0,t.unref)(f).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,b_,(0,t.toDisplayString)((0,t.unref)(f).error),1)):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(u),{title:`会话标题模型`,description:`新会话第一轮结束后,用这个模型总结对话内容生成标题(替代「首句截断」)。两个都留空 = 用会话默认模型;起名失败时仍回落首句截断,不影响对话。`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(l),{label:`渠道`,description:`只有配了密钥的渠道能选`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(i),{"model-value":p.value||w_,"onUpdate:modelValue":r[0]||=e=>x(String(e))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(s),{class:`ap-select`,size:`sm`,"aria-label":`会话标题渠道`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(c),{placeholder:`选择渠道`})]),_:1}),(0,t.createVNode)((0,t.unref)(a),{class:`settings-floating-layer`,position:`popper`,side:`bottom`,"side-offset":4},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(y.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(o),{key:e.value,value:e.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)]),_:2},1032,[`value`]))),128))]),_:1})]),_:1},8,[`model-value`])]),_:1}),(0,t.createVNode)((0,t.unref)(l),{label:`模型`,description:`留空 = 跟随会话默认模型`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(i),{"model-value":m.value||w_,disabled:!p.value,"onUpdate:modelValue":r[1]||=e=>S(String(e))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(s),{class:`ap-select`,size:`sm`,"aria-label":`会话标题模型`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(c),{placeholder:`选择模型`})]),_:1}),(0,t.createVNode)((0,t.unref)(a),{class:`settings-floating-layer`,position:`popper`,side:`bottom`,"side-offset":4},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(b.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(o),{key:e.value,value:e.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)]),_:2},1032,[`value`]))),128))]),_:1})]),_:1},8,[`model-value`,`disabled`])]),_:1}),(0,t.createVNode)((0,t.unref)(l),{label:`保存`,description:`保存后下一个新会话生效`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,x_,[(0,t.createVNode)((0,t.unref)(n),{type:`button`,size:`sm`,disabled:h.value||!p.value&&!m.value,onClick:C},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(_e),{size:13,"aria-hidden":`true`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(h.value?`保存中…`:`保存`),1)]),_:1},8,[`disabled`]),g.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,S_,`已保存`)):!p.value&&!m.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,C_,`当前用会话默认模型`)):(0,t.createCommentVNode)(``,!0)])]),_:1})]),_:1})]))}}),[[`__scopeId`,`data-v-aefc556c`]]),E_={class:`ap ap-agent-prompt`},D_={key:0,class:`ap-error`},O_={key:1,class:`ap-warnblock`},k_={class:`ap-warnline`},A_={class:`ap-prompt-form`},j_={class:`ap-field`},M_={class:`ap-field-head`},N_={class:`ap-count`},P_={class:`ap-detail-foot is-sticky`},F_={key:0,class:`ap-hint ap-ok`},I_={key:1,class:`ap-hint`},L_={key:2,class:`ap-hint`},R_={class:`ap-detail-actions`},z_=G((0,t.defineComponent)({__name:`AgentPromptPage`,setup(e){let n=(0,r.useUiComponent)(`Button`),i=(0,r.useUiComponent)(`settingsRow`),a=(0,r.useUiComponent)(`settingsSection`),o=ct(),s=o.state,c=(0,r.useCanvasContextOrRender)().ctx.tryGet(`feedback`),l=(0,t.ref)(``),u=(0,t.ref)(!1),d=(0,t.ref)(!1);(0,t.onMounted)(async()=>{await o.refresh(),l.value=s.systemPrompt});let f=(0,t.computed)(()=>l.value!==s.systemPrompt),p=(0,t.computed)(()=>!s.templateHealth.ok);async function m(){u.value=!0;try{await o.saveSystemPrompt(l.value),d.value=!0}catch(e){s.error=e instanceof Error?e.message:String(e)}finally{u.value=!1}}async function h(){await c?.confirm({title:`恢复 Agent 提示词的默认内容?`,description:`会把常驻指令清空(出厂状态就是没有额外指令)。现在的修改会丢掉,点保存后才写回。`,confirmText:`恢复默认`,cancelText:`取消`})&&(l.value=``,d.value=!1)}return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,E_,[(0,t.unref)(s).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,D_,(0,t.toDisplayString)((0,t.unref)(s).error),1)):(0,t.createCommentVNode)(``,!0),p.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,O_,[(0,t.createElementVNode)(`p`,k_,[(0,t.createVNode)((0,t.unref)(we),{size:13}),(0,t.createElementVNode)(`span`,null,[r[2]||=(0,t.createTextVNode)(`系统提示词模板坏了:缺 `,-1),(0,t.createElementVNode)(`code`,null,(0,t.toDisplayString)((0,t.unref)(s).templateHealth.missing.join(`、`)),1),r[3]||=(0,t.createTextVNode)(`, 这会让这一页写的内容一个字都进不到模型。去「系统提示词」页点恢复。`,-1)])])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,A_,[(0,t.createElementVNode)(`div`,j_,[(0,t.createElementVNode)(`div`,M_,[r[4]||=(0,t.createElementVNode)(`span`,{class:`ap-field-label`},`常驻指令`,-1),(0,t.createElementVNode)(`span`,N_,(0,t.toDisplayString)(l.value.length)+` 字`,1)]),(0,t.createVNode)(Kg,{modelValue:l.value,"onUpdate:modelValue":[r[0]||=e=>l.value=e,r[1]||=e=>d.value=!1],label:`Agent 提示词`,placeholder:`例如:回答用中文,简短直接。动画布之前先读一次画布现状…`,height:260},null,8,[`modelValue`])]),(0,t.createElementVNode)(`div`,P_,[d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,F_,[(0,t.createVNode)((0,t.unref)(O),{size:12}),r[5]||=(0,t.createTextVNode)(` 已保存`,-1)])):f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,I_,`有未保存的修改`)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,L_,`每次新会话都会带上它(放在系统提示词的 [developer_instructions] 块里)`)),(0,t.createElementVNode)(`span`,R_,[(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,"aria-label":`恢复 Agent 提示词的默认内容`,onClick:h},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ge),{size:13,"aria-hidden":`true`}),r[6]||=(0,t.createTextVNode)(` 恢复默认 `,-1)]),_:1}),(0,t.createVNode)((0,t.unref)(n),{type:`button`,size:`sm`,disabled:u.value||!f.value,onClick:m},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(_e),{size:13,"aria-hidden":`true`}),r[7]||=(0,t.createTextVNode)(` 保存 `,-1)]),_:1},8,[`disabled`])])])]),(0,t.unref)(s).promptSections.length?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(a),{key:2,title:`还会自动附加的内容`,description:(0,t.unref)(s).promptSections.length+` 段 · 由后台按当前状态生成,不需要你重复写`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(s).promptSections,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i),{key:e.id,label:e.title,description:e.source+` · `+e.text.length+` 字`},null,8,[`label`,`description`]))),128))]),_:1},8,[`description`])):(0,t.createCommentVNode)(``,!0)]))}}),[[`__scopeId`,`data-v-9a04ad09`]]),B_={class:`ap ap-template`},V_={key:0,class:`ap-error`},H_={class:`ap-template-form`},U_={key:0,class:`ap-warnbody`},W_={class:`ap-warnline`},G_={class:`ap-field`},K_={class:`ap-field-head`},q_={class:`ap-count`},J_={key:1,class:`ap-warnline`},Y_={class:`ap-detail-foot is-sticky`},X_={key:0,class:`ap-hint ap-ok`},Z_={key:1,class:`ap-hint`},Q_={key:2,class:`ap-hint`},$_={class:`ap-detail-actions`},ev=G((0,t.defineComponent)({__name:`TemplatePage`,setup(e){let n=(0,r.useUiComponent)(`Button`),i=ct(),a=i.state,o=(0,r.useCanvasContextOrRender)().ctx.tryGet(`feedback`),s=(0,t.ref)(``),c=(0,t.ref)(!1),l=(0,t.ref)(!1),u=(0,t.ref)(!1);(0,t.onMounted)(async()=>{await i.refresh(),s.value=a.templateText});let d=(0,t.computed)(()=>!a.templateHealth.ok),f=(0,t.computed)(()=>s.value!==a.templateText),p=(0,t.computed)(()=>!s.value.includes(`{{AGENTS_MD}}`));async function m(){c.value=!0,a.error=``;try{await i.saveTemplate(s.value),s.value=a.templateText,l.value=!0}catch(e){a.error=e instanceof Error?e.message:String(e)}finally{c.value=!1}}async function h(){if(await o?.confirm({title:`恢复系统提示词的出厂模板?`,description:`会用出厂模板覆盖当前正文({{AGENTS_MD}} 仍然保留)。自己改过的内容会丢掉。`,confirmText:`恢复默认`,cancelText:`取消`,tone:`destructive`})){u.value=!0;try{await i.restoreTemplate(),s.value=a.templateText,l.value=!1}catch(e){a.error=e instanceof Error?e.message:String(e)}finally{u.value=!1}}}return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,B_,[(0,t.unref)(a).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,V_,(0,t.toDisplayString)((0,t.unref)(a).error),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,H_,[r[8]||=(0,t.createElementVNode)(`p`,{class:`ap-hint`},[(0,t.createTextVNode)(` 这是容器:`),(0,t.createElementVNode)(`code`,null,`{{AGENTS_MD}}`),(0,t.createTextVNode)(` 由「Agent 提示词」和「模式提示词」填进去; `),(0,t.createElementVNode)(`code`,null,`{{CWD}}`),(0,t.createTextVNode)(` 这类记号在建会话时换成真实值。模板里也必须留着 `),(0,t.createElementVNode)(`code`,null,`{{AGENTS_MD}}`),(0,t.createTextVNode)(`。 `)],-1),d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,U_,[(0,t.createElementVNode)(`p`,W_,[(0,t.createVNode)((0,t.unref)(we),{size:13}),(0,t.createElementVNode)(`span`,null,[r[2]||=(0,t.createTextVNode)(`缺 `,-1),(0,t.createElementVNode)(`code`,null,(0,t.toDisplayString)((0,t.unref)(a).templateHealth.missing.join(`、`)),1),r[3]||=(0,t.createTextVNode)(`:「Agent 提示词」写什么都进不去模型。`,-1)])])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,G_,[(0,t.createElementVNode)(`div`,K_,[r[4]||=(0,t.createElementVNode)(`span`,{class:`ap-field-label`},`模板正文`,-1),(0,t.createElementVNode)(`span`,q_,(0,t.toDisplayString)(s.value.length)+` 字`,1)]),(0,t.createVNode)(Kg,{modelValue:s.value,"onUpdate:modelValue":[r[0]||=e=>s.value=e,r[1]||=e=>l.value=!1],label:`系统提示词模板`,scope:`template`,height:320},null,8,[`modelValue`])]),p.value?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,J_,[(0,t.createVNode)((0,t.unref)(we),{size:13}),r[5]||=(0,t.createElementVNode)(`span`,null,[(0,t.createTextVNode)(`模板里没有 `),(0,t.createElementVNode)(`code`,null,`{{AGENTS_MD}}`),(0,t.createTextVNode)(`:这样保存会被拒绝,因为 Agent 提示词和模式提示词都进不去。`)],-1)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,Y_,[l.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,X_,[(0,t.createVNode)((0,t.unref)(O),{size:12}),r[6]||=(0,t.createTextVNode)(` 已保存`,-1)])):f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Z_,`有未保存的修改`)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Q_,`模板在 system_config.yaml;下次新会话生效`)),(0,t.createElementVNode)(`span`,$_,[(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,disabled:u.value,onClick:h},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ge),{size:13,"aria-hidden":`true`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(u.value?`恢复中…`:`恢复默认`),1)]),_:1},8,[`disabled`]),(0,t.createVNode)((0,t.unref)(n),{type:`button`,size:`sm`,disabled:c.value||!f.value||p.value,onClick:m},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(_e),{size:13,"aria-hidden":`true`}),r[7]||=(0,t.createTextVNode)(` 保存 `,-1)]),_:1},8,[`disabled`])])])])]))}}),[[`__scopeId`,`data-v-5bfb4435`]]),tv={class:`asp`},nv={class:`asp-head`},rv=[`title`],iv={class:`asp-body`},av=G((0,t.defineComponent)({__name:`AgentSettingsPage`,setup(e){let n=(0,r.useUiComponent)(`Tabs`),i=(0,r.useUiComponent)(`TabsList`),a=(0,r.useUiComponent)(`TabsTrigger`),o=ct(),s=o.state,c=[{key:`models`,label:`模型接入`},{key:`skills`,label:`技能`},{key:`mcp`,label:`MCP 服务`},{key:`rules`,label:`审批规则`},{key:`agentPrompt`,label:`Agent 提示词`},{key:`prompt`,label:`模式提示词`},{key:`template`,label:`系统提示词`},{key:`title`,label:`标题模型`}],l=(0,t.ref)(`models`);return(0,t.onMounted)(()=>void o.refresh()),(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,tv,[(0,t.createElementVNode)(`div`,nv,[(0,t.createVNode)((0,t.unref)(n),{modelValue:l.value,"onUpdate:modelValue":r[0]||=e=>l.value=e},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(i),{variant:`line`,class:`asp-tab-list`,"aria-label":`Agent 设置分类`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c,e=>(0,t.createVNode)((0,t.unref)(a),{key:e.key,value:e.key,class:`asp-tab`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)]),_:2},1032,[`value`])),64))]),_:1})]),_:1},8,[`modelValue`]),(0,t.unref)(s).error?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`asp-err`,title:(0,t.unref)(s).error},(0,t.toDisplayString)((0,t.unref)(s).error),9,rv)):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,iv,[l.value===`models`?((0,t.openBlock)(),(0,t.createBlock)(Mh,{key:0})):l.value===`skills`?((0,t.openBlock)(),(0,t.createBlock)(zh,{key:1})):l.value===`mcp`?((0,t.openBlock)(),(0,t.createBlock)(gg,{key:2})):l.value===`rules`?((0,t.openBlock)(),(0,t.createBlock)(Ng,{key:3})):l.value===`agentPrompt`?((0,t.openBlock)(),(0,t.createBlock)(z_,{key:4})):l.value===`prompt`?((0,t.openBlock)(),(0,t.createBlock)(v_,{key:5})):l.value===`template`?((0,t.openBlock)(),(0,t.createBlock)(ev,{key:6})):((0,t.openBlock)(),(0,t.createBlock)(T_,{key:7}))])]))}}),[[`__scopeId`,`data-v-50f7f139`]]),ov=[[/dola/,`dola`],[/seedance|即梦.*视频/,`seedance`],[/seedream|即梦/,`doubao`],[/(^|[^a-z])veo([^a-z]|$)/,`veo`],[/sora/,`sora`],[/可灵|kling/,`kling`],[/海螺|hailuo/,`hailuo`],[/runway/,`runway`],[/pika/,`pika`],[/luma|dream ?machine/,`luma`],[/vidu/,`vidu`],[/midjourney|^mj$/,`midjourney`],[/chatgpt|openai|gpt[- ]?image|apimart/,`openai`],[/anthropic|claude/,`claude`],[/google|gemini/,`gemini`],[/xai|grok/,`grok`],[/火山|volc/,`volcengine`],[/通义|万相|qwen|wanx/,`qwen`],[/混元|hunyuan|^hy/,`hunyuan`],[/智谱|glm/,`zhipu`],[/kimi|moonshot/,`kimi`],[/文心|ernie|wenxin/,`wenxin`],[/阶跃|stepfun/,`stepfun`],[/零一万物|^yi$|^yi[-. ]/,`yi`],[/自建网关/,`custom`],[/豆包|doubao/,`doubao`],[/tts|语音|音色|朗读|配音/,`audio`]];function sv(e){let t=String(e??``).trim().toLowerCase();if(!t)return``;if(Object.prototype.hasOwnProperty.call(sr,t))return t;for(let[e,n]of ov)if(e.test(t))return n;return``}function cv(){let e=e=>{let t=String(e??``).toLowerCase();for(let[e,n]of ov)if(e.test(t))return n;return`custom`};return{platformOf:(e,t)=>dr(e,t??``),nameOf:e=>hr(e),svgOf:e=>mr(e),svgOfModel:(e,t)=>mr(dr(e,t??``)),svgOfName:t=>mr(e(t)),platformOfName:e,platformOfIconHint:e=>sv(e),svgOfIconHint:e=>mr(sv(e)),platforms:()=>gr(),icons:()=>sr,bareModelId:e=>ur(e)}}var lv=`agent`,uv=[],dv={agentBaseUrl:{type:`string`,default:``,label:`后端地址`,group:`集成/Agent`,placeholder:`留空 = 与画布同源,例如 http://127.0.0.1:{端口}`,description:`cloud-server 的根地址。留空 = 与画布同源(由 cloud-server 托管界面时就是这样)。`}};function fv(e,n){let r=st({baseUrl:n?.agentBaseUrl??``});e.inject(`agent`,(0,t.reactive)(r)),e.provide(`modelIcons`,cv()),e.registryOf(`ui`).add(`agentModelPicker`,ed,{id:`agent`}),e.registryOf(`ui`).add(`agentChoicePicker`,Fm,{id:`agent`}),e.settingsMenu.nav({id:`nav/integration/agent`,category:`category/integration`,title:`智能助手`,icon:T,order:10,page:(0,t.markRaw)(av)}),e.slots.register(`agent-conversation`,{id:`agent/conversation`,order:60,component:(0,t.markRaw)(Dp),meta:{title:`Agent 对话`}}),e.slots.register(`settings.nav`,{id:`agent/nav`,order:5,component:(0,t.markRaw)(zm),meta:{title:`智能助手`,category:`集成`,icon:T,page:(0,t.markRaw)(av),pageGroup:`集成/Agent`}}),e.slots.register(`settingsGroup/集成/Agent`,{id:`agent/page`,order:5,component:(0,t.markRaw)(av)}),e.selectionRegion.attach({region:`out:top`,id:`agent-refer-selection`,order:30,component:(0,t.markRaw)(Lm),needs:[`selection`]}),e.commands.register({id:`agent:toggle`,title:`切换 Agent 面板`,keys:[`mod+j`],order:60,run:()=>r.toggle()}),e.commands.register({id:Im,title:`引用到 Agent`,areas:[`node`],group:`节点`,order:20,run:(e,t)=>{let n=t?.nodeId,i=Array.isArray(t?.nodeIds)?t.nodeIds:n?[n]:[];i.length&&(r.requestNodeRefs(i),r.show())}})}var pv={name:lv,inject:uv,Config:dv,apply:fv};e.AgentApi=je,e.CANVAS_ID=Ie,e.ChatModel=Fe,e.Config=dv,e.DEFAULT_SUBMIT_KEY_MODE=mt,e.REF_CLICK_EVENT=zr,e.SUBMIT_KEY_MODES=pt,e.agentPlugin=pv,e.apply=fv,e.createAgentService=st,e.inject=uv,e.name=lv,e.normalizeSubmitKeyMode=ht,e.refClickPayloadOf=Br,e.useAgent=ct});
22
+ `)});return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(To),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Eo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ko),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(jo),{status:`error`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Oo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(I))]),_:1}),(0,t.createVNode)((0,t.unref)(Mo),null,{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(c.value),1)]),_:1})]),_:1})]),_:1}),(0,t.createVNode)((0,t.unref)(Do),null,{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Yo,[(0,t.createElementVNode)(`p`,Xo,(0,t.toDisplayString)(l.value),1),(0,t.createElementVNode)(`p`,Zo,(0,t.toDisplayString)(a.value),1),i.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`ol`,Qo,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n,class:(0,t.normalizeClass)(e.includes(`node_modules`)?void 0:`text-foreground`)},(0,t.toDisplayString)(e),3))),128))])):(0,t.createCommentVNode)(``,!0)])]),_:1})]),_:1})]),_:1}))}}),es={class:`ac-scroll-wrap`},ts={class:`ac-inner`},ns={key:0,class:`ac-earlier-loading`},rs={key:1,class:`ac-earlier-hint`},is={key:1,class:`ac-welcome`},as={key:0,class:`ac-hint-card`},os={class:`ac-suggestions`},ss=[`aria-label`],cs={class:`ac-model-split-name`},ls=[`href`],us=[`title`,`role`,`tabindex`,`onClick`,`onKeydown`],ds=[`innerHTML`],fs={class:`ac-sent-tag-label`},ps={key:1,class:`ac-user-text`},ms={key:2,class:`ac-editing-badge`,role:`status`},hs={key:1,class:`ac-user-images`},gs=[`src`],_s={key:3,class:`ac-stopped`,role:`status`},vs={key:4,class:`ac-notice`},ys=[`title`],bs=[`aria-label`],xs={key:2,class:`ac-compact-note`,role:`status`,"aria-live":`polite`},Ss={key:3,class:`ac-compact-note`,role:`status`},Cs={key:4,class:`ac-error-bar`,role:`alert`},ws=(0,t.defineComponent)({__name:`AgentMessageList`,setup(e){let{agent:n,s:i,showScrollToBottom:a,smoothScrollToBottom:o,scroller:s,earlierSentinel:c,hintDismissed:l,dismissHint:u,SUGGESTIONS:d,useSuggestion:f,segmentByAnchor:p,segmentModelLabel:m,assistantRows:h,openThinking:g,hasCardView:_,viewOf:v,previewToolMedia:y,toolGroupTitle:b,toolRowSummary:x,toolTitle:C,toolLineTitle:w,anyToolRunning:T,thinkingLive:D,liveThinkingRow:O,userSegments:P,displayUserText:I,onSegClick:R,segTitle:z,segClickable:B,sourcesOf:ee,failureOf:V,isTerminal:H,openUserBubbles:U,overflowingUser:ne,toggleUserBubble:re,setUserBubbleBody:ie,msgTimeText:ae,msgTimeTitle:ce,copied:le,copyMessage:de,beginEditMessage:fe,hasInlineError:pe,pagerByAnchor:me,pagerTarget:he,SHOW_PROCESS_NOTICE:ge,openPreview:_e,showPendingOn:ve}=(0,t.inject)(`agentConversation`),ye=(0,r.useUiComponent)(`Button`),be=(0,r.useUiComponent)(`Spinner`),xe=(0,r.useUiComponent)(`Card`),Se=(0,r.useUiComponent)(`CardContent`),Ce=(0,r.useUiComponent)(`Bubble`),we=(0,r.useUiComponent)(`BubbleContent`),Te=(0,r.useUiComponent)(`Badge`),Ee=(0,t.computed)(()=>{let e=new Map;for(let t of i.turns){if(t.kind!==`approval`||!t.approval||t.approval.decision)continue;let n=t.approval.toolCallId;n&&e.set(n,t.approval)}return e});function De(e){return Ee.value.get(e)}function Oe(e){return e.map(e=>De(e.id)).filter(Boolean)}function ke(e){return e.kind===`approval`&&!e.approval?.toolCallId}function je(e){return Un(e)}let Me=(0,t.ref)(null);function Ne(){let e=Me.value?.scrollElement()??null;e!==s.value&&(s.value=e)}(0,t.onMounted)(()=>{Ne(),(0,t.nextTick)(Ne)}),(0,t.watch)(Me,()=>void(0,t.nextTick)(Ne),{flush:`post`});let Pe=me;return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,es,[(0,t.unref)(a)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(ye),{key:0,variant:`ghost`,size:`icon-sm`,class:`ac-to-bottom`,"aria-label":`回到底部`,title:`回到底部`,onClick:r[0]||=e=>(0,t.unref)(o)()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(k),{size:16})]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(Wi,{ref_key:`scrollRef`,ref:Me,class:`ac-scroll`,"body-class":`ac-scroll-body`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,ts,[(0,t.unref)(i).turns.length&&((0,t.unref)(i).turnsHaveBefore||(0,t.unref)(i).turnsLoadingEarlier)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`earlierSentinel`,ref:c,class:`ac-earlier`,role:`status`},[(0,t.unref)(i).turnsLoadingEarlier?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,ns,[(0,t.createVNode)((0,t.unref)(oe),{size:13,class:`ac-spin`}),r[4]||=(0,t.createElementVNode)(`span`,null,`正在加载更早的对话…`,-1)])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,rs,`向上滚动查看更早的对话`))],512)):(0,t.createCommentVNode)(``,!0),(0,t.unref)(i).turns.length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,is,[(0,t.unref)(l)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,as,[r[5]||=(0,t.createElementVNode)(`p`,{class:`ac-hint-text`},[(0,t.createElementVNode)(`strong`,null,`我能帮你做很多事`),(0,t.createTextVNode)(`,比如回答问题、写文章、编剧本、生成图片/视频/音频…`)],-1),(0,t.createVNode)((0,t.unref)(ye),{variant:`ghost`,size:`icon-sm`,class:`ac-hint-close`,"aria-label":`我知道了`,onClick:(0,t.unref)(u)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:13})]),_:1},8,[`onClick`])])),r[6]||=(0,t.createElementVNode)(`div`,{class:`ac-welcome-orb`},null,-1),r[7]||=(0,t.createElementVNode)(`p`,{class:`ac-welcome-title`},`让 Agent 辅助你的无限创意`,-1),(0,t.createElementVNode)(`div`,os,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(d),e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(ye),{key:e.text,variant:`ghost`,size:`sm`,class:`ac-suggestion`,onClick:n=>(0,t.unref)(f)(e.text)},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icon),{size:15})),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e.text),1),(0,t.createVNode)((0,t.unref)(j),{size:14,class:`ac-suggestion-arrow`})]),_:2},1032,[`onClick`]))),128))])])),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(i).turns,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:e.id},[(0,t.unref)(p).get(e.id)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`ac-model-split`,role:`separator`,"aria-label":`从这里开始使用模型 `+(0,t.unref)(m)((0,t.unref)(p).get(e.id))},[r[8]||=(0,t.createElementVNode)(`span`,{class:`ac-model-split-line`},null,-1),(0,t.createVNode)((0,t.unref)(Te),{variant:`outline`,class:`ac-model-split-badge`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(E)),(0,t.createElementVNode)(`span`,cs,(0,t.toDisplayString)((0,t.unref)(m)((0,t.unref)(p).get(e.id))),1)]),_:2},1024),r[9]||=(0,t.createElementVNode)(`span`,{class:`ac-model-split-line`},null,-1)],8,ss)):(0,t.createCommentVNode)(``,!0),ke(e)&&!e.approval.decision?((0,t.openBlock)(),(0,t.createBlock)(zo,{key:1,approval:e.approval,onDecide:r=>(0,t.unref)(n).decide(e.approval.id,r)},null,8,[`approval`,`onDecide`])):e.kind===`approval`?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(So),{key:2,align:e.kind===`user`?`end`:`start`,class:(0,t.normalizeClass)([`ac-msg`,e.kind,{"is-editing":e.editing}])},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Co),{class:(0,t.normalizeClass)(e.kind===`user`?`ac-bubble`:`ac-bubble ac-bubble--full`)},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(h)(e),i=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:i.key},[i.type===`text`&&i.text?((0,t.openBlock)(),(0,t.createBlock)(Zr,{key:0,text:i.text},null,8,[`text`])):i.type===`thinking`&&i.text?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(To),{key:1},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Eo),{open:(0,t.unref)(g)[e.id+`:`+i.key]??(0,t.unref)(D)(e),"onUpdate:open":n=>{(0,t.unref)(g)[e.id+`:`+i.key]=n}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ko),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(jo),{status:(0,t.unref)(D)(e)?`running`:void 0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Mo),null,{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(D)(e)?`正在思考`:`思考完成`),1)]),_:2},1024)]),_:2},1032,[`status`])]),_:2},1024),(0,t.createVNode)((0,t.unref)(Do),{class:`whitespace-pre-wrap`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(i.text),1)]),_:2},1024)]),_:2},1032,[`open`,`onUpdate:open`])]),_:2},1024)):i.type===`tools`&&i.tools.length===1&&(0,t.unref)(_)(i.tools[0])?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.createVNode)((0,t.unref)(xe),{size:`sm`,class:`ac-tool-card`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Se),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Hi,{view:(0,t.unref)(v)(i.tools[0]),args:i.tools[0].arguments,output:i.tools[0].output,name:i.tools[0].name,onPreview:(0,t.unref)(y)},null,8,[`view`,`args`,`output`,`name`,`onPreview`])]),_:2},1024)]),_:2},1024),De(i.tools[0].id)?((0,t.openBlock)(),(0,t.createBlock)(zo,{key:0,approval:De(i.tools[0].id),onDecide:e=>(0,t.unref)(n).decide(De(i.tools[0].id).id,e)},null,8,[`approval`,`onDecide`])):(0,t.createCommentVNode)(``,!0)],64)):i.type===`tools`&&i.tools.length===1&&(0,t.unref)(H)(i.tools[0])?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:3},[(0,t.createVNode)(Bo,{name:i.tools[0].name,args:i.tools[0].arguments,output:i.tools[0].output,settled:i.tools[0].settled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Hi,{view:(0,t.unref)(v)(i.tools[0]),args:i.tools[0].arguments,output:i.tools[0].output,name:i.tools[0].name,onPreview:(0,t.unref)(y)},null,8,[`view`,`args`,`output`,`name`,`onPreview`])]),_:2},1032,[`name`,`args`,`output`,`settled`]),(0,t.unref)(V)(i.tools[0]).failed?((0,t.openBlock)(),(0,t.createBlock)($o,{key:0,failure:(0,t.unref)(V)(i.tools[0]),detail:i.tools[0].output,class:`mt-2`},null,8,[`failure`,`detail`])):(0,t.createCommentVNode)(``,!0),De(i.tools[0].id)?((0,t.openBlock)(),(0,t.createBlock)(zo,{key:1,approval:De(i.tools[0].id),onDecide:e=>(0,t.unref)(n).decide(De(i.tools[0].id).id,e)},null,8,[`approval`,`onDecide`])):(0,t.createCommentVNode)(``,!0)],64)):i.type===`tools`&&i.tools.length===1?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(To),{key:4},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Eo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ko),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(jo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Oo),null,{default:(0,t.withCtx)(()=>[i.tools[0].settled?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(N),{key:1,size:14})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(oe),{key:0,size:14,class:`animate-spin`}))]),_:2},1024),(0,t.createVNode)((0,t.unref)(Mo),{title:(0,t.unref)(w)(i.tools[0])},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(w)(i.tools[0])),1)]),_:2},1032,[`title`])]),_:2},1024)]),_:2},1024),(0,t.createVNode)((0,t.unref)(Do),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Hi,{view:(0,t.unref)(v)(i.tools[0]),args:i.tools[0].arguments,output:i.tools[0].output,name:i.tools[0].name,onPreview:(0,t.unref)(y)},null,8,[`view`,`args`,`output`,`name`,`onPreview`]),(0,t.unref)(V)(i.tools[0]).failed?((0,t.openBlock)(),(0,t.createBlock)($o,{key:0,failure:(0,t.unref)(V)(i.tools[0]),detail:i.tools[0].output,class:`mt-2`},null,8,[`failure`,`detail`])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(ee)(i.tools[0]).length?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(To),{key:1,class:`mt-2`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Eo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ko),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(jo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Oo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(te))]),_:1}),(0,t.createVNode)((0,t.unref)(Mo),null,{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)(`使用了 `+(0,t.toDisplayString)((0,t.unref)(ee)(i.tools[0]).length)+` 个来源`,1)]),_:2},1024)]),_:2},1024)]),_:2},1024),(0,t.createVNode)((0,t.unref)(Do),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(To),null,{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(ee)(i.tools[0]),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{key:e.url,href:e.url,target:`_blank`,rel:`noreferrer noopener`},[(0,t.createVNode)((0,t.unref)(jo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Oo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(te))]),_:1}),(0,t.createVNode)((0,t.unref)(Mo),null,{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(zn)(e)),1),r[10]||=(0,t.createElementVNode)(`span`,{class:`sr-only`},`(在新标签页打开)`,-1)]),_:2},1024),(0,t.createVNode)((0,t.unref)(Oo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(S))]),_:1})]),_:2},1024)],8,ls))),128))]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)):(0,t.createCommentVNode)(``,!0)]),_:2},1024)]),_:2},1024),De(i.tools[0].id)?((0,t.openBlock)(),(0,t.createBlock)(zo,{key:0,approval:De(i.tools[0].id),onDecide:e=>(0,t.unref)(n).decide(De(i.tools[0].id).id,e)},null,8,[`approval`,`onDecide`])):(0,t.createCommentVNode)(``,!0)]),_:2},1024)):i.type===`tools`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(To),{key:5},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Eo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ko),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(jo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Oo),null,{default:(0,t.withCtx)(()=>[(0,t.unref)(T)(i.tools)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(oe),{key:0,size:14,class:`animate-spin`})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(N),{key:1,size:14}))]),_:2},1024),(0,t.createVNode)((0,t.unref)(Mo),null,{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(b)(i.tools)),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),(0,t.createVNode)((0,t.unref)(Do),null,{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.tools,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:e.id},[(0,t.unref)(_)(e)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(xe),{key:0,size:`sm`,class:`ac-tool-card`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Se),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Hi,{view:(0,t.unref)(v)(e),args:e.arguments,output:e.output,name:e.name,onPreview:(0,t.unref)(y)},null,8,[`view`,`args`,`output`,`name`,`onPreview`])]),_:2},1024)]),_:2},1024)):(0,t.unref)(H)(e)?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createVNode)(Bo,{name:e.name,args:e.arguments,output:e.output,settled:e.settled},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Hi,{view:(0,t.unref)(v)(e),args:e.arguments,output:e.output,name:e.name,onPreview:(0,t.unref)(y)},null,8,[`view`,`args`,`output`,`name`,`onPreview`])]),_:2},1032,[`name`,`args`,`output`,`settled`]),(0,t.unref)(V)(e).failed?((0,t.openBlock)(),(0,t.createBlock)($o,{key:0,failure:(0,t.unref)(V)(e),detail:e.output,class:`mt-2`},null,8,[`failure`,`detail`])):(0,t.createCommentVNode)(``,!0)],64)):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Eo),{key:2},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ko),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(jo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Oo),null,{default:(0,t.withCtx)(()=>[e.settled?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(N),{key:1,size:14})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(oe),{key:0,size:14,class:`animate-spin`}))]),_:2},1024),(0,t.createVNode)((0,t.unref)(Mo),{title:(0,t.unref)(w)(e)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(w)(e)),1)]),_:2},1032,[`title`])]),_:2},1024)]),_:2},1024),(0,t.createVNode)((0,t.unref)(Do),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Hi,{view:(0,t.unref)(v)(e),args:e.arguments,output:e.output,name:e.name,onPreview:(0,t.unref)(y)},null,8,[`view`,`args`,`output`,`name`,`onPreview`]),(0,t.unref)(V)(e).failed?((0,t.openBlock)(),(0,t.createBlock)($o,{key:0,failure:(0,t.unref)(V)(e),detail:e.output,class:`mt-2`},null,8,[`failure`,`detail`])):(0,t.createCommentVNode)(``,!0)]),_:2},1024)]),_:2},1024))],64))),128))]),_:2},1024)]),_:2},1024),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Oe(i.tools),e=>((0,t.openBlock)(),(0,t.createBlock)(zo,{key:e.id,approval:e,onDecide:r=>(0,t.unref)(n).decide(e.id,r)},null,8,[`approval`,`onDecide`]))),128))]),_:2},1024)):(0,t.createCommentVNode)(``,!0)],64))),128)),e.kind===`user`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Ce),{key:0,align:`end`,variant:`muted`,class:(0,t.normalizeClass)([`ac-user-bubble`,{"ac-user-bubble--editing":e.editing}])},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(we),{class:`ac-user-bubble-content`},{default:(0,t.withCtx)(()=>[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,{key:0,class:(0,t.normalizeClass)([`ac-user-line`,{"is-open":(0,t.unref)(U)[e.id]}]),ref_for:!0,ref:(0,t.unref)(ie)(e.id)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(P)((0,t.unref)(I)(e.text)),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n},[e.type===`tag`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:(0,t.normalizeClass)([`ac-sent-tag`,{"is-clickable":(0,t.unref)(B)(e)}]),title:(0,t.unref)(z)(e),role:(0,t.unref)(B)(e)?`button`:void 0,tabindex:(0,t.unref)(B)(e)?0:void 0,onClick:n=>(0,t.unref)(R)(e),onKeydown:(0,t.withKeys)((0,t.withModifiers)(n=>(0,t.unref)(R)(e),[`prevent`]),[`enter`])},[(0,t.createElementVNode)(`span`,{class:`ac-sent-tag-icon`,innerHTML:e.icon,"aria-hidden":`true`},null,8,ds),(0,t.createElementVNode)(`span`,fs,(0,t.toDisplayString)(e.name),1)],42,us)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,ps,(0,t.toDisplayString)(e.value),1))],64))),128))],2)):(0,t.createCommentVNode)(``,!0),(0,t.unref)(ne)[e.id]?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(ye),{key:1,variant:`ghost`,size:`xs`,class:`ac-user-toggle`,"aria-expanded":!!(0,t.unref)(U)[e.id],"aria-label":`展开完整消息`,title:(0,t.unref)(U)[e.id]?`收起`:`展开`,onClick:n=>(0,t.unref)(re)(e.id)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(U)[e.id]?`收起`:`展开`)+` `,1),(0,t.unref)(U)[e.id]?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(M),{key:1,size:13})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(k),{key:0,size:13}))]),_:2},1032,[`aria-expanded`,`title`,`onClick`])):(0,t.createCommentVNode)(``,!0),e.editing?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,ms,[(0,t.createVNode)((0,t.unref)(ue),{size:12}),r[11]||=(0,t.createTextVNode)(`正在编辑 `,-1),(0,t.createVNode)((0,t.unref)(ye),{variant:`ghost`,size:`icon-xs`,class:`ac-editing-x`,"aria-label":`取消编辑`,onClick:r[1]||=e=>(0,t.unref)(n).cancelEdit()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:11})]),_:1})])):(0,t.createCommentVNode)(``,!0)]),_:2},1024)]),_:2},1032,[`class`])):(0,t.createCommentVNode)(``,!0),e.kind===`user`&&e.images?.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,hs,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.images,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(ye),{key:r,variant:`ghost`,size:`icon-sm`,class:`ac-user-image`,"aria-label":`查看图片 `+(Number(r)+1),onClick:r=>(0,t.unref)(_e)(n,e.images)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`img`,{src:n,alt:``},null,8,gs)]),_:2},1032,[`aria-label`,`onClick`]))),128))])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(ve)(e)&&!(0,t.unref)(O)(e)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(To),{key:2,role:`status`,"aria-live":`polite`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(jo),{status:`running`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Oo),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(be),{class:`size-4`})]),_:1}),(0,t.createVNode)((0,t.unref)(Mo),null,{default:(0,t.withCtx)(()=>[...r[12]||=[(0,t.createTextVNode)(`正在思考`,-1)]]),_:1})]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0),e.aborted?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,_s,[(0,t.createVNode)((0,t.unref)(F),{size:13,"aria-hidden":`true`}),r[13]||=(0,t.createElementVNode)(`span`,null,`已停止`,-1)])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(ge)&&e.notice?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,vs,(0,t.toDisplayString)(e.notice),1)):(0,t.createCommentVNode)(``,!0),e.error?((0,t.openBlock)(),(0,t.createBlock)($o,{key:5,failure:je(e.error),detail:e.error,class:`mt-2`},null,8,[`failure`,`detail`])):(0,t.createCommentVNode)(``,!0),e.kind===`user`?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(wo),{key:6,class:`ac-msg-actions`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:`ac-msg-time`,title:(0,t.unref)(ce)(e.ts)},(0,t.toDisplayString)((0,t.unref)(ae)(e.ts)),9,ys),(0,t.createVNode)((0,t.unref)(ye),{variant:`ghost`,size:`icon-xs`,class:`ac-msg-btn`,"aria-label":(0,t.unref)(le)[e.id]?`已复制`:`复制消息`,title:`复制`,onClick:n=>(0,t.unref)(de)(e.text,e.id)},{default:(0,t.withCtx)(()=>[(0,t.unref)(le)[e.id]?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(N),{key:0,size:13,class:`is-ok`})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(L),{key:1,size:11}))]),_:2},1032,[`aria-label`,`onClick`]),(0,t.createVNode)((0,t.unref)(ye),{variant:`ghost`,size:`icon-xs`,class:`ac-msg-btn`,"aria-label":`编辑消息(回填到输入框)`,title:`编辑`,onClick:n=>(0,t.unref)(fe)(e)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ue),{size:11})]),_:1},8,[`onClick`])]),_:2},1024)):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`class`])]),_:2},1032,[`align`,`class`])),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(Pe).get(e.id)??[],(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:`pager-`+e.id+`-`+i,class:`ac-branch-nav`,role:`navigation`,"aria-label":((0,t.unref)(Pe).get(e.id)??[]).length>1?`切换分支版本 `+(i+1)+`(第 `+r.userOrdinal+` 轮之后)`:`切换分支版本`},[(0,t.createVNode)((0,t.unref)(ye),{variant:`ghost`,size:`icon-sm`,class:`ac-branch-arrow`,disabled:r.index<=0,"aria-label":`上一个版本`,title:`上一个版本 · `+r.items.map(e=>e.label).join(` / `),onClick:e=>(0,t.unref)(he)(r,-1)!==null&&(0,t.unref)(n).openSession((0,t.unref)(he)(r,-1))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(A),{size:14})]),_:1},8,[`disabled`,`title`,`onClick`]),(0,t.createVNode)((0,t.unref)(Te),{variant:`secondary`,class:`ac-branch-pos`,title:r.items[r.index]?.label??``},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.position)+` / `+(0,t.toDisplayString)(r.total),1)]),_:2},1032,[`title`]),(0,t.createVNode)((0,t.unref)(ye),{variant:`ghost`,size:`icon-sm`,class:`ac-branch-arrow`,disabled:r.index>=r.total-1,"aria-label":`下一个版本`,title:`下一个版本 · `+r.items.map(e=>e.label).join(` / `),onClick:e=>(0,t.unref)(he)(r,1)!==null&&(0,t.unref)(n).openSession((0,t.unref)(he)(r,1))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(j),{size:14})]),_:1},8,[`disabled`,`title`,`onClick`])],8,bs))),128))],64))),128)),(0,t.unref)(i).compacting?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xs,[(0,t.createVNode)((0,t.unref)(oe),{size:13,class:`ac-spin`}),r[14]||=(0,t.createElementVNode)(`span`,null,`正在压缩上下文…`,-1)])):(0,t.unref)(i).compactNotice?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ss,[(0,t.createVNode)((0,t.unref)(se),{size:14}),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(i).compactNotice),1),(0,t.createVNode)((0,t.unref)(ye),{variant:`ghost`,size:`icon-xs`,class:`ac-note-x`,"aria-label":`知道了`,onClick:r[2]||=e=>(0,t.unref)(i).compactNotice=``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1})])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(i).lastError&&!(0,t.unref)(pe)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Cs,[(0,t.createVNode)($o,{failure:je((0,t.unref)(i).lastError),detail:(0,t.unref)(i).lastError},null,8,[`failure`,`detail`]),(0,t.createVNode)((0,t.unref)(ye),{variant:`ghost`,size:`icon-xs`,class:`ac-note-x`,"aria-label":`关闭错误提示`,onClick:r[3]||=e=>(0,t.unref)(i).lastError=``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1})])):(0,t.createCommentVNode)(``,!0)])]),_:1},512)]))}}),Ts=Object.defineProperty,Es=Object.getOwnPropertySymbols,Ds=Object.prototype.hasOwnProperty,Os=Object.prototype.propertyIsEnumerable,ks=(e,t,n)=>t in e?Ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,As=(e,t)=>{for(var n in t||={})Ds.call(t,n)&&ks(e,n,t[n]);if(Es)for(var n of Es(t))Os.call(t,n)&&ks(e,n,t[n]);return e},js=(e,t)=>{var n={};for(var r in e)Ds.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Es)for(var r of Es(e))t.indexOf(r)<0&&Os.call(e,r)&&(n[r]=e[r]);return n},Ms=`[vue-draggable-plus]: `;function Ns(e){console.warn(Ms+e)}function Ps(e){console.error(Ms+e)}function Fs(e,t,n){return n>=0&&n<e.length&&e.splice(n,0,e.splice(t,1)[0]),e}function Is(e){return e.replace(/-(\w)/g,(e,t)=>t?t.toUpperCase():``)}function Ls(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[Is(n)]=e[n]),t),{})}function Rs(e,t){return Array.isArray(e)&&e.splice(t,1),e}function zs(e,t,n){return Array.isArray(e)&&e.splice(t,0,n),e}function Bs(e){return e===void 0}function Vs(e){return typeof e==`string`}function Hs(e,t,n){let r=e.children[n];e.insertBefore(t,r)}function Us(e){e.parentNode&&e.parentNode.removeChild(e)}function Ws(e,t=document){let n=null;return n=typeof t?.querySelector==`function`?(t?.querySelector)?.call(t,e):document.querySelector(e),n||Ns(`Element not found: ${e}`),n}function Gs(e,t,n=null){return function(...r){return e.apply(n,r),t.apply(n,r)}}function Ks(e,t){let n=As({},e);return Object.keys(t).forEach(r=>{n[r]?n[r]=Gs(e[r],t[r]):n[r]=t[r]}),n}function qs(e){return e instanceof HTMLElement}function Js(e,t){Object.keys(e).forEach(n=>{t(n,e[n])})}function Ys(e){return e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)}var Xs=Object.assign;function Zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Zs(Object(n),!0).forEach(function(t){ec(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $s(e){"@babel/helpers - typeof";return $s=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},$s(e)}function ec(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tc(){return tc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tc.apply(this,arguments)}function nc(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function rc(e,t){if(e==null)return{};var n=nc(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var ic=`1.15.2`;function ac(e){if(typeof window<`u`&&window.navigator)return!!navigator.userAgent.match(e)}var oc=ac(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),sc=ac(/Edge/i),cc=ac(/firefox/i),lc=ac(/safari/i)&&!ac(/chrome/i)&&!ac(/android/i),uc=ac(/iP(ad|od|hone)/i),dc=ac(/chrome/i)&&ac(/android/i),fc={capture:!1,passive:!1};function K(e,t,n){e.addEventListener(t,n,!oc&&fc)}function q(e,t,n){e.removeEventListener(t,n,!oc&&fc)}function pc(e,t){if(t){if(t[0]===`>`&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function mc(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function hc(e,t,n,r){if(e){n||=document;do{if(t!=null&&(t[0]===`>`?e.parentNode===n&&pc(e,t):pc(e,t))||r&&e===n)return e;if(e===n)break}while(e=mc(e))}return null}var gc=/\s+/g;function _c(e,t,n){e&&t&&(e.classList?e.classList[n?`add`:`remove`](t):e.className=((` `+e.className+` `).replace(gc,` `).replace(` `+t+` `,` `)+(n?` `+t:``)).replace(gc,` `))}function J(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,``):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf(`webkit`)===-1&&(t=`-webkit-`+t),r[t]=n+(typeof n==`string`?``:`px`)}}function vc(e,t){var n=``;if(typeof e==`string`)n=e;else do{var r=J(e,`transform`);r&&r!==`none`&&(n=r+` `+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function yc(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i<a;i++)n(r[i],i);return r}return[]}function bc(){return document.scrollingElement||document.documentElement}function xc(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,o,s,c,l,u,d;if(e!==window&&e.parentNode&&e!==bc()?(a=e.getBoundingClientRect(),o=a.top,s=a.left,c=a.bottom,l=a.right,u=a.height,d=a.width):(o=0,s=0,c=window.innerHeight,l=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i||=e.parentNode,!oc))do if(i&&i.getBoundingClientRect&&(J(i,`transform`)!==`none`||n&&J(i,`position`)!==`static`)){var f=i.getBoundingClientRect();o-=f.top+parseInt(J(i,`border-top-width`)),s-=f.left+parseInt(J(i,`border-left-width`)),c=o+a.height,l=s+a.width;break}while(i=i.parentNode);if(r&&e!==window){var p=vc(i||e),m=p&&p.a,h=p&&p.d;p&&(o/=h,s/=m,d/=m,u/=h,c=o+u,l=s+d)}return{top:o,left:s,bottom:c,right:l,width:d,height:u}}}function Sc(e,t,n){for(var r=Oc(e,!0),i=xc(e)[t];r;){var a=xc(r)[n],o=void 0;if(o=i>=a,!o)return r;if(r===bc())break;r=Oc(r,!1)}return!1}function Cc(e,t,n,r){for(var i=0,a=0,o=e.children;a<o.length;){if(o[a].style.display!==`none`&&o[a]!==$.ghost&&(r||o[a]!==$.dragged)&&hc(o[a],n.draggable,e,!1)){if(i===t)return o[a];i++}a++}return null}function wc(e,t){for(var n=e.lastElementChild;n&&(n===$.ghost||J(n,`display`)===`none`||t&&!pc(n,t));)n=n.previousElementSibling;return n||null}function Tc(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!==`TEMPLATE`&&e!==$.clone&&(!t||pc(e,t))&&n++;return n}function Ec(e){var t=0,n=0,r=bc();if(e)do{var i=vc(e),a=i.a,o=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function Dc(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function Oc(e,t){if(!e||!e.getBoundingClientRect)return bc();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=J(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX==`auto`||i.overflowX==`scroll`)||n.clientHeight<n.scrollHeight&&(i.overflowY==`auto`||i.overflowY==`scroll`)){if(!n.getBoundingClientRect||n===document.body)return bc();if(r||t)return n;r=!0}}while(n=n.parentNode);return bc()}function kc(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Ac(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var jc;function Mc(e,t){return function(){if(!jc){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),jc=setTimeout(function(){jc=void 0},t)}}}function Nc(){clearTimeout(jc),jc=void 0}function Pc(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Fc(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Ic(e,t,n){var r={};return Array.from(e.children).forEach(function(i){if(!(!hc(i,t.draggable,e,!1)||i.animated||i===n)){var a=xc(i);r.left=Math.min(r.left??1/0,a.left),r.top=Math.min(r.top??1/0,a.top),r.right=Math.max(r.right??-1/0,a.right),r.bottom=Math.max(r.bottom??-1/0,a.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var Lc=`Sortable`+new Date().getTime();function Rc(){var e=[],t;return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){if(!(J(t,`display`)===`none`||t===$.ghost)){e.push({target:t,rect:xc(t)});var n=Qs({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=vc(t,!0);r&&(n.top-=r.f,n.left-=r.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(Dc(e,{target:t}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(t),typeof n==`function`&&n();return}var i=!1,a=0;e.forEach(function(e){var t=0,n=e.target,o=n.fromRect,s=xc(n),c=n.prevFromRect,l=n.prevToRect,u=e.rect,d=vc(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&Ac(c,s)&&!Ac(o,s)&&(u.top-s.top)/(u.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=Bc(u,c,l,r.options)),Ac(s,o)||(n.prevFromRect=o,n.prevToRect=s,t||=r.options.animation,r.animate(n,u,s,t)),t&&(i=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},t),n.thisAnimationDuration=t)}),clearTimeout(t),i?t=setTimeout(function(){typeof n==`function`&&n()},a):typeof n==`function`&&n(),e=[]},animate:function(e,t,n,r){if(r){J(e,`transition`,``),J(e,`transform`,``);var i=vc(this.el),a=i&&i.a,o=i&&i.d,s=(t.left-n.left)/(a||1),c=(t.top-n.top)/(o||1);e.animatingX=!!s,e.animatingY=!!c,J(e,`transform`,`translate3d(`+s+`px,`+c+`px,0)`),this.forRepaintDummy=zc(e),J(e,`transition`,`transform `+r+`ms`+(this.options.easing?` `+this.options.easing:``)),J(e,`transform`,`translate3d(0,0,0)`),typeof e.animated==`number`&&clearTimeout(e.animated),e.animated=setTimeout(function(){J(e,`transition`,``),J(e,`transform`,``),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}function zc(e){return e.offsetWidth}function Bc(e,t,n,r){return Math.sqrt((t.top-e.top)**2+(t.left-e.left)**2)/Math.sqrt((t.top-n.top)**2+(t.left-n.left)**2)*r.animation}var Vc=[],Hc={initializeByDefault:!0},Uc={mount:function(e){for(var t in Hc)Hc.hasOwnProperty(t)&&!(t in e)&&(e[t]=Hc[t]);Vc.forEach(function(t){if(t.pluginName===e.pluginName)throw`Sortable: Cannot mount plugin ${e.pluginName} more than once`}),Vc.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+`Global`;Vc.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](Qs({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](Qs({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var i in Vc.forEach(function(r){var i=r.pluginName;if(!(!e.options[i]&&!r.initializeByDefault)){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,tc(n,a.defaults)}}),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);a!==void 0&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return Vc.forEach(function(r){typeof r.eventProperties==`function`&&tc(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return Vc.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]==`function`&&(r=i.optionListeners[t].call(e[i.pluginName],n))}),r}};function Wc(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,a=e.cloneEl,o=e.toEl,s=e.fromEl,c=e.oldIndex,l=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,m=e.extraEventProperties;if(t||=n&&n[Lc],t){var h,g=t.options,_=`on`+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!oc&&!sc?h=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(h=document.createEvent(`Event`),h.initEvent(r,!0,!0)),h.to=o||n,h.from=s||n,h.item=i||n,h.clone=a,h.oldIndex=c,h.newIndex=l,h.oldDraggableIndex=u,h.newDraggableIndex=d,h.originalEvent=f,h.pullMode=p?p.lastPutMode:void 0;var v=Qs(Qs({},m),Uc.getEventProperties(r,t));for(var y in v)h[y]=v[y];n&&n.dispatchEvent(h),g[_]&&g[_].call(t,h)}}var Gc=[`evt`],Kc=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=rc(n,Gc);Uc.pluginEvent.bind($)(e,t,Qs({dragEl:Y,parentEl:Jc,ghostEl:X,rootEl:Z,nextEl:Yc,lastDownEl:Xc,cloneEl:Q,cloneHidden:Zc,dragStarted:pl,putSortable:rl,activeSortable:$.active,originalEvent:r,oldIndex:Qc,oldDraggableIndex:el,newIndex:$c,newDraggableIndex:tl,hideGhostForTarget:Ml,unhideGhostForTarget:Nl,cloneNowHidden:function(){Zc=!0},cloneNowShown:function(){Zc=!1},dispatchSortableEvent:function(e){qc({sortable:t,name:e,originalEvent:r})}},i))};function qc(e){Wc(Qs({putSortable:rl,cloneEl:Q,targetEl:Y,rootEl:Z,oldIndex:Qc,oldDraggableIndex:el,newIndex:$c,newDraggableIndex:tl},e))}var Y,Jc,X,Z,Yc,Xc,Q,Zc,Qc,$c,el,tl,nl,rl,il=!1,al=!1,ol=[],sl,cl,ll,ul,dl,fl,pl,ml,hl,gl=!1,_l=!1,vl,yl,bl=[],xl=!1,Sl=[],Cl=typeof document<`u`,wl=uc,Tl=sc||oc?`cssFloat`:`float`,El=Cl&&!dc&&!uc&&`draggable`in document.createElement(`div`),Dl=function(){if(Cl){if(oc)return!1;var e=document.createElement(`x`);return e.style.cssText=`pointer-events:auto`,e.style.pointerEvents===`auto`}}(),Ol=function(e,t){var n=J(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Cc(e,0,t),a=Cc(e,1,t),o=i&&J(i),s=a&&J(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+xc(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+xc(a).width;if(n.display===`flex`)return n.flexDirection===`column`||n.flexDirection===`column-reverse`?`vertical`:`horizontal`;if(n.display===`grid`)return n.gridTemplateColumns.split(` `).length<=1?`vertical`:`horizontal`;if(i&&o.float&&o.float!==`none`){var u=o.float===`left`?`left`:`right`;return a&&(s.clear===`both`||s.clear===u)?`vertical`:`horizontal`}return i&&(o.display===`block`||o.display===`flex`||o.display===`table`||o.display===`grid`||c>=r&&n[Tl]===`none`||a&&n[Tl]===`none`&&c+l>r)?`vertical`:`horizontal`},kl=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,a=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return r===o||i===s||r+a/2===o+c/2},Al=function(e,t){var n;return ol.some(function(r){var i=r[Lc].options.emptyInsertThreshold;if(!(!i||wc(r))){var a=xc(r),o=e>=a.left-i&&e<=a.right+i,s=t>=a.top-i&&t<=a.bottom+i;if(o&&s)return n=r}}),n},jl=function(e){function t(e,n){return function(r,i,a,o){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(e==null&&(n||s))return!0;if(e==null||e===!1)return!1;if(n&&e===`clone`)return e;if(typeof e==`function`)return t(e(r,i,a,o),n)(r,i,a,o);var c=(n?r:i).options.group.name;return e===!0||typeof e==`string`&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;(!r||$s(r)!=`object`)&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Ml=function(){!Dl&&X&&J(X,`display`,`none`)},Nl=function(){!Dl&&X&&J(X,`display`,``)};Cl&&!dc&&document.addEventListener(`click`,function(e){if(al)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),al=!1,!1},!0);var Pl=function(e){if(Y){e=e.touches?e.touches[0]:e;var t=Al(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Lc]._onDragOver(n)}}},Fl=function(e){Y&&Y.parentNode[Lc]._isOutsideThisEl(e.target)};function $(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw`Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;this.el=e,this.options=t=tc({},t),e[Lc]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?`>li`:`>*`,swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ol(e,this.options)},ghostClass:`sortable-ghost`,chosenClass:`sortable-chosen`,dragClass:`sortable-drag`,ignore:`a, img`,filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData(`Text`,t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:`data-id`,delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:`sortable-fallback`,fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:$.supportPointer!==!1&&`PointerEvent`in window&&!lc,emptyInsertThreshold:5};for(var r in Uc.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in jl(t),this)i.charAt(0)===`_`&&typeof this[i]==`function`&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:El,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?K(e,`pointerdown`,this._onTapStart):(K(e,`mousedown`,this._onTapStart),K(e,`touchstart`,this._onTapStart)),this.nativeDraggable&&(K(e,`dragover`,this),K(e,`dragenter`,this)),ol.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),tc(this,Rc())}$.prototype={constructor:$,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ml=null)},_getDirection:function(e,t){return typeof this.options.direction==`function`?this.options.direction.call(this,e,t,Y):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType===`touch`&&e,s=(o||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(Gl(n),!Y&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&lc&&s&&s.tagName.toUpperCase()===`SELECT`)&&(s=hc(s,r.draggable,n,!1),!(s&&s.animated)&&Xc!==s)){if(Qc=Tc(s),el=Tc(s,r.draggable),typeof l==`function`){if(l.call(this,e,s,this)){qc({sortable:t,rootEl:c,name:`filter`,targetEl:s,toEl:n,fromEl:n}),Kc(`filter`,t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(l&&(l=l.split(`,`).some(function(r){if(r=hc(c,r.trim(),n,!1),r)return qc({sortable:t,rootEl:r,name:`filter`,targetEl:s,fromEl:n,toEl:n}),Kc(`filter`,t,{evt:e}),!0}),l)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!hc(c,r.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,a=r.options,o=i.ownerDocument,s;if(n&&!Y&&n.parentNode===i){var c=xc(n);if(Z=i,Y=n,Jc=Y.parentNode,Yc=Y.nextSibling,Xc=n,nl=a.group,$.dragged=Y,sl={target:Y,clientX:(t||e).clientX,clientY:(t||e).clientY},dl=sl.clientX-c.left,fl=sl.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Y.style[`will-change`]=`all`,s=function(){if(Kc(`delayEnded`,r,{evt:e}),$.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!cc&&r.nativeDraggable&&(Y.draggable=!0),r._triggerDragStart(e,t),qc({sortable:r,name:`choose`,originalEvent:e}),_c(Y,a.chosenClass,!0)},a.ignore.split(`,`).forEach(function(e){yc(Y,e.trim(),Rl)}),K(o,`dragover`,Pl),K(o,`mousemove`,Pl),K(o,`touchmove`,Pl),K(o,`mouseup`,r._onDrop),K(o,`touchend`,r._onDrop),K(o,`touchcancel`,r._onDrop),cc&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Y.draggable=!0),Kc(`delayStart`,this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(sc||oc))){if($.eventCanceled){this._onDrop();return}K(o,`mouseup`,r._disableDelayedDrag),K(o,`touchend`,r._disableDelayedDrag),K(o,`touchcancel`,r._disableDelayedDrag),K(o,`mousemove`,r._delayedDragTouchMoveHandler),K(o,`touchmove`,r._delayedDragTouchMoveHandler),a.supportPointer&&K(o,`pointermove`,r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Y&&Rl(Y),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;q(e,`mouseup`,this._disableDelayedDrag),q(e,`touchend`,this._disableDelayedDrag),q(e,`touchcancel`,this._disableDelayedDrag),q(e,`mousemove`,this._delayedDragTouchMoveHandler),q(e,`touchmove`,this._delayedDragTouchMoveHandler),q(e,`pointermove`,this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t||=e.pointerType==`touch`&&e,!this.nativeDraggable||t?this.options.supportPointer?K(document,`pointermove`,this._onTouchMove):t?K(document,`touchmove`,this._onTouchMove):K(document,`mousemove`,this._onTouchMove):(K(Y,`dragend`,this),K(Z,`dragstart`,this._onDragStart));try{document.selection?Kl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(il=!1,Z&&Y){Kc(`dragStarted`,this,{evt:t}),this.nativeDraggable&&K(document,`dragover`,Fl);var n=this.options;!e&&_c(Y,n.dragClass,!1),_c(Y,n.ghostClass,!0),$.active=this,e&&this._appendGhost(),qc({sortable:this,name:`start`,originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(cl){this._lastX=cl.clientX,this._lastY=cl.clientY,Ml();for(var e=document.elementFromPoint(cl.clientX,cl.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(cl.clientX,cl.clientY),e!==t);)t=e;if(Y.parentNode[Lc]._isOutsideThisEl(e),t)do{if(t[Lc]){var n=void 0;if(n=t[Lc]._onDragOver({clientX:cl.clientX,clientY:cl.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Nl()}},_onTouchMove:function(e){if(sl){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=X&&vc(X,!0),o=X&&a&&a.a,s=X&&a&&a.d,c=wl&&yl&&Ec(yl),l=(i.clientX-sl.clientX+r.x)/(o||1)+(c?c[0]-bl[0]:0)/(o||1),u=(i.clientY-sl.clientY+r.y)/(s||1)+(c?c[1]-bl[1]:0)/(s||1);if(!$.active&&!il){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(X){a?(a.e+=l-(ll||0),a.f+=u-(ul||0)):a={a:1,b:0,c:0,d:1,e:l,f:u};var d=`matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;J(X,`webkitTransform`,d),J(X,`mozTransform`,d),J(X,`msTransform`,d),J(X,`transform`,d),ll=l,ul=u,cl=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!X){var e=this.options.fallbackOnBody?document.body:Z,t=xc(Y,!0,wl,!0,e),n=this.options;if(wl){for(yl=e;J(yl,`position`)===`static`&&J(yl,`transform`)===`none`&&yl!==document;)yl=yl.parentNode;yl!==document.body&&yl!==document.documentElement?(yl===document&&(yl=bc()),t.top+=yl.scrollTop,t.left+=yl.scrollLeft):yl=bc(),bl=Ec(yl)}X=Y.cloneNode(!0),_c(X,n.ghostClass,!1),_c(X,n.fallbackClass,!0),_c(X,n.dragClass,!0),J(X,`transition`,``),J(X,`transform`,``),J(X,`box-sizing`,`border-box`),J(X,`margin`,0),J(X,`top`,t.top),J(X,`left`,t.left),J(X,`width`,t.width),J(X,`height`,t.height),J(X,`opacity`,`0.8`),J(X,`position`,wl?`absolute`:`fixed`),J(X,`zIndex`,`100000`),J(X,`pointerEvents`,`none`),$.ghost=X,e.appendChild(X),J(X,`transform-origin`,dl/parseInt(X.style.width)*100+`% `+fl/parseInt(X.style.height)*100+`%`)}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;if(Kc(`dragStart`,this,{evt:e}),$.eventCanceled){this._onDrop();return}Kc(`setupClone`,this),$.eventCanceled||(Q=Fc(Y),Q.removeAttribute(`id`),Q.draggable=!1,Q.style[`will-change`]=``,this._hideClone(),_c(Q,this.options.chosenClass,!1),$.clone=Q),n.cloneId=Kl(function(){Kc(`clone`,n),!$.eventCanceled&&(n.options.removeCloneOnHide||Z.insertBefore(Q,Y),n._hideClone(),qc({sortable:n,name:`clone`}))}),!t&&_c(Y,i.dragClass,!0),t?(al=!0,n._loopId=setInterval(n._emulateDragOver,50)):(q(document,`mouseup`,n._onDrop),q(document,`touchend`,n._onDrop),q(document,`touchcancel`,n._onDrop),r&&(r.effectAllowed=`move`,i.setData&&i.setData.call(n,r,Y)),K(document,`drop`,n),J(Y,`transform`,`translateZ(0)`)),il=!0,n._dragStartId=Kl(n._dragStarted.bind(n,t,e)),K(document,`selectstart`,n),pl=!0,lc&&J(document.body,`user-select`,`none`)},_onDragOver:function(e){var t=this.el,n=e.target,r,i,a,o=this.options,s=o.group,c=$.active,l=nl===s,u=o.sort,d=rl||c,f,p=this,m=!1;if(xl)return;function h(o,s){Kc(o,p,Qs({evt:e,isOwner:l,axis:f?`vertical`:`horizontal`,revert:a,dragRect:r,targetRect:i,canSort:u,fromSortable:d,target:n,completed:_,onMove:function(n,i){return Ll(Z,t,Y,r,n,xc(n),e,i)},changed:v},s))}function g(){h(`dragOverAnimationCapture`),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function _(r){return h(`dragOverCompleted`,{insertion:r}),r&&(l?c._hideClone():c._showClone(p),p!==d&&(_c(Y,rl?rl.options.ghostClass:c.options.ghostClass,!1),_c(Y,o.ghostClass,!0)),rl!==p&&p!==$.active?rl=p:p===$.active&&rl&&(rl=null),d===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){h(`dragOverAnimationComplete`),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===Y&&!Y.animated||n===t&&!n.animated)&&(ml=null),!o.dragoverBubble&&!e.rootEl&&n!==document&&(Y.parentNode[Lc]._isOutsideThisEl(e.target),!r&&Pl(e)),!o.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function v(){$c=Tc(Y),tl=Tc(Y,o.draggable),qc({sortable:p,name:`change`,toEl:t,newIndex:$c,newDraggableIndex:tl,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=hc(n,o.draggable,t,!0),h(`dragOver`),$.eventCanceled)return m;if(Y.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return _(!1);if(al=!1,c&&!o.disabled&&(l?u||(a=Jc!==Z):rl===this||(this.lastPutMode=nl.checkPull(this,c,Y,e))&&s.checkPut(this,c,Y,e))){if(f=this._getDirection(e,n)===`vertical`,r=xc(Y),h(`dragOverValid`),$.eventCanceled)return m;if(a)return Jc=Z,g(),this._hideClone(),h(`revert`),$.eventCanceled||(Yc?Z.insertBefore(Y,Yc):Z.appendChild(Y)),_(!0);var y=wc(t,o.draggable);if(!y||Vl(e,f,this)&&!y.animated){if(y===Y)return _(!1);if(y&&t===e.target&&(n=y),n&&(i=xc(n)),Ll(Z,t,Y,r,n,i,e,!!n)!==!1)return g(),y&&y.nextSibling?t.insertBefore(Y,y.nextSibling):t.appendChild(Y),Jc=t,v(),_(!0)}else if(y&&Bl(e,f,this)){var b=Cc(t,0,o,!0);if(b===Y)return _(!1);if(n=b,i=xc(n),Ll(Z,t,Y,r,n,i,e,!1)!==!1)return g(),t.insertBefore(Y,b),Jc=t,v(),_(!0)}else if(n.parentNode===t){i=xc(n);var x=0,S,C=Y.parentNode!==t,w=!kl(Y.animated&&Y.toRect||r,n.animated&&n.toRect||i,f),T=f?`top`:`left`,E=Sc(n,`top`,`top`)||Sc(Y,`top`,`top`),D=E?E.scrollTop:void 0;ml!==n&&(S=i[T],gl=!1,_l=!w&&o.invertSwap||C),x=Hl(e,n,i,f,w?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,_l,ml===n);var O;if(x!==0){var k=Tc(Y);do k-=x,O=Jc.children[k];while(O&&(J(O,`display`)===`none`||O===X))}if(x===0||O===n)return _(!1);ml=n,hl=x;var A=n.nextElementSibling,j=!1;j=x===1;var M=Ll(Z,t,Y,r,n,i,e,j);if(M!==!1)return(M===1||M===-1)&&(j=M===1),xl=!0,setTimeout(zl,30),g(),j&&!A?t.appendChild(Y):n.parentNode.insertBefore(Y,j?A:n),E&&Pc(E,0,D-E.scrollTop),Jc=Y.parentNode,S!==void 0&&!_l&&(vl=Math.abs(S-xc(n)[T])),v(),_(!0)}if(t.contains(Y))return _(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){q(document,`mousemove`,this._onTouchMove),q(document,`touchmove`,this._onTouchMove),q(document,`pointermove`,this._onTouchMove),q(document,`dragover`,Pl),q(document,`mousemove`,Pl),q(document,`touchmove`,Pl)},_offUpEvents:function(){var e=this.el.ownerDocument;q(e,`mouseup`,this._onDrop),q(e,`touchend`,this._onDrop),q(e,`pointerup`,this._onDrop),q(e,`touchcancel`,this._onDrop),q(document,`selectstart`,this)},_onDrop:function(e){var t=this.el,n=this.options;if($c=Tc(Y),tl=Tc(Y,n.draggable),Kc(`drop`,this,{evt:e}),Jc=Y&&Y.parentNode,$c=Tc(Y),tl=Tc(Y,n.draggable),$.eventCanceled){this._nulling();return}il=!1,_l=!1,gl=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ql(this.cloneId),ql(this._dragStartId),this.nativeDraggable&&(q(document,`drop`,this),q(t,`dragstart`,this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),lc&&J(document.body,`user-select`,``),J(Y,`transform`,``),e&&(pl&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),X&&X.parentNode&&X.parentNode.removeChild(X),(Z===Jc||rl&&rl.lastPutMode!==`clone`)&&Q&&Q.parentNode&&Q.parentNode.removeChild(Q),Y&&(this.nativeDraggable&&q(Y,`dragend`,this),Rl(Y),Y.style[`will-change`]=``,pl&&!il&&_c(Y,rl?rl.options.ghostClass:this.options.ghostClass,!1),_c(Y,this.options.chosenClass,!1),qc({sortable:this,name:`unchoose`,toEl:Jc,newIndex:null,newDraggableIndex:null,originalEvent:e}),Z===Jc?$c!==Qc&&$c>=0&&(qc({sortable:this,name:`update`,toEl:Jc,originalEvent:e}),qc({sortable:this,name:`sort`,toEl:Jc,originalEvent:e})):($c>=0&&(qc({rootEl:Jc,name:`add`,toEl:Jc,fromEl:Z,originalEvent:e}),qc({sortable:this,name:`remove`,toEl:Jc,originalEvent:e}),qc({rootEl:Jc,name:`sort`,toEl:Jc,fromEl:Z,originalEvent:e}),qc({sortable:this,name:`sort`,toEl:Jc,originalEvent:e})),rl&&rl.save()),$.active&&(($c==null||$c===-1)&&($c=Qc,tl=el),qc({sortable:this,name:`end`,toEl:Jc,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Kc(`nulling`,this),Z=Y=Jc=X=Yc=Q=Xc=Zc=sl=cl=pl=$c=tl=Qc=el=ml=hl=rl=nl=$.dragged=$.ghost=$.clone=$.active=null,Sl.forEach(function(e){e.checked=!0}),Sl.length=ll=ul=0},handleEvent:function(e){switch(e.type){case`drop`:case`dragend`:this._onDrop(e);break;case`dragenter`:case`dragover`:Y&&(this._onDragOver(e),Il(e));break;case`selectstart`:e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,a=this.options;r<i;r++)t=n[r],hc(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||Wl(t));return e},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var i=r.children[t];hc(i,this.options.draggable,r,!1)&&(n[e]=i)},this),t&&this.captureAnimationState(),e.forEach(function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return hc(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var r=Uc.modifyOption(this,e,t);r===void 0?n[e]=t:n[e]=r,e===`group`&&jl(n)},destroy:function(){Kc(`destroy`,this);var e=this.el;e[Lc]=null,q(e,`mousedown`,this._onTapStart),q(e,`touchstart`,this._onTapStart),q(e,`pointerdown`,this._onTapStart),this.nativeDraggable&&(q(e,`dragover`,this),q(e,`dragenter`,this)),Array.prototype.forEach.call(e.querySelectorAll(`[draggable]`),function(e){e.removeAttribute(`draggable`)}),this._onDrop(),this._disableDelayedDragEvents(),ol.splice(ol.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Zc){if(Kc(`hideClone`,this),$.eventCanceled)return;J(Q,`display`,`none`),this.options.removeCloneOnHide&&Q.parentNode&&Q.parentNode.removeChild(Q),Zc=!0}},_showClone:function(e){if(e.lastPutMode!==`clone`){this._hideClone();return}if(Zc){if(Kc(`showClone`,this),$.eventCanceled)return;Y.parentNode==Z&&!this.options.group.revertClone?Z.insertBefore(Q,Y):Yc?Z.insertBefore(Q,Yc):Z.appendChild(Q),this.options.group.revertClone&&this.animate(Y,Q),J(Q,`display`,``),Zc=!1}}};function Il(e){e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),e.cancelable&&e.preventDefault()}function Ll(e,t,n,r,i,a,o,s){var c,l=e[Lc],u=l.options.onMove,d;return window.CustomEvent&&!oc&&!sc?c=new CustomEvent(`move`,{bubbles:!0,cancelable:!0}):(c=document.createEvent(`Event`),c.initEvent(`move`,!0,!0)),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=i||t,c.relatedRect=a||xc(t),c.willInsertAfter=s,c.originalEvent=o,e.dispatchEvent(c),u&&(d=u.call(l,c,o)),d}function Rl(e){e.draggable=!1}function zl(){xl=!1}function Bl(e,t,n){var r=xc(Cc(n.el,0,n.options,!0)),i=Ic(n.el,n.options,X),a=10;return t?e.clientX<i.left-a||e.clientY<r.top&&e.clientX<r.right:e.clientY<i.top-a||e.clientY<r.bottom&&e.clientX<r.left}function Vl(e,t,n){var r=xc(wc(n.el,n.options.draggable)),i=Ic(n.el,n.options,X),a=10;return t?e.clientX>i.right+a||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+a||e.clientX>r.right&&e.clientY>r.top}function Hl(e,t,n,r,i,a,o,s){var c=r?e.clientY:e.clientX,l=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!o){if(s&&vl<l*i){if(!gl&&(hl===1?c>u+l*a/2:c<d-l*a/2)&&(gl=!0),gl)f=!0;else if(hl===1?c<u+vl:c>d-vl)return-hl}else if(c>u+l*(1-i)/2&&c<d-l*(1-i)/2)return Ul(t)}return f||=o,f&&(c<u+l*a/2||c>d-l*a/2)?c>u+l/2?1:-1:0}function Ul(e){return Tc(Y)<Tc(e)?1:-1}function Wl(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Gl(e){Sl.length=0;for(var t=e.getElementsByTagName(`input`),n=t.length;n--;){var r=t[n];r.checked&&Sl.push(r)}}function Kl(e){return setTimeout(e,0)}function ql(e){return clearTimeout(e)}Cl&&K(document,`touchmove`,function(e){($.active||il)&&e.cancelable&&e.preventDefault()}),$.utils={on:K,off:q,css:J,find:yc,is:function(e,t){return!!hc(e,t,e,!1)},extend:kc,throttle:Mc,closest:hc,toggleClass:_c,clone:Fc,index:Tc,nextTick:Kl,cancelNextTick:ql,detectDirection:Ol,getChild:Cc},$.get=function(e){return e[Lc]},$.mount=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw`Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;e.utils&&($.utils=Qs(Qs({},$.utils),e.utils)),Uc.mount(e)})},$.create=function(e,t){return new $(e,t)},$.version=ic;var Jl=[],Yl,Xl,Zl=!1,Ql,$l,eu,tu;function nu(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)e.charAt(0)===`_`&&typeof this[e]==`function`&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?K(document,`dragover`,this._handleAutoScroll):this.options.supportPointer?K(document,`pointermove`,this._handleFallbackAutoScroll):t.touches?K(document,`touchmove`,this._handleFallbackAutoScroll):K(document,`mousemove`,this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?q(document,`dragover`,this._handleAutoScroll):(q(document,`pointermove`,this._handleFallbackAutoScroll),q(document,`touchmove`,this._handleFallbackAutoScroll),q(document,`mousemove`,this._handleFallbackAutoScroll)),iu(),ru(),Nc()},nulling:function(){eu=Xl=Yl=Zl=tu=Ql=$l=null,Jl.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,i);if(eu=e,t||this.options.forceAutoScrollFallback||sc||oc||lc){au(e,this.options,a,t);var o=Oc(a,!0);Zl&&(!tu||r!==Ql||i!==$l)&&(tu&&iu(),tu=setInterval(function(){var a=Oc(document.elementFromPoint(r,i),!0);a!==o&&(o=a,ru()),au(e,n.options,a,t)},10),Ql=r,$l=i)}else{if(!this.options.bubbleScroll||Oc(a,!0)===bc()){ru();return}au(e,this.options,Oc(a,!1),!1)}}},tc(e,{pluginName:`scroll`,initializeByDefault:!0})}function ru(){Jl.forEach(function(e){clearInterval(e.pid)}),Jl=[]}function iu(){clearInterval(tu)}var au=Mc(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,o=t.scrollSensitivity,s=t.scrollSpeed,c=bc(),l=!1,u;Xl!==n&&(Xl=n,ru(),Yl=t.scroll,u=t.scrollFn,Yl===!0&&(Yl=Oc(n,!0)));var d=0,f=Yl;do{var p=f,m=xc(p),h=m.top,g=m.bottom,_=m.left,v=m.right,y=m.width,b=m.height,x=void 0,S=void 0,C=p.scrollWidth,w=p.scrollHeight,T=J(p),E=p.scrollLeft,D=p.scrollTop;p===c?(x=y<C&&(T.overflowX===`auto`||T.overflowX===`scroll`||T.overflowX===`visible`),S=b<w&&(T.overflowY===`auto`||T.overflowY===`scroll`||T.overflowY===`visible`)):(x=y<C&&(T.overflowX===`auto`||T.overflowX===`scroll`),S=b<w&&(T.overflowY===`auto`||T.overflowY===`scroll`));var O=x&&(Math.abs(v-i)<=o&&E+y<C)-(Math.abs(_-i)<=o&&!!E),k=S&&(Math.abs(g-a)<=o&&D+b<w)-(Math.abs(h-a)<=o&&!!D);if(!Jl[d])for(var A=0;A<=d;A++)Jl[A]||(Jl[A]={});(Jl[d].vx!=O||Jl[d].vy!=k||Jl[d].el!==p)&&(Jl[d].el=p,Jl[d].vx=O,Jl[d].vy=k,clearInterval(Jl[d].pid),(O!=0||k!=0)&&(l=!0,Jl[d].pid=setInterval(function(){r&&this.layer===0&&$.active._onTouchMove(eu);var t=Jl[this.layer].vy?Jl[this.layer].vy*s:0,n=Jl[this.layer].vx?Jl[this.layer].vx*s:0;typeof u==`function`&&u.call($.dragged.parentNode[Lc],n,t,e,eu,Jl[this.layer].el)!==`continue`||Pc(Jl[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=Oc(f,!1)));Zl=l}},30),ou=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var c=n||i;o();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(l.clientX,l.clientY);s(),c&&!c.el.contains(u)&&(a(`spill`),this.onSpill({dragEl:r,putSortable:n}))}};function su(){}su.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Cc(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:ou},tc(su,{pluginName:`revertOnSpill`});function cu(){}cu.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:ou},tc(cu,{pluginName:`removeOnSpill`}),$.mount(new nu),$.mount(cu,su);function lu(e){return e==null?e:JSON.parse(JSON.stringify(e))}function uu(e){(0,t.getCurrentInstance)()&&(0,t.onUnmounted)(e)}function du(e){(0,t.getCurrentInstance)()?(0,t.onMounted)(e):(0,t.nextTick)(e)}var fu=null,pu=null;function mu(e=null,t=null){fu=e,pu=t}function hu(){return{data:fu,clonedData:pu}}var gu=Symbol(`cloneElement`);function _u(...e){let n=(0,t.getCurrentInstance)()?.proxy,r=null,i=e[0],[,a,o]=e;Array.isArray((0,t.unref)(a))||(o=a,a=null);let s=null,{immediate:c=!0,clone:l=lu,forceFallback:u,fallbackOnBody:d,customUpdate:f}=(0,t.unref)(o)??{};function p(e){let{from:n,oldIndex:i,item:o}=e,s=Array.from(n.childNodes);r=u&&!d?s.slice(0,-1):s;let c=(0,t.unref)((0,t.unref)(a)?.[i]),f=l(c);mu(c,f),o[gu]=f}function m(e){let n=e.item[gu];if(!Bs(n)){if(Us(e.item),(0,t.isRef)(a)){let r=[...(0,t.unref)(a)];a.value=zs(r,e.newDraggableIndex,n);return}zs((0,t.unref)(a),e.newDraggableIndex,n)}}function h(e){let{from:n,item:r,oldIndex:i,oldDraggableIndex:o,pullMode:s,clone:c}=e;if(Hs(n,r,i),s===`clone`){Us(c);return}if((0,t.isRef)(a)){let e=[...(0,t.unref)(a)];a.value=Rs(e,o);return}Rs((0,t.unref)(a),o)}function g(e){if(f){f(e);return}let{from:n,item:r,oldIndex:i,oldDraggableIndex:o,newDraggableIndex:s}=e;if(Us(r),Hs(n,r,i),(0,t.isRef)(a)){let e=[...(0,t.unref)(a)];a.value=Fs(e,o,s);return}Fs((0,t.unref)(a),o,s)}function _(e){let{newIndex:n,oldIndex:i,from:a,to:o}=e,s=null,c=n===i&&a===o;try{if(c){let e=null;r?.some((t,n)=>{if(e&&r?.length!==o.childNodes.length)return a.insertBefore(e,t.nextSibling),!0;let i=o.childNodes[n];e=o?.replaceChild(t,i)})}}catch(e){s=e}finally{r=null}(0,t.nextTick)(()=>{if(mu(),s)throw s})}let v={onUpdate:g,onStart:p,onAdd:m,onRemove:h,onEnd:_};function y(e){let r=(0,t.unref)(i);return e||=Vs(r)?Ws(r,n?.$el):r,e&&!qs(e)&&(e=e.$el),e||Ps(`Root element not found`),e}function b(){let e=(0,t.unref)(o)??{},{immediate:n,clone:r}=e,i=js(e,[`immediate`,`clone`]);return Js(i,(e,t)=>{Ys(e)&&(i[e]=(e,...n)=>(Xs(e,hu()),t(e,...n)))}),Ks(a===null?{}:v,i)}let x=e=>{e=y(e),s&&S.destroy(),s=new $(e,b())};(0,t.watch)(()=>o,()=>{s&&Js(b(),(e,t)=>{s?.option(e,t)})},{deep:!0});let S={option:(e,t)=>s?.option(e,t),destroy:()=>{s?.destroy(),s=null},save:()=>s?.save(),toArray:()=>s?.toArray(),closest:(...e)=>s?.closest(...e)};return du(()=>{c&&x()}),uu(S.destroy),As({start:x,pause:()=>S?.option(`disabled`,!0),resume:()=>S?.option(`disabled`,!1)},S)}var vu=[`update`,`start`,`add`,`remove`,`choose`,`unchoose`,`end`,`sort`,`filter`,`clone`,`move`,`change`],yu=(0,t.defineComponent)({name:`VueDraggable`,model:{prop:`modelValue`,event:`update:modelValue`},props:[`clone`,`animation`,`ghostClass`,`group`,`sort`,`disabled`,`store`,`handle`,`draggable`,`swapThreshold`,`invertSwap`,`invertedSwapThreshold`,`removeCloneOnHide`,`direction`,`chosenClass`,`dragClass`,`ignore`,`filter`,`preventOnFilter`,`easing`,`setData`,`dropBubble`,`dragoverBubble`,`dataIdAttr`,`delay`,`delayOnTouchOnly`,`touchStartThreshold`,`forceFallback`,`fallbackClass`,`fallbackOnBody`,`fallbackTolerance`,`fallbackOffset`,`supportPointer`,`emptyInsertThreshold`,`scroll`,`forceAutoScrollFallback`,`scrollSensitivity`,`scrollSpeed`,`bubbleScroll`,`modelValue`,`tag`,`target`,`customUpdate`,...vu.map(e=>`on${e.replace(/^\S/,e=>e.toUpperCase())}`)],emits:[`update:modelValue`,...vu],setup(e,{slots:n,emit:r,expose:i,attrs:a}){let o=vu.reduce((e,t)=>{let n=`on${t.replace(/^\S/,e=>e.toUpperCase())}`;return e[n]=(...e)=>r(t,...e),e},{}),s=(0,t.computed)(()=>{let n=(0,t.toRefs)(e),{modelValue:r}=n,i=js(n,[`modelValue`]),s=Object.entries(i).reduce((e,[n,r])=>{let i=(0,t.unref)(r);return i!==void 0&&(e[n]=i),e},{});return As(As({},o),Ls(As(As({},a),s)))}),c=(0,t.computed)({get:()=>e.modelValue,set:e=>r(`update:modelValue`,e)}),l=(0,t.ref)(),u=(0,t.reactive)(_u(e.target||l,c,s));return i(u),()=>(0,t.h)(e.tag||`div`,{ref:l},(n?.default)?.call(n,u))}}),bu={mounted:`mounted`,unmounted:`unmounted`};bu.mounted,bu.unmounted;var xu={class:`ac-panel-head`},Su={class:`ac-panel-head-top`},Cu={class:`ac-panel-heading`},wu={class:`ac-panel-count`},Tu={class:`ac-view-tabs`,role:`tablist`,"aria-label":`面板布局`},Eu=[`aria-selected`],Du=[`aria-selected`],Ou={key:0,class:`ac-menu-empty`},ku={class:`ac-view-stack`},Au={key:0,class:`ac-model-grid`},ju=[`title`,`innerHTML`],Mu={class:`ac-model-copy`},Nu={class:`ac-model-card-top`},Pu={class:`ac-model-id`},Fu={key:1,class:`ac-check-mark`,"aria-hidden":`true`},Iu={class:`ac-model-meta`},Lu={key:1,class:`ac-empty-state`},Ru={class:`ac-empty-icon`},zu={class:`ac-split-rail`,"aria-label":`模型平台`},Bu={key:0,class:`ac-rail-icon`,"aria-hidden":`true`},Vu=[`title`,`innerHTML`],Hu={class:`ac-rail-name`},Uu={class:`ac-rail-count`},Wu={class:`ac-split-main`},Gu={key:0,class:`ac-model-row-list`},Ku=[`title`,`innerHTML`],qu={class:`ac-model-copy`},Ju={class:`ac-model-id`},Yu={class:`ac-model-meta`},Xu={class:`ac-model-badges`},Zu={key:0,class:`ac-check-mark`,"aria-hidden":`true`},Qu={key:1,class:`ac-empty-state`},$u={class:`ac-empty-icon`},ed=G((0,t.defineComponent)({__name:`ModelPicker`,props:{models:{},current:{default:null},usableOnly:{type:Boolean,default:!0},compact:{type:Boolean,default:!1},view:{}},emits:[`pick`,`update:view`],setup(e,{expose:n,emit:i}){let a=e,o=i,s=(0,r.useUiComponent)(`Button`),c=(0,r.useUiComponent)(`Badge`),l=(0,r.useUiComponent)(`InputGroup`),u=(0,r.useUiComponent)(`InputGroupAddon`),d=(0,r.useUiComponent)(`InputGroupButton`),f=(0,r.useUiComponent)(`InputGroupInput`),p=(0,t.computed)(()=>a.usableOnly?a.models.filter(e=>e.hasKey):a.models.slice()),m=(0,t.ref)(``),h=(0,t.ref)(`card`),g=(0,t.computed)(()=>a.view??h.value),_=(0,t.ref)(`all`);function v(e){if(e!==`split`&&e!==`card`)return;let t=e;h.value!==t&&(h.value=t),o(`update:view`,t)}function y(e){return e.contextWindow?Math.round(e.contextWindow/1e3)+`K`:e.isVision?`视觉`:``}function b(e){return a.current?.provider===e.provider&&a.current?.modelId===e.modelId}function x(e){return dr(e.modelId,e.provider)}function S(e){return hr(x(e))}function C(e){return mr(x(e))}let w=(0,t.computed)(()=>{let e=[];for(let t of p.value){let n=x(t),r=e.find(e=>e.key===n);r?r.count++:e.push({key:n,label:hr(n),count:1})}return[{key:`all`,label:`全部平台`,count:p.value.length},...e]}),T=(0,t.computed)(()=>{let e=m.value.trim().toLowerCase();return p.value.filter(t=>{if(_.value!==`all`&&x(t)!==_.value)return!1;if(!e)return!0;let n=hr(x(t));return(t.modelId+` `+t.provider+` `+y(t)+` `+n).toLowerCase().includes(e)})}),E=(0,t.ref)(null);function D(e){if(!e)return null;if(e instanceof HTMLElement)return e;let t=e;return typeof t.rootElement==`function`?t.rootElement():null}function k(){let e=D(E.value),t=(e??document).querySelector(`[role="option"][aria-selected="true"]`),n=e=>e?.querySelector(`[data-slot="scroll-area-viewport"]`)??e??null,r=n(t?.closest(`.ac-split-scroll, .ac-menu-scroll`)??n(e));if(!r||r.clientHeight<=0)return;let i=t&&r.contains(t)?t:r.querySelector(`[role="option"][aria-selected="true"]`);if(!i)return;let a=i.getBoundingClientRect().top-r.getBoundingClientRect().top+r.scrollTop;r.scrollTop=_r({scrollTop:r.scrollTop,scrollHeight:r.scrollHeight,clientHeight:r.clientHeight},{top:a,height:i.offsetHeight},4);let o=i.getBoundingClientRect(),s=r.getBoundingClientRect();o.bottom>s.bottom?r.scrollTop+=o.bottom-s.bottom:o.top<s.top&&(r.scrollTop-=s.top-o.top)}let A=null;function j(){k(),A!==null&&window.clearTimeout(A),A=window.setTimeout(()=>{A=null,k()},200)}let M=null,N=null;function P(){M?.disconnect(),M=null;let e=D(E.value),t=e?.querySelector(`.ac-split-scroll [data-slot="scroll-area-viewport"]`)??e?.querySelector(`[data-slot="scroll-area-viewport"]`)??null;!t||typeof ResizeObserver>`u`||(M=new ResizeObserver(()=>{N!==null&&window.clearTimeout(N),N=window.setTimeout(()=>{N=null,k()},80)}),M.observe(t))}function F(){(0,t.nextTick)(()=>{j(),P()})}(0,t.watch)(()=>[a.current?.provider,a.current?.modelId,a.models.length],()=>F()),(0,t.watch)(g,()=>F()),(0,t.watch)(_,()=>F()),(0,t.onBeforeUnmount)(()=>{M?.disconnect(),M=null,N!==null&&window.clearTimeout(N),A!==null&&window.clearTimeout(A)});function I(e){o(`pick`,{provider:e.provider,modelId:e.modelId})}return n({refreshLayout:F}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`ac-panel ac-model-panel mp-root`,{"is-split":g.value===`split`}]),role:`listbox`,"aria-label":`选择模型`},[(0,t.createElementVNode)(`div`,xu,[(0,t.createElementVNode)(`div`,Su,[(0,t.createElementVNode)(`div`,Cu,[n[4]||=(0,t.createElementVNode)(`span`,{class:`ac-panel-title`},`模型`,-1),(0,t.createElementVNode)(`span`,wu,(0,t.toDisplayString)(p.value.length),1)]),(0,t.createElementVNode)(`div`,Tu,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`ac-view-tab`,{"is-active":g.value===`card`}]),"aria-selected":g.value===`card`,role:`tab`,onClick:n[0]||=e=>v(`card`)},`卡片`,10,Eu),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`ac-view-tab`,{"is-active":g.value===`split`}]),"aria-selected":g.value===`split`,role:`tab`,onClick:n[1]||=e=>v(`split`)},`分栏`,10,Du)])]),(0,t.createVNode)((0,t.unref)(l),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(u),{align:`inline-start`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ve),{size:14,"aria-hidden":`true`})]),_:1}),(0,t.createVNode)((0,t.unref)(f),{modelValue:m.value,"onUpdate:modelValue":n[2]||=e=>m.value=e,type:`text`,name:`mp-model-search`,"data-ac-search":`model`,placeholder:`搜索模型或平台`,"aria-label":`搜索模型或平台`,autocomplete:`off`,spellcheck:`false`},null,8,[`modelValue`]),m.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(u),{key:0,align:`inline-end`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(d),{size:`icon-xs`,"aria-label":`清空搜索`,onClick:n[3]||=e=>m.value=``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae))]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1})]),p.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,ref_key:`scrollRef`,ref:E,"data-model-scroll":``,class:`ac-menu-scroll ac-panel-body`},[(0,t.createElementVNode)(`div`,ku,[(0,t.createVNode)(Wi,{class:(0,t.normalizeClass)([`ac-panel-scroll ac-view-pane`,{"is-active":g.value===`card`}]),"body-class":`ac-panel-scroll-body ac-model-scroll-body`},{default:(0,t.withCtx)(()=>[T.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Au,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(T.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(s),{key:e.provider+`/`+e.modelId,variant:`ghost`,size:`sm`,role:`option`,"aria-selected":b(e),onClick:t=>I(e)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:`ac-model-brand`,title:S(e),"aria-hidden":`true`,innerHTML:C(e)},null,8,ju),(0,t.createElementVNode)(`span`,Mu,[(0,t.createElementVNode)(`span`,Nu,[(0,t.createElementVNode)(`span`,Pu,(0,t.toDisplayString)(e.modelId),1),e.isDefault?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(c),{key:0,variant:`secondary`},{default:(0,t.withCtx)(()=>[...n[5]||=[(0,t.createTextVNode)(`默认`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0),b(e)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Fu,[(0,t.createVNode)((0,t.unref)(O),{size:16,"stroke-width":2})])):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`span`,Iu,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(S(e)),1),n[6]||=(0,t.createElementVNode)(`span`,{class:`ac-dot-sep`,"aria-hidden":`true`},null,-1),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(y(e)),1)])])]),_:2},1032,[`aria-selected`,`onClick`]))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Lu,[(0,t.createElementVNode)(`span`,Ru,[(0,t.createVNode)((0,t.unref)(ve),{size:18})]),n[7]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-title`},`没有找到模型`,-1),n[8]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-desc`},`换个模型名或平台名试试。`,-1)]))]),_:1},8,[`class`]),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`ac-view-pane ac-split`,{"is-active":g.value===`split`}])},[(0,t.createElementVNode)(`aside`,zu,[n[9]||=(0,t.createElementVNode)(`div`,{class:`ac-rail-label`},`平台`,-1),(0,t.createVNode)(Wi,{class:`ac-rail-scroll`,"body-class":`ac-rail-scroll-body`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(w.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(s),{key:e.key,variant:`ghost`,size:`sm`,"aria-pressed":_.value===e.key,onClick:t=>_.value=e.key},{default:(0,t.withCtx)(()=>[e.key===`all`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Bu,[(0,t.createVNode)((0,t.unref)(re),{size:14})])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,class:`ac-rail-brand`,title:e.label,"aria-hidden":`true`,innerHTML:(0,t.unref)(mr)(e.key)},null,8,Vu)),(0,t.createElementVNode)(`span`,Hu,(0,t.toDisplayString)(e.label),1),(0,t.createElementVNode)(`span`,Uu,(0,t.toDisplayString)(e.count),1)]),_:2},1032,[`aria-pressed`,`onClick`]))),128))]),_:1})]),(0,t.createElementVNode)(`div`,Wu,[(0,t.createVNode)(Wi,{class:`ac-split-scroll`,"body-class":`ac-split-scroll-body`},{default:(0,t.withCtx)(()=>[T.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Gu,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(T.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(s),{key:e.provider+`/`+e.modelId,variant:`ghost`,size:`sm`,role:`option`,"aria-selected":b(e),onClick:t=>I(e)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:`ac-model-brand`,title:S(e),"aria-hidden":`true`,innerHTML:C(e)},null,8,Ku),(0,t.createElementVNode)(`span`,qu,[(0,t.createElementVNode)(`span`,Ju,(0,t.toDisplayString)(e.modelId),1),(0,t.createElementVNode)(`span`,Yu,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(S(e)),1),n[10]||=(0,t.createElementVNode)(`span`,{class:`ac-dot-sep`,"aria-hidden":`true`},null,-1),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(y(e)),1)])]),(0,t.createElementVNode)(`span`,Xu,[e.isDefault?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(c),{key:0,variant:`secondary`},{default:(0,t.withCtx)(()=>[...n[11]||=[(0,t.createTextVNode)(`默认`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0)]),b(e)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Zu,[(0,t.createVNode)((0,t.unref)(O),{size:16,"stroke-width":2})])):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`aria-selected`,`onClick`]))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Qu,[(0,t.createElementVNode)(`span`,$u,[(0,t.createVNode)((0,t.unref)(ve),{size:18})]),n[12]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-title`},`没有找到模型`,-1),n[13]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-desc`},`换个模型名或平台名试试。`,-1)]))]),_:1})])],2)])],512)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ou,`没有可用模型(先去设置里配一个)`))],2))}}),[[`__scopeId`,`data-v-a0688518`]]),td={class:`ac-composer`},nd={key:0,class:`ac-notify`,role:`status`},rd={key:1,class:`ac-pending-box`},id={class:`ac-pending-list`,role:`list`,"aria-label":`目标与排队消息`},ad=[`onPointerenter`,`onPointerleave`],od={key:0,class:`ac-queue-lead-swap`,"aria-hidden":`true`},sd={class:`ac-pending-lead is-rest`},cd=[`aria-label`],ld={key:1,class:`ac-pending-lead`,"aria-hidden":`true`},ud=[`src`,`title`,`onClick`],dd=[`title`],fd=[`title`],pd=[`title`],md={key:1},hd={class:`ac-queue-actions`},gd={key:1,class:`ac-pending-lead`,"aria-hidden":`true`},_d=[`src`,`title`],vd=[`title`],yd=[`title`],bd=[`title`],xd={key:1},Sd={class:`ac-goal-round`},Cd={class:`ac-goal-ratio`,title:`已用 / 总预算(点数字可改,回车生效)`},wd={class:`ac-input-box`},Td={class:`ac-queue-pause-cnt`},Ed={key:1,class:`ac-goal-mark`},Dd={class:`ac-goal-token`},Od={key:2,class:`ac-editing-mark`,role:`status`},kd={key:3,class:`ac-attach-list`},Ad=[`src`,`aria-label`,`onClick`],jd={class:`ac-editor`},Md={key:0,class:`ac-placeholder`,"aria-hidden":`true`},Nd={class:`ac-toolbar`},Pd={key:0,class:`ac-menu-hint`},Fd={class:`ac-pill-text`},Id={class:`ac-mode-title`},Ld={class:`ac-mode-name`},Rd={class:`ac-menu-hint`},zd={key:0,class:`ac-check-mark ac-mode-check`,"aria-hidden":`true`},Bd={class:`ac-mode-desc`},Vd={key:0,class:`ac-menu-empty`},Hd={class:`ac-review-panel`,role:`listbox`,"aria-label":`选择授权方式`},Ud={class:`ac-panel-head`},Wd={class:`ac-panel-head-top ac-panel-head-top--review`},Gd={class:`ac-review-state`},Kd={class:`ac-review-body`},qd={class:`ac-review-list`,role:`radiogroup`,"aria-label":`审核模式`},Jd={class:`ac-option-title`},Yd={class:`ac-option-label`},Xd={key:0,class:`ac-check-mark ac-review-check`,"aria-hidden":`true`},Zd={class:`ac-option-desc`},Qd={class:`ac-panel-head`},$d={class:`ac-panel-head-top`},ef={class:`ac-panel-heading`},tf={class:`ac-panel-count`},nf={key:0,class:`ac-view-tabs`,role:`tablist`,"aria-label":`面板布局`},rf=[`aria-selected`],af=[`aria-selected`],of={class:`ac-panel-body`},sf={key:0,class:`ac-empty-state`},cf={class:`ac-empty-icon`},lf={key:1,class:`ac-view-stack`},uf={key:0,class:`ac-skill-grid`},df=[`title`,`onClick`,`onKeydown`],ff=[`innerHTML`],pf={class:`ac-skill-copy`},mf={class:`ac-skill-name-row`},hf={class:`ac-skill-name`},gf={class:`ac-skill-desc`},_f={class:`ac-skill-meta`},vf={key:1,class:`ac-empty-state`},yf={class:`ac-empty-icon`},bf={class:`ac-split-rail`,"aria-label":`技能分类`},xf={class:`ac-rail-icon`,"aria-hidden":`true`},Sf={class:`ac-rail-name`},Cf={class:`ac-rail-count`},wf={class:`ac-split-main`},Tf={key:0,class:`ac-skill-grid ac-skill-grid--split`},Ef=[`title`,`onClick`,`onKeydown`],Df=[`innerHTML`],Of={class:`ac-skill-tile-body`},kf={class:`ac-tile-top`},Af={class:`ac-skill-name`},jf={class:`ac-skill-desc`},Mf={class:`ac-skill-meta`},Nf={key:1,class:`ac-empty-state`},Pf={class:`ac-empty-icon`},Ff={class:`ac-panel ac-mcp-panel`,role:`listbox`,"aria-label":`选择 MCP`},If={class:`ac-panel-head`},Lf={class:`ac-panel-head-top`},Rf={class:`ac-panel-heading`},zf={class:`ac-panel-count`},Bf={class:`ac-panel-tools`},Vf={class:`ac-detect-label`},Hf={class:`ac-panel-body`},Uf={key:0,class:`ac-mcp-list`},Wf={class:`ac-mcp-card`},Gf=[`aria-pressed`,`aria-label`,`title`,`onClick`],Kf=[`title`,`aria-expanded`,`onClick`],qf={class:`ac-server-icon`,"aria-hidden":`true`},Jf=[`innerHTML`],Yf={class:`ac-server-copy`},Xf={class:`ac-server-name`},Zf={class:`ac-server-desc`},Qf={class:`ac-server-side`},$f=[`title`],ep={key:1,class:`ac-status`},tp=[`aria-expanded`,`onClick`,`onKeydown`],np={key:0,class:`ac-mcp-tools`},rp={key:0,class:`ac-mcp-tools-empty`},ip={key:1,class:`ac-tool-list`},ap=[`aria-checked`,`title`,`onClick`],op={class:`ac-tool-radio`,"aria-hidden":`true`},sp={class:`ac-tool-copy`},cp={class:`ac-tool-name`},lp={class:`ac-tool-desc`},up={key:1,class:`ac-empty-state`},dp={class:`ac-empty-icon`},fp={key:2,class:`ac-panel-note`},pp={class:`ac-panel-foot`},mp={class:`ac-selection-summary`},hp={class:`ac-selected-number`},gp={class:`ac-selected-number`},_p={key:1,class:`ac-ctxwrap`},vp=[`aria-label`,`title`],yp={width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,"aria-hidden":`true`},bp=[`stroke-dasharray`,`stroke-dashoffset`],xp={class:`flex items-center justify-between gap-3 text-sm`},Sp={class:`text-muted-foreground`},Cp={class:`text-xs text-muted-foreground`},wp={key:0,class:`ac-stop-square`,"aria-hidden":`true`},Tp=G((0,t.defineComponent)({__name:`AgentComposer`,setup(e){let n=(0,t.inject)(`agentConversation`),a=n.mcpProbing,{agent:o,s,prompt:c,editorRef:l,attached:u,queue:d,pending:f,showNotifyTip:p,enableNotify:m,notifyDismissed:h,onQueueReorder:g,hoverRowId:_,rowMenuId:v,openPreview:y,previewItem:b,userSegments:x,displayUserText:S,onSegClick:T,segTitle:D,segClickable:A,cancelEditQueue:j,steerItem:M,removeItem:N,closeItem:P,beginEditQueue:F,goalRow:I,editingGoal:L,startEditGoalRow:B,commitGoalBudget:ee,onGoalBudgetKeydown:te,onGoalBudgetBlur:U,onGoalEditFocus:ne,formatToken:ie,tokenUnit:oe,budgetTokenText:ce,goalMark:pe,goalMarkText:ge,clearGoalMark:_e,editingKind:Se,editingKindText:we,scrollToEditing:Te,toggleQueuePause:De,cancelEditing:ke,removeAttachment:je,editorResources:Me,onEditorKeydown:Ne,onPaste:Pe,composerMenuOpen:Fe,setComposerMenuOpen:Ie,plusOpen:Le,COMPOSER_MENU_ALIGN:Re,COMPOSER_MENU_SIDE:ze,COMPOSER_MENU_OFFSET:Be,addGoalMark:Ve,pickImages:He,compactNow:Ue,onFilesPicked:We,modeOpen:Ge,modeLabel:Ke,pickMode:qe,AUTH_MODES:Je,authMode:Ye,setAuthMode:Xe,promptPresets:Ze,authOpen:Qe,modelOpen:$e,modelView:et,usableModels:tt,setModelView:nt,modelQuery:rt,filteredModels:it,isModelPicked:at,pickModel:ot,brandNameOf:st,brandSvgOf:ct,modelNote:lt,currentModelLabel:ut,modelPlatformGroups:dt,modelPlatform:ft,assistantRows:pt,hasCardView:mt,viewOf:ht,previewToolMedia:gt,openTools:_t,openToolGroups:vt,toggleTool:yt,toggleToolGroup:bt,toolGroupTitle:xt,toolRowSummary:St,openThinking:Ct,toggleThinking:wt,openUserBubbles:Tt,overflowingUser:Et,toggleUserBubble:Dt,setUserBubbleBody:Ot,msgTimeText:kt,msgTimeTitle:At,copied:jt,copyMessage:Mt,beginEditMessage:Nt,segmentByAnchor:Pt,segmentModelLabel:Ft,hasInlineError:It,pagerByAnchor:zt,pagerTarget:Bt,skillQuery:Vt,skillView:Ht,setSkillView:Ut,filteredSkills:Wt,skillCategory:Gt,skillCategoryRows:Kt,skillMetaOf:qt,skillFileCount:Jt,skillSize:Yt,skillCoverStyle:Xt,mcpQuery:Zt,mcpOpen:Qt,mcpExpanded:$t,toggleMcpExpand:en,mcpPickedServers:tn,mcpPickedTools:nn,mcpToolKey:rn,toggleMcpServer:an,toggleMcpTool:on,mcpPickTotal:sn,confirmMcpPicks:cn,mcpProbeHint:ln,mcpStatusOf:un,mcpServerDesc:dn,mcpTransport:fn,mcpToolCount:pn,mcpToolsOf:mn,runMcpProbe:hn,filteredMcpResources:gn,sendMode:_n,submit:vn,showPendingOn:yn,COMPOSER_MENU_FLAGS:bn,contextPercent:xn,contextArcOffset:Sn,CONTEXT_CIRCUMFERENCE:Cn,SUGGESTIONS:wn,useSuggestion:Tn,dismissHint:En,hintDismissed:Dn,insertRef:On,brandSvg:kn,skillOpen:An,showScrollToBottom:jn,smoothScrollToBottom:Mn,SHOW_PROCESS_NOTICE:Nn}=n,Pn=(0,t.computed)(()=>{let e=u,t=e&&typeof e==`object`&&`value`in e?e.value:e;return Array.isArray(t)?t:[]}),W=(0,r.useUiComponent)(`Button`),Fn=(0,r.useUiComponent)(`Badge`),In=(0,r.useUiComponent)(`DropdownMenu`),Ln=(0,r.useUiComponent)(`DropdownMenuContent`),Rn=(0,r.useUiComponent)(`DropdownMenuTrigger`),zn=(0,r.useUiComponent)(`DropdownMenuItem`);(0,r.useUiComponent)(`DropdownMenuLabel`),(0,r.useUiComponent)(`DropdownMenuSeparator`);let Bn=(0,r.useUiComponent)(`InputGroup`),Vn=(0,r.useUiComponent)(`InputGroupAddon`),Hn=(0,r.useUiComponent)(`InputGroupButton`),Un=(0,r.useUiComponent)(`InputGroupInput`);(0,r.useUiComponent)(`Tooltip`),(0,r.useUiComponent)(`TooltipContent`),(0,r.useUiComponent)(`TooltipProvider`),(0,r.useUiComponent)(`TooltipTrigger`),(0,r.useUiComponent)(`Popover`),(0,r.useUiComponent)(`PopoverTrigger`),(0,r.useUiComponent)(`PopoverContent`);let Wn=(0,r.useUiComponent)(`Progress`),Gn=(0,r.useUiComponent)(`HoverCard`),Kn=(0,r.useUiComponent)(`HoverCardTrigger`),qn=(0,r.useUiComponent)(`HoverCardContent`);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,td,[(0,t.unref)(p)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,nd,[(0,t.createVNode)((0,t.unref)(w),{size:14,class:`ac-notify-icon`}),n[37]||=(0,t.createElementVNode)(`span`,{class:`ac-notify-text`},`开启浏览器通知,及时获取最新消息`,-1),(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`sm`,class:`ac-notify-btn`,onClick:(0,t.unref)(m)},{default:(0,t.withCtx)(()=>[...n[36]||=[(0,t.createTextVNode)(`开启`,-1)]]),_:1},8,[`onClick`]),(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-sm`,class:`ac-notify-close`,"aria-label":`不再提示`,onClick:n[0]||=e=>h.value=!0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:13})]),_:1})])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(f).hasAny?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,rd,[(0,t.createElementVNode)(`div`,id,[(0,t.createVNode)((0,t.unref)(yu),{"model-value":(0,t.unref)(d).rows,class:`ac-queue-drag`,animation:180,"ghost-class":`ac-queue-row--ghost`,"chosen-class":`ac-queue-row--chosen`,handle:`.ac-queue-lead-swap`,"onUpdate:modelValue":(0,t.unref)(g)},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(d).rows,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:(0,t.normalizeClass)([`ac-pending-row ac-queue-row`,{"is-editing":e.editing,"is-sending":e.sending,"is-hover":(0,t.unref)(_)===e.id}]),role:`listitem`,onPointerenter:t=>_.value=e.id,onPointerleave:n=>(0,t.unref)(_)===e.id&&(_.value=null)},[!e.sending&&!e.sent?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,od,[(0,t.createElementVNode)(`span`,sd,[(0,t.createVNode)((0,t.unref)(ae),{size:14})]),(0,t.createElementVNode)(`span`,{class:`ac-queue-handle`,title:`拖动调整发送顺序`,"aria-label":`拖动 `+(e.text||``).slice(0,20)},[(0,t.createVNode)((0,t.unref)(V),{size:12})],8,cd)])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,ld,[(0,t.createVNode)((0,t.unref)(ae),{size:14})])),e.thumbs.length?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:2,class:`ac-queue-thumb`,src:e.thumbs[0],alt:``,role:`button`,"aria-label":`查看排队图片`,title:`这条消息带 `+e.images.length+` 张图`,onClick:n=>(0,t.unref)(y)(e.thumbs[0],e.images)},null,8,ud)):(0,t.createCommentVNode)(``,!0),e.images.length>1?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:3,class:`ac-queue-thumb-more`,role:`status`,title:`共 `+e.images.length+` 张图`},`+`+(0,t.toDisplayString)(e.images.length-1),9,dd)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,{class:`ac-queue-text`,title:(0,t.unref)(S)(e.text)},[e.text?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)((0,t.unref)(x)((0,t.unref)(S)(e.text)),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n},[e.type===`tag`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`ac-sent-tag is-compact`,title:(0,t.unref)(D)(e)},(0,t.toDisplayString)(e.name),9,pd)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,md,(0,t.toDisplayString)(e.value),1))],64))),128)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)(`(图片)`)],64))],8,fd),e.editing?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Fn),{key:4,variant:`secondary`,class:`ac-queue-flag`,role:`status`},{default:(0,t.withCtx)(()=>[...n[38]||=[(0,t.createTextVNode)(`编辑中`,-1)]]),_:1})):e.goal?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Fn),{key:5,variant:`outline`,class:`ac-queue-flag is-goal`,title:`目标:`+(0,t.unref)(ge)(e.goal.objective,e.goal.budget)},{default:(0,t.withCtx)(()=>[...n[39]||=[(0,t.createTextVNode)(`目标`,-1)]]),_:1},8,[`title`])):(0,t.createCommentVNode)(``,!0),e.sending?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Fn),{key:6,variant:`secondary`,class:`ac-queue-flag is-sending`},{default:(0,t.withCtx)(()=>[...n[40]||=[(0,t.createTextVNode)(`发送中`,-1)]]),_:1})):e.sent?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Fn),{key:7,variant:`secondary`,class:`ac-queue-flag is-sent`},{default:(0,t.withCtx)(()=>[...n[41]||=[(0,t.createTextVNode)(`已发送`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,hd,[e.editing?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(W),{key:0,variant:`ghost`,size:`icon-sm`,class:`ac-queue-btn`,"aria-label":`取消编辑这条排队消息`,title:`取消编辑`,onClick:n=>(0,t.unref)(j)(e.id)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1},8,[`onClick`])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(W),{key:1,variant:`ghost`,size:`icon-sm`,class:`ac-queue-btn`,"aria-label":`引导(插队发送)`,title:`引导:插到当前这一轮的下一次请求`,onClick:n=>(0,t.unref)(M)(e.id)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(R),{size:12})]),_:1},8,[`onClick`])),(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-sm`,class:`ac-queue-btn is-danger`,"aria-label":`删除这条排队消息`,title:`删除`,onClick:n=>(0,t.unref)(N)(e.id)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ce),{size:12})]),_:1},8,[`onClick`]),(0,t.createVNode)((0,t.unref)(In),{open:(0,t.unref)(v)===e.id,"onUpdate:open":t=>v.value=t?e.id:null},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Rn),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-xs`,class:`ac-queue-btn`,"aria-expanded":(0,t.unref)(v)===e.id,"aria-label":`更多操作`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(z),{size:12})]),_:1},8,[`aria-expanded`])]),_:2},1024),(0,t.createVNode)((0,t.unref)(Ln),{arrow:``,align:`end`,side:`top`,"side-offset":8,class:`ac-ddmenu`,style:{minWidth:`180px`}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(zn),{onSelect:n=>{(0,t.unref)(F)(e.id),v.value=null}},{default:(0,t.withCtx)(()=>[...n[42]||=[(0,t.createTextVNode)(` 编辑消息 `,-1),(0,t.createElementVNode)(`span`,{class:`ac-menu-hint`},`改完发送,位置不变`,-1)]]),_:1},8,[`onSelect`]),(0,t.createVNode)((0,t.unref)(zn),{onSelect:n=>{(0,t.unref)(P)(e.id),v.value=null}},{default:(0,t.withCtx)(()=>[...n[43]||=[(0,t.createTextVNode)(` 关闭排队 `,-1),(0,t.createElementVNode)(`span`,{class:`ac-menu-hint`},`内容回到输入框,不再自动发`,-1)]]),_:1},8,[`onSelect`])]),_:2},1024)]),_:2},1032,[`open`,`onUpdate:open`])])],42,ad))),128))]),_:1},8,[`model-value`,`onUpdate:modelValue`]),(0,t.unref)(I)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([`ac-pending-row ac-goal-row`,{"is-editing":(0,t.unref)(L)}]),role:`listitem`},[(0,t.unref)(I).finished?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,gd,[(0,t.createVNode)((0,t.unref)(xe),{size:14})])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(W),{key:0,variant:`ghost`,size:`icon-sm`,class:(0,t.normalizeClass)([`ac-pending-lead ac-goal-lead`,{"is-editing":(0,t.unref)(L)}]),type:`button`,"aria-label":(0,t.unref)(L)?`正在编辑目标`:`编辑目标`,title:(0,t.unref)(L)?`正在编辑目标`:`编辑目标`,onClick:n[1]||=e=>(0,t.unref)(B)()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(xe),{size:14,class:`ac-goal-lead-target`}),(0,t.createVNode)((0,t.unref)(ue),{size:14,class:`ac-goal-lead-edit`})]),_:1},8,[`aria-label`,`title`,`class`])),(0,t.unref)(s).goalImages?.length?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.createElementVNode)(`img`,{class:`ac-queue-thumb`,src:(0,t.unref)(s).goalImages[0],alt:``,role:`button`,"aria-label":`查看目标图片`,title:`这个目标带 `+(0,t.unref)(s).goalImages.length+` 张图`,onClick:n[2]||=e=>(0,t.unref)(y)((0,t.unref)(s).goalImages[0],(0,t.unref)(s).goalImages)},null,8,_d),(0,t.unref)(s).goalImages.length>1?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`ac-queue-thumb-more`,role:`status`,title:`共 `+(0,t.unref)(s).goalImages.length+` 张图`},`+`+(0,t.toDisplayString)((0,t.unref)(s).goalImages.length-1),9,vd)):(0,t.createCommentVNode)(``,!0)],64)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,{class:`ac-goal-row-text`,title:(0,t.unref)(s).goal?.objective},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(x)((0,t.unref)(s).goal?.objective??``),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n},[e.type===`tag`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`ac-sent-tag is-compact`,title:(0,t.unref)(D)(e)},(0,t.toDisplayString)(e.name),9,bd)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,xd,(0,t.toDisplayString)(e.value),1))],64))),128))],8,yd),(0,t.createVNode)((0,t.unref)(Fn),{variant:`outline`,class:(0,t.normalizeClass)([`ac-goal-flag`,(0,t.unref)(I).badge.cls]),role:`status`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(I).badge.text),1)]),_:1},8,[`class`]),(0,t.unref)(L)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Fn),{key:3,variant:`secondary`,class:`ac-editing-badge is-compact`,role:`status`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ue),{size:11}),n[44]||=(0,t.createElementVNode)(`span`,null,`正在编辑`,-1)]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,Sd,`第 `+(0,t.toDisplayString)((0,t.unref)(I).round)+` 轮`,1),(0,t.createElementVNode)(`span`,Cd,[(0,t.createElementVNode)(`span`,{class:`ac-goal-token-val`,contenteditable:`true`,spellcheck:`false`,role:`textbox`,"aria-label":`已用 token,点击编辑(回车生效)`,onFocus:n[3]||=e=>(0,t.unref)(ne)(e),onKeydown:n[4]||=e=>(0,t.unref)(te)(e,e.target,`used`),onBlur:n[5]||=e=>(0,t.unref)(U)(e)},(0,t.toDisplayString)((0,t.unref)(ie)((0,t.unref)(s).goal?.tokensUsed,(0,t.unref)(oe))),33),n[45]||=(0,t.createElementVNode)(`span`,{class:`ac-goal-ratio-sep`},`/`,-1),(0,t.createElementVNode)(`span`,{class:`ac-goal-token-val`,contenteditable:`true`,spellcheck:`false`,role:`textbox`,"aria-label":`总预算,点击编辑(回车生效)`,onFocus:n[6]||=e=>(0,t.unref)(ne)(e),onKeydown:n[7]||=e=>(0,t.unref)(te)(e,e.target,`row`),onBlur:n[8]||=e=>(0,t.unref)(U)(e)},(0,t.toDisplayString)((0,t.unref)(ce)((0,t.unref)(s).goal?.budget,(0,t.unref)(oe))),33)]),(0,t.unref)(I).finished?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(W),{key:4,variant:`ghost`,size:`icon-xs`,class:`ac-goal-btn`,"aria-label":(0,t.unref)(s).goalPaused?`启动目标`:`暂停目标`,title:(0,t.unref)(s).goalPaused?`启动目标`:`暂停目标`,onClick:n[9]||=e=>(0,t.unref)(s).goalPaused?(0,t.unref)(o).resumeGoal():(0,t.unref)(o).pauseGoal()},{default:(0,t.withCtx)(()=>[(0,t.unref)(s).goalPaused?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(de),{key:0,size:12})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(le),{key:1,size:12}))]),_:1},8,[`aria-label`,`title`])),(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-xs`,class:`ac-goal-btn`,"aria-label":`结束目标`,title:`结束目标(不会自动再跑)`,onClick:n[10]||=e=>(0,t.unref)(o).endGoal()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1})],2)):(0,t.createCommentVNode)(``,!0)])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,wd,[(0,t.unref)(d).pauseVisible?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(W),{key:0,variant:`ghost`,size:`xs`,class:(0,t.normalizeClass)([`ac-queue-pause`,{"is-paused":(0,t.unref)(d).paused}]),"aria-label":(0,t.unref)(d).paused?`恢复队列`:`暂停队列自动发送`,title:(0,t.unref)(d).pauseTitle,onClick:n[11]||=e=>(0,t.unref)(De)()},{default:(0,t.withCtx)(()=>[(0,t.unref)(d).paused?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(de),{key:0,size:12})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(le),{key:1,size:12})),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(d).paused?`队列恢复`:`队列暂停`),1),(0,t.createElementVNode)(`span`,Td,(0,t.toDisplayString)((0,t.unref)(d).pendingCount),1)]),_:1},8,[`class`,`aria-label`,`title`])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(pe)&&!(0,t.unref)(L)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ed,[(0,t.createVNode)((0,t.unref)(xe),{size:13,class:`ac-goal-icon`}),n[47]||=(0,t.createElementVNode)(`span`,{class:`ac-goal-mark-label`},`目标`,-1),(0,t.createElementVNode)(`span`,Dd,[n[46]||=(0,t.createElementVNode)(`span`,{class:`ac-goal-token-prefix`},`预算`,-1),(0,t.createElementVNode)(`span`,{class:`ac-goal-token-val`,contenteditable:`true`,spellcheck:`false`,role:`textbox`,"aria-label":`总预算,点击编辑`,onFocus:n[12]||=e=>(0,t.unref)(ne)(e),onKeydown:n[13]||=e=>(0,t.unref)(te)(e,e.target,`mark`),onBlur:n[14]||=e=>(0,t.unref)(U)(e)},(0,t.toDisplayString)((0,t.unref)(ce)((0,t.unref)(pe)?.budget,(0,t.unref)(oe))),33)]),n[48]||=(0,t.createElementVNode)(`span`,{class:`ac-tb-spacer`},null,-1),(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-xs`,class:`ac-goal-btn`,"aria-label":`取消目标(这条按普通消息发)`,title:`取消目标`,onClick:n[15]||=e=>(0,t.unref)(_e)()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1})])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(Se)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Od,[(0,t.createVNode)((0,t.unref)(ue),{size:12}),(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`xs`,class:`ac-editing-mark-btn`,"aria-label":(0,t.unref)(we),onClick:(0,t.unref)(Te)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(we)),1)]),_:1},8,[`aria-label`,`onClick`]),n[49]||=(0,t.createElementVNode)(`span`,{class:`ac-editing-mark-spacer`},null,-1),(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-xs`,class:`ac-editing-x`,"aria-label":`取消编辑`,onClick:(0,t.unref)(ke)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1},8,[`onClick`])])):(0,t.createCommentVNode)(``,!0),Pn.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,kd,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Pn.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n,class:`ac-attach`},[(0,t.createElementVNode)(`img`,{src:e,alt:``,role:`button`,"aria-label":`查看图片 `+(n+1),style:{cursor:`zoom-in`},onClick:n=>(0,t.unref)(y)(e,Pn.value)},null,8,Ad),(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-sm`,class:`ac-attach-del`,"aria-label":`移除图片 `+(n+1),onClick:e=>(0,t.unref)(je)(n)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1},8,[`aria-label`,`onClick`])]))),128))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,jd,[(0,t.unref)(c)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Md,`开始你的创作,或者 @ 引用技能 / MCP`)),(0,t.unref)(s).needsModel?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i.ProseMirrorEditor),{key:1,ref_key:`editorRef`,ref:l,modelValue:(0,t.unref)(c),"onUpdate:modelValue":n[16]||=e=>(0,t.isRef)(c)?c.value=e:null,resources:(0,t.unref)(Me),onKeydownCapture:(0,t.unref)(Ne),onPaste:(0,t.unref)(Pe)},null,8,[`modelValue`,`resources`,`onKeydownCapture`,`onPaste`]))]),(0,t.createElementVNode)(`div`,Nd,[(0,t.createVNode)((0,t.unref)(In),{open:(0,t.unref)(Fe)(`plus`),"onUpdate:open":n[20]||=e=>(0,t.unref)(Ie)(`plus`,e)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Rn),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-sm`,"aria-expanded":(0,t.unref)(Le),"aria-label":`更多添加`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(me),{size:16,class:`size-4`})]),_:1},8,[`aria-expanded`])]),_:1}),(0,t.createVNode)((0,t.unref)(Ln),{arrow:``,align:(0,t.unref)(Re),side:(0,t.unref)(ze),"side-offset":(0,t.unref)(Be),style:{minWidth:`180px`}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(zn),{title:`给这条消息挂一个目标(可改预算)`,onSelect:n[17]||=e=>{(0,t.unref)(Ve)(),Le.value=!1}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(xe)),n[50]||=(0,t.createElementVNode)(`span`,null,`目标`,-1)]),_:1}),(0,t.createVNode)((0,t.unref)(zn),{title:`选图片,跟这条消息一起发`,onSelect:n[18]||=e=>{(0,t.unref)(He)(),Le.value=!1}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ee)),n[51]||=(0,t.createElementVNode)(`span`,null,`上传文件`,-1)]),_:1}),(0,t.createVNode)((0,t.unref)(zn),{disabled:(0,t.unref)(s).compacting,title:(0,t.unref)(s).compacting?`正在压缩…`:`把历史总结成摘要,腾出上下文空间`,onSelect:n[19]||=e=>{(0,t.unref)(Ue)(),Le.value=!1}},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(se)),n[52]||=(0,t.createElementVNode)(`span`,null,`压缩`,-1),(0,t.unref)(s).compacting?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Pd,`正在压缩…`)):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`disabled`,`title`])]),_:1},8,[`align`,`side`,`side-offset`])]),_:1},8,[`open`]),(0,t.createElementVNode)(`input`,{ref:`fileInput`,class:`ac-file`,type:`file`,accept:`image/*`,multiple:``,"aria-hidden":`true`,tabindex:`-1`,onChange:n[21]||=(...e)=>(0,t.unref)(We)&&(0,t.unref)(We)(...e)},null,544),(0,t.createVNode)((0,t.unref)(In),{open:(0,t.unref)(Fe)(`mode`),"onUpdate:open":n[22]||=e=>(0,t.unref)(Ie)(`mode`,e)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Rn),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`sm`,"aria-expanded":(0,t.unref)(Ge),"aria-label":`选择创作模式`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Fd,(0,t.toDisplayString)((0,t.unref)(Ke)),1),(0,t.createVNode)((0,t.unref)(k),{size:13,class:`ac-pill-caret`})]),_:1},8,[`aria-expanded`])]),_:1}),(0,t.createVNode)((0,t.unref)(Ln),{arrow:``,align:(0,t.unref)(Re),side:(0,t.unref)(ze),"side-offset":(0,t.unref)(Be),style:{minWidth:`240px`}},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(Ze),e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(zn),{key:e.id,class:`ac-mode-item`,"aria-checked":(0,t.unref)(s).activePromptId===e.id,onSelect:n=>(0,t.unref)(qe)(e.id,()=>Ge.value=!1)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Id,[(0,t.createElementVNode)(`span`,Ld,(0,t.toDisplayString)(e.name),1),(0,t.createElementVNode)(`span`,Rd,(0,t.toDisplayString)(e.builtin?`内置提示词`:`自建提示词`),1),(0,t.unref)(s).activePromptId===e.id?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,zd,[(0,t.createVNode)((0,t.unref)(O),{size:16,"stroke-width":2})])):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`span`,Bd,(0,t.toDisplayString)(e.description||(e.builtin?`内置提示词`:`自建提示词`)),1)]),_:2},1032,[`aria-checked`,`onSelect`]))),128)),(0,t.unref)(Ze).length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Vd,`还没有提示词,去「设置 → Agent → 提示词」加一个`))]),_:1},8,[`align`,`side`,`side-offset`])]),_:1},8,[`open`]),(0,t.createVNode)((0,t.unref)(In),{open:(0,t.unref)(Fe)(`auth`),"onUpdate:open":n[23]||=e=>(0,t.unref)(Ie)(`auth`,e)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Rn),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-sm`,"aria-expanded":(0,t.unref)(Qe),"aria-label":`授权方式:`+((0,t.unref)(Ye)===`ask`?`接受审核`:`完全自动授权`),class:(0,t.normalizeClass)({"is-auto-auth":(0,t.unref)(Ye)===`auto`})},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(Ye)===`ask`?(0,t.unref)(H):(0,t.unref)(ye)),{size:16,class:`size-4`}))]),_:1},8,[`aria-expanded`,`aria-label`,`class`])]),_:1}),(0,t.createVNode)((0,t.unref)(Ln),{arrow:``,align:(0,t.unref)(Re),side:(0,t.unref)(ze),"side-offset":(0,t.unref)(Be),style:{width:`360px`}},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Hd,[(0,t.createElementVNode)(`div`,Ud,[(0,t.createElementVNode)(`div`,Wd,[n[53]||=(0,t.createElementVNode)(`div`,{class:`ac-panel-heading`},[(0,t.createElementVNode)(`span`,{class:`ac-panel-title`},`审核模式`),(0,t.createElementVNode)(`span`,{class:`ac-panel-count`},`2`)],-1),(0,t.createElementVNode)(`span`,Gd,(0,t.toDisplayString)((0,t.unref)(Ye)===`ask`?`需要确认`:`全部放行`),1)]),n[54]||=(0,t.createElementVNode)(`p`,{class:`ac-panel-lede`},`决定工具调用要不要先停下来问你。`,-1)]),(0,t.createElementVNode)(`div`,Kd,[(0,t.createElementVNode)(`div`,qd,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(Je),e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(zn),{key:e.value,class:`ac-review-item`,role:`radio`,"aria-checked":(0,t.unref)(Ye)===e.value,onSelect:n=>{(0,t.unref)(Xe)(e.value),Qe.value=!1}},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Jd,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icon),{size:14,class:`ac-option-icon`,"aria-hidden":`true`})),(0,t.createElementVNode)(`span`,Yd,(0,t.toDisplayString)(e.label),1),(0,t.createVNode)((0,t.unref)(Fn),{variant:e.value===`auto`?`destructive`:`secondary`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value===`auto`?`谨慎`:`推荐`),1)]),_:2},1032,[`variant`]),(0,t.unref)(Ye)===e.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Xd,[(0,t.createVNode)((0,t.unref)(O),{size:16,"stroke-width":2})])):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`span`,Zd,(0,t.toDisplayString)(e.hint),1)]),_:2},1032,[`aria-checked`,`onSelect`]))),128))])])])]),_:1},8,[`align`,`side`,`side-offset`])]),_:1},8,[`open`]),(0,t.createVNode)((0,t.unref)(In),{open:(0,t.unref)(Fe)(`model`),"onUpdate:open":n[25]||=e=>(0,t.unref)(Ie)(`model`,e)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Rn),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-sm`,"aria-expanded":(0,t.unref)($e),"aria-label":`选择模型`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(E),{size:16,class:`size-4`})]),_:1},8,[`aria-expanded`])]),_:1}),(0,t.createVNode)((0,t.unref)(Ln),{arrow:``,align:(0,t.unref)(Re),side:(0,t.unref)(ze),"side-offset":(0,t.unref)(Be),style:(0,t.normalizeStyle)({width:(0,t.unref)(et)===`split`?`588px`:`340px`,maxWidth:`calc(100vw - 24px)`,maxHeight:`min(520px, calc(100dvh - 120px))`})},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ed,{models:(0,t.unref)(s).models,current:(0,t.unref)(s).model,view:(0,t.unref)(et),"onUpdate:view":(0,t.unref)(nt),onPick:n[24]||=e=>(0,t.unref)(ot)(e,()=>$e.value=!1)},null,8,[`models`,`current`,`view`,`onUpdate:view`])]),_:1},8,[`align`,`side`,`side-offset`,`style`])]),_:1},8,[`open`]),(0,t.createVNode)((0,t.unref)(In),{open:(0,t.unref)(Fe)(`skill`),"onUpdate:open":n[30]||=e=>(0,t.unref)(Ie)(`skill`,e)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Rn),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-sm`,"aria-expanded":(0,t.unref)(An),"aria-label":`选择技能`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Oe),{size:16,class:`size-4`})]),_:1},8,[`aria-expanded`])]),_:1}),(0,t.createVNode)((0,t.unref)(Ln),{arrow:``,align:(0,t.unref)(Re),side:(0,t.unref)(ze),"side-offset":(0,t.unref)(Be),style:(0,t.normalizeStyle)({width:(0,t.unref)(Ht)===`split`&&(0,t.unref)(s).skills.length?`588px`:`340px`,maxWidth:`calc(100vw - 24px)`,maxHeight:`min(520px, calc(100dvh - 120px))`})},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`ac-panel ac-skill-panel`,{"is-split":(0,t.unref)(Ht)===`split`&&!!(0,t.unref)(s).skills.length}]),role:`listbox`,"aria-label":`选择技能`},[(0,t.createElementVNode)(`div`,Qd,[(0,t.createElementVNode)(`div`,$d,[(0,t.createElementVNode)(`div`,ef,[n[55]||=(0,t.createElementVNode)(`span`,{class:`ac-panel-title`},`技能`,-1),(0,t.createElementVNode)(`span`,tf,(0,t.toDisplayString)((0,t.unref)(s).skills.length),1)]),(0,t.unref)(s).skills.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,nf,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`ac-view-tab`,{"is-active":(0,t.unref)(Ht)===`card`}]),"aria-selected":(0,t.unref)(Ht)===`card`,role:`tab`,onClick:n[26]||=e=>(0,t.unref)(Ut)(`card`)},`卡片`,10,rf),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`ac-view-tab`,{"is-active":(0,t.unref)(Ht)===`split`}]),"aria-selected":(0,t.unref)(Ht)===`split`,role:`tab`,onClick:n[27]||=e=>(0,t.unref)(Ut)(`split`)},`分栏`,10,af)])):(0,t.createCommentVNode)(``,!0)]),(0,t.createVNode)((0,t.unref)(Bn),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Vn),{align:`inline-start`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ve),{size:14,"aria-hidden":`true`})]),_:1}),(0,t.createVNode)((0,t.unref)(Un),{modelValue:(0,t.unref)(Vt),"onUpdate:modelValue":n[28]||=e=>(0,t.isRef)(Vt)?Vt.value=e:null,type:`text`,name:`ac-skill-search`,"data-ac-search":`skill`,placeholder:`搜索技能`,"aria-label":`搜索技能`,autocomplete:`off`,spellcheck:`false`},null,8,[`modelValue`]),(0,t.unref)(Vt)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Vn),{key:0,align:`inline-end`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Hn),{size:`icon-xs`,"aria-label":`清空搜索`,onClick:n[29]||=e=>Vt.value=``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1})]),(0,t.createElementVNode)(`div`,of,[(0,t.unref)(s).skills.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,lf,[(0,t.createVNode)(Wi,{class:(0,t.normalizeClass)([`ac-panel-scroll ac-view-pane`,{"is-active":(0,t.unref)(Ht)===`card`}]),"body-class":`ac-panel-scroll-body`},{default:(0,t.withCtx)(()=>[(0,t.unref)(Wt).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,uf,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(Wt),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:`ac-skill-card`,role:`option`,tabindex:`0`,"aria-pressed":!1,title:e.value,onClick:n=>(0,t.unref)(On)(e,()=>An.value=!1),onKeydown:[(0,t.withKeys)((0,t.withModifiers)(n=>(0,t.unref)(On)(e,()=>An.value=!1),[`prevent`]),[`enter`]),(0,t.withKeys)((0,t.withModifiers)(n=>(0,t.unref)(On)(e,()=>An.value=!1),[`prevent`]),[`space`])]},[(0,t.createElementVNode)(`span`,{class:`ac-skill-thumb`,style:(0,t.normalizeStyle)((0,t.unref)(Xt)(e.name)),"aria-hidden":`true`},[(0,t.createElementVNode)(`span`,{class:`ac-skill-icon`,innerHTML:(0,t.unref)(Lt)},null,8,ff)],4),(0,t.createElementVNode)(`span`,pf,[(0,t.createElementVNode)(`span`,mf,[(0,t.createElementVNode)(`span`,hf,(0,t.toDisplayString)(e.name),1),(0,t.unref)(qt)(e.name).featured?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Fn),{key:0,variant:`secondary`},{default:(0,t.withCtx)(()=>[...n[58]||=[(0,t.createTextVNode)(`精选`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`span`,gf,(0,t.toDisplayString)(e.value),1),(0,t.createElementVNode)(`span`,_f,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(qt)(e.name).category),1),n[59]||=(0,t.createElementVNode)(`span`,{class:`ac-dot-sep`,"aria-hidden":`true`},null,-1),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(Jt)(e.name))+` 文件`,1)])])],40,df))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,vf,[(0,t.createElementVNode)(`span`,yf,[(0,t.createVNode)((0,t.unref)(ve),{size:18})]),n[60]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-title`},`没有找到技能`,-1),n[61]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-desc`},`换个关键词,或清空搜索再试。`,-1)]))]),_:1},8,[`class`]),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`ac-view-pane ac-split`,{"is-active":(0,t.unref)(Ht)===`split`}])},[(0,t.createElementVNode)(`aside`,bf,[n[62]||=(0,t.createElementVNode)(`div`,{class:`ac-rail-label`},`分类`,-1),(0,t.createVNode)(Wi,{class:`ac-rail-scroll`,"body-class":`ac-rail-scroll-body`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(Kt),e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(W),{key:e.name,variant:`ghost`,size:`sm`,"aria-pressed":(0,t.unref)(Gt)===e.name,onClick:t=>Gt.value=e.name},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,xf,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.name===`全部`?(0,t.unref)(re):e.name===`精选`?(0,t.unref)(be):(0,t.unref)(E)),{size:14}))]),(0,t.createElementVNode)(`span`,Sf,(0,t.toDisplayString)(e.name),1),(0,t.createElementVNode)(`span`,Cf,(0,t.toDisplayString)(e.count),1)]),_:2},1032,[`aria-pressed`,`onClick`]))),128))]),_:1})]),(0,t.createElementVNode)(`div`,wf,[(0,t.createVNode)(Wi,{class:`ac-split-scroll`,"body-class":`ac-split-scroll-body`},{default:(0,t.withCtx)(()=>[(0,t.unref)(Wt).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Tf,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(Wt),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:`ac-skill-tile`,role:`option`,tabindex:`0`,"aria-pressed":!1,title:e.value,onClick:n=>(0,t.unref)(On)(e,()=>An.value=!1),onKeydown:[(0,t.withKeys)((0,t.withModifiers)(n=>(0,t.unref)(On)(e,()=>An.value=!1),[`prevent`]),[`enter`]),(0,t.withKeys)((0,t.withModifiers)(n=>(0,t.unref)(On)(e,()=>An.value=!1),[`prevent`]),[`space`])]},[(0,t.createElementVNode)(`span`,{class:`ac-skill-cover`,style:(0,t.normalizeStyle)((0,t.unref)(Xt)(e.name)),"aria-hidden":`true`},[(0,t.createElementVNode)(`span`,{class:`ac-skill-icon`,innerHTML:(0,t.unref)(Lt)},null,8,Df)],4),(0,t.createElementVNode)(`span`,Of,[(0,t.createElementVNode)(`span`,kf,[(0,t.createElementVNode)(`span`,Af,(0,t.toDisplayString)(e.name),1)]),(0,t.createElementVNode)(`span`,jf,(0,t.toDisplayString)(e.value),1),(0,t.createElementVNode)(`span`,Mf,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(qt)(e.name).category),1),n[63]||=(0,t.createElementVNode)(`span`,{class:`ac-dot-sep`,"aria-hidden":`true`},null,-1),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(Jt)(e.name))+` 文件`,1),n[64]||=(0,t.createElementVNode)(`span`,{class:`ac-dot-sep`,"aria-hidden":`true`},null,-1),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(Yt)(e.name)),1)])])],40,Ef))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Nf,[(0,t.createElementVNode)(`span`,Pf,[(0,t.createVNode)((0,t.unref)(ve),{size:18})]),n[65]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-title`},`没有找到技能`,-1),n[66]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-desc`},`换个关键词,或清空搜索再试。`,-1)]))]),_:1})])],2)])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,sf,[(0,t.createElementVNode)(`span`,cf,[(0,t.createVNode)((0,t.unref)(Oe),{size:18})]),n[56]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-title`},`还没有安装技能`,-1),n[57]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-desc`},`到「设置 → Agent → 技能」里导入,导入后即可在这里 @ 引用。`,-1)]))])],2)]),_:1},8,[`align`,`side`,`side-offset`,`style`])]),_:1},8,[`open`]),(0,t.unref)(s).mcpServers.length?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(In),{key:0,open:(0,t.unref)(Fe)(`mcp`),"onUpdate:open":n[34]||=e=>(0,t.unref)(Ie)(`mcp`,e)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Rn),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(W),{variant:`ghost`,size:`icon-sm`,"aria-expanded":(0,t.unref)(Qt),"aria-label":`选择 MCP`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(fe),{size:16,class:`size-4`})]),_:1},8,[`aria-expanded`])]),_:1}),(0,t.createVNode)((0,t.unref)(Ln),{arrow:``,align:(0,t.unref)(Re),side:(0,t.unref)(ze),"side-offset":(0,t.unref)(Be),style:{width:`400px`,maxWidth:`calc(100vw - 24px)`,maxHeight:`min(520px, calc(100dvh - 120px))`}},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Ff,[(0,t.createElementVNode)(`div`,If,[(0,t.createElementVNode)(`div`,Lf,[(0,t.createElementVNode)(`div`,Rf,[n[67]||=(0,t.createElementVNode)(`span`,{class:`ac-panel-title`},`MCP`,-1),(0,t.createElementVNode)(`span`,zf,(0,t.toDisplayString)((0,t.unref)(s).mcpServers.length),1)]),(0,t.createElementVNode)(`div`,Bf,[(0,t.createVNode)((0,t.unref)(W),{variant:`outline`,size:`sm`,disabled:(0,t.unref)(a),"aria-label":(0,t.unref)(a)?`正在检测 MCP`:`检测全部 MCP 服务`,title:(0,t.unref)(a)?`正在检测`:`检测全部 MCP 服务`,onClick:(0,t.withModifiers)((0,t.unref)(hn),[`stop`])},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(he),{size:14,class:(0,t.normalizeClass)({"ac-spin":(0,t.unref)(a)})},null,8,[`class`]),(0,t.createElementVNode)(`span`,Vf,(0,t.toDisplayString)((0,t.unref)(a)?`检测中`:`重新检测`),1)]),_:1},8,[`disabled`,`aria-label`,`title`,`onClick`])])]),(0,t.createVNode)((0,t.unref)(Bn),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Vn),{align:`inline-start`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ve),{size:14,"aria-hidden":`true`})]),_:1}),(0,t.createVNode)((0,t.unref)(Un),{modelValue:(0,t.unref)(Zt),"onUpdate:modelValue":n[31]||=e=>(0,t.isRef)(Zt)?Zt.value=e:null,type:`text`,name:`ac-mcp-search`,"data-ac-search":`mcp`,placeholder:`搜索服务或工具`,"aria-label":`搜索服务或工具`,autocomplete:`off`,spellcheck:`false`},null,8,[`modelValue`]),(0,t.unref)(Zt)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Vn),{key:0,align:`inline-end`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Hn),{size:`icon-xs`,"aria-label":`清空搜索`,onClick:n[32]||=e=>Zt.value=``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae),{size:12})]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1})]),(0,t.createElementVNode)(`div`,Hf,[(0,t.createVNode)(Wi,{class:`ac-panel-scroll`,"body-class":`ac-panel-scroll-body ac-mcp-scroll-body`},{default:(0,t.withCtx)(()=>[(0,t.unref)(gn).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Uf,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(gn),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:(0,t.normalizeClass)([`ac-mcp-item`,{"is-picked":(0,t.unref)(tn).has(e.name),"is-open":(0,t.unref)($t).has(e.name)||!!e.toolHits}])},[(0,t.createElementVNode)(`div`,Wf,[(0,t.createElementVNode)(`button`,{type:`button`,class:`ac-pick-box`,"aria-pressed":(0,t.unref)(tn).has(e.name),"aria-label":`引用整个 `+e.name+` 服务`,title:`引用整个 `+e.name+` 服务`,onClick:(0,t.withModifiers)(n=>(0,t.unref)(an)(e.name),[`stop`])},[(0,t.createVNode)((0,t.unref)(O),{size:12})],8,Gf),(0,t.createElementVNode)(`button`,{type:`button`,class:`ac-mcp-main`,title:e.value,"aria-expanded":(0,t.unref)($t).has(e.name)||!!e.toolHits,onClick:n=>(0,t.unref)(en)(e.name)},[(0,t.createElementVNode)(`span`,qf,[(0,t.createElementVNode)(`span`,{innerHTML:(0,t.unref)(Rt)},null,8,Jf)]),(0,t.createElementVNode)(`span`,Yf,[(0,t.createElementVNode)(`span`,Xf,(0,t.toDisplayString)(e.name),1),(0,t.createElementVNode)(`span`,Zf,(0,t.toDisplayString)((0,t.unref)(dn)(e)),1)])],8,Kf),(0,t.createElementVNode)(`span`,Qf,[(0,t.unref)(un)(e.name)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:(0,t.normalizeClass)([`ac-status`,(0,t.unref)(un)(e.name).ok?`is-ok`:`is-bad`]),title:(0,t.unref)(un)(e.name).text},(0,t.toDisplayString)((0,t.unref)(pn)(e.name))+` 工具`,11,$f)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,ep,(0,t.toDisplayString)((0,t.unref)(fn)(e)),1)),(0,t.unref)(mn)(e.name).length?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:2,class:`ac-expand-btn`,role:`button`,tabindex:`0`,"aria-expanded":(0,t.unref)($t).has(e.name)||!!e.toolHits,"aria-label":`展开工具`,title:`展开工具`,onClick:(0,t.withModifiers)(n=>(0,t.unref)(en)(e.name),[`stop`]),onKeydown:(0,t.withKeys)((0,t.withModifiers)(n=>(0,t.unref)(en)(e.name),[`stop`,`prevent`]),[`enter`])},[(0,t.createVNode)((0,t.unref)(k),{size:14,class:(0,t.normalizeClass)({"is-open":(0,t.unref)($t).has(e.name)||!!e.toolHits})},null,8,[`class`])],40,tp)):(0,t.createCommentVNode)(``,!0)])]),(0,t.unref)($t).has(e.name)||e.toolHits?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,np,[(e.toolHits||(0,t.unref)(mn)(e.name)).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ip,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.toolHits||(0,t.unref)(mn)(e.name),n=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:n.fullName,type:`button`,class:(0,t.normalizeClass)([`ac-tool-row`,{"is-picked":(0,t.unref)(nn).has((0,t.unref)(rn)(e.name,n.name))}]),role:`checkbox`,"aria-checked":(0,t.unref)(nn).has((0,t.unref)(rn)(e.name,n.name)),title:n.fullName,onClick:(0,t.withModifiers)(r=>(0,t.unref)(on)(e.name,n.name),[`stop`])},[(0,t.createElementVNode)(`span`,op,[(0,t.createVNode)((0,t.unref)(O),{size:10})]),(0,t.createElementVNode)(`span`,sp,[(0,t.createElementVNode)(`span`,cp,(0,t.toDisplayString)(n.name),1),(0,t.createElementVNode)(`span`,lp,(0,t.toDisplayString)(n.description),1)])],10,ap))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,rp,` 还没有检测到工具,点「重新检测」再试。 `))])):(0,t.createCommentVNode)(``,!0)],2))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,up,[(0,t.createElementVNode)(`span`,dp,[(0,t.createVNode)((0,t.unref)(ve),{size:18})]),n[68]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-title`},`没有找到服务或工具`,-1),n[69]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-desc`},`换个关键词,或清空搜索再试。`,-1)])),(0,t.unref)(ln)?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,fp,(0,t.toDisplayString)((0,t.unref)(ln)),1)):(0,t.createCommentVNode)(``,!0)]),_:1})]),(0,t.createElementVNode)(`div`,pp,[(0,t.createElementVNode)(`span`,mp,[(0,t.unref)(sn)?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[n[70]||=(0,t.createTextVNode)(` 已选 `,-1),(0,t.createElementVNode)(`b`,hp,(0,t.toDisplayString)((0,t.unref)(tn).size),1),n[71]||=(0,t.createTextVNode)(` 个服务 · `,-1),(0,t.createElementVNode)(`b`,gp,(0,t.toDisplayString)((0,t.unref)(nn).size),1),n[72]||=(0,t.createTextVNode)(` 个工具 `,-1)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)(`未选择服务或工具`)],64))]),(0,t.createVNode)((0,t.unref)(W),{size:`xs`,disabled:!(0,t.unref)(sn),onClick:n[33]||=e=>(0,t.unref)(cn)(()=>Qt.value=!1)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(O),{size:13}),n[73]||=(0,t.createTextVNode)(`确认引用 `,-1)]),_:1},8,[`disabled`])])])]),_:1},8,[`align`,`side`,`side-offset`])]),_:1},8,[`open`])):(0,t.createCommentVNode)(``,!0),n[76]||=(0,t.createElementVNode)(`span`,{class:`ac-tb-spacer`},null,-1),(0,t.unref)(s).contextLeft!==null||(0,t.unref)(s).contextUsed!==null?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,_p,[(0,t.createVNode)((0,t.unref)(Gn),{"open-delay":10,"close-delay":100},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Kn),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`button`,{type:`button`,class:`ac-ctx-ring`,"aria-label":`上下文剩余 `+((0,t.unref)(s).contextLeft??0)+`%`,title:`上下文剩余 `+((0,t.unref)(s).contextLeft??0)+`%`},[((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,yp,[n[74]||=(0,t.createElementVNode)(`circle`,{cx:`6`,cy:`6`,r:`5.25`,stroke:`currentColor`,"stroke-width":`1.5`,class:`ac-ctx-track`},null,-1),(0,t.createElementVNode)(`circle`,{cx:`6`,cy:`6`,r:`5.25`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-dasharray":(0,t.unref)(Cn),"stroke-dashoffset":(0,t.unref)(Sn),transform:`rotate(-90 6 6)`},null,8,bp)]))],8,vp)]),_:1}),(0,t.createVNode)((0,t.unref)(qn),{side:`top`,align:`end`,class:`flex w-64 flex-col gap-3`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,xp,[n[75]||=(0,t.createElementVNode)(`span`,{class:`font-medium`},`Context`,-1),(0,t.createElementVNode)(`span`,Sp,(0,t.toDisplayString)((0,t.unref)(ie)((0,t.unref)(s).contextUsed,(0,t.unref)(oe)))+` / `+(0,t.toDisplayString)((0,t.unref)(ie)((0,t.unref)(s).contextLimit,(0,t.unref)(oe))),1)]),(0,t.createVNode)((0,t.unref)(Wn),{"model-value":(0,t.unref)(xn),"aria-label":`Context used`},null,8,[`model-value`]),(0,t.createElementVNode)(`p`,Cp,`上下文剩余 `+(0,t.toDisplayString)((0,t.unref)(s).contextLeft??0)+`%`,1)]),_:1})]),_:1})])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(W),{size:`icon`,"data-ac-send":``,class:(0,t.normalizeClass)({"is-running":(0,t.unref)(_n)===`stop`}),"aria-label":(0,t.unref)(_n)===`stop`?`停止`:`发送`,disabled:(0,t.unref)(_n)===`disabled`,onClick:n[35]||=e=>(0,t.unref)(_n)===`stop`?(0,t.unref)(o).stop():(0,t.unref)(vn)(),style:{"--plume-radius":`999px`}},{default:(0,t.withCtx)(()=>[(0,t.unref)(_n)===`stop`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,wp)):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(C),{key:1,size:17,class:`size-[17px]`}))]),_:1},8,[`class`,`aria-label`,`disabled`])])])]))}}),[[`__scopeId`,`data-v-da62934c`]]),Ep={class:`ac-root`,"aria-label":`Agent 对话`},Dp={key:0,class:`ac-onboard`},Op={class:`ac-onboard-path`},kp={key:1,class:`ac-onboard`},Ap={class:`ac-onboard-path`},jp=G((0,t.defineComponent)({inheritAttrs:!1,__name:`AgentConversation`,setup(e){let n=Hr();(0,t.provide)(`agentConversation`,n);let{agent:i,s:a,MediaViewer:o,previewItem:s,previewImage:c}=n,l=(0,r.useUiComponent)(`Button`);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ep,[(0,t.unref)(a).needsModel?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Dp,[(0,t.createVNode)((0,t.unref)(be),{size:22,class:`ac-onboard-icon`}),n[2]||=(0,t.createElementVNode)(`strong`,null,`还没有可用的模型`,-1),n[3]||=(0,t.createElementVNode)(`p`,null,`先去设置里加一个带 API Key 的模型,回来就能对话了。`,-1),(0,t.createElementVNode)(`p`,Op,(0,t.toDisplayString)((0,t.unref)(a).models.length?`现有模型都没有密钥`:`当前没有任何模型`),1)])):(0,t.unref)(a).offline?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,kp,[n[5]||=(0,t.createElementVNode)(`strong`,null,`连不上后台`,-1),(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)((0,t.unref)(a).error||`请确认 cloud-server 已经启动。`),1),(0,t.createElementVNode)(`p`,Ap,(0,t.toDisplayString)((0,t.unref)(a).baseUrl||`同源(当前页面所在地址)`),1),(0,t.createVNode)((0,t.unref)(l),{size:`sm`,onClick:n[0]||=e=>(0,t.unref)(i).refresh()},{default:(0,t.withCtx)(()=>[...n[4]||=[(0,t.createTextVNode)(`重试连接`,-1)]]),_:1})])):((0,t.openBlock)(),(0,t.createBlock)(ws,{key:2})),(0,t.createVNode)(Tp),(0,t.createVNode)((0,t.unref)(o),{item:(0,t.unref)(s),onClose:n[1]||=e=>c.value=null},null,8,[`item`])]))}}),[[`__scopeId`,`data-v-dc8c31bd`]]),Mp=[`aria-label`],Np={class:`ac-panel-head`},Pp={class:`ac-panel-head-top`},Fp={class:`ac-panel-heading`},Ip={class:`ac-panel-title`},Lp={class:`ac-panel-count`},Rp={class:`ac-view-tabs`,role:`tablist`,"aria-label":`面板布局`},zp=[`aria-selected`],Bp=[`aria-selected`],Vp={key:0,class:`ac-menu-empty`},Hp={class:`ac-view-stack`},Up={key:0,class:`ac-model-grid`},Wp=[`title`,`innerHTML`],Gp={class:`ac-model-copy`},Kp={class:`ac-model-card-top`},qp={class:`ac-model-id`},Jp={class:`ac-model-meta`},Yp={class:`ac-model-line`},Xp={class:`ac-model-tip-desc`},Zp={key:0,class:`ac-check-mark`,"aria-hidden":`true`},Qp=[`title`,`innerHTML`],$p={class:`ac-model-copy`},em={class:`ac-model-card-top`},tm={class:`ac-model-id`},nm={class:`ac-model-meta`},rm={class:`ac-model-line`},im={class:`ac-model-tip-desc`},am={key:0,class:`ac-check-mark`,"aria-hidden":`true`},om={class:`ac-model-account-item-name`},sm={key:1,class:`ac-empty-state`},cm={class:`ac-empty-icon`},lm={class:`ac-empty-title`},um=[`aria-label`],dm={class:`ac-rail-label`},fm={key:0,class:`ac-rail-icon`,"aria-hidden":`true`},pm=[`title`,`innerHTML`],mm={class:`ac-rail-name`},hm={class:`ac-rail-count`},gm={class:`ac-split-main`},_m={key:0,class:`ac-model-row-list`},vm=[`title`,`innerHTML`],ym={class:`ac-model-copy`},bm={class:`ac-model-id`},xm={class:`ac-model-meta`},Sm={class:`ac-model-line`},Cm={class:`ac-model-tip-desc`},wm={class:`ac-model-badges`},Tm={key:0,class:`ac-check-mark`,"aria-hidden":`true`},Em=[`title`,`innerHTML`],Dm={class:`ac-model-copy`},Om={class:`ac-model-id`},km={class:`ac-model-meta`},Am={class:`ac-model-line`},jm={class:`ac-model-tip-desc`},Mm={class:`ac-model-badges`},Nm={key:0,class:`ac-check-mark`,"aria-hidden":`true`},Pm={class:`ac-model-account-item-name`},Fm={key:1,class:`ac-empty-state`},Im={class:`ac-empty-icon`},Lm={class:`ac-empty-title`},Rm=420,zm=G((0,t.defineComponent)({__name:`ChoicePicker`,props:{items:{},currentId:{default:``},title:{default:`选择`},placeholder:{default:`搜索…`},railLabel:{default:`平台`},showAll:{type:Boolean,default:!0},emptyText:{default:`没有匹配项`}},emits:[`pick`,`pickAccount`,`update:view`],setup(e,{expose:n,emit:i}){let a=e,o=i,s=(0,r.useUiComponent)(`Button`),c=(0,r.useUiComponent)(`Badge`),l=(0,r.useUiComponent)(`Tooltip`),u=(0,r.useUiComponent)(`TooltipContent`),d=(0,r.useUiComponent)(`TooltipProvider`),f=(0,r.useUiComponent)(`TooltipTrigger`),p=(0,r.useUiComponent)(`InputGroup`),m=(0,r.useUiComponent)(`InputGroupAddon`),h=(0,r.useUiComponent)(`InputGroupButton`),g=(0,r.useUiComponent)(`InputGroupInput`),_=(0,r.useUiComponent)(`DropdownMenuSub`),v=(0,r.useUiComponent)(`DropdownMenuSubTrigger`),y=(0,r.useUiComponent)(`DropdownMenuSubContent`),b=(0,r.useUiComponent)(`DropdownMenuItem`),x=(0,r.useUiComponent)(`DropdownMenuLabel`),S=(0,t.ref)(``),C=(0,t.ref)(`card`),w=(0,t.ref)(`all`);function T(e){e===`split`&&C.value!==`split`?C.value=`split`:e===`card`&&C.value!==`card`&&(C.value=`card`),o(`update:view`,C.value)}function E(e){return e.platform||dr(e.title,``)}function D(e){let t=e.subtitle||hr(E(e)),n=e.desc||e.note||``;return n?t+` · `+n:t}let k=(0,t.computed)(()=>{let e=[];for(let t of a.items){let n=E(t),r=e.find(e=>e.key===n);r?r.count++:e.push({key:n,label:hr(n),count:1})}return a.showAll?[{key:`all`,label:`全部平台`,count:a.items.length},...e]:e}),A=(0,t.computed)(()=>{let e=S.value.trim().toLowerCase();return a.items.filter(t=>{if(w.value!==`all`&&E(t)!==w.value)return!1;if(!e)return!0;let n=hr(E(t));return(t.title+` `+(t.subtitle??``)+` `+(t.note??``)+` `+n).toLowerCase().includes(e)})}),j=(0,t.ref)(null);function M(e){if(!e)return null;if(e instanceof HTMLElement)return e;let t=e;return typeof t.rootElement==`function`?t.rootElement():null}function N(){let e=M(j.value),t=(e??document).querySelector(`[role="option"][aria-selected="true"]`),n=e=>e?.querySelector(`[data-slot="scroll-area-viewport"]`)??e??null,r=n(t?.closest(`.ac-split-scroll, .ac-menu-scroll`)??n(e));if(!r||r.clientHeight<=0)return;let i=t&&r.contains(t)?t:r.querySelector(`[role="option"][aria-selected="true"]`);if(!i)return;let a=i.getBoundingClientRect().top-r.getBoundingClientRect().top+r.scrollTop;r.scrollTop=_r({scrollTop:r.scrollTop,scrollHeight:r.scrollHeight,clientHeight:r.clientHeight},{top:a,height:i.offsetHeight},4);let o=i.getBoundingClientRect(),s=r.getBoundingClientRect();o.bottom>s.bottom?r.scrollTop+=o.bottom-s.bottom:o.top<s.top&&(r.scrollTop-=s.top-o.top)}let P=null,F=null,I=null;function L(){N(),P!==null&&window.clearTimeout(P),P=window.setTimeout(()=>{P=null,N()},200)}function R(){F?.disconnect(),F=null;let e=M(j.value),t=e?.querySelector(`.ac-split-scroll [data-slot="scroll-area-viewport"]`)??e?.querySelector(`[data-slot="scroll-area-viewport"]`)??null;!t||typeof ResizeObserver>`u`||(F=new ResizeObserver(()=>{I!==null&&window.clearTimeout(I),I=window.setTimeout(()=>{I=null,N()},80)}),F.observe(t))}function z(){(0,t.nextTick)(()=>{L(),R()})}(0,t.watch)(()=>[a.currentId,a.items.length],()=>z()),(0,t.watch)(C,()=>z()),(0,t.watch)(w,()=>z()),(0,t.onBeforeUnmount)(()=>{F?.disconnect(),F=null,I!==null&&window.clearTimeout(I),P!==null&&window.clearTimeout(P),ne(),window.removeEventListener(`pointerdown`,oe,!0)}),(0,t.onMounted)(()=>{window.addEventListener(`pointerdown`,oe,!0)});function B(e){e.disabled||o(`pick`,e)}function ee(e){return(e.accounts?.length??0)>1}function te(e){return e.accountId||e.defaultAccount||``}let V=(0,t.ref)(``);function H(e,t){if(t){ne(),V.value=e;return}V.value===e&&ie(e)}let U=null;function ne(){U!==null&&(window.clearTimeout(U),U=null)}function ie(e){ne(),U=window.setTimeout(()=>{V.value===e&&(V.value=``),U=null},Rm)}function ae(){ne()}function oe(e){if(!V.value)return;let t=e.target;!t||typeof t.closest!=`function`||t.closest(`[data-slot="dropdown-menu-sub-content"]`)||t.closest(`.ac-model-entry-sub`)||t.closest(`.ac-model-account-menu`)||(ne(),V.value=``)}function se(e,t){o(`pickAccount`,e.id,t),ne(),V.value=``}return n({refreshLayout:z}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`ac-panel cp-panel`,{"is-split":C.value===`split`}]),role:`listbox`,"aria-label":e.title},[(0,t.createElementVNode)(`div`,Np,[(0,t.createElementVNode)(`div`,Pp,[(0,t.createElementVNode)(`div`,Fp,[(0,t.createElementVNode)(`span`,Ip,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)(`span`,Lp,(0,t.toDisplayString)(e.items.length),1)]),(0,t.createElementVNode)(`div`,Rp,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`ac-view-tab`,{"is-active":C.value===`card`}]),"aria-selected":C.value===`card`,role:`tab`,onClick:r[0]||=e=>T(`card`)},`卡片`,10,zp),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`ac-view-tab`,{"is-active":C.value===`split`}]),"aria-selected":C.value===`split`,role:`tab`,onClick:r[1]||=e=>T(`split`)},`分栏`,10,Bp)])]),(0,t.createVNode)((0,t.unref)(p),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(m),{align:`inline-start`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ve),{size:14,"aria-hidden":`true`})]),_:1}),(0,t.createVNode)((0,t.unref)(g),{modelValue:S.value,"onUpdate:modelValue":r[2]||=e=>S.value=e,type:`text`,name:`cp-search`,placeholder:e.placeholder,"aria-label":e.placeholder,autocomplete:`off`,spellcheck:`false`},null,8,[`modelValue`,`placeholder`,`aria-label`]),S.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(m),{key:0,align:`inline-end`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(h),{size:`icon-xs`,"aria-label":`清空搜索`,onClick:r[3]||=e=>S.value=``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ae))]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1})]),e.items.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,ref_key:`scrollRef`,ref:j,class:`ac-menu-scroll ac-panel-body`},[(0,t.createElementVNode)(`div`,Hp,[(0,t.createVNode)(Wi,{class:(0,t.normalizeClass)([`ac-panel-scroll ac-view-pane`,{"is-active":C.value===`card`}]),"body-class":`ac-panel-scroll-body ac-model-scroll-body`},{default:(0,t.withCtx)(()=>[A.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Up,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(A.value,n=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(_),{key:n.id,open:V.value===n.id,"onUpdate:open":e=>H(n.id,e)},{default:(0,t.withCtx)(()=>[ee(n)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(v),{key:0,class:`ac-model-entry ac-model-entry-sub`,"aria-selected":n.id===e.currentId,disabled:n.disabled,"text-value":n.title,onMouseenter:ae,onClick:e=>B(n)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:`ac-model-brand`,title:(0,t.unref)(hr)(E(n)),"aria-hidden":`true`,innerHTML:n.svg||(0,t.unref)(mr)(E(n))},null,8,Wp),(0,t.createElementVNode)(`span`,Gp,[(0,t.createElementVNode)(`span`,Kp,[(0,t.createElementVNode)(`span`,qp,(0,t.toDisplayString)(n.title),1),n.isDefault?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(c),{key:0,variant:`secondary`},{default:(0,t.withCtx)(()=>[...r[4]||=[(0,t.createTextVNode)(`默认`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`span`,Jp,[(0,t.createVNode)((0,t.unref)(d),{"delay-duration":260,"disable-hoverable-content":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(l),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(f),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Yp,(0,t.toDisplayString)(D(n)),1)]),_:2},1024),(0,t.createVNode)((0,t.unref)(u),{side:`right`,arrow:!0,class:`ac-model-tip`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Xp,(0,t.toDisplayString)(D(n)),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)])]),n.id===e.currentId?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Zp,[(0,t.createVNode)((0,t.unref)(O),{size:16,"stroke-width":2})])):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`aria-selected`,`disabled`,`text-value`,`onClick`])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(s),{key:1,variant:`ghost`,size:`sm`,class:`ac-model-entry ac-model-hit`,role:`option`,"aria-selected":n.id===e.currentId,disabled:n.disabled,onClick:e=>B(n)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:`ac-model-brand`,title:(0,t.unref)(hr)(E(n)),"aria-hidden":`true`,innerHTML:n.svg||(0,t.unref)(mr)(E(n))},null,8,Qp),(0,t.createElementVNode)(`span`,$p,[(0,t.createElementVNode)(`span`,em,[(0,t.createElementVNode)(`span`,tm,(0,t.toDisplayString)(n.title),1),n.isDefault?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(c),{key:0,variant:`secondary`},{default:(0,t.withCtx)(()=>[...r[5]||=[(0,t.createTextVNode)(`默认`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`span`,nm,[(0,t.createVNode)((0,t.unref)(d),{"delay-duration":260,"disable-hoverable-content":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(l),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(f),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,rm,(0,t.toDisplayString)(D(n)),1)]),_:2},1024),(0,t.createVNode)((0,t.unref)(u),{side:`right`,arrow:!0,class:`ac-model-tip`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,im,(0,t.toDisplayString)(D(n)),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)])]),n.id===e.currentId?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,am,[(0,t.createVNode)((0,t.unref)(O),{size:16,"stroke-width":2})])):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`aria-selected`,`disabled`,`onClick`])),ee(n)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(y),{key:2,class:`ac-model-account-menu`,onMouseenter:ae,onMouseleave:e=>ie(n.id)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(x),null,{default:(0,t.withCtx)(()=>[...r[6]||=[(0,t.createTextVNode)(`选择账号`,-1)]]),_:1}),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(n.accounts,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(b),{key:e.id,class:`ac-model-account-item`,onSelect:(0,t.withModifiers)(t=>se(n,e.id),[`prevent`])},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,om,(0,t.toDisplayString)(e.name||e.id),1),e.id===te(n)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(O),{key:0,size:14})):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`onSelect`]))),128))]),_:2},1032,[`onMouseleave`])):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`open`,`onUpdate:open`]))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,sm,[(0,t.createElementVNode)(`span`,cm,[(0,t.createVNode)((0,t.unref)(ve),{size:18})]),(0,t.createElementVNode)(`span`,lm,(0,t.toDisplayString)(e.emptyText),1),r[7]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-desc`},`换个关键词或平台试试。`,-1)]))]),_:1},8,[`class`]),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`ac-view-pane ac-split`,{"is-active":C.value===`split`}])},[(0,t.createElementVNode)(`aside`,{class:`ac-split-rail`,"aria-label":e.railLabel},[(0,t.createElementVNode)(`div`,dm,(0,t.toDisplayString)(e.railLabel),1),(0,t.createVNode)(Wi,{class:`ac-rail-scroll`,"body-class":`ac-rail-scroll-body`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(k.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(s),{key:e.key,variant:`ghost`,size:`sm`,"aria-pressed":w.value===e.key,onClick:t=>w.value=e.key},{default:(0,t.withCtx)(()=>[e.key===`all`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,fm,[(0,t.createVNode)((0,t.unref)(re),{size:14})])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,class:`ac-rail-brand`,title:e.label,"aria-hidden":`true`,innerHTML:(0,t.unref)(mr)(e.key)},null,8,pm)),(0,t.createElementVNode)(`span`,mm,(0,t.toDisplayString)(e.label),1),(0,t.createElementVNode)(`span`,hm,(0,t.toDisplayString)(e.count),1)]),_:2},1032,[`aria-pressed`,`onClick`]))),128))]),_:1})],8,um),(0,t.createElementVNode)(`div`,gm,[(0,t.createVNode)(Wi,{class:`ac-split-scroll`,"body-class":`ac-split-scroll-body`},{default:(0,t.withCtx)(()=>[A.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,_m,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(A.value,n=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(_),{key:n.id,open:V.value===n.id,"onUpdate:open":e=>H(n.id,e)},{default:(0,t.withCtx)(()=>[ee(n)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(v),{key:0,class:`ac-model-entry ac-model-entry-row ac-model-entry-sub`,"aria-selected":n.id===e.currentId,disabled:n.disabled,"text-value":n.title,onMouseenter:ae,onClick:e=>B(n)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:`ac-model-brand`,title:(0,t.unref)(hr)(E(n)),"aria-hidden":`true`,innerHTML:n.svg||(0,t.unref)(mr)(E(n))},null,8,vm),(0,t.createElementVNode)(`span`,ym,[(0,t.createElementVNode)(`span`,bm,(0,t.toDisplayString)(n.title),1),(0,t.createElementVNode)(`span`,xm,[(0,t.createVNode)((0,t.unref)(d),{"delay-duration":260,"disable-hoverable-content":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(l),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(f),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Sm,(0,t.toDisplayString)(D(n)),1)]),_:2},1024),(0,t.createVNode)((0,t.unref)(u),{side:`right`,arrow:!0,class:`ac-model-tip`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Cm,(0,t.toDisplayString)(D(n)),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)])]),(0,t.createElementVNode)(`span`,wm,[n.isDefault?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(c),{key:0,variant:`secondary`},{default:(0,t.withCtx)(()=>[...r[8]||=[(0,t.createTextVNode)(`默认`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0)]),n.id===e.currentId?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Tm,[(0,t.createVNode)((0,t.unref)(O),{size:16,"stroke-width":2})])):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`aria-selected`,`disabled`,`text-value`,`onClick`])):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(s),{key:1,variant:`ghost`,size:`sm`,class:`ac-model-entry ac-model-entry-row ac-model-hit`,role:`option`,"aria-selected":n.id===e.currentId,disabled:n.disabled,onClick:e=>B(n)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,{class:`ac-model-brand`,title:(0,t.unref)(hr)(E(n)),"aria-hidden":`true`,innerHTML:n.svg||(0,t.unref)(mr)(E(n))},null,8,Em),(0,t.createElementVNode)(`span`,Dm,[(0,t.createElementVNode)(`span`,Om,(0,t.toDisplayString)(n.title),1),(0,t.createElementVNode)(`span`,km,[(0,t.createVNode)((0,t.unref)(d),{"delay-duration":260,"disable-hoverable-content":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(l),null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(f),{"as-child":``},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Am,(0,t.toDisplayString)(D(n)),1)]),_:2},1024),(0,t.createVNode)((0,t.unref)(u),{side:`right`,arrow:!0,class:`ac-model-tip`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,jm,(0,t.toDisplayString)(D(n)),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)])]),(0,t.createElementVNode)(`span`,Mm,[n.isDefault?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(c),{key:0,variant:`secondary`},{default:(0,t.withCtx)(()=>[...r[9]||=[(0,t.createTextVNode)(`默认`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0)]),n.id===e.currentId?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Nm,[(0,t.createVNode)((0,t.unref)(O),{size:16,"stroke-width":2})])):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`aria-selected`,`disabled`,`onClick`])),ee(n)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(y),{key:2,class:`ac-model-account-menu`,onMouseenter:ae,onMouseleave:e=>ie(n.id)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(x),null,{default:(0,t.withCtx)(()=>[...r[10]||=[(0,t.createTextVNode)(`选择账号`,-1)]]),_:1}),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(n.accounts,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(b),{key:e.id,class:`ac-model-account-item`,onSelect:(0,t.withModifiers)(t=>se(n,e.id),[`prevent`])},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Pm,(0,t.toDisplayString)(e.name||e.id),1),e.id===te(n)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(O),{key:0,size:14})):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`onSelect`]))),128))]),_:2},1032,[`onMouseleave`])):(0,t.createCommentVNode)(``,!0)]),_:2},1032,[`open`,`onUpdate:open`]))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Fm,[(0,t.createElementVNode)(`span`,Im,[(0,t.createVNode)((0,t.unref)(ve),{size:18})]),(0,t.createElementVNode)(`span`,Lm,(0,t.toDisplayString)(e.emptyText),1),r[11]||=(0,t.createElementVNode)(`span`,{class:`ac-empty-desc`},`换个关键词或平台试试。`,-1)]))]),_:1})])],2)])],512)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Vp,(0,t.toDisplayString)(e.emptyText),1))],10,Mp))}}),[[`__scopeId`,`data-v-771dc089`]]),Bm=`agent:reference-node`,Vm=G((0,t.defineComponent)({__name:`AgentRefToolbar`,setup(e){let{ctx:n}=(0,r.useCanvasRender)(),i=(0,r.useUiComponent)(`Button`),a=(0,r.useCapability)(`selection`),o=(0,t.computed)(()=>a?.ids().length??0),s=(0,t.computed)(()=>o.value>=1),c=(0,t.computed)(()=>n.tryGet(`canvas`));function l(){if(!s.value)return;let e=a?.ids()??[];c.value?.runCommand(Bm,{nodeIds:e})}return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i),{class:`agent-ref-toolbar__btn`,variant:`ghost`,size:`sm`,type:`button`,title:`引用到 Agent`,"aria-label":`引用到 Agent`,disabled:!s.value,onClick:l},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(r.ToolbarIcon),{icon:(0,t.unref)(Zt)},null,8,[`icon`]),n[0]||=(0,t.createElementVNode)(`span`,null,`引用到 Agent`,-1)]),_:1},8,[`disabled`]))}}),[[`__scopeId`,`data-v-de8b88b4`]]),Hm={class:`agent-settings-nav-anchor`,"aria-hidden":`true`},Um=G((0,t.defineComponent)({__name:`AgentSettingsNav`,props:{group:{},active:{type:Boolean},onSelect:{type:Function}},setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Hm))}}),[[`__scopeId`,`data-v-c1cb0fd7`]]),Wm={class:`sdh`},Gm={class:`sdh-top`},Km={class:`sdh-text`},qm={class:`sdh-title`},Jm={key:0,class:`sdh-desc`},Ym=G((0,t.defineComponent)({__name:`SettingsDetailHeader`,props:{backLabel:{},title:{},description:{}},emits:[`back`],setup(e){let n=(0,r.useUiComponent)(`Button`);return(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`header`,Wm,[(0,t.createElementVNode)(`div`,Gm,[(0,t.createVNode)((0,t.unref)(n),{variant:`ghost`,size:`xs`,type:`button`,class:`sdh-back`,onClick:i[0]||=e=>r.$emit(`back`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(x),{size:14,"aria-hidden":`true`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.backLabel),1)]),_:1}),(0,t.renderSlot)(r.$slots,`actions`,{},void 0,!0)]),(0,t.createElementVNode)(`div`,Km,[(0,t.createElementVNode)(`h3`,qm,(0,t.toDisplayString)(e.title),1),e.description?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Jm,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)(``,!0)])]))}}),[[`__scopeId`,`data-v-ff337a5a`]]);async function Xm(e,t,n,r){await Promise.allSettled(e.map(async e=>{try{n(e,await t(e))}finally{r?.()}}))}var Zm={class:`ap ap-models`},Qm={key:0,class:`ap-error`},$m={class:`ap-list-head`},eh={class:`ap-hint`},th={class:`ap-list`},nh={class:`ap-list-main`},rh={class:`ap-list-title`},ih={class:`ap-list-name`},ah={key:0,class:`ap-badge`},oh={class:`ap-list-desc`},sh={class:`ap-list-meta`},ch={key:0,class:`ap-empty`},lh={key:1,class:`ap-hint`},uh={class:`ap-detail-actions`},dh={class:`ap-model-pull`},fh={class:`ap-hint`},ph={class:`ap-custom-row`},mh={key:0,class:`ap-picker`},hh={class:`ap-picker-head`},gh={class:`ap-hint`},_h={class:`ap-quick`},vh={class:`ap-tagpool`,role:`listbox`,"aria-multiselectable":`true`,"aria-label":`选择要保留的模型`},yh={key:1,class:`ap-hint`},bh={class:`ap-edit-foot`},xh={class:`ap-test-toolbar`},Sh={key:0,class:`ap-saved-list`},Ch=[`checked`,`aria-label`,`onChange`],wh={class:`ap-saved-name`},Th={key:1,class:`ap-hint`},Eh={class:`ap-test-actions`},Dh={class:`ap-quick`},Oh={key:2,class:`ap-probe-results`},kh={class:`ap-probe-title`},Ah={class:`ap-probe-model`},jh={class:`ap-probe-desc`},Mh={key:0,class:`ap-probe-reply`},Nh={key:1,class:`ap-hint`},Ph=`openai-chat`,Fh=`auto`,Ih=G((0,t.defineComponent)({__name:`ModelsPage`,setup(e){let n=(0,r.useUiComponent)(`Button`),i=(0,r.useUiComponent)(`Input`);(0,r.useUiComponent)(`Badge`);let a=(0,r.useUiComponent)(`Select`),o=(0,r.useUiComponent)(`SelectContent`),s=(0,r.useUiComponent)(`SelectItem`),c=(0,r.useUiComponent)(`SelectTrigger`),l=(0,r.useUiComponent)(`SelectValue`),u=(0,r.useUiComponent)(`settingsRow`),d=(0,r.useUiComponent)(`settingsSection`),f=ct(),p=f.state,m=(0,t.ref)(!1),h=(0,t.computed)(()=>[Fh,Ph,...(p.clientTypes.length?p.clientTypes:[Ph]).filter(e=>e!==Fh).filter(e=>e!==Ph)]),g=(0,t.computed)(()=>h.value.map(e=>({label:_(e),value:e})));function _(e){return e===Fh?`自动检测(推荐)`:e===`openai-chat`?`openai-chat · OpenAI Chat(通用)`:e===`openai-responses`?`openai-responses · OpenAI Responses(通用)`:e===`ant-messages`?`ant-messages · Anthropic Messages(通用)`:e===`openai-chat-vllm-adapter`?`openai-chat-vllm-adapter · vLLM(专属)`:e===`deepseek-v4`?`deepseek-v4 · DeepSeek(专属)`:e===`minimax-m3`?`minimax-m3 · MiniMax(专属)`:e}let v=(0,t.ref)(!1),y=(0,t.ref)(!1),b=(0,t.ref)({provider:``,apiKey:``,baseUrl:``,clientType:Fh,vision:!0}),x=(0,t.ref)(``),S=(0,t.ref)([]),C=(0,t.ref)(new Set),w=(0,t.ref)(!1),T=(0,t.ref)(new Set),E=(0,t.ref)({}),D=(0,t.ref)({done:0,total:0}),O=0,k=(0,t.ref)(``),A=(0,t.ref)(``),j=(0,t.ref)(``),M=(0,t.ref)(!1);(0,t.onMounted)(()=>void f.refresh());let P=(0,t.computed)(()=>{let e=new Map;for(let t of p.models){if(!t.hasKey)continue;let n=e.get(t.provider);n||(n={provider:t.provider,baseUrl:t.baseUrl??``,clientType:t.clientType??Ph,hasKey:!0,apiKeyMask:t.apiKeyMask??``,models:[]},e.set(t.provider,n)),n.models.push(t.modelId),t.isDefault&&(n.defaultModel=t.modelId),!n.baseUrl&&t.baseUrl&&(n.baseUrl=t.baseUrl),!n.apiKeyMask&&t.apiKeyMask&&(n.apiKeyMask=t.apiKeyMask)}return[...e.values()]}),F=(0,t.computed)(()=>y.value?`配置渠道 · `+b.value.provider:`添加渠道`),L=(0,t.computed)(()=>S.value.filter(e=>C.value.has(e))),R=(0,t.computed)(()=>L.value.flatMap(e=>E.value[e]?[{model:e,result:E.value[e]}]:[]));function z(){O+=1,E.value={},D.value={done:0,total:0}}function B(){w.value=!0,T.value=new Set,z()}function ee(){w.value=!1,T.value=new Set,z(),p.error=``}function te(e){b.value.provider=e.provider,b.value.baseUrl=e.baseUrl,b.value.clientType=e.clientType||Ph,b.value.apiKey=e.apiKeyMask,b.value.vision=!0,x.value=e.apiKeyMask,S.value=[...e.models],C.value=new Set(e.models),y.value=!0,v.value=!0,w.value=!1,T.value=new Set,A.value=``,j.value=``,z()}function V(){b.value={provider:``,baseUrl:``,apiKey:``,clientType:Fh,vision:!0},x.value=``,S.value=[],C.value=new Set,k.value=``,y.value=!1,v.value=!0,w.value=!0,A.value=``,j.value=``,z()}function H(){v.value=!1,y.value=!1,j.value=``,p.error=``,z()}async function U(){A.value=`正在拉取…`,j.value=``;let e=await f.loadUpstreamModels({provider:b.value.provider,baseUrl:b.value.baseUrl,apiKey:b.value.apiKey});if(!e.ok){A.value=`拉取失败:`+(e.error??``)+`(可以在下面手动填写模型 ID)`;return}A.value=`拉到 `+e.models.length+` 个模型`,S.value=[...new Set([...e.models,...S.value])],y.value||(C.value=new Set),w.value=!0}function ne(){let e=k.value.trim();e&&(S.value.includes(e)||(S.value=[...S.value,e]),C.value=new Set([...C.value,e]),k.value=``,p.error=``)}function re(e){let t=new Set(C.value);t.has(e)?t.delete(e):t.add(e),C.value=t}let ie=()=>{C.value=new Set(S.value)},ae=()=>{let e=new Set;for(let t of S.value)C.value.has(t)||e.add(t);C.value=e},oe=()=>{C.value=new Set};function se(e){let t=new Set(T.value);t.has(e)?t.delete(e):t.add(e),T.value=t;let n={...E.value};delete n[e],E.value=n}let ce=()=>{T.value=new Set(L.value),z()},le=()=>{T.value=new Set,z()};async function ue(){let e=[...T.value];if(!e.length){p.error=`先勾选要测试的模型`;return}M.value=!0,p.error=``,z(),D.value={done:0,total:e.length};let t=++O,n={provider:b.value.provider||void 0,...b.value.baseUrl?{baseUrl:b.value.baseUrl}:{},...b.value.apiKey?{apiKey:b.value.apiKey}:{},clientType:b.value.clientType||Fh};try{await Xm(e,e=>f.probeModel({...n,modelId:e}),(e,n)=>{t===O&&(E.value={...E.value,[e]:n},n.ok&&n.clientType&&n.clientType!==Fh&&(b.value.clientType=n.clientType))},()=>{t===O&&(D.value={...D.value,done:D.value.done+1})})}finally{t===O&&(M.value=!1)}}async function de(){if(!b.value.provider.trim()){p.error=`请先填渠道名`;return}if(!C.value.size){p.error=`至少勾选一个模型`;return}m.value=!0,p.error=``;try{let e=[...C.value];await f.saveModelsBulk({provider:b.value.provider.trim(),modelIds:e,...b.value.apiKey?{apiKey:b.value.apiKey}:{},...b.value.baseUrl?{baseUrl:b.value.baseUrl}:{},...b.value.clientType&&b.value.clientType!==Fh?{clientType:b.value.clientType}:{},vision:b.value.vision,removeMissing:y.value,...y.value?{}:{makeDefault:e[0]}});let t=b.value.provider.trim();v.value=!1,y.value=!1,j.value=`已保存「`+t+`」:`+e.length+` 个模型`}catch(e){p.error=e instanceof Error?e.message:String(e)}finally{m.value=!1}}return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Zm,[(0,t.unref)(p).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Qm,(0,t.toDisplayString)((0,t.unref)(p).error),1)):(0,t.createCommentVNode)(``,!0),v.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.createVNode)(Ym,{"back-label":`返回渠道列表`,title:F.value,description:y.value?`改完保存会回到列表;取消勾选等于从渠道里删掉这个模型`:`填地址、拉模型或手动添加,勾选后保存`,onBack:H},{actions:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,uh,[(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,onClick:H},{default:(0,t.withCtx)(()=>[...r[7]||=[(0,t.createTextVNode)(`取消`,-1)]]),_:1}),(0,t.createVNode)((0,t.unref)(n),{type:`button`,size:`sm`,disabled:m.value,onClick:de},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(m.value?`保存中…`:y.value?`保存修改`:`添加渠道`),1)]),_:1},8,[`disabled`])])]),_:1},8,[`title`,`description`]),(0,t.createElementVNode)(`form`,{class:`ap-form-stack ap-model-form`,onSubmit:(0,t.withModifiers)(de,[`prevent`])},[(0,t.createVNode)((0,t.unref)(d),{title:`渠道信息`,class:`ap-flush-card`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(u),{label:`渠道名`,description:`给这批模型起个名字,例如 deepseek、token01`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(i),{modelValue:b.value.provider,"onUpdate:modelValue":r[0]||=e=>b.value.provider=e,class:`ap-input`,"aria-label":`渠道名`,placeholder:`例如 deepseek`},null,8,[`modelValue`])]),_:1}),(0,t.createVNode)((0,t.unref)(u),{label:`接口地址`,description:`上游 OpenAI 兼容地址,通常以 /v1 结尾`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(i),{modelValue:b.value.baseUrl,"onUpdate:modelValue":r[1]||=e=>b.value.baseUrl=e,class:`ap-input`,"aria-label":`接口地址`,placeholder:`https://{接口地址}/v1`,onInput:z},null,8,[`modelValue`])]),_:1}),(0,t.createVNode)((0,t.unref)(u),{label:`密钥`,description:y.value&&x.value?`已存密钥:`+x.value+`(只显示掩码,明文不会下发)`:`只写不回读,保存后界面只会看到掩码`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(i),{modelValue:b.value.apiKey,"onUpdate:modelValue":r[2]||=e=>b.value.apiKey=e,class:`ap-input`,type:`text`,spellcheck:`false`,autocomplete:`off`,"aria-label":`密钥`,placeholder:y.value?`留空 = 不改动已存密钥`:`粘贴密钥`,onInput:z},null,8,[`modelValue`,`placeholder`])]),_:1},8,[`description`]),(0,t.createVNode)((0,t.unref)(u),{label:`接入协议`,description:`不确定就选「自动检测」:会依次试通用协议。第三方端点通用的是 openai-chat / openai-responses / ant-messages。`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a),{modelValue:b.value.clientType,"onUpdate:modelValue":r[3]||=e=>b.value.clientType=e},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(c),{class:`ap-select`,size:`sm`,"aria-label":`接入协议`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(l))]),_:1}),(0,t.createVNode)((0,t.unref)(o),{class:`settings-floating-layer`,position:`popper`,side:`bottom`,"side-offset":4},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(g.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(s),{key:e.value,value:e.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)]),_:2},1032,[`value`]))),128))]),_:1})]),_:1},8,[`modelValue`])]),_:1})]),_:1}),(0,t.createVNode)((0,t.unref)(d),{title:`模型清单`,description:w.value?`编辑中:点标签决定保留哪些模型,完成后点「完成编辑」`:L.value.length+` 个已保存模型 · 勾选后可以一次测多个`,class:`ap-flush-card`},{default:(0,t.withCtx)(()=>[w.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`div`,dh,[(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,onClick:U},{default:(0,t.withCtx)(()=>[...r[8]||=[(0,t.createTextVNode)(`拉取模型清单`,-1)]]),_:1}),(0,t.createElementVNode)(`span`,fh,(0,t.toDisplayString)(A.value||`向上游要模型清单,再勾选要留下的模型`),1)]),(0,t.createElementVNode)(`div`,ph,[(0,t.createVNode)((0,t.unref)(i),{modelValue:k.value,"onUpdate:modelValue":r[4]||=e=>k.value=e,class:`ap-input`,"aria-label":`自定义模型 ID`,placeholder:`上游没列出来?直接输入模型 ID`,onKeydown:(0,t.withKeys)((0,t.withModifiers)(ne,[`prevent`]),[`enter`])},null,8,[`modelValue`,`onKeydown`]),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,disabled:!k.value.trim(),onClick:ne},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(me),{size:13,"aria-hidden":`true`}),r[9]||=(0,t.createTextVNode)(` 添加模型 `,-1)]),_:1},8,[`disabled`])]),S.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,mh,[(0,t.createElementVNode)(`div`,hh,[(0,t.createElementVNode)(`span`,gh,`保留 `+(0,t.toDisplayString)(C.value.size)+` / `+(0,t.toDisplayString)(S.value.length)+` 个`,1),(0,t.createElementVNode)(`span`,_h,[(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,onClick:ie},{default:(0,t.withCtx)(()=>[...r[10]||=[(0,t.createTextVNode)(`全选`,-1)]]),_:1}),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,onClick:ae},{default:(0,t.withCtx)(()=>[...r[11]||=[(0,t.createTextVNode)(`反选`,-1)]]),_:1}),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,onClick:oe},{default:(0,t.withCtx)(()=>[...r[12]||=[(0,t.createTextVNode)(`清空`,-1)]]),_:1})])]),(0,t.createElementVNode)(`div`,vh,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(S.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:e,variant:C.value.has(e)?`default`:`outline`,size:`xs`,type:`button`,class:(0,t.normalizeClass)([`ap-tagchip`,{"is-on":C.value.has(e)}]),role:`option`,"aria-selected":C.value.has(e),title:e,onClick:t=>re(e)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e),1)]),_:2},1032,[`variant`,`class`,`aria-selected`,`title`,`onClick`]))),128))])])):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,yh,`还没有候选模型 —— 点「拉取模型清单」,或在上面手填模型 ID。`)),(0,t.createElementVNode)(`div`,bh,[(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,onClick:ee},{default:(0,t.withCtx)(()=>[...r[13]||=[(0,t.createTextVNode)(`完成编辑`,-1)]]),_:1})])],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createElementVNode)(`div`,xh,[r[15]||=(0,t.createElementVNode)(`span`,{class:`ap-hint`},`勾选模型后点「测试选中」——每个都会真发一句请求`,-1),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,onClick:B},{default:(0,t.withCtx)(()=>[...r[14]||=[(0,t.createTextVNode)(`编辑模型`,-1)]]),_:1})]),L.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Sh,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(L.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`label`,{key:e,class:(0,t.normalizeClass)([`ap-saved-row`,{"is-test-on":T.value.has(e)}])},[(0,t.createElementVNode)(`input`,{type:`checkbox`,class:`ap-saved-check`,checked:T.value.has(e),"aria-label":`选择测试 `+e,onChange:t=>se(e)},null,40,Ch),(0,t.createElementVNode)(`span`,wh,(0,t.toDisplayString)(e),1),E.value[e]?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:(0,t.normalizeClass)([`ap-saved-result`,{"is-ok":E.value[e].ok}])},[E.value[e].ok?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)(`通 · `+(0,t.toDisplayString)(E.value[e].clientType)+` · `+(0,t.toDisplayString)(E.value[e].latencyMs)+`ms`,1)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)(`没通`)],64))],2)):(0,t.createCommentVNode)(``,!0)],2))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Th,`还没有模型 —— 点「编辑模型」添加。`)),(0,t.createElementVNode)(`div`,Eh,[(0,t.createElementVNode)(`span`,Dh,[(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,onClick:ce},{default:(0,t.withCtx)(()=>[...r[16]||=[(0,t.createTextVNode)(`全选`,-1)]]),_:1}),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,onClick:le},{default:(0,t.withCtx)(()=>[...r[17]||=[(0,t.createTextVNode)(`清空`,-1)]]),_:1})]),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,disabled:M.value||!T.value.size,onClick:ue},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(M.value?`测试中…(`+D.value.done+`/`+D.value.total+`)`:`测试选中(`+T.value.size+`)`),1)]),_:1},8,[`disabled`])]),R.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Oh,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(R.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.model,class:(0,t.normalizeClass)([`ap-probe-result`,{"is-ok":e.result.ok}])},[(0,t.createElementVNode)(`p`,kh,[e.result.ok?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(N),{key:0,size:14,"aria-hidden":`true`})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(I),{key:1,size:14,"aria-hidden":`true`})),(0,t.createElementVNode)(`span`,Ah,(0,t.toDisplayString)(e.model),1),(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)([`ap-probe-state`,e.result.ok?`is-ok`:`is-bad`])},(0,t.toDisplayString)(e.result.ok?`通了`:`没通`),3)]),(0,t.createElementVNode)(`p`,jh,[e.result.ok?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.result.clientType)+` · `+(0,t.toDisplayString)(e.result.latencyMs)+`ms`,1)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.result.error||`请求失败`),1)],64))]),e.result.reply?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Mh,`回复「`+(0,t.toDisplayString)(e.result.reply)+`」`,1)):(0,t.createCommentVNode)(``,!0),e.result.fallback===`non-stream`?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Nh,` 这个网关的流式返回缺少用量字段,检测改用了一次普通请求确认连通。 `)):(0,t.createCommentVNode)(``,!0)],2))),128))])):(0,t.createCommentVNode)(``,!0)],64))]),_:1},8,[`description`])],32)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createElementVNode)(`div`,$m,[(0,t.createElementVNode)(`span`,eh,(0,t.toDisplayString)(P.value.length)+` 个渠道 · `+(0,t.toDisplayString)((0,t.unref)(p).models.filter(e=>e.hasKey).length)+` 个模型`,1),(0,t.createVNode)((0,t.unref)(n),{size:`sm`,type:`button`,onClick:V},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(me),{size:13,"aria-hidden":`true`}),r[5]||=(0,t.createTextVNode)(` 添加渠道 `,-1)]),_:1})]),(0,t.createElementVNode)(`ul`,th,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(P.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:e.provider,class:`ap-list-row`},[(0,t.createElementVNode)(`div`,nh,[(0,t.createElementVNode)(`div`,rh,[(0,t.createElementVNode)(`span`,ih,(0,t.toDisplayString)(e.provider),1),e.defaultModel?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,ah,`默认 `+(0,t.toDisplayString)(e.defaultModel),1)):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,oh,(0,t.toDisplayString)(e.baseUrl||`未填接口地址`),1),(0,t.createElementVNode)(`div`,sh,(0,t.toDisplayString)(e.models.length)+` 个模型 · `+(0,t.toDisplayString)(e.clientType),1)]),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,"aria-label":`配置 `+e.provider,onClick:t=>te(e)},{default:(0,t.withCtx)(()=>[...r[6]||=[(0,t.createTextVNode)(`配置`,-1)]]),_:1},8,[`aria-label`,`onClick`])]))),128))]),P.value.length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,ch,`还没有渠道 —— 点右上「添加渠道」,填地址、拉模型、勾选后保存`)),j.value?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,lh,(0,t.toDisplayString)(j.value),1)):(0,t.createCommentVNode)(``,!0)],64))]))}}),[[`__scopeId`,`data-v-e17084d5`]]),Lh={class:`ap ap-skills`},Rh={key:0,class:`ap-error`},zh={key:0,class:`ap-empty`},Bh={key:0,class:`ap-tag`},Vh={key:0,class:`ap-empty`},Hh={class:`ap-form-actions`},Uh=G((0,t.defineComponent)({__name:`SkillsPage`,setup(e){let n=(0,r.useUiComponent)(`Button`),i=(0,r.useUiComponent)(`Input`),a=(0,r.useUiComponent)(`settingsRow`),o=(0,r.useUiComponent)(`settingsSection`),s=ct(),c=s.state,l=(0,t.ref)(``),u=(0,t.ref)(!1);(0,t.onMounted)(async()=>{await s.refresh(),await s.loadSkillCandidates()});async function d(){let e=l.value.trim();if(e){u.value=!0;try{await s.importSkill(e),l.value=``,await s.loadSkillCandidates()}catch(e){c.error=e instanceof Error?e.message:String(e)}finally{u.value=!1}}}return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Lh,[(0,t.unref)(c).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Rh,(0,t.toDisplayString)((0,t.unref)(c).error),1)):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(o),{title:`已安装的技能`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(c).skills,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(a),{key:e.name,label:e.name,description:e.description||`(无描述)`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n),{variant:`destructive`,size:`sm`,type:`button`,"aria-label":`卸载 `+e.name,onClick:n=>(0,t.unref)(s).removeSkill(e.name)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ce),{size:13,"aria-hidden":`true`}),r[1]||=(0,t.createTextVNode)(` 卸载 `,-1)]),_:1},8,[`aria-label`,`onClick`])]),_:2},1032,[`label`,`description`]))),128)),(0,t.unref)(c).skills.length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,zh,`还没有安装技能`))]),_:1}),(0,t.createVNode)((0,t.unref)(o),{title:`可导入的技能`,description:`扫描技能来源目录得到的候选`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(c).skillCandidates,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(a),{key:e.dir,label:e.name,description:e.description||`(无描述)`},{default:(0,t.withCtx)(()=>[e.installed?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Bh,`已安装`)):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:1,variant:`outline`,size:`sm`,type:`button`,"aria-label":`导入 `+e.name,onClick:n=>(0,t.unref)(s).importSkill(e.dir)},{default:(0,t.withCtx)(()=>[...r[2]||=[(0,t.createTextVNode)(` 导入 `,-1)]]),_:1},8,[`aria-label`,`onClick`]))]),_:2},1032,[`label`,`description`]))),128)),(0,t.unref)(c).skillCandidates.length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Vh,`来源目录里没有可用技能`))]),_:1}),(0,t.createVNode)((0,t.unref)(o),{title:`按目录导入`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`form`,{class:`ap-form-stack ap-skill-form`,onSubmit:(0,t.withModifiers)(d,[`prevent`])},[(0,t.createVNode)((0,t.unref)(i),{modelValue:l.value,"onUpdate:modelValue":r[0]||=e=>l.value=e,"aria-label":`技能目录`,placeholder:`{技能来源目录}/<技能名>`},null,8,[`modelValue`]),(0,t.createElementVNode)(`div`,Hh,[(0,t.createVNode)((0,t.unref)(n),{type:`submit`,size:`sm`,disabled:u.value||!l.value.trim()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ee),{size:13,"aria-hidden":`true`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(u.value?`导入中…`:`导入`),1)]),_:1},8,[`disabled`]),r[3]||=(0,t.createElementVNode)(`span`,{class:`ap-hint`},`填技能目录在来源目录下的绝对路径`,-1)])],32)]),_:1})]))}}),[[`__scopeId`,`data-v-c78572da`]]),Wh={class:`ap ap-mcp`},Gh={key:0,class:`ap-error`},Kh={key:1,class:`ap-mcp-list`},qh={class:`ap-list-head`},Jh={class:`ap-hint`},Yh={class:`ap-list`},Xh={class:`ap-list-row`},Zh={class:`ap-list-main`},Qh={class:`ap-list-title`},$h={class:`ap-list-name`},eg={class:`ap-list-desc`},tg={key:0,class:`ap-list-err`},ng={key:1,class:`ap-list-meta`},rg={key:2,class:`ap-readonly`},ig={key:0,class:`ap-server-detail`},ag={key:0,class:`ap-list-err`},og={key:1,class:`ap-hint`},sg={key:2,class:`ap-tagpool`},cg={key:3,class:`ap-hint`},lg={key:0,class:`ap-empty ap-empty-card`},ug={class:`ap-mcp-probe`},dg={key:1,class:`ap-probe`},fg={key:0,class:`ap-error`},pg={key:2,class:`ap-mcp-add`},mg={class:`ap-draft-probe`},hg={key:0,class:`ap-error`},gg={class:`ap-probe-title`},_g={class:`ap-probe-desc`},vg={key:0,class:`ap-tagpool`},yg={class:`ap-form-actions is-sticky`},bg=G((0,t.defineComponent)({__name:`McpPage`,setup(e){let n=(0,r.useUiComponent)(`Badge`),i=(0,r.useUiComponent)(`Button`),a=(0,r.useUiComponent)(`Input`),o=(0,r.useUiComponent)(`Select`),s=(0,r.useUiComponent)(`SelectContent`),c=(0,r.useUiComponent)(`SelectItem`),l=(0,r.useUiComponent)(`SelectTrigger`),u=(0,r.useUiComponent)(`SelectValue`),d=(0,r.useUiComponent)(`settingsRow`);(0,r.useUiComponent)(`settingsSection`);let f=ct(),p=f.state,m=[{label:`http`,value:`http`},{label:`sse`,value:`sse`},{label:`stdio`,value:`stdio`}],h=(0,t.ref)(!1),g=(0,t.ref)(!1),_=(0,t.ref)({name:``,kind:`http`,url:``,command:`node`,args:``}),v=(0,t.computed)(()=>_.value.kind===`stdio`),y=(0,t.ref)(!1),b=(0,t.ref)(null),x=(0,t.ref)(new Set),S=(0,t.ref)(!1),C=(0,t.ref)(null);(0,t.onMounted)(()=>void f.refresh());async function w(){y.value=!0,b.value=null,x.value=new Set;try{b.value=await f.probeMcp();let e=b.value.servers.filter(e=>e.status!==`completed`),t=(e.length?e:b.value.servers.slice(0,1)).map(e=>e.name);x.value=new Set(t)}finally{y.value=!1}}function T(e){return b.value?.servers.find(t=>t.name===e)}function E(e){return(b.value?.tools??[]).filter(t=>t.server===e)}function D(e){let t=new Set(x.value);t.has(e)?t.delete(e):t.add(e),x.value=t}function O(){_.value={name:``,kind:`http`,url:``,command:`node`,args:``},g.value=!0,p.error=``,C.value=null}function k(){g.value=!1,p.error=``}async function A(){S.value=!0,C.value=null,p.error=``;try{C.value=await f.probeMcpDraft({name:_.value.name.trim()||`draft`,kind:_.value.kind,...v.value?{command:_.value.command,args:_.value.args.split(/\s+/).filter(Boolean)}:{url:_.value.url}})}finally{S.value=!1}}async function j(){h.value=!0;try{await f.addMcp({name:_.value.name,kind:_.value.kind,...v.value?{command:_.value.command,args:_.value.args.split(/\s+/).filter(Boolean)}:{url:_.value.url}}),g.value=!1}catch(e){p.error=e instanceof Error?e.message:String(e)}finally{h.value=!1}}return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Wh,[(0,t.unref)(p).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Gh,(0,t.toDisplayString)((0,t.unref)(p).error),1)):(0,t.createCommentVNode)(``,!0),g.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,pg,[(0,t.createVNode)(Ym,{"back-label":`返回 MCP 列表`,title:`添加 MCP 服务`,description:`填完后回到列表查看;自带服务不会被这里改动。`,onBack:k}),(0,t.createElementVNode)(`form`,{class:`ap-form-stack ap-mcp-form`,onSubmit:(0,t.withModifiers)(j,[`prevent`])},[(0,t.createVNode)((0,t.unref)(d),{label:`名称`,description:`只作标签,字母、数字、下划线和短横线`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a),{modelValue:_.value.name,"onUpdate:modelValue":r[0]||=e=>_.value.name=e,class:`ap-input`,"aria-label":`MCP 名称`,placeholder:`给这个服务起个名字`,onInput:r[1]||=e=>C.value=null},null,8,[`modelValue`])]),_:1}),(0,t.createVNode)((0,t.unref)(d),{label:`类型`,description:`http / sse 用地址;stdio 启动本地命令`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(o),{modelValue:_.value.kind,"onUpdate:modelValue":[r[2]||=e=>_.value.kind=e,r[3]||=e=>C.value=null]},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(l),{class:`ap-select`,size:`sm`,"aria-label":`MCP 传输类型`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(u))]),_:1}),(0,t.createVNode)((0,t.unref)(s),{class:`settings-floating-layer`,position:`popper`,side:`bottom`,"side-offset":4},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(m,e=>(0,t.createVNode)((0,t.unref)(c),{key:e.value,value:e.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)]),_:2},1032,[`value`])),64))]),_:1})]),_:1},8,[`modelValue`])]),_:1}),v.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(d),{key:1,label:`命令`,description:`启动这个 MCP 服务的命令`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a),{modelValue:_.value.command,"onUpdate:modelValue":r[6]||=e=>_.value.command=e,class:`ap-input`,"aria-label":`MCP 命令`,placeholder:`例如:npx`,onInput:r[7]||=e=>C.value=null},null,8,[`modelValue`])]),_:1})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(d),{key:0,label:`URL`,description:`MCP 端点的完整地址`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a),{modelValue:_.value.url,"onUpdate:modelValue":r[4]||=e=>_.value.url=e,class:`ap-input`,"aria-label":`MCP URL`,placeholder:`https://{服务地址}/mcp`,onInput:r[5]||=e=>C.value=null},null,8,[`modelValue`])]),_:1})),v.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(d),{key:2,label:`参数`,description:`用空格分隔`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a),{modelValue:_.value.args,"onUpdate:modelValue":r[8]||=e=>_.value.args=e,class:`ap-input`,"aria-label":`MCP 参数`,placeholder:`用空格分隔`,onInput:r[9]||=e=>C.value=null},null,8,[`modelValue`])]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,mg,[(0,t.createVNode)((0,t.unref)(i),{variant:`outline`,size:`sm`,type:`button`,disabled:S.value,onClick:A},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(pe),{size:13,"aria-hidden":`true`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(S.value?`检测中…`:`检测配置`),1)]),_:1},8,[`disabled`]),r[16]||=(0,t.createElementVNode)(`span`,{class:`ap-hint`},`用表单里现在填的值连一次,不会保存`,-1)]),C.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:3,class:(0,t.normalizeClass)([`ap-probe-result`,{"is-ok":C.value.ok}])},[C.value.error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,hg,(0,t.toDisplayString)(C.value.error),1)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createElementVNode)(`p`,gg,[(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)([`ap-probe-state`,C.value.ok?`is-ok`:`is-bad`])},(0,t.toDisplayString)(C.value.ok?`连接成功`:`连接失败`),3),(0,t.createElementVNode)(`span`,_g,(0,t.toDisplayString)(C.value.servers.length)+` 个服务 · `+(0,t.toDisplayString)(C.value.tools.length)+` 个工具`,1)]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(C.value.servers,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`p`,{key:e.name,class:(0,t.normalizeClass)([`ap-probe-desc`,{"is-bad-text":e.status!==`completed`}])},[(0,t.createTextVNode)((0,t.toDisplayString)(e.name)+` · `+(0,t.toDisplayString)(e.status)+` · `+(0,t.toDisplayString)(e.tools)+` 个工具`,1),e.error?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)(` · `+(0,t.toDisplayString)(e.error),1)],64)):(0,t.createCommentVNode)(``,!0)],2))),128)),C.value.tools.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,vg,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(C.value.tools,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:e.fullName,variant:`secondary`,title:e.description},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.name),1)]),_:2},1032,[`title`]))),128))])):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(C.value.warnings,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`p`,{key:e,class:`ap-hint is-bad`},(0,t.toDisplayString)(e),1))),128))],64))],2)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,yg,[(0,t.createVNode)((0,t.unref)(i),{variant:`outline`,size:`sm`,type:`button`,onClick:k},{default:(0,t.withCtx)(()=>[...r[17]||=[(0,t.createTextVNode)(`取消`,-1)]]),_:1}),(0,t.createVNode)((0,t.unref)(i),{type:`submit`,size:`sm`,disabled:h.value||!_.value.name.trim()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(me),{size:13,"aria-hidden":`true`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(h.value?`保存中…`:`添加`),1)]),_:1},8,[`disabled`])])],32)])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Kh,[(0,t.createElementVNode)(`div`,qh,[(0,t.createElementVNode)(`span`,Jh,(0,t.toDisplayString)((0,t.unref)(p).mcpServers.length)+` 个已配置 · 自带服务只读`,1),(0,t.createVNode)((0,t.unref)(i),{size:`sm`,type:`button`,onClick:O},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(me),{size:13,"aria-hidden":`true`}),r[10]||=(0,t.createTextVNode)(` 添加 MCP `,-1)]),_:1})]),(0,t.createElementVNode)(`ul`,Yh,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(p).mcpServers,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:e.name,class:`ap-list-item`},[(0,t.createElementVNode)(`div`,Xh,[(0,t.createElementVNode)(`div`,Zh,[(0,t.createElementVNode)(`div`,Qh,[(0,t.createElementVNode)(`span`,$h,(0,t.toDisplayString)(e.name),1),e.builtin?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:0,variant:`secondary`},{default:(0,t.withCtx)(()=>[...r[11]||=[(0,t.createTextVNode)(`自带`,-1)]]),_:1})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:1,variant:`outline`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.permission??`auto`),1)]),_:2},1024)),e.invalid?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:2,variant:`outline`},{default:(0,t.withCtx)(()=>[...r[12]||=[(0,t.createTextVNode)(`配置有误`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0),T(e.name)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:3,class:(0,t.normalizeClass)([`ap-server-state`,T(e.name).status===`completed`?`is-ok`:`is-bad`])},(0,t.toDisplayString)(T(e.name).status===`completed`?`通 · `+T(e.name).tools+` 个工具`:`没通`),3)):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,eg,(0,t.toDisplayString)(String(e.config.url||e.config.command||``)||`(没有地址)`),1),e.invalid?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,tg,(0,t.toDisplayString)(e.invalid),1)):e.builtin?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ng,`随智能助手内置:不能修改,也不能删除`)):(0,t.createCommentVNode)(``,!0)]),T(e.name)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i),{key:0,variant:`ghost`,size:`xs`,type:`button`,"aria-expanded":x.value.has(e.name),"aria-label":`查看 `+e.name+` 的检测结果`,onClick:t=>D(e.name)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(x.value.has(e.name)?`收起`:`详情`),1)]),_:2},1032,[`aria-expanded`,`aria-label`,`onClick`])):(0,t.createCommentVNode)(``,!0),e.builtin?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,rg,`只读`)):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i),{key:1,variant:`destructive`,size:`sm`,type:`button`,disabled:h.value,"aria-label":`删除 MCP `+e.name,onClick:n=>(0,t.unref)(f).removeMcp(e.name)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ce),{size:13,"aria-hidden":`true`}),r[13]||=(0,t.createTextVNode)(` 删除 `,-1)]),_:1},8,[`disabled`,`aria-label`,`onClick`]))]),T(e.name)&&x.value.has(e.name)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ig,[T(e.name).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,ag,(0,t.toDisplayString)(T(e.name).error),1)):(0,t.createCommentVNode)(``,!0),E(e.name).length?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,og,(0,t.toDisplayString)(E(e.name).length)+` 个工具 · `+(0,t.toDisplayString)(T(e.name).transport||`连接`)+` · `+(0,t.toDisplayString)(T(e.name).durationMs)+`ms `,1)):(0,t.createCommentVNode)(``,!0),E(e.name).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,sg,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(E(e.name),e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:e.fullName,variant:`secondary`,title:e.description},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.name),1)]),_:2},1032,[`title`]))),128))])):T(e.name).status===`completed`?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,cg,`连上了,但没发现任何工具。`)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0)]))),128))]),(0,t.unref)(p).mcpServers.length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,lg,[(0,t.createVNode)((0,t.unref)(pe),{size:20,"aria-hidden":`true`}),r[14]||=(0,t.createElementVNode)(`strong`,null,`还没有 MCP 服务`,-1),r[15]||=(0,t.createElementVNode)(`span`,null,`点右上「添加 MCP」,填地址或命令就能接上外部工具。`,-1)])),(0,t.createElementVNode)(`div`,ug,[(0,t.createVNode)((0,t.unref)(i),{variant:`outline`,size:`sm`,type:`button`,disabled:y.value||!(0,t.unref)(p).mcpServers.length,onClick:w},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(pe),{size:13,"aria-hidden":`true`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(y.value?`连接中…`:`检查连接`),1)]),_:1},8,[`disabled`])]),b.value&&(b.value.error||b.value.warnings.length)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,dg,[b.value.error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,fg,(0,t.toDisplayString)(b.value.error),1)):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(b.value.warnings,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`p`,{key:e,class:`ap-hint is-bad`},(0,t.toDisplayString)(e),1))),128))])):(0,t.createCommentVNode)(``,!0)]))]))}}),[[`__scopeId`,`data-v-a9a72e33`]]),xg={class:`ap ap-rules`},Sg={key:0,class:`ap-error`},Cg={class:`ap-rule-detail-head`},wg={class:`ap-rule-detail-actions`},Tg={class:`ap-rule-detail-title`},Eg={class:`ap-rule-toolbar`},Dg={class:`ap-hint`},Og={class:`ap-rule-main`},kg={class:`ap-rule-title`},Ag={class:`ap-rule-pattern`},jg={key:0,class:`ap-rule-badge`},Mg={class:`ap-rule-desc`},Ng={class:`ap-rule-actions`},Pg={key:0,class:`ap-empty`},Fg={class:`ap-form-actions`},Ig={class:`ap-quick`},Lg=G((0,t.defineComponent)({__name:`RulesPage`,setup(e){let n=(0,r.useUiComponent)(`Button`),i=(0,r.useUiComponent)(`Input`),a=(0,r.useUiComponent)(`Switch`),o=(0,r.useUiComponent)(`settingsRow`),s=(0,r.useUiComponent)(`settingsSection`),c=ct(),l=c.state,u=(0,r.useCanvasContextOrRender)().ctx.tryGet(`feedback`),d=(0,t.ref)(``),f=(0,t.ref)(!1),p=[{id:`exec`,pattern:`exec_command`,ask:!0,label:`执行命令`},{id:`input`,pattern:`input_command`,ask:!0,label:`向命令写入`},{id:`write`,pattern:`write_file`,ask:!0,label:`写文件`},{id:`edit`,pattern:`edit_file`,ask:!0,label:`改文件`}];(0,t.onMounted)(()=>void c.refresh());let m=(0,t.ref)(``),h=(0,t.ref)({pattern:``,label:``}),g=(0,t.computed)(()=>l.policy.rules.find(e=>e.id===m.value)),_=(0,t.computed)(()=>{let e=g.value;return e?h.value.pattern.trim()!==e.pattern||h.value.label.trim()!==(e.label??``):!1}),v=e=>p.find(t=>t.id===e.id||t.pattern===e.pattern);async function y(e,t=l.policy.enabled){f.value=!0;try{await c.savePolicy({enabled:t,rules:e})}finally{f.value=!1}}function b(){y(l.policy.rules,!l.policy.enabled)}function S(e){y(l.policy.rules.map(t=>t.id===e.id?{...t,ask:!t.ask}:t))}function C(e){y(l.policy.rules.filter(t=>t.id!==e.id))}function w(){let e=d.value.trim();e&&(d.value=``,y([...l.policy.rules,{id:e,pattern:e,ask:!0}]))}function T(e,t){y([...l.policy.rules,{id:e,pattern:e,ask:!0,...t?{label:t}:{}}])}function E(e){m.value=e.id,h.value={pattern:e.pattern,label:e.label??``},l.error=``}function D(){m.value=``,l.error=``}async function O(){let e=g.value,t=h.value.pattern.trim();if(e){if(!t){l.error=`匹配模式不能为空`;return}await y(l.policy.rules.map(n=>n.id===e.id?{id:n.id,pattern:t,ask:n.ask,...h.value.label.trim()?{label:h.value.label.trim()}:{}}:n)),l.error||D()}}async function k(e){let t=v(e);t&&await u?.confirm({title:`恢复这条规则的默认值?`,description:`会把匹配模式改成「`+t.pattern+`」,说明改成「`+(t.label??``)+`」。`,confirmText:`恢复默认`,cancelText:`取消`})&&await y(l.policy.rules.map(n=>n.id===e.id?{...n,pattern:t.pattern,label:t.label}:n))}async function A(){if(await u?.confirm({title:`恢复全部审批规则?`,description:`会丢掉你自建的规则,并把这 `+p.length+` 条出厂规则放回来;总开关也会重新打开。`,confirmText:`恢复默认`,cancelText:`取消`,tone:`destructive`})){f.value=!0;try{await c.restorePolicy()}finally{f.value=!1}}}return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xg,[(0,t.unref)(l).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Sg,(0,t.toDisplayString)((0,t.unref)(l).error),1)):(0,t.createCommentVNode)(``,!0),g.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createElementVNode)(`div`,Cg,[(0,t.createVNode)((0,t.unref)(n),{variant:`ghost`,size:`xs`,type:`button`,class:`ap-rule-back`,onClick:D},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(x),{size:14,"aria-hidden":`true`}),r[8]||=(0,t.createTextVNode)(` 返回规则列表 `,-1)]),_:1}),(0,t.createElementVNode)(`span`,wg,[v(g.value)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:0,variant:`outline`,size:`sm`,type:`button`,disabled:f.value,"aria-label":`恢复这条规则的默认值`,onClick:r[0]||=e=>k(g.value)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ge),{size:13,"aria-hidden":`true`}),r[9]||=(0,t.createTextVNode)(` 恢复默认 `,-1)]),_:1},8,[`disabled`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(n),{type:`button`,size:`sm`,disabled:f.value||!_.value,onClick:O},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(_e),{size:13,"aria-hidden":`true`}),r[10]||=(0,t.createTextVNode)(` 保存 `,-1)]),_:1},8,[`disabled`])])]),(0,t.createElementVNode)(`h3`,Tg,`编辑规则 · `+(0,t.toDisplayString)(g.value.pattern),1),r[11]||=(0,t.createElementVNode)(`p`,{class:`ap-hint`},`匹配模式支持 * 通配,例如 mcp__smart__* 或 exec_command。`,-1),(0,t.createVNode)((0,t.unref)(s),{title:`规则`,class:`ap-flush-card`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(o),{label:`匹配模式`,description:`工具名,或带 * 的通配;例如 mcp__{服务名}__*`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(i),{modelValue:h.value.pattern,"onUpdate:modelValue":r[1]||=e=>h.value.pattern=e,class:`ap-input`,"aria-label":`匹配模式`,placeholder:`例如:exec_command`},null,8,[`modelValue`])]),_:1}),(0,t.createVNode)((0,t.unref)(o),{label:`说明`,description:`只是给人看的标签,可以留空`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(i),{modelValue:h.value.label,"onUpdate:modelValue":r[2]||=e=>h.value.label=e,class:`ap-input`,"aria-label":`规则说明`,placeholder:`例如:执行命令`},null,8,[`modelValue`])]),_:1}),(0,t.createVNode)((0,t.unref)(o),{label:`命中时询问`,description:`关掉 = 命中这条时直接放行`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a),{"model-value":g.value.ask,"aria-label":`命中时询问`,"onUpdate:modelValue":r[3]||=e=>S(g.value)},null,8,[`model-value`])]),_:1})]),_:1})],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.createElementVNode)(`div`,Eg,[(0,t.createElementVNode)(`span`,Dg,(0,t.toDisplayString)((0,t.unref)(l).policy.rules.length)+` 条规则 · 点「编辑」改模式与说明`,1),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,disabled:f.value,onClick:A},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ge),{size:13,"aria-hidden":`true`}),r[12]||=(0,t.createTextVNode)(` 恢复默认 `,-1)]),_:1},8,[`disabled`])]),(0,t.createVNode)((0,t.unref)(s),{title:`总开关`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(o),{label:`接受审核`,description:`打开 = 命中下面规则的工具先问你;关掉 = 完全自动授权,全部放行`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(a),{"model-value":(0,t.unref)(l).policy.enabled,"aria-label":`接受审核`,"onUpdate:modelValue":b},null,8,[`model-value`])]),_:1})]),_:1}),(0,t.createVNode)((0,t.unref)(s),{title:`需要审批的工具`,description:(0,t.unref)(l).policy.rules.length+` 条规则`,class:`ap-flush-card`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(l).policy.rules,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:`ap-rule-row`},[(0,t.createElementVNode)(`div`,Og,[(0,t.createElementVNode)(`div`,kg,[(0,t.createElementVNode)(`span`,Ag,(0,t.toDisplayString)(e.pattern),1),v(e)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,jg,`出厂`)):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,Mg,(0,t.toDisplayString)(e.label||(e.ask?`命中即询问`:`直接放行`)),1)]),(0,t.createElementVNode)(`div`,Ng,[(0,t.createVNode)((0,t.unref)(a),{"model-value":e.ask,"aria-label":`切换 `+e.pattern+` 是否需要审批`,"onUpdate:modelValue":t=>S(e)},null,8,[`model-value`,`aria-label`,`onUpdate:modelValue`]),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,"aria-label":`编辑规则 `+e.pattern,onClick:t=>E(e)},{default:(0,t.withCtx)(()=>[...r[13]||=[(0,t.createTextVNode)(`编辑`,-1)]]),_:1},8,[`aria-label`,`onClick`]),(0,t.createVNode)((0,t.unref)(n),{variant:`destructive`,size:`icon-sm`,type:`button`,"aria-label":`删除规则 `+e.pattern,disabled:f.value,onClick:t=>C(e)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ce),{size:13,"aria-hidden":`true`})]),_:1},8,[`aria-label`,`disabled`,`onClick`])])]))),128)),(0,t.unref)(l).policy.rules.length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Pg,`没有任何规则 —— 一切都会被放行`))]),_:1},8,[`description`]),(0,t.createVNode)((0,t.unref)(s),{title:`添加规则`,description:`匹配模式支持 * 通配,例如 mcp__smart__* 或 exec_command`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`form`,{class:`ap-form-stack ap-rule-form`,onSubmit:(0,t.withModifiers)(w,[`prevent`])},[(0,t.createElementVNode)(`div`,Fg,[(0,t.createVNode)((0,t.unref)(i),{modelValue:d.value,"onUpdate:modelValue":r[4]||=e=>d.value=e,"aria-label":`匹配模式`,placeholder:`例如:mcp__{服务名}__*`},null,8,[`modelValue`]),(0,t.createVNode)((0,t.unref)(n),{type:`submit`,size:`sm`,disabled:f.value||!d.value.trim()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(me),{size:13,"aria-hidden":`true`}),r[14]||=(0,t.createTextVNode)(` 添加 `,-1)]),_:1},8,[`disabled`])]),(0,t.createElementVNode)(`div`,Ig,[r[18]||=(0,t.createElementVNode)(`span`,{class:`ap-tag`},`快加:`,-1),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,onClick:r[5]||=e=>T(`mcp__smart__*`,`smart MCP 全部工具`)},{default:(0,t.withCtx)(()=>[...r[15]||=[(0,t.createTextVNode)(`smart MCP`,-1)]]),_:1}),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,onClick:r[6]||=e=>T(`exec_command`,`执行命令`)},{default:(0,t.withCtx)(()=>[...r[16]||=[(0,t.createTextVNode)(`执行命令`,-1)]]),_:1}),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`xs`,type:`button`,onClick:r[7]||=e=>T(`write_file`,`写文件`)},{default:(0,t.withCtx)(()=>[...r[17]||=[(0,t.createTextVNode)(`写文件`,-1)]]),_:1})])],32)]),_:1})],64))]))}}),[[`__scopeId`,`data-v-09d02ab7`]]),Rg={class:`pv`},zg={class:`pv-head`},Bg={class:`pv-head-text`},Vg={class:`pv-count`},Hg={key:0,class:`pv-empty`},Ug={key:0,class:`pv-group`},Wg={class:`pv-chips`},Gg={key:1,class:`pv-group`},Kg={class:`pv-chips`},qg={key:2,class:`pv-empty`},Jg=G((0,t.defineComponent)({__name:`PromptVariables`,props:{scope:{default:`content`},readonly:{type:Boolean,default:!1}},emits:[`insert`],setup(e,{emit:n}){let i=e,a=n,o=(0,r.useUiComponent)(`Button`),s=(0,r.useUiComponent)(`Input`),c=ct().state,l=(0,t.ref)(``),u=(0,t.computed)(()=>{let e=l.value.trim().toLowerCase();return(c.agentContext?.placeholders??[]).filter(t=>i.scope===`content`&&t.token===`{{AGENTS_MD}}`?!1:e?t.token.toLowerCase().includes(e)||t.description.toLowerCase().includes(e):!0)}),d=(0,t.computed)(()=>u.value.filter(e=>e.source===`plume-canvas`)),f=(0,t.computed)(()=>u.value.filter(e=>e.source===`harness`));function p(e){i.readonly||a(`insert`,e.token)}function m(e){return e.description+(e.value?`(当前:`+e.value+`)`:``)}return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Rg,[(0,t.createElementVNode)(`div`,zg,[(0,t.createElementVNode)(`div`,Bg,[n[1]||=(0,t.createElementVNode)(`span`,{class:`pv-title`},`可用变量`,-1),(0,t.createElementVNode)(`span`,Vg,(0,t.toDisplayString)(u.value.length)+` 个`,1)]),(0,t.createVNode)((0,t.unref)(s),{modelValue:l.value,"onUpdate:modelValue":n[0]||=e=>l.value=e,class:`pv-search`,"aria-label":`筛选提示词变量`,placeholder:`筛选变量…`},null,8,[`modelValue`])]),n[4]||=(0,t.createElementVNode)(`p`,{class:`pv-hint`},`点一下插到光标处;每次建会话时换成当时的值。`,-1),(0,t.unref)(c).agentContext?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[d.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ug,[n[2]||=(0,t.createElementVNode)(`span`,{class:`pv-group-title`},`本站运行环境`,-1),(0,t.createElementVNode)(`div`,Wg,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(d.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(o),{key:e.token,variant:`outline`,size:`xs`,type:`button`,class:`pv-chip`,title:m(e),"aria-label":`插入变量 `+e.token,onClick:t=>p(e)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`code`,null,(0,t.toDisplayString)(e.token),1)]),_:2},1032,[`title`,`aria-label`,`onClick`]))),128))])])):(0,t.createCommentVNode)(``,!0),f.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Gg,[n[3]||=(0,t.createElementVNode)(`span`,{class:`pv-group-title`},`运行时提供`,-1),(0,t.createElementVNode)(`div`,Kg,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(f.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(o),{key:e.token,variant:`outline`,size:`xs`,type:`button`,class:`pv-chip`,title:m(e),"aria-label":`插入变量 `+e.token,onClick:t=>p(e)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`code`,null,(0,t.toDisplayString)(e.token),1)]),_:2},1032,[`title`,`aria-label`,`onClick`]))),128))])])):(0,t.createCommentVNode)(``,!0),u.value.length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,qg,`没有匹配的变量`))],64)):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Hg,`还没连上后台,变量清单稍后出现。`))]))}}),[[`__scopeId`,`data-v-885b18f2`]]),Yg={class:`ped`},Xg=G((0,t.defineComponent)({__name:`PromptEditor`,props:{modelValue:{},label:{},placeholder:{},readonly:{type:Boolean,default:!1},scope:{default:`content`},height:{default:220}},emits:[`update:modelValue`],setup(e,{emit:n}){let i=e,a=n,o=(0,r.useUiComponent)(`Textarea`),s=(0,t.ref)(null);function c(){let e=s.value?.$el;return e instanceof HTMLTextAreaElement?e:null}function l(e){if(i.readonly)return;let t=c();if(!t){a(`update:modelValue`,i.modelValue+e);return}let n=t.selectionStart??i.modelValue.length,r=t.selectionEnd??n;a(`update:modelValue`,i.modelValue.slice(0,n)+e+i.modelValue.slice(r)),requestAnimationFrame(()=>{t.focus(),t.setSelectionRange(n+e.length,n+e.length)})}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Yg,[(0,t.createVNode)((0,t.unref)(o),{ref_key:`textarea`,ref:s,"model-value":e.modelValue,readonly:e.readonly,"aria-label":e.label,placeholder:e.placeholder,class:`ped-textarea`,style:(0,t.normalizeStyle)({height:e.height+`px`}),"onUpdate:modelValue":r[0]||=e=>a(`update:modelValue`,String(e))},null,8,[`model-value`,`readonly`,`aria-label`,`placeholder`,`style`]),(0,t.createVNode)(Jg,{scope:e.scope,readonly:e.readonly,onInsert:l},null,8,[`scope`,`readonly`])]))}}),[[`__scopeId`,`data-v-5e15f21d`]]),Zg={class:`ap ap-prompt`},Qg={key:0,class:`ap-error`},$g={key:1,class:`ap-warnblock`},e_={class:`ap-warnline`},t_={class:`ap-list-head`},n_={class:`ap-hint`},r_={class:`ap-list-actions`},i_={class:`ap-list`},a_={class:`ap-list-main`},o_={class:`ap-list-title`},s_={class:`ap-list-name`},c_={class:`ap-badge`},l_={key:0,class:`ap-badge is-on`},u_={class:`ap-list-desc`},d_={class:`ap-list-meta`},f_={key:0,class:`ap-empty`},p_={class:`ap-detail-form`},m_={class:`ap-field`},h_={class:`ap-field`},g_={class:`ap-field`},__={class:`ap-field-head`},v_={class:`ap-count`},y_={class:`ap-detail-foot is-sticky`},b_={key:0,class:`ap-hint ap-ok`},x_={key:1,class:`ap-hint`},S_={key:2,class:`ap-hint`},C_=G((0,t.defineComponent)({__name:`PromptPage`,setup(e){let n=(0,r.useUiComponent)(`Button`),i=(0,r.useUiComponent)(`Input`),a=(0,r.useUiComponent)(`Textarea`),o=ct(),s=o.state,c=(0,r.useCanvasContextOrRender)().ctx.tryGet(`feedback`),l=(0,t.ref)([]),u=(0,t.ref)(``),d=(0,t.ref)(!1),f=(0,t.ref)(!1),p=(0,t.ref)(!1),m=0;function h(e){return e.map(e=>({...e}))}function g(){l.value=h(s.prompts),l.value.some(e=>e.id===u.value)||(u.value=l.value[0]?.id??``),f.value=!1}(0,t.onMounted)(async()=>{await o.refresh(),g()});let _=(0,t.computed)(()=>l.value.find(e=>e.id===u.value)),v=(0,t.ref)(``),y=(0,t.computed)(()=>JSON.stringify(l.value)!==JSON.stringify(s.prompts)),b=(0,t.computed)(()=>!s.templateHealth.ok);function x(e){u.value=e.id,v.value=e.id,f.value=!1}function S(){v.value=``,f.value=!1}async function C(){let e=_.value;!e||!e.builtin||await c?.confirm({title:`恢复「`+e.name+`」的默认内容?`,description:`会把名字和正文换回出厂版本。现在的修改会丢掉(点保存后才写回后台)。`,confirmText:`恢复默认`,cancelText:`取消`})&&(e.name=e.defaultName??e.name,e.text=e.defaultText??``,e.description=e.defaultDescription??``,f.value=!1)}function w(){let e=`user-`+Date.now()+`-`+ ++m;l.value.push({id:e,name:`新模式`,description:``,text:``}),u.value=e,v.value=e,f.value=!1}function T(){let e=_.value;!e||e.builtin||(l.value=l.value.filter(t=>t.id!==e.id),u.value=l.value[0]?.id??``,v.value=``,f.value=!1)}async function E(){d.value=!0;try{await o.savePrompts(h(l.value)),g(),f.value=!0}catch(e){s.error=e instanceof Error?e.message:String(e)}finally{d.value=!1}}async function D(){p.value=!0;try{await o.restoreTemplate()}finally{p.value=!1}}function k(){f.value=!1}function A(e){let t=e.replace(/\s+/g,` `);return t.length>64?t.slice(0,64)+`…`:t}return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Zg,[(0,t.unref)(s).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Qg,(0,t.toDisplayString)((0,t.unref)(s).error),1)):(0,t.createCommentVNode)(``,!0),b.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,$g,[(0,t.createElementVNode)(`p`,e_,[(0,t.createVNode)((0,t.unref)(we),{size:13}),(0,t.createElementVNode)(`span`,null,[r[3]||=(0,t.createTextVNode)(`提示词模板坏了:缺 `,-1),(0,t.createElementVNode)(`code`,null,(0,t.toDisplayString)((0,t.unref)(s).templateHealth.missing.join(`、`)),1),r[4]||=(0,t.createTextVNode)(`, 这会让这里写的提示词一个字都进不到模型。`,-1)])]),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,disabled:p.value,onClick:D},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ke),{size:13,"aria-hidden":`true`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(p.value?`恢复中…`:`恢复出厂模板`),1)]),_:1},8,[`disabled`])])):(0,t.createCommentVNode)(``,!0),v.value?_.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:3},[(0,t.createVNode)(Ym,{"back-label":`返回模式列表`,title:`编辑模式 · `+(_.value.name||`未命名模式`),description:`选中这套模式时,这段内容会接在 Agent 提示词后面一起进模型;变量在下面点一下就能插入。`,onBack:S},{actions:(0,t.withCtx)(()=>[_.value.builtin?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:0,variant:`outline`,size:`xs`,type:`button`,"aria-label":`恢复这条模式的默认内容`,onClick:C},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ge),{size:12,"aria-hidden":`true`}),r[8]||=(0,t.createTextVNode)(` 恢复默认 `,-1)]),_:1})):(0,t.createCommentVNode)(``,!0),_.value.builtin?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:1,variant:`destructive`,size:`xs`,type:`button`,"aria-label":`删除 `+_.value.name,onClick:T},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Ce),{size:12,"aria-hidden":`true`}),r[9]||=(0,t.createTextVNode)(` 删除 `,-1)]),_:1},8,[`aria-label`]))]),_:1},8,[`title`]),(0,t.createElementVNode)(`div`,p_,[(0,t.createElementVNode)(`label`,m_,[r[10]||=(0,t.createElementVNode)(`span`,{class:`ap-field-label`},`模式名称`,-1),(0,t.createVNode)((0,t.unref)(i),{modelValue:_.value.name,"onUpdate:modelValue":r[0]||=e=>_.value.name=e,class:`ap-input`,"aria-label":`模式名称`,placeholder:`显示在模式选择里`,onInput:k},null,8,[`modelValue`])]),(0,t.createElementVNode)(`label`,h_,[r[11]||=(0,t.createElementVNode)(`span`,{class:`ap-field-label`},`描述`,-1),(0,t.createVNode)((0,t.unref)(a),{modelValue:_.value.description,"onUpdate:modelValue":r[1]||=e=>_.value.description=e,class:`ap-textarea`,rows:`3`,"aria-label":`模式描述`,placeholder:`一句话说清这套模式怎么做事,例如:先出分镜和台词,确认后再生成画面`,onInput:k},null,8,[`modelValue`]),r[12]||=(0,t.createElementVNode)(`span`,{class:`ap-hint`},`显示在模式下拉的名字下面,让选之前就能看懂它干什么。不写就显示默认说明。`,-1)]),(0,t.createElementVNode)(`div`,g_,[(0,t.createElementVNode)(`div`,__,[r[13]||=(0,t.createElementVNode)(`span`,{class:`ap-field-label`},`追加提示词`,-1),(0,t.createElementVNode)(`span`,v_,(0,t.toDisplayString)(_.value.text.length)+` 字`,1)]),(0,t.createVNode)(Xg,{modelValue:_.value.text,"onUpdate:modelValue":[r[2]||=e=>_.value.text=e,k],label:`模式提示词正文`,placeholder:`写这套模式的追加指令…`,height:240},null,8,[`modelValue`])]),(0,t.createElementVNode)(`div`,y_,[f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,b_,[(0,t.createVNode)((0,t.unref)(O),{size:12}),r[14]||=(0,t.createTextVNode)(` 已保存`,-1)])):y.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,x_,`有未保存的修改`)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,S_,`存在后台,换台机器也在`)),(0,t.createVNode)((0,t.unref)(n),{type:`button`,size:`sm`,disabled:d.value||!y.value,onClick:E},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(_e),{size:13,"aria-hidden":`true`}),r[15]||=(0,t.createTextVNode)(` 保存 `,-1)]),_:1},8,[`disabled`])])])],64)):(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.createElementVNode)(`div`,t_,[(0,t.createElementVNode)(`span`,n_,(0,t.toDisplayString)(l.value.length)+` 套模式 · 选中哪套,就把它那一段接在 Agent 提示词后面`,1),(0,t.createElementVNode)(`div`,r_,[y.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n),{key:0,type:`button`,size:`sm`,disabled:d.value,onClick:E},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(_e),{size:13,"aria-hidden":`true`}),r[5]||=(0,t.createTextVNode)(` 保存修改 `,-1)]),_:1},8,[`disabled`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(n),{size:`sm`,type:`button`,onClick:w},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(me),{size:13,"aria-hidden":`true`}),r[6]||=(0,t.createTextVNode)(` 新建模式 `,-1)]),_:1})])]),(0,t.createElementVNode)(`ul`,i_,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(l.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:e.id,class:`ap-list-row`},[(0,t.createElementVNode)(`div`,a_,[(0,t.createElementVNode)(`div`,o_,[(0,t.createElementVNode)(`span`,s_,(0,t.toDisplayString)(e.name||`未命名模式`),1),(0,t.createElementVNode)(`span`,c_,(0,t.toDisplayString)(e.builtin?`内置 · 不可删除`:`自建`),1),e.id===(0,t.unref)(s).activePromptId?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,l_,`当前使用`)):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,u_,(0,t.toDisplayString)(e.text?A(e.text):`还没有正文`),1),(0,t.createElementVNode)(`div`,d_,(0,t.toDisplayString)(e.text.length)+` 字`,1)]),(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,"aria-label":`编辑 `+e.name,onClick:t=>x(e)},{default:(0,t.withCtx)(()=>[...r[7]||=[(0,t.createTextVNode)(`编辑`,-1)]]),_:1},8,[`aria-label`,`onClick`])]))),128))]),l.value.length?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,f_,`还没有模式提示词`))],64))]))}}),[[`__scopeId`,`data-v-47027ef9`]]),w_={class:`ap ap-title-model`},T_={key:0,class:`ap-error`},E_={class:`ap-form-actions`},D_={key:0,class:`ap-hint`},O_={key:1,class:`ap-hint`},k_=`__default__`,A_=G((0,t.defineComponent)({__name:`TitleModelPage`,setup(e){let n=(0,r.useUiComponent)(`Button`),i=(0,r.useUiComponent)(`Select`),a=(0,r.useUiComponent)(`SelectContent`),o=(0,r.useUiComponent)(`SelectItem`),s=(0,r.useUiComponent)(`SelectTrigger`),c=(0,r.useUiComponent)(`SelectValue`),l=(0,r.useUiComponent)(`settingsRow`),u=(0,r.useUiComponent)(`settingsSection`),d=ct(),f=d.state,p=(0,t.ref)(``),m=(0,t.ref)(``),h=(0,t.ref)(!1),g=(0,t.ref)(!1);(0,t.onMounted)(async()=>{await d.refresh(),await d.loadTitleModel(),p.value=f.titleModel.provider,m.value=f.titleModel.modelId});let _=(0,t.computed)(()=>{let e=new Map;for(let t of f.models){if(!t.hasKey)continue;let n=e.get(t.provider)??[];n.push(t.modelId),e.set(t.provider,n)}return[...e.entries()].map(([e,t])=>({provider:e,models:t}))}),v=(0,t.computed)(()=>_.value.find(e=>e.provider===p.value)?.models??[]),y=(0,t.computed)(()=>[{label:`(用会话默认模型)`,value:k_},..._.value.map(e=>({label:e.provider,value:e.provider}))]),b=(0,t.computed)(()=>[{label:`(用会话默认模型)`,value:k_},...v.value.map(e=>({label:e,value:e}))]);function x(e){p.value=e===k_?``:e,m.value=v.value[0]??``,g.value=!1}function S(e){m.value=e===k_?``:e,g.value=!1}async function C(){h.value=!0;try{await d.saveTitleModel(p.value,m.value),g.value=!0}catch(e){f.error=e instanceof Error?e.message:String(e)}finally{h.value=!1}}return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,w_,[(0,t.unref)(f).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,T_,(0,t.toDisplayString)((0,t.unref)(f).error),1)):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(u),{title:`会话标题模型`,description:`新会话第一轮结束后,用这个模型总结对话内容生成标题(替代「首句截断」)。两个都留空 = 用会话默认模型;起名失败时仍回落首句截断,不影响对话。`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(l),{label:`渠道`,description:`只有配了密钥的渠道能选`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(i),{"model-value":p.value||k_,"onUpdate:modelValue":r[0]||=e=>x(String(e))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(s),{class:`ap-select`,size:`sm`,"aria-label":`会话标题渠道`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(c),{placeholder:`选择渠道`})]),_:1}),(0,t.createVNode)((0,t.unref)(a),{class:`settings-floating-layer`,position:`popper`,side:`bottom`,"side-offset":4},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(y.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(o),{key:e.value,value:e.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)]),_:2},1032,[`value`]))),128))]),_:1})]),_:1},8,[`model-value`])]),_:1}),(0,t.createVNode)((0,t.unref)(l),{label:`模型`,description:`留空 = 跟随会话默认模型`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(i),{"model-value":m.value||k_,disabled:!p.value,"onUpdate:modelValue":r[1]||=e=>S(String(e))},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(s),{class:`ap-select`,size:`sm`,"aria-label":`会话标题模型`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(c),{placeholder:`选择模型`})]),_:1}),(0,t.createVNode)((0,t.unref)(a),{class:`settings-floating-layer`,position:`popper`,side:`bottom`,"side-offset":4},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(b.value,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(o),{key:e.value,value:e.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)]),_:2},1032,[`value`]))),128))]),_:1})]),_:1},8,[`model-value`,`disabled`])]),_:1}),(0,t.createVNode)((0,t.unref)(l),{label:`保存`,description:`保存后下一个新会话生效`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,E_,[(0,t.createVNode)((0,t.unref)(n),{type:`button`,size:`sm`,disabled:h.value||!p.value&&!m.value,onClick:C},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(_e),{size:13,"aria-hidden":`true`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(h.value?`保存中…`:`保存`),1)]),_:1},8,[`disabled`]),g.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,D_,`已保存`)):!p.value&&!m.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,O_,`当前用会话默认模型`)):(0,t.createCommentVNode)(``,!0)])]),_:1})]),_:1})]))}}),[[`__scopeId`,`data-v-aefc556c`]]),j_={class:`ap ap-agent-prompt`},M_={key:0,class:`ap-error`},N_={key:1,class:`ap-warnblock`},P_={class:`ap-warnline`},F_={class:`ap-prompt-form`},I_={class:`ap-field`},L_={class:`ap-field-head`},R_={class:`ap-count`},z_={class:`ap-detail-foot is-sticky`},B_={key:0,class:`ap-hint ap-ok`},V_={key:1,class:`ap-hint`},H_={key:2,class:`ap-hint`},U_={class:`ap-detail-actions`},W_=G((0,t.defineComponent)({__name:`AgentPromptPage`,setup(e){let n=(0,r.useUiComponent)(`Button`),i=(0,r.useUiComponent)(`settingsRow`),a=(0,r.useUiComponent)(`settingsSection`),o=ct(),s=o.state,c=(0,r.useCanvasContextOrRender)().ctx.tryGet(`feedback`),l=(0,t.ref)(``),u=(0,t.ref)(!1),d=(0,t.ref)(!1);(0,t.onMounted)(async()=>{await o.refresh(),l.value=s.systemPrompt});let f=(0,t.computed)(()=>l.value!==s.systemPrompt),p=(0,t.computed)(()=>!s.templateHealth.ok);async function m(){u.value=!0;try{await o.saveSystemPrompt(l.value),d.value=!0}catch(e){s.error=e instanceof Error?e.message:String(e)}finally{u.value=!1}}async function h(){await c?.confirm({title:`恢复 Agent 提示词的默认内容?`,description:`会把常驻指令清空(出厂状态就是没有额外指令)。现在的修改会丢掉,点保存后才写回。`,confirmText:`恢复默认`,cancelText:`取消`})&&(l.value=``,d.value=!1)}return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,j_,[(0,t.unref)(s).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,M_,(0,t.toDisplayString)((0,t.unref)(s).error),1)):(0,t.createCommentVNode)(``,!0),p.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,N_,[(0,t.createElementVNode)(`p`,P_,[(0,t.createVNode)((0,t.unref)(we),{size:13}),(0,t.createElementVNode)(`span`,null,[r[2]||=(0,t.createTextVNode)(`系统提示词模板坏了:缺 `,-1),(0,t.createElementVNode)(`code`,null,(0,t.toDisplayString)((0,t.unref)(s).templateHealth.missing.join(`、`)),1),r[3]||=(0,t.createTextVNode)(`, 这会让这一页写的内容一个字都进不到模型。去「系统提示词」页点恢复。`,-1)])])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,F_,[(0,t.createElementVNode)(`div`,I_,[(0,t.createElementVNode)(`div`,L_,[r[4]||=(0,t.createElementVNode)(`span`,{class:`ap-field-label`},`常驻指令`,-1),(0,t.createElementVNode)(`span`,R_,(0,t.toDisplayString)(l.value.length)+` 字`,1)]),(0,t.createVNode)(Xg,{modelValue:l.value,"onUpdate:modelValue":[r[0]||=e=>l.value=e,r[1]||=e=>d.value=!1],label:`Agent 提示词`,placeholder:`例如:回答用中文,简短直接。动画布之前先读一次画布现状…`,height:260},null,8,[`modelValue`])]),(0,t.createElementVNode)(`div`,z_,[d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,B_,[(0,t.createVNode)((0,t.unref)(O),{size:12}),r[5]||=(0,t.createTextVNode)(` 已保存`,-1)])):f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,V_,`有未保存的修改`)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,H_,`每次新会话都会带上它(放在系统提示词的 [developer_instructions] 块里)`)),(0,t.createElementVNode)(`span`,U_,[(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,"aria-label":`恢复 Agent 提示词的默认内容`,onClick:h},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ge),{size:13,"aria-hidden":`true`}),r[6]||=(0,t.createTextVNode)(` 恢复默认 `,-1)]),_:1}),(0,t.createVNode)((0,t.unref)(n),{type:`button`,size:`sm`,disabled:u.value||!f.value,onClick:m},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(_e),{size:13,"aria-hidden":`true`}),r[7]||=(0,t.createTextVNode)(` 保存 `,-1)]),_:1},8,[`disabled`])])])]),(0,t.unref)(s).promptSections.length?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(a),{key:2,title:`还会自动附加的内容`,description:(0,t.unref)(s).promptSections.length+` 段 · 由后台按当前状态生成,不需要你重复写`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(s).promptSections,e=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(i),{key:e.id,label:e.title,description:e.source+` · `+e.text.length+` 字`},null,8,[`label`,`description`]))),128))]),_:1},8,[`description`])):(0,t.createCommentVNode)(``,!0)]))}}),[[`__scopeId`,`data-v-9a04ad09`]]),G_={class:`ap ap-template`},K_={key:0,class:`ap-error`},q_={class:`ap-template-form`},J_={key:0,class:`ap-warnbody`},Y_={class:`ap-warnline`},X_={class:`ap-field`},Z_={class:`ap-field-head`},Q_={class:`ap-count`},$_={key:1,class:`ap-warnline`},ev={class:`ap-detail-foot is-sticky`},tv={key:0,class:`ap-hint ap-ok`},nv={key:1,class:`ap-hint`},rv={key:2,class:`ap-hint`},iv={class:`ap-detail-actions`},av=G((0,t.defineComponent)({__name:`TemplatePage`,setup(e){let n=(0,r.useUiComponent)(`Button`),i=ct(),a=i.state,o=(0,r.useCanvasContextOrRender)().ctx.tryGet(`feedback`),s=(0,t.ref)(``),c=(0,t.ref)(!1),l=(0,t.ref)(!1),u=(0,t.ref)(!1);(0,t.onMounted)(async()=>{await i.refresh(),s.value=a.templateText});let d=(0,t.computed)(()=>!a.templateHealth.ok),f=(0,t.computed)(()=>s.value!==a.templateText),p=(0,t.computed)(()=>!s.value.includes(`{{AGENTS_MD}}`));async function m(){c.value=!0,a.error=``;try{await i.saveTemplate(s.value),s.value=a.templateText,l.value=!0}catch(e){a.error=e instanceof Error?e.message:String(e)}finally{c.value=!1}}async function h(){if(await o?.confirm({title:`恢复系统提示词的出厂模板?`,description:`会用出厂模板覆盖当前正文({{AGENTS_MD}} 仍然保留)。自己改过的内容会丢掉。`,confirmText:`恢复默认`,cancelText:`取消`,tone:`destructive`})){u.value=!0;try{await i.restoreTemplate(),s.value=a.templateText,l.value=!1}catch(e){a.error=e instanceof Error?e.message:String(e)}finally{u.value=!1}}}return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,G_,[(0,t.unref)(a).error?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,K_,(0,t.toDisplayString)((0,t.unref)(a).error),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,q_,[r[8]||=(0,t.createElementVNode)(`p`,{class:`ap-hint`},[(0,t.createTextVNode)(` 这是容器:`),(0,t.createElementVNode)(`code`,null,`{{AGENTS_MD}}`),(0,t.createTextVNode)(` 由「Agent 提示词」和「模式提示词」填进去; `),(0,t.createElementVNode)(`code`,null,`{{CWD}}`),(0,t.createTextVNode)(` 这类记号在建会话时换成真实值。模板里也必须留着 `),(0,t.createElementVNode)(`code`,null,`{{AGENTS_MD}}`),(0,t.createTextVNode)(`。 `)],-1),d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,J_,[(0,t.createElementVNode)(`p`,Y_,[(0,t.createVNode)((0,t.unref)(we),{size:13}),(0,t.createElementVNode)(`span`,null,[r[2]||=(0,t.createTextVNode)(`缺 `,-1),(0,t.createElementVNode)(`code`,null,(0,t.toDisplayString)((0,t.unref)(a).templateHealth.missing.join(`、`)),1),r[3]||=(0,t.createTextVNode)(`:「Agent 提示词」写什么都进不去模型。`,-1)])])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,X_,[(0,t.createElementVNode)(`div`,Z_,[r[4]||=(0,t.createElementVNode)(`span`,{class:`ap-field-label`},`模板正文`,-1),(0,t.createElementVNode)(`span`,Q_,(0,t.toDisplayString)(s.value.length)+` 字`,1)]),(0,t.createVNode)(Xg,{modelValue:s.value,"onUpdate:modelValue":[r[0]||=e=>s.value=e,r[1]||=e=>l.value=!1],label:`系统提示词模板`,scope:`template`,height:320},null,8,[`modelValue`])]),p.value?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,$_,[(0,t.createVNode)((0,t.unref)(we),{size:13}),r[5]||=(0,t.createElementVNode)(`span`,null,[(0,t.createTextVNode)(`模板里没有 `),(0,t.createElementVNode)(`code`,null,`{{AGENTS_MD}}`),(0,t.createTextVNode)(`:这样保存会被拒绝,因为 Agent 提示词和模式提示词都进不去。`)],-1)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,ev,[l.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,tv,[(0,t.createVNode)((0,t.unref)(O),{size:12}),r[6]||=(0,t.createTextVNode)(` 已保存`,-1)])):f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,nv,`有未保存的修改`)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,rv,`模板在 system_config.yaml;下次新会话生效`)),(0,t.createElementVNode)(`span`,iv,[(0,t.createVNode)((0,t.unref)(n),{variant:`outline`,size:`sm`,type:`button`,disabled:u.value,onClick:h},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ge),{size:13,"aria-hidden":`true`}),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(u.value?`恢复中…`:`恢复默认`),1)]),_:1},8,[`disabled`]),(0,t.createVNode)((0,t.unref)(n),{type:`button`,size:`sm`,disabled:c.value||!f.value||p.value,onClick:m},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(_e),{size:13,"aria-hidden":`true`}),r[7]||=(0,t.createTextVNode)(` 保存 `,-1)]),_:1},8,[`disabled`])])])])]))}}),[[`__scopeId`,`data-v-5bfb4435`]]),ov={class:`asp`},sv={class:`asp-head`},cv=[`title`],lv={class:`asp-body`},uv=G((0,t.defineComponent)({__name:`AgentSettingsPage`,setup(e){let n=(0,r.useUiComponent)(`Tabs`),i=(0,r.useUiComponent)(`TabsList`),a=(0,r.useUiComponent)(`TabsTrigger`),o=ct(),s=o.state,c=[{key:`models`,label:`模型接入`},{key:`skills`,label:`技能`},{key:`mcp`,label:`MCP 服务`},{key:`rules`,label:`审批规则`},{key:`agentPrompt`,label:`Agent 提示词`},{key:`prompt`,label:`模式提示词`},{key:`template`,label:`系统提示词`},{key:`title`,label:`标题模型`}],l=(0,t.ref)(`models`);return(0,t.onMounted)(()=>void o.refresh()),(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ov,[(0,t.createElementVNode)(`div`,sv,[(0,t.createVNode)((0,t.unref)(n),{modelValue:l.value,"onUpdate:modelValue":r[0]||=e=>l.value=e},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(i),{variant:`line`,class:`asp-tab-list`,"aria-label":`Agent 设置分类`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c,e=>(0,t.createVNode)((0,t.unref)(a),{key:e.key,value:e.key,class:`asp-tab`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)]),_:2},1032,[`value`])),64))]),_:1})]),_:1},8,[`modelValue`]),(0,t.unref)(s).error?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`asp-err`,title:(0,t.unref)(s).error},(0,t.toDisplayString)((0,t.unref)(s).error),9,cv)):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,lv,[l.value===`models`?((0,t.openBlock)(),(0,t.createBlock)(Ih,{key:0})):l.value===`skills`?((0,t.openBlock)(),(0,t.createBlock)(Uh,{key:1})):l.value===`mcp`?((0,t.openBlock)(),(0,t.createBlock)(bg,{key:2})):l.value===`rules`?((0,t.openBlock)(),(0,t.createBlock)(Lg,{key:3})):l.value===`agentPrompt`?((0,t.openBlock)(),(0,t.createBlock)(W_,{key:4})):l.value===`prompt`?((0,t.openBlock)(),(0,t.createBlock)(C_,{key:5})):l.value===`template`?((0,t.openBlock)(),(0,t.createBlock)(av,{key:6})):((0,t.openBlock)(),(0,t.createBlock)(A_,{key:7}))])]))}}),[[`__scopeId`,`data-v-dfdd9e21`]]),dv=[[/dola/,`dola`],[/seedance|即梦.*视频/,`seedance`],[/seedream|即梦/,`doubao`],[/(^|[^a-z])veo([^a-z]|$)/,`veo`],[/sora/,`sora`],[/可灵|kling/,`kling`],[/海螺|hailuo/,`hailuo`],[/runway/,`runway`],[/pika/,`pika`],[/luma|dream ?machine/,`luma`],[/vidu/,`vidu`],[/midjourney|^mj$/,`midjourney`],[/chatgpt|openai|gpt[- ]?image|apimart/,`openai`],[/anthropic|claude/,`claude`],[/google|gemini/,`gemini`],[/xai|grok/,`grok`],[/火山|volc/,`volcengine`],[/通义|万相|qwen|wanx/,`qwen`],[/混元|hunyuan|^hy/,`hunyuan`],[/智谱|glm/,`zhipu`],[/kimi|moonshot/,`kimi`],[/文心|ernie|wenxin/,`wenxin`],[/阶跃|stepfun/,`stepfun`],[/零一万物|^yi$|^yi[-. ]/,`yi`],[/自建网关/,`custom`],[/豆包|doubao/,`doubao`],[/tts|语音|音色|朗读|配音/,`audio`]];function fv(e){let t=String(e??``).trim().toLowerCase();if(!t)return``;if(Object.prototype.hasOwnProperty.call(sr,t))return t;for(let[e,n]of dv)if(e.test(t))return n;return``}function pv(){let e=e=>{let t=String(e??``).toLowerCase();for(let[e,n]of dv)if(e.test(t))return n;return`custom`};return{platformOf:(e,t)=>dr(e,t??``),nameOf:e=>hr(e),svgOf:e=>mr(e),svgOfModel:(e,t)=>mr(dr(e,t??``)),svgOfName:t=>mr(e(t)),platformOfName:e,platformOfIconHint:e=>fv(e),svgOfIconHint:e=>mr(fv(e)),platforms:()=>gr(),icons:()=>sr,bareModelId:e=>ur(e)}}var mv=`agent`,hv=[],gv={agentBaseUrl:{type:`string`,default:``,label:`后端地址`,group:`集成/Agent`,placeholder:`留空 = 与画布同源,例如 http://127.0.0.1:{端口}`,description:`cloud-server 的根地址。留空 = 与画布同源(由 cloud-server 托管界面时就是这样)。`}};function _v(e,n){let r=st({baseUrl:n?.agentBaseUrl??``});e.inject(`agent`,(0,t.reactive)(r)),e.provide(`modelIcons`,pv()),e.registryOf(`ui`).add(`agentModelPicker`,ed,{id:`agent`}),e.registryOf(`ui`).add(`agentChoicePicker`,zm,{id:`agent`}),e.settingsMenu.nav({id:`nav/integration/agent`,category:`category/integration`,title:`智能助手`,icon:T,order:10,page:(0,t.markRaw)(uv)}),e.slots.register(`agent-conversation`,{id:`agent/conversation`,order:60,component:(0,t.markRaw)(jp),meta:{title:`Agent 对话`}}),e.slots.register(`settings.nav`,{id:`agent/nav`,order:5,component:(0,t.markRaw)(Um),meta:{title:`智能助手`,category:`集成`,icon:T,page:(0,t.markRaw)(uv),pageGroup:`集成/Agent`}}),e.slots.register(`settingsGroup/集成/Agent`,{id:`agent/page`,order:5,component:(0,t.markRaw)(uv)}),e.selectionRegion.attach({region:`out:top`,id:`agent-refer-selection`,order:30,component:(0,t.markRaw)(Vm),needs:[`selection`]}),e.commands.register({id:`agent:toggle`,title:`切换 Agent 面板`,keys:[`mod+j`],order:60,run:()=>r.toggle()}),e.commands.register({id:Bm,title:`引用到 Agent`,areas:[`node`],group:`节点`,order:20,run:(e,t)=>{let n=t?.nodeId,i=Array.isArray(t?.nodeIds)?t.nodeIds:n?[n]:[];i.length&&(r.requestNodeRefs(i),r.show())}})}var vv={name:mv,inject:hv,Config:gv,apply:_v};e.AgentApi=je,e.CANVAS_ID=Ie,e.ChatModel=Fe,e.Config=gv,e.DEFAULT_SUBMIT_KEY_MODE=mt,e.REF_CLICK_EVENT=zr,e.SUBMIT_KEY_MODES=pt,e.agentPlugin=vv,e.apply=_v,e.createAgentService=st,e.inject=hv,e.name=mv,e.normalizeSubmitKeyMode=ht,e.refClickPayloadOf=Br,e.useAgent=ct});
23
23
  //# sourceMappingURL=plugin-agent.js.map