@openbkn/workshop 0.2.2-rc.5 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -13
- package/component.d.ts +10 -0
- package/dist/ActionConfirm-DJ91X3ml.js +236 -0
- package/dist/ActionFailure-ZgPt_3B-.js +37 -0
- package/dist/AgentChat-CRYai8ge.js +1062 -0
- package/dist/AppFormModal-D73ucaHK.js +4282 -0
- package/dist/AppListPage-D87piiOw.js +1364 -0
- package/dist/AskDrawer-BUMYsRnt.js +38 -0
- package/dist/ComputedView-CgYrDbx1.js +3221 -0
- package/dist/ConclusionApply-sjGfoEBY.js +153 -0
- package/dist/CypherEditor-lus6FA5L.js +485 -0
- package/dist/LandingList-6JI6864C.js +230 -0
- package/dist/MenuUnfoldOutlined-Cdg24l2h.js +27 -0
- package/dist/ModelTrial-ClHFGTpQ.js +359 -0
- package/dist/PageRenderer-DBd_g6mN.js +85480 -0
- package/dist/README-DjRyTQSR.js +76 -0
- package/dist/ScenarioApply-DtW_hh47.js +590 -0
- package/dist/SimulateForm-C-i08Jjd.js +153 -0
- package/dist/Subgraph-CnrkH9AN.js +32586 -0
- package/dist/WorkshopLabPage-DiVXQL9e.js +11364 -0
- package/dist/WorkshopRunPage-6hjRUf64.js +253 -0
- package/dist/abnfDiagram-WEYOIA3C-beRNhN3c.js +87 -0
- package/dist/action-type-tool.service-B2B74fKC.js +1060 -0
- package/dist/actionButton-DA5CNEzx.js +94 -0
- package/dist/actionButton.en-US-qjeqA7hs.js +94 -0
- package/dist/agentChat-EoDznd58.js +116 -0
- package/dist/agentChat.en-US-B6-pFd9Y.js +116 -0
- package/dist/alertList-DqditwM8.js +84 -0
- package/dist/alertList.en-US-BAXAgltP.js +84 -0
- package/dist/architectureDiagram-ZHVYKT53-DY2l1qxx.js +4779 -0
- package/dist/asOfSlider-QPvHWUMV.js +83 -0
- package/dist/asOfSlider.en-US-BI4jVfSn.js +83 -0
- package/dist/bkn-agent-execution.service-DVh-SHyl.js +205 -0
- package/dist/blockDiagram-RJAE7QA3-DR0mjN2h.js +1435 -0
- package/dist/c4Diagram-XDPPPE54-DH5zsGug.js +1518 -0
- package/dist/channel-B034hcOF.js +5 -0
- package/dist/china-C6m7zXIv.js +9 -0
- package/dist/chunk-2E7WHVMD-Ba3svxgx.js +664 -0
- package/dist/chunk-2Q5K7J3B-rT4eU6_y.js +15 -0
- package/dist/chunk-4EMNKR2T-C1kQZYHK.js +262 -0
- package/dist/chunk-55XCU76K-dcpLOktb.js +68 -0
- package/dist/chunk-5VM5RSS4-BdpQuzmO.js +19 -0
- package/dist/chunk-JWPE2WC7-CDBrSjU7.js +8 -0
- package/dist/chunk-VQ5W62QI-BiVKc40w.js +19 -0
- package/dist/chunk-XXDRQBXY-CPYrcdVW.js +8 -0
- package/dist/chunk-ZCHMQSOR-BG8OLpvb.js +451 -0
- package/dist/classDiagram-v2-4MYWR3UA-DqbpQpwI.js +1564 -0
- package/dist/component.d-DFoMKuUv.js +179 -0
- package/dist/cose-bilkent-JH36ORCC-CdXk4sPf.js +2609 -0
- package/dist/customComponents-DasaZ6pq.js +4 -0
- package/dist/customComponents.en-US-CkabuCXg.js +79 -0
- package/dist/customParseFormat-C0uLEpdq.js +182 -0
- package/dist/cynefin-EF2NZ3EQ-D7MVnMHu.js +21746 -0
- package/dist/cynefinDiagram-WF24UDRP-BYT_KpDL.js +299 -0
- package/dist/cytoscape.esm-BCV9V6aO.js +18760 -0
- package/dist/d3-scale-DA8IHmf0.js +1841 -0
- package/dist/dagre-NK4GIZVX-l-ghPdM8.js +2154 -0
- package/dist/dateRange-BbkLMg8L.js +79 -0
- package/dist/dateRange.en-US-CV12Q02G.js +79 -0
- package/dist/dayjs.min-DZ-YV8Mv.js +284 -0
- package/dist/diagram-CBK3MWTC-Bt3HiwvA.js +542 -0
- package/dist/diagram-I5XIIV2D-DcbqfBjx.js +150 -0
- package/dist/diagram-ODIL2UCW-9PC1n3n5.js +346 -0
- package/dist/diagram-PFBEJUXE-DGhr2kc7.js +478 -0
- package/dist/diagram-RJA3I4VV-DwzpOjZ_.js +219 -0
- package/dist/diagram-TYUNFSNR-B3Bd3TDU.js +2583 -0
- package/dist/dropdownFilter-DOi_8-ZT.js +76 -0
- package/dist/dropdownFilter.en-US-BiXpvXtF.js +76 -0
- package/dist/ebnfDiagram-V4P3TTPT-E5NN2oKc.js +109 -0
- package/dist/elk-QONTBCTQ-dFjcujl_.js +49170 -0
- package/dist/erDiagram-KYQIGQAA-BMrasBzB.js +1061 -0
- package/dist/eventList-CnsAwfDS.js +115 -0
- package/dist/eventList.en-US-Cof3rCLq.js +115 -0
- package/dist/eventReport-XS-HegnH.js +76 -0
- package/dist/eventReport.en-US-DTx4vzWT.js +76 -0
- package/dist/flowDiagram-IUGLLWBU-BGIBH0q0.js +1769 -0
- package/dist/ganttChart-DEeSvTJA.js +77 -0
- package/dist/ganttChart.en-US-SwRKrnoD.js +77 -0
- package/dist/ganttDiagram-R7GPNTJY-C0tb1Lpp.js +1741 -0
- package/dist/generateCypher-Ch9_lQa6.js +399 -0
- package/dist/gitGraphDiagram-PDYL7XHY-DBqcOa-c.js +815 -0
- package/dist/graph-CKJmgLki.js +1541 -0
- package/dist/index-BA-GzCXt.js +441 -0
- package/dist/infoDiagram-MVDRKAX5-Bwuki4JA.js +24 -0
- package/dist/ishikawaDiagram-HPEHV2GE-Dz4d6ygx.js +622 -0
- package/dist/journeyDiagram-BOSHW7O7-C99m34Bb.js +834 -0
- package/dist/kanban-definition-FNSA4HC5-mdqjODsT.js +724 -0
- package/dist/katex-BsrBVQKd.js +11314 -0
- package/dist/manifest-BjV1PJ6u.js +41 -0
- package/dist/mermaid.core-yQghUlIz.js +17642 -0
- package/dist/metricCards-CSb-_cT2.js +104 -0
- package/dist/metricCards.en-US-BLLhRsQU.js +104 -0
- package/dist/mindmap-definition-6OY57UG3-BZhO2wX4.js +834 -0
- package/dist/modelTrial-Bvb-RhGt.js +137 -0
- package/dist/modelTrial.en-US-DYcuor-G.js +137 -0
- package/dist/models-DekiCOuZ.js +6 -0
- package/dist/object-metric-numeric-vs3BeDkH.js +42 -0
- package/dist/object-metric.service-flZgBMRX.js +233 -0
- package/dist/objectDetail-SQUbp4Py.js +117 -0
- package/dist/objectDetail.en-US-DW3mlONM.js +117 -0
- package/dist/objectList-D99wPtJH.js +97 -0
- package/dist/objectList.en-US-PBBNyVLW.js +97 -0
- package/dist/objectTable-0jsFFMN3.js +127 -0
- package/dist/objectTable.en-US-yWEs8qc_.js +127 -0
- package/dist/pegDiagram-ECIUJNBX-BDa5RfZt.js +95 -0
- package/dist/pieDiagram-GNMPY74T-DNVtzXPv.js +165 -0
- package/dist/pivotTable-CHmQw18-.js +102 -0
- package/dist/pivotTable.en-US-B4uv4P08.js +102 -0
- package/dist/prompt-DYrjlEFr.js +373 -0
- package/dist/quadrantDiagram-D57K4MC3-vK0f2OvQ.js +1023 -0
- package/dist/railroadDiagram-Y72NRBL7-j6ZrTmRp.js +77 -0
- package/dist/regionMap-Cme-JyV_.js +128 -0
- package/dist/regionMap.en-US-Bwr2_p32.js +128 -0
- package/dist/requirementDiagram-EQYSW5RA-DgfEyljA.js +886 -0
- package/dist/sankeyDiagram-SY24JHO5-CImx-IX0.js +1160 -0
- package/dist/scenarioBar-BV43p7n-.js +122 -0
- package/dist/scenarioBar.en-US-5KqMQ2Bg.js +122 -0
- package/dist/scheduleGantt-CTYO-zYP.js +180 -0
- package/dist/scheduleGantt.en-US-hE7mvVUW.js +180 -0
- package/dist/searchBox-Ca7w0f_6.js +67 -0
- package/dist/searchBox.en-US-ArS_XBvB.js +67 -0
- package/dist/segmentedFilter-MhjVcWo0.js +80 -0
- package/dist/segmentedFilter.en-US-BxNrQO5T.js +80 -0
- package/dist/sequenceDiagram-BLEHNHQU-nWmjd1ci.js +2969 -0
- package/dist/sizeCapture-INFHLROL-D3jlbt7h.js +46 -0
- package/dist/stageChain-BxBafwjD.js +74 -0
- package/dist/stageChain.en-US-CP0G27n8.js +74 -0
- package/dist/stateDiagram-v2-A6IESKWZ-DG1ZetEu.js +1514 -0
- package/dist/subgraph-7n4SwliR.js +71 -0
- package/dist/subgraph.en-US-BNvY18IW.js +71 -0
- package/dist/swimlanes-B3ENRKFQ-cCmJE8AU.js +4991 -0
- package/dist/swimlanesDiagram-AYQRV4AK-CtuhyguU.js +14 -0
- package/dist/taskInbox-DGWYeI2b.js +118 -0
- package/dist/taskInbox.en-US-B-OzDmVl.js +118 -0
- package/dist/text-BqSVQKS6.js +78 -0
- package/dist/text.en-US-BhAxy_LE.js +78 -0
- package/dist/timeline-definition-JXYKGLGB-Cc-INsOv.js +1057 -0
- package/dist/trendChart-BjEeRS5_.js +135 -0
- package/dist/trendChart.en-US-BBGqWUKM.js +135 -0
- package/dist/useLabData-Df-jEHKs.js +20470 -0
- package/dist/usecaseDiagram-WPOLBNNX-r8wVjopm.js +7920 -0
- package/dist/vennDiagram-Q3Y3IDCW-BZiOcgrj.js +1579 -0
- package/dist/wardleyDiagram-IVAIDKWA-16jd07C_.js +675 -0
- package/dist/workshop-app-DnHNjBqy.js +86038 -0
- package/dist/workshop-app.css +1 -0
- package/dist/workshop-app.js +4 -0
- package/dist/world-Djau1JyJ.js +9 -0
- package/dist/xychartDiagram-4URNHDU4-C8DwWQNh.js +1460 -0
- package/dist-cli/workshop.js +341 -218
- package/example/host.js +109 -0
- package/example/index.html +93 -0
- package/example/server.mjs +237 -0
- package/index.d.ts +48 -0
- package/lib/validate.js +47 -1
- package/package.json +17 -5
- package/runtime/frame-runtime.js +13 -1
- package/workshop-component.js +32 -12
- package/workshop.js +2 -0
|
@@ -0,0 +1,1160 @@
|
|
|
1
|
+
import { v as Ae, x as Se, s as Le, g as Ee, b as $e, a as Te, _ as u, c as le, E as Me, k as K, aa as Ne, D as Ce, m as Pe } from "./mermaid.core-yQghUlIz.js";
|
|
2
|
+
import "./dayjs.min-DZ-YV8Mv.js";
|
|
3
|
+
import { w as ue, x as W, y as Ie, z as Oe, o as De } from "./d3-scale-DA8IHmf0.js";
|
|
4
|
+
function k(e) {
|
|
5
|
+
for (var a = e.length / 6 | 0, d = new Array(a), r = 0; r < a; ) d[r] = "#" + e.slice(r * 6, ++r * 6);
|
|
6
|
+
return d;
|
|
7
|
+
}
|
|
8
|
+
k("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
|
|
9
|
+
k("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");
|
|
10
|
+
k("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");
|
|
11
|
+
k("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0");
|
|
12
|
+
k("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
|
|
13
|
+
k("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");
|
|
14
|
+
k("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");
|
|
15
|
+
k("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");
|
|
16
|
+
k("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");
|
|
17
|
+
k("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");
|
|
18
|
+
var je = k("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"), A = (e) => Oe(e[e.length - 1]), ze = new Array(3).concat(
|
|
19
|
+
"d8b365f5f5f55ab4ac",
|
|
20
|
+
"a6611adfc27d80cdc1018571",
|
|
21
|
+
"a6611adfc27df5f5f580cdc1018571",
|
|
22
|
+
"8c510ad8b365f6e8c3c7eae55ab4ac01665e",
|
|
23
|
+
"8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e",
|
|
24
|
+
"8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
|
|
25
|
+
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e",
|
|
26
|
+
"5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30",
|
|
27
|
+
"5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30"
|
|
28
|
+
).map(k);
|
|
29
|
+
A(ze);
|
|
30
|
+
var Be = new Array(3).concat(
|
|
31
|
+
"af8dc3f7f7f77fbf7b",
|
|
32
|
+
"7b3294c2a5cfa6dba0008837",
|
|
33
|
+
"7b3294c2a5cff7f7f7a6dba0008837",
|
|
34
|
+
"762a83af8dc3e7d4e8d9f0d37fbf7b1b7837",
|
|
35
|
+
"762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837",
|
|
36
|
+
"762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837",
|
|
37
|
+
"762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
|
|
38
|
+
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b",
|
|
39
|
+
"40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b"
|
|
40
|
+
).map(k);
|
|
41
|
+
A(Be);
|
|
42
|
+
var Fe = new Array(3).concat(
|
|
43
|
+
"e9a3c9f7f7f7a1d76a",
|
|
44
|
+
"d01c8bf1b6dab8e1864dac26",
|
|
45
|
+
"d01c8bf1b6daf7f7f7b8e1864dac26",
|
|
46
|
+
"c51b7de9a3c9fde0efe6f5d0a1d76a4d9221",
|
|
47
|
+
"c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221",
|
|
48
|
+
"c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221",
|
|
49
|
+
"c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221",
|
|
50
|
+
"8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
|
|
51
|
+
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419"
|
|
52
|
+
).map(k);
|
|
53
|
+
A(Fe);
|
|
54
|
+
var Re = new Array(3).concat(
|
|
55
|
+
"998ec3f7f7f7f1a340",
|
|
56
|
+
"5e3c99b2abd2fdb863e66101",
|
|
57
|
+
"5e3c99b2abd2f7f7f7fdb863e66101",
|
|
58
|
+
"542788998ec3d8daebfee0b6f1a340b35806",
|
|
59
|
+
"542788998ec3d8daebf7f7f7fee0b6f1a340b35806",
|
|
60
|
+
"5427888073acb2abd2d8daebfee0b6fdb863e08214b35806",
|
|
61
|
+
"5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806",
|
|
62
|
+
"2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08",
|
|
63
|
+
"2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08"
|
|
64
|
+
).map(k);
|
|
65
|
+
A(Re);
|
|
66
|
+
var Ve = new Array(3).concat(
|
|
67
|
+
"ef8a62f7f7f767a9cf",
|
|
68
|
+
"ca0020f4a58292c5de0571b0",
|
|
69
|
+
"ca0020f4a582f7f7f792c5de0571b0",
|
|
70
|
+
"b2182bef8a62fddbc7d1e5f067a9cf2166ac",
|
|
71
|
+
"b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac",
|
|
72
|
+
"b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac",
|
|
73
|
+
"b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac",
|
|
74
|
+
"67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061",
|
|
75
|
+
"67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061"
|
|
76
|
+
).map(k);
|
|
77
|
+
A(Ve);
|
|
78
|
+
var We = new Array(3).concat(
|
|
79
|
+
"ef8a62ffffff999999",
|
|
80
|
+
"ca0020f4a582bababa404040",
|
|
81
|
+
"ca0020f4a582ffffffbababa404040",
|
|
82
|
+
"b2182bef8a62fddbc7e0e0e09999994d4d4d",
|
|
83
|
+
"b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d",
|
|
84
|
+
"b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d",
|
|
85
|
+
"b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d",
|
|
86
|
+
"67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a",
|
|
87
|
+
"67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a"
|
|
88
|
+
).map(k);
|
|
89
|
+
A(We);
|
|
90
|
+
var Ge = new Array(3).concat(
|
|
91
|
+
"fc8d59ffffbf91bfdb",
|
|
92
|
+
"d7191cfdae61abd9e92c7bb6",
|
|
93
|
+
"d7191cfdae61ffffbfabd9e92c7bb6",
|
|
94
|
+
"d73027fc8d59fee090e0f3f891bfdb4575b4",
|
|
95
|
+
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4",
|
|
96
|
+
"d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4",
|
|
97
|
+
"d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4",
|
|
98
|
+
"a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695",
|
|
99
|
+
"a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695"
|
|
100
|
+
).map(k);
|
|
101
|
+
A(Ge);
|
|
102
|
+
var Ue = new Array(3).concat(
|
|
103
|
+
"fc8d59ffffbf91cf60",
|
|
104
|
+
"d7191cfdae61a6d96a1a9641",
|
|
105
|
+
"d7191cfdae61ffffbfa6d96a1a9641",
|
|
106
|
+
"d73027fc8d59fee08bd9ef8b91cf601a9850",
|
|
107
|
+
"d73027fc8d59fee08bffffbfd9ef8b91cf601a9850",
|
|
108
|
+
"d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
|
|
109
|
+
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850",
|
|
110
|
+
"a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837",
|
|
111
|
+
"a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837"
|
|
112
|
+
).map(k);
|
|
113
|
+
A(Ue);
|
|
114
|
+
var Ye = new Array(3).concat(
|
|
115
|
+
"fc8d59ffffbf99d594",
|
|
116
|
+
"d7191cfdae61abdda42b83ba",
|
|
117
|
+
"d7191cfdae61ffffbfabdda42b83ba",
|
|
118
|
+
"d53e4ffc8d59fee08be6f59899d5943288bd",
|
|
119
|
+
"d53e4ffc8d59fee08bffffbfe6f59899d5943288bd",
|
|
120
|
+
"d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd",
|
|
121
|
+
"d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
|
|
122
|
+
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2",
|
|
123
|
+
"9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2"
|
|
124
|
+
).map(k);
|
|
125
|
+
A(Ye);
|
|
126
|
+
var qe = new Array(3).concat(
|
|
127
|
+
"e5f5f999d8c92ca25f",
|
|
128
|
+
"edf8fbb2e2e266c2a4238b45",
|
|
129
|
+
"edf8fbb2e2e266c2a42ca25f006d2c",
|
|
130
|
+
"edf8fbccece699d8c966c2a42ca25f006d2c",
|
|
131
|
+
"edf8fbccece699d8c966c2a441ae76238b45005824",
|
|
132
|
+
"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824",
|
|
133
|
+
"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b"
|
|
134
|
+
).map(k);
|
|
135
|
+
A(qe);
|
|
136
|
+
var He = new Array(3).concat(
|
|
137
|
+
"e0ecf49ebcda8856a7",
|
|
138
|
+
"edf8fbb3cde38c96c688419d",
|
|
139
|
+
"edf8fbb3cde38c96c68856a7810f7c",
|
|
140
|
+
"edf8fbbfd3e69ebcda8c96c68856a7810f7c",
|
|
141
|
+
"edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b",
|
|
142
|
+
"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b",
|
|
143
|
+
"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b"
|
|
144
|
+
).map(k);
|
|
145
|
+
A(He);
|
|
146
|
+
var Xe = new Array(3).concat(
|
|
147
|
+
"e0f3dba8ddb543a2ca",
|
|
148
|
+
"f0f9e8bae4bc7bccc42b8cbe",
|
|
149
|
+
"f0f9e8bae4bc7bccc443a2ca0868ac",
|
|
150
|
+
"f0f9e8ccebc5a8ddb57bccc443a2ca0868ac",
|
|
151
|
+
"f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e",
|
|
152
|
+
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
|
|
153
|
+
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081"
|
|
154
|
+
).map(k);
|
|
155
|
+
A(Xe);
|
|
156
|
+
var Qe = new Array(3).concat(
|
|
157
|
+
"fee8c8fdbb84e34a33",
|
|
158
|
+
"fef0d9fdcc8afc8d59d7301f",
|
|
159
|
+
"fef0d9fdcc8afc8d59e34a33b30000",
|
|
160
|
+
"fef0d9fdd49efdbb84fc8d59e34a33b30000",
|
|
161
|
+
"fef0d9fdd49efdbb84fc8d59ef6548d7301f990000",
|
|
162
|
+
"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000",
|
|
163
|
+
"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000"
|
|
164
|
+
).map(k);
|
|
165
|
+
A(Qe);
|
|
166
|
+
var Ke = new Array(3).concat(
|
|
167
|
+
"ece2f0a6bddb1c9099",
|
|
168
|
+
"f6eff7bdc9e167a9cf02818a",
|
|
169
|
+
"f6eff7bdc9e167a9cf1c9099016c59",
|
|
170
|
+
"f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
|
|
171
|
+
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450",
|
|
172
|
+
"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450",
|
|
173
|
+
"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636"
|
|
174
|
+
).map(k);
|
|
175
|
+
A(Ke);
|
|
176
|
+
var Ze = new Array(3).concat(
|
|
177
|
+
"ece7f2a6bddb2b8cbe",
|
|
178
|
+
"f1eef6bdc9e174a9cf0570b0",
|
|
179
|
+
"f1eef6bdc9e174a9cf2b8cbe045a8d",
|
|
180
|
+
"f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d",
|
|
181
|
+
"f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b",
|
|
182
|
+
"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b",
|
|
183
|
+
"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858"
|
|
184
|
+
).map(k);
|
|
185
|
+
A(Ze);
|
|
186
|
+
var Je = new Array(3).concat(
|
|
187
|
+
"e7e1efc994c7dd1c77",
|
|
188
|
+
"f1eef6d7b5d8df65b0ce1256",
|
|
189
|
+
"f1eef6d7b5d8df65b0dd1c77980043",
|
|
190
|
+
"f1eef6d4b9dac994c7df65b0dd1c77980043",
|
|
191
|
+
"f1eef6d4b9dac994c7df65b0e7298ace125691003f",
|
|
192
|
+
"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f",
|
|
193
|
+
"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f"
|
|
194
|
+
).map(k);
|
|
195
|
+
A(Je);
|
|
196
|
+
var ef = new Array(3).concat(
|
|
197
|
+
"fde0ddfa9fb5c51b8a",
|
|
198
|
+
"feebe2fbb4b9f768a1ae017e",
|
|
199
|
+
"feebe2fbb4b9f768a1c51b8a7a0177",
|
|
200
|
+
"feebe2fcc5c0fa9fb5f768a1c51b8a7a0177",
|
|
201
|
+
"feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177",
|
|
202
|
+
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
|
|
203
|
+
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a"
|
|
204
|
+
).map(k);
|
|
205
|
+
A(ef);
|
|
206
|
+
var ff = new Array(3).concat(
|
|
207
|
+
"edf8b17fcdbb2c7fb8",
|
|
208
|
+
"ffffcca1dab441b6c4225ea8",
|
|
209
|
+
"ffffcca1dab441b6c42c7fb8253494",
|
|
210
|
+
"ffffccc7e9b47fcdbb41b6c42c7fb8253494",
|
|
211
|
+
"ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84",
|
|
212
|
+
"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84",
|
|
213
|
+
"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58"
|
|
214
|
+
).map(k);
|
|
215
|
+
A(ff);
|
|
216
|
+
var af = new Array(3).concat(
|
|
217
|
+
"f7fcb9addd8e31a354",
|
|
218
|
+
"ffffccc2e69978c679238443",
|
|
219
|
+
"ffffccc2e69978c67931a354006837",
|
|
220
|
+
"ffffccd9f0a3addd8e78c67931a354006837",
|
|
221
|
+
"ffffccd9f0a3addd8e78c67941ab5d238443005a32",
|
|
222
|
+
"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32",
|
|
223
|
+
"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529"
|
|
224
|
+
).map(k);
|
|
225
|
+
A(af);
|
|
226
|
+
var tf = new Array(3).concat(
|
|
227
|
+
"fff7bcfec44fd95f0e",
|
|
228
|
+
"ffffd4fed98efe9929cc4c02",
|
|
229
|
+
"ffffd4fed98efe9929d95f0e993404",
|
|
230
|
+
"ffffd4fee391fec44ffe9929d95f0e993404",
|
|
231
|
+
"ffffd4fee391fec44ffe9929ec7014cc4c028c2d04",
|
|
232
|
+
"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04",
|
|
233
|
+
"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506"
|
|
234
|
+
).map(k);
|
|
235
|
+
A(tf);
|
|
236
|
+
var cf = new Array(3).concat(
|
|
237
|
+
"ffeda0feb24cf03b20",
|
|
238
|
+
"ffffb2fecc5cfd8d3ce31a1c",
|
|
239
|
+
"ffffb2fecc5cfd8d3cf03b20bd0026",
|
|
240
|
+
"ffffb2fed976feb24cfd8d3cf03b20bd0026",
|
|
241
|
+
"ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026",
|
|
242
|
+
"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026",
|
|
243
|
+
"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026"
|
|
244
|
+
).map(k);
|
|
245
|
+
A(cf);
|
|
246
|
+
var df = new Array(3).concat(
|
|
247
|
+
"deebf79ecae13182bd",
|
|
248
|
+
"eff3ffbdd7e76baed62171b5",
|
|
249
|
+
"eff3ffbdd7e76baed63182bd08519c",
|
|
250
|
+
"eff3ffc6dbef9ecae16baed63182bd08519c",
|
|
251
|
+
"eff3ffc6dbef9ecae16baed64292c62171b5084594",
|
|
252
|
+
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
|
|
253
|
+
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b"
|
|
254
|
+
).map(k);
|
|
255
|
+
A(df);
|
|
256
|
+
var nf = new Array(3).concat(
|
|
257
|
+
"e5f5e0a1d99b31a354",
|
|
258
|
+
"edf8e9bae4b374c476238b45",
|
|
259
|
+
"edf8e9bae4b374c47631a354006d2c",
|
|
260
|
+
"edf8e9c7e9c0a1d99b74c47631a354006d2c",
|
|
261
|
+
"edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32",
|
|
262
|
+
"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32",
|
|
263
|
+
"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b"
|
|
264
|
+
).map(k);
|
|
265
|
+
A(nf);
|
|
266
|
+
var rf = new Array(3).concat(
|
|
267
|
+
"f0f0f0bdbdbd636363",
|
|
268
|
+
"f7f7f7cccccc969696525252",
|
|
269
|
+
"f7f7f7cccccc969696636363252525",
|
|
270
|
+
"f7f7f7d9d9d9bdbdbd969696636363252525",
|
|
271
|
+
"f7f7f7d9d9d9bdbdbd969696737373525252252525",
|
|
272
|
+
"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525",
|
|
273
|
+
"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000"
|
|
274
|
+
).map(k);
|
|
275
|
+
A(rf);
|
|
276
|
+
var sf = new Array(3).concat(
|
|
277
|
+
"efedf5bcbddc756bb1",
|
|
278
|
+
"f2f0f7cbc9e29e9ac86a51a3",
|
|
279
|
+
"f2f0f7cbc9e29e9ac8756bb154278f",
|
|
280
|
+
"f2f0f7dadaebbcbddc9e9ac8756bb154278f",
|
|
281
|
+
"f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486",
|
|
282
|
+
"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486",
|
|
283
|
+
"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d"
|
|
284
|
+
).map(k);
|
|
285
|
+
A(sf);
|
|
286
|
+
var bf = new Array(3).concat(
|
|
287
|
+
"fee0d2fc9272de2d26",
|
|
288
|
+
"fee5d9fcae91fb6a4acb181d",
|
|
289
|
+
"fee5d9fcae91fb6a4ade2d26a50f15",
|
|
290
|
+
"fee5d9fcbba1fc9272fb6a4ade2d26a50f15",
|
|
291
|
+
"fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d",
|
|
292
|
+
"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d",
|
|
293
|
+
"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d"
|
|
294
|
+
).map(k);
|
|
295
|
+
A(bf);
|
|
296
|
+
var of = new Array(3).concat(
|
|
297
|
+
"fee6cefdae6be6550d",
|
|
298
|
+
"feeddefdbe85fd8d3cd94701",
|
|
299
|
+
"feeddefdbe85fd8d3ce6550da63603",
|
|
300
|
+
"feeddefdd0a2fdae6bfd8d3ce6550da63603",
|
|
301
|
+
"feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04",
|
|
302
|
+
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
|
|
303
|
+
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704"
|
|
304
|
+
).map(k);
|
|
305
|
+
A(of);
|
|
306
|
+
ue(W(300, 0.5, 0), W(-240, 0.5, 1));
|
|
307
|
+
ue(W(-100, 0.75, 0.35), W(80, 1.5, 0.8));
|
|
308
|
+
ue(W(260, 0.75, 0.35), W(80, 1.5, 0.8));
|
|
309
|
+
W();
|
|
310
|
+
Ie();
|
|
311
|
+
function ae(e) {
|
|
312
|
+
var a = e.length;
|
|
313
|
+
return function(d) {
|
|
314
|
+
return e[Math.max(0, Math.min(a - 1, Math.floor(d * a)))];
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
ae(k("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
|
|
318
|
+
ae(k("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
|
|
319
|
+
ae(k("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
|
|
320
|
+
ae(k("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
|
|
321
|
+
function he(e, a) {
|
|
322
|
+
let d;
|
|
323
|
+
if (a === void 0)
|
|
324
|
+
for (const r of e)
|
|
325
|
+
r != null && (d < r || d === void 0 && r >= r) && (d = r);
|
|
326
|
+
else {
|
|
327
|
+
let r = -1;
|
|
328
|
+
for (let b of e)
|
|
329
|
+
(b = a(b, ++r, e)) != null && (d < b || d === void 0 && b >= b) && (d = b);
|
|
330
|
+
}
|
|
331
|
+
return d;
|
|
332
|
+
}
|
|
333
|
+
function _e(e, a) {
|
|
334
|
+
let d;
|
|
335
|
+
if (a === void 0)
|
|
336
|
+
for (const r of e)
|
|
337
|
+
r != null && (d > r || d === void 0 && r >= r) && (d = r);
|
|
338
|
+
else {
|
|
339
|
+
let r = -1;
|
|
340
|
+
for (let b of e)
|
|
341
|
+
(b = a(b, ++r, e)) != null && (d > b || d === void 0 && b >= b) && (d = b);
|
|
342
|
+
}
|
|
343
|
+
return d;
|
|
344
|
+
}
|
|
345
|
+
function ne(e, a) {
|
|
346
|
+
let d = 0;
|
|
347
|
+
if (a === void 0)
|
|
348
|
+
for (let r of e)
|
|
349
|
+
(r = +r) && (d += r);
|
|
350
|
+
else {
|
|
351
|
+
let r = -1;
|
|
352
|
+
for (let b of e)
|
|
353
|
+
(b = +a(b, ++r, e)) && (d += b);
|
|
354
|
+
}
|
|
355
|
+
return d;
|
|
356
|
+
}
|
|
357
|
+
function lf(e) {
|
|
358
|
+
return e.target.depth;
|
|
359
|
+
}
|
|
360
|
+
function uf(e) {
|
|
361
|
+
return e.depth;
|
|
362
|
+
}
|
|
363
|
+
function hf(e, a) {
|
|
364
|
+
return a - 1 - e.height;
|
|
365
|
+
}
|
|
366
|
+
function ve(e, a) {
|
|
367
|
+
return e.sourceLinks.length ? e.depth : a - 1;
|
|
368
|
+
}
|
|
369
|
+
function yf(e) {
|
|
370
|
+
return e.targetLinks.length ? e.depth : e.sourceLinks.length ? _e(e.sourceLinks, lf) - 1 : 0;
|
|
371
|
+
}
|
|
372
|
+
function Z(e) {
|
|
373
|
+
return function() {
|
|
374
|
+
return e;
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
function ye(e, a) {
|
|
378
|
+
return J(e.source, a.source) || e.index - a.index;
|
|
379
|
+
}
|
|
380
|
+
function pe(e, a) {
|
|
381
|
+
return J(e.target, a.target) || e.index - a.index;
|
|
382
|
+
}
|
|
383
|
+
function J(e, a) {
|
|
384
|
+
return e.y0 - a.y0;
|
|
385
|
+
}
|
|
386
|
+
function re(e) {
|
|
387
|
+
return e.value;
|
|
388
|
+
}
|
|
389
|
+
function pf(e) {
|
|
390
|
+
return e.index;
|
|
391
|
+
}
|
|
392
|
+
function gf(e) {
|
|
393
|
+
return e.nodes;
|
|
394
|
+
}
|
|
395
|
+
function mf(e) {
|
|
396
|
+
return e.links;
|
|
397
|
+
}
|
|
398
|
+
function ge(e, a) {
|
|
399
|
+
const d = e.get(a);
|
|
400
|
+
if (!d) throw new Error("missing: " + a);
|
|
401
|
+
return d;
|
|
402
|
+
}
|
|
403
|
+
function me({ nodes: e }) {
|
|
404
|
+
for (const a of e) {
|
|
405
|
+
let d = a.y0, r = d;
|
|
406
|
+
for (const b of a.sourceLinks)
|
|
407
|
+
b.y0 = d + b.width / 2, d += b.width;
|
|
408
|
+
for (const b of a.targetLinks)
|
|
409
|
+
b.y1 = r + b.width / 2, r += b.width;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
function kf() {
|
|
413
|
+
let e = 0, a = 0, d = 1, r = 1, b = 24, x = 8, y, g = pf, n = ve, i, o, m = gf, _ = mf, h = 6;
|
|
414
|
+
function v() {
|
|
415
|
+
const t = { nodes: m.apply(null, arguments), links: _.apply(null, arguments) };
|
|
416
|
+
return M(t), T(t), N(t), O(t), S(t), me(t), t;
|
|
417
|
+
}
|
|
418
|
+
v.update = function(t) {
|
|
419
|
+
return me(t), t;
|
|
420
|
+
}, v.nodeId = function(t) {
|
|
421
|
+
return arguments.length ? (g = typeof t == "function" ? t : Z(t), v) : g;
|
|
422
|
+
}, v.nodeAlign = function(t) {
|
|
423
|
+
return arguments.length ? (n = typeof t == "function" ? t : Z(t), v) : n;
|
|
424
|
+
}, v.nodeSort = function(t) {
|
|
425
|
+
return arguments.length ? (i = t, v) : i;
|
|
426
|
+
}, v.nodeWidth = function(t) {
|
|
427
|
+
return arguments.length ? (b = +t, v) : b;
|
|
428
|
+
}, v.nodePadding = function(t) {
|
|
429
|
+
return arguments.length ? (x = y = +t, v) : x;
|
|
430
|
+
}, v.nodes = function(t) {
|
|
431
|
+
return arguments.length ? (m = typeof t == "function" ? t : Z(t), v) : m;
|
|
432
|
+
}, v.links = function(t) {
|
|
433
|
+
return arguments.length ? (_ = typeof t == "function" ? t : Z(t), v) : _;
|
|
434
|
+
}, v.linkSort = function(t) {
|
|
435
|
+
return arguments.length ? (o = t, v) : o;
|
|
436
|
+
}, v.size = function(t) {
|
|
437
|
+
return arguments.length ? (e = a = 0, d = +t[0], r = +t[1], v) : [d - e, r - a];
|
|
438
|
+
}, v.extent = function(t) {
|
|
439
|
+
return arguments.length ? (e = +t[0][0], d = +t[1][0], a = +t[0][1], r = +t[1][1], v) : [[e, a], [d, r]];
|
|
440
|
+
}, v.iterations = function(t) {
|
|
441
|
+
return arguments.length ? (h = +t, v) : h;
|
|
442
|
+
};
|
|
443
|
+
function M({ nodes: t, links: l }) {
|
|
444
|
+
for (const [f, c] of t.entries())
|
|
445
|
+
c.index = f, c.sourceLinks = [], c.targetLinks = [];
|
|
446
|
+
const s = new Map(t.map((f, c) => [g(f, c, t), f]));
|
|
447
|
+
for (const [f, c] of l.entries()) {
|
|
448
|
+
c.index = f;
|
|
449
|
+
let { source: p, target: w } = c;
|
|
450
|
+
typeof p != "object" && (p = c.source = ge(s, p)), typeof w != "object" && (w = c.target = ge(s, w)), p.sourceLinks.push(c), w.targetLinks.push(c);
|
|
451
|
+
}
|
|
452
|
+
if (o != null)
|
|
453
|
+
for (const { sourceLinks: f, targetLinks: c } of t)
|
|
454
|
+
f.sort(o), c.sort(o);
|
|
455
|
+
}
|
|
456
|
+
function T({ nodes: t }) {
|
|
457
|
+
for (const l of t)
|
|
458
|
+
l.value = l.fixedValue === void 0 ? Math.max(ne(l.sourceLinks, re), ne(l.targetLinks, re)) : l.fixedValue;
|
|
459
|
+
}
|
|
460
|
+
function N({ nodes: t }) {
|
|
461
|
+
const l = t.length;
|
|
462
|
+
let s = new Set(t), f = /* @__PURE__ */ new Set(), c = 0;
|
|
463
|
+
for (; s.size; ) {
|
|
464
|
+
for (const p of s) {
|
|
465
|
+
p.depth = c;
|
|
466
|
+
for (const { target: w } of p.sourceLinks)
|
|
467
|
+
f.add(w);
|
|
468
|
+
}
|
|
469
|
+
if (++c > l) throw new Error("circular link");
|
|
470
|
+
s = f, f = /* @__PURE__ */ new Set();
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
function O({ nodes: t }) {
|
|
474
|
+
const l = t.length;
|
|
475
|
+
let s = new Set(t), f = /* @__PURE__ */ new Set(), c = 0;
|
|
476
|
+
for (; s.size; ) {
|
|
477
|
+
for (const p of s) {
|
|
478
|
+
p.height = c;
|
|
479
|
+
for (const { source: w } of p.targetLinks)
|
|
480
|
+
f.add(w);
|
|
481
|
+
}
|
|
482
|
+
if (++c > l) throw new Error("circular link");
|
|
483
|
+
s = f, f = /* @__PURE__ */ new Set();
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
function C({ nodes: t }) {
|
|
487
|
+
const l = he(t, (c) => c.depth) + 1, s = (d - e - b) / (l - 1), f = new Array(l);
|
|
488
|
+
for (const c of t) {
|
|
489
|
+
const p = Math.max(0, Math.min(l - 1, Math.floor(n.call(null, c, l))));
|
|
490
|
+
c.layer = p, c.x0 = e + p * s, c.x1 = c.x0 + b, f[p] ? f[p].push(c) : f[p] = [c];
|
|
491
|
+
}
|
|
492
|
+
if (i) for (const c of f)
|
|
493
|
+
c.sort(i);
|
|
494
|
+
return f;
|
|
495
|
+
}
|
|
496
|
+
function z(t) {
|
|
497
|
+
const l = _e(t, (s) => (r - a - (s.length - 1) * y) / ne(s, re));
|
|
498
|
+
for (const s of t) {
|
|
499
|
+
let f = a;
|
|
500
|
+
for (const c of s) {
|
|
501
|
+
c.y0 = f, c.y1 = f + c.value * l, f = c.y1 + y;
|
|
502
|
+
for (const p of c.sourceLinks)
|
|
503
|
+
p.width = p.value * l;
|
|
504
|
+
}
|
|
505
|
+
f = (r - f + y) / (s.length + 1);
|
|
506
|
+
for (let c = 0; c < s.length; ++c) {
|
|
507
|
+
const p = s[c];
|
|
508
|
+
p.y0 += f * (c + 1), p.y1 += f * (c + 1);
|
|
509
|
+
}
|
|
510
|
+
L(s);
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
function S(t) {
|
|
514
|
+
const l = C(t);
|
|
515
|
+
y = Math.min(x, (r - a) / (he(l, (s) => s.length) - 1)), z(l);
|
|
516
|
+
for (let s = 0; s < h; ++s) {
|
|
517
|
+
const f = Math.pow(0.99, s), c = Math.max(1 - f, (s + 1) / h);
|
|
518
|
+
G(l, f, c), P(l, f, c);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
function P(t, l, s) {
|
|
522
|
+
for (let f = 1, c = t.length; f < c; ++f) {
|
|
523
|
+
const p = t[f];
|
|
524
|
+
for (const w of p) {
|
|
525
|
+
let E = 0, R = 0;
|
|
526
|
+
for (const { source: X, value: de } of w.targetLinks) {
|
|
527
|
+
let Q = de * (w.layer - X.layer);
|
|
528
|
+
E += I(X, w) * Q, R += Q;
|
|
529
|
+
}
|
|
530
|
+
if (!(R > 0)) continue;
|
|
531
|
+
let H = (E / R - w.y0) * l;
|
|
532
|
+
w.y0 += H, w.y1 += H, F(w);
|
|
533
|
+
}
|
|
534
|
+
i === void 0 && p.sort(J), B(p, s);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
function G(t, l, s) {
|
|
538
|
+
for (let f = t.length, c = f - 2; c >= 0; --c) {
|
|
539
|
+
const p = t[c];
|
|
540
|
+
for (const w of p) {
|
|
541
|
+
let E = 0, R = 0;
|
|
542
|
+
for (const { target: X, value: de } of w.sourceLinks) {
|
|
543
|
+
let Q = de * (X.layer - w.layer);
|
|
544
|
+
E += $(w, X) * Q, R += Q;
|
|
545
|
+
}
|
|
546
|
+
if (!(R > 0)) continue;
|
|
547
|
+
let H = (E / R - w.y0) * l;
|
|
548
|
+
w.y0 += H, w.y1 += H, F(w);
|
|
549
|
+
}
|
|
550
|
+
i === void 0 && p.sort(J), B(p, s);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
function B(t, l) {
|
|
554
|
+
const s = t.length >> 1, f = t[s];
|
|
555
|
+
D(t, f.y0 - y, s - 1, l), U(t, f.y1 + y, s + 1, l), D(t, r, t.length - 1, l), U(t, a, 0, l);
|
|
556
|
+
}
|
|
557
|
+
function U(t, l, s, f) {
|
|
558
|
+
for (; s < t.length; ++s) {
|
|
559
|
+
const c = t[s], p = (l - c.y0) * f;
|
|
560
|
+
p > 1e-6 && (c.y0 += p, c.y1 += p), l = c.y1 + y;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
function D(t, l, s, f) {
|
|
564
|
+
for (; s >= 0; --s) {
|
|
565
|
+
const c = t[s], p = (c.y1 - l) * f;
|
|
566
|
+
p > 1e-6 && (c.y0 -= p, c.y1 -= p), l = c.y0 - y;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
function F({ sourceLinks: t, targetLinks: l }) {
|
|
570
|
+
if (o === void 0) {
|
|
571
|
+
for (const { source: { sourceLinks: s } } of l)
|
|
572
|
+
s.sort(pe);
|
|
573
|
+
for (const { target: { targetLinks: s } } of t)
|
|
574
|
+
s.sort(ye);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
function L(t) {
|
|
578
|
+
if (o === void 0)
|
|
579
|
+
for (const { sourceLinks: l, targetLinks: s } of t)
|
|
580
|
+
l.sort(pe), s.sort(ye);
|
|
581
|
+
}
|
|
582
|
+
function I(t, l) {
|
|
583
|
+
let s = t.y0 - (t.sourceLinks.length - 1) * y / 2;
|
|
584
|
+
for (const { target: f, width: c } of t.sourceLinks) {
|
|
585
|
+
if (f === l) break;
|
|
586
|
+
s += c + y;
|
|
587
|
+
}
|
|
588
|
+
for (const { source: f, width: c } of l.targetLinks) {
|
|
589
|
+
if (f === t) break;
|
|
590
|
+
s -= c;
|
|
591
|
+
}
|
|
592
|
+
return s;
|
|
593
|
+
}
|
|
594
|
+
function $(t, l) {
|
|
595
|
+
let s = l.y0 - (l.targetLinks.length - 1) * y / 2;
|
|
596
|
+
for (const { source: f, width: c } of l.targetLinks) {
|
|
597
|
+
if (f === t) break;
|
|
598
|
+
s += c + y;
|
|
599
|
+
}
|
|
600
|
+
for (const { target: f, width: c } of t.sourceLinks) {
|
|
601
|
+
if (f === l) break;
|
|
602
|
+
s -= c;
|
|
603
|
+
}
|
|
604
|
+
return s;
|
|
605
|
+
}
|
|
606
|
+
return v;
|
|
607
|
+
}
|
|
608
|
+
var ie = Math.PI, se = 2 * ie, V = 1e-6, xf = se - V;
|
|
609
|
+
function be() {
|
|
610
|
+
this._x0 = this._y0 = // start of current subpath
|
|
611
|
+
this._x1 = this._y1 = null, this._ = "";
|
|
612
|
+
}
|
|
613
|
+
function we() {
|
|
614
|
+
return new be();
|
|
615
|
+
}
|
|
616
|
+
be.prototype = we.prototype = {
|
|
617
|
+
constructor: be,
|
|
618
|
+
moveTo: function(e, a) {
|
|
619
|
+
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +a);
|
|
620
|
+
},
|
|
621
|
+
closePath: function() {
|
|
622
|
+
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
|
|
623
|
+
},
|
|
624
|
+
lineTo: function(e, a) {
|
|
625
|
+
this._ += "L" + (this._x1 = +e) + "," + (this._y1 = +a);
|
|
626
|
+
},
|
|
627
|
+
quadraticCurveTo: function(e, a, d, r) {
|
|
628
|
+
this._ += "Q" + +e + "," + +a + "," + (this._x1 = +d) + "," + (this._y1 = +r);
|
|
629
|
+
},
|
|
630
|
+
bezierCurveTo: function(e, a, d, r, b, x) {
|
|
631
|
+
this._ += "C" + +e + "," + +a + "," + +d + "," + +r + "," + (this._x1 = +b) + "," + (this._y1 = +x);
|
|
632
|
+
},
|
|
633
|
+
arcTo: function(e, a, d, r, b) {
|
|
634
|
+
e = +e, a = +a, d = +d, r = +r, b = +b;
|
|
635
|
+
var x = this._x1, y = this._y1, g = d - e, n = r - a, i = x - e, o = y - a, m = i * i + o * o;
|
|
636
|
+
if (b < 0) throw new Error("negative radius: " + b);
|
|
637
|
+
if (this._x1 === null)
|
|
638
|
+
this._ += "M" + (this._x1 = e) + "," + (this._y1 = a);
|
|
639
|
+
else if (m > V) if (!(Math.abs(o * g - n * i) > V) || !b)
|
|
640
|
+
this._ += "L" + (this._x1 = e) + "," + (this._y1 = a);
|
|
641
|
+
else {
|
|
642
|
+
var _ = d - x, h = r - y, v = g * g + n * n, M = _ * _ + h * h, T = Math.sqrt(v), N = Math.sqrt(m), O = b * Math.tan((ie - Math.acos((v + m - M) / (2 * T * N))) / 2), C = O / N, z = O / T;
|
|
643
|
+
Math.abs(C - 1) > V && (this._ += "L" + (e + C * i) + "," + (a + C * o)), this._ += "A" + b + "," + b + ",0,0," + +(o * _ > i * h) + "," + (this._x1 = e + z * g) + "," + (this._y1 = a + z * n);
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
arc: function(e, a, d, r, b, x) {
|
|
647
|
+
e = +e, a = +a, d = +d, x = !!x;
|
|
648
|
+
var y = d * Math.cos(r), g = d * Math.sin(r), n = e + y, i = a + g, o = 1 ^ x, m = x ? r - b : b - r;
|
|
649
|
+
if (d < 0) throw new Error("negative radius: " + d);
|
|
650
|
+
this._x1 === null ? this._ += "M" + n + "," + i : (Math.abs(this._x1 - n) > V || Math.abs(this._y1 - i) > V) && (this._ += "L" + n + "," + i), d && (m < 0 && (m = m % se + se), m > xf ? this._ += "A" + d + "," + d + ",0,1," + o + "," + (e - y) + "," + (a - g) + "A" + d + "," + d + ",0,1," + o + "," + (this._x1 = n) + "," + (this._y1 = i) : m > V && (this._ += "A" + d + "," + d + ",0," + +(m >= ie) + "," + o + "," + (this._x1 = e + d * Math.cos(b)) + "," + (this._y1 = a + d * Math.sin(b))));
|
|
651
|
+
},
|
|
652
|
+
rect: function(e, a, d, r) {
|
|
653
|
+
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +a) + "h" + +d + "v" + +r + "h" + -d + "Z";
|
|
654
|
+
},
|
|
655
|
+
toString: function() {
|
|
656
|
+
return this._;
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
function ke(e) {
|
|
660
|
+
return function() {
|
|
661
|
+
return e;
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
function _f(e) {
|
|
665
|
+
return e[0];
|
|
666
|
+
}
|
|
667
|
+
function vf(e) {
|
|
668
|
+
return e[1];
|
|
669
|
+
}
|
|
670
|
+
var wf = Array.prototype.slice;
|
|
671
|
+
function Af(e) {
|
|
672
|
+
return e.source;
|
|
673
|
+
}
|
|
674
|
+
function Sf(e) {
|
|
675
|
+
return e.target;
|
|
676
|
+
}
|
|
677
|
+
function Lf(e) {
|
|
678
|
+
var a = Af, d = Sf, r = _f, b = vf, x = null;
|
|
679
|
+
function y() {
|
|
680
|
+
var g, n = wf.call(arguments), i = a.apply(this, n), o = d.apply(this, n);
|
|
681
|
+
if (x || (x = g = we()), e(x, +r.apply(this, (n[0] = i, n)), +b.apply(this, n), +r.apply(this, (n[0] = o, n)), +b.apply(this, n)), g) return x = null, g + "" || null;
|
|
682
|
+
}
|
|
683
|
+
return y.source = function(g) {
|
|
684
|
+
return arguments.length ? (a = g, y) : a;
|
|
685
|
+
}, y.target = function(g) {
|
|
686
|
+
return arguments.length ? (d = g, y) : d;
|
|
687
|
+
}, y.x = function(g) {
|
|
688
|
+
return arguments.length ? (r = typeof g == "function" ? g : ke(+g), y) : r;
|
|
689
|
+
}, y.y = function(g) {
|
|
690
|
+
return arguments.length ? (b = typeof g == "function" ? g : ke(+g), y) : b;
|
|
691
|
+
}, y.context = function(g) {
|
|
692
|
+
return arguments.length ? (x = g ?? null, y) : x;
|
|
693
|
+
}, y;
|
|
694
|
+
}
|
|
695
|
+
function Ef(e, a, d, r, b) {
|
|
696
|
+
e.moveTo(a, d), e.bezierCurveTo(a = (a + r) / 2, d, a, b, r, b);
|
|
697
|
+
}
|
|
698
|
+
function $f() {
|
|
699
|
+
return Lf(Ef);
|
|
700
|
+
}
|
|
701
|
+
function Tf(e) {
|
|
702
|
+
return [e.source.x1, e.y0];
|
|
703
|
+
}
|
|
704
|
+
function Mf(e) {
|
|
705
|
+
return [e.target.x0, e.y1];
|
|
706
|
+
}
|
|
707
|
+
function Nf() {
|
|
708
|
+
return $f().source(Tf).target(Mf);
|
|
709
|
+
}
|
|
710
|
+
var oe = (function() {
|
|
711
|
+
var e = /* @__PURE__ */ u(function(g, n, i, o) {
|
|
712
|
+
for (i = i || {}, o = g.length; o--; i[g[o]] = n) ;
|
|
713
|
+
return i;
|
|
714
|
+
}, "o"), a = [1, 9], d = [1, 10], r = [1, 5, 10, 12], b = {
|
|
715
|
+
trace: /* @__PURE__ */ u(function() {
|
|
716
|
+
}, "trace"),
|
|
717
|
+
yy: {},
|
|
718
|
+
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 },
|
|
719
|
+
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" },
|
|
720
|
+
productions_: [0, [3, 4], [6, 2], [9, 2], [9, 0], [7, 1], [7, 0], [8, 5], [15, 1], [15, 1], [16, 3], [17, 1]],
|
|
721
|
+
performAction: /* @__PURE__ */ u(function(n, i, o, m, _, h, v) {
|
|
722
|
+
var M = h.length - 1;
|
|
723
|
+
switch (_) {
|
|
724
|
+
case 7:
|
|
725
|
+
const T = m.findOrCreateNode(h[M - 4].trim().replaceAll('""', '"')), N = m.findOrCreateNode(h[M - 2].trim().replaceAll('""', '"')), O = parseFloat(h[M].trim());
|
|
726
|
+
m.addLink(T, N, O);
|
|
727
|
+
break;
|
|
728
|
+
case 8:
|
|
729
|
+
case 9:
|
|
730
|
+
case 11:
|
|
731
|
+
this.$ = h[M];
|
|
732
|
+
break;
|
|
733
|
+
case 10:
|
|
734
|
+
this.$ = h[M - 1];
|
|
735
|
+
break;
|
|
736
|
+
}
|
|
737
|
+
}, "anonymous"),
|
|
738
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, { 5: [1, 3] }, { 6: 4, 8: 5, 15: 6, 16: 7, 17: 8, 18: a, 20: d }, { 1: [2, 6], 7: 11, 10: [1, 12] }, e(d, [2, 4], { 9: 13, 5: [1, 14] }), { 12: [1, 15] }, e(r, [2, 8]), e(r, [2, 9]), { 19: [1, 16] }, e(r, [2, 11]), { 1: [2, 1] }, { 1: [2, 5] }, e(d, [2, 2]), { 6: 17, 8: 5, 15: 6, 16: 7, 17: 8, 18: a, 20: d }, { 15: 18, 16: 7, 17: 8, 18: a, 20: d }, { 18: [1, 19] }, e(d, [2, 3]), { 12: [1, 20] }, e(r, [2, 10]), { 15: 21, 16: 7, 17: 8, 18: a, 20: d }, e([1, 5, 10], [2, 7])],
|
|
739
|
+
defaultActions: { 11: [2, 1], 12: [2, 5] },
|
|
740
|
+
parseError: /* @__PURE__ */ u(function(n, i) {
|
|
741
|
+
if (i.recoverable)
|
|
742
|
+
this.trace(n);
|
|
743
|
+
else {
|
|
744
|
+
var o = new Error(n);
|
|
745
|
+
throw o.hash = i, o;
|
|
746
|
+
}
|
|
747
|
+
}, "parseError"),
|
|
748
|
+
parse: /* @__PURE__ */ u(function(n) {
|
|
749
|
+
var i = this, o = [0], m = [], _ = [null], h = [], v = this.table, M = "", T = 0, N = 0, O = 2, C = 1, z = h.slice.call(arguments, 1), S = Object.create(this.lexer), P = { yy: {} };
|
|
750
|
+
for (var G in this.yy)
|
|
751
|
+
Object.prototype.hasOwnProperty.call(this.yy, G) && (P.yy[G] = this.yy[G]);
|
|
752
|
+
S.setInput(n, P.yy), P.yy.lexer = S, P.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
|
|
753
|
+
var B = S.yylloc;
|
|
754
|
+
h.push(B);
|
|
755
|
+
var U = S.options && S.options.ranges;
|
|
756
|
+
typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
757
|
+
function D(E) {
|
|
758
|
+
o.length = o.length - 2 * E, _.length = _.length - E, h.length = h.length - E;
|
|
759
|
+
}
|
|
760
|
+
u(D, "popStack");
|
|
761
|
+
function F() {
|
|
762
|
+
var E;
|
|
763
|
+
return E = m.pop() || S.lex() || C, typeof E != "number" && (E instanceof Array && (m = E, E = m.pop()), E = i.symbols_[E] || E), E;
|
|
764
|
+
}
|
|
765
|
+
u(F, "lex");
|
|
766
|
+
for (var L, I, $, t, l = {}, s, f, c, p; ; ) {
|
|
767
|
+
if (I = o[o.length - 1], this.defaultActions[I] ? $ = this.defaultActions[I] : ((L === null || typeof L > "u") && (L = F()), $ = v[I] && v[I][L]), typeof $ > "u" || !$.length || !$[0]) {
|
|
768
|
+
var w = "";
|
|
769
|
+
p = [];
|
|
770
|
+
for (s in v[I])
|
|
771
|
+
this.terminals_[s] && s > O && p.push("'" + this.terminals_[s] + "'");
|
|
772
|
+
S.showPosition ? w = "Parse error on line " + (T + 1) + `:
|
|
773
|
+
` + S.showPosition() + `
|
|
774
|
+
Expecting ` + p.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : w = "Parse error on line " + (T + 1) + ": Unexpected " + (L == C ? "end of input" : "'" + (this.terminals_[L] || L) + "'"), this.parseError(w, {
|
|
775
|
+
text: S.match,
|
|
776
|
+
token: this.terminals_[L] || L,
|
|
777
|
+
line: S.yylineno,
|
|
778
|
+
loc: B,
|
|
779
|
+
expected: p
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
if ($[0] instanceof Array && $.length > 1)
|
|
783
|
+
throw new Error("Parse Error: multiple actions possible at state: " + I + ", token: " + L);
|
|
784
|
+
switch ($[0]) {
|
|
785
|
+
case 1:
|
|
786
|
+
o.push(L), _.push(S.yytext), h.push(S.yylloc), o.push($[1]), L = null, N = S.yyleng, M = S.yytext, T = S.yylineno, B = S.yylloc;
|
|
787
|
+
break;
|
|
788
|
+
case 2:
|
|
789
|
+
if (f = this.productions_[$[1]][1], l.$ = _[_.length - f], l._$ = {
|
|
790
|
+
first_line: h[h.length - (f || 1)].first_line,
|
|
791
|
+
last_line: h[h.length - 1].last_line,
|
|
792
|
+
first_column: h[h.length - (f || 1)].first_column,
|
|
793
|
+
last_column: h[h.length - 1].last_column
|
|
794
|
+
}, U && (l._$.range = [
|
|
795
|
+
h[h.length - (f || 1)].range[0],
|
|
796
|
+
h[h.length - 1].range[1]
|
|
797
|
+
]), t = this.performAction.apply(l, [
|
|
798
|
+
M,
|
|
799
|
+
N,
|
|
800
|
+
T,
|
|
801
|
+
P.yy,
|
|
802
|
+
$[1],
|
|
803
|
+
_,
|
|
804
|
+
h
|
|
805
|
+
].concat(z)), typeof t < "u")
|
|
806
|
+
return t;
|
|
807
|
+
f && (o = o.slice(0, -1 * f * 2), _ = _.slice(0, -1 * f), h = h.slice(0, -1 * f)), o.push(this.productions_[$[1]][0]), _.push(l.$), h.push(l._$), c = v[o[o.length - 2]][o[o.length - 1]], o.push(c);
|
|
808
|
+
break;
|
|
809
|
+
case 3:
|
|
810
|
+
return !0;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
return !0;
|
|
814
|
+
}, "parse")
|
|
815
|
+
}, x = /* @__PURE__ */ (function() {
|
|
816
|
+
var g = {
|
|
817
|
+
EOF: 1,
|
|
818
|
+
parseError: /* @__PURE__ */ u(function(i, o) {
|
|
819
|
+
if (this.yy.parser)
|
|
820
|
+
this.yy.parser.parseError(i, o);
|
|
821
|
+
else
|
|
822
|
+
throw new Error(i);
|
|
823
|
+
}, "parseError"),
|
|
824
|
+
// resets the lexer, sets new input
|
|
825
|
+
setInput: /* @__PURE__ */ u(function(n, i) {
|
|
826
|
+
return this.yy = i || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
827
|
+
first_line: 1,
|
|
828
|
+
first_column: 0,
|
|
829
|
+
last_line: 1,
|
|
830
|
+
last_column: 0
|
|
831
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
832
|
+
}, "setInput"),
|
|
833
|
+
// consumes and returns one char from the input
|
|
834
|
+
input: /* @__PURE__ */ u(function() {
|
|
835
|
+
var n = this._input[0];
|
|
836
|
+
this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
|
|
837
|
+
var i = n.match(/(?:\r\n?|\n).*/g);
|
|
838
|
+
return i ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
|
|
839
|
+
}, "input"),
|
|
840
|
+
// unshifts one char (or a string) into the input
|
|
841
|
+
unput: /* @__PURE__ */ u(function(n) {
|
|
842
|
+
var i = n.length, o = n.split(/(?:\r\n?|\n)/g);
|
|
843
|
+
this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
|
|
844
|
+
var m = this.match.split(/(?:\r\n?|\n)/g);
|
|
845
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
|
|
846
|
+
var _ = this.yylloc.range;
|
|
847
|
+
return this.yylloc = {
|
|
848
|
+
first_line: this.yylloc.first_line,
|
|
849
|
+
last_line: this.yylineno + 1,
|
|
850
|
+
first_column: this.yylloc.first_column,
|
|
851
|
+
last_column: o ? (o.length === m.length ? this.yylloc.first_column : 0) + m[m.length - o.length].length - o[0].length : this.yylloc.first_column - i
|
|
852
|
+
}, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
|
|
853
|
+
}, "unput"),
|
|
854
|
+
// When called from action, caches matched text and appends it on next action
|
|
855
|
+
more: /* @__PURE__ */ u(function() {
|
|
856
|
+
return this._more = !0, this;
|
|
857
|
+
}, "more"),
|
|
858
|
+
// 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.
|
|
859
|
+
reject: /* @__PURE__ */ u(function() {
|
|
860
|
+
if (this.options.backtrack_lexer)
|
|
861
|
+
this._backtrack = !0;
|
|
862
|
+
else
|
|
863
|
+
return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
864
|
+
` + this.showPosition(), {
|
|
865
|
+
text: "",
|
|
866
|
+
token: null,
|
|
867
|
+
line: this.yylineno
|
|
868
|
+
});
|
|
869
|
+
return this;
|
|
870
|
+
}, "reject"),
|
|
871
|
+
// retain first n characters of the match
|
|
872
|
+
less: /* @__PURE__ */ u(function(n) {
|
|
873
|
+
this.unput(this.match.slice(n));
|
|
874
|
+
}, "less"),
|
|
875
|
+
// displays already matched input, i.e. for error messages
|
|
876
|
+
pastInput: /* @__PURE__ */ u(function() {
|
|
877
|
+
var n = this.matched.substr(0, this.matched.length - this.match.length);
|
|
878
|
+
return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
|
|
879
|
+
}, "pastInput"),
|
|
880
|
+
// displays upcoming input, i.e. for error messages
|
|
881
|
+
upcomingInput: /* @__PURE__ */ u(function() {
|
|
882
|
+
var n = this.match;
|
|
883
|
+
return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
884
|
+
}, "upcomingInput"),
|
|
885
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
886
|
+
showPosition: /* @__PURE__ */ u(function() {
|
|
887
|
+
var n = this.pastInput(), i = new Array(n.length + 1).join("-");
|
|
888
|
+
return n + this.upcomingInput() + `
|
|
889
|
+
` + i + "^";
|
|
890
|
+
}, "showPosition"),
|
|
891
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
892
|
+
test_match: /* @__PURE__ */ u(function(n, i) {
|
|
893
|
+
var o, m, _;
|
|
894
|
+
if (this.options.backtrack_lexer && (_ = {
|
|
895
|
+
yylineno: this.yylineno,
|
|
896
|
+
yylloc: {
|
|
897
|
+
first_line: this.yylloc.first_line,
|
|
898
|
+
last_line: this.last_line,
|
|
899
|
+
first_column: this.yylloc.first_column,
|
|
900
|
+
last_column: this.yylloc.last_column
|
|
901
|
+
},
|
|
902
|
+
yytext: this.yytext,
|
|
903
|
+
match: this.match,
|
|
904
|
+
matches: this.matches,
|
|
905
|
+
matched: this.matched,
|
|
906
|
+
yyleng: this.yyleng,
|
|
907
|
+
offset: this.offset,
|
|
908
|
+
_more: this._more,
|
|
909
|
+
_input: this._input,
|
|
910
|
+
yy: this.yy,
|
|
911
|
+
conditionStack: this.conditionStack.slice(0),
|
|
912
|
+
done: this.done
|
|
913
|
+
}, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), m = n[0].match(/(?:\r\n?|\n).*/g), m && (this.yylineno += m.length), this.yylloc = {
|
|
914
|
+
first_line: this.yylloc.last_line,
|
|
915
|
+
last_line: this.yylineno + 1,
|
|
916
|
+
first_column: this.yylloc.last_column,
|
|
917
|
+
last_column: m ? m[m.length - 1].length - m[m.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
|
|
918
|
+
}, this.yytext += n[0], this.match += n[0], this.matches = n, 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(n[0].length), this.matched += n[0], o = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
|
|
919
|
+
return o;
|
|
920
|
+
if (this._backtrack) {
|
|
921
|
+
for (var h in _)
|
|
922
|
+
this[h] = _[h];
|
|
923
|
+
return !1;
|
|
924
|
+
}
|
|
925
|
+
return !1;
|
|
926
|
+
}, "test_match"),
|
|
927
|
+
// return next match in input
|
|
928
|
+
next: /* @__PURE__ */ u(function() {
|
|
929
|
+
if (this.done)
|
|
930
|
+
return this.EOF;
|
|
931
|
+
this._input || (this.done = !0);
|
|
932
|
+
var n, i, o, m;
|
|
933
|
+
this._more || (this.yytext = "", this.match = "");
|
|
934
|
+
for (var _ = this._currentRules(), h = 0; h < _.length; h++)
|
|
935
|
+
if (o = this._input.match(this.rules[_[h]]), o && (!i || o[0].length > i[0].length)) {
|
|
936
|
+
if (i = o, m = h, this.options.backtrack_lexer) {
|
|
937
|
+
if (n = this.test_match(o, _[h]), n !== !1)
|
|
938
|
+
return n;
|
|
939
|
+
if (this._backtrack) {
|
|
940
|
+
i = !1;
|
|
941
|
+
continue;
|
|
942
|
+
} else
|
|
943
|
+
return !1;
|
|
944
|
+
} else if (!this.options.flex)
|
|
945
|
+
break;
|
|
946
|
+
}
|
|
947
|
+
return i ? (n = this.test_match(i, _[m]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
948
|
+
` + this.showPosition(), {
|
|
949
|
+
text: "",
|
|
950
|
+
token: null,
|
|
951
|
+
line: this.yylineno
|
|
952
|
+
});
|
|
953
|
+
}, "next"),
|
|
954
|
+
// return next match that has a token
|
|
955
|
+
lex: /* @__PURE__ */ u(function() {
|
|
956
|
+
var i = this.next();
|
|
957
|
+
return i || this.lex();
|
|
958
|
+
}, "lex"),
|
|
959
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
960
|
+
begin: /* @__PURE__ */ u(function(i) {
|
|
961
|
+
this.conditionStack.push(i);
|
|
962
|
+
}, "begin"),
|
|
963
|
+
// pop the previously active lexer condition state off the condition stack
|
|
964
|
+
popState: /* @__PURE__ */ u(function() {
|
|
965
|
+
var i = this.conditionStack.length - 1;
|
|
966
|
+
return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
967
|
+
}, "popState"),
|
|
968
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
969
|
+
_currentRules: /* @__PURE__ */ u(function() {
|
|
970
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
971
|
+
}, "_currentRules"),
|
|
972
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
973
|
+
topState: /* @__PURE__ */ u(function(i) {
|
|
974
|
+
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
|
975
|
+
}, "topState"),
|
|
976
|
+
// alias for begin(condition)
|
|
977
|
+
pushState: /* @__PURE__ */ u(function(i) {
|
|
978
|
+
this.begin(i);
|
|
979
|
+
}, "pushState"),
|
|
980
|
+
// return the number of states currently on the stack
|
|
981
|
+
stateStackSize: /* @__PURE__ */ u(function() {
|
|
982
|
+
return this.conditionStack.length;
|
|
983
|
+
}, "stateStackSize"),
|
|
984
|
+
options: { "case-insensitive": !0 },
|
|
985
|
+
performAction: /* @__PURE__ */ u(function(i, o, m, _) {
|
|
986
|
+
switch (m) {
|
|
987
|
+
case 0:
|
|
988
|
+
return this.pushState("csv"), 4;
|
|
989
|
+
case 1:
|
|
990
|
+
return this.pushState("csv"), 4;
|
|
991
|
+
case 2:
|
|
992
|
+
return 10;
|
|
993
|
+
case 3:
|
|
994
|
+
return 5;
|
|
995
|
+
case 4:
|
|
996
|
+
return 12;
|
|
997
|
+
case 5:
|
|
998
|
+
return this.pushState("escaped_text"), 18;
|
|
999
|
+
case 6:
|
|
1000
|
+
return 20;
|
|
1001
|
+
case 7:
|
|
1002
|
+
return this.popState("escaped_text"), 18;
|
|
1003
|
+
case 8:
|
|
1004
|
+
return 19;
|
|
1005
|
+
}
|
|
1006
|
+
}, "anonymous"),
|
|
1007
|
+
rules: [/^(?:sankey-beta\b)/i, /^(?:sankey\b)/i, /^(?:$)/i, /^(?:((\u000D\u000A)|(\u000A)))/i, /^(?:(\u002C))/i, /^(?:(\u0022))/i, /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i, /^(?:(\u0022)(?!(\u0022)))/i, /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],
|
|
1008
|
+
conditions: { csv: { rules: [2, 3, 4, 5, 6, 7, 8], inclusive: !1 }, escaped_text: { rules: [7, 8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8], inclusive: !0 } }
|
|
1009
|
+
};
|
|
1010
|
+
return g;
|
|
1011
|
+
})();
|
|
1012
|
+
b.lexer = x;
|
|
1013
|
+
function y() {
|
|
1014
|
+
this.yy = {};
|
|
1015
|
+
}
|
|
1016
|
+
return u(y, "Parser"), y.prototype = b, b.Parser = y, new y();
|
|
1017
|
+
})();
|
|
1018
|
+
oe.parser = oe;
|
|
1019
|
+
var ee = oe, te = [], ce = [], fe = /* @__PURE__ */ new Map(), Cf = /* @__PURE__ */ u(() => {
|
|
1020
|
+
te = [], ce = [], fe = /* @__PURE__ */ new Map(), Ce();
|
|
1021
|
+
}, "clear"), Y, Pf = (Y = class {
|
|
1022
|
+
constructor(a, d, r = 0) {
|
|
1023
|
+
this.source = a, this.target = d, this.value = r;
|
|
1024
|
+
}
|
|
1025
|
+
}, u(Y, "SankeyLink"), Y), If = /* @__PURE__ */ u((e, a, d) => {
|
|
1026
|
+
te.push(new Pf(e, a, d));
|
|
1027
|
+
}, "addLink"), q, Of = (q = class {
|
|
1028
|
+
constructor(a) {
|
|
1029
|
+
this.ID = a;
|
|
1030
|
+
}
|
|
1031
|
+
}, u(q, "SankeyNode"), q), Df = /* @__PURE__ */ u((e) => {
|
|
1032
|
+
e = Pe.sanitizeText(e, le());
|
|
1033
|
+
let a = fe.get(e);
|
|
1034
|
+
return a === void 0 && (a = new Of(e), fe.set(e, a), ce.push(a)), a;
|
|
1035
|
+
}, "findOrCreateNode"), jf = /* @__PURE__ */ u(() => ce, "getNodes"), zf = /* @__PURE__ */ u(() => te, "getLinks"), Bf = /* @__PURE__ */ u(() => ({
|
|
1036
|
+
nodes: ce.map((e) => ({ id: e.ID })),
|
|
1037
|
+
links: te.map((e) => ({
|
|
1038
|
+
source: e.source.ID,
|
|
1039
|
+
target: e.target.ID,
|
|
1040
|
+
value: e.value
|
|
1041
|
+
}))
|
|
1042
|
+
}), "getGraph"), Ff = {
|
|
1043
|
+
nodesMap: fe,
|
|
1044
|
+
getConfig: /* @__PURE__ */ u(() => le().sankey, "getConfig"),
|
|
1045
|
+
getNodes: jf,
|
|
1046
|
+
getLinks: zf,
|
|
1047
|
+
getGraph: Bf,
|
|
1048
|
+
addLink: If,
|
|
1049
|
+
findOrCreateNode: Df,
|
|
1050
|
+
getAccTitle: Te,
|
|
1051
|
+
setAccTitle: $e,
|
|
1052
|
+
getAccDescription: Ee,
|
|
1053
|
+
setAccDescription: Le,
|
|
1054
|
+
getDiagramTitle: Se,
|
|
1055
|
+
setDiagramTitle: Ae,
|
|
1056
|
+
clear: Cf
|
|
1057
|
+
}, j, xe = (j = class {
|
|
1058
|
+
static next(a) {
|
|
1059
|
+
return new j(a + ++j.count);
|
|
1060
|
+
}
|
|
1061
|
+
constructor(a) {
|
|
1062
|
+
this.id = a, this.href = `#${a}`;
|
|
1063
|
+
}
|
|
1064
|
+
toString() {
|
|
1065
|
+
return "url(" + this.href + ")";
|
|
1066
|
+
}
|
|
1067
|
+
}, u(j, "Uid"), j.count = 0, j), Rf = {
|
|
1068
|
+
left: uf,
|
|
1069
|
+
right: hf,
|
|
1070
|
+
center: yf,
|
|
1071
|
+
justify: ve
|
|
1072
|
+
}, Vf = /* @__PURE__ */ u((e) => {
|
|
1073
|
+
let a = 0, d = 0;
|
|
1074
|
+
for (const r of e) {
|
|
1075
|
+
const b = r.value ?? 0;
|
|
1076
|
+
b > a && (a = b, d = r.layer ?? 0);
|
|
1077
|
+
}
|
|
1078
|
+
return d;
|
|
1079
|
+
}, "findCentralNodeLayer"), Wf = /* @__PURE__ */ u(function(e, a, d, r) {
|
|
1080
|
+
const { securityLevel: b, sankey: x } = le(), y = Me.sankey;
|
|
1081
|
+
let g;
|
|
1082
|
+
b === "sandbox" && (g = K("#i" + a));
|
|
1083
|
+
const n = b === "sandbox" ? K(g.nodes()[0].contentDocument.body) : K("body"), i = b === "sandbox" ? n.select(`[id="${a}"]`) : K(`[id="${a}"]`), o = x?.width ?? y.width, m = x?.height ?? y.width, _ = x?.useMaxWidth ?? y.useMaxWidth, h = x?.nodeAlignment ?? y.nodeAlignment, v = x?.prefix ?? y.prefix, M = x?.suffix ?? y.suffix, T = x?.showValues ?? y.showValues, N = x?.nodeWidth ?? y.nodeWidth ?? 10, O = x?.nodePadding ?? y.nodePadding ?? 12, C = x?.labelStyle ?? y.labelStyle ?? "legacy", z = x?.nodeColors ?? {}, S = r.db.getGraph(), P = Rf[h];
|
|
1084
|
+
kf().nodeId((f) => f.id).nodeWidth(N).nodePadding(O + (T ? 15 : 0)).nodeAlign(P).extent([
|
|
1085
|
+
[0, 0],
|
|
1086
|
+
[o, m]
|
|
1087
|
+
])(S);
|
|
1088
|
+
const B = Vf(S.nodes), U = De(je), D = /* @__PURE__ */ u((f) => z[f] ?? U(f), "getNodeColor");
|
|
1089
|
+
i.append("g").attr("class", "nodes").selectAll(".node").data(S.nodes).join("g").attr("class", "node").attr("id", (f) => (f.uid = xe.next("node-")).id).attr("transform", function(f) {
|
|
1090
|
+
return "translate(" + f.x0 + "," + f.y0 + ")";
|
|
1091
|
+
}).attr("x", (f) => f.x0).attr("y", (f) => f.y0).append("rect").attr("height", (f) => f.y1 - f.y0).attr("width", (f) => f.x1 - f.x0).attr("fill", (f) => D(f.id));
|
|
1092
|
+
const F = /* @__PURE__ */ u(({ id: f, value: c }) => T ? `${f}
|
|
1093
|
+
${v}${Math.round(c * 100) / 100}${M}` : f, "getText"), L = /* @__PURE__ */ u((f) => C === "outlined" ? (f.layer ?? 0) < B ? { x: f.x0 - 6, anchor: "end" } : { x: f.x1 + 6, anchor: "start" } : f.x0 < o / 2 ? { x: f.x1 + 6, anchor: "start" } : { x: f.x0 - 6, anchor: "end" }, "getLabelPosition"), I = i.append("g").attr("class", "node-labels").attr("font-size", 14), $ = /* @__PURE__ */ u((f) => I.selectAll(f ? `.${f}` : "text").data(S.nodes).join("text").attr("class", f ?? null).attr("x", (c) => L(c).x).attr("y", (c) => (c.y1 + c.y0) / 2).attr("dy", `${T ? "0" : "0.35"}em`).attr("text-anchor", (c) => L(c).anchor).text(F), "appendLabel");
|
|
1094
|
+
C === "outlined" ? ($("sankey-label-bg"), $("sankey-label-fg")) : $();
|
|
1095
|
+
const t = i.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(S.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), l = x?.linkColor ?? "gradient";
|
|
1096
|
+
if (l === "gradient") {
|
|
1097
|
+
const f = t.append("linearGradient").attr("id", (c) => (c.uid = xe.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (c) => c.source.x1).attr("x2", (c) => c.target.x0);
|
|
1098
|
+
f.append("stop").attr("offset", "0%").attr("stop-color", (c) => D(c.source.id)), f.append("stop").attr("offset", "100%").attr("stop-color", (c) => D(c.target.id));
|
|
1099
|
+
}
|
|
1100
|
+
let s;
|
|
1101
|
+
switch (l) {
|
|
1102
|
+
case "gradient":
|
|
1103
|
+
s = /* @__PURE__ */ u((f) => f.uid, "coloring");
|
|
1104
|
+
break;
|
|
1105
|
+
case "source":
|
|
1106
|
+
s = /* @__PURE__ */ u((f) => D(f.source.id), "coloring");
|
|
1107
|
+
break;
|
|
1108
|
+
case "target":
|
|
1109
|
+
s = /* @__PURE__ */ u((f) => D(f.target.id), "coloring");
|
|
1110
|
+
break;
|
|
1111
|
+
default:
|
|
1112
|
+
s = l;
|
|
1113
|
+
}
|
|
1114
|
+
t.append("path").attr("d", Nf()).attr("stroke", s).attr("stroke-width", (f) => Math.max(1, f.width)), Ne(void 0, i, 0, _);
|
|
1115
|
+
}, "draw"), Gf = {
|
|
1116
|
+
draw: Wf
|
|
1117
|
+
}, Uf = /* @__PURE__ */ u((e) => e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
|
|
1118
|
+
`).trim(), "prepareTextForParsing"), Yf = /* @__PURE__ */ u((e) => `.label {
|
|
1119
|
+
font-family: ${e.fontFamily};
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
.node-labels {
|
|
1123
|
+
font-family: ${e.fontFamily};
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
/* Outlined label style - background stroke for better readability */
|
|
1127
|
+
.sankey-label-bg {
|
|
1128
|
+
stroke: ${e.mainBkg || e.background || "#fff"};
|
|
1129
|
+
stroke-width: 4px;
|
|
1130
|
+
stroke-linejoin: round;
|
|
1131
|
+
paint-order: stroke;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
/* Foreground label text */
|
|
1135
|
+
.sankey-label-fg {
|
|
1136
|
+
fill: ${e.textColor};
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
/* Node styling */
|
|
1140
|
+
.node rect {
|
|
1141
|
+
shape-rendering: crispEdges;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
/* Link styling */
|
|
1145
|
+
.link {
|
|
1146
|
+
fill: none;
|
|
1147
|
+
stroke-opacity: 0.5;
|
|
1148
|
+
mix-blend-mode: multiply;
|
|
1149
|
+
}
|
|
1150
|
+
`, "getStyles"), qf = Yf, Hf = ee.parse.bind(ee);
|
|
1151
|
+
ee.parse = (e) => Hf(Uf(e));
|
|
1152
|
+
var Zf = {
|
|
1153
|
+
styles: qf,
|
|
1154
|
+
parser: ee,
|
|
1155
|
+
db: Ff,
|
|
1156
|
+
renderer: Gf
|
|
1157
|
+
};
|
|
1158
|
+
export {
|
|
1159
|
+
Zf as diagram
|
|
1160
|
+
};
|