@ai-ecoverse/slicc-spectrum 1.98.1 → 1.99.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/dist/slicc-dummy.js +35 -1
- package/dist/slicc-dummy.js.map +2 -2
- package/dist/slicc-ui.js +473 -283
- package/dist/slicc-ui.js.map +4 -4
- package/dist/types/app/chat.d.ts +5 -0
- package/dist/types/app/composer.d.ts +1 -0
- package/dist/types/dummy/updates.d.ts +1 -1
- package/dist/types/model/types.d.ts +7 -0
- package/package.json +3 -3
package/dist/slicc-ui.js
CHANGED
|
@@ -10285,12 +10285,12 @@ e12([o({
|
|
|
10285
10285
|
// node_modules/@adobe/spectrum-wc/dist/patterns/ai-toolkit/conversation-thread/swc-conversation-thread.js
|
|
10286
10286
|
e25("swc-conversation-thread", s9);
|
|
10287
10287
|
|
|
10288
|
-
// node_modules/@adobe/spectrum-wc-icons/dist/
|
|
10288
|
+
// node_modules/@adobe/spectrum-wc-icons/dist/ChevronDown.js
|
|
10289
10289
|
function e82() {
|
|
10290
|
-
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="
|
|
10290
|
+
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M3.755 7.243a.75.75 0 0 1 1.06-.02l5.183 4.986 5.197-4.999a.749.749 0 1 1 1.04 1.08l-5.717 5.5a.747.747 0 0 1-1.04 0L3.776 8.303a.746.746 0 0 1-.02-1.06"/></svg>';
|
|
10291
10291
|
}
|
|
10292
10292
|
|
|
10293
|
-
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-
|
|
10293
|
+
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-chevron-down.js
|
|
10294
10294
|
var o53 = class extends a10 {
|
|
10295
10295
|
static get styles() {
|
|
10296
10296
|
return [t40];
|
|
@@ -10301,7 +10301,25 @@ var o53 = class extends a10 {
|
|
|
10301
10301
|
`;
|
|
10302
10302
|
}
|
|
10303
10303
|
};
|
|
10304
|
-
e25("swc-icon-
|
|
10304
|
+
e25("swc-icon-chevron-down", o53);
|
|
10305
|
+
|
|
10306
|
+
// node_modules/@adobe/spectrum-wc-icons/dist/New.js
|
|
10307
|
+
function e83() {
|
|
10308
|
+
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M18 4.25v11.5c0 1.24-1.01 2.25-2.25 2.25H4.25C3.01 18 2 16.99 2 15.75V4.25C2 3.01 3.01 2 4.25 2h11.5C16.99 2 18 3.01 18 4.25m-1.5 0a.75.75 0 0 0-.75-.75H4.25a.75.75 0 0 0-.75.75v11.5c0 .414.336.75.75.75h11.5a.75.75 0 0 0 .75-.75z"/><path fill="var(--swc-icon-color, currentColor)" d="M13.763 10a.763.763 0 0 1-.763.763h-2.237V13a.763.763 0 0 1-1.526 0v-2.237H7a.763.763 0 0 1 0-1.526h2.237V7a.763.763 0 0 1 1.526 0v2.237H13c.421 0 .763.342.763.763"/></svg>';
|
|
10309
|
+
}
|
|
10310
|
+
|
|
10311
|
+
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-new.js
|
|
10312
|
+
var o54 = class extends a10 {
|
|
10313
|
+
static get styles() {
|
|
10314
|
+
return [t40];
|
|
10315
|
+
}
|
|
10316
|
+
render() {
|
|
10317
|
+
return b`
|
|
10318
|
+
${o16(e83())}
|
|
10319
|
+
`;
|
|
10320
|
+
}
|
|
10321
|
+
};
|
|
10322
|
+
e25("swc-icon-new", o54);
|
|
10305
10323
|
|
|
10306
10324
|
// src/app/dips.ts
|
|
10307
10325
|
var dipType = "application/x-slicc-sprinkle";
|
|
@@ -14119,7 +14137,7 @@ function createTokenizer(parser, initialize, from) {
|
|
|
14119
14137
|
previous: null,
|
|
14120
14138
|
sliceSerialize,
|
|
14121
14139
|
sliceStream,
|
|
14122
|
-
write
|
|
14140
|
+
write: write2
|
|
14123
14141
|
};
|
|
14124
14142
|
let state2 = initialize.tokenize.call(context, effects);
|
|
14125
14143
|
let expectedCode;
|
|
@@ -14127,7 +14145,7 @@ function createTokenizer(parser, initialize, from) {
|
|
|
14127
14145
|
resolveAllConstructs.push(initialize);
|
|
14128
14146
|
}
|
|
14129
14147
|
return context;
|
|
14130
|
-
function
|
|
14148
|
+
function write2(slice) {
|
|
14131
14149
|
chunks = push(chunks, slice);
|
|
14132
14150
|
main2();
|
|
14133
14151
|
if (chunks[chunks.length - 1] !== null) {
|
|
@@ -14324,9 +14342,9 @@ function createTokenizer(parser, initialize, from) {
|
|
|
14324
14342
|
const startStack = Array.from(stack);
|
|
14325
14343
|
return {
|
|
14326
14344
|
from: startEventsIndex,
|
|
14327
|
-
restore
|
|
14345
|
+
restore: restore2
|
|
14328
14346
|
};
|
|
14329
|
-
function
|
|
14347
|
+
function restore2() {
|
|
14330
14348
|
point3 = startPoint;
|
|
14331
14349
|
context.previous = startPrevious;
|
|
14332
14350
|
context.currentConstruct = startCurrentConstruct;
|
|
@@ -16998,13 +17016,13 @@ function parse2(text5) {
|
|
|
16998
17016
|
(node2) => text5.lastIndexOf("\n", tail2 + node2.position.start.offset - 1) + 1
|
|
16999
17017
|
)
|
|
17000
17018
|
];
|
|
17001
|
-
let
|
|
17002
|
-
while (
|
|
17019
|
+
let keep3 = Math.max(blocks.length - 1, 0);
|
|
17020
|
+
while (keep3 > 0 && !blankBefore(text5, starts[keep3])) keep3--;
|
|
17003
17021
|
const parsed = {
|
|
17004
17022
|
text: text5,
|
|
17005
17023
|
blocks,
|
|
17006
17024
|
starts,
|
|
17007
|
-
keep:
|
|
17025
|
+
keep: keep3,
|
|
17008
17026
|
definitions: collect(tree.children, /* @__PURE__ */ new Map())
|
|
17009
17027
|
};
|
|
17010
17028
|
cache.delete(base.text);
|
|
@@ -17277,7 +17295,7 @@ e12([n({
|
|
|
17277
17295
|
e25("swc-conversation-turn", a13);
|
|
17278
17296
|
|
|
17279
17297
|
// node_modules/@adobe/spectrum-wc/dist/components/ui-icons/ui-icons.types.js
|
|
17280
|
-
var
|
|
17298
|
+
var e84 = [
|
|
17281
17299
|
50,
|
|
17282
17300
|
75,
|
|
17283
17301
|
100,
|
|
@@ -17297,7 +17315,7 @@ function n29(e129) {
|
|
|
17297
17315
|
}
|
|
17298
17316
|
function r27(t90, r40) {
|
|
17299
17317
|
if (!t90) return;
|
|
17300
|
-
let i26 = n29(r40), a23 =
|
|
17318
|
+
let i26 = n29(r40), a23 = e84.filter((e129) => t90[e129] !== void 0);
|
|
17301
17319
|
if (a23.length !== 0) return t90[a23.reduce((e129, t91) => Math.abs(t91 - i26) < Math.abs(e129 - i26) ? t91 : e129)];
|
|
17302
17320
|
}
|
|
17303
17321
|
|
|
@@ -17921,7 +17939,7 @@ e12([n({
|
|
|
17921
17939
|
e25("swc-ui-icon", l15);
|
|
17922
17940
|
|
|
17923
17941
|
// node_modules/@adobe/spectrum-wc/dist/utils/id.js
|
|
17924
|
-
function
|
|
17942
|
+
function e85(e129) {
|
|
17925
17943
|
return `${e129}-${Array.from(crypto.getRandomValues(new Uint8Array(4)), (e130) => `0${(e130 & 255).toString(16)}`.slice(-2)).join("")}`;
|
|
17926
17944
|
}
|
|
17927
17945
|
|
|
@@ -17931,7 +17949,7 @@ var t66 = i`:host{display:block}*,*:before,*:after{box-sizing:border-box}.swc-Me
|
|
|
17931
17949
|
// node_modules/@adobe/spectrum-wc/dist/patterns/ai-toolkit/message-sources/MessageSources.js
|
|
17932
17950
|
var c18 = class extends i9 {
|
|
17933
17951
|
constructor(...e129) {
|
|
17934
|
-
super(...e129), this.panelId =
|
|
17952
|
+
super(...e129), this.panelId = e85("swc-sources-panel"), this.toggleId = e85("swc-message-sources-toggle"), this.sourceLinks = [], this.open = false, this.label = "Sources", this.accessibleLabel = "";
|
|
17935
17953
|
}
|
|
17936
17954
|
static get styles() {
|
|
17937
17955
|
return [t66];
|
|
@@ -18064,7 +18082,7 @@ var a14 = () => b`
|
|
|
18064
18082
|
<circle cx="4" cy="4" r="4" fill="currentColor" />
|
|
18065
18083
|
</svg>
|
|
18066
18084
|
`;
|
|
18067
|
-
var
|
|
18085
|
+
var o55 = () => b`
|
|
18068
18086
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8">
|
|
18069
18087
|
<circle cx="4" cy="4" r="3.5" fill="none" stroke="currentColor" />
|
|
18070
18088
|
</svg>
|
|
@@ -18124,7 +18142,7 @@ var h6 = class extends i9 {
|
|
|
18124
18142
|
return this._readLabel();
|
|
18125
18143
|
}
|
|
18126
18144
|
constructor() {
|
|
18127
|
-
super(), this._toggleId =
|
|
18145
|
+
super(), this._toggleId = e85("swc-response-status-step-toggle"), this._detailId = e85("swc-response-status-step-detail"), this.status = "active", this.open = false, this._hasDescription = false, this._labelText = "", this._overflows = false, this._lastActiveLabel = "", new t2(this, {
|
|
18128
18146
|
config: {
|
|
18129
18147
|
attributes: true,
|
|
18130
18148
|
attributeFilter: ["slot"],
|
|
@@ -18207,7 +18225,7 @@ var h6 = class extends i9 {
|
|
|
18207
18225
|
class="swc-ResponseStatusStep-icon swc-ResponseStatusStep-icon--active"
|
|
18208
18226
|
aria-hidden="true"
|
|
18209
18227
|
>
|
|
18210
|
-
${
|
|
18228
|
+
${o55()}
|
|
18211
18229
|
</swc-icon>
|
|
18212
18230
|
`);
|
|
18213
18231
|
}
|
|
@@ -18281,7 +18299,7 @@ e12([n({
|
|
|
18281
18299
|
e25("swc-response-status-step", h6);
|
|
18282
18300
|
|
|
18283
18301
|
// node_modules/@adobe/spectrum-wc/dist/patterns/ai-toolkit/pixel-loader/data.js
|
|
18284
|
-
function
|
|
18302
|
+
function e86(e129, t90) {
|
|
18285
18303
|
let n37 = Array.from(new Set(e129.map(([, e130]) => e130))).sort((e130, t91) => t91 - e130), r40 = Array(e129.length).fill(0), i26 = 0;
|
|
18286
18304
|
return n37.forEach((n38) => {
|
|
18287
18305
|
let a23 = e129.reduce((e130, t91, r41) => (t91[1] === n38 && e130.push(r41), e130), []);
|
|
@@ -18291,7 +18309,7 @@ function e85(e129, t90) {
|
|
|
18291
18309
|
}), r40;
|
|
18292
18310
|
}
|
|
18293
18311
|
function t69(t90, n37 = {}) {
|
|
18294
|
-
let { staggerInterval: r40 = 2, rowOffset: i26 = 0 } = n37, a23 =
|
|
18312
|
+
let { staggerInterval: r40 = 2, rowOffset: i26 = 0 } = n37, a23 = e86(t90, r40);
|
|
18295
18313
|
return t90.map(([e129, t91], n38) => ({
|
|
18296
18314
|
col: e129,
|
|
18297
18315
|
row: t91 + i26,
|
|
@@ -18434,7 +18452,7 @@ var a15 = t69([
|
|
|
18434
18452
|
[5, 0],
|
|
18435
18453
|
[6, 0]
|
|
18436
18454
|
], { staggerInterval: 1 });
|
|
18437
|
-
var
|
|
18455
|
+
var o56 = t69([
|
|
18438
18456
|
[6, 6],
|
|
18439
18457
|
[5, 5],
|
|
18440
18458
|
[1, 4],
|
|
@@ -18989,7 +19007,7 @@ var N = {
|
|
|
18989
19007
|
brush: r31,
|
|
18990
19008
|
eye: i19,
|
|
18991
19009
|
hourglass: a15,
|
|
18992
|
-
mag:
|
|
19010
|
+
mag: o56,
|
|
18993
19011
|
crop: s11,
|
|
18994
19012
|
flower: c20,
|
|
18995
19013
|
image: l16,
|
|
@@ -19080,13 +19098,13 @@ var F = {
|
|
|
19080
19098
|
};
|
|
19081
19099
|
|
|
19082
19100
|
// node_modules/@adobe/spectrum-wc/dist/patterns/ai-toolkit/pixel-loader/animation.js
|
|
19083
|
-
var
|
|
19084
|
-
var t70 = (t90) => t90 *
|
|
19101
|
+
var e87 = 30;
|
|
19102
|
+
var t70 = (t90) => t90 * e87 / 1e3;
|
|
19085
19103
|
var n32 = 13;
|
|
19086
19104
|
var r32 = 12;
|
|
19087
19105
|
var i20 = t70(1400);
|
|
19088
19106
|
var a16 = t70(150);
|
|
19089
|
-
var
|
|
19107
|
+
var o57 = t70(150);
|
|
19090
19108
|
var s12 = 0.1;
|
|
19091
19109
|
var c21 = t70(230);
|
|
19092
19110
|
var l17 = 0.3;
|
|
@@ -19116,10 +19134,10 @@ function y4(e129) {
|
|
|
19116
19134
|
return v8(e129) + n32 + i20 + r32;
|
|
19117
19135
|
}
|
|
19118
19136
|
function b8(t90) {
|
|
19119
|
-
return y4(t90) /
|
|
19137
|
+
return y4(t90) / e87 * 1e3;
|
|
19120
19138
|
}
|
|
19121
19139
|
function x3(t90) {
|
|
19122
|
-
return (v8(t90) + n32) /
|
|
19140
|
+
return (v8(t90) + n32) / e87 * 1e3;
|
|
19123
19141
|
}
|
|
19124
19142
|
function S2(e129, t90) {
|
|
19125
19143
|
return Math.min(1, Math.max(0, e129 / t90));
|
|
@@ -19164,7 +19182,7 @@ function w3(e129, t90) {
|
|
|
19164
19182
|
}), C3(o100);
|
|
19165
19183
|
}
|
|
19166
19184
|
function T4(e129, t90) {
|
|
19167
|
-
let i26 = e129.stagger + n32 -
|
|
19185
|
+
let i26 = e129.stagger + n32 - o57, u27 = i26 - a16, d22 = _4(e129), f11 = d22 + c21;
|
|
19168
19186
|
return C3([
|
|
19169
19187
|
{
|
|
19170
19188
|
offset: 0,
|
|
@@ -19231,7 +19249,7 @@ function k2() {
|
|
|
19231
19249
|
return D3 + O2 + D3;
|
|
19232
19250
|
}
|
|
19233
19251
|
function A4() {
|
|
19234
|
-
return k2() /
|
|
19252
|
+
return k2() / e87 * 1e3;
|
|
19235
19253
|
}
|
|
19236
19254
|
function j2() {
|
|
19237
19255
|
let e129 = k2();
|
|
@@ -19260,9 +19278,9 @@ function j2() {
|
|
|
19260
19278
|
var M2 = "0 0px";
|
|
19261
19279
|
|
|
19262
19280
|
// node_modules/@adobe/spectrum-wc/dist/patterns/ai-toolkit/pixel-loader/geometry.js
|
|
19263
|
-
var
|
|
19281
|
+
var e88 = /* @__PURE__ */ new WeakMap();
|
|
19264
19282
|
function t71(t90) {
|
|
19265
|
-
let n37 =
|
|
19283
|
+
let n37 = e88.get(t90);
|
|
19266
19284
|
if (n37) return n37;
|
|
19267
19285
|
let r40 = new Set(t90.map((e129) => `${e129.col},${e129.row}`)), i26 = (e129, t91) => r40.has(`${e129},${t91}`), a23 = t90.map(({ col: e129, row: t91 }) => {
|
|
19268
19286
|
let n38 = i26(e129 - 1, t91), r41 = i26(e129 + 1, t91), a24 = i26(e129, t91 - 1), o100 = i26(e129, t91 + 1), s19 = i26(e129 - 1, t91 - 1), c28 = i26(e129 + 1, t91 - 1), l24 = i26(e129 + 1, t91 + 1), u27 = i26(e129 - 1, t91 + 1);
|
|
@@ -19273,7 +19291,7 @@ function t71(t90) {
|
|
|
19273
19291
|
bottomLeft: !n38 && !o100 && !u27
|
|
19274
19292
|
};
|
|
19275
19293
|
});
|
|
19276
|
-
return
|
|
19294
|
+
return e88.set(t90, a23), a23;
|
|
19277
19295
|
}
|
|
19278
19296
|
function n33(e129, t90) {
|
|
19279
19297
|
return `${e129.topLeft ? t90 : "0"} ${e129.topRight ? t90 : "0"} ${e129.bottomRight ? t90 : "0"} ${e129.bottomLeft ? t90 : "0"}`;
|
|
@@ -19285,7 +19303,7 @@ var t72 = i`:host{display:inline-block}*,*:before,*:after{box-sizing:border-box}
|
|
|
19285
19303
|
// node_modules/@adobe/spectrum-wc/dist/patterns/ai-toolkit/pixel-loader/PixelLoader.js
|
|
19286
19304
|
var w4;
|
|
19287
19305
|
var T5 = "https://spectrum-web-components.adobe.com/?path=/docs/patterns-ai-toolkit-pixel-loader--docs";
|
|
19288
|
-
var E3 = class
|
|
19306
|
+
var E3 = class e89 extends i9 {
|
|
19289
19307
|
constructor(...e129) {
|
|
19290
19308
|
super(...e129), this.icon = "aiLogo", this.paused = false, this.label = "Loading", this._presetIndex = 0, this._animations = [], this._containerCache = null, this._cellElsCache = null, this._shuffledPresetIcons = null, this._ticker = null, this._reducedMotionQuery = null, this._displayedIcon = "aiLogo", this._finishToken = 0, this._handleReducedMotionChange = () => {
|
|
19291
19309
|
this._syncTicker(), this._playCells();
|
|
@@ -19409,8 +19427,8 @@ var E3 = class e88 extends i9 {
|
|
|
19409
19427
|
}
|
|
19410
19428
|
}), this._cancelAnimations();
|
|
19411
19429
|
let i26 = {
|
|
19412
|
-
duration:
|
|
19413
|
-
easing:
|
|
19430
|
+
duration: e89.FINISH_MS,
|
|
19431
|
+
easing: e89.EASE_FINISH,
|
|
19414
19432
|
fill: "forwards"
|
|
19415
19433
|
}, a23 = n37.map((e129) => e129.animate([{
|
|
19416
19434
|
translate: M2,
|
|
@@ -19460,7 +19478,7 @@ var E3 = class e88 extends i9 {
|
|
|
19460
19478
|
style=${o3({
|
|
19461
19479
|
"grid-column": String(t90.col + 1),
|
|
19462
19480
|
"grid-row": String(t90.row + 1),
|
|
19463
|
-
"border-radius": n33(n37,
|
|
19481
|
+
"border-radius": n33(n37, e89.CORNER_RADIUS)
|
|
19464
19482
|
})}
|
|
19465
19483
|
></div>
|
|
19466
19484
|
`;
|
|
@@ -19501,12 +19519,12 @@ var y5 = [
|
|
|
19501
19519
|
"complete",
|
|
19502
19520
|
"stopped"
|
|
19503
19521
|
];
|
|
19504
|
-
var b9 = class
|
|
19522
|
+
var b9 = class e90 extends i9 {
|
|
19505
19523
|
static get styles() {
|
|
19506
19524
|
return [t73];
|
|
19507
19525
|
}
|
|
19508
19526
|
constructor() {
|
|
19509
|
-
super(), this.panelId =
|
|
19527
|
+
super(), this.panelId = e85("swc-response-status-panel"), this._hasSteps = false, this._hasActiveStep = false, this._activeStepLabel = "", this._activeStepEl = null, this._labelSlotText = "", this._displayedLabel = "", this._rollFromLabel = "", this._rollToLabel = "", this._rollActive = false, this._rollEngaged = false, this._loaderPaused = false, this._loaderStartRaf = null, this._loaderStartTimer = null, this.status = "active", this.open = false, this.accessibleLabel = "", this.loader = "mega", this._labelRollTimer = null, this._labelRollRaf = null, new t2(this, {
|
|
19510
19528
|
config: {
|
|
19511
19529
|
attributes: true,
|
|
19512
19530
|
attributeFilter: ["status"],
|
|
@@ -19624,10 +19642,10 @@ var b9 = class e89 extends i9 {
|
|
|
19624
19642
|
if (this._labelSlotText) return this._labelSlotText;
|
|
19625
19643
|
let t90 = this._resolvedStatus;
|
|
19626
19644
|
if (t90 === "active") {
|
|
19627
|
-
if (this._showsGenericProcessingLabel) return
|
|
19645
|
+
if (this._showsGenericProcessingLabel) return e90.ACTIVE_STEP_OPEN_LABEL;
|
|
19628
19646
|
if (this._activeStepLabel) return this._activeStepLabel;
|
|
19629
19647
|
}
|
|
19630
|
-
return
|
|
19648
|
+
return e90.DEFAULT_LABELS[t90];
|
|
19631
19649
|
}
|
|
19632
19650
|
_clearLabelRollTimers() {
|
|
19633
19651
|
this._labelRollTimer !== null && (window.clearTimeout(this._labelRollTimer), this._labelRollTimer = null), this._labelRollRaf !== null && (window.cancelAnimationFrame(this._labelRollRaf), this._labelRollRaf = null);
|
|
@@ -19639,7 +19657,7 @@ var b9 = class e89 extends i9 {
|
|
|
19639
19657
|
this._clearLoaderStartRaf(), this._loaderPaused = true, this._loaderStartRaf = window.requestAnimationFrame(() => {
|
|
19640
19658
|
this._loaderStartRaf = null, this._loaderStartTimer = window.setTimeout(() => {
|
|
19641
19659
|
this._loaderStartTimer = null, this._loaderPaused = false;
|
|
19642
|
-
},
|
|
19660
|
+
}, e90.LOADER_START_DELAY_MS);
|
|
19643
19661
|
});
|
|
19644
19662
|
}
|
|
19645
19663
|
_prefersReducedMotion() {
|
|
@@ -19666,7 +19684,7 @@ var b9 = class e89 extends i9 {
|
|
|
19666
19684
|
this._labelRollRaf = window.requestAnimationFrame(() => {
|
|
19667
19685
|
this._labelRollRaf = null, this._rollEngaged = true, this._labelRollTimer = window.setTimeout(() => {
|
|
19668
19686
|
this._labelRollTimer = null, this._displayedLabel = this._rollToLabel, this._rollActive = false, this._rollEngaged = false, this._applyLabelRoll();
|
|
19669
|
-
},
|
|
19687
|
+
}, e90.LABEL_ROLL_DURATION_MS);
|
|
19670
19688
|
});
|
|
19671
19689
|
});
|
|
19672
19690
|
}
|
|
@@ -19674,7 +19692,7 @@ var b9 = class e89 extends i9 {
|
|
|
19674
19692
|
return this._rollActive ? this._rollToLabel : this._displayedLabel || this._getHeaderLabel();
|
|
19675
19693
|
}
|
|
19676
19694
|
_renderLabel() {
|
|
19677
|
-
let t90 =
|
|
19695
|
+
let t90 = e90.STATUS_LABEL_CLASS;
|
|
19678
19696
|
return this._rollActive ? b`
|
|
19679
19697
|
<span class="swc-ResponseStatus-headerTrailViewport">
|
|
19680
19698
|
<span class=${this._rollEngaged ? "swc-ResponseStatus-headerTrailCrossfade swc-ResponseStatus-headerTrailCrossfade--engaged" : "swc-ResponseStatus-headerTrailCrossfade"}>
|
|
@@ -19798,7 +19816,7 @@ var b9 = class e89 extends i9 {
|
|
|
19798
19816
|
`;
|
|
19799
19817
|
}
|
|
19800
19818
|
_renderPanel(t90) {
|
|
19801
|
-
let n37 = t90 && this.open, r40 = this.accessibleLabel ||
|
|
19819
|
+
let n37 = t90 && this.open, r40 = this.accessibleLabel || e90.DEFAULT_ACCESSIBLE_LABEL;
|
|
19802
19820
|
return b`
|
|
19803
19821
|
<div
|
|
19804
19822
|
id=${this.panelId}
|
|
@@ -19863,7 +19881,7 @@ var t74 = i`:host{display:block}*,*:before,*:after{box-sizing:border-box}.swc-Su
|
|
|
19863
19881
|
// node_modules/@adobe/spectrum-wc/dist/patterns/ai-toolkit/suggestion/SuggestionGroup.js
|
|
19864
19882
|
var s13 = class extends i9 {
|
|
19865
19883
|
constructor(...e129) {
|
|
19866
|
-
super(...e129), this.accessibleLabel = "", this._headingId =
|
|
19884
|
+
super(...e129), this.accessibleLabel = "", this._headingId = e85("swc-suggestion-group-heading");
|
|
19867
19885
|
}
|
|
19868
19886
|
static get styles() {
|
|
19869
19887
|
return [t74];
|
|
@@ -20026,184 +20044,184 @@ e12([n({
|
|
|
20026
20044
|
e25("swc-user-message", a17);
|
|
20027
20045
|
|
|
20028
20046
|
// node_modules/@adobe/spectrum-wc-icons/dist/Cancel.js
|
|
20029
|
-
function
|
|
20047
|
+
function e91() {
|
|
20030
20048
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M16.201 16.166A8.72 8.72 0 0 0 18.75 10c0-4.825-3.925-8.75-8.75-8.75a8.72 8.72 0 0 0-6.166 2.549l-.021.014c-.011.007-.008.015-.014.021A8.72 8.72 0 0 0 1.25 10c0 4.825 3.925 8.75 8.75 8.75a8.72 8.72 0 0 0 6.166-2.549c.006-.006.015-.008.021-.014s.008-.015.014-.021M17.25 10c0 1.73-.61 3.317-1.625 4.565L5.435 4.375A7.2 7.2 0 0 1 10 2.75c3.998 0 7.25 3.252 7.25 7.25m-14.5 0c0-1.73.61-3.317 1.625-4.565l10.19 10.19A7.2 7.2 0 0 1 10 17.25c-3.998 0-7.25-3.252-7.25-7.25"/></svg>';
|
|
20031
20049
|
}
|
|
20032
20050
|
|
|
20033
20051
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-cancel.js
|
|
20034
|
-
var
|
|
20052
|
+
var o58 = class extends a10 {
|
|
20035
20053
|
static get styles() {
|
|
20036
20054
|
return [t40];
|
|
20037
20055
|
}
|
|
20038
20056
|
render() {
|
|
20039
20057
|
return b`
|
|
20040
|
-
${o16(
|
|
20058
|
+
${o16(e91())}
|
|
20041
20059
|
`;
|
|
20042
20060
|
}
|
|
20043
20061
|
};
|
|
20044
|
-
e25("swc-icon-cancel",
|
|
20062
|
+
e25("swc-icon-cancel", o58);
|
|
20045
20063
|
|
|
20046
20064
|
// node_modules/@adobe/spectrum-wc-icons/dist/ClockPending.js
|
|
20047
|
-
function
|
|
20065
|
+
function e92() {
|
|
20048
20066
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M13.22 12.657a.75.75 0 0 1-.38-.103l-3.22-1.896a.75.75 0 0 1-.37-.646v-5a.75.75 0 0 1 1.5 0v4.571l2.852 1.678a.751.751 0 0 1-.382 1.396"/><path fill="var(--swc-icon-color, currentColor)" d="M10 18.771c-4.825 0-8.75-3.924-8.75-8.75A8.74 8.74 0 0 1 6.594 1.96a.75.75 0 1 1 .584 1.38 7.24 7.24 0 0 0-4.428 6.682 7.26 7.26 0 0 0 7.25 7.25 7.25 7.25 0 0 0 4.703-1.732.75.75 0 0 1 1.058.084.75.75 0 0 1-.084 1.057A8.75 8.75 0 0 1 10 18.77m.251-15.945h-.03L10 2.821a.8.8 0 0 1 0-1.6l.278.005a.8.8 0 0 1-.027 1.6m3.138.747a.8.8 0 0 1-.346-.079l-.198-.09a.8.8 0 1 1 .633-1.468q.13.056.258.117a.8.8 0 0 1-.347 1.52m2.587 1.931a.8.8 0 0 1-.603-.274l-.145-.159a.8.8 0 0 1 1.158-1.103q.098.103.192.21a.8.8 0 0 1-.602 1.326m1.616 2.791a.8.8 0 0 1-.759-.547l-.075-.217a.8.8 0 1 1 1.504-.545l.089.256a.8.8 0 0 1-.76 1.053m.381 3.205-.067-.003a.8.8 0 0 1-.731-.862l.015-.232c.026-.441.373-.787.846-.752a.8.8 0 0 1 .752.846l-.02.269a.8.8 0 0 1-.795.734"/><path fill="var(--swc-icon-color, currentColor)" d="m17.972 11.5-.067-.003a.8.8 0 0 1-.731-.862l.015-.232c.026-.441.373-.787.846-.752a.8.8 0 0 1 .752.846l-.02.269a.8.8 0 0 1-.795.734m-1.32 2.904-.057-.035a.8.8 0 0 1-.21-1.112l.129-.193c.24-.371.712-.5 1.106-.236a.8.8 0 0 1 .236 1.107l-.15.224a.8.8 0 0 1-1.054.245"/></svg>';
|
|
20049
20067
|
}
|
|
20050
20068
|
|
|
20051
20069
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-clock-pending.js
|
|
20052
|
-
var
|
|
20070
|
+
var o59 = class extends a10 {
|
|
20053
20071
|
static get styles() {
|
|
20054
20072
|
return [t40];
|
|
20055
20073
|
}
|
|
20056
20074
|
render() {
|
|
20057
20075
|
return b`
|
|
20058
|
-
${o16(
|
|
20076
|
+
${o16(e92())}
|
|
20059
20077
|
`;
|
|
20060
20078
|
}
|
|
20061
20079
|
};
|
|
20062
|
-
e25("swc-icon-clock-pending",
|
|
20080
|
+
e25("swc-icon-clock-pending", o59);
|
|
20063
20081
|
|
|
20064
20082
|
// node_modules/@adobe/spectrum-wc-icons/dist/File.js
|
|
20065
|
-
function
|
|
20083
|
+
function e93() {
|
|
20066
20084
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M16.341 5.28 12.72 1.66A2.24 2.24 0 0 0 11.13 1H5.25C4.01 1 3 2.01 3 3.25v12.5C3 16.99 4.01 18 5.25 18h9.5c1.24 0 2.25-1.01 2.25-2.25V6.871c0-.592-.24-1.172-.659-1.59m-1.06 1.06c.045.046.073.105.105.16H12.25a.75.75 0 0 1-.75-.75V2.614c.055.032.113.06.159.106zM14.75 16.5h-9.5a.75.75 0 0 1-.75-.75V3.25a.75.75 0 0 1 .75-.75H10v3.25C10 6.99 11.01 8 12.25 8h3.25v7.75a.75.75 0 0 1-.75.75"/></svg>';
|
|
20067
20085
|
}
|
|
20068
20086
|
|
|
20069
20087
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-file.js
|
|
20070
|
-
var
|
|
20088
|
+
var o60 = class extends a10 {
|
|
20071
20089
|
static get styles() {
|
|
20072
20090
|
return [t40];
|
|
20073
20091
|
}
|
|
20074
20092
|
render() {
|
|
20075
20093
|
return b`
|
|
20076
|
-
${o16(
|
|
20094
|
+
${o16(e93())}
|
|
20077
20095
|
`;
|
|
20078
20096
|
}
|
|
20079
20097
|
};
|
|
20080
|
-
e25("swc-icon-file",
|
|
20098
|
+
e25("swc-icon-file", o60);
|
|
20081
20099
|
|
|
20082
20100
|
// node_modules/@adobe/spectrum-wc-icons/dist/FileText.js
|
|
20083
|
-
function
|
|
20101
|
+
function e94() {
|
|
20084
20102
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="m16.34 5.296-3.62-3.622a2.27 2.27 0 0 0-1.591-.66H5.25A2.255 2.255 0 0 0 3 3.265v12.484c0 1.24 1.01 2.25 2.25 2.25h9.5c1.24 0 2.25-1.01 2.25-2.25V6.887c0-.6-.234-1.166-.66-1.591m-1.06 1.06c.046.047.074.104.106.159H12.25a.75.75 0 0 1-.75-.75V2.628c.055.033.114.06.16.106zm-.53 10.142h-9.5a.75.75 0 0 1-.75-.75V3.265c0-.413.337-.75.75-.75H10v3.25c0 1.24 1.01 2.25 2.25 2.25h3.25v7.733c0 .413-.337.75-.75.75"/><path fill="var(--swc-icon-color, currentColor)" d="M13 11.498H7a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 0 1.5m0 3H7a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 0 1.5"/></svg>';
|
|
20085
20103
|
}
|
|
20086
20104
|
|
|
20087
20105
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-file-text.js
|
|
20088
|
-
var
|
|
20106
|
+
var o61 = class extends a10 {
|
|
20089
20107
|
static get styles() {
|
|
20090
20108
|
return [t40];
|
|
20091
20109
|
}
|
|
20092
20110
|
render() {
|
|
20093
20111
|
return b`
|
|
20094
|
-
${o16(
|
|
20112
|
+
${o16(e94())}
|
|
20095
20113
|
`;
|
|
20096
20114
|
}
|
|
20097
20115
|
};
|
|
20098
|
-
e25("swc-icon-file-text",
|
|
20116
|
+
e25("swc-icon-file-text", o61);
|
|
20099
20117
|
|
|
20100
20118
|
// node_modules/@adobe/spectrum-wc-icons/dist/InfoCircle.js
|
|
20101
|
-
function
|
|
20119
|
+
function e95() {
|
|
20102
20120
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M10 18.75c-4.825 0-8.75-3.925-8.75-8.75S5.175 1.25 10 1.25s8.75 3.925 8.75 8.75-3.925 8.75-8.75 8.75m0-16c-3.998 0-7.25 3.252-7.25 7.25s3.252 7.25 7.25 7.25 7.25-3.252 7.25-7.25S13.998 2.75 10 2.75"/><path fill="var(--swc-icon-color, currentColor)" d="M10 5.26a.9.9 0 0 1 .627.229c.33.365.33.921 0 1.286a.87.87 0 0 1-.626.235.85.85 0 0 1-.633-.248.86.86 0 0 1-.242-.627.88.88 0 0 1 .228-.64A.86.86 0 0 1 10 5.26m0 9.803a.75.75 0 0 1-.75-.75V9.478a.75.75 0 0 1 1.5 0v4.835a.75.75 0 0 1-.75.75"/></svg>';
|
|
20103
20121
|
}
|
|
20104
20122
|
|
|
20105
20123
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-info-circle.js
|
|
20106
|
-
var
|
|
20124
|
+
var o62 = class extends a10 {
|
|
20107
20125
|
static get styles() {
|
|
20108
20126
|
return [t40];
|
|
20109
20127
|
}
|
|
20110
20128
|
render() {
|
|
20111
20129
|
return b`
|
|
20112
|
-
${o16(
|
|
20130
|
+
${o16(e95())}
|
|
20113
20131
|
`;
|
|
20114
20132
|
}
|
|
20115
20133
|
};
|
|
20116
|
-
e25("swc-icon-info-circle",
|
|
20134
|
+
e25("swc-icon-info-circle", o62);
|
|
20117
20135
|
|
|
20118
20136
|
// node_modules/@adobe/spectrum-wc-icons/dist/Lock.js
|
|
20119
|
-
function
|
|
20137
|
+
function e96() {
|
|
20120
20138
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M11.25 11.5a1.251 1.251 0 0 0-2.5 0c0 .403.204.745.5.974v.776a.75.75 0 0 0 1.5 0v-.776c.296-.23.5-.571.5-.974"/><path fill="var(--swc-icon-color, currentColor)" d="M15 7.025V6.5c0-2.757-2.243-5-5-5s-5 2.243-5 5v.525c-1.122.127-2 1.07-2 2.225v6.5C3 16.99 4.01 18 5.25 18h9.5c1.24 0 2.25-1.01 2.25-2.25v-6.5a2.246 2.246 0 0 0-2-2.225M10 3c1.93 0 3.5 1.57 3.5 3.5V7h-7v-.5C6.5 4.57 8.07 3 10 3m5.5 12.75c0 .413-.337.75-.75.75h-9.5a.75.75 0 0 1-.75-.75v-6.5c0-.413.337-.75.75-.75h9.5c.413 0 .75.337.75.75z"/></svg>';
|
|
20121
20139
|
}
|
|
20122
20140
|
|
|
20123
20141
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-lock.js
|
|
20124
|
-
var
|
|
20142
|
+
var o63 = class extends a10 {
|
|
20125
20143
|
static get styles() {
|
|
20126
20144
|
return [t40];
|
|
20127
20145
|
}
|
|
20128
20146
|
render() {
|
|
20129
20147
|
return b`
|
|
20130
|
-
${o16(
|
|
20148
|
+
${o16(e96())}
|
|
20131
20149
|
`;
|
|
20132
20150
|
}
|
|
20133
20151
|
};
|
|
20134
|
-
e25("swc-icon-lock",
|
|
20152
|
+
e25("swc-icon-lock", o63);
|
|
20135
20153
|
|
|
20136
20154
|
// node_modules/@adobe/spectrum-wc-icons/dist/Plugin.js
|
|
20137
|
-
function
|
|
20155
|
+
function e97() {
|
|
20138
20156
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M16.75 4H16v-.751c0-.965-.785-1.75-1.75-1.75h-1.5c-.965 0-1.75.785-1.75 1.75V4H9v-.751c0-.965-.785-1.75-1.75-1.75h-1.5c-.965 0-1.75.785-1.75 1.75V4h-.75C2.01 4 1 5.01 1 6.25v8.5C1 15.99 2.01 17 3.25 17h13.5c1.24 0 2.25-1.01 2.25-2.25v-8.5C19 5.01 17.99 4 16.75 4m-4.25-.751a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25V4h-2zm-7 0a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25V4h-2zm12 11.501a.75.75 0 0 1-.75.75H3.25a.75.75 0 0 1-.75-.75v-8.5a.75.75 0 0 1 .75-.75h13.5a.75.75 0 0 1 .75.75z"/></svg>';
|
|
20139
20157
|
}
|
|
20140
20158
|
|
|
20141
20159
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-plugin.js
|
|
20142
|
-
var
|
|
20160
|
+
var o64 = class extends a10 {
|
|
20143
20161
|
static get styles() {
|
|
20144
20162
|
return [t40];
|
|
20145
20163
|
}
|
|
20146
20164
|
render() {
|
|
20147
20165
|
return b`
|
|
20148
|
-
${o16(
|
|
20166
|
+
${o16(e97())}
|
|
20149
20167
|
`;
|
|
20150
20168
|
}
|
|
20151
20169
|
};
|
|
20152
|
-
e25("swc-icon-plugin",
|
|
20170
|
+
e25("swc-icon-plugin", o64);
|
|
20153
20171
|
|
|
20154
20172
|
// node_modules/@adobe/spectrum-wc-icons/dist/Search.js
|
|
20155
|
-
function
|
|
20173
|
+
function e98() {
|
|
20156
20174
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="m18.53 17.47-5.083-5.084A6.96 6.96 0 0 0 15 8c0-3.86-3.14-7-7-7S1 4.14 1 8s3.14 7 7 7c1.66 0 3.185-.584 4.386-1.553l5.084 5.083a.747.747 0 0 0 1.06 0 .75.75 0 0 0 0-1.06M8 13.5c-3.032 0-5.5-2.468-5.5-5.5S4.968 2.5 8 2.5s5.5 2.468 5.5 5.5-2.468 5.5-5.5 5.5"/></svg>';
|
|
20157
20175
|
}
|
|
20158
20176
|
|
|
20159
20177
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-search.js
|
|
20160
|
-
var
|
|
20178
|
+
var o65 = class extends a10 {
|
|
20161
20179
|
static get styles() {
|
|
20162
20180
|
return [t40];
|
|
20163
20181
|
}
|
|
20164
20182
|
render() {
|
|
20165
20183
|
return b`
|
|
20166
|
-
${o16(
|
|
20184
|
+
${o16(e98())}
|
|
20167
20185
|
`;
|
|
20168
20186
|
}
|
|
20169
20187
|
};
|
|
20170
|
-
e25("swc-icon-search",
|
|
20188
|
+
e25("swc-icon-search", o65);
|
|
20171
20189
|
|
|
20172
20190
|
// node_modules/@adobe/spectrum-wc-icons/dist/Tools.js
|
|
20173
|
-
function
|
|
20191
|
+
function e99() {
|
|
20174
20192
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="m8.747 5.33-1.82-3.505a1 1 0 0 0-.88-.54h-.008a1 1 0 0 0-.88.525l-1.89 3.5A2.3 2.3 0 0 0 3 6.38v10.37C3 17.99 4.01 19 5.25 19h1.5C7.99 19 9 17.99 9 16.75V6.366c0-.36-.088-.719-.253-1.037M7.5 7.5v7h-3v-7zM6.03 3.354 7.405 6H4.603zM6.75 17.5h-1.5a.75.75 0 0 1-.75-.75V16h3v.75c0 .413-.337.75-.75.75m8-16.5h-1.5C12.01 1 11 2.01 11 3.25v6.729l-.003.014.003.015v3.722l-.003.013.003.015v2.992c0 1.24 1.01 2.25 2.25 2.25h1.5c1.24 0 2.25-1.01 2.25-2.25V3.25C17 2.01 15.99 1 14.75 1m.75 15.75c0 .413-.337.75-.75.75h-1.5a.75.75 0 0 1-.75-.75v-2.251l1.244.005h.003a.75.75 0 0 0 .003-1.5l-1.25-.005v-2.25l1.244.005h.003a.75.75 0 0 0 .003-1.5l-1.25-.005V7.003l1.247.006h.003a.75.75 0 0 0 .003-1.5L12.5 5.503V3.25c0-.413.337-.75.75-.75h1.5c.413 0 .75.337.75.75z"/></svg>';
|
|
20175
20193
|
}
|
|
20176
20194
|
|
|
20177
20195
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-tools.js
|
|
20178
|
-
var
|
|
20196
|
+
var o66 = class extends a10 {
|
|
20179
20197
|
static get styles() {
|
|
20180
20198
|
return [t40];
|
|
20181
20199
|
}
|
|
20182
20200
|
render() {
|
|
20183
20201
|
return b`
|
|
20184
|
-
${o16(
|
|
20202
|
+
${o16(e99())}
|
|
20185
20203
|
`;
|
|
20186
20204
|
}
|
|
20187
20205
|
};
|
|
20188
|
-
e25("swc-icon-tools",
|
|
20206
|
+
e25("swc-icon-tools", o66);
|
|
20189
20207
|
|
|
20190
20208
|
// node_modules/@adobe/spectrum-wc-icons/dist/WebPage.js
|
|
20191
|
-
function
|
|
20209
|
+
function e100() {
|
|
20192
20210
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><circle cx="4.125" cy="6" r=".75" fill="var(--swc-icon-color, currentColor)"/><path fill="var(--swc-icon-color, currentColor)" d="M16.75 3H3.25C2.01 3 1 4.01 1 5.25v9.5C1 15.99 2.01 17 3.25 17h13.5c1.24 0 2.25-1.01 2.25-2.25v-9.5C19 4.01 17.99 3 16.75 3M2.5 5.25c0-.413.337-.75.75-.75h13.5c.413 0 .75.337.75.75V7.5h-15zM16.75 15.5H3.25a.75.75 0 0 1-.75-.75V9h15v5.75c0 .413-.337.75-.75.75"/></svg>';
|
|
20193
20211
|
}
|
|
20194
20212
|
|
|
20195
20213
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-web-page.js
|
|
20196
|
-
var
|
|
20214
|
+
var o67 = class extends a10 {
|
|
20197
20215
|
static get styles() {
|
|
20198
20216
|
return [t40];
|
|
20199
20217
|
}
|
|
20200
20218
|
render() {
|
|
20201
20219
|
return b`
|
|
20202
|
-
${o16(
|
|
20220
|
+
${o16(e100())}
|
|
20203
20221
|
`;
|
|
20204
20222
|
}
|
|
20205
20223
|
};
|
|
20206
|
-
e25("swc-icon-web-page",
|
|
20224
|
+
e25("swc-icon-web-page", o67);
|
|
20207
20225
|
|
|
20208
20226
|
// node_modules/@pierre/trees/dist/builtInIcons.js
|
|
20209
20227
|
var MINIMAL_SVG_SPRITE_SHEET = `<svg data-icon-sprite aria-hidden="true" width="0" height="0">
|
|
@@ -25877,8 +25895,8 @@ var t78;
|
|
|
25877
25895
|
var i22;
|
|
25878
25896
|
var r34;
|
|
25879
25897
|
var f8;
|
|
25880
|
-
var
|
|
25881
|
-
var
|
|
25898
|
+
var e101;
|
|
25899
|
+
var o68;
|
|
25882
25900
|
var c22;
|
|
25883
25901
|
var s14;
|
|
25884
25902
|
var a18;
|
|
@@ -25968,7 +25986,7 @@ function O3(n37, l24, u27, t90, i26) {
|
|
|
25968
25986
|
if ("string" == typeof t90 && (n37.style.cssText = t90 = ""), t90) for (l24 in t90) u27 && l24 in u27 || L2(n37.style, l24, "");
|
|
25969
25987
|
if (u27) for (l24 in u27) t90 && u27[l24] == t90[l24] || L2(n37.style, l24, u27[l24]);
|
|
25970
25988
|
}
|
|
25971
|
-
else if ("o" == l24[0] && "n" == l24[1]) r40 = l24 != (l24 = l24.replace(
|
|
25989
|
+
else if ("o" == l24[0] && "n" == l24[1]) r40 = l24 != (l24 = l24.replace(e101, "$1")), (l24 = l24.slice(2))[0].toLowerCase() != l24[0] && (l24 = l24.toLowerCase()), n37.__l || (n37.__l = {}), n37.__l[l24 + r40] = u27, u27 ? t90 ? u27.l = t90.l : (u27.l = o68, n37.addEventListener(l24, r40 ? s14 : c22, r40)) : n37.removeEventListener(l24, r40 ? s14 : c22, r40);
|
|
25972
25990
|
else {
|
|
25973
25991
|
if ("http://www.w3.org/2000/svg" == i26) l24 = l24.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
25974
25992
|
else if ("width" != l24 && "height" != l24 && "href" != l24 && "list" != l24 && "form" != l24 && "tabIndex" != l24 && "download" != l24 && "rowSpan" != l24 && "colSpan" != l24 && "role" != l24 && "popover" != l24 && l24 in n37) try {
|
|
@@ -25983,7 +26001,7 @@ function T6(l24) {
|
|
|
25983
26001
|
return function(u27) {
|
|
25984
26002
|
if (this.__l) {
|
|
25985
26003
|
var t90 = this.__l[u27.type + l24];
|
|
25986
|
-
if (null == u27.u) u27.u =
|
|
26004
|
+
if (null == u27.u) u27.u = o68++;
|
|
25987
26005
|
else if (u27.u < t90.l) return;
|
|
25988
26006
|
return t90(n34.event ? n34.event(u27) : u27);
|
|
25989
26007
|
}
|
|
@@ -26130,15 +26148,15 @@ n34 = { __e: function(n37, l24, u27, t90) {
|
|
|
26130
26148
|
this.__v && (this.__g |= 4, n37 && this.__h.push(n37), $2(this));
|
|
26131
26149
|
}, m12.prototype.render = k3, t78 = [], r34 = 0, f8 = function(n37, l24) {
|
|
26132
26150
|
return n37.__v.__b - l24.__v.__b;
|
|
26133
|
-
},
|
|
26151
|
+
}, e101 = /(PointerCapture)$|Capture$/i, o68 = 0, c22 = T6(false), s14 = T6(true), a18 = 0;
|
|
26134
26152
|
|
|
26135
26153
|
// node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
|
|
26136
|
-
var
|
|
26154
|
+
var o69 = 0;
|
|
26137
26155
|
function u22(t90, e129, n37, f11, u27, i26) {
|
|
26138
26156
|
e129 || (e129 = {});
|
|
26139
26157
|
var a23, c28, l24 = e129;
|
|
26140
26158
|
if ("ref" in l24 && "function" != typeof t90) for (c28 in l24 = {}, e129) "ref" == c28 ? a23 = e129[c28] : l24[c28] = e129[c28];
|
|
26141
|
-
var p17 = { type: t90, props: l24, key: n37, ref: a23, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
26159
|
+
var p17 = { type: t90, props: l24, key: n37, ref: a23, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --o69, __i: -1, __u: 0, __source: u27, __self: i26 };
|
|
26142
26160
|
return n34.vnode && n34.vnode(p17), p17;
|
|
26143
26161
|
}
|
|
26144
26162
|
|
|
@@ -26807,18 +26825,18 @@ var t79;
|
|
|
26807
26825
|
var r35;
|
|
26808
26826
|
var u23;
|
|
26809
26827
|
var i23;
|
|
26810
|
-
var
|
|
26828
|
+
var o70 = Object.is;
|
|
26811
26829
|
var f9 = 0;
|
|
26812
26830
|
var c23 = [];
|
|
26813
|
-
var
|
|
26814
|
-
var a19 =
|
|
26815
|
-
var v11 =
|
|
26816
|
-
var l19 =
|
|
26817
|
-
var m13 =
|
|
26818
|
-
var s15 =
|
|
26819
|
-
var p15 =
|
|
26831
|
+
var e102 = n34;
|
|
26832
|
+
var a19 = e102.__b;
|
|
26833
|
+
var v11 = e102.__r;
|
|
26834
|
+
var l19 = e102.diffed;
|
|
26835
|
+
var m13 = e102.__c;
|
|
26836
|
+
var s15 = e102.unmount;
|
|
26837
|
+
var p15 = e102.__;
|
|
26820
26838
|
function d18(n37, t90) {
|
|
26821
|
-
|
|
26839
|
+
e102.__h && e102.__h(r35, n37, f9 || t90), f9 = 0;
|
|
26822
26840
|
var u27 = r35.__H || (r35.__H = { __: [], __h: [] });
|
|
26823
26841
|
return n37 >= u27.__.length && u27.__.push({}), u27.__[n37];
|
|
26824
26842
|
}
|
|
@@ -26829,7 +26847,7 @@ function y7(n37, u27, i26) {
|
|
|
26829
26847
|
var f11 = d18(t79++, 2);
|
|
26830
26848
|
if (f11.t = n37, !f11.__c && (f11.__ = [i26 ? i26(u27) : D5(void 0, u27), function(n38) {
|
|
26831
26849
|
var t90 = f11.__N ? f11.__N[0] : f11.__[0], r40 = f11.t(t90, n38);
|
|
26832
|
-
|
|
26850
|
+
o70(t90, r40) || (f11.__N = [r40, f11.__[1]], f11.__c.setState({}));
|
|
26833
26851
|
}], f11.__c = r35, !r35.__f)) {
|
|
26834
26852
|
var c28 = function(n38, t90, r40) {
|
|
26835
26853
|
if (!f11.__c.__H) return true;
|
|
@@ -26843,7 +26861,7 @@ function y7(n37, u27, i26) {
|
|
|
26843
26861
|
return u28.forEach(function(n39) {
|
|
26844
26862
|
if (n39.__N) {
|
|
26845
26863
|
var t91 = n39.__[0];
|
|
26846
|
-
n39.__ = n39.__N, n39.__N = void 0,
|
|
26864
|
+
n39.__ = n39.__N, n39.__N = void 0, o70(t91, n39.__[0]) || (i27 = true);
|
|
26847
26865
|
}
|
|
26848
26866
|
}), e129 && e129.call(this, n38, t90, r40) || i27;
|
|
26849
26867
|
};
|
|
@@ -26861,11 +26879,11 @@ function y7(n37, u27, i26) {
|
|
|
26861
26879
|
}
|
|
26862
26880
|
function _6(n37, u27) {
|
|
26863
26881
|
var i26 = d18(t79++, 3);
|
|
26864
|
-
!
|
|
26882
|
+
!e102.__s && C5(i26.__H, u27) && (i26.__ = n37, i26.u = u27, r35.__H.__h.push(i26));
|
|
26865
26883
|
}
|
|
26866
26884
|
function A6(n37, u27) {
|
|
26867
26885
|
var i26 = d18(t79++, 4);
|
|
26868
|
-
!
|
|
26886
|
+
!e102.__s && C5(i26.__H, u27) && (i26.__ = n37, i26.u = u27, r35.__h.push(i26));
|
|
26869
26887
|
}
|
|
26870
26888
|
function F3(n37) {
|
|
26871
26889
|
return f9 = 5, q2(function() {
|
|
@@ -26885,26 +26903,26 @@ function g6() {
|
|
|
26885
26903
|
for (var n37; n37 = c23.shift(); ) if (n37.__P && n37.__H) try {
|
|
26886
26904
|
n37.__H.__h.forEach(z2), n37.__H.__h.forEach(B2), n37.__H.__h = [];
|
|
26887
26905
|
} catch (t90) {
|
|
26888
|
-
n37.__H.__h = [],
|
|
26906
|
+
n37.__H.__h = [], e102.__e(t90, n37.__v);
|
|
26889
26907
|
}
|
|
26890
26908
|
}
|
|
26891
|
-
|
|
26909
|
+
e102.__b = function(n37) {
|
|
26892
26910
|
r35 = null, a19 && a19(n37);
|
|
26893
|
-
},
|
|
26911
|
+
}, e102.__ = function(n37, t90) {
|
|
26894
26912
|
n37 && t90.__k && t90.__k.__m && (n37.__m = t90.__k.__m), p15 && p15(n37, t90);
|
|
26895
|
-
},
|
|
26913
|
+
}, e102.__r = function(n37) {
|
|
26896
26914
|
v11 && v11(n37), t79 = 0;
|
|
26897
26915
|
var i26 = (r35 = n37.__c).__H;
|
|
26898
26916
|
i26 && (u23 === r35 ? (i26.__h = [], r35.__h = [], i26.__.forEach(function(n38) {
|
|
26899
26917
|
n38.__N && (n38.__ = n38.__N), n38.u = n38.__N = void 0;
|
|
26900
26918
|
})) : (i26.__h.forEach(z2), i26.__h.forEach(B2), i26.__h = [], t79 = 0)), u23 = r35;
|
|
26901
|
-
},
|
|
26919
|
+
}, e102.diffed = function(n37) {
|
|
26902
26920
|
l19 && l19(n37);
|
|
26903
26921
|
var t90 = n37.__c;
|
|
26904
|
-
t90 && t90.__H && (t90.__H.__h.length && (1 !== c23.push(t90) && i23 ===
|
|
26922
|
+
t90 && t90.__H && (t90.__H.__h.length && (1 !== c23.push(t90) && i23 === e102.requestAnimationFrame || ((i23 = e102.requestAnimationFrame) || w6)(g6)), t90.__H.__.forEach(function(n38) {
|
|
26905
26923
|
n38.u && (n38.__H = n38.u), n38.u = void 0;
|
|
26906
26924
|
})), u23 = r35 = null;
|
|
26907
|
-
},
|
|
26925
|
+
}, e102.__c = function(n37, t90) {
|
|
26908
26926
|
t90.some(function(n38) {
|
|
26909
26927
|
try {
|
|
26910
26928
|
n38.__h.forEach(z2), n38.__h = n38.__h.filter(function(n39) {
|
|
@@ -26913,10 +26931,10 @@ e101.__b = function(n37) {
|
|
|
26913
26931
|
} catch (r40) {
|
|
26914
26932
|
t90.some(function(n39) {
|
|
26915
26933
|
n39.__h && (n39.__h = []);
|
|
26916
|
-
}), t90 = [],
|
|
26934
|
+
}), t90 = [], e102.__e(r40, n38.__v);
|
|
26917
26935
|
}
|
|
26918
26936
|
}), m13 && m13(n37, t90);
|
|
26919
|
-
},
|
|
26937
|
+
}, e102.unmount = function(n37) {
|
|
26920
26938
|
s15 && s15(n37);
|
|
26921
26939
|
var t90, r40 = n37.__c;
|
|
26922
26940
|
r40 && r40.__H && (r40.__H.__.forEach(function(n38) {
|
|
@@ -26925,7 +26943,7 @@ e101.__b = function(n37) {
|
|
|
26925
26943
|
} catch (n39) {
|
|
26926
26944
|
t90 = n39;
|
|
26927
26945
|
}
|
|
26928
|
-
}), r40.__H = void 0, t90 &&
|
|
26946
|
+
}), r40.__H = void 0, t90 && e102.__e(t90, r40.__v));
|
|
26929
26947
|
};
|
|
26930
26948
|
var k4 = "function" == typeof requestAnimationFrame;
|
|
26931
26949
|
function w6(n37) {
|
|
@@ -26944,7 +26962,7 @@ function B2(n37) {
|
|
|
26944
26962
|
}
|
|
26945
26963
|
function C5(n37, t90) {
|
|
26946
26964
|
return !n37 || n37.length !== t90.length || t90.some(function(t91, r40) {
|
|
26947
|
-
return !
|
|
26965
|
+
return !o70(t91, n37[r40]);
|
|
26948
26966
|
});
|
|
26949
26967
|
}
|
|
26950
26968
|
function D5(n37, t90) {
|
|
@@ -31672,13 +31690,15 @@ var SliccChat = class extends ThemedElement {
|
|
|
31672
31690
|
...ThemedElement.properties,
|
|
31673
31691
|
agent: {},
|
|
31674
31692
|
dropping: { state: true },
|
|
31675
|
-
compact: { state: true }
|
|
31693
|
+
compact: { state: true },
|
|
31694
|
+
behind: { state: true }
|
|
31676
31695
|
};
|
|
31677
31696
|
constructor() {
|
|
31678
31697
|
super();
|
|
31679
31698
|
this.agent = "";
|
|
31680
31699
|
this.dropping = false;
|
|
31681
31700
|
this.compact = false;
|
|
31701
|
+
this.behind = false;
|
|
31682
31702
|
this.addEventListener("dragenter", this.#over);
|
|
31683
31703
|
this.addEventListener("dragover", this.#over);
|
|
31684
31704
|
this.addEventListener("dragleave", this.#leave);
|
|
@@ -31779,6 +31799,13 @@ var SliccChat = class extends ThemedElement {
|
|
|
31779
31799
|
font-size: var(--swc-font-size-100);
|
|
31780
31800
|
color: var(--swc-neutral-subdued-content-color-default);
|
|
31781
31801
|
}
|
|
31802
|
+
.stage {
|
|
31803
|
+
position: relative;
|
|
31804
|
+
display: flex;
|
|
31805
|
+
flex-direction: column;
|
|
31806
|
+
flex: 1;
|
|
31807
|
+
min-height: 0;
|
|
31808
|
+
}
|
|
31782
31809
|
.log {
|
|
31783
31810
|
flex: 1;
|
|
31784
31811
|
min-height: 0;
|
|
@@ -31823,6 +31850,21 @@ var SliccChat = class extends ThemedElement {
|
|
|
31823
31850
|
font-weight: var(--swc-bold-font-weight);
|
|
31824
31851
|
color: var(--swc-accent-content-color-default);
|
|
31825
31852
|
}
|
|
31853
|
+
.jump {
|
|
31854
|
+
position: absolute;
|
|
31855
|
+
inset-inline: 0;
|
|
31856
|
+
bottom: calc(var(--composer-height, 0px) + var(--swc-spacing-200));
|
|
31857
|
+
z-index: 3;
|
|
31858
|
+
display: flex;
|
|
31859
|
+
justify-content: center;
|
|
31860
|
+
pointer-events: none;
|
|
31861
|
+
}
|
|
31862
|
+
.jump swc-action-button {
|
|
31863
|
+
pointer-events: auto;
|
|
31864
|
+
border-radius: var(--swc-corner-radius-1000);
|
|
31865
|
+
background: var(--swc-background-elevated-color);
|
|
31866
|
+
box-shadow: var(--swc-drop-shadow-elevated);
|
|
31867
|
+
}
|
|
31826
31868
|
.empty {
|
|
31827
31869
|
color: var(--swc-neutral-subdued-content-color-default);
|
|
31828
31870
|
text-align: center;
|
|
@@ -31865,6 +31907,8 @@ var SliccChat = class extends ThemedElement {
|
|
|
31865
31907
|
this.requestUpdate();
|
|
31866
31908
|
};
|
|
31867
31909
|
queueMicrotask(() => settleModels(model));
|
|
31910
|
+
this.#stuck = true;
|
|
31911
|
+
this.behind = false;
|
|
31868
31912
|
const width = new ResizeObserver(([entry]) => {
|
|
31869
31913
|
const size4 = entry.contentRect.width;
|
|
31870
31914
|
this.compact = size4 > 0 && size4 < compactWidth;
|
|
@@ -31895,12 +31939,10 @@ var SliccChat = class extends ThemedElement {
|
|
|
31895
31939
|
#height = 0;
|
|
31896
31940
|
#input = Number.NEGATIVE_INFINITY;
|
|
31897
31941
|
#up = Number.NEGATIVE_INFINITY;
|
|
31898
|
-
#from = 0;
|
|
31899
|
-
#start = 0;
|
|
31900
|
-
#settle;
|
|
31901
31942
|
#tick;
|
|
31902
31943
|
#tail = "";
|
|
31903
31944
|
#held = "";
|
|
31945
|
+
#mark = 0;
|
|
31904
31946
|
#focused = (event2) => {
|
|
31905
31947
|
const turn = event2.target.closest(".decision-turn[data-pending]");
|
|
31906
31948
|
this.#held = turn?.dataset.id ?? "";
|
|
@@ -31919,7 +31961,11 @@ var SliccChat = class extends ThemedElement {
|
|
|
31919
31961
|
const seat = this.model?.seat;
|
|
31920
31962
|
return seat ? mine(last, seat) : (last.origin ?? "user") === "user";
|
|
31921
31963
|
}
|
|
31922
|
-
#resize = new ResizeObserver(() =>
|
|
31964
|
+
#resize = new ResizeObserver(() => {
|
|
31965
|
+
const log = this.#log();
|
|
31966
|
+
if (!this.#stuck && log.scrollHeight <= log.clientHeight) this.#follow();
|
|
31967
|
+
else this.#pin();
|
|
31968
|
+
});
|
|
31923
31969
|
#fitted = null;
|
|
31924
31970
|
#fit = new ResizeObserver(([entry]) => {
|
|
31925
31971
|
this.style.setProperty("--composer-height", `${entry.target.offsetHeight}px`);
|
|
@@ -31928,6 +31974,16 @@ var SliccChat = class extends ThemedElement {
|
|
|
31928
31974
|
#log() {
|
|
31929
31975
|
return this.renderRoot.querySelector(".log");
|
|
31930
31976
|
}
|
|
31977
|
+
#slack() {
|
|
31978
|
+
return Number.parseFloat(getComputedStyle(this.#log()).lineHeight) || 0;
|
|
31979
|
+
}
|
|
31980
|
+
#gap() {
|
|
31981
|
+
const log = this.#log();
|
|
31982
|
+
return log.scrollHeight - log.scrollTop - log.clientHeight;
|
|
31983
|
+
}
|
|
31984
|
+
#bottom() {
|
|
31985
|
+
return this.#gap() <= this.#slack();
|
|
31986
|
+
}
|
|
31931
31987
|
#pin() {
|
|
31932
31988
|
if (!this.#stuck) return;
|
|
31933
31989
|
const log = this.#log();
|
|
@@ -31935,12 +31991,25 @@ var SliccChat = class extends ThemedElement {
|
|
|
31935
31991
|
this.#last = log.scrollTop;
|
|
31936
31992
|
this.#height = log.scrollHeight;
|
|
31937
31993
|
}
|
|
31994
|
+
#follow() {
|
|
31995
|
+
this.#stuck = true;
|
|
31996
|
+
this.behind = false;
|
|
31997
|
+
this.#pin();
|
|
31998
|
+
}
|
|
31999
|
+
#jump = () => {
|
|
32000
|
+
this.#follow();
|
|
32001
|
+
this.#log().focus({ preventScroll: true });
|
|
32002
|
+
};
|
|
31938
32003
|
#scroll = () => {
|
|
31939
32004
|
const log = this.#log();
|
|
31940
|
-
const
|
|
31941
|
-
const
|
|
31942
|
-
|
|
31943
|
-
|
|
32005
|
+
const top = log.scrollTop;
|
|
32006
|
+
const before = this.#height - top - log.clientHeight;
|
|
32007
|
+
const down = top - this.#last;
|
|
32008
|
+
if (this.#bottom()) {
|
|
32009
|
+
if (!this.#stuck && down > 1 && (performance.now() - this.#up > 1e3 || down > this.#slack()))
|
|
32010
|
+
this.#follow();
|
|
32011
|
+
} else if (top < this.#last && (performance.now() - this.#input < 1e3 || before > 2 * this.#slack()))
|
|
32012
|
+
this.#stuck = false;
|
|
31944
32013
|
this.#last = log.scrollTop;
|
|
31945
32014
|
this.#height = log.scrollHeight;
|
|
31946
32015
|
this.#pile();
|
|
@@ -31950,19 +32019,12 @@ var SliccChat = class extends ThemedElement {
|
|
|
31950
32019
|
handleEvent: (event2) => {
|
|
31951
32020
|
this.#input = performance.now();
|
|
31952
32021
|
const up = event2 instanceof WheelEvent ? event2.deltaY < 0 && !event2.ctrlKey : event2 instanceof KeyboardEvent && (upward.has(event2.key) || event2.key === " " && event2.shiftKey);
|
|
31953
|
-
|
|
31954
|
-
|
|
31955
|
-
|
|
31956
|
-
this.#up = this.#input;
|
|
31957
|
-
if (this.#settle === void 0) this.#start = Math.max(at, this.#last);
|
|
32022
|
+
this.#up = up ? this.#input : Number.NEGATIVE_INFINITY;
|
|
32023
|
+
const log = this.#log();
|
|
32024
|
+
if (!up || log.scrollTop <= 0) return;
|
|
31958
32025
|
this.#stuck = false;
|
|
31959
|
-
|
|
31960
|
-
this.#
|
|
31961
|
-
this.#settle = void 0;
|
|
31962
|
-
if (this.#start - this.#log().scrollTop >= 48) return;
|
|
31963
|
-
this.#stuck = true;
|
|
31964
|
-
this.#pin();
|
|
31965
|
-
}, 400);
|
|
32026
|
+
this.#last = log.scrollTop;
|
|
32027
|
+
this.#height = log.scrollHeight;
|
|
31966
32028
|
}
|
|
31967
32029
|
};
|
|
31968
32030
|
#hold = (event2) => {
|
|
@@ -31972,7 +32034,10 @@ var SliccChat = class extends ThemedElement {
|
|
|
31972
32034
|
if (this.#input === Number.POSITIVE_INFINITY) this.#input = performance.now();
|
|
31973
32035
|
};
|
|
31974
32036
|
#refresh(jump) {
|
|
31975
|
-
if (jump)
|
|
32037
|
+
if (jump) {
|
|
32038
|
+
this.#stuck = true;
|
|
32039
|
+
this.behind = false;
|
|
32040
|
+
} else if (!this.#stuck) this.behind = true;
|
|
31976
32041
|
this.requestUpdate();
|
|
31977
32042
|
void this.updateComplete.then(() => this.#pin());
|
|
31978
32043
|
}
|
|
@@ -32004,7 +32069,6 @@ var SliccChat = class extends ThemedElement {
|
|
|
32004
32069
|
this.#resize.disconnect();
|
|
32005
32070
|
this.#fit.disconnect();
|
|
32006
32071
|
this.#fitted = null;
|
|
32007
|
-
clearTimeout(this.#settle);
|
|
32008
32072
|
clearInterval(this.#tick);
|
|
32009
32073
|
this.#tick = void 0;
|
|
32010
32074
|
}
|
|
@@ -32301,6 +32365,11 @@ var SliccChat = class extends ThemedElement {
|
|
|
32301
32365
|
<swc-action-button id="new-chat" size="s" quiet data-action="new-chat" accessible-label=${this.compact ? "New conversation" : A} ?disabled=${empty5} @click=${() => this.#newChat(agent)}><swc-icon-new slot="icon"></swc-icon-new>${this.compact ? A : "New conversation"}</swc-action-button>
|
|
32302
32366
|
<swc-tooltip for="new-chat" placement="bottom">${agent.kind === "cone" && model.agent.freeze ? "Start a new conversation. This one stays in the Freezer." : "Start a new conversation"}</swc-tooltip>`;
|
|
32303
32367
|
}
|
|
32368
|
+
#latest(fresh2) {
|
|
32369
|
+
const label = fresh2 > 0 ? `Jump to latest (${fresh2} new)` : "Jump to latest";
|
|
32370
|
+
const spoken = fresh2 > 0 ? `Jump to latest, ${fresh2} new ${fresh2 === 1 ? "message" : "messages"}` : "Jump to latest";
|
|
32371
|
+
return b`<div class="jump"><swc-action-button size="s" data-action="jump-latest" accessible-label=${spoken} @click=${this.#jump}><swc-icon-chevron-down slot="icon"></swc-icon-chevron-down>${label}</swc-action-button><span class="sr" role="status" aria-live="polite" data-jump-status>${fresh2 > 0 ? `${fresh2} new ${fresh2 === 1 ? "message" : "messages"} below` : ""}</span></div>`;
|
|
32372
|
+
}
|
|
32304
32373
|
render() {
|
|
32305
32374
|
this.#handlers.color = this.color;
|
|
32306
32375
|
this.#handlers.model = this.model ?? null;
|
|
@@ -32312,32 +32381,38 @@ var SliccChat = class extends ThemedElement {
|
|
|
32312
32381
|
this.#handlers.seat = seat?.label;
|
|
32313
32382
|
const messages = agent ? this.model?.agent.messages(agent.id) ?? [] : [];
|
|
32314
32383
|
this.#tail = messages.at(-1)?.id ?? "";
|
|
32384
|
+
const items = agent && messages.length > 0 ? this.#items(messages, agent) : [];
|
|
32385
|
+
const count2 = items.filter(([key2]) => !key2.startsWith("day:")).length;
|
|
32386
|
+
if (!this.behind) this.#mark = count2;
|
|
32315
32387
|
return b`
|
|
32316
32388
|
<header ?data-compact=${this.compact}>
|
|
32317
32389
|
${agent ? this.#meta(agent, !messages.length) : b`<span>No agent</span>`}
|
|
32318
32390
|
</header>
|
|
32319
32391
|
<slicc-notices .model=${this.model}></slicc-notices>
|
|
32320
|
-
<div
|
|
32321
|
-
|
|
32322
|
-
|
|
32323
|
-
|
|
32324
|
-
|
|
32325
|
-
|
|
32326
|
-
|
|
32327
|
-
|
|
32328
|
-
|
|
32329
|
-
|
|
32330
|
-
|
|
32331
|
-
|
|
32332
|
-
|
|
32333
|
-
|
|
32334
|
-
|
|
32335
|
-
|
|
32336
|
-
|
|
32392
|
+
<div class="stage">
|
|
32393
|
+
<div
|
|
32394
|
+
class="log"
|
|
32395
|
+
role="log"
|
|
32396
|
+
aria-live="polite"
|
|
32397
|
+
aria-label="Conversation"
|
|
32398
|
+
tabindex="-1"
|
|
32399
|
+
@scroll=${this.#scroll}
|
|
32400
|
+
@wheel=${this.#intent}
|
|
32401
|
+
@touchstart=${this.#intent}
|
|
32402
|
+
@touchmove=${this.#intent}
|
|
32403
|
+
@keydown=${this.#intent}
|
|
32404
|
+
@pointerdown=${this.#hold}
|
|
32405
|
+
@focusin=${this.#focused}
|
|
32406
|
+
>
|
|
32407
|
+
<div class="column" @keydown=${this.#keys}>
|
|
32408
|
+
${items.length ? b`<swc-conversation-thread>${c(
|
|
32409
|
+
items,
|
|
32337
32410
|
([key2]) => key2,
|
|
32338
32411
|
([, item2]) => item2
|
|
32339
32412
|
)}</swc-conversation-thread>` : this.model?.tabs?.state().role === "connecting" ? b`<div class="empty" data-connecting>${connecting}</div>` : this.model?.agent.starting?.() ? A : b`<div class="empty" data-empty>${empty3(watch, seat, agent?.name ?? "the agent")}</div>`}
|
|
32413
|
+
</div>
|
|
32340
32414
|
</div>
|
|
32415
|
+
${this.behind ? this.#latest(count2 - this.#mark) : A}
|
|
32341
32416
|
</div>
|
|
32342
32417
|
${this.dropping ? b`<swc-dropzone dragged size="l" aria-label="Attach files" dragged-message="Drop to attach"><p>Drop to attach</p></swc-dropzone>` : A}
|
|
32343
32418
|
${watch ? watch === following(this.model)?.refused ? A : b`<p class="watch-only" role="note" data-follow="watch">${watch}</p>` : this.model && !agent?.frozen ? b`<slicc-composer .model=${this.model} .agent=${this.agent}></slicc-composer>` : A}
|
|
@@ -32346,22 +32421,22 @@ var SliccChat = class extends ThemedElement {
|
|
|
32346
32421
|
};
|
|
32347
32422
|
|
|
32348
32423
|
// node_modules/@adobe/spectrum-wc-icons/dist/FolderAdd.js
|
|
32349
|
-
function
|
|
32424
|
+
function e103() {
|
|
32350
32425
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M8.373 15.498H3.25a.75.75 0 0 1-.75-.75v-8.25h14.25a.75.75 0 0 1 .75.75V9.07a.75.75 0 0 0 1.5 0V7.248c0-1.24-1.01-2.25-2.25-2.25h-5.964a.75.75 0 0 1-.566-.258L8.515 2.773a2.25 2.25 0 0 0-1.7-.775H3.25C2.01 1.998 1 3.008 1 4.248v10.5c0 1.24 1.01 2.25 2.25 2.25h5.123a.75.75 0 0 0 0-1.5m-5.123-12h3.565a.75.75 0 0 1 .567.258l1.076 1.242H2.5v-.75a.75.75 0 0 1 .75-.75"/><path fill="var(--swc-icon-color, currentColor)" d="M15 10.498a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9m2.5 5.125h-1.875v1.875a.625.625 0 1 1-1.25 0v-1.875H12.5a.625.625 0 1 1 0-1.25h1.875v-1.875a.625.625 0 1 1 1.25 0v1.875H17.5a.625.625 0 1 1 0 1.25"/></svg>';
|
|
32351
32426
|
}
|
|
32352
32427
|
|
|
32353
32428
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-folder-add.js
|
|
32354
|
-
var
|
|
32429
|
+
var o71 = class extends a10 {
|
|
32355
32430
|
static get styles() {
|
|
32356
32431
|
return [t40];
|
|
32357
32432
|
}
|
|
32358
32433
|
render() {
|
|
32359
32434
|
return b`
|
|
32360
|
-
${o16(
|
|
32435
|
+
${o16(e103())}
|
|
32361
32436
|
`;
|
|
32362
32437
|
}
|
|
32363
32438
|
};
|
|
32364
|
-
e25("swc-icon-folder-add",
|
|
32439
|
+
e25("swc-icon-folder-add", o71);
|
|
32365
32440
|
|
|
32366
32441
|
// src/app/search.ts
|
|
32367
32442
|
var searchCss = i`
|
|
@@ -33040,7 +33115,7 @@ var SliccFileView = class extends ThemedElement {
|
|
|
33040
33115
|
var t80 = i`:host([indeterminate]) .swc-LinearProgress-fill{inline-size:100%;min-inline-size:0;transform-origin:left;transition:none;animation:indeterminate-loop-ltr 1s cubic-bezier(.45,0,.4,1) infinite;will-change:transform;&:dir(rtl){animation-name:indeterminate-loop-rtl}}@keyframes indeterminate-loop-ltr{0%{transform:translate(-70%) scaleX(.7)}to{transform:translate(100%) scaleX(.7)}}@keyframes indeterminate-loop-rtl{0%{transform:translate(100%) scaleX(.7)}to{transform:translate(-70%) scaleX(.7)}}@media(prefers-reduced-motion:reduce){:host([indeterminate]) .swc-LinearProgress-fill{animation-duration:15s;animation-timing-function:linear}}`;
|
|
33041
33116
|
|
|
33042
33117
|
// node_modules/@adobe/spectrum-wc-core/dist/components/progress-bar/ProgressBar.base.js
|
|
33043
|
-
var
|
|
33118
|
+
var o72 = class extends m3(i12(i9, {
|
|
33044
33119
|
validSizes: s6,
|
|
33045
33120
|
defaultSize: "m"
|
|
33046
33121
|
})) {
|
|
@@ -33051,10 +33126,10 @@ var o71 = class extends m3(i12(i9, {
|
|
|
33051
33126
|
e24([n({
|
|
33052
33127
|
type: Boolean,
|
|
33053
33128
|
reflect: true
|
|
33054
|
-
})],
|
|
33129
|
+
})], o72.prototype, "indeterminate", void 0);
|
|
33055
33130
|
|
|
33056
33131
|
// node_modules/@adobe/spectrum-wc/dist/components/progress-bar/ProgressBar.js
|
|
33057
|
-
var
|
|
33132
|
+
var o73 = class extends o72 {
|
|
33058
33133
|
static get styles() {
|
|
33059
33134
|
return [t26, t80];
|
|
33060
33135
|
}
|
|
@@ -33103,25 +33178,25 @@ var o72 = class extends o71 {
|
|
|
33103
33178
|
};
|
|
33104
33179
|
|
|
33105
33180
|
// node_modules/@adobe/spectrum-wc/dist/components/progress-bar/swc-progress-bar.js
|
|
33106
|
-
e25("swc-progress-bar",
|
|
33181
|
+
e25("swc-progress-bar", o73);
|
|
33107
33182
|
|
|
33108
33183
|
// node_modules/@adobe/spectrum-wc-icons/dist/Copy.js
|
|
33109
|
-
function
|
|
33184
|
+
function e104() {
|
|
33110
33185
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M11.75 18h-7.5C3.01 18 2 16.99 2 15.75v-7.5C2 7.01 3.01 6 4.25 6a.75.75 0 0 1 0 1.5.75.75 0 0 0-.75.75v7.5c0 .413.337.75.75.75h7.5c.413 0 .75-.337.75-.75a.75.75 0 0 1 1.5 0c0 1.24-1.01 2.25-2.25 2.25m-5-13A.75.75 0 0 1 6 4.25C6 3.01 7.01 2 8.25 2a.75.75 0 0 1 0 1.5.75.75 0 0 0-.75.75.75.75 0 0 1-.75.75M13 3.5h-2A.75.75 0 0 1 11 2h2a.75.75 0 0 1 0 1.5"/><path fill="var(--swc-icon-color, currentColor)" d="M13 14h-2a.75.75 0 0 1 0-1.5h2a.75.75 0 0 1 0 1.5m2.75 0a.75.75 0 0 1 0-1.5c.413 0 .75-.337.75-.75a.75.75 0 0 1 1.5 0c0 1.24-1.01 2.25-2.25 2.25m1.5-9a.75.75 0 0 1-.75-.75.75.75 0 0 0-.75-.75.75.75 0 0 1 0-1.5C16.99 2 18 3.01 18 4.25a.75.75 0 0 1-.75.75m0 4.75A.75.75 0 0 1 16.5 9V7A.75.75 0 0 1 18 7v2a.75.75 0 0 1-.75.75m-10.5 0A.75.75 0 0 1 6 9V7a.75.75 0 0 1 1.5 0v2a.75.75 0 0 1-.75.75M8.25 14C7.01 14 6 12.99 6 11.75a.75.75 0 0 1 1.5 0c0 .413.337.75.75.75a.75.75 0 0 1 0 1.5"/></svg>';
|
|
33111
33186
|
}
|
|
33112
33187
|
|
|
33113
33188
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-copy.js
|
|
33114
|
-
var
|
|
33189
|
+
var o74 = class extends a10 {
|
|
33115
33190
|
static get styles() {
|
|
33116
33191
|
return [t40];
|
|
33117
33192
|
}
|
|
33118
33193
|
render() {
|
|
33119
33194
|
return b`
|
|
33120
|
-
${o16(
|
|
33195
|
+
${o16(e104())}
|
|
33121
33196
|
`;
|
|
33122
33197
|
}
|
|
33123
33198
|
};
|
|
33124
|
-
e25("swc-icon-copy",
|
|
33199
|
+
e25("swc-icon-copy", o74);
|
|
33125
33200
|
|
|
33126
33201
|
// src/app/disclosure.ts
|
|
33127
33202
|
var chevron = b`<swc-icon-chevron-right class="chevron" size="s" aria-hidden="true"></swc-icon-chevron-right>`;
|
|
@@ -35049,7 +35124,7 @@ var i24 = e2(class extends i3 {
|
|
|
35049
35124
|
|
|
35050
35125
|
// node_modules/lit-html/static.js
|
|
35051
35126
|
var a20 = /* @__PURE__ */ Symbol.for("");
|
|
35052
|
-
var
|
|
35127
|
+
var o75 = (t90) => {
|
|
35053
35128
|
if (t90?.r === a20) return t90?._$litStatic$;
|
|
35054
35129
|
};
|
|
35055
35130
|
var s16 = (t90) => ({ _$litStatic$: t90, r: a20 });
|
|
@@ -35060,7 +35135,7 @@ var n35 = (t90) => (r40, ...e129) => {
|
|
|
35060
35135
|
const n37 = [], u27 = [];
|
|
35061
35136
|
let c28, $6 = 0, f11 = false;
|
|
35062
35137
|
for (; $6 < a23; ) {
|
|
35063
|
-
for (c28 = r40[$6]; $6 < a23 && void 0 !== (i26 = e129[$6], s19 =
|
|
35138
|
+
for (c28 = r40[$6]; $6 < a23 && void 0 !== (i26 = e129[$6], s19 = o75(i26)); ) c28 += s19 + r40[++$6], f11 = true;
|
|
35064
35139
|
$6 !== a23 && u27.push(i26), n37.push(c28), $6++;
|
|
35065
35140
|
}
|
|
35066
35141
|
if ($6 === a23 && n37.push(r40[a23]), f11) {
|
|
@@ -35155,112 +35230,112 @@ async function grammar(kind, name, version2, remote = grammarCdn, importer = (ur
|
|
|
35155
35230
|
}
|
|
35156
35231
|
|
|
35157
35232
|
// node_modules/@adobe/spectrum-wc-icons/dist/Cloud.js
|
|
35158
|
-
function
|
|
35233
|
+
function e105() {
|
|
35159
35234
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M15.407 17H3.717a3.456 3.456 0 0 1-3.45-3.452 3.45 3.45 0 0 1 2.323-3.25 4 4 0 0 1-.065-.702c0-2.18 1.81-3.953 4.034-3.953q.42 0 .831.087c.637-1.958 2.476-3.346 4.589-3.346a4.85 4.85 0 0 1 4.844 4.844q0 .659-.187 1.298a4.32 4.32 0 0 1 3.103 4.142A4.337 4.337 0 0 1 15.407 17M6.559 7.143c-1.397 0-2.534 1.1-2.534 2.453q.001.5.206.965a.75.75 0 0 1-.637 1.051 1.95 1.95 0 0 0-1.828 1.936c0 1.076.876 1.952 1.952 1.952h11.689a2.835 2.835 0 0 0 2.832-2.832 2.826 2.826 0 0 0-2.682-2.814.75.75 0 0 1-.625-1.095c.26-.5.39-1.015.39-1.531 0-1.844-1.5-3.344-3.344-3.344-1.662 0-3.08 1.252-3.297 2.912a.75.75 0 0 1-1.054.585 2.6 2.6 0 0 0-1.068-.238"/></svg>';
|
|
35160
35235
|
}
|
|
35161
35236
|
|
|
35162
35237
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-cloud.js
|
|
35163
|
-
var
|
|
35238
|
+
var o76 = class extends a10 {
|
|
35164
35239
|
static get styles() {
|
|
35165
35240
|
return [t40];
|
|
35166
35241
|
}
|
|
35167
35242
|
render() {
|
|
35168
35243
|
return b`
|
|
35169
|
-
${o16(
|
|
35244
|
+
${o16(e105())}
|
|
35170
35245
|
`;
|
|
35171
35246
|
}
|
|
35172
35247
|
};
|
|
35173
|
-
e25("swc-icon-cloud",
|
|
35248
|
+
e25("swc-icon-cloud", o76);
|
|
35174
35249
|
|
|
35175
35250
|
// node_modules/@adobe/spectrum-wc-icons/dist/CloudStateError.js
|
|
35176
|
-
function
|
|
35251
|
+
function e106() {
|
|
35177
35252
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M15.5 9.021a4.5 4.5 0 1 0 0 9c2.485 0 4.48-2.015 4.48-4.5s-1.995-4.5-4.48-4.5m.95 6.895c0 .472-.425.855-.95.855s-.95-.383-.95-.855v-.289c0-.472.425-.856.95-.856s.95.384.95.856zm-.075-2.495c0 .414-.392.75-.875.75s-.875-.336-.875-.75v-2.65c0-.414.392-.75.875-.75s.875.336.875.75z"/><path fill="var(--swc-icon-color, currentColor)" d="M9.25 16.998H3.718a3.455 3.455 0 0 1-3.452-3.451 3.45 3.45 0 0 1 2.324-3.25 4 4 0 0 1-.065-.703c0-2.18 1.81-3.952 4.034-3.952q.42 0 .83.087c.638-1.958 2.477-3.347 4.59-3.347a4.826 4.826 0 0 1 4.818 4.35.75.75 0 1 1-1.492.15 3.33 3.33 0 0 0-3.326-3c-1.664 0-3.08 1.252-3.297 2.912a.752.752 0 0 1-1.054.586 2.6 2.6 0 0 0-1.07-.238c-1.396 0-2.533 1.1-2.533 2.452q.001.5.206.965a.75.75 0 0 1-.637 1.051 1.95 1.95 0 0 0-1.828 1.937c0 1.076.876 1.951 1.952 1.951H9.25a.75.75 0 0 1 0 1.5"/></svg>';
|
|
35178
35253
|
}
|
|
35179
35254
|
|
|
35180
35255
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-cloud-state-error.js
|
|
35181
|
-
var
|
|
35256
|
+
var o77 = class extends a10 {
|
|
35182
35257
|
static get styles() {
|
|
35183
35258
|
return [t40];
|
|
35184
35259
|
}
|
|
35185
35260
|
render() {
|
|
35186
35261
|
return b`
|
|
35187
|
-
${o16(
|
|
35262
|
+
${o16(e106())}
|
|
35188
35263
|
`;
|
|
35189
35264
|
}
|
|
35190
35265
|
};
|
|
35191
|
-
e25("swc-icon-cloud-state-error",
|
|
35266
|
+
e25("swc-icon-cloud-state-error", o77);
|
|
35192
35267
|
|
|
35193
35268
|
// node_modules/@adobe/spectrum-wc-icons/dist/CloudStateOnline.js
|
|
35194
|
-
function
|
|
35269
|
+
function e107() {
|
|
35195
35270
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M9.25 17.002H3.718A3.455 3.455 0 0 1 .266 13.55 3.45 3.45 0 0 1 2.59 10.3a4 4 0 0 1-.065-.703c0-2.18 1.81-3.952 4.034-3.952q.42 0 .83.087c.638-1.959 2.477-3.347 4.59-3.347a4.85 4.85 0 0 1 4.843 4.844q0 .464-.093.92a.745.745 0 0 1-.885.583.75.75 0 0 1-.584-.884q.061-.307.062-.619c0-1.844-1.5-3.344-3.343-3.344-1.664 0-3.08 1.252-3.297 2.912a.752.752 0 0 1-1.054.586 2.6 2.6 0 0 0-1.07-.238c-1.396 0-2.533 1.1-2.533 2.452q.001.5.206.965a.75.75 0 0 1-.637 1.051 1.95 1.95 0 0 0-1.828 1.937c0 1.076.876 1.951 1.952 1.951H9.25a.75.75 0 0 1 0 1.5"/><path fill="var(--swc-icon-color, currentColor)" d="M18.503 13.434a.75.75 0 0 1-.53-.22 4.88 4.88 0 0 0-3.472-1.442h-.006a4.87 4.87 0 0 0-3.462 1.433.75.75 0 1 1-1.06-1.06 6.35 6.35 0 0 1 4.522-1.873h.007c1.712.002 3.32.67 4.531 1.881a.75.75 0 0 1-.53 1.28"/><path fill="var(--swc-icon-color, currentColor)" d="M16.384 15.544a.75.75 0 0 1-.53-.22 1.916 1.916 0 0 0-2.706-.004.75.75 0 1 1-1.06-1.06 3.4 3.4 0 0 1 2.41-.998h.003a3.4 3.4 0 0 1 2.413 1.002.75.75 0 0 1-.53 1.28"/><path fill="var(--swc-icon-color, currentColor)" d="M15.136 17.64a.897.897 0 0 1-1.27.001.9.9 0 1 1 1.27-.001" data-name="Path 1027855"/></svg>';
|
|
35196
35271
|
}
|
|
35197
35272
|
|
|
35198
35273
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-cloud-state-online.js
|
|
35199
|
-
var
|
|
35274
|
+
var o78 = class extends a10 {
|
|
35200
35275
|
static get styles() {
|
|
35201
35276
|
return [t40];
|
|
35202
35277
|
}
|
|
35203
35278
|
render() {
|
|
35204
35279
|
return b`
|
|
35205
|
-
${o16(
|
|
35280
|
+
${o16(e107())}
|
|
35206
35281
|
`;
|
|
35207
35282
|
}
|
|
35208
35283
|
};
|
|
35209
|
-
e25("swc-icon-cloud-state-online",
|
|
35284
|
+
e25("swc-icon-cloud-state-online", o78);
|
|
35210
35285
|
|
|
35211
35286
|
// node_modules/@adobe/spectrum-wc-icons/dist/CloudStateSlowConnection.js
|
|
35212
|
-
function
|
|
35287
|
+
function e108() {
|
|
35213
35288
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M8.946 16.998H3.718a3.455 3.455 0 0 1-3.452-3.451 3.45 3.45 0 0 1 2.324-3.25 4 4 0 0 1-.065-.703c0-2.18 1.81-3.952 4.034-3.952q.42 0 .83.087c.638-1.958 2.477-3.347 4.59-3.347a4.826 4.826 0 0 1 4.818 4.35.75.75 0 1 1-1.492.15 3.33 3.33 0 0 0-3.326-3c-1.664 0-3.08 1.252-3.297 2.912a.752.752 0 0 1-1.054.586 2.6 2.6 0 0 0-1.07-.238c-1.396 0-2.533 1.1-2.533 2.452q.001.5.206.965a.75.75 0 0 1-.637 1.051 1.95 1.95 0 0 0-1.828 1.937c0 1.076.876 1.951 1.952 1.951h5.228a.75.75 0 0 1 0 1.5M19 16.271v-7a.75.75 0 0 0-1.5 0v7a.75.75 0 0 0 1.5 0m-3 0v-5a.75.75 0 0 0-1.5 0v5a.75.75 0 0 0 1.5 0"/><path fill="var(--swc-icon-color, currentColor)" d="M13 16.271v-3a.75.75 0 0 0-1.5 0v3a.75.75 0 0 0 1.5 0"/></svg>';
|
|
35214
35289
|
}
|
|
35215
35290
|
|
|
35216
35291
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-cloud-state-slow-connection.js
|
|
35217
|
-
var
|
|
35292
|
+
var o79 = class extends a10 {
|
|
35218
35293
|
static get styles() {
|
|
35219
35294
|
return [t40];
|
|
35220
35295
|
}
|
|
35221
35296
|
render() {
|
|
35222
35297
|
return b`
|
|
35223
|
-
${o16(
|
|
35298
|
+
${o16(e108())}
|
|
35224
35299
|
`;
|
|
35225
35300
|
}
|
|
35226
35301
|
};
|
|
35227
|
-
e25("swc-icon-cloud-state-slow-connection",
|
|
35302
|
+
e25("swc-icon-cloud-state-slow-connection", o79);
|
|
35228
35303
|
|
|
35229
35304
|
// node_modules/@adobe/spectrum-wc-icons/dist/Visibility.js
|
|
35230
|
-
function
|
|
35305
|
+
function e109() {
|
|
35231
35306
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M10.034 16.662C5.143 16.662.75 12.273.75 10.2c0-1.685 2.598-4.55 5.347-5.898A8.95 8.95 0 0 1 9.99 3.35c5.158 0 9.26 4.919 9.26 6.85 0 2.072-4.36 6.46-9.216 6.46M10 4.85a7.44 7.44 0 0 0-3.24.797C4.155 6.923 2.25 9.397 2.25 10.2c0 1.144 3.68 4.96 7.784 4.96 4.069 0 7.716-3.816 7.716-4.96 0-1.05-3.481-5.35-7.75-5.35m-3.569.124h.01z"/><path fill="var(--swc-icon-color, currentColor)" d="M9.83 7.644c.222-.637-.474-1.26-1.1-1.01a3.5 3.5 0 0 0-1.283.88 3.565 3.565 0 0 0 4.697 5.315 3.54 3.54 0 0 0 1.317-1.833c.209-.684-.458-1.25-1.119-.976A1.904 1.904 0 0 1 9.85 8.943a1.88 1.88 0 0 1-.02-1.3"/></svg>';
|
|
35232
35307
|
}
|
|
35233
35308
|
|
|
35234
35309
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-visibility.js
|
|
35235
|
-
var
|
|
35310
|
+
var o80 = class extends a10 {
|
|
35236
35311
|
static get styles() {
|
|
35237
35312
|
return [t40];
|
|
35238
35313
|
}
|
|
35239
35314
|
render() {
|
|
35240
35315
|
return b`
|
|
35241
|
-
${o16(
|
|
35316
|
+
${o16(e109())}
|
|
35242
35317
|
`;
|
|
35243
35318
|
}
|
|
35244
35319
|
};
|
|
35245
|
-
e25("swc-icon-visibility",
|
|
35320
|
+
e25("swc-icon-visibility", o80);
|
|
35246
35321
|
|
|
35247
35322
|
// node_modules/@adobe/spectrum-wc-icons/dist/VisibilityOff.js
|
|
35248
|
-
function
|
|
35323
|
+
function e110() {
|
|
35249
35324
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M9.966 16.683C5.11 16.683.75 12.294.75 10.222c0-.92.864-2.36 2.201-3.668A.75.75 0 1 1 4 7.626c-1.31 1.281-1.75 2.32-1.75 2.596 0 1.144 3.647 4.96 7.716 4.96a7.3 7.3 0 0 0 1.863-.251.756.756 0 0 1 .917.534c.106.4-.134.81-.534.917-.756.2-1.512.3-2.246.3m6.638-2.839a.75.75 0 0 1-.506-1.304c1.14-1.042 1.652-1.982 1.652-2.317 0-.802-1.904-3.277-4.51-4.552a7.4 7.4 0 0 0-3.25-.798 7 7 0 0 0-1.905.28.75.75 0 1 1-.416-1.441A8.4 8.4 0 0 1 10 3.371a8.95 8.95 0 0 1 3.907.954c2.742 1.343 5.343 4.21 5.343 5.896 0 .919-.8 2.199-2.14 3.424a.75.75 0 0 1-.506.197"/><path fill="var(--swc-icon-color, currentColor)" d="m18.78 17.741-5.778-5.778c.204-.296.358-.615.46-.946.208-.684-.46-1.25-1.12-.976-.495.206-.946.14-1.18.081L9.788 8.75a1.9 1.9 0 0 1 .04-1.085c.223-.637-.473-1.26-1.1-1.01a3.5 3.5 0 0 0-.677.358L2.28 1.241a.75.75 0 1 0-1.06 1.06l16.5 16.5a.747.747 0 0 0 1.06 0 .75.75 0 0 0 0-1.06M8.205 12.998a3.53 3.53 0 0 0 2.319.484L6.542 9.501a3.56 3.56 0 0 0 1.663 3.497"/></svg>';
|
|
35250
35325
|
}
|
|
35251
35326
|
|
|
35252
35327
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-visibility-off.js
|
|
35253
|
-
var
|
|
35328
|
+
var o81 = class extends a10 {
|
|
35254
35329
|
static get styles() {
|
|
35255
35330
|
return [t40];
|
|
35256
35331
|
}
|
|
35257
35332
|
render() {
|
|
35258
35333
|
return b`
|
|
35259
|
-
${o16(
|
|
35334
|
+
${o16(e110())}
|
|
35260
35335
|
`;
|
|
35261
35336
|
}
|
|
35262
35337
|
};
|
|
35263
|
-
e25("swc-icon-visibility-off",
|
|
35338
|
+
e25("swc-icon-visibility-off", o81);
|
|
35264
35339
|
|
|
35265
35340
|
// node_modules/@adobe/spectrum-wc/dist/link.css
|
|
35266
35341
|
var link_default = '/**\n * Copyright 2026 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/**\n * Standalone link presentation for native `<a href>` elements.\n *\n * Default anchor appearance inside `.swc-Typography--prose` and\n * `.swc-Typography--links` ships with `typography.css` (generated). Import this\n * stylesheet when authors need explicit BEM modifiers on anchors.\n *\n */\n\n.swc-Link {\n inline-size: -moz-fit-content;\n inline-size: fit-content;\n font-family: var(--swc-sans-font-family-stack);\n font-size: var(--swc-font-size-100);\n font-style: normal;\n font-weight: 400;\n line-height: 1.30;\n color: var(--swc-link-text-color-default, var(--swc-accent-color-900));\n -webkit-text-decoration: underline;\n text-decoration: underline;\n text-decoration-thickness: 1px;\n text-underline-offset: 1px;\n transition: color 130ms ease-in-out;\n\n &:hover {\n color: var(--swc-link-text-color-hover, var(--swc-accent-color-1000));\n }\n\n &:active {\n color: var(--swc-link-text-color-down, var(--swc-accent-color-1000));\n }\n\n &:focus-visible {\n color: var(--swc-link-text-color-focus, var(--swc-accent-color-1000));\n border-radius: 4px;\n outline: 2px solid var(--swc-link-focus-indicator-color, var(--swc-blue-800));\n outline-offset: 2px;\n }\n\n &:lang(ja),\n &:lang(zh),\n &:lang(ko) {\n line-height: 1.50;\n }\n}\n\n.swc-Link--standalone {\n font-weight: 500;\n}\n\n.swc-Link--secondary {\n --swc-link-text-color-default: var(--swc-gray-800);\n --swc-link-text-color-hover: var(--swc-gray-900);\n --swc-link-text-color-down: var(--swc-gray-900);\n --swc-link-text-color-focus: var(--swc-gray-900);\n}\n\n.swc-Link--staticWhite {\n --swc-link-text-color-default: var(--swc-white);\n --swc-link-text-color-hover: var(--swc-white);\n --swc-link-text-color-down: var(--swc-white);\n --swc-link-text-color-focus: var(--swc-white);\n --swc-link-focus-indicator-color: var(--swc-white);\n}\n\n.swc-Link--staticBlack {\n --swc-link-text-color-default: var(--swc-black);\n --swc-link-text-color-hover: var(--swc-black);\n --swc-link-text-color-down: var(--swc-black);\n --swc-link-text-color-focus: var(--swc-black);\n --swc-link-focus-indicator-color: var(--swc-black);\n}\n\n.swc-Link--quiet.swc-Link--standalone {\n -webkit-text-decoration: none;\n text-decoration: none;\n}\n\n.swc-Link--quiet.swc-Link--standalone:hover {\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n';
|
|
@@ -38724,14 +38799,14 @@ var KeptSession = class {
|
|
|
38724
38799
|
sink.exit(this.#status);
|
|
38725
38800
|
return Promise.resolve(ended2);
|
|
38726
38801
|
}
|
|
38727
|
-
const
|
|
38802
|
+
const session2 = this.#session !== null ? this.#session.then((live) => {
|
|
38728
38803
|
live.resize(size4.cols, size4.rows);
|
|
38729
38804
|
return live;
|
|
38730
38805
|
}) : this.#start(size4);
|
|
38731
|
-
return
|
|
38806
|
+
return session2.then((live) => this.#handle(live, sink));
|
|
38732
38807
|
}
|
|
38733
|
-
replay(
|
|
38734
|
-
for (const chunk of this.#log)
|
|
38808
|
+
replay(write2) {
|
|
38809
|
+
for (const chunk of this.#log) write2(chunk);
|
|
38735
38810
|
}
|
|
38736
38811
|
dispose() {
|
|
38737
38812
|
this.#sink = null;
|
|
@@ -38754,12 +38829,12 @@ var KeptSession = class {
|
|
|
38754
38829
|
this.#sink?.exit(status2);
|
|
38755
38830
|
}
|
|
38756
38831
|
};
|
|
38757
|
-
const
|
|
38758
|
-
this.#session =
|
|
38759
|
-
|
|
38760
|
-
if (this.#session ===
|
|
38832
|
+
const session2 = Promise.resolve().then(() => this.#backend().open(relay, size4));
|
|
38833
|
+
this.#session = session2;
|
|
38834
|
+
session2.catch(() => {
|
|
38835
|
+
if (this.#session === session2) this.#session = null;
|
|
38761
38836
|
});
|
|
38762
|
-
return
|
|
38837
|
+
return session2;
|
|
38763
38838
|
}
|
|
38764
38839
|
#record(data) {
|
|
38765
38840
|
this.#log.push(data.slice());
|
|
@@ -38788,9 +38863,9 @@ function sessions(port) {
|
|
|
38788
38863
|
kept.set(port, fresh2);
|
|
38789
38864
|
port.on("terminals", (terminals) => {
|
|
38790
38865
|
const live = new Set(terminals.map((terminal) => terminal.id));
|
|
38791
|
-
for (const [id,
|
|
38866
|
+
for (const [id, session2] of fresh2) {
|
|
38792
38867
|
if (live.has(id)) continue;
|
|
38793
|
-
|
|
38868
|
+
session2.dispose();
|
|
38794
38869
|
fresh2.delete(id);
|
|
38795
38870
|
}
|
|
38796
38871
|
});
|
|
@@ -38798,12 +38873,12 @@ function sessions(port) {
|
|
|
38798
38873
|
}
|
|
38799
38874
|
function keep(port, id) {
|
|
38800
38875
|
const map = sessions(port);
|
|
38801
|
-
let
|
|
38802
|
-
if (!
|
|
38803
|
-
|
|
38804
|
-
map.set(id,
|
|
38876
|
+
let session2 = map.get(id);
|
|
38877
|
+
if (!session2) {
|
|
38878
|
+
session2 = new KeptSession(() => port.backend(id));
|
|
38879
|
+
map.set(id, session2);
|
|
38805
38880
|
}
|
|
38806
|
-
return
|
|
38881
|
+
return session2;
|
|
38807
38882
|
}
|
|
38808
38883
|
var SliccTerminalPanel = class extends ThemedElement {
|
|
38809
38884
|
static properties = { ...ThemedElement.properties, terminal: {} };
|
|
@@ -38899,9 +38974,9 @@ var SliccTerminalPanel = class extends ThemedElement {
|
|
|
38899
38974
|
const hidden = await this.#placed(info.id, terminal);
|
|
38900
38975
|
terminal.fit();
|
|
38901
38976
|
const cols = terminal.cols;
|
|
38902
|
-
const
|
|
38977
|
+
const session2 = await backend.open(sink, { cols, rows: terminal.rows });
|
|
38903
38978
|
if (hidden) void this.#relayout(terminal, backend, cols);
|
|
38904
|
-
return
|
|
38979
|
+
return session2;
|
|
38905
38980
|
}
|
|
38906
38981
|
};
|
|
38907
38982
|
terminal.addEventListener("exit", () => model.terminals.close(info.id));
|
|
@@ -41731,7 +41806,7 @@ ${swc_default}`));
|
|
|
41731
41806
|
var t81 = i`:host{display:block}*{box-sizing:border-box}.swc-Divider{--_swc-divider-thickness: var(--swc-divider-thickness, 2px);inline-size:100%;block-size:var(--_swc-divider-thickness);background-color:var(--swc-divider-background-color, var(--swc-gray-200));border-radius:var(--_swc-divider-thickness)}:host([size=\"s\"]){--swc-divider-thickness: 1px}:host([size=\"l\"]){--swc-divider-thickness: 4px;--swc-divider-background-color: var(--swc-gray-800)}.swc-Divider:not(.swc-Divider--vertical){min-inline-size:min(100%,200px)}:host([vertical]){align-self:stretch}.swc-Divider--vertical{inline-size:var(--_swc-divider-thickness);block-size:100%;min-block-size:min(100%,200px)}.swc-Divider--staticWhite{--swc-divider-background-color: rgba(255, 255, 255, .14)}.swc-Divider--staticWhite:where(.swc-Divider--sizeL){--swc-divider-background-color: rgba(255, 255, 255, .85)}.swc-Divider--staticBlack{--swc-divider-background-color: rgba(0, 0, 0, .12)}.swc-Divider--staticBlack:where(.swc-Divider--sizeL){--swc-divider-background-color: rgba(0, 0, 0, .84)}@media(forced-colors:active){.swc-Divider{--swc-divider-background-color: CanvasText}}`;
|
|
41732
41807
|
|
|
41733
41808
|
// node_modules/@adobe/spectrum-wc-core/dist/components/divider/Divider.types.js
|
|
41734
|
-
var
|
|
41809
|
+
var e111 = [
|
|
41735
41810
|
"s",
|
|
41736
41811
|
"m",
|
|
41737
41812
|
"l"
|
|
@@ -41740,7 +41815,7 @@ var t82 = ["white", "black"];
|
|
|
41740
41815
|
|
|
41741
41816
|
// node_modules/@adobe/spectrum-wc-core/dist/components/divider/Divider.base.js
|
|
41742
41817
|
var s17;
|
|
41743
|
-
var c25 = class extends i12(i9, { validSizes:
|
|
41818
|
+
var c25 = class extends i12(i9, { validSizes: e111 }) {
|
|
41744
41819
|
constructor(...e129) {
|
|
41745
41820
|
super(...e129), this.vertical = false;
|
|
41746
41821
|
}
|
|
@@ -41843,6 +41918,32 @@ function pinVersion(item2, pin) {
|
|
|
41843
41918
|
if (pin.base === null) return [pin.range === version2 ? version2 : `${pin.range} \u2192 ${version2}`];
|
|
41844
41919
|
return [version2, pin.base === version2 ? "the version seven ships" : `seven ships ${pin.base}`];
|
|
41845
41920
|
}
|
|
41921
|
+
function placed(item2) {
|
|
41922
|
+
const installs = item2.installs ?? [];
|
|
41923
|
+
if (!installs.length) return item2;
|
|
41924
|
+
const version2 = item2.version ?? installs[0].version;
|
|
41925
|
+
const newer = item2.offered !== null && item2.offered !== version2;
|
|
41926
|
+
const state2 = item2.state === "available" ? newer ? "outdated" : "installed" : item2.state;
|
|
41927
|
+
const owned = installs.some((install) => install.manager === "panel");
|
|
41928
|
+
const hidden = new Set(owned ? ["install"] : ["install", "remove"]);
|
|
41929
|
+
return { ...item2, version: version2, state: state2, actions: item2.actions.filter((action) => !hidden.has(action)) };
|
|
41930
|
+
}
|
|
41931
|
+
var elsewhere = (item2) => (item2.installs ?? []).filter((install) => install.manager !== "panel");
|
|
41932
|
+
function installText(install, version2) {
|
|
41933
|
+
const place3 = install.user ? `for ${install.user}` : `in ${install.where}`;
|
|
41934
|
+
const via = install.manager === "pnpm" ? ", via pnpm" : "";
|
|
41935
|
+
return `${install.version === version2 ? "" : `${install.version} `}${place3}${via}`;
|
|
41936
|
+
}
|
|
41937
|
+
function managedText(item2) {
|
|
41938
|
+
const others = elsewhere(item2);
|
|
41939
|
+
if (!others.length || others.length !== item2.installs?.length) return null;
|
|
41940
|
+
return others.every((install) => install.manager === "pnpm") ? b`Managed by pnpm. Remove it with <code>pnpm remove -g ${item2.package}</code>.` : "Installed outside this panel. Remove it where it was installed.";
|
|
41941
|
+
}
|
|
41942
|
+
var shared2 = (item2) => elsewhere(item2).length > 0 && elsewhere(item2).length !== item2.installs?.length;
|
|
41943
|
+
function actionLabel2(item2, action) {
|
|
41944
|
+
if (action === "remove" && shared2(item2)) return `Remove the panel\u2019s copy of ${item2.label}`;
|
|
41945
|
+
return `${packageActions[action]} ${item2.label}`;
|
|
41946
|
+
}
|
|
41846
41947
|
var packageRunning = /* @__PURE__ */ new Set(["installing", "updating", "removing"]);
|
|
41847
41948
|
var list4 = (names) => new Intl.ListFormat("en", { type: "conjunction" }).format(names);
|
|
41848
41949
|
function requiresText(item2, all3) {
|
|
@@ -42101,6 +42202,10 @@ var SliccUpdates = class extends ModelElement {
|
|
|
42101
42202
|
line-height: var(--swc-line-height-200);
|
|
42102
42203
|
overflow-wrap: anywhere;
|
|
42103
42204
|
}
|
|
42205
|
+
[data-managed] code {
|
|
42206
|
+
display: inline-block;
|
|
42207
|
+
max-width: 100%;
|
|
42208
|
+
}
|
|
42104
42209
|
.warnings {
|
|
42105
42210
|
display: flex;
|
|
42106
42211
|
flex-direction: column;
|
|
@@ -42334,6 +42439,8 @@ var SliccUpdates = class extends ModelElement {
|
|
|
42334
42439
|
const requires = requiresText(item2, all3);
|
|
42335
42440
|
return b`<p class="meta">
|
|
42336
42441
|
${version2 ? b`<span class="version">${version2}</span>` : A}
|
|
42442
|
+
${shared2(item2) ? b`<span data-install="panel">the panel’s copy</span>` : A}
|
|
42443
|
+
${elsewhere(item2).map((install) => b`<span data-install>${installText(install, item2.version)}</span>`)}
|
|
42337
42444
|
${download2 ? b`<span>${size3(item2.size)}</span>` : A}
|
|
42338
42445
|
${requires ? b`<span data-requires>${requires}</span>` : A}
|
|
42339
42446
|
</p>`;
|
|
@@ -42354,6 +42461,7 @@ var SliccUpdates = class extends ModelElement {
|
|
|
42354
42461
|
const busy = this.busy.get(item2.id);
|
|
42355
42462
|
const shown4 = busy ? [busy] : act2 ? item2.actions : [];
|
|
42356
42463
|
const error = this.problems.get(item2.id) ?? item2.error;
|
|
42464
|
+
const managed = managedText(item2);
|
|
42357
42465
|
return b`<li data-id=${item2.id} data-state=${item2.state}>
|
|
42358
42466
|
<div class="name">
|
|
42359
42467
|
<h3 title=${item2.package}>${item2.label}</h3>
|
|
@@ -42364,14 +42472,14 @@ var SliccUpdates = class extends ModelElement {
|
|
|
42364
42472
|
size="s"
|
|
42365
42473
|
variant="secondary"
|
|
42366
42474
|
data-action=${action}
|
|
42367
|
-
accessible-label=${
|
|
42475
|
+
accessible-label=${actionLabel2(item2, action)}
|
|
42368
42476
|
?pending=${busy === action}
|
|
42369
42477
|
@click=${() => void this.actPackage(item2.id, action)}
|
|
42370
42478
|
>${packageActions[action]}</swc-button>`
|
|
42371
42479
|
)}</div>
|
|
42372
42480
|
<p class="description">${item2.description}</p>
|
|
42373
42481
|
${this.#packageMeta(item2, all3)}
|
|
42374
|
-
${item2.notes?.length ? b`<p class="notes" data-notes>${item2.notes.map((note) => b`<span>${note}</span>`)}</p>` : A}
|
|
42482
|
+
${item2.notes?.length || managed ? b`<p class="notes" data-notes>${(item2.notes ?? []).map((note) => b`<span>${note}</span>`)}${managed ? b`<span data-managed>${managed}</span>` : A}</p>` : A}
|
|
42375
42483
|
${item2.warnings?.length ? b`<p class="warnings" data-warnings>${item2.warnings.map(
|
|
42376
42484
|
(warning) => b`<span><swc-icon-alert-triangle size="s" aria-hidden="true"></swc-icon-alert-triangle>${warning}</span>`
|
|
42377
42485
|
)}</p>` : A}
|
|
@@ -42395,7 +42503,7 @@ var SliccUpdates = class extends ModelElement {
|
|
|
42395
42503
|
}
|
|
42396
42504
|
#packages(port) {
|
|
42397
42505
|
if (!port?.packages) return A;
|
|
42398
|
-
const all3 = port.packages();
|
|
42506
|
+
const all3 = port.packages().map(placed);
|
|
42399
42507
|
const offered = all3.filter((item2) => item2.origin !== "user");
|
|
42400
42508
|
const yours = all3.filter((item2) => item2.origin === "user");
|
|
42401
42509
|
return b`<section data-section="packages" aria-labelledby="packages">
|
|
@@ -42470,7 +42578,7 @@ function lockOverscroll(document4) {
|
|
|
42470
42578
|
})
|
|
42471
42579
|
);
|
|
42472
42580
|
lock.restore = () => {
|
|
42473
|
-
for (const
|
|
42581
|
+
for (const restore2 of saved) restore2();
|
|
42474
42582
|
};
|
|
42475
42583
|
}
|
|
42476
42584
|
lock.count += 1;
|
|
@@ -44009,7 +44117,7 @@ e25("swc-close-button", c26);
|
|
|
44009
44117
|
var t84 = i`:host{display:block}*{box-sizing:border-box}.swc-IllustratedMessage{--_swc-illustrated-message-illustration-to-content: var(--swc-illustrated-message-illustration-to-content, 12px);display:flex;flex-direction:column;gap:var(--_swc-illustrated-message-illustration-to-content);align-items:center;max-inline-size:var(--swc-illustrated-message-max-inline-size, 380px);margin-inline:auto}.swc-IllustratedMessage-illustration{--_swc-illustrated-message-illustration-size: var(--swc-illustrated-message-illustration-size, 96px);display:flex;flex-shrink:0;justify-content:center;inline-size:var(--swc-illustrated-message-illustration-inline-size, var(--_swc-illustrated-message-illustration-size));block-size:var(--swc-illustrated-message-illustration-block-size, var(--_swc-illustrated-message-illustration-size));color:var(--swc-illustrated-message-illustration-color, var(--swc-gray-800))}.swc-IllustratedMessage-illustration[hidden]{display:none}.swc-IllustratedMessage-content{display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center}.swc-IllustratedMessage-description{font-size:var(--swc-illustrated-message-description-font-size, var(--swc-illustrated-message-medium-body-font-size));font-weight:400;line-height:var(--swc-illustrated-message-description-line-height, var(--swc-line-height-200));color:var(--swc-gray-800)}:host([size=\"s\"]){--swc-illustrated-message-illustration-size: 96px;--swc-illustrated-message-illustration-to-content: 12px;--swc-illustrated-message-heading-font-size: var(--swc-illustrated-message-small-title-font-size);--swc-illustrated-message-description-font-size: var(--swc-body-size-xs)}:host([size=\"l\"]){--swc-illustrated-message-illustration-size: 160px;--swc-illustrated-message-illustration-to-content: 8px;--swc-illustrated-message-heading-font-size: var(--swc-illustrated-message-large-title-font-size);--swc-illustrated-message-description-font-size: var(--swc-illustrated-message-large-body-font-size)}:host(:lang(ja)),:host(:lang(ko)),:host(:lang(zh)){--swc-illustrated-message-heading-font-size: var(--swc-illustrated-message-medium-cjk-title-font-size);--swc-illustrated-message-heading-line-height: 1.5;--swc-illustrated-message-description-line-height: 1.7}:host([size=\"s\"]:lang(ja)),:host([size=\"s\"]:lang(ko)),:host([size=\"s\"]:lang(zh)){--swc-illustrated-message-heading-font-size: var(--swc-illustrated-message-small-cjk-title-font-size)}:host([size=\"l\"]:lang(ja)),:host([size=\"l\"]:lang(ko)),:host([size=\"l\"]:lang(zh)){--swc-illustrated-message-heading-font-size: var(--swc-illustrated-message-large-cjk-title-font-size)}:host([orientation=\"horizontal\"]){--swc-illustrated-message-max-inline-size: 535px}:host([orientation=\"horizontal\"]) .swc-IllustratedMessage{flex-direction:row;align-items:center}:host([orientation=\"horizontal\"]) .swc-IllustratedMessage-content{align-items:flex-start;text-align:start}slot[name=heading]{font-size:var(--swc-illustrated-message-heading-font-size, var(--swc-illustrated-message-medium-title-font-size));font-style:var(--swc-default-font-style);font-weight:var(--swc-bold-font-weight);line-height:var(--swc-illustrated-message-heading-line-height, var(--swc-line-height-100));color:var(--swc-gray-900)}::slotted([slot=\"heading\"]:not([class])){margin:0!important;font:inherit!important;color:inherit!important}:host(:has([slot=\"actions\"])) slot[name=actions]{margin-block-start:16px}::slotted(svg){box-sizing:border-box;display:block;inline-size:100%;block-size:100%;fill:currentcolor;stroke:currentcolor}`;
|
|
44010
44118
|
|
|
44011
44119
|
// node_modules/@adobe/spectrum-wc-core/dist/components/illustrated-message/IllustratedMessage.types.js
|
|
44012
|
-
var
|
|
44120
|
+
var e112 = [
|
|
44013
44121
|
"s",
|
|
44014
44122
|
"m",
|
|
44015
44123
|
"l"
|
|
@@ -44033,7 +44141,7 @@ var d19 = class extends i9 {
|
|
|
44033
44141
|
e129.has("size") && n10(this, {
|
|
44034
44142
|
prop: "size",
|
|
44035
44143
|
value: this.size,
|
|
44036
|
-
valid:
|
|
44144
|
+
valid: e112,
|
|
44037
44145
|
url: "https://spectrum-web-components.adobe.com/?path=/docs/components-illustrated-message--docs"
|
|
44038
44146
|
}), e129.has("orientation") && n10(this, {
|
|
44039
44147
|
prop: "orientation",
|
|
@@ -44058,7 +44166,7 @@ var d19 = class extends i9 {
|
|
|
44058
44166
|
r9(this, r40 > 1, `<${this.localName}> "heading" slot accepts a single heading element but received ${r40}.`, n37, { issues: [`heading slot: ${r40} elements`] });
|
|
44059
44167
|
}
|
|
44060
44168
|
};
|
|
44061
|
-
u25 = d19, u25.VALID_SIZES =
|
|
44169
|
+
u25 = d19, u25.VALID_SIZES = e112, u25.VALID_ORIENTATIONS = t85, e24([n({
|
|
44062
44170
|
type: String,
|
|
44063
44171
|
reflect: true
|
|
44064
44172
|
})], d19.prototype, "size", void 0), e24([n({
|
|
@@ -44102,29 +44210,11 @@ var r36 = class extends d19 {
|
|
|
44102
44210
|
e25("swc-illustrated-message", r36);
|
|
44103
44211
|
|
|
44104
44212
|
// node_modules/@adobe/spectrum-wc-icons/dist/Camera.js
|
|
44105
|
-
function
|
|
44213
|
+
function e113() {
|
|
44106
44214
|
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M16.75 17H3.25C2.01 17 1 15.99 1 14.75v-7.5C1 6.01 2.01 5 3.25 5h1.823c.286 0 .543-.16.67-.414l.172-.342A2.24 2.24 0 0 1 7.927 3h4.146c.858 0 1.629.477 2.012 1.244l.171.342a.75.75 0 0 0 .671.414h1.823C17.99 5 19 6.01 19 7.25v7.5c0 1.24-1.01 2.25-2.25 2.25M3.25 6.5a.75.75 0 0 0-.75.75v7.5c0 .413.336.75.75.75h13.5a.75.75 0 0 0 .75-.75v-7.5a.75.75 0 0 0-.75-.75h-1.823a2.24 2.24 0 0 1-2.012-1.244l-.171-.342a.75.75 0 0 0-.671-.414H7.927a.75.75 0 0 0-.67.414l-.172.342A2.24 2.24 0 0 1 5.073 6.5z"/><path fill="var(--swc-icon-color, currentColor)" d="M10 14.5c-2.206 0-4-1.794-4-4s1.794-4 4-4 4 1.794 4 4-1.794 4-4 4M10 8c-1.378 0-2.5 1.121-2.5 2.5S8.622 13 10 13s2.5-1.121 2.5-2.5S11.378 8 10 8"/></svg>';
|
|
44107
44215
|
}
|
|
44108
44216
|
|
|
44109
44217
|
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-camera.js
|
|
44110
|
-
var o81 = class extends a10 {
|
|
44111
|
-
static get styles() {
|
|
44112
|
-
return [t40];
|
|
44113
|
-
}
|
|
44114
|
-
render() {
|
|
44115
|
-
return b`
|
|
44116
|
-
${o16(e112())}
|
|
44117
|
-
`;
|
|
44118
|
-
}
|
|
44119
|
-
};
|
|
44120
|
-
e25("swc-icon-camera", o81);
|
|
44121
|
-
|
|
44122
|
-
// node_modules/@adobe/spectrum-wc-icons/dist/ChevronDown.js
|
|
44123
|
-
function e113() {
|
|
44124
|
-
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="var(--swc-icon-color, currentColor)" d="M3.755 7.243a.75.75 0 0 1 1.06-.02l5.183 4.986 5.197-4.999a.749.749 0 1 1 1.04 1.08l-5.717 5.5a.747.747 0 0 1-1.04 0L3.776 8.303a.746.746 0 0 1-.02-1.06"/></svg>';
|
|
44125
|
-
}
|
|
44126
|
-
|
|
44127
|
-
// node_modules/@adobe/spectrum-wc-icons/dist/swc-icon-chevron-down.js
|
|
44128
44218
|
var o82 = class extends a10 {
|
|
44129
44219
|
static get styles() {
|
|
44130
44220
|
return [t40];
|
|
@@ -44135,7 +44225,7 @@ var o82 = class extends a10 {
|
|
|
44135
44225
|
`;
|
|
44136
44226
|
}
|
|
44137
44227
|
};
|
|
44138
|
-
e25("swc-icon-
|
|
44228
|
+
e25("swc-icon-camera", o82);
|
|
44139
44229
|
|
|
44140
44230
|
// node_modules/@adobe/spectrum-wc-icons/dist/ChevronLeft.js
|
|
44141
44231
|
function e114() {
|
|
@@ -45838,7 +45928,7 @@ var D6 = (e129) => {
|
|
|
45838
45928
|
var O4 = typeof CSS < "u" && typeof CSS.supports == "function" && CSS.supports("field-sizing", "content");
|
|
45839
45929
|
var k5 = class extends i9 {
|
|
45840
45930
|
constructor() {
|
|
45841
|
-
super(), this.labelId =
|
|
45931
|
+
super(), this.labelId = e85("swc-prompt-field-label"), this.disabled = false, this.generating = false, this.collapsed = false, this.variant = "balanced", this.size = "m", this.loader = "aiLogo", this.animateLoader = false, this.label = "Prompt", this.accessibleLabel = "", this.sendLabel = "Send", this.stopLabel = "Stop generating", this.uploadLabel = "Add attachment", this.attachmentScrollPrevLabel = "Show previous attachments", this.attachmentScrollNextLabel = "Show more attachments", this.attachmentStripLabel = "Uploaded assets strip", this.placeholder = "Ready to get started? Ask a question, share an idea, or add a task.", this.value = "", this._attachmentScrollOverflow = false, this._attachmentCanScrollPrev = false, this._attachmentCanScrollNext = false, this._attachmentScrollFallbackGeneration = 0, this._attachmentScrollObserver = new s8(this, {
|
|
45842
45932
|
target: null,
|
|
45843
45933
|
callback: () => {
|
|
45844
45934
|
this._updateAttachmentScrollState();
|
|
@@ -46948,6 +47038,73 @@ var SliccVaultButton = class extends i2 {
|
|
|
46948
47038
|
|
|
46949
47039
|
// src/app/composer.ts
|
|
46950
47040
|
var limit = 25 * 1024 * 1024;
|
|
47041
|
+
var startingKey = "slicc-spectrum.starting";
|
|
47042
|
+
function session() {
|
|
47043
|
+
try {
|
|
47044
|
+
return globalThis.sessionStorage ?? null;
|
|
47045
|
+
} catch {
|
|
47046
|
+
return null;
|
|
47047
|
+
}
|
|
47048
|
+
}
|
|
47049
|
+
function stored() {
|
|
47050
|
+
try {
|
|
47051
|
+
const rows2 = JSON.parse(session()?.getItem(startingKey) ?? "[]");
|
|
47052
|
+
return Array.isArray(rows2) ? rows2 : [];
|
|
47053
|
+
} catch {
|
|
47054
|
+
return [];
|
|
47055
|
+
}
|
|
47056
|
+
}
|
|
47057
|
+
function write(rows2) {
|
|
47058
|
+
try {
|
|
47059
|
+
if (rows2.length) session()?.setItem(startingKey, JSON.stringify(rows2));
|
|
47060
|
+
else session()?.removeItem(startingKey);
|
|
47061
|
+
} catch {
|
|
47062
|
+
return;
|
|
47063
|
+
}
|
|
47064
|
+
}
|
|
47065
|
+
function reloaded() {
|
|
47066
|
+
const [entry] = globalThis.performance?.getEntriesByType?.("navigation") ?? [];
|
|
47067
|
+
return entry?.type === "reload";
|
|
47068
|
+
}
|
|
47069
|
+
var claimed = null;
|
|
47070
|
+
function restore(owned) {
|
|
47071
|
+
if (!claimed) {
|
|
47072
|
+
claimed = /* @__PURE__ */ new Set();
|
|
47073
|
+
if (!reloaded()) write([]);
|
|
47074
|
+
}
|
|
47075
|
+
const taken = claimed;
|
|
47076
|
+
const fresh2 = stored().filter((row) => !taken.has(row.id));
|
|
47077
|
+
for (const row of fresh2) {
|
|
47078
|
+
taken.add(row.id);
|
|
47079
|
+
owned.add(row.id);
|
|
47080
|
+
}
|
|
47081
|
+
return fresh2.map(({ id, text: text5, mode: mode2, attachments, lost: lost2 = [] }) => ({
|
|
47082
|
+
id,
|
|
47083
|
+
text: text5,
|
|
47084
|
+
mode: mode2,
|
|
47085
|
+
attachments: [],
|
|
47086
|
+
lost: [...lost2, ...attachments]
|
|
47087
|
+
}));
|
|
47088
|
+
}
|
|
47089
|
+
function keep2(owned, rows2) {
|
|
47090
|
+
const meta = ({ name, mimeType, size: size4 }) => ({ name, mimeType, size: size4 });
|
|
47091
|
+
const others = stored().filter((row) => !owned.has(row.id));
|
|
47092
|
+
owned.clear();
|
|
47093
|
+
for (const row of rows2) {
|
|
47094
|
+
owned.add(row.id);
|
|
47095
|
+
claimed?.add(row.id);
|
|
47096
|
+
}
|
|
47097
|
+
write([
|
|
47098
|
+
...others,
|
|
47099
|
+
...rows2.map((row) => ({
|
|
47100
|
+
id: row.id,
|
|
47101
|
+
text: row.text,
|
|
47102
|
+
mode: row.mode,
|
|
47103
|
+
attachments: row.attachments.map(meta),
|
|
47104
|
+
lost: (row.lost ?? []).map(meta)
|
|
47105
|
+
}))
|
|
47106
|
+
]);
|
|
47107
|
+
}
|
|
46951
47108
|
var pages = /* @__PURE__ */ new WeakMap();
|
|
46952
47109
|
function owner(node2) {
|
|
46953
47110
|
let at = node2;
|
|
@@ -46967,7 +47124,10 @@ var PageQueue = class {
|
|
|
46967
47124
|
#page() {
|
|
46968
47125
|
this.#owner ??= this.#host.isConnected ? owner(this.#host) : null;
|
|
46969
47126
|
const page = this.#owner ?? this.#host.ownerDocument;
|
|
46970
|
-
const
|
|
47127
|
+
const known = pages.get(page);
|
|
47128
|
+
if (known) return known;
|
|
47129
|
+
const owned = /* @__PURE__ */ new Set();
|
|
47130
|
+
const found = { rows: restore(owned), owned, draft: null, hosts: /* @__PURE__ */ new Set() };
|
|
46971
47131
|
pages.set(page, found);
|
|
46972
47132
|
return found;
|
|
46973
47133
|
}
|
|
@@ -46977,6 +47137,7 @@ var PageQueue = class {
|
|
|
46977
47137
|
set value(rows2) {
|
|
46978
47138
|
const page = this.#page();
|
|
46979
47139
|
page.rows = rows2;
|
|
47140
|
+
keep2(page.owned, rows2);
|
|
46980
47141
|
for (const host4 of [...page.hosts]) host4.requestUpdate();
|
|
46981
47142
|
}
|
|
46982
47143
|
get draft() {
|
|
@@ -47277,6 +47438,27 @@ var SliccComposer = class extends ThemedElement {
|
|
|
47277
47438
|
font-size: var(--swc-font-size-75);
|
|
47278
47439
|
color: var(--swc-neutral-subdued-content-color-default);
|
|
47279
47440
|
}
|
|
47441
|
+
.queued .body {
|
|
47442
|
+
flex: 1;
|
|
47443
|
+
min-inline-size: 0;
|
|
47444
|
+
display: grid;
|
|
47445
|
+
}
|
|
47446
|
+
.queued > swc-icon-alert-triangle {
|
|
47447
|
+
flex: none;
|
|
47448
|
+
--swc-icon-color: var(--swc-notice-visual-color);
|
|
47449
|
+
}
|
|
47450
|
+
.queued [data-lost] swc-icon-alert-triangle {
|
|
47451
|
+
vertical-align: middle;
|
|
47452
|
+
margin-inline-end: var(--swc-spacing-50);
|
|
47453
|
+
--swc-icon-color: var(--swc-notice-visual-color);
|
|
47454
|
+
}
|
|
47455
|
+
.queued [data-lost] {
|
|
47456
|
+
overflow: hidden;
|
|
47457
|
+
text-overflow: ellipsis;
|
|
47458
|
+
white-space: nowrap;
|
|
47459
|
+
font-size: var(--swc-font-size-75);
|
|
47460
|
+
color: var(--swc-neutral-subdued-content-color-default);
|
|
47461
|
+
}
|
|
47280
47462
|
.queued [data-files] {
|
|
47281
47463
|
display: inline-flex;
|
|
47282
47464
|
align-items: center;
|
|
@@ -47530,8 +47712,10 @@ var SliccComposer = class extends ThemedElement {
|
|
|
47530
47712
|
if (!(model && waiting3.length && agents.length) || this.#starting()) return;
|
|
47531
47713
|
const active = model.agent.active();
|
|
47532
47714
|
const id = agents.some((agent) => agent.id === active) ? active : agents[0].id;
|
|
47533
|
-
|
|
47534
|
-
const [first2, ...rest] = waiting3;
|
|
47715
|
+
const sendable = (row) => !!(row.text || row.attachments.length);
|
|
47716
|
+
const [first2, ...rest] = waiting3.filter(sendable);
|
|
47717
|
+
if (!first2) return;
|
|
47718
|
+
this.#waiting.value = waiting3.filter((row) => !sendable(row));
|
|
47535
47719
|
this.#deliver(model, id, first2, "queue");
|
|
47536
47720
|
for (const { text: text5, attachments } of rest)
|
|
47537
47721
|
this.#post(model, id, { text: text5, attachments, mode: "queue" });
|
|
@@ -47548,9 +47732,9 @@ var SliccComposer = class extends ThemedElement {
|
|
|
47548
47732
|
#switch(id) {
|
|
47549
47733
|
if (this.#agent)
|
|
47550
47734
|
this.#drafts.set(this.#agent, { value: this.value, attachments: this.attachments });
|
|
47551
|
-
const
|
|
47552
|
-
if (
|
|
47553
|
-
const draft2 = this.#drafts.get(id) ??
|
|
47735
|
+
const shared3 = this.#agent || !this.isConnected ? null : this.#waiting.draft;
|
|
47736
|
+
if (shared3 && id && !this.#drafts.has(id)) this.#waiting.draft = null;
|
|
47737
|
+
const draft2 = this.#drafts.get(id) ?? shared3 ?? void 0;
|
|
47554
47738
|
this.#agent = id;
|
|
47555
47739
|
this.value = draft2?.value ?? "";
|
|
47556
47740
|
this.attachments = draft2?.attachments ?? [];
|
|
@@ -47591,7 +47775,7 @@ var SliccComposer = class extends ThemedElement {
|
|
|
47591
47775
|
this.popup = null;
|
|
47592
47776
|
this.#history = -1;
|
|
47593
47777
|
if (this.#starting()) {
|
|
47594
|
-
this.#waiting.value = [...this.#waiting.value, { id: this.#id(), text: text5, attachments }];
|
|
47778
|
+
this.#waiting.value = [...this.#waiting.value, { id: this.#id(), text: text5, mode: mode2, attachments }];
|
|
47595
47779
|
return;
|
|
47596
47780
|
}
|
|
47597
47781
|
if (known) {
|
|
@@ -48135,17 +48319,23 @@ ${this.value}` : text5;
|
|
|
48135
48319
|
#starters() {
|
|
48136
48320
|
const waiting3 = this.#waiting.value;
|
|
48137
48321
|
if (waiting3.length === 0) return A;
|
|
48322
|
+
const names = (files) => files.map((file) => file.name).join(", ");
|
|
48138
48323
|
return b`<ul class="queue" aria-label="Waiting for the agent">
|
|
48139
|
-
${waiting3.map(
|
|
48140
|
-
|
|
48141
|
-
|
|
48324
|
+
${waiting3.map((message) => {
|
|
48325
|
+
const lost2 = message.lost ?? [];
|
|
48326
|
+
const empty5 = !(message.text || message.attachments.length);
|
|
48327
|
+
return b`<li class="queued" data-id=${message.id} data-mode="starting" ?data-unsent=${empty5}>
|
|
48328
|
+
${empty5 ? b`<swc-icon-alert-triangle size="s" aria-hidden="true"></swc-icon-alert-triangle>` : b`<swc-icon-clock size="s" aria-hidden="true"></swc-icon-clock>`}
|
|
48142
48329
|
${message.text ? A : b`<swc-icon-file size="xs" aria-hidden="true"></swc-icon-file>`}
|
|
48143
|
-
<span class="
|
|
48330
|
+
<span class="body">
|
|
48331
|
+
<span class="text"><span class="sr">Queued: </span>${message.text || names(message.attachments) || names(lost2)}</span>
|
|
48332
|
+
${lost2.length ? b`<span class="lost" data-lost><swc-icon-alert-triangle size="xs" aria-hidden="true"></swc-icon-alert-triangle><span class="sr">, </span>Not kept after reload${message.text ? `: ${names(lost2)}` : ""}</span>` : A}
|
|
48333
|
+
</span>
|
|
48144
48334
|
${message.text && message.attachments.length ? b`<span class="next" data-files><swc-icon-file size="xs" aria-hidden="true"></swc-icon-file><span class="sr">, </span>${message.attachments.length === 1 ? "1 file" : `${message.attachments.length} files`}</span>` : A}
|
|
48145
|
-
<span class="next"
|
|
48146
|
-
<swc-close-button size="s" data-action="unqueue" accessible-label
|
|
48147
|
-
</li
|
|
48148
|
-
)}
|
|
48335
|
+
<span class="next">${empty5 ? "Not sent. Attach the files again." : "Sent when the agent starts"}</span>
|
|
48336
|
+
<swc-close-button size="s" data-action="unqueue" accessible-label=${empty5 ? "Dismiss" : "Remove from queue"} @click=${() => this.#unwait(message.id)}></swc-close-button>
|
|
48337
|
+
</li>`;
|
|
48338
|
+
})}
|
|
48149
48339
|
</ul>`;
|
|
48150
48340
|
}
|
|
48151
48341
|
#review() {
|
|
@@ -51221,7 +51411,7 @@ var SliccSettings = class extends ThemedElement {
|
|
|
51221
51411
|
const vaulted = account.store === "vault" && !!vault?.remove;
|
|
51222
51412
|
const key2 = vaulted && account.auth === "api-key";
|
|
51223
51413
|
const signIn = vaulted && account.auth !== "api-key" && account.group === "mcp";
|
|
51224
|
-
const
|
|
51414
|
+
const stored2 = key2 || signIn ? vault : void 0;
|
|
51225
51415
|
const body4 = `Agents can\u2019t use ${account.provider} until you connect it again.${key2 ? " You can restore its key from Removed in Secrets for 30 days." : ""}`;
|
|
51226
51416
|
const title = `Disconnect ${account.provider}?`;
|
|
51227
51417
|
if (!await confirm({ title, body: body4, action: "Disconnect", variant: "confirmation" })) return;
|
|
@@ -51230,11 +51420,11 @@ var SliccSettings = class extends ThemedElement {
|
|
|
51230
51420
|
const server = serverOf(account);
|
|
51231
51421
|
const pinned = !!this.#pinned(account);
|
|
51232
51422
|
const url = account.group === "mcp" ? registrations2()[server] ?? (pinned ? null : this.#mcpUrl(account)) : null;
|
|
51233
|
-
if (
|
|
51423
|
+
if (stored2 && !await this.#forget(account, stored2)) return;
|
|
51234
51424
|
if (this.model !== model) return;
|
|
51235
51425
|
model?.settings.disconnect(account.id);
|
|
51236
|
-
if (!url || !
|
|
51237
|
-
await
|
|
51426
|
+
if (!url || !stored2?.endpoints) return;
|
|
51427
|
+
await stored2.endpoints({ remove: { mcp: [{ server, url }] } }).then(() => register(server, void 0)).catch((error) => {
|
|
51238
51428
|
if (this.model === model) this.failure = { id: account.id, message: failureText(error) };
|
|
51239
51429
|
});
|
|
51240
51430
|
}
|
|
@@ -66482,15 +66672,15 @@ var InteractionManager = class {
|
|
|
66482
66672
|
case "idle":
|
|
66483
66673
|
return;
|
|
66484
66674
|
case "gutterSelecting": {
|
|
66485
|
-
const { pointerSession:
|
|
66486
|
-
if (event2.pointerId !==
|
|
66675
|
+
const { pointerSession: session2 } = this;
|
|
66676
|
+
if (event2.pointerId !== session2.pointerId) return;
|
|
66487
66677
|
event2.preventDefault();
|
|
66488
66678
|
const point3 = this.resolveSelectionPoint(event2, { source: "coordinates-first" });
|
|
66489
66679
|
if (point3 != null) {
|
|
66490
|
-
|
|
66680
|
+
session2.current = point3;
|
|
66491
66681
|
this.updateSelection(point3.lineNumber, point3.side);
|
|
66492
66682
|
}
|
|
66493
|
-
const completedRange = this.buildSelectedLineRange(
|
|
66683
|
+
const completedRange = this.buildSelectedLineRange(session2.anchor, session2.current);
|
|
66494
66684
|
onGutterUtilityClick?.({ ...completedRange });
|
|
66495
66685
|
this.selectionAnchor = void 0;
|
|
66496
66686
|
this.notifySelectionEnd(completedRange);
|
|
@@ -69569,21 +69759,21 @@ function adoptEditSessionAnnotations(annotations, getName, previousSession) {
|
|
|
69569
69759
|
slotNames
|
|
69570
69760
|
};
|
|
69571
69761
|
}
|
|
69572
|
-
function writeEditSessionAnnotations(
|
|
69762
|
+
function writeEditSessionAnnotations(session2, annotations, getName) {
|
|
69573
69763
|
for (const annotation of annotations) {
|
|
69574
69764
|
const source = getLineAnnotationSource(annotation);
|
|
69575
|
-
if (!
|
|
69765
|
+
if (!session2.slotNames.has(source)) session2.slotNames.set(source, getName(annotation));
|
|
69576
69766
|
}
|
|
69577
|
-
|
|
69578
|
-
|
|
69767
|
+
session2.provided = annotations;
|
|
69768
|
+
session2.current = annotations;
|
|
69579
69769
|
}
|
|
69580
|
-
function resolveEditSessionSlotName(
|
|
69581
|
-
if (
|
|
69770
|
+
function resolveEditSessionSlotName(session2, annotation, getName) {
|
|
69771
|
+
if (session2 == null) return getName(annotation);
|
|
69582
69772
|
const source = getLineAnnotationSource(annotation);
|
|
69583
|
-
let name =
|
|
69773
|
+
let name = session2.slotNames.get(source);
|
|
69584
69774
|
if (name == null) {
|
|
69585
69775
|
name = getName(annotation);
|
|
69586
|
-
|
|
69776
|
+
session2.slotNames.set(source, name);
|
|
69587
69777
|
}
|
|
69588
69778
|
return name;
|
|
69589
69779
|
}
|
|
@@ -69783,9 +69973,9 @@ var File = class {
|
|
|
69783
69973
|
return this.editSession?.annotations?.current ?? this.lineAnnotations;
|
|
69784
69974
|
}
|
|
69785
69975
|
isNewAnnotations(lineAnnotations) {
|
|
69786
|
-
const
|
|
69976
|
+
const session2 = this.editSession?.annotations;
|
|
69787
69977
|
if (lineAnnotations === this.lineAnnotations) return false;
|
|
69788
|
-
return
|
|
69978
|
+
return session2 == null || lineAnnotations !== session2.provided && lineAnnotations !== session2.current;
|
|
69789
69979
|
}
|
|
69790
69980
|
updateExternalFile(incomingFile, lineAnnotations) {
|
|
69791
69981
|
if (areFileTargetsEqual(this.file, incomingFile)) return false;
|
|
@@ -69857,9 +70047,9 @@ var File = class {
|
|
|
69857
70047
|
writeEditSessionAnnotations(sessionAnnotations, lineAnnotations, getLineAnnotationName);
|
|
69858
70048
|
}
|
|
69859
70049
|
syncEditSessionAnnotationsFromEditor(lineAnnotations) {
|
|
69860
|
-
const
|
|
69861
|
-
if (
|
|
69862
|
-
|
|
70050
|
+
const session2 = this.editSession?.annotations;
|
|
70051
|
+
if (session2 == null || lineAnnotations === session2.current) return false;
|
|
70052
|
+
session2.current = lineAnnotations;
|
|
69863
70053
|
this.fileRenderer.setLineAnnotations(lineAnnotations);
|
|
69864
70054
|
this.renderAnnotations();
|
|
69865
70055
|
return true;
|
|
@@ -75746,9 +75936,9 @@ var FileDiff = class {
|
|
|
75746
75936
|
return this.editSession?.annotations?.current ?? this.lineAnnotations;
|
|
75747
75937
|
}
|
|
75748
75938
|
isNewAnnotations(lineAnnotations) {
|
|
75749
|
-
const
|
|
75939
|
+
const session2 = this.editSession?.annotations;
|
|
75750
75940
|
if (lineAnnotations === this.lineAnnotations) return false;
|
|
75751
|
-
return
|
|
75941
|
+
return session2 == null || lineAnnotations !== session2.provided && lineAnnotations !== session2.current;
|
|
75752
75942
|
}
|
|
75753
75943
|
setLineAnnotations(lineAnnotations) {
|
|
75754
75944
|
const sessionAnnotations = this.editSession?.annotations;
|
|
@@ -75761,9 +75951,9 @@ var FileDiff = class {
|
|
|
75761
75951
|
writeEditSessionAnnotations(sessionAnnotations, lineAnnotations, getLineAnnotationName);
|
|
75762
75952
|
}
|
|
75763
75953
|
syncEditSessionAnnotationsFromEditor(lineAnnotations) {
|
|
75764
|
-
const
|
|
75765
|
-
if (
|
|
75766
|
-
|
|
75954
|
+
const session2 = this.editSession?.annotations;
|
|
75955
|
+
if (session2 == null || lineAnnotations === session2.current) return false;
|
|
75956
|
+
session2.current = lineAnnotations;
|
|
75767
75957
|
this.hunksRenderer.setLineAnnotations(lineAnnotations);
|
|
75768
75958
|
this.renderAnnotations();
|
|
75769
75959
|
return true;
|