nxd-plugin 1.7.80 → 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.
Files changed (82) hide show
  1. package/dist/chunks/{component-AiChat-CtsIvsGB.mjs → component-AiChat-C1xBPkS5.mjs} +312 -260
  2. package/dist/chunks/{component-AqiMonitor-D16SVL6m.mjs → component-AqiMonitor-DoAVs1Jf.mjs} +1 -1
  3. package/dist/chunks/{component-ChartCumulativePre-CXnKE427.mjs → component-ChartCumulativePre-BOIMPYxl.mjs} +2 -2
  4. package/dist/chunks/{component-ChartServiceMaterial-_cOa2zr2.mjs → component-ChartServiceMaterial-CmR3bmG_.mjs} +2 -2
  5. package/dist/chunks/{component-Duty-D0YruNKe.mjs → component-Duty-gmt7ZcSc.mjs} +2 -2
  6. package/dist/chunks/{component-EarlyWarningStatistic-CWzunUWV.mjs → component-EarlyWarningStatistic-BWYWrz65.mjs} +2 -2
  7. package/dist/chunks/component-Forecast72h-BZ1kB2TJ.mjs +427 -0
  8. package/dist/chunks/{component-GeologyLiveAlarm-CvwronHT.mjs → component-GeologyLiveAlarm-CNpQPmGs.mjs} +2 -2
  9. package/dist/chunks/component-HdHeatService-ok6q8UuG.mjs +412 -0
  10. package/dist/chunks/component-HdObservation-BmQdGJV6.mjs +600 -0
  11. package/dist/chunks/component-HdPreSituation-LBpO58bE.mjs +604 -0
  12. package/dist/chunks/component-HdRadarTime-D7hOn_ph.mjs +461 -0
  13. package/dist/chunks/component-HdSeaCase-DYPQ7CdN.mjs +219 -0
  14. package/dist/chunks/component-HdServiceRequirements-DcXrcIIV.mjs +143 -0
  15. package/dist/chunks/component-HdStationTem-US6IRwbQ.mjs +573 -0
  16. package/dist/chunks/{component-HighQuality-mh3fFFrU.mjs → component-HighQuality-B0OgPi3T.mjs} +3 -3
  17. package/dist/chunks/{component-HighWayEarlyWarningRed-bUwQzo1p.mjs → component-HighWayEarlyWarningRed-BTl2WWZ-.mjs} +907 -759
  18. package/dist/chunks/{component-HighWayFreeze-sv_B8HYz.mjs → component-HighWayFreeze-B1aMHQWU.mjs} +2 -2
  19. package/dist/chunks/{component-HighwayLiveAlarm-C5CT4pNH.mjs → component-HighwayLiveAlarm-8u45ZdnN.mjs} +2 -2
  20. package/dist/chunks/{component-HighwayLiveAlarmNew-DwM5R3uq.mjs → component-HighwayLiveAlarmNew-DK827eVk.mjs} +3 -3
  21. package/dist/chunks/{component-HighwayStations-DUpEnASL.mjs → component-HighwayStations-BzrbWP50.mjs} +2 -2
  22. package/dist/chunks/{component-HighwayWeatherForecast-DySnAsrW.mjs → component-HighwayWeatherForecast-DER5XGc3.mjs} +2 -2
  23. package/dist/chunks/{component-IframeWeb-ZChwSgDN.mjs → component-IframeWeb-DuBssYPk.mjs} +1 -1
  24. package/dist/chunks/{component-ImageGeneration-B17dWjVV.mjs → component-ImageGeneration-3G3j7utC.mjs} +1 -1
  25. package/dist/chunks/{component-IntroducePic-hpd3_zKO.mjs → component-IntroducePic-L8VH8Yq8.mjs} +1 -1
  26. package/dist/chunks/{component-LithiumBatteryMiningArea-BLx7FYWI.mjs → component-LithiumBatteryMiningArea-DSFTVepN.mjs} +2 -2
  27. package/dist/chunks/{component-MapPopup-BBY3WROQ.mjs → component-MapPopup-BNc18syw.mjs} +1 -1
  28. package/dist/chunks/{component-MaterialPreview-W3eNeSc0.mjs → component-MaterialPreview-DhLUbjcT.mjs} +2 -2
  29. package/dist/chunks/{component-PieLegend-YE4EI4RM.mjs → component-PieLegend-Haojhtet.mjs} +1 -1
  30. package/dist/chunks/component-PrecipitationRanking-BanKrD3J.mjs +608 -0
  31. package/dist/chunks/{component-RadarChart-BnaENnYS.mjs → component-RadarChart-BYMbkI3K.mjs} +2 -2
  32. package/dist/chunks/{component-RadarLegend-B_mzSJzM.mjs → component-RadarLegend-CiGsla7a.mjs} +1 -1
  33. package/dist/chunks/{component-RadarShortTerm-BGK_OnB2.mjs → component-RadarShortTerm-yPc2UWpz.mjs} +4 -4
  34. package/dist/chunks/{component-RadarTime-Bm7mOE3Z.mjs → component-RadarTime-CkqIaTJh.mjs} +2 -2
  35. package/dist/chunks/{component-RenderMarkdown-9GGS03jg.mjs → component-RenderMarkdown-D590sXEf.mjs} +2 -2
  36. package/dist/chunks/{component-ReservoirLiveAlarm-B9Sxhqyu.mjs → component-ReservoirLiveAlarm-DTtKdDQS.mjs} +3 -3
  37. package/dist/chunks/{component-ServiceMaterial-wVF-3Lpq.mjs → component-ServiceMaterial-BKbVQbKm.mjs} +2 -2
  38. package/dist/chunks/{component-ServiceMaterialsBtn-DXbl0E-k.mjs → component-ServiceMaterialsBtn-CskK-Qiz.mjs} +1 -1
  39. package/dist/chunks/component-StationDialog-Bn7Fbk24.mjs +897 -0
  40. package/dist/chunks/component-StationList-DRABlFdc.mjs +323 -0
  41. package/dist/chunks/{component-TimeBasedForecast-Cqb98MyV.mjs → component-TimeBasedForecast-D1fJ4rGJ.mjs} +4 -4
  42. package/dist/chunks/{component-WarningLine-DWxDqXz4.mjs → component-WarningLine-jN8sg45u.mjs} +2 -2
  43. package/dist/chunks/{component-WarningSignal-C6bMbzAR.mjs → component-WarningSignal-BkIKqyJB.mjs} +3 -3
  44. package/dist/chunks/component-WeatherForecast-CYsbJhYt.mjs +225 -0
  45. package/dist/chunks/{component-YCDataMonitor-CdjR4SD9.mjs → component-YCDataMonitor-vVlnkSzT.mjs} +2 -2
  46. package/dist/chunks/{component-YCDataService-BVgkmLN8.mjs → component-YCDataService-okkY1-iU.mjs} +4 -4
  47. package/dist/chunks/{component-YCHome-DoRcqj79.mjs → component-YCHome-BfpbxDIg.mjs} +4 -4
  48. package/dist/chunks/{component-YCHomeLegend-_Iq4kWV6.mjs → component-YCHomeLegend-CuT-BwNJ.mjs} +1 -1
  49. package/dist/chunks/{component-YCLoginNew-CA6LbHIs.mjs → component-YCLoginNew-KZoyW1EV.mjs} +3 -3
  50. package/dist/components/Forecast72h/Forecast72h.vue.d.ts +50 -0
  51. package/dist/components/HdHeatService/HdHeatService.vue.d.ts +56 -0
  52. package/dist/components/HdObservation/HdObservation.vue.d.ts +43 -0
  53. package/dist/components/HdPreSituation/HdPreSituation.vue.d.ts +62 -0
  54. package/dist/components/HdQxServiceEffects/HdQxServiceEffects.vue.d.ts +59 -0
  55. package/dist/components/HdRadarTime/HdRadarTime.vue.d.ts +71 -0
  56. package/dist/components/HdSeaCase/HdSeaCase.vue.d.ts +46 -0
  57. package/dist/components/HdServiceRequirements/HdServiceRequirements.vue.d.ts +51 -0
  58. package/dist/components/HdStationTem/HdStationTem.vue.d.ts +69 -0
  59. package/dist/components/HighWayEarlyWarningRed/Call.vue.d.ts +18 -0
  60. package/dist/components/HighWayEarlyWarningRed/HighWayEarlyWarningRed.vue.d.ts +5 -0
  61. package/dist/components/PrecipitationRanking/PrecipitationRanking.vue.d.ts +57 -0
  62. package/dist/components/StationDialog/StationDialog.vue.d.ts +90 -0
  63. package/dist/components/StationList/StationList.vue.d.ts +64 -0
  64. package/dist/index.d.ts +13 -1
  65. package/dist/nxd-plugin.mjs +51 -40
  66. package/dist/styles/component-Forecast72h.css +1 -0
  67. package/dist/styles/component-HdHeatService.css +1 -0
  68. package/dist/styles/component-HdObservation.css +1 -0
  69. package/dist/styles/component-HdPreSituation.css +1 -0
  70. package/dist/styles/component-HdRadarTime.css +1 -0
  71. package/dist/styles/component-HdSeaCase.css +1 -0
  72. package/dist/styles/component-HdServiceRequirements.css +1 -0
  73. package/dist/styles/component-HdStationTem.css +1 -0
  74. package/dist/styles/component-HighQuality.css +1 -1
  75. package/dist/styles/component-HighWayEarlyWarningRed.css +1 -1
  76. package/dist/styles/component-PrecipitationRanking.css +1 -0
  77. package/dist/styles/component-StationDialog.css +1 -0
  78. package/dist/styles/component-StationList.css +1 -0
  79. package/dist/styles/component-WeatherForecast.css +1 -1
  80. package/dist/styles/component-YCLoginNew.css +1 -1
  81. package/package.json +2 -1
  82. package/dist/chunks/component-WeatherForecast-EqHxKbyh.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, J = (K >>> 1 | q << 31) ^ (K >>> 8 | q << 24) ^ K >>> 7, ie = (q >>> 1 | K << 31) ^ (q >>> 8 | K << 24) ^ (q >>> 7 | K << 25), Y = l[ne - 2], ae = Y.high, oe = Y.low, se = (ae >>> 19 | oe << 13) ^ (ae << 3 | oe >>> 29) ^ ae >>> 6, ce = (oe >>> 19 | ae << 13) ^ (oe << 3 | ae >>> 29) ^ (oe >>> 6 | ae << 26), le = l[ne - 7], ue = le.high, de = le.low, fe = l[ne - 16], pe = fe.high, me = fe.low;
614
- U = ie + de, W = J + ue + (U >>> 0 < ie >>> 0 ? 1 : 0), U += ce, W = W + se + (U >>> 0 < ce >>> 0 ? 1 : 0), U += me, W = W + pe + (U >>> 0 < me >>> 0 ? 1 : 0), re.high = W, re.low = 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
- })), J = /* @__PURE__ */ n(((e, t) => {
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
- })), ie = /* @__PURE__ */ n(((e, t) => {
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
- })), Y = /* @__PURE__ */ n(((e, t) => {
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
- })), ae = /* @__PURE__ */ n(((e, t) => {
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
- })), oe = /* @__PURE__ */ n(((e, t) => {
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
- })), se = /* @__PURE__ */ n(((e, t) => {
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
- })), ce = /* @__PURE__ */ n(((e, t) => {
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
- })), le = /* @__PURE__ */ n(((e, t) => {
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
- })), ue = /* @__PURE__ */ n(((e, t) => {
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
- })), de = /* @__PURE__ */ n(((e, t) => {
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
- })), fe = /* @__PURE__ */ n(((e, t) => {
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
- })), pe = /* @__PURE__ */ n(((e, t) => {
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
- })), me = /* @__PURE__ */ n(((e, t) => {
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(), J(), ie(), Y(), ae(), oe(), se(), ce(), le(), ue(), de(), fe(), pe(), me(), 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);
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 (ie(s, "quoteStyle") && !ie(R, s.quoteStyle)) throw TypeError("option \"quoteStyle\" must be \"single\" or \"double\"");
3728
- if (ie(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 = ie(s, "customInspect") ? s.customInspect : !0;
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 (ie(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 (ie(s, "numericSeparator") && typeof s.numericSeparator != "boolean") throw TypeError("option \"numericSeparator\", if provided, must be `true` or `false`");
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 pe(t, s);
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 (oe(o, t) >= 0) return "[Circular]";
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 ie(s, "quoteStyle") && (a.quoteStyle = s.quoteStyle), e(t, a, r + 1, o);
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 = ae(t), T = xe(t, y);
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 (fe(t)) {
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 J = 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), J), ", ") + " }" : J.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + C.call(J, ", ") + " }";
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 (se(t)) {
3785
- var me = [];
3784
+ if (ce(t)) {
3785
+ var Y = [];
3786
3786
  return a && a.call(t, function(e, n) {
3787
- me.push(y(n, t, !0) + " => " + y(e, t));
3788
- }), _e("Map", i.call(t), me, g);
3787
+ Y.push(y(n, t, !0) + " => " + y(e, t));
3788
+ }), _e("Map", i.call(t), Y, g);
3789
3789
  }
3790
- if (ue(t)) {
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 (ce(t)) return ge("WeakMap");
3797
- if (de(t)) return ge("WeakSet");
3798
- if (le(t)) return ge("WeakRef");
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(Y(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 || []), ": ") + "] " : "");
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 Y(e) === "[object Array]" && V(e);
3822
+ return J(e) === "[object Array]" && V(e);
3823
3823
  }
3824
3824
  function te(e) {
3825
- return Y(e) === "[object Date]" && V(e);
3825
+ return J(e) === "[object Date]" && V(e);
3826
3826
  }
3827
3827
  function ne(e) {
3828
- return Y(e) === "[object RegExp]" && V(e);
3828
+ return J(e) === "[object RegExp]" && V(e);
3829
3829
  }
3830
3830
  function U(e) {
3831
- return Y(e) === "[object Error]" && V(e);
3831
+ return J(e) === "[object Error]" && V(e);
3832
3832
  }
3833
3833
  function W(e) {
3834
- return Y(e) === "[object String]" && V(e);
3834
+ return J(e) === "[object String]" && V(e);
3835
3835
  }
3836
3836
  function re(e) {
3837
- return Y(e) === "[object Number]" && V(e);
3837
+ return J(e) === "[object Number]" && V(e);
3838
3838
  }
3839
3839
  function G(e) {
3840
- return Y(e) === "[object Boolean]" && V(e);
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 J = Object.prototype.hasOwnProperty || function(e) {
3858
+ var ie = Object.prototype.hasOwnProperty || function(e) {
3859
3859
  return e in this;
3860
3860
  };
3861
- function ie(e, t) {
3862
- return J.call(e, t);
3861
+ function ae(e, t) {
3862
+ return ie.call(e, t);
3863
3863
  }
3864
- function Y(e) {
3864
+ function J(e) {
3865
3865
  return m.call(e);
3866
3866
  }
3867
- function ae(e) {
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 oe(e, t) {
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 se(e) {
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 ce(e) {
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 le(e) {
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 ue(e) {
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 de(e) {
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 fe(e) {
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 pe(e, t) {
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 pe(_.call(e, 0, t.maxStringLength), t) + r;
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, me), "single", t);
3945
+ return i.lastIndex = 0, B(v.call(v.call(e, i, "\\$1"), /[\x00-\x1f]/g, Y), "single", t);
3946
3946
  }
3947
- function me(e) {
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 (oe(e[t], "\n") >= 0) return !1;
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] = ie(e, i) ? t(e[i], e) : "";
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) ie(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))));
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
- })), J = null, ie = null, Y = Object.seal(xr(null, {
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
- })), ae = !0, oe = !0, se = !1, ce = !0, le = !1, ue = !0, de = !1, fe = !1, pe = null, me = 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 = $({}, [
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 }), J = Di(e, "FORBID_TAGS", Jr({}), { transform: X }), ie = 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, ae = e.ALLOW_ARIA_ATTR !== !1, oe = e.ALLOW_DATA_ATTR !== !1, se = e.ALLOW_UNKNOWN_PROTOCOLS || !1, ce = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, le = e.SAFE_FOR_TEMPLATES || !1, ue = e.SAFE_FOR_XML !== !1, de = 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);
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), le && (oe = !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))), Y.tagCheck = null, Y.attributeCheck = null, Vr(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? Y.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" ? Y.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), de && $(W, [
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 J.tbody), e.TRUSTED_TYPES_POLICY) {
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 (!ue) return;
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, de ? "html" : "body")[0] : de ? t.documentElement : a;
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 !!(ue && e.hasChildNodes() && !pt(e.firstElementChild) && Ur(yi, e.textContent) && Ur(yi, e.innerHTML) || ue && e.namespaceURI === Ne && t === "style" && pt(e.firstElementChild) || e.nodeType === Ci.processingInstruction || ue && e.nodeType === Ci.comment && Ur(bi, e.data));
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 (!J[t] && xt(t) && (q.tagNameCheck instanceof RegExp && Ur(q.tagNameCheck, t) || q.tagNameCheck instanceof Function && q.tagNameCheck(t))) return !1;
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, pe), mt(L.uponSanitizeElement, e, {
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 (J[r] || !(Y.tagCheck instanceof Function && Y.tagCheck(r)) && !W[r]) {
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 (le && e.nodeType === Ci.text) {
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 (ie[t] || ue && t === "patchsrc" || ue && t === "for" && e !== "label" && e !== "output" || ye && (t === "id" || t === "name") && (r in n || r in Ke)) return !1;
7091
- let i = G[t] || Y.attributeCheck instanceof Function && Y.attributeCheck(t, e);
7092
- if (!(oe && Ur(ee, t)) && !(ae && Ur(V, t))) {
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]) && !(se && !Ur(H, Pr(r, te, ""))) && 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]) && !(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, me);
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), ue && Ur(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, 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 (!ce && Ur(Si, d)) {
7148
+ if (!le && Ur(Si, d)) {
7149
7149
  rt(o, e);
7150
7150
  continue;
7151
7151
  }
7152
- if (le && (d = lt(d)), !yt(i, l, d)) {
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
- fe ? (W = pe, G = me) : Je(n), (L.uponSanitizeElement.length > 0 || L.uponSanitizeAttribute.length > 0) && (W = Jr(W)), L.uponSanitizeAttribute.length > 0 && (G = Jr(G)), t.removed = [];
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] || J[n]) throw nt(e), Wr("root node is forbidden and cannot be sanitized in-place");
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 && !le && !de && e.indexOf("<") === -1) return S && ve ? O(e) : e;
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
- }), le && ut(e), e;
7241
+ }), ue && ut(e), e;
7242
7242
  if (ge) {
7243
- if (le && ut(i), _e) for (s = P.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
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 = de ? i.outerHTML : i.innerHTML;
7248
- return de && 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), le && (u = lt(u)), S && ve ? O(u) : u;
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] : {}), fe = !0, pe = W, me = G;
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, fe = !1, pe = null, me = null, S = w, C = "";
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 J(e, t) {
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 ie(e, t) {
7567
+ function ae(e, t) {
7568
7568
  e.relevance === void 0 && (e.relevance = 1);
7569
7569
  }
7570
- var Y = (e, t) => {
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
- }, ae = [
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
- ], oe = "keyword";
7593
- function se(e, t, n = oe) {
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, se(e[n], t, n));
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, ce(n[0], n[1])];
7601
+ r[n[0]] = [e, le(n[0], n[1])];
7602
7602
  });
7603
7603
  }
7604
7604
  }
7605
- function ce(e, t) {
7606
- return t ? Number(t) : le(e) ? 0 : 1;
7605
+ function le(e, t) {
7606
+ return t ? Number(t) : ue(e) ? 0 : 1;
7607
7607
  }
7608
- function le(e) {
7609
- return ae.includes(e.toLowerCase());
7608
+ function ue(e) {
7609
+ return oe.includes(e.toLowerCase());
7610
7610
  }
7611
- var ue = {}, de = (e) => {
7611
+ var de = {}, fe = (e) => {
7612
7612
  console.error(e);
7613
- }, fe = (e, ...t) => {
7613
+ }, pe = (e, ...t) => {
7614
7614
  console.log(`WARN: ${e}`, ...t);
7615
- }, pe = (e, t) => {
7616
- ue[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), ue[`${e}/${t}`] = !0);
7617
- }, me = /* @__PURE__ */ Error();
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 de("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), me;
7626
- if (typeof e.beginScope != "object" || e.beginScope === null) throw de("beginScope must be object"), me;
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 de("skip, excludeEnd, returnEnd not compatible with endScope: {}"), me;
7633
- if (typeof e.endScope != "object" || e.endScope === null) throw de("endScope must be object"), me;
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
- J,
7706
+ ie,
7707
7707
  ye,
7708
- Y
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
- ie
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 &&= se(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) {
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 || (fe(s.replace("{}", n[1])), fe("Falling back to no-highlight mode for this block.", e)), t ? n[1] : "no-highlight";
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) : (pe("10.7.0", "highlight(lang, code, ...args) has been deprecated."), pe("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);
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 de(s.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
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(), pe("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
8008
+ k(), me("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
8009
8009
  };
8010
8010
  function D() {
8011
- k(), pe("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
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 (de("Language definition for '{}' could not be registered.".replace("{}", n)), o) de(e);
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 pe("10.7.0", "highlightBlock will be removed entirely in v12.0"), pe("10.7.0", "Please use highlightElement now."), w(e);
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
- }, J = {
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
- }, ie = {
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
- J,
23947
+ ie,
23948
23948
  t
23949
23949
  ],
23950
23950
  illegal: [/\[/, /%/]
23951
- }, Y = {
23951
+ }, J = {
23952
23952
  match: [/\b(?:subscript|init[?!]?)/, /\s*(?=[<(])/],
23953
23953
  className: { 1: "keyword" },
23954
23954
  contains: [
23955
23955
  q,
23956
- J,
23956
+ ie,
23957
23957
  t
23958
23958
  ],
23959
23959
  illegal: /\[|%/
23960
- }, ae = {
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
- }, oe = {
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
- }, se = {
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
- }, ce = {
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
- }, le = {
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
- ie,
24056
- Y,
24057
- se,
24055
+ ae,
24056
+ J,
24058
24057
  ce,
24059
24058
  le,
24060
- ae,
24059
+ ue,
24061
24060
  oe,
24061
+ se,
24062
24062
  {
24063
24063
  beginKeywords: "import",
24064
24064
  end: /$/,
@@ -26112,7 +26112,7 @@ var fc = { class: "AiChatThinking__label" }, pc = {
26112
26112
  D(() => n.status, (e) => {
26113
26113
  (e === "end" || e === "error") && r("complete");
26114
26114
  }, { immediate: !0 });
26115
- let s = o(() => n.reasoning_content?.trim().length > 0 || n.steps.length > 0 || n.tools.length > 0 || n.status === "thinking" || n.status === "end"), d = o(() => n.status === "error" ? "思考异常" : n.status === "end" ? "思考完成" : "思考中...");
26115
+ let s = o(() => n.reasoning_content?.trim().length > 0 || n.steps.length > 0 || n.tools.length > 0 || n.status === "thinking"), d = o(() => n.status === "error" ? "思考异常" : n.status === "end" ? "思考完成" : "思考中...");
26116
26116
  o(() => n.tools.some((e) => e.status === "thinking" || e.status === "calling"));
26117
26117
  let p = (e) => e.status === "calling" ? "调用中..." : e.status === "success" ? "调用成功" : e.status === "error" ? "调用失败" : "", m = (e) => e === "text" || e === "markdown", h = (e) => e ? /^(https?:)?\/\//i.test(e) || e.startsWith("data:") || !n.baseHttp ? e : n.baseHttp.replace(/\/$/, "") + (e.startsWith("/") ? e : `/${e}`) : "", _ = () => {
26118
26118
  a.value = !a.value;
@@ -26383,7 +26383,7 @@ var fc = { class: "AiChatThinking__label" }, pc = {
26383
26383
  baseHttp: { default: "" }
26384
26384
  },
26385
26385
  setup(e) {
26386
- let t = e, n = o(() => [...t.message.blocks || []].sort((e, t) => e.sort - t.sort)), r = o(() => n.value.filter((e) => e.type === "thinking")), d = o(() => !!t.message.reasoning_content?.trim() || (t.message.tools?.length ?? 0) > 0 || r.value.length > 0 || t.message.thinkingStatus === "thinking" || t.message.thinkingStatus === "end"), f = o(() => {
26386
+ let t = e, n = o(() => [...t.message.blocks || []].sort((e, t) => e.sort - t.sort)), r = o(() => n.value.filter((e) => e.type === "thinking")), d = o(() => !!t.message.reasoning_content?.trim() || (t.message.tools?.length ?? 0) > 0 || r.value.length > 0 || t.message.thinkingStatus === "thinking"), f = o(() => {
26387
26387
  let e = r.value[0];
26388
26388
  return !e || !e.steps || !e.steps.length ? [] : e.steps;
26389
26389
  }), m = x(!d.value), h = o(() => !d.value || m.value), _ = o(() => n.value.filter((e) => e.type !== "thinking")), T = o(() => !!t.message.content?.trim()), M = o(() => (t.message.resources?.length ?? 0) > 0), N = o(() => !!t.message.audioUrl), P = o(() => {
@@ -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
- }, J = () => {
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
- }, ie = () => {
26505
+ }, ae = () => {
26506
26506
  H.forEach((e) => e.dispose()), H.clear();
26507
26507
  };
26508
26508
  v(() => {
26509
- J(), window.addEventListener("resize", Y);
26509
+ ie(), window.addEventListener("resize", J);
26510
26510
  }), y(() => {
26511
- ie(), window.removeEventListener("resize", Y);
26511
+ ae(), window.removeEventListener("resize", J);
26512
26512
  });
26513
- let Y = () => {
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
- ie(), setTimeout(J, 0);
26519
+ ae(), setTimeout(ie, 0);
26520
26520
  }, { deep: !0 }), D(h, (e) => {
26521
- e && setTimeout(J, 0);
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,
@@ -26791,7 +26791,7 @@ var fc = { class: "AiChatThinking__label" }, pc = {
26791
26791
  width: typeof a.width == "number" ? `${a.width}px` : a.width,
26792
26792
  height: typeof a.height == "number" ? `${a.height}px` : a.height,
26793
26793
  transform: `translate3d(${y.value}px, ${E.value}px, 0)`
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 = 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 () => {
26795
26795
  if (!a.username || !a.password) return console.warn("[AiChat] 未配置 username/password,跳过登录"), a.appKey || "";
26796
26796
  console.log("[AiChat] 正在登录...");
26797
26797
  try {
@@ -26804,64 +26804,116 @@ var fc = { class: "AiChatThinking__label" }, pc = {
26804
26804
  } catch (e) {
26805
26805
  return console.error("[AiChat] 登录失败:", e), a.appKey || "";
26806
26806
  }
26807
- }, G = o(() => !!I.value || !!L.value || R.value), K = x(), q = x(), J = x(Xl), ie = o(() => {
26808
- let e = J.value.categories || {};
26807
+ }, K = o(() => !!I.value || !!L.value || R.value), q = x(), ie = x(), ae = x(Xl), J = o(() => {
26808
+ let e = ae.value.categories || {};
26809
26809
  return Object.keys(e).map((t) => ({
26810
26810
  value: t,
26811
26811
  label: e[t].label || t
26812
26812
  }));
26813
- }), Y = o(() => a.placeholder || "请输入你的问题…");
26814
- D(ie, (e) => {
26813
+ }), oe = o(() => a.placeholder || "请输入你的问题…");
26814
+ D(J, (e) => {
26815
26815
  e.length && !e.find((e) => e.value === B.value) && (B.value = e[0].value);
26816
26816
  }, { immediate: !0 }), D(B, () => {
26817
- Ee();
26817
+ Oe();
26818
26818
  });
26819
- let ae = async () => {
26819
+ let se = async () => {
26820
26820
  if (te.value) return te.value;
26821
26821
  let e = a.baseHttp.replace(/\/$/, ""), t = {};
26822
26822
  W.value && (t["aiflowy-token"] = W.value);
26823
26823
  let n = (await M.get(`${e}/userCenter/bot/generateConversationId`, { headers: t })).data, r = n?.data || n;
26824
26824
  if (n?.errorCode !== void 0 && n?.errorCode !== 0) throw Error(n?.message || "生成会话ID失败");
26825
26825
  return te.value = r || "", te.value;
26826
- }, oe = async () => {
26826
+ }, ce = async () => {
26827
26827
  let e = z.value.trim();
26828
26828
  if (!(!e || R.value || V.value)) {
26829
26829
  I.value = {
26830
26830
  content: e,
26831
- time: Oe()
26832
- }, L.value = null, ee.value = "", U = "", z.value = "", Ee(), R.value = !0, V.value = !1, await De();
26831
+ time: Ae()
26832
+ }, L.value = null, ee.value = "", U = "", z.value = "", Oe(), R.value = !0, V.value = !1, await ke();
26833
26833
  try {
26834
26834
  if (a.request) {
26835
26835
  let t = await a.request({
26836
26836
  text: e,
26837
26837
  type: B.value
26838
26838
  }), n = t.blocks || [];
26839
- a.stream && ve(n) ? xe(n) : a.stream && _e(n) ? Se(n) : ge(t);
26840
- return;
26841
- }
26842
- let t = ie.value.find((e) => e.value === B.value)?.label || "";
26843
- if (a.ids?.[B.value]?.id || a.ids?.[t]?.id) {
26844
- await se(e);
26839
+ a.stream && be(n) ? Ce(n) : a.stream && ye(n) ? we(n) : ve(t);
26845
26840
  return;
26846
26841
  }
26847
- if (a.mock) {
26848
- let t = Te(B.value, e);
26849
- a.stream && ve(t) ? xe(t) : a.stream && _e(t) ? Se(t) : ge({
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({
26850
26846
  type: B.value,
26851
26847
  blocks: t
26852
26848
  });
26853
26849
  return;
26854
26850
  }
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);
26862
+ return;
26863
+ }
26864
+ let r = De(B.value, e);
26865
+ a.stream && be(r) ? Ce(r) : a.stream && ye(r) ? we(r) : ve({
26866
+ type: B.value,
26867
+ blocks: r
26868
+ });
26855
26869
  } catch (e) {
26856
26870
  R.value = !1, f("error", e);
26857
26871
  } finally {
26858
- V.value || (R.value = !1), await De();
26872
+ V.value || (R.value = !1), await ke();
26859
26873
  }
26860
26874
  }
26861
- }, se = async (e) => {
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) => {
26862
26914
  let t = a.ids?.[B.value]?.id;
26863
26915
  if (!t) throw Error(`当前类型「${B.value}」未配置 botId`);
26864
- let n = await ae();
26916
+ let n = await se();
26865
26917
  if (!n) throw Error("会话ID为空");
26866
26918
  V.value = !0, U = "";
26867
26919
  let r = a.baseHttp.replace(/\/$/, ""), i = {
@@ -26877,14 +26929,14 @@ var fc = { class: "AiChatThinking__label" }, pc = {
26877
26929
  thinkingStatus: "thinking",
26878
26930
  tools: [],
26879
26931
  resources: [],
26880
- time: Oe()
26932
+ time: Ae()
26881
26933
  }, ne.post(`${r}/userCenter/bot/chat`, i, {
26882
26934
  headers: { "aiflowy-token": W.value || "" },
26883
- onMessage: ce,
26884
- onError: le,
26885
- onFinished: ue
26935
+ onMessage: de,
26936
+ onError: fe,
26937
+ onFinished: pe
26886
26938
  });
26887
- }, ce = (e) => {
26939
+ }, de = (e) => {
26888
26940
  if (!e.data) return;
26889
26941
  let t;
26890
26942
  try {
@@ -26894,30 +26946,30 @@ var fc = { class: "AiChatThinking__label" }, pc = {
26894
26946
  }
26895
26947
  let n = t?.payload?.delta;
26896
26948
  if (e.event === "done") {
26897
- de();
26949
+ me();
26898
26950
  return;
26899
26951
  }
26900
26952
  if (e.event === "error") {
26901
- fe({
26953
+ Y({
26902
26954
  content: t?.payload?.message || "未知错误",
26903
26955
  thinkingStatus: "error"
26904
- }), de();
26956
+ }), me();
26905
26957
  return;
26906
26958
  }
26907
26959
  if (t?.domain === "RESOURCE") {
26908
26960
  let e = Array.isArray(t.payload) ? t.payload : t.payload?.resources || [];
26909
- e.length && fe({ resources: [...L.value?.resources || [], ...e] });
26961
+ e.length && Y({ resources: [...L.value?.resources || [], ...e] });
26910
26962
  return;
26911
26963
  }
26912
26964
  if (t?.domain === "AUDIO") {
26913
- fe({ audioUrl: t.payload?.audioUrl });
26965
+ Y({ audioUrl: t.payload?.audioUrl });
26914
26966
  return;
26915
26967
  }
26916
26968
  if (t?.domain === "SYSTEM" && t.payload?.code === "SYSTEM_ERROR") {
26917
- fe({
26969
+ Y({
26918
26970
  content: t.payload.message,
26919
26971
  thinkingStatus: "error"
26920
- }), de();
26972
+ }), me();
26921
26973
  return;
26922
26974
  }
26923
26975
  if (t?.domain === "TOOL") {
@@ -26929,12 +26981,12 @@ var fc = { class: "AiChatThinking__label" }, pc = {
26929
26981
  arguments: t?.payload?.arguments,
26930
26982
  result: t?.payload?.result
26931
26983
  };
26932
- r === -1 ? e.push(i) : e[r] = i, fe({ tools: e });
26984
+ r === -1 ? e.push(i) : e[r] = i, Y({ tools: e });
26933
26985
  return;
26934
26986
  }
26935
26987
  if (t?.domain === "WORKFLOW") {
26936
26988
  if (t.type === "MESSAGE" && t.payload?.structuredData) {
26937
- fe({
26989
+ Y({
26938
26990
  thinkingStatus: "end",
26939
26991
  content: t.payload?.content || "",
26940
26992
  structuredData: t.payload.structuredData
@@ -26951,61 +27003,61 @@ var fc = { class: "AiChatThinking__label" }, pc = {
26951
27003
  ...e[n],
26952
27004
  status: t?.type === "WORKFLOW_FINISHED" ? "success" : "calling",
26953
27005
  rawStatus: t?.type
26954
- }, fe({ tools: e });
27006
+ }, Y({ tools: e });
26955
27007
  return;
26956
27008
  }
26957
27009
  if (t.type === "THINKING") {
26958
- fe({ reasoning_content: (L.value?.reasoning_content || "") + (n || "") });
27010
+ Y({ reasoning_content: (L.value?.reasoning_content || "") + (n || "") });
26959
27011
  return;
26960
27012
  }
26961
27013
  if (t.type === "MESSAGE") {
26962
27014
  if (t.payload?.structuredData) {
26963
- fe({
27015
+ Y({
26964
27016
  content: t.payload?.content || U,
26965
27017
  structuredData: t.payload.structuredData,
26966
27018
  thinkingStatus: "end"
26967
27019
  });
26968
27020
  return;
26969
27021
  }
26970
- U += n || "", fe({ content: U });
27022
+ U += n || "", Y({ content: U });
26971
27023
  }
26972
- }, le = (e) => {
26973
- console.error("SSE 错误:", e), fe({
27024
+ }, fe = (e) => {
27025
+ console.error("SSE 错误:", e), Y({
26974
27026
  thinkingStatus: "error",
26975
27027
  content: U || "请求失败,请稍后重试"
26976
- }), de(), f("error", e);
26977
- }, ue = () => {
26978
- de();
26979
- }, de = () => {
26980
- V.value = !1, R.value = !1, fe({ thinkingStatus: "end" }), ne.abort(), De();
26981
- }, fe = (e) => {
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) => {
26982
27034
  L.value && (L.value = {
26983
27035
  ...L.value,
26984
27036
  ...e,
26985
- time: Oe()
26986
- }, De());
26987
- }, pe = (e) => {
26988
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), oe());
26989
- }, me = (e) => {
27037
+ time: Ae()
27038
+ }, ke());
27039
+ }, he = (e) => {
27040
+ e.key === "Enter" && !e.shiftKey && (e.preventDefault(), ce());
27041
+ }, ge = (e) => {
26990
27042
  B.value = e, f("changeType", e);
26991
- }, he = async () => {
27043
+ }, _e = async () => {
26992
27044
  if (!a.mockData) {
26993
- J.value = Xl;
27045
+ ae.value = Xl;
26994
27046
  return;
26995
27047
  }
26996
27048
  if (typeof a.mockData == "string") try {
26997
- J.value = await xt(a.mockData.startsWith("http") ? a.mockData : `${a.baseHttp}${a.mockData}`, !0) || Xl;
27049
+ ae.value = await xt(a.mockData.startsWith("http") ? a.mockData : `${a.baseHttp}${a.mockData}`, !0) || Xl;
26998
27050
  } catch (e) {
26999
- f("error", e), J.value = Xl;
27051
+ f("error", e), ae.value = Xl;
27000
27052
  }
27001
- else J.value = a.mockData;
27053
+ else ae.value = a.mockData;
27002
27054
  };
27003
27055
  v(async () => {
27004
- await re(), he();
27005
- }), D(() => a.mockData, he), D(() => a.appKey, (e) => {
27056
+ await G(), _e();
27057
+ }), D(() => a.mockData, _e), D(() => a.appKey, (e) => {
27006
27058
  W.value ||= e || "";
27007
27059
  });
27008
- let ge = (e) => {
27060
+ let ve = (e) => {
27009
27061
  L.value = {
27010
27062
  role: "ai",
27011
27063
  type: e.type,
@@ -27014,9 +27066,9 @@ var fc = { class: "AiChatThinking__label" }, pc = {
27014
27066
  resources: e.resources,
27015
27067
  structuredData: e.structuredData,
27016
27068
  thinkingStatus: "end",
27017
- time: Oe()
27069
+ time: Ae()
27018
27070
  };
27019
- }, _e = (e) => !!e?.some((e) => e.type === "markdown" || e.type === "text"), ve = (e) => !!e?.some((e) => e.type === "thinking"), ye = (e) => e?.find((e) => e.type === "markdown" || e.type === "text")?.content || "", be = (e) => {
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) => {
27020
27072
  if (e.type === "text" || e.type === "markdown") return e.content || "";
27021
27073
  if (e.type === "table") {
27022
27074
  let t = e.columns || [], n = e.data || [];
@@ -27027,11 +27079,11 @@ var fc = { class: "AiChatThinking__label" }, pc = {
27027
27079
  ].join("\n") : "";
27028
27080
  }
27029
27081
  return e.type === "image" ? `\n![${e.caption || ""}](${e.url || ""})\n` : e.type === "echarts" ? "\n(图表已生成)\n" : "";
27030
- }, xe = (e) => {
27031
- we(), V.value = !0, R.value = !0;
27082
+ }, Ce = (e) => {
27083
+ Ee(), V.value = !0, R.value = !0;
27032
27084
  let t = e.find((e) => e.type === "thinking"), n = e.filter((e) => e.type !== "thinking"), r = t?.steps || [], i = [];
27033
27085
  r.forEach((e) => {
27034
- let t = be(e);
27086
+ let t = Se(e);
27035
27087
  t && i.push(t);
27036
27088
  });
27037
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");
@@ -27057,7 +27109,7 @@ var fc = { class: "AiChatThinking__label" }, pc = {
27057
27109
  thinkingStatus: "thinking",
27058
27110
  tools: [...o],
27059
27111
  blocks: n,
27060
- time: Oe()
27112
+ time: Ae()
27061
27113
  };
27062
27114
  let m = 0, h = o.length ? "tools" : "thinking", g = 0, _ = (e, t, n) => {
27063
27115
  if (m >= e.length) {
@@ -27069,12 +27121,12 @@ var fc = { class: "AiChatThinking__label" }, pc = {
27069
27121
  t === "reasoning" ? L.value = {
27070
27122
  ...L.value,
27071
27123
  reasoning_content: (L.value.reasoning_content || "") + i,
27072
- time: Oe()
27124
+ time: Ae()
27073
27125
  } : L.value = {
27074
27126
  ...L.value,
27075
27127
  content: (L.value.content || "") + i,
27076
- time: Oe()
27077
- }, De();
27128
+ time: Ae()
27129
+ }, ke();
27078
27130
  let a = /[,。;:!?、,.;:!?]$/.test(i), o = Math.random() < .18, s = 50 + Math.floor(Math.random() * 70);
27079
27131
  a && (s += 80 + Math.floor(Math.random() * 120)), o && (s += 200 + Math.floor(Math.random() * 300)), H = setTimeout(() => _(e, t, n), s);
27080
27132
  }, v = () => {
@@ -27094,7 +27146,7 @@ var fc = { class: "AiChatThinking__label" }, pc = {
27094
27146
  ...e,
27095
27147
  status: "success"
27096
27148
  } : e)
27097
- }, g++, De(), H = setTimeout(v, 400));
27149
+ }, g++, ke(), H = setTimeout(v, 400));
27098
27150
  }, 600);
27099
27151
  return;
27100
27152
  }
@@ -27110,7 +27162,7 @@ var fc = { class: "AiChatThinking__label" }, pc = {
27110
27162
  ...L.value,
27111
27163
  thinkingStatus: "end",
27112
27164
  blocks: f.filter((e) => (e.sort || 99) < (d?.sort || 99)),
27113
- time: Oe()
27165
+ time: Ae()
27114
27166
  }, p ? _(p, "content", "done") : (h = "done", v());
27115
27167
  return;
27116
27168
  }
@@ -27119,24 +27171,24 @@ var fc = { class: "AiChatThinking__label" }, pc = {
27119
27171
  thinkingStatus: "end",
27120
27172
  content: L.value.content || p,
27121
27173
  blocks: f,
27122
- time: Oe()
27174
+ time: Ae()
27123
27175
  };
27124
27176
  }
27125
27177
  };
27126
27178
  H = setTimeout(v, 300);
27127
- }, Se = (e) => {
27128
- let t = ye(e);
27179
+ }, we = (e) => {
27180
+ let t = xe(e);
27129
27181
  if (!t) {
27130
- ge({
27182
+ ve({
27131
27183
  type: B.value,
27132
27184
  blocks: e
27133
27185
  });
27134
27186
  return;
27135
27187
  }
27136
- we(), V.value = !0, R.value = !0, ee.value = "";
27188
+ Ee(), V.value = !0, R.value = !0, ee.value = "";
27137
27189
  let n = 0, r = () => {
27138
27190
  if (n >= t.length) {
27139
- V.value = !1, R.value = !1, ge({
27191
+ V.value = !1, R.value = !1, ve({
27140
27192
  type: B.value,
27141
27193
  blocks: e
27142
27194
  });
@@ -27153,13 +27205,13 @@ var fc = { class: "AiChatThinking__label" }, pc = {
27153
27205
  type: "markdown",
27154
27206
  content: ee.value
27155
27207
  }],
27156
- time: Oe()
27157
- }, De();
27208
+ time: Ae()
27209
+ }, ke();
27158
27210
  let o = /[,。;:!?、,.;:!?]$/.test(a), s = Math.random() < .18, c = 50 + Math.floor(Math.random() * 70);
27159
27211
  o && (c += 80 + Math.floor(Math.random() * 120)), s && (c += 200 + Math.floor(Math.random() * 300)), H = setTimeout(r, c);
27160
27212
  };
27161
27213
  r();
27162
- }, Ce = (e) => {
27214
+ }, Te = (e) => {
27163
27215
  if (!L.value) L.value = {
27164
27216
  role: "ai",
27165
27217
  type: B.value,
@@ -27168,7 +27220,7 @@ var fc = { class: "AiChatThinking__label" }, pc = {
27168
27220
  type: "markdown",
27169
27221
  content: e
27170
27222
  }],
27171
- time: Oe()
27223
+ time: Ae()
27172
27224
  };
27173
27225
  else {
27174
27226
  let t = L.value.blocks || [], n = t.find((e) => e.type === "markdown" || e.type === "text");
@@ -27181,40 +27233,40 @@ var fc = { class: "AiChatThinking__label" }, pc = {
27181
27233
  blocks: [...t]
27182
27234
  };
27183
27235
  }
27184
- De();
27185
- }, we = () => {
27236
+ ke();
27237
+ }, Ee = () => {
27186
27238
  H &&= (clearTimeout(H), null);
27187
- }, Te = (e, t) => {
27188
- let n = J.value.categories?.[e];
27239
+ }, De = (e, t) => {
27240
+ let n = ae.value.categories?.[e];
27189
27241
  if (!n) return [];
27190
27242
  for (let e of n.responses) if (e.keywords && e.keywords.some((e) => t.includes(e))) return e.blocks;
27191
27243
  let r = n.responses.find((e) => e.default);
27192
27244
  return r ? r.blocks : n.responses[0]?.blocks || [];
27193
- }, Ee = () => {
27194
- let e = q.value;
27245
+ }, Oe = () => {
27246
+ let e = ie.value;
27195
27247
  e && (e.style.height = "auto", e.style.height = `${Math.min(e.scrollHeight, 96)}px`);
27196
- }, De = async () => {
27248
+ }, ke = async () => {
27197
27249
  await h();
27198
- let e = K.value;
27250
+ let e = q.value;
27199
27251
  e && (e.scrollTop = e.scrollHeight);
27200
- }, Oe = () => {
27252
+ }, Ae = () => {
27201
27253
  let e = /* @__PURE__ */ new Date();
27202
27254
  return `${String(e.getHours()).padStart(2, "0")}:${String(e.getMinutes()).padStart(2, "0")}`;
27203
- }, ke = () => {
27204
- we(), ne.abort(), I.value = null, L.value = null, R.value = !1, V.value = !1, ee.value = "", U = "", te.value = "";
27205
- }, Ae = () => {
27206
- ke(), m.value = !1, f("close");
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");
27207
27259
  };
27208
27260
  return t({
27209
- setResponse: ge,
27261
+ setResponse: ve,
27210
27262
  setLoading: (e) => {
27211
27263
  R.value = e;
27212
27264
  },
27213
- appendStreamChunk: Ce,
27265
+ appendStreamChunk: Te,
27214
27266
  setFullscreen: (e) => {
27215
27267
  m.value = e;
27216
27268
  },
27217
- clear: ke
27269
+ clear: je
27218
27270
  }), (t, n) => {
27219
27271
  let a = r;
27220
27272
  return b(), l("div", {
@@ -27240,14 +27292,14 @@ var fc = { class: "AiChatThinking__label" }, pc = {
27240
27292
  fill: "currentColor"
27241
27293
  }, [u("path", { d: "M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z" })], -1)]], 40, $l), u("button", {
27242
27294
  class: "AiChat__headerBtn AiChat__headerBtn--close",
27243
- onClick: Ae,
27295
+ onClick: Me,
27244
27296
  onPointerdown: n[1] ||= A(() => {}, ["stop"]),
27245
27297
  title: "关闭"
27246
- }, "×", 32)])], 32)) : c("", !0),
27298
+ }, "× ", 32)])], 32)) : c("", !0),
27247
27299
  m.value ? (b(), l("div", {
27248
27300
  key: 1,
27249
27301
  ref_key: "bodyRef",
27250
- ref: K,
27302
+ ref: q,
27251
27303
  class: "AiChat__body"
27252
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", {
27253
27305
  viewBox: "0 0 24 24",
@@ -27325,7 +27377,7 @@ var fc = { class: "AiChatThinking__label" }, pc = {
27325
27377
  }), u("span", null, "导出")], -1)]]),
27326
27378
  _: 1
27327
27379
  })
27328
- ])) : c("", !0)])) : c("", !0)])])) : c("", !0)], 64)) : (b(), l("div", du, " 选择类型后输入问题,AI 将为你解答 "))], 512)) : G.value ? (b(), l("div", fu, [u("header", {
27380
+ ])) : c("", !0)])) : c("", !0)])])) : c("", !0)], 64)) : (b(), l("div", du, " 选择类型后输入问题,AI 将为你解答 "))], 512)) : K.value ? (b(), l("div", fu, [u("header", {
27329
27381
  class: "AiChat__contentHeader",
27330
27382
  onPointerdown: n[5] ||= A((...e) => w(N) && w(N)(...e), ["prevent"])
27331
27383
  }, [n[22] ||= u("div", { class: "AiChat__contentTitle" }, [u("svg", {
@@ -27346,11 +27398,11 @@ var fc = { class: "AiChatThinking__label" }, pc = {
27346
27398
  }, [u("path", { d: "M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z" })], -1)]], 32), u("button", {
27347
27399
  class: "AiChat__headerBtn AiChat__headerBtn--close",
27348
27400
  title: "关闭",
27349
- onClick: Ae,
27401
+ onClick: Me,
27350
27402
  onPointerdown: n[4] ||= A(() => {}, ["stop"])
27351
- }, "×", 32)])], 32), u("div", {
27403
+ }, "× ", 32)])], 32), u("div", {
27352
27404
  ref_key: "bodyRef",
27353
- ref: K,
27405
+ ref: q,
27354
27406
  class: "AiChat__contentPanel"
27355
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, {
27356
27408
  key: 0,
@@ -27425,22 +27477,22 @@ var fc = { class: "AiChatThinking__label" }, pc = {
27425
27477
  }, [u("div", {
27426
27478
  class: g(["AiChat__typeTabs", { "AiChat__typeTabs--fullscreen": m.value }]),
27427
27479
  onPointerdown: n[6] ||= A(() => {}, ["stop"])
27428
- }, [(b(!0), l(i, null, S(ie.value, (e, t) => (b(), l(i, { key: e.value }, [u("button", {
27480
+ }, [(b(!0), l(i, null, S(J.value, (e, t) => (b(), l(i, { key: e.value }, [u("button", {
27429
27481
  class: g(["AiChat__typeTab", { "AiChat__typeTab--active": B.value === e.value }]),
27430
- onClick: (t) => me(e.value)
27431
- }, C(e.label), 11, Tu), t < ie.value.length - 1 ? (b(), l("span", Eu)) : c("", !0)], 64))), 128))], 34), u("div", Du, [u("div", Ou, [k(u("input", {
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", {
27432
27484
  ref_key: "textareaRef",
27433
- ref: q,
27485
+ ref: ie,
27434
27486
  "onUpdate:modelValue": n[7] ||= (e) => z.value = e,
27435
27487
  class: "AiChat__textarea",
27436
- placeholder: Y.value,
27437
- onKeydown: pe,
27438
- onInput: Ee,
27488
+ placeholder: oe.value,
27489
+ onKeydown: he,
27490
+ onInput: Oe,
27439
27491
  onPointerdown: n[8] ||= A(() => {}, ["stop"])
27440
27492
  }, null, 40, ku), [[T, z.value]])]), u("button", {
27441
27493
  class: "AiChat__send",
27442
27494
  disabled: !z.value.trim() || R.value || V.value,
27443
- onClick: oe,
27495
+ onClick: ce,
27444
27496
  onPointerdown: n[9] ||= A(() => {}, ["stop"]),
27445
27497
  title: "发送"
27446
27498
  }, [...n[29] ||= [u("svg", {