@antdv-next/x 1.2.1-beta.1 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/attachments/index.js +1 -2
  2. package/dist/code-highlighter/style/index.d.ts +51 -19
  3. package/dist/code-highlighter/style/index.js +44 -31
  4. package/dist/index.umd.js +54 -44
  5. package/dist/package.js +1 -1
  6. package/dist/sender/hooks/use-speech.js +1 -2
  7. package/dist/suggestion/useActive.js +2 -0
  8. package/dist/theme/util/alias.js +5 -5
  9. package/dist/think/Think.js +2 -3
  10. package/dist/thought-chain/Node.js +2 -3
  11. package/dist/x-provider/index.js +2 -3
  12. package/es/{_basePickBy-CrbncDqR.js → _basePickBy-BL4DHvHb.js} +1 -1
  13. package/es/{_baseUniq-B-qU_Imh.js → _baseUniq-CyFYmJd-.js} +7 -7
  14. package/es/antdv-next-x.esm.js +253 -245
  15. package/es/architecture-PBZL5I3N-M9p1teRv.js +3 -0
  16. package/es/{architectureDiagram-2XIMDMQ5-OvuktNfv.js → architectureDiagram-2XIMDMQ5-zW5aGalx.js} +99 -89
  17. package/es/{blockDiagram-WCTKOSBZ-CS-kh74L.js → blockDiagram-WCTKOSBZ-0QujSG-h.js} +36 -33
  18. package/es/{c4Diagram-IC4MRINW-BZGIF4Dk.js → c4Diagram-IC4MRINW-B7y07WFn.js} +24 -16
  19. package/es/{channel-DrSSYyxp.js → channel-CxLj88Pg.js} +1 -1
  20. package/es/{chunk-4BX2VUAB-Rm8-te6i.js → chunk-4BX2VUAB-CprgMM4u.js} +1 -1
  21. package/es/{chunk-55IACEB6-Tre45n-8.js → chunk-55IACEB6-BpkEkHy8.js} +1 -1
  22. package/es/{chunk-7R4GIKGN-scch4dXY.js → chunk-7R4GIKGN-mKY502R8.js} +6 -4
  23. package/es/{chunk-FMBD7UC4-JmekSPZP.js → chunk-FMBD7UC4-B88neS61.js} +1 -1
  24. package/es/{chunk-GEFDOKGD-BEzc6NZw.js → chunk-GEFDOKGD-oBEpn5hN.js} +67 -27
  25. package/es/chunk-GLR3WWYH-B2D9kjtF.js +41 -0
  26. package/es/chunk-HHEYEP7N-DcZkCke2.js +9 -0
  27. package/es/{chunk-JSJVCQXG-_l_UVbaa.js → chunk-JSJVCQXG-BbVOaXjl.js} +3 -3
  28. package/es/{chunk-KX2RTZJC-BUWM8pJz.js → chunk-KX2RTZJC-Dw3D7Wrw.js} +2 -2
  29. package/es/{chunk-KYZI473N-BSgb_E0Q.js → chunk-KYZI473N-33-uii7Y.js} +10 -10
  30. package/es/{chunk-MX3YWQON-D602L8pU.js → chunk-MX3YWQON-D4cz36rq.js} +1 -1
  31. package/es/{chunk-NQ4KR5QH-BPQV0i93.js → chunk-NQ4KR5QH-CprADZhD.js} +44 -40
  32. package/es/{chunk-O4XLMI2P-BMqc3iYa.js → chunk-O4XLMI2P-DBAvycZ-.js} +13 -14
  33. package/es/{chunk-PQ6SQG4A-DcYrzB1X.js → chunk-PQ6SQG4A-BITIwHAS.js} +2 -2
  34. package/es/{chunk-PU5JKC2W-TuGY6X1n.js → chunk-PU5JKC2W-DIl8TkGX.js} +22 -26
  35. package/es/{chunk-QZHKN3VN-CKbD02cl.js → chunk-QZHKN3VN-Cg0ROtzE.js} +1 -1
  36. package/es/{chunk-WL4C6EOR-B31ErTFp.js → chunk-WL4C6EOR-Bhp_3T_o.js} +15 -15
  37. package/es/chunk-XPW4576I-255j2Rgd.js +1146 -0
  38. package/es/{chunk-XZSTWKYB-DYKLwCEy.js → chunk-XZSTWKYB-kjAdbx6i.js} +266 -321
  39. package/es/{chunk-YBOYWFTD-CRiKEIiS.js → chunk-YBOYWFTD-C2IdGsg8.js} +5 -5
  40. package/es/classDiagram-VBA2DB6C-BQonl2jX.js +29 -0
  41. package/es/classDiagram-v2-RAHNMMFH-C9U3lqTc.js +29 -0
  42. package/es/{clone-yzFtXY5G.js → clone-DIGEZsKS.js} +1 -1
  43. package/es/{cose-bilkent-S5V4N54A-BM90wTBk.js → cose-bilkent-S5V4N54A-Cyxewg9z.js} +36 -31
  44. package/es/{cytoscape.esm-B_-hKv4-.js → cytoscape.esm-DBPri10E.js} +197 -155
  45. package/es/{dagre-DCYVBij1.js → dagre-BHOjJWBG.js} +26 -24
  46. package/es/{dagre-KLK3FWXG-Ced70SgJ.js → dagre-KLK3FWXG-CnJPDj7X.js} +17 -18
  47. package/es/{defaultLocale-yzzuPw6P.js → defaultLocale-aSMWOJHq.js} +4 -1
  48. package/es/{diagram-E7M64L7V-xZCloH_i.js → diagram-E7M64L7V-CBOCgbMd.js} +22 -24
  49. package/es/{diagram-IFDJBPK2-BTmFZhvz.js → diagram-IFDJBPK2-BtubJp0H.js} +11 -11
  50. package/es/{diagram-P4PSJMXO-DX_3B0LB.js → diagram-P4PSJMXO-CI30BBYG.js} +10 -10
  51. package/es/{dist-h4ggShny.js → dist-BpM0Gz7z.js} +1 -1
  52. package/es/{erDiagram-INFDFZHY-MJ_HVY-7.js → erDiagram-INFDFZHY-C8hYuPxm.js} +21 -21
  53. package/es/{flowDiagram-PKNHOUZH-CQIRy1sx.js → flowDiagram-PKNHOUZH-D5vrDkks.js} +40 -33
  54. package/es/{ganttDiagram-A5KZAMGK-Dw9bjWjx.js → ganttDiagram-A5KZAMGK-BmIEQBGq.js} +33 -21
  55. package/es/gitGraph-HDMCJU4V-x8fnR2OX.js +3 -0
  56. package/es/{gitGraphDiagram-K3NZZRJ6-Gk6FiGbZ.js → gitGraphDiagram-K3NZZRJ6-PO0pMJD3.js} +7 -7
  57. package/es/{graphlib-BMvIh7N7.js → graphlib-DqWOhV4K.js} +2 -2
  58. package/es/info-3K5VOQVL-CRBCVSej.js +3 -0
  59. package/es/{infoDiagram-LFFYTUFH-CS64-uil.js → infoDiagram-LFFYTUFH-DOcKfbXf.js} +4 -4
  60. package/es/{init-sjaVZO3f.js → init-Co4dhKfe.js} +3 -1
  61. package/es/isEmpty-BJdINx-6.js +35 -0
  62. package/es/{ishikawaDiagram-PHBUUO56-C_Hw5UnV.js → ishikawaDiagram-PHBUUO56-DM1elxPS.js} +12 -12
  63. package/es/{journeyDiagram-4ABVD52K-CFFyM4Ar.js → journeyDiagram-4ABVD52K-BnYWOH1P.js} +11 -11
  64. package/es/{kanban-definition-K7BYSVSG-B_R-mA10.js → kanban-definition-K7BYSVSG-Ys7nAs7y.js} +27 -26
  65. package/es/{katex-C-qdUNlg.js → katex-olkKUfKs.js} +52 -62
  66. package/es/{line-D05MESIS.js → line-Cm2n2y9Z.js} +1 -1
  67. package/es/{linear-B8tPH2Pw.js → linear-D-yDc6KG.js} +6 -4
  68. package/es/{mermaid-parser.core-C_69nk7j.js → mermaid-parser.core-DFgQn74w.js} +8 -8
  69. package/es/mermaid.core-BzgA0NbC.js +680 -0
  70. package/es/{mindmap-definition-YRQLILUH-qgGUYYe3.js → mindmap-definition-YRQLILUH-Ca8psfLi.js} +26 -24
  71. package/es/{ordinal-CNQzPcrr.js → ordinal-95c16pGC.js} +1 -1
  72. package/es/packet-RMMSAZCW-CyE-elPF.js +3 -0
  73. package/es/pie-UPGHQEXC-EfdQ-_OF.js +3 -0
  74. package/es/{pieDiagram-SKSYHLDU-B8-AVOmP.js → pieDiagram-SKSYHLDU-DhQSMJCw.js} +11 -11
  75. package/es/{quadrantDiagram-337W2JSQ-C2Z0CN4Z.js → quadrantDiagram-337W2JSQ-jOtIC8r0.js} +9 -9
  76. package/es/radar-KQ55EAFF-B68vkNB4.js +3 -0
  77. package/es/{requirementDiagram-Z7DCOOCP-Cdj7PwWC.js → requirementDiagram-Z7DCOOCP-CNngzPE4.js} +18 -18
  78. package/es/{rolldown-runtime-CEY2VRuR.js → rolldown-runtime-Dv1pqm0U.js} +2 -2
  79. package/es/{sankeyDiagram-WA2Y5GQK-BNmU-dM1.js → sankeyDiagram-WA2Y5GQK-BgsyVNdD.js} +9 -9
  80. package/es/{sequenceDiagram-2WXFIKYE-pj0uPf22.js → sequenceDiagram-2WXFIKYE-BAc5PP9P.js} +46 -34
  81. package/es/{shiki-runtime-7QG17np_.js → shiki-runtime-BlKUZiZP.js} +41 -44
  82. package/es/{src-Dynw_Lub.js → src-3T61hYex.js} +1 -1
  83. package/es/{stateDiagram-RAJIS63D-BgCfMnGb.js → stateDiagram-RAJIS63D-153LjStx.js} +18 -18
  84. package/es/stateDiagram-v2-FVOUBMTO-BXEvy1YD.js +27 -0
  85. package/es/{timeline-definition-YZTLITO2-Bj5QKnBI.js → timeline-definition-YZTLITO2-BLhlkb_X.js} +8 -8
  86. package/es/treemap-KZPCXAKY-Dg_ShzRB.js +3 -0
  87. package/es/{vennDiagram-LZ73GAT5-lpWcIvN6.js → vennDiagram-LZ73GAT5-BTYWphmf.js} +13 -13
  88. package/es/{xychartDiagram-JWTSCODW-De1M-7Yz.js → xychartDiagram-JWTSCODW-B9Nlu6S_.js} +29 -25
  89. package/package.json +1 -1
  90. package/es/architecture-PBZL5I3N-BRGGaMu3.js +0 -3
  91. package/es/classDiagram-VBA2DB6C-BDqwxUdU.js +0 -29
  92. package/es/classDiagram-v2-RAHNMMFH-DdmOjeUb.js +0 -29
  93. package/es/gitGraph-HDMCJU4V-oForq_Vw.js +0 -3
  94. package/es/info-3K5VOQVL-0F-ZLEMx.js +0 -3
  95. package/es/mermaid.core-BVGVwWcu.js +0 -1914
  96. package/es/packet-RMMSAZCW-CeqtQQ_e.js +0 -3
  97. package/es/pie-UPGHQEXC-BI60FhK4.js +0 -3
  98. package/es/radar-KQ55EAFF-CRwOOFw0.js +0 -3
  99. package/es/stateDiagram-v2-FVOUBMTO-ByMhP6Xo.js +0 -27
  100. package/es/treemap-KZPCXAKY-BlOAFUbR.js +0 -3
@@ -1,9 +1,9 @@
1
- import { g as e, h as t } from "./src-Dynw_Lub.js";
2
- import { h as n, o as r } from "./chunk-GEFDOKGD-BEzc6NZw.js";
3
- import { B as i, C as a, V as o, W as s, _ as c, a as l, b as u, s as d, v as f } from "./chunk-7R4GIKGN-scch4dXY.js";
4
- import { t as p } from "./chunk-55IACEB6-Tre45n-8.js";
5
- import { t as m } from "./chunk-KX2RTZJC-BUWM8pJz.js";
6
- import { i as h } from "./mermaid.core-BVGVwWcu.js";
1
+ import { g as e, h as t } from "./src-3T61hYex.js";
2
+ import { h as n, o as r } from "./chunk-GEFDOKGD-oBEpn5hN.js";
3
+ import { B as i, C as a, V as o, W as s, _ as c, a as l, b as u, s as d, v as f } from "./chunk-7R4GIKGN-mKY502R8.js";
4
+ import { t as p } from "./chunk-55IACEB6-BpkEkHy8.js";
5
+ import { t as m } from "./chunk-KX2RTZJC-Dw3D7Wrw.js";
6
+ import { r as h } from "./chunk-GLR3WWYH-B2D9kjtF.js";
7
7
  //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NQ4KR5QH.mjs
8
8
  var g = (function() {
9
9
  var e = /* @__PURE__ */ t(function(e, t, n, r) {
@@ -457,13 +457,15 @@ var g = (function() {
457
457
  description: ""
458
458
  };
459
459
  break;
460
- case 47: this.$ = {
461
- stmt: "state",
462
- id: a[s - 2].trim(),
463
- classes: [a[s].trim()],
464
- type: "default",
465
- description: ""
466
- };
460
+ case 47:
461
+ this.$ = {
462
+ stmt: "state",
463
+ id: a[s - 2].trim(),
464
+ classes: [a[s].trim()],
465
+ type: "default",
466
+ description: ""
467
+ };
468
+ break;
467
469
  }
468
470
  }, "anonymous"),
469
471
  table: [
@@ -761,7 +763,7 @@ var g = (function() {
761
763
  var v = h.yylloc;
762
764
  o.push(v);
763
765
  var y = h.options && h.options.ranges;
764
- this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
766
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
765
767
  function b(e) {
766
768
  r.length -= 2 * e, a.length -= e, o.length -= e;
767
769
  }
@@ -914,10 +916,8 @@ var g = (function() {
914
916
  if (this._backtrack) {
915
917
  t = !1;
916
918
  continue;
917
- }
918
- return !1;
919
- }
920
- if (!this.options.flex) break;
919
+ } else return !1;
920
+ } else if (!this.options.flex) break;
921
921
  }
922
922
  return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
923
923
  text: "",
@@ -1393,26 +1393,28 @@ var me = /* @__PURE__ */ t((t, n, r, i, a, o, s, c) => {
1393
1393
  case D:
1394
1394
  X(t, e, r, i, a, o, s, c);
1395
1395
  break;
1396
- case C: {
1397
- X(t, e.state1, r, i, a, o, s, c), X(t, e.state2, r, i, a, o, s, c);
1398
- let n = {
1399
- id: "edge" + G,
1400
- start: e.state1.id,
1401
- end: e.state2.id,
1402
- arrowhead: "normal",
1403
- arrowTypeEnd: "arrow_barb",
1404
- style: k,
1405
- labelStyle: "",
1406
- label: d.sanitizeText(e.description ?? "", u()),
1407
- arrowheadStyle: A,
1408
- labelpos: j,
1409
- labelType: M,
1410
- thickness: N,
1411
- classes: ae,
1412
- look: s
1413
- };
1414
- a.push(n), G++;
1415
- }
1396
+ case C:
1397
+ {
1398
+ X(t, e.state1, r, i, a, o, s, c), X(t, e.state2, r, i, a, o, s, c);
1399
+ let n = {
1400
+ id: "edge" + G,
1401
+ start: e.state1.id,
1402
+ end: e.state2.id,
1403
+ arrowhead: "normal",
1404
+ arrowTypeEnd: "arrow_barb",
1405
+ style: k,
1406
+ labelStyle: "",
1407
+ label: d.sanitizeText(e.description ?? "", u()),
1408
+ arrowheadStyle: A,
1409
+ labelpos: j,
1410
+ labelType: M,
1411
+ thickness: N,
1412
+ classes: ae,
1413
+ look: s
1414
+ };
1415
+ a.push(n), G++;
1416
+ }
1417
+ break;
1416
1418
  }
1417
1419
  });
1418
1420
  }, "setupDoc"), q = /* @__PURE__ */ t((e, t = y) => {
@@ -1450,7 +1452,7 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, o, s, c) => {
1450
1452
  cssStyles: m
1451
1453
  });
1452
1454
  let u = W.get(l);
1453
- n.description && (Array.isArray(u.description) ? (u.shape = F, u.description.push(n.description)) : u.description?.length && u.description.length > 0 ? (u.shape = F, u.description = u.description === l ? [n.description] : [u.description, n.description]) : (u.shape = P, u.description = n.description), u.description = d.sanitizeTextOrArray(u.description, h)), u.description?.length === 1 && u.shape === F && (u.shape = u.type === "group" ? L : P), !u.type && n.doc && (e.info("Setting cluster for XCX", l, q(n)), u.type = "group", u.isGroup = !0, u.dir = q(n), u.shape = n.type === O ? I : L, u.cssClasses = `${u.cssClasses} ${le} ${o ? ue : ""}`);
1455
+ n.description && (Array.isArray(u.description) ? (u.shape = F, u.description.push(n.description)) : u.description?.length && u.description.length > 0 ? (u.shape = F, u.description === l ? u.description = [n.description] : u.description = [u.description, n.description]) : (u.shape = P, u.description = n.description), u.description = d.sanitizeTextOrArray(u.description, h)), u.description?.length === 1 && u.shape === F && (u.type === "group" ? u.shape = L : u.shape = P), !u.type && n.doc && (e.info("Setting cluster for XCX", l, q(n)), u.type = "group", u.isGroup = !0, u.dir = q(n), u.shape = n.type === O ? I : L, u.cssClasses = `${u.cssClasses} ${le} ${o ? ue : ""}`);
1454
1456
  let f = {
1455
1457
  labelStyle: "",
1456
1458
  shape: u.shape,
@@ -1567,7 +1569,9 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, o, s, c) => {
1567
1569
  case E:
1568
1570
  this.setCssClass(t.id.trim(), t.styleClass);
1569
1571
  break;
1570
- case "click": this.addLink(t.id, t.url, t.tooltip);
1572
+ case "click":
1573
+ this.addLink(t.id, t.url, t.tooltip);
1574
+ break;
1571
1575
  }
1572
1576
  let t = this.getStates(), n = u();
1573
1577
  ge(), X(void 0, this.getRootDocV2(), t, this.nodes, this.edges, !0, n.look, this.classes);
@@ -1,13 +1,13 @@
1
- import { g as e, h as t, p as n } from "./src-Dynw_Lub.js";
2
- import { C as r, D as i, E as a, O as o, S as s, T as c, _ as l, b as u, h as d, v as f, w as p, x as m, y as h } from "./chunk-GEFDOKGD-BEzc6NZw.js";
3
- import { b as g, w as _ } from "./chunk-7R4GIKGN-scch4dXY.js";
4
- import { t as v } from "./line-D05MESIS.js";
5
- import { n as y } from "./chunk-PU5JKC2W-TuGY6X1n.js";
6
- import { i as b, n as x, r as S, t as C } from "./chunk-MX3YWQON-D602L8pU.js";
7
- import { n as w } from "./chunk-YBOYWFTD-CRiKEIiS.js";
8
- import { i as T, n as E } from "./chunk-PQ6SQG4A-DcYrzB1X.js";
1
+ import { g as e, h as t, p as n } from "./src-3T61hYex.js";
2
+ import { C as r, D as i, E as a, O as o, S as s, T as c, _ as l, b as u, h as d, v as f, w as p, x as m, y as h } from "./chunk-GEFDOKGD-oBEpn5hN.js";
3
+ import { b as g, w as _ } from "./chunk-7R4GIKGN-mKY502R8.js";
4
+ import { t as v } from "./line-Cm2n2y9Z.js";
5
+ import { n as y } from "./chunk-PU5JKC2W-DIl8TkGX.js";
6
+ import { i as b, n as x, r as S, t as C } from "./chunk-MX3YWQON-D4cz36rq.js";
7
+ import { n as w } from "./chunk-YBOYWFTD-C2IdGsg8.js";
8
+ import { i as T, n as E } from "./chunk-PQ6SQG4A-BITIwHAS.js";
9
9
  import { t as D } from "./rough.esm-D1ibUQD-.js";
10
- import { r as O } from "./chunk-KYZI473N-BSgb_E0Q.js";
10
+ import { r as O } from "./chunk-KYZI473N-33-uii7Y.js";
11
11
  //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O4XLMI2P.mjs
12
12
  var ee = /* @__PURE__ */ t((e, t, n, r, i, a) => {
13
13
  t.arrowTypeStart && A(e, "start", t.arrowTypeStart, n, r, i, a), t.arrowTypeEnd && A(e, "end", t.arrowTypeEnd, n, r, i, a);
@@ -164,14 +164,14 @@ function I(e, t) {
164
164
  t(I, "setTerminalWidth");
165
165
  var L = /* @__PURE__ */ t((t, n) => {
166
166
  e.debug("Moving label abc88 ", t.id, t.label, j.get(t.id), n);
167
- let r = n.updatedPath ? n.updatedPath : n.originalPath, i = g(), { subGraphTitleTotalMargin: a } = w(i);
167
+ let r = n.updatedPath ? n.updatedPath : n.originalPath, { subGraphTitleTotalMargin: i } = w(g());
168
168
  if (t.label) {
169
- let i = j.get(t.id), o = t.x, s = t.y;
169
+ let a = j.get(t.id), o = t.x, s = t.y;
170
170
  if (r) {
171
171
  let i = d.calcLabelPosition(r);
172
172
  e.debug("Moving label " + t.label + " from (", o, ",", s, ") to (", i.x, ",", i.y, ") abc88"), n.updatedPath && (o = i.x, s = i.y);
173
173
  }
174
- i.attr("transform", `translate(${o}, ${s + a / 2})`);
174
+ a.attr("transform", `translate(${o}, ${s + i / 2})`);
175
175
  }
176
176
  if (t.startLabelLeft) {
177
177
  let e = M.get(t.id).startLeft, n = t.x, i = t.y;
@@ -222,8 +222,7 @@ var L = /* @__PURE__ */ t((t, n) => {
222
222
  y: r.y < n.y ? r.y + u - t : r.y - u + t
223
223
  };
224
224
  return c === 0 && (i.x = n.x, i.y = n.y), d === 0 && (i.x = n.x), u === 0 && (i.y = n.y), e.debug(`abc89 top/bottom calc, Q ${u}, q ${t}, R ${d}, r ${c}`, i), i;
225
- }
226
- {
225
+ } else {
227
226
  c = r.x < n.x ? n.x - s - i : i - s - n.x;
228
227
  let t = u * c / d, a = r.x < n.x ? r.x + d - c : r.x - d + c, o = r.y < n.y ? r.y + t : r.y - t;
229
228
  return e.debug(`sides calc abc89, Q ${u}, q ${t}, R ${d}, r ${c}`, {
@@ -1,5 +1,5 @@
1
- import { h as e } from "./src-Dynw_Lub.js";
2
- import { b as t } from "./chunk-7R4GIKGN-scch4dXY.js";
1
+ import { h as e } from "./src-3T61hYex.js";
2
+ import { b as t } from "./chunk-7R4GIKGN-mKY502R8.js";
3
3
  //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-PQ6SQG4A.mjs
4
4
  var n = /* @__PURE__ */ e((e) => {
5
5
  let { handDrawnSeed: n } = t();
@@ -1,6 +1,6 @@
1
- import { g as e, h as t, p as n } from "./src-Dynw_Lub.js";
2
- import { i as r } from "./chunk-GEFDOKGD-BEzc6NZw.js";
3
- import { L as i, P as a, k as o, s, y as c } from "./chunk-7R4GIKGN-scch4dXY.js";
1
+ import { g as e, h as t, p as n } from "./src-3T61hYex.js";
2
+ import { i as r } from "./chunk-GEFDOKGD-oBEpn5hN.js";
3
+ import { L as i, P as a, k as o, s, y as c } from "./chunk-7R4GIKGN-mKY502R8.js";
4
4
  //#region ../../node_modules/.pnpm/@iconify+utils@3.1.0/node_modules/@iconify/utils/lib/icon/defaults.js
5
5
  var l = Object.freeze({
6
6
  left: 0,
@@ -171,7 +171,9 @@ function fe(e, t) {
171
171
  case 2:
172
172
  t.unshift("rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")");
173
173
  break;
174
- case 3: s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
174
+ case 3:
175
+ s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
176
+ break;
175
177
  }
176
178
  o % 2 == 1 && (i.left !== i.top && (s = i.left, i.left = i.top, i.top = s), i.width !== i.height && (s = i.width, i.width = i.height, i.height = s)), t.length && (a = ue(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
177
179
  });
@@ -544,8 +546,7 @@ ${c}` : c;
544
546
  let t = u, a = t.raw + "\n" + e.join("\n"), o = this.blockquote(a);
545
547
  i[i.length - 1] = o, n = n.substring(0, n.length - t.raw.length) + o.raw, r = r.substring(0, r.length - t.text.length) + o.text;
546
548
  break;
547
- }
548
- if (u?.type === "list") {
549
+ } else if (u?.type === "list") {
549
550
  let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
550
551
  i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
551
552
  continue;
@@ -765,8 +766,7 @@ ${c}` : c;
765
766
  if (a = [...i].length, r[3] || r[4]) {
766
767
  o += a;
767
768
  continue;
768
- }
769
- if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
769
+ } else if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
770
770
  s += a;
771
771
  continue;
772
772
  }
@@ -890,7 +890,7 @@ ${c}` : c;
890
890
  block: P.normal,
891
891
  inline: F.normal
892
892
  };
893
- this.options.pedantic ? (t.block = P.pedantic, t.inline = F.pedantic) : this.options.gfm && (t.block = P.gfm, t.inline = this.options.breaks ? F.breaks : F.gfm), this.tokenizer.rules = t;
893
+ this.options.pedantic ? (t.block = P.pedantic, t.inline = F.pedantic) : this.options.gfm && (t.block = P.gfm, this.options.breaks ? t.inline = F.breaks : t.inline = F.gfm), this.tokenizer.rules = t;
894
894
  }
895
895
  static get rules() {
896
896
  return {
@@ -992,8 +992,7 @@ ${c}` : c;
992
992
  if (this.options.silent) {
993
993
  console.error(t);
994
994
  break;
995
- }
996
- throw Error(t);
995
+ } else throw Error(t);
997
996
  }
998
997
  }
999
998
  return this.state.top = !0, t;
@@ -1079,8 +1078,7 @@ ${c}` : c;
1079
1078
  if (this.options.silent) {
1080
1079
  console.error(t);
1081
1080
  break;
1082
- }
1083
- throw Error(t);
1081
+ } else throw Error(t);
1084
1082
  }
1085
1083
  }
1086
1084
  return t;
@@ -1301,7 +1299,7 @@ ${e}</tr>
1301
1299
  case "text": {
1302
1300
  let i = a, o = this.renderer.text(i);
1303
1301
  for (; r + 1 < e.length && e[r + 1].type === "text";) i = e[++r], o += "\n" + this.renderer.text(i);
1304
- n += t ? this.renderer.paragraph({
1302
+ t ? n += this.renderer.paragraph({
1305
1303
  type: "paragraph",
1306
1304
  raw: o,
1307
1305
  text: o,
@@ -1311,7 +1309,7 @@ ${e}</tr>
1311
1309
  text: o,
1312
1310
  escaped: !0
1313
1311
  }]
1314
- }) : o;
1312
+ }) : n += o;
1315
1313
  continue;
1316
1314
  }
1317
1315
  default: {
@@ -1517,14 +1515,14 @@ ${e}</tr>
1517
1515
  if (!(n in t)) throw Error(`hook '${n}' does not exist`);
1518
1516
  if (["options", "block"].includes(n)) continue;
1519
1517
  let r = n, i = e.hooks[r], a = t[r];
1520
- t[r] = U.passThroughHooks.has(n) ? (e) => {
1518
+ U.passThroughHooks.has(n) ? t[r] = (e) => {
1521
1519
  if (this.defaults.async && U.passThroughHooksRespectAsync.has(n)) return (async () => {
1522
1520
  let n = await i.call(t, e);
1523
1521
  return a.call(t, n);
1524
1522
  })();
1525
1523
  let r = i.call(t, e);
1526
1524
  return a.call(t, r);
1527
- } : (...e) => {
1525
+ } : t[r] = (...e) => {
1528
1526
  if (this.defaults.async) return (async () => {
1529
1527
  let n = await i.apply(t, e);
1530
1528
  return n === !1 && (n = await a.apply(t, e)), n;
@@ -1680,11 +1678,11 @@ var _t = {
1680
1678
  } catch (t) {
1681
1679
  e.error(t), a = _t;
1682
1680
  }
1683
- let o = fe(a, n), s = _e(ge(o.body), {
1681
+ let o = fe(a, n);
1682
+ return i(_e(ge(o.body), {
1684
1683
  ...o.attributes,
1685
1684
  ...r
1686
- });
1687
- return i(s, c());
1685
+ }), c());
1688
1686
  }, "getIconSVG");
1689
1687
  function Ct(e, { markdownAutoWrap: t }) {
1690
1688
  return gt(e.replace(/<br\/>/g, "\n").replace(/\n{2,}/g, "\n"));
@@ -1840,8 +1838,7 @@ function Z(e, n, r, i = !1, a = !1) {
1840
1838
  if (i) {
1841
1839
  let e = l.node().getBBox();
1842
1840
  return c.attr("x", e.x - 2).attr("y", e.y - 2).attr("width", e.width + 4).attr("height", e.height + 4), s.node();
1843
- }
1844
- return l.node();
1841
+ } else return l.node();
1845
1842
  }
1846
1843
  t(Z, "createFormattedText");
1847
1844
  function Q(e, t) {
@@ -1863,14 +1860,13 @@ async function $(e, t = {}) {
1863
1860
  t($, "replaceIconSubstring");
1864
1861
  var Ft = /* @__PURE__ */ t(async (t, i = "", { style: a = "", isTitle: s = !1, classes: c = "", useHtmlLabels: l = !0, markdown: u = !0, isNode: d = !0, width: f = 200, addSvgBackground: p = !1 } = {}, m) => {
1865
1862
  if (e.debug("XYZ createText", i, a, s, c, l, d, "addSvgBackground: ", p), l) {
1866
- let e = u ? Dt(i, m) : Et(i), n = await $(r(e), m), s = i.replace(/\\\\/g, "\\");
1863
+ let e = await $(r(u ? Dt(i, m) : Et(i)), m), n = i.replace(/\\\\/g, "\\");
1867
1864
  return await Mt(t, {
1868
1865
  isNode: d,
1869
- label: o(i) ? s : n,
1866
+ label: o(i) ? n : e,
1870
1867
  labelStyle: a.replace("fill:", "color:")
1871
1868
  }, f, c, p, m);
1872
- }
1873
- {
1869
+ } else {
1874
1870
  let e = i.replace(/<br\s*\/?>/g, "<br/>"), r = Z(f, t, u ? Tt(e.replace("<br>", "<br/>"), m) : wt(e), i ? p : !1, !d);
1875
1871
  if (d) {
1876
1872
  /stroke:/.exec(a) && (a = a.replace("stroke:", "lineColor:"));
@@ -1,4 +1,4 @@
1
- import { h as e } from "./src-Dynw_Lub.js";
1
+ import { h as e } from "./src-3T61hYex.js";
2
2
  //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.mjs
3
3
  var t = class {
4
4
  constructor(e) {
@@ -1,11 +1,11 @@
1
- import { g as e, h as t, p as n } from "./src-Dynw_Lub.js";
2
- import { h as r, s as i } from "./chunk-GEFDOKGD-BEzc6NZw.js";
3
- import { B as a, C as o, L as s, V as c, W as l, Z as u, _ as d, a as f, b as p, j as m, s as h, v as g } from "./chunk-7R4GIKGN-scch4dXY.js";
4
- import { t as _ } from "./chunk-FMBD7UC4-JmekSPZP.js";
5
- import { t as v } from "./chunk-JSJVCQXG-_l_UVbaa.js";
6
- import { t as y } from "./chunk-55IACEB6-Tre45n-8.js";
7
- import { t as b } from "./chunk-KX2RTZJC-BUWM8pJz.js";
8
- import { i as x, r as S } from "./mermaid.core-BVGVwWcu.js";
1
+ import { g as e, h as t, p as n } from "./src-3T61hYex.js";
2
+ import { h as r, s as i } from "./chunk-GEFDOKGD-oBEpn5hN.js";
3
+ import { B as a, C as o, L as s, V as c, W as l, Z as u, _ as d, a as f, b as p, j as m, s as h, v as g } from "./chunk-7R4GIKGN-mKY502R8.js";
4
+ import { t as _ } from "./chunk-FMBD7UC4-B88neS61.js";
5
+ import { t as v } from "./chunk-JSJVCQXG-BbVOaXjl.js";
6
+ import { t as y } from "./chunk-55IACEB6-BpkEkHy8.js";
7
+ import { t as b } from "./chunk-KX2RTZJC-Dw3D7Wrw.js";
8
+ import { r as x, t as S } from "./chunk-GLR3WWYH-B2D9kjtF.js";
9
9
  //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WL4C6EOR.mjs
10
10
  var C = (function() {
11
11
  var e = /* @__PURE__ */ t(function(e, t, n, r) {
@@ -700,7 +700,9 @@ var C = (function() {
700
700
  case 101:
701
701
  a[s - 2].push(a[s]), this.$ = a[s - 2];
702
702
  break;
703
- case 103: this.$ = a[s - 1] + a[s];
703
+ case 103:
704
+ this.$ = a[s - 1] + a[s];
705
+ break;
704
706
  }
705
707
  }, "anonymous"),
706
708
  table: [
@@ -1388,7 +1390,7 @@ var C = (function() {
1388
1390
  var v = h.yylloc;
1389
1391
  o.push(v);
1390
1392
  var y = h.options && h.options.ranges;
1391
- this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
1393
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1392
1394
  function b(e) {
1393
1395
  r.length -= 2 * e, a.length -= e, o.length -= e;
1394
1396
  }
@@ -1541,10 +1543,8 @@ var C = (function() {
1541
1543
  if (this._backtrack) {
1542
1544
  t = !1;
1543
1545
  continue;
1544
- }
1545
- return !1;
1546
- }
1547
- if (!this.options.flex) break;
1546
+ } else return !1;
1547
+ } else if (!this.options.flex) break;
1548
1548
  }
1549
1549
  return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1550
1550
  text: "",
@@ -2782,7 +2782,7 @@ var w = C, T = [
2782
2782
  let a = e;
2783
2783
  /\d/.exec(e[0]) && (a = D + a);
2784
2784
  let o = this.classes.get(a);
2785
- o && (o.link = r.formatUrl(t, i), o.linkTarget = i.securityLevel === "sandbox" ? "_top" : typeof n == "string" ? k(n) : "_blank");
2785
+ o && (o.link = r.formatUrl(t, i), i.securityLevel === "sandbox" ? o.linkTarget = "_top" : typeof n == "string" ? o.linkTarget = k(n) : o.linkTarget = "_blank");
2786
2786
  }), this.setCssClass(e, "clickable");
2787
2787
  }
2788
2788
  setClickEvent(e, t, n) {