@layers-app/editor 0.7.47 → 0.7.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +830 -830
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -4
- package/dist/layers.2sxk2h9p.js +423 -0
- package/dist/layers.3fhqDXGQ.js +32 -0
- package/dist/layers.52famHy6.js +1 -0
- package/dist/layers.6LJL3iMX.js +960 -0
- package/dist/layers.6lVF0vjp.js +806 -0
- package/dist/layers.6vQhCrMO.js +42 -0
- package/dist/layers.7JqFgE4-.js +15 -0
- package/dist/layers.8jPh7nZ7.js +10 -0
- package/dist/layers.9YYn67yF.js +34 -0
- package/dist/layers.9o0Jdg-U.js +36 -0
- package/dist/layers.9pNaFvaX.js +1 -0
- package/dist/layers.B0L7owR9.js +1286 -0
- package/dist/layers.B124trWB.js +40 -0
- package/dist/layers.B19hGmey.js +1 -0
- package/dist/layers.B3D4g2HH.js +1 -0
- package/dist/layers.B4bJKqOt.js +1 -0
- package/dist/layers.B50R5EaK.js +41 -0
- package/dist/layers.B74E_Mhu.js +6 -0
- package/dist/layers.B7K7JjK6.js +1510 -0
- package/dist/layers.B7c71bAt.js +32 -0
- package/dist/layers.B96L1hG2.js +11 -0
- package/dist/layers.B9Rx2foX.js +805 -0
- package/dist/layers.BAtv1CM7.js +1 -0
- package/dist/layers.BB461pvX.js +1 -0
- package/dist/layers.BBix4GLX.js +76 -0
- package/dist/layers.BIeVwYKL.js +1 -0
- package/dist/layers.BJDrjORS.js +244 -0
- package/dist/layers.BKyEhTMV.js +41 -0
- package/dist/layers.BLUQsSE-.js +9 -0
- package/dist/layers.BLd2spTm.js +1 -0
- package/dist/layers.BNuBcDIb.js +35 -0
- package/dist/layers.BPHAY1-9.js +22 -0
- package/dist/layers.BQ2I5acy.js +9 -0
- package/dist/layers.BRWyWzwh.js +10 -0
- package/dist/layers.BS6VvqxC.js +40 -0
- package/dist/layers.BSTBZrFn.js +1 -0
- package/dist/layers.BTbPm8pR.js +39 -0
- package/dist/layers.BV-egvVp.js +8 -0
- package/dist/layers.BVr10oU3.js +9 -0
- package/dist/layers.BWw1mK7X.js +10 -0
- package/dist/layers.BXIUEFQw.js +37 -0
- package/dist/layers.BXS2uNb0.js +40 -0
- package/dist/layers.BaGJS1l7.js +40 -0
- package/dist/layers.BbCfEXyj.js +55 -0
- package/dist/layers.Bc8eVF2x.js +10 -0
- package/dist/layers.BdYtCOnE.js +11 -0
- package/dist/layers.Be6CBZHC.js +2 -0
- package/dist/layers.BeKf3u57.js +5 -0
- package/dist/layers.BgQO_ULY.js +207 -0
- package/dist/layers.BhDueLVc.js +40 -0
- package/dist/layers.BhDyoOpp.js +1089 -0
- package/dist/layers.BiakMAVz.js +36 -0
- package/dist/layers.BpilXLfW.js +6 -0
- package/dist/layers.Bpw9JnCv.js +52 -0
- package/dist/layers.Bq2f36dx.js +1 -0
- package/dist/layers.BsA7eoz8.js +2966 -0
- package/dist/layers.BsxmtGhi.js +4 -0
- package/dist/layers.BszXwlqm.js +1 -0
- package/dist/layers.Bt2v9ZR3.js +44 -0
- package/dist/layers.BtKGefaP.js +39 -0
- package/dist/layers.BtLFUN9L.js +33 -0
- package/dist/layers.BtTn3DWi.js +1 -0
- package/dist/layers.BtWDGtLj.js +160 -0
- package/dist/layers.Bw7qkQsX.js +8 -0
- package/dist/layers.BwxPrRZD.js +4 -0
- package/dist/layers.Bxcxrsy_.js +1583 -0
- package/dist/layers.C-XVPziT.js +1 -0
- package/dist/layers.C3E0dLDD.js +37 -0
- package/dist/layers.C3ctqQ_d.js +1225 -0
- package/dist/layers.C57RR3BP.js +5 -0
- package/dist/layers.C5TvEQpd.js +4 -0
- package/dist/layers.C5XJmJhy.js +794 -0
- package/dist/layers.C5XRUPsP.js +504 -0
- package/dist/layers.C6lFx_9o.js +32 -0
- package/dist/layers.C6vIa6gn.js +11 -0
- package/dist/layers.C8_lu5UH.js +23 -0
- package/dist/layers.CAXlMwAW.js +7 -0
- package/dist/layers.CBwlQeze.js +38 -0
- package/dist/layers.CCVxi5hB.js +1 -0
- package/dist/layers.CDVEdgbo.js +10 -0
- package/dist/layers.CEWorf-C.js +7 -0
- package/dist/layers.CFHq5644.js +10 -0
- package/dist/layers.CG7r3vnU.js +41 -0
- package/dist/layers.CGJlI-Xk.js +37 -0
- package/dist/layers.CHZsXQcr.js +1 -0
- package/dist/layers.CHh5bEfC.js +41 -0
- package/dist/layers.CI55as3L.js +205 -0
- package/dist/layers.CIleDfVS.js +21941 -0
- package/dist/layers.CImHWuWy.js +1 -0
- package/dist/layers.CJaUnfvI.js +122 -0
- package/dist/layers.CKmkJeNx.js +8 -0
- package/dist/layers.CLCDYoNw.js +40 -0
- package/dist/layers.CLLW_-MM.js +1 -0
- package/dist/{layers.Hq0pIRX3.js → layers.CLSq6d5G.js} +21 -21
- package/dist/layers.CPK-8aJ9.js +8 -0
- package/dist/layers.CQrT2kiR.js +4 -0
- package/dist/layers.CROEZPe3.js +1 -0
- package/dist/layers.CTizu7k3.js +1 -0
- package/dist/layers.CTtXyJIC.js +51 -0
- package/dist/layers.CUFmR0uO.js +2238 -0
- package/dist/layers.CUQCdPfS.js +1 -0
- package/dist/layers.CXwIo_E2.js +934 -0
- package/dist/layers.C_IvrzZ3.js +7 -0
- package/dist/layers.Cbh8488l.js +9 -0
- package/dist/layers.CeWHZgFl.js +223 -0
- package/dist/layers.ChByNJR4.js +1 -0
- package/dist/layers.CiayK_jX.js +7 -0
- package/dist/layers.CiloWOji.js +2 -0
- package/dist/layers.CivvhzLf.js +11 -0
- package/dist/layers.CjKkiQ-5.js +40 -0
- package/dist/layers.Cm1JRCTb.js +189 -0
- package/dist/layers.Cn0EJP31.js +1126 -0
- package/dist/layers.CoUMygdc.js +9 -0
- package/dist/layers.CqJ3U1Dv.js +1 -0
- package/dist/layers.CqVTtuYm.js +6 -0
- package/dist/layers.CrTPxY8M.js +40 -0
- package/dist/layers.CrhlCVRH.js +8 -0
- package/dist/layers.CvKfVfgR.js +41 -0
- package/dist/layers.Cw1UVYRF.js +39 -0
- package/dist/{layers.Cfvta__C.js → layers.Cw6AQ1zH.js} +1 -1
- package/dist/layers.Cw76BJN2.js +32 -0
- package/dist/layers.CxuRP1lw.js +6 -0
- package/dist/layers.Cyu04oeV.js +7 -0
- package/dist/layers.Cyzu9PKQ.js +1 -0
- package/dist/layers.CzYE0Ooc.js +42 -0
- package/dist/layers.D0zn4_Mx.js +1 -0
- package/dist/layers.D16HelAS.js +213 -0
- package/dist/layers.D1BZqHRU.js +38 -0
- package/dist/layers.D2PgPKOo.js +13 -0
- package/dist/layers.D4T8fTcj.js +1223 -0
- package/dist/layers.D5Kikhmz.js +295 -0
- package/dist/layers.D5vKDO3Z.js +1 -0
- package/dist/layers.D634RCv2.js +6 -0
- package/dist/layers.D6fxuXiV.js +39 -0
- package/dist/layers.D77Lwa5B.js +10 -0
- package/dist/layers.D7jGxypv.js +8 -0
- package/dist/layers.D9Aq-VH-.js +36 -0
- package/dist/layers.DAN-8W9x.js +48149 -0
- package/dist/layers.DB59_4ZT.js +118 -0
- package/dist/layers.DBKCfxsn.js +7 -0
- package/dist/layers.DC44PHoe.js +1 -0
- package/dist/layers.DDIKIPEl.js +425 -0
- package/dist/layers.DDNSbyH9.js +11 -0
- package/dist/layers.DE-1MOCW.js +6 -0
- package/dist/layers.DEJLOhUD.js +5 -0
- package/dist/layers.DF5Jf3M9.js +9 -0
- package/dist/layers.DFEtOzCz.js +37 -0
- package/dist/layers.DFiKSx4e.js +9 -0
- package/dist/layers.DGwBwWGl.js +373 -0
- package/dist/layers.DJtJoK2T.js +8 -0
- package/dist/layers.DJugFK-r.js +129 -0
- package/dist/layers.DJuxVMes.js +39 -0
- package/dist/layers.DLOvj2ew.js +70 -0
- package/dist/layers.DLmk4e9A.js +8 -0
- package/dist/layers.DLwuMfdd.js +84 -0
- package/dist/layers.DMRUFJsX.js +8 -0
- package/dist/layers.DMkBISW1.js +1 -0
- package/dist/layers.DN9HoVxI.js +18 -0
- package/dist/layers.DO0X6c0O.js +323 -0
- package/dist/layers.DOrgOHBr.js +1 -0
- package/dist/layers.DPlZKJgj.js +437 -0
- package/dist/layers.DQxhNW5R.js +9 -0
- package/dist/layers.DReq7_oC.js +296 -0
- package/dist/layers.DT9rsUtv.js +198 -0
- package/dist/layers.DU05EaWA.js +907 -0
- package/dist/layers.DUEmMZLx.js +41 -0
- package/dist/layers.DWAsYusl.js +116 -0
- package/dist/layers.DWYk3UK6.js +40 -0
- package/dist/layers.DWhMR9ZJ.js +139 -0
- package/dist/layers.DXS1j64l.js +271 -0
- package/dist/layers.DYURS4FP.js +84 -0
- package/dist/layers.D_RUDzWv.js +21620 -0
- package/dist/layers.DbVdGKld.js +1 -0
- package/dist/layers.DbaKVP5e.js +1 -0
- package/dist/layers.DcAdQwtK.js +7 -0
- package/dist/layers.DcMkjKaG.js +6 -0
- package/dist/layers.DgvrVyqi.js +96 -0
- package/dist/layers.Dhq37bku.js +10 -0
- package/dist/layers.DjUOC4st.js +16 -0
- package/dist/layers.DjkEwMtb.js +796 -0
- package/dist/layers.Dl8xQWMG.js +39 -0
- package/dist/layers.DlufDKX8.js +139 -0
- package/dist/layers.DnJXYiZP.js +40 -0
- package/dist/layers.DnXs_pNB.js +39 -0
- package/dist/layers.Do15drP1.js +3 -0
- package/dist/layers.DokfH0hd.js +39 -0
- package/dist/layers.DpNZa-jp.js +9 -0
- package/dist/layers.Dr3MCGOM.js +1088 -0
- package/dist/layers.DrQ8hvnX.js +5 -0
- package/dist/layers.DsptZoFe.js +42 -0
- package/dist/layers.DtD3skoW.js +1619 -0
- package/dist/layers.Dtms4fW5.js +5 -0
- package/dist/layers.Du0f9MLd.js +42 -0
- package/dist/layers.DuZA4Xas.js +32 -0
- package/dist/layers.Dwh8gx1i.js +1 -0
- package/dist/layers.DwizeusR.js +9 -0
- package/dist/layers.DxA6ocdw.js +70 -0
- package/dist/layers.Dy1naDTQ.js +14 -0
- package/dist/layers.DyL1tlRE.js +276 -0
- package/dist/layers.DyRolv1I.js +8 -0
- package/dist/layers.DzFqkluR.js +2482 -0
- package/dist/layers.DzSq4y89.js +14 -0
- package/dist/layers.Gsg2l9lj.js +1 -0
- package/dist/layers.H6NhhT0Z.js +35 -0
- package/dist/layers.JWCLFILJ.js +1 -0
- package/dist/{layers.BtvuN20E.js → layers.MmOx3Q5y.js} +10159 -9401
- package/dist/layers.NYVxQ2J0.js +38 -0
- package/dist/layers.Oz9AvXqT.js +772 -0
- package/dist/layers.R8mPlCA0.js +261 -0
- package/dist/layers.TMqEBNpX.js +1 -0
- package/dist/layers.Te010ICg.js +8583 -0
- package/dist/layers.VN0Yeq2V.js +1 -0
- package/dist/layers.WnvKMTKL.js +61 -0
- package/dist/layers.WxQ6m-UP.js +36 -0
- package/dist/layers.X0_Gx5lN.js +42 -0
- package/dist/layers.Y9FRICz5.js +10 -0
- package/dist/layers.ZGwk_KWb.js +7 -0
- package/dist/layers.b0h5ZBmD.js +61 -0
- package/dist/{layers.CsQlovyR.js → layers.b9B2NY7n.js} +1950 -2191
- package/dist/layers.blh6SXpL.js +8 -0
- package/dist/layers.d5j1lEFQ.js +2 -0
- package/dist/layers.eGX8dSo1.js +1 -0
- package/dist/layers.eIIS5NDC.js +1 -0
- package/dist/layers.fxqbBEns.js +35 -0
- package/dist/layers.hAT_4n_i.js +6 -0
- package/dist/layers.jPwVCOt0.js +39 -0
- package/dist/layers.jgfr1mFT.js +65 -0
- package/dist/layers.lCpg7dOn.js +21 -0
- package/dist/layers.lMAyLkuo.js +1 -0
- package/dist/layers.lX16IRwc.js +10 -0
- package/dist/layers.oFuJymzn.js +41 -0
- package/dist/layers.p872qi0O.js +1034 -0
- package/dist/layers.pHpJOB6N.js +1 -0
- package/dist/layers.pgbpWh46.js +84 -0
- package/dist/layers.pixPTfNv.js +33 -0
- package/dist/layers.rmoiicvu.js +41 -0
- package/dist/layers.rvTNl4lr.js +7 -0
- package/dist/layers.ssiSYLMt.js +32 -0
- package/dist/layers.xcmbrsYu.js +257 -0
- package/dist/layers.xtkyz0Y7.js +1268 -0
- package/package.json +2 -2
- package/dist/layers.B88sQYuh.js +0 -297
- package/dist/layers.BgMykHnn.js +0 -154
- package/dist/layers.Ct1ojjl3.js +0 -1
- package/dist/layers.JT_kEFH5.js +0 -129
- package/dist/layers.NW1lST7i.js +0 -1
- package/dist/layers.pwc3O6Es.js +0 -261
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import { l as Y, A as D, e as M } from "./layers.Te010ICg.js";
|
|
2
|
+
import "./layers.D_RUDzWv.js";
|
|
3
|
+
import "lodash-es/memoize.js";
|
|
4
|
+
import "lodash-es/merge.js";
|
|
5
|
+
import "lodash-es/isEmpty.js";
|
|
6
|
+
var O = (function() {
|
|
7
|
+
var a = function(u, t, e, n) {
|
|
8
|
+
for (e = e || {}, n = u.length; n--; e[u[n]] = t)
|
|
9
|
+
;
|
|
10
|
+
return e;
|
|
11
|
+
}, f = [6, 9, 10], m = {
|
|
12
|
+
trace: function() {
|
|
13
|
+
},
|
|
14
|
+
yy: {},
|
|
15
|
+
symbols_: { error: 2, start: 3, info: 4, document: 5, EOF: 6, line: 7, statement: 8, NL: 9, showInfo: 10, $accept: 0, $end: 1 },
|
|
16
|
+
terminals_: { 2: "error", 4: "info", 6: "EOF", 9: "NL", 10: "showInfo" },
|
|
17
|
+
productions_: [0, [3, 3], [5, 0], [5, 2], [7, 1], [7, 1], [8, 1]],
|
|
18
|
+
performAction: function(t, e, n, s, r, i, d) {
|
|
19
|
+
switch (i.length - 1, r) {
|
|
20
|
+
case 1:
|
|
21
|
+
return s;
|
|
22
|
+
case 4:
|
|
23
|
+
break;
|
|
24
|
+
case 6:
|
|
25
|
+
s.setInfo(!0);
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
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])],
|
|
30
|
+
defaultActions: { 4: [2, 1] },
|
|
31
|
+
parseError: function(t, e) {
|
|
32
|
+
if (e.recoverable)
|
|
33
|
+
this.trace(t);
|
|
34
|
+
else {
|
|
35
|
+
var n = new Error(t);
|
|
36
|
+
throw n.hash = e, n;
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
parse: function(t) {
|
|
40
|
+
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: {} };
|
|
41
|
+
for (var E in this.yy)
|
|
42
|
+
Object.prototype.hasOwnProperty.call(this.yy, E) && (p.yy[E] = this.yy[E]);
|
|
43
|
+
o.setInput(t, p.yy), p.yy.lexer = o, p.yy.parser = this, typeof o.yylloc > "u" && (o.yylloc = {});
|
|
44
|
+
var I = o.yylloc;
|
|
45
|
+
i.push(I);
|
|
46
|
+
var z = o.options && o.options.ranges;
|
|
47
|
+
typeof p.yy.parseError == "function" ? this.parseError = p.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
48
|
+
function U() {
|
|
49
|
+
var y;
|
|
50
|
+
return y = s.pop() || o.lex() || T, typeof y != "number" && (y instanceof Array && (s = y, y = s.pop()), y = e.symbols_[y] || y), y;
|
|
51
|
+
}
|
|
52
|
+
for (var l, g, h, w, _ = {}, b, c, F, S; ; ) {
|
|
53
|
+
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]) {
|
|
54
|
+
var A = "";
|
|
55
|
+
S = [];
|
|
56
|
+
for (b in d[g])
|
|
57
|
+
this.terminals_[b] && b > N && S.push("'" + this.terminals_[b] + "'");
|
|
58
|
+
o.showPosition ? A = "Parse error on line " + (v + 1) + `:
|
|
59
|
+
` + o.showPosition() + `
|
|
60
|
+
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, {
|
|
61
|
+
text: o.match,
|
|
62
|
+
token: this.terminals_[l] || l,
|
|
63
|
+
line: o.yylineno,
|
|
64
|
+
loc: I,
|
|
65
|
+
expected: S
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
if (h[0] instanceof Array && h.length > 1)
|
|
69
|
+
throw new Error("Parse Error: multiple actions possible at state: " + g + ", token: " + l);
|
|
70
|
+
switch (h[0]) {
|
|
71
|
+
case 1:
|
|
72
|
+
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;
|
|
73
|
+
break;
|
|
74
|
+
case 2:
|
|
75
|
+
if (c = this.productions_[h[1]][1], _.$ = r[r.length - c], _._$ = {
|
|
76
|
+
first_line: i[i.length - (c || 1)].first_line,
|
|
77
|
+
last_line: i[i.length - 1].last_line,
|
|
78
|
+
first_column: i[i.length - (c || 1)].first_column,
|
|
79
|
+
last_column: i[i.length - 1].last_column
|
|
80
|
+
}, z && (_._$.range = [
|
|
81
|
+
i[i.length - (c || 1)].range[0],
|
|
82
|
+
i[i.length - 1].range[1]
|
|
83
|
+
]), w = this.performAction.apply(_, [
|
|
84
|
+
P,
|
|
85
|
+
L,
|
|
86
|
+
v,
|
|
87
|
+
p.yy,
|
|
88
|
+
h[1],
|
|
89
|
+
r,
|
|
90
|
+
i
|
|
91
|
+
].concat(R)), typeof w < "u")
|
|
92
|
+
return w;
|
|
93
|
+
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);
|
|
94
|
+
break;
|
|
95
|
+
case 3:
|
|
96
|
+
return !0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return !0;
|
|
100
|
+
}
|
|
101
|
+
}, k = /* @__PURE__ */ (function() {
|
|
102
|
+
var u = {
|
|
103
|
+
EOF: 1,
|
|
104
|
+
parseError: function(e, n) {
|
|
105
|
+
if (this.yy.parser)
|
|
106
|
+
this.yy.parser.parseError(e, n);
|
|
107
|
+
else
|
|
108
|
+
throw new Error(e);
|
|
109
|
+
},
|
|
110
|
+
// resets the lexer, sets new input
|
|
111
|
+
setInput: function(t, e) {
|
|
112
|
+
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 = {
|
|
113
|
+
first_line: 1,
|
|
114
|
+
first_column: 0,
|
|
115
|
+
last_line: 1,
|
|
116
|
+
last_column: 0
|
|
117
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
118
|
+
},
|
|
119
|
+
// consumes and returns one char from the input
|
|
120
|
+
input: function() {
|
|
121
|
+
var t = this._input[0];
|
|
122
|
+
this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
|
|
123
|
+
var e = t.match(/(?:\r\n?|\n).*/g);
|
|
124
|
+
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;
|
|
125
|
+
},
|
|
126
|
+
// unshifts one char (or a string) into the input
|
|
127
|
+
unput: function(t) {
|
|
128
|
+
var e = t.length, n = t.split(/(?:\r\n?|\n)/g);
|
|
129
|
+
this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - e), this.offset -= e;
|
|
130
|
+
var s = this.match.split(/(?:\r\n?|\n)/g);
|
|
131
|
+
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);
|
|
132
|
+
var r = this.yylloc.range;
|
|
133
|
+
return this.yylloc = {
|
|
134
|
+
first_line: this.yylloc.first_line,
|
|
135
|
+
last_line: this.yylineno + 1,
|
|
136
|
+
first_column: this.yylloc.first_column,
|
|
137
|
+
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
|
|
138
|
+
}, this.options.ranges && (this.yylloc.range = [r[0], r[0] + this.yyleng - e]), this.yyleng = this.yytext.length, this;
|
|
139
|
+
},
|
|
140
|
+
// When called from action, caches matched text and appends it on next action
|
|
141
|
+
more: function() {
|
|
142
|
+
return this._more = !0, this;
|
|
143
|
+
},
|
|
144
|
+
// 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.
|
|
145
|
+
reject: function() {
|
|
146
|
+
if (this.options.backtrack_lexer)
|
|
147
|
+
this._backtrack = !0;
|
|
148
|
+
else
|
|
149
|
+
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).
|
|
150
|
+
` + this.showPosition(), {
|
|
151
|
+
text: "",
|
|
152
|
+
token: null,
|
|
153
|
+
line: this.yylineno
|
|
154
|
+
});
|
|
155
|
+
return this;
|
|
156
|
+
},
|
|
157
|
+
// retain first n characters of the match
|
|
158
|
+
less: function(t) {
|
|
159
|
+
this.unput(this.match.slice(t));
|
|
160
|
+
},
|
|
161
|
+
// displays already matched input, i.e. for error messages
|
|
162
|
+
pastInput: function() {
|
|
163
|
+
var t = this.matched.substr(0, this.matched.length - this.match.length);
|
|
164
|
+
return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
|
|
165
|
+
},
|
|
166
|
+
// displays upcoming input, i.e. for error messages
|
|
167
|
+
upcomingInput: function() {
|
|
168
|
+
var t = this.match;
|
|
169
|
+
return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
170
|
+
},
|
|
171
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
172
|
+
showPosition: function() {
|
|
173
|
+
var t = this.pastInput(), e = new Array(t.length + 1).join("-");
|
|
174
|
+
return t + this.upcomingInput() + `
|
|
175
|
+
` + e + "^";
|
|
176
|
+
},
|
|
177
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
178
|
+
test_match: function(t, e) {
|
|
179
|
+
var n, s, r;
|
|
180
|
+
if (this.options.backtrack_lexer && (r = {
|
|
181
|
+
yylineno: this.yylineno,
|
|
182
|
+
yylloc: {
|
|
183
|
+
first_line: this.yylloc.first_line,
|
|
184
|
+
last_line: this.last_line,
|
|
185
|
+
first_column: this.yylloc.first_column,
|
|
186
|
+
last_column: this.yylloc.last_column
|
|
187
|
+
},
|
|
188
|
+
yytext: this.yytext,
|
|
189
|
+
match: this.match,
|
|
190
|
+
matches: this.matches,
|
|
191
|
+
matched: this.matched,
|
|
192
|
+
yyleng: this.yyleng,
|
|
193
|
+
offset: this.offset,
|
|
194
|
+
_more: this._more,
|
|
195
|
+
_input: this._input,
|
|
196
|
+
yy: this.yy,
|
|
197
|
+
conditionStack: this.conditionStack.slice(0),
|
|
198
|
+
done: this.done
|
|
199
|
+
}, 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 = {
|
|
200
|
+
first_line: this.yylloc.last_line,
|
|
201
|
+
last_line: this.yylineno + 1,
|
|
202
|
+
first_column: this.yylloc.last_column,
|
|
203
|
+
last_column: s ? s[s.length - 1].length - s[s.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
|
|
204
|
+
}, 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)
|
|
205
|
+
return n;
|
|
206
|
+
if (this._backtrack) {
|
|
207
|
+
for (var i in r)
|
|
208
|
+
this[i] = r[i];
|
|
209
|
+
return !1;
|
|
210
|
+
}
|
|
211
|
+
return !1;
|
|
212
|
+
},
|
|
213
|
+
// return next match in input
|
|
214
|
+
next: function() {
|
|
215
|
+
if (this.done)
|
|
216
|
+
return this.EOF;
|
|
217
|
+
this._input || (this.done = !0);
|
|
218
|
+
var t, e, n, s;
|
|
219
|
+
this._more || (this.yytext = "", this.match = "");
|
|
220
|
+
for (var r = this._currentRules(), i = 0; i < r.length; i++)
|
|
221
|
+
if (n = this._input.match(this.rules[r[i]]), n && (!e || n[0].length > e[0].length)) {
|
|
222
|
+
if (e = n, s = i, this.options.backtrack_lexer) {
|
|
223
|
+
if (t = this.test_match(n, r[i]), t !== !1)
|
|
224
|
+
return t;
|
|
225
|
+
if (this._backtrack) {
|
|
226
|
+
e = !1;
|
|
227
|
+
continue;
|
|
228
|
+
} else
|
|
229
|
+
return !1;
|
|
230
|
+
} else if (!this.options.flex)
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
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.
|
|
234
|
+
` + this.showPosition(), {
|
|
235
|
+
text: "",
|
|
236
|
+
token: null,
|
|
237
|
+
line: this.yylineno
|
|
238
|
+
});
|
|
239
|
+
},
|
|
240
|
+
// return next match that has a token
|
|
241
|
+
lex: function() {
|
|
242
|
+
var e = this.next();
|
|
243
|
+
return e || this.lex();
|
|
244
|
+
},
|
|
245
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
246
|
+
begin: function(e) {
|
|
247
|
+
this.conditionStack.push(e);
|
|
248
|
+
},
|
|
249
|
+
// pop the previously active lexer condition state off the condition stack
|
|
250
|
+
popState: function() {
|
|
251
|
+
var e = this.conditionStack.length - 1;
|
|
252
|
+
return e > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
253
|
+
},
|
|
254
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
255
|
+
_currentRules: function() {
|
|
256
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
257
|
+
},
|
|
258
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
259
|
+
topState: function(e) {
|
|
260
|
+
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
261
|
+
},
|
|
262
|
+
// alias for begin(condition)
|
|
263
|
+
pushState: function(e) {
|
|
264
|
+
this.begin(e);
|
|
265
|
+
},
|
|
266
|
+
// return the number of states currently on the stack
|
|
267
|
+
stateStackSize: function() {
|
|
268
|
+
return this.conditionStack.length;
|
|
269
|
+
},
|
|
270
|
+
options: { "case-insensitive": !0 },
|
|
271
|
+
performAction: function(e, n, s, r) {
|
|
272
|
+
switch (s) {
|
|
273
|
+
case 0:
|
|
274
|
+
return 4;
|
|
275
|
+
case 1:
|
|
276
|
+
return 9;
|
|
277
|
+
case 2:
|
|
278
|
+
return "space";
|
|
279
|
+
case 3:
|
|
280
|
+
return 10;
|
|
281
|
+
case 4:
|
|
282
|
+
return 6;
|
|
283
|
+
case 5:
|
|
284
|
+
return "TXT";
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
rules: [/^(?:info\b)/i, /^(?:[\s\n\r]+)/i, /^(?:[\s]+)/i, /^(?:showInfo\b)/i, /^(?:$)/i, /^(?:.)/i],
|
|
288
|
+
conditions: { INITIAL: { rules: [0, 1, 2, 3, 4, 5], inclusive: !0 } }
|
|
289
|
+
};
|
|
290
|
+
return u;
|
|
291
|
+
})();
|
|
292
|
+
m.lexer = k;
|
|
293
|
+
function x() {
|
|
294
|
+
this.yy = {};
|
|
295
|
+
}
|
|
296
|
+
return x.prototype = m, m.Parser = x, new x();
|
|
297
|
+
})();
|
|
298
|
+
O.parser = O;
|
|
299
|
+
const B = O, j = {
|
|
300
|
+
info: !1
|
|
301
|
+
};
|
|
302
|
+
let $ = j.info;
|
|
303
|
+
const V = (a) => {
|
|
304
|
+
$ = a;
|
|
305
|
+
}, X = () => $, q = () => {
|
|
306
|
+
$ = j.info;
|
|
307
|
+
}, C = {
|
|
308
|
+
clear: q,
|
|
309
|
+
setInfo: V,
|
|
310
|
+
getInfo: X
|
|
311
|
+
}, G = (a, f, m) => {
|
|
312
|
+
Y.debug(`rendering info diagram
|
|
313
|
+
` + a);
|
|
314
|
+
const k = D(f);
|
|
315
|
+
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}`);
|
|
316
|
+
}, H = { draw: G }, tt = {
|
|
317
|
+
parser: B,
|
|
318
|
+
db: C,
|
|
319
|
+
renderer: H
|
|
320
|
+
};
|
|
321
|
+
export {
|
|
322
|
+
tt as diagram
|
|
323
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const M=Math.PI,x=2*M,p=1e-6,T=x-p;function E(e){this._+=e[0];for(let t=1,h=e.length;t<h;++t)this._+=arguments[t]+e[t]}function m(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return E;const h=10**t;return function(i){this._+=i[0];for(let s=1,n=i.length;s<n;++s)this._+=Math.round(arguments[s]*h)/h+i[s]}}class A{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?E:m(t)}moveTo(t,h){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+h}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,h){this._append`L${this._x1=+t},${this._y1=+h}`}quadraticCurveTo(t,h,i,s){this._append`Q${+t},${+h},${this._x1=+i},${this._y1=+s}`}bezierCurveTo(t,h,i,s,n,$){this._append`C${+t},${+h},${+i},${+s},${this._x1=+n},${this._y1=+$}`}arcTo(t,h,i,s,n){if(t=+t,h=+h,i=+i,s=+s,n=+n,n<0)throw new Error(`negative radius: ${n}`);let $=this._x1,r=this._y1,u=i-t,l=s-h,_=$-t,o=r-h,a=_*_+o*o;if(this._x1===null)this._append`M${this._x1=t},${this._y1=h}`;else if(a>p)if(!(Math.abs(o*u-l*_)>p)||!n)this._append`L${this._x1=t},${this._y1=h}`;else{let d=i-$,f=s-r,y=u*u+l*l,P=d*d+f*f,g=Math.sqrt(y),v=Math.sqrt(a),w=n*Math.tan((M-Math.acos((y+a-P)/(2*g*v)))/2),c=w/v,b=w/g;Math.abs(c-1)>p&&this._append`L${t+c*_},${h+c*o}`,this._append`A${n},${n},0,0,${+(o*d>_*f)},${this._x1=t+b*u},${this._y1=h+b*l}`}}arc(t,h,i,s,n,$){if(t=+t,h=+h,i=+i,$=!!$,i<0)throw new Error(`negative radius: ${i}`);let r=i*Math.cos(s),u=i*Math.sin(s),l=t+r,_=h+u,o=1^$,a=$?s-n:n-s;this._x1===null?this._append`M${l},${_}`:(Math.abs(this._x1-l)>p||Math.abs(this._y1-_)>p)&&this._append`L${l},${_}`,i&&(a<0&&(a=a%x+x),a>T?this._append`A${i},${i},0,1,${o},${t-r},${h-u}A${i},${i},0,1,${o},${this._x1=l},${this._y1=_}`:a>p&&this._append`A${i},${i},0,${+(a>=M)},${o},${this._x1=t+i*Math.cos(n)},${this._y1=h+i*Math.sin(n)}`)}rect(t,h,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+h}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function L(e){return function(){return e}}function q(e){let t=3;return e.digits=function(h){if(!arguments.length)return t;if(h==null)t=null;else{const i=Math.floor(h);if(!(i>=0))throw new RangeError(`invalid digits: ${h}`);t=i}return e},()=>new A(t)}exports.constant=L;exports.withPath=q;
|