@altimateai/ui-components 0.0.77-beta.4 → 0.0.77-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CoachForm.css +1 -1
- package/dist/CoachForm.js +62488 -24049
- package/dist/DbtDocsRenderer.js +1 -1
- package/dist/Stack.js +2826 -2276
- package/dist/Switch.js +128 -87
- package/dist/ToggleGroup.js +5956 -4781
- package/dist/_basePickBy.js +60 -60
- package/dist/_baseUniq.js +152 -152
- package/dist/abap.js +6 -0
- package/dist/actionscript-3.js +6 -0
- package/dist/ada.js +6 -0
- package/dist/andromeeda.js +4 -0
- package/dist/angular-html.js +32 -0
- package/dist/angular-ts.js +21 -0
- package/dist/apache.js +6 -0
- package/dist/apex.js +6 -0
- package/dist/apl.js +16 -0
- package/dist/applescript.js +6 -0
- package/dist/ara.js +6 -0
- package/dist/arc.js +53 -53
- package/dist/architectureDiagram-VXUJARFQ.js +480 -4315
- package/dist/architectureDiagram-VXUJARFQ2.js +831 -0
- package/dist/asciidoc.js +6 -0
- package/dist/asm.js +6 -0
- package/dist/assets/icons/index.js +1 -1
- package/dist/astro.js +18 -0
- package/dist/aurora-x.js +4 -0
- package/dist/awk.js +6 -0
- package/dist/ayu-dark.js +4 -0
- package/dist/ballerina.js +6 -0
- package/dist/band.js +46 -0
- package/dist/bat.js +6 -0
- package/dist/beancount.js +6 -0
- package/dist/berry.js +6 -0
- package/dist/bibtex.js +6 -0
- package/dist/bicep.js +6 -0
- package/dist/blade.js +20 -0
- package/dist/blockDiagram-VD42YOAC.js +1 -1
- package/dist/blockDiagram-VD42YOAC2.js +2266 -0
- package/dist/bsl.js +8 -0
- package/dist/c.js +6 -0
- package/dist/c3.js +6 -0
- package/dist/c4Diagram-YG6GDRKO.js +22 -22
- package/dist/c4Diagram-YG6GDRKO2.js +1582 -0
- package/dist/cadence.js +6 -0
- package/dist/cairo.js +8 -0
- package/dist/catppuccin-frappe.js +4 -0
- package/dist/catppuccin-latte.js +4 -0
- package/dist/catppuccin-macchiato.js +4 -0
- package/dist/catppuccin-mocha.js +4 -0
- package/dist/channel.js +2 -2
- package/dist/chatbotV2/index.d.ts +57 -19
- package/dist/chatbotV2/index.js +120 -56
- package/dist/chunk-4BX2VUAB.js +1 -1
- package/dist/chunk-4BX2VUAB2.js +9 -0
- package/dist/chunk-55IACEB6.js +2 -2
- package/dist/chunk-55IACEB62.js +9 -0
- package/dist/chunk-B4BG7PRW.js +1 -1
- package/dist/chunk-B4BG7PRW2.js +1377 -0
- package/dist/chunk-DI55MBZ5.js +14 -14
- package/dist/chunk-DI55MBZ52.js +1382 -0
- package/dist/chunk-FMBD7UC4.js +1 -1
- package/dist/chunk-FMBD7UC42.js +19 -0
- package/dist/chunk-QN33PNHL.js +5 -5
- package/dist/chunk-QN33PNHL2.js +20 -0
- package/dist/chunk-QZHKN3VN.js +1 -1
- package/dist/chunk-QZHKN3VN2.js +15 -0
- package/dist/chunk-TZMSLE5B.js +1 -1
- package/dist/chunk-TZMSLE5B2.js +64 -0
- package/dist/clarity.js +6 -0
- package/dist/classDiagram-2ON5EDUG.js +1 -1
- package/dist/classDiagram-2ON5EDUG2.js +17 -0
- package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
- package/dist/classDiagram-v2-WZHVMYZB2.js +17 -0
- package/dist/clojure.js +6 -0
- package/dist/cmake.js +6 -0
- package/dist/cobol.js +10 -0
- package/dist/code-block-37QAKDTI.js +27 -0
- package/dist/codeowners.js +6 -0
- package/dist/codeql.js +6 -0
- package/dist/coffee.js +8 -0
- package/dist/common-lisp.js +6 -0
- package/dist/coq.js +6 -0
- package/dist/cose-bilkent-S5V4N54A.js +160 -2535
- package/dist/cose-bilkent-S5V4N54A2.js +231 -0
- package/dist/cpp.js +18 -0
- package/dist/crystal.js +18 -0
- package/dist/csharp.js +6 -0
- package/dist/css.js +6 -0
- package/dist/csv.js +6 -0
- package/dist/cue.js +6 -0
- package/dist/cypher.js +6 -0
- package/dist/cytoscape-cose-bilkent.js +2380 -0
- package/dist/cytoscape-fcose.js +3840 -0
- package/dist/d.js +6 -0
- package/dist/dagre-6UL2VRFP.js +44 -44
- package/dist/dagre-6UL2VRFP2.js +447 -0
- package/dist/dark-plus.js +4 -0
- package/dist/dart.js +6 -0
- package/dist/dax.js +6 -0
- package/dist/dayjs.min.js +2 -2
- package/dist/defaultLocale.js +3 -3
- package/dist/desktop.js +6 -0
- package/dist/diagram-PSM6KHXK.js +198 -414
- package/dist/diagram-PSM6KHXK2.js +319 -0
- package/dist/diagram-QEK2KX5R.js +26 -26
- package/dist/diagram-QEK2KX5R2.js +221 -0
- package/dist/diagram-S2PKOQOG.js +12 -12
- package/dist/diagram-S2PKOQOG2.js +143 -0
- package/dist/diff.js +6 -0
- package/dist/docker.js +6 -0
- package/dist/dotenv.js +6 -0
- package/dist/dracula-soft.js +4 -0
- package/dist/dracula.js +4 -0
- package/dist/dream-maker.js +6 -0
- package/dist/edge.js +12 -0
- package/dist/elixir.js +8 -0
- package/dist/elm.js +8 -0
- package/dist/emacs-lisp.js +6 -0
- package/dist/erDiagram-Q2GNP2WA.js +1 -1
- package/dist/erDiagram-Q2GNP2WA2.js +843 -0
- package/dist/erb.js +10 -0
- package/dist/erlang.js +8 -0
- package/dist/everforest-dark.js +4 -0
- package/dist/everforest-light.js +4 -0
- package/dist/fennel.js +6 -0
- package/dist/fish.js +6 -0
- package/dist/flowDiagram-NV44I4VS.js +6 -6
- package/dist/flowDiagram-NV44I4VS2.js +1628 -0
- package/dist/fluent.js +6 -0
- package/dist/fortran-fixed-form.js +8 -0
- package/dist/fortran-free-form.js +6 -0
- package/dist/fsharp.js +8 -0
- package/dist/ganttDiagram-JELNMOA3.js +1788 -0
- package/dist/ganttDiagram-LVOFAZNH.js +843 -1718
- package/dist/gdresource.js +10 -0
- package/dist/gdscript.js +6 -0
- package/dist/gdshader.js +6 -0
- package/dist/genie.js +6 -0
- package/dist/gherkin.js +6 -0
- package/dist/git-commit.js +8 -0
- package/dist/git-rebase.js +8 -0
- package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
- package/dist/gitGraphDiagram-NY62KEGX2.js +713 -0
- package/dist/github-dark-default.js +4 -0
- package/dist/github-dark-dimmed.js +4 -0
- package/dist/github-dark-high-contrast.js +4 -0
- package/dist/github-dark.js +4 -0
- package/dist/github-light-default.js +4 -0
- package/dist/github-light-high-contrast.js +4 -0
- package/dist/github-light.js +4 -0
- package/dist/gleam.js +6 -0
- package/dist/glimmer-js.js +14 -0
- package/dist/glimmer-ts.js +14 -0
- package/dist/glsl.js +8 -0
- package/dist/gn.js +6 -0
- package/dist/gnuplot.js +6 -0
- package/dist/go.js +6 -0
- package/dist/graph.js +17 -18
- package/dist/graph2.js +246 -0
- package/dist/graphql.js +14 -0
- package/dist/groovy.js +6 -0
- package/dist/gruvbox-dark-hard.js +4 -0
- package/dist/gruvbox-dark-medium.js +4 -0
- package/dist/gruvbox-dark-soft.js +4 -0
- package/dist/gruvbox-light-hard.js +4 -0
- package/dist/gruvbox-light-medium.js +4 -0
- package/dist/gruvbox-light-soft.js +4 -0
- package/dist/hack.js +10 -0
- package/dist/haml.js +10 -0
- package/dist/handlebars.js +14 -0
- package/dist/haskell.js +6 -0
- package/dist/haxe.js +6 -0
- package/dist/hcl.js +6 -0
- package/dist/hjson.js +6 -0
- package/dist/hlsl.js +6 -0
- package/dist/houston.js +4 -0
- package/dist/html-derivative.js +8 -0
- package/dist/html.js +10 -0
- package/dist/http.js +14 -0
- package/dist/hurl.js +12 -0
- package/dist/hxml.js +8 -0
- package/dist/hy.js +6 -0
- package/dist/imba.js +6 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +37 -37
- package/dist/index2.js +216 -684
- package/dist/index3.js +689 -0
- package/dist/infoDiagram-F6ZHWCRC.js +14 -14
- package/dist/infoDiagram-WHAUD3N6.js +24 -0
- package/dist/ini.js +6 -0
- package/dist/java.js +6 -0
- package/dist/javascript.js +6 -0
- package/dist/jinja.js +11 -0
- package/dist/jison.js +8 -0
- package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
- package/dist/journeyDiagram-XKPGCS4Q2.js +837 -0
- package/dist/json.js +6 -0
- package/dist/json5.js +6 -0
- package/dist/jsonc.js +6 -0
- package/dist/jsonl.js +6 -0
- package/dist/jsonnet.js +6 -0
- package/dist/jssm.js +6 -0
- package/dist/jsx.js +6 -0
- package/dist/julia.js +16 -0
- package/dist/kanagawa-dragon.js +4 -0
- package/dist/kanagawa-lotus.js +4 -0
- package/dist/kanagawa-wave.js +4 -0
- package/dist/kanban-definition-3W4ZIXB7.js +42 -42
- package/dist/kanban-definition-3W4ZIXB72.js +720 -0
- package/dist/katex2.js +11691 -0
- package/dist/kdl.js +6 -0
- package/dist/kotlin.js +6 -0
- package/dist/kusto.js +6 -0
- package/dist/laserwave.js +4 -0
- package/dist/latex.js +8 -0
- package/dist/layout.js +567 -678
- package/dist/layout2.js +1224 -0
- package/dist/lean.js +6 -0
- package/dist/less.js +6 -0
- package/dist/light-plus.js +4 -0
- package/dist/lineage/index.js +1234 -1241
- package/dist/linear.js +1 -1
- package/dist/liquid.js +14 -0
- package/dist/llvm.js +6 -0
- package/dist/log.js +6 -0
- package/dist/logo.js +6 -0
- package/dist/lua.js +8 -0
- package/dist/luau.js +6 -0
- package/dist/main.css +1 -1
- package/dist/main.js +82 -82
- package/dist/make.js +6 -0
- package/dist/markdown.js +6 -0
- package/dist/marko.js +14 -0
- package/dist/material-theme-darker.js +4 -0
- package/dist/material-theme-lighter.js +4 -0
- package/dist/material-theme-ocean.js +4 -0
- package/dist/material-theme-palenight.js +4 -0
- package/dist/material-theme.js +4 -0
- package/dist/matlab.js +6 -0
- package/dist/mdc.js +12 -0
- package/dist/mdx.js +6 -0
- package/dist/mermaid-4DMBBIKO.js +4 -0
- package/dist/mermaid-parser.core.js +155 -155
- package/dist/mermaid.js +6 -0
- package/dist/min-dark.js +4 -0
- package/dist/min-light.js +4 -0
- package/dist/mindmap-definition-VGOIOE7T.js +28 -28
- package/dist/mindmap-definition-VGOIOE7T2.js +786 -0
- package/dist/mipsasm.js +6 -0
- package/dist/mojo.js +6 -0
- package/dist/monokai.js +4 -0
- package/dist/moonbit.js +6 -0
- package/dist/move.js +6 -0
- package/dist/narrat.js +6 -0
- package/dist/nextflow.js +6 -0
- package/dist/nginx.js +8 -0
- package/dist/night-owl.js +4 -0
- package/dist/nim.js +20 -0
- package/dist/nix.js +9 -0
- package/dist/nord.js +4 -0
- package/dist/nushell.js +6 -0
- package/dist/objective-c.js +6 -0
- package/dist/objective-cpp.js +6 -0
- package/dist/ocaml.js +6 -0
- package/dist/one-dark-pro.js +4 -0
- package/dist/one-light.js +4 -0
- package/dist/openscad.js +6 -0
- package/dist/pascal.js +6 -0
- package/dist/perl.js +16 -0
- package/dist/php.js +18 -0
- package/dist/pie.js +45 -0
- package/dist/pieDiagram-ADFJNKIX.js +68 -108
- package/dist/pieDiagram-ADFJNKIX2.js +123 -0
- package/dist/pkl.js +6 -0
- package/dist/plastic.js +4 -0
- package/dist/plsql.js +6 -0
- package/dist/po.js +6 -0
- package/dist/poimandres.js +4 -0
- package/dist/polar.js +6 -0
- package/dist/postcss.js +6 -0
- package/dist/powerquery.js +6 -0
- package/dist/powershell.js +6 -0
- package/dist/prisma.js +6 -0
- package/dist/prolog.js +6 -0
- package/dist/proto.js +6 -0
- package/dist/pug.js +12 -0
- package/dist/puppet.js +6 -0
- package/dist/purescript.js +6 -0
- package/dist/python.js +6 -0
- package/dist/qml.js +8 -0
- package/dist/qmldir.js +6 -0
- package/dist/qss.js +6 -0
- package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
- package/dist/quadrantDiagram-AYHSOK5B2.js +1025 -0
- package/dist/r.js +6 -0
- package/dist/racket.js +6 -0
- package/dist/raku.js +6 -0
- package/dist/razor.js +10 -0
- package/dist/red.js +4 -0
- package/dist/redux-toolkit.modern.js +563 -555
- package/dist/reg.js +6 -0
- package/dist/regexp.js +6 -0
- package/dist/rel.js +6 -0
- package/dist/requirementDiagram-UZGBJVZJ.js +14 -14
- package/dist/requirementDiagram-UZGBJVZJ2.js +852 -0
- package/dist/riscv.js +6 -0
- package/dist/rose-pine-dawn.js +4 -0
- package/dist/rose-pine-moon.js +4 -0
- package/dist/rose-pine.js +4 -0
- package/dist/rosmsg.js +6 -0
- package/dist/rst.js +22 -0
- package/dist/ruby.js +30 -0
- package/dist/rust.js +6 -0
- package/dist/sankeyDiagram-TZEHDZUN.js +229 -622
- package/dist/sankeyDiagram-TZEHDZUN2.js +418 -0
- package/dist/sankeyLinkHorizontal.js +403 -0
- package/dist/sas.js +8 -0
- package/dist/sass.js +6 -0
- package/dist/scala.js +6 -0
- package/dist/scheme.js +6 -0
- package/dist/scss.js +8 -0
- package/dist/sdbl.js +6 -0
- package/dist/sequenceDiagram-WL72ISMW.js +1 -1
- package/dist/sequenceDiagram-WL72ISMW2.js +2523 -0
- package/dist/shadcn/index.d.ts +24 -40
- package/dist/shadcn/index.js +7330 -5516
- package/dist/shaderlab.js +8 -0
- package/dist/shellscript.js +6 -0
- package/dist/shellsession.js +8 -0
- package/dist/slack-dark.js +4 -0
- package/dist/slack-ochin.js +4 -0
- package/dist/smalltalk.js +6 -0
- package/dist/snazzy-light.js +4 -0
- package/dist/solarized-dark.js +4 -0
- package/dist/solarized-light.js +4 -0
- package/dist/solidity.js +6 -0
- package/dist/soy.js +8 -0
- package/dist/sparql.js +8 -0
- package/dist/splunk.js +6 -0
- package/dist/sql.js +6 -0
- package/dist/ssh-config.js +6 -0
- package/dist/stata.js +8 -0
- package/dist/stateDiagram-FKZM4ZOC.js +33 -33
- package/dist/stateDiagram-FKZM4ZOC2.js +264 -0
- package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
- package/dist/stateDiagram-v2-4FDKWEC32.js +17 -0
- package/dist/storybook/Typography.stories.tsx +93 -120
- package/dist/stylus.js +6 -0
- package/dist/svelte.js +14 -0
- package/dist/swift.js +6 -0
- package/dist/synthwave-84.js +4 -0
- package/dist/system-verilog.js +6 -0
- package/dist/systemd.js +6 -0
- package/dist/talonscript.js +6 -0
- package/dist/tasl.js +6 -0
- package/dist/tcl.js +6 -0
- package/dist/templ.js +12 -0
- package/dist/terraform.js +6 -0
- package/dist/tex.js +8 -0
- package/dist/time.js +900 -0
- package/dist/timeline-definition-IT6M3QCI.js +63 -63
- package/dist/timeline-definition-IT6M3QCI2.js +802 -0
- package/dist/tokyo-night.js +4 -0
- package/dist/toml.js +6 -0
- package/dist/ts-tags.js +41 -0
- package/dist/tsv.js +6 -0
- package/dist/tsx.js +6 -0
- package/dist/turtle.js +6 -0
- package/dist/twig.js +18 -0
- package/dist/{types-ByRPUpXR.d.ts → types-BZH4Xw79.d.ts} +1 -1
- package/dist/typescript.js +6 -0
- package/dist/typespec.js +6 -0
- package/dist/typst.js +6 -0
- package/dist/union.js +8 -0
- package/dist/v.js +6 -0
- package/dist/vala.js +6 -0
- package/dist/vb.js +6 -0
- package/dist/verilog.js +6 -0
- package/dist/vesper.js +4 -0
- package/dist/vhdl.js +6 -0
- package/dist/viml.js +6 -0
- package/dist/vitesse-black.js +4 -0
- package/dist/vitesse-dark.js +4 -0
- package/dist/vitesse-light.js +4 -0
- package/dist/vue-html.js +8 -0
- package/dist/vue-vine.js +18 -0
- package/dist/vue.js +31 -0
- package/dist/vyper.js +6 -0
- package/dist/wasm.js +6 -0
- package/dist/wasm2.js +7 -0
- package/dist/wenyan.js +6 -0
- package/dist/wgsl.js +6 -0
- package/dist/wikitext.js +6 -0
- package/dist/wit.js +6 -0
- package/dist/wolfram.js +6 -0
- package/dist/xml.js +8 -0
- package/dist/xsl.js +8 -0
- package/dist/xychartDiagram-PRI3JC2R.js +449 -491
- package/dist/xychartDiagram-PRI3JC2R2.js +1299 -0
- package/dist/yaml.js +6 -0
- package/dist/zenscript.js +6 -0
- package/dist/zig.js +6 -0
- package/dist/zipObject.js +128 -0
- package/package.json +1 -1
|
@@ -1,498 +1,105 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if (e === void 0)
|
|
12
|
-
for (const a of t)
|
|
13
|
-
a != null && (i < a || i === void 0 && a >= a) && (i = a);
|
|
14
|
-
else {
|
|
15
|
-
let a = -1;
|
|
16
|
-
for (let h of t)
|
|
17
|
-
(h = e(h, ++a, t)) != null && (i < h || i === void 0 && h >= h) && (i = h);
|
|
18
|
-
}
|
|
19
|
-
return i;
|
|
20
|
-
}
|
|
21
|
-
function pt(t, e) {
|
|
22
|
-
let i;
|
|
23
|
-
if (e === void 0)
|
|
24
|
-
for (const a of t)
|
|
25
|
-
a != null && (i > a || i === void 0 && a >= a) && (i = a);
|
|
26
|
-
else {
|
|
27
|
-
let a = -1;
|
|
28
|
-
for (let h of t)
|
|
29
|
-
(h = e(h, ++a, t)) != null && (i > h || i === void 0 && h >= h) && (i = h);
|
|
30
|
-
}
|
|
31
|
-
return i;
|
|
32
|
-
}
|
|
33
|
-
function nt(t, e) {
|
|
34
|
-
let i = 0;
|
|
35
|
-
if (e === void 0)
|
|
36
|
-
for (let a of t)
|
|
37
|
-
(a = +a) && (i += a);
|
|
38
|
-
else {
|
|
39
|
-
let a = -1;
|
|
40
|
-
for (let h of t)
|
|
41
|
-
(h = +e(h, ++a, t)) && (i += h);
|
|
42
|
-
}
|
|
43
|
-
return i;
|
|
44
|
-
}
|
|
45
|
-
function Pt(t) {
|
|
46
|
-
return t.target.depth;
|
|
47
|
-
}
|
|
48
|
-
function Ct(t) {
|
|
49
|
-
return t.depth;
|
|
50
|
-
}
|
|
51
|
-
function Ot(t, e) {
|
|
52
|
-
return e - 1 - t.height;
|
|
53
|
-
}
|
|
54
|
-
function mt(t, e) {
|
|
55
|
-
return t.sourceLinks.length ? t.depth : e - 1;
|
|
56
|
-
}
|
|
57
|
-
function Dt(t) {
|
|
58
|
-
return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks, Pt) - 1 : 0;
|
|
59
|
-
}
|
|
60
|
-
function q(t) {
|
|
61
|
-
return function() {
|
|
62
|
-
return t;
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
function ut(t, e) {
|
|
66
|
-
return Q(t.source, e.source) || t.index - e.index;
|
|
67
|
-
}
|
|
68
|
-
function ht(t, e) {
|
|
69
|
-
return Q(t.target, e.target) || t.index - e.index;
|
|
70
|
-
}
|
|
71
|
-
function Q(t, e) {
|
|
72
|
-
return t.y0 - e.y0;
|
|
73
|
-
}
|
|
74
|
-
function it(t) {
|
|
75
|
-
return t.value;
|
|
76
|
-
}
|
|
77
|
-
function $t(t) {
|
|
78
|
-
return t.index;
|
|
79
|
-
}
|
|
80
|
-
function zt(t) {
|
|
81
|
-
return t.nodes;
|
|
82
|
-
}
|
|
83
|
-
function jt(t) {
|
|
84
|
-
return t.links;
|
|
85
|
-
}
|
|
86
|
-
function ft(t, e) {
|
|
87
|
-
const i = t.get(e);
|
|
88
|
-
if (!i) throw new Error("missing: " + e);
|
|
89
|
-
return i;
|
|
90
|
-
}
|
|
91
|
-
function yt({ nodes: t }) {
|
|
92
|
-
for (const e of t) {
|
|
93
|
-
let i = e.y0, a = i;
|
|
94
|
-
for (const h of e.sourceLinks)
|
|
95
|
-
h.y0 = i + h.width / 2, i += h.width;
|
|
96
|
-
for (const h of e.targetLinks)
|
|
97
|
-
h.y1 = a + h.width / 2, a += h.width;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
function Bt() {
|
|
101
|
-
let t = 0, e = 0, i = 1, a = 1, h = 24, d = 8, m, _ = $t, s = mt, o, l, x = zt, v = jt, y = 6;
|
|
102
|
-
function b() {
|
|
103
|
-
const n = { nodes: x.apply(null, arguments), links: v.apply(null, arguments) };
|
|
104
|
-
return M(n), T(n), N(n), C(n), S(n), yt(n), n;
|
|
105
|
-
}
|
|
106
|
-
b.update = function(n) {
|
|
107
|
-
return yt(n), n;
|
|
108
|
-
}, b.nodeId = function(n) {
|
|
109
|
-
return arguments.length ? (_ = typeof n == "function" ? n : q(n), b) : _;
|
|
110
|
-
}, b.nodeAlign = function(n) {
|
|
111
|
-
return arguments.length ? (s = typeof n == "function" ? n : q(n), b) : s;
|
|
112
|
-
}, b.nodeSort = function(n) {
|
|
113
|
-
return arguments.length ? (o = n, b) : o;
|
|
114
|
-
}, b.nodeWidth = function(n) {
|
|
115
|
-
return arguments.length ? (h = +n, b) : h;
|
|
116
|
-
}, b.nodePadding = function(n) {
|
|
117
|
-
return arguments.length ? (d = m = +n, b) : d;
|
|
118
|
-
}, b.nodes = function(n) {
|
|
119
|
-
return arguments.length ? (x = typeof n == "function" ? n : q(n), b) : x;
|
|
120
|
-
}, b.links = function(n) {
|
|
121
|
-
return arguments.length ? (v = typeof n == "function" ? n : q(n), b) : v;
|
|
122
|
-
}, b.linkSort = function(n) {
|
|
123
|
-
return arguments.length ? (l = n, b) : l;
|
|
124
|
-
}, b.size = function(n) {
|
|
125
|
-
return arguments.length ? (t = e = 0, i = +n[0], a = +n[1], b) : [i - t, a - e];
|
|
126
|
-
}, b.extent = function(n) {
|
|
127
|
-
return arguments.length ? (t = +n[0][0], i = +n[1][0], e = +n[0][1], a = +n[1][1], b) : [[t, e], [i, a]];
|
|
128
|
-
}, b.iterations = function(n) {
|
|
129
|
-
return arguments.length ? (y = +n, b) : y;
|
|
130
|
-
};
|
|
131
|
-
function M({ nodes: n, links: f }) {
|
|
132
|
-
for (const [c, r] of n.entries())
|
|
133
|
-
r.index = c, r.sourceLinks = [], r.targetLinks = [];
|
|
134
|
-
const u = new Map(n.map((c, r) => [_(c, r, n), c]));
|
|
135
|
-
for (const [c, r] of f.entries()) {
|
|
136
|
-
r.index = c;
|
|
137
|
-
let { source: k, target: w } = r;
|
|
138
|
-
typeof k != "object" && (k = r.source = ft(u, k)), typeof w != "object" && (w = r.target = ft(u, w)), k.sourceLinks.push(r), w.targetLinks.push(r);
|
|
139
|
-
}
|
|
140
|
-
if (l != null)
|
|
141
|
-
for (const { sourceLinks: c, targetLinks: r } of n)
|
|
142
|
-
c.sort(l), r.sort(l);
|
|
143
|
-
}
|
|
144
|
-
function T({ nodes: n }) {
|
|
145
|
-
for (const f of n)
|
|
146
|
-
f.value = f.fixedValue === void 0 ? Math.max(nt(f.sourceLinks, it), nt(f.targetLinks, it)) : f.fixedValue;
|
|
147
|
-
}
|
|
148
|
-
function N({ nodes: n }) {
|
|
149
|
-
const f = n.length;
|
|
150
|
-
let u = new Set(n), c = /* @__PURE__ */ new Set(), r = 0;
|
|
151
|
-
for (; u.size; ) {
|
|
152
|
-
for (const k of u) {
|
|
153
|
-
k.depth = r;
|
|
154
|
-
for (const { target: w } of k.sourceLinks)
|
|
155
|
-
c.add(w);
|
|
156
|
-
}
|
|
157
|
-
if (++r > f) throw new Error("circular link");
|
|
158
|
-
u = c, c = /* @__PURE__ */ new Set();
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
function C({ nodes: n }) {
|
|
162
|
-
const f = n.length;
|
|
163
|
-
let u = new Set(n), c = /* @__PURE__ */ new Set(), r = 0;
|
|
164
|
-
for (; u.size; ) {
|
|
165
|
-
for (const k of u) {
|
|
166
|
-
k.height = r;
|
|
167
|
-
for (const { source: w } of k.targetLinks)
|
|
168
|
-
c.add(w);
|
|
169
|
-
}
|
|
170
|
-
if (++r > f) throw new Error("circular link");
|
|
171
|
-
u = c, c = /* @__PURE__ */ new Set();
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
function $({ nodes: n }) {
|
|
175
|
-
const f = ct(n, (r) => r.depth) + 1, u = (i - t - h) / (f - 1), c = new Array(f);
|
|
176
|
-
for (const r of n) {
|
|
177
|
-
const k = Math.max(0, Math.min(f - 1, Math.floor(s.call(null, r, f))));
|
|
178
|
-
r.layer = k, r.x0 = t + k * u, r.x1 = r.x0 + h, c[k] ? c[k].push(r) : c[k] = [r];
|
|
179
|
-
}
|
|
180
|
-
if (o) for (const r of c)
|
|
181
|
-
r.sort(o);
|
|
182
|
-
return c;
|
|
183
|
-
}
|
|
184
|
-
function R(n) {
|
|
185
|
-
const f = pt(n, (u) => (a - e - (u.length - 1) * m) / nt(u, it));
|
|
186
|
-
for (const u of n) {
|
|
187
|
-
let c = e;
|
|
188
|
-
for (const r of u) {
|
|
189
|
-
r.y0 = c, r.y1 = c + r.value * f, c = r.y1 + m;
|
|
190
|
-
for (const k of r.sourceLinks)
|
|
191
|
-
k.width = k.value * f;
|
|
192
|
-
}
|
|
193
|
-
c = (a - c + m) / (u.length + 1);
|
|
194
|
-
for (let r = 0; r < u.length; ++r) {
|
|
195
|
-
const k = u[r];
|
|
196
|
-
k.y0 += c * (r + 1), k.y1 += c * (r + 1);
|
|
197
|
-
}
|
|
198
|
-
A(u);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
function S(n) {
|
|
202
|
-
const f = $(n);
|
|
203
|
-
m = Math.min(d, (a - e) / (ct(f, (u) => u.length) - 1)), R(f);
|
|
204
|
-
for (let u = 0; u < y; ++u) {
|
|
205
|
-
const c = Math.pow(0.99, u), r = Math.max(1 - c, (u + 1) / y);
|
|
206
|
-
B(f, c, r), P(f, c, r);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
function P(n, f, u) {
|
|
210
|
-
for (let c = 1, r = n.length; c < r; ++c) {
|
|
211
|
-
const k = n[c];
|
|
212
|
-
for (const w of k) {
|
|
213
|
-
let L = 0, F = 0;
|
|
214
|
-
for (const { source: Y, value: et } of w.targetLinks) {
|
|
215
|
-
let H = et * (w.layer - Y.layer);
|
|
216
|
-
L += z(Y, w) * H, F += H;
|
|
217
|
-
}
|
|
218
|
-
if (!(F > 0)) continue;
|
|
219
|
-
let G = (L / F - w.y0) * f;
|
|
220
|
-
w.y0 += G, w.y1 += G, E(w);
|
|
221
|
-
}
|
|
222
|
-
o === void 0 && k.sort(Q), O(k, u);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
function B(n, f, u) {
|
|
226
|
-
for (let c = n.length, r = c - 2; r >= 0; --r) {
|
|
227
|
-
const k = n[r];
|
|
228
|
-
for (const w of k) {
|
|
229
|
-
let L = 0, F = 0;
|
|
230
|
-
for (const { target: Y, value: et } of w.sourceLinks) {
|
|
231
|
-
let H = et * (Y.layer - w.layer);
|
|
232
|
-
L += I(w, Y) * H, F += H;
|
|
233
|
-
}
|
|
234
|
-
if (!(F > 0)) continue;
|
|
235
|
-
let G = (L / F - w.y0) * f;
|
|
236
|
-
w.y0 += G, w.y1 += G, E(w);
|
|
237
|
-
}
|
|
238
|
-
o === void 0 && k.sort(Q), O(k, u);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
function O(n, f) {
|
|
242
|
-
const u = n.length >> 1, c = n[u];
|
|
243
|
-
g(n, c.y0 - m, u - 1, f), D(n, c.y1 + m, u + 1, f), g(n, a, n.length - 1, f), D(n, e, 0, f);
|
|
244
|
-
}
|
|
245
|
-
function D(n, f, u, c) {
|
|
246
|
-
for (; u < n.length; ++u) {
|
|
247
|
-
const r = n[u], k = (f - r.y0) * c;
|
|
248
|
-
k > 1e-6 && (r.y0 += k, r.y1 += k), f = r.y1 + m;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
function g(n, f, u, c) {
|
|
252
|
-
for (; u >= 0; --u) {
|
|
253
|
-
const r = n[u], k = (r.y1 - f) * c;
|
|
254
|
-
k > 1e-6 && (r.y0 -= k, r.y1 -= k), f = r.y0 - m;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
function E({ sourceLinks: n, targetLinks: f }) {
|
|
258
|
-
if (l === void 0) {
|
|
259
|
-
for (const { source: { sourceLinks: u } } of f)
|
|
260
|
-
u.sort(ht);
|
|
261
|
-
for (const { target: { targetLinks: u } } of n)
|
|
262
|
-
u.sort(ut);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
function A(n) {
|
|
266
|
-
if (l === void 0)
|
|
267
|
-
for (const { sourceLinks: f, targetLinks: u } of n)
|
|
268
|
-
f.sort(ht), u.sort(ut);
|
|
269
|
-
}
|
|
270
|
-
function z(n, f) {
|
|
271
|
-
let u = n.y0 - (n.sourceLinks.length - 1) * m / 2;
|
|
272
|
-
for (const { target: c, width: r } of n.sourceLinks) {
|
|
273
|
-
if (c === f) break;
|
|
274
|
-
u += r + m;
|
|
275
|
-
}
|
|
276
|
-
for (const { source: c, width: r } of f.targetLinks) {
|
|
277
|
-
if (c === n) break;
|
|
278
|
-
u -= r;
|
|
279
|
-
}
|
|
280
|
-
return u;
|
|
281
|
-
}
|
|
282
|
-
function I(n, f) {
|
|
283
|
-
let u = f.y0 - (f.targetLinks.length - 1) * m / 2;
|
|
284
|
-
for (const { source: c, width: r } of f.targetLinks) {
|
|
285
|
-
if (c === n) break;
|
|
286
|
-
u += r + m;
|
|
287
|
-
}
|
|
288
|
-
for (const { target: c, width: r } of n.sourceLinks) {
|
|
289
|
-
if (c === f) break;
|
|
290
|
-
u -= r;
|
|
291
|
-
}
|
|
292
|
-
return u;
|
|
293
|
-
}
|
|
294
|
-
return b;
|
|
295
|
-
}
|
|
296
|
-
var st = Math.PI, rt = 2 * st, V = 1e-6, Rt = rt - V;
|
|
297
|
-
function ot() {
|
|
298
|
-
this._x0 = this._y0 = // start of current subpath
|
|
299
|
-
this._x1 = this._y1 = null, this._ = "";
|
|
300
|
-
}
|
|
301
|
-
function kt() {
|
|
302
|
-
return new ot();
|
|
303
|
-
}
|
|
304
|
-
ot.prototype = kt.prototype = {
|
|
305
|
-
constructor: ot,
|
|
306
|
-
moveTo: function(t, e) {
|
|
307
|
-
this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e);
|
|
308
|
-
},
|
|
309
|
-
closePath: function() {
|
|
310
|
-
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
|
|
311
|
-
},
|
|
312
|
-
lineTo: function(t, e) {
|
|
313
|
-
this._ += "L" + (this._x1 = +t) + "," + (this._y1 = +e);
|
|
314
|
-
},
|
|
315
|
-
quadraticCurveTo: function(t, e, i, a) {
|
|
316
|
-
this._ += "Q" + +t + "," + +e + "," + (this._x1 = +i) + "," + (this._y1 = +a);
|
|
317
|
-
},
|
|
318
|
-
bezierCurveTo: function(t, e, i, a, h, d) {
|
|
319
|
-
this._ += "C" + +t + "," + +e + "," + +i + "," + +a + "," + (this._x1 = +h) + "," + (this._y1 = +d);
|
|
320
|
-
},
|
|
321
|
-
arcTo: function(t, e, i, a, h) {
|
|
322
|
-
t = +t, e = +e, i = +i, a = +a, h = +h;
|
|
323
|
-
var d = this._x1, m = this._y1, _ = i - t, s = a - e, o = d - t, l = m - e, x = o * o + l * l;
|
|
324
|
-
if (h < 0) throw new Error("negative radius: " + h);
|
|
325
|
-
if (this._x1 === null)
|
|
326
|
-
this._ += "M" + (this._x1 = t) + "," + (this._y1 = e);
|
|
327
|
-
else if (x > V) if (!(Math.abs(l * _ - s * o) > V) || !h)
|
|
328
|
-
this._ += "L" + (this._x1 = t) + "," + (this._y1 = e);
|
|
329
|
-
else {
|
|
330
|
-
var v = i - d, y = a - m, b = _ * _ + s * s, M = v * v + y * y, T = Math.sqrt(b), N = Math.sqrt(x), C = h * Math.tan((st - Math.acos((b + x - M) / (2 * T * N))) / 2), $ = C / N, R = C / T;
|
|
331
|
-
Math.abs($ - 1) > V && (this._ += "L" + (t + $ * o) + "," + (e + $ * l)), this._ += "A" + h + "," + h + ",0,0," + +(l * v > o * y) + "," + (this._x1 = t + R * _) + "," + (this._y1 = e + R * s);
|
|
332
|
-
}
|
|
333
|
-
},
|
|
334
|
-
arc: function(t, e, i, a, h, d) {
|
|
335
|
-
t = +t, e = +e, i = +i, d = !!d;
|
|
336
|
-
var m = i * Math.cos(a), _ = i * Math.sin(a), s = t + m, o = e + _, l = 1 ^ d, x = d ? a - h : h - a;
|
|
337
|
-
if (i < 0) throw new Error("negative radius: " + i);
|
|
338
|
-
this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) > V || Math.abs(this._y1 - o) > V) && (this._ += "L" + s + "," + o), i && (x < 0 && (x = x % rt + rt), x > Rt ? this._ += "A" + i + "," + i + ",0,1," + l + "," + (t - m) + "," + (e - _) + "A" + i + "," + i + ",0,1," + l + "," + (this._x1 = s) + "," + (this._y1 = o) : x > V && (this._ += "A" + i + "," + i + ",0," + +(x >= st) + "," + l + "," + (this._x1 = t + i * Math.cos(h)) + "," + (this._y1 = e + i * Math.sin(h))));
|
|
339
|
-
},
|
|
340
|
-
rect: function(t, e, i, a) {
|
|
341
|
-
this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e) + "h" + +i + "v" + +a + "h" + -i + "Z";
|
|
342
|
-
},
|
|
343
|
-
toString: function() {
|
|
344
|
-
return this._;
|
|
345
|
-
}
|
|
346
|
-
};
|
|
347
|
-
function dt(t) {
|
|
348
|
-
return function() {
|
|
349
|
-
return t;
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
function Ft(t) {
|
|
353
|
-
return t[0];
|
|
354
|
-
}
|
|
355
|
-
function Vt(t) {
|
|
356
|
-
return t[1];
|
|
357
|
-
}
|
|
358
|
-
var Wt = Array.prototype.slice;
|
|
359
|
-
function Ut(t) {
|
|
360
|
-
return t.source;
|
|
361
|
-
}
|
|
362
|
-
function Gt(t) {
|
|
363
|
-
return t.target;
|
|
364
|
-
}
|
|
365
|
-
function Yt(t) {
|
|
366
|
-
var e = Ut, i = Gt, a = Ft, h = Vt, d = null;
|
|
367
|
-
function m() {
|
|
368
|
-
var _, s = Wt.call(arguments), o = e.apply(this, s), l = i.apply(this, s);
|
|
369
|
-
if (d || (d = _ = kt()), t(d, +a.apply(this, (s[0] = o, s)), +h.apply(this, s), +a.apply(this, (s[0] = l, s)), +h.apply(this, s)), _) return d = null, _ + "" || null;
|
|
370
|
-
}
|
|
371
|
-
return m.source = function(_) {
|
|
372
|
-
return arguments.length ? (e = _, m) : e;
|
|
373
|
-
}, m.target = function(_) {
|
|
374
|
-
return arguments.length ? (i = _, m) : i;
|
|
375
|
-
}, m.x = function(_) {
|
|
376
|
-
return arguments.length ? (a = typeof _ == "function" ? _ : dt(+_), m) : a;
|
|
377
|
-
}, m.y = function(_) {
|
|
378
|
-
return arguments.length ? (h = typeof _ == "function" ? _ : dt(+_), m) : h;
|
|
379
|
-
}, m.context = function(_) {
|
|
380
|
-
return arguments.length ? (d = _ ?? null, m) : d;
|
|
381
|
-
}, m;
|
|
382
|
-
}
|
|
383
|
-
function Ht(t, e, i, a, h) {
|
|
384
|
-
t.moveTo(e, i), t.bezierCurveTo(e = (e + a) / 2, i, e, h, a, h);
|
|
385
|
-
}
|
|
386
|
-
function Xt() {
|
|
387
|
-
return Yt(Ht);
|
|
388
|
-
}
|
|
389
|
-
function qt(t) {
|
|
390
|
-
return [t.source.x1, t.y0];
|
|
391
|
-
}
|
|
392
|
-
function Qt(t) {
|
|
393
|
-
return [t.target.x0, t.y1];
|
|
394
|
-
}
|
|
395
|
-
function Kt() {
|
|
396
|
-
return Xt().source(qt).target(Qt);
|
|
397
|
-
}
|
|
398
|
-
var at = function() {
|
|
399
|
-
var t = /* @__PURE__ */ p(function(_, s, o, l) {
|
|
400
|
-
for (o = o || {}, l = _.length; l--; o[_[l]] = s) ;
|
|
401
|
-
return o;
|
|
402
|
-
}, "o"), e = [1, 9], i = [1, 10], a = [1, 5, 10, 12], h = {
|
|
403
|
-
trace: /* @__PURE__ */ p(function() {
|
|
1
|
+
import { _ as n, d as B, g as q, s as J, b as Z, c as tt, n as et, m as st, r as nt, e as it, v as rt, X as at } from "./CoachForm.js";
|
|
2
|
+
import { s as F } from "./redux-toolkit.modern.js";
|
|
3
|
+
import { S as ot, d as lt, a as ht, l as ct, r as ut, c as yt, j as pt } from "./sankeyLinkHorizontal.js";
|
|
4
|
+
import { o as ft } from "./ordinal.js";
|
|
5
|
+
var Y = function() {
|
|
6
|
+
var a = /* @__PURE__ */ n(function(_, t, e, s) {
|
|
7
|
+
for (e = e || {}, s = _.length; s--; e[_[s]] = t) ;
|
|
8
|
+
return e;
|
|
9
|
+
}, "o"), h = [1, 9], d = [1, 10], A = [1, 5, 10, 12], w = {
|
|
10
|
+
trace: /* @__PURE__ */ n(function() {
|
|
404
11
|
}, "trace"),
|
|
405
12
|
yy: {},
|
|
406
13
|
symbols_: { error: 2, start: 3, SANKEY: 4, NEWLINE: 5, csv: 6, opt_eof: 7, record: 8, csv_tail: 9, EOF: 10, "field[source]": 11, COMMA: 12, "field[target]": 13, "field[value]": 14, field: 15, escaped: 16, non_escaped: 17, DQUOTE: 18, ESCAPED_TEXT: 19, NON_ESCAPED_TEXT: 20, $accept: 0, $end: 1 },
|
|
407
14
|
terminals_: { 2: "error", 4: "SANKEY", 5: "NEWLINE", 10: "EOF", 11: "field[source]", 12: "COMMA", 13: "field[target]", 14: "field[value]", 18: "DQUOTE", 19: "ESCAPED_TEXT", 20: "NON_ESCAPED_TEXT" },
|
|
408
15
|
productions_: [0, [3, 4], [6, 2], [9, 2], [9, 0], [7, 1], [7, 0], [8, 5], [15, 1], [15, 1], [16, 3], [17, 1]],
|
|
409
|
-
performAction: /* @__PURE__ */
|
|
410
|
-
var
|
|
411
|
-
switch (
|
|
16
|
+
performAction: /* @__PURE__ */ n(function(t, e, s, o, l, r, T) {
|
|
17
|
+
var x = r.length - 1;
|
|
18
|
+
switch (l) {
|
|
412
19
|
case 7:
|
|
413
|
-
const
|
|
414
|
-
|
|
20
|
+
const k = o.findOrCreateNode(r[x - 4].trim().replaceAll('""', '"')), v = o.findOrCreateNode(r[x - 2].trim().replaceAll('""', '"')), M = parseFloat(r[x].trim());
|
|
21
|
+
o.addLink(k, v, M);
|
|
415
22
|
break;
|
|
416
23
|
case 8:
|
|
417
24
|
case 9:
|
|
418
25
|
case 11:
|
|
419
|
-
this.$ =
|
|
26
|
+
this.$ = r[x];
|
|
420
27
|
break;
|
|
421
28
|
case 10:
|
|
422
|
-
this.$ =
|
|
29
|
+
this.$ = r[x - 1];
|
|
423
30
|
break;
|
|
424
31
|
}
|
|
425
32
|
}, "anonymous"),
|
|
426
|
-
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, { 5: [1, 3] }, { 6: 4, 8: 5, 15: 6, 16: 7, 17: 8, 18:
|
|
33
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, { 5: [1, 3] }, { 6: 4, 8: 5, 15: 6, 16: 7, 17: 8, 18: h, 20: d }, { 1: [2, 6], 7: 11, 10: [1, 12] }, a(d, [2, 4], { 9: 13, 5: [1, 14] }), { 12: [1, 15] }, a(A, [2, 8]), a(A, [2, 9]), { 19: [1, 16] }, a(A, [2, 11]), { 1: [2, 1] }, { 1: [2, 5] }, a(d, [2, 2]), { 6: 17, 8: 5, 15: 6, 16: 7, 17: 8, 18: h, 20: d }, { 15: 18, 16: 7, 17: 8, 18: h, 20: d }, { 18: [1, 19] }, a(d, [2, 3]), { 12: [1, 20] }, a(A, [2, 10]), { 15: 21, 16: 7, 17: 8, 18: h, 20: d }, a([1, 5, 10], [2, 7])],
|
|
427
34
|
defaultActions: { 11: [2, 1], 12: [2, 5] },
|
|
428
|
-
parseError: /* @__PURE__ */
|
|
429
|
-
if (
|
|
430
|
-
this.trace(
|
|
35
|
+
parseError: /* @__PURE__ */ n(function(t, e) {
|
|
36
|
+
if (e.recoverable)
|
|
37
|
+
this.trace(t);
|
|
431
38
|
else {
|
|
432
|
-
var
|
|
433
|
-
throw
|
|
39
|
+
var s = new Error(t);
|
|
40
|
+
throw s.hash = e, s;
|
|
434
41
|
}
|
|
435
42
|
}, "parseError"),
|
|
436
|
-
parse: /* @__PURE__ */
|
|
437
|
-
var
|
|
438
|
-
for (var
|
|
439
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
440
|
-
|
|
441
|
-
var
|
|
442
|
-
|
|
443
|
-
var
|
|
444
|
-
typeof
|
|
445
|
-
function
|
|
446
|
-
|
|
43
|
+
parse: /* @__PURE__ */ n(function(t) {
|
|
44
|
+
var e = this, s = [0], o = [], l = [null], r = [], T = this.table, x = "", k = 0, v = 0, M = 2, V = 1, K = r.slice.call(arguments, 1), u = Object.create(this.lexer), b = { yy: {} };
|
|
45
|
+
for (var N in this.yy)
|
|
46
|
+
Object.prototype.hasOwnProperty.call(this.yy, N) && (b.yy[N] = this.yy[N]);
|
|
47
|
+
u.setInput(t, b.yy), b.yy.lexer = u, b.yy.parser = this, typeof u.yylloc > "u" && (u.yylloc = {});
|
|
48
|
+
var I = u.yylloc;
|
|
49
|
+
r.push(I);
|
|
50
|
+
var P = u.options && u.options.ranges;
|
|
51
|
+
typeof b.yy.parseError == "function" ? this.parseError = b.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
52
|
+
function i(f) {
|
|
53
|
+
s.length = s.length - 2 * f, l.length = l.length - f, r.length = r.length - f;
|
|
447
54
|
}
|
|
448
|
-
|
|
449
|
-
function
|
|
450
|
-
var
|
|
451
|
-
return
|
|
55
|
+
n(i, "popStack");
|
|
56
|
+
function y() {
|
|
57
|
+
var f;
|
|
58
|
+
return f = o.pop() || u.lex() || V, typeof f != "number" && (f instanceof Array && (o = f, f = o.pop()), f = e.symbols_[f] || f), f;
|
|
452
59
|
}
|
|
453
|
-
|
|
454
|
-
for (var
|
|
455
|
-
if (
|
|
456
|
-
var
|
|
457
|
-
|
|
458
|
-
for (
|
|
459
|
-
this.terminals_[
|
|
460
|
-
|
|
461
|
-
` +
|
|
462
|
-
Expecting ` +
|
|
463
|
-
text:
|
|
464
|
-
token: this.terminals_[
|
|
465
|
-
line:
|
|
466
|
-
loc:
|
|
467
|
-
expected:
|
|
60
|
+
n(y, "lex");
|
|
61
|
+
for (var p, O, m, G, C = {}, $, S, Q, j; ; ) {
|
|
62
|
+
if (O = s[s.length - 1], this.defaultActions[O] ? m = this.defaultActions[O] : ((p === null || typeof p > "u") && (p = y()), m = T[O] && T[O][p]), typeof m > "u" || !m.length || !m[0]) {
|
|
63
|
+
var X = "";
|
|
64
|
+
j = [];
|
|
65
|
+
for ($ in T[O])
|
|
66
|
+
this.terminals_[$] && $ > M && j.push("'" + this.terminals_[$] + "'");
|
|
67
|
+
u.showPosition ? X = "Parse error on line " + (k + 1) + `:
|
|
68
|
+
` + u.showPosition() + `
|
|
69
|
+
Expecting ` + j.join(", ") + ", got '" + (this.terminals_[p] || p) + "'" : X = "Parse error on line " + (k + 1) + ": Unexpected " + (p == V ? "end of input" : "'" + (this.terminals_[p] || p) + "'"), this.parseError(X, {
|
|
70
|
+
text: u.match,
|
|
71
|
+
token: this.terminals_[p] || p,
|
|
72
|
+
line: u.yylineno,
|
|
73
|
+
loc: I,
|
|
74
|
+
expected: j
|
|
468
75
|
});
|
|
469
76
|
}
|
|
470
|
-
if (
|
|
471
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
472
|
-
switch (
|
|
77
|
+
if (m[0] instanceof Array && m.length > 1)
|
|
78
|
+
throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + p);
|
|
79
|
+
switch (m[0]) {
|
|
473
80
|
case 1:
|
|
474
|
-
|
|
81
|
+
s.push(p), l.push(u.yytext), r.push(u.yylloc), s.push(m[1]), p = null, v = u.yyleng, x = u.yytext, k = u.yylineno, I = u.yylloc;
|
|
475
82
|
break;
|
|
476
83
|
case 2:
|
|
477
|
-
if (
|
|
478
|
-
first_line:
|
|
479
|
-
last_line:
|
|
480
|
-
first_column:
|
|
481
|
-
last_column:
|
|
482
|
-
},
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
]),
|
|
486
|
-
|
|
487
|
-
N,
|
|
488
|
-
T,
|
|
489
|
-
P.yy,
|
|
490
|
-
I[1],
|
|
84
|
+
if (S = this.productions_[m[1]][1], C.$ = l[l.length - S], C._$ = {
|
|
85
|
+
first_line: r[r.length - (S || 1)].first_line,
|
|
86
|
+
last_line: r[r.length - 1].last_line,
|
|
87
|
+
first_column: r[r.length - (S || 1)].first_column,
|
|
88
|
+
last_column: r[r.length - 1].last_column
|
|
89
|
+
}, P && (C._$.range = [
|
|
90
|
+
r[r.length - (S || 1)].range[0],
|
|
91
|
+
r[r.length - 1].range[1]
|
|
92
|
+
]), G = this.performAction.apply(C, [
|
|
93
|
+
x,
|
|
491
94
|
v,
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
95
|
+
k,
|
|
96
|
+
b.yy,
|
|
97
|
+
m[1],
|
|
98
|
+
l,
|
|
99
|
+
r
|
|
100
|
+
].concat(K)), typeof G < "u")
|
|
101
|
+
return G;
|
|
102
|
+
S && (s = s.slice(0, -1 * S * 2), l = l.slice(0, -1 * S), r = r.slice(0, -1 * S)), s.push(this.productions_[m[1]][0]), l.push(C.$), r.push(C._$), Q = T[s[s.length - 2]][s[s.length - 1]], s.push(Q);
|
|
496
103
|
break;
|
|
497
104
|
case 3:
|
|
498
105
|
return !0;
|
|
@@ -500,18 +107,18 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
500
107
|
}
|
|
501
108
|
return !0;
|
|
502
109
|
}, "parse")
|
|
503
|
-
},
|
|
110
|
+
}, c = /* @__PURE__ */ function() {
|
|
504
111
|
var _ = {
|
|
505
112
|
EOF: 1,
|
|
506
|
-
parseError: /* @__PURE__ */
|
|
113
|
+
parseError: /* @__PURE__ */ n(function(e, s) {
|
|
507
114
|
if (this.yy.parser)
|
|
508
|
-
this.yy.parser.parseError(
|
|
115
|
+
this.yy.parser.parseError(e, s);
|
|
509
116
|
else
|
|
510
|
-
throw new Error(
|
|
117
|
+
throw new Error(e);
|
|
511
118
|
}, "parseError"),
|
|
512
119
|
// resets the lexer, sets new input
|
|
513
|
-
setInput: /* @__PURE__ */
|
|
514
|
-
return this.yy =
|
|
120
|
+
setInput: /* @__PURE__ */ n(function(t, e) {
|
|
121
|
+
return this.yy = e || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
515
122
|
first_line: 1,
|
|
516
123
|
first_column: 0,
|
|
517
124
|
last_line: 1,
|
|
@@ -519,32 +126,32 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
519
126
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
520
127
|
}, "setInput"),
|
|
521
128
|
// consumes and returns one char from the input
|
|
522
|
-
input: /* @__PURE__ */
|
|
523
|
-
var
|
|
524
|
-
this.yytext +=
|
|
525
|
-
var
|
|
526
|
-
return
|
|
129
|
+
input: /* @__PURE__ */ n(function() {
|
|
130
|
+
var t = this._input[0];
|
|
131
|
+
this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
|
|
132
|
+
var e = t.match(/(?:\r\n?|\n).*/g);
|
|
133
|
+
return e ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), t;
|
|
527
134
|
}, "input"),
|
|
528
135
|
// unshifts one char (or a string) into the input
|
|
529
|
-
unput: /* @__PURE__ */
|
|
530
|
-
var
|
|
531
|
-
this._input =
|
|
532
|
-
var
|
|
533
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
534
|
-
var
|
|
136
|
+
unput: /* @__PURE__ */ n(function(t) {
|
|
137
|
+
var e = t.length, s = t.split(/(?:\r\n?|\n)/g);
|
|
138
|
+
this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - e), this.offset -= e;
|
|
139
|
+
var o = this.match.split(/(?:\r\n?|\n)/g);
|
|
140
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), s.length - 1 && (this.yylineno -= s.length - 1);
|
|
141
|
+
var l = this.yylloc.range;
|
|
535
142
|
return this.yylloc = {
|
|
536
143
|
first_line: this.yylloc.first_line,
|
|
537
144
|
last_line: this.yylineno + 1,
|
|
538
145
|
first_column: this.yylloc.first_column,
|
|
539
|
-
last_column:
|
|
540
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
146
|
+
last_column: s ? (s.length === o.length ? this.yylloc.first_column : 0) + o[o.length - s.length].length - s[0].length : this.yylloc.first_column - e
|
|
147
|
+
}, this.options.ranges && (this.yylloc.range = [l[0], l[0] + this.yyleng - e]), this.yyleng = this.yytext.length, this;
|
|
541
148
|
}, "unput"),
|
|
542
149
|
// When called from action, caches matched text and appends it on next action
|
|
543
|
-
more: /* @__PURE__ */
|
|
150
|
+
more: /* @__PURE__ */ n(function() {
|
|
544
151
|
return this._more = !0, this;
|
|
545
152
|
}, "more"),
|
|
546
153
|
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
547
|
-
reject: /* @__PURE__ */
|
|
154
|
+
reject: /* @__PURE__ */ n(function() {
|
|
548
155
|
if (this.options.backtrack_lexer)
|
|
549
156
|
this._backtrack = !0;
|
|
550
157
|
else
|
|
@@ -557,29 +164,29 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
557
164
|
return this;
|
|
558
165
|
}, "reject"),
|
|
559
166
|
// retain first n characters of the match
|
|
560
|
-
less: /* @__PURE__ */
|
|
561
|
-
this.unput(this.match.slice(
|
|
167
|
+
less: /* @__PURE__ */ n(function(t) {
|
|
168
|
+
this.unput(this.match.slice(t));
|
|
562
169
|
}, "less"),
|
|
563
170
|
// displays already matched input, i.e. for error messages
|
|
564
|
-
pastInput: /* @__PURE__ */
|
|
565
|
-
var
|
|
566
|
-
return (
|
|
171
|
+
pastInput: /* @__PURE__ */ n(function() {
|
|
172
|
+
var t = this.matched.substr(0, this.matched.length - this.match.length);
|
|
173
|
+
return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
|
|
567
174
|
}, "pastInput"),
|
|
568
175
|
// displays upcoming input, i.e. for error messages
|
|
569
|
-
upcomingInput: /* @__PURE__ */
|
|
570
|
-
var
|
|
571
|
-
return
|
|
176
|
+
upcomingInput: /* @__PURE__ */ n(function() {
|
|
177
|
+
var t = this.match;
|
|
178
|
+
return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
572
179
|
}, "upcomingInput"),
|
|
573
180
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
574
|
-
showPosition: /* @__PURE__ */
|
|
575
|
-
var
|
|
576
|
-
return
|
|
577
|
-
` +
|
|
181
|
+
showPosition: /* @__PURE__ */ n(function() {
|
|
182
|
+
var t = this.pastInput(), e = new Array(t.length + 1).join("-");
|
|
183
|
+
return t + this.upcomingInput() + `
|
|
184
|
+
` + e + "^";
|
|
578
185
|
}, "showPosition"),
|
|
579
186
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
580
|
-
test_match: /* @__PURE__ */
|
|
581
|
-
var
|
|
582
|
-
if (this.options.backtrack_lexer && (
|
|
187
|
+
test_match: /* @__PURE__ */ n(function(t, e) {
|
|
188
|
+
var s, o, l;
|
|
189
|
+
if (this.options.backtrack_lexer && (l = {
|
|
583
190
|
yylineno: this.yylineno,
|
|
584
191
|
yylloc: {
|
|
585
192
|
first_line: this.yylloc.first_line,
|
|
@@ -598,41 +205,41 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
598
205
|
yy: this.yy,
|
|
599
206
|
conditionStack: this.conditionStack.slice(0),
|
|
600
207
|
done: this.done
|
|
601
|
-
}, this.options.ranges && (
|
|
208
|
+
}, this.options.ranges && (l.yylloc.range = this.yylloc.range.slice(0))), o = t[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
|
|
602
209
|
first_line: this.yylloc.last_line,
|
|
603
210
|
last_line: this.yylineno + 1,
|
|
604
211
|
first_column: this.yylloc.last_column,
|
|
605
|
-
last_column:
|
|
606
|
-
}, this.yytext +=
|
|
607
|
-
return
|
|
212
|
+
last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
|
|
213
|
+
}, this.yytext += t[0], this.match += t[0], this.matches = t, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(t[0].length), this.matched += t[0], s = this.performAction.call(this, this.yy, this, e, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), s)
|
|
214
|
+
return s;
|
|
608
215
|
if (this._backtrack) {
|
|
609
|
-
for (var
|
|
610
|
-
this[
|
|
216
|
+
for (var r in l)
|
|
217
|
+
this[r] = l[r];
|
|
611
218
|
return !1;
|
|
612
219
|
}
|
|
613
220
|
return !1;
|
|
614
221
|
}, "test_match"),
|
|
615
222
|
// return next match in input
|
|
616
|
-
next: /* @__PURE__ */
|
|
223
|
+
next: /* @__PURE__ */ n(function() {
|
|
617
224
|
if (this.done)
|
|
618
225
|
return this.EOF;
|
|
619
226
|
this._input || (this.done = !0);
|
|
620
|
-
var
|
|
227
|
+
var t, e, s, o;
|
|
621
228
|
this._more || (this.yytext = "", this.match = "");
|
|
622
|
-
for (var
|
|
623
|
-
if (
|
|
624
|
-
if (
|
|
625
|
-
if (
|
|
626
|
-
return
|
|
229
|
+
for (var l = this._currentRules(), r = 0; r < l.length; r++)
|
|
230
|
+
if (s = this._input.match(this.rules[l[r]]), s && (!e || s[0].length > e[0].length)) {
|
|
231
|
+
if (e = s, o = r, this.options.backtrack_lexer) {
|
|
232
|
+
if (t = this.test_match(s, l[r]), t !== !1)
|
|
233
|
+
return t;
|
|
627
234
|
if (this._backtrack) {
|
|
628
|
-
|
|
235
|
+
e = !1;
|
|
629
236
|
continue;
|
|
630
237
|
} else
|
|
631
238
|
return !1;
|
|
632
239
|
} else if (!this.options.flex)
|
|
633
240
|
break;
|
|
634
241
|
}
|
|
635
|
-
return
|
|
242
|
+
return e ? (t = this.test_match(e, l[o]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
636
243
|
` + this.showPosition(), {
|
|
637
244
|
text: "",
|
|
638
245
|
token: null,
|
|
@@ -640,38 +247,38 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
640
247
|
});
|
|
641
248
|
}, "next"),
|
|
642
249
|
// return next match that has a token
|
|
643
|
-
lex: /* @__PURE__ */
|
|
644
|
-
var
|
|
645
|
-
return
|
|
250
|
+
lex: /* @__PURE__ */ n(function() {
|
|
251
|
+
var e = this.next();
|
|
252
|
+
return e || this.lex();
|
|
646
253
|
}, "lex"),
|
|
647
254
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
648
|
-
begin: /* @__PURE__ */
|
|
649
|
-
this.conditionStack.push(
|
|
255
|
+
begin: /* @__PURE__ */ n(function(e) {
|
|
256
|
+
this.conditionStack.push(e);
|
|
650
257
|
}, "begin"),
|
|
651
258
|
// pop the previously active lexer condition state off the condition stack
|
|
652
|
-
popState: /* @__PURE__ */
|
|
653
|
-
var
|
|
654
|
-
return
|
|
259
|
+
popState: /* @__PURE__ */ n(function() {
|
|
260
|
+
var e = this.conditionStack.length - 1;
|
|
261
|
+
return e > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
655
262
|
}, "popState"),
|
|
656
263
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
657
|
-
_currentRules: /* @__PURE__ */
|
|
264
|
+
_currentRules: /* @__PURE__ */ n(function() {
|
|
658
265
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
659
266
|
}, "_currentRules"),
|
|
660
267
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
661
|
-
topState: /* @__PURE__ */
|
|
662
|
-
return
|
|
268
|
+
topState: /* @__PURE__ */ n(function(e) {
|
|
269
|
+
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
663
270
|
}, "topState"),
|
|
664
271
|
// alias for begin(condition)
|
|
665
|
-
pushState: /* @__PURE__ */
|
|
666
|
-
this.begin(
|
|
272
|
+
pushState: /* @__PURE__ */ n(function(e) {
|
|
273
|
+
this.begin(e);
|
|
667
274
|
}, "pushState"),
|
|
668
275
|
// return the number of states currently on the stack
|
|
669
|
-
stateStackSize: /* @__PURE__ */
|
|
276
|
+
stateStackSize: /* @__PURE__ */ n(function() {
|
|
670
277
|
return this.conditionStack.length;
|
|
671
278
|
}, "stateStackSize"),
|
|
672
279
|
options: { "case-insensitive": !0 },
|
|
673
|
-
performAction: /* @__PURE__ */
|
|
674
|
-
switch (
|
|
280
|
+
performAction: /* @__PURE__ */ n(function(e, s, o, l) {
|
|
281
|
+
switch (o) {
|
|
675
282
|
case 0:
|
|
676
283
|
return this.pushState("csv"), 4;
|
|
677
284
|
case 1:
|
|
@@ -697,115 +304,115 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
697
304
|
};
|
|
698
305
|
return _;
|
|
699
306
|
}();
|
|
700
|
-
|
|
701
|
-
function
|
|
307
|
+
w.lexer = c;
|
|
308
|
+
function g() {
|
|
702
309
|
this.yy = {};
|
|
703
310
|
}
|
|
704
|
-
return
|
|
311
|
+
return n(g, "Parser"), g.prototype = w, w.Parser = g, new g();
|
|
705
312
|
}();
|
|
706
|
-
|
|
707
|
-
var
|
|
708
|
-
|
|
709
|
-
}, "clear"),
|
|
710
|
-
constructor(
|
|
711
|
-
this.source =
|
|
313
|
+
Y.parser = Y;
|
|
314
|
+
var R = Y, z = [], U = [], W = /* @__PURE__ */ new Map(), dt = /* @__PURE__ */ n(() => {
|
|
315
|
+
z = [], U = [], W = /* @__PURE__ */ new Map(), nt();
|
|
316
|
+
}, "clear"), L, gt = (L = class {
|
|
317
|
+
constructor(h, d, A = 0) {
|
|
318
|
+
this.source = h, this.target = d, this.value = A;
|
|
712
319
|
}
|
|
713
|
-
},
|
|
714
|
-
|
|
715
|
-
}, "addLink"),
|
|
716
|
-
constructor(
|
|
717
|
-
this.ID =
|
|
320
|
+
}, n(L, "SankeyLink"), L), mt = /* @__PURE__ */ n((a, h, d) => {
|
|
321
|
+
z.push(new gt(a, h, d));
|
|
322
|
+
}, "addLink"), D, _t = (D = class {
|
|
323
|
+
constructor(h) {
|
|
324
|
+
this.ID = h;
|
|
718
325
|
}
|
|
719
|
-
},
|
|
720
|
-
|
|
721
|
-
let
|
|
722
|
-
return
|
|
723
|
-
}, "findOrCreateNode"),
|
|
724
|
-
nodes:
|
|
725
|
-
links:
|
|
726
|
-
source:
|
|
727
|
-
target:
|
|
728
|
-
value:
|
|
326
|
+
}, n(D, "SankeyNode"), D), xt = /* @__PURE__ */ n((a) => {
|
|
327
|
+
a = it.sanitizeText(a, B());
|
|
328
|
+
let h = W.get(a);
|
|
329
|
+
return h === void 0 && (h = new _t(a), W.set(a, h), U.push(h)), h;
|
|
330
|
+
}, "findOrCreateNode"), kt = /* @__PURE__ */ n(() => U, "getNodes"), vt = /* @__PURE__ */ n(() => z, "getLinks"), bt = /* @__PURE__ */ n(() => ({
|
|
331
|
+
nodes: U.map((a) => ({ id: a.ID })),
|
|
332
|
+
links: z.map((a) => ({
|
|
333
|
+
source: a.source.ID,
|
|
334
|
+
target: a.target.ID,
|
|
335
|
+
value: a.value
|
|
729
336
|
}))
|
|
730
|
-
}), "getGraph"),
|
|
731
|
-
nodesMap:
|
|
732
|
-
getConfig: /* @__PURE__ */
|
|
733
|
-
getNodes:
|
|
734
|
-
getLinks:
|
|
735
|
-
getGraph:
|
|
736
|
-
addLink:
|
|
737
|
-
findOrCreateNode:
|
|
738
|
-
getAccTitle:
|
|
739
|
-
setAccTitle:
|
|
740
|
-
getAccDescription:
|
|
741
|
-
setAccDescription:
|
|
742
|
-
getDiagramTitle:
|
|
743
|
-
setDiagramTitle:
|
|
744
|
-
clear:
|
|
745
|
-
},
|
|
746
|
-
static next(
|
|
747
|
-
return new
|
|
337
|
+
}), "getGraph"), St = {
|
|
338
|
+
nodesMap: W,
|
|
339
|
+
getConfig: /* @__PURE__ */ n(() => B().sankey, "getConfig"),
|
|
340
|
+
getNodes: kt,
|
|
341
|
+
getLinks: vt,
|
|
342
|
+
getGraph: bt,
|
|
343
|
+
addLink: mt,
|
|
344
|
+
findOrCreateNode: xt,
|
|
345
|
+
getAccTitle: q,
|
|
346
|
+
setAccTitle: J,
|
|
347
|
+
getAccDescription: Z,
|
|
348
|
+
setAccDescription: tt,
|
|
349
|
+
getDiagramTitle: et,
|
|
350
|
+
setDiagramTitle: st,
|
|
351
|
+
clear: dt
|
|
352
|
+
}, E, H = (E = class {
|
|
353
|
+
static next(h) {
|
|
354
|
+
return new E(h + ++E.count);
|
|
748
355
|
}
|
|
749
|
-
constructor(
|
|
750
|
-
this.id =
|
|
356
|
+
constructor(h) {
|
|
357
|
+
this.id = h, this.href = `#${h}`;
|
|
751
358
|
}
|
|
752
359
|
toString() {
|
|
753
360
|
return "url(" + this.href + ")";
|
|
754
361
|
}
|
|
755
|
-
},
|
|
756
|
-
left:
|
|
757
|
-
right:
|
|
758
|
-
center:
|
|
759
|
-
justify:
|
|
760
|
-
},
|
|
761
|
-
const { securityLevel:
|
|
362
|
+
}, n(E, "Uid"), E.count = 0, E), Et = {
|
|
363
|
+
left: ct,
|
|
364
|
+
right: ut,
|
|
365
|
+
center: yt,
|
|
366
|
+
justify: pt
|
|
367
|
+
}, At = /* @__PURE__ */ n(function(a, h, d, A) {
|
|
368
|
+
const { securityLevel: w, sankey: c } = B(), g = rt.sankey;
|
|
762
369
|
let _;
|
|
763
|
-
|
|
764
|
-
const
|
|
765
|
-
|
|
370
|
+
w === "sandbox" && (_ = F("#i" + h));
|
|
371
|
+
const t = w === "sandbox" ? F(_.nodes()[0].contentDocument.body) : F("body"), e = w === "sandbox" ? t.select(`[id="${h}"]`) : F(`[id="${h}"]`), s = (c == null ? void 0 : c.width) ?? g.width, o = (c == null ? void 0 : c.height) ?? g.width, l = (c == null ? void 0 : c.useMaxWidth) ?? g.useMaxWidth, r = (c == null ? void 0 : c.nodeAlignment) ?? g.nodeAlignment, T = (c == null ? void 0 : c.prefix) ?? g.prefix, x = (c == null ? void 0 : c.suffix) ?? g.suffix, k = (c == null ? void 0 : c.showValues) ?? g.showValues, v = A.db.getGraph(), M = Et[r];
|
|
372
|
+
ot().nodeId((i) => i.id).nodeWidth(10).nodePadding(10 + (k ? 15 : 0)).nodeAlign(M).extent([
|
|
766
373
|
[0, 0],
|
|
767
|
-
[
|
|
768
|
-
])(
|
|
769
|
-
const
|
|
770
|
-
|
|
771
|
-
return "translate(" +
|
|
772
|
-
}).attr("x", (
|
|
773
|
-
const
|
|
774
|
-
${
|
|
775
|
-
|
|
776
|
-
const
|
|
777
|
-
if (
|
|
778
|
-
const
|
|
779
|
-
|
|
374
|
+
[s, o]
|
|
375
|
+
])(v);
|
|
376
|
+
const u = ft(lt);
|
|
377
|
+
e.append("g").attr("class", "nodes").selectAll(".node").data(v.nodes).join("g").attr("class", "node").attr("id", (i) => (i.uid = H.next("node-")).id).attr("transform", function(i) {
|
|
378
|
+
return "translate(" + i.x0 + "," + i.y0 + ")";
|
|
379
|
+
}).attr("x", (i) => i.x0).attr("y", (i) => i.y0).append("rect").attr("height", (i) => i.y1 - i.y0).attr("width", (i) => i.x1 - i.x0).attr("fill", (i) => u(i.id));
|
|
380
|
+
const b = /* @__PURE__ */ n(({ id: i, value: y }) => k ? `${i}
|
|
381
|
+
${T}${Math.round(y * 100) / 100}${x}` : i, "getText");
|
|
382
|
+
e.append("g").attr("class", "node-labels").attr("font-size", 14).selectAll("text").data(v.nodes).join("text").attr("x", (i) => i.x0 < s / 2 ? i.x1 + 6 : i.x0 - 6).attr("y", (i) => (i.y1 + i.y0) / 2).attr("dy", `${k ? "0" : "0.35"}em`).attr("text-anchor", (i) => i.x0 < s / 2 ? "start" : "end").text(b);
|
|
383
|
+
const N = e.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(v.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), I = (c == null ? void 0 : c.linkColor) ?? "gradient";
|
|
384
|
+
if (I === "gradient") {
|
|
385
|
+
const i = N.append("linearGradient").attr("id", (y) => (y.uid = H.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (y) => y.source.x1).attr("x2", (y) => y.target.x0);
|
|
386
|
+
i.append("stop").attr("offset", "0%").attr("stop-color", (y) => u(y.source.id)), i.append("stop").attr("offset", "100%").attr("stop-color", (y) => u(y.target.id));
|
|
780
387
|
}
|
|
781
|
-
let
|
|
782
|
-
switch (
|
|
388
|
+
let P;
|
|
389
|
+
switch (I) {
|
|
783
390
|
case "gradient":
|
|
784
|
-
|
|
391
|
+
P = /* @__PURE__ */ n((i) => i.uid, "coloring");
|
|
785
392
|
break;
|
|
786
393
|
case "source":
|
|
787
|
-
|
|
394
|
+
P = /* @__PURE__ */ n((i) => u(i.source.id), "coloring");
|
|
788
395
|
break;
|
|
789
396
|
case "target":
|
|
790
|
-
|
|
397
|
+
P = /* @__PURE__ */ n((i) => u(i.target.id), "coloring");
|
|
791
398
|
break;
|
|
792
399
|
default:
|
|
793
|
-
|
|
400
|
+
P = I;
|
|
794
401
|
}
|
|
795
|
-
|
|
796
|
-
}, "draw"),
|
|
797
|
-
draw:
|
|
798
|
-
},
|
|
799
|
-
`).trim(), "prepareTextForParsing"),
|
|
800
|
-
font-family: ${
|
|
801
|
-
}`, "getStyles"),
|
|
802
|
-
|
|
803
|
-
var
|
|
804
|
-
styles:
|
|
805
|
-
parser:
|
|
806
|
-
db:
|
|
807
|
-
renderer:
|
|
402
|
+
N.append("path").attr("d", ht()).attr("stroke", P).attr("stroke-width", (i) => Math.max(1, i.width)), at(void 0, e, 0, l);
|
|
403
|
+
}, "draw"), wt = {
|
|
404
|
+
draw: At
|
|
405
|
+
}, Tt = /* @__PURE__ */ n((a) => a.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
|
|
406
|
+
`).trim(), "prepareTextForParsing"), It = /* @__PURE__ */ n((a) => `.label {
|
|
407
|
+
font-family: ${a.fontFamily};
|
|
408
|
+
}`, "getStyles"), Pt = It, Ot = R.parse.bind(R);
|
|
409
|
+
R.parse = (a) => Ot(Tt(a));
|
|
410
|
+
var Mt = {
|
|
411
|
+
styles: Pt,
|
|
412
|
+
parser: R,
|
|
413
|
+
db: St,
|
|
414
|
+
renderer: wt
|
|
808
415
|
};
|
|
809
416
|
export {
|
|
810
|
-
|
|
417
|
+
Mt as diagram
|
|
811
418
|
};
|