likec4 1.56.0 → 1.58.0
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/__app__/codegen/react.mjs +7 -8
- package/__app__/codegen/webcomponent.mjs +77 -736
- package/__app__/src/aichat/index.mjs +8 -0
- package/__app__/src/chunks/AIChat.mjs +959 -0
- package/__app__/src/chunks/DiagramActorProvider.mjs +7638 -0
- package/__app__/src/chunks/LikeC4Styles.mjs +1866 -0
- package/__app__/src/chunks/Markdown.mjs +146 -0
- package/__app__/src/chunks/NavigationPanel.mjs +61 -0
- package/__app__/src/chunks/ProjectsOverview.mjs +540 -0
- package/__app__/src/chunks/adhoc-editor.mjs +3386 -0
- package/__app__/src/chunks/es.mjs +439 -0
- package/__app__/src/chunks/hooks.mjs +145 -0
- package/__app__/src/chunks/libs/@dagrejs/dagre.mjs +1894 -0
- package/__app__/src/chunks/libs/@floating-ui.mjs +2218 -0
- package/__app__/src/chunks/libs/@mantine.mjs +12070 -0
- package/__app__/src/chunks/libs/@tabler/icons-react.mjs +252 -0
- package/__app__/src/chunks/libs/@tanstack-ai.mjs +1768 -0
- package/__app__/src/chunks/libs/@tanstack.mjs +2718 -0
- package/__app__/src/chunks/libs/@xstate/react.mjs +1982 -0
- package/__app__/src/chunks/libs/@xyflow/react.mjs +5256 -0
- package/__app__/src/chunks/libs/bezier-js.mjs +1003 -0
- package/__app__/src/chunks/libs/d3.mjs +2842 -0
- package/__app__/src/chunks/libs/fast-equals.mjs +268 -0
- package/__app__/src/chunks/libs/framer.mjs +5872 -0
- package/__app__/src/chunks/libs/remeda.mjs +642 -0
- package/__app__/src/chunks/libs/zod.mjs +3170 -0
- package/__app__/src/chunks/rolldown-runtime.mjs +23 -0
- package/__app__/src/chunks/styled-system.mjs +1040 -0
- package/__app__/src/fonts.css +1 -1
- package/__app__/src/main.mjs +14847 -1
- package/__app__/src/style.css +1 -1
- package/config/schema.json +14 -41
- package/dist/chunks/enableServer.mjs +1 -0
- package/dist/chunks/filenames.mjs +2 -2
- package/dist/chunks/index2.d.mts +2057 -722
- package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
- package/dist/chunks/libs/@logtape/logtape.mjs +4 -3
- package/dist/chunks/libs/@ts-graphviz/ast.mjs +3 -0
- package/dist/chunks/libs/@ts-graphviz/common.d.mts +9 -0
- package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -0
- package/dist/chunks/libs/chevrotain-allstar.mjs +2 -2
- package/dist/chunks/libs/chevrotain.mjs +26 -26
- package/dist/chunks/libs/langium.d.mts +5 -5
- package/dist/chunks/libs/langium.mjs +10 -10
- package/dist/chunks/libs/merge-error-cause.mjs +1 -1
- package/dist/chunks/libs/pako.mjs +3 -1
- package/dist/chunks/libs/pretty-ms.mjs +1 -1
- package/dist/chunks/libs/remeda.mjs +1 -1
- package/dist/chunks/libs/ufo.mjs +1 -1
- package/dist/chunks/libs/unstorage.mjs +1 -1
- package/dist/chunks/libs/which.mjs +1 -1
- package/dist/chunks/libs/zod.d.mts +60 -25
- package/dist/chunks/libs/zod.mjs +65 -0
- package/dist/chunks/node.mjs +84 -56
- package/dist/chunks/sequence-view.mjs +1 -1
- package/dist/chunks/vite-plugin.mjs +593 -0
- package/dist/cli/index.mjs +184 -141
- package/dist/index.d.mts +2 -131
- package/dist/index.mjs +1 -1
- package/dist/model/index.d.mts +2 -2
- package/dist/vite-plugin/index.d.mts +53 -2
- package/dist/vite-plugin/index.mjs +1 -1
- package/dist/vite-plugin/internal/index.d.mts +327 -4
- package/dist/vite-plugin/internal/index.mjs +946 -1
- package/package.json +85 -72
- package/react/index.d.mts +174 -73
- package/react/index.mjs +42468 -38926
- package/vite-plugin-modules.d.ts +4 -0
- package/__app__/chunks/ColorSchemeToggle.mjs +0 -1
- package/__app__/chunks/DiagramActorProvider.mjs +0 -10
- package/__app__/chunks/Fallback.mjs +0 -1
- package/__app__/chunks/Header.mjs +0 -13
- package/__app__/chunks/IconRenderer.mjs +0 -1
- package/__app__/chunks/LikeC4Diagram.mjs +0 -19
- package/__app__/chunks/LikeC4ModelContext.mjs +0 -1
- package/__app__/chunks/LikeC4ModelContext2.mjs +0 -1
- package/__app__/chunks/LikeC4Styles.mjs +0 -48
- package/__app__/chunks/NavigationPanel.mjs +0 -1
- package/__app__/chunks/StaticLikeC4Diagram.mjs +0 -1
- package/__app__/chunks/ViewReact.mjs +0 -1
- package/__app__/chunks/__root.mjs +0 -1
- package/__app__/chunks/adhoc-editor.mjs +0 -1
- package/__app__/chunks/hooks.mjs +0 -1
- package/__app__/chunks/libs/@dagrejs/dagre.mjs +0 -1
- package/__app__/chunks/libs/@floating-ui/core.mjs +0 -1
- package/__app__/chunks/libs/@floating-ui/dom.mjs +0 -1
- package/__app__/chunks/libs/@floating-ui/react.mjs +0 -1
- package/__app__/chunks/libs/@mantine/core.mjs +0 -41
- package/__app__/chunks/libs/@mantine/hooks.mjs +0 -1
- package/__app__/chunks/libs/@nanostores/react.mjs +0 -1
- package/__app__/chunks/libs/@react-hookz/web.mjs +0 -1
- package/__app__/chunks/libs/@tabler/icons-react.mjs +0 -15
- package/__app__/chunks/libs/@tanstack/history.mjs +0 -1
- package/__app__/chunks/libs/@tanstack/react-router.mjs +0 -3
- package/__app__/chunks/libs/@tanstack/router-core.mjs +0 -1
- package/__app__/chunks/libs/@xstate/react.mjs +0 -1
- package/__app__/chunks/libs/@xstate/store.mjs +0 -1
- package/__app__/chunks/libs/@xyflow/react.mjs +0 -7
- package/__app__/chunks/libs/@zag-js/anatomy.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/collection.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/core.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/react.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/tree-view.mjs +0 -1
- package/__app__/chunks/libs/bezier-js.mjs +0 -1
- package/__app__/chunks/libs/d3-path.mjs +0 -1
- package/__app__/chunks/libs/d3-shape.mjs +0 -1
- package/__app__/chunks/libs/fast-equals.mjs +0 -1
- package/__app__/chunks/libs/framer-motion.mjs +0 -9
- package/__app__/chunks/libs/html-to-image.mjs +0 -2
- package/__app__/chunks/libs/motion-dom.mjs +0 -1
- package/__app__/chunks/libs/motion.mjs +0 -1
- package/__app__/chunks/libs/nanostores.mjs +0 -1
- package/__app__/chunks/libs/react-error-boundary.mjs +0 -1
- package/__app__/chunks/libs/react-resizable-panels.mjs +0 -1
- package/__app__/chunks/libs/remeda.mjs +0 -1
- package/__app__/chunks/libs/xstate.mjs +0 -1
- package/__app__/chunks/libs/zod.mjs +0 -39
- package/__app__/chunks/rolldown-runtime.mjs +0 -1
- package/__app__/chunks/safeCtx.mjs +0 -1
- package/__app__/chunks/searchParams.mjs +0 -1
- package/__app__/chunks/single-index.mjs +0 -1
- package/__app__/chunks/styled-system.mjs +0 -1
- package/__app__/chunks/styles.css.mjs +0 -1
- package/__app__/chunks/useLikeC4Project.mjs +0 -1
- package/__app__/chunks/useUpdateEffect.mjs +0 -1
- package/__app__/src/pages/AdHocViewEditor.mjs +0 -1
- package/__app__/src/pages/EmbedPage.mjs +0 -1
- package/__app__/src/pages/ExportPage.mjs +0 -1
- package/__app__/src/pages/ProjectsOverview.mjs +0 -1
- package/__app__/src/pages/ViewAsD2.mjs +0 -1
- package/__app__/src/pages/ViewAsDot.mjs +0 -1
- package/__app__/src/pages/ViewAsMmd.mjs +0 -1
- package/__app__/src/pages/ViewAsPuml.mjs +0 -1
- package/__app__/src/pages/ViewEditor.mjs +0 -1
- package/__app__/src/pages/ViewReact.mjs +0 -1
- package/__app__/src/routeTree.gen.mjs +0 -1
- package/__app__/src/routes/__root.mjs +0 -1
- package/__app__/src/routes/_single/adhoc.mjs +0 -1
- package/__app__/src/routes/_single/embed._viewId.mjs +0 -1
- package/__app__/src/routes/_single/export._viewId.mjs +0 -1
- package/__app__/src/routes/_single/route.mjs +0 -1
- package/__app__/src/routes/_single/single-index.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.d2.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.dot.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.index.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.mmd.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.puml.mjs +0 -1
- package/__app__/src/routes/_single/webcomponent._.mjs +0 -33
- package/__app__/src/routes/index.mjs +0 -1
- package/__app__/src/routes/project._projectId/-components.mjs +0 -1
- package/__app__/src/routes/project._projectId/adhoc.mjs +0 -1
- package/__app__/src/routes/project._projectId/embed._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/export._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/index.mjs +0 -1
- package/__app__/src/routes/project._projectId/route.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.d2.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.dot.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.index.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.mmd.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.puml.mjs +0 -1
- package/__app__/src/routes/projects.mjs +0 -1
- package/dist/chunks/libs/@chevrotain/utils.mjs +0 -1
- package/dist/chunks/libs/@hono/mcp.mjs +0 -45
- package/dist/chunks/libs/@hono/node-server.mjs +0 -1
- package/dist/chunks/libs/@logtape/logtape.d.mts +0 -1023
- package/dist/chunks/libs/@modelcontextprotocol/sdk.mjs +0 -12
- package/dist/chunks/libs/ajv.mjs +0 -1
- package/dist/chunks/libs/ansi-align.mjs +0 -2
- package/dist/chunks/libs/ansi-regex.mjs +0 -1
- package/dist/chunks/libs/ansi-styles.mjs +0 -1
- package/dist/chunks/libs/atomically.mjs +0 -1
- package/dist/chunks/libs/boxen.mjs +0 -22
- package/dist/chunks/libs/conf.mjs +0 -1
- package/dist/chunks/libs/defu.mjs +0 -1
- package/dist/chunks/libs/destr.mjs +0 -1
- package/dist/chunks/libs/find-up-simple.mjs +0 -1
- package/dist/chunks/libs/get-port.mjs +0 -1
- package/dist/chunks/libs/hono.mjs +0 -1
- package/dist/chunks/libs/is-docker.mjs +0 -1
- package/dist/chunks/libs/is-error-instance.mjs +0 -1
- package/dist/chunks/libs/is-inside-container.mjs +0 -1
- package/dist/chunks/libs/is-plain-obj.mjs +0 -1
- package/dist/chunks/libs/isexe.mjs +0 -1
- package/dist/chunks/libs/ky.mjs +0 -3
- package/dist/chunks/libs/p-debounce.mjs +0 -1
- package/dist/chunks/libs/p-limit.mjs +0 -1
- package/dist/chunks/libs/p-timeout.mjs +0 -1
- package/dist/chunks/libs/package-up.mjs +0 -1
- package/dist/chunks/libs/parse-ms.mjs +0 -1
- package/dist/chunks/libs/safe-stringify.mjs +0 -1
- package/dist/chunks/libs/strip-indent.mjs +0 -1
- package/dist/chunks/libs/tinyrainbow.mjs +0 -1
- package/dist/chunks/libs/ts-graphviz.d.mts +0 -12
- package/dist/chunks/libs/ts-graphviz.mjs +0 -4
- package/dist/chunks/libs/vscode-languageserver.mjs +0 -1
- package/dist/chunks/libs/word-wrap.mjs +0 -12
- package/dist/chunks/plugin.mjs +0 -400
- package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.d.mts +0 -269
- package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/birpc.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/fast-equals.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/nanostores.d.mts +0 -59
- package/dist/vite-plugin/internal/chunks/libs/nanostores.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/remeda.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/rolldown-runtime.mjs +0 -1
|
@@ -0,0 +1,2842 @@
|
|
|
1
|
+
import { i as e } from "../rolldown-runtime.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js
|
|
3
|
+
var t = { value: () => {} };
|
|
4
|
+
function dispatch() {
|
|
5
|
+
for (var e = 0, t = arguments.length, n = {}, r; e < t; ++e) {
|
|
6
|
+
if (!(r = arguments[e] + "") || r in n || /[\s.]/.test(r)) throw Error("illegal type: " + r);
|
|
7
|
+
n[r] = [];
|
|
8
|
+
}
|
|
9
|
+
return new Dispatch(n);
|
|
10
|
+
}
|
|
11
|
+
function Dispatch(e) {
|
|
12
|
+
this._ = e;
|
|
13
|
+
}
|
|
14
|
+
function parseTypenames$1(e, t) {
|
|
15
|
+
return e.trim().split(/^|\s+/).map(function(e) {
|
|
16
|
+
var n = "", r = e.indexOf(".");
|
|
17
|
+
if (r >= 0 && (n = e.slice(r + 1), e = e.slice(0, r)), e && !t.hasOwnProperty(e)) throw Error("unknown type: " + e);
|
|
18
|
+
return {
|
|
19
|
+
type: e,
|
|
20
|
+
name: n
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
e(parseTypenames$1, "parseTypenames"), Dispatch.prototype = dispatch.prototype = {
|
|
25
|
+
constructor: Dispatch,
|
|
26
|
+
on: function(e, t) {
|
|
27
|
+
var n = this._, r = parseTypenames$1(e + "", n), a, o = -1, s = r.length;
|
|
28
|
+
if (arguments.length < 2) {
|
|
29
|
+
for (; ++o < s;) if ((a = (e = r[o]).type) && (a = get$1(n[a], e.name))) return a;
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if (t != null && typeof t != "function") throw Error("invalid callback: " + t);
|
|
33
|
+
for (; ++o < s;) if (a = (e = r[o]).type) n[a] = set$1(n[a], e.name, t);
|
|
34
|
+
else if (t == null) for (a in n) n[a] = set$1(n[a], e.name, null);
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
copy: function() {
|
|
38
|
+
var e = {}, t = this._;
|
|
39
|
+
for (var n in t) e[n] = t[n].slice();
|
|
40
|
+
return new Dispatch(e);
|
|
41
|
+
},
|
|
42
|
+
call: function(e, t) {
|
|
43
|
+
if ((a = arguments.length - 2) > 0) for (var n = Array(a), r = 0, a, o; r < a; ++r) n[r] = arguments[r + 2];
|
|
44
|
+
if (!this._.hasOwnProperty(e)) throw Error("unknown type: " + e);
|
|
45
|
+
for (o = this._[e], r = 0, a = o.length; r < a; ++r) o[r].value.apply(t, n);
|
|
46
|
+
},
|
|
47
|
+
apply: function(e, t, n) {
|
|
48
|
+
if (!this._.hasOwnProperty(e)) throw Error("unknown type: " + e);
|
|
49
|
+
for (var r = this._[e], a = 0, o = r.length; a < o; ++a) r[a].value.apply(t, n);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
function get$1(e, t) {
|
|
53
|
+
for (var n = 0, r = e.length, a; n < r; ++n) if ((a = e[n]).name === t) return a.value;
|
|
54
|
+
}
|
|
55
|
+
e(get$1, "get");
|
|
56
|
+
function set$1(e, n, r) {
|
|
57
|
+
for (var a = 0, o = e.length; a < o; ++a) if (e[a].name === n) {
|
|
58
|
+
e[a] = t, e = e.slice(0, a).concat(e.slice(a + 1));
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
return r != null && e.push({
|
|
62
|
+
name: n,
|
|
63
|
+
value: r
|
|
64
|
+
}), e;
|
|
65
|
+
}
|
|
66
|
+
e(set$1, "set");
|
|
67
|
+
var n = {
|
|
68
|
+
svg: "http://www.w3.org/2000/svg",
|
|
69
|
+
xhtml: "http://www.w3.org/1999/xhtml",
|
|
70
|
+
xlink: "http://www.w3.org/1999/xlink",
|
|
71
|
+
xml: "http://www.w3.org/XML/1998/namespace",
|
|
72
|
+
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespace.js
|
|
76
|
+
function namespace_default(e) {
|
|
77
|
+
var t = e += "", r = t.indexOf(":");
|
|
78
|
+
return r >= 0 && (t = e.slice(0, r)) !== "xmlns" && (e = e.slice(r + 1)), n.hasOwnProperty(t) ? {
|
|
79
|
+
space: n[t],
|
|
80
|
+
local: e
|
|
81
|
+
} : e;
|
|
82
|
+
}
|
|
83
|
+
e(namespace_default, "default");
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/creator.js
|
|
86
|
+
function creatorInherit(e) {
|
|
87
|
+
return function() {
|
|
88
|
+
var t = this.ownerDocument, n = this.namespaceURI;
|
|
89
|
+
return n === "http://www.w3.org/1999/xhtml" && t.documentElement.namespaceURI === "http://www.w3.org/1999/xhtml" ? t.createElement(e) : t.createElementNS(n, e);
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function creatorFixed(e) {
|
|
93
|
+
return function() {
|
|
94
|
+
return this.ownerDocument.createElementNS(e.space, e.local);
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function creator_default(e) {
|
|
98
|
+
var t = namespace_default(e);
|
|
99
|
+
return (t.local ? creatorFixed : creatorInherit)(t);
|
|
100
|
+
}
|
|
101
|
+
e(creator_default, "default");
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selector.js
|
|
104
|
+
function none() {}
|
|
105
|
+
function selector_default(e) {
|
|
106
|
+
return e == null ? none : function() {
|
|
107
|
+
return this.querySelector(e);
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
e(selector_default, "default");
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/select.js
|
|
113
|
+
function select_default$2(e) {
|
|
114
|
+
typeof e != "function" && (e = selector_default(e));
|
|
115
|
+
for (var t = this._groups, n = t.length, r = Array(n), a = 0; a < n; ++a) for (var o = t[a], s = o.length, c = r[a] = Array(s), l, u, d = 0; d < s; ++d) (l = o[d]) && (u = e.call(l, l.__data__, d, o)) && ("__data__" in l && (u.__data__ = l.__data__), c[d] = u);
|
|
116
|
+
return new Selection$1(r, this._parents);
|
|
117
|
+
}
|
|
118
|
+
e(select_default$2, "default");
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/array.js
|
|
121
|
+
function array(e) {
|
|
122
|
+
return e == null ? [] : Array.isArray(e) ? e : Array.from(e);
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selectorAll.js
|
|
126
|
+
function empty() {
|
|
127
|
+
return [];
|
|
128
|
+
}
|
|
129
|
+
function selectorAll_default(e) {
|
|
130
|
+
return e == null ? empty : function() {
|
|
131
|
+
return this.querySelectorAll(e);
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
e(selectorAll_default, "default");
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectAll.js
|
|
137
|
+
function arrayAll(e) {
|
|
138
|
+
return function() {
|
|
139
|
+
return array(e.apply(this, arguments));
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
function selectAll_default$1(e) {
|
|
143
|
+
e = typeof e == "function" ? arrayAll(e) : selectorAll_default(e);
|
|
144
|
+
for (var t = this._groups, n = t.length, r = [], a = [], o = 0; o < n; ++o) for (var s = t[o], c = s.length, l, u = 0; u < c; ++u) (l = s[u]) && (r.push(e.call(l, l.__data__, u, s)), a.push(l));
|
|
145
|
+
return new Selection$1(r, a);
|
|
146
|
+
}
|
|
147
|
+
e(selectAll_default$1, "default");
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.js
|
|
150
|
+
function matcher_default(e) {
|
|
151
|
+
return function() {
|
|
152
|
+
return this.matches(e);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
e(matcher_default, "default");
|
|
156
|
+
function childMatcher(e) {
|
|
157
|
+
return function(t) {
|
|
158
|
+
return t.matches(e);
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChild.js
|
|
163
|
+
var r = Array.prototype.find;
|
|
164
|
+
function childFind(e) {
|
|
165
|
+
return function() {
|
|
166
|
+
return r.call(this.children, e);
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
function childFirst() {
|
|
170
|
+
return this.firstElementChild;
|
|
171
|
+
}
|
|
172
|
+
function selectChild_default(e) {
|
|
173
|
+
return this.select(e == null ? childFirst : childFind(typeof e == "function" ? e : childMatcher(e)));
|
|
174
|
+
}
|
|
175
|
+
e(selectChild_default, "default");
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChildren.js
|
|
178
|
+
var a = Array.prototype.filter;
|
|
179
|
+
function children() {
|
|
180
|
+
return Array.from(this.children);
|
|
181
|
+
}
|
|
182
|
+
function childrenFilter(e) {
|
|
183
|
+
return function() {
|
|
184
|
+
return a.call(this.children, e);
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
function selectChildren_default(e) {
|
|
188
|
+
return this.selectAll(e == null ? children : childrenFilter(typeof e == "function" ? e : childMatcher(e)));
|
|
189
|
+
}
|
|
190
|
+
e(selectChildren_default, "default");
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/filter.js
|
|
193
|
+
function filter_default$1(e) {
|
|
194
|
+
typeof e != "function" && (e = matcher_default(e));
|
|
195
|
+
for (var t = this._groups, n = t.length, r = Array(n), a = 0; a < n; ++a) for (var o = t[a], s = o.length, c = r[a] = [], l, u = 0; u < s; ++u) (l = o[u]) && e.call(l, l.__data__, u, o) && c.push(l);
|
|
196
|
+
return new Selection$1(r, this._parents);
|
|
197
|
+
}
|
|
198
|
+
e(filter_default$1, "default");
|
|
199
|
+
//#endregion
|
|
200
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sparse.js
|
|
201
|
+
function sparse_default(e) {
|
|
202
|
+
return Array(e.length);
|
|
203
|
+
}
|
|
204
|
+
e(sparse_default, "default");
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/enter.js
|
|
207
|
+
function enter_default() {
|
|
208
|
+
return new Selection$1(this._enter || this._groups.map(sparse_default), this._parents);
|
|
209
|
+
}
|
|
210
|
+
e(enter_default, "default");
|
|
211
|
+
function EnterNode(e, t) {
|
|
212
|
+
this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t;
|
|
213
|
+
}
|
|
214
|
+
EnterNode.prototype = {
|
|
215
|
+
constructor: EnterNode,
|
|
216
|
+
appendChild: function(e) {
|
|
217
|
+
return this._parent.insertBefore(e, this._next);
|
|
218
|
+
},
|
|
219
|
+
insertBefore: function(e, t) {
|
|
220
|
+
return this._parent.insertBefore(e, t);
|
|
221
|
+
},
|
|
222
|
+
querySelector: function(e) {
|
|
223
|
+
return this._parent.querySelector(e);
|
|
224
|
+
},
|
|
225
|
+
querySelectorAll: function(e) {
|
|
226
|
+
return this._parent.querySelectorAll(e);
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/constant.js
|
|
231
|
+
function constant_default$4(e) {
|
|
232
|
+
return function() {
|
|
233
|
+
return e;
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
e(constant_default$4, "default");
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/data.js
|
|
239
|
+
function bindIndex(e, t, n, r, a, o) {
|
|
240
|
+
for (var s = 0, c, l = t.length, u = o.length; s < u; ++s) (c = t[s]) ? (c.__data__ = o[s], r[s] = c) : n[s] = new EnterNode(e, o[s]);
|
|
241
|
+
for (; s < l; ++s) (c = t[s]) && (a[s] = c);
|
|
242
|
+
}
|
|
243
|
+
function bindKey(e, t, n, r, a, o, s) {
|
|
244
|
+
var c, l, u = /* @__PURE__ */ new Map(), d = t.length, f = o.length, p = Array(d), m;
|
|
245
|
+
for (c = 0; c < d; ++c) (l = t[c]) && (p[c] = m = s.call(l, l.__data__, c, t) + "", u.has(m) ? a[c] = l : u.set(m, l));
|
|
246
|
+
for (c = 0; c < f; ++c) m = s.call(e, o[c], c, o) + "", (l = u.get(m)) ? (r[c] = l, l.__data__ = o[c], u.delete(m)) : n[c] = new EnterNode(e, o[c]);
|
|
247
|
+
for (c = 0; c < d; ++c) (l = t[c]) && u.get(p[c]) === l && (a[c] = l);
|
|
248
|
+
}
|
|
249
|
+
function datum(e) {
|
|
250
|
+
return e.__data__;
|
|
251
|
+
}
|
|
252
|
+
function data_default(e, t) {
|
|
253
|
+
if (!arguments.length) return Array.from(this, datum);
|
|
254
|
+
var n = t ? bindKey : bindIndex, r = this._parents, a = this._groups;
|
|
255
|
+
typeof e != "function" && (e = constant_default$4(e));
|
|
256
|
+
for (var o = a.length, s = Array(o), c = Array(o), l = Array(o), u = 0; u < o; ++u) {
|
|
257
|
+
var d = r[u], f = a[u], p = f.length, m = arraylike(e.call(d, d && d.__data__, u, r)), h = m.length, g = c[u] = Array(h), _ = s[u] = Array(h);
|
|
258
|
+
n(d, f, g, _, l[u] = Array(p), m, t);
|
|
259
|
+
for (var v = 0, b = 0, S, C; v < h; ++v) if (S = g[v]) {
|
|
260
|
+
for (v >= b && (b = v + 1); !(C = _[b]) && ++b < h;);
|
|
261
|
+
S._next = C || null;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
return s = new Selection$1(s, r), s._enter = c, s._exit = l, s;
|
|
265
|
+
}
|
|
266
|
+
e(data_default, "default");
|
|
267
|
+
function arraylike(e) {
|
|
268
|
+
return typeof e == "object" && "length" in e ? e : Array.from(e);
|
|
269
|
+
}
|
|
270
|
+
//#endregion
|
|
271
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/exit.js
|
|
272
|
+
function exit_default() {
|
|
273
|
+
return new Selection$1(this._exit || this._groups.map(sparse_default), this._parents);
|
|
274
|
+
}
|
|
275
|
+
e(exit_default, "default");
|
|
276
|
+
//#endregion
|
|
277
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/join.js
|
|
278
|
+
function join_default(e, t, n) {
|
|
279
|
+
var r = this.enter(), a = this, o = this.exit();
|
|
280
|
+
return typeof e == "function" ? (r = e(r), r &&= r.selection()) : r = r.append(e + ""), t != null && (a = t(a), a &&= a.selection()), n == null ? o.remove() : n(o), r && a ? r.merge(a).order() : a;
|
|
281
|
+
}
|
|
282
|
+
e(join_default, "default");
|
|
283
|
+
//#endregion
|
|
284
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/merge.js
|
|
285
|
+
function merge_default$1(e) {
|
|
286
|
+
for (var t = e.selection ? e.selection() : e, n = this._groups, r = t._groups, a = n.length, o = r.length, s = Math.min(a, o), c = Array(a), l = 0; l < s; ++l) for (var u = n[l], d = r[l], f = u.length, p = c[l] = Array(f), m, h = 0; h < f; ++h) (m = u[h] || d[h]) && (p[h] = m);
|
|
287
|
+
for (; l < a; ++l) c[l] = n[l];
|
|
288
|
+
return new Selection$1(c, this._parents);
|
|
289
|
+
}
|
|
290
|
+
e(merge_default$1, "default");
|
|
291
|
+
//#endregion
|
|
292
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/order.js
|
|
293
|
+
function order_default() {
|
|
294
|
+
for (var e = this._groups, t = -1, n = e.length; ++t < n;) for (var r = e[t], a = r.length - 1, o = r[a], s; --a >= 0;) (s = r[a]) && (o && s.compareDocumentPosition(o) ^ 4 && o.parentNode.insertBefore(s, o), o = s);
|
|
295
|
+
return this;
|
|
296
|
+
}
|
|
297
|
+
e(order_default, "default");
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sort.js
|
|
300
|
+
function sort_default(e) {
|
|
301
|
+
e ||= ascending;
|
|
302
|
+
function compareNode(t, n) {
|
|
303
|
+
return t && n ? e(t.__data__, n.__data__) : !t - !n;
|
|
304
|
+
}
|
|
305
|
+
for (var t = this._groups, n = t.length, r = Array(n), a = 0; a < n; ++a) {
|
|
306
|
+
for (var o = t[a], s = o.length, c = r[a] = Array(s), l, u = 0; u < s; ++u) (l = o[u]) && (c[u] = l);
|
|
307
|
+
c.sort(compareNode);
|
|
308
|
+
}
|
|
309
|
+
return new Selection$1(r, this._parents).order();
|
|
310
|
+
}
|
|
311
|
+
e(sort_default, "default");
|
|
312
|
+
function ascending(e, t) {
|
|
313
|
+
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
|
|
314
|
+
}
|
|
315
|
+
//#endregion
|
|
316
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/call.js
|
|
317
|
+
function call_default() {
|
|
318
|
+
var e = arguments[0];
|
|
319
|
+
return arguments[0] = this, e.apply(null, arguments), this;
|
|
320
|
+
}
|
|
321
|
+
e(call_default, "default");
|
|
322
|
+
//#endregion
|
|
323
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/nodes.js
|
|
324
|
+
function nodes_default() {
|
|
325
|
+
return Array.from(this);
|
|
326
|
+
}
|
|
327
|
+
e(nodes_default, "default");
|
|
328
|
+
//#endregion
|
|
329
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/node.js
|
|
330
|
+
function node_default() {
|
|
331
|
+
for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], a = 0, o = r.length; a < o; ++a) {
|
|
332
|
+
var s = r[a];
|
|
333
|
+
if (s) return s;
|
|
334
|
+
}
|
|
335
|
+
return null;
|
|
336
|
+
}
|
|
337
|
+
e(node_default, "default");
|
|
338
|
+
//#endregion
|
|
339
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/size.js
|
|
340
|
+
function size_default() {
|
|
341
|
+
let e = 0;
|
|
342
|
+
for (let t of this) ++e;
|
|
343
|
+
return e;
|
|
344
|
+
}
|
|
345
|
+
e(size_default, "default");
|
|
346
|
+
//#endregion
|
|
347
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/empty.js
|
|
348
|
+
function empty_default() {
|
|
349
|
+
return !this.node();
|
|
350
|
+
}
|
|
351
|
+
e(empty_default, "default");
|
|
352
|
+
//#endregion
|
|
353
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/each.js
|
|
354
|
+
function each_default(e) {
|
|
355
|
+
for (var t = this._groups, n = 0, r = t.length; n < r; ++n) for (var a = t[n], o = 0, s = a.length, c; o < s; ++o) (c = a[o]) && e.call(c, c.__data__, o, a);
|
|
356
|
+
return this;
|
|
357
|
+
}
|
|
358
|
+
e(each_default, "default");
|
|
359
|
+
//#endregion
|
|
360
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/attr.js
|
|
361
|
+
function attrRemove$1(e) {
|
|
362
|
+
return function() {
|
|
363
|
+
this.removeAttribute(e);
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
e(attrRemove$1, "attrRemove");
|
|
367
|
+
function attrRemoveNS$1(e) {
|
|
368
|
+
return function() {
|
|
369
|
+
this.removeAttributeNS(e.space, e.local);
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
e(attrRemoveNS$1, "attrRemoveNS");
|
|
373
|
+
function attrConstant$1(e, t) {
|
|
374
|
+
return function() {
|
|
375
|
+
this.setAttribute(e, t);
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
e(attrConstant$1, "attrConstant");
|
|
379
|
+
function attrConstantNS$1(e, t) {
|
|
380
|
+
return function() {
|
|
381
|
+
this.setAttributeNS(e.space, e.local, t);
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
e(attr_default$1, "default"), e(attrConstantNS$1, "attrConstantNS");
|
|
385
|
+
function attrFunction$1(e, t) {
|
|
386
|
+
return function() {
|
|
387
|
+
var n = t.apply(this, arguments);
|
|
388
|
+
n == null ? this.removeAttribute(e) : this.setAttribute(e, n);
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
e(attrFunction$1, "attrFunction");
|
|
392
|
+
function attrFunctionNS$1(e, t) {
|
|
393
|
+
return function() {
|
|
394
|
+
var n = t.apply(this, arguments);
|
|
395
|
+
n == null ? this.removeAttributeNS(e.space, e.local) : this.setAttributeNS(e.space, e.local, n);
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
e(attrFunctionNS$1, "attrFunctionNS");
|
|
399
|
+
function attr_default$1(e, t) {
|
|
400
|
+
var n = namespace_default(e);
|
|
401
|
+
if (arguments.length < 2) {
|
|
402
|
+
var r = this.node();
|
|
403
|
+
return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
|
|
404
|
+
}
|
|
405
|
+
return this.each((t == null ? n.local ? attrRemoveNS$1 : attrRemove$1 : typeof t == "function" ? n.local ? attrFunctionNS$1 : attrFunction$1 : n.local ? attrConstantNS$1 : attrConstant$1)(n, t));
|
|
406
|
+
}
|
|
407
|
+
//#endregion
|
|
408
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/window.js
|
|
409
|
+
function window_default(e) {
|
|
410
|
+
return e.ownerDocument && e.ownerDocument.defaultView || e.document && e || e.defaultView;
|
|
411
|
+
}
|
|
412
|
+
e(window_default, "default");
|
|
413
|
+
//#endregion
|
|
414
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/style.js
|
|
415
|
+
function styleRemove$1(e) {
|
|
416
|
+
return function() {
|
|
417
|
+
this.style.removeProperty(e);
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
e(styleRemove$1, "styleRemove");
|
|
421
|
+
function styleConstant$1(e, t, n) {
|
|
422
|
+
return function() {
|
|
423
|
+
this.style.setProperty(e, t, n);
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
e(styleConstant$1, "styleConstant"), e(style_default$1, "default");
|
|
427
|
+
function styleFunction$1(e, t, n) {
|
|
428
|
+
return function() {
|
|
429
|
+
var r = t.apply(this, arguments);
|
|
430
|
+
r == null ? this.style.removeProperty(e) : this.style.setProperty(e, r, n);
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
e(styleFunction$1, "styleFunction");
|
|
434
|
+
function style_default$1(e, t, n) {
|
|
435
|
+
return arguments.length > 1 ? this.each((t == null ? styleRemove$1 : typeof t == "function" ? styleFunction$1 : styleConstant$1)(e, t, n ?? "")) : styleValue(this.node(), e);
|
|
436
|
+
}
|
|
437
|
+
function styleValue(e, t) {
|
|
438
|
+
return e.style.getPropertyValue(t) || window_default(e).getComputedStyle(e, null).getPropertyValue(t);
|
|
439
|
+
}
|
|
440
|
+
//#endregion
|
|
441
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/property.js
|
|
442
|
+
function propertyRemove(e) {
|
|
443
|
+
return function() {
|
|
444
|
+
delete this[e];
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
function propertyConstant(e, t) {
|
|
448
|
+
return function() {
|
|
449
|
+
this[e] = t;
|
|
450
|
+
};
|
|
451
|
+
}
|
|
452
|
+
function propertyFunction(e, t) {
|
|
453
|
+
return function() {
|
|
454
|
+
var n = t.apply(this, arguments);
|
|
455
|
+
n == null ? delete this[e] : this[e] = n;
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
function property_default(e, t) {
|
|
459
|
+
return arguments.length > 1 ? this.each((t == null ? propertyRemove : typeof t == "function" ? propertyFunction : propertyConstant)(e, t)) : this.node()[e];
|
|
460
|
+
}
|
|
461
|
+
e(property_default, "default");
|
|
462
|
+
//#endregion
|
|
463
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/classed.js
|
|
464
|
+
function classArray(e) {
|
|
465
|
+
return e.trim().split(/^|\s+/);
|
|
466
|
+
}
|
|
467
|
+
function classList(e) {
|
|
468
|
+
return e.classList || new ClassList(e);
|
|
469
|
+
}
|
|
470
|
+
function ClassList(e) {
|
|
471
|
+
this._node = e, this._names = classArray(e.getAttribute("class") || "");
|
|
472
|
+
}
|
|
473
|
+
ClassList.prototype = {
|
|
474
|
+
add: function(e) {
|
|
475
|
+
this._names.indexOf(e) < 0 && (this._names.push(e), this._node.setAttribute("class", this._names.join(" ")));
|
|
476
|
+
},
|
|
477
|
+
remove: function(e) {
|
|
478
|
+
var t = this._names.indexOf(e);
|
|
479
|
+
t >= 0 && (this._names.splice(t, 1), this._node.setAttribute("class", this._names.join(" ")));
|
|
480
|
+
},
|
|
481
|
+
contains: function(e) {
|
|
482
|
+
return this._names.indexOf(e) >= 0;
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
function classedAdd(e, t) {
|
|
486
|
+
for (var n = classList(e), r = -1, a = t.length; ++r < a;) n.add(t[r]);
|
|
487
|
+
}
|
|
488
|
+
function classedRemove(e, t) {
|
|
489
|
+
for (var n = classList(e), r = -1, a = t.length; ++r < a;) n.remove(t[r]);
|
|
490
|
+
}
|
|
491
|
+
function classedTrue(e) {
|
|
492
|
+
return function() {
|
|
493
|
+
classedAdd(this, e);
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
function classedFalse(e) {
|
|
497
|
+
return function() {
|
|
498
|
+
classedRemove(this, e);
|
|
499
|
+
};
|
|
500
|
+
}
|
|
501
|
+
function classedFunction(e, t) {
|
|
502
|
+
return function() {
|
|
503
|
+
(t.apply(this, arguments) ? classedAdd : classedRemove)(this, e);
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
function classed_default(e, t) {
|
|
507
|
+
var n = classArray(e + "");
|
|
508
|
+
if (arguments.length < 2) {
|
|
509
|
+
for (var r = classList(this.node()), a = -1, o = n.length; ++a < o;) if (!r.contains(n[a])) return !1;
|
|
510
|
+
return !0;
|
|
511
|
+
}
|
|
512
|
+
return this.each((typeof t == "function" ? classedFunction : t ? classedTrue : classedFalse)(n, t));
|
|
513
|
+
}
|
|
514
|
+
e(classed_default, "default");
|
|
515
|
+
//#endregion
|
|
516
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/text.js
|
|
517
|
+
function textRemove() {
|
|
518
|
+
this.textContent = "";
|
|
519
|
+
}
|
|
520
|
+
function textConstant$1(e) {
|
|
521
|
+
return function() {
|
|
522
|
+
this.textContent = e;
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
e(textConstant$1, "textConstant");
|
|
526
|
+
function textFunction$1(e) {
|
|
527
|
+
return function() {
|
|
528
|
+
var t = e.apply(this, arguments);
|
|
529
|
+
this.textContent = t ?? "";
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
e(text_default$1, "default"), e(textFunction$1, "textFunction");
|
|
533
|
+
function text_default$1(e) {
|
|
534
|
+
return arguments.length ? this.each(e == null ? textRemove : (typeof e == "function" ? textFunction$1 : textConstant$1)(e)) : this.node().textContent;
|
|
535
|
+
}
|
|
536
|
+
//#endregion
|
|
537
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/html.js
|
|
538
|
+
function htmlRemove() {
|
|
539
|
+
this.innerHTML = "";
|
|
540
|
+
}
|
|
541
|
+
function htmlConstant(e) {
|
|
542
|
+
return function() {
|
|
543
|
+
this.innerHTML = e;
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
function htmlFunction(e) {
|
|
547
|
+
return function() {
|
|
548
|
+
var t = e.apply(this, arguments);
|
|
549
|
+
this.innerHTML = t ?? "";
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
function html_default(e) {
|
|
553
|
+
return arguments.length ? this.each(e == null ? htmlRemove : (typeof e == "function" ? htmlFunction : htmlConstant)(e)) : this.node().innerHTML;
|
|
554
|
+
}
|
|
555
|
+
e(html_default, "default");
|
|
556
|
+
//#endregion
|
|
557
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/raise.js
|
|
558
|
+
function raise() {
|
|
559
|
+
this.nextSibling && this.parentNode.appendChild(this);
|
|
560
|
+
}
|
|
561
|
+
function raise_default() {
|
|
562
|
+
return this.each(raise);
|
|
563
|
+
}
|
|
564
|
+
e(raise_default, "default");
|
|
565
|
+
//#endregion
|
|
566
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/lower.js
|
|
567
|
+
function lower() {
|
|
568
|
+
this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
|
|
569
|
+
}
|
|
570
|
+
function lower_default() {
|
|
571
|
+
return this.each(lower);
|
|
572
|
+
}
|
|
573
|
+
e(lower_default, "default");
|
|
574
|
+
//#endregion
|
|
575
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/append.js
|
|
576
|
+
function append_default(e) {
|
|
577
|
+
var t = typeof e == "function" ? e : creator_default(e);
|
|
578
|
+
return this.select(function() {
|
|
579
|
+
return this.appendChild(t.apply(this, arguments));
|
|
580
|
+
});
|
|
581
|
+
}
|
|
582
|
+
e(append_default, "default");
|
|
583
|
+
//#endregion
|
|
584
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/insert.js
|
|
585
|
+
function constantNull() {
|
|
586
|
+
return null;
|
|
587
|
+
}
|
|
588
|
+
function insert_default(e, t) {
|
|
589
|
+
var n = typeof e == "function" ? e : creator_default(e), r = t == null ? constantNull : typeof t == "function" ? t : selector_default(t);
|
|
590
|
+
return this.select(function() {
|
|
591
|
+
return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
e(insert_default, "default");
|
|
595
|
+
//#endregion
|
|
596
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/remove.js
|
|
597
|
+
function remove() {
|
|
598
|
+
var e = this.parentNode;
|
|
599
|
+
e && e.removeChild(this);
|
|
600
|
+
}
|
|
601
|
+
function remove_default$1() {
|
|
602
|
+
return this.each(remove);
|
|
603
|
+
}
|
|
604
|
+
e(remove_default$1, "default");
|
|
605
|
+
//#endregion
|
|
606
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/clone.js
|
|
607
|
+
function selection_cloneShallow() {
|
|
608
|
+
var e = this.cloneNode(!1), t = this.parentNode;
|
|
609
|
+
return t ? t.insertBefore(e, this.nextSibling) : e;
|
|
610
|
+
}
|
|
611
|
+
function selection_cloneDeep() {
|
|
612
|
+
var e = this.cloneNode(!0), t = this.parentNode;
|
|
613
|
+
return t ? t.insertBefore(e, this.nextSibling) : e;
|
|
614
|
+
}
|
|
615
|
+
function clone_default(e) {
|
|
616
|
+
return this.select(e ? selection_cloneDeep : selection_cloneShallow);
|
|
617
|
+
}
|
|
618
|
+
e(clone_default, "default");
|
|
619
|
+
//#endregion
|
|
620
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/datum.js
|
|
621
|
+
function datum_default(e) {
|
|
622
|
+
return arguments.length ? this.property("__data__", e) : this.node().__data__;
|
|
623
|
+
}
|
|
624
|
+
e(datum_default, "default");
|
|
625
|
+
//#endregion
|
|
626
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/on.js
|
|
627
|
+
function contextListener(e) {
|
|
628
|
+
return function(t) {
|
|
629
|
+
e.call(this, t, this.__data__);
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
function parseTypenames(e) {
|
|
633
|
+
return e.trim().split(/^|\s+/).map(function(e) {
|
|
634
|
+
var t = "", n = e.indexOf(".");
|
|
635
|
+
return n >= 0 && (t = e.slice(n + 1), e = e.slice(0, n)), {
|
|
636
|
+
type: e,
|
|
637
|
+
name: t
|
|
638
|
+
};
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
function onRemove(e) {
|
|
642
|
+
return function() {
|
|
643
|
+
var t = this.__on;
|
|
644
|
+
if (t) {
|
|
645
|
+
for (var n = 0, r = -1, a = t.length, o; n < a; ++n) o = t[n], (!e.type || o.type === e.type) && o.name === e.name ? this.removeEventListener(o.type, o.listener, o.options) : t[++r] = o;
|
|
646
|
+
++r ? t.length = r : delete this.__on;
|
|
647
|
+
}
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
function onAdd(e, t, n) {
|
|
651
|
+
return function() {
|
|
652
|
+
var r = this.__on, a, o = contextListener(t);
|
|
653
|
+
if (r) {
|
|
654
|
+
for (var s = 0, c = r.length; s < c; ++s) if ((a = r[s]).type === e.type && a.name === e.name) {
|
|
655
|
+
this.removeEventListener(a.type, a.listener, a.options), this.addEventListener(a.type, a.listener = o, a.options = n), a.value = t;
|
|
656
|
+
return;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
this.addEventListener(e.type, o, n), a = {
|
|
660
|
+
type: e.type,
|
|
661
|
+
name: e.name,
|
|
662
|
+
value: t,
|
|
663
|
+
listener: o,
|
|
664
|
+
options: n
|
|
665
|
+
}, r ? r.push(a) : this.__on = [a];
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
function on_default$1(e, t, n) {
|
|
669
|
+
var r = parseTypenames(e + ""), a, o = r.length, s;
|
|
670
|
+
if (arguments.length < 2) {
|
|
671
|
+
var c = this.node().__on;
|
|
672
|
+
if (c) {
|
|
673
|
+
for (var l = 0, u = c.length, d; l < u; ++l) for (a = 0, d = c[l]; a < o; ++a) if ((s = r[a]).type === d.type && s.name === d.name) return d.value;
|
|
674
|
+
}
|
|
675
|
+
return;
|
|
676
|
+
}
|
|
677
|
+
for (c = t ? onAdd : onRemove, a = 0; a < o; ++a) this.each(c(r[a], t, n));
|
|
678
|
+
return this;
|
|
679
|
+
}
|
|
680
|
+
e(on_default$1, "default");
|
|
681
|
+
//#endregion
|
|
682
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/dispatch.js
|
|
683
|
+
function dispatchEvent(e, t, n) {
|
|
684
|
+
var r = window_default(e), a = r.CustomEvent;
|
|
685
|
+
typeof a == "function" ? a = new a(t, n) : (a = r.document.createEvent("Event"), n ? (a.initEvent(t, n.bubbles, n.cancelable), a.detail = n.detail) : a.initEvent(t, !1, !1)), e.dispatchEvent(a);
|
|
686
|
+
}
|
|
687
|
+
function dispatchConstant(e, t) {
|
|
688
|
+
return function() {
|
|
689
|
+
return dispatchEvent(this, e, t);
|
|
690
|
+
};
|
|
691
|
+
}
|
|
692
|
+
function dispatchFunction(e, t) {
|
|
693
|
+
return function() {
|
|
694
|
+
return dispatchEvent(this, e, t.apply(this, arguments));
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
function dispatch_default(e, t) {
|
|
698
|
+
return this.each((typeof t == "function" ? dispatchFunction : dispatchConstant)(e, t));
|
|
699
|
+
}
|
|
700
|
+
e(dispatch_default, "default");
|
|
701
|
+
//#endregion
|
|
702
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/iterator.js
|
|
703
|
+
function* iterator_default() {
|
|
704
|
+
for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], a = 0, o = r.length, s; a < o; ++a) (s = r[a]) && (yield s);
|
|
705
|
+
}
|
|
706
|
+
e(iterator_default, "default");
|
|
707
|
+
//#endregion
|
|
708
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/index.js
|
|
709
|
+
var o = [null];
|
|
710
|
+
function Selection$1(e, t) {
|
|
711
|
+
this._groups = e, this._parents = t;
|
|
712
|
+
}
|
|
713
|
+
e(Selection$1, "Selection");
|
|
714
|
+
function selection() {
|
|
715
|
+
return new Selection$1([[document.documentElement]], o);
|
|
716
|
+
}
|
|
717
|
+
function selection_selection() {
|
|
718
|
+
return this;
|
|
719
|
+
}
|
|
720
|
+
Selection$1.prototype = selection.prototype = {
|
|
721
|
+
constructor: Selection$1,
|
|
722
|
+
select: select_default$2,
|
|
723
|
+
selectAll: selectAll_default$1,
|
|
724
|
+
selectChild: selectChild_default,
|
|
725
|
+
selectChildren: selectChildren_default,
|
|
726
|
+
filter: filter_default$1,
|
|
727
|
+
data: data_default,
|
|
728
|
+
enter: enter_default,
|
|
729
|
+
exit: exit_default,
|
|
730
|
+
join: join_default,
|
|
731
|
+
merge: merge_default$1,
|
|
732
|
+
selection: selection_selection,
|
|
733
|
+
order: order_default,
|
|
734
|
+
sort: sort_default,
|
|
735
|
+
call: call_default,
|
|
736
|
+
nodes: nodes_default,
|
|
737
|
+
node: node_default,
|
|
738
|
+
size: size_default,
|
|
739
|
+
empty: empty_default,
|
|
740
|
+
each: each_default,
|
|
741
|
+
attr: attr_default$1,
|
|
742
|
+
style: style_default$1,
|
|
743
|
+
property: property_default,
|
|
744
|
+
classed: classed_default,
|
|
745
|
+
text: text_default$1,
|
|
746
|
+
html: html_default,
|
|
747
|
+
raise: raise_default,
|
|
748
|
+
lower: lower_default,
|
|
749
|
+
append: append_default,
|
|
750
|
+
insert: insert_default,
|
|
751
|
+
remove: remove_default$1,
|
|
752
|
+
clone: clone_default,
|
|
753
|
+
datum: datum_default,
|
|
754
|
+
on: on_default$1,
|
|
755
|
+
dispatch: dispatch_default,
|
|
756
|
+
[Symbol.iterator]: iterator_default
|
|
757
|
+
};
|
|
758
|
+
//#endregion
|
|
759
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/select.js
|
|
760
|
+
function select_default$1(e) {
|
|
761
|
+
return typeof e == "string" ? new Selection$1([[document.querySelector(e)]], [document.documentElement]) : new Selection$1([[e]], o);
|
|
762
|
+
}
|
|
763
|
+
e(select_default$1, "default");
|
|
764
|
+
//#endregion
|
|
765
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/sourceEvent.js
|
|
766
|
+
function sourceEvent_default(e) {
|
|
767
|
+
let t;
|
|
768
|
+
for (; t = e.sourceEvent;) e = t;
|
|
769
|
+
return e;
|
|
770
|
+
}
|
|
771
|
+
e(sourceEvent_default, "default");
|
|
772
|
+
//#endregion
|
|
773
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/pointer.js
|
|
774
|
+
function pointer_default(e, t) {
|
|
775
|
+
if (e = sourceEvent_default(e), t === void 0 && (t = e.currentTarget), t) {
|
|
776
|
+
var n = t.ownerSVGElement || t;
|
|
777
|
+
if (n.createSVGPoint) {
|
|
778
|
+
var r = n.createSVGPoint();
|
|
779
|
+
return r.x = e.clientX, r.y = e.clientY, r = r.matrixTransform(t.getScreenCTM().inverse()), [r.x, r.y];
|
|
780
|
+
}
|
|
781
|
+
if (t.getBoundingClientRect) {
|
|
782
|
+
var a = t.getBoundingClientRect();
|
|
783
|
+
return [e.clientX - a.left - t.clientLeft, e.clientY - a.top - t.clientTop];
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
return [e.pageX, e.pageY];
|
|
787
|
+
}
|
|
788
|
+
e(pointer_default, "default");
|
|
789
|
+
//#endregion
|
|
790
|
+
//#region ../../node_modules/.pnpm/d3-drag@3.0.0/node_modules/d3-drag/src/noevent.js
|
|
791
|
+
var s = { passive: !1 }, c = {
|
|
792
|
+
capture: !0,
|
|
793
|
+
passive: !1
|
|
794
|
+
};
|
|
795
|
+
function nopropagation$1(e) {
|
|
796
|
+
e.stopImmediatePropagation();
|
|
797
|
+
}
|
|
798
|
+
e(nopropagation$1, "nopropagation"), e(noevent_default$1, "default");
|
|
799
|
+
function noevent_default$1(e) {
|
|
800
|
+
e.preventDefault(), e.stopImmediatePropagation();
|
|
801
|
+
}
|
|
802
|
+
//#endregion
|
|
803
|
+
//#region ../../node_modules/.pnpm/d3-drag@3.0.0/node_modules/d3-drag/src/nodrag.js
|
|
804
|
+
function nodrag_default(e) {
|
|
805
|
+
var t = e.document.documentElement, n = select_default$1(e).on("dragstart.drag", noevent_default$1, c);
|
|
806
|
+
"onselectstart" in t ? n.on("selectstart.drag", noevent_default$1, c) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
|
|
807
|
+
}
|
|
808
|
+
e(nodrag_default, "default");
|
|
809
|
+
function yesdrag(e, t) {
|
|
810
|
+
var n = e.document.documentElement, r = select_default$1(e).on("dragstart.drag", null);
|
|
811
|
+
t && (r.on("click.drag", noevent_default$1, c), setTimeout(function() {
|
|
812
|
+
r.on("click.drag", null);
|
|
813
|
+
}, 0)), "onselectstart" in n ? r.on("selectstart.drag", null) : (n.style.MozUserSelect = n.__noselect, delete n.__noselect);
|
|
814
|
+
}
|
|
815
|
+
//#endregion
|
|
816
|
+
//#region ../../node_modules/.pnpm/d3-drag@3.0.0/node_modules/d3-drag/src/constant.js
|
|
817
|
+
var l = /* @__PURE__ */ e((e) => () => e, "default");
|
|
818
|
+
//#endregion
|
|
819
|
+
//#region ../../node_modules/.pnpm/d3-drag@3.0.0/node_modules/d3-drag/src/event.js
|
|
820
|
+
function DragEvent(e, { sourceEvent: t, subject: n, target: r, identifier: a, active: o, x: s, y: c, dx: l, dy: u, dispatch: d }) {
|
|
821
|
+
Object.defineProperties(this, {
|
|
822
|
+
type: {
|
|
823
|
+
value: e,
|
|
824
|
+
enumerable: !0,
|
|
825
|
+
configurable: !0
|
|
826
|
+
},
|
|
827
|
+
sourceEvent: {
|
|
828
|
+
value: t,
|
|
829
|
+
enumerable: !0,
|
|
830
|
+
configurable: !0
|
|
831
|
+
},
|
|
832
|
+
subject: {
|
|
833
|
+
value: n,
|
|
834
|
+
enumerable: !0,
|
|
835
|
+
configurable: !0
|
|
836
|
+
},
|
|
837
|
+
target: {
|
|
838
|
+
value: r,
|
|
839
|
+
enumerable: !0,
|
|
840
|
+
configurable: !0
|
|
841
|
+
},
|
|
842
|
+
identifier: {
|
|
843
|
+
value: a,
|
|
844
|
+
enumerable: !0,
|
|
845
|
+
configurable: !0
|
|
846
|
+
},
|
|
847
|
+
active: {
|
|
848
|
+
value: o,
|
|
849
|
+
enumerable: !0,
|
|
850
|
+
configurable: !0
|
|
851
|
+
},
|
|
852
|
+
x: {
|
|
853
|
+
value: s,
|
|
854
|
+
enumerable: !0,
|
|
855
|
+
configurable: !0
|
|
856
|
+
},
|
|
857
|
+
y: {
|
|
858
|
+
value: c,
|
|
859
|
+
enumerable: !0,
|
|
860
|
+
configurable: !0
|
|
861
|
+
},
|
|
862
|
+
dx: {
|
|
863
|
+
value: l,
|
|
864
|
+
enumerable: !0,
|
|
865
|
+
configurable: !0
|
|
866
|
+
},
|
|
867
|
+
dy: {
|
|
868
|
+
value: u,
|
|
869
|
+
enumerable: !0,
|
|
870
|
+
configurable: !0
|
|
871
|
+
},
|
|
872
|
+
_: { value: d }
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
DragEvent.prototype.on = function() {
|
|
876
|
+
var e = this._.on.apply(this._, arguments);
|
|
877
|
+
return e === this._ ? this : e;
|
|
878
|
+
};
|
|
879
|
+
//#endregion
|
|
880
|
+
//#region ../../node_modules/.pnpm/d3-drag@3.0.0/node_modules/d3-drag/src/drag.js
|
|
881
|
+
function defaultFilter$1(e) {
|
|
882
|
+
return !e.ctrlKey && !e.button;
|
|
883
|
+
}
|
|
884
|
+
e(defaultFilter$1, "defaultFilter");
|
|
885
|
+
function defaultContainer() {
|
|
886
|
+
return this.parentNode;
|
|
887
|
+
}
|
|
888
|
+
function defaultSubject(e, t) {
|
|
889
|
+
return t ?? {
|
|
890
|
+
x: e.x,
|
|
891
|
+
y: e.y
|
|
892
|
+
};
|
|
893
|
+
}
|
|
894
|
+
function defaultTouchable$1() {
|
|
895
|
+
return navigator.maxTouchPoints || "ontouchstart" in this;
|
|
896
|
+
}
|
|
897
|
+
e(drag_default, "default"), e(defaultTouchable$1, "defaultTouchable");
|
|
898
|
+
function drag_default() {
|
|
899
|
+
var e = defaultFilter$1, t = defaultContainer, n = defaultSubject, r = defaultTouchable$1, a = {}, o = dispatch("start", "drag", "end"), u = 0, d, f, p, m, h = 0;
|
|
900
|
+
function drag(e) {
|
|
901
|
+
e.on("mousedown.drag", mousedowned).filter(r).on("touchstart.drag", touchstarted).on("touchmove.drag", touchmoved, s).on("touchend.drag touchcancel.drag", touchended).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
902
|
+
}
|
|
903
|
+
function mousedowned(n, r) {
|
|
904
|
+
if (!(m || !e.call(this, n, r))) {
|
|
905
|
+
var a = beforestart(this, t.call(this, n, r), n, r, "mouse");
|
|
906
|
+
a && (select_default$1(n.view).on("mousemove.drag", mousemoved, c).on("mouseup.drag", mouseupped, c), nodrag_default(n.view), nopropagation$1(n), p = !1, d = n.clientX, f = n.clientY, a("start", n));
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
function mousemoved(e) {
|
|
910
|
+
if (noevent_default$1(e), !p) {
|
|
911
|
+
var t = e.clientX - d, n = e.clientY - f;
|
|
912
|
+
p = t * t + n * n > h;
|
|
913
|
+
}
|
|
914
|
+
a.mouse("drag", e);
|
|
915
|
+
}
|
|
916
|
+
function mouseupped(e) {
|
|
917
|
+
select_default$1(e.view).on("mousemove.drag mouseup.drag", null), yesdrag(e.view, p), noevent_default$1(e), a.mouse("end", e);
|
|
918
|
+
}
|
|
919
|
+
function touchstarted(n, r) {
|
|
920
|
+
if (e.call(this, n, r)) {
|
|
921
|
+
var a = n.changedTouches, o = t.call(this, n, r), s = a.length, c, l;
|
|
922
|
+
for (c = 0; c < s; ++c) (l = beforestart(this, o, n, r, a[c].identifier, a[c])) && (nopropagation$1(n), l("start", n, a[c]));
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
function touchmoved(e) {
|
|
926
|
+
var t = e.changedTouches, n = t.length, r, o;
|
|
927
|
+
for (r = 0; r < n; ++r) (o = a[t[r].identifier]) && (noevent_default$1(e), o("drag", e, t[r]));
|
|
928
|
+
}
|
|
929
|
+
function touchended(e) {
|
|
930
|
+
var t = e.changedTouches, n = t.length, r, o;
|
|
931
|
+
for (m && clearTimeout(m), m = setTimeout(function() {
|
|
932
|
+
m = null;
|
|
933
|
+
}, 500), r = 0; r < n; ++r) (o = a[t[r].identifier]) && (nopropagation$1(e), o("end", e, t[r]));
|
|
934
|
+
}
|
|
935
|
+
function beforestart(e, t, r, s, c, l) {
|
|
936
|
+
var d = o.copy(), f = pointer_default(l || r, t), p, m, h;
|
|
937
|
+
if ((h = n.call(e, new DragEvent("beforestart", {
|
|
938
|
+
sourceEvent: r,
|
|
939
|
+
target: drag,
|
|
940
|
+
identifier: c,
|
|
941
|
+
active: u,
|
|
942
|
+
x: f[0],
|
|
943
|
+
y: f[1],
|
|
944
|
+
dx: 0,
|
|
945
|
+
dy: 0,
|
|
946
|
+
dispatch: d
|
|
947
|
+
}), s)) != null) return p = h.x - f[0] || 0, m = h.y - f[1] || 0, function gesture(n, r, o) {
|
|
948
|
+
var l = f, g;
|
|
949
|
+
switch (n) {
|
|
950
|
+
case "start":
|
|
951
|
+
a[c] = gesture, g = u++;
|
|
952
|
+
break;
|
|
953
|
+
case "end": delete a[c], --u;
|
|
954
|
+
case "drag":
|
|
955
|
+
f = pointer_default(o || r, t), g = u;
|
|
956
|
+
break;
|
|
957
|
+
}
|
|
958
|
+
d.call(n, e, new DragEvent(n, {
|
|
959
|
+
sourceEvent: r,
|
|
960
|
+
subject: h,
|
|
961
|
+
target: drag,
|
|
962
|
+
identifier: c,
|
|
963
|
+
active: g,
|
|
964
|
+
x: f[0] + p,
|
|
965
|
+
y: f[1] + m,
|
|
966
|
+
dx: f[0] - l[0],
|
|
967
|
+
dy: f[1] - l[1],
|
|
968
|
+
dispatch: d
|
|
969
|
+
}), s);
|
|
970
|
+
};
|
|
971
|
+
}
|
|
972
|
+
return drag.filter = function(t) {
|
|
973
|
+
return arguments.length ? (e = typeof t == "function" ? t : l(!!t), drag) : e;
|
|
974
|
+
}, drag.container = function(e) {
|
|
975
|
+
return arguments.length ? (t = typeof e == "function" ? e : l(e), drag) : t;
|
|
976
|
+
}, drag.subject = function(e) {
|
|
977
|
+
return arguments.length ? (n = typeof e == "function" ? e : l(e), drag) : n;
|
|
978
|
+
}, drag.touchable = function(e) {
|
|
979
|
+
return arguments.length ? (r = typeof e == "function" ? e : l(!!e), drag) : r;
|
|
980
|
+
}, drag.on = function() {
|
|
981
|
+
var e = o.on.apply(o, arguments);
|
|
982
|
+
return e === o ? drag : e;
|
|
983
|
+
}, drag.clickDistance = function(e) {
|
|
984
|
+
return arguments.length ? (h = (e = +e) * e, drag) : Math.sqrt(h);
|
|
985
|
+
}, drag;
|
|
986
|
+
}
|
|
987
|
+
//#endregion
|
|
988
|
+
//#region ../../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.js
|
|
989
|
+
function define_default(e, t, n) {
|
|
990
|
+
e.prototype = t.prototype = n, n.constructor = e;
|
|
991
|
+
}
|
|
992
|
+
e(define_default, "default");
|
|
993
|
+
function extend(e, t) {
|
|
994
|
+
var n = Object.create(e.prototype);
|
|
995
|
+
for (var r in t) n[r] = t[r];
|
|
996
|
+
return n;
|
|
997
|
+
}
|
|
998
|
+
//#endregion
|
|
999
|
+
//#region ../../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js
|
|
1000
|
+
function Color() {}
|
|
1001
|
+
var u = .7, d = 1 / u, f = "\\s*([+-]?\\d+)\\s*", p = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", m = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", h = /^#([0-9a-f]{3,8})$/, g = RegExp(`^rgb\\(${f},${f},${f}\\)$`), _ = RegExp(`^rgb\\(${m},${m},${m}\\)$`), v = RegExp(`^rgba\\(${f},${f},${f},${p}\\)$`), b = RegExp(`^rgba\\(${m},${m},${m},${p}\\)$`), S = RegExp(`^hsl\\(${p},${m},${m}\\)$`), C = RegExp(`^hsla\\(${p},${m},${m},${p}\\)$`), w = {
|
|
1002
|
+
aliceblue: 15792383,
|
|
1003
|
+
antiquewhite: 16444375,
|
|
1004
|
+
aqua: 65535,
|
|
1005
|
+
aquamarine: 8388564,
|
|
1006
|
+
azure: 15794175,
|
|
1007
|
+
beige: 16119260,
|
|
1008
|
+
bisque: 16770244,
|
|
1009
|
+
black: 0,
|
|
1010
|
+
blanchedalmond: 16772045,
|
|
1011
|
+
blue: 255,
|
|
1012
|
+
blueviolet: 9055202,
|
|
1013
|
+
brown: 10824234,
|
|
1014
|
+
burlywood: 14596231,
|
|
1015
|
+
cadetblue: 6266528,
|
|
1016
|
+
chartreuse: 8388352,
|
|
1017
|
+
chocolate: 13789470,
|
|
1018
|
+
coral: 16744272,
|
|
1019
|
+
cornflowerblue: 6591981,
|
|
1020
|
+
cornsilk: 16775388,
|
|
1021
|
+
crimson: 14423100,
|
|
1022
|
+
cyan: 65535,
|
|
1023
|
+
darkblue: 139,
|
|
1024
|
+
darkcyan: 35723,
|
|
1025
|
+
darkgoldenrod: 12092939,
|
|
1026
|
+
darkgray: 11119017,
|
|
1027
|
+
darkgreen: 25600,
|
|
1028
|
+
darkgrey: 11119017,
|
|
1029
|
+
darkkhaki: 12433259,
|
|
1030
|
+
darkmagenta: 9109643,
|
|
1031
|
+
darkolivegreen: 5597999,
|
|
1032
|
+
darkorange: 16747520,
|
|
1033
|
+
darkorchid: 10040012,
|
|
1034
|
+
darkred: 9109504,
|
|
1035
|
+
darksalmon: 15308410,
|
|
1036
|
+
darkseagreen: 9419919,
|
|
1037
|
+
darkslateblue: 4734347,
|
|
1038
|
+
darkslategray: 3100495,
|
|
1039
|
+
darkslategrey: 3100495,
|
|
1040
|
+
darkturquoise: 52945,
|
|
1041
|
+
darkviolet: 9699539,
|
|
1042
|
+
deeppink: 16716947,
|
|
1043
|
+
deepskyblue: 49151,
|
|
1044
|
+
dimgray: 6908265,
|
|
1045
|
+
dimgrey: 6908265,
|
|
1046
|
+
dodgerblue: 2003199,
|
|
1047
|
+
firebrick: 11674146,
|
|
1048
|
+
floralwhite: 16775920,
|
|
1049
|
+
forestgreen: 2263842,
|
|
1050
|
+
fuchsia: 16711935,
|
|
1051
|
+
gainsboro: 14474460,
|
|
1052
|
+
ghostwhite: 16316671,
|
|
1053
|
+
gold: 16766720,
|
|
1054
|
+
goldenrod: 14329120,
|
|
1055
|
+
gray: 8421504,
|
|
1056
|
+
green: 32768,
|
|
1057
|
+
greenyellow: 11403055,
|
|
1058
|
+
grey: 8421504,
|
|
1059
|
+
honeydew: 15794160,
|
|
1060
|
+
hotpink: 16738740,
|
|
1061
|
+
indianred: 13458524,
|
|
1062
|
+
indigo: 4915330,
|
|
1063
|
+
ivory: 16777200,
|
|
1064
|
+
khaki: 15787660,
|
|
1065
|
+
lavender: 15132410,
|
|
1066
|
+
lavenderblush: 16773365,
|
|
1067
|
+
lawngreen: 8190976,
|
|
1068
|
+
lemonchiffon: 16775885,
|
|
1069
|
+
lightblue: 11393254,
|
|
1070
|
+
lightcoral: 15761536,
|
|
1071
|
+
lightcyan: 14745599,
|
|
1072
|
+
lightgoldenrodyellow: 16448210,
|
|
1073
|
+
lightgray: 13882323,
|
|
1074
|
+
lightgreen: 9498256,
|
|
1075
|
+
lightgrey: 13882323,
|
|
1076
|
+
lightpink: 16758465,
|
|
1077
|
+
lightsalmon: 16752762,
|
|
1078
|
+
lightseagreen: 2142890,
|
|
1079
|
+
lightskyblue: 8900346,
|
|
1080
|
+
lightslategray: 7833753,
|
|
1081
|
+
lightslategrey: 7833753,
|
|
1082
|
+
lightsteelblue: 11584734,
|
|
1083
|
+
lightyellow: 16777184,
|
|
1084
|
+
lime: 65280,
|
|
1085
|
+
limegreen: 3329330,
|
|
1086
|
+
linen: 16445670,
|
|
1087
|
+
magenta: 16711935,
|
|
1088
|
+
maroon: 8388608,
|
|
1089
|
+
mediumaquamarine: 6737322,
|
|
1090
|
+
mediumblue: 205,
|
|
1091
|
+
mediumorchid: 12211667,
|
|
1092
|
+
mediumpurple: 9662683,
|
|
1093
|
+
mediumseagreen: 3978097,
|
|
1094
|
+
mediumslateblue: 8087790,
|
|
1095
|
+
mediumspringgreen: 64154,
|
|
1096
|
+
mediumturquoise: 4772300,
|
|
1097
|
+
mediumvioletred: 13047173,
|
|
1098
|
+
midnightblue: 1644912,
|
|
1099
|
+
mintcream: 16121850,
|
|
1100
|
+
mistyrose: 16770273,
|
|
1101
|
+
moccasin: 16770229,
|
|
1102
|
+
navajowhite: 16768685,
|
|
1103
|
+
navy: 128,
|
|
1104
|
+
oldlace: 16643558,
|
|
1105
|
+
olive: 8421376,
|
|
1106
|
+
olivedrab: 7048739,
|
|
1107
|
+
orange: 16753920,
|
|
1108
|
+
orangered: 16729344,
|
|
1109
|
+
orchid: 14315734,
|
|
1110
|
+
palegoldenrod: 15657130,
|
|
1111
|
+
palegreen: 10025880,
|
|
1112
|
+
paleturquoise: 11529966,
|
|
1113
|
+
palevioletred: 14381203,
|
|
1114
|
+
papayawhip: 16773077,
|
|
1115
|
+
peachpuff: 16767673,
|
|
1116
|
+
peru: 13468991,
|
|
1117
|
+
pink: 16761035,
|
|
1118
|
+
plum: 14524637,
|
|
1119
|
+
powderblue: 11591910,
|
|
1120
|
+
purple: 8388736,
|
|
1121
|
+
rebeccapurple: 6697881,
|
|
1122
|
+
red: 16711680,
|
|
1123
|
+
rosybrown: 12357519,
|
|
1124
|
+
royalblue: 4286945,
|
|
1125
|
+
saddlebrown: 9127187,
|
|
1126
|
+
salmon: 16416882,
|
|
1127
|
+
sandybrown: 16032864,
|
|
1128
|
+
seagreen: 3050327,
|
|
1129
|
+
seashell: 16774638,
|
|
1130
|
+
sienna: 10506797,
|
|
1131
|
+
silver: 12632256,
|
|
1132
|
+
skyblue: 8900331,
|
|
1133
|
+
slateblue: 6970061,
|
|
1134
|
+
slategray: 7372944,
|
|
1135
|
+
slategrey: 7372944,
|
|
1136
|
+
snow: 16775930,
|
|
1137
|
+
springgreen: 65407,
|
|
1138
|
+
steelblue: 4620980,
|
|
1139
|
+
tan: 13808780,
|
|
1140
|
+
teal: 32896,
|
|
1141
|
+
thistle: 14204888,
|
|
1142
|
+
tomato: 16737095,
|
|
1143
|
+
turquoise: 4251856,
|
|
1144
|
+
violet: 15631086,
|
|
1145
|
+
wheat: 16113331,
|
|
1146
|
+
white: 16777215,
|
|
1147
|
+
whitesmoke: 16119285,
|
|
1148
|
+
yellow: 16776960,
|
|
1149
|
+
yellowgreen: 10145074
|
|
1150
|
+
};
|
|
1151
|
+
define_default(Color, color, {
|
|
1152
|
+
copy(e) {
|
|
1153
|
+
return Object.assign(new this.constructor(), this, e);
|
|
1154
|
+
},
|
|
1155
|
+
displayable() {
|
|
1156
|
+
return this.rgb().displayable();
|
|
1157
|
+
},
|
|
1158
|
+
hex: color_formatHex,
|
|
1159
|
+
formatHex: color_formatHex,
|
|
1160
|
+
formatHex8: color_formatHex8,
|
|
1161
|
+
formatHsl: color_formatHsl,
|
|
1162
|
+
formatRgb: color_formatRgb,
|
|
1163
|
+
toString: color_formatRgb
|
|
1164
|
+
});
|
|
1165
|
+
function color_formatHex() {
|
|
1166
|
+
return this.rgb().formatHex();
|
|
1167
|
+
}
|
|
1168
|
+
function color_formatHex8() {
|
|
1169
|
+
return this.rgb().formatHex8();
|
|
1170
|
+
}
|
|
1171
|
+
function color_formatHsl() {
|
|
1172
|
+
return hslConvert(this).formatHsl();
|
|
1173
|
+
}
|
|
1174
|
+
function color_formatRgb() {
|
|
1175
|
+
return this.rgb().formatRgb();
|
|
1176
|
+
}
|
|
1177
|
+
function color(e) {
|
|
1178
|
+
var t, n;
|
|
1179
|
+
return e = (e + "").trim().toLowerCase(), (t = h.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? rgbn(t) : n === 3 ? new Rgb(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? rgba(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? rgba(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = g.exec(e)) ? new Rgb(t[1], t[2], t[3], 1) : (t = _.exec(e)) ? new Rgb(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = v.exec(e)) ? rgba(t[1], t[2], t[3], t[4]) : (t = b.exec(e)) ? rgba(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = S.exec(e)) ? hsla(t[1], t[2] / 100, t[3] / 100, 1) : (t = C.exec(e)) ? hsla(t[1], t[2] / 100, t[3] / 100, t[4]) : w.hasOwnProperty(e) ? rgbn(w[e]) : e === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null;
|
|
1180
|
+
}
|
|
1181
|
+
function rgbn(e) {
|
|
1182
|
+
return new Rgb(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
1183
|
+
}
|
|
1184
|
+
function rgba(e, t, n, r) {
|
|
1185
|
+
return r <= 0 && (e = t = n = NaN), new Rgb(e, t, n, r);
|
|
1186
|
+
}
|
|
1187
|
+
function rgbConvert(e) {
|
|
1188
|
+
return e instanceof Color || (e = color(e)), e ? (e = e.rgb(), new Rgb(e.r, e.g, e.b, e.opacity)) : new Rgb();
|
|
1189
|
+
}
|
|
1190
|
+
function rgb(e, t, n, r) {
|
|
1191
|
+
return arguments.length === 1 ? rgbConvert(e) : new Rgb(e, t, n, r ?? 1);
|
|
1192
|
+
}
|
|
1193
|
+
function Rgb(e, t, n, r) {
|
|
1194
|
+
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
|
1195
|
+
}
|
|
1196
|
+
define_default(Rgb, rgb, extend(Color, {
|
|
1197
|
+
brighter(e) {
|
|
1198
|
+
return e = e == null ? d : d ** +e, new Rgb(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
1199
|
+
},
|
|
1200
|
+
darker(e) {
|
|
1201
|
+
return e = e == null ? u : u ** +e, new Rgb(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
1202
|
+
},
|
|
1203
|
+
rgb() {
|
|
1204
|
+
return this;
|
|
1205
|
+
},
|
|
1206
|
+
clamp() {
|
|
1207
|
+
return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
|
|
1208
|
+
},
|
|
1209
|
+
displayable() {
|
|
1210
|
+
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
1211
|
+
},
|
|
1212
|
+
hex: rgb_formatHex,
|
|
1213
|
+
formatHex: rgb_formatHex,
|
|
1214
|
+
formatHex8: rgb_formatHex8,
|
|
1215
|
+
formatRgb: rgb_formatRgb,
|
|
1216
|
+
toString: rgb_formatRgb
|
|
1217
|
+
}));
|
|
1218
|
+
function rgb_formatHex() {
|
|
1219
|
+
return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`;
|
|
1220
|
+
}
|
|
1221
|
+
function rgb_formatHex8() {
|
|
1222
|
+
return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
1223
|
+
}
|
|
1224
|
+
function rgb_formatRgb() {
|
|
1225
|
+
let e = clampa(this.opacity);
|
|
1226
|
+
return `${e === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
1227
|
+
}
|
|
1228
|
+
function clampa(e) {
|
|
1229
|
+
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
|
|
1230
|
+
}
|
|
1231
|
+
function clampi(e) {
|
|
1232
|
+
return Math.max(0, Math.min(255, Math.round(e) || 0));
|
|
1233
|
+
}
|
|
1234
|
+
function hex(e) {
|
|
1235
|
+
return e = clampi(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
1236
|
+
}
|
|
1237
|
+
function hsla(e, t, n, r) {
|
|
1238
|
+
return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new Hsl(e, t, n, r);
|
|
1239
|
+
}
|
|
1240
|
+
function hslConvert(e) {
|
|
1241
|
+
if (e instanceof Hsl) return new Hsl(e.h, e.s, e.l, e.opacity);
|
|
1242
|
+
if (e instanceof Color || (e = color(e)), !e) return new Hsl();
|
|
1243
|
+
if (e instanceof Hsl) return e;
|
|
1244
|
+
e = e.rgb();
|
|
1245
|
+
var t = e.r / 255, n = e.g / 255, r = e.b / 255, a = Math.min(t, n, r), o = Math.max(t, n, r), s = NaN, c = o - a, l = (o + a) / 2;
|
|
1246
|
+
return c ? (s = t === o ? (n - r) / c + (n < r) * 6 : n === o ? (r - t) / c + 2 : (t - n) / c + 4, c /= l < .5 ? o + a : 2 - o - a, s *= 60) : c = l > 0 && l < 1 ? 0 : s, new Hsl(s, c, l, e.opacity);
|
|
1247
|
+
}
|
|
1248
|
+
function hsl(e, t, n, r) {
|
|
1249
|
+
return arguments.length === 1 ? hslConvert(e) : new Hsl(e, t, n, r ?? 1);
|
|
1250
|
+
}
|
|
1251
|
+
function Hsl(e, t, n, r) {
|
|
1252
|
+
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
|
|
1253
|
+
}
|
|
1254
|
+
define_default(Hsl, hsl, extend(Color, {
|
|
1255
|
+
brighter(e) {
|
|
1256
|
+
return e = e == null ? d : d ** +e, new Hsl(this.h, this.s, this.l * e, this.opacity);
|
|
1257
|
+
},
|
|
1258
|
+
darker(e) {
|
|
1259
|
+
return e = e == null ? u : u ** +e, new Hsl(this.h, this.s, this.l * e, this.opacity);
|
|
1260
|
+
},
|
|
1261
|
+
rgb() {
|
|
1262
|
+
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, a = 2 * n - r;
|
|
1263
|
+
return new Rgb(hsl2rgb(e >= 240 ? e - 240 : e + 120, a, r), hsl2rgb(e, a, r), hsl2rgb(e < 120 ? e + 240 : e - 120, a, r), this.opacity);
|
|
1264
|
+
},
|
|
1265
|
+
clamp() {
|
|
1266
|
+
return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
|
|
1267
|
+
},
|
|
1268
|
+
displayable() {
|
|
1269
|
+
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
1270
|
+
},
|
|
1271
|
+
formatHsl() {
|
|
1272
|
+
let e = clampa(this.opacity);
|
|
1273
|
+
return `${e === 1 ? "hsl(" : "hsla("}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
|
|
1274
|
+
}
|
|
1275
|
+
}));
|
|
1276
|
+
function clamph(e) {
|
|
1277
|
+
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
|
|
1278
|
+
}
|
|
1279
|
+
function clampt(e) {
|
|
1280
|
+
return Math.max(0, Math.min(1, e || 0));
|
|
1281
|
+
}
|
|
1282
|
+
function hsl2rgb(e, t, n) {
|
|
1283
|
+
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
|
|
1284
|
+
}
|
|
1285
|
+
//#endregion
|
|
1286
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/basis.js
|
|
1287
|
+
function basis(e, t, n, r, a) {
|
|
1288
|
+
var o = e * e, s = o * e;
|
|
1289
|
+
return ((1 - 3 * e + 3 * o - s) * t + (4 - 6 * o + 3 * s) * n + (1 + 3 * e + 3 * o - 3 * s) * r + s * a) / 6;
|
|
1290
|
+
}
|
|
1291
|
+
function basis_default(e) {
|
|
1292
|
+
var t = e.length - 1;
|
|
1293
|
+
return function(n) {
|
|
1294
|
+
var r = n <= 0 ? n = 0 : n >= 1 ? (n = 1, t - 1) : Math.floor(n * t), a = e[r], o = e[r + 1], s = r > 0 ? e[r - 1] : 2 * a - o, c = r < t - 1 ? e[r + 2] : 2 * o - a;
|
|
1295
|
+
return basis((n - r / t) * t, s, a, o, c);
|
|
1296
|
+
};
|
|
1297
|
+
}
|
|
1298
|
+
e(basis_default, "default");
|
|
1299
|
+
//#endregion
|
|
1300
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/basisClosed.js
|
|
1301
|
+
function basisClosed_default(e) {
|
|
1302
|
+
var t = e.length;
|
|
1303
|
+
return function(n) {
|
|
1304
|
+
var r = Math.floor(((n %= 1) < 0 ? ++n : n) * t), a = e[(r + t - 1) % t], o = e[r % t], s = e[(r + 1) % t], c = e[(r + 2) % t];
|
|
1305
|
+
return basis((n - r / t) * t, a, o, s, c);
|
|
1306
|
+
};
|
|
1307
|
+
}
|
|
1308
|
+
e(basisClosed_default, "default");
|
|
1309
|
+
//#endregion
|
|
1310
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.js
|
|
1311
|
+
var T = /* @__PURE__ */ e((e) => () => e, "default");
|
|
1312
|
+
//#endregion
|
|
1313
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.js
|
|
1314
|
+
function linear(e, t) {
|
|
1315
|
+
return function(n) {
|
|
1316
|
+
return e + n * t;
|
|
1317
|
+
};
|
|
1318
|
+
}
|
|
1319
|
+
function exponential(e, t, n) {
|
|
1320
|
+
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
|
|
1321
|
+
return (e + r * t) ** +n;
|
|
1322
|
+
};
|
|
1323
|
+
}
|
|
1324
|
+
function gamma(e) {
|
|
1325
|
+
return (e = +e) == 1 ? nogamma : function(t, n) {
|
|
1326
|
+
return n - t ? exponential(t, n, e) : T(isNaN(t) ? n : t);
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
function nogamma(e, t) {
|
|
1330
|
+
var n = t - e;
|
|
1331
|
+
return n ? linear(e, n) : T(isNaN(e) ? t : e);
|
|
1332
|
+
}
|
|
1333
|
+
//#endregion
|
|
1334
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js
|
|
1335
|
+
var E = (function rgbGamma(t) {
|
|
1336
|
+
var n = gamma(t);
|
|
1337
|
+
function rgb$1(e, t) {
|
|
1338
|
+
var r = n((e = rgb(e)).r, (t = rgb(t)).r), a = n(e.g, t.g), o = n(e.b, t.b), s = nogamma(e.opacity, t.opacity);
|
|
1339
|
+
return function(t) {
|
|
1340
|
+
return e.r = r(t), e.g = a(t), e.b = o(t), e.opacity = s(t), e + "";
|
|
1341
|
+
};
|
|
1342
|
+
}
|
|
1343
|
+
return e(rgb$1, "rgb"), rgb$1.gamma = rgbGamma, rgb$1;
|
|
1344
|
+
})(1);
|
|
1345
|
+
//#endregion
|
|
1346
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/numberArray.js
|
|
1347
|
+
function numberArray_default(e, t) {
|
|
1348
|
+
t ||= [];
|
|
1349
|
+
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), a;
|
|
1350
|
+
return function(o) {
|
|
1351
|
+
for (a = 0; a < n; ++a) r[a] = e[a] * (1 - o) + t[a] * o;
|
|
1352
|
+
return r;
|
|
1353
|
+
};
|
|
1354
|
+
}
|
|
1355
|
+
e(numberArray_default, "default");
|
|
1356
|
+
function isNumberArray(e) {
|
|
1357
|
+
return ArrayBuffer.isView(e) && !(e instanceof DataView);
|
|
1358
|
+
}
|
|
1359
|
+
//#endregion
|
|
1360
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.js
|
|
1361
|
+
function genericArray(e, t) {
|
|
1362
|
+
var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, a = Array(r), o = Array(n), s;
|
|
1363
|
+
for (s = 0; s < r; ++s) a[s] = value_default(e[s], t[s]);
|
|
1364
|
+
for (; s < n; ++s) o[s] = t[s];
|
|
1365
|
+
return function(e) {
|
|
1366
|
+
for (s = 0; s < r; ++s) o[s] = a[s](e);
|
|
1367
|
+
return o;
|
|
1368
|
+
};
|
|
1369
|
+
}
|
|
1370
|
+
//#endregion
|
|
1371
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/date.js
|
|
1372
|
+
function date_default(e, t) {
|
|
1373
|
+
var n = /* @__PURE__ */ new Date();
|
|
1374
|
+
return e = +e, t = +t, function(r) {
|
|
1375
|
+
return n.setTime(e * (1 - r) + t * r), n;
|
|
1376
|
+
};
|
|
1377
|
+
}
|
|
1378
|
+
e(date_default, "default");
|
|
1379
|
+
//#endregion
|
|
1380
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.js
|
|
1381
|
+
function number_default(e, t) {
|
|
1382
|
+
return e = +e, t = +t, function(n) {
|
|
1383
|
+
return e * (1 - n) + t * n;
|
|
1384
|
+
};
|
|
1385
|
+
}
|
|
1386
|
+
e(number_default, "default");
|
|
1387
|
+
//#endregion
|
|
1388
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/object.js
|
|
1389
|
+
function object_default(e, t) {
|
|
1390
|
+
var n = {}, r = {}, a;
|
|
1391
|
+
for (a in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) a in e ? n[a] = value_default(e[a], t[a]) : r[a] = t[a];
|
|
1392
|
+
return function(e) {
|
|
1393
|
+
for (a in n) r[a] = n[a](e);
|
|
1394
|
+
return r;
|
|
1395
|
+
};
|
|
1396
|
+
}
|
|
1397
|
+
e(object_default, "default");
|
|
1398
|
+
//#endregion
|
|
1399
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.js
|
|
1400
|
+
var D = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, O = new RegExp(D.source, "g");
|
|
1401
|
+
function zero(e) {
|
|
1402
|
+
return function() {
|
|
1403
|
+
return e;
|
|
1404
|
+
};
|
|
1405
|
+
}
|
|
1406
|
+
function one(e) {
|
|
1407
|
+
return function(t) {
|
|
1408
|
+
return e(t) + "";
|
|
1409
|
+
};
|
|
1410
|
+
}
|
|
1411
|
+
function string_default(e, t) {
|
|
1412
|
+
var n = D.lastIndex = O.lastIndex = 0, r, a, o, s = -1, c = [], l = [];
|
|
1413
|
+
for (e += "", t += ""; (r = D.exec(e)) && (a = O.exec(t));) (o = a.index) > n && (o = t.slice(n, o), c[s] ? c[s] += o : c[++s] = o), (r = r[0]) === (a = a[0]) ? c[s] ? c[s] += a : c[++s] = a : (c[++s] = null, l.push({
|
|
1414
|
+
i: s,
|
|
1415
|
+
x: number_default(r, a)
|
|
1416
|
+
})), n = O.lastIndex;
|
|
1417
|
+
return n < t.length && (o = t.slice(n), c[s] ? c[s] += o : c[++s] = o), c.length < 2 ? l[0] ? one(l[0].x) : zero(t) : (t = l.length, function(e) {
|
|
1418
|
+
for (var n = 0, r; n < t; ++n) c[(r = l[n]).i] = r.x(e);
|
|
1419
|
+
return c.join("");
|
|
1420
|
+
});
|
|
1421
|
+
}
|
|
1422
|
+
e(string_default, "default");
|
|
1423
|
+
//#endregion
|
|
1424
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.js
|
|
1425
|
+
function value_default(e, t) {
|
|
1426
|
+
var n = typeof t, r;
|
|
1427
|
+
return t == null || n === "boolean" ? T(t) : (n === "number" ? number_default : n === "string" ? (r = color(t)) ? (t = r, E) : string_default : t instanceof color ? E : t instanceof Date ? date_default : isNumberArray(t) ? numberArray_default : Array.isArray(t) ? genericArray : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? object_default : number_default)(e, t);
|
|
1428
|
+
}
|
|
1429
|
+
e(value_default, "default");
|
|
1430
|
+
//#endregion
|
|
1431
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/decompose.js
|
|
1432
|
+
var k = 180 / Math.PI, A = {
|
|
1433
|
+
translateX: 0,
|
|
1434
|
+
translateY: 0,
|
|
1435
|
+
rotate: 0,
|
|
1436
|
+
skewX: 0,
|
|
1437
|
+
scaleX: 1,
|
|
1438
|
+
scaleY: 1
|
|
1439
|
+
};
|
|
1440
|
+
function decompose_default(e, t, n, r, a, o) {
|
|
1441
|
+
var s, c, l;
|
|
1442
|
+
return (s = Math.sqrt(e * e + t * t)) && (e /= s, t /= s), (l = e * n + t * r) && (n -= e * l, r -= t * l), (c = Math.sqrt(n * n + r * r)) && (n /= c, r /= c, l /= c), e * r < t * n && (e = -e, t = -t, l = -l, s = -s), {
|
|
1443
|
+
translateX: a,
|
|
1444
|
+
translateY: o,
|
|
1445
|
+
rotate: Math.atan2(t, e) * k,
|
|
1446
|
+
skewX: Math.atan(l) * k,
|
|
1447
|
+
scaleX: s,
|
|
1448
|
+
scaleY: c
|
|
1449
|
+
};
|
|
1450
|
+
}
|
|
1451
|
+
e(decompose_default, "default");
|
|
1452
|
+
//#endregion
|
|
1453
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/parse.js
|
|
1454
|
+
var j;
|
|
1455
|
+
function parseCss(e) {
|
|
1456
|
+
let t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
|
|
1457
|
+
return t.isIdentity ? A : decompose_default(t.a, t.b, t.c, t.d, t.e, t.f);
|
|
1458
|
+
}
|
|
1459
|
+
function parseSvg(e) {
|
|
1460
|
+
return e == null || (j ||= document.createElementNS("http://www.w3.org/2000/svg", "g"), j.setAttribute("transform", e), !(e = j.transform.baseVal.consolidate())) ? A : (e = e.matrix, decompose_default(e.a, e.b, e.c, e.d, e.e, e.f));
|
|
1461
|
+
}
|
|
1462
|
+
//#endregion
|
|
1463
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/index.js
|
|
1464
|
+
function interpolateTransform(e, t, n, r) {
|
|
1465
|
+
function pop(e) {
|
|
1466
|
+
return e.length ? e.pop() + " " : "";
|
|
1467
|
+
}
|
|
1468
|
+
function translate(e, r, a, o, s, c) {
|
|
1469
|
+
if (e !== a || r !== o) {
|
|
1470
|
+
var l = s.push("translate(", null, t, null, n);
|
|
1471
|
+
c.push({
|
|
1472
|
+
i: l - 4,
|
|
1473
|
+
x: number_default(e, a)
|
|
1474
|
+
}, {
|
|
1475
|
+
i: l - 2,
|
|
1476
|
+
x: number_default(r, o)
|
|
1477
|
+
});
|
|
1478
|
+
} else (a || o) && s.push("translate(" + a + t + o + n);
|
|
1479
|
+
}
|
|
1480
|
+
function rotate(e, t, n, a) {
|
|
1481
|
+
e === t ? t && n.push(pop(n) + "rotate(" + t + r) : (e - t > 180 ? t += 360 : t - e > 180 && (e += 360), a.push({
|
|
1482
|
+
i: n.push(pop(n) + "rotate(", null, r) - 2,
|
|
1483
|
+
x: number_default(e, t)
|
|
1484
|
+
}));
|
|
1485
|
+
}
|
|
1486
|
+
function skewX(e, t, n, a) {
|
|
1487
|
+
e === t ? t && n.push(pop(n) + "skewX(" + t + r) : a.push({
|
|
1488
|
+
i: n.push(pop(n) + "skewX(", null, r) - 2,
|
|
1489
|
+
x: number_default(e, t)
|
|
1490
|
+
});
|
|
1491
|
+
}
|
|
1492
|
+
function scale(e, t, n, r, a, o) {
|
|
1493
|
+
if (e !== n || t !== r) {
|
|
1494
|
+
var s = a.push(pop(a) + "scale(", null, ",", null, ")");
|
|
1495
|
+
o.push({
|
|
1496
|
+
i: s - 4,
|
|
1497
|
+
x: number_default(e, n)
|
|
1498
|
+
}, {
|
|
1499
|
+
i: s - 2,
|
|
1500
|
+
x: number_default(t, r)
|
|
1501
|
+
});
|
|
1502
|
+
} else (n !== 1 || r !== 1) && a.push(pop(a) + "scale(" + n + "," + r + ")");
|
|
1503
|
+
}
|
|
1504
|
+
return function(t, n) {
|
|
1505
|
+
var r = [], a = [];
|
|
1506
|
+
return t = e(t), n = e(n), translate(t.translateX, t.translateY, n.translateX, n.translateY, r, a), rotate(t.rotate, n.rotate, r, a), skewX(t.skewX, n.skewX, r, a), scale(t.scaleX, t.scaleY, n.scaleX, n.scaleY, r, a), t = n = null, function(e) {
|
|
1507
|
+
for (var t = -1, n = a.length, o; ++t < n;) r[(o = a[t]).i] = o.x(e);
|
|
1508
|
+
return r.join("");
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
}
|
|
1512
|
+
var M = interpolateTransform(parseCss, "px, ", "px)", "deg)"), N = interpolateTransform(parseSvg, ", ", ")", ")"), ee = 1e-12;
|
|
1513
|
+
function cosh(e) {
|
|
1514
|
+
return ((e = Math.exp(e)) + 1 / e) / 2;
|
|
1515
|
+
}
|
|
1516
|
+
function sinh(e) {
|
|
1517
|
+
return ((e = Math.exp(e)) - 1 / e) / 2;
|
|
1518
|
+
}
|
|
1519
|
+
function tanh(e) {
|
|
1520
|
+
return ((e = Math.exp(2 * e)) - 1) / (e + 1);
|
|
1521
|
+
}
|
|
1522
|
+
var P = (function zoomRho(e, t, n) {
|
|
1523
|
+
function zoom(r, a) {
|
|
1524
|
+
var o = r[0], s = r[1], c = r[2], l = a[0], u = a[1], d = a[2], f = l - o, p = u - s, m = f * f + p * p, i, h;
|
|
1525
|
+
if (m < ee) h = Math.log(d / c) / e, i = function(t) {
|
|
1526
|
+
return [
|
|
1527
|
+
o + t * f,
|
|
1528
|
+
s + t * p,
|
|
1529
|
+
c * Math.exp(e * t * h)
|
|
1530
|
+
];
|
|
1531
|
+
};
|
|
1532
|
+
else {
|
|
1533
|
+
var g = Math.sqrt(m), _ = (d * d - c * c + n * m) / (2 * c * t * g), v = (d * d - c * c - n * m) / (2 * d * t * g), b = Math.log(Math.sqrt(_ * _ + 1) - _);
|
|
1534
|
+
h = (Math.log(Math.sqrt(v * v + 1) - v) - b) / e, i = function(n) {
|
|
1535
|
+
var r = n * h, a = cosh(b), l = c / (t * g) * (a * tanh(e * r + b) - sinh(b));
|
|
1536
|
+
return [
|
|
1537
|
+
o + l * f,
|
|
1538
|
+
s + l * p,
|
|
1539
|
+
c * a / cosh(e * r + b)
|
|
1540
|
+
];
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
return i.duration = h * 1e3 * e / Math.SQRT2, i;
|
|
1544
|
+
}
|
|
1545
|
+
return zoom.rho = function(e) {
|
|
1546
|
+
var t = Math.max(.001, +e), n = t * t;
|
|
1547
|
+
return zoomRho(t, n, n * n);
|
|
1548
|
+
}, zoom;
|
|
1549
|
+
})(Math.SQRT2, 2, 4), F = 0, I = 0, L = 0, R = 1e3, z, B, V = 0, H = 0, U = 0, W = typeof performance == "object" && performance.now ? performance : Date, G = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
|
|
1550
|
+
setTimeout(e, 17);
|
|
1551
|
+
};
|
|
1552
|
+
function now() {
|
|
1553
|
+
return H ||= (G(clearNow), W.now() + U);
|
|
1554
|
+
}
|
|
1555
|
+
function clearNow() {
|
|
1556
|
+
H = 0;
|
|
1557
|
+
}
|
|
1558
|
+
function Timer() {
|
|
1559
|
+
this._call = this._time = this._next = null;
|
|
1560
|
+
}
|
|
1561
|
+
Timer.prototype = timer.prototype = {
|
|
1562
|
+
constructor: Timer,
|
|
1563
|
+
restart: function(e, t, n) {
|
|
1564
|
+
if (typeof e != "function") throw TypeError("callback is not a function");
|
|
1565
|
+
n = (n == null ? now() : +n) + (t == null ? 0 : +t), !this._next && B !== this && (B ? B._next = this : z = this, B = this), this._call = e, this._time = n, sleep();
|
|
1566
|
+
},
|
|
1567
|
+
stop: function() {
|
|
1568
|
+
this._call && (this._call = null, this._time = Infinity, sleep());
|
|
1569
|
+
}
|
|
1570
|
+
};
|
|
1571
|
+
function timer(e, t, n) {
|
|
1572
|
+
var r = new Timer();
|
|
1573
|
+
return r.restart(e, t, n), r;
|
|
1574
|
+
}
|
|
1575
|
+
function timerFlush() {
|
|
1576
|
+
now(), ++F;
|
|
1577
|
+
for (var e = z, t; e;) (t = H - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
|
|
1578
|
+
--F;
|
|
1579
|
+
}
|
|
1580
|
+
function wake() {
|
|
1581
|
+
H = (V = W.now()) + U, F = I = 0;
|
|
1582
|
+
try {
|
|
1583
|
+
timerFlush();
|
|
1584
|
+
} finally {
|
|
1585
|
+
F = 0, nap(), H = 0;
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
function poke() {
|
|
1589
|
+
var e = W.now(), t = e - V;
|
|
1590
|
+
t > R && (U -= t, V = e);
|
|
1591
|
+
}
|
|
1592
|
+
function nap() {
|
|
1593
|
+
for (var e, t = z, n, r = Infinity; t;) t._call ? (r > t._time && (r = t._time), e = t, t = t._next) : (n = t._next, t._next = null, t = e ? e._next = n : z = n);
|
|
1594
|
+
B = e, sleep(r);
|
|
1595
|
+
}
|
|
1596
|
+
function sleep(e) {
|
|
1597
|
+
F || (I &&= clearTimeout(I), e - H > 24 ? (e < Infinity && (I = setTimeout(wake, e - W.now() - U)), L &&= clearInterval(L)) : (L ||= (V = W.now(), setInterval(poke, R)), F = 1, G(wake)));
|
|
1598
|
+
}
|
|
1599
|
+
//#endregion
|
|
1600
|
+
//#region ../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.js
|
|
1601
|
+
function timeout_default(e, t, n) {
|
|
1602
|
+
var r = new Timer();
|
|
1603
|
+
return t = t == null ? 0 : +t, r.restart((n) => {
|
|
1604
|
+
r.stop(), e(n + t);
|
|
1605
|
+
}, t, n), r;
|
|
1606
|
+
}
|
|
1607
|
+
e(timeout_default, "default");
|
|
1608
|
+
//#endregion
|
|
1609
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/schedule.js
|
|
1610
|
+
var K = dispatch("start", "end", "cancel", "interrupt"), te = [];
|
|
1611
|
+
function schedule_default(e, t, n, r, a, o) {
|
|
1612
|
+
var s = e.__transition;
|
|
1613
|
+
if (!s) e.__transition = {};
|
|
1614
|
+
else if (n in s) return;
|
|
1615
|
+
create(e, n, {
|
|
1616
|
+
name: t,
|
|
1617
|
+
index: r,
|
|
1618
|
+
group: a,
|
|
1619
|
+
on: K,
|
|
1620
|
+
tween: te,
|
|
1621
|
+
time: o.time,
|
|
1622
|
+
delay: o.delay,
|
|
1623
|
+
duration: o.duration,
|
|
1624
|
+
ease: o.ease,
|
|
1625
|
+
timer: null,
|
|
1626
|
+
state: 0
|
|
1627
|
+
});
|
|
1628
|
+
}
|
|
1629
|
+
e(schedule_default, "default");
|
|
1630
|
+
function init(e, t) {
|
|
1631
|
+
var n = get(e, t);
|
|
1632
|
+
if (n.state > 0) throw Error("too late; already scheduled");
|
|
1633
|
+
return n;
|
|
1634
|
+
}
|
|
1635
|
+
function set(e, t) {
|
|
1636
|
+
var n = get(e, t);
|
|
1637
|
+
if (n.state > 3) throw Error("too late; already running");
|
|
1638
|
+
return n;
|
|
1639
|
+
}
|
|
1640
|
+
function get(e, t) {
|
|
1641
|
+
var n = e.__transition;
|
|
1642
|
+
if (!n || !(n = n[t])) throw Error("transition not found");
|
|
1643
|
+
return n;
|
|
1644
|
+
}
|
|
1645
|
+
function create(e, t, n) {
|
|
1646
|
+
var r = e.__transition, a;
|
|
1647
|
+
r[t] = n, n.timer = timer(schedule, 0, n.time);
|
|
1648
|
+
function schedule(e) {
|
|
1649
|
+
n.state = 1, n.timer.restart(start, n.delay, n.time), n.delay <= e && start(e - n.delay);
|
|
1650
|
+
}
|
|
1651
|
+
function start(o) {
|
|
1652
|
+
var s, c, l, u;
|
|
1653
|
+
if (n.state !== 1) return stop();
|
|
1654
|
+
for (s in r) if (u = r[s], u.name === n.name) {
|
|
1655
|
+
if (u.state === 3) return timeout_default(start);
|
|
1656
|
+
u.state === 4 ? (u.state = 6, u.timer.stop(), u.on.call("interrupt", e, e.__data__, u.index, u.group), delete r[s]) : +s < t && (u.state = 6, u.timer.stop(), u.on.call("cancel", e, e.__data__, u.index, u.group), delete r[s]);
|
|
1657
|
+
}
|
|
1658
|
+
if (timeout_default(function() {
|
|
1659
|
+
n.state === 3 && (n.state = 4, n.timer.restart(tick, n.delay, n.time), tick(o));
|
|
1660
|
+
}), n.state = 2, n.on.call("start", e, e.__data__, n.index, n.group), n.state === 2) {
|
|
1661
|
+
for (n.state = 3, a = Array(l = n.tween.length), s = 0, c = -1; s < l; ++s) (u = n.tween[s].value.call(e, e.__data__, n.index, n.group)) && (a[++c] = u);
|
|
1662
|
+
a.length = c + 1;
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
function tick(t) {
|
|
1666
|
+
for (var r = t < n.duration ? n.ease.call(null, t / n.duration) : (n.timer.restart(stop), n.state = 5, 1), o = -1, s = a.length; ++o < s;) a[o].call(e, r);
|
|
1667
|
+
n.state === 5 && (n.on.call("end", e, e.__data__, n.index, n.group), stop());
|
|
1668
|
+
}
|
|
1669
|
+
function stop() {
|
|
1670
|
+
for (var a in n.state = 6, n.timer.stop(), delete r[t], r) return;
|
|
1671
|
+
delete e.__transition;
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
//#endregion
|
|
1675
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.js
|
|
1676
|
+
function interrupt_default$1(e, t) {
|
|
1677
|
+
var n = e.__transition, r, a, o = !0, s;
|
|
1678
|
+
if (n) {
|
|
1679
|
+
for (s in t = t == null ? null : t + "", n) {
|
|
1680
|
+
if ((r = n[s]).name !== t) {
|
|
1681
|
+
o = !1;
|
|
1682
|
+
continue;
|
|
1683
|
+
}
|
|
1684
|
+
a = r.state > 2 && r.state < 5, r.state = 6, r.timer.stop(), r.on.call(a ? "interrupt" : "cancel", e, e.__data__, r.index, r.group), delete n[s];
|
|
1685
|
+
}
|
|
1686
|
+
o && delete e.__transition;
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
e(interrupt_default$1, "default");
|
|
1690
|
+
//#endregion
|
|
1691
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.js
|
|
1692
|
+
function interrupt_default(e) {
|
|
1693
|
+
return this.each(function() {
|
|
1694
|
+
interrupt_default$1(this, e);
|
|
1695
|
+
});
|
|
1696
|
+
}
|
|
1697
|
+
e(interrupt_default, "default");
|
|
1698
|
+
//#endregion
|
|
1699
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/tween.js
|
|
1700
|
+
function tweenRemove(e, t) {
|
|
1701
|
+
var n, r;
|
|
1702
|
+
return function() {
|
|
1703
|
+
var a = set(this, e), o = a.tween;
|
|
1704
|
+
if (o !== n) {
|
|
1705
|
+
r = n = o;
|
|
1706
|
+
for (var s = 0, c = r.length; s < c; ++s) if (r[s].name === t) {
|
|
1707
|
+
r = r.slice(), r.splice(s, 1);
|
|
1708
|
+
break;
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
a.tween = r;
|
|
1712
|
+
};
|
|
1713
|
+
}
|
|
1714
|
+
function tweenFunction(e, t, n) {
|
|
1715
|
+
var r, a;
|
|
1716
|
+
if (typeof n != "function") throw Error();
|
|
1717
|
+
return function() {
|
|
1718
|
+
var o = set(this, e), s = o.tween;
|
|
1719
|
+
if (s !== r) {
|
|
1720
|
+
a = (r = s).slice();
|
|
1721
|
+
for (var c = {
|
|
1722
|
+
name: t,
|
|
1723
|
+
value: n
|
|
1724
|
+
}, l = 0, u = a.length; l < u; ++l) if (a[l].name === t) {
|
|
1725
|
+
a[l] = c;
|
|
1726
|
+
break;
|
|
1727
|
+
}
|
|
1728
|
+
l === u && a.push(c);
|
|
1729
|
+
}
|
|
1730
|
+
o.tween = a;
|
|
1731
|
+
};
|
|
1732
|
+
}
|
|
1733
|
+
function tween_default(e, t) {
|
|
1734
|
+
var n = this._id;
|
|
1735
|
+
if (e += "", arguments.length < 2) {
|
|
1736
|
+
for (var r = get(this.node(), n).tween, a = 0, o = r.length, s; a < o; ++a) if ((s = r[a]).name === e) return s.value;
|
|
1737
|
+
return null;
|
|
1738
|
+
}
|
|
1739
|
+
return this.each((t == null ? tweenRemove : tweenFunction)(n, e, t));
|
|
1740
|
+
}
|
|
1741
|
+
e(tween_default, "default");
|
|
1742
|
+
function tweenValue(e, t, n) {
|
|
1743
|
+
var r = e._id;
|
|
1744
|
+
return e.each(function() {
|
|
1745
|
+
var e = set(this, r);
|
|
1746
|
+
(e.value ||= {})[t] = n.apply(this, arguments);
|
|
1747
|
+
}), function(e) {
|
|
1748
|
+
return get(e, r).value[t];
|
|
1749
|
+
};
|
|
1750
|
+
}
|
|
1751
|
+
//#endregion
|
|
1752
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/interpolate.js
|
|
1753
|
+
function interpolate_default(e, t) {
|
|
1754
|
+
var n;
|
|
1755
|
+
return (typeof t == "number" ? number_default : t instanceof color ? E : (n = color(t)) ? (t = n, E) : string_default)(e, t);
|
|
1756
|
+
}
|
|
1757
|
+
e(interpolate_default, "default");
|
|
1758
|
+
//#endregion
|
|
1759
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attr.js
|
|
1760
|
+
function attrRemove(e) {
|
|
1761
|
+
return function() {
|
|
1762
|
+
this.removeAttribute(e);
|
|
1763
|
+
};
|
|
1764
|
+
}
|
|
1765
|
+
function attrRemoveNS(e) {
|
|
1766
|
+
return function() {
|
|
1767
|
+
this.removeAttributeNS(e.space, e.local);
|
|
1768
|
+
};
|
|
1769
|
+
}
|
|
1770
|
+
function attrConstant(e, t, n) {
|
|
1771
|
+
var r, a = n + "", o;
|
|
1772
|
+
return function() {
|
|
1773
|
+
var s = this.getAttribute(e);
|
|
1774
|
+
return s === a ? null : s === r ? o : o = t(r = s, n);
|
|
1775
|
+
};
|
|
1776
|
+
}
|
|
1777
|
+
function attrConstantNS(e, t, n) {
|
|
1778
|
+
var r, a = n + "", o;
|
|
1779
|
+
return function() {
|
|
1780
|
+
var s = this.getAttributeNS(e.space, e.local);
|
|
1781
|
+
return s === a ? null : s === r ? o : o = t(r = s, n);
|
|
1782
|
+
};
|
|
1783
|
+
}
|
|
1784
|
+
function attrFunction(e, t, n) {
|
|
1785
|
+
var r, a, o;
|
|
1786
|
+
return function() {
|
|
1787
|
+
var s, c = n(this), l;
|
|
1788
|
+
return c == null ? void this.removeAttribute(e) : (s = this.getAttribute(e), l = c + "", s === l ? null : s === r && l === a ? o : (a = l, o = t(r = s, c)));
|
|
1789
|
+
};
|
|
1790
|
+
}
|
|
1791
|
+
function attrFunctionNS(e, t, n) {
|
|
1792
|
+
var r, a, o;
|
|
1793
|
+
return function() {
|
|
1794
|
+
var s, c = n(this), l;
|
|
1795
|
+
return c == null ? void this.removeAttributeNS(e.space, e.local) : (s = this.getAttributeNS(e.space, e.local), l = c + "", s === l ? null : s === r && l === a ? o : (a = l, o = t(r = s, c)));
|
|
1796
|
+
};
|
|
1797
|
+
}
|
|
1798
|
+
function attr_default(e, t) {
|
|
1799
|
+
var n = namespace_default(e), r = n === "transform" ? N : interpolate_default;
|
|
1800
|
+
return this.attrTween(e, typeof t == "function" ? (n.local ? attrFunctionNS : attrFunction)(n, r, tweenValue(this, "attr." + e, t)) : t == null ? (n.local ? attrRemoveNS : attrRemove)(n) : (n.local ? attrConstantNS : attrConstant)(n, r, t));
|
|
1801
|
+
}
|
|
1802
|
+
e(attr_default, "default");
|
|
1803
|
+
//#endregion
|
|
1804
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attrTween.js
|
|
1805
|
+
function attrInterpolate(e, t) {
|
|
1806
|
+
return function(n) {
|
|
1807
|
+
this.setAttribute(e, t.call(this, n));
|
|
1808
|
+
};
|
|
1809
|
+
}
|
|
1810
|
+
function attrInterpolateNS(e, t) {
|
|
1811
|
+
return function(n) {
|
|
1812
|
+
this.setAttributeNS(e.space, e.local, t.call(this, n));
|
|
1813
|
+
};
|
|
1814
|
+
}
|
|
1815
|
+
function attrTweenNS(e, t) {
|
|
1816
|
+
var n, r;
|
|
1817
|
+
function tween() {
|
|
1818
|
+
var a = t.apply(this, arguments);
|
|
1819
|
+
return a !== r && (n = (r = a) && attrInterpolateNS(e, a)), n;
|
|
1820
|
+
}
|
|
1821
|
+
return tween._value = t, tween;
|
|
1822
|
+
}
|
|
1823
|
+
function attrTween(e, t) {
|
|
1824
|
+
var n, r;
|
|
1825
|
+
function tween() {
|
|
1826
|
+
var a = t.apply(this, arguments);
|
|
1827
|
+
return a !== r && (n = (r = a) && attrInterpolate(e, a)), n;
|
|
1828
|
+
}
|
|
1829
|
+
return tween._value = t, tween;
|
|
1830
|
+
}
|
|
1831
|
+
function attrTween_default(e, t) {
|
|
1832
|
+
var n = "attr." + e;
|
|
1833
|
+
if (arguments.length < 2) return (n = this.tween(n)) && n._value;
|
|
1834
|
+
if (t == null) return this.tween(n, null);
|
|
1835
|
+
if (typeof t != "function") throw Error();
|
|
1836
|
+
var r = namespace_default(e);
|
|
1837
|
+
return this.tween(n, (r.local ? attrTweenNS : attrTween)(r, t));
|
|
1838
|
+
}
|
|
1839
|
+
e(attrTween_default, "default");
|
|
1840
|
+
//#endregion
|
|
1841
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/delay.js
|
|
1842
|
+
function delayFunction(e, t) {
|
|
1843
|
+
return function() {
|
|
1844
|
+
init(this, e).delay = +t.apply(this, arguments);
|
|
1845
|
+
};
|
|
1846
|
+
}
|
|
1847
|
+
function delayConstant(e, t) {
|
|
1848
|
+
return t = +t, function() {
|
|
1849
|
+
init(this, e).delay = t;
|
|
1850
|
+
};
|
|
1851
|
+
}
|
|
1852
|
+
function delay_default(e) {
|
|
1853
|
+
var t = this._id;
|
|
1854
|
+
return arguments.length ? this.each((typeof e == "function" ? delayFunction : delayConstant)(t, e)) : get(this.node(), t).delay;
|
|
1855
|
+
}
|
|
1856
|
+
e(delay_default, "default");
|
|
1857
|
+
//#endregion
|
|
1858
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/duration.js
|
|
1859
|
+
function durationFunction(e, t) {
|
|
1860
|
+
return function() {
|
|
1861
|
+
set(this, e).duration = +t.apply(this, arguments);
|
|
1862
|
+
};
|
|
1863
|
+
}
|
|
1864
|
+
function durationConstant(e, t) {
|
|
1865
|
+
return t = +t, function() {
|
|
1866
|
+
set(this, e).duration = t;
|
|
1867
|
+
};
|
|
1868
|
+
}
|
|
1869
|
+
function duration_default(e) {
|
|
1870
|
+
var t = this._id;
|
|
1871
|
+
return arguments.length ? this.each((typeof e == "function" ? durationFunction : durationConstant)(t, e)) : get(this.node(), t).duration;
|
|
1872
|
+
}
|
|
1873
|
+
e(duration_default, "default");
|
|
1874
|
+
//#endregion
|
|
1875
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/ease.js
|
|
1876
|
+
function easeConstant(e, t) {
|
|
1877
|
+
if (typeof t != "function") throw Error();
|
|
1878
|
+
return function() {
|
|
1879
|
+
set(this, e).ease = t;
|
|
1880
|
+
};
|
|
1881
|
+
}
|
|
1882
|
+
function ease_default(e) {
|
|
1883
|
+
var t = this._id;
|
|
1884
|
+
return arguments.length ? this.each(easeConstant(t, e)) : get(this.node(), t).ease;
|
|
1885
|
+
}
|
|
1886
|
+
e(ease_default, "default");
|
|
1887
|
+
//#endregion
|
|
1888
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/easeVarying.js
|
|
1889
|
+
function easeVarying(e, t) {
|
|
1890
|
+
return function() {
|
|
1891
|
+
var n = t.apply(this, arguments);
|
|
1892
|
+
if (typeof n != "function") throw Error();
|
|
1893
|
+
set(this, e).ease = n;
|
|
1894
|
+
};
|
|
1895
|
+
}
|
|
1896
|
+
function easeVarying_default(e) {
|
|
1897
|
+
if (typeof e != "function") throw Error();
|
|
1898
|
+
return this.each(easeVarying(this._id, e));
|
|
1899
|
+
}
|
|
1900
|
+
e(easeVarying_default, "default");
|
|
1901
|
+
//#endregion
|
|
1902
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/filter.js
|
|
1903
|
+
function filter_default(e) {
|
|
1904
|
+
typeof e != "function" && (e = matcher_default(e));
|
|
1905
|
+
for (var t = this._groups, n = t.length, r = Array(n), a = 0; a < n; ++a) for (var o = t[a], s = o.length, c = r[a] = [], l, u = 0; u < s; ++u) (l = o[u]) && e.call(l, l.__data__, u, o) && c.push(l);
|
|
1906
|
+
return new Transition(r, this._parents, this._name, this._id);
|
|
1907
|
+
}
|
|
1908
|
+
e(filter_default, "default");
|
|
1909
|
+
//#endregion
|
|
1910
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/merge.js
|
|
1911
|
+
function merge_default(e) {
|
|
1912
|
+
if (e._id !== this._id) throw Error();
|
|
1913
|
+
for (var t = this._groups, n = e._groups, r = t.length, a = n.length, o = Math.min(r, a), s = Array(r), c = 0; c < o; ++c) for (var l = t[c], u = n[c], d = l.length, f = s[c] = Array(d), p, m = 0; m < d; ++m) (p = l[m] || u[m]) && (f[m] = p);
|
|
1914
|
+
for (; c < r; ++c) s[c] = t[c];
|
|
1915
|
+
return new Transition(s, this._parents, this._name, this._id);
|
|
1916
|
+
}
|
|
1917
|
+
e(merge_default, "default");
|
|
1918
|
+
//#endregion
|
|
1919
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/on.js
|
|
1920
|
+
function start(e) {
|
|
1921
|
+
return (e + "").trim().split(/^|\s+/).every(function(e) {
|
|
1922
|
+
var t = e.indexOf(".");
|
|
1923
|
+
return t >= 0 && (e = e.slice(0, t)), !e || e === "start";
|
|
1924
|
+
});
|
|
1925
|
+
}
|
|
1926
|
+
function onFunction(e, t, n) {
|
|
1927
|
+
var r, a, o = start(t) ? init : set;
|
|
1928
|
+
return function() {
|
|
1929
|
+
var s = o(this, e), c = s.on;
|
|
1930
|
+
c !== r && (a = (r = c).copy()).on(t, n), s.on = a;
|
|
1931
|
+
};
|
|
1932
|
+
}
|
|
1933
|
+
function on_default(e, t) {
|
|
1934
|
+
var n = this._id;
|
|
1935
|
+
return arguments.length < 2 ? get(this.node(), n).on.on(e) : this.each(onFunction(n, e, t));
|
|
1936
|
+
}
|
|
1937
|
+
e(on_default, "default");
|
|
1938
|
+
//#endregion
|
|
1939
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/remove.js
|
|
1940
|
+
function removeFunction(e) {
|
|
1941
|
+
return function() {
|
|
1942
|
+
var t = this.parentNode;
|
|
1943
|
+
for (var n in this.__transition) if (+n !== e) return;
|
|
1944
|
+
t && t.removeChild(this);
|
|
1945
|
+
};
|
|
1946
|
+
}
|
|
1947
|
+
function remove_default() {
|
|
1948
|
+
return this.on("end.remove", removeFunction(this._id));
|
|
1949
|
+
}
|
|
1950
|
+
e(remove_default, "default");
|
|
1951
|
+
//#endregion
|
|
1952
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/select.js
|
|
1953
|
+
function select_default(e) {
|
|
1954
|
+
var t = this._name, n = this._id;
|
|
1955
|
+
typeof e != "function" && (e = selector_default(e));
|
|
1956
|
+
for (var r = this._groups, a = r.length, o = Array(a), s = 0; s < a; ++s) for (var c = r[s], l = c.length, u = o[s] = Array(l), d, f, p = 0; p < l; ++p) (d = c[p]) && (f = e.call(d, d.__data__, p, c)) && ("__data__" in d && (f.__data__ = d.__data__), u[p] = f, schedule_default(u[p], t, n, p, u, get(d, n)));
|
|
1957
|
+
return new Transition(o, this._parents, t, n);
|
|
1958
|
+
}
|
|
1959
|
+
e(select_default, "default");
|
|
1960
|
+
//#endregion
|
|
1961
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selectAll.js
|
|
1962
|
+
function selectAll_default(e) {
|
|
1963
|
+
var t = this._name, n = this._id;
|
|
1964
|
+
typeof e != "function" && (e = selectorAll_default(e));
|
|
1965
|
+
for (var r = this._groups, a = r.length, o = [], s = [], c = 0; c < a; ++c) for (var l = r[c], u = l.length, d, f = 0; f < u; ++f) if (d = l[f]) {
|
|
1966
|
+
for (var p = e.call(d, d.__data__, f, l), m, h = get(d, n), g = 0, _ = p.length; g < _; ++g) (m = p[g]) && schedule_default(m, t, n, g, p, h);
|
|
1967
|
+
o.push(p), s.push(d);
|
|
1968
|
+
}
|
|
1969
|
+
return new Transition(o, s, t, n);
|
|
1970
|
+
}
|
|
1971
|
+
e(selectAll_default, "default");
|
|
1972
|
+
//#endregion
|
|
1973
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selection.js
|
|
1974
|
+
var ne = selection.prototype.constructor;
|
|
1975
|
+
function selection_default() {
|
|
1976
|
+
return new ne(this._groups, this._parents);
|
|
1977
|
+
}
|
|
1978
|
+
e(selection_default, "default");
|
|
1979
|
+
//#endregion
|
|
1980
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/style.js
|
|
1981
|
+
function styleNull(e, t) {
|
|
1982
|
+
var n, r, a;
|
|
1983
|
+
return function() {
|
|
1984
|
+
var o = styleValue(this, e), s = (this.style.removeProperty(e), styleValue(this, e));
|
|
1985
|
+
return o === s ? null : o === n && s === r ? a : a = t(n = o, r = s);
|
|
1986
|
+
};
|
|
1987
|
+
}
|
|
1988
|
+
function styleRemove(e) {
|
|
1989
|
+
return function() {
|
|
1990
|
+
this.style.removeProperty(e);
|
|
1991
|
+
};
|
|
1992
|
+
}
|
|
1993
|
+
function styleConstant(e, t, n) {
|
|
1994
|
+
var r, a = n + "", o;
|
|
1995
|
+
return function() {
|
|
1996
|
+
var s = styleValue(this, e);
|
|
1997
|
+
return s === a ? null : s === r ? o : o = t(r = s, n);
|
|
1998
|
+
};
|
|
1999
|
+
}
|
|
2000
|
+
function styleFunction(e, t, n) {
|
|
2001
|
+
var r, a, o;
|
|
2002
|
+
return function() {
|
|
2003
|
+
var s = styleValue(this, e), c = n(this), l = c + "";
|
|
2004
|
+
return c ?? (l = c = (this.style.removeProperty(e), styleValue(this, e))), s === l ? null : s === r && l === a ? o : (a = l, o = t(r = s, c));
|
|
2005
|
+
};
|
|
2006
|
+
}
|
|
2007
|
+
function styleMaybeRemove(e, t) {
|
|
2008
|
+
var n, r, a, o = "style." + t, s = "end." + o, c;
|
|
2009
|
+
return function() {
|
|
2010
|
+
var l = set(this, e), u = l.on, d = l.value[o] == null ? c ||= styleRemove(t) : void 0;
|
|
2011
|
+
(u !== n || a !== d) && (r = (n = u).copy()).on(s, a = d), l.on = r;
|
|
2012
|
+
};
|
|
2013
|
+
}
|
|
2014
|
+
function style_default(e, t, n) {
|
|
2015
|
+
var r = (e += "") == "transform" ? M : interpolate_default;
|
|
2016
|
+
return t == null ? this.styleTween(e, styleNull(e, r)).on("end.style." + e, styleRemove(e)) : typeof t == "function" ? this.styleTween(e, styleFunction(e, r, tweenValue(this, "style." + e, t))).each(styleMaybeRemove(this._id, e)) : this.styleTween(e, styleConstant(e, r, t), n).on("end.style." + e, null);
|
|
2017
|
+
}
|
|
2018
|
+
e(style_default, "default");
|
|
2019
|
+
//#endregion
|
|
2020
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/styleTween.js
|
|
2021
|
+
function styleInterpolate(e, t, n) {
|
|
2022
|
+
return function(r) {
|
|
2023
|
+
this.style.setProperty(e, t.call(this, r), n);
|
|
2024
|
+
};
|
|
2025
|
+
}
|
|
2026
|
+
function styleTween(e, t, n) {
|
|
2027
|
+
var r, a;
|
|
2028
|
+
function tween() {
|
|
2029
|
+
var o = t.apply(this, arguments);
|
|
2030
|
+
return o !== a && (r = (a = o) && styleInterpolate(e, o, n)), r;
|
|
2031
|
+
}
|
|
2032
|
+
return tween._value = t, tween;
|
|
2033
|
+
}
|
|
2034
|
+
function styleTween_default(e, t, n) {
|
|
2035
|
+
var r = "style." + (e += "");
|
|
2036
|
+
if (arguments.length < 2) return (r = this.tween(r)) && r._value;
|
|
2037
|
+
if (t == null) return this.tween(r, null);
|
|
2038
|
+
if (typeof t != "function") throw Error();
|
|
2039
|
+
return this.tween(r, styleTween(e, t, n ?? ""));
|
|
2040
|
+
}
|
|
2041
|
+
e(styleTween_default, "default");
|
|
2042
|
+
//#endregion
|
|
2043
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/text.js
|
|
2044
|
+
function textConstant(e) {
|
|
2045
|
+
return function() {
|
|
2046
|
+
this.textContent = e;
|
|
2047
|
+
};
|
|
2048
|
+
}
|
|
2049
|
+
function textFunction(e) {
|
|
2050
|
+
return function() {
|
|
2051
|
+
var t = e(this);
|
|
2052
|
+
this.textContent = t ?? "";
|
|
2053
|
+
};
|
|
2054
|
+
}
|
|
2055
|
+
function text_default(e) {
|
|
2056
|
+
return this.tween("text", typeof e == "function" ? textFunction(tweenValue(this, "text", e)) : textConstant(e == null ? "" : e + ""));
|
|
2057
|
+
}
|
|
2058
|
+
e(text_default, "default");
|
|
2059
|
+
//#endregion
|
|
2060
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/textTween.js
|
|
2061
|
+
function textInterpolate(e) {
|
|
2062
|
+
return function(t) {
|
|
2063
|
+
this.textContent = e.call(this, t);
|
|
2064
|
+
};
|
|
2065
|
+
}
|
|
2066
|
+
function textTween(e) {
|
|
2067
|
+
var t, n;
|
|
2068
|
+
function tween() {
|
|
2069
|
+
var r = e.apply(this, arguments);
|
|
2070
|
+
return r !== n && (t = (n = r) && textInterpolate(r)), t;
|
|
2071
|
+
}
|
|
2072
|
+
return tween._value = e, tween;
|
|
2073
|
+
}
|
|
2074
|
+
function textTween_default(e) {
|
|
2075
|
+
var t = "text";
|
|
2076
|
+
if (arguments.length < 1) return (t = this.tween(t)) && t._value;
|
|
2077
|
+
if (e == null) return this.tween(t, null);
|
|
2078
|
+
if (typeof e != "function") throw Error();
|
|
2079
|
+
return this.tween(t, textTween(e));
|
|
2080
|
+
}
|
|
2081
|
+
e(textTween_default, "default");
|
|
2082
|
+
//#endregion
|
|
2083
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.js
|
|
2084
|
+
function transition_default$1() {
|
|
2085
|
+
for (var e = this._name, t = this._id, n = newId(), r = this._groups, a = r.length, o = 0; o < a; ++o) for (var s = r[o], c = s.length, l, u = 0; u < c; ++u) if (l = s[u]) {
|
|
2086
|
+
var d = get(l, t);
|
|
2087
|
+
schedule_default(l, e, n, u, s, {
|
|
2088
|
+
time: d.time + d.delay + d.duration,
|
|
2089
|
+
delay: 0,
|
|
2090
|
+
duration: d.duration,
|
|
2091
|
+
ease: d.ease
|
|
2092
|
+
});
|
|
2093
|
+
}
|
|
2094
|
+
return new Transition(r, this._parents, e, n);
|
|
2095
|
+
}
|
|
2096
|
+
e(transition_default$1, "default");
|
|
2097
|
+
//#endregion
|
|
2098
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/end.js
|
|
2099
|
+
function end_default() {
|
|
2100
|
+
var e, t, n = this, r = n._id, a = n.size();
|
|
2101
|
+
return new Promise(function(o, s) {
|
|
2102
|
+
var c = { value: s }, l = { value: function() {
|
|
2103
|
+
--a === 0 && o();
|
|
2104
|
+
} };
|
|
2105
|
+
n.each(function() {
|
|
2106
|
+
var n = set(this, r), a = n.on;
|
|
2107
|
+
a !== e && (t = (e = a).copy(), t._.cancel.push(c), t._.interrupt.push(c), t._.end.push(l)), n.on = t;
|
|
2108
|
+
}), a === 0 && o();
|
|
2109
|
+
});
|
|
2110
|
+
}
|
|
2111
|
+
e(end_default, "default");
|
|
2112
|
+
//#endregion
|
|
2113
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/index.js
|
|
2114
|
+
var re = 0;
|
|
2115
|
+
function Transition(e, t, n, r) {
|
|
2116
|
+
this._groups = e, this._parents = t, this._name = n, this._id = r;
|
|
2117
|
+
}
|
|
2118
|
+
function transition(e) {
|
|
2119
|
+
return selection().transition(e);
|
|
2120
|
+
}
|
|
2121
|
+
function newId() {
|
|
2122
|
+
return ++re;
|
|
2123
|
+
}
|
|
2124
|
+
var q = selection.prototype;
|
|
2125
|
+
Transition.prototype = transition.prototype = {
|
|
2126
|
+
constructor: Transition,
|
|
2127
|
+
select: select_default,
|
|
2128
|
+
selectAll: selectAll_default,
|
|
2129
|
+
selectChild: q.selectChild,
|
|
2130
|
+
selectChildren: q.selectChildren,
|
|
2131
|
+
filter: filter_default,
|
|
2132
|
+
merge: merge_default,
|
|
2133
|
+
selection: selection_default,
|
|
2134
|
+
transition: transition_default$1,
|
|
2135
|
+
call: q.call,
|
|
2136
|
+
nodes: q.nodes,
|
|
2137
|
+
node: q.node,
|
|
2138
|
+
size: q.size,
|
|
2139
|
+
empty: q.empty,
|
|
2140
|
+
each: q.each,
|
|
2141
|
+
on: on_default,
|
|
2142
|
+
attr: attr_default,
|
|
2143
|
+
attrTween: attrTween_default,
|
|
2144
|
+
style: style_default,
|
|
2145
|
+
styleTween: styleTween_default,
|
|
2146
|
+
text: text_default,
|
|
2147
|
+
textTween: textTween_default,
|
|
2148
|
+
remove: remove_default,
|
|
2149
|
+
tween: tween_default,
|
|
2150
|
+
delay: delay_default,
|
|
2151
|
+
duration: duration_default,
|
|
2152
|
+
ease: ease_default,
|
|
2153
|
+
easeVarying: easeVarying_default,
|
|
2154
|
+
end: end_default,
|
|
2155
|
+
[Symbol.iterator]: q[Symbol.iterator]
|
|
2156
|
+
};
|
|
2157
|
+
//#endregion
|
|
2158
|
+
//#region ../../node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js
|
|
2159
|
+
function cubicInOut(e) {
|
|
2160
|
+
return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
|
|
2161
|
+
}
|
|
2162
|
+
//#endregion
|
|
2163
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.js
|
|
2164
|
+
var ie = {
|
|
2165
|
+
time: null,
|
|
2166
|
+
delay: 0,
|
|
2167
|
+
duration: 250,
|
|
2168
|
+
ease: cubicInOut
|
|
2169
|
+
};
|
|
2170
|
+
function inherit(e, t) {
|
|
2171
|
+
for (var n; !(n = e.__transition) || !(n = n[t]);) if (!(e = e.parentNode)) throw Error(`transition ${t} not found`);
|
|
2172
|
+
return n;
|
|
2173
|
+
}
|
|
2174
|
+
function transition_default(e) {
|
|
2175
|
+
var t, n;
|
|
2176
|
+
e instanceof Transition ? (t = e._id, e = e._name) : (t = newId(), (n = ie).time = now(), e = e == null ? null : e + "");
|
|
2177
|
+
for (var r = this._groups, a = r.length, o = 0; o < a; ++o) for (var s = r[o], c = s.length, l, u = 0; u < c; ++u) (l = s[u]) && schedule_default(l, e, t, u, s, n || inherit(l, t));
|
|
2178
|
+
return new Transition(r, this._parents, e, t);
|
|
2179
|
+
}
|
|
2180
|
+
e(transition_default, "default"), selection.prototype.interrupt = interrupt_default, selection.prototype.transition = transition_default;
|
|
2181
|
+
//#endregion
|
|
2182
|
+
//#region ../../node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/constant.js
|
|
2183
|
+
var J = /* @__PURE__ */ e((e) => () => e, "default");
|
|
2184
|
+
//#endregion
|
|
2185
|
+
//#region ../../node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/event.js
|
|
2186
|
+
function ZoomEvent(e, { sourceEvent: t, target: n, transform: r, dispatch: a }) {
|
|
2187
|
+
Object.defineProperties(this, {
|
|
2188
|
+
type: {
|
|
2189
|
+
value: e,
|
|
2190
|
+
enumerable: !0,
|
|
2191
|
+
configurable: !0
|
|
2192
|
+
},
|
|
2193
|
+
sourceEvent: {
|
|
2194
|
+
value: t,
|
|
2195
|
+
enumerable: !0,
|
|
2196
|
+
configurable: !0
|
|
2197
|
+
},
|
|
2198
|
+
target: {
|
|
2199
|
+
value: n,
|
|
2200
|
+
enumerable: !0,
|
|
2201
|
+
configurable: !0
|
|
2202
|
+
},
|
|
2203
|
+
transform: {
|
|
2204
|
+
value: r,
|
|
2205
|
+
enumerable: !0,
|
|
2206
|
+
configurable: !0
|
|
2207
|
+
},
|
|
2208
|
+
_: { value: a }
|
|
2209
|
+
});
|
|
2210
|
+
}
|
|
2211
|
+
//#endregion
|
|
2212
|
+
//#region ../../node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.js
|
|
2213
|
+
function Transform(e, t, n) {
|
|
2214
|
+
this.k = e, this.x = t, this.y = n;
|
|
2215
|
+
}
|
|
2216
|
+
Transform.prototype = {
|
|
2217
|
+
constructor: Transform,
|
|
2218
|
+
scale: function(e) {
|
|
2219
|
+
return e === 1 ? this : new Transform(this.k * e, this.x, this.y);
|
|
2220
|
+
},
|
|
2221
|
+
translate: function(e, t) {
|
|
2222
|
+
return e === 0 & t === 0 ? this : new Transform(this.k, this.x + this.k * e, this.y + this.k * t);
|
|
2223
|
+
},
|
|
2224
|
+
apply: function(e) {
|
|
2225
|
+
return [e[0] * this.k + this.x, e[1] * this.k + this.y];
|
|
2226
|
+
},
|
|
2227
|
+
applyX: function(e) {
|
|
2228
|
+
return e * this.k + this.x;
|
|
2229
|
+
},
|
|
2230
|
+
applyY: function(e) {
|
|
2231
|
+
return e * this.k + this.y;
|
|
2232
|
+
},
|
|
2233
|
+
invert: function(e) {
|
|
2234
|
+
return [(e[0] - this.x) / this.k, (e[1] - this.y) / this.k];
|
|
2235
|
+
},
|
|
2236
|
+
invertX: function(e) {
|
|
2237
|
+
return (e - this.x) / this.k;
|
|
2238
|
+
},
|
|
2239
|
+
invertY: function(e) {
|
|
2240
|
+
return (e - this.y) / this.k;
|
|
2241
|
+
},
|
|
2242
|
+
rescaleX: function(e) {
|
|
2243
|
+
return e.copy().domain(e.range().map(this.invertX, this).map(e.invert, e));
|
|
2244
|
+
},
|
|
2245
|
+
rescaleY: function(e) {
|
|
2246
|
+
return e.copy().domain(e.range().map(this.invertY, this).map(e.invert, e));
|
|
2247
|
+
},
|
|
2248
|
+
toString: function() {
|
|
2249
|
+
return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
|
|
2250
|
+
}
|
|
2251
|
+
};
|
|
2252
|
+
var Y = new Transform(1, 0, 0);
|
|
2253
|
+
transform.prototype = Transform.prototype;
|
|
2254
|
+
function transform(e) {
|
|
2255
|
+
for (; !e.__zoom;) if (!(e = e.parentNode)) return Y;
|
|
2256
|
+
return e.__zoom;
|
|
2257
|
+
}
|
|
2258
|
+
//#endregion
|
|
2259
|
+
//#region ../../node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/noevent.js
|
|
2260
|
+
function nopropagation(e) {
|
|
2261
|
+
e.stopImmediatePropagation();
|
|
2262
|
+
}
|
|
2263
|
+
function noevent_default(e) {
|
|
2264
|
+
e.preventDefault(), e.stopImmediatePropagation();
|
|
2265
|
+
}
|
|
2266
|
+
e(noevent_default, "default");
|
|
2267
|
+
//#endregion
|
|
2268
|
+
//#region ../../node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/zoom.js
|
|
2269
|
+
function defaultFilter(e) {
|
|
2270
|
+
return (!e.ctrlKey || e.type === "wheel") && !e.button;
|
|
2271
|
+
}
|
|
2272
|
+
function defaultExtent() {
|
|
2273
|
+
var e = this;
|
|
2274
|
+
return e instanceof SVGElement ? (e = e.ownerSVGElement || e, e.hasAttribute("viewBox") ? (e = e.viewBox.baseVal, [[e.x, e.y], [e.x + e.width, e.y + e.height]]) : [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]]) : [[0, 0], [e.clientWidth, e.clientHeight]];
|
|
2275
|
+
}
|
|
2276
|
+
function defaultTransform() {
|
|
2277
|
+
return this.__zoom || Y;
|
|
2278
|
+
}
|
|
2279
|
+
function defaultWheelDelta(e) {
|
|
2280
|
+
return -e.deltaY * (e.deltaMode === 1 ? .05 : e.deltaMode ? 1 : .002) * (e.ctrlKey ? 10 : 1);
|
|
2281
|
+
}
|
|
2282
|
+
function defaultTouchable() {
|
|
2283
|
+
return navigator.maxTouchPoints || "ontouchstart" in this;
|
|
2284
|
+
}
|
|
2285
|
+
function defaultConstrain(e, t, n) {
|
|
2286
|
+
var r = e.invertX(t[0][0]) - n[0][0], a = e.invertX(t[1][0]) - n[1][0], o = e.invertY(t[0][1]) - n[0][1], s = e.invertY(t[1][1]) - n[1][1];
|
|
2287
|
+
return e.translate(a > r ? (r + a) / 2 : Math.min(0, r) || Math.max(0, a), s > o ? (o + s) / 2 : Math.min(0, o) || Math.max(0, s));
|
|
2288
|
+
}
|
|
2289
|
+
function zoom_default() {
|
|
2290
|
+
var e = defaultFilter, t = defaultExtent, n = defaultConstrain, r = defaultWheelDelta, a = defaultTouchable, o = [0, Infinity], s = [[-Infinity, -Infinity], [Infinity, Infinity]], c = 250, l = P, u = dispatch("start", "zoom", "end"), d, f, p, m = 500, h = 150, g = 0, _ = 10;
|
|
2291
|
+
function zoom(e) {
|
|
2292
|
+
e.property("__zoom", defaultTransform).on("wheel.zoom", wheeled, { passive: !1 }).on("mousedown.zoom", mousedowned).on("dblclick.zoom", dblclicked).filter(a).on("touchstart.zoom", touchstarted).on("touchmove.zoom", touchmoved).on("touchend.zoom touchcancel.zoom", touchended).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
2293
|
+
}
|
|
2294
|
+
zoom.transform = function(e, t, n, r) {
|
|
2295
|
+
var a = e.selection ? e.selection() : e;
|
|
2296
|
+
a.property("__zoom", defaultTransform), e === a ? a.interrupt().each(function() {
|
|
2297
|
+
gesture(this, arguments).event(r).start().zoom(null, typeof t == "function" ? t.apply(this, arguments) : t).end();
|
|
2298
|
+
}) : schedule(e, t, n, r);
|
|
2299
|
+
}, zoom.scaleBy = function(e, t, n, r) {
|
|
2300
|
+
zoom.scaleTo(e, function() {
|
|
2301
|
+
return this.__zoom.k * (typeof t == "function" ? t.apply(this, arguments) : t);
|
|
2302
|
+
}, n, r);
|
|
2303
|
+
}, zoom.scaleTo = function(e, r, a, o) {
|
|
2304
|
+
zoom.transform(e, function() {
|
|
2305
|
+
var e = t.apply(this, arguments), o = this.__zoom, c = a == null ? centroid(e) : typeof a == "function" ? a.apply(this, arguments) : a, l = o.invert(c), u = typeof r == "function" ? r.apply(this, arguments) : r;
|
|
2306
|
+
return n(translate(scale(o, u), c, l), e, s);
|
|
2307
|
+
}, a, o);
|
|
2308
|
+
}, zoom.translateBy = function(e, r, a, o) {
|
|
2309
|
+
zoom.transform(e, function() {
|
|
2310
|
+
return n(this.__zoom.translate(typeof r == "function" ? r.apply(this, arguments) : r, typeof a == "function" ? a.apply(this, arguments) : a), t.apply(this, arguments), s);
|
|
2311
|
+
}, null, o);
|
|
2312
|
+
}, zoom.translateTo = function(e, r, a, o, c) {
|
|
2313
|
+
zoom.transform(e, function() {
|
|
2314
|
+
var e = t.apply(this, arguments), c = this.__zoom, l = o == null ? centroid(e) : typeof o == "function" ? o.apply(this, arguments) : o;
|
|
2315
|
+
return n(Y.translate(l[0], l[1]).scale(c.k).translate(typeof r == "function" ? -r.apply(this, arguments) : -r, typeof a == "function" ? -a.apply(this, arguments) : -a), e, s);
|
|
2316
|
+
}, o, c);
|
|
2317
|
+
};
|
|
2318
|
+
function scale(e, t) {
|
|
2319
|
+
return t = Math.max(o[0], Math.min(o[1], t)), t === e.k ? e : new Transform(t, e.x, e.y);
|
|
2320
|
+
}
|
|
2321
|
+
function translate(e, t, n) {
|
|
2322
|
+
var r = t[0] - n[0] * e.k, a = t[1] - n[1] * e.k;
|
|
2323
|
+
return r === e.x && a === e.y ? e : new Transform(e.k, r, a);
|
|
2324
|
+
}
|
|
2325
|
+
function centroid(e) {
|
|
2326
|
+
return [(+e[0][0] + +e[1][0]) / 2, (+e[0][1] + +e[1][1]) / 2];
|
|
2327
|
+
}
|
|
2328
|
+
function schedule(e, n, r, a) {
|
|
2329
|
+
e.on("start.zoom", function() {
|
|
2330
|
+
gesture(this, arguments).event(a).start();
|
|
2331
|
+
}).on("interrupt.zoom end.zoom", function() {
|
|
2332
|
+
gesture(this, arguments).event(a).end();
|
|
2333
|
+
}).tween("zoom", function() {
|
|
2334
|
+
var e = this, o = arguments, s = gesture(e, o).event(a), c = t.apply(e, o), u = r == null ? centroid(c) : typeof r == "function" ? r.apply(e, o) : r, d = Math.max(c[1][0] - c[0][0], c[1][1] - c[0][1]), f = e.__zoom, p = typeof n == "function" ? n.apply(e, o) : n, m = l(f.invert(u).concat(d / f.k), p.invert(u).concat(d / p.k));
|
|
2335
|
+
return function(e) {
|
|
2336
|
+
if (e === 1) e = p;
|
|
2337
|
+
else {
|
|
2338
|
+
var t = m(e), n = d / t[2];
|
|
2339
|
+
e = new Transform(n, u[0] - t[0] * n, u[1] - t[1] * n);
|
|
2340
|
+
}
|
|
2341
|
+
s.zoom(null, e);
|
|
2342
|
+
};
|
|
2343
|
+
});
|
|
2344
|
+
}
|
|
2345
|
+
function gesture(e, t, n) {
|
|
2346
|
+
return !n && e.__zooming || new Gesture(e, t);
|
|
2347
|
+
}
|
|
2348
|
+
function Gesture(e, n) {
|
|
2349
|
+
this.that = e, this.args = n, this.active = 0, this.sourceEvent = null, this.extent = t.apply(e, n), this.taps = 0;
|
|
2350
|
+
}
|
|
2351
|
+
Gesture.prototype = {
|
|
2352
|
+
event: function(e) {
|
|
2353
|
+
return e && (this.sourceEvent = e), this;
|
|
2354
|
+
},
|
|
2355
|
+
start: function() {
|
|
2356
|
+
return ++this.active === 1 && (this.that.__zooming = this, this.emit("start")), this;
|
|
2357
|
+
},
|
|
2358
|
+
zoom: function(e, t) {
|
|
2359
|
+
return this.mouse && e !== "mouse" && (this.mouse[1] = t.invert(this.mouse[0])), this.touch0 && e !== "touch" && (this.touch0[1] = t.invert(this.touch0[0])), this.touch1 && e !== "touch" && (this.touch1[1] = t.invert(this.touch1[0])), this.that.__zoom = t, this.emit("zoom"), this;
|
|
2360
|
+
},
|
|
2361
|
+
end: function() {
|
|
2362
|
+
return --this.active === 0 && (delete this.that.__zooming, this.emit("end")), this;
|
|
2363
|
+
},
|
|
2364
|
+
emit: function(e) {
|
|
2365
|
+
var t = select_default$1(this.that).datum();
|
|
2366
|
+
u.call(e, this.that, new ZoomEvent(e, {
|
|
2367
|
+
sourceEvent: this.sourceEvent,
|
|
2368
|
+
target: zoom,
|
|
2369
|
+
type: e,
|
|
2370
|
+
transform: this.that.__zoom,
|
|
2371
|
+
dispatch: u
|
|
2372
|
+
}), t);
|
|
2373
|
+
}
|
|
2374
|
+
};
|
|
2375
|
+
function wheeled(t, ...a) {
|
|
2376
|
+
if (!e.apply(this, arguments)) return;
|
|
2377
|
+
var c = gesture(this, a).event(t), l = this.__zoom, u = Math.max(o[0], Math.min(o[1], l.k * 2 ** r.apply(this, arguments))), d = pointer_default(t);
|
|
2378
|
+
if (c.wheel) (c.mouse[0][0] !== d[0] || c.mouse[0][1] !== d[1]) && (c.mouse[1] = l.invert(c.mouse[0] = d)), clearTimeout(c.wheel);
|
|
2379
|
+
else if (l.k === u) return;
|
|
2380
|
+
else c.mouse = [d, l.invert(d)], interrupt_default$1(this), c.start();
|
|
2381
|
+
noevent_default(t), c.wheel = setTimeout(wheelidled, h), c.zoom("mouse", n(translate(scale(l, u), c.mouse[0], c.mouse[1]), c.extent, s));
|
|
2382
|
+
function wheelidled() {
|
|
2383
|
+
c.wheel = null, c.end();
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
function mousedowned(t, ...r) {
|
|
2387
|
+
if (p || !e.apply(this, arguments)) return;
|
|
2388
|
+
var a = t.currentTarget, o = gesture(this, r, !0).event(t), c = select_default$1(t.view).on("mousemove.zoom", mousemoved, !0).on("mouseup.zoom", mouseupped, !0), l = pointer_default(t, a), u = t.clientX, d = t.clientY;
|
|
2389
|
+
nodrag_default(t.view), nopropagation(t), o.mouse = [l, this.__zoom.invert(l)], interrupt_default$1(this), o.start();
|
|
2390
|
+
function mousemoved(e) {
|
|
2391
|
+
if (noevent_default(e), !o.moved) {
|
|
2392
|
+
var t = e.clientX - u, r = e.clientY - d;
|
|
2393
|
+
o.moved = t * t + r * r > g;
|
|
2394
|
+
}
|
|
2395
|
+
o.event(e).zoom("mouse", n(translate(o.that.__zoom, o.mouse[0] = pointer_default(e, a), o.mouse[1]), o.extent, s));
|
|
2396
|
+
}
|
|
2397
|
+
function mouseupped(e) {
|
|
2398
|
+
c.on("mousemove.zoom mouseup.zoom", null), yesdrag(e.view, o.moved), noevent_default(e), o.event(e).end();
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
function dblclicked(r, ...a) {
|
|
2402
|
+
if (e.apply(this, arguments)) {
|
|
2403
|
+
var o = this.__zoom, l = pointer_default(r.changedTouches ? r.changedTouches[0] : r, this), u = o.invert(l), d = o.k * (r.shiftKey ? .5 : 2), f = n(translate(scale(o, d), l, u), t.apply(this, a), s);
|
|
2404
|
+
noevent_default(r), c > 0 ? select_default$1(this).transition().duration(c).call(schedule, f, l, r) : select_default$1(this).call(zoom.transform, f, l, r);
|
|
2405
|
+
}
|
|
2406
|
+
}
|
|
2407
|
+
function touchstarted(t, ...n) {
|
|
2408
|
+
if (e.apply(this, arguments)) {
|
|
2409
|
+
var r = t.touches, a = r.length, o = gesture(this, n, t.changedTouches.length === a).event(t), s, c, l, u;
|
|
2410
|
+
for (nopropagation(t), c = 0; c < a; ++c) l = r[c], u = pointer_default(l, this), u = [
|
|
2411
|
+
u,
|
|
2412
|
+
this.__zoom.invert(u),
|
|
2413
|
+
l.identifier
|
|
2414
|
+
], o.touch0 ? !o.touch1 && o.touch0[2] !== u[2] && (o.touch1 = u, o.taps = 0) : (o.touch0 = u, s = !0, o.taps = 1 + !!d);
|
|
2415
|
+
d &&= clearTimeout(d), s && (o.taps < 2 && (f = u[0], d = setTimeout(function() {
|
|
2416
|
+
d = null;
|
|
2417
|
+
}, m)), interrupt_default$1(this), o.start());
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
function touchmoved(e, ...t) {
|
|
2421
|
+
if (this.__zooming) {
|
|
2422
|
+
var r = gesture(this, t).event(e), a = e.changedTouches, o = a.length, c, l, u, d;
|
|
2423
|
+
for (noevent_default(e), c = 0; c < o; ++c) l = a[c], u = pointer_default(l, this), r.touch0 && r.touch0[2] === l.identifier ? r.touch0[0] = u : r.touch1 && r.touch1[2] === l.identifier && (r.touch1[0] = u);
|
|
2424
|
+
if (l = r.that.__zoom, r.touch1) {
|
|
2425
|
+
var f = r.touch0[0], p = r.touch0[1], m = r.touch1[0], h = r.touch1[1], g = (g = m[0] - f[0]) * g + (g = m[1] - f[1]) * g, _ = (_ = h[0] - p[0]) * _ + (_ = h[1] - p[1]) * _;
|
|
2426
|
+
l = scale(l, Math.sqrt(g / _)), u = [(f[0] + m[0]) / 2, (f[1] + m[1]) / 2], d = [(p[0] + h[0]) / 2, (p[1] + h[1]) / 2];
|
|
2427
|
+
} else if (r.touch0) u = r.touch0[0], d = r.touch0[1];
|
|
2428
|
+
else return;
|
|
2429
|
+
r.zoom("touch", n(translate(l, u, d), r.extent, s));
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2432
|
+
function touchended(e, ...t) {
|
|
2433
|
+
if (this.__zooming) {
|
|
2434
|
+
var n = gesture(this, t).event(e), r = e.changedTouches, a = r.length, o, s;
|
|
2435
|
+
for (nopropagation(e), p && clearTimeout(p), p = setTimeout(function() {
|
|
2436
|
+
p = null;
|
|
2437
|
+
}, m), o = 0; o < a; ++o) s = r[o], n.touch0 && n.touch0[2] === s.identifier ? delete n.touch0 : n.touch1 && n.touch1[2] === s.identifier && delete n.touch1;
|
|
2438
|
+
if (n.touch1 && !n.touch0 && (n.touch0 = n.touch1, delete n.touch1), n.touch0) n.touch0[1] = this.__zoom.invert(n.touch0[0]);
|
|
2439
|
+
else if (n.end(), n.taps === 2 && (s = pointer_default(s, this), Math.hypot(f[0] - s[0], f[1] - s[1]) < _)) {
|
|
2440
|
+
var c = select_default$1(this).on("dblclick.zoom");
|
|
2441
|
+
c && c.apply(this, arguments);
|
|
2442
|
+
}
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
return zoom.wheelDelta = function(e) {
|
|
2446
|
+
return arguments.length ? (r = typeof e == "function" ? e : J(+e), zoom) : r;
|
|
2447
|
+
}, zoom.filter = function(t) {
|
|
2448
|
+
return arguments.length ? (e = typeof t == "function" ? t : J(!!t), zoom) : e;
|
|
2449
|
+
}, zoom.touchable = function(e) {
|
|
2450
|
+
return arguments.length ? (a = typeof e == "function" ? e : J(!!e), zoom) : a;
|
|
2451
|
+
}, zoom.extent = function(e) {
|
|
2452
|
+
return arguments.length ? (t = typeof e == "function" ? e : J([[+e[0][0], +e[0][1]], [+e[1][0], +e[1][1]]]), zoom) : t;
|
|
2453
|
+
}, zoom.scaleExtent = function(e) {
|
|
2454
|
+
return arguments.length ? (o[0] = +e[0], o[1] = +e[1], zoom) : [o[0], o[1]];
|
|
2455
|
+
}, zoom.translateExtent = function(e) {
|
|
2456
|
+
return arguments.length ? (s[0][0] = +e[0][0], s[1][0] = +e[1][0], s[0][1] = +e[0][1], s[1][1] = +e[1][1], zoom) : [[s[0][0], s[0][1]], [s[1][0], s[1][1]]];
|
|
2457
|
+
}, zoom.constrain = function(e) {
|
|
2458
|
+
return arguments.length ? (n = e, zoom) : n;
|
|
2459
|
+
}, zoom.duration = function(e) {
|
|
2460
|
+
return arguments.length ? (c = +e, zoom) : c;
|
|
2461
|
+
}, zoom.interpolate = function(e) {
|
|
2462
|
+
return arguments.length ? (l = e, zoom) : l;
|
|
2463
|
+
}, zoom.on = function() {
|
|
2464
|
+
var e = u.on.apply(u, arguments);
|
|
2465
|
+
return e === u ? zoom : e;
|
|
2466
|
+
}, zoom.clickDistance = function(e) {
|
|
2467
|
+
return arguments.length ? (g = (e = +e) * e, zoom) : Math.sqrt(g);
|
|
2468
|
+
}, zoom.tapDistance = function(e) {
|
|
2469
|
+
return arguments.length ? (_ = +e, zoom) : _;
|
|
2470
|
+
}, zoom;
|
|
2471
|
+
}
|
|
2472
|
+
e(zoom_default, "default");
|
|
2473
|
+
//#endregion
|
|
2474
|
+
//#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.js
|
|
2475
|
+
function constant_default(e) {
|
|
2476
|
+
return function constant() {
|
|
2477
|
+
return e;
|
|
2478
|
+
};
|
|
2479
|
+
}
|
|
2480
|
+
e(constant_default, "default");
|
|
2481
|
+
var X = Math.PI;
|
|
2482
|
+
X / 2, 2 * X;
|
|
2483
|
+
//#endregion
|
|
2484
|
+
//#region ../../node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path/src/path.js
|
|
2485
|
+
var Z = Math.PI, Q = 2 * Z, $ = 1e-6, ae = Q - $;
|
|
2486
|
+
function append(e) {
|
|
2487
|
+
this._ += e[0];
|
|
2488
|
+
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
|
|
2489
|
+
}
|
|
2490
|
+
function appendRound(e) {
|
|
2491
|
+
let t = Math.floor(e);
|
|
2492
|
+
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
|
|
2493
|
+
if (t > 15) return append;
|
|
2494
|
+
let n = 10 ** t;
|
|
2495
|
+
return function(e) {
|
|
2496
|
+
this._ += e[0];
|
|
2497
|
+
for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];
|
|
2498
|
+
};
|
|
2499
|
+
}
|
|
2500
|
+
var Path = class {
|
|
2501
|
+
constructor(e) {
|
|
2502
|
+
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? append : appendRound(e);
|
|
2503
|
+
}
|
|
2504
|
+
moveTo(e, t) {
|
|
2505
|
+
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
|
|
2506
|
+
}
|
|
2507
|
+
closePath() {
|
|
2508
|
+
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
|
|
2509
|
+
}
|
|
2510
|
+
lineTo(e, t) {
|
|
2511
|
+
this._append`L${this._x1 = +e},${this._y1 = +t}`;
|
|
2512
|
+
}
|
|
2513
|
+
quadraticCurveTo(e, t, n, r) {
|
|
2514
|
+
this._append`Q${+e},${+t},${this._x1 = +n},${this._y1 = +r}`;
|
|
2515
|
+
}
|
|
2516
|
+
bezierCurveTo(e, t, n, r, a, o) {
|
|
2517
|
+
this._append`C${+e},${+t},${+n},${+r},${this._x1 = +a},${this._y1 = +o}`;
|
|
2518
|
+
}
|
|
2519
|
+
arcTo(e, t, n, r, a) {
|
|
2520
|
+
if (e = +e, t = +t, n = +n, r = +r, a = +a, a < 0) throw Error(`negative radius: ${a}`);
|
|
2521
|
+
let o = this._x1, s = this._y1, c = n - e, l = r - t, u = o - e, d = s - t, f = u * u + d * d;
|
|
2522
|
+
if (this._x1 === null) this._append`M${this._x1 = e},${this._y1 = t}`;
|
|
2523
|
+
else if (f > $) if (!(Math.abs(d * c - l * u) > $) || !a) this._append`L${this._x1 = e},${this._y1 = t}`;
|
|
2524
|
+
else {
|
|
2525
|
+
let p = n - o, m = r - s, h = c * c + l * l, g = p * p + m * m, _ = Math.sqrt(h), v = Math.sqrt(f), b = a * Math.tan((Z - Math.acos((h + f - g) / (2 * _ * v))) / 2), S = b / v, C = b / _;
|
|
2526
|
+
Math.abs(S - 1) > $ && this._append`L${e + S * u},${t + S * d}`, this._append`A${a},${a},0,0,${+(d * p > u * m)},${this._x1 = e + C * c},${this._y1 = t + C * l}`;
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2529
|
+
arc(e, t, n, r, a, o) {
|
|
2530
|
+
if (e = +e, t = +t, n = +n, o = !!o, n < 0) throw Error(`negative radius: ${n}`);
|
|
2531
|
+
let s = n * Math.cos(r), c = n * Math.sin(r), l = e + s, u = t + c, d = 1 ^ o, f = o ? r - a : a - r;
|
|
2532
|
+
this._x1 === null ? this._append`M${l},${u}` : (Math.abs(this._x1 - l) > $ || Math.abs(this._y1 - u) > $) && this._append`L${l},${u}`, n && (f < 0 && (f = f % Q + Q), f > ae ? this._append`A${n},${n},0,1,${d},${e - s},${t - c}A${n},${n},0,1,${d},${this._x1 = l},${this._y1 = u}` : f > $ && this._append`A${n},${n},0,${+(f >= Z)},${d},${this._x1 = e + n * Math.cos(a)},${this._y1 = t + n * Math.sin(a)}`);
|
|
2533
|
+
}
|
|
2534
|
+
rect(e, t, n, r) {
|
|
2535
|
+
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
|
|
2536
|
+
}
|
|
2537
|
+
toString() {
|
|
2538
|
+
return this._;
|
|
2539
|
+
}
|
|
2540
|
+
};
|
|
2541
|
+
function path() {
|
|
2542
|
+
return new Path();
|
|
2543
|
+
}
|
|
2544
|
+
path.prototype = Path.prototype;
|
|
2545
|
+
//#endregion
|
|
2546
|
+
//#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.js
|
|
2547
|
+
function withPath(e) {
|
|
2548
|
+
let t = 3;
|
|
2549
|
+
return e.digits = function(n) {
|
|
2550
|
+
if (!arguments.length) return t;
|
|
2551
|
+
if (n == null) t = null;
|
|
2552
|
+
else {
|
|
2553
|
+
let e = Math.floor(n);
|
|
2554
|
+
if (!(e >= 0)) throw RangeError(`invalid digits: ${n}`);
|
|
2555
|
+
t = e;
|
|
2556
|
+
}
|
|
2557
|
+
return e;
|
|
2558
|
+
}, () => new Path(t);
|
|
2559
|
+
}
|
|
2560
|
+
Array.prototype.slice;
|
|
2561
|
+
function array_default(e) {
|
|
2562
|
+
return typeof e == "object" && "length" in e ? e : Array.from(e);
|
|
2563
|
+
}
|
|
2564
|
+
e(array_default, "default");
|
|
2565
|
+
//#endregion
|
|
2566
|
+
//#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.js
|
|
2567
|
+
function Linear(e) {
|
|
2568
|
+
this._context = e;
|
|
2569
|
+
}
|
|
2570
|
+
Linear.prototype = {
|
|
2571
|
+
areaStart: function() {
|
|
2572
|
+
this._line = 0;
|
|
2573
|
+
},
|
|
2574
|
+
areaEnd: function() {
|
|
2575
|
+
this._line = NaN;
|
|
2576
|
+
},
|
|
2577
|
+
lineStart: function() {
|
|
2578
|
+
this._point = 0;
|
|
2579
|
+
},
|
|
2580
|
+
lineEnd: function() {
|
|
2581
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
2582
|
+
},
|
|
2583
|
+
point: function(e, t) {
|
|
2584
|
+
switch (e = +e, t = +t, this._point) {
|
|
2585
|
+
case 0:
|
|
2586
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
2587
|
+
break;
|
|
2588
|
+
case 1: this._point = 2;
|
|
2589
|
+
default:
|
|
2590
|
+
this._context.lineTo(e, t);
|
|
2591
|
+
break;
|
|
2592
|
+
}
|
|
2593
|
+
}
|
|
2594
|
+
};
|
|
2595
|
+
function linear_default(e) {
|
|
2596
|
+
return new Linear(e);
|
|
2597
|
+
}
|
|
2598
|
+
e(linear_default, "default");
|
|
2599
|
+
//#endregion
|
|
2600
|
+
//#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.js
|
|
2601
|
+
function x(e) {
|
|
2602
|
+
return e[0];
|
|
2603
|
+
}
|
|
2604
|
+
function y(e) {
|
|
2605
|
+
return e[1];
|
|
2606
|
+
}
|
|
2607
|
+
//#endregion
|
|
2608
|
+
//#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.js
|
|
2609
|
+
function line_default(e, t) {
|
|
2610
|
+
var n = constant_default(!0), r = null, a = linear_default, o = null, s = withPath(line);
|
|
2611
|
+
e = typeof e == "function" ? e : e === void 0 ? x : constant_default(e), t = typeof t == "function" ? t : t === void 0 ? y : constant_default(t);
|
|
2612
|
+
function line(c) {
|
|
2613
|
+
var l, u = (c = array_default(c)).length, d, f = !1, p;
|
|
2614
|
+
for (r ?? (o = a(p = s())), l = 0; l <= u; ++l) !(l < u && n(d = c[l], l, c)) === f && ((f = !f) ? o.lineStart() : o.lineEnd()), f && o.point(+e(d, l, c), +t(d, l, c));
|
|
2615
|
+
if (p) return o = null, p + "" || null;
|
|
2616
|
+
}
|
|
2617
|
+
return line.x = function(t) {
|
|
2618
|
+
return arguments.length ? (e = typeof t == "function" ? t : constant_default(+t), line) : e;
|
|
2619
|
+
}, line.y = function(e) {
|
|
2620
|
+
return arguments.length ? (t = typeof e == "function" ? e : constant_default(+e), line) : t;
|
|
2621
|
+
}, line.defined = function(e) {
|
|
2622
|
+
return arguments.length ? (n = typeof e == "function" ? e : constant_default(!!e), line) : n;
|
|
2623
|
+
}, line.curve = function(e) {
|
|
2624
|
+
return arguments.length ? (a = e, r != null && (o = a(r)), line) : a;
|
|
2625
|
+
}, line.context = function(e) {
|
|
2626
|
+
return arguments.length ? (e == null ? r = o = null : o = a(r = e), line) : r;
|
|
2627
|
+
}, line;
|
|
2628
|
+
}
|
|
2629
|
+
e(line_default, "default");
|
|
2630
|
+
//#endregion
|
|
2631
|
+
//#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinal.js
|
|
2632
|
+
function point$1(e, t, n) {
|
|
2633
|
+
e._context.bezierCurveTo(e._x1 + e._k * (e._x2 - e._x0), e._y1 + e._k * (e._y2 - e._y0), e._x2 + e._k * (e._x1 - t), e._y2 + e._k * (e._y1 - n), e._x2, e._y2);
|
|
2634
|
+
}
|
|
2635
|
+
e(point$1, "point");
|
|
2636
|
+
function Cardinal(e, t) {
|
|
2637
|
+
this._context = e, this._k = (1 - t) / 6;
|
|
2638
|
+
}
|
|
2639
|
+
Cardinal.prototype = {
|
|
2640
|
+
areaStart: function() {
|
|
2641
|
+
this._line = 0;
|
|
2642
|
+
},
|
|
2643
|
+
areaEnd: function() {
|
|
2644
|
+
this._line = NaN;
|
|
2645
|
+
},
|
|
2646
|
+
lineStart: function() {
|
|
2647
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
2648
|
+
},
|
|
2649
|
+
lineEnd: function() {
|
|
2650
|
+
switch (this._point) {
|
|
2651
|
+
case 2:
|
|
2652
|
+
this._context.lineTo(this._x2, this._y2);
|
|
2653
|
+
break;
|
|
2654
|
+
case 3:
|
|
2655
|
+
point$1(this, this._x1, this._y1);
|
|
2656
|
+
break;
|
|
2657
|
+
}
|
|
2658
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
2659
|
+
},
|
|
2660
|
+
point: function(e, t) {
|
|
2661
|
+
switch (e = +e, t = +t, this._point) {
|
|
2662
|
+
case 0:
|
|
2663
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
2664
|
+
break;
|
|
2665
|
+
case 1:
|
|
2666
|
+
this._point = 2, this._x1 = e, this._y1 = t;
|
|
2667
|
+
break;
|
|
2668
|
+
case 2: this._point = 3;
|
|
2669
|
+
default:
|
|
2670
|
+
point$1(this, e, t);
|
|
2671
|
+
break;
|
|
2672
|
+
}
|
|
2673
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
2674
|
+
}
|
|
2675
|
+
}, (function custom(e) {
|
|
2676
|
+
function cardinal(t) {
|
|
2677
|
+
return new Cardinal(t, e);
|
|
2678
|
+
}
|
|
2679
|
+
return cardinal.tension = function(e) {
|
|
2680
|
+
return custom(+e);
|
|
2681
|
+
}, cardinal;
|
|
2682
|
+
})(0);
|
|
2683
|
+
//#endregion
|
|
2684
|
+
//#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalOpen.js
|
|
2685
|
+
function CardinalOpen(e, t) {
|
|
2686
|
+
this._context = e, this._k = (1 - t) / 6;
|
|
2687
|
+
}
|
|
2688
|
+
CardinalOpen.prototype = {
|
|
2689
|
+
areaStart: function() {
|
|
2690
|
+
this._line = 0;
|
|
2691
|
+
},
|
|
2692
|
+
areaEnd: function() {
|
|
2693
|
+
this._line = NaN;
|
|
2694
|
+
},
|
|
2695
|
+
lineStart: function() {
|
|
2696
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
2697
|
+
},
|
|
2698
|
+
lineEnd: function() {
|
|
2699
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
2700
|
+
},
|
|
2701
|
+
point: function(e, t) {
|
|
2702
|
+
switch (e = +e, t = +t, this._point) {
|
|
2703
|
+
case 0:
|
|
2704
|
+
this._point = 1;
|
|
2705
|
+
break;
|
|
2706
|
+
case 1:
|
|
2707
|
+
this._point = 2;
|
|
2708
|
+
break;
|
|
2709
|
+
case 2:
|
|
2710
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
2711
|
+
break;
|
|
2712
|
+
case 3: this._point = 4;
|
|
2713
|
+
default:
|
|
2714
|
+
point$1(this, e, t);
|
|
2715
|
+
break;
|
|
2716
|
+
}
|
|
2717
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
2718
|
+
}
|
|
2719
|
+
}, (function custom(e) {
|
|
2720
|
+
function cardinal(t) {
|
|
2721
|
+
return new CardinalOpen(t, e);
|
|
2722
|
+
}
|
|
2723
|
+
return cardinal.tension = function(e) {
|
|
2724
|
+
return custom(+e);
|
|
2725
|
+
}, cardinal;
|
|
2726
|
+
})(0);
|
|
2727
|
+
//#endregion
|
|
2728
|
+
//#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRom.js
|
|
2729
|
+
function point(e, t, n) {
|
|
2730
|
+
var r = e._x1, a = e._y1, o = e._x2, s = e._y2;
|
|
2731
|
+
if (e._l01_a > 1e-12) {
|
|
2732
|
+
var c = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, l = 3 * e._l01_a * (e._l01_a + e._l12_a);
|
|
2733
|
+
r = (r * c - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / l, a = (a * c - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / l;
|
|
2734
|
+
}
|
|
2735
|
+
if (e._l23_a > 1e-12) {
|
|
2736
|
+
var u = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a, d = 3 * e._l23_a * (e._l23_a + e._l12_a);
|
|
2737
|
+
o = (o * u + e._x1 * e._l23_2a - t * e._l12_2a) / d, s = (s * u + e._y1 * e._l23_2a - n * e._l12_2a) / d;
|
|
2738
|
+
}
|
|
2739
|
+
e._context.bezierCurveTo(r, a, o, s, e._x2, e._y2);
|
|
2740
|
+
}
|
|
2741
|
+
function CatmullRom(e, t) {
|
|
2742
|
+
this._context = e, this._alpha = t;
|
|
2743
|
+
}
|
|
2744
|
+
CatmullRom.prototype = {
|
|
2745
|
+
areaStart: function() {
|
|
2746
|
+
this._line = 0;
|
|
2747
|
+
},
|
|
2748
|
+
areaEnd: function() {
|
|
2749
|
+
this._line = NaN;
|
|
2750
|
+
},
|
|
2751
|
+
lineStart: function() {
|
|
2752
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
2753
|
+
},
|
|
2754
|
+
lineEnd: function() {
|
|
2755
|
+
switch (this._point) {
|
|
2756
|
+
case 2:
|
|
2757
|
+
this._context.lineTo(this._x2, this._y2);
|
|
2758
|
+
break;
|
|
2759
|
+
case 3:
|
|
2760
|
+
this.point(this._x2, this._y2);
|
|
2761
|
+
break;
|
|
2762
|
+
}
|
|
2763
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
2764
|
+
},
|
|
2765
|
+
point: function(e, t) {
|
|
2766
|
+
if (e = +e, t = +t, this._point) {
|
|
2767
|
+
var n = this._x2 - e, r = this._y2 - t;
|
|
2768
|
+
this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
|
|
2769
|
+
}
|
|
2770
|
+
switch (this._point) {
|
|
2771
|
+
case 0:
|
|
2772
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
2773
|
+
break;
|
|
2774
|
+
case 1:
|
|
2775
|
+
this._point = 2;
|
|
2776
|
+
break;
|
|
2777
|
+
case 2: this._point = 3;
|
|
2778
|
+
default:
|
|
2779
|
+
point(this, e, t);
|
|
2780
|
+
break;
|
|
2781
|
+
}
|
|
2782
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
2783
|
+
}
|
|
2784
|
+
}, (function custom(e) {
|
|
2785
|
+
function catmullRom(t) {
|
|
2786
|
+
return e ? new CatmullRom(t, e) : new Cardinal(t, 0);
|
|
2787
|
+
}
|
|
2788
|
+
return catmullRom.alpha = function(e) {
|
|
2789
|
+
return custom(+e);
|
|
2790
|
+
}, catmullRom;
|
|
2791
|
+
})(.5);
|
|
2792
|
+
//#endregion
|
|
2793
|
+
//#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomOpen.js
|
|
2794
|
+
function CatmullRomOpen(e, t) {
|
|
2795
|
+
this._context = e, this._alpha = t;
|
|
2796
|
+
}
|
|
2797
|
+
CatmullRomOpen.prototype = {
|
|
2798
|
+
areaStart: function() {
|
|
2799
|
+
this._line = 0;
|
|
2800
|
+
},
|
|
2801
|
+
areaEnd: function() {
|
|
2802
|
+
this._line = NaN;
|
|
2803
|
+
},
|
|
2804
|
+
lineStart: function() {
|
|
2805
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
2806
|
+
},
|
|
2807
|
+
lineEnd: function() {
|
|
2808
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
2809
|
+
},
|
|
2810
|
+
point: function(e, t) {
|
|
2811
|
+
if (e = +e, t = +t, this._point) {
|
|
2812
|
+
var n = this._x2 - e, r = this._y2 - t;
|
|
2813
|
+
this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
|
|
2814
|
+
}
|
|
2815
|
+
switch (this._point) {
|
|
2816
|
+
case 0:
|
|
2817
|
+
this._point = 1;
|
|
2818
|
+
break;
|
|
2819
|
+
case 1:
|
|
2820
|
+
this._point = 2;
|
|
2821
|
+
break;
|
|
2822
|
+
case 2:
|
|
2823
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
2824
|
+
break;
|
|
2825
|
+
case 3: this._point = 4;
|
|
2826
|
+
default:
|
|
2827
|
+
point(this, e, t);
|
|
2828
|
+
break;
|
|
2829
|
+
}
|
|
2830
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
2831
|
+
}
|
|
2832
|
+
};
|
|
2833
|
+
var oe = (function custom(e) {
|
|
2834
|
+
function catmullRom(t) {
|
|
2835
|
+
return e ? new CatmullRomOpen(t, e) : new CardinalOpen(t, 0);
|
|
2836
|
+
}
|
|
2837
|
+
return catmullRom.alpha = function(e) {
|
|
2838
|
+
return custom(+e);
|
|
2839
|
+
}, catmullRom;
|
|
2840
|
+
})(.5);
|
|
2841
|
+
//#endregion
|
|
2842
|
+
export { transform as a, drag_default as c, Y as i, pointer_default as l, line_default as n, P as o, zoom_default as r, value_default as s, oe as t, select_default$1 as u };
|