@blueking/ai-blueking 2.1.4-beta.7 → 2.1.4-beta.8

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 (105) hide show
  1. package/dist/standalone/_baseFor-DZ1vnh4H.js +393 -0
  2. package/dist/standalone/arc-WNacHY26.js +80 -0
  3. package/dist/standalone/architecture-YZFGNWBL-pIa_tKdA.js +3 -0
  4. package/dist/standalone/architectureDiagram-Q4EWVU46-Bfam8Fg3.js +4057 -0
  5. package/dist/standalone/array-CWNufkl9.js +6 -0
  6. package/dist/standalone/blockDiagram-DXYQGD6D-vAb9uyF5.js +3033 -0
  7. package/dist/standalone/c4Diagram-AHTNJAMY-BWACU0ER.js +2961 -0
  8. package/dist/standalone/channel-Br5ChI8U.js +5 -0
  9. package/dist/standalone/chunk-2KRD3SAO-Deh6AASy.js +23 -0
  10. package/dist/standalone/chunk-336JU56O-CFKWNcxR.js +49 -0
  11. package/dist/standalone/chunk-426QAEUC-D_wKNd3w.js +9 -0
  12. package/dist/standalone/chunk-4BX2VUAB-DKC_OBWg.js +8 -0
  13. package/dist/standalone/chunk-4TB4RGXK-HiVG7T1A.js +3254 -0
  14. package/dist/standalone/chunk-55IACEB6-DBivnNb2.js +8 -0
  15. package/dist/standalone/chunk-5FUZZQ4R-tiEjqlP4.js +3638 -0
  16. package/dist/standalone/chunk-5PVQY5BW-BCjrVrWB.js +1299 -0
  17. package/dist/standalone/chunk-67CJDMHE-BX09W6oy.js +23 -0
  18. package/dist/standalone/chunk-7N4EOEYR-G144j5Vc.js +35 -0
  19. package/dist/standalone/chunk-AA7GKIK3-Dx9YCoJ-.js +30 -0
  20. package/dist/standalone/chunk-BSJP7CBP-DE8WR0MI.js +82 -0
  21. package/dist/standalone/chunk-CIAEETIT-Bv86XVLB.js +23 -0
  22. package/dist/standalone/chunk-EDXVE4YY-DE9KzYM-.js +25 -0
  23. package/dist/standalone/chunk-ENJZ2VHE-DlxIC-A3.js +560 -0
  24. package/dist/standalone/chunk-FMBD7UC4-DCkBrKFO.js +5 -0
  25. package/dist/standalone/chunk-FOC6F5B3-C7hwrEZJ.js +23 -0
  26. package/dist/standalone/chunk-ICPOFSXX-B9JXAgJU.js +2772 -0
  27. package/dist/standalone/chunk-K5T4RW27-T6hJxJM0.js +16070 -0
  28. package/dist/standalone/chunk-KGLVRYIC-C0JPhrjn.js +23 -0
  29. package/dist/standalone/chunk-LIHQZDEY-CiavnvWh.js +64 -0
  30. package/dist/standalone/chunk-ORNJ4GCN-BtJ79bik.js +31 -0
  31. package/dist/standalone/chunk-OYMX7WX6-D2UHnmfD.js +2014 -0
  32. package/dist/standalone/chunk-QZHKN3VN-DhzThSvb.js +15 -0
  33. package/dist/standalone/chunk-U2HBQHQK-75Isf1R4.js +1896 -0
  34. package/dist/standalone/chunk-WQLz0Won.js +20 -0
  35. package/dist/standalone/chunk-X2U36JSP-DSzducJI.js +67 -0
  36. package/dist/standalone/chunk-XPW4576I-BFhmu0d4.js +1146 -0
  37. package/dist/standalone/chunk-YZCP3GAM-90EaSO-2.js +60 -0
  38. package/dist/standalone/chunk-ZZ45TVLE-DUagTZ9d.js +32 -0
  39. package/dist/standalone/classDiagram-6PBFFD2Q-Bwt78q4N.js +29 -0
  40. package/dist/standalone/classDiagram-v2-HSJHXN6E-B2qI9-xf.js +29 -0
  41. package/dist/standalone/clone-CBw-BHXl.js +8 -0
  42. package/dist/standalone/cose-bilkent-S5V4N54A-DFJ1nlog.js +2250 -0
  43. package/dist/standalone/cytoscape.esm-DdhenceR.js +18103 -0
  44. package/dist/standalone/dagre-KV5264BT-CXTBtAae.js +293 -0
  45. package/dist/standalone/dagre-kfvGmNUa.js +1606 -0
  46. package/dist/standalone/defaultLocale-bckJcYh1.js +201 -0
  47. package/dist/standalone/diagram-5BDNPKRD--gLHDKg-.js +101 -0
  48. package/dist/standalone/diagram-G4DWMVQ6-BwLE9Hsf.js +524 -0
  49. package/dist/standalone/diagram-MMDJMWI5-CoilYxa0.js +213 -0
  50. package/dist/standalone/diagram-TYMM5635-BupwRdr6.js +133 -0
  51. package/dist/standalone/dist-Dlj1jr8W.js +59 -0
  52. package/dist/standalone/erDiagram-SMLLAGMA-tIdn6ZCM.js +1700 -0
  53. package/dist/standalone/flatten-CXxC4cn2.js +40 -0
  54. package/dist/standalone/flowDiagram-DWJPFMVM-C86bLTAY.js +4146 -0
  55. package/dist/standalone/ganttDiagram-T4ZO3ILL-BT23lv_X.js +3077 -0
  56. package/dist/standalone/gitGraph-7Q5UKJZL-C-7nG8PF.js +3 -0
  57. package/dist/standalone/gitGraphDiagram-UUTBAWPF-DT1BGQsP.js +728 -0
  58. package/dist/standalone/graphlib-DrXiQBFg.js +373 -0
  59. package/dist/standalone/index.es.min.js +59705 -0
  60. package/dist/standalone/index.iife.min.js +3502 -0
  61. package/dist/standalone/index.umd.min.js +3502 -0
  62. package/dist/standalone/info-OMHHGYJF-BOS7mrON.js +3 -0
  63. package/dist/standalone/infoDiagram-42DDH7IO-Dx7LFK0B.js +19 -0
  64. package/dist/standalone/init-B75p2clj.js +15 -0
  65. package/dist/standalone/isEmpty-CVG4Bj-P.js +35 -0
  66. package/dist/standalone/ishikawaDiagram-UXIWVN3A-CX4cX3qb.js +718 -0
  67. package/dist/standalone/journeyDiagram-VCZTEJTY-BCvxmmFn.js +883 -0
  68. package/dist/standalone/kanban-definition-6JOO6SKY-SVINWaiM.js +973 -0
  69. package/dist/standalone/katex-CKrw0rbA.js +22016 -0
  70. package/dist/standalone/line-BF1XS-Ng.js +34 -0
  71. package/dist/standalone/linear-DGQDIL28.js +289 -0
  72. package/dist/standalone/mermaid-parser.core-Blz-Qy2h.js +69 -0
  73. package/dist/standalone/mermaid.core-CHTh1JGx.js +944 -0
  74. package/dist/standalone/mindmap-definition-QFDTVHPH-1Trzro3y.js +1009 -0
  75. package/dist/standalone/ordinal-F3U6aXtP.js +65 -0
  76. package/dist/standalone/packet-4T2RLAQJ-ai5Omp1h.js +3 -0
  77. package/dist/standalone/path-Dm3C8WEs.js +85 -0
  78. package/dist/standalone/pie-ZZUOXDRM-Df1rG6QC.js +3 -0
  79. package/dist/standalone/pieDiagram-DEJITSTG-D5Omb898.js +165 -0
  80. package/dist/standalone/purify.es-CZ_RvYUu.js +549 -0
  81. package/dist/standalone/quadrantDiagram-34T5L4WZ-Ct4g9T4o.js +1974 -0
  82. package/dist/standalone/radar-PYXPWWZC-B2t6k6Fg.js +3 -0
  83. package/dist/standalone/reduce-DbMsJ4nx.js +532 -0
  84. package/dist/standalone/requirementDiagram-MS252O5E-CP0BUgnz.js +2221 -0
  85. package/dist/standalone/rough.esm-UCEI3PYn.js +1352 -0
  86. package/dist/standalone/sankeyDiagram-XADWPNL6-D6C7yZ3k.js +920 -0
  87. package/dist/standalone/sequenceDiagram-FGHM5R23-KeodespT.js +4157 -0
  88. package/dist/standalone/src-CFVe5TPD.js +2146 -0
  89. package/dist/standalone/stateDiagram-FHFEXIEX-DAupoS9U.js +217 -0
  90. package/dist/standalone/stateDiagram-v2-QKLJ7IA2-C1Lw_i_z.js +27 -0
  91. package/dist/standalone/style.css +1 -0
  92. package/dist/standalone/timeline-definition-GMOUNBTQ-Cwhj84lX.js +1068 -0
  93. package/dist/standalone/treeView-SZITEDCU-BnoMeJSb.js +3 -0
  94. package/dist/standalone/treemap-W4RFUUIX-B38XFBZF.js +3 -0
  95. package/dist/standalone/vennDiagram-DHZGUBPP-_1PHloeO.js +1858 -0
  96. package/dist/standalone/wardley-RL74JXVD-bB8BBy_Y.js +3 -0
  97. package/dist/standalone/wardleyDiagram-NUSXRM2D-DRLCx-qh.js +578 -0
  98. package/dist/standalone/xychartDiagram-5P7HB3ND-Bz2-4Ufi.js +2044 -0
  99. package/dist/standalone-mount-core.d.ts +34 -0
  100. package/dist/standalone-mount-core.d.ts.map +1 -0
  101. package/dist/standalone-mount.d.ts +14 -0
  102. package/dist/standalone-mount.d.ts.map +1 -0
  103. package/dist/standalone.d.ts +8 -0
  104. package/dist/standalone.d.ts.map +1 -0
  105. package/package.json +12 -3
@@ -0,0 +1,373 @@
1
+ import { C as e, E as t, S as n, T as r, a as i, b as a, c as o, i as s, n as c, s as l, t as u, w as d, x as f } from "./reduce-DbMsJ4nx.js";
2
+ import { C as p, E as m, g as ee, h, l as g, p as te, u as _, v, w as ne } from "./_baseFor-DZ1vnh4H.js";
3
+ import { n as y, t as b } from "./isEmpty-CVG4Bj-P.js";
4
+ import { A as re, C as x, D as S, E as ie, M as ae, O as oe, T as se, j as C, k as ce, w, x as T, y as le } from "./chunk-5PVQY5BW-BCjrVrWB.js";
5
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js
6
+ function ue(e, t) {
7
+ return e && w(t, f(t), e);
8
+ }
9
+ //#endregion
10
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js
11
+ function de(e, t) {
12
+ return e && w(t, x(t), e);
13
+ }
14
+ //#endregion
15
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js
16
+ function fe(e, t) {
17
+ return w(e, n(e), t);
18
+ }
19
+ //#endregion
20
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js
21
+ var E = Object.getOwnPropertySymbols ? function(e) {
22
+ for (var t = []; e;) r(t, n(e)), e = oe(e);
23
+ return t;
24
+ } : e;
25
+ //#endregion
26
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js
27
+ function pe(e, t) {
28
+ return w(e, E(e), t);
29
+ }
30
+ //#endregion
31
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js
32
+ function me(e) {
33
+ return d(e, x, E);
34
+ }
35
+ //#endregion
36
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js
37
+ var he = Object.prototype.hasOwnProperty;
38
+ function ge(e) {
39
+ var t = e.length, n = new e.constructor(t);
40
+ return t && typeof e[0] == "string" && he.call(e, "index") && (n.index = e.index, n.input = e.input), n;
41
+ }
42
+ //#endregion
43
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js
44
+ function _e(e, t) {
45
+ var n = t ? C(e.buffer) : e.buffer;
46
+ return new e.constructor(n, e.byteOffset, e.byteLength);
47
+ }
48
+ //#endregion
49
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js
50
+ var D = /\w*$/;
51
+ function O(e) {
52
+ var t = new e.constructor(e.source, D.exec(e));
53
+ return t.lastIndex = e.lastIndex, t;
54
+ }
55
+ //#endregion
56
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js
57
+ var k = m ? m.prototype : void 0, A = k ? k.valueOf : void 0;
58
+ function j(e) {
59
+ return A ? Object(A.call(e)) : {};
60
+ }
61
+ //#endregion
62
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js
63
+ var M = "[object Boolean]", N = "[object Date]", P = "[object Map]", F = "[object Number]", I = "[object RegExp]", ve = "[object Set]", ye = "[object String]", be = "[object Symbol]", xe = "[object ArrayBuffer]", Se = "[object DataView]", Ce = "[object Float32Array]", we = "[object Float64Array]", Te = "[object Int8Array]", Ee = "[object Int16Array]", De = "[object Int32Array]", Oe = "[object Uint8Array]", ke = "[object Uint8ClampedArray]", Ae = "[object Uint16Array]", je = "[object Uint32Array]";
64
+ function Me(e, t, n) {
65
+ var r = e.constructor;
66
+ switch (t) {
67
+ case xe: return C(e);
68
+ case M:
69
+ case N: return new r(+e);
70
+ case Se: return _e(e, n);
71
+ case Ce:
72
+ case we:
73
+ case Te:
74
+ case Ee:
75
+ case De:
76
+ case Oe:
77
+ case ke:
78
+ case Ae:
79
+ case je: return re(e, n);
80
+ case P: return new r();
81
+ case F:
82
+ case ye: return new r(e);
83
+ case I: return O(e);
84
+ case ve: return new r();
85
+ case be: return j(e);
86
+ }
87
+ }
88
+ //#endregion
89
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js
90
+ var Ne = "[object Map]";
91
+ function Pe(e) {
92
+ return h(e) && y(e) == Ne;
93
+ }
94
+ //#endregion
95
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.js
96
+ var L = g && g.isMap, Fe = L ? _(L) : Pe, Ie = "[object Set]";
97
+ function Le(e) {
98
+ return h(e) && y(e) == Ie;
99
+ }
100
+ //#endregion
101
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.js
102
+ var R = g && g.isSet, Re = R ? _(R) : Le, ze = 1, Be = 2, Ve = 4, z = "[object Arguments]", He = "[object Array]", Ue = "[object Boolean]", We = "[object Date]", Ge = "[object Error]", B = "[object Function]", Ke = "[object GeneratorFunction]", qe = "[object Map]", Je = "[object Number]", V = "[object Object]", Ye = "[object RegExp]", Xe = "[object Set]", Ze = "[object String]", Qe = "[object Symbol]", $e = "[object WeakMap]", et = "[object ArrayBuffer]", tt = "[object DataView]", nt = "[object Float32Array]", rt = "[object Float64Array]", it = "[object Int8Array]", at = "[object Int16Array]", ot = "[object Int32Array]", st = "[object Uint8Array]", ct = "[object Uint8ClampedArray]", lt = "[object Uint16Array]", ut = "[object Uint32Array]", H = {};
103
+ H[z] = H[He] = H[et] = H[tt] = H[Ue] = H[We] = H[nt] = H[rt] = H[it] = H[at] = H[ot] = H[qe] = H[Je] = H[V] = H[Ye] = H[Xe] = H[Ze] = H[Qe] = H[st] = H[ct] = H[lt] = H[ut] = !0, H[Ge] = H[B] = H[$e] = !1;
104
+ function U(e, t, n, r, i, o) {
105
+ var c, l = t & ze, u = t & Be, d = t & Ve;
106
+ if (n && (c = i ? n(e, r, i, o) : n(e)), c !== void 0) return c;
107
+ if (!ne(e)) return e;
108
+ var p = ee(e);
109
+ if (p) {
110
+ if (c = ge(e), !l) return ce(e, c);
111
+ } else {
112
+ var m = y(e), h = m == B || m == Ke;
113
+ if (te(e)) return ae(e, l);
114
+ if (m == V || m == z || h && !i) {
115
+ if (c = u || h ? {} : S(e), !l) return u ? pe(e, de(c, e)) : fe(e, ue(c, e));
116
+ } else {
117
+ if (!H[m]) return i ? e : {};
118
+ c = Me(e, m, l);
119
+ }
120
+ }
121
+ o ||= new v();
122
+ var g = o.get(e);
123
+ if (g) return g;
124
+ o.set(e, c), Re(e) ? e.forEach(function(r) {
125
+ c.add(U(r, t, n, r, e, o));
126
+ }) : Fe(e) && e.forEach(function(r, i) {
127
+ c.set(i, U(r, t, n, i, e, o));
128
+ });
129
+ var _ = p ? void 0 : (d ? u ? me : a : u ? x : f)(e);
130
+ return s(_ || e, function(r, i) {
131
+ _ && (i = r, r = e[i]), se(c, i, U(r, t, n, i, e, o));
132
+ }), c;
133
+ }
134
+ //#endregion
135
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseValues.js
136
+ function W(e, n) {
137
+ return t(n, function(t) {
138
+ return e[t];
139
+ });
140
+ }
141
+ //#endregion
142
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/values.js
143
+ function G(e) {
144
+ return e == null ? [] : W(e, f(e));
145
+ }
146
+ //#endregion
147
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isUndefined.js
148
+ function K(e) {
149
+ return e === void 0;
150
+ }
151
+ //#endregion
152
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/union.js
153
+ var dt = le(function(e) {
154
+ return i(l(e, 1, ie, !0));
155
+ }), ft = "\0", q = "\0", J = "", Y = class {
156
+ constructor(e = {}) {
157
+ this._isDirected = Object.prototype.hasOwnProperty.call(e, "directed") ? e.directed : !0, this._isMultigraph = Object.prototype.hasOwnProperty.call(e, "multigraph") ? e.multigraph : !1, this._isCompound = Object.prototype.hasOwnProperty.call(e, "compound") ? e.compound : !1, this._label = void 0, this._defaultNodeLabelFn = T(void 0), this._defaultEdgeLabelFn = T(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[q] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {};
158
+ }
159
+ isDirected() {
160
+ return this._isDirected;
161
+ }
162
+ isMultigraph() {
163
+ return this._isMultigraph;
164
+ }
165
+ isCompound() {
166
+ return this._isCompound;
167
+ }
168
+ setGraph(e) {
169
+ return this._label = e, this;
170
+ }
171
+ graph() {
172
+ return this._label;
173
+ }
174
+ setDefaultNodeLabel(e) {
175
+ return p(e) || (e = T(e)), this._defaultNodeLabelFn = e, this;
176
+ }
177
+ nodeCount() {
178
+ return this._nodeCount;
179
+ }
180
+ nodes() {
181
+ return f(this._nodes);
182
+ }
183
+ sources() {
184
+ var e = this;
185
+ return o(this.nodes(), function(t) {
186
+ return b(e._in[t]);
187
+ });
188
+ }
189
+ sinks() {
190
+ var e = this;
191
+ return o(this.nodes(), function(t) {
192
+ return b(e._out[t]);
193
+ });
194
+ }
195
+ setNodes(e, t) {
196
+ var n = arguments, r = this;
197
+ return c(e, function(e) {
198
+ n.length > 1 ? r.setNode(e, t) : r.setNode(e);
199
+ }), this;
200
+ }
201
+ setNode(e, t) {
202
+ return Object.prototype.hasOwnProperty.call(this._nodes, e) ? (arguments.length > 1 && (this._nodes[e] = t), this) : (this._nodes[e] = arguments.length > 1 ? t : this._defaultNodeLabelFn(e), this._isCompound && (this._parent[e] = q, this._children[e] = {}, this._children[q][e] = !0), this._in[e] = {}, this._preds[e] = {}, this._out[e] = {}, this._sucs[e] = {}, ++this._nodeCount, this);
203
+ }
204
+ node(e) {
205
+ return this._nodes[e];
206
+ }
207
+ hasNode(e) {
208
+ return Object.prototype.hasOwnProperty.call(this._nodes, e);
209
+ }
210
+ removeNode(e) {
211
+ if (Object.prototype.hasOwnProperty.call(this._nodes, e)) {
212
+ var t = (e) => this.removeEdge(this._edgeObjs[e]);
213
+ delete this._nodes[e], this._isCompound && (this._removeFromParentsChildList(e), delete this._parent[e], c(this.children(e), (e) => {
214
+ this.setParent(e);
215
+ }), delete this._children[e]), c(f(this._in[e]), t), delete this._in[e], delete this._preds[e], c(f(this._out[e]), t), delete this._out[e], delete this._sucs[e], --this._nodeCount;
216
+ }
217
+ return this;
218
+ }
219
+ setParent(e, t) {
220
+ if (!this._isCompound) throw Error("Cannot set parent in a non-compound graph");
221
+ if (K(t)) t = q;
222
+ else {
223
+ t += "";
224
+ for (var n = t; !K(n); n = this.parent(n)) if (n === e) throw Error("Setting " + t + " as parent of " + e + " would create a cycle");
225
+ this.setNode(t);
226
+ }
227
+ return this.setNode(e), this._removeFromParentsChildList(e), this._parent[e] = t, this._children[t][e] = !0, this;
228
+ }
229
+ _removeFromParentsChildList(e) {
230
+ delete this._children[this._parent[e]][e];
231
+ }
232
+ parent(e) {
233
+ if (this._isCompound) {
234
+ var t = this._parent[e];
235
+ if (t !== q) return t;
236
+ }
237
+ }
238
+ children(e) {
239
+ if (K(e) && (e = q), this._isCompound) {
240
+ var t = this._children[e];
241
+ if (t) return f(t);
242
+ } else if (e === q) return this.nodes();
243
+ else if (this.hasNode(e)) return [];
244
+ }
245
+ predecessors(e) {
246
+ var t = this._preds[e];
247
+ if (t) return f(t);
248
+ }
249
+ successors(e) {
250
+ var t = this._sucs[e];
251
+ if (t) return f(t);
252
+ }
253
+ neighbors(e) {
254
+ var t = this.predecessors(e);
255
+ if (t) return dt(t, this.successors(e));
256
+ }
257
+ isLeaf(e) {
258
+ return (this.isDirected() ? this.successors(e) : this.neighbors(e)).length === 0;
259
+ }
260
+ filterNodes(e) {
261
+ var t = new this.constructor({
262
+ directed: this._isDirected,
263
+ multigraph: this._isMultigraph,
264
+ compound: this._isCompound
265
+ });
266
+ t.setGraph(this.graph());
267
+ var n = this;
268
+ c(this._nodes, function(n, r) {
269
+ e(r) && t.setNode(r, n);
270
+ }), c(this._edgeObjs, function(e) {
271
+ t.hasNode(e.v) && t.hasNode(e.w) && t.setEdge(e, n.edge(e));
272
+ });
273
+ var r = {};
274
+ function i(e) {
275
+ var a = n.parent(e);
276
+ return a === void 0 || t.hasNode(a) ? (r[e] = a, a) : a in r ? r[a] : i(a);
277
+ }
278
+ return this._isCompound && c(t.nodes(), function(e) {
279
+ t.setParent(e, i(e));
280
+ }), t;
281
+ }
282
+ setDefaultEdgeLabel(e) {
283
+ return p(e) || (e = T(e)), this._defaultEdgeLabelFn = e, this;
284
+ }
285
+ edgeCount() {
286
+ return this._edgeCount;
287
+ }
288
+ edges() {
289
+ return G(this._edgeObjs);
290
+ }
291
+ setPath(e, t) {
292
+ var n = this, r = arguments;
293
+ return u(e, function(e, i) {
294
+ return r.length > 1 ? n.setEdge(e, i, t) : n.setEdge(e, i), i;
295
+ }), this;
296
+ }
297
+ setEdge() {
298
+ var e, t, n, r, i = !1, a = arguments[0];
299
+ typeof a == "object" && a && "v" in a ? (e = a.v, t = a.w, n = a.name, arguments.length === 2 && (r = arguments[1], i = !0)) : (e = a, t = arguments[1], n = arguments[3], arguments.length > 2 && (r = arguments[2], i = !0)), e = "" + e, t = "" + t, K(n) || (n = "" + n);
300
+ var o = Q(this._isDirected, e, t, n);
301
+ if (Object.prototype.hasOwnProperty.call(this._edgeLabels, o)) return i && (this._edgeLabels[o] = r), this;
302
+ if (!K(n) && !this._isMultigraph) throw Error("Cannot set a named edge when isMultigraph = false");
303
+ this.setNode(e), this.setNode(t), this._edgeLabels[o] = i ? r : this._defaultEdgeLabelFn(e, t, n);
304
+ var s = pt(this._isDirected, e, t, n);
305
+ return e = s.v, t = s.w, Object.freeze(s), this._edgeObjs[o] = s, X(this._preds[t], e), X(this._sucs[e], t), this._in[t][o] = s, this._out[e][o] = s, this._edgeCount++, this;
306
+ }
307
+ edge(e, t, n) {
308
+ var r = arguments.length === 1 ? $(this._isDirected, arguments[0]) : Q(this._isDirected, e, t, n);
309
+ return this._edgeLabels[r];
310
+ }
311
+ hasEdge(e, t, n) {
312
+ var r = arguments.length === 1 ? $(this._isDirected, arguments[0]) : Q(this._isDirected, e, t, n);
313
+ return Object.prototype.hasOwnProperty.call(this._edgeLabels, r);
314
+ }
315
+ removeEdge(e, t, n) {
316
+ var r = arguments.length === 1 ? $(this._isDirected, arguments[0]) : Q(this._isDirected, e, t, n), i = this._edgeObjs[r];
317
+ return i && (e = i.v, t = i.w, delete this._edgeLabels[r], delete this._edgeObjs[r], Z(this._preds[t], e), Z(this._sucs[e], t), delete this._in[t][r], delete this._out[e][r], this._edgeCount--), this;
318
+ }
319
+ inEdges(e, t) {
320
+ var n = this._in[e];
321
+ if (n) {
322
+ var r = G(n);
323
+ return t ? o(r, function(e) {
324
+ return e.v === t;
325
+ }) : r;
326
+ }
327
+ }
328
+ outEdges(e, t) {
329
+ var n = this._out[e];
330
+ if (n) {
331
+ var r = G(n);
332
+ return t ? o(r, function(e) {
333
+ return e.w === t;
334
+ }) : r;
335
+ }
336
+ }
337
+ nodeEdges(e, t) {
338
+ var n = this.inEdges(e, t);
339
+ if (n) return n.concat(this.outEdges(e, t));
340
+ }
341
+ };
342
+ Y.prototype._nodeCount = 0, Y.prototype._edgeCount = 0;
343
+ function X(e, t) {
344
+ e[t] ? e[t]++ : e[t] = 1;
345
+ }
346
+ function Z(e, t) {
347
+ --e[t] || delete e[t];
348
+ }
349
+ function Q(e, t, n, r) {
350
+ var i = "" + t, a = "" + n;
351
+ if (!e && i > a) {
352
+ var o = i;
353
+ i = a, a = o;
354
+ }
355
+ return i + J + a + J + (K(r) ? ft : r);
356
+ }
357
+ function pt(e, t, n, r) {
358
+ var i = "" + t, a = "" + n;
359
+ if (!e && i > a) {
360
+ var o = i;
361
+ i = a, a = o;
362
+ }
363
+ var s = {
364
+ v: i,
365
+ w: a
366
+ };
367
+ return r && (s.name = r), s;
368
+ }
369
+ function $(e, t) {
370
+ return Q(e, t.v, t.w, t.name);
371
+ }
372
+ //#endregion
373
+ export { U as i, K as n, G as r, Y as t };