@layers-app/editor 0.3.10 → 0.3.11

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.
Files changed (242) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.js +6 -6
  3. package/dist/{layers.aWv9gYR0.js → layers.BnjxHNDK.js} +85 -85
  4. package/dist/{layers.CIe6IWwR.js → layers.C125HTat.js} +1 -1
  5. package/dist/layers.Cjs5EBWM.js +343 -0
  6. package/dist/{layers.BCi5-29W.js → layers.DPccTctI.js} +17 -17
  7. package/dist/layers.DZ8DrrVn.js +53491 -0
  8. package/dist/layers.QVaGPbs3.js +161 -0
  9. package/dist/{layers.B1OkrScy.js → layers.VK3NB7Nd.js} +1 -1
  10. package/dist/{layers.CXdHS8ME.js → layers.YZkXZvVS.js} +10897 -11432
  11. package/package.json +15 -22
  12. package/dist/layers.0O-HO6IA.js +0 -42
  13. package/dist/layers.0ONhG6ew.js +0 -1283
  14. package/dist/layers.1g-B3F0-.js +0 -10
  15. package/dist/layers.2UOO6NPF.js +0 -1
  16. package/dist/layers.4YQUM2o7.js +0 -32
  17. package/dist/layers.4nj6Lu4f.js +0 -21938
  18. package/dist/layers.52famHy6.js +0 -1
  19. package/dist/layers.5I_IaZtB.js +0 -32
  20. package/dist/layers.5zC40cdV.js +0 -4
  21. package/dist/layers.7JqFgE4-.js +0 -15
  22. package/dist/layers.8fJJJO7B.js +0 -425
  23. package/dist/layers.9QK1wiQj.js +0 -1
  24. package/dist/layers.9YzbhWId.js +0 -21763
  25. package/dist/layers.9pNaFvaX.js +0 -1
  26. package/dist/layers.9tDhGbsk.js +0 -1
  27. package/dist/layers.AjgD53rQ.js +0 -1
  28. package/dist/layers.B-qy_g4-.js +0 -13
  29. package/dist/layers.B19hGmey.js +0 -1
  30. package/dist/layers.B1ni4mxG.js +0 -36
  31. package/dist/layers.B2AGu32C.js +0 -11692
  32. package/dist/layers.B2t-s3Lr.js +0 -6
  33. package/dist/layers.B3D4g2HH.js +0 -1
  34. package/dist/layers.B3YugRxw.js +0 -793
  35. package/dist/layers.B47MBsc7.js +0 -118
  36. package/dist/layers.B5hfyctM.js +0 -8
  37. package/dist/layers.B63KPCAA.js +0 -9
  38. package/dist/layers.B8PWivoQ.js +0 -40
  39. package/dist/layers.BAdPyX9t.js +0 -7
  40. package/dist/layers.BAm8tKx8.js +0 -40
  41. package/dist/layers.BAtv1CM7.js +0 -1
  42. package/dist/layers.BCZU7qmb.js +0 -11
  43. package/dist/layers.BG2XT6bu.js +0 -39
  44. package/dist/layers.BG2lFV8Q.js +0 -161
  45. package/dist/layers.BGByoe0m.js +0 -37
  46. package/dist/layers.BHYgMpdU.js +0 -2
  47. package/dist/layers.BIeVwYKL.js +0 -1
  48. package/dist/layers.BKQ2-TA6.js +0 -35
  49. package/dist/layers.BL7yj6jI.js +0 -42
  50. package/dist/layers.BLBW8FvN.js +0 -36
  51. package/dist/layers.BLBrBUT9.js +0 -257
  52. package/dist/layers.BLiY1HIQ.js +0 -2
  53. package/dist/layers.BMHNM70S.js +0 -802
  54. package/dist/layers.BMlAGxNa.js +0 -1
  55. package/dist/layers.BMmPJdA-.js +0 -139
  56. package/dist/layers.BRhYJnwf.js +0 -34
  57. package/dist/layers.BSSwgQP4.js +0 -14
  58. package/dist/layers.BSTBZrFn.js +0 -1
  59. package/dist/layers.BSmyi-2W.js +0 -2479
  60. package/dist/layers.BVgbqt8Z.js +0 -8
  61. package/dist/layers.BY3vgRLa.js +0 -1619
  62. package/dist/layers.BZ4fzqMZ.js +0 -44
  63. package/dist/layers.BZGWH3Cr.js +0 -6
  64. package/dist/layers.Ba1QnqD6.js +0 -268
  65. package/dist/layers.BamW7DBf.js +0 -39
  66. package/dist/layers.BbCfEXyj.js +0 -55
  67. package/dist/layers.BcuKH1X9.js +0 -11
  68. package/dist/layers.BdtKVDwG.js +0 -202
  69. package/dist/layers.Bf086Zg-.js +0 -11
  70. package/dist/layers.BgOa2ZQq.js +0 -7
  71. package/dist/layers.BgSFSWxA.js +0 -1
  72. package/dist/layers.BgU5v1oL.js +0 -39
  73. package/dist/layers.BgV4j9Nb.js +0 -40
  74. package/dist/layers.BhFtwnU6.js +0 -1
  75. package/dist/layers.Bhlh_Lb0.js +0 -423
  76. package/dist/layers.BiJ8hfRt.js +0 -1510
  77. package/dist/layers.Bjz6Sxuh.js +0 -61
  78. package/dist/layers.BoSwtXdp.js +0 -36
  79. package/dist/layers.BpilXLfW.js +0 -6
  80. package/dist/layers.Bq3fSgMC.js +0 -1
  81. package/dist/layers.BqYF5Wn-.js +0 -8
  82. package/dist/layers.BrNer6r9.js +0 -9
  83. package/dist/layers.Bs-tmR42.js +0 -1
  84. package/dist/layers.Bsy26Dgb.js +0 -9
  85. package/dist/layers.Bsyoxmr3.js +0 -38
  86. package/dist/layers.Bw3IwJS4.js +0 -931
  87. package/dist/layers.BwCHjgy_.js +0 -52
  88. package/dist/layers.BwQO9dS8.js +0 -65
  89. package/dist/layers.Bw_mvLXS.js +0 -2235
  90. package/dist/layers.BxljeGSf.js +0 -2966
  91. package/dist/layers.BxtXwRBq.js +0 -42
  92. package/dist/layers.ByLBhn1N.js +0 -84
  93. package/dist/layers.Bysth3Gx.js +0 -33
  94. package/dist/layers.BzEvPu_n.js +0 -9
  95. package/dist/layers.C0zcnhpp.js +0 -37
  96. package/dist/layers.C1KJbm2d.js +0 -10
  97. package/dist/layers.C2B7YCnj.js +0 -7
  98. package/dist/layers.C2m4apzR.js +0 -39
  99. package/dist/layers.C37MKWId.js +0 -10
  100. package/dist/layers.C55wllfV.js +0 -9148
  101. package/dist/layers.C5RBh30O.js +0 -1
  102. package/dist/layers.C6_vCH6p.js +0 -1
  103. package/dist/layers.C7lIplJU.js +0 -247
  104. package/dist/layers.C8_lu5UH.js +0 -23
  105. package/dist/layers.C8r8J3P2.js +0 -139
  106. package/dist/layers.C9H7Y0FE.js +0 -10
  107. package/dist/layers.CEYmizt4.js +0 -38
  108. package/dist/layers.CFnyQPRT.js +0 -39
  109. package/dist/layers.CFoUxBD9.js +0 -36
  110. package/dist/layers.CH0Y8svW.js +0 -9
  111. package/dist/layers.CHZsXQcr.js +0 -1
  112. package/dist/layers.CHm7GEXp.js +0 -1
  113. package/dist/layers.CJompNyf.js +0 -282
  114. package/dist/layers.CKRpzRNC.js +0 -41
  115. package/dist/layers.CL7Vtav2.js +0 -1126
  116. package/dist/layers.CMb7-d7c.js +0 -320
  117. package/dist/layers.COAF7f8g.js +0 -1
  118. package/dist/layers.CRMGGzG_.js +0 -1
  119. package/dist/layers.CTnykjar.js +0 -7
  120. package/dist/layers.CUp4CMxi.js +0 -1
  121. package/dist/layers.CY7AkIEG.js +0 -96
  122. package/dist/layers.C__Q8WfO.js +0 -42
  123. package/dist/layers.C_k7A3Mz.js +0 -4
  124. package/dist/layers.CbHImeup.js +0 -501
  125. package/dist/layers.CcruShdv.js +0 -9
  126. package/dist/layers.CeuSQNzd.js +0 -39
  127. package/dist/layers.CftGMfFK.js +0 -1
  128. package/dist/layers.CgP9of2S.js +0 -41
  129. package/dist/layers.Ck51CP9N.js +0 -70
  130. package/dist/layers.CkdiwuzV.js +0 -39
  131. package/dist/layers.CngXbKrP.js +0 -6
  132. package/dist/layers.CoqLozCl.js +0 -1
  133. package/dist/layers.CpxqY-jd.js +0 -6
  134. package/dist/layers.CqNmSCMj.js +0 -19
  135. package/dist/layers.CqVTtuYm.js +0 -6
  136. package/dist/layers.CrF5v5NG.js +0 -38
  137. package/dist/layers.CrQXROLL.js +0 -5
  138. package/dist/layers.CrtDarq7.js +0 -32
  139. package/dist/layers.Cs24L6er.js +0 -261
  140. package/dist/layers.CsRSoujK.js +0 -207
  141. package/dist/layers.Ct5A2AuM.js +0 -51
  142. package/dist/layers.CtQab1jh.js +0 -10
  143. package/dist/layers.CuECE6wg.js +0 -5
  144. package/dist/layers.Cud1By9I.js +0 -1
  145. package/dist/layers.CuuUIwmp.js +0 -1
  146. package/dist/layers.CwisDuwP.js +0 -33
  147. package/dist/layers.CyR9faht.js +0 -10
  148. package/dist/layers.D-WddaLv.js +0 -5
  149. package/dist/layers.D-zqjapg.js +0 -7
  150. package/dist/layers.D0LDNQ9o.js +0 -1359
  151. package/dist/layers.D0zn4_Mx.js +0 -1
  152. package/dist/layers.D1LKQvHR.js +0 -8
  153. package/dist/layers.D2NzxX2a.js +0 -7
  154. package/dist/layers.D325bOwU.js +0 -41
  155. package/dist/layers.D3r6Uv1D.js +0 -40
  156. package/dist/layers.D4fGb2cV.js +0 -1272
  157. package/dist/layers.D6dtx0Il.js +0 -32
  158. package/dist/layers.D7jGxypv.js +0 -8
  159. package/dist/layers.DALQQ8Jh.js +0 -960
  160. package/dist/layers.DAq8zxBu.js +0 -10
  161. package/dist/layers.DC5byRJg.js +0 -3
  162. package/dist/layers.DCQ4LYm3.js +0 -48146
  163. package/dist/layers.DCrCZ4Iw.js +0 -220
  164. package/dist/layers.DE9KqC57.js +0 -10
  165. package/dist/layers.DEZqmeoy.js +0 -4
  166. package/dist/layers.DF0CR_A4.js +0 -1265
  167. package/dist/layers.DG0jm2Nx.js +0 -40
  168. package/dist/layers.DH8m0bpe.js +0 -40
  169. package/dist/layers.DKaByMlh.js +0 -40
  170. package/dist/layers.DLJXsUyO.js +0 -59
  171. package/dist/layers.DLwuMfdd.js +0 -84
  172. package/dist/layers.DMkBISW1.js +0 -1
  173. package/dist/layers.DMqAEBD9.js +0 -8
  174. package/dist/layers.DN9HoVxI.js +0 -18
  175. package/dist/layers.DOeTmzDz.js +0 -41
  176. package/dist/layers.DOrgOHBr.js +0 -1
  177. package/dist/layers.DRTDeNDp.js +0 -9
  178. package/dist/layers.DS0zmYTv.js +0 -790
  179. package/dist/layers.DSpBzg-g.js +0 -39
  180. package/dist/layers.DT9K5vqK.js +0 -9
  181. package/dist/layers.DU4R3b7-.js +0 -373
  182. package/dist/layers.DUUGwrsX.js +0 -9
  183. package/dist/layers.DUeoP9C_.js +0 -35
  184. package/dist/layers.DV_nYDft.js +0 -8
  185. package/dist/layers.DWRS8OMs.js +0 -5
  186. package/dist/layers.DY-LYN9J.js +0 -1
  187. package/dist/layers.DZi_xtue.js +0 -8
  188. package/dist/layers.D_Gt3BTM.js +0 -803
  189. package/dist/layers.D_IV_Isr.js +0 -10
  190. package/dist/layers.D_ueJnG9.js +0 -4
  191. package/dist/layers.DaI9YYuA.js +0 -35
  192. package/dist/layers.DbaKVP5e.js +0 -1
  193. package/dist/layers.Dct-KMDd.js +0 -7
  194. package/dist/layers.DctVUFXU.js +0 -7
  195. package/dist/layers.DelKGHRg.js +0 -10
  196. package/dist/layers.DenbWMKi.js +0 -6
  197. package/dist/layers.Dhv7yWkp.js +0 -40
  198. package/dist/layers.DjUOC4st.js +0 -16
  199. package/dist/layers.DkUmi55f.js +0 -230
  200. package/dist/layers.Dng9-1hf.js +0 -1
  201. package/dist/layers.DqiivndF.js +0 -84
  202. package/dist/layers.Dr9YWgvN.js +0 -5
  203. package/dist/layers.DrWX1ycB.js +0 -11
  204. package/dist/layers.Ds4pa4-Y.js +0 -37
  205. package/dist/layers.Due5h_RY.js +0 -186
  206. package/dist/layers.DvIm8rgw.js +0 -769
  207. package/dist/layers.DxA6ocdw.js +0 -70
  208. package/dist/layers.DxyLWJqF.js +0 -6
  209. package/dist/layers.Dy1naDTQ.js +0 -14
  210. package/dist/layers.DyC-LKRA.js +0 -8
  211. package/dist/layers.DytGTqf8.js +0 -1088
  212. package/dist/layers.FQ_E02QW.js +0 -37
  213. package/dist/layers.FTHV-Y5l.js +0 -41
  214. package/dist/layers.GlCiDO9w.js +0 -1089
  215. package/dist/layers.JWCLFILJ.js +0 -1
  216. package/dist/layers.KEj1ospI.js +0 -1580
  217. package/dist/layers.KiDruC_P.js +0 -8
  218. package/dist/layers.Lizv1OMz.js +0 -1
  219. package/dist/layers.MlHvpwem.js +0 -40
  220. package/dist/layers.Mm28Q5GR.js +0 -904
  221. package/dist/layers.QA_0DDl0.js +0 -32
  222. package/dist/layers.RKQb3yWw.js +0 -40
  223. package/dist/layers.Rt0GeQX8.js +0 -8
  224. package/dist/layers.Th8DM3Nm.js +0 -32
  225. package/dist/layers.VUfdRL5t.js +0 -42
  226. package/dist/layers.WE4L5H9a.js +0 -7
  227. package/dist/layers.Wxscoddr.js +0 -1
  228. package/dist/layers.X3AnuPZA.js +0 -116
  229. package/dist/layers._VrzPGNk.js +0 -160
  230. package/dist/layers.b0h5ZBmD.js +0 -61
  231. package/dist/layers.bxJG2pW0.js +0 -11
  232. package/dist/layers.cO9a_CSG.js +0 -1034
  233. package/dist/layers.dE-Zsmej.js +0 -41
  234. package/dist/layers.f35vZvjY.js +0 -9
  235. package/dist/layers.hifDeB_3.js +0 -122
  236. package/dist/layers.ib97KSUu.js +0 -41
  237. package/dist/layers.lCpg7dOn.js +0 -21
  238. package/dist/layers.n5GYoY3M.js +0 -1
  239. package/dist/layers.noKqP2-f.js +0 -41
  240. package/dist/layers.p6FtxLKx.js +0 -39
  241. package/dist/layers.wSwlPOh0.js +0 -2
  242. package/dist/layers.z1Zi6yTK.js +0 -437
@@ -1,320 +0,0 @@
1
- import { l as Y, A as D, e as M } from "./layers.C55wllfV.js";
2
- import "./layers.9YzbhWId.js";
3
- var O = (function() {
4
- var a = function(u, t, e, n) {
5
- for (e = e || {}, n = u.length; n--; e[u[n]] = t)
6
- ;
7
- return e;
8
- }, f = [6, 9, 10], m = {
9
- trace: function() {
10
- },
11
- yy: {},
12
- symbols_: { error: 2, start: 3, info: 4, document: 5, EOF: 6, line: 7, statement: 8, NL: 9, showInfo: 10, $accept: 0, $end: 1 },
13
- terminals_: { 2: "error", 4: "info", 6: "EOF", 9: "NL", 10: "showInfo" },
14
- productions_: [0, [3, 3], [5, 0], [5, 2], [7, 1], [7, 1], [8, 1]],
15
- performAction: function(t, e, n, s, r, i, d) {
16
- switch (i.length - 1, r) {
17
- case 1:
18
- return s;
19
- case 4:
20
- break;
21
- case 6:
22
- s.setInfo(!0);
23
- break;
24
- }
25
- },
26
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, a(f, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: 6, 9: [1, 7], 10: [1, 8] }, { 1: [2, 1] }, a(f, [2, 3]), a(f, [2, 4]), a(f, [2, 5]), a(f, [2, 6])],
27
- defaultActions: { 4: [2, 1] },
28
- parseError: function(t, e) {
29
- if (e.recoverable)
30
- this.trace(t);
31
- else {
32
- var n = new Error(t);
33
- throw n.hash = e, n;
34
- }
35
- },
36
- parse: function(t) {
37
- var e = this, n = [0], s = [], r = [null], i = [], d = this.table, P = "", v = 0, L = 0, N = 2, T = 1, R = i.slice.call(arguments, 1), o = Object.create(this.lexer), p = { yy: {} };
38
- for (var E in this.yy)
39
- Object.prototype.hasOwnProperty.call(this.yy, E) && (p.yy[E] = this.yy[E]);
40
- o.setInput(t, p.yy), p.yy.lexer = o, p.yy.parser = this, typeof o.yylloc > "u" && (o.yylloc = {});
41
- var I = o.yylloc;
42
- i.push(I);
43
- var z = o.options && o.options.ranges;
44
- typeof p.yy.parseError == "function" ? this.parseError = p.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
45
- function U() {
46
- var y;
47
- return y = s.pop() || o.lex() || T, typeof y != "number" && (y instanceof Array && (s = y, y = s.pop()), y = e.symbols_[y] || y), y;
48
- }
49
- for (var l, g, h, w, _ = {}, b, c, F, S; ; ) {
50
- if (g = n[n.length - 1], this.defaultActions[g] ? h = this.defaultActions[g] : ((l === null || typeof l > "u") && (l = U()), h = d[g] && d[g][l]), typeof h > "u" || !h.length || !h[0]) {
51
- var A = "";
52
- S = [];
53
- for (b in d[g])
54
- this.terminals_[b] && b > N && S.push("'" + this.terminals_[b] + "'");
55
- o.showPosition ? A = "Parse error on line " + (v + 1) + `:
56
- ` + o.showPosition() + `
57
- Expecting ` + S.join(", ") + ", got '" + (this.terminals_[l] || l) + "'" : A = "Parse error on line " + (v + 1) + ": Unexpected " + (l == T ? "end of input" : "'" + (this.terminals_[l] || l) + "'"), this.parseError(A, {
58
- text: o.match,
59
- token: this.terminals_[l] || l,
60
- line: o.yylineno,
61
- loc: I,
62
- expected: S
63
- });
64
- }
65
- if (h[0] instanceof Array && h.length > 1)
66
- throw new Error("Parse Error: multiple actions possible at state: " + g + ", token: " + l);
67
- switch (h[0]) {
68
- case 1:
69
- n.push(l), r.push(o.yytext), i.push(o.yylloc), n.push(h[1]), l = null, L = o.yyleng, P = o.yytext, v = o.yylineno, I = o.yylloc;
70
- break;
71
- case 2:
72
- if (c = this.productions_[h[1]][1], _.$ = r[r.length - c], _._$ = {
73
- first_line: i[i.length - (c || 1)].first_line,
74
- last_line: i[i.length - 1].last_line,
75
- first_column: i[i.length - (c || 1)].first_column,
76
- last_column: i[i.length - 1].last_column
77
- }, z && (_._$.range = [
78
- i[i.length - (c || 1)].range[0],
79
- i[i.length - 1].range[1]
80
- ]), w = this.performAction.apply(_, [
81
- P,
82
- L,
83
- v,
84
- p.yy,
85
- h[1],
86
- r,
87
- i
88
- ].concat(R)), typeof w < "u")
89
- return w;
90
- c && (n = n.slice(0, -1 * c * 2), r = r.slice(0, -1 * c), i = i.slice(0, -1 * c)), n.push(this.productions_[h[1]][0]), r.push(_.$), i.push(_._$), F = d[n[n.length - 2]][n[n.length - 1]], n.push(F);
91
- break;
92
- case 3:
93
- return !0;
94
- }
95
- }
96
- return !0;
97
- }
98
- }, k = /* @__PURE__ */ (function() {
99
- var u = {
100
- EOF: 1,
101
- parseError: function(e, n) {
102
- if (this.yy.parser)
103
- this.yy.parser.parseError(e, n);
104
- else
105
- throw new Error(e);
106
- },
107
- // resets the lexer, sets new input
108
- setInput: function(t, e) {
109
- 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 = {
110
- first_line: 1,
111
- first_column: 0,
112
- last_line: 1,
113
- last_column: 0
114
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
115
- },
116
- // consumes and returns one char from the input
117
- input: function() {
118
- var t = this._input[0];
119
- this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
120
- var e = t.match(/(?:\r\n?|\n).*/g);
121
- 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;
122
- },
123
- // unshifts one char (or a string) into the input
124
- unput: function(t) {
125
- var e = t.length, n = t.split(/(?:\r\n?|\n)/g);
126
- this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - e), this.offset -= e;
127
- var s = this.match.split(/(?:\r\n?|\n)/g);
128
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
129
- var r = this.yylloc.range;
130
- return this.yylloc = {
131
- first_line: this.yylloc.first_line,
132
- last_line: this.yylineno + 1,
133
- first_column: this.yylloc.first_column,
134
- last_column: n ? (n.length === s.length ? this.yylloc.first_column : 0) + s[s.length - n.length].length - n[0].length : this.yylloc.first_column - e
135
- }, this.options.ranges && (this.yylloc.range = [r[0], r[0] + this.yyleng - e]), this.yyleng = this.yytext.length, this;
136
- },
137
- // When called from action, caches matched text and appends it on next action
138
- more: function() {
139
- return this._more = !0, this;
140
- },
141
- // 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.
142
- reject: function() {
143
- if (this.options.backtrack_lexer)
144
- this._backtrack = !0;
145
- else
146
- 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).
147
- ` + this.showPosition(), {
148
- text: "",
149
- token: null,
150
- line: this.yylineno
151
- });
152
- return this;
153
- },
154
- // retain first n characters of the match
155
- less: function(t) {
156
- this.unput(this.match.slice(t));
157
- },
158
- // displays already matched input, i.e. for error messages
159
- pastInput: function() {
160
- var t = this.matched.substr(0, this.matched.length - this.match.length);
161
- return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
162
- },
163
- // displays upcoming input, i.e. for error messages
164
- upcomingInput: function() {
165
- var t = this.match;
166
- return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
167
- },
168
- // displays the character position where the lexing error occurred, i.e. for error messages
169
- showPosition: function() {
170
- var t = this.pastInput(), e = new Array(t.length + 1).join("-");
171
- return t + this.upcomingInput() + `
172
- ` + e + "^";
173
- },
174
- // test the lexed token: return FALSE when not a match, otherwise return token
175
- test_match: function(t, e) {
176
- var n, s, r;
177
- if (this.options.backtrack_lexer && (r = {
178
- yylineno: this.yylineno,
179
- yylloc: {
180
- first_line: this.yylloc.first_line,
181
- last_line: this.last_line,
182
- first_column: this.yylloc.first_column,
183
- last_column: this.yylloc.last_column
184
- },
185
- yytext: this.yytext,
186
- match: this.match,
187
- matches: this.matches,
188
- matched: this.matched,
189
- yyleng: this.yyleng,
190
- offset: this.offset,
191
- _more: this._more,
192
- _input: this._input,
193
- yy: this.yy,
194
- conditionStack: this.conditionStack.slice(0),
195
- done: this.done
196
- }, this.options.ranges && (r.yylloc.range = this.yylloc.range.slice(0))), s = t[0].match(/(?:\r\n?|\n).*/g), s && (this.yylineno += s.length), this.yylloc = {
197
- first_line: this.yylloc.last_line,
198
- last_line: this.yylineno + 1,
199
- first_column: this.yylloc.last_column,
200
- last_column: s ? s[s.length - 1].length - s[s.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
201
- }, 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], n = this.performAction.call(this, this.yy, this, e, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n)
202
- return n;
203
- if (this._backtrack) {
204
- for (var i in r)
205
- this[i] = r[i];
206
- return !1;
207
- }
208
- return !1;
209
- },
210
- // return next match in input
211
- next: function() {
212
- if (this.done)
213
- return this.EOF;
214
- this._input || (this.done = !0);
215
- var t, e, n, s;
216
- this._more || (this.yytext = "", this.match = "");
217
- for (var r = this._currentRules(), i = 0; i < r.length; i++)
218
- if (n = this._input.match(this.rules[r[i]]), n && (!e || n[0].length > e[0].length)) {
219
- if (e = n, s = i, this.options.backtrack_lexer) {
220
- if (t = this.test_match(n, r[i]), t !== !1)
221
- return t;
222
- if (this._backtrack) {
223
- e = !1;
224
- continue;
225
- } else
226
- return !1;
227
- } else if (!this.options.flex)
228
- break;
229
- }
230
- return e ? (t = this.test_match(e, r[s]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
231
- ` + this.showPosition(), {
232
- text: "",
233
- token: null,
234
- line: this.yylineno
235
- });
236
- },
237
- // return next match that has a token
238
- lex: function() {
239
- var e = this.next();
240
- return e || this.lex();
241
- },
242
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
243
- begin: function(e) {
244
- this.conditionStack.push(e);
245
- },
246
- // pop the previously active lexer condition state off the condition stack
247
- popState: function() {
248
- var e = this.conditionStack.length - 1;
249
- return e > 0 ? this.conditionStack.pop() : this.conditionStack[0];
250
- },
251
- // produce the lexer rule set which is active for the currently active lexer condition state
252
- _currentRules: function() {
253
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
254
- },
255
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
256
- topState: function(e) {
257
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
258
- },
259
- // alias for begin(condition)
260
- pushState: function(e) {
261
- this.begin(e);
262
- },
263
- // return the number of states currently on the stack
264
- stateStackSize: function() {
265
- return this.conditionStack.length;
266
- },
267
- options: { "case-insensitive": !0 },
268
- performAction: function(e, n, s, r) {
269
- switch (s) {
270
- case 0:
271
- return 4;
272
- case 1:
273
- return 9;
274
- case 2:
275
- return "space";
276
- case 3:
277
- return 10;
278
- case 4:
279
- return 6;
280
- case 5:
281
- return "TXT";
282
- }
283
- },
284
- rules: [/^(?:info\b)/i, /^(?:[\s\n\r]+)/i, /^(?:[\s]+)/i, /^(?:showInfo\b)/i, /^(?:$)/i, /^(?:.)/i],
285
- conditions: { INITIAL: { rules: [0, 1, 2, 3, 4, 5], inclusive: !0 } }
286
- };
287
- return u;
288
- })();
289
- m.lexer = k;
290
- function x() {
291
- this.yy = {};
292
- }
293
- return x.prototype = m, m.Parser = x, new x();
294
- })();
295
- O.parser = O;
296
- const B = O, j = {
297
- info: !1
298
- };
299
- let $ = j.info;
300
- const V = (a) => {
301
- $ = a;
302
- }, X = () => $, q = () => {
303
- $ = j.info;
304
- }, C = {
305
- clear: q,
306
- setInfo: V,
307
- getInfo: X
308
- }, G = (a, f, m) => {
309
- Y.debug(`rendering info diagram
310
- ` + a);
311
- const k = D(f);
312
- M(k, 100, 400, !0), k.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${m}`);
313
- }, H = { draw: G }, Q = {
314
- parser: B,
315
- db: C,
316
- renderer: H
317
- };
318
- export {
319
- Q as diagram
320
- };
@@ -1 +0,0 @@
1
- "use strict";const ae=require("lodash-es"),w=require("./layers.9QK1wiQj.js");function te(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const o=te(ae);class oe{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return P(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&P(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,a=r._prev;a!==r;)n.push(JSON.stringify(a,ie)),a=a._prev;return"["+n.join(", ")+"]"}}function P(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function ie(e,n){if(e!=="_next"&&e!=="_prev")return n}var fe=o.constant(1);function ue(e,n){if(e.nodeCount()<=1)return[];var r=ce(e,n||fe),a=de(r.graph,r.buckets,r.zeroIdx);return o.flatten(o.map(a,function(t){return e.outEdges(t.v,t.w)}))}function de(e,n,r){for(var a=[],t=n[n.length-1],f=n[0],i;e.nodeCount();){for(;i=f.dequeue();)y(e,n,r,i);for(;i=t.dequeue();)y(e,n,r,i);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(i=n[u].dequeue(),i){a=a.concat(y(e,n,r,i,!0));break}}}return a}function y(e,n,r,a,t){var f=t?[]:void 0;return o.forEach(e.inEdges(a.v),function(i){var u=e.edge(i),d=e.node(i.v);t&&f.push({v:i.v,w:i.w}),d.out-=u,R(n,r,d)}),o.forEach(e.outEdges(a.v),function(i){var u=e.edge(i),d=i.w,c=e.node(d);c.in-=u,R(n,r,c)}),e.removeNode(a.v),f}function ce(e,n){var r=new w.Graph,a=0,t=0;o.forEach(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),o.forEach(e.edges(),function(u){var d=r.edge(u.v,u.w)||0,c=n(u),s=d+c;r.setEdge(u.v,u.w,s),t=Math.max(t,r.node(u.v).out+=c),a=Math.max(a,r.node(u.w).in+=c)});var f=o.range(t+a+3).map(function(){return new oe}),i=a+1;return o.forEach(r.nodes(),function(u){R(f,i,r.node(u))}),{graph:r,buckets:f,zeroIdx:i}}function R(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function se(e){var n=e.graph().acyclicer==="greedy"?ue(e,r(e)):he(e);o.forEach(n,function(a){var t=e.edge(a);e.removeEdge(a),t.forwardName=a.name,t.reversed=!0,e.setEdge(a.w,a.v,t,o.uniqueId("rev"))});function r(a){return function(t){return a.edge(t).weight}}}function he(e){var n=[],r={},a={};function t(f){o.has(a,f)||(a[f]=!0,r[f]=!0,o.forEach(e.outEdges(f),function(i){o.has(r,i.w)?n.push(i):t(i.w)}),delete r[f])}return o.forEach(e.nodes(),t),n}function le(e){o.forEach(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var a=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,a)}})}function b(e,n,r,a){var t;do t=o.uniqueId(a);while(e.hasNode(t));return r.dummy=n,e.setNode(t,r),t}function ve(e){var n=new w.Graph().setGraph(e.graph());return o.forEach(e.nodes(),function(r){n.setNode(r,e.node(r))}),o.forEach(e.edges(),function(r){var a=n.edge(r.v,r.w)||{weight:0,minlen:1},t=e.edge(r);n.setEdge(r.v,r.w,{weight:a.weight+t.weight,minlen:Math.max(a.minlen,t.minlen)})}),n}function q(e){var n=new w.Graph({multigraph:e.isMultigraph()}).setGraph(e.graph());return o.forEach(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),o.forEach(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function O(e,n){var r=e.x,a=e.y,t=n.x-r,f=n.y-a,i=e.width/2,u=e.height/2;if(!t&&!f)throw new Error("Not possible to find intersection inside of the rectangle");var d,c;return Math.abs(f)*i>Math.abs(t)*u?(f<0&&(u=-u),d=u*t/f,c=u):(t<0&&(i=-i),d=i,c=i*f/t),{x:r+d,y:a+c}}function x(e){var n=o.map(o.range(U(e)+1),function(){return[]});return o.forEach(e.nodes(),function(r){var a=e.node(r),t=a.rank;o.isUndefined(t)||(n[t][a.order]=r)}),n}function pe(e){var n=o.min(o.map(e.nodes(),function(r){return e.node(r).rank}));o.forEach(e.nodes(),function(r){var a=e.node(r);o.has(a,"rank")&&(a.rank-=n)})}function me(e){var n=o.min(o.map(e.nodes(),function(f){return e.node(f).rank})),r=[];o.forEach(e.nodes(),function(f){var i=e.node(f).rank-n;r[i]||(r[i]=[]),r[i].push(f)});var a=0,t=e.graph().nodeRankFactor;o.forEach(r,function(f,i){o.isUndefined(f)&&i%t!==0?--a:a&&o.forEach(f,function(u){e.node(u).rank+=a})})}function V(e,n,r,a){var t={width:0,height:0};return arguments.length>=4&&(t.rank=r,t.order=a),b(e,"border",t,n)}function U(e){return o.max(o.map(e.nodes(),function(n){var r=e.node(n).rank;if(!o.isUndefined(r))return r}))}function we(e,n){var r={lhs:[],rhs:[]};return o.forEach(e,function(a){n(a)?r.lhs.push(a):r.rhs.push(a)}),r}function Ee(e,n){return n()}function be(e){function n(r){var a=e.children(r),t=e.node(r);if(a.length&&o.forEach(a,n),o.has(t,"minRank")){t.borderLeft=[],t.borderRight=[];for(var f=t.minRank,i=t.maxRank+1;f<i;++f)B(e,"borderLeft","_bl",r,t,f),B(e,"borderRight","_br",r,t,f)}}o.forEach(e.children(),n)}function B(e,n,r,a,t,f){var i={width:0,height:0,rank:f,borderType:n},u=t[n][f-1],d=b(e,"border",i,r);t[n][f]=d,e.setParent(d,a),u&&e.setEdge(u,d,{weight:1})}function ge(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&W(e)}function ke(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&xe(e),(n==="lr"||n==="rl")&&(ye(e),W(e))}function W(e){o.forEach(e.nodes(),function(n){F(e.node(n))}),o.forEach(e.edges(),function(n){F(e.edge(n))})}function F(e){var n=e.width;e.width=e.height,e.height=n}function xe(e){o.forEach(e.nodes(),function(n){N(e.node(n))}),o.forEach(e.edges(),function(n){var r=e.edge(n);o.forEach(r.points,N),o.has(r,"y")&&N(r)})}function N(e){e.y=-e.y}function ye(e){o.forEach(e.nodes(),function(n){L(e.node(n))}),o.forEach(e.edges(),function(n){var r=e.edge(n);o.forEach(r.points,L),o.has(r,"x")&&L(r)})}function L(e){var n=e.x;e.x=e.y,e.y=n}function Ne(e){e.graph().dummyChains=[],o.forEach(e.edges(),function(n){Le(e,n)})}function Le(e,n){var r=n.v,a=e.node(r).rank,t=n.w,f=e.node(t).rank,i=n.name,u=e.edge(n),d=u.labelRank;if(f!==a+1){e.removeEdge(n);var c,s,h;for(h=0,++a;a<f;++h,++a)u.points=[],s={width:0,height:0,edgeLabel:u,edgeObj:n,rank:a},c=b(e,"edge",s,"_d"),a===d&&(s.width=u.width,s.height=u.height,s.dummy="edge-label",s.labelpos=u.labelpos),e.setEdge(r,c,{weight:u.weight},i),h===0&&e.graph().dummyChains.push(c),r=c;e.setEdge(r,t,{weight:u.weight},i)}}function Ie(e){o.forEach(e.graph().dummyChains,function(n){var r=e.node(n),a=r.edgeLabel,t;for(e.setEdge(r.edgeObj,a);r.dummy;)t=e.successors(n)[0],e.removeNode(n),a.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(a.x=r.x,a.y=r.y,a.width=r.width,a.height=r.height),n=t,r=e.node(n)})}function C(e){var n={};function r(a){var t=e.node(a);if(o.has(n,a))return t.rank;n[a]=!0;var f=o.min(o.map(e.outEdges(a),function(i){return r(i.w)-e.edge(i).minlen}));return(f===Number.POSITIVE_INFINITY||f===void 0||f===null)&&(f=0),t.rank=f}o.forEach(e.sources(),r)}function k(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function $(e){var n=new w.Graph({directed:!1}),r=e.nodes()[0],a=e.nodeCount();n.setNode(r,{});for(var t,f;_e(n,e)<a;)t=Re(n,e),f=n.hasNode(t.v)?k(e,t):-k(e,t),Ce(n,e,f);return n}function _e(e,n){function r(a){o.forEach(n.nodeEdges(a),function(t){var f=t.v,i=a===f?t.w:f;!e.hasNode(i)&&!k(n,t)&&(e.setNode(i,{}),e.setEdge(a,i,{}),r(i))})}return o.forEach(e.nodes(),r),e.nodeCount()}function Re(e,n){return o.minBy(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return k(n,r)})}function Ce(e,n,r){o.forEach(e.nodes(),function(a){n.node(a).rank+=r})}o.constant(1);o.constant(1);function Te(){}Te.prototype=new Error;function z(e,n,r){o.isArray(n)||(n=[n]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),t=[],f={};return o.each(n,function(i){if(!e.hasNode(i))throw new Error("Graph does not have node: "+i);X(e,i,r==="post",f,a,t)}),t}function X(e,n,r,a,t,f){o.has(a,n)||(a[n]=!0,r||f.push(n),o.each(t(n),function(i){X(e,i,r,a,t,f)}),r&&f.push(n))}function Se(e,n){return z(e,n,"post")}function Me(e,n){return z(e,n,"pre")}E.initLowLimValues=S;E.initCutValues=T;E.calcCutValue=H;E.leaveEdge=K;E.enterEdge=Q;E.exchangeEdges=Z;function E(e){e=ve(e),C(e);var n=$(e);S(n),T(n,e);for(var r,a;r=K(n);)a=Q(n,e,r),Z(n,e,r,a)}function T(e,n){var r=Se(e,e.nodes());r=r.slice(0,r.length-1),o.forEach(r,function(a){Pe(e,n,a)})}function Pe(e,n,r){var a=e.node(r),t=a.parent;e.edge(r,t).cutvalue=H(e,n,r)}function H(e,n,r){var a=e.node(r),t=a.parent,f=!0,i=n.edge(r,t),u=0;return i||(f=!1,i=n.edge(t,r)),u=i.weight,o.forEach(n.nodeEdges(r),function(d){var c=d.v===r,s=c?d.w:d.v;if(s!==t){var h=c===f,l=n.edge(d).weight;if(u+=h?l:-l,Ve(e,r,s)){var v=e.edge(r,s).cutvalue;u+=h?-v:v}}}),u}function S(e,n){arguments.length<2&&(n=e.nodes()[0]),J(e,{},1,n)}function J(e,n,r,a,t){var f=r,i=e.node(a);return n[a]=!0,o.forEach(e.neighbors(a),function(u){o.has(n,u)||(r=J(e,n,r,u,a))}),i.low=f,i.lim=r++,t?i.parent=t:delete i.parent,r}function K(e){return o.find(e.edges(),function(n){return e.edge(n).cutvalue<0})}function Q(e,n,r){var a=r.v,t=r.w;n.hasEdge(a,t)||(a=r.w,t=r.v);var f=e.node(a),i=e.node(t),u=f,d=!1;f.lim>i.lim&&(u=i,d=!0);var c=o.filter(n.edges(),function(s){return d===G(e,e.node(s.v),u)&&d!==G(e,e.node(s.w),u)});return o.minBy(c,function(s){return k(n,s)})}function Z(e,n,r,a){var t=r.v,f=r.w;e.removeEdge(t,f),e.setEdge(a.v,a.w,{}),S(e),T(e,n),Oe(e,n)}function Oe(e,n){var r=o.find(e.nodes(),function(t){return!n.node(t).parent}),a=Me(e,r);a=a.slice(1),o.forEach(a,function(t){var f=e.node(t).parent,i=n.edge(t,f),u=!1;i||(i=n.edge(f,t),u=!0),n.node(t).rank=n.node(f).rank+(u?i.minlen:-i.minlen)})}function Ve(e,n,r){return e.hasEdge(n,r)}function G(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function Be(e){switch(e.graph().ranker){case"network-simplex":D(e);break;case"tight-tree":Ge(e);break;case"longest-path":Fe(e);break;default:D(e)}}var Fe=C;function Ge(e){C(e),$(e)}function D(e){E(e)}function De(e){var n=b(e,"root",{},"_root"),r=Ae(e),a=o.max(o.values(r))-1,t=2*a+1;e.graph().nestingRoot=n,o.forEach(e.edges(),function(i){e.edge(i).minlen*=t});var f=Ye(e)+1;o.forEach(e.children(),function(i){ee(e,n,t,f,a,r,i)}),e.graph().nodeRankFactor=t}function ee(e,n,r,a,t,f,i){var u=e.children(i);if(!u.length){i!==n&&e.setEdge(n,i,{weight:0,minlen:r});return}var d=V(e,"_bt"),c=V(e,"_bb"),s=e.node(i);e.setParent(d,i),s.borderTop=d,e.setParent(c,i),s.borderBottom=c,o.forEach(u,function(h){ee(e,n,r,a,t,f,h);var l=e.node(h),v=l.borderTop?l.borderTop:h,p=l.borderBottom?l.borderBottom:h,m=l.borderTop?a:2*a,g=v!==p?1:t-f[i]+1;e.setEdge(d,v,{weight:m,minlen:g,nestingEdge:!0}),e.setEdge(p,c,{weight:m,minlen:g,nestingEdge:!0})}),e.parent(i)||e.setEdge(n,d,{weight:0,minlen:t+f[i]})}function Ae(e){var n={};function r(a,t){var f=e.children(a);f&&f.length&&o.forEach(f,function(i){r(i,t+1)}),n[a]=t}return o.forEach(e.children(),function(a){r(a,1)}),n}function Ye(e){return o.reduce(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function je(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,o.forEach(e.edges(),function(r){var a=e.edge(r);a.nestingEdge&&e.removeEdge(r)})}function qe(e,n,r){var a={},t;o.forEach(r,function(f){for(var i=e.parent(f),u,d;i;){if(u=e.parent(i),u?(d=a[u],a[u]=i):(d=t,t=i),d&&d!==i){n.setEdge(d,i);return}i=u}})}function Ue(e,n,r){var a=We(e),t=new w.Graph({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(f){return e.node(f)});return o.forEach(e.nodes(),function(f){var i=e.node(f),u=e.parent(f);(i.rank===n||i.minRank<=n&&n<=i.maxRank)&&(t.setNode(f),t.setParent(f,u||a),o.forEach(e[r](f),function(d){var c=d.v===f?d.w:d.v,s=t.edge(c,f),h=o.isUndefined(s)?0:s.weight;t.setEdge(c,f,{weight:e.edge(d).weight+h})}),o.has(i,"minRank")&&t.setNode(f,{borderLeft:i.borderLeft[n],borderRight:i.borderRight[n]}))}),t}function We(e){for(var n;e.hasNode(n=o.uniqueId("_root")););return n}function $e(e,n){for(var r=0,a=1;a<n.length;++a)r+=ze(e,n[a-1],n[a]);return r}function ze(e,n,r){for(var a=o.zipObject(r,o.map(r,function(c,s){return s})),t=o.flatten(o.map(n,function(c){return o.sortBy(o.map(e.outEdges(c),function(s){return{pos:a[s.w],weight:e.edge(s).weight}}),"pos")})),f=1;f<r.length;)f<<=1;var i=2*f-1;f-=1;var u=o.map(new Array(i),function(){return 0}),d=0;return o.forEach(t.forEach(function(c){var s=c.pos+f;u[s]+=c.weight;for(var h=0;s>0;)s%2&&(h+=u[s+1]),s=s-1>>1,u[s]+=c.weight;d+=c.weight*h})),d}function Xe(e){var n={},r=o.filter(e.nodes(),function(u){return!e.children(u).length}),a=o.max(o.map(r,function(u){return e.node(u).rank})),t=o.map(o.range(a+1),function(){return[]});function f(u){if(!o.has(n,u)){n[u]=!0;var d=e.node(u);t[d.rank].push(u),o.forEach(e.successors(u),f)}}var i=o.sortBy(r,function(u){return e.node(u).rank});return o.forEach(i,f),t}function He(e,n){return o.map(n,function(r){var a=e.inEdges(r);if(a.length){var t=o.reduce(a,function(f,i){var u=e.edge(i),d=e.node(i.v);return{sum:f.sum+u.weight*d.order,weight:f.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:t.sum/t.weight,weight:t.weight}}else return{v:r}})}function Je(e,n){var r={};o.forEach(e,function(t,f){var i=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:f};o.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)}),o.forEach(n.edges(),function(t){var f=r[t.v],i=r[t.w];!o.isUndefined(f)&&!o.isUndefined(i)&&(i.indegree++,f.out.push(r[t.w]))});var a=o.filter(r,function(t){return!t.indegree});return Ke(a)}function Ke(e){var n=[];function r(f){return function(i){i.merged||(o.isUndefined(i.barycenter)||o.isUndefined(f.barycenter)||i.barycenter>=f.barycenter)&&Qe(f,i)}}function a(f){return function(i){i.in.push(f),--i.indegree===0&&e.push(i)}}for(;e.length;){var t=e.pop();n.push(t),o.forEach(t.in.reverse(),r(t)),o.forEach(t.out,a(t))}return o.map(o.filter(n,function(f){return!f.merged}),function(f){return o.pick(f,["vs","i","barycenter","weight"])})}function Qe(e,n){var r=0,a=0;e.weight&&(r+=e.barycenter*e.weight,a+=e.weight),n.weight&&(r+=n.barycenter*n.weight,a+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/a,e.weight=a,e.i=Math.min(n.i,e.i),n.merged=!0}function Ze(e,n){var r=we(e,function(s){return o.has(s,"barycenter")}),a=r.lhs,t=o.sortBy(r.rhs,function(s){return-s.i}),f=[],i=0,u=0,d=0;a.sort(en(!!n)),d=A(f,t,d),o.forEach(a,function(s){d+=s.vs.length,f.push(s.vs),i+=s.barycenter*s.weight,u+=s.weight,d=A(f,t,d)});var c={vs:o.flatten(f)};return u&&(c.barycenter=i/u,c.weight=u),c}function A(e,n,r){for(var a;n.length&&(a=o.last(n)).i<=r;)n.pop(),e.push(a.vs),r++;return r}function en(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function ne(e,n,r,a){var t=e.children(n),f=e.node(n),i=f?f.borderLeft:void 0,u=f?f.borderRight:void 0,d={};i&&(t=o.filter(t,function(p){return p!==i&&p!==u}));var c=He(e,t);o.forEach(c,function(p){if(e.children(p.v).length){var m=ne(e,p.v,r,a);d[p.v]=m,o.has(m,"barycenter")&&rn(p,m)}});var s=Je(c,r);nn(s,d);var h=Ze(s,a);if(i&&(h.vs=o.flatten([i,h.vs,u]),e.predecessors(i).length)){var l=e.node(e.predecessors(i)[0]),v=e.node(e.predecessors(u)[0]);o.has(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+v.order)/(h.weight+2),h.weight+=2}return h}function nn(e,n){o.forEach(e,function(r){r.vs=o.flatten(r.vs.map(function(a){return n[a]?n[a].vs:a}))})}function rn(e,n){o.isUndefined(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function an(e){var n=U(e),r=Y(e,o.range(1,n+1),"inEdges"),a=Y(e,o.range(n-1,-1,-1),"outEdges"),t=Xe(e);j(e,t);for(var f=Number.POSITIVE_INFINITY,i,u=0,d=0;d<4;++u,++d){tn(u%2?r:a,u%4>=2),t=x(e);var c=$e(e,t);c<f&&(d=0,i=o.cloneDeep(t),f=c)}j(e,i)}function Y(e,n,r){return o.map(n,function(a){return Ue(e,a,r)})}function tn(e,n){var r=new w.Graph;o.forEach(e,function(a){var t=a.graph().root,f=ne(a,t,r,n);o.forEach(f.vs,function(i,u){a.node(i).order=u}),qe(a,r,f.vs)})}function j(e,n){o.forEach(n,function(r){o.forEach(r,function(a,t){e.node(a).order=t})})}function on(e){var n=un(e);o.forEach(e.graph().dummyChains,function(r){for(var a=e.node(r),t=a.edgeObj,f=fn(e,n,t.v,t.w),i=f.path,u=f.lca,d=0,c=i[d],s=!0;r!==t.w;){if(a=e.node(r),s){for(;(c=i[d])!==u&&e.node(c).maxRank<a.rank;)d++;c===u&&(s=!1)}if(!s){for(;d<i.length-1&&e.node(c=i[d+1]).minRank<=a.rank;)d++;c=i[d]}e.setParent(r,c),r=e.successors(r)[0]}})}function fn(e,n,r,a){var t=[],f=[],i=Math.min(n[r].low,n[a].low),u=Math.max(n[r].lim,n[a].lim),d,c;d=r;do d=e.parent(d),t.push(d);while(d&&(n[d].low>i||u>n[d].lim));for(c=d,d=a;(d=e.parent(d))!==c;)f.push(d);return{path:t.concat(f.reverse()),lca:c}}function un(e){var n={},r=0;function a(t){var f=r;o.forEach(e.children(t),a),n[t]={low:f,lim:r++}}return o.forEach(e.children(),a),n}function dn(e,n){var r={};function a(t,f){var i=0,u=0,d=t.length,c=o.last(f);return o.forEach(f,function(s,h){var l=sn(e,s),v=l?e.node(l).order:d;(l||s===c)&&(o.forEach(f.slice(u,h+1),function(p){o.forEach(e.predecessors(p),function(m){var g=e.node(m),M=g.order;(M<i||v<M)&&!(g.dummy&&e.node(p).dummy)&&re(r,m,p)})}),u=h+1,i=v)}),f}return o.reduce(n,a),r}function cn(e,n){var r={};function a(f,i,u,d,c){var s;o.forEach(o.range(i,u),function(h){s=f[h],e.node(s).dummy&&o.forEach(e.predecessors(s),function(l){var v=e.node(l);v.dummy&&(v.order<d||v.order>c)&&re(r,l,s)})})}function t(f,i){var u=-1,d,c=0;return o.forEach(i,function(s,h){if(e.node(s).dummy==="border"){var l=e.predecessors(s);l.length&&(d=e.node(l[0]).order,a(i,c,h,u,d),c=h,u=d)}a(i,c,i.length,d,f.length)}),i}return o.reduce(n,t),r}function sn(e,n){if(e.node(n).dummy)return o.find(e.predecessors(n),function(r){return e.node(r).dummy})}function re(e,n,r){if(n>r){var a=n;n=r,r=a}var t=e[n];t||(e[n]=t={}),t[r]=!0}function hn(e,n,r){if(n>r){var a=n;n=r,r=a}return o.has(e[n],r)}function ln(e,n,r,a){var t={},f={},i={};return o.forEach(n,function(u){o.forEach(u,function(d,c){t[d]=d,f[d]=d,i[d]=c})}),o.forEach(n,function(u){var d=-1;o.forEach(u,function(c){var s=a(c);if(s.length){s=o.sortBy(s,function(m){return i[m]});for(var h=(s.length-1)/2,l=Math.floor(h),v=Math.ceil(h);l<=v;++l){var p=s[l];f[c]===c&&d<i[p]&&!hn(r,c,p)&&(f[p]=c,f[c]=t[c]=t[p],d=i[p])}}})}),{root:t,align:f}}function vn(e,n,r,a,t){var f={},i=pn(e,n,r,t),u=t?"borderLeft":"borderRight";function d(h,l){for(var v=i.nodes(),p=v.pop(),m={};p;)m[p]?h(p):(m[p]=!0,v.push(p),v=v.concat(l(p))),p=v.pop()}function c(h){f[h]=i.inEdges(h).reduce(function(l,v){return Math.max(l,f[v.v]+i.edge(v))},0)}function s(h){var l=i.outEdges(h).reduce(function(p,m){return Math.min(p,f[m.w]-i.edge(m))},Number.POSITIVE_INFINITY),v=e.node(h);l!==Number.POSITIVE_INFINITY&&v.borderType!==u&&(f[h]=Math.max(f[h],l))}return d(c,i.predecessors.bind(i)),d(s,i.successors.bind(i)),o.forEach(a,function(h){f[h]=f[r[h]]}),f}function pn(e,n,r,a){var t=new w.Graph,f=e.graph(),i=gn(f.nodesep,f.edgesep,a);return o.forEach(n,function(u){var d;o.forEach(u,function(c){var s=r[c];if(t.setNode(s),d){var h=r[d],l=t.edge(h,s);t.setEdge(h,s,Math.max(i(e,c,d),l||0))}d=c})}),t}function mn(e,n){return o.minBy(o.values(n),function(r){var a=Number.NEGATIVE_INFINITY,t=Number.POSITIVE_INFINITY;return o.forIn(r,function(f,i){var u=kn(e,i)/2;a=Math.max(f+u,a),t=Math.min(f-u,t)}),a-t})}function wn(e,n){var r=o.values(n),a=o.min(r),t=o.max(r);o.forEach(["u","d"],function(f){o.forEach(["l","r"],function(i){var u=f+i,d=e[u],c;if(d!==n){var s=o.values(d);c=i==="l"?a-o.min(s):t-o.max(s),c&&(e[u]=o.mapValues(d,function(h){return h+c}))}})})}function En(e,n){return o.mapValues(e.ul,function(r,a){if(n)return e[n.toLowerCase()][a];var t=o.sortBy(o.map(e,a));return(t[1]+t[2])/2})}function bn(e){var n=x(e),r=o.merge(dn(e,n),cn(e,n)),a={},t;o.forEach(["u","d"],function(i){t=i==="u"?n:o.values(n).reverse(),o.forEach(["l","r"],function(u){u==="r"&&(t=o.map(t,function(h){return o.values(h).reverse()}));var d=(i==="u"?e.predecessors:e.successors).bind(e),c=ln(e,t,r,d),s=vn(e,t,c.root,c.align,u==="r");u==="r"&&(s=o.mapValues(s,function(h){return-h})),a[i+u]=s})});var f=mn(e,a);return wn(a,f),En(a,e.graph().align)}function gn(e,n,r){return function(a,t,f){var i=a.node(t),u=a.node(f),d=0,c;if(d+=i.width/2,o.has(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":c=-i.width/2;break;case"r":c=i.width/2;break}if(c&&(d+=r?c:-c),c=0,d+=(i.dummy?n:e)/2,d+=(u.dummy?n:e)/2,d+=u.width/2,o.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":c=u.width/2;break;case"r":c=-u.width/2;break}return c&&(d+=r?c:-c),c=0,d}}function kn(e,n){return e.node(n).width}function xn(e){e=q(e),yn(e),o.forOwn(bn(e),function(n,r){e.node(r).x=n})}function yn(e){var n=x(e),r=e.graph().ranksep,a=0;o.forEach(n,function(t){var f=o.max(o.map(t,function(i){return e.node(i).height}));o.forEach(t,function(i){e.node(i).y=a+f/2}),a+=f+r})}function Nn(e,n){var r=Ee;r("layout",function(){var a=r(" buildLayoutGraph",function(){return Vn(e)});r(" runLayout",function(){Ln(a,r)}),r(" updateInputGraph",function(){In(e,a)})})}function Ln(e,n){n(" makeSpaceForEdgeLabels",function(){Bn(e)}),n(" removeSelfEdges",function(){Wn(e)}),n(" acyclic",function(){se(e)}),n(" nestingGraph.run",function(){De(e)}),n(" rank",function(){Be(q(e))}),n(" injectEdgeLabelProxies",function(){Fn(e)}),n(" removeEmptyRanks",function(){me(e)}),n(" nestingGraph.cleanup",function(){je(e)}),n(" normalizeRanks",function(){pe(e)}),n(" assignRankMinMax",function(){Gn(e)}),n(" removeEdgeLabelProxies",function(){Dn(e)}),n(" normalize.run",function(){Ne(e)}),n(" parentDummyChains",function(){on(e)}),n(" addBorderSegments",function(){be(e)}),n(" order",function(){an(e)}),n(" insertSelfEdges",function(){$n(e)}),n(" adjustCoordinateSystem",function(){ge(e)}),n(" position",function(){xn(e)}),n(" positionSelfEdges",function(){zn(e)}),n(" removeBorderNodes",function(){Un(e)}),n(" normalize.undo",function(){Ie(e)}),n(" fixupEdgeLabelCoords",function(){jn(e)}),n(" undoCoordinateSystem",function(){ke(e)}),n(" translateGraph",function(){An(e)}),n(" assignNodeIntersects",function(){Yn(e)}),n(" reversePoints",function(){qn(e)}),n(" acyclic.undo",function(){le(e)})}function In(e,n){o.forEach(e.nodes(),function(r){var a=e.node(r),t=n.node(r);a&&(a.x=t.x,a.y=t.y,n.children(r).length&&(a.width=t.width,a.height=t.height))}),o.forEach(e.edges(),function(r){var a=e.edge(r),t=n.edge(r);a.points=t.points,o.has(t,"x")&&(a.x=t.x,a.y=t.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var _n=["nodesep","edgesep","ranksep","marginx","marginy"],Rn={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Cn=["acyclicer","ranker","rankdir","align"],Tn=["width","height"],Sn={width:0,height:0},Mn=["minlen","weight","width","height","labeloffset"],Pn={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},On=["labelpos"];function Vn(e){var n=new w.Graph({multigraph:!0,compound:!0}),r=_(e.graph());return n.setGraph(o.merge({},Rn,I(r,_n),o.pick(r,Cn))),o.forEach(e.nodes(),function(a){var t=_(e.node(a));n.setNode(a,o.defaults(I(t,Tn),Sn)),n.setParent(a,e.parent(a))}),o.forEach(e.edges(),function(a){var t=_(e.edge(a));n.setEdge(a,o.merge({},Pn,I(t,Mn),o.pick(t,On)))}),n}function Bn(e){var n=e.graph();n.ranksep/=2,o.forEach(e.edges(),function(r){var a=e.edge(r);a.minlen*=2,a.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?a.width+=a.labeloffset:a.height+=a.labeloffset)})}function Fn(e){o.forEach(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var a=e.node(n.v),t=e.node(n.w),f={rank:(t.rank-a.rank)/2+a.rank,e:n};b(e,"edge-proxy",f,"_ep")}})}function Gn(e){var n=0;o.forEach(e.nodes(),function(r){var a=e.node(r);a.borderTop&&(a.minRank=e.node(a.borderTop).rank,a.maxRank=e.node(a.borderBottom).rank,n=o.max(n,a.maxRank))}),e.graph().maxRank=n}function Dn(e){o.forEach(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function An(e){var n=Number.POSITIVE_INFINITY,r=0,a=Number.POSITIVE_INFINITY,t=0,f=e.graph(),i=f.marginx||0,u=f.marginy||0;function d(c){var s=c.x,h=c.y,l=c.width,v=c.height;n=Math.min(n,s-l/2),r=Math.max(r,s+l/2),a=Math.min(a,h-v/2),t=Math.max(t,h+v/2)}o.forEach(e.nodes(),function(c){d(e.node(c))}),o.forEach(e.edges(),function(c){var s=e.edge(c);o.has(s,"x")&&d(s)}),n-=i,a-=u,o.forEach(e.nodes(),function(c){var s=e.node(c);s.x-=n,s.y-=a}),o.forEach(e.edges(),function(c){var s=e.edge(c);o.forEach(s.points,function(h){h.x-=n,h.y-=a}),o.has(s,"x")&&(s.x-=n),o.has(s,"y")&&(s.y-=a)}),f.width=r-n+i,f.height=t-a+u}function Yn(e){o.forEach(e.edges(),function(n){var r=e.edge(n),a=e.node(n.v),t=e.node(n.w),f,i;r.points?(f=r.points[0],i=r.points[r.points.length-1]):(r.points=[],f=t,i=a),r.points.unshift(O(a,f)),r.points.push(O(t,i))})}function jn(e){o.forEach(e.edges(),function(n){var r=e.edge(n);if(o.has(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function qn(e){o.forEach(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function Un(e){o.forEach(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),a=e.node(r.borderTop),t=e.node(r.borderBottom),f=e.node(o.last(r.borderLeft)),i=e.node(o.last(r.borderRight));r.width=Math.abs(i.x-f.x),r.height=Math.abs(t.y-a.y),r.x=f.x+r.width/2,r.y=a.y+r.height/2}}),o.forEach(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function Wn(e){o.forEach(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function $n(e){var n=x(e);o.forEach(n,function(r){var a=0;o.forEach(r,function(t,f){var i=e.node(t);i.order=f+a,o.forEach(i.selfEdges,function(u){b(e,"selfedge",{width:u.label.width,height:u.label.height,rank:i.rank,order:f+ ++a,e:u.e,label:u.label},"_se")}),delete i.selfEdges})})}function zn(e){o.forEach(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var a=e.node(r.e.v),t=a.x+a.width/2,f=a.y,i=r.x-t,u=a.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:t+2*i/3,y:f-u},{x:t+5*i/6,y:f-u},{x:t+i,y:f},{x:t+5*i/6,y:f+u},{x:t+2*i/3,y:f+u}],r.label.x=r.x,r.label.y=r.y}})}function I(e,n){return o.mapValues(o.pick(e,n),Number)}function _(e){var n={};return o.forEach(e,function(r,a){n[a.toLowerCase()]=r}),n}exports.layout=Nn;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./layers.DqiivndF.js");require("./layers.DkUmi55f.js");exports.Commands=e.CB;exports.subsetToBase64=e.QB;exports.subsetToBinary=e.NQ;exports.toBase64=e.AI;
@@ -1,7 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./layers.CY7AkIEG.js"),Bt=require("./layers.D2NzxX2a.js");require("./layers.DkUmi55f.js");const Ot=require("./layers.CHZsXQcr.js"),Wt=require("./layers.B19hGmey.js"),ft=require("./layers.CHm7GEXp.js"),pt=require("./layers.Wxscoddr.js");function zt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s<n;)o[s]=e+s*i;return o}function nt(){var e=Wt.ordinal().unknown(void 0),t=e.domain,i=e.range,s=0,n=1,o,c,f=!1,d=0,R=0,k=.5;delete e.unknown;function A(){var y=t().length,D=n<s,S=D?n:s,L=D?s:n;o=(L-S)/Math.max(1,y-d+R*2),f&&(o=Math.floor(o)),S+=(L-S-o*(y-d))*k,c=o*(1-d),f&&(S=Math.round(S),c=Math.round(c));var p=zt(y).map(function(_){return S+o*_});return i(D?p.reverse():p)}return e.domain=function(y){return arguments.length?(t(y),A()):t()},e.range=function(y){return arguments.length?([s,n]=y,s=+s,n=+n,A()):[s,n]},e.rangeRound=function(y){return[s,n]=y,s=+s,n=+n,f=!0,A()},e.bandwidth=function(){return c},e.step=function(){return o},e.round=function(y){return arguments.length?(f=!!y,A()):f},e.padding=function(y){return arguments.length?(d=Math.min(1,R=+y),A()):d},e.paddingInner=function(y){return arguments.length?(d=Math.min(1,y),A()):d},e.paddingOuter=function(y){return arguments.length?(R=+y,A()):R},e.align=function(y){return arguments.length?(k=Math.max(0,Math.min(1,y)),A()):k},e.copy=function(){return nt(t(),[s,n]).round(f).paddingInner(d).paddingOuter(R).align(k)},Ot.initRange.apply(A(),arguments)}var at=(function(){var e=function(B,r,l,u){for(l=l||{},u=B.length;u--;l[B[u]]=r);return l},t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],o=[1,6],c=[1,7],f=[1,5,10,12,14,16,18,19,21,23,34,35,36],d=[1,25],R=[1,26],k=[1,28],A=[1,29],y=[1,30],D=[1,31],S=[1,32],L=[1,33],p=[1,34],_=[1,35],h=[1,36],v=[1,37],F=[1,43],lt=[1,42],ct=[1,47],U=[1,50],w=[1,10,12,14,16,18,19,21,23,34,35,36],K=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],E=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],ut=[1,64],Z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(r,l,u,g,b,a,N){var x=a.length-1;switch(b){case 5:g.setOrientation(a[x]);break;case 9:g.setDiagramTitle(a[x].text.trim());break;case 12:g.setLineData({text:"",type:"text"},a[x]);break;case 13:g.setLineData(a[x-1],a[x]);break;case 14:g.setBarData({text:"",type:"text"},a[x]);break;case 15:g.setBarData(a[x-1],a[x]);break;case 16:this.$=a[x].trim(),g.setAccTitle(this.$);break;case 17:case 18:this.$=a[x].trim(),g.setAccDescription(this.$);break;case 19:this.$=a[x-1];break;case 20:this.$=[Number(a[x-2]),...a[x]];break;case 21:this.$=[Number(a[x])];break;case 22:g.setXAxisTitle(a[x]);break;case 23:g.setXAxisTitle(a[x-1]);break;case 24:g.setXAxisTitle({type:"text",text:""});break;case 25:g.setXAxisBand(a[x]);break;case 26:g.setXAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 27:this.$=a[x-1];break;case 28:this.$=[a[x-2],...a[x]];break;case 29:this.$=[a[x]];break;case 30:g.setYAxisTitle(a[x]);break;case 31:g.setYAxisTitle(a[x-1]);break;case 32:g.setYAxisTitle({type:"text",text:""});break;case 33:g.setYAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 37:this.$={text:a[x],type:"text"};break;case 38:this.$={text:a[x],type:"text"};break;case 39:this.$={text:a[x],type:"markdown"};break;case 40:this.$=a[x];break;case 41:this.$=a[x-1]+""+a[x];break}},table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:o,36:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:o,36:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:o,36:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(f,[2,34]),e(f,[2,35]),e(f,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:o,36:c}),{1:[2,3]},e(f,[2,5]),e(t,[2,7],{4:22,34:n,35:o,36:c}),{11:23,37:24,38:d,39:R,40:27,41:k,42:A,43:y,44:D,45:S,46:L,47:p,48:_,49:h,50:v},{11:39,13:38,24:F,27:lt,29:40,30:41,37:24,38:d,39:R,40:27,41:k,42:A,43:y,44:D,45:S,46:L,47:p,48:_,49:h,50:v},{11:45,15:44,27:ct,33:46,37:24,38:d,39:R,40:27,41:k,42:A,43:y,44:D,45:S,46:L,47:p,48:_,49:h,50:v},{11:49,17:48,24:U,37:24,38:d,39:R,40:27,41:k,42:A,43:y,44:D,45:S,46:L,47:p,48:_,49:h,50:v},{11:52,17:51,24:U,37:24,38:d,39:R,40:27,41:k,42:A,43:y,44:D,45:S,46:L,47:p,48:_,49:h,50:v},{20:[1,53]},{22:[1,54]},e(w,[2,18]),{1:[2,2]},e(w,[2,8]),e(w,[2,9]),e(K,[2,37],{40:55,41:k,42:A,43:y,44:D,45:S,46:L,47:p,48:_,49:h,50:v}),e(K,[2,38]),e(K,[2,39]),e(E,[2,40]),e(E,[2,42]),e(E,[2,43]),e(E,[2,44]),e(E,[2,45]),e(E,[2,46]),e(E,[2,47]),e(E,[2,48]),e(E,[2,49]),e(E,[2,50]),e(E,[2,51]),e(w,[2,10]),e(w,[2,22],{30:41,29:56,24:F,27:lt}),e(w,[2,24]),e(w,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:d,39:R,40:27,41:k,42:A,43:y,44:D,45:S,46:L,47:p,48:_,49:h,50:v},e(w,[2,11]),e(w,[2,30],{33:60,27:ct}),e(w,[2,32]),{31:[1,61]},e(w,[2,12]),{17:62,24:U},{25:63,27:ut},e(w,[2,14]),{17:65,24:U},e(w,[2,16]),e(w,[2,17]),e(E,[2,41]),e(w,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(w,[2,31]),{27:[1,69]},e(w,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(w,[2,15]),e(w,[2,26]),e(w,[2,27]),{11:59,32:72,37:24,38:d,39:R,40:27,41:k,42:A,43:y,44:D,45:S,46:L,47:p,48:_,49:h,50:v},e(w,[2,33]),e(w,[2,19]),{25:73,27:ut},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(r,l){if(l.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=l,u}},parse:function(r){var l=this,u=[0],g=[],b=[null],a=[],N=this.table,x="",q=0,gt=0,Et=2,xt=1,Mt=a.slice.call(arguments,1),T=Object.create(this.lexer),O={yy:{}};for(var tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,tt)&&(O.yy[tt]=this.yy[tt]);T.setInput(r,O.yy),O.yy.lexer=T,O.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var it=T.yylloc;a.push(it);var It=T.options&&T.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Vt(){var V;return V=g.pop()||T.lex()||xt,typeof V!="number"&&(V instanceof Array&&(g=V,V=g.pop()),V=l.symbols_[V]||V),V}for(var P,W,M,et,z={},j,I,dt,G;;){if(W=u[u.length-1],this.defaultActions[W]?M=this.defaultActions[W]:((P===null||typeof P>"u")&&(P=Vt()),M=N[W]&&N[W][P]),typeof M>"u"||!M.length||!M[0]){var st="";G=[];for(j in N[W])this.terminals_[j]&&j>Et&&G.push("'"+this.terminals_[j]+"'");T.showPosition?st="Parse error on line "+(q+1)+`:
2
- `+T.showPosition()+`
3
- Expecting `+G.join(", ")+", got '"+(this.terminals_[P]||P)+"'":st="Parse error on line "+(q+1)+": Unexpected "+(P==xt?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(st,{text:T.match,token:this.terminals_[P]||P,line:T.yylineno,loc:it,expected:G})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+P);switch(M[0]){case 1:u.push(P),b.push(T.yytext),a.push(T.yylloc),u.push(M[1]),P=null,gt=T.yyleng,x=T.yytext,q=T.yylineno,it=T.yylloc;break;case 2:if(I=this.productions_[M[1]][1],z.$=b[b.length-I],z._$={first_line:a[a.length-(I||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(I||1)].first_column,last_column:a[a.length-1].last_column},It&&(z._$.range=[a[a.length-(I||1)].range[0],a[a.length-1].range[1]]),et=this.performAction.apply(z,[x,gt,q,O.yy,M[1],b,a].concat(Mt)),typeof et<"u")return et;I&&(u=u.slice(0,-1*I*2),b=b.slice(0,-1*I),a=a.slice(0,-1*I)),u.push(this.productions_[M[1]][0]),b.push(z.$),a.push(z._$),dt=N[u[u.length-2]][u[u.length-1]],u.push(dt);break;case 3:return!0}}return!0}},vt=(function(){var B={EOF:1,parseError:function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},setInput:function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var l=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===g.length?this.yylloc.first_column:0)+g[g.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else 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).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
5
- `+l+"^"},test_match:function(r,l){var u,g,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),g=r[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,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(r[0].length),this.matched+=r[0],u=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var a in b)this[a]=b[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,l,u,g;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),a=0;a<b.length;a++)if(u=this._input.match(this.rules[b[a]]),u&&(!l||u[0].length>l[0].length)){if(l=u,g=a,this.options.backtrack_lexer){if(r=this.test_match(u,b[a]),r!==!1)return r;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(r=this.test_match(l,b[g]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var l=this.next();return l||this.lex()},begin:function(l){this.conditionStack.push(l)},popState:function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},pushState:function(l){this.begin(l)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(l,u,g,b){switch(g){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";case 17:return this.pushState("axis_data"),"Y_AXIS";case 18:return this.pushState("axis_band_data"),24;case 19:return 31;case 20:return this.pushState("data"),16;case 21:return this.pushState("data"),18;case 22:return this.pushState("data_inner"),24;case 23:return 27;case 24:return this.popState(),26;case 25:this.popState();break;case 26:this.pushState("string");break;case 27:this.popState();break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 43:break;case 44:return 35;case 45:return 36}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}};return B})();Z.lexer=vt;function J(){this.yy={}}return J.prototype=Z,Z.Parser=J,new J})();at.parser=at;const Ft=at;function yt(e){return e.type==="bar"}function wt(e){return e.type==="band"}function X(e){return e.type==="linear"}class St{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((o,c)=>Math.max(c.length,o),0)*i,height:i};const s={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const o of t){const c=Bt.computeDimensionOfText(n,1,o),f=c?c.width:o.length*i,d=c?c.height:i;s.width=Math.max(s.width,f),s.height=Math.max(s.height,d)}return n.remove(),s}}const mt=.7,bt=.2;class Ct{constructor(t,i,s,n){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){mt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(mt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=bt*t.width;this.outerPadding=Math.min(s.width/2,n);const o=s.height+this.axisConfig.labelPadding*2;this.labelTextHeight=s.height,o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=bt*t.height;this.outerPadding=Math.min(s.height/2,n);const o=s.width+this.axisConfig.labelPadding*2;o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${i},${this.getScaleValue(s)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}}class Nt extends Ct{constructor(t,i,s,n,o){super(t,n,o,i),this.categories=s,this.scale=nt().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=nt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),C.log$1.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)||this.getRange()[0]}}class Xt extends Ct{constructor(t,i,s,n,o){super(t,n,o,i),this.domain=s,this.scale=ft.linear().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=ft.linear().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}}function At(e,t,i,s){const n=new St(s);return wt(e)?new Nt(t,i,e.categories,e.title,n):new Xt(t,i,[e.min,e.max],e.title,n)}class Yt{constructor(t,i,s,n){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),n=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=n&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=n,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}}function $t(e,t,i,s){const n=new St(s);return new Yt(n,e,t,i)}class Ht{constructor(t,i,s,n,o){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=n,this.plotIndex=o}getDrawableElement(){const t=this.plotData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]);let i;return this.orientation==="horizontal"?i=pt.line().y(s=>s[0]).x(s=>s[1])(t):i=pt.line().x(s=>s[0]).y(s=>s[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}class Ut{constructor(t,i,s,n,o,c){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=n,this.orientation=o,this.plotIndex=c}getDrawableElement(){const t=this.barData.data.map(o=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),s=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),n=s/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:this.boundingRect.x,y:o[0]-n,height:s,width:o[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:o[0]-n,y:o[1],width:s,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}}class qt{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{const n=new Ht(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break;case"bar":{const n=new Ut(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break}return t}}function jt(e,t,i){return new qt(e,t,i)}class Gt{constructor(t,i,s,n){this.chartConfig=t,this.chartData=i,this.componentStore={title:$t(t,i,s,n),plot:jt(t,i,s),xAxis:At(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},n),yAxis:At(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},n)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),c=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),f=this.componentStore.plot.calculateSpace({width:o,height:c});t-=f.width,i-=f.height,f=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),n=f.height,i-=f.height,this.componentStore.xAxis.setAxisPosition("bottom"),f=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=f.height,this.componentStore.yAxis.setAxisPosition("left"),f=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=f.width,t-=f.width,t>0&&(o+=t,t=0),i>0&&(c+=i,i=0),this.componentStore.plot.calculateSpace({width:o,height:c}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.xAxis.setRange([s,s+o]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:n+c}),this.componentStore.yAxis.setRange([n,n+c]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(d=>yt(d))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=0,c=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),f=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),d=this.componentStore.plot.calculateSpace({width:c,height:f});t-=d.width,i-=d.height,d=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=d.height,i-=d.height,this.componentStore.xAxis.setAxisPosition("left"),d=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=d.width,n=d.width,this.componentStore.yAxis.setAxisPosition("top"),d=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=d.height,o=s+d.height,t>0&&(c+=t,t=0),i>0&&(f+=i,i=0),this.componentStore.plot.calculateSpace({width:c,height:f}),this.componentStore.plot.setBoundingBoxXY({x:n,y:o}),this.componentStore.yAxis.setRange([n,n+c]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:s}),this.componentStore.xAxis.setRange([o,o+f]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some(R=>yt(R))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}}class Qt{static build(t,i,s,n){return new Gt(t,i,s,n).getDrawableElement()}}let Y=0,_t,$=Tt(),H=kt(),m=Rt(),ot=H.plotColorPalette.split(",").map(e=>e.trim()),Q=!1,rt=!1;function kt(){const e=C.getThemeVariables$2(),t=C.getConfig$1();return C.cleanAndMerge(e.xyChart,t.themeVariables.xyChart)}function Tt(){const e=C.getConfig$1();return C.cleanAndMerge(C.defaultConfig$2.xyChart,e.xyChart)}function Rt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function ht(e){const t=C.getConfig$1();return C.sanitizeText$2(e.trim(),t)}function Kt(e){_t=e}function Zt(e){e==="horizontal"?$.chartOrientation="horizontal":$.chartOrientation="vertical"}function Jt(e){m.xAxis.title=ht(e.text)}function Dt(e,t){m.xAxis={type:"linear",title:m.xAxis.title,min:e,max:t},Q=!0}function ti(e){m.xAxis={type:"band",title:m.xAxis.title,categories:e.map(t=>ht(t.text))},Q=!0}function ii(e){m.yAxis.title=ht(e.text)}function ei(e,t){m.yAxis={type:"linear",title:m.yAxis.title,min:e,max:t},rt=!0}function si(e){const t=Math.min(...e),i=Math.max(...e),s=X(m.yAxis)?m.yAxis.min:1/0,n=X(m.yAxis)?m.yAxis.max:-1/0;m.yAxis={type:"linear",title:m.yAxis.title,min:Math.min(s,t),max:Math.max(n,i)}}function Pt(e){let t=[];if(e.length===0)return t;if(!Q){const i=X(m.xAxis)?m.xAxis.min:1/0,s=X(m.xAxis)?m.xAxis.max:-1/0;Dt(Math.min(i,1),Math.max(s,e.length))}if(rt||si(e),wt(m.xAxis)&&(t=m.xAxis.categories.map((i,s)=>[i,e[s]])),X(m.xAxis)){const i=m.xAxis.min,s=m.xAxis.max,n=(s-i+1)/e.length,o=[];for(let c=i;c<=s;c+=n)o.push(`${c}`);t=o.map((c,f)=>[c,e[f]])}return t}function Lt(e){return ot[e===0?0:e%ot.length]}function ni(e,t){const i=Pt(t);m.plots.push({type:"line",strokeFill:Lt(Y),strokeWidth:2,data:i}),Y++}function ai(e,t){const i=Pt(t);m.plots.push({type:"bar",fill:Lt(Y),data:i}),Y++}function oi(){if(m.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return m.title=C.getDiagramTitle(),Qt.build($,m,H,_t)}function ri(){return H}function hi(){return $}const li=function(){C.clear(),Y=0,$=Tt(),m=Rt(),H=kt(),ot=H.plotColorPalette.split(",").map(e=>e.trim()),Q=!1,rt=!1},ci={getDrawableElem:oi,clear:li,setAccTitle:C.setAccTitle,getAccTitle:C.getAccTitle,setDiagramTitle:C.setDiagramTitle,getDiagramTitle:C.getDiagramTitle,getAccDescription:C.getAccDescription,setAccDescription:C.setAccDescription,setOrientation:Zt,setXAxisTitle:Jt,setXAxisRangeData:Dt,setXAxisBand:ti,setYAxisTitle:ii,setYAxisRangeData:ei,setLineData:ni,setBarData:ai,setTmpSVGG:Kt,getChartThemeConfig:ri,getChartConfig:hi},ui=(e,t,i,s)=>{const n=s.db,o=n.getChartThemeConfig(),c=n.getChartConfig();function f(p){return p==="top"?"text-before-edge":"middle"}function d(p){return p==="left"?"start":p==="right"?"end":"middle"}function R(p){return`translate(${p.x}, ${p.y}) rotate(${p.rotation||0})`}C.log$1.debug(`Rendering xychart chart
7
- `+e);const k=C.selectSvgElement(t),A=k.append("g").attr("class","main"),y=A.append("rect").attr("width",c.width).attr("height",c.height).attr("class","background");C.configureSvgSize(k,c.height,c.width,!0),k.attr("viewBox",`0 0 ${c.width} ${c.height}`),y.attr("fill",o.backgroundColor),n.setTmpSVGG(k.append("g").attr("class","mermaid-tmp-group"));const D=n.getDrawableElem(),S={};function L(p){let _=A,h="";for(const[v]of p.entries()){let F=A;v>0&&S[h]&&(F=S[h]),h+=p[v],_=S[h],_||(_=S[h]=F.append("g").attr("class",p[v]))}return _}for(const p of D){if(p.data.length===0)continue;const _=L(p.groupTexts);switch(p.type){case"rect":_.selectAll("rect").data(p.data).enter().append("rect").attr("x",h=>h.x).attr("y",h=>h.y).attr("width",h=>h.width).attr("height",h=>h.height).attr("fill",h=>h.fill).attr("stroke",h=>h.strokeFill).attr("stroke-width",h=>h.strokeWidth);break;case"text":_.selectAll("text").data(p.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",h=>h.fill).attr("font-size",h=>h.fontSize).attr("dominant-baseline",h=>f(h.verticalPos)).attr("text-anchor",h=>d(h.horizontalPos)).attr("transform",h=>R(h)).text(h=>h.text);break;case"path":_.selectAll("path").data(p.data).enter().append("path").attr("d",h=>h.path).attr("fill",h=>h.fill?h.fill:"none").attr("stroke",h=>h.strokeFill).attr("stroke-width",h=>h.strokeWidth);break}}},gi={draw:ui},xi={parser:Ft,db:ci,renderer:gi};exports.diagram=xi;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./layers.DkUmi55f.js");var e={paste:"貼上",pasteAsPlaintext:"",pasteCharts:"貼上圖表",selectAll:"全選",multiSelect:"多重選取",moveCanvas:"移動畫布",cut:"剪下",copy:"複製",copyAsPng:"以 PNG 格式複製",copyAsSvg:"以 SVG 格式複製",copyText:"",copySource:"",convertToCode:"",bringForward:"往上一層移動",sendToBack:"移到最底層",bringToFront:"移到最上層",sendBackward:"往下一層移動",delete:"刪除",copyStyles:"複製樣式",pasteStyles:"套用樣式",stroke:"筆跡顏色",background:"填充顏色",fill:"背景樣式",strokeWidth:"筆跡寬度",strokeStyle:"筆跡線條",strokeStyle_solid:"實線",strokeStyle_dashed:"虛線(較密)",strokeStyle_dotted:"虛線(較疏)",sloppiness:"筆跡風格",opacity:"透明度",textAlign:"文字對齊",edges:"邊角樣式",sharp:"銳角",round:"圓角",arrowheads:"箭嘴",arrowhead_none:"無箭嘴",arrowhead_arrow:"普通箭嘴",arrowhead_bar:"平頭條狀",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"三角箭嘴",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"字型大小",fontFamily:"字體",addWatermark:"加入「使用 Excalidraw 製圖」水印",handDrawn:"手繪體",normal:"電腦字體",code:"等寬體",small:"細",medium:"中",large:"大",veryLarge:"勁大",solid:"實心",hachure:"斜線",zigzag:"",crossHatch:"交叉格仔",thin:"幼",bold:"粗",left:"靠左對齊",center:"置中對齊",right:"靠右對齊",extraBold:"勁粗",architect:"手繪風格",artist:"藝術家風格",cartoonist:"卡通風格",fileTitle:"檔案名稱",colorPicker:"",canvasColors:"",canvasBackground:"畫布背景顏色",drawingCanvas:"畫布",layers:"圖層",actions:"動作",language:"🌏 語言",liveCollaboration:"",duplicateSelection:"製作副本",untitled:"未命名的作品",name:"",yourName:"你的名稱",madeWithExcalidraw:"使用 Excalidraw 製圖",group:"建立物件群組",ungroup:"取消物件群組",collaborators:"已連線的協作者",showGrid:"顯示網格",addToLibrary:"加入作品庫",removeFromLibrary:"從作品庫中移除",libraryLoadingMessage:"正在載入作品庫…",libraries:"瀏覽作品庫",loadingScene:"載入畫布中…",align:"物件對齊",alignTop:"水平置頂",alignBottom:"水平置底",alignLeft:"垂直靠左對齊",alignRight:"垂直靠右對齊",centerVertically:"垂直置中",centerHorizontally:"水平置中",distributeHorizontally:"左右等距",distributeVertically:"上下等距",flipHorizontal:"左右反轉",flipVertical:"上下反轉",viewMode:"唯讀模式",share:"",showStroke:"",showBackground:"",toggleTheme:"",personalLib:"",excalidrawLib:"",decreaseFontSize:"",increaseFontSize:"",unbindText:"",bindText:"",createContainerFromText:"",link:{edit:"",editEmbed:"",create:"",createEmbed:"",label:"",labelEmbed:"",empty:""},lineEditor:{edit:"",exit:""},elementLock:{lock:"",unlock:"",lockAll:"",unlockAll:""},statusPublished:"",sidebarLock:"",selectAllElementsInFrame:"",removeAllElementsFromFrame:"",eyeDropper:"",textToDiagram:"",prompt:""},u={noItems:"",hint_emptyLibrary:"",hint_emptyPrivateLibrary:""},o={clearReset:"清空畫布",exportJSON:"",exportImage:"",export:"",copyToClipboard:"",save:"",saveAs:"",load:"",getShareableLink:"",close:"",selectLanguage:"",scrollBackToContent:"",zoomIn:"",zoomOut:"",resetZoom:"",menu:"",done:"",edit:"",undo:"",redo:"",resetLibrary:"",createNewRoom:"",fullScreen:"",darkMode:"",lightMode:"",zenMode:"",objectsSnapMode:"",exitZenMode:"",cancel:"",clear:"",remove:"",embed:"",publishLibrary:"",submit:"",confirm:"",embeddableInteractionButton:""},r={clearReset:"【‼️ 警告 ‼️ 無法復原的動作】你確定要清空呢塊畫布嗎?",couldNotCreateShareableLink:"",couldNotCreateShareableLinkTooBig:"",couldNotLoadInvalidFile:"",importBackendFailed:"",cannotExportEmptyCanvas:"無嘢可以匯出喎~畫吓嘢先?",couldNotCopyToClipboard:"",decryptFailed:"",uploadedSecurly:"",loadSceneOverridePrompt:"",collabStopOverridePrompt:"",errorAddingToLibrary:"",errorRemovingFromLibrary:"",confirmAddLibrary:"",imageDoesNotContainScene:"",cannotRestoreFromImage:"",invalidSceneUrl:"",resetLibrary:"",removeItemsFromsLibrary:"",invalidEncryptionKey:"",collabOfflineWarning:""},t={unsupportedFileType:"",imageInsertError:"",fileTooBig:"",svgImageInsertError:"",failedToFetchImage:"",invalidSVGString:"",cannotResolveCollabServer:"",importLibraryError:"",collabSaveFailed:"",collabSaveFailed_sizeExceeded:"",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},a={selection:"",image:"",rectangle:"",diamond:"",ellipse:"",arrow:"",line:"",freedraw:"",text:"",library:"",lock:"",penMode:"",link:"",eraser:"",frame:"",magicframe:"",embeddable:"",laser:"",hand:"",extraTools:"",mermaidToExcalidraw:"",magicSettings:""},i={canvasActions:"畫布動作",selectedShapeActions:"",shapes:""},l={canvasPanning:"",linearElement:"",freeDraw:"",text:"",embeddable:"",text_selected:"",text_editing:"",linearElementMulti:"",lockAngle:"",resize:"",resizeImage:"",rotate:"",lineEditor_info:"",lineEditor_pointSelected:"",lineEditor_nothingSelected:"",placeImage:"",publishLibrary:"",bindTextToElement:"",deepBoxSelect:"",eraserRevert:"",firefox_clipboard_write:"",disableSnapping:""},n={cannotShowPreview:"無法顯示預覽",canvasTooBig:"塊畫布太大啦,縮細啲先啦?",canvasTooBigTip:""},s={headingMain:"",clearCanvasMessage:"如果重新整理頁面都係睇唔到,你可以<button>清空畫布</button>",clearCanvasCaveat:"(注意:呢個動作會直接丟棄你嘅作品,並且無法復原)",trackedToSentry:"",openIssueMessage:"",sceneContent:""},d={desc_intro:"",desc_privacy:"",button_startSession:"",button_stopSession:"",desc_inProgressIntro:"",desc_shareLink:"",desc_exitSession:"",shareTitle:""},c={title:""},F={disk_title:"",disk_details:"",disk_button:"",link_title:"",link_details:"",link_button:"",excalidrawplus_description:"",excalidrawplus_button:"",excalidrawplus_exportError:""},m={blog:"",click:"",deepSelect:"",deepBoxSelect:"",curvedArrow:"",curvedLine:"",documentation:"",doubleClick:"",drag:"",editor:"",editLineArrowPoints:"",editText:"",github:"",howto:"",or:"",preventBinding:"",tools:"",shortcuts:"",textFinish:"",textNewLine:"",title:"",view:"",zoomToFit:"",zoomToSelection:"",toggleElementLock:"",movePageUpDown:"",movePageLeftRight:""},p={title:""},g={title:"",itemName:"",authorName:"",githubUsername:"",twitterUsername:"",libraryName:"",libraryDesc:"",website:"",placeholder:{authorName:"",libraryName:"",libraryDesc:"",githubHandle:"",twitterHandle:"",website:""},errors:{required:"",website:""},noteDescription:"",noteGuidelines:"",noteLicense:"",noteItems:"",atleastOneLibItem:"",republishWarning:""},E={title:"",content:""},b={resetLibrary:"",removeItemsFromLib:""},D={header:"",label:{withBackground:"",onlySelected:"",darkMode:"",embedScene:"",scale:"",padding:""},tooltip:{embedScene:""},title:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""},button:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""}},C={tooltip:"",link:""},A={angle:"",element:"",elements:"",height:"",scene:"",selected:"",storage:"",title:"",total:"",version:"",versionCopy:"",versionNotAvailable:"",width:""},B={addedToLibrary:"",copyStyles:"",copyToClipboard:"",copyToClipboardAsPng:"",fileSaved:"",fileSavedToFilename:"",canvas:"畫布",selection:"",pasteAsSingleElement:"",unableToEmbed:"",unrecognizedLinkFormat:""},h={transparent:"",black:"",white:"",red:"",pink:"",grape:"",violet:"",gray:"",blue:"",cyan:"",teal:"",green:"",yellow:"",orange:"",bronze:""},y={app:{center_heading:"",center_heading_plus:"",menuHint:""},defaults:{menuHint:"",center_heading:"",toolbarHint:"",helpHint:""}},v={mostUsedCustomColors:"",colors:"",shades:"",hexCode:"",noShades:""},S={action:{exportToImage:{title:"",button:"",description:""},saveToDisk:{title:"",button:"",description:""},excalidrawPlus:{title:"",button:"",description:""}},modal:{loadFromFile:{title:"",button:"",description:""},shareableLink:{title:"",button:"",description:""}}},w={title:"",button:"",description:"",syntax:"",preview:""},k={labels:e,library:u,buttons:o,alerts:r,errors:t,toolBar:a,headings:i,hints:l,canvasError:n,errorSplash:s,roomDialog:d,errorDialog:c,exportDialog:F,helpDialog:m,clearCanvasDialog:p,publishDialog:g,publishSuccessDialog:E,confirmDialog:b,imageExportDialog:D,encrypted:C,stats:A,toast:B,colors:h,welcomeScreen:y,colorPicker:v,overwriteConfirm:S,mermaid:w};exports.alerts=r;exports.buttons=o;exports.canvasError=n;exports.clearCanvasDialog=p;exports.colorPicker=v;exports.colors=h;exports.confirmDialog=b;exports.default=k;exports.encrypted=C;exports.errorDialog=c;exports.errorSplash=s;exports.errors=t;exports.exportDialog=F;exports.headings=i;exports.helpDialog=m;exports.hints=l;exports.imageExportDialog=D;exports.labels=e;exports.library=u;exports.mermaid=w;exports.overwriteConfirm=S;exports.publishDialog=g;exports.publishSuccessDialog=E;exports.roomDialog=d;exports.stats=A;exports.toast=B;exports.toolBar=a;exports.welcomeScreen=y;