@farris/x-ui 0.3.3 → 0.3.4
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/bubble/src/composition/use-attachment.d.ts +1 -1
- package/farris.x-ui.esm.js +117 -107
- package/farris.x-ui.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
package/farris.x-ui.esm.js
CHANGED
|
@@ -254,7 +254,7 @@ function Se(e, t) {
|
|
|
254
254
|
n && u && (e[n] = !0);
|
|
255
255
|
})), e;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function Me(e, t) {
|
|
258
258
|
return t && (typeof t == "string" ? t.split(";").filter(Boolean).forEach((u) => {
|
|
259
259
|
var i, o;
|
|
260
260
|
const r = u.split(":");
|
|
@@ -492,7 +492,7 @@ const bc = {
|
|
|
492
492
|
function vc(e, t) {
|
|
493
493
|
const n = M(() => {
|
|
494
494
|
var r;
|
|
495
|
-
return
|
|
495
|
+
return Me({}, (r = e.styles) == null ? void 0 : r.header);
|
|
496
496
|
});
|
|
497
497
|
function u() {
|
|
498
498
|
return t.slots.header && d("div", {
|
|
@@ -508,7 +508,7 @@ function yc(e, t) {
|
|
|
508
508
|
var i;
|
|
509
509
|
const n = H(((i = e.content) == null ? void 0 : i.sender) ?? "发送人"), u = M(() => {
|
|
510
510
|
var o;
|
|
511
|
-
return
|
|
511
|
+
return Me({}, (o = e.styles) == null ? void 0 : o.header);
|
|
512
512
|
});
|
|
513
513
|
function r() {
|
|
514
514
|
return d("div", {
|
|
@@ -564,26 +564,37 @@ const xc = {
|
|
|
564
564
|
};
|
|
565
565
|
function Ac() {
|
|
566
566
|
return {
|
|
567
|
-
getFileIcon: (r, i = "file-type-") =>
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
567
|
+
getFileIcon: (r, i = "file-type-", o = "") => {
|
|
568
|
+
var c;
|
|
569
|
+
const a = {
|
|
570
|
+
pdf: "pdf",
|
|
571
|
+
doc: "doc",
|
|
572
|
+
docx: "doc",
|
|
573
|
+
xls: "xls",
|
|
574
|
+
xlsx: "xls",
|
|
575
|
+
csv: "xls",
|
|
576
|
+
ppt: "ppt",
|
|
577
|
+
pptx: "ppt",
|
|
578
|
+
txt: "txt",
|
|
579
|
+
zip: "zip",
|
|
580
|
+
rar: "zip",
|
|
581
|
+
image: "img",
|
|
582
|
+
img: "img",
|
|
583
|
+
md: "md",
|
|
584
|
+
audio: "any",
|
|
585
|
+
form: "form",
|
|
586
|
+
report: "report",
|
|
587
|
+
board: "board",
|
|
588
|
+
html: "html",
|
|
589
|
+
json: "json"
|
|
590
|
+
};
|
|
591
|
+
let s = r ? a[r.toLowerCase()] : "";
|
|
592
|
+
if (!s && o) {
|
|
593
|
+
const f = ((c = o.split(".").pop()) == null ? void 0 : c.toLowerCase()) || "";
|
|
594
|
+
s = f ? a[f] : "";
|
|
595
|
+
}
|
|
596
|
+
return `${i}${s || "any"}`;
|
|
597
|
+
},
|
|
587
598
|
formatFileName: (r) => (r == null ? void 0 : r.replace(/\.[^.]+$/, "")) ?? "",
|
|
588
599
|
formatFileSize: (r) => r ? r < 1024 ? r + " B" : r < 1048576 ? (r / 1024).toFixed(1) + " KB" : (r / 1048576).toFixed(1) + " MB" : "",
|
|
589
600
|
formatFileTime: (r) => {
|
|
@@ -671,7 +682,7 @@ const vs = /* @__PURE__ */ re({
|
|
|
671
682
|
}, [v.name]), d("div", {
|
|
672
683
|
class: "file-info-footer"
|
|
673
684
|
}, [d("span", {
|
|
674
|
-
class: `file-icon ${a(v.type)}`
|
|
685
|
+
class: `file-icon ${a(v.type, "file-type-", v.name)}`
|
|
675
686
|
}, null), g && d(Ve, null, [d("span", {
|
|
676
687
|
class: "file-type"
|
|
677
688
|
}, [m(v.type)])]), v.size && d(Ve, null, [d("div", {
|
|
@@ -681,10 +692,9 @@ const vs = /* @__PURE__ */ re({
|
|
|
681
692
|
}, [i(v.size)])])])]);
|
|
682
693
|
}
|
|
683
694
|
function w(v, g) {
|
|
684
|
-
console.log("attachment" + v.pending);
|
|
685
695
|
const b = su(v);
|
|
686
696
|
return d("div", {
|
|
687
|
-
class: "f-chat-bubble-attachment-item " + a(v.type, "attachment-type-") + (v.pending ? " status-working" : ""),
|
|
697
|
+
class: "f-chat-bubble-attachment-item " + a(v.type, "attachment-type-", v.name) + (v.pending ? " status-working" : ""),
|
|
688
698
|
key: g,
|
|
689
699
|
onClick: (y) => f(y, v)
|
|
690
700
|
}, [d("div", {
|
|
@@ -693,7 +703,7 @@ const vs = /* @__PURE__ */ re({
|
|
|
693
703
|
}, [d("div", {
|
|
694
704
|
class: s.value
|
|
695
705
|
}, [d("span", {
|
|
696
|
-
class: "f-chat-bubble-attachment-icon file-icon " + a(v.type)
|
|
706
|
+
class: "f-chat-bubble-attachment-icon file-icon " + a(v.type, "file-type-", v.name)
|
|
697
707
|
}, null), d("span", {
|
|
698
708
|
class: c.value,
|
|
699
709
|
title: v.name
|
|
@@ -745,7 +755,7 @@ const vs = /* @__PURE__ */ re({
|
|
|
745
755
|
props: xc,
|
|
746
756
|
setup(e, t) {
|
|
747
757
|
const n = M(() => e.file ? Array.isArray(e.file) ? [...e.file] : [e.file] : []);
|
|
748
|
-
return
|
|
758
|
+
return Me({}, e.customStyle), () => d(vs, {
|
|
749
759
|
attachments: n.value,
|
|
750
760
|
onPreview: (u) => {
|
|
751
761
|
var r;
|
|
@@ -1365,42 +1375,42 @@ function c0(e) {
|
|
|
1365
1375
|
var t;
|
|
1366
1376
|
return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (t = s0.get(e)) !== null && t !== void 0 ? t : e;
|
|
1367
1377
|
}
|
|
1368
|
-
var
|
|
1378
|
+
var Pe;
|
|
1369
1379
|
(function(e) {
|
|
1370
1380
|
e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
|
|
1371
|
-
})(
|
|
1381
|
+
})(Pe || (Pe = {}));
|
|
1372
1382
|
const d0 = 32;
|
|
1373
1383
|
var tn;
|
|
1374
1384
|
(function(e) {
|
|
1375
1385
|
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
1376
1386
|
})(tn || (tn = {}));
|
|
1377
1387
|
function Or(e) {
|
|
1378
|
-
return e >=
|
|
1388
|
+
return e >= Pe.ZERO && e <= Pe.NINE;
|
|
1379
1389
|
}
|
|
1380
1390
|
function f0(e) {
|
|
1381
|
-
return e >=
|
|
1391
|
+
return e >= Pe.UPPER_A && e <= Pe.UPPER_F || e >= Pe.LOWER_A && e <= Pe.LOWER_F;
|
|
1382
1392
|
}
|
|
1383
1393
|
function h0(e) {
|
|
1384
|
-
return e >=
|
|
1394
|
+
return e >= Pe.UPPER_A && e <= Pe.UPPER_Z || e >= Pe.LOWER_A && e <= Pe.LOWER_Z || Or(e);
|
|
1385
1395
|
}
|
|
1386
1396
|
function p0(e) {
|
|
1387
|
-
return e ===
|
|
1397
|
+
return e === Pe.EQUALS || h0(e);
|
|
1388
1398
|
}
|
|
1389
|
-
var
|
|
1399
|
+
var Oe;
|
|
1390
1400
|
(function(e) {
|
|
1391
1401
|
e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
|
|
1392
|
-
})(
|
|
1402
|
+
})(Oe || (Oe = {}));
|
|
1393
1403
|
var Jt;
|
|
1394
1404
|
(function(e) {
|
|
1395
1405
|
e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
|
|
1396
1406
|
})(Jt || (Jt = {}));
|
|
1397
1407
|
class m0 {
|
|
1398
1408
|
constructor(t, n, u) {
|
|
1399
|
-
this.decodeTree = t, this.emitCodePoint = n, this.errors = u, this.state =
|
|
1409
|
+
this.decodeTree = t, this.emitCodePoint = n, this.errors = u, this.state = Oe.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Jt.Strict;
|
|
1400
1410
|
}
|
|
1401
1411
|
/** Resets the instance to make it reusable. */
|
|
1402
1412
|
startEntity(t) {
|
|
1403
|
-
this.decodeMode = t, this.state =
|
|
1413
|
+
this.decodeMode = t, this.state = Oe.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
1404
1414
|
}
|
|
1405
1415
|
/**
|
|
1406
1416
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
@@ -1415,15 +1425,15 @@ class m0 {
|
|
|
1415
1425
|
*/
|
|
1416
1426
|
write(t, n) {
|
|
1417
1427
|
switch (this.state) {
|
|
1418
|
-
case
|
|
1419
|
-
return t.charCodeAt(n) ===
|
|
1420
|
-
case
|
|
1428
|
+
case Oe.EntityStart:
|
|
1429
|
+
return t.charCodeAt(n) === Pe.NUM ? (this.state = Oe.NumericStart, this.consumed += 1, this.stateNumericStart(t, n + 1)) : (this.state = Oe.NamedEntity, this.stateNamedEntity(t, n));
|
|
1430
|
+
case Oe.NumericStart:
|
|
1421
1431
|
return this.stateNumericStart(t, n);
|
|
1422
|
-
case
|
|
1432
|
+
case Oe.NumericDecimal:
|
|
1423
1433
|
return this.stateNumericDecimal(t, n);
|
|
1424
|
-
case
|
|
1434
|
+
case Oe.NumericHex:
|
|
1425
1435
|
return this.stateNumericHex(t, n);
|
|
1426
|
-
case
|
|
1436
|
+
case Oe.NamedEntity:
|
|
1427
1437
|
return this.stateNamedEntity(t, n);
|
|
1428
1438
|
}
|
|
1429
1439
|
}
|
|
@@ -1437,7 +1447,7 @@ class m0 {
|
|
|
1437
1447
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
1438
1448
|
*/
|
|
1439
1449
|
stateNumericStart(t, n) {
|
|
1440
|
-
return n >= t.length ? -1 : (t.charCodeAt(n) | d0) ===
|
|
1450
|
+
return n >= t.length ? -1 : (t.charCodeAt(n) | d0) === Pe.LOWER_X ? (this.state = Oe.NumericHex, this.consumed += 1, this.stateNumericHex(t, n + 1)) : (this.state = Oe.NumericDecimal, this.stateNumericDecimal(t, n));
|
|
1441
1451
|
}
|
|
1442
1452
|
addToNumericResult(t, n, u, r) {
|
|
1443
1453
|
if (n !== u) {
|
|
@@ -1502,11 +1512,11 @@ class m0 {
|
|
|
1502
1512
|
var u;
|
|
1503
1513
|
if (this.consumed <= n)
|
|
1504
1514
|
return (u = this.errors) === null || u === void 0 || u.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1505
|
-
if (t ===
|
|
1515
|
+
if (t === Pe.SEMI)
|
|
1506
1516
|
this.consumed += 1;
|
|
1507
1517
|
else if (this.decodeMode === Jt.Strict)
|
|
1508
1518
|
return 0;
|
|
1509
|
-
return this.emitCodePoint(c0(this.result), this.consumed), this.errors && (t !==
|
|
1519
|
+
return this.emitCodePoint(c0(this.result), this.consumed), this.errors && (t !== Pe.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
1510
1520
|
}
|
|
1511
1521
|
/**
|
|
1512
1522
|
* Parses a named entity.
|
|
@@ -1528,7 +1538,7 @@ class m0 {
|
|
|
1528
1538
|
(i === 0 || // And there should be no invalid characters.
|
|
1529
1539
|
p0(o)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1530
1540
|
if (r = u[this.treeIndex], i = (r & tn.VALUE_LENGTH) >> 14, i !== 0) {
|
|
1531
|
-
if (o ===
|
|
1541
|
+
if (o === Pe.SEMI)
|
|
1532
1542
|
return this.emitNamedEntityData(this.treeIndex, i, this.consumed + this.excess);
|
|
1533
1543
|
this.decodeMode !== Jt.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
1534
1544
|
}
|
|
@@ -1568,15 +1578,15 @@ class m0 {
|
|
|
1568
1578
|
end() {
|
|
1569
1579
|
var t;
|
|
1570
1580
|
switch (this.state) {
|
|
1571
|
-
case
|
|
1581
|
+
case Oe.NamedEntity:
|
|
1572
1582
|
return this.result !== 0 && (this.decodeMode !== Jt.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
1573
|
-
case
|
|
1583
|
+
case Oe.NumericDecimal:
|
|
1574
1584
|
return this.emitNumericEntity(0, 2);
|
|
1575
|
-
case
|
|
1585
|
+
case Oe.NumericHex:
|
|
1576
1586
|
return this.emitNumericEntity(0, 3);
|
|
1577
|
-
case
|
|
1587
|
+
case Oe.NumericStart:
|
|
1578
1588
|
return (t = this.errors) === null || t === void 0 || t.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1579
|
-
case
|
|
1589
|
+
case Oe.EntityStart:
|
|
1580
1590
|
return 0;
|
|
1581
1591
|
}
|
|
1582
1592
|
}
|
|
@@ -4439,7 +4449,7 @@ function tl() {
|
|
|
4439
4449
|
value: null
|
|
4440
4450
|
}
|
|
4441
4451
|
}));
|
|
4442
|
-
let te = !0, Q = !0, ae = !1, ve = !0, we = !1, Ge = !0,
|
|
4452
|
+
let te = !0, Q = !0, ae = !1, ve = !0, we = !1, Ge = !0, Be = !1, mt = !1, Ft = !1, dt = !1, _u = !1, Su = !1, ko = !0, Co = !1;
|
|
4443
4453
|
const $l = "user-content-";
|
|
4444
4454
|
let ji = !0, $n = !1, bn = {}, Tt = null;
|
|
4445
4455
|
const Hi = le({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
@@ -4460,7 +4470,7 @@ function tl() {
|
|
|
4460
4470
|
let _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4461
4471
|
if (!(yn && yn === _)) {
|
|
4462
4472
|
if ((!_ || typeof _ != "object") && (_ = {}), _ = Ot(_), Un = // eslint-disable-next-line unicorn/prefer-includes
|
|
4463
|
-
Vl.indexOf(_.PARSER_MEDIA_TYPE) === -1 ? Gl : _.PARSER_MEDIA_TYPE, Fe = Un === "application/xhtml+xml" ? ur : Uu, j = nt(_, "ALLOWED_TAGS") ? le({}, _.ALLOWED_TAGS, Fe) : O, R = nt(_, "ALLOWED_ATTR") ? le({}, _.ALLOWED_ATTR, Fe) : U, Wi = nt(_, "ALLOWED_NAMESPACES") ? le({}, _.ALLOWED_NAMESPACES, ur) : Ul, $i = nt(_, "ADD_URI_SAFE_ATTR") ? le(Ot(So), _.ADD_URI_SAFE_ATTR, Fe) : So, Eo = nt(_, "ADD_DATA_URI_TAGS") ? le(Ot(_o), _.ADD_DATA_URI_TAGS, Fe) : _o, Tt = nt(_, "FORBID_CONTENTS") ? le({}, _.FORBID_CONTENTS, Fe) : Hi, z = nt(_, "FORBID_TAGS") ? le({}, _.FORBID_TAGS, Fe) : Ot({}), Y = nt(_, "FORBID_ATTR") ? le({}, _.FORBID_ATTR, Fe) : Ot({}), bn = nt(_, "USE_PROFILES") ? _.USE_PROFILES : !1, te = _.ALLOW_ARIA_ATTR !== !1, Q = _.ALLOW_DATA_ATTR !== !1, ae = _.ALLOW_UNKNOWN_PROTOCOLS || !1, ve = _.ALLOW_SELF_CLOSE_IN_ATTR !== !1, we = _.SAFE_FOR_TEMPLATES || !1, Ge = _.SAFE_FOR_XML !== !1,
|
|
4473
|
+
Vl.indexOf(_.PARSER_MEDIA_TYPE) === -1 ? Gl : _.PARSER_MEDIA_TYPE, Fe = Un === "application/xhtml+xml" ? ur : Uu, j = nt(_, "ALLOWED_TAGS") ? le({}, _.ALLOWED_TAGS, Fe) : O, R = nt(_, "ALLOWED_ATTR") ? le({}, _.ALLOWED_ATTR, Fe) : U, Wi = nt(_, "ALLOWED_NAMESPACES") ? le({}, _.ALLOWED_NAMESPACES, ur) : Ul, $i = nt(_, "ADD_URI_SAFE_ATTR") ? le(Ot(So), _.ADD_URI_SAFE_ATTR, Fe) : So, Eo = nt(_, "ADD_DATA_URI_TAGS") ? le(Ot(_o), _.ADD_DATA_URI_TAGS, Fe) : _o, Tt = nt(_, "FORBID_CONTENTS") ? le({}, _.FORBID_CONTENTS, Fe) : Hi, z = nt(_, "FORBID_TAGS") ? le({}, _.FORBID_TAGS, Fe) : Ot({}), Y = nt(_, "FORBID_ATTR") ? le({}, _.FORBID_ATTR, Fe) : Ot({}), bn = nt(_, "USE_PROFILES") ? _.USE_PROFILES : !1, te = _.ALLOW_ARIA_ATTR !== !1, Q = _.ALLOW_DATA_ATTR !== !1, ae = _.ALLOW_UNKNOWN_PROTOCOLS || !1, ve = _.ALLOW_SELF_CLOSE_IN_ATTR !== !1, we = _.SAFE_FOR_TEMPLATES || !1, Ge = _.SAFE_FOR_XML !== !1, Be = _.WHOLE_DOCUMENT || !1, dt = _.RETURN_DOM || !1, _u = _.RETURN_DOM_FRAGMENT || !1, Su = _.RETURN_TRUSTED_TYPE || !1, Ft = _.FORCE_BODY || !1, ko = _.SANITIZE_DOM !== !1, Co = _.SANITIZE_NAMED_PROPS || !1, ji = _.KEEP_CONTENT !== !1, $n = _.IN_PLACE || !1, B = _.ALLOWED_URI_REGEXP || Js, vn = _.NAMESPACE || $t, Tu = _.MATHML_TEXT_INTEGRATION_POINTS || Tu, Iu = _.HTML_INTEGRATION_POINTS || Iu, I = _.CUSTOM_ELEMENT_HANDLING || {}, _.CUSTOM_ELEMENT_HANDLING && Do(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (I.tagNameCheck = _.CUSTOM_ELEMENT_HANDLING.tagNameCheck), _.CUSTOM_ELEMENT_HANDLING && Do(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (I.attributeNameCheck = _.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), _.CUSTOM_ELEMENT_HANDLING && typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), we && (Q = !1), _u && (dt = !0), bn && (j = le({}, ha), R = $u(null), bn.html === !0 && (le(j, fa), le(R, pa)), bn.svg === !0 && (le(j, rr), le(R, sr), le(R, Mu)), bn.svgFilters === !0 && (le(j, or), le(R, sr), le(R, Mu)), bn.mathMl === !0 && (le(j, ar), le(R, ma), le(R, Mu))), nt(_, "ADD_TAGS") || (J.tagCheck = null), nt(_, "ADD_ATTR") || (J.attributeCheck = null), _.ADD_TAGS && (typeof _.ADD_TAGS == "function" ? J.tagCheck = _.ADD_TAGS : (j === O && (j = Ot(j)), le(j, _.ADD_TAGS, Fe))), _.ADD_ATTR && (typeof _.ADD_ATTR == "function" ? J.attributeCheck = _.ADD_ATTR : (R === U && (R = Ot(R)), le(R, _.ADD_ATTR, Fe))), _.ADD_URI_SAFE_ATTR && le($i, _.ADD_URI_SAFE_ATTR, Fe), _.FORBID_CONTENTS && (Tt === Hi && (Tt = Ot(Tt)), le(Tt, _.FORBID_CONTENTS, Fe)), _.ADD_FORBID_CONTENTS && (Tt === Hi && (Tt = Ot(Tt)), le(Tt, _.ADD_FORBID_CONTENTS, Fe)), ji && (j["#text"] = !0), Be && le(j, ["html", "head", "body"]), j.table && (le(j, ["tbody"]), delete z.tbody), _.TRUSTED_TYPES_POLICY) {
|
|
4464
4474
|
if (typeof _.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4465
4475
|
throw Gn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4466
4476
|
if (typeof _.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -4533,7 +4543,7 @@ function tl() {
|
|
|
4533
4543
|
}
|
|
4534
4544
|
}
|
|
4535
4545
|
const He = V.body || V.documentElement;
|
|
4536
|
-
return _ && ne && He.insertBefore(n.createTextNode(ne), He.childNodes[0] || null), vn === $t ? X.call(V,
|
|
4546
|
+
return _ && ne && He.insertBefore(n.createTextNode(ne), He.childNodes[0] || null), vn === $t ? X.call(V, Be ? "html" : "body")[0] : Be ? V.documentElement : He;
|
|
4537
4547
|
}, Oo = function(_) {
|
|
4538
4548
|
return S.call(
|
|
4539
4549
|
_.ownerDocument || _,
|
|
@@ -4706,7 +4716,7 @@ function tl() {
|
|
|
4706
4716
|
} else if (ue instanceof a)
|
|
4707
4717
|
V = Io("<!---->"), ne = V.ownerDocument.importNode(ue, !0), ne.nodeType === Xn.element && ne.nodeName === "BODY" || ne.nodeName === "HTML" ? V = ne : V.appendChild(ne);
|
|
4708
4718
|
else {
|
|
4709
|
-
if (!dt && !we && !
|
|
4719
|
+
if (!dt && !we && !Be && // eslint-disable-next-line unicorn/prefer-includes
|
|
4710
4720
|
ue.indexOf("<") === -1)
|
|
4711
4721
|
return y && Su ? y.createHTML(ue) : ue;
|
|
4712
4722
|
if (V = Io(ue), !V)
|
|
@@ -4726,8 +4736,8 @@ function tl() {
|
|
|
4726
4736
|
He = V;
|
|
4727
4737
|
return (R.shadowroot || R.shadowrootmode) && (He = $.call(u, He, !0)), He;
|
|
4728
4738
|
}
|
|
4729
|
-
let Je =
|
|
4730
|
-
return
|
|
4739
|
+
let Je = Be ? V.outerHTML : V.innerHTML;
|
|
4740
|
+
return Be && j["!doctype"] && V.ownerDocument && V.ownerDocument.doctype && V.ownerDocument.doctype.name && qe(el, V.ownerDocument.doctype.name) && (Je = "<!DOCTYPE " + V.ownerDocument.doctype.name + `>
|
|
4731
4741
|
` + Je), we && Pu([W, L, G], (Wt) => {
|
|
4732
4742
|
Je = Vn(Je, Wt, " ");
|
|
4733
4743
|
}), y && Su ? y.createHTML(Je) : Je;
|
|
@@ -6748,8 +6758,8 @@ function m1(e, t, n, u) {
|
|
|
6748
6758
|
const dt = { topHeight: z.top - v.value - Y.height - 8, bottomHeight: y.value - z.bottom - Y.height - 8 };
|
|
6749
6759
|
Ge = Math.max(dt.topHeight, dt.bottomHeight), I.height > Ge && (ve = Ge, n.value.classList.add("popover-limitmax"));
|
|
6750
6760
|
}
|
|
6751
|
-
const
|
|
6752
|
-
return y.value - mt >
|
|
6761
|
+
const Be = ve ? Math.floor(ve) : I.height, mt = z.top - v.value + (z.height + Y.height);
|
|
6762
|
+
return y.value - mt > Be ? Q = mt + w.value : (Q = z.top - Be - Y.height + w.value, y.value - mt > z.top ? (Q = mt + w.value, Be > z.top && (Q = y.value - Be)) : (Q = Q < 0 ? 0 : Q, we = "top")), n.value.classList.add("popover-" + we, "bs-popover-" + we), { popoverLeft: te < 0 ? 5 : te, popoverTop: Q, arrowLeft: ae, maxHeight: ve };
|
|
6753
6763
|
}
|
|
6754
6764
|
function P(I, z, Y) {
|
|
6755
6765
|
const J = z.left + z.width, te = 0;
|
|
@@ -6761,8 +6771,8 @@ function m1(e, t, n, u) {
|
|
|
6761
6771
|
const ve = Math.max(z.top - (ae / 2 - z.height / 2), v.value);
|
|
6762
6772
|
let we = v.value + b.value - ae - i.value;
|
|
6763
6773
|
we < 0 && (we = ve);
|
|
6764
|
-
const Ge = Math.min(ve, we)
|
|
6765
|
-
return
|
|
6774
|
+
const Ge = Math.min(ve, we);
|
|
6775
|
+
return { popoverLeft: J, popoverTop: Ge, arrowLeft: te, maxHeight: Q };
|
|
6766
6776
|
}
|
|
6767
6777
|
function B(I, z, Y) {
|
|
6768
6778
|
const J = z.left + z.width, te = Math.max(z.top - z.height, v.value);
|
|
@@ -7393,7 +7403,7 @@ const _1 = /* @__PURE__ */ re({
|
|
|
7393
7403
|
sn(() => {
|
|
7394
7404
|
i && clearTimeout(i);
|
|
7395
7405
|
});
|
|
7396
|
-
const o = M(() => t.value), a = M(() => r.value && !t.value), s = M(() => u.value ? "
|
|
7406
|
+
const o = M(() => t.value), a = M(() => r.value && !t.value), s = M(() => u.value ? "执行完成" : o.value ? "执行成功" : "调用中"), c = H(!1), f = M(() => ({
|
|
7397
7407
|
"f-chat-tool-use": !0,
|
|
7398
7408
|
"is-done": o.value,
|
|
7399
7409
|
"is-error": u.value
|
|
@@ -7458,7 +7468,7 @@ const Yu = /* @__PURE__ */ re({
|
|
|
7458
7468
|
setup(e, t) {
|
|
7459
7469
|
const n = xu(), u = H(), r = H(), i = M(() => !!e.showAvatar), o = M(() => i.value === !0 || e.header === "ContentHeader"), a = M(() => t.slots.leftFooter || t.slots.rightFooter), s = M(() => {
|
|
7460
7470
|
var L;
|
|
7461
|
-
return
|
|
7471
|
+
return Me({}, (L = e.styles) == null ? void 0 : L.footer);
|
|
7462
7472
|
}), c = (L) => {
|
|
7463
7473
|
if (e.attachmentRowClickOpensPreview !== !1 && e.onPreview) {
|
|
7464
7474
|
if (L.type === "md" && L.content) {
|
|
@@ -7696,7 +7706,7 @@ const Yu = /* @__PURE__ */ re({
|
|
|
7696
7706
|
name: "FXBubbleAction",
|
|
7697
7707
|
props: D1,
|
|
7698
7708
|
setup(e, t) {
|
|
7699
|
-
const n = M(() =>
|
|
7709
|
+
const n = M(() => Me({}, e.customStyle));
|
|
7700
7710
|
return () => t.slots.default && d("span", {
|
|
7701
7711
|
class: "f-chat-bubble-footer-action",
|
|
7702
7712
|
style: n.value
|
|
@@ -7842,8 +7852,8 @@ const F1 = {
|
|
|
7842
7852
|
return Se(f, (l = e.classNames) == null ? void 0 : l.item);
|
|
7843
7853
|
}), r = M(() => {
|
|
7844
7854
|
var l, h;
|
|
7845
|
-
const f =
|
|
7846
|
-
return
|
|
7855
|
+
const f = Me({}, (l = e.styles) == null ? void 0 : l.item);
|
|
7856
|
+
return Me(f, (h = e.styles) == null ? void 0 : h.item);
|
|
7847
7857
|
}), i = () => {
|
|
7848
7858
|
var f, l, h;
|
|
7849
7859
|
return e.item.image ? d("img", {
|
|
@@ -7972,8 +7982,8 @@ const Ku = /* @__PURE__ */ re({
|
|
|
7972
7982
|
var S;
|
|
7973
7983
|
const k = {
|
|
7974
7984
|
height: typeof e.height == "number" ? `${e.height}px` : e.height
|
|
7975
|
-
}, F =
|
|
7976
|
-
return
|
|
7985
|
+
}, F = Me(k, e.customStyle);
|
|
7986
|
+
return Me(F, (S = e.styles) == null ? void 0 : S.root);
|
|
7977
7987
|
}), p = M(() => {
|
|
7978
7988
|
var F;
|
|
7979
7989
|
const k = {
|
|
@@ -8186,7 +8196,7 @@ const iu = /* @__PURE__ */ re({
|
|
|
8186
8196
|
const c = {
|
|
8187
8197
|
"flex-direction": e.direction === "row" ? "row" : "column"
|
|
8188
8198
|
};
|
|
8189
|
-
return
|
|
8199
|
+
return Me(c, e == null ? void 0 : e.customStyle);
|
|
8190
8200
|
});
|
|
8191
8201
|
return () => d("div", {
|
|
8192
8202
|
class: a.value,
|
|
@@ -8308,7 +8318,7 @@ const Si = /* @__PURE__ */ re({
|
|
|
8308
8318
|
return b["f-splitter-pane-" + f.value] = !0, Se(b, e == null ? void 0 : e.customClass);
|
|
8309
8319
|
}), h = M(() => e.resizeHandle ? e.resizeHandle.split(",").filter((b) => ["e", "n", "s", "w"].find((y) => y === b)) : []), m = M(() => {
|
|
8310
8320
|
const b = {};
|
|
8311
|
-
return (a.value || a.value === 0) && (f.value === "left" || f.value === "right" || h.value.find((y) => y === "e") || h.value.find((y) => y === "w")) && (b.width = `${a.value}px`), (o.value || o.value === 0) && (f.value === "bottom" || f.value === "top" || h.value.find((y) => y === "s") || h.value.find((y) => y === "n")) && (b.height = `${o.value}px`), e.visible || (b.display = "none"),
|
|
8321
|
+
return (a.value || a.value === 0) && (f.value === "left" || f.value === "right" || h.value.find((y) => y === "e") || h.value.find((y) => y === "w")) && (b.width = `${a.value}px`), (o.value || o.value === 0) && (f.value === "bottom" || f.value === "top" || h.value.find((y) => y === "s") || h.value.find((y) => y === "n")) && (b.height = `${o.value}px`), e.visible || (b.display = "none"), Me(b, e == null ? void 0 : e.customStyle);
|
|
8312
8322
|
}), p = M(() => ({
|
|
8313
8323
|
"f-splitter-resize-bar": !0,
|
|
8314
8324
|
"f-splitter-resize-bar-e": f.value === "left",
|
|
@@ -9060,7 +9070,7 @@ var mp = (e) => !wl.has(e), Xt = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
9060
9070
|
pop() {
|
|
9061
9071
|
return this.heap[--this.length];
|
|
9062
9072
|
}
|
|
9063
|
-
}, In = new WeakMap(), ce(Bt, In, !1), Bt), cs, ds, ft, ut, bt, hn, vt, On, Ln, yt, Te, xt, Ee, xe, se, Xe, it, Ue,
|
|
9073
|
+
}, In = new WeakMap(), ce(Bt, In, !1), Bt), cs, ds, ft, ut, bt, hn, vt, On, Ln, yt, Te, xt, Ee, xe, se, Xe, it, Ue, Le, wt, Re, At, kt, rt, ot, Ct, en, Ze, Rn, Z, Zr, pn, Gt, vu, at, Cl, mn, Pn, yu, Zt, Yt, Yr, Ju, ei, ye, Kr, Kn, Kt, Qr, Mn, bp = (Mn = class {
|
|
9064
9074
|
constructor(t) {
|
|
9065
9075
|
ce(this, Z);
|
|
9066
9076
|
ce(this, ft);
|
|
@@ -9094,9 +9104,9 @@ var mp = (e) => !wl.has(e), Xt = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
9094
9104
|
ce(this, Xe);
|
|
9095
9105
|
ce(this, it);
|
|
9096
9106
|
ce(this, Ue);
|
|
9097
|
-
ce(this,
|
|
9107
|
+
ce(this, Le);
|
|
9098
9108
|
ce(this, wt);
|
|
9099
|
-
ce(this,
|
|
9109
|
+
ce(this, Re);
|
|
9100
9110
|
ce(this, At);
|
|
9101
9111
|
ce(this, kt);
|
|
9102
9112
|
ce(this, rt);
|
|
@@ -9132,7 +9142,7 @@ var mp = (e) => !wl.has(e), Xt = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
9132
9142
|
}
|
|
9133
9143
|
if (g !== void 0 && typeof g != "function") throw new TypeError("memoMethod must be a function if defined");
|
|
9134
9144
|
if (ie(this, Ln, g), v !== void 0 && typeof v != "function") throw new TypeError("fetchMethod must be a function if specified");
|
|
9135
|
-
if (ie(this, On, v), ie(this, en, !!v), ie(this, Ee, /* @__PURE__ */ new Map()), ie(this, xe, new Array(n).fill(void 0)), ie(this, se, new Array(n).fill(void 0)), ie(this, Xe, new X(n)), ie(this, it, new X(n)), ie(this, Ue, 0), ie(this,
|
|
9145
|
+
if (ie(this, On, v), ie(this, en, !!v), ie(this, Ee, /* @__PURE__ */ new Map()), ie(this, xe, new Array(n).fill(void 0)), ie(this, se, new Array(n).fill(void 0)), ie(this, Xe, new X(n)), ie(this, it, new X(n)), ie(this, Ue, 0), ie(this, Le, 0), ie(this, wt, gp.create(n)), ie(this, Te, 0), ie(this, xt, 0), typeof c == "function" && ie(this, bt, c), typeof f == "function" && ie(this, hn, f), typeof l == "function" ? (ie(this, vt, l), ie(this, Re, [])) : (ie(this, vt, void 0), ie(this, Re, void 0)), ie(this, Ct, !!A(this, bt)), ie(this, Rn, !!A(this, hn)), ie(this, Ze, !!A(this, vt)), this.noDisposeOnSet = !!h, this.noUpdateTTL = !!m, this.noDeleteOnFetchRejection = !!b, this.allowStaleOnFetchRejection = !!k, this.allowStaleOnFetchAbort = !!F, this.ignoreFetchAbort = !!S, this.maxEntrySize !== 0) {
|
|
9136
9146
|
if (A(this, ut) !== 0 && !Xt(A(this, ut))) throw new TypeError("maxSize must be a positive integer if specified");
|
|
9137
9147
|
if (!Xt(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
9138
9148
|
ee(this, Z, Cl).call(this);
|
|
@@ -9154,7 +9164,7 @@ var mp = (e) => !wl.has(e), Xt = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
9154
9164
|
return { starts: A(t, kt), ttls: A(t, rt), autopurgeTimers: A(t, ot), sizes: A(t, At), keyMap: A(t, Ee), keyList: A(t, xe), valList: A(t, se), next: A(t, Xe), prev: A(t, it), get head() {
|
|
9155
9165
|
return A(t, Ue);
|
|
9156
9166
|
}, get tail() {
|
|
9157
|
-
return A(t,
|
|
9167
|
+
return A(t, Le);
|
|
9158
9168
|
}, free: A(t, wt), isBackgroundFetch: (n) => {
|
|
9159
9169
|
var u;
|
|
9160
9170
|
return ee(u = t, Z, ye).call(u, n);
|
|
@@ -9301,7 +9311,7 @@ var mp = (e) => !wl.has(e), Xt = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
9301
9311
|
let { ttl: r = this.ttl, start: i, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: a = this.sizeCalculation, status: s } = u, { noUpdateTTL: c = this.noUpdateTTL } = u, f = A(this, yu).call(this, t, n, u.size || 0, a);
|
|
9302
9312
|
if (this.maxEntrySize && f > this.maxEntrySize) return s && (s.set = "miss", s.maxEntrySizeExceeded = !0), ee(this, Z, Kt).call(this, t, "set"), this;
|
|
9303
9313
|
let l = A(this, Te) === 0 ? void 0 : A(this, Ee).get(t);
|
|
9304
|
-
if (l === void 0) l = A(this, Te) === 0 ? A(this,
|
|
9314
|
+
if (l === void 0) l = A(this, Te) === 0 ? A(this, Le) : A(this, wt).length !== 0 ? A(this, wt).pop() : A(this, Te) === A(this, ft) ? ee(this, Z, Ju).call(this, !1) : A(this, Te), A(this, xe)[l] = t, A(this, se)[l] = n, A(this, Ee).set(t, l), A(this, Xe)[A(this, Le)] = l, A(this, it)[l] = A(this, Le), ie(this, Le, l), Ou(this, Te)._++, A(this, Pn).call(this, l, f, s), s && (s.set = "add"), c = !1, A(this, Rn) && ((h = A(this, hn)) == null || h.call(this, n, t, "add"));
|
|
9305
9315
|
else {
|
|
9306
9316
|
ee(this, Z, Kn).call(this, l);
|
|
9307
9317
|
let b = A(this, se)[l];
|
|
@@ -9309,8 +9319,8 @@ var mp = (e) => !wl.has(e), Xt = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
9309
9319
|
if (A(this, en) && ee(this, Z, ye).call(this, b)) {
|
|
9310
9320
|
b.__abortController.abort(new Error("replaced"));
|
|
9311
9321
|
let { __staleWhileFetching: y } = b;
|
|
9312
|
-
y !== void 0 && !o && (A(this, Ct) && ((m = A(this, bt)) == null || m.call(this, y, t, "set")), A(this, Ze) && ((p = A(this,
|
|
9313
|
-
} else o || (A(this, Ct) && ((w = A(this, bt)) == null || w.call(this, b, t, "set")), A(this, Ze) && ((x = A(this,
|
|
9322
|
+
y !== void 0 && !o && (A(this, Ct) && ((m = A(this, bt)) == null || m.call(this, y, t, "set")), A(this, Ze) && ((p = A(this, Re)) == null || p.push([y, t, "set"])));
|
|
9323
|
+
} else o || (A(this, Ct) && ((w = A(this, bt)) == null || w.call(this, b, t, "set")), A(this, Ze) && ((x = A(this, Re)) == null || x.push([b, t, "set"])));
|
|
9314
9324
|
if (A(this, mn).call(this, l), A(this, Pn).call(this, l, f, s), A(this, se)[l] = n, s) {
|
|
9315
9325
|
s.set = "replace";
|
|
9316
9326
|
let y = b && ee(this, Z, ye).call(this, b) ? b.__staleWhileFetching : b;
|
|
@@ -9319,8 +9329,8 @@ var mp = (e) => !wl.has(e), Xt = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
9319
9329
|
} else s && (s.set = "update");
|
|
9320
9330
|
A(this, Rn) && ((v = this.onInsert) == null || v.call(this, n, t, n === b ? "update" : "replace"));
|
|
9321
9331
|
}
|
|
9322
|
-
if (r !== 0 && !A(this, rt) && ee(this, Z, Zr).call(this), A(this, rt) && (c || A(this, vu).call(this, l, r, i), s && A(this, Gt).call(this, s, l)), !o && A(this, Ze) && A(this,
|
|
9323
|
-
let b = A(this,
|
|
9332
|
+
if (r !== 0 && !A(this, rt) && ee(this, Z, Zr).call(this), A(this, rt) && (c || A(this, vu).call(this, l, r, i), s && A(this, Gt).call(this, s, l)), !o && A(this, Ze) && A(this, Re)) {
|
|
9333
|
+
let b = A(this, Re), y;
|
|
9324
9334
|
for (; y = b == null ? void 0 : b.shift(); ) (g = A(this, vt)) == null || g.call(this, ...y);
|
|
9325
9335
|
}
|
|
9326
9336
|
return this;
|
|
@@ -9335,8 +9345,8 @@ var mp = (e) => !wl.has(e), Xt = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
9335
9345
|
} else if (n !== void 0) return n;
|
|
9336
9346
|
}
|
|
9337
9347
|
} finally {
|
|
9338
|
-
if (A(this, Ze) && A(this,
|
|
9339
|
-
let n = A(this,
|
|
9348
|
+
if (A(this, Ze) && A(this, Re)) {
|
|
9349
|
+
let n = A(this, Re), u;
|
|
9340
9350
|
for (; u = n == null ? void 0 : n.shift(); ) (t = A(this, vt)) == null || t.call(this, ...u);
|
|
9341
9351
|
}
|
|
9342
9352
|
}
|
|
@@ -9403,7 +9413,7 @@ var mp = (e) => !wl.has(e), Xt = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
9403
9413
|
clear() {
|
|
9404
9414
|
return ee(this, Z, Qr).call(this, "delete");
|
|
9405
9415
|
}
|
|
9406
|
-
}, ft = new WeakMap(), ut = new WeakMap(), bt = new WeakMap(), hn = new WeakMap(), vt = new WeakMap(), On = new WeakMap(), Ln = new WeakMap(), yt = new WeakMap(), Te = new WeakMap(), xt = new WeakMap(), Ee = new WeakMap(), xe = new WeakMap(), se = new WeakMap(), Xe = new WeakMap(), it = new WeakMap(), Ue = new WeakMap(),
|
|
9416
|
+
}, ft = new WeakMap(), ut = new WeakMap(), bt = new WeakMap(), hn = new WeakMap(), vt = new WeakMap(), On = new WeakMap(), Ln = new WeakMap(), yt = new WeakMap(), Te = new WeakMap(), xt = new WeakMap(), Ee = new WeakMap(), xe = new WeakMap(), se = new WeakMap(), Xe = new WeakMap(), it = new WeakMap(), Ue = new WeakMap(), Le = new WeakMap(), wt = new WeakMap(), Re = new WeakMap(), At = new WeakMap(), kt = new WeakMap(), rt = new WeakMap(), ot = new WeakMap(), Ct = new WeakMap(), en = new WeakMap(), Ze = new WeakMap(), Rn = new WeakMap(), Z = new WeakSet(), Zr = function() {
|
|
9407
9417
|
let t = new Qu(A(this, ft)), n = new Qu(A(this, ft));
|
|
9408
9418
|
ie(this, rt, t), ie(this, kt, n);
|
|
9409
9419
|
let u = this.ttlAutopurge ? new Array(A(this, ft)) : void 0;
|
|
@@ -9469,15 +9479,15 @@ var mp = (e) => !wl.has(e), Xt = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
9469
9479
|
ie(this, xt, A(this, xt) + t[n]), r && (r.entrySize = u, r.totalCalculatedSize = A(this, xt));
|
|
9470
9480
|
});
|
|
9471
9481
|
}, mn = new WeakMap(), Pn = new WeakMap(), yu = new WeakMap(), Zt = function* ({ allowStale: t = this.allowStale } = {}) {
|
|
9472
|
-
if (A(this, Te)) for (let n = A(this,
|
|
9482
|
+
if (A(this, Te)) for (let n = A(this, Le); !(!ee(this, Z, Yr).call(this, n) || ((t || !A(this, at).call(this, n)) && (yield n), n === A(this, Ue))); ) n = A(this, it)[n];
|
|
9473
9483
|
}, Yt = function* ({ allowStale: t = this.allowStale } = {}) {
|
|
9474
|
-
if (A(this, Te)) for (let n = A(this, Ue); !(!ee(this, Z, Yr).call(this, n) || ((t || !A(this, at).call(this, n)) && (yield n), n === A(this,
|
|
9484
|
+
if (A(this, Te)) for (let n = A(this, Ue); !(!ee(this, Z, Yr).call(this, n) || ((t || !A(this, at).call(this, n)) && (yield n), n === A(this, Le))); ) n = A(this, Xe)[n];
|
|
9475
9485
|
}, Yr = function(t) {
|
|
9476
9486
|
return t !== void 0 && A(this, Ee).get(A(this, xe)[t]) === t;
|
|
9477
9487
|
}, Ju = function(t) {
|
|
9478
9488
|
var i, o, a;
|
|
9479
9489
|
let n = A(this, Ue), u = A(this, xe)[n], r = A(this, se)[n];
|
|
9480
|
-
return A(this, en) && ee(this, Z, ye).call(this, r) ? r.__abortController.abort(new Error("evicted")) : (A(this, Ct) || A(this, Ze)) && (A(this, Ct) && ((i = A(this, bt)) == null || i.call(this, r, u, "evict")), A(this, Ze) && ((o = A(this,
|
|
9490
|
+
return A(this, en) && ee(this, Z, ye).call(this, r) ? r.__abortController.abort(new Error("evicted")) : (A(this, Ct) || A(this, Ze)) && (A(this, Ct) && ((i = A(this, bt)) == null || i.call(this, r, u, "evict")), A(this, Ze) && ((o = A(this, Re)) == null || o.push([r, u, "evict"]))), A(this, mn).call(this, n), (a = A(this, ot)) != null && a[n] && (clearTimeout(A(this, ot)[n]), A(this, ot)[n] = void 0), t && (A(this, xe)[n] = void 0, A(this, se)[n] = void 0, A(this, wt).push(n)), A(this, Te) === 1 ? (ie(this, Ue, ie(this, Le, 0)), A(this, wt).length = 0) : ie(this, Ue, A(this, Xe)[n]), A(this, Ee).delete(u), Ou(this, Te)._--, n;
|
|
9481
9491
|
}, ei = function(t, n, u, r) {
|
|
9482
9492
|
let i = n === void 0 ? void 0 : A(this, se)[n];
|
|
9483
9493
|
if (ee(this, Z, ye).call(this, i)) return i;
|
|
@@ -9509,7 +9519,7 @@ var mp = (e) => !wl.has(e), Xt = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
9509
9519
|
}, Kr = function(t, n) {
|
|
9510
9520
|
A(this, it)[n] = t, A(this, Xe)[t] = n;
|
|
9511
9521
|
}, Kn = function(t) {
|
|
9512
|
-
t !== A(this,
|
|
9522
|
+
t !== A(this, Le) && (t === A(this, Ue) ? ie(this, Ue, A(this, Xe)[t]) : ee(this, Z, Kr).call(this, A(this, it)[t], A(this, Xe)[t]), ee(this, Z, Kr).call(this, A(this, Le), t), ie(this, Le, t));
|
|
9513
9523
|
}, Kt = function(t, n) {
|
|
9514
9524
|
var r, i, o, a, s, c;
|
|
9515
9525
|
let u = !1;
|
|
@@ -9519,7 +9529,7 @@ var mp = (e) => !wl.has(e), Xt = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
9519
9529
|
else {
|
|
9520
9530
|
A(this, mn).call(this, f);
|
|
9521
9531
|
let l = A(this, se)[f];
|
|
9522
|
-
if (ee(this, Z, ye).call(this, l) ? l.__abortController.abort(new Error("deleted")) : (A(this, Ct) || A(this, Ze)) && (A(this, Ct) && ((o = A(this, bt)) == null || o.call(this, l, t, n)), A(this, Ze) && ((a = A(this,
|
|
9532
|
+
if (ee(this, Z, ye).call(this, l) ? l.__abortController.abort(new Error("deleted")) : (A(this, Ct) || A(this, Ze)) && (A(this, Ct) && ((o = A(this, bt)) == null || o.call(this, l, t, n)), A(this, Ze) && ((a = A(this, Re)) == null || a.push([l, t, n]))), A(this, Ee).delete(t), A(this, xe)[f] = void 0, A(this, se)[f] = void 0, f === A(this, Le)) ie(this, Le, A(this, it)[f]);
|
|
9523
9533
|
else if (f === A(this, Ue)) ie(this, Ue, A(this, Xe)[f]);
|
|
9524
9534
|
else {
|
|
9525
9535
|
let h = A(this, it)[f];
|
|
@@ -9530,8 +9540,8 @@ var mp = (e) => !wl.has(e), Xt = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
9530
9540
|
Ou(this, Te)._--, A(this, wt).push(f);
|
|
9531
9541
|
}
|
|
9532
9542
|
}
|
|
9533
|
-
if (A(this, Ze) && ((s = A(this,
|
|
9534
|
-
let f = A(this,
|
|
9543
|
+
if (A(this, Ze) && ((s = A(this, Re)) != null && s.length)) {
|
|
9544
|
+
let f = A(this, Re), l;
|
|
9535
9545
|
for (; l = f == null ? void 0 : f.shift(); ) (c = A(this, vt)) == null || c.call(this, ...l);
|
|
9536
9546
|
}
|
|
9537
9547
|
return u;
|
|
@@ -9542,7 +9552,7 @@ var mp = (e) => !wl.has(e), Xt = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
9542
9552
|
if (ee(this, Z, ye).call(this, a)) a.__abortController.abort(new Error("deleted"));
|
|
9543
9553
|
else {
|
|
9544
9554
|
let s = A(this, xe)[o];
|
|
9545
|
-
A(this, Ct) && ((n = A(this, bt)) == null || n.call(this, a, s, t)), A(this, Ze) && ((u = A(this,
|
|
9555
|
+
A(this, Ct) && ((n = A(this, bt)) == null || n.call(this, a, s, t)), A(this, Ze) && ((u = A(this, Re)) == null || u.push([a, s, t]));
|
|
9546
9556
|
}
|
|
9547
9557
|
}
|
|
9548
9558
|
if (A(this, Ee).clear(), A(this, se).fill(void 0), A(this, xe).fill(void 0), A(this, rt) && A(this, kt)) {
|
|
@@ -9550,8 +9560,8 @@ var mp = (e) => !wl.has(e), Xt = (e) => e && e === Math.floor(e) && e > 0 && isF
|
|
|
9550
9560
|
for (let o of A(this, ot) ?? []) o !== void 0 && clearTimeout(o);
|
|
9551
9561
|
(r = A(this, ot)) == null || r.fill(void 0);
|
|
9552
9562
|
}
|
|
9553
|
-
if (A(this, At) && A(this, At).fill(0), ie(this, Ue, 0), ie(this,
|
|
9554
|
-
let o = A(this,
|
|
9563
|
+
if (A(this, At) && A(this, At).fill(0), ie(this, Ue, 0), ie(this, Le, 0), A(this, wt).length = 0, ie(this, xt, 0), ie(this, Te, 0), A(this, Ze) && A(this, Re)) {
|
|
9564
|
+
let o = A(this, Re), a;
|
|
9555
9565
|
for (; a = o == null ? void 0 : o.shift(); ) (i = A(this, vt)) == null || i.call(this, ...a);
|
|
9556
9566
|
}
|
|
9557
9567
|
}, Mn);
|
|
@@ -9695,7 +9705,7 @@ See: https://github.com/francoischalifour/medium-zoom`);
|
|
|
9695
9705
|
});
|
|
9696
9706
|
}
|
|
9697
9707
|
C = C || T.width - S.margin * 2, D = D || T.height - S.margin * 2;
|
|
9698
|
-
var I = E.zoomedHd || E.original, z = Ma(I) ? C : I.naturalWidth || C, Y = Ma(I) ? D : I.naturalHeight || D, J = I.getBoundingClientRect(), te = J.top, Q = J.left, ae = J.width, ve = J.height, we = Math.min(Math.max(ae, z), C) / ae, Ge = Math.min(Math.max(ve, Y), D) / ve,
|
|
9708
|
+
var I = E.zoomedHd || E.original, z = Ma(I) ? C : I.naturalWidth || C, Y = Ma(I) ? D : I.naturalHeight || D, J = I.getBoundingClientRect(), te = J.top, Q = J.left, ae = J.width, ve = J.height, we = Math.min(Math.max(ae, z), C) / ae, Ge = Math.min(Math.max(ve, Y), D) / ve, Be = Math.min(we, Ge), mt = (-Q + (C - ae) / 2 + S.margin + T.left) / Be, Ft = (-te + (D - ve) / 2 + S.margin + T.top) / Be, dt = "scale(" + Be + ") translate3d(" + mt + "px, " + Ft + "px, 0)";
|
|
9699
9709
|
E.zoomed.style.transform = dt, E.zoomedHd && (E.zoomedHd.style.transform = dt);
|
|
9700
9710
|
};
|
|
9701
9711
|
return new u(function(q) {
|
|
@@ -12054,15 +12064,15 @@ const ii = /* @__PURE__ */ re({
|
|
|
12054
12064
|
}
|
|
12055
12065
|
html::-webkit-scrollbar-thumb:hover,
|
|
12056
12066
|
body::-webkit-scrollbar-thumb:hover {
|
|
12057
|
-
background:
|
|
12067
|
+
background: #999;
|
|
12058
12068
|
}
|
|
12059
12069
|
html.iframe-scrollbar-visible,
|
|
12060
12070
|
body.iframe-scrollbar-visible {
|
|
12061
|
-
scrollbar-color:
|
|
12071
|
+
scrollbar-color: #ccc transparent;
|
|
12062
12072
|
}
|
|
12063
12073
|
html.iframe-scrollbar-visible::-webkit-scrollbar-thumb,
|
|
12064
12074
|
body.iframe-scrollbar-visible::-webkit-scrollbar-thumb {
|
|
12065
|
-
background:
|
|
12075
|
+
background: #ccc;
|
|
12066
12076
|
}
|
|
12067
12077
|
`, (C.head || C.documentElement).appendChild(P);
|
|
12068
12078
|
const B = "f-chat-preview-injected-scrollbar-script";
|
|
@@ -13162,7 +13172,7 @@ const y2 = {
|
|
|
13162
13172
|
"fx-generate-process--no-progress": !e.showProgress
|
|
13163
13173
|
};
|
|
13164
13174
|
return Se(c, e.customClass);
|
|
13165
|
-
}), u = M(() =>
|
|
13175
|
+
}), u = M(() => Me({}, e.customStyle));
|
|
13166
13176
|
function r() {
|
|
13167
13177
|
var c, f;
|
|
13168
13178
|
return t.slots.icon ? t.slots.icon() : d("div", {
|
|
@@ -13450,8 +13460,8 @@ const C2 = {
|
|
|
13450
13460
|
return l[`fx-prompt--${e.showType || "none"}`] = !0, l;
|
|
13451
13461
|
}), r = M(() => {
|
|
13452
13462
|
var h;
|
|
13453
|
-
const l =
|
|
13454
|
-
return
|
|
13463
|
+
const l = Me({}, (h = e.styles) == null ? void 0 : h.item);
|
|
13464
|
+
return Me(l, e.customStyle);
|
|
13455
13465
|
}), i = () => {
|
|
13456
13466
|
var l, h;
|
|
13457
13467
|
return e.icon ? d("div", {
|
|
@@ -13545,7 +13555,7 @@ const C2 = {
|
|
|
13545
13555
|
function r(c = null) {
|
|
13546
13556
|
var l;
|
|
13547
13557
|
let f = {};
|
|
13548
|
-
return (e.gap || e.gap === 0) && (f.gap = typeof e.gap == "number" ? `${e.gap}px` : e.gap), f =
|
|
13558
|
+
return (e.gap || e.gap === 0) && (f.gap = typeof e.gap == "number" ? `${e.gap}px` : e.gap), f = Me(f, (l = e.styles) == null ? void 0 : l.items), f = Me(f, c == null ? void 0 : c.customStyle), f;
|
|
13549
13559
|
}
|
|
13550
13560
|
const i = (c, f) => {
|
|
13551
13561
|
f.disabled || f.children && f.children.length > 0 || t.emit("item-click", c, f);
|
|
@@ -13852,7 +13862,7 @@ const fi = /* @__PURE__ */ re({
|
|
|
13852
13862
|
};
|
|
13853
13863
|
}, s = (l) => {
|
|
13854
13864
|
const h = Cn(l);
|
|
13855
|
-
return l.success === !1 ? "
|
|
13865
|
+
return l.success === !1 ? "执行完成" : h ? "执行成功" : "调用中";
|
|
13856
13866
|
}, c = (l) => {
|
|
13857
13867
|
const h = Cn(l);
|
|
13858
13868
|
return l.success === !1 ? "Error" : h ? "Done" : "Working";
|
|
@@ -13938,7 +13948,7 @@ const S2 = {
|
|
|
13938
13948
|
"fx-welcome": !0
|
|
13939
13949
|
};
|
|
13940
13950
|
return !e.description && (e.icon || t.slots.icon) && (o["fx-welcome--no-description"] = !0), Se(o, e.customClass);
|
|
13941
|
-
}), u = M(() =>
|
|
13951
|
+
}), u = M(() => Me({}, e.customStyle));
|
|
13942
13952
|
function r() {
|
|
13943
13953
|
var o, a;
|
|
13944
13954
|
return t.slots.icon ? t.slots.icon() : e.icon ? d("div", {
|
|
@@ -14163,7 +14173,7 @@ const L2 = {
|
|
|
14163
14173
|
"farris-nav-vertical": !e.horizontal
|
|
14164
14174
|
};
|
|
14165
14175
|
return Se(f, e.customClass);
|
|
14166
|
-
}), s = M(() =>
|
|
14176
|
+
}), s = M(() => Me({}, e.customStyle));
|
|
14167
14177
|
function c(f) {
|
|
14168
14178
|
u.value = f, r(n.value);
|
|
14169
14179
|
}
|
|
@@ -15698,7 +15708,7 @@ export {
|
|
|
15698
15708
|
b2 as fileOperationMessageProps,
|
|
15699
15709
|
y2 as generateProcessProps,
|
|
15700
15710
|
Se as getCustomClass,
|
|
15701
|
-
|
|
15711
|
+
Me as getCustomStyle,
|
|
15702
15712
|
Z2 as getDynamicCompState,
|
|
15703
15713
|
hl as getDynamicComponentRegistryDebugSnapshot,
|
|
15704
15714
|
Q2 as invokeAgentWorkbenchSdkApi,
|