@hpcc-js/graph 3.3.0 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +162 -2246
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +10 -77
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +5 -2
- package/src/common/graphT.ts +0 -55
- package/src/common/layouts/layout.ts +2 -3
- package/src/common/layouts/placeholders.ts +0 -2
- package/src/html/component.ts +7 -3
- package/src/html/edge.ts +15 -0
- package/src/html/graphHtml.ts +4 -2
- package/src/html/graphHtmlT.ts +72 -4
- package/src/html/icon.ts +1 -1
- package/src/html/intersection.ts +110 -0
- package/src/html/shape.ts +7 -2
- package/src/html/textBox.ts +5 -1
- package/src/html/vertex.ts +4 -2
- package/types/common/graphT.d.ts +0 -1
- package/types/common/layouts/placeholders.d.ts +0 -2
- package/types/html/component.d.ts +5 -5
- package/types/html/edge.d.ts +6 -0
- package/types/html/graphHtml.d.ts +3 -2
- package/types/html/graphHtmlT.d.ts +8 -0
- package/types/html/intersection.d.ts +20 -0
- package/src/common/layouts/pathIntersection.ts +0 -67
- package/types/common/layouts/pathIntersection.d.ts +0 -24
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value2) => __defNormalProp(obj, typeof key != "sy
|
|
|
5
5
|
import { SVGWidget, TextBox as TextBox$1, Platform, map, dispatch, Text as Text$1, Icon, Palette, select, SVGZoomWidget, ToggleButton, Spacer, Utility, d3Event, drag, SVGGlowFilter, PropertyExt, sum, max, min, mean, median, interpolateNumberArray } from "@hpcc-js/common";
|
|
6
6
|
import { hashSum, Graph2 as Graph2$1, compare2 } from "@hpcc-js/util";
|
|
7
7
|
import { IGraph, ITooltip } from "@hpcc-js/api";
|
|
8
|
-
import { render, Subgraph as Subgraph$1, Vertex as Vertex$1, Edge as Edge$1, Icons, Vertex3, CentroidVertex3, Text as Text$2 } from "@hpcc-js/react";
|
|
8
|
+
import { render, Subgraph as Subgraph$1, Vertex as Vertex$1, Edge as Edge$1, Icons, Vertex3, CentroidVertex3, React, Text as Text$2 } from "@hpcc-js/react";
|
|
9
9
|
import { HTMLTooltip } from "@hpcc-js/html";
|
|
10
10
|
const PKG_NAME = "@hpcc-js/graph", PKG_VERSION = "3.1.1", BUILD_VERSION = "3.2.1";
|
|
11
11
|
var pi = Math.PI, tau = 2 * pi, epsilon$1 = 1e-6, tauEpsilon = tau - epsilon$1;
|
|
@@ -3042,22 +3042,22 @@ function requireGraph() {
|
|
|
3042
3042
|
var e2 = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, v2, w, name);
|
|
3043
3043
|
return _2.has(this._edgeLabels, e2);
|
|
3044
3044
|
}, Graph3.prototype.removeEdge = function(v2, w, name) {
|
|
3045
|
-
var e2 = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, v2, w, name),
|
|
3046
|
-
return
|
|
3045
|
+
var e2 = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, v2, w, name), edge2 = this._edgeObjs[e2];
|
|
3046
|
+
return edge2 && (v2 = edge2.v, w = edge2.w, delete this._edgeLabels[e2], delete this._edgeObjs[e2], decrementOrRemoveEntry(this._preds[w], v2), decrementOrRemoveEntry(this._sucs[v2], w), delete this._in[w][e2], delete this._out[v2][e2], this._edgeCount--), this;
|
|
3047
3047
|
}, Graph3.prototype.inEdges = function(v2, u2) {
|
|
3048
3048
|
var inV = this._in[v2];
|
|
3049
3049
|
if (inV) {
|
|
3050
3050
|
var edges = _2.values(inV);
|
|
3051
|
-
return u2 ? _2.filter(edges, function(
|
|
3052
|
-
return
|
|
3051
|
+
return u2 ? _2.filter(edges, function(edge2) {
|
|
3052
|
+
return edge2.v === u2;
|
|
3053
3053
|
}) : edges;
|
|
3054
3054
|
}
|
|
3055
3055
|
}, Graph3.prototype.outEdges = function(v2, w) {
|
|
3056
3056
|
var outV = this._out[v2];
|
|
3057
3057
|
if (outV) {
|
|
3058
3058
|
var edges = _2.values(outV);
|
|
3059
|
-
return w ? _2.filter(edges, function(
|
|
3060
|
-
return
|
|
3059
|
+
return w ? _2.filter(edges, function(edge2) {
|
|
3060
|
+
return edge2.w === w;
|
|
3061
3061
|
}) : edges;
|
|
3062
3062
|
}
|
|
3063
3063
|
}, Graph3.prototype.nodeEdges = function(v2, w) {
|
|
@@ -3133,8 +3133,8 @@ function requireJson() {
|
|
|
3133
3133
|
}
|
|
3134
3134
|
function writeEdges(g2) {
|
|
3135
3135
|
return _2.map(g2.edges(), function(e2) {
|
|
3136
|
-
var edgeValue = g2.edge(e2),
|
|
3137
|
-
return _2.isUndefined(e2.name) || (
|
|
3136
|
+
var edgeValue = g2.edge(e2), edge2 = { v: e2.v, w: e2.w };
|
|
3137
|
+
return _2.isUndefined(e2.name) || (edge2.name = e2.name), _2.isUndefined(edgeValue) || (edge2.value = edgeValue), edge2;
|
|
3138
3138
|
});
|
|
3139
3139
|
}
|
|
3140
3140
|
function read(json2) {
|
|
@@ -3234,10 +3234,10 @@ function requireDijkstra() {
|
|
|
3234
3234
|
);
|
|
3235
3235
|
}
|
|
3236
3236
|
function runDijkstra(g2, source, weightFn, edgeFn) {
|
|
3237
|
-
var results = {}, pq = new PriorityQueue(), v2, vEntry, updateNeighbors = function(
|
|
3238
|
-
var w =
|
|
3237
|
+
var results = {}, pq = new PriorityQueue(), v2, vEntry, updateNeighbors = function(edge2) {
|
|
3238
|
+
var w = edge2.v !== v2 ? edge2.v : edge2.w, wEntry = results[w], weight = weightFn(edge2), distance2 = vEntry.distance + weight;
|
|
3239
3239
|
if (weight < 0)
|
|
3240
|
-
throw new Error("dijkstra does not allow negative edge weights. Bad edge: " +
|
|
3240
|
+
throw new Error("dijkstra does not allow negative edge weights. Bad edge: " + edge2 + " Weight: " + weight);
|
|
3241
3241
|
distance2 < wEntry.distance && (wEntry.distance = distance2, wEntry.predecessor = v2, pq.decrease(w, distance2));
|
|
3242
3242
|
};
|
|
3243
3243
|
for (g2.nodes().forEach(function(v3) {
|
|
@@ -3326,8 +3326,8 @@ function requireFloydWarshall() {
|
|
|
3326
3326
|
return nodes.forEach(function(v2) {
|
|
3327
3327
|
results[v2] = {}, results[v2][v2] = { distance: 0 }, nodes.forEach(function(w) {
|
|
3328
3328
|
v2 !== w && (results[v2][w] = { distance: Number.POSITIVE_INFINITY });
|
|
3329
|
-
}), edgeFn(v2).forEach(function(
|
|
3330
|
-
var w =
|
|
3329
|
+
}), edgeFn(v2).forEach(function(edge2) {
|
|
3330
|
+
var w = edge2.v === v2 ? edge2.w : edge2.v, d2 = weightFn(edge2);
|
|
3331
3331
|
results[v2][w] = { distance: d2, predecessor: v2 };
|
|
3332
3332
|
});
|
|
3333
3333
|
}), nodes.forEach(function(k2) {
|
|
@@ -3434,10 +3434,10 @@ function requirePrim() {
|
|
|
3434
3434
|
prim_1 = prim;
|
|
3435
3435
|
function prim(g2, weightFunc) {
|
|
3436
3436
|
var result = new Graph3(), parents = {}, pq = new PriorityQueue(), v2;
|
|
3437
|
-
function updateNeighbors(
|
|
3438
|
-
var w =
|
|
3437
|
+
function updateNeighbors(edge2) {
|
|
3438
|
+
var w = edge2.v === v2 ? edge2.w : edge2.v, pri = pq.priority(w);
|
|
3439
3439
|
if (pri !== void 0) {
|
|
3440
|
-
var edgeWeight = weightFunc(
|
|
3440
|
+
var edgeWeight = weightFunc(edge2);
|
|
3441
3441
|
edgeWeight < pri && (parents[w] = v2, pq.decrease(w, edgeWeight));
|
|
3442
3442
|
}
|
|
3443
3443
|
}
|
|
@@ -4195,11 +4195,11 @@ function requireGreedyFas() {
|
|
|
4195
4195
|
}
|
|
4196
4196
|
function removeNode(g2, buckets, zeroIdx, entry, collectPredecessors) {
|
|
4197
4197
|
var results = collectPredecessors ? [] : void 0;
|
|
4198
|
-
return _2.forEach(g2.inEdges(entry.v), function(
|
|
4199
|
-
var weight = g2.edge(
|
|
4200
|
-
collectPredecessors && results.push({ v:
|
|
4201
|
-
}), _2.forEach(g2.outEdges(entry.v), function(
|
|
4202
|
-
var weight = g2.edge(
|
|
4198
|
+
return _2.forEach(g2.inEdges(entry.v), function(edge2) {
|
|
4199
|
+
var weight = g2.edge(edge2), uEntry = g2.node(edge2.v);
|
|
4200
|
+
collectPredecessors && results.push({ v: edge2.v, w: edge2.w }), uEntry.out -= weight, assignBucket(buckets, zeroIdx, uEntry);
|
|
4201
|
+
}), _2.forEach(g2.outEdges(entry.v), function(edge2) {
|
|
4202
|
+
var weight = g2.edge(edge2), w = edge2.w, wEntry = g2.node(w);
|
|
4203
4203
|
wEntry.in -= weight, assignBucket(buckets, zeroIdx, wEntry);
|
|
4204
4204
|
}), g2.removeNode(entry.v), results;
|
|
4205
4205
|
}
|
|
@@ -4414,8 +4414,8 @@ function requireNormalize() {
|
|
|
4414
4414
|
undo
|
|
4415
4415
|
};
|
|
4416
4416
|
function run(g2) {
|
|
4417
|
-
g2.graph().dummyChains = [], _2.forEach(g2.edges(), function(
|
|
4418
|
-
normalizeEdge(g2,
|
|
4417
|
+
g2.graph().dummyChains = [], _2.forEach(g2.edges(), function(edge2) {
|
|
4418
|
+
normalizeEdge(g2, edge2);
|
|
4419
4419
|
});
|
|
4420
4420
|
}
|
|
4421
4421
|
function normalizeEdge(g2, e2) {
|
|
@@ -4482,8 +4482,8 @@ function requireFeasibleTree() {
|
|
|
4482
4482
|
function feasibleTree(g2) {
|
|
4483
4483
|
var t2 = new Graph3({ directed: !1 }), start = g2.nodes()[0], size = g2.nodeCount();
|
|
4484
4484
|
t2.setNode(start, {});
|
|
4485
|
-
for (var
|
|
4486
|
-
|
|
4485
|
+
for (var edge2, delta; tightTree(t2, g2) < size; )
|
|
4486
|
+
edge2 = findMinSlackEdge(t2, g2), delta = t2.hasNode(edge2.v) ? slack(g2, edge2) : -slack(g2, edge2), shiftRanks(t2, g2, delta);
|
|
4487
4487
|
return t2;
|
|
4488
4488
|
}
|
|
4489
4489
|
function tightTree(t2, g2) {
|
|
@@ -4558,16 +4558,16 @@ function requireNetworkSimplex() {
|
|
|
4558
4558
|
return tree2.edge(e2).cutvalue < 0;
|
|
4559
4559
|
});
|
|
4560
4560
|
}
|
|
4561
|
-
function enterEdge(t2, g2,
|
|
4562
|
-
var v2 =
|
|
4563
|
-
g2.hasEdge(v2, w) || (v2 =
|
|
4561
|
+
function enterEdge(t2, g2, edge2) {
|
|
4562
|
+
var v2 = edge2.v, w = edge2.w;
|
|
4563
|
+
g2.hasEdge(v2, w) || (v2 = edge2.w, w = edge2.v);
|
|
4564
4564
|
var vLabel = t2.node(v2), wLabel = t2.node(w), tailLabel = vLabel, flip = !1;
|
|
4565
4565
|
vLabel.lim > wLabel.lim && (tailLabel = wLabel, flip = !0);
|
|
4566
|
-
var candidates = _2.filter(g2.edges(), function(
|
|
4567
|
-
return flip === isDescendant(t2, t2.node(
|
|
4566
|
+
var candidates = _2.filter(g2.edges(), function(edge3) {
|
|
4567
|
+
return flip === isDescendant(t2, t2.node(edge3.v), tailLabel) && flip !== isDescendant(t2, t2.node(edge3.w), tailLabel);
|
|
4568
4568
|
});
|
|
4569
|
-
return _2.minBy(candidates, function(
|
|
4570
|
-
return slack(g2,
|
|
4569
|
+
return _2.minBy(candidates, function(edge3) {
|
|
4570
|
+
return slack(g2, edge3);
|
|
4571
4571
|
});
|
|
4572
4572
|
}
|
|
4573
4573
|
function exchangeEdges(t2, g2, e2, f2) {
|
|
@@ -4579,8 +4579,8 @@ function requireNetworkSimplex() {
|
|
|
4579
4579
|
return !g2.node(v2).parent;
|
|
4580
4580
|
}), vs = preorder(t2, root);
|
|
4581
4581
|
vs = vs.slice(1), _2.forEach(vs, function(v2) {
|
|
4582
|
-
var parent = t2.node(v2).parent,
|
|
4583
|
-
|
|
4582
|
+
var parent = t2.node(v2).parent, edge2 = g2.edge(v2, parent), flipped = !1;
|
|
4583
|
+
edge2 || (edge2 = g2.edge(parent, v2), flipped = !0), g2.node(v2).rank = g2.node(parent).rank + (flipped ? edge2.minlen : -edge2.minlen);
|
|
4584
4584
|
});
|
|
4585
4585
|
}
|
|
4586
4586
|
function isTreeEdge(tree2, u2, v2) {
|
|
@@ -4725,8 +4725,8 @@ function requireNestingGraph() {
|
|
|
4725
4725
|
function cleanup(g2) {
|
|
4726
4726
|
var graphLabel = g2.graph();
|
|
4727
4727
|
g2.removeNode(graphLabel.nestingRoot), delete graphLabel.nestingRoot, _2.forEach(g2.edges(), function(e2) {
|
|
4728
|
-
var
|
|
4729
|
-
|
|
4728
|
+
var edge2 = g2.edge(e2);
|
|
4729
|
+
edge2.nestingEdge && g2.removeEdge(e2);
|
|
4730
4730
|
});
|
|
4731
4731
|
}
|
|
4732
4732
|
return nestingGraph;
|
|
@@ -4786,8 +4786,8 @@ function requireCoordinateSystem() {
|
|
|
4786
4786
|
_2.forEach(g2.nodes(), function(v2) {
|
|
4787
4787
|
reverseYOne(g2.node(v2));
|
|
4788
4788
|
}), _2.forEach(g2.edges(), function(e2) {
|
|
4789
|
-
var
|
|
4790
|
-
_2.forEach(
|
|
4789
|
+
var edge2 = g2.edge(e2);
|
|
4790
|
+
_2.forEach(edge2.points, reverseYOne), _2.has(edge2, "y") && reverseYOne(edge2);
|
|
4791
4791
|
});
|
|
4792
4792
|
}
|
|
4793
4793
|
function reverseYOne(attrs) {
|
|
@@ -4797,8 +4797,8 @@ function requireCoordinateSystem() {
|
|
|
4797
4797
|
_2.forEach(g2.nodes(), function(v2) {
|
|
4798
4798
|
swapXYOne(g2.node(v2));
|
|
4799
4799
|
}), _2.forEach(g2.edges(), function(e2) {
|
|
4800
|
-
var
|
|
4801
|
-
_2.forEach(
|
|
4800
|
+
var edge2 = g2.edge(e2);
|
|
4801
|
+
_2.forEach(edge2.points, swapXYOne), _2.has(edge2, "x") && swapXYOne(edge2);
|
|
4802
4802
|
});
|
|
4803
4803
|
}
|
|
4804
4804
|
function swapXYOne(attrs) {
|
|
@@ -4883,10 +4883,10 @@ function requireBarycenter() {
|
|
|
4883
4883
|
var inV = g2.inEdges(v2);
|
|
4884
4884
|
if (inV.length) {
|
|
4885
4885
|
var result = _2.reduce(inV, function(acc, e2) {
|
|
4886
|
-
var
|
|
4886
|
+
var edge2 = g2.edge(e2), nodeU = g2.node(e2.v);
|
|
4887
4887
|
return {
|
|
4888
|
-
sum: acc.sum +
|
|
4889
|
-
weight: acc.weight +
|
|
4888
|
+
sum: acc.sum + edge2.weight * nodeU.order,
|
|
4889
|
+
weight: acc.weight + edge2.weight
|
|
4890
4890
|
};
|
|
4891
4891
|
}, { sum: 0, weight: 0 });
|
|
4892
4892
|
return {
|
|
@@ -5039,7 +5039,7 @@ function requireBuildLayerGraph() {
|
|
|
5039
5039
|
return _2.forEach(g2.nodes(), function(v2) {
|
|
5040
5040
|
var node = g2.node(v2), parent = g2.parent(v2);
|
|
5041
5041
|
(node.rank === rank || node.minRank <= rank && rank <= node.maxRank) && (result.setNode(v2), result.setParent(v2, parent || root), _2.forEach(g2[relationship](v2), function(e2) {
|
|
5042
|
-
var u2 = e2.v === v2 ? e2.w : e2.v,
|
|
5042
|
+
var u2 = e2.v === v2 ? e2.w : e2.v, edge2 = result.edge(u2, v2), weight = _2.isUndefined(edge2) ? 0 : edge2.weight;
|
|
5043
5043
|
result.setEdge(u2, v2, { weight: g2.edge(e2).weight + weight });
|
|
5044
5044
|
}), _2.has(node, "minRank") && result.setNode(v2, {
|
|
5045
5045
|
borderLeft: node.borderLeft[rank],
|
|
@@ -5459,26 +5459,26 @@ function requireLayout() {
|
|
|
5459
5459
|
var node = canonicalize(inputGraph.node(v2));
|
|
5460
5460
|
g2.setNode(v2, _2.defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults)), g2.setParent(v2, inputGraph.parent(v2));
|
|
5461
5461
|
}), _2.forEach(inputGraph.edges(), function(e2) {
|
|
5462
|
-
var
|
|
5462
|
+
var edge2 = canonicalize(inputGraph.edge(e2));
|
|
5463
5463
|
g2.setEdge(e2, _2.merge(
|
|
5464
5464
|
{},
|
|
5465
5465
|
edgeDefaults,
|
|
5466
|
-
selectNumberAttrs(
|
|
5467
|
-
_2.pick(
|
|
5466
|
+
selectNumberAttrs(edge2, edgeNumAttrs),
|
|
5467
|
+
_2.pick(edge2, edgeAttrs)
|
|
5468
5468
|
));
|
|
5469
5469
|
}), g2;
|
|
5470
5470
|
}
|
|
5471
5471
|
function makeSpaceForEdgeLabels(g2) {
|
|
5472
5472
|
var graph2 = g2.graph();
|
|
5473
5473
|
graph2.ranksep /= 2, _2.forEach(g2.edges(), function(e2) {
|
|
5474
|
-
var
|
|
5475
|
-
|
|
5474
|
+
var edge2 = g2.edge(e2);
|
|
5475
|
+
edge2.minlen *= 2, edge2.labelpos.toLowerCase() !== "c" && (graph2.rankdir === "TB" || graph2.rankdir === "BT" ? edge2.width += edge2.labeloffset : edge2.height += edge2.labeloffset);
|
|
5476
5476
|
});
|
|
5477
5477
|
}
|
|
5478
5478
|
function injectEdgeLabelProxies(g2) {
|
|
5479
5479
|
_2.forEach(g2.edges(), function(e2) {
|
|
5480
|
-
var
|
|
5481
|
-
if (
|
|
5480
|
+
var edge2 = g2.edge(e2);
|
|
5481
|
+
if (edge2.width && edge2.height) {
|
|
5482
5482
|
var v2 = g2.node(e2.v), w = g2.node(e2.w), label = { rank: (w.rank - v2.rank) / 2 + v2.rank, e: e2 };
|
|
5483
5483
|
util2.addDummyNode(g2, "edge-proxy", label, "_ep");
|
|
5484
5484
|
}
|
|
@@ -5506,42 +5506,42 @@ function requireLayout() {
|
|
|
5506
5506
|
_2.forEach(g2.nodes(), function(v2) {
|
|
5507
5507
|
getExtremes(g2.node(v2));
|
|
5508
5508
|
}), _2.forEach(g2.edges(), function(e2) {
|
|
5509
|
-
var
|
|
5510
|
-
_2.has(
|
|
5509
|
+
var edge2 = g2.edge(e2);
|
|
5510
|
+
_2.has(edge2, "x") && getExtremes(edge2);
|
|
5511
5511
|
}), minX -= marginX, minY -= marginY, _2.forEach(g2.nodes(), function(v2) {
|
|
5512
5512
|
var node = g2.node(v2);
|
|
5513
5513
|
node.x -= minX, node.y -= minY;
|
|
5514
5514
|
}), _2.forEach(g2.edges(), function(e2) {
|
|
5515
|
-
var
|
|
5516
|
-
_2.forEach(
|
|
5515
|
+
var edge2 = g2.edge(e2);
|
|
5516
|
+
_2.forEach(edge2.points, function(p2) {
|
|
5517
5517
|
p2.x -= minX, p2.y -= minY;
|
|
5518
|
-
}), _2.has(
|
|
5518
|
+
}), _2.has(edge2, "x") && (edge2.x -= minX), _2.has(edge2, "y") && (edge2.y -= minY);
|
|
5519
5519
|
}), graphLabel.width = maxX - minX + marginX, graphLabel.height = maxY2 - minY + marginY;
|
|
5520
5520
|
}
|
|
5521
5521
|
function assignNodeIntersects(g2) {
|
|
5522
5522
|
_2.forEach(g2.edges(), function(e2) {
|
|
5523
|
-
var
|
|
5524
|
-
|
|
5523
|
+
var edge2 = g2.edge(e2), nodeV = g2.node(e2.v), nodeW = g2.node(e2.w), p1, p2;
|
|
5524
|
+
edge2.points ? (p1 = edge2.points[0], p2 = edge2.points[edge2.points.length - 1]) : (edge2.points = [], p1 = nodeW, p2 = nodeV), edge2.points.unshift(util2.intersectRect(nodeV, p1)), edge2.points.push(util2.intersectRect(nodeW, p2));
|
|
5525
5525
|
});
|
|
5526
5526
|
}
|
|
5527
5527
|
function fixupEdgeLabelCoords(g2) {
|
|
5528
5528
|
_2.forEach(g2.edges(), function(e2) {
|
|
5529
|
-
var
|
|
5530
|
-
if (_2.has(
|
|
5531
|
-
switch ((
|
|
5529
|
+
var edge2 = g2.edge(e2);
|
|
5530
|
+
if (_2.has(edge2, "x"))
|
|
5531
|
+
switch ((edge2.labelpos === "l" || edge2.labelpos === "r") && (edge2.width -= edge2.labeloffset), edge2.labelpos) {
|
|
5532
5532
|
case "l":
|
|
5533
|
-
|
|
5533
|
+
edge2.x -= edge2.width / 2 + edge2.labeloffset;
|
|
5534
5534
|
break;
|
|
5535
5535
|
case "r":
|
|
5536
|
-
|
|
5536
|
+
edge2.x += edge2.width / 2 + edge2.labeloffset;
|
|
5537
5537
|
break;
|
|
5538
5538
|
}
|
|
5539
5539
|
});
|
|
5540
5540
|
}
|
|
5541
5541
|
function reversePointsForReversedEdges(g2) {
|
|
5542
5542
|
_2.forEach(g2.edges(), function(e2) {
|
|
5543
|
-
var
|
|
5544
|
-
|
|
5543
|
+
var edge2 = g2.edge(e2);
|
|
5544
|
+
edge2.reversed && edge2.points.reverse();
|
|
5545
5545
|
});
|
|
5546
5546
|
}
|
|
5547
5547
|
function removeBorderNodes(g2) {
|
|
@@ -5694,8 +5694,8 @@ class GraphData {
|
|
|
5694
5694
|
(!merge || !this._g.hasNode(entity._id)) && (this._g.setNode(entity._id, entity), retVal.addedVertices.push(entity));
|
|
5695
5695
|
}
|
|
5696
5696
|
for (let i2 = 0; i2 < edges.length; ++i2) {
|
|
5697
|
-
const
|
|
5698
|
-
(!merge || !this._g.hasEdge(
|
|
5697
|
+
const edge2 = edges[i2];
|
|
5698
|
+
(!merge || !this._g.hasEdge(edge2._id)) && (edge2._sourceVertex && edge2._targetVertex ? (this._g.setEdge(edge2._sourceVertex._id, edge2._targetVertex._id, edge2, edge2._id), retVal.addedEdges.push(edge2)) : console.warn("Bad edge definition"));
|
|
5699
5699
|
}
|
|
5700
5700
|
if (hierarchy2)
|
|
5701
5701
|
for (let i2 = 0; i2 < hierarchy2.length; ++i2)
|
|
@@ -6354,8 +6354,8 @@ class Hierarchy {
|
|
|
6354
6354
|
nodePos(u2) {
|
|
6355
6355
|
return this.digraph.node(u2);
|
|
6356
6356
|
}
|
|
6357
|
-
edgePoints(
|
|
6358
|
-
return this.digraph.edge(
|
|
6357
|
+
edgePoints(edge2) {
|
|
6358
|
+
return this.digraph.edge(edge2._sourceVertex.id(), edge2._targetVertex.id(), edge2._id).points;
|
|
6359
6359
|
}
|
|
6360
6360
|
}
|
|
6361
6361
|
const TITLE_SIZE = 14, MINMAX_SIZE = 18;
|
|
@@ -6675,8 +6675,8 @@ const _Graph = class _Graph extends SVGZoomWidget {
|
|
|
6675
6675
|
for (; nextSibling; )
|
|
6676
6676
|
target.parentNode.insertBefore(nextSibling, target), nextSibling = target.nextSibling;
|
|
6677
6677
|
Platform.svgMarkerGlitch && this._graphData.nodeEdges(d2.id()).forEach((glEdge) => {
|
|
6678
|
-
const
|
|
6679
|
-
this._pushMarkers(
|
|
6678
|
+
const edge2 = this._graphData.edge(glEdge);
|
|
6679
|
+
this._pushMarkers(edge2.element());
|
|
6680
6680
|
});
|
|
6681
6681
|
}
|
|
6682
6682
|
}
|
|
@@ -6711,8 +6711,8 @@ const _Graph = class _Graph extends SVGZoomWidget {
|
|
|
6711
6711
|
});
|
|
6712
6712
|
}
|
|
6713
6713
|
this._neighborOffsets = [], Platform.svgMarkerGlitch && this._graphData.nodeEdges(d2.id()).forEach(function(id) {
|
|
6714
|
-
const
|
|
6715
|
-
this._popMarkers(
|
|
6714
|
+
const edge2 = this._graphData.edge(id);
|
|
6715
|
+
this._popMarkers(edge2.element());
|
|
6716
6716
|
});
|
|
6717
6717
|
}
|
|
6718
6718
|
}
|
|
@@ -6930,8 +6930,8 @@ const _Graph = class _Graph extends SVGZoomWidget {
|
|
|
6930
6930
|
if (vertex2) {
|
|
6931
6931
|
const nedges = this._graphData.nodeEdges(vertex2.id());
|
|
6932
6932
|
for (let i2 = 0; i2 < nedges.length; ++i2) {
|
|
6933
|
-
const
|
|
6934
|
-
edges[
|
|
6933
|
+
const edge2 = this._graphData.edge(nedges[i2]);
|
|
6934
|
+
edges[edge2.id()] = edge2, edge2._sourceVertex.id() !== vertex2.id() && (vertices[edge2._sourceVertex.id()] = edge2._sourceVertex), edge2._targetVertex.id() !== vertex2.id() && (vertices[edge2._targetVertex.id()] = edge2._targetVertex);
|
|
6935
6935
|
}
|
|
6936
6936
|
}
|
|
6937
6937
|
return {
|
|
@@ -7886,35 +7886,6 @@ function interpolatePath(a2, b2, interpolateOptions) {
|
|
|
7886
7886
|
return interpolatedString;
|
|
7887
7887
|
};
|
|
7888
7888
|
}
|
|
7889
|
-
function rectEdges(rect) {
|
|
7890
|
-
return [
|
|
7891
|
-
{ start: rect.topLeft, end: rect.topRight },
|
|
7892
|
-
{ start: rect.topRight, end: rect.bottomRight },
|
|
7893
|
-
{ start: rect.bottomRight, end: rect.bottomLeft },
|
|
7894
|
-
{ start: rect.bottomLeft, end: rect.topLeft }
|
|
7895
|
-
];
|
|
7896
|
-
}
|
|
7897
|
-
function lineIntersection(segment1, segment2) {
|
|
7898
|
-
const { x: x1, y: y1 } = segment1.start, { x: x2, y: y2 } = segment1.end, { x: x3, y: y3 } = segment2.start, { x: x4, y: y4 } = segment2.end, denom = (x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4);
|
|
7899
|
-
if (denom === 0) return null;
|
|
7900
|
-
const t2 = ((x1 - x3) * (y3 - y4) - (y1 - y3) * (x3 - x4)) / denom, u2 = -((x1 - x2) * (y1 - y3) - (y1 - y2) * (x1 - x3)) / denom;
|
|
7901
|
-
return t2 > 0 && t2 < 1 && u2 > 0 && u2 < 1 ? {
|
|
7902
|
-
x: x1 + t2 * (x2 - x1),
|
|
7903
|
-
y: y1 + t2 * (y2 - y1)
|
|
7904
|
-
} : null;
|
|
7905
|
-
}
|
|
7906
|
-
function intersection(rect, line) {
|
|
7907
|
-
for (const edge of rectEdges({
|
|
7908
|
-
topLeft: { x: rect.x - rect.w / 2, y: rect.y - rect.h / 2 },
|
|
7909
|
-
topRight: { x: rect.x + rect.w / 2, y: rect.y - rect.h / 2 },
|
|
7910
|
-
bottomRight: { x: rect.x + rect.w / 2, y: rect.y + rect.h / 2 },
|
|
7911
|
-
bottomLeft: { x: rect.x - rect.w / 2, y: rect.y + rect.h / 2 }
|
|
7912
|
-
})) {
|
|
7913
|
-
const intersectionPoint = lineIntersection(edge, line);
|
|
7914
|
-
if (intersectionPoint) return intersectionPoint;
|
|
7915
|
-
}
|
|
7916
|
-
return null;
|
|
7917
|
-
}
|
|
7918
7889
|
const lineBasis$2 = d3Line().x((d2) => d2[0]).y((d2) => d2[1]).curve(d3CurveBasis), lineCardinal = d3Line().x((d2) => d2[0]).y((d2) => d2[1]).curve(d3CurveCardinal);
|
|
7919
7890
|
class Layout {
|
|
7920
7891
|
constructor(graph2) {
|
|
@@ -7946,8 +7917,8 @@ class Layout {
|
|
|
7946
7917
|
};
|
|
7947
7918
|
}
|
|
7948
7919
|
edgeLine(ep) {
|
|
7949
|
-
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
7950
|
-
const sPos = { ...this._graph.projectPlacholder(ep.source), w: ((_c = (_b2 = (_a2 = ep.source) == null ? void 0 : _a2.renderResult) == null ? void 0 : _b2.extent) == null ? void 0 : _c.width) ?? 0, h: ((_f = (_e = (_d = ep.source) == null ? void 0 : _d.renderResult) == null ? void 0 : _e.extent) == null ? void 0 : _f.height) ?? 0 }, tPos = { ...this._graph.projectPlacholder(ep.target), w: ((_i = (_h = (_g = ep.target) == null ? void 0 : _g.renderResult) == null ? void 0 : _h.extent) == null ? void 0 : _i.width) ?? 0, h: ((_l = (_k = (_j = ep.target) == null ? void 0 : _j.renderResult) == null ? void 0 : _k.extent) == null ? void 0 : _l.height) ?? 0 }, sIntersect = intersection(sPos, { start: sPos, end: tPos }), tIntersect = intersection(tPos, { start: sPos, end: tPos });
|
|
7920
|
+
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
7921
|
+
const sPos = { ...this._graph.projectPlacholder(ep.source), w: ((_c = (_b2 = (_a2 = ep.source) == null ? void 0 : _a2.renderResult) == null ? void 0 : _b2.extent) == null ? void 0 : _c.width) ?? 0, h: ((_f = (_e = (_d = ep.source) == null ? void 0 : _d.renderResult) == null ? void 0 : _e.extent) == null ? void 0 : _f.height) ?? 0 }, tPos = { ...this._graph.projectPlacholder(ep.target), w: ((_i = (_h = (_g = ep.target) == null ? void 0 : _g.renderResult) == null ? void 0 : _h.extent) == null ? void 0 : _i.width) ?? 0, h: ((_l = (_k = (_j = ep.target) == null ? void 0 : _j.renderResult) == null ? void 0 : _k.extent) == null ? void 0 : _l.height) ?? 0 }, sIntersect = (_m = ep.source.renderResult) != null && _m.intersection ? ep.source.renderResult.intersection(sPos, { start: sPos, end: tPos }) : null, tIntersect = (_n = ep.target.renderResult) != null && _n.intersection ? ep.target.renderResult.intersection(tPos, { start: sPos, end: tPos }) : null;
|
|
7951
7922
|
return {
|
|
7952
7923
|
source: {
|
|
7953
7924
|
x: sIntersect ? sIntersect.x : sPos.x,
|
|
@@ -8904,8 +8875,8 @@ class GraphT extends SVGZoomWidget {
|
|
|
8904
8875
|
if (vertex2) {
|
|
8905
8876
|
const nedges = this._graphData.vertexEdges(vertex2.id);
|
|
8906
8877
|
for (let i2 = 0; i2 < nedges.length; ++i2) {
|
|
8907
|
-
const
|
|
8908
|
-
edges[
|
|
8878
|
+
const edge2 = this._graphData.edge(nedges[i2].id);
|
|
8879
|
+
edges[edge2.id] = edge2, edge2.source.id !== vertex2.id && (vertices[edge2.source.id] = edge2.source), edge2.target.id !== vertex2.id && (vertices[edge2.target.id] = edge2.target);
|
|
8909
8880
|
}
|
|
8910
8881
|
}
|
|
8911
8882
|
return {
|
|
@@ -8991,9 +8962,7 @@ class GraphT extends SVGZoomWidget {
|
|
|
8991
8962
|
}
|
|
8992
8963
|
moveEdgePlaceholder(ep, transition) {
|
|
8993
8964
|
const edgeLayout = {
|
|
8994
|
-
...this._layoutAlgo.edgePath(ep, this.edgeArcDepth())
|
|
8995
|
-
markerStart: `url(#${this.id()}_circleFoot)`,
|
|
8996
|
-
markerEnd: `url(#${this.id()}_arrowHead)`
|
|
8965
|
+
...this._layoutAlgo.edgePath(ep, this.edgeArcDepth())
|
|
8997
8966
|
}, context = this;
|
|
8998
8967
|
if (this._edgeRenderer && ep.element) {
|
|
8999
8968
|
const previousEdgeLayout = ep.previousEdgeLayout ?? edgeLayout;
|
|
@@ -9166,13 +9135,10 @@ class GraphT extends SVGZoomWidget {
|
|
|
9166
9135
|
context.moveSubgraphPlaceholder(d2, !1);
|
|
9167
9136
|
}), this;
|
|
9168
9137
|
}
|
|
9169
|
-
addMarkers(clearFirst = !1) {
|
|
9170
|
-
clearFirst && (this._svgDefs.select("#" + this._id + "_arrowHead").remove(), this._svgDefs.select("#" + this._id + "_circleFoot").remove(), this._svgDefs.select("#" + this._id + "_circleHead").remove()), this._svgDefs.append("marker").attr("class", "marker").attr("id", this._id + "_arrowHead").attr("viewBox", "0 0 10 10").attr("refX", 10).attr("refY", 5).attr("markerWidth", 8).attr("markerHeight", 8).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("polyline").attr("points", "0,0 10,5 0,10 1,5"), this._svgDefs.append("marker").attr("class", "marker").attr("id", this._id + "_circleFoot").attr("viewBox", "0 0 10 10").attr("refX", 1).attr("refY", 5).attr("markerWidth", 7).attr("markerHeight", 7).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("circle").attr("cx", 5).attr("cy", 5).attr("r", 4), this._svgDefs.append("marker").attr("class", "marker").attr("id", this._id + "_circleHead").attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerWidth", 7).attr("markerHeight", 7).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("circle").attr("cx", 5).attr("cy", 5).attr("r", 4);
|
|
9171
|
-
}
|
|
9172
9138
|
enter(domNode, element) {
|
|
9173
9139
|
super.enter(domNode, element);
|
|
9174
9140
|
const svg = this.locateSVGNode(domNode);
|
|
9175
|
-
this._svgDefs = select(svg).select("defs"), this._centroidFilter = new SVGGlowFilter(this._svgDefs, this._id + "_glow"), this._svgDefsCat = this._svgDefs.append("g"), this._svgDefsAnn = this._svgDefs.append("g"), this.
|
|
9141
|
+
this._svgDefs = select(svg).select("defs"), this._centroidFilter = new SVGGlowFilter(this._svgDefs, this._id + "_glow"), this._svgDefsCat = this._svgDefs.append("g"), this._svgDefsAnn = this._svgDefs.append("g"), this._subgraphG = this._renderElement.append("g"), this._edgeG = this._renderElement.append("g"), this._vertexG = this._renderElement.append("g"), this._tooltip.target(domNode), this.on("startMarqueeSelection", () => {
|
|
9176
9142
|
}).on("updateMarqueeSelection", (rect) => {
|
|
9177
9143
|
const vertices = this._graphData.allVertices().filter((v2) => v2.x >= rect.x && v2.x <= rect.x + rect.width && v2.y >= rect.y && v2.y <= rect.y + rect.height);
|
|
9178
9144
|
this.selection(vertices.map((v2) => v2.props));
|
|
@@ -10080,12 +10046,61 @@ const B = (t2, i2, s2) => {
|
|
|
10080
10046
|
let h2 = e2._$litPart$;
|
|
10081
10047
|
return h2 === void 0 && (e2._$litPart$ = h2 = new R(i2.insertBefore(l(), null), null, void 0, {})), h2._$AI(t2), h2;
|
|
10082
10048
|
};
|
|
10083
|
-
function extend(result, width, height) {
|
|
10049
|
+
function extend(result, width, height, intersection = (pos, line) => null) {
|
|
10084
10050
|
return {
|
|
10085
10051
|
...result,
|
|
10086
|
-
extent: { width, height }
|
|
10052
|
+
extent: { width, height },
|
|
10053
|
+
intersection
|
|
10087
10054
|
};
|
|
10088
10055
|
}
|
|
10056
|
+
function segmentSegment(s1, s2) {
|
|
10057
|
+
const { x: x1, y: y1 } = s1.start, { x: x2, y: y2 } = s1.end, { x: x3, y: y3 } = s2.start, { x: x4, y: y4 } = s2.end, denom = (x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4);
|
|
10058
|
+
if (denom === 0)
|
|
10059
|
+
return;
|
|
10060
|
+
const t2 = ((x1 - x3) * (y3 - y4) - (y1 - y3) * (x3 - x4)) / denom, u2 = -((x1 - x2) * (y1 - y3) - (y1 - y2) * (x1 - x3)) / denom;
|
|
10061
|
+
if (t2 > 0 && t2 < 1 && u2 > 0 && u2 < 1)
|
|
10062
|
+
return {
|
|
10063
|
+
x: x1 + t2 * (x2 - x1),
|
|
10064
|
+
y: y1 + t2 * (y2 - y1)
|
|
10065
|
+
};
|
|
10066
|
+
}
|
|
10067
|
+
function rectEdges(rect) {
|
|
10068
|
+
const r2 = {
|
|
10069
|
+
topLeft: { x: rect.x - rect.width / 2, y: rect.y - rect.height / 2 },
|
|
10070
|
+
topRight: { x: rect.x + rect.width / 2, y: rect.y - rect.height / 2 },
|
|
10071
|
+
bottomRight: { x: rect.x + rect.width / 2, y: rect.y + rect.height / 2 },
|
|
10072
|
+
bottomLeft: { x: rect.x - rect.width / 2, y: rect.y + rect.height / 2 }
|
|
10073
|
+
};
|
|
10074
|
+
return [
|
|
10075
|
+
{ start: r2.bottomLeft, end: r2.topLeft },
|
|
10076
|
+
{ start: r2.topLeft, end: r2.topRight },
|
|
10077
|
+
{ start: r2.topRight, end: r2.bottomRight },
|
|
10078
|
+
{ start: r2.bottomRight, end: r2.bottomLeft }
|
|
10079
|
+
];
|
|
10080
|
+
}
|
|
10081
|
+
function rectangleSegment(rect, line) {
|
|
10082
|
+
for (const edge2 of rectEdges(rect)) {
|
|
10083
|
+
const intersectionPoint = segmentSegment(edge2, line);
|
|
10084
|
+
if (intersectionPoint)
|
|
10085
|
+
return intersectionPoint;
|
|
10086
|
+
}
|
|
10087
|
+
}
|
|
10088
|
+
function sortSegment(pos, line) {
|
|
10089
|
+
const distStart = Math.hypot(line.start.x - pos.x, line.start.y - pos.y), distEnd = Math.hypot(line.end.x - pos.x, line.end.y - pos.y);
|
|
10090
|
+
return distStart <= distEnd ? line : { start: line.end, end: line.start };
|
|
10091
|
+
}
|
|
10092
|
+
function circleSegment(pos, r2, line) {
|
|
10093
|
+
line = sortSegment(pos, line);
|
|
10094
|
+
const { x: x1, y: y1 } = line.start, { x: x2, y: y2 } = line.end, dx = x2 - x1, dy = y2 - y1, a2 = dx * dx + dy * dy, b2 = 2 * (dx * (x1 - pos.x) + dy * (y1 - pos.y)), c2 = (x1 - pos.x) * (x1 - pos.x) + (y1 - pos.y) * (y1 - pos.y) - r2 * r2, discriminant = b2 * b2 - 4 * a2 * c2;
|
|
10095
|
+
if (discriminant < 0)
|
|
10096
|
+
return;
|
|
10097
|
+
const t1 = (-b2 + Math.sqrt(discriminant)) / (2 * a2);
|
|
10098
|
+
if (t1 >= 0 && t1 <= 1)
|
|
10099
|
+
return {
|
|
10100
|
+
x: x1 + t1 * dx,
|
|
10101
|
+
y: y1 + t1 * dy
|
|
10102
|
+
};
|
|
10103
|
+
}
|
|
10089
10104
|
const DEFAULT_SHAPE_SIZE = 32, circle = ({
|
|
10090
10105
|
diameter = DEFAULT_SHAPE_SIZE,
|
|
10091
10106
|
fill = "whiteSmoke",
|
|
@@ -10099,7 +10114,7 @@ const DEFAULT_SHAPE_SIZE = 32, circle = ({
|
|
|
10099
10114
|
stroke=${stroke}
|
|
10100
10115
|
stroke-width=${strokeWidth}
|
|
10101
10116
|
shape-rendering=${shapeRendering}
|
|
10102
|
-
/>`, diameter, diameter), rectangle = ({
|
|
10117
|
+
/>`, diameter, diameter, (pos, line) => circleSegment(pos, diameter / 2, line)), rectangle = ({
|
|
10103
10118
|
width = DEFAULT_SHAPE_SIZE,
|
|
10104
10119
|
height = DEFAULT_SHAPE_SIZE,
|
|
10105
10120
|
cornerRadius = 4,
|
|
@@ -10119,7 +10134,7 @@ const DEFAULT_SHAPE_SIZE = 32, circle = ({
|
|
|
10119
10134
|
stroke=${stroke}
|
|
10120
10135
|
stroke-width=${strokeWidth}
|
|
10121
10136
|
shape-rendering=${shapeRendering}
|
|
10122
|
-
/>`, width, height), square = ({
|
|
10137
|
+
/>`, width, height, (pos, line) => rectangleSegment({ x: pos.x, y: pos.y, width, height }, line)), square = ({
|
|
10123
10138
|
width = DEFAULT_SHAPE_SIZE,
|
|
10124
10139
|
cornerRadius,
|
|
10125
10140
|
fill,
|
|
@@ -10223,9 +10238,14 @@ const DEFAULT_SHAPE_SIZE = 32, circle = ({
|
|
|
10223
10238
|
strokeWidth,
|
|
10224
10239
|
cornerRadius
|
|
10225
10240
|
});
|
|
10226
|
-
return extend(
|
|
10241
|
+
return extend(
|
|
10242
|
+
b`\
|
|
10227
10243
|
${rectTpl}
|
|
10228
|
-
${textTpl}`,
|
|
10244
|
+
${textTpl}`,
|
|
10245
|
+
rectTpl.extent.width,
|
|
10246
|
+
rectTpl.extent.height,
|
|
10247
|
+
rectTpl.intersection
|
|
10248
|
+
);
|
|
10229
10249
|
}, annotation = ({
|
|
10230
10250
|
text,
|
|
10231
10251
|
fontFamily = "FontAwesome",
|
|
@@ -10331,7 +10351,7 @@ function icon({
|
|
|
10331
10351
|
<g>
|
|
10332
10352
|
${shapeTpl}
|
|
10333
10353
|
${imageTpl}
|
|
10334
|
-
</g>`, shapeTpl.extent.width, shapeTpl.extent.height);
|
|
10354
|
+
</g>`, shapeTpl.extent.width, shapeTpl.extent.height, shapeTpl.intersection);
|
|
10335
10355
|
}
|
|
10336
10356
|
function adapter(component) {
|
|
10337
10357
|
return (props, element) => {
|
|
@@ -10348,18 +10368,23 @@ const defaultSubgraphRenderer = ({
|
|
|
10348
10368
|
${TextBox({ text: { text } })}
|
|
10349
10369
|
`, defaultEdgeRenderer = ({
|
|
10350
10370
|
strokeWidth,
|
|
10351
|
-
path: path2
|
|
10352
|
-
|
|
10353
|
-
markerEnd
|
|
10354
|
-
}) => b`<path d="${path2}" marker-start="${markerStart}" marker-end="${markerEnd}" style="stroke-width:${strokeWidth}px"></path>`;
|
|
10371
|
+
path: path2
|
|
10372
|
+
}) => b`<path d="${path2}" style="stroke-width:${strokeWidth}px"></path>`;
|
|
10355
10373
|
class GraphHtmlT extends GraphT {
|
|
10356
10374
|
constructor(subgraphRenderer = defaultSubgraphRenderer, vertexRenderer = defaultVertexRenderer, edgeRenderer = defaultEdgeRenderer) {
|
|
10357
10375
|
super(adapter(subgraphRenderer), adapter(vertexRenderer), adapter(edgeRenderer));
|
|
10358
10376
|
}
|
|
10377
|
+
enterMarkers(clearFirst = !1) {
|
|
10378
|
+
clearFirst && (this._svgDefs.select("#" + this._id + "_sourceDot").remove(), this._svgDefs.select("#" + this._id + "_targetDot").remove(), this._svgDefs.select("#" + this._id + "_targetArrow").remove()), this._svgDefs.append("marker").attr("class", "marker").attr("id", this._id + "_sourceDot").attr("refX", 1).attr("refY", 3).attr("markerWidth", 6).attr("markerHeight", 6).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("circle").attr("cx", 3).attr("cy", 3).attr("r", 1.5).attr("fill", "context-stroke").attr("stroke", "context-stroke"), this._svgDefs.append("marker").attr("class", "marker").attr("id", this._id + "_targetDot").attr("refX", 5).attr("refY", 3).attr("markerWidth", 6).attr("markerHeight", 6).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("circle").attr("cx", 3).attr("cy", 3).attr("r", 1.5).attr("fill", "context-stroke").attr("stroke", "context-stroke"), this._svgDefs.append("marker").attr("class", "marker").attr("id", this._id + "_targetArrow").attr("viewBox", "0 0 10 10").attr("refX", 10).attr("refY", 5).attr("markerWidth", 5).attr("markerHeight", 5).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("polyline").attr("points", "0,0 10,5 0,10 0,5").attr("fill", "context-stroke").attr("stroke", "context-stroke");
|
|
10379
|
+
}
|
|
10380
|
+
enter(domNode, element) {
|
|
10381
|
+
super.enter(domNode, element), this.enterMarkers();
|
|
10382
|
+
}
|
|
10359
10383
|
}
|
|
10360
10384
|
GraphHtmlT.prototype._class += " graph_GraphHtmlT";
|
|
10385
|
+
GraphHtmlT.prototype.publish("sourceMarker", "Dot", "set", "Target Marker", ["Dot", "None"]);
|
|
10386
|
+
GraphHtmlT.prototype.publish("targetMarker", "Arrow", "set", "Target Marker", ["Arrow", "Dot", "None"]);
|
|
10361
10387
|
const vertex = ({
|
|
10362
|
-
id,
|
|
10363
10388
|
text,
|
|
10364
10389
|
textBox,
|
|
10365
10390
|
textBoxAnnotationsE = [],
|
|
@@ -10391,2121 +10416,18 @@ ${textBoxTpl}
|
|
|
10391
10416
|
<g transform="translate(${iconAnnotationsTpl.extent.width / 2 + xIconAnnotationOffset} ${yIconOffset - yIconAnnotationOffset})">
|
|
10392
10417
|
${iconAnnotationsTpl}
|
|
10393
10418
|
</g>
|
|
10394
|
-
`, textBoxTpl.extent.width, textBoxTpl.extent.height);
|
|
10395
|
-
}
|
|
10419
|
+
`, textBoxTpl.extent.width, textBoxTpl.extent.height, (pos, line) => iconTpl.intersection({ x: pos.x, y: yIconOffset + pos.y }, line) ?? textBoxTpl.intersection({ x: pos.x, y: pos.y }, line));
|
|
10420
|
+
}, edge = ({
|
|
10421
|
+
graphInstance,
|
|
10422
|
+
strokeWidth,
|
|
10423
|
+
path: path2
|
|
10424
|
+
}) => b`<path d="${path2}" marker-start="url(#${graphInstance.id()}_source${graphInstance.sourceMarker()})" marker-end="url(#${graphInstance.id()}_target${graphInstance.targetMarker()})" style="stroke-width:${strokeWidth}px"></path>`;
|
|
10396
10425
|
class GraphHtml extends GraphHtmlT {
|
|
10397
10426
|
constructor() {
|
|
10398
|
-
super(void 0, vertex);
|
|
10427
|
+
super(void 0, vertex, edge);
|
|
10399
10428
|
}
|
|
10400
10429
|
}
|
|
10401
10430
|
GraphHtml.prototype._class += " graph_GraphHtml";
|
|
10402
|
-
var jsxRuntime = { exports: {} }, reactJsxRuntime_production_min = {}, react = { exports: {} }, react_production_min = {};
|
|
10403
|
-
/**
|
|
10404
|
-
* @license React
|
|
10405
|
-
* react.production.min.js
|
|
10406
|
-
*
|
|
10407
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10408
|
-
*
|
|
10409
|
-
* This source code is licensed under the MIT license found in the
|
|
10410
|
-
* LICENSE file in the root directory of this source tree.
|
|
10411
|
-
*/
|
|
10412
|
-
var hasRequiredReact_production_min;
|
|
10413
|
-
function requireReact_production_min() {
|
|
10414
|
-
if (hasRequiredReact_production_min) return react_production_min;
|
|
10415
|
-
hasRequiredReact_production_min = 1;
|
|
10416
|
-
var l2 = Symbol.for("react.element"), n2 = Symbol.for("react.portal"), p2 = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), r2 = Symbol.for("react.profiler"), t2 = Symbol.for("react.provider"), u2 = Symbol.for("react.context"), v2 = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x2 = Symbol.for("react.memo"), y2 = Symbol.for("react.lazy"), z2 = Symbol.iterator;
|
|
10417
|
-
function A2(a2) {
|
|
10418
|
-
return a2 === null || typeof a2 != "object" ? null : (a2 = z2 && a2[z2] || a2["@@iterator"], typeof a2 == "function" ? a2 : null);
|
|
10419
|
-
}
|
|
10420
|
-
var B2 = { isMounted: function() {
|
|
10421
|
-
return !1;
|
|
10422
|
-
}, enqueueForceUpdate: function() {
|
|
10423
|
-
}, enqueueReplaceState: function() {
|
|
10424
|
-
}, enqueueSetState: function() {
|
|
10425
|
-
} }, C2 = Object.assign, D = {};
|
|
10426
|
-
function E2(a2, b2, e2) {
|
|
10427
|
-
this.props = a2, this.context = b2, this.refs = D, this.updater = e2 || B2;
|
|
10428
|
-
}
|
|
10429
|
-
E2.prototype.isReactComponent = {}, E2.prototype.setState = function(a2, b2) {
|
|
10430
|
-
if (typeof a2 != "object" && typeof a2 != "function" && a2 != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
10431
|
-
this.updater.enqueueSetState(this, a2, b2, "setState");
|
|
10432
|
-
}, E2.prototype.forceUpdate = function(a2) {
|
|
10433
|
-
this.updater.enqueueForceUpdate(this, a2, "forceUpdate");
|
|
10434
|
-
};
|
|
10435
|
-
function F() {
|
|
10436
|
-
}
|
|
10437
|
-
F.prototype = E2.prototype;
|
|
10438
|
-
function G(a2, b2, e2) {
|
|
10439
|
-
this.props = a2, this.context = b2, this.refs = D, this.updater = e2 || B2;
|
|
10440
|
-
}
|
|
10441
|
-
var H2 = G.prototype = new F();
|
|
10442
|
-
H2.constructor = G, C2(H2, E2.prototype), H2.isPureReactComponent = !0;
|
|
10443
|
-
var I2 = Array.isArray, J = Object.prototype.hasOwnProperty, K = { current: null }, L2 = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
10444
|
-
function M2(a2, b2, e2) {
|
|
10445
|
-
var d2, c2 = {}, k2 = null, h2 = null;
|
|
10446
|
-
if (b2 != null) for (d2 in b2.ref !== void 0 && (h2 = b2.ref), b2.key !== void 0 && (k2 = "" + b2.key), b2) J.call(b2, d2) && !L2.hasOwnProperty(d2) && (c2[d2] = b2[d2]);
|
|
10447
|
-
var g2 = arguments.length - 2;
|
|
10448
|
-
if (g2 === 1) c2.children = e2;
|
|
10449
|
-
else if (1 < g2) {
|
|
10450
|
-
for (var f2 = Array(g2), m2 = 0; m2 < g2; m2++) f2[m2] = arguments[m2 + 2];
|
|
10451
|
-
c2.children = f2;
|
|
10452
|
-
}
|
|
10453
|
-
if (a2 && a2.defaultProps) for (d2 in g2 = a2.defaultProps, g2) c2[d2] === void 0 && (c2[d2] = g2[d2]);
|
|
10454
|
-
return { $$typeof: l2, type: a2, key: k2, ref: h2, props: c2, _owner: K.current };
|
|
10455
|
-
}
|
|
10456
|
-
function N2(a2, b2) {
|
|
10457
|
-
return { $$typeof: l2, type: a2.type, key: b2, ref: a2.ref, props: a2.props, _owner: a2._owner };
|
|
10458
|
-
}
|
|
10459
|
-
function O(a2) {
|
|
10460
|
-
return typeof a2 == "object" && a2 !== null && a2.$$typeof === l2;
|
|
10461
|
-
}
|
|
10462
|
-
function escape(a2) {
|
|
10463
|
-
var b2 = { "=": "=0", ":": "=2" };
|
|
10464
|
-
return "$" + a2.replace(/[=:]/g, function(a3) {
|
|
10465
|
-
return b2[a3];
|
|
10466
|
-
});
|
|
10467
|
-
}
|
|
10468
|
-
var P2 = /\/+/g;
|
|
10469
|
-
function Q(a2, b2) {
|
|
10470
|
-
return typeof a2 == "object" && a2 !== null && a2.key != null ? escape("" + a2.key) : b2.toString(36);
|
|
10471
|
-
}
|
|
10472
|
-
function R2(a2, b2, e2, d2, c2) {
|
|
10473
|
-
var k2 = typeof a2;
|
|
10474
|
-
(k2 === "undefined" || k2 === "boolean") && (a2 = null);
|
|
10475
|
-
var h2 = !1;
|
|
10476
|
-
if (a2 === null) h2 = !0;
|
|
10477
|
-
else switch (k2) {
|
|
10478
|
-
case "string":
|
|
10479
|
-
case "number":
|
|
10480
|
-
h2 = !0;
|
|
10481
|
-
break;
|
|
10482
|
-
case "object":
|
|
10483
|
-
switch (a2.$$typeof) {
|
|
10484
|
-
case l2:
|
|
10485
|
-
case n2:
|
|
10486
|
-
h2 = !0;
|
|
10487
|
-
}
|
|
10488
|
-
}
|
|
10489
|
-
if (h2) return h2 = a2, c2 = c2(h2), a2 = d2 === "" ? "." + Q(h2, 0) : d2, I2(c2) ? (e2 = "", a2 != null && (e2 = a2.replace(P2, "$&/") + "/"), R2(c2, b2, e2, "", function(a3) {
|
|
10490
|
-
return a3;
|
|
10491
|
-
})) : c2 != null && (O(c2) && (c2 = N2(c2, e2 + (!c2.key || h2 && h2.key === c2.key ? "" : ("" + c2.key).replace(P2, "$&/") + "/") + a2)), b2.push(c2)), 1;
|
|
10492
|
-
if (h2 = 0, d2 = d2 === "" ? "." : d2 + ":", I2(a2)) for (var g2 = 0; g2 < a2.length; g2++) {
|
|
10493
|
-
k2 = a2[g2];
|
|
10494
|
-
var f2 = d2 + Q(k2, g2);
|
|
10495
|
-
h2 += R2(k2, b2, e2, f2, c2);
|
|
10496
|
-
}
|
|
10497
|
-
else if (f2 = A2(a2), typeof f2 == "function") for (a2 = f2.call(a2), g2 = 0; !(k2 = a2.next()).done; ) k2 = k2.value, f2 = d2 + Q(k2, g2++), h2 += R2(k2, b2, e2, f2, c2);
|
|
10498
|
-
else if (k2 === "object") throw b2 = String(a2), Error("Objects are not valid as a React child (found: " + (b2 === "[object Object]" ? "object with keys {" + Object.keys(a2).join(", ") + "}" : b2) + "). If you meant to render a collection of children, use an array instead.");
|
|
10499
|
-
return h2;
|
|
10500
|
-
}
|
|
10501
|
-
function S2(a2, b2, e2) {
|
|
10502
|
-
if (a2 == null) return a2;
|
|
10503
|
-
var d2 = [], c2 = 0;
|
|
10504
|
-
return R2(a2, d2, "", "", function(a3) {
|
|
10505
|
-
return b2.call(e2, a3, c2++);
|
|
10506
|
-
}), d2;
|
|
10507
|
-
}
|
|
10508
|
-
function T2(a2) {
|
|
10509
|
-
if (a2._status === -1) {
|
|
10510
|
-
var b2 = a2._result;
|
|
10511
|
-
b2 = b2(), b2.then(function(b3) {
|
|
10512
|
-
(a2._status === 0 || a2._status === -1) && (a2._status = 1, a2._result = b3);
|
|
10513
|
-
}, function(b3) {
|
|
10514
|
-
(a2._status === 0 || a2._status === -1) && (a2._status = 2, a2._result = b3);
|
|
10515
|
-
}), a2._status === -1 && (a2._status = 0, a2._result = b2);
|
|
10516
|
-
}
|
|
10517
|
-
if (a2._status === 1) return a2._result.default;
|
|
10518
|
-
throw a2._result;
|
|
10519
|
-
}
|
|
10520
|
-
var U = { current: null }, V2 = { transition: null }, W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V2, ReactCurrentOwner: K };
|
|
10521
|
-
function X() {
|
|
10522
|
-
throw Error("act(...) is not supported in production builds of React.");
|
|
10523
|
-
}
|
|
10524
|
-
return react_production_min.Children = { map: S2, forEach: function(a2, b2, e2) {
|
|
10525
|
-
S2(a2, function() {
|
|
10526
|
-
b2.apply(this, arguments);
|
|
10527
|
-
}, e2);
|
|
10528
|
-
}, count: function(a2) {
|
|
10529
|
-
var b2 = 0;
|
|
10530
|
-
return S2(a2, function() {
|
|
10531
|
-
b2++;
|
|
10532
|
-
}), b2;
|
|
10533
|
-
}, toArray: function(a2) {
|
|
10534
|
-
return S2(a2, function(a3) {
|
|
10535
|
-
return a3;
|
|
10536
|
-
}) || [];
|
|
10537
|
-
}, only: function(a2) {
|
|
10538
|
-
if (!O(a2)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
10539
|
-
return a2;
|
|
10540
|
-
} }, react_production_min.Component = E2, react_production_min.Fragment = p2, react_production_min.Profiler = r2, react_production_min.PureComponent = G, react_production_min.StrictMode = q, react_production_min.Suspense = w, react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W, react_production_min.act = X, react_production_min.cloneElement = function(a2, b2, e2) {
|
|
10541
|
-
if (a2 == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a2 + ".");
|
|
10542
|
-
var d2 = C2({}, a2.props), c2 = a2.key, k2 = a2.ref, h2 = a2._owner;
|
|
10543
|
-
if (b2 != null) {
|
|
10544
|
-
if (b2.ref !== void 0 && (k2 = b2.ref, h2 = K.current), b2.key !== void 0 && (c2 = "" + b2.key), a2.type && a2.type.defaultProps) var g2 = a2.type.defaultProps;
|
|
10545
|
-
for (f2 in b2) J.call(b2, f2) && !L2.hasOwnProperty(f2) && (d2[f2] = b2[f2] === void 0 && g2 !== void 0 ? g2[f2] : b2[f2]);
|
|
10546
|
-
}
|
|
10547
|
-
var f2 = arguments.length - 2;
|
|
10548
|
-
if (f2 === 1) d2.children = e2;
|
|
10549
|
-
else if (1 < f2) {
|
|
10550
|
-
g2 = Array(f2);
|
|
10551
|
-
for (var m2 = 0; m2 < f2; m2++) g2[m2] = arguments[m2 + 2];
|
|
10552
|
-
d2.children = g2;
|
|
10553
|
-
}
|
|
10554
|
-
return { $$typeof: l2, type: a2.type, key: c2, ref: k2, props: d2, _owner: h2 };
|
|
10555
|
-
}, react_production_min.createContext = function(a2) {
|
|
10556
|
-
return a2 = { $$typeof: u2, _currentValue: a2, _currentValue2: a2, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, a2.Provider = { $$typeof: t2, _context: a2 }, a2.Consumer = a2;
|
|
10557
|
-
}, react_production_min.createElement = M2, react_production_min.createFactory = function(a2) {
|
|
10558
|
-
var b2 = M2.bind(null, a2);
|
|
10559
|
-
return b2.type = a2, b2;
|
|
10560
|
-
}, react_production_min.createRef = function() {
|
|
10561
|
-
return { current: null };
|
|
10562
|
-
}, react_production_min.forwardRef = function(a2) {
|
|
10563
|
-
return { $$typeof: v2, render: a2 };
|
|
10564
|
-
}, react_production_min.isValidElement = O, react_production_min.lazy = function(a2) {
|
|
10565
|
-
return { $$typeof: y2, _payload: { _status: -1, _result: a2 }, _init: T2 };
|
|
10566
|
-
}, react_production_min.memo = function(a2, b2) {
|
|
10567
|
-
return { $$typeof: x2, type: a2, compare: b2 === void 0 ? null : b2 };
|
|
10568
|
-
}, react_production_min.startTransition = function(a2) {
|
|
10569
|
-
var b2 = V2.transition;
|
|
10570
|
-
V2.transition = {};
|
|
10571
|
-
try {
|
|
10572
|
-
a2();
|
|
10573
|
-
} finally {
|
|
10574
|
-
V2.transition = b2;
|
|
10575
|
-
}
|
|
10576
|
-
}, react_production_min.unstable_act = X, react_production_min.useCallback = function(a2, b2) {
|
|
10577
|
-
return U.current.useCallback(a2, b2);
|
|
10578
|
-
}, react_production_min.useContext = function(a2) {
|
|
10579
|
-
return U.current.useContext(a2);
|
|
10580
|
-
}, react_production_min.useDebugValue = function() {
|
|
10581
|
-
}, react_production_min.useDeferredValue = function(a2) {
|
|
10582
|
-
return U.current.useDeferredValue(a2);
|
|
10583
|
-
}, react_production_min.useEffect = function(a2, b2) {
|
|
10584
|
-
return U.current.useEffect(a2, b2);
|
|
10585
|
-
}, react_production_min.useId = function() {
|
|
10586
|
-
return U.current.useId();
|
|
10587
|
-
}, react_production_min.useImperativeHandle = function(a2, b2, e2) {
|
|
10588
|
-
return U.current.useImperativeHandle(a2, b2, e2);
|
|
10589
|
-
}, react_production_min.useInsertionEffect = function(a2, b2) {
|
|
10590
|
-
return U.current.useInsertionEffect(a2, b2);
|
|
10591
|
-
}, react_production_min.useLayoutEffect = function(a2, b2) {
|
|
10592
|
-
return U.current.useLayoutEffect(a2, b2);
|
|
10593
|
-
}, react_production_min.useMemo = function(a2, b2) {
|
|
10594
|
-
return U.current.useMemo(a2, b2);
|
|
10595
|
-
}, react_production_min.useReducer = function(a2, b2, e2) {
|
|
10596
|
-
return U.current.useReducer(a2, b2, e2);
|
|
10597
|
-
}, react_production_min.useRef = function(a2) {
|
|
10598
|
-
return U.current.useRef(a2);
|
|
10599
|
-
}, react_production_min.useState = function(a2) {
|
|
10600
|
-
return U.current.useState(a2);
|
|
10601
|
-
}, react_production_min.useSyncExternalStore = function(a2, b2, e2) {
|
|
10602
|
-
return U.current.useSyncExternalStore(a2, b2, e2);
|
|
10603
|
-
}, react_production_min.useTransition = function() {
|
|
10604
|
-
return U.current.useTransition();
|
|
10605
|
-
}, react_production_min.version = "18.3.1", react_production_min;
|
|
10606
|
-
}
|
|
10607
|
-
var react_development = { exports: {} };
|
|
10608
|
-
/**
|
|
10609
|
-
* @license React
|
|
10610
|
-
* react.development.js
|
|
10611
|
-
*
|
|
10612
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10613
|
-
*
|
|
10614
|
-
* This source code is licensed under the MIT license found in the
|
|
10615
|
-
* LICENSE file in the root directory of this source tree.
|
|
10616
|
-
*/
|
|
10617
|
-
react_development.exports;
|
|
10618
|
-
var hasRequiredReact_development;
|
|
10619
|
-
function requireReact_development() {
|
|
10620
|
-
return hasRequiredReact_development || (hasRequiredReact_development = 1, function(module, exports) {
|
|
10621
|
-
process.env.NODE_ENV !== "production" && function() {
|
|
10622
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
10623
|
-
var ReactVersion = "18.3.1", REACT_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
10624
|
-
function getIteratorFn(maybeIterable) {
|
|
10625
|
-
if (maybeIterable === null || typeof maybeIterable != "object")
|
|
10626
|
-
return null;
|
|
10627
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
10628
|
-
return typeof maybeIterator == "function" ? maybeIterator : null;
|
|
10629
|
-
}
|
|
10630
|
-
var ReactCurrentDispatcher = {
|
|
10631
|
-
/**
|
|
10632
|
-
* @internal
|
|
10633
|
-
* @type {ReactComponent}
|
|
10634
|
-
*/
|
|
10635
|
-
current: null
|
|
10636
|
-
}, ReactCurrentBatchConfig = {
|
|
10637
|
-
transition: null
|
|
10638
|
-
}, ReactCurrentActQueue = {
|
|
10639
|
-
current: null,
|
|
10640
|
-
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
10641
|
-
isBatchingLegacy: !1,
|
|
10642
|
-
didScheduleLegacyUpdate: !1
|
|
10643
|
-
}, ReactCurrentOwner = {
|
|
10644
|
-
/**
|
|
10645
|
-
* @internal
|
|
10646
|
-
* @type {ReactComponent}
|
|
10647
|
-
*/
|
|
10648
|
-
current: null
|
|
10649
|
-
}, ReactDebugCurrentFrame = {}, currentExtraStackFrame = null;
|
|
10650
|
-
function setExtraStackFrame(stack) {
|
|
10651
|
-
currentExtraStackFrame = stack;
|
|
10652
|
-
}
|
|
10653
|
-
ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
|
|
10654
|
-
currentExtraStackFrame = stack;
|
|
10655
|
-
}, ReactDebugCurrentFrame.getCurrentStack = null, ReactDebugCurrentFrame.getStackAddendum = function() {
|
|
10656
|
-
var stack = "";
|
|
10657
|
-
currentExtraStackFrame && (stack += currentExtraStackFrame);
|
|
10658
|
-
var impl = ReactDebugCurrentFrame.getCurrentStack;
|
|
10659
|
-
return impl && (stack += impl() || ""), stack;
|
|
10660
|
-
};
|
|
10661
|
-
var enableScopeAPI = !1, enableCacheElement = !1, enableTransitionTracing = !1, enableLegacyHidden = !1, enableDebugTracing = !1, ReactSharedInternals = {
|
|
10662
|
-
ReactCurrentDispatcher,
|
|
10663
|
-
ReactCurrentBatchConfig,
|
|
10664
|
-
ReactCurrentOwner
|
|
10665
|
-
};
|
|
10666
|
-
ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame, ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
|
|
10667
|
-
function warn(format) {
|
|
10668
|
-
{
|
|
10669
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)
|
|
10670
|
-
args[_key - 1] = arguments[_key];
|
|
10671
|
-
printWarning("warn", format, args);
|
|
10672
|
-
}
|
|
10673
|
-
}
|
|
10674
|
-
function error(format) {
|
|
10675
|
-
{
|
|
10676
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++)
|
|
10677
|
-
args[_key2 - 1] = arguments[_key2];
|
|
10678
|
-
printWarning("error", format, args);
|
|
10679
|
-
}
|
|
10680
|
-
}
|
|
10681
|
-
function printWarning(level, format, args) {
|
|
10682
|
-
{
|
|
10683
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame, stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
10684
|
-
stack !== "" && (format += "%s", args = args.concat([stack]));
|
|
10685
|
-
var argsWithFormat = args.map(function(item) {
|
|
10686
|
-
return String(item);
|
|
10687
|
-
});
|
|
10688
|
-
argsWithFormat.unshift("Warning: " + format), Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
10689
|
-
}
|
|
10690
|
-
}
|
|
10691
|
-
var didWarnStateUpdateForUnmountedComponent = {};
|
|
10692
|
-
function warnNoop(publicInstance, callerName) {
|
|
10693
|
-
{
|
|
10694
|
-
var _constructor = publicInstance.constructor, componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass", warningKey = componentName + "." + callerName;
|
|
10695
|
-
if (didWarnStateUpdateForUnmountedComponent[warningKey])
|
|
10696
|
-
return;
|
|
10697
|
-
error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName), didWarnStateUpdateForUnmountedComponent[warningKey] = !0;
|
|
10698
|
-
}
|
|
10699
|
-
}
|
|
10700
|
-
var ReactNoopUpdateQueue = {
|
|
10701
|
-
/**
|
|
10702
|
-
* Checks whether or not this composite component is mounted.
|
|
10703
|
-
* @param {ReactClass} publicInstance The instance we want to test.
|
|
10704
|
-
* @return {boolean} True if mounted, false otherwise.
|
|
10705
|
-
* @protected
|
|
10706
|
-
* @final
|
|
10707
|
-
*/
|
|
10708
|
-
isMounted: function(publicInstance) {
|
|
10709
|
-
return !1;
|
|
10710
|
-
},
|
|
10711
|
-
/**
|
|
10712
|
-
* Forces an update. This should only be invoked when it is known with
|
|
10713
|
-
* certainty that we are **not** in a DOM transaction.
|
|
10714
|
-
*
|
|
10715
|
-
* You may want to call this when you know that some deeper aspect of the
|
|
10716
|
-
* component's state has changed but `setState` was not called.
|
|
10717
|
-
*
|
|
10718
|
-
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
10719
|
-
* `componentWillUpdate` and `componentDidUpdate`.
|
|
10720
|
-
*
|
|
10721
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
10722
|
-
* @param {?function} callback Called after component is updated.
|
|
10723
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
10724
|
-
* @internal
|
|
10725
|
-
*/
|
|
10726
|
-
enqueueForceUpdate: function(publicInstance, callback, callerName) {
|
|
10727
|
-
warnNoop(publicInstance, "forceUpdate");
|
|
10728
|
-
},
|
|
10729
|
-
/**
|
|
10730
|
-
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
10731
|
-
* You should treat `this.state` as immutable.
|
|
10732
|
-
*
|
|
10733
|
-
* There is no guarantee that `this.state` will be immediately updated, so
|
|
10734
|
-
* accessing `this.state` after calling this method may return the old value.
|
|
10735
|
-
*
|
|
10736
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
10737
|
-
* @param {object} completeState Next state.
|
|
10738
|
-
* @param {?function} callback Called after component is updated.
|
|
10739
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
10740
|
-
* @internal
|
|
10741
|
-
*/
|
|
10742
|
-
enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
|
|
10743
|
-
warnNoop(publicInstance, "replaceState");
|
|
10744
|
-
},
|
|
10745
|
-
/**
|
|
10746
|
-
* Sets a subset of the state. This only exists because _pendingState is
|
|
10747
|
-
* internal. This provides a merging strategy that is not available to deep
|
|
10748
|
-
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
10749
|
-
* during the merge.
|
|
10750
|
-
*
|
|
10751
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
10752
|
-
* @param {object} partialState Next partial state to be merged with state.
|
|
10753
|
-
* @param {?function} callback Called after component is updated.
|
|
10754
|
-
* @param {?string} Name of the calling function in the public API.
|
|
10755
|
-
* @internal
|
|
10756
|
-
*/
|
|
10757
|
-
enqueueSetState: function(publicInstance, partialState, callback, callerName) {
|
|
10758
|
-
warnNoop(publicInstance, "setState");
|
|
10759
|
-
}
|
|
10760
|
-
}, assign = Object.assign, emptyObject = {};
|
|
10761
|
-
Object.freeze(emptyObject);
|
|
10762
|
-
function Component(props, context, updater) {
|
|
10763
|
-
this.props = props, this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue;
|
|
10764
|
-
}
|
|
10765
|
-
Component.prototype.isReactComponent = {}, Component.prototype.setState = function(partialState, callback) {
|
|
10766
|
-
if (typeof partialState != "object" && typeof partialState != "function" && partialState != null)
|
|
10767
|
-
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
10768
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
10769
|
-
}, Component.prototype.forceUpdate = function(callback) {
|
|
10770
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
10771
|
-
};
|
|
10772
|
-
{
|
|
10773
|
-
var deprecatedAPIs = {
|
|
10774
|
-
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
10775
|
-
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
10776
|
-
}, defineDeprecationWarning = function(methodName, info) {
|
|
10777
|
-
Object.defineProperty(Component.prototype, methodName, {
|
|
10778
|
-
get: function() {
|
|
10779
|
-
warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
|
|
10780
|
-
}
|
|
10781
|
-
});
|
|
10782
|
-
};
|
|
10783
|
-
for (var fnName in deprecatedAPIs)
|
|
10784
|
-
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
10785
|
-
}
|
|
10786
|
-
function ComponentDummy() {
|
|
10787
|
-
}
|
|
10788
|
-
ComponentDummy.prototype = Component.prototype;
|
|
10789
|
-
function PureComponent(props, context, updater) {
|
|
10790
|
-
this.props = props, this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue;
|
|
10791
|
-
}
|
|
10792
|
-
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
10793
|
-
pureComponentPrototype.constructor = PureComponent, assign(pureComponentPrototype, Component.prototype), pureComponentPrototype.isPureReactComponent = !0;
|
|
10794
|
-
function createRef() {
|
|
10795
|
-
var refObject = {
|
|
10796
|
-
current: null
|
|
10797
|
-
};
|
|
10798
|
-
return Object.seal(refObject), refObject;
|
|
10799
|
-
}
|
|
10800
|
-
var isArrayImpl = Array.isArray;
|
|
10801
|
-
function isArray(a2) {
|
|
10802
|
-
return isArrayImpl(a2);
|
|
10803
|
-
}
|
|
10804
|
-
function typeName(value2) {
|
|
10805
|
-
{
|
|
10806
|
-
var hasToStringTag = typeof Symbol == "function" && Symbol.toStringTag, type = hasToStringTag && value2[Symbol.toStringTag] || value2.constructor.name || "Object";
|
|
10807
|
-
return type;
|
|
10808
|
-
}
|
|
10809
|
-
}
|
|
10810
|
-
function willCoercionThrow(value2) {
|
|
10811
|
-
try {
|
|
10812
|
-
return testStringCoercion(value2), !1;
|
|
10813
|
-
} catch {
|
|
10814
|
-
return !0;
|
|
10815
|
-
}
|
|
10816
|
-
}
|
|
10817
|
-
function testStringCoercion(value2) {
|
|
10818
|
-
return "" + value2;
|
|
10819
|
-
}
|
|
10820
|
-
function checkKeyStringCoercion(value2) {
|
|
10821
|
-
if (willCoercionThrow(value2))
|
|
10822
|
-
return error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value2)), testStringCoercion(value2);
|
|
10823
|
-
}
|
|
10824
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
10825
|
-
var displayName = outerType.displayName;
|
|
10826
|
-
if (displayName)
|
|
10827
|
-
return displayName;
|
|
10828
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
10829
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
10830
|
-
}
|
|
10831
|
-
function getContextName(type) {
|
|
10832
|
-
return type.displayName || "Context";
|
|
10833
|
-
}
|
|
10834
|
-
function getComponentNameFromType(type) {
|
|
10835
|
-
if (type == null)
|
|
10836
|
-
return null;
|
|
10837
|
-
if (typeof type.tag == "number" && error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof type == "function")
|
|
10838
|
-
return type.displayName || type.name || null;
|
|
10839
|
-
if (typeof type == "string")
|
|
10840
|
-
return type;
|
|
10841
|
-
switch (type) {
|
|
10842
|
-
case REACT_FRAGMENT_TYPE:
|
|
10843
|
-
return "Fragment";
|
|
10844
|
-
case REACT_PORTAL_TYPE:
|
|
10845
|
-
return "Portal";
|
|
10846
|
-
case REACT_PROFILER_TYPE:
|
|
10847
|
-
return "Profiler";
|
|
10848
|
-
case REACT_STRICT_MODE_TYPE:
|
|
10849
|
-
return "StrictMode";
|
|
10850
|
-
case REACT_SUSPENSE_TYPE:
|
|
10851
|
-
return "Suspense";
|
|
10852
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
10853
|
-
return "SuspenseList";
|
|
10854
|
-
}
|
|
10855
|
-
if (typeof type == "object")
|
|
10856
|
-
switch (type.$$typeof) {
|
|
10857
|
-
case REACT_CONTEXT_TYPE:
|
|
10858
|
-
var context = type;
|
|
10859
|
-
return getContextName(context) + ".Consumer";
|
|
10860
|
-
case REACT_PROVIDER_TYPE:
|
|
10861
|
-
var provider = type;
|
|
10862
|
-
return getContextName(provider._context) + ".Provider";
|
|
10863
|
-
case REACT_FORWARD_REF_TYPE:
|
|
10864
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
10865
|
-
case REACT_MEMO_TYPE:
|
|
10866
|
-
var outerName = type.displayName || null;
|
|
10867
|
-
return outerName !== null ? outerName : getComponentNameFromType(type.type) || "Memo";
|
|
10868
|
-
case REACT_LAZY_TYPE: {
|
|
10869
|
-
var lazyComponent = type, payload = lazyComponent._payload, init = lazyComponent._init;
|
|
10870
|
-
try {
|
|
10871
|
-
return getComponentNameFromType(init(payload));
|
|
10872
|
-
} catch {
|
|
10873
|
-
return null;
|
|
10874
|
-
}
|
|
10875
|
-
}
|
|
10876
|
-
}
|
|
10877
|
-
return null;
|
|
10878
|
-
}
|
|
10879
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty, RESERVED_PROPS = {
|
|
10880
|
-
key: !0,
|
|
10881
|
-
ref: !0,
|
|
10882
|
-
__self: !0,
|
|
10883
|
-
__source: !0
|
|
10884
|
-
}, specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
|
|
10885
|
-
didWarnAboutStringRefs = {};
|
|
10886
|
-
function hasValidRef(config) {
|
|
10887
|
-
if (hasOwnProperty.call(config, "ref")) {
|
|
10888
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
10889
|
-
if (getter && getter.isReactWarning)
|
|
10890
|
-
return !1;
|
|
10891
|
-
}
|
|
10892
|
-
return config.ref !== void 0;
|
|
10893
|
-
}
|
|
10894
|
-
function hasValidKey(config) {
|
|
10895
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
10896
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
10897
|
-
if (getter && getter.isReactWarning)
|
|
10898
|
-
return !1;
|
|
10899
|
-
}
|
|
10900
|
-
return config.key !== void 0;
|
|
10901
|
-
}
|
|
10902
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
10903
|
-
var warnAboutAccessingKey = function() {
|
|
10904
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, error("%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)", displayName));
|
|
10905
|
-
};
|
|
10906
|
-
warnAboutAccessingKey.isReactWarning = !0, Object.defineProperty(props, "key", {
|
|
10907
|
-
get: warnAboutAccessingKey,
|
|
10908
|
-
configurable: !0
|
|
10909
|
-
});
|
|
10910
|
-
}
|
|
10911
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
10912
|
-
var warnAboutAccessingRef = function() {
|
|
10913
|
-
specialPropRefWarningShown || (specialPropRefWarningShown = !0, error("%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)", displayName));
|
|
10914
|
-
};
|
|
10915
|
-
warnAboutAccessingRef.isReactWarning = !0, Object.defineProperty(props, "ref", {
|
|
10916
|
-
get: warnAboutAccessingRef,
|
|
10917
|
-
configurable: !0
|
|
10918
|
-
});
|
|
10919
|
-
}
|
|
10920
|
-
function warnIfStringRefCannotBeAutoConverted(config) {
|
|
10921
|
-
if (typeof config.ref == "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
|
|
10922
|
-
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
10923
|
-
didWarnAboutStringRefs[componentName] || (error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref), didWarnAboutStringRefs[componentName] = !0);
|
|
10924
|
-
}
|
|
10925
|
-
}
|
|
10926
|
-
var ReactElement = function(type, key, ref, self2, source, owner, props) {
|
|
10927
|
-
var element = {
|
|
10928
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
10929
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
10930
|
-
// Built-in properties that belong on the element
|
|
10931
|
-
type,
|
|
10932
|
-
key,
|
|
10933
|
-
ref,
|
|
10934
|
-
props,
|
|
10935
|
-
// Record the component responsible for creating this element.
|
|
10936
|
-
_owner: owner
|
|
10937
|
-
};
|
|
10938
|
-
return element._store = {}, Object.defineProperty(element._store, "validated", {
|
|
10939
|
-
configurable: !1,
|
|
10940
|
-
enumerable: !1,
|
|
10941
|
-
writable: !0,
|
|
10942
|
-
value: !1
|
|
10943
|
-
}), Object.defineProperty(element, "_self", {
|
|
10944
|
-
configurable: !1,
|
|
10945
|
-
enumerable: !1,
|
|
10946
|
-
writable: !1,
|
|
10947
|
-
value: self2
|
|
10948
|
-
}), Object.defineProperty(element, "_source", {
|
|
10949
|
-
configurable: !1,
|
|
10950
|
-
enumerable: !1,
|
|
10951
|
-
writable: !1,
|
|
10952
|
-
value: source
|
|
10953
|
-
}), Object.freeze && (Object.freeze(element.props), Object.freeze(element)), element;
|
|
10954
|
-
};
|
|
10955
|
-
function createElement(type, config, children) {
|
|
10956
|
-
var propName, props = {}, key = null, ref = null, self2 = null, source = null;
|
|
10957
|
-
if (config != null) {
|
|
10958
|
-
hasValidRef(config) && (ref = config.ref, warnIfStringRefCannotBeAutoConverted(config)), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), self2 = config.__self === void 0 ? null : config.__self, source = config.__source === void 0 ? null : config.__source;
|
|
10959
|
-
for (propName in config)
|
|
10960
|
-
hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName) && (props[propName] = config[propName]);
|
|
10961
|
-
}
|
|
10962
|
-
var childrenLength = arguments.length - 2;
|
|
10963
|
-
if (childrenLength === 1)
|
|
10964
|
-
props.children = children;
|
|
10965
|
-
else if (childrenLength > 1) {
|
|
10966
|
-
for (var childArray = Array(childrenLength), i2 = 0; i2 < childrenLength; i2++)
|
|
10967
|
-
childArray[i2] = arguments[i2 + 2];
|
|
10968
|
-
Object.freeze && Object.freeze(childArray), props.children = childArray;
|
|
10969
|
-
}
|
|
10970
|
-
if (type && type.defaultProps) {
|
|
10971
|
-
var defaultProps = type.defaultProps;
|
|
10972
|
-
for (propName in defaultProps)
|
|
10973
|
-
props[propName] === void 0 && (props[propName] = defaultProps[propName]);
|
|
10974
|
-
}
|
|
10975
|
-
if (key || ref) {
|
|
10976
|
-
var displayName = typeof type == "function" ? type.displayName || type.name || "Unknown" : type;
|
|
10977
|
-
key && defineKeyPropWarningGetter(props, displayName), ref && defineRefPropWarningGetter(props, displayName);
|
|
10978
|
-
}
|
|
10979
|
-
return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
|
|
10980
|
-
}
|
|
10981
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
10982
|
-
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
|
|
10983
|
-
return newElement;
|
|
10984
|
-
}
|
|
10985
|
-
function cloneElement(element, config, children) {
|
|
10986
|
-
if (element == null)
|
|
10987
|
-
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
|
|
10988
|
-
var propName, props = assign({}, element.props), key = element.key, ref = element.ref, self2 = element._self, source = element._source, owner = element._owner;
|
|
10989
|
-
if (config != null) {
|
|
10990
|
-
hasValidRef(config) && (ref = config.ref, owner = ReactCurrentOwner.current), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
10991
|
-
var defaultProps;
|
|
10992
|
-
element.type && element.type.defaultProps && (defaultProps = element.type.defaultProps);
|
|
10993
|
-
for (propName in config)
|
|
10994
|
-
hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName) && (config[propName] === void 0 && defaultProps !== void 0 ? props[propName] = defaultProps[propName] : props[propName] = config[propName]);
|
|
10995
|
-
}
|
|
10996
|
-
var childrenLength = arguments.length - 2;
|
|
10997
|
-
if (childrenLength === 1)
|
|
10998
|
-
props.children = children;
|
|
10999
|
-
else if (childrenLength > 1) {
|
|
11000
|
-
for (var childArray = Array(childrenLength), i2 = 0; i2 < childrenLength; i2++)
|
|
11001
|
-
childArray[i2] = arguments[i2 + 2];
|
|
11002
|
-
props.children = childArray;
|
|
11003
|
-
}
|
|
11004
|
-
return ReactElement(element.type, key, ref, self2, source, owner, props);
|
|
11005
|
-
}
|
|
11006
|
-
function isValidElement(object) {
|
|
11007
|
-
return typeof object == "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
11008
|
-
}
|
|
11009
|
-
var SEPARATOR = ".", SUBSEPARATOR = ":";
|
|
11010
|
-
function escape(key) {
|
|
11011
|
-
var escapeRegex = /[=:]/g, escaperLookup = {
|
|
11012
|
-
"=": "=0",
|
|
11013
|
-
":": "=2"
|
|
11014
|
-
}, escapedString = key.replace(escapeRegex, function(match) {
|
|
11015
|
-
return escaperLookup[match];
|
|
11016
|
-
});
|
|
11017
|
-
return "$" + escapedString;
|
|
11018
|
-
}
|
|
11019
|
-
var didWarnAboutMaps = !1, userProvidedKeyEscapeRegex = /\/+/g;
|
|
11020
|
-
function escapeUserProvidedKey(text) {
|
|
11021
|
-
return text.replace(userProvidedKeyEscapeRegex, "$&/");
|
|
11022
|
-
}
|
|
11023
|
-
function getElementKey(element, index2) {
|
|
11024
|
-
return typeof element == "object" && element !== null && element.key != null ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index2.toString(36);
|
|
11025
|
-
}
|
|
11026
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
11027
|
-
var type = typeof children;
|
|
11028
|
-
(type === "undefined" || type === "boolean") && (children = null);
|
|
11029
|
-
var invokeCallback = !1;
|
|
11030
|
-
if (children === null)
|
|
11031
|
-
invokeCallback = !0;
|
|
11032
|
-
else
|
|
11033
|
-
switch (type) {
|
|
11034
|
-
case "string":
|
|
11035
|
-
case "number":
|
|
11036
|
-
invokeCallback = !0;
|
|
11037
|
-
break;
|
|
11038
|
-
case "object":
|
|
11039
|
-
switch (children.$$typeof) {
|
|
11040
|
-
case REACT_ELEMENT_TYPE:
|
|
11041
|
-
case REACT_PORTAL_TYPE:
|
|
11042
|
-
invokeCallback = !0;
|
|
11043
|
-
}
|
|
11044
|
-
}
|
|
11045
|
-
if (invokeCallback) {
|
|
11046
|
-
var _child = children, mappedChild = callback(_child), childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
|
|
11047
|
-
if (isArray(mappedChild)) {
|
|
11048
|
-
var escapedChildKey = "";
|
|
11049
|
-
childKey != null && (escapedChildKey = escapeUserProvidedKey(childKey) + "/"), mapIntoArray(mappedChild, array, escapedChildKey, "", function(c2) {
|
|
11050
|
-
return c2;
|
|
11051
|
-
});
|
|
11052
|
-
} else mappedChild != null && (isValidElement(mappedChild) && (mappedChild.key && (!_child || _child.key !== mappedChild.key) && checkKeyStringCoercion(mappedChild.key), mappedChild = cloneAndReplaceKey(
|
|
11053
|
-
mappedChild,
|
|
11054
|
-
// Keep both the (mapped) and old keys if they differ, just as
|
|
11055
|
-
// traverseAllChildren used to do for objects as children
|
|
11056
|
-
escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
11057
|
-
(mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
|
|
11058
|
-
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
11059
|
-
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
11060
|
-
escapeUserProvidedKey("" + mappedChild.key) + "/"
|
|
11061
|
-
) : "") + childKey
|
|
11062
|
-
)), array.push(mappedChild));
|
|
11063
|
-
return 1;
|
|
11064
|
-
}
|
|
11065
|
-
var child, nextName, subtreeCount = 0, nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
|
11066
|
-
if (isArray(children))
|
|
11067
|
-
for (var i2 = 0; i2 < children.length; i2++)
|
|
11068
|
-
child = children[i2], nextName = nextNamePrefix + getElementKey(child, i2), subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
11069
|
-
else {
|
|
11070
|
-
var iteratorFn = getIteratorFn(children);
|
|
11071
|
-
if (typeof iteratorFn == "function") {
|
|
11072
|
-
var iterableChildren = children;
|
|
11073
|
-
iteratorFn === iterableChildren.entries && (didWarnAboutMaps || warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), didWarnAboutMaps = !0);
|
|
11074
|
-
for (var iterator = iteratorFn.call(iterableChildren), step, ii = 0; !(step = iterator.next()).done; )
|
|
11075
|
-
child = step.value, nextName = nextNamePrefix + getElementKey(child, ii++), subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
11076
|
-
} else if (type === "object") {
|
|
11077
|
-
var childrenString = String(children);
|
|
11078
|
-
throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
|
|
11079
|
-
}
|
|
11080
|
-
}
|
|
11081
|
-
return subtreeCount;
|
|
11082
|
-
}
|
|
11083
|
-
function mapChildren2(children, func, context) {
|
|
11084
|
-
if (children == null)
|
|
11085
|
-
return children;
|
|
11086
|
-
var result = [], count2 = 0;
|
|
11087
|
-
return mapIntoArray(children, result, "", "", function(child) {
|
|
11088
|
-
return func.call(context, child, count2++);
|
|
11089
|
-
}), result;
|
|
11090
|
-
}
|
|
11091
|
-
function countChildren(children) {
|
|
11092
|
-
var n2 = 0;
|
|
11093
|
-
return mapChildren2(children, function() {
|
|
11094
|
-
n2++;
|
|
11095
|
-
}), n2;
|
|
11096
|
-
}
|
|
11097
|
-
function forEachChildren(children, forEachFunc, forEachContext) {
|
|
11098
|
-
mapChildren2(children, function() {
|
|
11099
|
-
forEachFunc.apply(this, arguments);
|
|
11100
|
-
}, forEachContext);
|
|
11101
|
-
}
|
|
11102
|
-
function toArray(children) {
|
|
11103
|
-
return mapChildren2(children, function(child) {
|
|
11104
|
-
return child;
|
|
11105
|
-
}) || [];
|
|
11106
|
-
}
|
|
11107
|
-
function onlyChild(children) {
|
|
11108
|
-
if (!isValidElement(children))
|
|
11109
|
-
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
11110
|
-
return children;
|
|
11111
|
-
}
|
|
11112
|
-
function createContext(defaultValue) {
|
|
11113
|
-
var context = {
|
|
11114
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
11115
|
-
// As a workaround to support multiple concurrent renderers, we categorize
|
|
11116
|
-
// some renderers as primary and others as secondary. We only expect
|
|
11117
|
-
// there to be two concurrent renderers at most: React Native (primary) and
|
|
11118
|
-
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
11119
|
-
// Secondary renderers store their context values on separate fields.
|
|
11120
|
-
_currentValue: defaultValue,
|
|
11121
|
-
_currentValue2: defaultValue,
|
|
11122
|
-
// Used to track how many concurrent renderers this context currently
|
|
11123
|
-
// supports within in a single renderer. Such as parallel server rendering.
|
|
11124
|
-
_threadCount: 0,
|
|
11125
|
-
// These are circular
|
|
11126
|
-
Provider: null,
|
|
11127
|
-
Consumer: null,
|
|
11128
|
-
// Add these to use same hidden class in VM as ServerContext
|
|
11129
|
-
_defaultValue: null,
|
|
11130
|
-
_globalName: null
|
|
11131
|
-
};
|
|
11132
|
-
context.Provider = {
|
|
11133
|
-
$$typeof: REACT_PROVIDER_TYPE,
|
|
11134
|
-
_context: context
|
|
11135
|
-
};
|
|
11136
|
-
var hasWarnedAboutUsingNestedContextConsumers = !1, hasWarnedAboutUsingConsumerProvider = !1, hasWarnedAboutDisplayNameOnConsumer = !1;
|
|
11137
|
-
{
|
|
11138
|
-
var Consumer = {
|
|
11139
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
11140
|
-
_context: context
|
|
11141
|
-
};
|
|
11142
|
-
Object.defineProperties(Consumer, {
|
|
11143
|
-
Provider: {
|
|
11144
|
-
get: function() {
|
|
11145
|
-
return hasWarnedAboutUsingConsumerProvider || (hasWarnedAboutUsingConsumerProvider = !0, error("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), context.Provider;
|
|
11146
|
-
},
|
|
11147
|
-
set: function(_Provider) {
|
|
11148
|
-
context.Provider = _Provider;
|
|
11149
|
-
}
|
|
11150
|
-
},
|
|
11151
|
-
_currentValue: {
|
|
11152
|
-
get: function() {
|
|
11153
|
-
return context._currentValue;
|
|
11154
|
-
},
|
|
11155
|
-
set: function(_currentValue) {
|
|
11156
|
-
context._currentValue = _currentValue;
|
|
11157
|
-
}
|
|
11158
|
-
},
|
|
11159
|
-
_currentValue2: {
|
|
11160
|
-
get: function() {
|
|
11161
|
-
return context._currentValue2;
|
|
11162
|
-
},
|
|
11163
|
-
set: function(_currentValue2) {
|
|
11164
|
-
context._currentValue2 = _currentValue2;
|
|
11165
|
-
}
|
|
11166
|
-
},
|
|
11167
|
-
_threadCount: {
|
|
11168
|
-
get: function() {
|
|
11169
|
-
return context._threadCount;
|
|
11170
|
-
},
|
|
11171
|
-
set: function(_threadCount) {
|
|
11172
|
-
context._threadCount = _threadCount;
|
|
11173
|
-
}
|
|
11174
|
-
},
|
|
11175
|
-
Consumer: {
|
|
11176
|
-
get: function() {
|
|
11177
|
-
return hasWarnedAboutUsingNestedContextConsumers || (hasWarnedAboutUsingNestedContextConsumers = !0, error("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), context.Consumer;
|
|
11178
|
-
}
|
|
11179
|
-
},
|
|
11180
|
-
displayName: {
|
|
11181
|
-
get: function() {
|
|
11182
|
-
return context.displayName;
|
|
11183
|
-
},
|
|
11184
|
-
set: function(displayName) {
|
|
11185
|
-
hasWarnedAboutDisplayNameOnConsumer || (warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName), hasWarnedAboutDisplayNameOnConsumer = !0);
|
|
11186
|
-
}
|
|
11187
|
-
}
|
|
11188
|
-
}), context.Consumer = Consumer;
|
|
11189
|
-
}
|
|
11190
|
-
return context._currentRenderer = null, context._currentRenderer2 = null, context;
|
|
11191
|
-
}
|
|
11192
|
-
var Uninitialized = -1, Pending = 0, Resolved = 1, Rejected = 2;
|
|
11193
|
-
function lazyInitializer(payload) {
|
|
11194
|
-
if (payload._status === Uninitialized) {
|
|
11195
|
-
var ctor = payload._result, thenable = ctor();
|
|
11196
|
-
if (thenable.then(function(moduleObject2) {
|
|
11197
|
-
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
11198
|
-
var resolved = payload;
|
|
11199
|
-
resolved._status = Resolved, resolved._result = moduleObject2;
|
|
11200
|
-
}
|
|
11201
|
-
}, function(error2) {
|
|
11202
|
-
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
11203
|
-
var rejected = payload;
|
|
11204
|
-
rejected._status = Rejected, rejected._result = error2;
|
|
11205
|
-
}
|
|
11206
|
-
}), payload._status === Uninitialized) {
|
|
11207
|
-
var pending = payload;
|
|
11208
|
-
pending._status = Pending, pending._result = thenable;
|
|
11209
|
-
}
|
|
11210
|
-
}
|
|
11211
|
-
if (payload._status === Resolved) {
|
|
11212
|
-
var moduleObject = payload._result;
|
|
11213
|
-
return moduleObject === void 0 && error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
11214
|
-
|
|
11215
|
-
Your code should look like:
|
|
11216
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
11217
|
-
|
|
11218
|
-
Did you accidentally put curly braces around the import?`, moduleObject), "default" in moduleObject || error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
11219
|
-
|
|
11220
|
-
Your code should look like:
|
|
11221
|
-
const MyComponent = lazy(() => import('./MyComponent'))`, moduleObject), moduleObject.default;
|
|
11222
|
-
} else
|
|
11223
|
-
throw payload._result;
|
|
11224
|
-
}
|
|
11225
|
-
function lazy(ctor) {
|
|
11226
|
-
var payload = {
|
|
11227
|
-
// We use these fields to store the result.
|
|
11228
|
-
_status: Uninitialized,
|
|
11229
|
-
_result: ctor
|
|
11230
|
-
}, lazyType = {
|
|
11231
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
11232
|
-
_payload: payload,
|
|
11233
|
-
_init: lazyInitializer
|
|
11234
|
-
};
|
|
11235
|
-
{
|
|
11236
|
-
var defaultProps, propTypes;
|
|
11237
|
-
Object.defineProperties(lazyType, {
|
|
11238
|
-
defaultProps: {
|
|
11239
|
-
configurable: !0,
|
|
11240
|
-
get: function() {
|
|
11241
|
-
return defaultProps;
|
|
11242
|
-
},
|
|
11243
|
-
set: function(newDefaultProps) {
|
|
11244
|
-
error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), defaultProps = newDefaultProps, Object.defineProperty(lazyType, "defaultProps", {
|
|
11245
|
-
enumerable: !0
|
|
11246
|
-
});
|
|
11247
|
-
}
|
|
11248
|
-
},
|
|
11249
|
-
propTypes: {
|
|
11250
|
-
configurable: !0,
|
|
11251
|
-
get: function() {
|
|
11252
|
-
return propTypes;
|
|
11253
|
-
},
|
|
11254
|
-
set: function(newPropTypes) {
|
|
11255
|
-
error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), propTypes = newPropTypes, Object.defineProperty(lazyType, "propTypes", {
|
|
11256
|
-
enumerable: !0
|
|
11257
|
-
});
|
|
11258
|
-
}
|
|
11259
|
-
}
|
|
11260
|
-
});
|
|
11261
|
-
}
|
|
11262
|
-
return lazyType;
|
|
11263
|
-
}
|
|
11264
|
-
function forwardRef(render2) {
|
|
11265
|
-
render2 != null && render2.$$typeof === REACT_MEMO_TYPE ? error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof render2 != "function" ? error("forwardRef requires a render function but was given %s.", render2 === null ? "null" : typeof render2) : render2.length !== 0 && render2.length !== 2 && error("forwardRef render functions accept exactly two parameters: props and ref. %s", render2.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), render2 != null && (render2.defaultProps != null || render2.propTypes != null) && error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
11266
|
-
var elementType = {
|
|
11267
|
-
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
11268
|
-
render: render2
|
|
11269
|
-
};
|
|
11270
|
-
{
|
|
11271
|
-
var ownName;
|
|
11272
|
-
Object.defineProperty(elementType, "displayName", {
|
|
11273
|
-
enumerable: !1,
|
|
11274
|
-
configurable: !0,
|
|
11275
|
-
get: function() {
|
|
11276
|
-
return ownName;
|
|
11277
|
-
},
|
|
11278
|
-
set: function(name) {
|
|
11279
|
-
ownName = name, !render2.name && !render2.displayName && (render2.displayName = name);
|
|
11280
|
-
}
|
|
11281
|
-
});
|
|
11282
|
-
}
|
|
11283
|
-
return elementType;
|
|
11284
|
-
}
|
|
11285
|
-
var REACT_MODULE_REFERENCE;
|
|
11286
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
11287
|
-
function isValidElementType(type) {
|
|
11288
|
-
return !!(typeof type == "string" || typeof type == "function" || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing || typeof type == "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
11289
|
-
// types supported by any Flight configuration anywhere since
|
|
11290
|
-
// we don't know which Flight build this will end up being used
|
|
11291
|
-
// with.
|
|
11292
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0));
|
|
11293
|
-
}
|
|
11294
|
-
function memo(type, compare) {
|
|
11295
|
-
isValidElementType(type) || error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
|
|
11296
|
-
var elementType = {
|
|
11297
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
11298
|
-
type,
|
|
11299
|
-
compare: compare === void 0 ? null : compare
|
|
11300
|
-
};
|
|
11301
|
-
{
|
|
11302
|
-
var ownName;
|
|
11303
|
-
Object.defineProperty(elementType, "displayName", {
|
|
11304
|
-
enumerable: !1,
|
|
11305
|
-
configurable: !0,
|
|
11306
|
-
get: function() {
|
|
11307
|
-
return ownName;
|
|
11308
|
-
},
|
|
11309
|
-
set: function(name) {
|
|
11310
|
-
ownName = name, !type.name && !type.displayName && (type.displayName = name);
|
|
11311
|
-
}
|
|
11312
|
-
});
|
|
11313
|
-
}
|
|
11314
|
-
return elementType;
|
|
11315
|
-
}
|
|
11316
|
-
function resolveDispatcher() {
|
|
11317
|
-
var dispatcher = ReactCurrentDispatcher.current;
|
|
11318
|
-
return dispatcher === null && error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
11319
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11320
|
-
2. You might be breaking the Rules of Hooks
|
|
11321
|
-
3. You might have more than one copy of React in the same app
|
|
11322
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), dispatcher;
|
|
11323
|
-
}
|
|
11324
|
-
function useContext(Context) {
|
|
11325
|
-
var dispatcher = resolveDispatcher();
|
|
11326
|
-
if (Context._context !== void 0) {
|
|
11327
|
-
var realContext = Context._context;
|
|
11328
|
-
realContext.Consumer === Context ? error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : realContext.Provider === Context && error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
11329
|
-
}
|
|
11330
|
-
return dispatcher.useContext(Context);
|
|
11331
|
-
}
|
|
11332
|
-
function useState(initialState) {
|
|
11333
|
-
var dispatcher = resolveDispatcher();
|
|
11334
|
-
return dispatcher.useState(initialState);
|
|
11335
|
-
}
|
|
11336
|
-
function useReducer(reducer, initialArg, init) {
|
|
11337
|
-
var dispatcher = resolveDispatcher();
|
|
11338
|
-
return dispatcher.useReducer(reducer, initialArg, init);
|
|
11339
|
-
}
|
|
11340
|
-
function useRef(initialValue) {
|
|
11341
|
-
var dispatcher = resolveDispatcher();
|
|
11342
|
-
return dispatcher.useRef(initialValue);
|
|
11343
|
-
}
|
|
11344
|
-
function useEffect(create, deps) {
|
|
11345
|
-
var dispatcher = resolveDispatcher();
|
|
11346
|
-
return dispatcher.useEffect(create, deps);
|
|
11347
|
-
}
|
|
11348
|
-
function useInsertionEffect(create, deps) {
|
|
11349
|
-
var dispatcher = resolveDispatcher();
|
|
11350
|
-
return dispatcher.useInsertionEffect(create, deps);
|
|
11351
|
-
}
|
|
11352
|
-
function useLayoutEffect(create, deps) {
|
|
11353
|
-
var dispatcher = resolveDispatcher();
|
|
11354
|
-
return dispatcher.useLayoutEffect(create, deps);
|
|
11355
|
-
}
|
|
11356
|
-
function useCallback(callback, deps) {
|
|
11357
|
-
var dispatcher = resolveDispatcher();
|
|
11358
|
-
return dispatcher.useCallback(callback, deps);
|
|
11359
|
-
}
|
|
11360
|
-
function useMemo(create, deps) {
|
|
11361
|
-
var dispatcher = resolveDispatcher();
|
|
11362
|
-
return dispatcher.useMemo(create, deps);
|
|
11363
|
-
}
|
|
11364
|
-
function useImperativeHandle(ref, create, deps) {
|
|
11365
|
-
var dispatcher = resolveDispatcher();
|
|
11366
|
-
return dispatcher.useImperativeHandle(ref, create, deps);
|
|
11367
|
-
}
|
|
11368
|
-
function useDebugValue(value2, formatterFn) {
|
|
11369
|
-
{
|
|
11370
|
-
var dispatcher = resolveDispatcher();
|
|
11371
|
-
return dispatcher.useDebugValue(value2, formatterFn);
|
|
11372
|
-
}
|
|
11373
|
-
}
|
|
11374
|
-
function useTransition() {
|
|
11375
|
-
var dispatcher = resolveDispatcher();
|
|
11376
|
-
return dispatcher.useTransition();
|
|
11377
|
-
}
|
|
11378
|
-
function useDeferredValue(value2) {
|
|
11379
|
-
var dispatcher = resolveDispatcher();
|
|
11380
|
-
return dispatcher.useDeferredValue(value2);
|
|
11381
|
-
}
|
|
11382
|
-
function useId() {
|
|
11383
|
-
var dispatcher = resolveDispatcher();
|
|
11384
|
-
return dispatcher.useId();
|
|
11385
|
-
}
|
|
11386
|
-
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
11387
|
-
var dispatcher = resolveDispatcher();
|
|
11388
|
-
return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
11389
|
-
}
|
|
11390
|
-
var disabledDepth = 0, prevLog, prevInfo, prevWarn, prevError, prevGroup, prevGroupCollapsed, prevGroupEnd;
|
|
11391
|
-
function disabledLog() {
|
|
11392
|
-
}
|
|
11393
|
-
disabledLog.__reactDisabledLog = !0;
|
|
11394
|
-
function disableLogs() {
|
|
11395
|
-
{
|
|
11396
|
-
if (disabledDepth === 0) {
|
|
11397
|
-
prevLog = console.log, prevInfo = console.info, prevWarn = console.warn, prevError = console.error, prevGroup = console.group, prevGroupCollapsed = console.groupCollapsed, prevGroupEnd = console.groupEnd;
|
|
11398
|
-
var props = {
|
|
11399
|
-
configurable: !0,
|
|
11400
|
-
enumerable: !0,
|
|
11401
|
-
value: disabledLog,
|
|
11402
|
-
writable: !0
|
|
11403
|
-
};
|
|
11404
|
-
Object.defineProperties(console, {
|
|
11405
|
-
info: props,
|
|
11406
|
-
log: props,
|
|
11407
|
-
warn: props,
|
|
11408
|
-
error: props,
|
|
11409
|
-
group: props,
|
|
11410
|
-
groupCollapsed: props,
|
|
11411
|
-
groupEnd: props
|
|
11412
|
-
});
|
|
11413
|
-
}
|
|
11414
|
-
disabledDepth++;
|
|
11415
|
-
}
|
|
11416
|
-
}
|
|
11417
|
-
function reenableLogs() {
|
|
11418
|
-
{
|
|
11419
|
-
if (disabledDepth--, disabledDepth === 0) {
|
|
11420
|
-
var props = {
|
|
11421
|
-
configurable: !0,
|
|
11422
|
-
enumerable: !0,
|
|
11423
|
-
writable: !0
|
|
11424
|
-
};
|
|
11425
|
-
Object.defineProperties(console, {
|
|
11426
|
-
log: assign({}, props, {
|
|
11427
|
-
value: prevLog
|
|
11428
|
-
}),
|
|
11429
|
-
info: assign({}, props, {
|
|
11430
|
-
value: prevInfo
|
|
11431
|
-
}),
|
|
11432
|
-
warn: assign({}, props, {
|
|
11433
|
-
value: prevWarn
|
|
11434
|
-
}),
|
|
11435
|
-
error: assign({}, props, {
|
|
11436
|
-
value: prevError
|
|
11437
|
-
}),
|
|
11438
|
-
group: assign({}, props, {
|
|
11439
|
-
value: prevGroup
|
|
11440
|
-
}),
|
|
11441
|
-
groupCollapsed: assign({}, props, {
|
|
11442
|
-
value: prevGroupCollapsed
|
|
11443
|
-
}),
|
|
11444
|
-
groupEnd: assign({}, props, {
|
|
11445
|
-
value: prevGroupEnd
|
|
11446
|
-
})
|
|
11447
|
-
});
|
|
11448
|
-
}
|
|
11449
|
-
disabledDepth < 0 && error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
11450
|
-
}
|
|
11451
|
-
}
|
|
11452
|
-
var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, prefix;
|
|
11453
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
11454
|
-
{
|
|
11455
|
-
if (prefix === void 0)
|
|
11456
|
-
try {
|
|
11457
|
-
throw Error();
|
|
11458
|
-
} catch (x2) {
|
|
11459
|
-
var match = x2.stack.trim().match(/\n( *(at )?)/);
|
|
11460
|
-
prefix = match && match[1] || "";
|
|
11461
|
-
}
|
|
11462
|
-
return `
|
|
11463
|
-
` + prefix + name;
|
|
11464
|
-
}
|
|
11465
|
-
}
|
|
11466
|
-
var reentry = !1, componentFrameCache;
|
|
11467
|
-
{
|
|
11468
|
-
var PossiblyWeakMap = typeof WeakMap == "function" ? WeakMap : Map;
|
|
11469
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
11470
|
-
}
|
|
11471
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
11472
|
-
if (!fn || reentry)
|
|
11473
|
-
return "";
|
|
11474
|
-
{
|
|
11475
|
-
var frame2 = componentFrameCache.get(fn);
|
|
11476
|
-
if (frame2 !== void 0)
|
|
11477
|
-
return frame2;
|
|
11478
|
-
}
|
|
11479
|
-
var control;
|
|
11480
|
-
reentry = !0;
|
|
11481
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
11482
|
-
Error.prepareStackTrace = void 0;
|
|
11483
|
-
var previousDispatcher;
|
|
11484
|
-
previousDispatcher = ReactCurrentDispatcher$1.current, ReactCurrentDispatcher$1.current = null, disableLogs();
|
|
11485
|
-
try {
|
|
11486
|
-
if (construct) {
|
|
11487
|
-
var Fake = function() {
|
|
11488
|
-
throw Error();
|
|
11489
|
-
};
|
|
11490
|
-
if (Object.defineProperty(Fake.prototype, "props", {
|
|
11491
|
-
set: function() {
|
|
11492
|
-
throw Error();
|
|
11493
|
-
}
|
|
11494
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
11495
|
-
try {
|
|
11496
|
-
Reflect.construct(Fake, []);
|
|
11497
|
-
} catch (x2) {
|
|
11498
|
-
control = x2;
|
|
11499
|
-
}
|
|
11500
|
-
Reflect.construct(fn, [], Fake);
|
|
11501
|
-
} else {
|
|
11502
|
-
try {
|
|
11503
|
-
Fake.call();
|
|
11504
|
-
} catch (x2) {
|
|
11505
|
-
control = x2;
|
|
11506
|
-
}
|
|
11507
|
-
fn.call(Fake.prototype);
|
|
11508
|
-
}
|
|
11509
|
-
} else {
|
|
11510
|
-
try {
|
|
11511
|
-
throw Error();
|
|
11512
|
-
} catch (x2) {
|
|
11513
|
-
control = x2;
|
|
11514
|
-
}
|
|
11515
|
-
fn();
|
|
11516
|
-
}
|
|
11517
|
-
} catch (sample) {
|
|
11518
|
-
if (sample && control && typeof sample.stack == "string") {
|
|
11519
|
-
for (var sampleLines = sample.stack.split(`
|
|
11520
|
-
`), controlLines = control.stack.split(`
|
|
11521
|
-
`), s2 = sampleLines.length - 1, c2 = controlLines.length - 1; s2 >= 1 && c2 >= 0 && sampleLines[s2] !== controlLines[c2]; )
|
|
11522
|
-
c2--;
|
|
11523
|
-
for (; s2 >= 1 && c2 >= 0; s2--, c2--)
|
|
11524
|
-
if (sampleLines[s2] !== controlLines[c2]) {
|
|
11525
|
-
if (s2 !== 1 || c2 !== 1)
|
|
11526
|
-
do
|
|
11527
|
-
if (s2--, c2--, c2 < 0 || sampleLines[s2] !== controlLines[c2]) {
|
|
11528
|
-
var _frame = `
|
|
11529
|
-
` + sampleLines[s2].replace(" at new ", " at ");
|
|
11530
|
-
return fn.displayName && _frame.includes("<anonymous>") && (_frame = _frame.replace("<anonymous>", fn.displayName)), typeof fn == "function" && componentFrameCache.set(fn, _frame), _frame;
|
|
11531
|
-
}
|
|
11532
|
-
while (s2 >= 1 && c2 >= 0);
|
|
11533
|
-
break;
|
|
11534
|
-
}
|
|
11535
|
-
}
|
|
11536
|
-
} finally {
|
|
11537
|
-
reentry = !1, ReactCurrentDispatcher$1.current = previousDispatcher, reenableLogs(), Error.prepareStackTrace = previousPrepareStackTrace;
|
|
11538
|
-
}
|
|
11539
|
-
var name = fn ? fn.displayName || fn.name : "", syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
11540
|
-
return typeof fn == "function" && componentFrameCache.set(fn, syntheticFrame), syntheticFrame;
|
|
11541
|
-
}
|
|
11542
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
11543
|
-
return describeNativeComponentFrame(fn, !1);
|
|
11544
|
-
}
|
|
11545
|
-
function shouldConstruct(Component2) {
|
|
11546
|
-
var prototype = Component2.prototype;
|
|
11547
|
-
return !!(prototype && prototype.isReactComponent);
|
|
11548
|
-
}
|
|
11549
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
11550
|
-
if (type == null)
|
|
11551
|
-
return "";
|
|
11552
|
-
if (typeof type == "function")
|
|
11553
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
11554
|
-
if (typeof type == "string")
|
|
11555
|
-
return describeBuiltInComponentFrame(type);
|
|
11556
|
-
switch (type) {
|
|
11557
|
-
case REACT_SUSPENSE_TYPE:
|
|
11558
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
11559
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
11560
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
11561
|
-
}
|
|
11562
|
-
if (typeof type == "object")
|
|
11563
|
-
switch (type.$$typeof) {
|
|
11564
|
-
case REACT_FORWARD_REF_TYPE:
|
|
11565
|
-
return describeFunctionComponentFrame(type.render);
|
|
11566
|
-
case REACT_MEMO_TYPE:
|
|
11567
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
11568
|
-
case REACT_LAZY_TYPE: {
|
|
11569
|
-
var lazyComponent = type, payload = lazyComponent._payload, init = lazyComponent._init;
|
|
11570
|
-
try {
|
|
11571
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
11572
|
-
} catch {
|
|
11573
|
-
}
|
|
11574
|
-
}
|
|
11575
|
-
}
|
|
11576
|
-
return "";
|
|
11577
|
-
}
|
|
11578
|
-
var loggedTypeFailures = {}, ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
11579
|
-
function setCurrentlyValidatingElement(element) {
|
|
11580
|
-
if (element) {
|
|
11581
|
-
var owner = element._owner, stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
11582
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
11583
|
-
} else
|
|
11584
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
11585
|
-
}
|
|
11586
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
11587
|
-
{
|
|
11588
|
-
var has = Function.call.bind(hasOwnProperty);
|
|
11589
|
-
for (var typeSpecName in typeSpecs)
|
|
11590
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
11591
|
-
var error$1 = void 0;
|
|
11592
|
-
try {
|
|
11593
|
-
if (typeof typeSpecs[typeSpecName] != "function") {
|
|
11594
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
11595
|
-
throw err.name = "Invariant Violation", err;
|
|
11596
|
-
}
|
|
11597
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
11598
|
-
} catch (ex) {
|
|
11599
|
-
error$1 = ex;
|
|
11600
|
-
}
|
|
11601
|
-
error$1 && !(error$1 instanceof Error) && (setCurrentlyValidatingElement(element), error("%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).", componentName || "React class", location, typeSpecName, typeof error$1), setCurrentlyValidatingElement(null)), error$1 instanceof Error && !(error$1.message in loggedTypeFailures) && (loggedTypeFailures[error$1.message] = !0, setCurrentlyValidatingElement(element), error("Failed %s type: %s", location, error$1.message), setCurrentlyValidatingElement(null));
|
|
11602
|
-
}
|
|
11603
|
-
}
|
|
11604
|
-
}
|
|
11605
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
11606
|
-
if (element) {
|
|
11607
|
-
var owner = element._owner, stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
11608
|
-
setExtraStackFrame(stack);
|
|
11609
|
-
} else
|
|
11610
|
-
setExtraStackFrame(null);
|
|
11611
|
-
}
|
|
11612
|
-
var propTypesMisspellWarningShown;
|
|
11613
|
-
propTypesMisspellWarningShown = !1;
|
|
11614
|
-
function getDeclarationErrorAddendum() {
|
|
11615
|
-
if (ReactCurrentOwner.current) {
|
|
11616
|
-
var name = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
11617
|
-
if (name)
|
|
11618
|
-
return `
|
|
11619
|
-
|
|
11620
|
-
Check the render method of \`` + name + "`.";
|
|
11621
|
-
}
|
|
11622
|
-
return "";
|
|
11623
|
-
}
|
|
11624
|
-
function getSourceInfoErrorAddendum(source) {
|
|
11625
|
-
if (source !== void 0) {
|
|
11626
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, ""), lineNumber = source.lineNumber;
|
|
11627
|
-
return `
|
|
11628
|
-
|
|
11629
|
-
Check your code at ` + fileName + ":" + lineNumber + ".";
|
|
11630
|
-
}
|
|
11631
|
-
return "";
|
|
11632
|
-
}
|
|
11633
|
-
function getSourceInfoErrorAddendumForProps(elementProps) {
|
|
11634
|
-
return elementProps != null ? getSourceInfoErrorAddendum(elementProps.__source) : "";
|
|
11635
|
-
}
|
|
11636
|
-
var ownerHasKeyUseWarning = {};
|
|
11637
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
11638
|
-
var info = getDeclarationErrorAddendum();
|
|
11639
|
-
if (!info) {
|
|
11640
|
-
var parentName = typeof parentType == "string" ? parentType : parentType.displayName || parentType.name;
|
|
11641
|
-
parentName && (info = `
|
|
11642
|
-
|
|
11643
|
-
Check the top-level render call using <` + parentName + ">.");
|
|
11644
|
-
}
|
|
11645
|
-
return info;
|
|
11646
|
-
}
|
|
11647
|
-
function validateExplicitKey(element, parentType) {
|
|
11648
|
-
if (!(!element._store || element._store.validated || element.key != null)) {
|
|
11649
|
-
element._store.validated = !0;
|
|
11650
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
11651
|
-
if (!ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
11652
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = !0;
|
|
11653
|
-
var childOwner = "";
|
|
11654
|
-
element && element._owner && element._owner !== ReactCurrentOwner.current && (childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."), setCurrentlyValidatingElement$1(element), error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner), setCurrentlyValidatingElement$1(null);
|
|
11655
|
-
}
|
|
11656
|
-
}
|
|
11657
|
-
}
|
|
11658
|
-
function validateChildKeys(node, parentType) {
|
|
11659
|
-
if (typeof node == "object") {
|
|
11660
|
-
if (isArray(node))
|
|
11661
|
-
for (var i2 = 0; i2 < node.length; i2++) {
|
|
11662
|
-
var child = node[i2];
|
|
11663
|
-
isValidElement(child) && validateExplicitKey(child, parentType);
|
|
11664
|
-
}
|
|
11665
|
-
else if (isValidElement(node))
|
|
11666
|
-
node._store && (node._store.validated = !0);
|
|
11667
|
-
else if (node) {
|
|
11668
|
-
var iteratorFn = getIteratorFn(node);
|
|
11669
|
-
if (typeof iteratorFn == "function" && iteratorFn !== node.entries)
|
|
11670
|
-
for (var iterator = iteratorFn.call(node), step; !(step = iterator.next()).done; )
|
|
11671
|
-
isValidElement(step.value) && validateExplicitKey(step.value, parentType);
|
|
11672
|
-
}
|
|
11673
|
-
}
|
|
11674
|
-
}
|
|
11675
|
-
function validatePropTypes(element) {
|
|
11676
|
-
{
|
|
11677
|
-
var type = element.type;
|
|
11678
|
-
if (type == null || typeof type == "string")
|
|
11679
|
-
return;
|
|
11680
|
-
var propTypes;
|
|
11681
|
-
if (typeof type == "function")
|
|
11682
|
-
propTypes = type.propTypes;
|
|
11683
|
-
else if (typeof type == "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
11684
|
-
// Inner props are checked in the reconciler.
|
|
11685
|
-
type.$$typeof === REACT_MEMO_TYPE))
|
|
11686
|
-
propTypes = type.propTypes;
|
|
11687
|
-
else
|
|
11688
|
-
return;
|
|
11689
|
-
if (propTypes) {
|
|
11690
|
-
var name = getComponentNameFromType(type);
|
|
11691
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
11692
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
11693
|
-
propTypesMisspellWarningShown = !0;
|
|
11694
|
-
var _name = getComponentNameFromType(type);
|
|
11695
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
11696
|
-
}
|
|
11697
|
-
typeof type.getDefaultProps == "function" && !type.getDefaultProps.isReactClassApproved && error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
11698
|
-
}
|
|
11699
|
-
}
|
|
11700
|
-
function validateFragmentProps(fragment) {
|
|
11701
|
-
{
|
|
11702
|
-
for (var keys = Object.keys(fragment.props), i2 = 0; i2 < keys.length; i2++) {
|
|
11703
|
-
var key = keys[i2];
|
|
11704
|
-
if (key !== "children" && key !== "key") {
|
|
11705
|
-
setCurrentlyValidatingElement$1(fragment), error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key), setCurrentlyValidatingElement$1(null);
|
|
11706
|
-
break;
|
|
11707
|
-
}
|
|
11708
|
-
}
|
|
11709
|
-
fragment.ref !== null && (setCurrentlyValidatingElement$1(fragment), error("Invalid attribute `ref` supplied to `React.Fragment`."), setCurrentlyValidatingElement$1(null));
|
|
11710
|
-
}
|
|
11711
|
-
}
|
|
11712
|
-
function createElementWithValidation(type, props, children) {
|
|
11713
|
-
var validType = isValidElementType(type);
|
|
11714
|
-
if (!validType) {
|
|
11715
|
-
var info = "";
|
|
11716
|
-
(type === void 0 || typeof type == "object" && type !== null && Object.keys(type).length === 0) && (info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
11717
|
-
var sourceInfo = getSourceInfoErrorAddendumForProps(props);
|
|
11718
|
-
sourceInfo ? info += sourceInfo : info += getDeclarationErrorAddendum();
|
|
11719
|
-
var typeString;
|
|
11720
|
-
type === null ? typeString = "null" : isArray(type) ? typeString = "array" : type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE ? (typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />", info = " Did you accidentally export a JSX literal instead of a component?") : typeString = typeof type, error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
11721
|
-
}
|
|
11722
|
-
var element = createElement.apply(this, arguments);
|
|
11723
|
-
if (element == null)
|
|
11724
|
-
return element;
|
|
11725
|
-
if (validType)
|
|
11726
|
-
for (var i2 = 2; i2 < arguments.length; i2++)
|
|
11727
|
-
validateChildKeys(arguments[i2], type);
|
|
11728
|
-
return type === REACT_FRAGMENT_TYPE ? validateFragmentProps(element) : validatePropTypes(element), element;
|
|
11729
|
-
}
|
|
11730
|
-
var didWarnAboutDeprecatedCreateFactory = !1;
|
|
11731
|
-
function createFactoryWithValidation(type) {
|
|
11732
|
-
var validatedFactory = createElementWithValidation.bind(null, type);
|
|
11733
|
-
return validatedFactory.type = type, didWarnAboutDeprecatedCreateFactory || (didWarnAboutDeprecatedCreateFactory = !0, warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(validatedFactory, "type", {
|
|
11734
|
-
enumerable: !1,
|
|
11735
|
-
get: function() {
|
|
11736
|
-
return warn("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
|
|
11737
|
-
value: type
|
|
11738
|
-
}), type;
|
|
11739
|
-
}
|
|
11740
|
-
}), validatedFactory;
|
|
11741
|
-
}
|
|
11742
|
-
function cloneElementWithValidation(element, props, children) {
|
|
11743
|
-
for (var newElement = cloneElement.apply(this, arguments), i2 = 2; i2 < arguments.length; i2++)
|
|
11744
|
-
validateChildKeys(arguments[i2], newElement.type);
|
|
11745
|
-
return validatePropTypes(newElement), newElement;
|
|
11746
|
-
}
|
|
11747
|
-
function startTransition(scope, options) {
|
|
11748
|
-
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
11749
|
-
ReactCurrentBatchConfig.transition = {};
|
|
11750
|
-
var currentTransition = ReactCurrentBatchConfig.transition;
|
|
11751
|
-
ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
11752
|
-
try {
|
|
11753
|
-
scope();
|
|
11754
|
-
} finally {
|
|
11755
|
-
if (ReactCurrentBatchConfig.transition = prevTransition, prevTransition === null && currentTransition._updatedFibers) {
|
|
11756
|
-
var updatedFibersCount = currentTransition._updatedFibers.size;
|
|
11757
|
-
updatedFibersCount > 10 && warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), currentTransition._updatedFibers.clear();
|
|
11758
|
-
}
|
|
11759
|
-
}
|
|
11760
|
-
}
|
|
11761
|
-
var didWarnAboutMessageChannel = !1, enqueueTaskImpl = null;
|
|
11762
|
-
function enqueueTask(task) {
|
|
11763
|
-
if (enqueueTaskImpl === null)
|
|
11764
|
-
try {
|
|
11765
|
-
var requireString = ("require" + Math.random()).slice(0, 7), nodeRequire = module && module[requireString];
|
|
11766
|
-
enqueueTaskImpl = nodeRequire.call(module, "timers").setImmediate;
|
|
11767
|
-
} catch {
|
|
11768
|
-
enqueueTaskImpl = function(callback) {
|
|
11769
|
-
didWarnAboutMessageChannel === !1 && (didWarnAboutMessageChannel = !0, typeof MessageChannel > "u" && error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
11770
|
-
var channel = new MessageChannel();
|
|
11771
|
-
channel.port1.onmessage = callback, channel.port2.postMessage(void 0);
|
|
11772
|
-
};
|
|
11773
|
-
}
|
|
11774
|
-
return enqueueTaskImpl(task);
|
|
11775
|
-
}
|
|
11776
|
-
var actScopeDepth = 0, didWarnNoAwaitAct = !1;
|
|
11777
|
-
function act(callback) {
|
|
11778
|
-
{
|
|
11779
|
-
var prevActScopeDepth = actScopeDepth;
|
|
11780
|
-
actScopeDepth++, ReactCurrentActQueue.current === null && (ReactCurrentActQueue.current = []);
|
|
11781
|
-
var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy, result;
|
|
11782
|
-
try {
|
|
11783
|
-
if (ReactCurrentActQueue.isBatchingLegacy = !0, result = callback(), !prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
|
|
11784
|
-
var queue = ReactCurrentActQueue.current;
|
|
11785
|
-
queue !== null && (ReactCurrentActQueue.didScheduleLegacyUpdate = !1, flushActQueue(queue));
|
|
11786
|
-
}
|
|
11787
|
-
} catch (error2) {
|
|
11788
|
-
throw popActScope(prevActScopeDepth), error2;
|
|
11789
|
-
} finally {
|
|
11790
|
-
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
|
|
11791
|
-
}
|
|
11792
|
-
if (result !== null && typeof result == "object" && typeof result.then == "function") {
|
|
11793
|
-
var thenableResult = result, wasAwaited = !1, thenable = {
|
|
11794
|
-
then: function(resolve, reject) {
|
|
11795
|
-
wasAwaited = !0, thenableResult.then(function(returnValue2) {
|
|
11796
|
-
popActScope(prevActScopeDepth), actScopeDepth === 0 ? recursivelyFlushAsyncActWork(returnValue2, resolve, reject) : resolve(returnValue2);
|
|
11797
|
-
}, function(error2) {
|
|
11798
|
-
popActScope(prevActScopeDepth), reject(error2);
|
|
11799
|
-
});
|
|
11800
|
-
}
|
|
11801
|
-
};
|
|
11802
|
-
return !didWarnNoAwaitAct && typeof Promise < "u" && Promise.resolve().then(function() {
|
|
11803
|
-
}).then(function() {
|
|
11804
|
-
wasAwaited || (didWarnNoAwaitAct = !0, error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
11805
|
-
}), thenable;
|
|
11806
|
-
} else {
|
|
11807
|
-
var returnValue = result;
|
|
11808
|
-
if (popActScope(prevActScopeDepth), actScopeDepth === 0) {
|
|
11809
|
-
var _queue = ReactCurrentActQueue.current;
|
|
11810
|
-
_queue !== null && (flushActQueue(_queue), ReactCurrentActQueue.current = null);
|
|
11811
|
-
var _thenable = {
|
|
11812
|
-
then: function(resolve, reject) {
|
|
11813
|
-
ReactCurrentActQueue.current === null ? (ReactCurrentActQueue.current = [], recursivelyFlushAsyncActWork(returnValue, resolve, reject)) : resolve(returnValue);
|
|
11814
|
-
}
|
|
11815
|
-
};
|
|
11816
|
-
return _thenable;
|
|
11817
|
-
} else {
|
|
11818
|
-
var _thenable2 = {
|
|
11819
|
-
then: function(resolve, reject) {
|
|
11820
|
-
resolve(returnValue);
|
|
11821
|
-
}
|
|
11822
|
-
};
|
|
11823
|
-
return _thenable2;
|
|
11824
|
-
}
|
|
11825
|
-
}
|
|
11826
|
-
}
|
|
11827
|
-
}
|
|
11828
|
-
function popActScope(prevActScopeDepth) {
|
|
11829
|
-
prevActScopeDepth !== actScopeDepth - 1 && error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), actScopeDepth = prevActScopeDepth;
|
|
11830
|
-
}
|
|
11831
|
-
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
11832
|
-
{
|
|
11833
|
-
var queue = ReactCurrentActQueue.current;
|
|
11834
|
-
if (queue !== null)
|
|
11835
|
-
try {
|
|
11836
|
-
flushActQueue(queue), enqueueTask(function() {
|
|
11837
|
-
queue.length === 0 ? (ReactCurrentActQueue.current = null, resolve(returnValue)) : recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
11838
|
-
});
|
|
11839
|
-
} catch (error2) {
|
|
11840
|
-
reject(error2);
|
|
11841
|
-
}
|
|
11842
|
-
else
|
|
11843
|
-
resolve(returnValue);
|
|
11844
|
-
}
|
|
11845
|
-
}
|
|
11846
|
-
var isFlushing = !1;
|
|
11847
|
-
function flushActQueue(queue) {
|
|
11848
|
-
if (!isFlushing) {
|
|
11849
|
-
isFlushing = !0;
|
|
11850
|
-
var i2 = 0;
|
|
11851
|
-
try {
|
|
11852
|
-
for (; i2 < queue.length; i2++) {
|
|
11853
|
-
var callback = queue[i2];
|
|
11854
|
-
do
|
|
11855
|
-
callback = callback(!0);
|
|
11856
|
-
while (callback !== null);
|
|
11857
|
-
}
|
|
11858
|
-
queue.length = 0;
|
|
11859
|
-
} catch (error2) {
|
|
11860
|
-
throw queue = queue.slice(i2 + 1), error2;
|
|
11861
|
-
} finally {
|
|
11862
|
-
isFlushing = !1;
|
|
11863
|
-
}
|
|
11864
|
-
}
|
|
11865
|
-
}
|
|
11866
|
-
var createElement$1 = createElementWithValidation, cloneElement$1 = cloneElementWithValidation, createFactory = createFactoryWithValidation, Children = {
|
|
11867
|
-
map: mapChildren2,
|
|
11868
|
-
forEach: forEachChildren,
|
|
11869
|
-
count: countChildren,
|
|
11870
|
-
toArray,
|
|
11871
|
-
only: onlyChild
|
|
11872
|
-
};
|
|
11873
|
-
exports.Children = Children, exports.Component = Component, exports.Fragment = REACT_FRAGMENT_TYPE, exports.Profiler = REACT_PROFILER_TYPE, exports.PureComponent = PureComponent, exports.StrictMode = REACT_STRICT_MODE_TYPE, exports.Suspense = REACT_SUSPENSE_TYPE, exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals, exports.act = act, exports.cloneElement = cloneElement$1, exports.createContext = createContext, exports.createElement = createElement$1, exports.createFactory = createFactory, exports.createRef = createRef, exports.forwardRef = forwardRef, exports.isValidElement = isValidElement, exports.lazy = lazy, exports.memo = memo, exports.startTransition = startTransition, exports.unstable_act = act, exports.useCallback = useCallback, exports.useContext = useContext, exports.useDebugValue = useDebugValue, exports.useDeferredValue = useDeferredValue, exports.useEffect = useEffect, exports.useId = useId, exports.useImperativeHandle = useImperativeHandle, exports.useInsertionEffect = useInsertionEffect, exports.useLayoutEffect = useLayoutEffect, exports.useMemo = useMemo, exports.useReducer = useReducer, exports.useRef = useRef, exports.useState = useState, exports.useSyncExternalStore = useSyncExternalStore, exports.useTransition = useTransition, exports.version = ReactVersion, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
11874
|
-
}();
|
|
11875
|
-
}(react_development, react_development.exports)), react_development.exports;
|
|
11876
|
-
}
|
|
11877
|
-
var hasRequiredReact;
|
|
11878
|
-
function requireReact() {
|
|
11879
|
-
return hasRequiredReact || (hasRequiredReact = 1, process.env.NODE_ENV === "production" ? react.exports = requireReact_production_min() : react.exports = requireReact_development()), react.exports;
|
|
11880
|
-
}
|
|
11881
|
-
/**
|
|
11882
|
-
* @license React
|
|
11883
|
-
* react-jsx-runtime.production.min.js
|
|
11884
|
-
*
|
|
11885
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11886
|
-
*
|
|
11887
|
-
* This source code is licensed under the MIT license found in the
|
|
11888
|
-
* LICENSE file in the root directory of this source tree.
|
|
11889
|
-
*/
|
|
11890
|
-
var hasRequiredReactJsxRuntime_production_min;
|
|
11891
|
-
function requireReactJsxRuntime_production_min() {
|
|
11892
|
-
if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
|
|
11893
|
-
hasRequiredReactJsxRuntime_production_min = 1;
|
|
11894
|
-
var f2 = requireReact(), k2 = Symbol.for("react.element"), l2 = Symbol.for("react.fragment"), m2 = Object.prototype.hasOwnProperty, n2 = f2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p2 = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
11895
|
-
function q(c2, a2, g2) {
|
|
11896
|
-
var b2, d2 = {}, e2 = null, h2 = null;
|
|
11897
|
-
g2 !== void 0 && (e2 = "" + g2), a2.key !== void 0 && (e2 = "" + a2.key), a2.ref !== void 0 && (h2 = a2.ref);
|
|
11898
|
-
for (b2 in a2) m2.call(a2, b2) && !p2.hasOwnProperty(b2) && (d2[b2] = a2[b2]);
|
|
11899
|
-
if (c2 && c2.defaultProps) for (b2 in a2 = c2.defaultProps, a2) d2[b2] === void 0 && (d2[b2] = a2[b2]);
|
|
11900
|
-
return { $$typeof: k2, type: c2, key: e2, ref: h2, props: d2, _owner: n2.current };
|
|
11901
|
-
}
|
|
11902
|
-
return reactJsxRuntime_production_min.Fragment = l2, reactJsxRuntime_production_min.jsx = q, reactJsxRuntime_production_min.jsxs = q, reactJsxRuntime_production_min;
|
|
11903
|
-
}
|
|
11904
|
-
var reactJsxRuntime_development = {};
|
|
11905
|
-
/**
|
|
11906
|
-
* @license React
|
|
11907
|
-
* react-jsx-runtime.development.js
|
|
11908
|
-
*
|
|
11909
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11910
|
-
*
|
|
11911
|
-
* This source code is licensed under the MIT license found in the
|
|
11912
|
-
* LICENSE file in the root directory of this source tree.
|
|
11913
|
-
*/
|
|
11914
|
-
var hasRequiredReactJsxRuntime_development;
|
|
11915
|
-
function requireReactJsxRuntime_development() {
|
|
11916
|
-
return hasRequiredReactJsxRuntime_development || (hasRequiredReactJsxRuntime_development = 1, process.env.NODE_ENV !== "production" && function() {
|
|
11917
|
-
var React = requireReact(), REACT_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
11918
|
-
function getIteratorFn(maybeIterable) {
|
|
11919
|
-
if (maybeIterable === null || typeof maybeIterable != "object")
|
|
11920
|
-
return null;
|
|
11921
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
11922
|
-
return typeof maybeIterator == "function" ? maybeIterator : null;
|
|
11923
|
-
}
|
|
11924
|
-
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
11925
|
-
function error(format) {
|
|
11926
|
-
{
|
|
11927
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++)
|
|
11928
|
-
args[_key2 - 1] = arguments[_key2];
|
|
11929
|
-
printWarning("error", format, args);
|
|
11930
|
-
}
|
|
11931
|
-
}
|
|
11932
|
-
function printWarning(level, format, args) {
|
|
11933
|
-
{
|
|
11934
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame, stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
11935
|
-
stack !== "" && (format += "%s", args = args.concat([stack]));
|
|
11936
|
-
var argsWithFormat = args.map(function(item) {
|
|
11937
|
-
return String(item);
|
|
11938
|
-
});
|
|
11939
|
-
argsWithFormat.unshift("Warning: " + format), Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
11940
|
-
}
|
|
11941
|
-
}
|
|
11942
|
-
var enableScopeAPI = !1, enableCacheElement = !1, enableTransitionTracing = !1, enableLegacyHidden = !1, enableDebugTracing = !1, REACT_MODULE_REFERENCE;
|
|
11943
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
11944
|
-
function isValidElementType(type) {
|
|
11945
|
-
return !!(typeof type == "string" || typeof type == "function" || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing || typeof type == "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
11946
|
-
// types supported by any Flight configuration anywhere since
|
|
11947
|
-
// we don't know which Flight build this will end up being used
|
|
11948
|
-
// with.
|
|
11949
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0));
|
|
11950
|
-
}
|
|
11951
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
11952
|
-
var displayName = outerType.displayName;
|
|
11953
|
-
if (displayName)
|
|
11954
|
-
return displayName;
|
|
11955
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
11956
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
11957
|
-
}
|
|
11958
|
-
function getContextName(type) {
|
|
11959
|
-
return type.displayName || "Context";
|
|
11960
|
-
}
|
|
11961
|
-
function getComponentNameFromType(type) {
|
|
11962
|
-
if (type == null)
|
|
11963
|
-
return null;
|
|
11964
|
-
if (typeof type.tag == "number" && error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof type == "function")
|
|
11965
|
-
return type.displayName || type.name || null;
|
|
11966
|
-
if (typeof type == "string")
|
|
11967
|
-
return type;
|
|
11968
|
-
switch (type) {
|
|
11969
|
-
case REACT_FRAGMENT_TYPE:
|
|
11970
|
-
return "Fragment";
|
|
11971
|
-
case REACT_PORTAL_TYPE:
|
|
11972
|
-
return "Portal";
|
|
11973
|
-
case REACT_PROFILER_TYPE:
|
|
11974
|
-
return "Profiler";
|
|
11975
|
-
case REACT_STRICT_MODE_TYPE:
|
|
11976
|
-
return "StrictMode";
|
|
11977
|
-
case REACT_SUSPENSE_TYPE:
|
|
11978
|
-
return "Suspense";
|
|
11979
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
11980
|
-
return "SuspenseList";
|
|
11981
|
-
}
|
|
11982
|
-
if (typeof type == "object")
|
|
11983
|
-
switch (type.$$typeof) {
|
|
11984
|
-
case REACT_CONTEXT_TYPE:
|
|
11985
|
-
var context = type;
|
|
11986
|
-
return getContextName(context) + ".Consumer";
|
|
11987
|
-
case REACT_PROVIDER_TYPE:
|
|
11988
|
-
var provider = type;
|
|
11989
|
-
return getContextName(provider._context) + ".Provider";
|
|
11990
|
-
case REACT_FORWARD_REF_TYPE:
|
|
11991
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
11992
|
-
case REACT_MEMO_TYPE:
|
|
11993
|
-
var outerName = type.displayName || null;
|
|
11994
|
-
return outerName !== null ? outerName : getComponentNameFromType(type.type) || "Memo";
|
|
11995
|
-
case REACT_LAZY_TYPE: {
|
|
11996
|
-
var lazyComponent = type, payload = lazyComponent._payload, init = lazyComponent._init;
|
|
11997
|
-
try {
|
|
11998
|
-
return getComponentNameFromType(init(payload));
|
|
11999
|
-
} catch {
|
|
12000
|
-
return null;
|
|
12001
|
-
}
|
|
12002
|
-
}
|
|
12003
|
-
}
|
|
12004
|
-
return null;
|
|
12005
|
-
}
|
|
12006
|
-
var assign = Object.assign, disabledDepth = 0, prevLog, prevInfo, prevWarn, prevError, prevGroup, prevGroupCollapsed, prevGroupEnd;
|
|
12007
|
-
function disabledLog() {
|
|
12008
|
-
}
|
|
12009
|
-
disabledLog.__reactDisabledLog = !0;
|
|
12010
|
-
function disableLogs() {
|
|
12011
|
-
{
|
|
12012
|
-
if (disabledDepth === 0) {
|
|
12013
|
-
prevLog = console.log, prevInfo = console.info, prevWarn = console.warn, prevError = console.error, prevGroup = console.group, prevGroupCollapsed = console.groupCollapsed, prevGroupEnd = console.groupEnd;
|
|
12014
|
-
var props = {
|
|
12015
|
-
configurable: !0,
|
|
12016
|
-
enumerable: !0,
|
|
12017
|
-
value: disabledLog,
|
|
12018
|
-
writable: !0
|
|
12019
|
-
};
|
|
12020
|
-
Object.defineProperties(console, {
|
|
12021
|
-
info: props,
|
|
12022
|
-
log: props,
|
|
12023
|
-
warn: props,
|
|
12024
|
-
error: props,
|
|
12025
|
-
group: props,
|
|
12026
|
-
groupCollapsed: props,
|
|
12027
|
-
groupEnd: props
|
|
12028
|
-
});
|
|
12029
|
-
}
|
|
12030
|
-
disabledDepth++;
|
|
12031
|
-
}
|
|
12032
|
-
}
|
|
12033
|
-
function reenableLogs() {
|
|
12034
|
-
{
|
|
12035
|
-
if (disabledDepth--, disabledDepth === 0) {
|
|
12036
|
-
var props = {
|
|
12037
|
-
configurable: !0,
|
|
12038
|
-
enumerable: !0,
|
|
12039
|
-
writable: !0
|
|
12040
|
-
};
|
|
12041
|
-
Object.defineProperties(console, {
|
|
12042
|
-
log: assign({}, props, {
|
|
12043
|
-
value: prevLog
|
|
12044
|
-
}),
|
|
12045
|
-
info: assign({}, props, {
|
|
12046
|
-
value: prevInfo
|
|
12047
|
-
}),
|
|
12048
|
-
warn: assign({}, props, {
|
|
12049
|
-
value: prevWarn
|
|
12050
|
-
}),
|
|
12051
|
-
error: assign({}, props, {
|
|
12052
|
-
value: prevError
|
|
12053
|
-
}),
|
|
12054
|
-
group: assign({}, props, {
|
|
12055
|
-
value: prevGroup
|
|
12056
|
-
}),
|
|
12057
|
-
groupCollapsed: assign({}, props, {
|
|
12058
|
-
value: prevGroupCollapsed
|
|
12059
|
-
}),
|
|
12060
|
-
groupEnd: assign({}, props, {
|
|
12061
|
-
value: prevGroupEnd
|
|
12062
|
-
})
|
|
12063
|
-
});
|
|
12064
|
-
}
|
|
12065
|
-
disabledDepth < 0 && error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
12066
|
-
}
|
|
12067
|
-
}
|
|
12068
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, prefix;
|
|
12069
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
12070
|
-
{
|
|
12071
|
-
if (prefix === void 0)
|
|
12072
|
-
try {
|
|
12073
|
-
throw Error();
|
|
12074
|
-
} catch (x2) {
|
|
12075
|
-
var match = x2.stack.trim().match(/\n( *(at )?)/);
|
|
12076
|
-
prefix = match && match[1] || "";
|
|
12077
|
-
}
|
|
12078
|
-
return `
|
|
12079
|
-
` + prefix + name;
|
|
12080
|
-
}
|
|
12081
|
-
}
|
|
12082
|
-
var reentry = !1, componentFrameCache;
|
|
12083
|
-
{
|
|
12084
|
-
var PossiblyWeakMap = typeof WeakMap == "function" ? WeakMap : Map;
|
|
12085
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
12086
|
-
}
|
|
12087
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
12088
|
-
if (!fn || reentry)
|
|
12089
|
-
return "";
|
|
12090
|
-
{
|
|
12091
|
-
var frame2 = componentFrameCache.get(fn);
|
|
12092
|
-
if (frame2 !== void 0)
|
|
12093
|
-
return frame2;
|
|
12094
|
-
}
|
|
12095
|
-
var control;
|
|
12096
|
-
reentry = !0;
|
|
12097
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
12098
|
-
Error.prepareStackTrace = void 0;
|
|
12099
|
-
var previousDispatcher;
|
|
12100
|
-
previousDispatcher = ReactCurrentDispatcher.current, ReactCurrentDispatcher.current = null, disableLogs();
|
|
12101
|
-
try {
|
|
12102
|
-
if (construct) {
|
|
12103
|
-
var Fake = function() {
|
|
12104
|
-
throw Error();
|
|
12105
|
-
};
|
|
12106
|
-
if (Object.defineProperty(Fake.prototype, "props", {
|
|
12107
|
-
set: function() {
|
|
12108
|
-
throw Error();
|
|
12109
|
-
}
|
|
12110
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
12111
|
-
try {
|
|
12112
|
-
Reflect.construct(Fake, []);
|
|
12113
|
-
} catch (x2) {
|
|
12114
|
-
control = x2;
|
|
12115
|
-
}
|
|
12116
|
-
Reflect.construct(fn, [], Fake);
|
|
12117
|
-
} else {
|
|
12118
|
-
try {
|
|
12119
|
-
Fake.call();
|
|
12120
|
-
} catch (x2) {
|
|
12121
|
-
control = x2;
|
|
12122
|
-
}
|
|
12123
|
-
fn.call(Fake.prototype);
|
|
12124
|
-
}
|
|
12125
|
-
} else {
|
|
12126
|
-
try {
|
|
12127
|
-
throw Error();
|
|
12128
|
-
} catch (x2) {
|
|
12129
|
-
control = x2;
|
|
12130
|
-
}
|
|
12131
|
-
fn();
|
|
12132
|
-
}
|
|
12133
|
-
} catch (sample) {
|
|
12134
|
-
if (sample && control && typeof sample.stack == "string") {
|
|
12135
|
-
for (var sampleLines = sample.stack.split(`
|
|
12136
|
-
`), controlLines = control.stack.split(`
|
|
12137
|
-
`), s2 = sampleLines.length - 1, c2 = controlLines.length - 1; s2 >= 1 && c2 >= 0 && sampleLines[s2] !== controlLines[c2]; )
|
|
12138
|
-
c2--;
|
|
12139
|
-
for (; s2 >= 1 && c2 >= 0; s2--, c2--)
|
|
12140
|
-
if (sampleLines[s2] !== controlLines[c2]) {
|
|
12141
|
-
if (s2 !== 1 || c2 !== 1)
|
|
12142
|
-
do
|
|
12143
|
-
if (s2--, c2--, c2 < 0 || sampleLines[s2] !== controlLines[c2]) {
|
|
12144
|
-
var _frame = `
|
|
12145
|
-
` + sampleLines[s2].replace(" at new ", " at ");
|
|
12146
|
-
return fn.displayName && _frame.includes("<anonymous>") && (_frame = _frame.replace("<anonymous>", fn.displayName)), typeof fn == "function" && componentFrameCache.set(fn, _frame), _frame;
|
|
12147
|
-
}
|
|
12148
|
-
while (s2 >= 1 && c2 >= 0);
|
|
12149
|
-
break;
|
|
12150
|
-
}
|
|
12151
|
-
}
|
|
12152
|
-
} finally {
|
|
12153
|
-
reentry = !1, ReactCurrentDispatcher.current = previousDispatcher, reenableLogs(), Error.prepareStackTrace = previousPrepareStackTrace;
|
|
12154
|
-
}
|
|
12155
|
-
var name = fn ? fn.displayName || fn.name : "", syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
12156
|
-
return typeof fn == "function" && componentFrameCache.set(fn, syntheticFrame), syntheticFrame;
|
|
12157
|
-
}
|
|
12158
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
12159
|
-
return describeNativeComponentFrame(fn, !1);
|
|
12160
|
-
}
|
|
12161
|
-
function shouldConstruct(Component) {
|
|
12162
|
-
var prototype = Component.prototype;
|
|
12163
|
-
return !!(prototype && prototype.isReactComponent);
|
|
12164
|
-
}
|
|
12165
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
12166
|
-
if (type == null)
|
|
12167
|
-
return "";
|
|
12168
|
-
if (typeof type == "function")
|
|
12169
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
12170
|
-
if (typeof type == "string")
|
|
12171
|
-
return describeBuiltInComponentFrame(type);
|
|
12172
|
-
switch (type) {
|
|
12173
|
-
case REACT_SUSPENSE_TYPE:
|
|
12174
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
12175
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
12176
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
12177
|
-
}
|
|
12178
|
-
if (typeof type == "object")
|
|
12179
|
-
switch (type.$$typeof) {
|
|
12180
|
-
case REACT_FORWARD_REF_TYPE:
|
|
12181
|
-
return describeFunctionComponentFrame(type.render);
|
|
12182
|
-
case REACT_MEMO_TYPE:
|
|
12183
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
12184
|
-
case REACT_LAZY_TYPE: {
|
|
12185
|
-
var lazyComponent = type, payload = lazyComponent._payload, init = lazyComponent._init;
|
|
12186
|
-
try {
|
|
12187
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
12188
|
-
} catch {
|
|
12189
|
-
}
|
|
12190
|
-
}
|
|
12191
|
-
}
|
|
12192
|
-
return "";
|
|
12193
|
-
}
|
|
12194
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty, loggedTypeFailures = {}, ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
12195
|
-
function setCurrentlyValidatingElement(element) {
|
|
12196
|
-
if (element) {
|
|
12197
|
-
var owner = element._owner, stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
12198
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
12199
|
-
} else
|
|
12200
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
12201
|
-
}
|
|
12202
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
12203
|
-
{
|
|
12204
|
-
var has = Function.call.bind(hasOwnProperty);
|
|
12205
|
-
for (var typeSpecName in typeSpecs)
|
|
12206
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
12207
|
-
var error$1 = void 0;
|
|
12208
|
-
try {
|
|
12209
|
-
if (typeof typeSpecs[typeSpecName] != "function") {
|
|
12210
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
12211
|
-
throw err.name = "Invariant Violation", err;
|
|
12212
|
-
}
|
|
12213
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
12214
|
-
} catch (ex) {
|
|
12215
|
-
error$1 = ex;
|
|
12216
|
-
}
|
|
12217
|
-
error$1 && !(error$1 instanceof Error) && (setCurrentlyValidatingElement(element), error("%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).", componentName || "React class", location, typeSpecName, typeof error$1), setCurrentlyValidatingElement(null)), error$1 instanceof Error && !(error$1.message in loggedTypeFailures) && (loggedTypeFailures[error$1.message] = !0, setCurrentlyValidatingElement(element), error("Failed %s type: %s", location, error$1.message), setCurrentlyValidatingElement(null));
|
|
12218
|
-
}
|
|
12219
|
-
}
|
|
12220
|
-
}
|
|
12221
|
-
var isArrayImpl = Array.isArray;
|
|
12222
|
-
function isArray(a2) {
|
|
12223
|
-
return isArrayImpl(a2);
|
|
12224
|
-
}
|
|
12225
|
-
function typeName(value2) {
|
|
12226
|
-
{
|
|
12227
|
-
var hasToStringTag = typeof Symbol == "function" && Symbol.toStringTag, type = hasToStringTag && value2[Symbol.toStringTag] || value2.constructor.name || "Object";
|
|
12228
|
-
return type;
|
|
12229
|
-
}
|
|
12230
|
-
}
|
|
12231
|
-
function willCoercionThrow(value2) {
|
|
12232
|
-
try {
|
|
12233
|
-
return testStringCoercion(value2), !1;
|
|
12234
|
-
} catch {
|
|
12235
|
-
return !0;
|
|
12236
|
-
}
|
|
12237
|
-
}
|
|
12238
|
-
function testStringCoercion(value2) {
|
|
12239
|
-
return "" + value2;
|
|
12240
|
-
}
|
|
12241
|
-
function checkKeyStringCoercion(value2) {
|
|
12242
|
-
if (willCoercionThrow(value2))
|
|
12243
|
-
return error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value2)), testStringCoercion(value2);
|
|
12244
|
-
}
|
|
12245
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner, RESERVED_PROPS = {
|
|
12246
|
-
key: !0,
|
|
12247
|
-
ref: !0,
|
|
12248
|
-
__self: !0,
|
|
12249
|
-
__source: !0
|
|
12250
|
-
}, specialPropKeyWarningShown, specialPropRefWarningShown;
|
|
12251
|
-
function hasValidRef(config) {
|
|
12252
|
-
if (hasOwnProperty.call(config, "ref")) {
|
|
12253
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
12254
|
-
if (getter && getter.isReactWarning)
|
|
12255
|
-
return !1;
|
|
12256
|
-
}
|
|
12257
|
-
return config.ref !== void 0;
|
|
12258
|
-
}
|
|
12259
|
-
function hasValidKey(config) {
|
|
12260
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
12261
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
12262
|
-
if (getter && getter.isReactWarning)
|
|
12263
|
-
return !1;
|
|
12264
|
-
}
|
|
12265
|
-
return config.key !== void 0;
|
|
12266
|
-
}
|
|
12267
|
-
function warnIfStringRefCannotBeAutoConverted(config, self2) {
|
|
12268
|
-
typeof config.ref == "string" && ReactCurrentOwner.current;
|
|
12269
|
-
}
|
|
12270
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
12271
|
-
{
|
|
12272
|
-
var warnAboutAccessingKey = function() {
|
|
12273
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, error("%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)", displayName));
|
|
12274
|
-
};
|
|
12275
|
-
warnAboutAccessingKey.isReactWarning = !0, Object.defineProperty(props, "key", {
|
|
12276
|
-
get: warnAboutAccessingKey,
|
|
12277
|
-
configurable: !0
|
|
12278
|
-
});
|
|
12279
|
-
}
|
|
12280
|
-
}
|
|
12281
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
12282
|
-
{
|
|
12283
|
-
var warnAboutAccessingRef = function() {
|
|
12284
|
-
specialPropRefWarningShown || (specialPropRefWarningShown = !0, error("%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)", displayName));
|
|
12285
|
-
};
|
|
12286
|
-
warnAboutAccessingRef.isReactWarning = !0, Object.defineProperty(props, "ref", {
|
|
12287
|
-
get: warnAboutAccessingRef,
|
|
12288
|
-
configurable: !0
|
|
12289
|
-
});
|
|
12290
|
-
}
|
|
12291
|
-
}
|
|
12292
|
-
var ReactElement = function(type, key, ref, self2, source, owner, props) {
|
|
12293
|
-
var element = {
|
|
12294
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
12295
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
12296
|
-
// Built-in properties that belong on the element
|
|
12297
|
-
type,
|
|
12298
|
-
key,
|
|
12299
|
-
ref,
|
|
12300
|
-
props,
|
|
12301
|
-
// Record the component responsible for creating this element.
|
|
12302
|
-
_owner: owner
|
|
12303
|
-
};
|
|
12304
|
-
return element._store = {}, Object.defineProperty(element._store, "validated", {
|
|
12305
|
-
configurable: !1,
|
|
12306
|
-
enumerable: !1,
|
|
12307
|
-
writable: !0,
|
|
12308
|
-
value: !1
|
|
12309
|
-
}), Object.defineProperty(element, "_self", {
|
|
12310
|
-
configurable: !1,
|
|
12311
|
-
enumerable: !1,
|
|
12312
|
-
writable: !1,
|
|
12313
|
-
value: self2
|
|
12314
|
-
}), Object.defineProperty(element, "_source", {
|
|
12315
|
-
configurable: !1,
|
|
12316
|
-
enumerable: !1,
|
|
12317
|
-
writable: !1,
|
|
12318
|
-
value: source
|
|
12319
|
-
}), Object.freeze && (Object.freeze(element.props), Object.freeze(element)), element;
|
|
12320
|
-
};
|
|
12321
|
-
function jsxDEV(type, config, maybeKey, source, self2) {
|
|
12322
|
-
{
|
|
12323
|
-
var propName, props = {}, key = null, ref = null;
|
|
12324
|
-
maybeKey !== void 0 && (checkKeyStringCoercion(maybeKey), key = "" + maybeKey), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), hasValidRef(config) && (ref = config.ref, warnIfStringRefCannotBeAutoConverted(config, self2));
|
|
12325
|
-
for (propName in config)
|
|
12326
|
-
hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName) && (props[propName] = config[propName]);
|
|
12327
|
-
if (type && type.defaultProps) {
|
|
12328
|
-
var defaultProps = type.defaultProps;
|
|
12329
|
-
for (propName in defaultProps)
|
|
12330
|
-
props[propName] === void 0 && (props[propName] = defaultProps[propName]);
|
|
12331
|
-
}
|
|
12332
|
-
if (key || ref) {
|
|
12333
|
-
var displayName = typeof type == "function" ? type.displayName || type.name || "Unknown" : type;
|
|
12334
|
-
key && defineKeyPropWarningGetter(props, displayName), ref && defineRefPropWarningGetter(props, displayName);
|
|
12335
|
-
}
|
|
12336
|
-
return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
|
|
12337
|
-
}
|
|
12338
|
-
}
|
|
12339
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner, ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
12340
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
12341
|
-
if (element) {
|
|
12342
|
-
var owner = element._owner, stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
12343
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
12344
|
-
} else
|
|
12345
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
12346
|
-
}
|
|
12347
|
-
var propTypesMisspellWarningShown;
|
|
12348
|
-
propTypesMisspellWarningShown = !1;
|
|
12349
|
-
function isValidElement(object) {
|
|
12350
|
-
return typeof object == "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
12351
|
-
}
|
|
12352
|
-
function getDeclarationErrorAddendum() {
|
|
12353
|
-
{
|
|
12354
|
-
if (ReactCurrentOwner$1.current) {
|
|
12355
|
-
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
12356
|
-
if (name)
|
|
12357
|
-
return `
|
|
12358
|
-
|
|
12359
|
-
Check the render method of \`` + name + "`.";
|
|
12360
|
-
}
|
|
12361
|
-
return "";
|
|
12362
|
-
}
|
|
12363
|
-
}
|
|
12364
|
-
function getSourceInfoErrorAddendum(source) {
|
|
12365
|
-
return "";
|
|
12366
|
-
}
|
|
12367
|
-
var ownerHasKeyUseWarning = {};
|
|
12368
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
12369
|
-
{
|
|
12370
|
-
var info = getDeclarationErrorAddendum();
|
|
12371
|
-
if (!info) {
|
|
12372
|
-
var parentName = typeof parentType == "string" ? parentType : parentType.displayName || parentType.name;
|
|
12373
|
-
parentName && (info = `
|
|
12374
|
-
|
|
12375
|
-
Check the top-level render call using <` + parentName + ">.");
|
|
12376
|
-
}
|
|
12377
|
-
return info;
|
|
12378
|
-
}
|
|
12379
|
-
}
|
|
12380
|
-
function validateExplicitKey(element, parentType) {
|
|
12381
|
-
{
|
|
12382
|
-
if (!element._store || element._store.validated || element.key != null)
|
|
12383
|
-
return;
|
|
12384
|
-
element._store.validated = !0;
|
|
12385
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
12386
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo])
|
|
12387
|
-
return;
|
|
12388
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = !0;
|
|
12389
|
-
var childOwner = "";
|
|
12390
|
-
element && element._owner && element._owner !== ReactCurrentOwner$1.current && (childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."), setCurrentlyValidatingElement$1(element), error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner), setCurrentlyValidatingElement$1(null);
|
|
12391
|
-
}
|
|
12392
|
-
}
|
|
12393
|
-
function validateChildKeys(node, parentType) {
|
|
12394
|
-
{
|
|
12395
|
-
if (typeof node != "object")
|
|
12396
|
-
return;
|
|
12397
|
-
if (isArray(node))
|
|
12398
|
-
for (var i2 = 0; i2 < node.length; i2++) {
|
|
12399
|
-
var child = node[i2];
|
|
12400
|
-
isValidElement(child) && validateExplicitKey(child, parentType);
|
|
12401
|
-
}
|
|
12402
|
-
else if (isValidElement(node))
|
|
12403
|
-
node._store && (node._store.validated = !0);
|
|
12404
|
-
else if (node) {
|
|
12405
|
-
var iteratorFn = getIteratorFn(node);
|
|
12406
|
-
if (typeof iteratorFn == "function" && iteratorFn !== node.entries)
|
|
12407
|
-
for (var iterator = iteratorFn.call(node), step; !(step = iterator.next()).done; )
|
|
12408
|
-
isValidElement(step.value) && validateExplicitKey(step.value, parentType);
|
|
12409
|
-
}
|
|
12410
|
-
}
|
|
12411
|
-
}
|
|
12412
|
-
function validatePropTypes(element) {
|
|
12413
|
-
{
|
|
12414
|
-
var type = element.type;
|
|
12415
|
-
if (type == null || typeof type == "string")
|
|
12416
|
-
return;
|
|
12417
|
-
var propTypes;
|
|
12418
|
-
if (typeof type == "function")
|
|
12419
|
-
propTypes = type.propTypes;
|
|
12420
|
-
else if (typeof type == "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
12421
|
-
// Inner props are checked in the reconciler.
|
|
12422
|
-
type.$$typeof === REACT_MEMO_TYPE))
|
|
12423
|
-
propTypes = type.propTypes;
|
|
12424
|
-
else
|
|
12425
|
-
return;
|
|
12426
|
-
if (propTypes) {
|
|
12427
|
-
var name = getComponentNameFromType(type);
|
|
12428
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
12429
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
12430
|
-
propTypesMisspellWarningShown = !0;
|
|
12431
|
-
var _name = getComponentNameFromType(type);
|
|
12432
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
12433
|
-
}
|
|
12434
|
-
typeof type.getDefaultProps == "function" && !type.getDefaultProps.isReactClassApproved && error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
12435
|
-
}
|
|
12436
|
-
}
|
|
12437
|
-
function validateFragmentProps(fragment) {
|
|
12438
|
-
{
|
|
12439
|
-
for (var keys = Object.keys(fragment.props), i2 = 0; i2 < keys.length; i2++) {
|
|
12440
|
-
var key = keys[i2];
|
|
12441
|
-
if (key !== "children" && key !== "key") {
|
|
12442
|
-
setCurrentlyValidatingElement$1(fragment), error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key), setCurrentlyValidatingElement$1(null);
|
|
12443
|
-
break;
|
|
12444
|
-
}
|
|
12445
|
-
}
|
|
12446
|
-
fragment.ref !== null && (setCurrentlyValidatingElement$1(fragment), error("Invalid attribute `ref` supplied to `React.Fragment`."), setCurrentlyValidatingElement$1(null));
|
|
12447
|
-
}
|
|
12448
|
-
}
|
|
12449
|
-
var didWarnAboutKeySpread = {};
|
|
12450
|
-
function jsxWithValidation(type, props, key, isStaticChildren, source, self2) {
|
|
12451
|
-
{
|
|
12452
|
-
var validType = isValidElementType(type);
|
|
12453
|
-
if (!validType) {
|
|
12454
|
-
var info = "";
|
|
12455
|
-
(type === void 0 || typeof type == "object" && type !== null && Object.keys(type).length === 0) && (info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
12456
|
-
var sourceInfo = getSourceInfoErrorAddendum();
|
|
12457
|
-
sourceInfo ? info += sourceInfo : info += getDeclarationErrorAddendum();
|
|
12458
|
-
var typeString;
|
|
12459
|
-
type === null ? typeString = "null" : isArray(type) ? typeString = "array" : type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE ? (typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />", info = " Did you accidentally export a JSX literal instead of a component?") : typeString = typeof type, error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
12460
|
-
}
|
|
12461
|
-
var element = jsxDEV(type, props, key, source, self2);
|
|
12462
|
-
if (element == null)
|
|
12463
|
-
return element;
|
|
12464
|
-
if (validType) {
|
|
12465
|
-
var children = props.children;
|
|
12466
|
-
if (children !== void 0)
|
|
12467
|
-
if (isStaticChildren)
|
|
12468
|
-
if (isArray(children)) {
|
|
12469
|
-
for (var i2 = 0; i2 < children.length; i2++)
|
|
12470
|
-
validateChildKeys(children[i2], type);
|
|
12471
|
-
Object.freeze && Object.freeze(children);
|
|
12472
|
-
} else
|
|
12473
|
-
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
12474
|
-
else
|
|
12475
|
-
validateChildKeys(children, type);
|
|
12476
|
-
}
|
|
12477
|
-
if (hasOwnProperty.call(props, "key")) {
|
|
12478
|
-
var componentName = getComponentNameFromType(type), keys = Object.keys(props).filter(function(k2) {
|
|
12479
|
-
return k2 !== "key";
|
|
12480
|
-
}), beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
12481
|
-
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
|
12482
|
-
var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
|
|
12483
|
-
error(`A props object containing a "key" prop is being spread into JSX:
|
|
12484
|
-
let props = %s;
|
|
12485
|
-
<%s {...props} />
|
|
12486
|
-
React keys must be passed directly to JSX without using spread:
|
|
12487
|
-
let props = %s;
|
|
12488
|
-
<%s key={someKey} {...props} />`, beforeExample, componentName, afterExample, componentName), didWarnAboutKeySpread[componentName + beforeExample] = !0;
|
|
12489
|
-
}
|
|
12490
|
-
}
|
|
12491
|
-
return type === REACT_FRAGMENT_TYPE ? validateFragmentProps(element) : validatePropTypes(element), element;
|
|
12492
|
-
}
|
|
12493
|
-
}
|
|
12494
|
-
function jsxWithValidationStatic(type, props, key) {
|
|
12495
|
-
return jsxWithValidation(type, props, key, !0);
|
|
12496
|
-
}
|
|
12497
|
-
function jsxWithValidationDynamic(type, props, key) {
|
|
12498
|
-
return jsxWithValidation(type, props, key, !1);
|
|
12499
|
-
}
|
|
12500
|
-
var jsx = jsxWithValidationDynamic, jsxs = jsxWithValidationStatic;
|
|
12501
|
-
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE, reactJsxRuntime_development.jsx = jsx, reactJsxRuntime_development.jsxs = jsxs;
|
|
12502
|
-
}()), reactJsxRuntime_development;
|
|
12503
|
-
}
|
|
12504
|
-
var hasRequiredJsxRuntime;
|
|
12505
|
-
function requireJsxRuntime() {
|
|
12506
|
-
return hasRequiredJsxRuntime || (hasRequiredJsxRuntime = 1, process.env.NODE_ENV === "production" ? jsxRuntime.exports = requireReactJsxRuntime_production_min() : jsxRuntime.exports = requireReactJsxRuntime_development()), jsxRuntime.exports;
|
|
12507
|
-
}
|
|
12508
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
12509
10431
|
const BasicSubgraph = ({
|
|
12510
10432
|
label = "",
|
|
12511
10433
|
labelFill = "black",
|
|
@@ -12515,10 +10437,7 @@ const BasicSubgraph = ({
|
|
|
12515
10437
|
rectFill: fill,
|
|
12516
10438
|
rectStroke: stroke = "#627ae7",
|
|
12517
10439
|
rectStrokeWidth: strokeWidth = 2
|
|
12518
|
-
}) => /* @__PURE__ */
|
|
12519
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("rect", { width, height, fill, stroke, style: { strokeWidth } }),
|
|
12520
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("g", { transform: `translate(8 ${8 + labelHeight})`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text$2, { text: label, fill: labelFill, height: labelHeight }) })
|
|
12521
|
-
] }), BasicVertex = ({
|
|
10440
|
+
}) => /* @__PURE__ */ React.createElement("g", { transform: `translate(${-width / 2} ${-height / 2})` }, /* @__PURE__ */ React.createElement("rect", { width, height, fill, stroke, style: { strokeWidth } }), /* @__PURE__ */ React.createElement("g", { transform: `translate(8 ${8 + labelHeight})` }, /* @__PURE__ */ React.createElement(Text$2, { text: label, fill: labelFill, height: labelHeight }))), BasicVertex = ({
|
|
12522
10441
|
text,
|
|
12523
10442
|
textFill = "black",
|
|
12524
10443
|
textHeight = 12,
|
|
@@ -12527,10 +10446,7 @@ const BasicSubgraph = ({
|
|
|
12527
10446
|
circleFill = "#a2bcf9",
|
|
12528
10447
|
circleStroke = "#627ae7",
|
|
12529
10448
|
circleStrokeWidth = 2
|
|
12530
|
-
}) => /* @__PURE__ */
|
|
12531
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "0", cy: "0", r: circleRadius, fill: circleFill, stroke: circleStroke, style: { strokeWidth: circleStrokeWidth } }),
|
|
12532
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("g", { transform: `translate(0 ${circleRadius + textHeight})`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text$2, { text, fill: textFill, height: textHeight }) })
|
|
12533
|
-
] });
|
|
10449
|
+
}) => /* @__PURE__ */ React.createElement("g", { transform: `scale(${scale})` }, /* @__PURE__ */ React.createElement("circle", { cx: "0", cy: "0", r: circleRadius, fill: circleFill, stroke: circleStroke, style: { strokeWidth: circleStrokeWidth } }), /* @__PURE__ */ React.createElement("g", { transform: `translate(0 ${circleRadius + textHeight})` }, /* @__PURE__ */ React.createElement(Text$2, { text, fill: textFill, height: textHeight })));
|
|
12534
10450
|
export {
|
|
12535
10451
|
AdjacencyGraph,
|
|
12536
10452
|
Annotation,
|