nxd-plugin 1.7.82 → 1.7.83
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/dist/chunks/{component-AiChat-BU0rzEqA.mjs → component-AiChat-C1xBPkS5.mjs} +305 -264
- package/dist/chunks/{component-AqiMonitor-B0X5SmQB.mjs → component-AqiMonitor-DoAVs1Jf.mjs} +1 -1
- package/dist/chunks/{component-ChartCumulativePre-D50ZlxtD.mjs → component-ChartCumulativePre-BOIMPYxl.mjs} +2 -2
- package/dist/chunks/{component-ChartServiceMaterial-D35UWUD8.mjs → component-ChartServiceMaterial-CmR3bmG_.mjs} +2 -2
- package/dist/chunks/{component-Duty-CuVSfL6B.mjs → component-Duty-gmt7ZcSc.mjs} +2 -2
- package/dist/chunks/{component-EarlyWarningStatistic-DBLY754e.mjs → component-EarlyWarningStatistic-BWYWrz65.mjs} +2 -2
- package/dist/chunks/component-Forecast72h-BZ1kB2TJ.mjs +427 -0
- package/dist/chunks/{component-GeologyLiveAlarm-BGqrl_n2.mjs → component-GeologyLiveAlarm-CNpQPmGs.mjs} +2 -2
- package/dist/chunks/component-HdHeatService-ok6q8UuG.mjs +412 -0
- package/dist/chunks/component-HdObservation-BmQdGJV6.mjs +600 -0
- package/dist/chunks/component-HdPreSituation-LBpO58bE.mjs +604 -0
- package/dist/chunks/component-HdRadarTime-D7hOn_ph.mjs +461 -0
- package/dist/chunks/component-HdSeaCase-DYPQ7CdN.mjs +219 -0
- package/dist/chunks/component-HdServiceRequirements-DcXrcIIV.mjs +143 -0
- package/dist/chunks/component-HdStationTem-US6IRwbQ.mjs +573 -0
- package/dist/chunks/{component-HighQuality-B-DNdjF7.mjs → component-HighQuality-B0OgPi3T.mjs} +3 -3
- package/dist/chunks/{component-HighWayEarlyWarningRed-DM_NXOxS.mjs → component-HighWayEarlyWarningRed-BTl2WWZ-.mjs} +907 -759
- package/dist/chunks/{component-HighWayFreeze-Dldul9ds.mjs → component-HighWayFreeze-B1aMHQWU.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarm-7T0XNRUb.mjs → component-HighwayLiveAlarm-8u45ZdnN.mjs} +2 -2
- package/dist/chunks/{component-HighwayLiveAlarmNew-ClsfDywn.mjs → component-HighwayLiveAlarmNew-DK827eVk.mjs} +3 -3
- package/dist/chunks/{component-HighwayStations-u3R83AXH.mjs → component-HighwayStations-BzrbWP50.mjs} +2 -2
- package/dist/chunks/{component-HighwayWeatherForecast-CHJuEi1V.mjs → component-HighwayWeatherForecast-DER5XGc3.mjs} +2 -2
- package/dist/chunks/{component-IframeWeb-B_RCXBBe.mjs → component-IframeWeb-DuBssYPk.mjs} +1 -1
- package/dist/chunks/{component-ImageGeneration-5zGtULQL.mjs → component-ImageGeneration-3G3j7utC.mjs} +1 -1
- package/dist/chunks/{component-IntroducePic-DPf4yYOb.mjs → component-IntroducePic-L8VH8Yq8.mjs} +1 -1
- package/dist/chunks/{component-LithiumBatteryMiningArea-D7EdisGO.mjs → component-LithiumBatteryMiningArea-DSFTVepN.mjs} +2 -2
- package/dist/chunks/{component-MapPopup-pePSM1pe.mjs → component-MapPopup-BNc18syw.mjs} +1 -1
- package/dist/chunks/{component-MaterialPreview-CvHyZKau.mjs → component-MaterialPreview-DhLUbjcT.mjs} +2 -2
- package/dist/chunks/{component-PieLegend-C_KQgtb2.mjs → component-PieLegend-Haojhtet.mjs} +1 -1
- package/dist/chunks/component-PrecipitationRanking-BanKrD3J.mjs +608 -0
- package/dist/chunks/{component-RadarChart-Dkkpc2ex.mjs → component-RadarChart-BYMbkI3K.mjs} +2 -2
- package/dist/chunks/{component-RadarLegend-Bmyx7Z82.mjs → component-RadarLegend-CiGsla7a.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-DNpfS5yC.mjs → component-RadarShortTerm-yPc2UWpz.mjs} +4 -4
- package/dist/chunks/{component-RadarTime-CBk6AMiD.mjs → component-RadarTime-CkqIaTJh.mjs} +2 -2
- package/dist/chunks/{component-RenderMarkdown-DFiXNere.mjs → component-RenderMarkdown-D590sXEf.mjs} +2 -2
- package/dist/chunks/{component-ReservoirLiveAlarm-DCzzEJ4U.mjs → component-ReservoirLiveAlarm-DTtKdDQS.mjs} +3 -3
- package/dist/chunks/{component-ServiceMaterial-CXBQpfHK.mjs → component-ServiceMaterial-BKbVQbKm.mjs} +2 -2
- package/dist/chunks/{component-ServiceMaterialsBtn-CPZzLZl_.mjs → component-ServiceMaterialsBtn-CskK-Qiz.mjs} +1 -1
- package/dist/chunks/component-StationDialog-Bn7Fbk24.mjs +897 -0
- package/dist/chunks/component-StationList-DRABlFdc.mjs +323 -0
- package/dist/chunks/{component-TimeBasedForecast-WVO8WY-h.mjs → component-TimeBasedForecast-D1fJ4rGJ.mjs} +4 -4
- package/dist/chunks/{component-WarningLine-BCPm8Eve.mjs → component-WarningLine-jN8sg45u.mjs} +2 -2
- package/dist/chunks/{component-WarningSignal-C2RJ8N64.mjs → component-WarningSignal-BkIKqyJB.mjs} +3 -3
- package/dist/chunks/component-WeatherForecast-CYsbJhYt.mjs +225 -0
- package/dist/chunks/{component-YCDataMonitor-Dx7ASmGD.mjs → component-YCDataMonitor-vVlnkSzT.mjs} +2 -2
- package/dist/chunks/{component-YCDataService-mj2SUWBC.mjs → component-YCDataService-okkY1-iU.mjs} +4 -4
- package/dist/chunks/{component-YCHome-CUcEZHuo.mjs → component-YCHome-BfpbxDIg.mjs} +4 -4
- package/dist/chunks/{component-YCHomeLegend-DK6WU8YQ.mjs → component-YCHomeLegend-CuT-BwNJ.mjs} +1 -1
- package/dist/chunks/{component-YCLoginNew-D2RInKrk.mjs → component-YCLoginNew-KZoyW1EV.mjs} +3 -3
- package/dist/components/AiChat/AiChat.vue.d.ts +0 -2
- package/dist/components/Forecast72h/Forecast72h.vue.d.ts +50 -0
- package/dist/components/HdHeatService/HdHeatService.vue.d.ts +56 -0
- package/dist/components/HdObservation/HdObservation.vue.d.ts +43 -0
- package/dist/components/HdPreSituation/HdPreSituation.vue.d.ts +62 -0
- package/dist/components/HdQxServiceEffects/HdQxServiceEffects.vue.d.ts +59 -0
- package/dist/components/HdRadarTime/HdRadarTime.vue.d.ts +71 -0
- package/dist/components/HdSeaCase/HdSeaCase.vue.d.ts +46 -0
- package/dist/components/HdServiceRequirements/HdServiceRequirements.vue.d.ts +51 -0
- package/dist/components/HdStationTem/HdStationTem.vue.d.ts +69 -0
- package/dist/components/HighWayEarlyWarningRed/Call.vue.d.ts +18 -0
- package/dist/components/HighWayEarlyWarningRed/HighWayEarlyWarningRed.vue.d.ts +5 -0
- package/dist/components/PrecipitationRanking/PrecipitationRanking.vue.d.ts +57 -0
- package/dist/components/StationDialog/StationDialog.vue.d.ts +90 -0
- package/dist/components/StationList/StationList.vue.d.ts +64 -0
- package/dist/index.d.ts +13 -1
- package/dist/nxd-plugin.mjs +51 -40
- package/dist/styles/component-Forecast72h.css +1 -0
- package/dist/styles/component-HdHeatService.css +1 -0
- package/dist/styles/component-HdObservation.css +1 -0
- package/dist/styles/component-HdPreSituation.css +1 -0
- package/dist/styles/component-HdRadarTime.css +1 -0
- package/dist/styles/component-HdSeaCase.css +1 -0
- package/dist/styles/component-HdServiceRequirements.css +1 -0
- package/dist/styles/component-HdStationTem.css +1 -0
- package/dist/styles/component-HighQuality.css +1 -1
- package/dist/styles/component-HighWayEarlyWarningRed.css +1 -1
- package/dist/styles/component-PrecipitationRanking.css +1 -0
- package/dist/styles/component-StationDialog.css +1 -0
- package/dist/styles/component-StationList.css +1 -0
- package/dist/styles/component-WeatherForecast.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +2 -1
- package/dist/chunks/component-WeatherForecast-CaLYtE37.mjs +0 -210
|
@@ -610,8 +610,8 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
610
610
|
var U, W, re = l[ne];
|
|
611
611
|
if (ne < 16) W = re.high = e[t + ne * 2] | 0, U = re.low = e[t + ne * 2 + 1] | 0;
|
|
612
612
|
else {
|
|
613
|
-
var G = l[ne - 15], K = G.high, q = G.low,
|
|
614
|
-
U =
|
|
613
|
+
var G = l[ne - 15], K = G.high, q = G.low, ie = (K >>> 1 | q << 31) ^ (K >>> 8 | q << 24) ^ K >>> 7, ae = (q >>> 1 | K << 31) ^ (q >>> 8 | K << 24) ^ (q >>> 7 | K << 25), J = l[ne - 2], oe = J.high, se = J.low, ce = (oe >>> 19 | se << 13) ^ (oe << 3 | se >>> 29) ^ oe >>> 6, le = (se >>> 19 | oe << 13) ^ (se << 3 | oe >>> 29) ^ (se >>> 6 | oe << 26), ue = l[ne - 7], de = ue.high, fe = ue.low, pe = l[ne - 16], me = pe.high, Y = pe.low;
|
|
614
|
+
U = ae + fe, W = ie + de + (U >>> 0 < ae >>> 0 ? 1 : 0), U += le, W = W + ce + (U >>> 0 < le >>> 0 ? 1 : 0), U += Y, W = W + me + (U >>> 0 < Y >>> 0 ? 1 : 0), re.high = W, re.low = U;
|
|
615
615
|
}
|
|
616
616
|
var he = L & z ^ ~L & ee, ge = R & B ^ ~R & V, _e = k & j ^ k & N ^ j & N, ve = A & M ^ A & P ^ M & P, ye = (k >>> 28 | A << 4) ^ (k << 30 | A >>> 2) ^ (k << 25 | A >>> 7), be = (A >>> 28 | k << 4) ^ (A << 30 | k >>> 2) ^ (A << 25 | k >>> 7), xe = (L >>> 14 | R << 18) ^ (L >>> 18 | R << 14) ^ (L << 23 | R >>> 9), Se = (R >>> 14 | L << 18) ^ (R >>> 18 | L << 14) ^ (R << 23 | L >>> 9), Ce = c[ne], we = Ce.high, Te = Ce.low, Ee = te + Se, De = H + xe + (Ee >>> 0 < te >>> 0 ? 1 : 0), Ee = Ee + ge, De = De + he + (Ee >>> 0 < ge >>> 0 ? 1 : 0), Ee = Ee + Te, De = De + we + (Ee >>> 0 < Te >>> 0 ? 1 : 0), Ee = Ee + U, De = De + W + (Ee >>> 0 < U >>> 0 ? 1 : 0), Oe = be + ve, ke = ye + _e + (Oe >>> 0 < be >>> 0 ? 1 : 0);
|
|
617
617
|
H = ee, te = V, ee = z, V = B, z = L, B = R, R = I + Ee | 0, L = F + De + (R >>> 0 < I >>> 0 ? 1 : 0) | 0, F = N, I = P, N = j, P = M, j = k, M = A, A = Ee + Oe | 0, k = De + ke + (A >>> 0 < Ee >>> 0 ? 1 : 0) | 0;
|
|
@@ -1419,7 +1419,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
1419
1419
|
});
|
|
1420
1420
|
}();
|
|
1421
1421
|
});
|
|
1422
|
-
})),
|
|
1422
|
+
})), ie = /* @__PURE__ */ n(((e, t) => {
|
|
1423
1423
|
(function(n, r, i) {
|
|
1424
1424
|
typeof e == "object" ? t.exports = e = r(P(), q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
|
|
1425
1425
|
})(e, function(e) {
|
|
@@ -1440,7 +1440,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
1440
1440
|
return t;
|
|
1441
1441
|
}(), e.mode.CFB;
|
|
1442
1442
|
});
|
|
1443
|
-
})),
|
|
1443
|
+
})), ae = /* @__PURE__ */ n(((e, t) => {
|
|
1444
1444
|
(function(n, r, i) {
|
|
1445
1445
|
typeof e == "object" ? t.exports = e = r(P(), q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
|
|
1446
1446
|
})(e, function(e) {
|
|
@@ -1455,7 +1455,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
1455
1455
|
} }), t;
|
|
1456
1456
|
}(), e.mode.CTR;
|
|
1457
1457
|
});
|
|
1458
|
-
})),
|
|
1458
|
+
})), J = /* @__PURE__ */ n(((e, t) => {
|
|
1459
1459
|
(function(n, r, i) {
|
|
1460
1460
|
typeof e == "object" ? t.exports = e = r(P(), q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
|
|
1461
1461
|
})(e, function(e) {
|
|
@@ -1480,7 +1480,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
1480
1480
|
} }), t;
|
|
1481
1481
|
}(), e.mode.CTRGladman;
|
|
1482
1482
|
});
|
|
1483
|
-
})),
|
|
1483
|
+
})), oe = /* @__PURE__ */ n(((e, t) => {
|
|
1484
1484
|
(function(n, r, i) {
|
|
1485
1485
|
typeof e == "object" ? t.exports = e = r(P(), q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
|
|
1486
1486
|
})(e, function(e) {
|
|
@@ -1493,7 +1493,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
1493
1493
|
} }), t;
|
|
1494
1494
|
}(), e.mode.OFB;
|
|
1495
1495
|
});
|
|
1496
|
-
})),
|
|
1496
|
+
})), se = /* @__PURE__ */ n(((e, t) => {
|
|
1497
1497
|
(function(n, r, i) {
|
|
1498
1498
|
typeof e == "object" ? t.exports = e = r(P(), q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
|
|
1499
1499
|
})(e, function(e) {
|
|
@@ -1506,7 +1506,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
1506
1506
|
} }), t;
|
|
1507
1507
|
}(), e.mode.ECB;
|
|
1508
1508
|
});
|
|
1509
|
-
})),
|
|
1509
|
+
})), ce = /* @__PURE__ */ n(((e, t) => {
|
|
1510
1510
|
(function(n, r, i) {
|
|
1511
1511
|
typeof e == "object" ? t.exports = e = r(P(), q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
|
|
1512
1512
|
})(e, function(e) {
|
|
@@ -1521,7 +1521,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
}, e.pad.Ansix923;
|
|
1523
1523
|
});
|
|
1524
|
-
})),
|
|
1524
|
+
})), le = /* @__PURE__ */ n(((e, t) => {
|
|
1525
1525
|
(function(n, r, i) {
|
|
1526
1526
|
typeof e == "object" ? t.exports = e = r(P(), q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
|
|
1527
1527
|
})(e, function(e) {
|
|
@@ -1536,7 +1536,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
1536
1536
|
}
|
|
1537
1537
|
}, e.pad.Iso10126;
|
|
1538
1538
|
});
|
|
1539
|
-
})),
|
|
1539
|
+
})), ue = /* @__PURE__ */ n(((e, t) => {
|
|
1540
1540
|
(function(n, r, i) {
|
|
1541
1541
|
typeof e == "object" ? t.exports = e = r(P(), q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
|
|
1542
1542
|
})(e, function(e) {
|
|
@@ -1549,7 +1549,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
}, e.pad.Iso97971;
|
|
1551
1551
|
});
|
|
1552
|
-
})),
|
|
1552
|
+
})), de = /* @__PURE__ */ n(((e, t) => {
|
|
1553
1553
|
(function(n, r, i) {
|
|
1554
1554
|
typeof e == "object" ? t.exports = e = r(P(), q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
|
|
1555
1555
|
})(e, function(e) {
|
|
@@ -1566,7 +1566,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
}, e.pad.ZeroPadding;
|
|
1568
1568
|
});
|
|
1569
|
-
})),
|
|
1569
|
+
})), fe = /* @__PURE__ */ n(((e, t) => {
|
|
1570
1570
|
(function(n, r, i) {
|
|
1571
1571
|
typeof e == "object" ? t.exports = e = r(P(), q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
|
|
1572
1572
|
})(e, function(e) {
|
|
@@ -1575,7 +1575,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
1575
1575
|
unpad: function() {}
|
|
1576
1576
|
}, e.pad.NoPadding;
|
|
1577
1577
|
});
|
|
1578
|
-
})),
|
|
1578
|
+
})), pe = /* @__PURE__ */ n(((e, t) => {
|
|
1579
1579
|
(function(n, r, i) {
|
|
1580
1580
|
typeof e == "object" ? t.exports = e = r(P(), q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
|
|
1581
1581
|
})(e, function(e) {
|
|
@@ -1592,7 +1592,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
1592
1592
|
};
|
|
1593
1593
|
})(), e.format.Hex;
|
|
1594
1594
|
});
|
|
1595
|
-
})),
|
|
1595
|
+
})), me = /* @__PURE__ */ n(((e, t) => {
|
|
1596
1596
|
(function(n, r, i) {
|
|
1597
1597
|
typeof e == "object" ? t.exports = e = r(P(), R(), B(), K(), q()) : typeof define == "function" && define.amd ? define([
|
|
1598
1598
|
"./core",
|
|
@@ -1662,7 +1662,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
1662
1662
|
t.AES = n._createHelper(h);
|
|
1663
1663
|
})(), e.AES;
|
|
1664
1664
|
});
|
|
1665
|
-
})),
|
|
1665
|
+
})), Y = /* @__PURE__ */ n(((e, t) => {
|
|
1666
1666
|
(function(n, r, i) {
|
|
1667
1667
|
typeof e == "object" ? t.exports = e = r(P(), R(), B(), K(), q()) : typeof define == "function" && define.amd ? define([
|
|
1668
1668
|
"./core",
|
|
@@ -3691,7 +3691,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
3691
3691
|
});
|
|
3692
3692
|
})), ye = /* @__PURE__ */ n(((e, t) => {
|
|
3693
3693
|
(function(n, r, i) {
|
|
3694
|
-
typeof e == "object" ? t.exports = e = r(P(), F(), I(), L(), R(), z(), B(), ee(), V(), H(), te(), ne(), U(), W(), re(), G(), K(), q(),
|
|
3694
|
+
typeof e == "object" ? t.exports = e = r(P(), F(), I(), L(), R(), z(), B(), ee(), V(), H(), te(), ne(), U(), W(), re(), G(), K(), q(), ie(), ae(), J(), oe(), se(), ce(), le(), ue(), de(), fe(), pe(), me(), Y(), he(), ge(), _e(), ve()) : typeof define == "function" && define.amd ? define(/* @__PURE__ */ "./core,./x64-core,./lib-typedarrays,./enc-utf16,./enc-base64,./enc-base64url,./md5,./sha1,./sha256,./sha224,./sha512,./sha384,./sha3,./ripemd160,./hmac,./pbkdf2,./evpkdf,./cipher-core,./mode-cfb,./mode-ctr,./mode-ctr-gladman,./mode-ofb,./mode-ecb,./pad-ansix923,./pad-iso10126,./pad-iso97971,./pad-zeropadding,./pad-nopadding,./format-hex,./aes,./tripledes,./rc4,./rabbit,./rabbit-legacy,./blowfish".split(","), r) : n.CryptoJS = r(n.CryptoJS);
|
|
3695
3695
|
})(e, function(e) {
|
|
3696
3696
|
return e;
|
|
3697
3697
|
});
|
|
@@ -3724,17 +3724,17 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
3724
3724
|
};
|
|
3725
3725
|
t.exports = function e(t, n, r, o) {
|
|
3726
3726
|
var s = n || {};
|
|
3727
|
-
if (
|
|
3728
|
-
if (
|
|
3729
|
-
var u =
|
|
3727
|
+
if (ae(s, "quoteStyle") && !ae(R, s.quoteStyle)) throw TypeError("option \"quoteStyle\" must be \"single\" or \"double\"");
|
|
3728
|
+
if (ae(s, "maxStringLength") && (typeof s.maxStringLength == "number" ? s.maxStringLength < 0 && s.maxStringLength !== Infinity : s.maxStringLength !== null)) throw TypeError("option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`");
|
|
3729
|
+
var u = ae(s, "customInspect") ? s.customInspect : !0;
|
|
3730
3730
|
if (typeof u != "boolean" && u !== "symbol") throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
3731
|
-
if (
|
|
3732
|
-
if (
|
|
3731
|
+
if (ae(s, "indent") && s.indent !== null && s.indent !== " " && !(parseInt(s.indent, 10) === s.indent && s.indent > 0)) throw TypeError("option \"indent\" must be \"\\t\", an integer > 0, or `null`");
|
|
3732
|
+
if (ae(s, "numericSeparator") && typeof s.numericSeparator != "boolean") throw TypeError("option \"numericSeparator\", if provided, must be `true` or `false`");
|
|
3733
3733
|
var d = s.numericSeparator;
|
|
3734
3734
|
if (t === void 0) return "undefined";
|
|
3735
3735
|
if (t === null) return "null";
|
|
3736
3736
|
if (typeof t == "boolean") return t ? "true" : "false";
|
|
3737
|
-
if (typeof t == "string") return
|
|
3737
|
+
if (typeof t == "string") return me(t, s);
|
|
3738
3738
|
if (typeof t == "number") {
|
|
3739
3739
|
if (t === 0) return Infinity / t > 0 ? "0" : "-0";
|
|
3740
3740
|
var f = String(t);
|
|
@@ -3748,23 +3748,23 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
3748
3748
|
if (r === void 0 && (r = 0), r >= h && h > 0 && typeof t == "object") return H(t) ? "[Array]" : "[Object]";
|
|
3749
3749
|
var g = ye(s, r);
|
|
3750
3750
|
if (o === void 0) o = [];
|
|
3751
|
-
else if (
|
|
3751
|
+
else if (se(o, t) >= 0) return "[Circular]";
|
|
3752
3752
|
function y(t, n, i) {
|
|
3753
3753
|
if (n && (o = w.call(o), o.push(n)), i) {
|
|
3754
3754
|
var a = { depth: s.depth };
|
|
3755
|
-
return
|
|
3755
|
+
return ae(s, "quoteStyle") && (a.quoteStyle = s.quoteStyle), e(t, a, r + 1, o);
|
|
3756
3756
|
}
|
|
3757
3757
|
return e(t, s, r + 1, o);
|
|
3758
3758
|
}
|
|
3759
3759
|
if (typeof t == "function" && !ne(t)) {
|
|
3760
|
-
var x =
|
|
3760
|
+
var x = oe(t), T = xe(t, y);
|
|
3761
3761
|
return "[Function" + (x ? ": " + x : " (anonymous)") + "]" + (T.length > 0 ? " { " + C.call(T, ", ") + " }" : "");
|
|
3762
3762
|
}
|
|
3763
3763
|
if (K(t)) {
|
|
3764
3764
|
var D = k ? v.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : O.call(t);
|
|
3765
3765
|
return typeof t == "object" && !k ? he(D) : D;
|
|
3766
3766
|
}
|
|
3767
|
-
if (
|
|
3767
|
+
if (pe(t)) {
|
|
3768
3768
|
for (var N = "<" + b.call(String(t.nodeName)), I = t.attributes || [], z = 0; z < I.length; z++) N += " " + I[z].name + "=" + B(ee(I[z].value), "double", s);
|
|
3769
3769
|
return N += ">", t.childNodes && t.childNodes.length && (N += "..."), N += "</" + b.call(String(t.nodeName)) + ">", N;
|
|
3770
3770
|
}
|
|
@@ -3774,28 +3774,28 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
3774
3774
|
return g && !ve(V) ? "[" + be(V, g) + "]" : "[ " + C.call(V, ", ") + " ]";
|
|
3775
3775
|
}
|
|
3776
3776
|
if (U(t)) {
|
|
3777
|
-
var
|
|
3778
|
-
return !("cause" in Error.prototype) && "cause" in t && !j.call(t, "cause") ? "{ [" + String(t) + "] " + C.call(S.call("[cause]: " + y(t.cause),
|
|
3777
|
+
var ie = xe(t, y);
|
|
3778
|
+
return !("cause" in Error.prototype) && "cause" in t && !j.call(t, "cause") ? "{ [" + String(t) + "] " + C.call(S.call("[cause]: " + y(t.cause), ie), ", ") + " }" : ie.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + C.call(ie, ", ") + " }";
|
|
3779
3779
|
}
|
|
3780
3780
|
if (typeof t == "object" && u) {
|
|
3781
3781
|
if (L && typeof t[L] == "function" && F) return F(t, { depth: h - r });
|
|
3782
3782
|
if (u !== "symbol" && typeof t.inspect == "function") return t.inspect();
|
|
3783
3783
|
}
|
|
3784
|
-
if (
|
|
3785
|
-
var
|
|
3784
|
+
if (ce(t)) {
|
|
3785
|
+
var Y = [];
|
|
3786
3786
|
return a && a.call(t, function(e, n) {
|
|
3787
|
-
|
|
3788
|
-
}), _e("Map", i.call(t),
|
|
3787
|
+
Y.push(y(n, t, !0) + " => " + y(e, t));
|
|
3788
|
+
}), _e("Map", i.call(t), Y, g);
|
|
3789
3789
|
}
|
|
3790
|
-
if (
|
|
3790
|
+
if (de(t)) {
|
|
3791
3791
|
var Se = [];
|
|
3792
3792
|
return l && l.call(t, function(e) {
|
|
3793
3793
|
Se.push(y(e, t));
|
|
3794
3794
|
}), _e("Set", c.call(t), Se, g);
|
|
3795
3795
|
}
|
|
3796
|
-
if (
|
|
3797
|
-
if (
|
|
3798
|
-
if (
|
|
3796
|
+
if (le(t)) return ge("WeakMap");
|
|
3797
|
+
if (fe(t)) return ge("WeakSet");
|
|
3798
|
+
if (ue(t)) return ge("WeakRef");
|
|
3799
3799
|
if (re(t)) return he(y(Number(t)));
|
|
3800
3800
|
if (q(t)) return he(y(E.call(t)));
|
|
3801
3801
|
if (G(t)) return he(p.call(t));
|
|
@@ -3803,7 +3803,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
3803
3803
|
if (typeof window < "u" && t === window) return "{ [object Window] }";
|
|
3804
3804
|
if (typeof globalThis < "u" && t === globalThis || typeof global < "u" && t === global) return "{ [object globalThis] }";
|
|
3805
3805
|
if (!te(t) && !ne(t)) {
|
|
3806
|
-
var Ce = xe(t, y), we = M ? M(t) === Object.prototype : t instanceof Object || t.constructor === Object, Te = t instanceof Object ? "" : "null prototype", Ee = !we && A && Object(t) === t && A in t ? _.call(
|
|
3806
|
+
var Ce = xe(t, y), we = M ? M(t) === Object.prototype : t instanceof Object || t.constructor === Object, Te = t instanceof Object ? "" : "null prototype", Ee = !we && A && Object(t) === t && A in t ? _.call(J(t), 8, -1) : Te ? "Object" : "", De = (we || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "") + (Ee || Te ? "[" + C.call(S.call([], Ee || [], Te || []), ": ") + "] " : "");
|
|
3807
3807
|
return Ce.length === 0 ? De + "{}" : g ? De + "{" + be(Ce, g) + "}" : De + "{ " + C.call(Ce, ", ") + " }";
|
|
3808
3808
|
}
|
|
3809
3809
|
return String(t);
|
|
@@ -3819,25 +3819,25 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
3819
3819
|
return !A || !(typeof e == "object" && (A in e || e[A] !== void 0));
|
|
3820
3820
|
}
|
|
3821
3821
|
function H(e) {
|
|
3822
|
-
return
|
|
3822
|
+
return J(e) === "[object Array]" && V(e);
|
|
3823
3823
|
}
|
|
3824
3824
|
function te(e) {
|
|
3825
|
-
return
|
|
3825
|
+
return J(e) === "[object Date]" && V(e);
|
|
3826
3826
|
}
|
|
3827
3827
|
function ne(e) {
|
|
3828
|
-
return
|
|
3828
|
+
return J(e) === "[object RegExp]" && V(e);
|
|
3829
3829
|
}
|
|
3830
3830
|
function U(e) {
|
|
3831
|
-
return
|
|
3831
|
+
return J(e) === "[object Error]" && V(e);
|
|
3832
3832
|
}
|
|
3833
3833
|
function W(e) {
|
|
3834
|
-
return
|
|
3834
|
+
return J(e) === "[object String]" && V(e);
|
|
3835
3835
|
}
|
|
3836
3836
|
function re(e) {
|
|
3837
|
-
return
|
|
3837
|
+
return J(e) === "[object Number]" && V(e);
|
|
3838
3838
|
}
|
|
3839
3839
|
function G(e) {
|
|
3840
|
-
return
|
|
3840
|
+
return J(e) === "[object Boolean]" && V(e);
|
|
3841
3841
|
}
|
|
3842
3842
|
function K(e) {
|
|
3843
3843
|
if (k) return e && typeof e == "object" && e instanceof Symbol;
|
|
@@ -3855,26 +3855,26 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
3855
3855
|
} catch {}
|
|
3856
3856
|
return !1;
|
|
3857
3857
|
}
|
|
3858
|
-
var
|
|
3858
|
+
var ie = Object.prototype.hasOwnProperty || function(e) {
|
|
3859
3859
|
return e in this;
|
|
3860
3860
|
};
|
|
3861
|
-
function
|
|
3862
|
-
return
|
|
3861
|
+
function ae(e, t) {
|
|
3862
|
+
return ie.call(e, t);
|
|
3863
3863
|
}
|
|
3864
|
-
function
|
|
3864
|
+
function J(e) {
|
|
3865
3865
|
return m.call(e);
|
|
3866
3866
|
}
|
|
3867
|
-
function
|
|
3867
|
+
function oe(e) {
|
|
3868
3868
|
if (e.name) return e.name;
|
|
3869
3869
|
var t = g.call(h.call(e), /^function\s*([\w$]+)/);
|
|
3870
3870
|
return t ? t[1] : null;
|
|
3871
3871
|
}
|
|
3872
|
-
function
|
|
3872
|
+
function se(e, t) {
|
|
3873
3873
|
if (e.indexOf) return e.indexOf(t);
|
|
3874
3874
|
for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n;
|
|
3875
3875
|
return -1;
|
|
3876
3876
|
}
|
|
3877
|
-
function
|
|
3877
|
+
function ce(e) {
|
|
3878
3878
|
if (!i || !e || typeof e != "object") return !1;
|
|
3879
3879
|
try {
|
|
3880
3880
|
i.call(e);
|
|
@@ -3887,7 +3887,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
3887
3887
|
} catch {}
|
|
3888
3888
|
return !1;
|
|
3889
3889
|
}
|
|
3890
|
-
function
|
|
3890
|
+
function le(e) {
|
|
3891
3891
|
if (!u || !e || typeof e != "object") return !1;
|
|
3892
3892
|
try {
|
|
3893
3893
|
u.call(e, u);
|
|
@@ -3900,14 +3900,14 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
3900
3900
|
} catch {}
|
|
3901
3901
|
return !1;
|
|
3902
3902
|
}
|
|
3903
|
-
function
|
|
3903
|
+
function ue(e) {
|
|
3904
3904
|
if (!f || !e || typeof e != "object") return !1;
|
|
3905
3905
|
try {
|
|
3906
3906
|
return f.call(e), !0;
|
|
3907
3907
|
} catch {}
|
|
3908
3908
|
return !1;
|
|
3909
3909
|
}
|
|
3910
|
-
function
|
|
3910
|
+
function de(e) {
|
|
3911
3911
|
if (!c || !e || typeof e != "object") return !1;
|
|
3912
3912
|
try {
|
|
3913
3913
|
c.call(e);
|
|
@@ -3920,7 +3920,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
3920
3920
|
} catch {}
|
|
3921
3921
|
return !1;
|
|
3922
3922
|
}
|
|
3923
|
-
function
|
|
3923
|
+
function fe(e) {
|
|
3924
3924
|
if (!d || !e || typeof e != "object") return !1;
|
|
3925
3925
|
try {
|
|
3926
3926
|
d.call(e, d);
|
|
@@ -3933,18 +3933,18 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
3933
3933
|
} catch {}
|
|
3934
3934
|
return !1;
|
|
3935
3935
|
}
|
|
3936
|
-
function
|
|
3936
|
+
function pe(e) {
|
|
3937
3937
|
return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : typeof e.nodeName == "string" && typeof e.getAttribute == "function";
|
|
3938
3938
|
}
|
|
3939
|
-
function
|
|
3939
|
+
function me(e, t) {
|
|
3940
3940
|
if (e.length > t.maxStringLength) {
|
|
3941
3941
|
var n = e.length - t.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
3942
|
-
return
|
|
3942
|
+
return me(_.call(e, 0, t.maxStringLength), t) + r;
|
|
3943
3943
|
}
|
|
3944
3944
|
var i = z[t.quoteStyle || "single"];
|
|
3945
|
-
return i.lastIndex = 0, B(v.call(v.call(e, i, "\\$1"), /[\x00-\x1f]/g,
|
|
3945
|
+
return i.lastIndex = 0, B(v.call(v.call(e, i, "\\$1"), /[\x00-\x1f]/g, Y), "single", t);
|
|
3946
3946
|
}
|
|
3947
|
-
function
|
|
3947
|
+
function Y(e) {
|
|
3948
3948
|
var t = e.charCodeAt(0), n = {
|
|
3949
3949
|
8: "b",
|
|
3950
3950
|
9: "t",
|
|
@@ -3965,7 +3965,7 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
3965
3965
|
return e + " (" + t + ") {" + i + "}";
|
|
3966
3966
|
}
|
|
3967
3967
|
function ve(e) {
|
|
3968
|
-
for (var t = 0; t < e.length; t++) if (
|
|
3968
|
+
for (var t = 0; t < e.length; t++) if (se(e[t], "\n") >= 0) return !1;
|
|
3969
3969
|
return !0;
|
|
3970
3970
|
}
|
|
3971
3971
|
function ye(e, t) {
|
|
@@ -3987,14 +3987,14 @@ var N = /* @__PURE__ */ n(((e, t) => {
|
|
|
3987
3987
|
var n = H(e), r = [];
|
|
3988
3988
|
if (n) {
|
|
3989
3989
|
r.length = e.length;
|
|
3990
|
-
for (var i = 0; i < e.length; i++) r[i] =
|
|
3990
|
+
for (var i = 0; i < e.length; i++) r[i] = ae(e, i) ? t(e[i], e) : "";
|
|
3991
3991
|
}
|
|
3992
3992
|
var a = typeof D == "function" ? D(e) : [], o;
|
|
3993
3993
|
if (k) {
|
|
3994
3994
|
o = {};
|
|
3995
3995
|
for (var s = 0; s < a.length; s++) o["$" + a[s]] = a[s];
|
|
3996
3996
|
}
|
|
3997
|
-
for (var c in e)
|
|
3997
|
+
for (var c in e) ae(e, c) && (n && String(Number(c)) === c && c < e.length || k && o["$" + c] instanceof Symbol || (x.call(/[^\w$]/, c) ? r.push(t(c, e) + ": " + t(e[c], e)) : r.push(c + ": " + t(e[c], e))));
|
|
3998
3998
|
if (typeof D == "function") for (var l = 0; l < a.length; l++) j.call(e, a[l]) && r.push("[" + t(a[l]) + "]: " + t(e[a[l]], e));
|
|
3999
3999
|
return r;
|
|
4000
4000
|
}
|
|
@@ -6815,7 +6815,7 @@ function Oi() {
|
|
|
6815
6815
|
enumerable: !0,
|
|
6816
6816
|
value: !1
|
|
6817
6817
|
}
|
|
6818
|
-
})),
|
|
6818
|
+
})), ie = null, ae = null, J = Object.seal(xr(null, {
|
|
6819
6819
|
tagCheck: {
|
|
6820
6820
|
writable: !0,
|
|
6821
6821
|
configurable: !1,
|
|
@@ -6828,7 +6828,7 @@ function Oi() {
|
|
|
6828
6828
|
enumerable: !0,
|
|
6829
6829
|
value: null
|
|
6830
6830
|
}
|
|
6831
|
-
})),
|
|
6831
|
+
})), oe = !0, se = !0, ce = !1, le = !0, ue = !1, de = !0, fe = !1, pe = !1, me = null, Y = null, he = !1, ge = !1, _e = !1, ve = !1, ye = !0, be = !1, xe = "user-content-", Se = !0, Ce = !1, we = {}, Te = null, Ee = $({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), De = null, Oe = $({}, [
|
|
6832
6832
|
"audio",
|
|
6833
6833
|
"video",
|
|
6834
6834
|
"img",
|
|
@@ -6877,13 +6877,13 @@ function Oi() {
|
|
|
6877
6877
|
}), De = Di(e, "ADD_DATA_URI_TAGS", Oe, {
|
|
6878
6878
|
transform: X,
|
|
6879
6879
|
base: Oe
|
|
6880
|
-
}), Te = Di(e, "FORBID_CONTENTS", Ee, { transform: X }),
|
|
6880
|
+
}), Te = Di(e, "FORBID_CONTENTS", Ee, { transform: X }), ie = Di(e, "FORBID_TAGS", Jr({}), { transform: X }), ae = Di(e, "FORBID_ATTR", Jr({}), { transform: X }), we = Vr(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? Jr(e.USE_PROFILES) : e.USE_PROFILES : !1, oe = e.ALLOW_ARIA_ATTR !== !1, se = e.ALLOW_DATA_ATTR !== !1, ce = e.ALLOW_UNKNOWN_PROTOCOLS || !1, le = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ue = e.SAFE_FOR_TEMPLATES || !1, de = e.SAFE_FOR_XML !== !1, fe = e.WHOLE_DOCUMENT || !1, ge = e.RETURN_DOM || !1, _e = e.RETURN_DOM_FRAGMENT || !1, ve = e.RETURN_TRUSTED_TYPE || !1, he = e.FORCE_BODY || !1, ye = e.SANITIZE_DOM !== !1, be = e.SANITIZE_NAMED_PROPS || !1, Se = e.KEEP_CONTENT !== !1, Ce = e.IN_PLACE || !1, U = Zr(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : mi, Pe = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Ne, ze = Vr(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Jr(e.MATHML_TEXT_INTEGRATION_POINTS) : $({}, Re), Ve = Vr(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? Jr(e.HTML_INTEGRATION_POINTS) : $({}, Be);
|
|
6881
6881
|
let t = Vr(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? Jr(e.CUSTOM_ELEMENT_HANDLING) : xr(null);
|
|
6882
|
-
if (q = xr(null), Vr(t, "tagNameCheck") && qe(t.tagNameCheck) && (q.tagNameCheck = t.tagNameCheck), Vr(t, "attributeNameCheck") && qe(t.attributeNameCheck) && (q.attributeNameCheck = t.attributeNameCheck), Vr(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (q.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), br(q),
|
|
6882
|
+
if (q = xr(null), Vr(t, "tagNameCheck") && qe(t.tagNameCheck) && (q.tagNameCheck = t.tagNameCheck), Vr(t, "attributeNameCheck") && qe(t.attributeNameCheck) && (q.attributeNameCheck = t.attributeNameCheck), Vr(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (q.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), br(q), ue && (se = !1), _e && (ge = !0), we && (W = $({}, ii), G = xr(null), we.html === !0 && ($(W, Qr), $(G, ai)), we.svg === !0 && ($(W, $r), $(G, oi), $(G, ci)), we.svgFilters === !0 && ($(W, ei), $(G, oi), $(G, ci)), we.mathMl === !0 && ($(W, ni), $(G, si), $(G, ci))), J.tagCheck = null, J.attributeCheck = null, Vr(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? J.tagCheck = e.ADD_TAGS : Ar(e.ADD_TAGS) && (W === re && (W = Jr(W)), $(W, e.ADD_TAGS, X))), Vr(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? J.attributeCheck = e.ADD_ATTR : Ar(e.ADD_ATTR) && (G === K && (G = Jr(G)), $(G, e.ADD_ATTR, X))), Vr(e, "ADD_URI_SAFE_ATTR") && Ar(e.ADD_URI_SAFE_ATTR) && $(ke, e.ADD_URI_SAFE_ATTR, X), Vr(e, "FORBID_CONTENTS") && Ar(e.FORBID_CONTENTS) && (Te === Ee && (Te = Jr(Te)), $(Te, e.FORBID_CONTENTS, X)), Vr(e, "ADD_FORBID_CONTENTS") && Ar(e.ADD_FORBID_CONTENTS) && (Te === Ee && (Te = Jr(Te)), $(Te, e.ADD_FORBID_CONTENTS, X)), Se && (W["#text"] = !0), fe && $(W, [
|
|
6883
6883
|
"html",
|
|
6884
6884
|
"head",
|
|
6885
6885
|
"body"
|
|
6886
|
-
]), W.table && ($(W, ["tbody"]), delete
|
|
6886
|
+
]), W.table && ($(W, ["tbody"]), delete ie.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
6887
6887
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Wr("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
6888
6888
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Wr("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
6889
6889
|
let t = S;
|
|
@@ -6975,7 +6975,7 @@ function Oi() {
|
|
|
6975
6975
|
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
6976
6976
|
}
|
|
6977
6977
|
}, ot = function(e) {
|
|
6978
|
-
if (!
|
|
6978
|
+
if (!de) return;
|
|
6979
6979
|
let t = [e];
|
|
6980
6980
|
for (; t.length > 0;) {
|
|
6981
6981
|
let e = t.pop(), n = y ? y(e) : e.nodeType;
|
|
@@ -7013,7 +7013,7 @@ function Oi() {
|
|
|
7013
7013
|
} catch {}
|
|
7014
7014
|
}
|
|
7015
7015
|
let a = t.body || t.documentElement;
|
|
7016
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Pe === Ne ? F.call(t,
|
|
7016
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Pe === Ne ? F.call(t, fe ? "html" : "body")[0] : fe ? t.documentElement : a;
|
|
7017
7017
|
}, ct = function(e) {
|
|
7018
7018
|
let t = x ? x(e) : e.ownerDocument;
|
|
7019
7019
|
return N.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
@@ -7051,9 +7051,9 @@ function Oi() {
|
|
|
7051
7051
|
});
|
|
7052
7052
|
}
|
|
7053
7053
|
let ht = function(e, t) {
|
|
7054
|
-
return !!(
|
|
7054
|
+
return !!(de && e.hasChildNodes() && !pt(e.firstElementChild) && Ur(yi, e.textContent) && Ur(yi, e.innerHTML) || de && e.namespaceURI === Ne && t === "style" && pt(e.firstElementChild) || e.nodeType === Ci.processingInstruction || de && e.nodeType === Ci.comment && Ur(bi, e.data));
|
|
7055
7055
|
}, gt = function(e, t, n) {
|
|
7056
|
-
if (!
|
|
7056
|
+
if (!ie[t] && xt(t) && (q.tagNameCheck instanceof RegExp && Ur(q.tagNameCheck, t) || q.tagNameCheck instanceof Function && q.tagNameCheck(t))) return !1;
|
|
7057
7057
|
if (Se && !Te[t]) {
|
|
7058
7058
|
let t = g(e), r = h(e);
|
|
7059
7059
|
if (r && t) {
|
|
@@ -7071,28 +7071,28 @@ function Oi() {
|
|
|
7071
7071
|
if (mt(L.beforeSanitizeElements, e, null), e !== n && g(e) === null) return Ce && at(e), !0;
|
|
7072
7072
|
if (dt(e)) return tt(e), !0;
|
|
7073
7073
|
let r = X(b ? b(e) : e.nodeName);
|
|
7074
|
-
if (W = _t(L.uponSanitizeElement, W, re,
|
|
7074
|
+
if (W = _t(L.uponSanitizeElement, W, re, me), mt(L.uponSanitizeElement, e, {
|
|
7075
7075
|
tagName: r,
|
|
7076
7076
|
allowedTags: W
|
|
7077
7077
|
}), e !== n && g(e) === null) return Ce && at(e), !0;
|
|
7078
7078
|
if (ht(e, r)) return tt(e), !0;
|
|
7079
|
-
if (
|
|
7079
|
+
if (ie[r] || !(J.tagCheck instanceof Function && J.tagCheck(r)) && !W[r]) {
|
|
7080
7080
|
let t = gt(e, r, n);
|
|
7081
7081
|
return t === !1 && mt(L.afterSanitizeElements, e, null), t;
|
|
7082
7082
|
}
|
|
7083
7083
|
if ((y ? y(e) : e.nodeType) === Ci.element && !et(e) || (r === "noscript" || r === "noembed" || r === "noframes") && Ur(xi, e.innerHTML)) return tt(e), !0;
|
|
7084
|
-
if (
|
|
7084
|
+
if (ue && e.nodeType === Ci.text) {
|
|
7085
7085
|
let n = lt(e.textContent);
|
|
7086
7086
|
e.textContent !== n && (Or(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
7087
7087
|
}
|
|
7088
7088
|
return mt(L.afterSanitizeElements, e, null), !1;
|
|
7089
7089
|
}, yt = function(e, t, r) {
|
|
7090
|
-
if (
|
|
7091
|
-
let i = G[t] ||
|
|
7092
|
-
if (!(
|
|
7090
|
+
if (ae[t] || de && t === "patchsrc" || de && t === "for" && e !== "label" && e !== "output" || ye && (t === "id" || t === "name") && (r in n || r in Ke)) return !1;
|
|
7091
|
+
let i = G[t] || J.attributeCheck instanceof Function && J.attributeCheck(t, e);
|
|
7092
|
+
if (!(se && Ur(ee, t)) && !(oe && Ur(V, t))) {
|
|
7093
7093
|
if (!i) {
|
|
7094
7094
|
if (!(xt(e) && (q.tagNameCheck instanceof RegExp && Ur(q.tagNameCheck, e) || q.tagNameCheck instanceof Function && q.tagNameCheck(e)) && (q.attributeNameCheck instanceof RegExp && Ur(q.attributeNameCheck, t) || q.attributeNameCheck instanceof Function && q.attributeNameCheck(t, e)) || t === "is" && q.allowCustomizedBuiltInElements && (q.tagNameCheck instanceof RegExp && Ur(q.tagNameCheck, r) || q.tagNameCheck instanceof Function && q.tagNameCheck(r)))) return !1;
|
|
7095
|
-
} else if (!ke[t] && !Ur(U, Pr(r, te, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Fr(r, "data:") === 0 && De[e]) && !(
|
|
7095
|
+
} else if (!ke[t] && !Ur(U, Pr(r, te, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Fr(r, "data:") === 0 && De[e]) && !(ce && !Ur(H, Pr(r, te, ""))) && r) return !1;
|
|
7096
7096
|
}
|
|
7097
7097
|
return !0;
|
|
7098
7098
|
}, bt = $({}, [
|
|
@@ -7122,7 +7122,7 @@ function Oi() {
|
|
|
7122
7122
|
mt(L.beforeSanitizeAttributes, e, null);
|
|
7123
7123
|
let t = e.attributes;
|
|
7124
7124
|
if (!t || dt(e)) return;
|
|
7125
|
-
G = _t(L.uponSanitizeAttribute, G, K,
|
|
7125
|
+
G = _t(L.uponSanitizeAttribute, G, K, Y);
|
|
7126
7126
|
let n = {
|
|
7127
7127
|
attrName: "",
|
|
7128
7128
|
attrValue: "",
|
|
@@ -7132,7 +7132,7 @@ function Oi() {
|
|
|
7132
7132
|
}, r = t.length, i = X(e.nodeName);
|
|
7133
7133
|
for (; r--;) {
|
|
7134
7134
|
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = X(o), u = c, d = o === "value" ? u : Ir(u);
|
|
7135
|
-
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, mt(L.uponSanitizeAttribute, e, n), d = n.attrValue, be && (l === "id" || l === "name") && Fr(d, xe) !== 0 && (rt(o, e), d = xe + d),
|
|
7135
|
+
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, mt(L.uponSanitizeAttribute, e, n), d = n.attrValue, be && (l === "id" || l === "name") && Fr(d, xe) !== 0 && (rt(o, e), d = xe + d), de && Ur(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
7136
7136
|
rt(o, e);
|
|
7137
7137
|
continue;
|
|
7138
7138
|
}
|
|
@@ -7145,11 +7145,11 @@ function Oi() {
|
|
|
7145
7145
|
rt(o, e);
|
|
7146
7146
|
continue;
|
|
7147
7147
|
}
|
|
7148
|
-
if (!
|
|
7148
|
+
if (!le && Ur(Si, d)) {
|
|
7149
7149
|
rt(o, e);
|
|
7150
7150
|
continue;
|
|
7151
7151
|
}
|
|
7152
|
-
if (
|
|
7152
|
+
if (ue && (d = lt(d)), !yt(i, l, d)) {
|
|
7153
7153
|
rt(o, e);
|
|
7154
7154
|
continue;
|
|
7155
7155
|
}
|
|
@@ -7206,14 +7206,14 @@ function Oi() {
|
|
|
7206
7206
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
7207
7207
|
if (Fe = !e, Fe && (e = "<!-->"), typeof e != "string" && !pt(e) && (e = Yr(e), typeof e != "string")) throw Wr("dirty is not a string, aborting");
|
|
7208
7208
|
if (!t.isSupported) return e;
|
|
7209
|
-
|
|
7209
|
+
pe ? (W = me, G = Y) : Je(n), (L.uponSanitizeElement.length > 0 || L.uponSanitizeAttribute.length > 0) && (W = Jr(W)), L.uponSanitizeAttribute.length > 0 && (G = Jr(G)), t.removed = [];
|
|
7210
7210
|
let c = Ce && typeof e != "string" && pt(e);
|
|
7211
7211
|
if (c) {
|
|
7212
7212
|
ot(e);
|
|
7213
7213
|
let t = b ? b(e) : e.nodeName;
|
|
7214
7214
|
if (typeof t == "string") {
|
|
7215
7215
|
let n = X(t);
|
|
7216
|
-
if (!W[n] ||
|
|
7216
|
+
if (!W[n] || ie[n]) throw nt(e), Wr("root node is forbidden and cannot be sanitized in-place");
|
|
7217
7217
|
}
|
|
7218
7218
|
if (dt(e)) throw nt(e), Wr("root node is clobbered and cannot be sanitized in-place");
|
|
7219
7219
|
try {
|
|
@@ -7223,7 +7223,7 @@ function Oi() {
|
|
|
7223
7223
|
}
|
|
7224
7224
|
} else if (pt(e)) i = st("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === Ci.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Et(a);
|
|
7225
7225
|
else {
|
|
7226
|
-
if (!ge && !
|
|
7226
|
+
if (!ge && !ue && !fe && e.indexOf("<") === -1) return S && ve ? O(e) : e;
|
|
7227
7227
|
if (i = st(e), !i) return ge ? null : ve ? C : "";
|
|
7228
7228
|
}
|
|
7229
7229
|
i && he && tt(i.firstChild);
|
|
@@ -7238,18 +7238,18 @@ function Oi() {
|
|
|
7238
7238
|
}
|
|
7239
7239
|
if (c) return Tr(t.removed, (e) => {
|
|
7240
7240
|
e.element && at(e.element);
|
|
7241
|
-
}),
|
|
7241
|
+
}), ue && ut(e), e;
|
|
7242
7242
|
if (ge) {
|
|
7243
|
-
if (
|
|
7243
|
+
if (ue && ut(i), _e) for (s = P.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
7244
7244
|
else s = i;
|
|
7245
7245
|
return (G.shadowroot || G.shadowrootmode) && (s = I.call(r, s, !0)), s;
|
|
7246
7246
|
}
|
|
7247
|
-
let u =
|
|
7248
|
-
return
|
|
7247
|
+
let u = fe ? i.outerHTML : i.innerHTML;
|
|
7248
|
+
return fe && W["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Ur(_i, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), ue && (u = lt(u)), S && ve ? O(u) : u;
|
|
7249
7249
|
}, t.setConfig = function() {
|
|
7250
|
-
Je(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}),
|
|
7250
|
+
Je(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), pe = !0, me = W, Y = G;
|
|
7251
7251
|
}, t.clearConfig = function() {
|
|
7252
|
-
Ge = null,
|
|
7252
|
+
Ge = null, pe = !1, me = null, Y = null, S = w, C = "";
|
|
7253
7253
|
}, t.isValidAttribute = function(e, t, n) {
|
|
7254
7254
|
return Ge || Je({}), yt(X(e), X(t), n);
|
|
7255
7255
|
}, t.addHook = function(e, t) {
|
|
@@ -7558,16 +7558,16 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
7558
7558
|
function q(e, t) {
|
|
7559
7559
|
Array.isArray(e.illegal) && (e.illegal = y(...e.illegal));
|
|
7560
7560
|
}
|
|
7561
|
-
function
|
|
7561
|
+
function ie(e, t) {
|
|
7562
7562
|
if (e.match) {
|
|
7563
7563
|
if (e.begin || e.end) throw Error("begin & end are not supported with match");
|
|
7564
7564
|
e.begin = e.match, delete e.match;
|
|
7565
7565
|
}
|
|
7566
7566
|
}
|
|
7567
|
-
function
|
|
7567
|
+
function ae(e, t) {
|
|
7568
7568
|
e.relevance === void 0 && (e.relevance = 1);
|
|
7569
7569
|
}
|
|
7570
|
-
var
|
|
7570
|
+
var J = (e, t) => {
|
|
7571
7571
|
if (!e.beforeMatch) return;
|
|
7572
7572
|
if (e.starts) throw Error("beforeMatch cannot be used with starts");
|
|
7573
7573
|
let n = Object.assign({}, e);
|
|
@@ -7577,7 +7577,7 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
7577
7577
|
relevance: 0,
|
|
7578
7578
|
contains: [Object.assign(n, { endsParent: !0 })]
|
|
7579
7579
|
}, e.relevance = 0, delete n.beforeMatch;
|
|
7580
|
-
},
|
|
7580
|
+
}, oe = [
|
|
7581
7581
|
"of",
|
|
7582
7582
|
"and",
|
|
7583
7583
|
"for",
|
|
@@ -7589,32 +7589,32 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
7589
7589
|
"parent",
|
|
7590
7590
|
"list",
|
|
7591
7591
|
"value"
|
|
7592
|
-
],
|
|
7593
|
-
function
|
|
7592
|
+
], se = "keyword";
|
|
7593
|
+
function ce(e, t, n = se) {
|
|
7594
7594
|
let r = Object.create(null);
|
|
7595
7595
|
return typeof e == "string" ? i(n, e.split(" ")) : Array.isArray(e) ? i(n, e) : Object.keys(e).forEach(function(n) {
|
|
7596
|
-
Object.assign(r,
|
|
7596
|
+
Object.assign(r, ce(e[n], t, n));
|
|
7597
7597
|
}), r;
|
|
7598
7598
|
function i(e, n) {
|
|
7599
7599
|
t && (n = n.map((e) => e.toLowerCase())), n.forEach(function(t) {
|
|
7600
7600
|
let n = t.split("|");
|
|
7601
|
-
r[n[0]] = [e,
|
|
7601
|
+
r[n[0]] = [e, le(n[0], n[1])];
|
|
7602
7602
|
});
|
|
7603
7603
|
}
|
|
7604
7604
|
}
|
|
7605
|
-
function
|
|
7606
|
-
return t ? Number(t) :
|
|
7605
|
+
function le(e, t) {
|
|
7606
|
+
return t ? Number(t) : ue(e) ? 0 : 1;
|
|
7607
7607
|
}
|
|
7608
|
-
function
|
|
7609
|
-
return
|
|
7608
|
+
function ue(e) {
|
|
7609
|
+
return oe.includes(e.toLowerCase());
|
|
7610
7610
|
}
|
|
7611
|
-
var
|
|
7611
|
+
var de = {}, fe = (e) => {
|
|
7612
7612
|
console.error(e);
|
|
7613
|
-
},
|
|
7613
|
+
}, pe = (e, ...t) => {
|
|
7614
7614
|
console.log(`WARN: ${e}`, ...t);
|
|
7615
|
-
},
|
|
7616
|
-
|
|
7617
|
-
},
|
|
7615
|
+
}, me = (e, t) => {
|
|
7616
|
+
de[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), de[`${e}/${t}`] = !0);
|
|
7617
|
+
}, Y = /* @__PURE__ */ Error();
|
|
7618
7618
|
function he(e, t, { key: n }) {
|
|
7619
7619
|
let r = 0, i = e[n], a = {}, o = {};
|
|
7620
7620
|
for (let e = 1; e <= t.length; e++) o[e + r] = i[e], a[e + r] = !0, r += b(t[e - 1]);
|
|
@@ -7622,15 +7622,15 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
7622
7622
|
}
|
|
7623
7623
|
function ge(e) {
|
|
7624
7624
|
if (Array.isArray(e.begin)) {
|
|
7625
|
-
if (e.skip || e.excludeBegin || e.returnBegin) throw
|
|
7626
|
-
if (typeof e.beginScope != "object" || e.beginScope === null) throw
|
|
7625
|
+
if (e.skip || e.excludeBegin || e.returnBegin) throw fe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Y;
|
|
7626
|
+
if (typeof e.beginScope != "object" || e.beginScope === null) throw fe("beginScope must be object"), Y;
|
|
7627
7627
|
he(e, e.begin, { key: "beginScope" }), e.begin = C(e.begin, { joinWith: "" });
|
|
7628
7628
|
}
|
|
7629
7629
|
}
|
|
7630
7630
|
function _e(e) {
|
|
7631
7631
|
if (Array.isArray(e.end)) {
|
|
7632
|
-
if (e.skip || e.excludeEnd || e.returnEnd) throw
|
|
7633
|
-
if (typeof e.endScope != "object" || e.endScope === null) throw
|
|
7632
|
+
if (e.skip || e.excludeEnd || e.returnEnd) throw fe("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Y;
|
|
7633
|
+
if (typeof e.endScope != "object" || e.endScope === null) throw fe("endScope must be object"), Y;
|
|
7634
7634
|
he(e, e.end, { key: "endScope" }), e.end = C(e.end, { joinWith: "" });
|
|
7635
7635
|
}
|
|
7636
7636
|
}
|
|
@@ -7703,16 +7703,16 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
7703
7703
|
if (n.isCompiled) return a;
|
|
7704
7704
|
[
|
|
7705
7705
|
G,
|
|
7706
|
-
|
|
7706
|
+
ie,
|
|
7707
7707
|
ye,
|
|
7708
|
-
|
|
7708
|
+
J
|
|
7709
7709
|
].forEach((e) => e(n, r)), e.compilerExtensions.forEach((e) => e(n, r)), n.__beforeBegin = null, [
|
|
7710
7710
|
K,
|
|
7711
7711
|
q,
|
|
7712
|
-
|
|
7712
|
+
ae
|
|
7713
7713
|
].forEach((e) => e(n, r)), n.isCompiled = !0;
|
|
7714
7714
|
let s = null;
|
|
7715
|
-
return typeof n.keywords == "object" && n.keywords.$pattern && (n.keywords = Object.assign({}, n.keywords), s = n.keywords.$pattern, delete n.keywords.$pattern), s ||= /\w+/, n.keywords &&=
|
|
7715
|
+
return typeof n.keywords == "object" && n.keywords.$pattern && (n.keywords = Object.assign({}, n.keywords), s = n.keywords.$pattern, delete n.keywords.$pattern), s ||= /\w+/, n.keywords &&= ce(n.keywords, e.case_insensitive), a.keywordPatternRe = t(s, !0), r && (n.begin ||= /\B|\b/, a.beginRe = t(a.begin), !n.end && !n.endsWithParent && (n.end = /\B|\b/), n.end && (a.endRe = t(a.end)), a.terminatorEnd = p(a.end) || "", n.endsWithParent && r.terminatorEnd && (a.terminatorEnd += (n.end ? "|" : "") + r.terminatorEnd)), n.illegal && (a.illegalRe = t(n.illegal)), n.contains ||= [], n.contains = [].concat(...n.contains.map(function(e) {
|
|
7716
7716
|
return Se(e === "self" ? n : e);
|
|
7717
7717
|
})), n.contains.forEach(function(e) {
|
|
7718
7718
|
o(e, a);
|
|
@@ -7757,13 +7757,13 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
7757
7757
|
let n = l.languageDetectRe.exec(t);
|
|
7758
7758
|
if (n) {
|
|
7759
7759
|
let t = N(n[1]);
|
|
7760
|
-
return t || (
|
|
7760
|
+
return t || (pe(s.replace("{}", n[1])), pe("Falling back to no-highlight mode for this block.", e)), t ? n[1] : "no-highlight";
|
|
7761
7761
|
}
|
|
7762
7762
|
return t.split(/\s+/).find((e) => u(e) || N(e));
|
|
7763
7763
|
}
|
|
7764
7764
|
function p(e, t, n) {
|
|
7765
7765
|
let r = "", i = "";
|
|
7766
|
-
typeof t == "object" ? (r = e, n = t.ignoreIllegals, i = t.language) : (
|
|
7766
|
+
typeof t == "object" ? (r = e, n = t.ignoreIllegals, i = t.language) : (me("10.7.0", "highlight(lang, code, ...args) has been deprecated."), me("10.7.0", "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), i = e, r = t), n === void 0 && (n = !0);
|
|
7767
7767
|
let a = {
|
|
7768
7768
|
code: r,
|
|
7769
7769
|
language: i
|
|
@@ -7893,7 +7893,7 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
7893
7893
|
return P += a, a.length;
|
|
7894
7894
|
}
|
|
7895
7895
|
let D = N(e);
|
|
7896
|
-
if (!D) throw
|
|
7896
|
+
if (!D) throw fe(s.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
|
|
7897
7897
|
let O = be(D), k = "", A = a || O, j = {}, M = new l.__emitter(l);
|
|
7898
7898
|
w();
|
|
7899
7899
|
let P = "", F = 0, I = 0, L = 0, R = !1;
|
|
@@ -8005,10 +8005,10 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
8005
8005
|
l = Ee(l, e);
|
|
8006
8006
|
}
|
|
8007
8007
|
let E = () => {
|
|
8008
|
-
k(),
|
|
8008
|
+
k(), me("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
8009
8009
|
};
|
|
8010
8010
|
function D() {
|
|
8011
|
-
k(),
|
|
8011
|
+
k(), me("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
8012
8012
|
}
|
|
8013
8013
|
let O = !1;
|
|
8014
8014
|
function k() {
|
|
@@ -8026,7 +8026,7 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
8026
8026
|
try {
|
|
8027
8027
|
i = r(e);
|
|
8028
8028
|
} catch (e) {
|
|
8029
|
-
if (
|
|
8029
|
+
if (fe("Language definition for '{}' could not be registered.".replace("{}", n)), o) fe(e);
|
|
8030
8030
|
else throw e;
|
|
8031
8031
|
i = c;
|
|
8032
8032
|
}
|
|
@@ -8072,7 +8072,7 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
8072
8072
|
});
|
|
8073
8073
|
}
|
|
8074
8074
|
function B(e) {
|
|
8075
|
-
return
|
|
8075
|
+
return me("10.7.0", "highlightBlock will be removed entirely in v12.0"), me("10.7.0", "Please use highlightElement now."), w(e);
|
|
8076
8076
|
}
|
|
8077
8077
|
Object.assign(e, {
|
|
8078
8078
|
highlight: p,
|
|
@@ -23904,7 +23904,7 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
23904
23904
|
end: />/,
|
|
23905
23905
|
keywords: "repeat each",
|
|
23906
23906
|
contains: [...a, re]
|
|
23907
|
-
},
|
|
23907
|
+
}, ie = {
|
|
23908
23908
|
begin: /\(/,
|
|
23909
23909
|
end: /\)/,
|
|
23910
23910
|
keywords: D,
|
|
@@ -23932,7 +23932,7 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
23932
23932
|
],
|
|
23933
23933
|
endsParent: !0,
|
|
23934
23934
|
illegal: /["']/
|
|
23935
|
-
},
|
|
23935
|
+
}, ae = {
|
|
23936
23936
|
match: [
|
|
23937
23937
|
/(func|macro)/,
|
|
23938
23938
|
/\s+/,
|
|
@@ -23944,20 +23944,20 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
23944
23944
|
},
|
|
23945
23945
|
contains: [
|
|
23946
23946
|
q,
|
|
23947
|
-
|
|
23947
|
+
ie,
|
|
23948
23948
|
t
|
|
23949
23949
|
],
|
|
23950
23950
|
illegal: [/\[/, /%/]
|
|
23951
|
-
},
|
|
23951
|
+
}, J = {
|
|
23952
23952
|
match: [/\b(?:subscript|init[?!]?)/, /\s*(?=[<(])/],
|
|
23953
23953
|
className: { 1: "keyword" },
|
|
23954
23954
|
contains: [
|
|
23955
23955
|
q,
|
|
23956
|
-
|
|
23956
|
+
ie,
|
|
23957
23957
|
t
|
|
23958
23958
|
],
|
|
23959
23959
|
illegal: /\[|%/
|
|
23960
|
-
},
|
|
23960
|
+
}, oe = {
|
|
23961
23961
|
match: [
|
|
23962
23962
|
/operator/,
|
|
23963
23963
|
/\s+/,
|
|
@@ -23967,7 +23967,7 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
23967
23967
|
1: "keyword",
|
|
23968
23968
|
3: "title"
|
|
23969
23969
|
}
|
|
23970
|
-
},
|
|
23970
|
+
}, se = {
|
|
23971
23971
|
begin: [
|
|
23972
23972
|
/precedencegroup/,
|
|
23973
23973
|
/\s+/,
|
|
@@ -23980,7 +23980,7 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
23980
23980
|
contains: [re],
|
|
23981
23981
|
keywords: [...p, ...f],
|
|
23982
23982
|
end: /}/
|
|
23983
|
-
},
|
|
23983
|
+
}, ce = {
|
|
23984
23984
|
match: [
|
|
23985
23985
|
/class\b/,
|
|
23986
23986
|
/\s+/,
|
|
@@ -23993,7 +23993,7 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
23993
23993
|
3: "keyword",
|
|
23994
23994
|
5: "title.function"
|
|
23995
23995
|
}
|
|
23996
|
-
},
|
|
23996
|
+
}, le = {
|
|
23997
23997
|
match: [
|
|
23998
23998
|
/class\b/,
|
|
23999
23999
|
/\s+/,
|
|
@@ -24003,7 +24003,7 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
24003
24003
|
1: "keyword",
|
|
24004
24004
|
3: "keyword"
|
|
24005
24005
|
}
|
|
24006
|
-
},
|
|
24006
|
+
}, ue = {
|
|
24007
24007
|
begin: [
|
|
24008
24008
|
/(struct|protocol|class|extension|enum|actor)/,
|
|
24009
24009
|
/\s+/,
|
|
@@ -24052,13 +24052,13 @@ var ki = Oi(), Ai = /* @__PURE__ */ n(((e, t) => {
|
|
|
24052
24052
|
keywords: D,
|
|
24053
24053
|
contains: [
|
|
24054
24054
|
...a,
|
|
24055
|
-
|
|
24056
|
-
|
|
24057
|
-
se,
|
|
24055
|
+
ae,
|
|
24056
|
+
J,
|
|
24058
24057
|
ce,
|
|
24059
24058
|
le,
|
|
24060
|
-
|
|
24059
|
+
ue,
|
|
24061
24060
|
oe,
|
|
24061
|
+
se,
|
|
24062
24062
|
{
|
|
24063
24063
|
beginKeywords: "import",
|
|
24064
24064
|
end: /$/,
|
|
@@ -26449,7 +26449,7 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
26449
26449
|
e && typeof e == "object" && (e.splitLine = { show: !1 });
|
|
26450
26450
|
});
|
|
26451
26451
|
}), n;
|
|
26452
|
-
},
|
|
26452
|
+
}, ie = () => {
|
|
26453
26453
|
n.value.forEach((e) => {
|
|
26454
26454
|
if (e.type !== "echarts") return;
|
|
26455
26455
|
let n = V.get(e.sort);
|
|
@@ -26502,23 +26502,23 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
26502
26502
|
};
|
|
26503
26503
|
r.setOption(q(i, e.option || {}), !0);
|
|
26504
26504
|
});
|
|
26505
|
-
},
|
|
26505
|
+
}, ae = () => {
|
|
26506
26506
|
H.forEach((e) => e.dispose()), H.clear();
|
|
26507
26507
|
};
|
|
26508
26508
|
v(() => {
|
|
26509
|
-
|
|
26509
|
+
ie(), window.addEventListener("resize", J);
|
|
26510
26510
|
}), y(() => {
|
|
26511
|
-
|
|
26511
|
+
ae(), window.removeEventListener("resize", J);
|
|
26512
26512
|
});
|
|
26513
|
-
let
|
|
26513
|
+
let J = () => {
|
|
26514
26514
|
H.forEach((e) => e.resize());
|
|
26515
26515
|
};
|
|
26516
26516
|
return D(() => t.message.thinkingStatus, (e) => {
|
|
26517
26517
|
e === "end" || e === "error" ? m.value = !0 : e === "thinking" && (m.value = !1);
|
|
26518
26518
|
}, { immediate: !0 }), D(() => t.message, () => {
|
|
26519
|
-
|
|
26519
|
+
ae(), setTimeout(ie, 0);
|
|
26520
26520
|
}, { deep: !0 }), D(h, (e) => {
|
|
26521
|
-
e && setTimeout(
|
|
26521
|
+
e && setTimeout(ie, 0);
|
|
26522
26522
|
}), (t, n) => (b(), l("div", { class: g(["AiChatResponse", `AiChatResponse--${e.theme}`]) }, [
|
|
26523
26523
|
d.value ? (b(), s(Ac, {
|
|
26524
26524
|
key: 0,
|
|
@@ -26772,13 +26772,7 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
26772
26772
|
type: Boolean,
|
|
26773
26773
|
default: !0
|
|
26774
26774
|
},
|
|
26775
|
-
mockData: {}
|
|
26776
|
-
mockLabelList: { default: [
|
|
26777
|
-
"查知识",
|
|
26778
|
-
"查数据",
|
|
26779
|
-
"查材料",
|
|
26780
|
-
"智能制作"
|
|
26781
|
-
] }
|
|
26775
|
+
mockData: {}
|
|
26782
26776
|
},
|
|
26783
26777
|
emits: [
|
|
26784
26778
|
"send",
|
|
@@ -26797,7 +26791,7 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
26797
26791
|
width: typeof a.width == "number" ? `${a.width}px` : a.width,
|
|
26798
26792
|
height: typeof a.height == "number" ? `${a.height}px` : a.height,
|
|
26799
26793
|
transform: `translate3d(${y.value}px, ${E.value}px, 0)`
|
|
26800
|
-
}), I = x(null), L = x(null), R = x(!1), z = x(""), B = x(a.defaultType), ee = x(""), V = x(!1), H = null, te = x(""), ne = new Zl(), U = "", W = x(a.appKey || ""), re = async () => {
|
|
26794
|
+
}), I = x(null), L = x(null), R = x(!1), z = x(""), B = x(a.defaultType), ee = x(""), V = x(!1), H = null, te = x(""), ne = new Zl(), U = "", W = x(a.appKey || ""), re = [], G = async () => {
|
|
26801
26795
|
if (!a.username || !a.password) return console.warn("[AiChat] 未配置 username/password,跳过登录"), a.appKey || "";
|
|
26802
26796
|
console.log("[AiChat] 正在登录...");
|
|
26803
26797
|
try {
|
|
@@ -26810,69 +26804,116 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
26810
26804
|
} catch (e) {
|
|
26811
26805
|
return console.error("[AiChat] 登录失败:", e), a.appKey || "";
|
|
26812
26806
|
}
|
|
26813
|
-
},
|
|
26814
|
-
let e =
|
|
26807
|
+
}, K = o(() => !!I.value || !!L.value || R.value), q = x(), ie = x(), ae = x(Xl), J = o(() => {
|
|
26808
|
+
let e = ae.value.categories || {};
|
|
26815
26809
|
return Object.keys(e).map((t) => ({
|
|
26816
26810
|
value: t,
|
|
26817
26811
|
label: e[t].label || t
|
|
26818
26812
|
}));
|
|
26819
|
-
}),
|
|
26820
|
-
D(
|
|
26813
|
+
}), oe = o(() => a.placeholder || "请输入你的问题…");
|
|
26814
|
+
D(J, (e) => {
|
|
26821
26815
|
e.length && !e.find((e) => e.value === B.value) && (B.value = e[0].value);
|
|
26822
26816
|
}, { immediate: !0 }), D(B, () => {
|
|
26823
|
-
|
|
26817
|
+
Oe();
|
|
26824
26818
|
});
|
|
26825
|
-
let
|
|
26819
|
+
let se = async () => {
|
|
26826
26820
|
if (te.value) return te.value;
|
|
26827
26821
|
let e = a.baseHttp.replace(/\/$/, ""), t = {};
|
|
26828
26822
|
W.value && (t["aiflowy-token"] = W.value);
|
|
26829
26823
|
let n = (await M.get(`${e}/userCenter/bot/generateConversationId`, { headers: t })).data, r = n?.data || n;
|
|
26830
26824
|
if (n?.errorCode !== void 0 && n?.errorCode !== 0) throw Error(n?.message || "生成会话ID失败");
|
|
26831
26825
|
return te.value = r || "", te.value;
|
|
26832
|
-
},
|
|
26826
|
+
}, ce = async () => {
|
|
26833
26827
|
let e = z.value.trim();
|
|
26834
26828
|
if (!(!e || R.value || V.value)) {
|
|
26835
26829
|
I.value = {
|
|
26836
26830
|
content: e,
|
|
26837
|
-
time:
|
|
26838
|
-
}, L.value = null, ee.value = "", U = "", z.value = "",
|
|
26831
|
+
time: Ae()
|
|
26832
|
+
}, L.value = null, ee.value = "", U = "", z.value = "", Oe(), R.value = !0, V.value = !1, await ke();
|
|
26839
26833
|
try {
|
|
26840
26834
|
if (a.request) {
|
|
26841
26835
|
let t = await a.request({
|
|
26842
26836
|
text: e,
|
|
26843
26837
|
type: B.value
|
|
26844
26838
|
}), n = t.blocks || [];
|
|
26845
|
-
a.stream &&
|
|
26839
|
+
a.stream && be(n) ? Ce(n) : a.stream && ye(n) ? we(n) : ve(t);
|
|
26846
26840
|
return;
|
|
26847
26841
|
}
|
|
26848
|
-
let t =
|
|
26849
|
-
if (
|
|
26850
|
-
let t =
|
|
26851
|
-
a.stream &&
|
|
26842
|
+
let t = J.value.find((e) => e.value === B.value)?.label || "";
|
|
26843
|
+
if (re?.includes(t) ?? !1) {
|
|
26844
|
+
let t = De(B.value, e);
|
|
26845
|
+
a.stream && be(t) ? Ce(t) : a.stream && ye(t) ? we(t) : ve({
|
|
26852
26846
|
type: B.value,
|
|
26853
26847
|
blocks: t
|
|
26854
26848
|
});
|
|
26855
26849
|
return;
|
|
26856
26850
|
}
|
|
26857
|
-
|
|
26858
|
-
|
|
26851
|
+
let n = a.ids?.[B.value]?.id || a.ids?.[t]?.id;
|
|
26852
|
+
if (n) {
|
|
26853
|
+
if (t === "智能制作") {
|
|
26854
|
+
await le(e, String(n));
|
|
26855
|
+
return;
|
|
26856
|
+
}
|
|
26857
|
+
console.log("[AiChat] 调用真实接口:", {
|
|
26858
|
+
typeLabel: t,
|
|
26859
|
+
currentType: B.value,
|
|
26860
|
+
botId: n
|
|
26861
|
+
}), await ue(e);
|
|
26859
26862
|
return;
|
|
26860
26863
|
}
|
|
26861
|
-
let
|
|
26862
|
-
a.stream &&
|
|
26864
|
+
let r = De(B.value, e);
|
|
26865
|
+
a.stream && be(r) ? Ce(r) : a.stream && ye(r) ? we(r) : ve({
|
|
26863
26866
|
type: B.value,
|
|
26864
|
-
blocks:
|
|
26867
|
+
blocks: r
|
|
26865
26868
|
});
|
|
26866
26869
|
} catch (e) {
|
|
26867
26870
|
R.value = !1, f("error", e);
|
|
26868
26871
|
} finally {
|
|
26869
|
-
V.value || (R.value = !1), await
|
|
26872
|
+
V.value || (R.value = !1), await ke();
|
|
26870
26873
|
}
|
|
26871
26874
|
}
|
|
26872
|
-
},
|
|
26875
|
+
}, le = async (e, t) => {
|
|
26876
|
+
R.value = !0, V.value = !1, L.value = {
|
|
26877
|
+
role: "ai",
|
|
26878
|
+
type: B.value,
|
|
26879
|
+
content: "",
|
|
26880
|
+
thinkingStatus: "thinking",
|
|
26881
|
+
tools: [],
|
|
26882
|
+
resources: [],
|
|
26883
|
+
time: Ae()
|
|
26884
|
+
};
|
|
26885
|
+
try {
|
|
26886
|
+
let t = await ht({
|
|
26887
|
+
appKey: a.appKey,
|
|
26888
|
+
appSalt: a.appSalt,
|
|
26889
|
+
id: a.ids.smartMake.id,
|
|
26890
|
+
variables: { newParam: e },
|
|
26891
|
+
baseHttp: `${a.baseHttp.replace(/\/$/, "")}/userCenter/workflow/runAsyncWorkFlow`,
|
|
26892
|
+
reqType: a.ids.smartMake.reqType,
|
|
26893
|
+
isFormData: a.ids.smartMake.isFormData
|
|
26894
|
+
});
|
|
26895
|
+
console.log("[AiChat] 智能制作工作流返回:", t);
|
|
26896
|
+
let n = t?.data?.result?.url, r = n ? n.split("/").pop() || n : "", i = n ? `[${r}](${n})` : "智能制作完成,但未获取到文件链接";
|
|
26897
|
+
L.value = {
|
|
26898
|
+
...L.value,
|
|
26899
|
+
content: i,
|
|
26900
|
+
thinkingStatus: "end",
|
|
26901
|
+
time: Ae()
|
|
26902
|
+
};
|
|
26903
|
+
} catch (e) {
|
|
26904
|
+
console.error("[AiChat] 智能制作工作流失败:", e), L.value = {
|
|
26905
|
+
...L.value,
|
|
26906
|
+
content: "智能制作请求失败,请稍后重试",
|
|
26907
|
+
thinkingStatus: "error",
|
|
26908
|
+
time: Ae()
|
|
26909
|
+
};
|
|
26910
|
+
} finally {
|
|
26911
|
+
R.value = !1;
|
|
26912
|
+
}
|
|
26913
|
+
}, ue = async (e) => {
|
|
26873
26914
|
let t = a.ids?.[B.value]?.id;
|
|
26874
26915
|
if (!t) throw Error(`当前类型「${B.value}」未配置 botId`);
|
|
26875
|
-
let n = await
|
|
26916
|
+
let n = await se();
|
|
26876
26917
|
if (!n) throw Error("会话ID为空");
|
|
26877
26918
|
V.value = !0, U = "";
|
|
26878
26919
|
let r = a.baseHttp.replace(/\/$/, ""), i = {
|
|
@@ -26888,14 +26929,14 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
26888
26929
|
thinkingStatus: "thinking",
|
|
26889
26930
|
tools: [],
|
|
26890
26931
|
resources: [],
|
|
26891
|
-
time:
|
|
26932
|
+
time: Ae()
|
|
26892
26933
|
}, ne.post(`${r}/userCenter/bot/chat`, i, {
|
|
26893
26934
|
headers: { "aiflowy-token": W.value || "" },
|
|
26894
|
-
onMessage:
|
|
26895
|
-
onError:
|
|
26896
|
-
onFinished:
|
|
26935
|
+
onMessage: de,
|
|
26936
|
+
onError: fe,
|
|
26937
|
+
onFinished: pe
|
|
26897
26938
|
});
|
|
26898
|
-
},
|
|
26939
|
+
}, de = (e) => {
|
|
26899
26940
|
if (!e.data) return;
|
|
26900
26941
|
let t;
|
|
26901
26942
|
try {
|
|
@@ -26905,30 +26946,30 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
26905
26946
|
}
|
|
26906
26947
|
let n = t?.payload?.delta;
|
|
26907
26948
|
if (e.event === "done") {
|
|
26908
|
-
|
|
26949
|
+
me();
|
|
26909
26950
|
return;
|
|
26910
26951
|
}
|
|
26911
26952
|
if (e.event === "error") {
|
|
26912
|
-
|
|
26953
|
+
Y({
|
|
26913
26954
|
content: t?.payload?.message || "未知错误",
|
|
26914
26955
|
thinkingStatus: "error"
|
|
26915
|
-
}),
|
|
26956
|
+
}), me();
|
|
26916
26957
|
return;
|
|
26917
26958
|
}
|
|
26918
26959
|
if (t?.domain === "RESOURCE") {
|
|
26919
26960
|
let e = Array.isArray(t.payload) ? t.payload : t.payload?.resources || [];
|
|
26920
|
-
e.length &&
|
|
26961
|
+
e.length && Y({ resources: [...L.value?.resources || [], ...e] });
|
|
26921
26962
|
return;
|
|
26922
26963
|
}
|
|
26923
26964
|
if (t?.domain === "AUDIO") {
|
|
26924
|
-
|
|
26965
|
+
Y({ audioUrl: t.payload?.audioUrl });
|
|
26925
26966
|
return;
|
|
26926
26967
|
}
|
|
26927
26968
|
if (t?.domain === "SYSTEM" && t.payload?.code === "SYSTEM_ERROR") {
|
|
26928
|
-
|
|
26969
|
+
Y({
|
|
26929
26970
|
content: t.payload.message,
|
|
26930
26971
|
thinkingStatus: "error"
|
|
26931
|
-
}),
|
|
26972
|
+
}), me();
|
|
26932
26973
|
return;
|
|
26933
26974
|
}
|
|
26934
26975
|
if (t?.domain === "TOOL") {
|
|
@@ -26940,12 +26981,12 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
26940
26981
|
arguments: t?.payload?.arguments,
|
|
26941
26982
|
result: t?.payload?.result
|
|
26942
26983
|
};
|
|
26943
|
-
r === -1 ? e.push(i) : e[r] = i,
|
|
26984
|
+
r === -1 ? e.push(i) : e[r] = i, Y({ tools: e });
|
|
26944
26985
|
return;
|
|
26945
26986
|
}
|
|
26946
26987
|
if (t?.domain === "WORKFLOW") {
|
|
26947
26988
|
if (t.type === "MESSAGE" && t.payload?.structuredData) {
|
|
26948
|
-
|
|
26989
|
+
Y({
|
|
26949
26990
|
thinkingStatus: "end",
|
|
26950
26991
|
content: t.payload?.content || "",
|
|
26951
26992
|
structuredData: t.payload.structuredData
|
|
@@ -26962,61 +27003,61 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
26962
27003
|
...e[n],
|
|
26963
27004
|
status: t?.type === "WORKFLOW_FINISHED" ? "success" : "calling",
|
|
26964
27005
|
rawStatus: t?.type
|
|
26965
|
-
},
|
|
27006
|
+
}, Y({ tools: e });
|
|
26966
27007
|
return;
|
|
26967
27008
|
}
|
|
26968
27009
|
if (t.type === "THINKING") {
|
|
26969
|
-
|
|
27010
|
+
Y({ reasoning_content: (L.value?.reasoning_content || "") + (n || "") });
|
|
26970
27011
|
return;
|
|
26971
27012
|
}
|
|
26972
27013
|
if (t.type === "MESSAGE") {
|
|
26973
27014
|
if (t.payload?.structuredData) {
|
|
26974
|
-
|
|
27015
|
+
Y({
|
|
26975
27016
|
content: t.payload?.content || U,
|
|
26976
27017
|
structuredData: t.payload.structuredData,
|
|
26977
27018
|
thinkingStatus: "end"
|
|
26978
27019
|
});
|
|
26979
27020
|
return;
|
|
26980
27021
|
}
|
|
26981
|
-
U += n || "",
|
|
27022
|
+
U += n || "", Y({ content: U });
|
|
26982
27023
|
}
|
|
26983
|
-
},
|
|
26984
|
-
console.error("SSE 错误:", e),
|
|
27024
|
+
}, fe = (e) => {
|
|
27025
|
+
console.error("SSE 错误:", e), Y({
|
|
26985
27026
|
thinkingStatus: "error",
|
|
26986
27027
|
content: U || "请求失败,请稍后重试"
|
|
26987
|
-
}),
|
|
26988
|
-
},
|
|
26989
|
-
|
|
26990
|
-
},
|
|
26991
|
-
V.value = !1, R.value = !1,
|
|
26992
|
-
},
|
|
27028
|
+
}), me(), f("error", e);
|
|
27029
|
+
}, pe = () => {
|
|
27030
|
+
me();
|
|
27031
|
+
}, me = () => {
|
|
27032
|
+
V.value = !1, R.value = !1, Y({ thinkingStatus: "end" }), ne.abort(), ke();
|
|
27033
|
+
}, Y = (e) => {
|
|
26993
27034
|
L.value && (L.value = {
|
|
26994
27035
|
...L.value,
|
|
26995
27036
|
...e,
|
|
26996
|
-
time:
|
|
26997
|
-
},
|
|
26998
|
-
},
|
|
26999
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(),
|
|
27000
|
-
},
|
|
27037
|
+
time: Ae()
|
|
27038
|
+
}, ke());
|
|
27039
|
+
}, he = (e) => {
|
|
27040
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), ce());
|
|
27041
|
+
}, ge = (e) => {
|
|
27001
27042
|
B.value = e, f("changeType", e);
|
|
27002
|
-
},
|
|
27043
|
+
}, _e = async () => {
|
|
27003
27044
|
if (!a.mockData) {
|
|
27004
|
-
|
|
27045
|
+
ae.value = Xl;
|
|
27005
27046
|
return;
|
|
27006
27047
|
}
|
|
27007
27048
|
if (typeof a.mockData == "string") try {
|
|
27008
|
-
|
|
27049
|
+
ae.value = await xt(a.mockData.startsWith("http") ? a.mockData : `${a.baseHttp}${a.mockData}`, !0) || Xl;
|
|
27009
27050
|
} catch (e) {
|
|
27010
|
-
f("error", e),
|
|
27051
|
+
f("error", e), ae.value = Xl;
|
|
27011
27052
|
}
|
|
27012
|
-
else
|
|
27053
|
+
else ae.value = a.mockData;
|
|
27013
27054
|
};
|
|
27014
27055
|
v(async () => {
|
|
27015
|
-
await
|
|
27016
|
-
}), D(() => a.mockData,
|
|
27056
|
+
await G(), _e();
|
|
27057
|
+
}), D(() => a.mockData, _e), D(() => a.appKey, (e) => {
|
|
27017
27058
|
W.value ||= e || "";
|
|
27018
27059
|
});
|
|
27019
|
-
let
|
|
27060
|
+
let ve = (e) => {
|
|
27020
27061
|
L.value = {
|
|
27021
27062
|
role: "ai",
|
|
27022
27063
|
type: e.type,
|
|
@@ -27025,9 +27066,9 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
27025
27066
|
resources: e.resources,
|
|
27026
27067
|
structuredData: e.structuredData,
|
|
27027
27068
|
thinkingStatus: "end",
|
|
27028
|
-
time:
|
|
27069
|
+
time: Ae()
|
|
27029
27070
|
};
|
|
27030
|
-
},
|
|
27071
|
+
}, ye = (e) => !!e?.some((e) => e.type === "markdown" || e.type === "text"), be = (e) => !!e?.some((e) => e.type === "thinking"), xe = (e) => e?.find((e) => e.type === "markdown" || e.type === "text")?.content || "", Se = (e) => {
|
|
27031
27072
|
if (e.type === "text" || e.type === "markdown") return e.content || "";
|
|
27032
27073
|
if (e.type === "table") {
|
|
27033
27074
|
let t = e.columns || [], n = e.data || [];
|
|
@@ -27038,11 +27079,11 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
27038
27079
|
].join("\n") : "";
|
|
27039
27080
|
}
|
|
27040
27081
|
return e.type === "image" ? `\n\n` : e.type === "echarts" ? "\n(图表已生成)\n" : "";
|
|
27041
|
-
},
|
|
27042
|
-
|
|
27082
|
+
}, Ce = (e) => {
|
|
27083
|
+
Ee(), V.value = !0, R.value = !0;
|
|
27043
27084
|
let t = e.find((e) => e.type === "thinking"), n = e.filter((e) => e.type !== "thinking"), r = t?.steps || [], i = [];
|
|
27044
27085
|
r.forEach((e) => {
|
|
27045
|
-
let t =
|
|
27086
|
+
let t = Se(e);
|
|
27046
27087
|
t && i.push(t);
|
|
27047
27088
|
});
|
|
27048
27089
|
let a = i.join("\n\n"), o = [], s = r.some((e) => e.type === "table" && e.columns?.some((e) => e.key === "stationNumber")), c = r.some((e) => e.type === "table" && e.columns?.some((e) => e.key === "rainfall1h")), l = n.some((e) => e.type === "file");
|
|
@@ -27068,7 +27109,7 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
27068
27109
|
thinkingStatus: "thinking",
|
|
27069
27110
|
tools: [...o],
|
|
27070
27111
|
blocks: n,
|
|
27071
|
-
time:
|
|
27112
|
+
time: Ae()
|
|
27072
27113
|
};
|
|
27073
27114
|
let m = 0, h = o.length ? "tools" : "thinking", g = 0, _ = (e, t, n) => {
|
|
27074
27115
|
if (m >= e.length) {
|
|
@@ -27080,12 +27121,12 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
27080
27121
|
t === "reasoning" ? L.value = {
|
|
27081
27122
|
...L.value,
|
|
27082
27123
|
reasoning_content: (L.value.reasoning_content || "") + i,
|
|
27083
|
-
time:
|
|
27124
|
+
time: Ae()
|
|
27084
27125
|
} : L.value = {
|
|
27085
27126
|
...L.value,
|
|
27086
27127
|
content: (L.value.content || "") + i,
|
|
27087
|
-
time:
|
|
27088
|
-
},
|
|
27128
|
+
time: Ae()
|
|
27129
|
+
}, ke();
|
|
27089
27130
|
let a = /[,。;:!?、,.;:!?]$/.test(i), o = Math.random() < .18, s = 50 + Math.floor(Math.random() * 70);
|
|
27090
27131
|
a && (s += 80 + Math.floor(Math.random() * 120)), o && (s += 200 + Math.floor(Math.random() * 300)), H = setTimeout(() => _(e, t, n), s);
|
|
27091
27132
|
}, v = () => {
|
|
@@ -27105,7 +27146,7 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
27105
27146
|
...e,
|
|
27106
27147
|
status: "success"
|
|
27107
27148
|
} : e)
|
|
27108
|
-
}, g++,
|
|
27149
|
+
}, g++, ke(), H = setTimeout(v, 400));
|
|
27109
27150
|
}, 600);
|
|
27110
27151
|
return;
|
|
27111
27152
|
}
|
|
@@ -27121,7 +27162,7 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
27121
27162
|
...L.value,
|
|
27122
27163
|
thinkingStatus: "end",
|
|
27123
27164
|
blocks: f.filter((e) => (e.sort || 99) < (d?.sort || 99)),
|
|
27124
|
-
time:
|
|
27165
|
+
time: Ae()
|
|
27125
27166
|
}, p ? _(p, "content", "done") : (h = "done", v());
|
|
27126
27167
|
return;
|
|
27127
27168
|
}
|
|
@@ -27130,24 +27171,24 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
27130
27171
|
thinkingStatus: "end",
|
|
27131
27172
|
content: L.value.content || p,
|
|
27132
27173
|
blocks: f,
|
|
27133
|
-
time:
|
|
27174
|
+
time: Ae()
|
|
27134
27175
|
};
|
|
27135
27176
|
}
|
|
27136
27177
|
};
|
|
27137
27178
|
H = setTimeout(v, 300);
|
|
27138
|
-
},
|
|
27139
|
-
let t =
|
|
27179
|
+
}, we = (e) => {
|
|
27180
|
+
let t = xe(e);
|
|
27140
27181
|
if (!t) {
|
|
27141
|
-
|
|
27182
|
+
ve({
|
|
27142
27183
|
type: B.value,
|
|
27143
27184
|
blocks: e
|
|
27144
27185
|
});
|
|
27145
27186
|
return;
|
|
27146
27187
|
}
|
|
27147
|
-
|
|
27188
|
+
Ee(), V.value = !0, R.value = !0, ee.value = "";
|
|
27148
27189
|
let n = 0, r = () => {
|
|
27149
27190
|
if (n >= t.length) {
|
|
27150
|
-
V.value = !1, R.value = !1,
|
|
27191
|
+
V.value = !1, R.value = !1, ve({
|
|
27151
27192
|
type: B.value,
|
|
27152
27193
|
blocks: e
|
|
27153
27194
|
});
|
|
@@ -27164,13 +27205,13 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
27164
27205
|
type: "markdown",
|
|
27165
27206
|
content: ee.value
|
|
27166
27207
|
}],
|
|
27167
|
-
time:
|
|
27168
|
-
},
|
|
27208
|
+
time: Ae()
|
|
27209
|
+
}, ke();
|
|
27169
27210
|
let o = /[,。;:!?、,.;:!?]$/.test(a), s = Math.random() < .18, c = 50 + Math.floor(Math.random() * 70);
|
|
27170
27211
|
o && (c += 80 + Math.floor(Math.random() * 120)), s && (c += 200 + Math.floor(Math.random() * 300)), H = setTimeout(r, c);
|
|
27171
27212
|
};
|
|
27172
27213
|
r();
|
|
27173
|
-
},
|
|
27214
|
+
}, Te = (e) => {
|
|
27174
27215
|
if (!L.value) L.value = {
|
|
27175
27216
|
role: "ai",
|
|
27176
27217
|
type: B.value,
|
|
@@ -27179,7 +27220,7 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
27179
27220
|
type: "markdown",
|
|
27180
27221
|
content: e
|
|
27181
27222
|
}],
|
|
27182
|
-
time:
|
|
27223
|
+
time: Ae()
|
|
27183
27224
|
};
|
|
27184
27225
|
else {
|
|
27185
27226
|
let t = L.value.blocks || [], n = t.find((e) => e.type === "markdown" || e.type === "text");
|
|
@@ -27192,40 +27233,40 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
27192
27233
|
blocks: [...t]
|
|
27193
27234
|
};
|
|
27194
27235
|
}
|
|
27195
|
-
|
|
27196
|
-
},
|
|
27236
|
+
ke();
|
|
27237
|
+
}, Ee = () => {
|
|
27197
27238
|
H &&= (clearTimeout(H), null);
|
|
27198
|
-
},
|
|
27199
|
-
let n =
|
|
27239
|
+
}, De = (e, t) => {
|
|
27240
|
+
let n = ae.value.categories?.[e];
|
|
27200
27241
|
if (!n) return [];
|
|
27201
27242
|
for (let e of n.responses) if (e.keywords && e.keywords.some((e) => t.includes(e))) return e.blocks;
|
|
27202
27243
|
let r = n.responses.find((e) => e.default);
|
|
27203
27244
|
return r ? r.blocks : n.responses[0]?.blocks || [];
|
|
27204
|
-
},
|
|
27205
|
-
let e =
|
|
27245
|
+
}, Oe = () => {
|
|
27246
|
+
let e = ie.value;
|
|
27206
27247
|
e && (e.style.height = "auto", e.style.height = `${Math.min(e.scrollHeight, 96)}px`);
|
|
27207
|
-
},
|
|
27248
|
+
}, ke = async () => {
|
|
27208
27249
|
await h();
|
|
27209
|
-
let e =
|
|
27250
|
+
let e = q.value;
|
|
27210
27251
|
e && (e.scrollTop = e.scrollHeight);
|
|
27211
|
-
},
|
|
27252
|
+
}, Ae = () => {
|
|
27212
27253
|
let e = /* @__PURE__ */ new Date();
|
|
27213
27254
|
return `${String(e.getHours()).padStart(2, "0")}:${String(e.getMinutes()).padStart(2, "0")}`;
|
|
27214
|
-
},
|
|
27215
|
-
|
|
27216
|
-
},
|
|
27217
|
-
|
|
27255
|
+
}, je = () => {
|
|
27256
|
+
Ee(), ne.abort(), I.value = null, L.value = null, R.value = !1, V.value = !1, ee.value = "", U = "", te.value = "";
|
|
27257
|
+
}, Me = () => {
|
|
27258
|
+
je(), m.value = !1, f("close");
|
|
27218
27259
|
};
|
|
27219
27260
|
return t({
|
|
27220
|
-
setResponse:
|
|
27261
|
+
setResponse: ve,
|
|
27221
27262
|
setLoading: (e) => {
|
|
27222
27263
|
R.value = e;
|
|
27223
27264
|
},
|
|
27224
|
-
appendStreamChunk:
|
|
27265
|
+
appendStreamChunk: Te,
|
|
27225
27266
|
setFullscreen: (e) => {
|
|
27226
27267
|
m.value = e;
|
|
27227
27268
|
},
|
|
27228
|
-
clear:
|
|
27269
|
+
clear: je
|
|
27229
27270
|
}), (t, n) => {
|
|
27230
27271
|
let a = r;
|
|
27231
27272
|
return b(), l("div", {
|
|
@@ -27251,14 +27292,14 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
27251
27292
|
fill: "currentColor"
|
|
27252
27293
|
}, [u("path", { d: "M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z" })], -1)]], 40, $l), u("button", {
|
|
27253
27294
|
class: "AiChat__headerBtn AiChat__headerBtn--close",
|
|
27254
|
-
onClick:
|
|
27295
|
+
onClick: Me,
|
|
27255
27296
|
onPointerdown: n[1] ||= A(() => {}, ["stop"]),
|
|
27256
27297
|
title: "关闭"
|
|
27257
27298
|
}, "× ", 32)])], 32)) : c("", !0),
|
|
27258
27299
|
m.value ? (b(), l("div", {
|
|
27259
27300
|
key: 1,
|
|
27260
27301
|
ref_key: "bodyRef",
|
|
27261
|
-
ref:
|
|
27302
|
+
ref: q,
|
|
27262
27303
|
class: "AiChat__body"
|
|
27263
27304
|
}, [I.value || L.value ? (b(), l(i, { key: 0 }, [I.value ? (b(), l("div", eu, [n[13] ||= u("div", { class: "AiChat__avatar AiChat__avatar--user" }, [u("svg", {
|
|
27264
27305
|
viewBox: "0 0 24 24",
|
|
@@ -27336,7 +27377,7 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
27336
27377
|
}), u("span", null, "导出")], -1)]]),
|
|
27337
27378
|
_: 1
|
|
27338
27379
|
})
|
|
27339
|
-
])) : c("", !0)])) : c("", !0)])])) : c("", !0)], 64)) : (b(), l("div", du, " 选择类型后输入问题,AI 将为你解答 "))], 512)) :
|
|
27380
|
+
])) : c("", !0)])) : c("", !0)])])) : c("", !0)], 64)) : (b(), l("div", du, " 选择类型后输入问题,AI 将为你解答 "))], 512)) : K.value ? (b(), l("div", fu, [u("header", {
|
|
27340
27381
|
class: "AiChat__contentHeader",
|
|
27341
27382
|
onPointerdown: n[5] ||= A((...e) => w(N) && w(N)(...e), ["prevent"])
|
|
27342
27383
|
}, [n[22] ||= u("div", { class: "AiChat__contentTitle" }, [u("svg", {
|
|
@@ -27357,11 +27398,11 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
27357
27398
|
}, [u("path", { d: "M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z" })], -1)]], 32), u("button", {
|
|
27358
27399
|
class: "AiChat__headerBtn AiChat__headerBtn--close",
|
|
27359
27400
|
title: "关闭",
|
|
27360
|
-
onClick:
|
|
27401
|
+
onClick: Me,
|
|
27361
27402
|
onPointerdown: n[4] ||= A(() => {}, ["stop"])
|
|
27362
27403
|
}, "× ", 32)])], 32), u("div", {
|
|
27363
27404
|
ref_key: "bodyRef",
|
|
27364
|
-
ref:
|
|
27405
|
+
ref: q,
|
|
27365
27406
|
class: "AiChat__contentPanel"
|
|
27366
27407
|
}, [I.value || L.value ? (b(), l(i, { key: 0 }, [I.value ? (b(), l("div", mu, [u("div", hu, [u("div", gu, C(I.value.content), 1), u("div", _u, C(I.value.time), 1)])])) : c("", !0), L.value || R.value ? (b(), l("div", vu, [u("div", yu, [u("div", bu, [L.value ? (b(), s(Yl, {
|
|
27367
27408
|
key: 0,
|
|
@@ -27436,22 +27477,22 @@ var fc = { class: "AiChatThinking__label" }, pc = {
|
|
|
27436
27477
|
}, [u("div", {
|
|
27437
27478
|
class: g(["AiChat__typeTabs", { "AiChat__typeTabs--fullscreen": m.value }]),
|
|
27438
27479
|
onPointerdown: n[6] ||= A(() => {}, ["stop"])
|
|
27439
|
-
}, [(b(!0), l(i, null, S(
|
|
27480
|
+
}, [(b(!0), l(i, null, S(J.value, (e, t) => (b(), l(i, { key: e.value }, [u("button", {
|
|
27440
27481
|
class: g(["AiChat__typeTab", { "AiChat__typeTab--active": B.value === e.value }]),
|
|
27441
|
-
onClick: (t) =>
|
|
27442
|
-
}, C(e.label), 11, Tu), t <
|
|
27482
|
+
onClick: (t) => ge(e.value)
|
|
27483
|
+
}, C(e.label), 11, Tu), t < J.value.length - 1 ? (b(), l("span", Eu)) : c("", !0)], 64))), 128))], 34), u("div", Du, [u("div", Ou, [k(u("input", {
|
|
27443
27484
|
ref_key: "textareaRef",
|
|
27444
|
-
ref:
|
|
27485
|
+
ref: ie,
|
|
27445
27486
|
"onUpdate:modelValue": n[7] ||= (e) => z.value = e,
|
|
27446
27487
|
class: "AiChat__textarea",
|
|
27447
|
-
placeholder:
|
|
27448
|
-
onKeydown:
|
|
27449
|
-
onInput:
|
|
27488
|
+
placeholder: oe.value,
|
|
27489
|
+
onKeydown: he,
|
|
27490
|
+
onInput: Oe,
|
|
27450
27491
|
onPointerdown: n[8] ||= A(() => {}, ["stop"])
|
|
27451
27492
|
}, null, 40, ku), [[T, z.value]])]), u("button", {
|
|
27452
27493
|
class: "AiChat__send",
|
|
27453
27494
|
disabled: !z.value.trim() || R.value || V.value,
|
|
27454
|
-
onClick:
|
|
27495
|
+
onClick: ce,
|
|
27455
27496
|
onPointerdown: n[9] ||= A(() => {}, ["stop"]),
|
|
27456
27497
|
title: "发送"
|
|
27457
27498
|
}, [...n[29] ||= [u("svg", {
|