@akshay-rajput/git-graph-svg 1.0.4 → 1.0.7

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.
@@ -1,105 +1,105 @@
1
- import Te, { useMemo as We } from "react";
2
- var le = { exports: {} }, ee = {};
3
- var Ye;
4
- function vr() {
5
- if (Ye) return ee;
6
- Ye = 1;
7
- var $ = Te, A = /* @__PURE__ */ Symbol.for("react.element"), V = /* @__PURE__ */ Symbol.for("react.fragment"), j = Object.prototype.hasOwnProperty, F = $.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, M = { key: !0, ref: !0, __self: !0, __source: !0 };
8
- function y(E, l, k) {
9
- var h, x = {}, S = null, U = null;
10
- k !== void 0 && (S = "" + k), l.key !== void 0 && (S = "" + l.key), l.ref !== void 0 && (U = l.ref);
11
- for (h in l) j.call(l, h) && !M.hasOwnProperty(h) && (x[h] = l[h]);
12
- if (E && E.defaultProps) for (h in l = E.defaultProps, l) x[h] === void 0 && (x[h] = l[h]);
13
- return { $$typeof: A, type: E, key: S, ref: U, props: x, _owner: F.current };
1
+ import Ir, { useMemo as z } from "react";
2
+ var X = { exports: {} }, N = {};
3
+ var Dr;
4
+ function ve() {
5
+ if (Dr) return N;
6
+ Dr = 1;
7
+ var P = Ir, j = /* @__PURE__ */ Symbol.for("react.element"), $ = /* @__PURE__ */ Symbol.for("react.fragment"), x = Object.prototype.hasOwnProperty, k = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, D = { key: !0, ref: !0, __self: !0, __source: !0 };
8
+ function _(T, f, w) {
9
+ var p, O = {}, m = null, I = null;
10
+ w !== void 0 && (m = "" + w), f.key !== void 0 && (m = "" + f.key), f.ref !== void 0 && (I = f.ref);
11
+ for (p in f) x.call(f, p) && !D.hasOwnProperty(p) && (O[p] = f[p]);
12
+ if (T && T.defaultProps) for (p in f = T.defaultProps, f) O[p] === void 0 && (O[p] = f[p]);
13
+ return { $$typeof: j, type: T, key: m, ref: I, props: O, _owner: k.current };
14
14
  }
15
- return ee.Fragment = V, ee.jsx = y, ee.jsxs = y, ee;
15
+ return N.Fragment = $, N.jsx = _, N.jsxs = _, N;
16
16
  }
17
- var re = {};
18
- var Le;
19
- function pr() {
20
- return Le || (Le = 1, process.env.NODE_ENV !== "production" && (function() {
21
- var $ = Te, A = /* @__PURE__ */ Symbol.for("react.element"), V = /* @__PURE__ */ Symbol.for("react.portal"), j = /* @__PURE__ */ Symbol.for("react.fragment"), F = /* @__PURE__ */ Symbol.for("react.strict_mode"), M = /* @__PURE__ */ Symbol.for("react.profiler"), y = /* @__PURE__ */ Symbol.for("react.provider"), E = /* @__PURE__ */ Symbol.for("react.context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), k = /* @__PURE__ */ Symbol.for("react.suspense"), h = /* @__PURE__ */ Symbol.for("react.suspense_list"), x = /* @__PURE__ */ Symbol.for("react.memo"), S = /* @__PURE__ */ Symbol.for("react.lazy"), U = /* @__PURE__ */ Symbol.for("react.offscreen"), s = Symbol.iterator, v = "@@iterator";
22
- function p(e) {
23
- if (e === null || typeof e != "object")
17
+ var J = {};
18
+ var Ar;
19
+ function pe() {
20
+ return Ar || (Ar = 1, process.env.NODE_ENV !== "production" && (function() {
21
+ var P = Ir, j = /* @__PURE__ */ Symbol.for("react.element"), $ = /* @__PURE__ */ Symbol.for("react.portal"), x = /* @__PURE__ */ Symbol.for("react.fragment"), k = /* @__PURE__ */ Symbol.for("react.strict_mode"), D = /* @__PURE__ */ Symbol.for("react.profiler"), _ = /* @__PURE__ */ Symbol.for("react.provider"), T = /* @__PURE__ */ Symbol.for("react.context"), f = /* @__PURE__ */ Symbol.for("react.forward_ref"), w = /* @__PURE__ */ Symbol.for("react.suspense"), p = /* @__PURE__ */ Symbol.for("react.suspense_list"), O = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), I = /* @__PURE__ */ Symbol.for("react.offscreen"), i = Symbol.iterator, c = "@@iterator";
22
+ function h(r) {
23
+ if (r === null || typeof r != "object")
24
24
  return null;
25
- var r = s && e[s] || e[v];
26
- return typeof r == "function" ? r : null;
25
+ var e = i && r[i] || r[c];
26
+ return typeof e == "function" ? e : null;
27
27
  }
28
- var _ = $.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
29
- function i(e) {
28
+ var E = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
29
+ function s(r) {
30
30
  {
31
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
32
- t[n - 1] = arguments[n];
33
- R("error", e, t);
31
+ for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), t = 1; t < e; t++)
32
+ n[t - 1] = arguments[t];
33
+ S("error", r, n);
34
34
  }
35
35
  }
36
- function R(e, r, t) {
36
+ function S(r, e, n) {
37
37
  {
38
- var n = _.ReactDebugCurrentFrame, u = n.getStackAddendum();
39
- u !== "" && (r += "%s", t = t.concat([u]));
40
- var c = t.map(function(o) {
38
+ var t = E.ReactDebugCurrentFrame, u = t.getStackAddendum();
39
+ u !== "" && (e += "%s", n = n.concat([u]));
40
+ var l = n.map(function(o) {
41
41
  return String(o);
42
42
  });
43
- c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
43
+ l.unshift("Warning: " + e), Function.prototype.apply.call(console[r], console, l);
44
44
  }
45
45
  }
46
- var D = !1, I = !1, O = !1, N = !1, fe = !1, J;
47
- J = /* @__PURE__ */ Symbol.for("react.module.reference");
48
- function de(e) {
49
- return !!(typeof e == "string" || typeof e == "function" || e === j || e === M || fe || e === F || e === k || e === h || N || e === U || D || I || O || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === x || e.$$typeof === y || e.$$typeof === E || e.$$typeof === l || // This needs to include all possible module reference object
46
+ var Y = !1, y = !1, ir = !1, L = !1, Wr = !1, ur;
47
+ ur = /* @__PURE__ */ Symbol.for("react.module.reference");
48
+ function Mr(r) {
49
+ return !!(typeof r == "string" || typeof r == "function" || r === x || r === D || Wr || r === k || r === w || r === p || L || r === I || Y || y || ir || typeof r == "object" && r !== null && (r.$$typeof === m || r.$$typeof === O || r.$$typeof === _ || r.$$typeof === T || r.$$typeof === f || // This needs to include all possible module reference object
50
50
  // types supported by any Flight configuration anywhere since
51
51
  // we don't know which Flight build this will end up being used
52
52
  // with.
53
- e.$$typeof === J || e.getModuleId !== void 0));
53
+ r.$$typeof === ur || r.getModuleId !== void 0));
54
54
  }
55
- function ve(e, r, t) {
56
- var n = e.displayName;
57
- if (n)
58
- return n;
59
- var u = r.displayName || r.name || "";
60
- return u !== "" ? t + "(" + u + ")" : t;
55
+ function Yr(r, e, n) {
56
+ var t = r.displayName;
57
+ if (t)
58
+ return t;
59
+ var u = e.displayName || e.name || "";
60
+ return u !== "" ? n + "(" + u + ")" : n;
61
61
  }
62
- function te(e) {
63
- return e.displayName || "Context";
62
+ function sr(r) {
63
+ return r.displayName || "Context";
64
64
  }
65
- function C(e) {
66
- if (e == null)
65
+ function C(r) {
66
+ if (r == null)
67
67
  return null;
68
- if (typeof e.tag == "number" && i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
69
- return e.displayName || e.name || null;
70
- if (typeof e == "string")
71
- return e;
72
- switch (e) {
73
- case j:
68
+ if (typeof r.tag == "number" && s("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
69
+ return r.displayName || r.name || null;
70
+ if (typeof r == "string")
71
+ return r;
72
+ switch (r) {
73
+ case x:
74
74
  return "Fragment";
75
- case V:
75
+ case $:
76
76
  return "Portal";
77
- case M:
77
+ case D:
78
78
  return "Profiler";
79
- case F:
80
- return "StrictMode";
81
79
  case k:
80
+ return "StrictMode";
81
+ case w:
82
82
  return "Suspense";
83
- case h:
83
+ case p:
84
84
  return "SuspenseList";
85
85
  }
86
- if (typeof e == "object")
87
- switch (e.$$typeof) {
88
- case E:
89
- var r = e;
90
- return te(r) + ".Consumer";
91
- case y:
92
- var t = e;
93
- return te(t._context) + ".Provider";
94
- case l:
95
- return ve(e, e.render, "ForwardRef");
96
- case x:
97
- var n = e.displayName || null;
98
- return n !== null ? n : C(e.type) || "Memo";
99
- case S: {
100
- var u = e, c = u._payload, o = u._init;
86
+ if (typeof r == "object")
87
+ switch (r.$$typeof) {
88
+ case T:
89
+ var e = r;
90
+ return sr(e) + ".Consumer";
91
+ case _:
92
+ var n = r;
93
+ return sr(n._context) + ".Provider";
94
+ case f:
95
+ return Yr(r, r.render, "ForwardRef");
96
+ case O:
97
+ var t = r.displayName || null;
98
+ return t !== null ? t : C(r.type) || "Memo";
99
+ case m: {
100
+ var u = r, l = u._payload, o = u._init;
101
101
  try {
102
- return C(o(c));
102
+ return C(o(l));
103
103
  } catch {
104
104
  return null;
105
105
  }
@@ -107,103 +107,103 @@ function pr() {
107
107
  }
108
108
  return null;
109
109
  }
110
- var w = Object.assign, m = 0, P, q, ne, z, H, ae, oe;
111
- function ie() {
110
+ var A = Object.assign, V = 0, lr, fr, cr, dr, vr, pr, hr;
111
+ function br() {
112
112
  }
113
- ie.__reactDisabledLog = !0;
114
- function pe() {
113
+ br.__reactDisabledLog = !0;
114
+ function Lr() {
115
115
  {
116
- if (m === 0) {
117
- P = console.log, q = console.info, ne = console.warn, z = console.error, H = console.group, ae = console.groupCollapsed, oe = console.groupEnd;
118
- var e = {
116
+ if (V === 0) {
117
+ lr = console.log, fr = console.info, cr = console.warn, dr = console.error, vr = console.group, pr = console.groupCollapsed, hr = console.groupEnd;
118
+ var r = {
119
119
  configurable: !0,
120
120
  enumerable: !0,
121
- value: ie,
121
+ value: br,
122
122
  writable: !0
123
123
  };
124
124
  Object.defineProperties(console, {
125
- info: e,
126
- log: e,
127
- warn: e,
128
- error: e,
129
- group: e,
130
- groupCollapsed: e,
131
- groupEnd: e
125
+ info: r,
126
+ log: r,
127
+ warn: r,
128
+ error: r,
129
+ group: r,
130
+ groupCollapsed: r,
131
+ groupEnd: r
132
132
  });
133
133
  }
134
- m++;
134
+ V++;
135
135
  }
136
136
  }
137
- function ue() {
137
+ function Vr() {
138
138
  {
139
- if (m--, m === 0) {
140
- var e = {
139
+ if (V--, V === 0) {
140
+ var r = {
141
141
  configurable: !0,
142
142
  enumerable: !0,
143
143
  writable: !0
144
144
  };
145
145
  Object.defineProperties(console, {
146
- log: w({}, e, {
147
- value: P
146
+ log: A({}, r, {
147
+ value: lr
148
148
  }),
149
- info: w({}, e, {
150
- value: q
149
+ info: A({}, r, {
150
+ value: fr
151
151
  }),
152
- warn: w({}, e, {
153
- value: ne
152
+ warn: A({}, r, {
153
+ value: cr
154
154
  }),
155
- error: w({}, e, {
156
- value: z
155
+ error: A({}, r, {
156
+ value: dr
157
157
  }),
158
- group: w({}, e, {
159
- value: H
158
+ group: A({}, r, {
159
+ value: vr
160
160
  }),
161
- groupCollapsed: w({}, e, {
162
- value: ae
161
+ groupCollapsed: A({}, r, {
162
+ value: pr
163
163
  }),
164
- groupEnd: w({}, e, {
165
- value: oe
164
+ groupEnd: A({}, r, {
165
+ value: hr
166
166
  })
167
167
  });
168
168
  }
169
- m < 0 && i("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
169
+ V < 0 && s("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
170
170
  }
171
171
  }
172
- var W = _.ReactCurrentDispatcher, Y;
173
- function B(e, r, t) {
172
+ var H = E.ReactCurrentDispatcher, Z;
173
+ function q(r, e, n) {
174
174
  {
175
- if (Y === void 0)
175
+ if (Z === void 0)
176
176
  try {
177
177
  throw Error();
178
178
  } catch (u) {
179
- var n = u.stack.trim().match(/\n( *(at )?)/);
180
- Y = n && n[1] || "";
179
+ var t = u.stack.trim().match(/\n( *(at )?)/);
180
+ Z = t && t[1] || "";
181
181
  }
182
182
  return `
183
- ` + Y + e;
183
+ ` + Z + r;
184
184
  }
185
185
  }
186
- var Z = !1, G;
186
+ var Q = !1, B;
187
187
  {
188
- var he = typeof WeakMap == "function" ? WeakMap : Map;
189
- G = new he();
188
+ var Ur = typeof WeakMap == "function" ? WeakMap : Map;
189
+ B = new Ur();
190
190
  }
191
- function xe(e, r) {
192
- if (!e || Z)
191
+ function gr(r, e) {
192
+ if (!r || Q)
193
193
  return "";
194
194
  {
195
- var t = G.get(e);
196
- if (t !== void 0)
197
- return t;
195
+ var n = B.get(r);
196
+ if (n !== void 0)
197
+ return n;
198
198
  }
199
- var n;
200
- Z = !0;
199
+ var t;
200
+ Q = !0;
201
201
  var u = Error.prepareStackTrace;
202
202
  Error.prepareStackTrace = void 0;
203
- var c;
204
- c = W.current, W.current = null, pe();
203
+ var l;
204
+ l = H.current, H.current = null, Lr();
205
205
  try {
206
- if (r) {
206
+ if (e) {
207
207
  var o = function() {
208
208
  throw Error();
209
209
  };
@@ -214,196 +214,196 @@ function pr() {
214
214
  }), typeof Reflect == "object" && Reflect.construct) {
215
215
  try {
216
216
  Reflect.construct(o, []);
217
- } catch (b) {
218
- n = b;
217
+ } catch (g) {
218
+ t = g;
219
219
  }
220
- Reflect.construct(e, [], o);
220
+ Reflect.construct(r, [], o);
221
221
  } else {
222
222
  try {
223
223
  o.call();
224
- } catch (b) {
225
- n = b;
224
+ } catch (g) {
225
+ t = g;
226
226
  }
227
- e.call(o.prototype);
227
+ r.call(o.prototype);
228
228
  }
229
229
  } else {
230
230
  try {
231
231
  throw Error();
232
- } catch (b) {
233
- n = b;
232
+ } catch (g) {
233
+ t = g;
234
234
  }
235
- e();
235
+ r();
236
236
  }
237
- } catch (b) {
238
- if (b && n && typeof b.stack == "string") {
239
- for (var a = b.stack.split(`
240
- `), g = n.stack.split(`
241
- `), f = a.length - 1, d = g.length - 1; f >= 1 && d >= 0 && a[f] !== g[d]; )
242
- d--;
243
- for (; f >= 1 && d >= 0; f--, d--)
244
- if (a[f] !== g[d]) {
245
- if (f !== 1 || d !== 1)
237
+ } catch (g) {
238
+ if (g && t && typeof g.stack == "string") {
239
+ for (var a = g.stack.split(`
240
+ `), b = t.stack.split(`
241
+ `), d = a.length - 1, v = b.length - 1; d >= 1 && v >= 0 && a[d] !== b[v]; )
242
+ v--;
243
+ for (; d >= 1 && v >= 0; d--, v--)
244
+ if (a[d] !== b[v]) {
245
+ if (d !== 1 || v !== 1)
246
246
  do
247
- if (f--, d--, d < 0 || a[f] !== g[d]) {
248
- var T = `
249
- ` + a[f].replace(" at new ", " at ");
250
- return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && G.set(e, T), T;
247
+ if (d--, v--, v < 0 || a[d] !== b[v]) {
248
+ var R = `
249
+ ` + a[d].replace(" at new ", " at ");
250
+ return r.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", r.displayName)), typeof r == "function" && B.set(r, R), R;
251
251
  }
252
- while (f >= 1 && d >= 0);
252
+ while (d >= 1 && v >= 0);
253
253
  break;
254
254
  }
255
255
  }
256
256
  } finally {
257
- Z = !1, W.current = c, ue(), Error.prepareStackTrace = u;
257
+ Q = !1, H.current = l, Vr(), Error.prepareStackTrace = u;
258
258
  }
259
- var X = e ? e.displayName || e.name : "", L = X ? B(X) : "";
260
- return typeof e == "function" && G.set(e, L), L;
259
+ var M = r ? r.displayName || r.name : "", F = M ? q(M) : "";
260
+ return typeof r == "function" && B.set(r, F), F;
261
261
  }
262
- function Ne(e, r, t) {
263
- return xe(e, !1);
262
+ function Nr(r, e, n) {
263
+ return gr(r, !1);
264
264
  }
265
- function Je(e) {
266
- var r = e.prototype;
267
- return !!(r && r.isReactComponent);
265
+ function Jr(r) {
266
+ var e = r.prototype;
267
+ return !!(e && e.isReactComponent);
268
268
  }
269
- function se(e, r, t) {
270
- if (e == null)
269
+ function G(r, e, n) {
270
+ if (r == null)
271
271
  return "";
272
- if (typeof e == "function")
273
- return xe(e, Je(e));
274
- if (typeof e == "string")
275
- return B(e);
276
- switch (e) {
277
- case k:
278
- return B("Suspense");
279
- case h:
280
- return B("SuspenseList");
272
+ if (typeof r == "function")
273
+ return gr(r, Jr(r));
274
+ if (typeof r == "string")
275
+ return q(r);
276
+ switch (r) {
277
+ case w:
278
+ return q("Suspense");
279
+ case p:
280
+ return q("SuspenseList");
281
281
  }
282
- if (typeof e == "object")
283
- switch (e.$$typeof) {
284
- case l:
285
- return Ne(e.render);
286
- case x:
287
- return se(e.type, r, t);
288
- case S: {
289
- var n = e, u = n._payload, c = n._init;
282
+ if (typeof r == "object")
283
+ switch (r.$$typeof) {
284
+ case f:
285
+ return Nr(r.render);
286
+ case O:
287
+ return G(r.type, e, n);
288
+ case m: {
289
+ var t = r, u = t._payload, l = t._init;
290
290
  try {
291
- return se(c(u), r, t);
291
+ return G(l(u), e, n);
292
292
  } catch {
293
293
  }
294
294
  }
295
295
  }
296
296
  return "";
297
297
  }
298
- var Q = Object.prototype.hasOwnProperty, Se = {}, Oe = _.ReactDebugCurrentFrame;
299
- function ce(e) {
300
- if (e) {
301
- var r = e._owner, t = se(e.type, e._source, r ? r.type : null);
302
- Oe.setExtraStackFrame(t);
298
+ var U = Object.prototype.hasOwnProperty, Er = {}, _r = E.ReactDebugCurrentFrame;
299
+ function K(r) {
300
+ if (r) {
301
+ var e = r._owner, n = G(r.type, r._source, e ? e.type : null);
302
+ _r.setExtraStackFrame(n);
303
303
  } else
304
- Oe.setExtraStackFrame(null);
304
+ _r.setExtraStackFrame(null);
305
305
  }
306
- function qe(e, r, t, n, u) {
306
+ function qr(r, e, n, t, u) {
307
307
  {
308
- var c = Function.call.bind(Q);
309
- for (var o in e)
310
- if (c(e, o)) {
308
+ var l = Function.call.bind(U);
309
+ for (var o in r)
310
+ if (l(r, o)) {
311
311
  var a = void 0;
312
312
  try {
313
- if (typeof e[o] != "function") {
314
- var g = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
315
- throw g.name = "Invariant Violation", g;
313
+ if (typeof r[o] != "function") {
314
+ var b = Error((t || "React class") + ": " + n + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
315
+ throw b.name = "Invariant Violation", b;
316
316
  }
317
- a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
318
- } catch (f) {
319
- a = f;
317
+ a = r[o](e, o, t, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
318
+ } catch (d) {
319
+ a = d;
320
320
  }
321
- a && !(a instanceof Error) && (ce(u), i("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), ce(null)), a instanceof Error && !(a.message in Se) && (Se[a.message] = !0, ce(u), i("Failed %s type: %s", t, a.message), ce(null));
321
+ a && !(a instanceof Error) && (K(u), s("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", t || "React class", n, o, typeof a), K(null)), a instanceof Error && !(a.message in Er) && (Er[a.message] = !0, K(u), s("Failed %s type: %s", n, a.message), K(null));
322
322
  }
323
323
  }
324
324
  }
325
- var Be = Array.isArray;
326
- function ge(e) {
327
- return Be(e);
325
+ var Br = Array.isArray;
326
+ function rr(r) {
327
+ return Br(r);
328
328
  }
329
- function Ge(e) {
329
+ function Gr(r) {
330
330
  {
331
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
332
- return t;
331
+ var e = typeof Symbol == "function" && Symbol.toStringTag, n = e && r[Symbol.toStringTag] || r.constructor.name || "Object";
332
+ return n;
333
333
  }
334
334
  }
335
- function Ke(e) {
335
+ function Kr(r) {
336
336
  try {
337
- return me(e), !1;
337
+ return yr(r), !1;
338
338
  } catch {
339
339
  return !0;
340
340
  }
341
341
  }
342
- function me(e) {
343
- return "" + e;
342
+ function yr(r) {
343
+ return "" + r;
344
344
  }
345
- function Ce(e) {
346
- if (Ke(e))
347
- return i("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), me(e);
345
+ function Rr(r) {
346
+ if (Kr(r))
347
+ return s("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Gr(r)), yr(r);
348
348
  }
349
- var we = _.ReactCurrentOwner, Xe = {
349
+ var Tr = E.ReactCurrentOwner, zr = {
350
350
  key: !0,
351
351
  ref: !0,
352
352
  __self: !0,
353
353
  __source: !0
354
- }, Pe, je;
355
- function ze(e) {
356
- if (Q.call(e, "ref")) {
357
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
358
- if (r && r.isReactWarning)
354
+ }, Or, mr;
355
+ function Xr(r) {
356
+ if (U.call(r, "ref")) {
357
+ var e = Object.getOwnPropertyDescriptor(r, "ref").get;
358
+ if (e && e.isReactWarning)
359
359
  return !1;
360
360
  }
361
- return e.ref !== void 0;
361
+ return r.ref !== void 0;
362
362
  }
363
- function He(e) {
364
- if (Q.call(e, "key")) {
365
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
366
- if (r && r.isReactWarning)
363
+ function Hr(r) {
364
+ if (U.call(r, "key")) {
365
+ var e = Object.getOwnPropertyDescriptor(r, "key").get;
366
+ if (e && e.isReactWarning)
367
367
  return !1;
368
368
  }
369
- return e.key !== void 0;
369
+ return r.key !== void 0;
370
370
  }
371
- function Ze(e, r) {
372
- typeof e.ref == "string" && we.current;
371
+ function Zr(r, e) {
372
+ typeof r.ref == "string" && Tr.current;
373
373
  }
374
- function Qe(e, r) {
374
+ function Qr(r, e) {
375
375
  {
376
- var t = function() {
377
- Pe || (Pe = !0, i("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
376
+ var n = function() {
377
+ Or || (Or = !0, s("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", e));
378
378
  };
379
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
380
- get: t,
379
+ n.isReactWarning = !0, Object.defineProperty(r, "key", {
380
+ get: n,
381
381
  configurable: !0
382
382
  });
383
383
  }
384
384
  }
385
- function er(e, r) {
385
+ function re(r, e) {
386
386
  {
387
- var t = function() {
388
- je || (je = !0, i("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
387
+ var n = function() {
388
+ mr || (mr = !0, s("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", e));
389
389
  };
390
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
391
- get: t,
390
+ n.isReactWarning = !0, Object.defineProperty(r, "ref", {
391
+ get: n,
392
392
  configurable: !0
393
393
  });
394
394
  }
395
395
  }
396
- var rr = function(e, r, t, n, u, c, o) {
396
+ var ee = function(r, e, n, t, u, l, o) {
397
397
  var a = {
398
398
  // This tag allows us to uniquely identify this as a React Element
399
- $$typeof: A,
399
+ $$typeof: j,
400
400
  // Built-in properties that belong on the element
401
- type: e,
402
- key: r,
403
- ref: t,
401
+ type: r,
402
+ key: e,
403
+ ref: n,
404
404
  props: o,
405
405
  // Record the component responsible for creating this element.
406
- _owner: c
406
+ _owner: l
407
407
  };
408
408
  return a._store = {}, Object.defineProperty(a._store, "validated", {
409
409
  configurable: !1,
@@ -414,7 +414,7 @@ function pr() {
414
414
  configurable: !1,
415
415
  enumerable: !1,
416
416
  writable: !1,
417
- value: n
417
+ value: t
418
418
  }), Object.defineProperty(a, "_source", {
419
419
  configurable: !1,
420
420
  enumerable: !1,
@@ -422,288 +422,290 @@ function pr() {
422
422
  value: u
423
423
  }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
424
424
  };
425
- function tr(e, r, t, n, u) {
425
+ function ne(r, e, n, t, u) {
426
426
  {
427
- var c, o = {}, a = null, g = null;
428
- t !== void 0 && (Ce(t), a = "" + t), He(r) && (Ce(r.key), a = "" + r.key), ze(r) && (g = r.ref, Ze(r, u));
429
- for (c in r)
430
- Q.call(r, c) && !Xe.hasOwnProperty(c) && (o[c] = r[c]);
431
- if (e && e.defaultProps) {
432
- var f = e.defaultProps;
433
- for (c in f)
434
- o[c] === void 0 && (o[c] = f[c]);
427
+ var l, o = {}, a = null, b = null;
428
+ n !== void 0 && (Rr(n), a = "" + n), Hr(e) && (Rr(e.key), a = "" + e.key), Xr(e) && (b = e.ref, Zr(e, u));
429
+ for (l in e)
430
+ U.call(e, l) && !zr.hasOwnProperty(l) && (o[l] = e[l]);
431
+ if (r && r.defaultProps) {
432
+ var d = r.defaultProps;
433
+ for (l in d)
434
+ o[l] === void 0 && (o[l] = d[l]);
435
435
  }
436
- if (a || g) {
437
- var d = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
438
- a && Qe(o, d), g && er(o, d);
436
+ if (a || b) {
437
+ var v = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
438
+ a && Qr(o, v), b && re(o, v);
439
439
  }
440
- return rr(e, a, g, u, n, we.current, o);
440
+ return ee(r, a, b, u, t, Tr.current, o);
441
441
  }
442
442
  }
443
- var be = _.ReactCurrentOwner, ke = _.ReactDebugCurrentFrame;
444
- function K(e) {
445
- if (e) {
446
- var r = e._owner, t = se(e.type, e._source, r ? r.type : null);
447
- ke.setExtraStackFrame(t);
443
+ var er = E.ReactCurrentOwner, Sr = E.ReactDebugCurrentFrame;
444
+ function W(r) {
445
+ if (r) {
446
+ var e = r._owner, n = G(r.type, r._source, e ? e.type : null);
447
+ Sr.setExtraStackFrame(n);
448
448
  } else
449
- ke.setExtraStackFrame(null);
449
+ Sr.setExtraStackFrame(null);
450
450
  }
451
- var ye;
452
- ye = !1;
453
- function Ee(e) {
454
- return typeof e == "object" && e !== null && e.$$typeof === A;
451
+ var nr;
452
+ nr = !1;
453
+ function tr(r) {
454
+ return typeof r == "object" && r !== null && r.$$typeof === j;
455
455
  }
456
- function De() {
456
+ function wr() {
457
457
  {
458
- if (be.current) {
459
- var e = C(be.current.type);
460
- if (e)
458
+ if (er.current) {
459
+ var r = C(er.current.type);
460
+ if (r)
461
461
  return `
462
462
 
463
- Check the render method of \`` + e + "`.";
463
+ Check the render method of \`` + r + "`.";
464
464
  }
465
465
  return "";
466
466
  }
467
467
  }
468
- function nr(e) {
468
+ function te(r) {
469
469
  return "";
470
470
  }
471
- var $e = {};
472
- function ar(e) {
471
+ var xr = {};
472
+ function ae(r) {
473
473
  {
474
- var r = De();
475
- if (!r) {
476
- var t = typeof e == "string" ? e : e.displayName || e.name;
477
- t && (r = `
474
+ var e = wr();
475
+ if (!e) {
476
+ var n = typeof r == "string" ? r : r.displayName || r.name;
477
+ n && (e = `
478
478
 
479
- Check the top-level render call using <` + t + ">.");
479
+ Check the top-level render call using <` + n + ">.");
480
480
  }
481
- return r;
481
+ return e;
482
482
  }
483
483
  }
484
- function Ae(e, r) {
484
+ function Cr(r, e) {
485
485
  {
486
- if (!e._store || e._store.validated || e.key != null)
486
+ if (!r._store || r._store.validated || r.key != null)
487
487
  return;
488
- e._store.validated = !0;
489
- var t = ar(r);
490
- if ($e[t])
488
+ r._store.validated = !0;
489
+ var n = ae(e);
490
+ if (xr[n])
491
491
  return;
492
- $e[t] = !0;
493
- var n = "";
494
- e && e._owner && e._owner !== be.current && (n = " It was passed a child from " + C(e._owner.type) + "."), K(e), i('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), K(null);
492
+ xr[n] = !0;
493
+ var t = "";
494
+ r && r._owner && r._owner !== er.current && (t = " It was passed a child from " + C(r._owner.type) + "."), W(r), s('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, t), W(null);
495
495
  }
496
496
  }
497
- function Fe(e, r) {
497
+ function Pr(r, e) {
498
498
  {
499
- if (typeof e != "object")
499
+ if (typeof r != "object")
500
500
  return;
501
- if (ge(e))
502
- for (var t = 0; t < e.length; t++) {
503
- var n = e[t];
504
- Ee(n) && Ae(n, r);
501
+ if (rr(r))
502
+ for (var n = 0; n < r.length; n++) {
503
+ var t = r[n];
504
+ tr(t) && Cr(t, e);
505
505
  }
506
- else if (Ee(e))
507
- e._store && (e._store.validated = !0);
508
- else if (e) {
509
- var u = p(e);
510
- if (typeof u == "function" && u !== e.entries)
511
- for (var c = u.call(e), o; !(o = c.next()).done; )
512
- Ee(o.value) && Ae(o.value, r);
506
+ else if (tr(r))
507
+ r._store && (r._store.validated = !0);
508
+ else if (r) {
509
+ var u = h(r);
510
+ if (typeof u == "function" && u !== r.entries)
511
+ for (var l = u.call(r), o; !(o = l.next()).done; )
512
+ tr(o.value) && Cr(o.value, e);
513
513
  }
514
514
  }
515
515
  }
516
- function or(e) {
516
+ function oe(r) {
517
517
  {
518
- var r = e.type;
519
- if (r == null || typeof r == "string")
518
+ var e = r.type;
519
+ if (e == null || typeof e == "string")
520
520
  return;
521
- var t;
522
- if (typeof r == "function")
523
- t = r.propTypes;
524
- else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
521
+ var n;
522
+ if (typeof e == "function")
523
+ n = e.propTypes;
524
+ else if (typeof e == "object" && (e.$$typeof === f || // Note: Memo only checks outer props here.
525
525
  // Inner props are checked in the reconciler.
526
- r.$$typeof === x))
527
- t = r.propTypes;
526
+ e.$$typeof === O))
527
+ n = e.propTypes;
528
528
  else
529
529
  return;
530
- if (t) {
531
- var n = C(r);
532
- qe(t, e.props, "prop", n, e);
533
- } else if (r.PropTypes !== void 0 && !ye) {
534
- ye = !0;
535
- var u = C(r);
536
- i("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
530
+ if (n) {
531
+ var t = C(e);
532
+ qr(n, r.props, "prop", t, r);
533
+ } else if (e.PropTypes !== void 0 && !nr) {
534
+ nr = !0;
535
+ var u = C(e);
536
+ s("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
537
537
  }
538
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && i("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
538
+ typeof e.getDefaultProps == "function" && !e.getDefaultProps.isReactClassApproved && s("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
539
539
  }
540
540
  }
541
- function ir(e) {
541
+ function ie(r) {
542
542
  {
543
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
544
- var n = r[t];
545
- if (n !== "children" && n !== "key") {
546
- K(e), i("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), K(null);
543
+ for (var e = Object.keys(r.props), n = 0; n < e.length; n++) {
544
+ var t = e[n];
545
+ if (t !== "children" && t !== "key") {
546
+ W(r), s("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", t), W(null);
547
547
  break;
548
548
  }
549
549
  }
550
- e.ref !== null && (K(e), i("Invalid attribute `ref` supplied to `React.Fragment`."), K(null));
550
+ r.ref !== null && (W(r), s("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
551
551
  }
552
552
  }
553
- var Me = {};
554
- function Ie(e, r, t, n, u, c) {
553
+ var jr = {};
554
+ function kr(r, e, n, t, u, l) {
555
555
  {
556
- var o = de(e);
556
+ var o = Mr(r);
557
557
  if (!o) {
558
558
  var a = "";
559
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
560
- var g = nr();
561
- g ? a += g : a += De();
562
- var f;
563
- e === null ? f = "null" : ge(e) ? f = "array" : e !== void 0 && e.$$typeof === A ? (f = "<" + (C(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, i("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, a);
559
+ (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
560
+ var b = te();
561
+ b ? a += b : a += wr();
562
+ var d;
563
+ r === null ? d = "null" : rr(r) ? d = "array" : r !== void 0 && r.$$typeof === j ? (d = "<" + (C(r.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : d = typeof r, s("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, a);
564
564
  }
565
- var d = tr(e, r, t, u, c);
566
- if (d == null)
567
- return d;
565
+ var v = ne(r, e, n, u, l);
566
+ if (v == null)
567
+ return v;
568
568
  if (o) {
569
- var T = r.children;
570
- if (T !== void 0)
571
- if (n)
572
- if (ge(T)) {
573
- for (var X = 0; X < T.length; X++)
574
- Fe(T[X], e);
575
- Object.freeze && Object.freeze(T);
569
+ var R = e.children;
570
+ if (R !== void 0)
571
+ if (t)
572
+ if (rr(R)) {
573
+ for (var M = 0; M < R.length; M++)
574
+ Pr(R[M], r);
575
+ Object.freeze && Object.freeze(R);
576
576
  } else
577
- i("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
577
+ s("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
578
578
  else
579
- Fe(T, e);
579
+ Pr(R, r);
580
580
  }
581
- if (Q.call(r, "key")) {
582
- var L = C(e), b = Object.keys(r).filter(function(dr) {
583
- return dr !== "key";
584
- }), _e = b.length > 0 ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}";
585
- if (!Me[L + _e]) {
586
- var fr = b.length > 0 ? "{" + b.join(": ..., ") + ": ...}" : "{}";
587
- i(`A props object containing a "key" prop is being spread into JSX:
581
+ if (U.call(e, "key")) {
582
+ var F = C(r), g = Object.keys(e).filter(function(de) {
583
+ return de !== "key";
584
+ }), ar = g.length > 0 ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}";
585
+ if (!jr[F + ar]) {
586
+ var ce = g.length > 0 ? "{" + g.join(": ..., ") + ": ...}" : "{}";
587
+ s(`A props object containing a "key" prop is being spread into JSX:
588
588
  let props = %s;
589
589
  <%s {...props} />
590
590
  React keys must be passed directly to JSX without using spread:
591
591
  let props = %s;
592
- <%s key={someKey} {...props} />`, _e, L, fr, L), Me[L + _e] = !0;
592
+ <%s key={someKey} {...props} />`, ar, F, ce, F), jr[F + ar] = !0;
593
593
  }
594
594
  }
595
- return e === j ? ir(d) : or(d), d;
595
+ return r === x ? ie(v) : oe(v), v;
596
596
  }
597
597
  }
598
- function ur(e, r, t) {
599
- return Ie(e, r, t, !0);
598
+ function ue(r, e, n) {
599
+ return kr(r, e, n, !0);
600
600
  }
601
- function sr(e, r, t) {
602
- return Ie(e, r, t, !1);
601
+ function se(r, e, n) {
602
+ return kr(r, e, n, !1);
603
603
  }
604
- var cr = sr, lr = ur;
605
- re.Fragment = j, re.jsx = cr, re.jsxs = lr;
606
- })()), re;
604
+ var le = se, fe = ue;
605
+ J.Fragment = x, J.jsx = le, J.jsxs = fe;
606
+ })()), J;
607
607
  }
608
- var Ve;
609
- function hr() {
610
- return Ve || (Ve = 1, process.env.NODE_ENV === "production" ? le.exports = vr() : le.exports = pr()), le.exports;
608
+ var Fr;
609
+ function he() {
610
+ return Fr || (Fr = 1, process.env.NODE_ENV === "production" ? X.exports = ve() : X.exports = pe()), X.exports;
611
611
  }
612
- var Re = hr();
613
- const Ue = 50, gr = 5, br = ["#3a86ff", "#8338ec", "#ff006e", "#fb5607", "#ffbe0b"], Er = ({
614
- commits: $,
615
- rowHeight: A,
616
- colorPalette: V,
617
- laneWidth: j,
618
- renderNode: F,
619
- renderEdge: M
612
+ var or = he();
613
+ const $r = 50, be = 5, ge = ["#3a86ff", "#8338ec", "#ff006e", "#fb5607", "#ffbe0b"], _e = ({
614
+ commits: P,
615
+ rowHeight: j,
616
+ colorPalette: $,
617
+ laneWidth: x,
618
+ renderNode: k,
619
+ renderEdge: D
620
620
  }) => {
621
- const y = j || Ue, E = A || Ue, l = We(() => (V || br).map(
622
- (s, v) => ({
623
- color: s,
621
+ const _ = x || $r, T = j || $r, f = z(
622
+ () => ($ || ge).map((i, c) => ({
623
+ color: i,
624
624
  branch: null,
625
- lane: v + 1
626
- })
627
- ), [V, $]);
628
- function k() {
629
- var s = l.findIndex((p) => !p.branch);
630
- if (s > -1)
631
- return l[s];
632
- var v = {
625
+ lane: c + 1,
626
+ index: c
627
+ })),
628
+ [$, P]
629
+ );
630
+ function w() {
631
+ var i = f.findIndex((h) => !h.branch);
632
+ if (i > -1)
633
+ return f[i];
634
+ var c = {
633
635
  color: "#" + Math.floor(Math.random() * 16777215).toString(16),
634
636
  branch: null,
635
- lane: l.length + 1
637
+ lane: f.length + 1,
638
+ index: i
636
639
  };
637
- return l.push(v), v;
640
+ return f.push(c), c;
638
641
  }
639
- const [h, x] = Te.useState(0), S = We(() => {
640
- var s = [];
641
- const v = /* @__PURE__ */ new Map();
642
- return $.forEach((p, _) => {
643
- var i = {
644
- ...p,
642
+ const p = z(() => {
643
+ var i = [];
644
+ const c = /* @__PURE__ */ new Map();
645
+ return P.forEach((h, E) => {
646
+ var s = {
647
+ ...h,
645
648
  color: "",
646
649
  lane: 0,
647
650
  cx: 0,
648
651
  cy: 0,
649
- prev: []
652
+ prev: [],
650
653
  // initialize empty
651
- }, R = l.find((O) => O.branch == p.id);
652
- R || (R = k());
653
- var D = l.find((O) => O.branch == p.parents[0]);
654
- if (D ? R.branch = null : R.branch = p.parents[0], console.log(l), console.log(i), p.id == "c45")
655
- debugger;
656
- i.color = R.color, i.lane = R.lane, i.cx = i.lane * y - y / 2, i.cy = E * _ + y / 2;
657
- var I = l.reduce((O, N) => N.branch !== null ? O + 1 : O, 0);
658
- I > h && x(I), s.push(i), v.set(i.id, i);
659
- }), s.forEach((p) => {
660
- p.parents.forEach((_) => {
661
- const i = v.get(_);
662
- i && i.prev.push(p);
654
+ index: E
655
+ }, S = f.find((y) => y.branch == h.id);
656
+ S ? f.forEach((y) => {
657
+ y.branch === h.id && y.index !== S?.index && (y.branch = null);
658
+ }) : S = w();
659
+ for (const y of h.parents)
660
+ if (f.find((L) => L.branch === y))
661
+ S.branch = y;
662
+ else if (S.branch == h.id) S.branch = y;
663
+ else {
664
+ var Y = f.find((L) => !L.branch);
665
+ Y || (Y = w()), Y.branch = y;
666
+ }
667
+ s.color = S.color, s.lane = S.lane, s.cx = s.lane * _ - _ / 2, s.cy = T * E + _ / 2, i.push(s), c.set(s.id, s);
668
+ }), i.forEach((h) => {
669
+ h.parents.forEach((E) => {
670
+ const s = c.get(E);
671
+ s && s.prev.push(h);
663
672
  });
664
- }), s;
665
- }, [$, E, y]);
666
- function U(s, v) {
667
- const p = s.cx, _ = s.cy, i = v.cx, R = v.cy, D = y + y * 0.01, I = E + E * 0.01, O = i - p, N = R - _, fe = Math.sign(O), J = Math.sign(N), de = Math.abs(O), ve = Math.abs(N), te = Math.min(
668
- Math.floor(de / D),
669
- Math.floor(ve / I)
670
- ), C = I * J, w = D * 1;
671
- let m = p, P = _, q = `M ${m} ${P} `;
672
- for (let ue = 0; ue < te; ue++) {
673
- const W = m + fe * D, Y = P + C, B = m, Z = P + J * w, G = W, he = Y - J * w;
674
- q += `C ${B} ${Z}, ${G} ${he}, ${W} ${Y} `, m = W, P = Y;
675
- }
676
- const ne = R - P, z = Math.sign(ne), H = D * 1, ae = m, oe = P + z * H, ie = i, pe = R - z * H;
677
- return q += `C ${ae} ${oe}, ${ie} ${pe}, ${i} ${R}`, q;
673
+ }), i;
674
+ }, [P, T, _]);
675
+ function O(i, c) {
676
+ return `M ${i.cx} ${i.cy} L ${c.cx} ${c.cy}`;
678
677
  }
679
- return /* @__PURE__ */ Re.jsxs("svg", { width: h * y + 100, height: E * S.length, children: [
680
- S.flatMap(
681
- (s) => s.prev.map((v) => {
682
- const p = U(s, v);
683
- return M ? M(s, v, p) : /* @__PURE__ */ Re.jsx(
678
+ const m = z(() => Math.max(...p.map((i) => i.lane), 0), [p]), I = z(() => m * _ + 100, [m, _]);
679
+ return /* @__PURE__ */ or.jsxs("svg", { width: I, height: T * p.length, children: [
680
+ p.flatMap(
681
+ (i) => i.prev.map((c, h) => {
682
+ if (D)
683
+ return D(i, c, h);
684
+ const E = O(i, c);
685
+ return /* @__PURE__ */ or.jsx(
684
686
  "path",
685
687
  {
686
- d: p,
688
+ d: E,
687
689
  fill: "none",
688
- stroke: s.lane <= v.lane ? v.color : s.color,
690
+ stroke: i.lane <= c.lane ? c.color : i.color,
689
691
  strokeWidth: 2
690
692
  },
691
- `${s.id}-${v.id}`
693
+ `${i.id}-${c.id}_${h}`
692
694
  );
693
695
  })
694
696
  ),
695
- S.map((s) => F ? F(s) : /* @__PURE__ */ Re.jsx(
697
+ p.map((i, c) => k ? k(i, c) : /* @__PURE__ */ or.jsx(
696
698
  "circle",
697
699
  {
698
- cx: s.cx,
699
- cy: s.cy,
700
- r: gr,
701
- fill: s.color
700
+ cx: i.cx,
701
+ cy: i.cy,
702
+ r: be,
703
+ fill: i.color
702
704
  },
703
- s.id
705
+ `${i.id}_${c}`
704
706
  ))
705
707
  ] });
706
708
  };
707
709
  export {
708
- Er as GitGraphSVG
710
+ _e as GitGraphSVG
709
711
  };