mermaid
Version:
Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.
1,427 lines (1,426 loc) • 85.9 kB
JavaScript
import { L as je, M as Qe, R as Je, N as $e, O as On, P as ee, Q as Nn, T as ve, U as Te, c as xt, s as zn, g as Vn, D as Hn, E as Pn, b as Rn, a as Bn, V as nt, m as Zn, F as qn, e as Xn, A as Gn, l as he, j as Ht, k as jn, f as Qn } from "./mermaid-d733041c.js";
import { b as Jn, t as Ae, c as $n, a as Kn, l as tr } from "./linear-50d4520f.js";
import { i as er } from "./init-f9637058.js";
function nr(t, e) {
let n;
if (e === void 0)
for (const r of t)
r != null && (n < r || n === void 0 && r >= r) && (n = r);
else {
let r = -1;
for (let i of t)
(i = e(i, ++r, t)) != null && (n < i || n === void 0 && i >= i) && (n = i);
}
return n;
}
function rr(t, e) {
let n;
if (e === void 0)
for (const r of t)
r != null && (n > r || n === void 0 && r >= r) && (n = r);
else {
let r = -1;
for (let i of t)
(i = e(i, ++r, t)) != null && (n > i || n === void 0 && i >= i) && (n = i);
}
return n;
}
function ir(t) {
return t;
}
var Rt = 1, ne = 2, de = 3, Pt = 4, Ie = 1e-6;
function ar(t) {
return "translate(" + t + ",0)";
}
function sr(t) {
return "translate(0," + t + ")";
}
function or(t) {
return (e) => +t(e);
}
function cr(t, e) {
return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (n) => +t(n) + e;
}
function ur() {
return !this.__axis;
}
function Ke(t, e) {
var n = [], r = null, i = null, s = 6, o = 6, g = 3, _ = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, y = t === Rt || t === Pt ? -1 : 1, C = t === Pt || t === ne ? "x" : "y", F = t === Rt || t === de ? ar : sr;
function w(x) {
var q = r ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), d = i ?? (e.tickFormat ? e.tickFormat.apply(e, n) : ir), L = Math.max(s, 0) + g, z = e.range(), N = +z[0] + _, B = +z[z.length - 1] + _, Z = (e.bandwidth ? cr : or)(e.copy(), _), j = x.selection ? x.selection() : x, b = j.selectAll(".domain").data([null]), I = j.selectAll(".tick").data(q, e).order(), T = I.exit(), S = I.enter().append("g").attr("class", "tick"), M = I.select("line"), D = I.select("text");
b = b.merge(b.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), I = I.merge(S), M = M.merge(S.append("line").attr("stroke", "currentColor").attr(C + "2", y * s)), D = D.merge(S.append("text").attr("fill", "currentColor").attr(C, y * L).attr("dy", t === Rt ? "0em" : t === de ? "0.71em" : "0.32em")), x !== j && (b = b.transition(x), I = I.transition(x), M = M.transition(x), D = D.transition(x), T = T.transition(x).attr("opacity", Ie).attr("transform", function(p) {
return isFinite(p = Z(p)) ? F(p + _) : this.getAttribute("transform");
}), S.attr("opacity", Ie).attr("transform", function(p) {
var W = this.parentNode.__axis;
return F((W && isFinite(W = W(p)) ? W : Z(p)) + _);
})), T.remove(), b.attr("d", t === Pt || t === ne ? o ? "M" + y * o + "," + N + "H" + _ + "V" + B + "H" + y * o : "M" + _ + "," + N + "V" + B : o ? "M" + N + "," + y * o + "V" + _ + "H" + B + "V" + y * o : "M" + N + "," + _ + "H" + B), I.attr("opacity", 1).attr("transform", function(p) {
return F(Z(p) + _);
}), M.attr(C + "2", y * s), D.attr(C, y * L).text(d), j.filter(ur).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === ne ? "start" : t === Pt ? "end" : "middle"), j.each(function() {
this.__axis = Z;
});
}
return w.scale = function(x) {
return arguments.length ? (e = x, w) : e;
}, w.ticks = function() {
return n = Array.from(arguments), w;
}, w.tickArguments = function(x) {
return arguments.length ? (n = x == null ? [] : Array.from(x), w) : n.slice();
}, w.tickValues = function(x) {
return arguments.length ? (r = x == null ? null : Array.from(x), w) : r && r.slice();
}, w.tickFormat = function(x) {
return arguments.length ? (i = x, w) : i;
}, w.tickSize = function(x) {
return arguments.length ? (s = o = +x, w) : s;
}, w.tickSizeInner = function(x) {
return arguments.length ? (s = +x, w) : s;
}, w.tickSizeOuter = function(x) {
return arguments.length ? (o = +x, w) : o;
}, w.tickPadding = function(x) {
return arguments.length ? (g = +x, w) : g;
}, w.offset = function(x) {
return arguments.length ? (_ = +x, w) : _;
}, w;
}
function lr(t) {
return Ke(Rt, t);
}
function fr(t) {
return Ke(de, t);
}
const hr = Math.PI / 180, dr = 180 / Math.PI, qt = 18, tn = 0.96422, en = 1, nn = 0.82521, rn = 4 / 29, wt = 6 / 29, an = 3 * wt * wt, mr = wt * wt * wt;
function sn(t) {
if (t instanceof at)
return new at(t.l, t.a, t.b, t.opacity);
if (t instanceof ft)
return on(t);
t instanceof Je || (t = On(t));
var e = se(t.r), n = se(t.g), r = se(t.b), i = re((0.2225045 * e + 0.7168786 * n + 0.0606169 * r) / en), s, o;
return e === n && n === r ? s = o = i : (s = re((0.4360747 * e + 0.3850649 * n + 0.1430804 * r) / tn), o = re((0.0139322 * e + 0.0971045 * n + 0.7141733 * r) / nn)), new at(116 * i - 16, 500 * (s - i), 200 * (i - o), t.opacity);
}
function gr(t, e, n, r) {
return arguments.length === 1 ? sn(t) : new at(t, e, n, r ?? 1);
}
function at(t, e, n, r) {
this.l = +t, this.a = +e, this.b = +n, this.opacity = +r;
}
je(at, gr, Qe($e, {
brighter(t) {
return new at(this.l + qt * (t ?? 1), this.a, this.b, this.opacity);
},
darker(t) {
return new at(this.l - qt * (t ?? 1), this.a, this.b, this.opacity);
},
rgb() {
var t = (this.l + 16) / 116, e = isNaN(this.a) ? t : t + this.a / 500, n = isNaN(this.b) ? t : t - this.b / 200;
return e = tn * ie(e), t = en * ie(t), n = nn * ie(n), new Je(
ae(3.1338561 * e - 1.6168667 * t - 0.4906146 * n),
ae(-0.9787684 * e + 1.9161415 * t + 0.033454 * n),
ae(0.0719453 * e - 0.2289914 * t + 1.4052427 * n),
this.opacity
);
}
}));
function re(t) {
return t > mr ? Math.pow(t, 1 / 3) : t / an + rn;
}
function ie(t) {
return t > wt ? t * t * t : an * (t - rn);
}
function ae(t) {
return 255 * (t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055);
}
function se(t) {
return (t /= 255) <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
}
function yr(t) {
if (t instanceof ft)
return new ft(t.h, t.c, t.l, t.opacity);
if (t instanceof at || (t = sn(t)), t.a === 0 && t.b === 0)
return new ft(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity);
var e = Math.atan2(t.b, t.a) * dr;
return new ft(e < 0 ? e + 360 : e, Math.sqrt(t.a * t.a + t.b * t.b), t.l, t.opacity);
}
function me(t, e, n, r) {
return arguments.length === 1 ? yr(t) : new ft(t, e, n, r ?? 1);
}
function ft(t, e, n, r) {
this.h = +t, this.c = +e, this.l = +n, this.opacity = +r;
}
function on(t) {
if (isNaN(t.h))
return new at(t.l, 0, 0, t.opacity);
var e = t.h * hr;
return new at(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity);
}
je(ft, me, Qe($e, {
brighter(t) {
return new ft(this.h, this.c, this.l + qt * (t ?? 1), this.opacity);
},
darker(t) {
return new ft(this.h, this.c, this.l - qt * (t ?? 1), this.opacity);
},
rgb() {
return on(this).rgb();
}
}));
function kr(t) {
return function(e, n) {
var r = t((e = me(e)).h, (n = me(n)).h), i = ee(e.c, n.c), s = ee(e.l, n.l), o = ee(e.opacity, n.opacity);
return function(g) {
return e.h = r(g), e.c = i(g), e.l = s(g), e.opacity = o(g), e + "";
};
};
}
const pr = kr(Nn);
function vr(t, e) {
t = t.slice();
var n = 0, r = t.length - 1, i = t[n], s = t[r], o;
return s < i && (o = n, n = r, r = o, o = i, i = s, s = o), t[n] = e.floor(i), t[r] = e.ceil(s), t;
}
var oe = /* @__PURE__ */ new Date(), ce = /* @__PURE__ */ new Date();
function et(t, e, n, r) {
function i(s) {
return t(s = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+s)), s;
}
return i.floor = function(s) {
return t(s = /* @__PURE__ */ new Date(+s)), s;
}, i.ceil = function(s) {
return t(s = new Date(s - 1)), e(s, 1), t(s), s;
}, i.round = function(s) {
var o = i(s), g = i.ceil(s);
return s - o < g - s ? o : g;
}, i.offset = function(s, o) {
return e(s = /* @__PURE__ */ new Date(+s), o == null ? 1 : Math.floor(o)), s;
}, i.range = function(s, o, g) {
var _ = [], y;
if (s = i.ceil(s), g = g == null ? 1 : Math.floor(g), !(s < o) || !(g > 0))
return _;
do
_.push(y = /* @__PURE__ */ new Date(+s)), e(s, g), t(s);
while (y < s && s < o);
return _;
}, i.filter = function(s) {
return et(function(o) {
if (o >= o)
for (; t(o), !s(o); )
o.setTime(o - 1);
}, function(o, g) {
if (o >= o)
if (g < 0)
for (; ++g <= 0; )
for (; e(o, -1), !s(o); )
;
else
for (; --g >= 0; )
for (; e(o, 1), !s(o); )
;
});
}, n && (i.count = function(s, o) {
return oe.setTime(+s), ce.setTime(+o), t(oe), t(ce), Math.floor(n(oe, ce));
}, i.every = function(s) {
return s = Math.floor(s), !isFinite(s) || !(s > 0) ? null : s > 1 ? i.filter(r ? function(o) {
return r(o) % s === 0;
} : function(o) {
return i.count(0, o) % s === 0;
}) : i;
}), i;
}
var Xt = et(function() {
}, function(t, e) {
t.setTime(+t + e);
}, function(t, e) {
return e - t;
});
Xt.every = function(t) {
return t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? et(function(e) {
e.setTime(Math.floor(e / t) * t);
}, function(e, n) {
e.setTime(+e + n * t);
}, function(e, n) {
return (n - e) / t;
}) : Xt;
};
const Tr = Xt;
Xt.range;
const ht = 1e3, rt = ht * 60, dt = rt * 60, mt = dt * 24, be = mt * 7, We = mt * 30, ue = mt * 365;
var cn = et(function(t) {
t.setTime(t - t.getMilliseconds());
}, function(t, e) {
t.setTime(+t + e * ht);
}, function(t, e) {
return (e - t) / ht;
}, function(t) {
return t.getUTCSeconds();
});
const Lt = cn;
cn.range;
var un = et(function(t) {
t.setTime(t - t.getMilliseconds() - t.getSeconds() * ht);
}, function(t, e) {
t.setTime(+t + e * rt);
}, function(t, e) {
return (e - t) / rt;
}, function(t) {
return t.getMinutes();
});
const Gt = un;
un.range;
var ln = et(function(t) {
t.setTime(t - t.getMilliseconds() - t.getSeconds() * ht - t.getMinutes() * rt);
}, function(t, e) {
t.setTime(+t + e * dt);
}, function(t, e) {
return (e - t) / dt;
}, function(t) {
return t.getHours();
});
const jt = ln;
ln.range;
var fn = et(
(t) => t.setHours(0, 0, 0, 0),
(t, e) => t.setDate(t.getDate() + e),
(t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * rt) / mt,
(t) => t.getDate() - 1
);
const Ct = fn;
fn.range;
function kt(t) {
return et(function(e) {
e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0);
}, function(e, n) {
e.setDate(e.getDate() + n * 7);
}, function(e, n) {
return (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * rt) / be;
});
}
var It = kt(0), Et = kt(1), hn = kt(2), dn = kt(3), gt = kt(4), mn = kt(5), gn = kt(6);
It.range;
Et.range;
hn.range;
dn.range;
gt.range;
mn.range;
gn.range;
var yn = et(function(t) {
t.setDate(1), t.setHours(0, 0, 0, 0);
}, function(t, e) {
t.setMonth(t.getMonth() + e);
}, function(t, e) {
return e.getMonth() - t.getMonth() + (e.getFullYear() - t.getFullYear()) * 12;
}, function(t) {
return t.getMonth();
});
const Qt = yn;
yn.range;
var xe = et(function(t) {
t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
}, function(t, e) {
t.setFullYear(t.getFullYear() + e);
}, function(t, e) {
return e.getFullYear() - t.getFullYear();
}, function(t) {
return t.getFullYear();
});
xe.every = function(t) {
return !isFinite(t = Math.floor(t)) || !(t > 0) ? null : et(function(e) {
e.setFullYear(Math.floor(e.getFullYear() / t) * t), e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
}, function(e, n) {
e.setFullYear(e.getFullYear() + n * t);
});
};
const yt = xe;
xe.range;
var kn = et(function(t) {
t.setUTCHours(0, 0, 0, 0);
}, function(t, e) {
t.setUTCDate(t.getUTCDate() + e);
}, function(t, e) {
return (e - t) / mt;
}, function(t) {
return t.getUTCDate() - 1;
});
const pn = kn;
kn.range;
function pt(t) {
return et(function(e) {
e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0);
}, function(e, n) {
e.setUTCDate(e.getUTCDate() + n * 7);
}, function(e, n) {
return (n - e) / be;
});
}
var vn = pt(0), Jt = pt(1), br = pt(2), xr = pt(3), Mt = pt(4), wr = pt(5), Dr = pt(6);
vn.range;
Jt.range;
br.range;
xr.range;
Mt.range;
wr.range;
Dr.range;
var we = et(function(t) {
t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
}, function(t, e) {
t.setUTCFullYear(t.getUTCFullYear() + e);
}, function(t, e) {
return e.getUTCFullYear() - t.getUTCFullYear();
}, function(t) {
return t.getUTCFullYear();
});
we.every = function(t) {
return !isFinite(t = Math.floor(t)) || !(t > 0) ? null : et(function(e) {
e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
}, function(e, n) {
e.setUTCFullYear(e.getUTCFullYear() + n * t);
});
};
const At = we;
we.range;
function Cr(t, e, n, r, i, s) {
const o = [
[Lt, 1, ht],
[Lt, 5, 5 * ht],
[Lt, 15, 15 * ht],
[Lt, 30, 30 * ht],
[s, 1, rt],
[s, 5, 5 * rt],
[s, 15, 15 * rt],
[s, 30, 30 * rt],
[i, 1, dt],
[i, 3, 3 * dt],
[i, 6, 6 * dt],
[i, 12, 12 * dt],
[r, 1, mt],
[r, 2, 2 * mt],
[n, 1, be],
[e, 1, We],
[e, 3, 3 * We],
[t, 1, ue]
];
function g(y, C, F) {
const w = C < y;
w && ([y, C] = [C, y]);
const x = F && typeof F.range == "function" ? F : _(y, C, F), q = x ? x.range(y, +C + 1) : [];
return w ? q.reverse() : q;
}
function _(y, C, F) {
const w = Math.abs(C - y) / F, x = Jn(([, , L]) => L).right(o, w);
if (x === o.length)
return t.every(Ae(y / ue, C / ue, F));
if (x === 0)
return Tr.every(Math.max(Ae(y, C, F), 1));
const [q, d] = o[w / o[x - 1][2] < o[x][2] / w ? x - 1 : x];
return q.every(d);
}
return [g, _];
}
const [Mr, _r] = Cr(yt, Qt, It, Ct, jt, Gt);
function le(t) {
if (0 <= t.y && t.y < 100) {
var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L);
return e.setFullYear(t.y), e;
}
return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L);
}
function fe(t) {
if (0 <= t.y && t.y < 100) {
var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L));
return e.setUTCFullYear(t.y), e;
}
return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L));
}
function Yt(t, e, n) {
return { y: t, m: e, d: n, H: 0, M: 0, S: 0, L: 0 };
}
function Sr(t) {
var e = t.dateTime, n = t.date, r = t.time, i = t.periods, s = t.days, o = t.shortDays, g = t.months, _ = t.shortMonths, y = Ft(i), C = Ut(i), F = Ft(s), w = Ut(s), x = Ft(o), q = Ut(o), d = Ft(g), L = Ut(g), z = Ft(_), N = Ut(_), B = {
a: k,
A: v,
b: m,
B: u,
c: null,
d: Pe,
e: Pe,
f: Jr,
g: oi,
G: ui,
H: Gr,
I: jr,
j: Qr,
L: Tn,
m: $r,
M: Kr,
p: a,
q: R,
Q: Ze,
s: qe,
S: ti,
u: ei,
U: ni,
V: ri,
w: ii,
W: ai,
x: null,
X: null,
y: si,
Y: ci,
Z: li,
"%": Be
}, Z = {
a: c,
A: O,
b: Q,
B: X,
c: null,
d: Re,
e: Re,
f: mi,
g: Di,
G: Mi,
H: fi,
I: hi,
j: di,
L: xn,
m: gi,
M: yi,
p: st,
q: ot,
Q: Ze,
s: qe,
S: ki,
u: pi,
U: vi,
V: Ti,
w: bi,
W: xi,
x: null,
X: null,
y: wi,
Y: Ci,
Z: _i,
"%": Be
}, j = {
a: M,
A: D,
b: p,
B: W,
c: E,
d: Ve,
e: Ve,
f: Br,
g: ze,
G: Ne,
H: He,
I: He,
j: Vr,
L: Rr,
m: zr,
M: Hr,
p: S,
q: Nr,
Q: qr,
s: Xr,
S: Pr,
u: Er,
U: Ar,
V: Ir,
w: Lr,
W: Wr,
x: U,
X: h,
y: ze,
Y: Ne,
Z: Or,
"%": Zr
};
B.x = b(n, B), B.X = b(r, B), B.c = b(e, B), Z.x = b(n, Z), Z.X = b(r, Z), Z.c = b(e, Z);
function b(f, Y) {
return function(A) {
var l = [], J = -1, V = 0, H = f.length, G, $, vt;
for (A instanceof Date || (A = /* @__PURE__ */ new Date(+A)); ++J < H; )
f.charCodeAt(J) === 37 && (l.push(f.slice(V, J)), ($ = Oe[G = f.charAt(++J)]) != null ? G = f.charAt(++J) : $ = G === "e" ? " " : "0", (vt = Y[G]) && (G = vt(A, $)), l.push(G), V = J + 1);
return l.push(f.slice(V, J)), l.join("");
};
}
function I(f, Y) {
return function(A) {
var l = Yt(1900, void 0, 1), J = T(l, f, A += "", 0), V, H;
if (J != A.length)
return null;
if ("Q" in l)
return new Date(l.Q);
if ("s" in l)
return new Date(l.s * 1e3 + ("L" in l ? l.L : 0));
if (Y && !("Z" in l) && (l.Z = 0), "p" in l && (l.H = l.H % 12 + l.p * 12), l.m === void 0 && (l.m = "q" in l ? l.q : 0), "V" in l) {
if (l.V < 1 || l.V > 53)
return null;
"w" in l || (l.w = 1), "Z" in l ? (V = fe(Yt(l.y, 0, 1)), H = V.getUTCDay(), V = H > 4 || H === 0 ? Jt.ceil(V) : Jt(V), V = pn.offset(V, (l.V - 1) * 7), l.y = V.getUTCFullYear(), l.m = V.getUTCMonth(), l.d = V.getUTCDate() + (l.w + 6) % 7) : (V = le(Yt(l.y, 0, 1)), H = V.getDay(), V = H > 4 || H === 0 ? Et.ceil(V) : Et(V), V = Ct.offset(V, (l.V - 1) * 7), l.y = V.getFullYear(), l.m = V.getMonth(), l.d = V.getDate() + (l.w + 6) % 7);
} else
("W" in l || "U" in l) && ("w" in l || (l.w = "u" in l ? l.u % 7 : "W" in l ? 1 : 0), H = "Z" in l ? fe(Yt(l.y, 0, 1)).getUTCDay() : le(Yt(l.y, 0, 1)).getDay(), l.m = 0, l.d = "W" in l ? (l.w + 6) % 7 + l.W * 7 - (H + 5) % 7 : l.w + l.U * 7 - (H + 6) % 7);
return "Z" in l ? (l.H += l.Z / 100 | 0, l.M += l.Z % 100, fe(l)) : le(l);
};
}
function T(f, Y, A, l) {
for (var J = 0, V = Y.length, H = A.length, G, $; J < V; ) {
if (l >= H)
return -1;
if (G = Y.charCodeAt(J++), G === 37) {
if (G = Y.charAt(J++), $ = j[G in Oe ? Y.charAt(J++) : G], !$ || (l = $(f, A, l)) < 0)
return -1;
} else if (G != A.charCodeAt(l++))
return -1;
}
return l;
}
function S(f, Y, A) {
var l = y.exec(Y.slice(A));
return l ? (f.p = C.get(l[0].toLowerCase()), A + l[0].length) : -1;
}
function M(f, Y, A) {
var l = x.exec(Y.slice(A));
return l ? (f.w = q.get(l[0].toLowerCase()), A + l[0].length) : -1;
}
function D(f, Y, A) {
var l = F.exec(Y.slice(A));
return l ? (f.w = w.get(l[0].toLowerCase()), A + l[0].length) : -1;
}
function p(f, Y, A) {
var l = z.exec(Y.slice(A));
return l ? (f.m = N.get(l[0].toLowerCase()), A + l[0].length) : -1;
}
function W(f, Y, A) {
var l = d.exec(Y.slice(A));
return l ? (f.m = L.get(l[0].toLowerCase()), A + l[0].length) : -1;
}
function E(f, Y, A) {
return T(f, e, Y, A);
}
function U(f, Y, A) {
return T(f, n, Y, A);
}
function h(f, Y, A) {
return T(f, r, Y, A);
}
function k(f) {
return o[f.getDay()];
}
function v(f) {
return s[f.getDay()];
}
function m(f) {
return _[f.getMonth()];
}
function u(f) {
return g[f.getMonth()];
}
function a(f) {
return i[+(f.getHours() >= 12)];
}
function R(f) {
return 1 + ~~(f.getMonth() / 3);
}
function c(f) {
return o[f.getUTCDay()];
}
function O(f) {
return s[f.getUTCDay()];
}
function Q(f) {
return _[f.getUTCMonth()];
}
function X(f) {
return g[f.getUTCMonth()];
}
function st(f) {
return i[+(f.getUTCHours() >= 12)];
}
function ot(f) {
return 1 + ~~(f.getUTCMonth() / 3);
}
return {
format: function(f) {
var Y = b(f += "", B);
return Y.toString = function() {
return f;
}, Y;
},
parse: function(f) {
var Y = I(f += "", !1);
return Y.toString = function() {
return f;
}, Y;
},
utcFormat: function(f) {
var Y = b(f += "", Z);
return Y.toString = function() {
return f;
}, Y;
},
utcParse: function(f) {
var Y = I(f += "", !0);
return Y.toString = function() {
return f;
}, Y;
}
};
}
var Oe = { "-": "", _: " ", 0: "0" }, tt = /^\s*\d+/, Yr = /^%/, Fr = /[\\^$*+?|[\]().{}]/g;
function P(t, e, n) {
var r = t < 0 ? "-" : "", i = (r ? -t : t) + "", s = i.length;
return r + (s < n ? new Array(n - s + 1).join(e) + i : i);
}
function Ur(t) {
return t.replace(Fr, "\\$&");
}
function Ft(t) {
return new RegExp("^(?:" + t.map(Ur).join("|") + ")", "i");
}
function Ut(t) {
return new Map(t.map((e, n) => [e.toLowerCase(), n]));
}
function Lr(t, e, n) {
var r = tt.exec(e.slice(n, n + 1));
return r ? (t.w = +r[0], n + r[0].length) : -1;
}
function Er(t, e, n) {
var r = tt.exec(e.slice(n, n + 1));
return r ? (t.u = +r[0], n + r[0].length) : -1;
}
function Ar(t, e, n) {
var r = tt.exec(e.slice(n, n + 2));
return r ? (t.U = +r[0], n + r[0].length) : -1;
}
function Ir(t, e, n) {
var r = tt.exec(e.slice(n, n + 2));
return r ? (t.V = +r[0], n + r[0].length) : -1;
}
function Wr(t, e, n) {
var r = tt.exec(e.slice(n, n + 2));
return r ? (t.W = +r[0], n + r[0].length) : -1;
}
function Ne(t, e, n) {
var r = tt.exec(e.slice(n, n + 4));
return r ? (t.y = +r[0], n + r[0].length) : -1;
}
function ze(t, e, n) {
var r = tt.exec(e.slice(n, n + 2));
return r ? (t.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
function Or(t, e, n) {
var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n, n + 6));
return r ? (t.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
}
function Nr(t, e, n) {
var r = tt.exec(e.slice(n, n + 1));
return r ? (t.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
function zr(t, e, n) {
var r = tt.exec(e.slice(n, n + 2));
return r ? (t.m = r[0] - 1, n + r[0].length) : -1;
}
function Ve(t, e, n) {
var r = tt.exec(e.slice(n, n + 2));
return r ? (t.d = +r[0], n + r[0].length) : -1;
}
function Vr(t, e, n) {
var r = tt.exec(e.slice(n, n + 3));
return r ? (t.m = 0, t.d = +r[0], n + r[0].length) : -1;
}
function He(t, e, n) {
var r = tt.exec(e.slice(n, n + 2));
return r ? (t.H = +r[0], n + r[0].length) : -1;
}
function Hr(t, e, n) {
var r = tt.exec(e.slice(n, n + 2));
return r ? (t.M = +r[0], n + r[0].length) : -1;
}
function Pr(t, e, n) {
var r = tt.exec(e.slice(n, n + 2));
return r ? (t.S = +r[0], n + r[0].length) : -1;
}
function Rr(t, e, n) {
var r = tt.exec(e.slice(n, n + 3));
return r ? (t.L = +r[0], n + r[0].length) : -1;
}
function Br(t, e, n) {
var r = tt.exec(e.slice(n, n + 6));
return r ? (t.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
function Zr(t, e, n) {
var r = Yr.exec(e.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
function qr(t, e, n) {
var r = tt.exec(e.slice(n));
return r ? (t.Q = +r[0], n + r[0].length) : -1;
}
function Xr(t, e, n) {
var r = tt.exec(e.slice(n));
return r ? (t.s = +r[0], n + r[0].length) : -1;
}
function Pe(t, e) {
return P(t.getDate(), e, 2);
}
function Gr(t, e) {
return P(t.getHours(), e, 2);
}
function jr(t, e) {
return P(t.getHours() % 12 || 12, e, 2);
}
function Qr(t, e) {
return P(1 + Ct.count(yt(t), t), e, 3);
}
function Tn(t, e) {
return P(t.getMilliseconds(), e, 3);
}
function Jr(t, e) {
return Tn(t, e) + "000";
}
function $r(t, e) {
return P(t.getMonth() + 1, e, 2);
}
function Kr(t, e) {
return P(t.getMinutes(), e, 2);
}
function ti(t, e) {
return P(t.getSeconds(), e, 2);
}
function ei(t) {
var e = t.getDay();
return e === 0 ? 7 : e;
}
function ni(t, e) {
return P(It.count(yt(t) - 1, t), e, 2);
}
function bn(t) {
var e = t.getDay();
return e >= 4 || e === 0 ? gt(t) : gt.ceil(t);
}
function ri(t, e) {
return t = bn(t), P(gt.count(yt(t), t) + (yt(t).getDay() === 4), e, 2);
}
function ii(t) {
return t.getDay();
}
function ai(t, e) {
return P(Et.count(yt(t) - 1, t), e, 2);
}
function si(t, e) {
return P(t.getFullYear() % 100, e, 2);
}
function oi(t, e) {
return t = bn(t), P(t.getFullYear() % 100, e, 2);
}
function ci(t, e) {
return P(t.getFullYear() % 1e4, e, 4);
}
function ui(t, e) {
var n = t.getDay();
return t = n >= 4 || n === 0 ? gt(t) : gt.ceil(t), P(t.getFullYear() % 1e4, e, 4);
}
function li(t) {
var e = t.getTimezoneOffset();
return (e > 0 ? "-" : (e *= -1, "+")) + P(e / 60 | 0, "0", 2) + P(e % 60, "0", 2);
}
function Re(t, e) {
return P(t.getUTCDate(), e, 2);
}
function fi(t, e) {
return P(t.getUTCHours(), e, 2);
}
function hi(t, e) {
return P(t.getUTCHours() % 12 || 12, e, 2);
}
function di(t, e) {
return P(1 + pn.count(At(t), t), e, 3);
}
function xn(t, e) {
return P(t.getUTCMilliseconds(), e, 3);
}
function mi(t, e) {
return xn(t, e) + "000";
}
function gi(t, e) {
return P(t.getUTCMonth() + 1, e, 2);
}
function yi(t, e) {
return P(t.getUTCMinutes(), e, 2);
}
function ki(t, e) {
return P(t.getUTCSeconds(), e, 2);
}
function pi(t) {
var e = t.getUTCDay();
return e === 0 ? 7 : e;
}
function vi(t, e) {
return P(vn.count(At(t) - 1, t), e, 2);
}
function wn(t) {
var e = t.getUTCDay();
return e >= 4 || e === 0 ? Mt(t) : Mt.ceil(t);
}
function Ti(t, e) {
return t = wn(t), P(Mt.count(At(t), t) + (At(t).getUTCDay() === 4), e, 2);
}
function bi(t) {
return t.getUTCDay();
}
function xi(t, e) {
return P(Jt.count(At(t) - 1, t), e, 2);
}
function wi(t, e) {
return P(t.getUTCFullYear() % 100, e, 2);
}
function Di(t, e) {
return t = wn(t), P(t.getUTCFullYear() % 100, e, 2);
}
function Ci(t, e) {
return P(t.getUTCFullYear() % 1e4, e, 4);
}
function Mi(t, e) {
var n = t.getUTCDay();
return t = n >= 4 || n === 0 ? Mt(t) : Mt.ceil(t), P(t.getUTCFullYear() % 1e4, e, 4);
}
function _i() {
return "+0000";
}
function Be() {
return "%";
}
function Ze(t) {
return +t;
}
function qe(t) {
return Math.floor(+t / 1e3);
}
var bt, $t;
Si({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
periods: ["AM", "PM"],
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
});
function Si(t) {
return bt = Sr(t), $t = bt.format, bt.parse, bt.utcFormat, bt.utcParse, bt;
}
function Yi(t) {
return new Date(t);
}
function Fi(t) {
return t instanceof Date ? +t : +/* @__PURE__ */ new Date(+t);
}
function Dn(t, e, n, r, i, s, o, g, _, y) {
var C = $n(), F = C.invert, w = C.domain, x = y(".%L"), q = y(":%S"), d = y("%I:%M"), L = y("%I %p"), z = y("%a %d"), N = y("%b %d"), B = y("%B"), Z = y("%Y");
function j(b) {
return (_(b) < b ? x : g(b) < b ? q : o(b) < b ? d : s(b) < b ? L : r(b) < b ? i(b) < b ? z : N : n(b) < b ? B : Z)(b);
}
return C.invert = function(b) {
return new Date(F(b));
}, C.domain = function(b) {
return arguments.length ? w(Array.from(b, Fi)) : w().map(Yi);
}, C.ticks = function(b) {
var I = w();
return t(I[0], I[I.length - 1], b ?? 10);
}, C.tickFormat = function(b, I) {
return I == null ? j : y(I);
}, C.nice = function(b) {
var I = w();
return (!b || typeof b.range != "function") && (b = e(I[0], I[I.length - 1], b ?? 10)), b ? w(vr(I, b)) : C;
}, C.copy = function() {
return Kn(C, Dn(t, e, n, r, i, s, o, g, _, y));
}, C;
}
function Ui() {
return er.apply(Dn(Mr, _r, yt, Qt, It, Ct, jt, Gt, Lt, $t).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
var ge = function() {
var t = function(U, h, k, v) {
for (k = k || {}, v = U.length; v--; k[U[v]] = h)
;
return k;
}, e = [1, 3], n = [1, 5], r = [7, 9, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 33, 34, 36, 43, 48], i = [1, 32], s = [1, 33], o = [1, 34], g = [1, 35], _ = [1, 36], y = [1, 37], C = [1, 38], F = [1, 15], w = [1, 16], x = [1, 17], q = [1, 18], d = [1, 19], L = [1, 20], z = [1, 21], N = [1, 22], B = [1, 24], Z = [1, 25], j = [1, 26], b = [1, 27], I = [1, 28], T = [1, 30], S = [1, 39], M = [1, 42], D = [5, 7, 9, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 33, 34, 36, 43, 48], p = {
trace: function() {
},
yy: {},
symbols_: { error: 2, start: 3, directive: 4, gantt: 5, document: 6, EOF: 7, line: 8, SPACE: 9, statement: 10, NL: 11, weekday: 12, weekday_monday: 13, weekday_tuesday: 14, weekday_wednesday: 15, weekday_thursday: 16, weekday_friday: 17, weekday_saturday: 18, weekday_sunday: 19, dateFormat: 20, inclusiveEndDates: 21, topAxis: 22, axisFormat: 23, tickInterval: 24, excludes: 25, includes: 26, todayMarker: 27, title: 28, acc_title: 29, acc_title_value: 30, acc_descr: 31, acc_descr_value: 32, acc_descr_multiline_value: 33, section: 34, clickStatement: 35, taskTxt: 36, taskData: 37, openDirective: 38, typeDirective: 39, closeDirective: 40, ":": 41, argDirective: 42, click: 43, callbackname: 44, callbackargs: 45, href: 46, clickStatementDebug: 47, open_directive: 48, type_directive: 49, arg_directive: 50, close_directive: 51, $accept: 0, $end: 1 },
terminals_: { 2: "error", 5: "gantt", 7: "EOF", 9: "SPACE", 11: "NL", 13: "weekday_monday", 14: "weekday_tuesday", 15: "weekday_wednesday", 16: "weekday_thursday", 17: "weekday_friday", 18: "weekday_saturday", 19: "weekday_sunday", 20: "dateFormat", 21: "inclusiveEndDates", 22: "topAxis", 23: "axisFormat", 24: "tickInterval", 25: "excludes", 26: "includes", 27: "todayMarker", 28: "title", 29: "acc_title", 30: "acc_title_value", 31: "acc_descr", 32: "acc_descr_value", 33: "acc_descr_multiline_value", 34: "section", 36: "taskTxt", 37: "taskData", 41: ":", 43: "click", 44: "callbackname", 45: "callbackargs", 46: "href", 48: "open_directive", 49: "type_directive", 50: "arg_directive", 51: "close_directive" },
productions_: [0, [3, 2], [3, 3], [6, 0], [6, 2], [8, 2], [8, 1], [8, 1], [8, 1], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [10, 1], [10, 1], [10, 1], [10, 2], [10, 1], [4, 4], [4, 6], [35, 2], [35, 3], [35, 3], [35, 4], [35, 3], [35, 4], [35, 2], [47, 2], [47, 3], [47, 3], [47, 4], [47, 3], [47, 4], [47, 2], [38, 1], [39, 1], [42, 1], [40, 1]],
performAction: function(h, k, v, m, u, a, R) {
var c = a.length - 1;
switch (u) {
case 2:
return a[c - 1];
case 3:
this.$ = [];
break;
case 4:
a[c - 1].push(a[c]), this.$ = a[c - 1];
break;
case 5:
case 6:
this.$ = a[c];
break;
case 7:
case 8:
this.$ = [];
break;
case 9:
m.setWeekday("monday");
break;
case 10:
m.setWeekday("tuesday");
break;
case 11:
m.setWeekday("wednesday");
break;
case 12:
m.setWeekday("thursday");
break;
case 13:
m.setWeekday("friday");
break;
case 14:
m.setWeekday("saturday");
break;
case 15:
m.setWeekday("sunday");
break;
case 16:
m.setDateFormat(a[c].substr(11)), this.$ = a[c].substr(11);
break;
case 17:
m.enableInclusiveEndDates(), this.$ = a[c].substr(18);
break;
case 18:
m.TopAxis(), this.$ = a[c].substr(8);
break;
case 19:
m.setAxisFormat(a[c].substr(11)), this.$ = a[c].substr(11);
break;
case 20:
m.setTickInterval(a[c].substr(13)), this.$ = a[c].substr(13);
break;
case 21:
m.setExcludes(a[c].substr(9)), this.$ = a[c].substr(9);
break;
case 22:
m.setIncludes(a[c].substr(9)), this.$ = a[c].substr(9);
break;
case 23:
m.setTodayMarker(a[c].substr(12)), this.$ = a[c].substr(12);
break;
case 25:
m.setDiagramTitle(a[c].substr(6)), this.$ = a[c].substr(6);
break;
case 26:
this.$ = a[c].trim(), m.setAccTitle(this.$);
break;
case 27:
case 28:
this.$ = a[c].trim(), m.setAccDescription(this.$);
break;
case 29:
m.addSection(a[c].substr(8)), this.$ = a[c].substr(8);
break;
case 31:
m.addTask(a[c - 1], a[c]), this.$ = "task";
break;
case 35:
this.$ = a[c - 1], m.setClickEvent(a[c - 1], a[c], null);
break;
case 36:
this.$ = a[c - 2], m.setClickEvent(a[c - 2], a[c - 1], a[c]);
break;
case 37:
this.$ = a[c - 2], m.setClickEvent(a[c - 2], a[c - 1], null), m.setLink(a[c - 2], a[c]);
break;
case 38:
this.$ = a[c - 3], m.setClickEvent(a[c - 3], a[c - 2], a[c - 1]), m.setLink(a[c - 3], a[c]);
break;
case 39:
this.$ = a[c - 2], m.setClickEvent(a[c - 2], a[c], null), m.setLink(a[c - 2], a[c - 1]);
break;
case 40:
this.$ = a[c - 3], m.setClickEvent(a[c - 3], a[c - 1], a[c]), m.setLink(a[c - 3], a[c - 2]);
break;
case 41:
this.$ = a[c - 1], m.setLink(a[c - 1], a[c]);
break;
case 42:
case 48:
this.$ = a[c - 1] + " " + a[c];
break;
case 43:
case 44:
case 46:
this.$ = a[c - 2] + " " + a[c - 1] + " " + a[c];
break;
case 45:
case 47:
this.$ = a[c - 3] + " " + a[c - 2] + " " + a[c - 1] + " " + a[c];
break;
case 49:
m.parseDirective("%%{", "open_directive");
break;
case 50:
m.parseDirective(a[c], "type_directive");
break;
case 51:
a[c] = a[c].trim().replace(/'/g, '"'), m.parseDirective(a[c], "arg_directive");
break;
case 52:
m.parseDirective("}%%", "close_directive", "gantt");
break;
}
},
table: [{ 3: 1, 4: 2, 5: e, 38: 4, 48: n }, { 1: [3] }, { 3: 6, 4: 2, 5: e, 38: 4, 48: n }, t(r, [2, 3], { 6: 7 }), { 39: 8, 49: [1, 9] }, { 49: [2, 49] }, { 1: [2, 1] }, { 4: 31, 7: [1, 10], 8: 11, 9: [1, 12], 10: 13, 11: [1, 14], 12: 23, 13: i, 14: s, 15: o, 16: g, 17: _, 18: y, 19: C, 20: F, 21: w, 22: x, 23: q, 24: d, 25: L, 26: z, 27: N, 28: B, 29: Z, 31: j, 33: b, 34: I, 35: 29, 36: T, 38: 4, 43: S, 48: n }, { 40: 40, 41: [1, 41], 51: M }, t([41, 51], [2, 50]), t(r, [2, 8], { 1: [2, 2] }), t(r, [2, 4]), { 4: 31, 10: 43, 12: 23, 13: i, 14: s, 15: o, 16: g, 17: _, 18: y, 19: C, 20: F, 21: w, 22: x, 23: q, 24: d, 25: L, 26: z, 27: N, 28: B, 29: Z, 31: j, 33: b, 34: I, 35: 29, 36: T, 38: 4, 43: S, 48: n }, t(r, [2, 6]), t(r, [2, 7]), t(r, [2, 16]), t(r, [2, 17]), t(r, [2, 18]), t(r, [2, 19]), t(r, [2, 20]), t(r, [2, 21]), t(r, [2, 22]), t(r, [2, 23]), t(r, [2, 24]), t(r, [2, 25]), { 30: [1, 44] }, { 32: [1, 45] }, t(r, [2, 28]), t(r, [2, 29]), t(r, [2, 30]), { 37: [1, 46] }, t(r, [2, 32]), t(r, [2, 9]), t(r, [2, 10]), t(r, [2, 11]), t(r, [2, 12]), t(r, [2, 13]), t(r, [2, 14]), t(r, [2, 15]), { 44: [1, 47], 46: [1, 48] }, { 11: [1, 49] }, { 42: 50, 50: [1, 51] }, { 11: [2, 52] }, t(r, [2, 5]), t(r, [2, 26]), t(r, [2, 27]), t(r, [2, 31]), t(r, [2, 35], { 45: [1, 52], 46: [1, 53] }), t(r, [2, 41], { 44: [1, 54] }), t(D, [2, 33]), { 40: 55, 51: M }, { 51: [2, 51] }, t(r, [2, 36], { 46: [1, 56] }), t(r, [2, 37]), t(r, [2, 39], { 45: [1, 57] }), { 11: [1, 58] }, t(r, [2, 38]), t(r, [2, 40]), t(D, [2, 34])],
defaultActions: { 5: [2, 49], 6: [2, 1], 42: [2, 52], 51: [2, 51] },
parseError: function(h, k) {
if (k.recoverable)
this.trace(h);
else {
var v = new Error(h);
throw v.hash = k, v;
}
},
parse: function(h) {
var k = this, v = [0], m = [], u = [null], a = [], R = this.table, c = "", O = 0, Q = 0, X = 2, st = 1, ot = a.slice.call(arguments, 1), f = Object.create(this.lexer), Y = { yy: {} };
for (var A in this.yy)
Object.prototype.hasOwnProperty.call(this.yy, A) && (Y.yy[A] = this.yy[A]);
f.setInput(h, Y.yy), Y.yy.lexer = f, Y.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
var l = f.yylloc;
a.push(l);
var J = f.options && f.options.ranges;
typeof Y.yy.parseError == "function" ? this.parseError = Y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
function V() {
var ut;
return ut = m.pop() || f.lex() || st, typeof ut != "number" && (ut instanceof Array && (m = ut, ut = m.pop()), ut = k.symbols_[ut] || ut), ut;
}
for (var H, G, $, vt, Tt = {}, zt, ct, Ee, Vt; ; ) {
if (G = v[v.length - 1], this.defaultActions[G] ? $ = this.defaultActions[G] : ((H === null || typeof H > "u") && (H = V()), $ = R[G] && R[G][H]), typeof $ > "u" || !$.length || !$[0]) {
var te = "";
Vt = [];
for (zt in R[G])
this.terminals_[zt] && zt > X && Vt.push("'" + this.terminals_[zt] + "'");
f.showPosition ? te = "Parse error on line " + (O + 1) + `:
` + f.showPosition() + `
Expecting ` + Vt.join(", ") + ", got '" + (this.terminals_[H] || H) + "'" : te = "Parse error on line " + (O + 1) + ": Unexpected " + (H == st ? "end of input" : "'" + (this.terminals_[H] || H) + "'"), this.parseError(te, {
text: f.match,
token: this.terminals_[H] || H,
line: f.yylineno,
loc: l,
expected: Vt
});
}
if ($[0] instanceof Array && $.length > 1)
throw new Error("Parse Error: multiple actions possible at state: " + G + ", token: " + H);
switch ($[0]) {
case 1:
v.push(H), u.push(f.yytext), a.push(f.yylloc), v.push($[1]), H = null, Q = f.yyleng, c = f.yytext, O = f.yylineno, l = f.yylloc;
break;
case 2:
if (ct = this.productions_[$[1]][1], Tt.$ = u[u.length - ct], Tt._$ = {
first_line: a[a.length - (ct || 1)].first_line,
last_line: a[a.length - 1].last_line,
first_column: a[a.length - (ct || 1)].first_column,
last_column: a[a.length - 1].last_column
}, J && (Tt._$.range = [
a[a.length - (ct || 1)].range[0],
a[a.length - 1].range[1]
]), vt = this.performAction.apply(Tt, [
c,
Q,
O,
Y.yy,
$[1],
u,
a
].concat(ot)), typeof vt < "u")
return vt;
ct && (v = v.slice(0, -1 * ct * 2), u = u.slice(0, -1 * ct), a = a.slice(0, -1 * ct)), v.push(this.productions_[$[1]][0]), u.push(Tt.$), a.push(Tt._$), Ee = R[v[v.length - 2]][v[v.length - 1]], v.push(Ee);
break;
case 3:
return !0;
}
}
return !0;
}
}, W = function() {
var U = {
EOF: 1,
parseError: function(k, v) {
if (this.yy.parser)
this.yy.parser.parseError(k, v);
else
throw new Error(k);
},
// resets the lexer, sets new input
setInput: function(h, k) {
return this.yy = k || this.yy || {}, this._input = h, 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;
},
// consumes and returns one char from the input
input: function() {
var h = this._input[0];
this.yytext += h, this.yyleng++, this.offset++, this.match += h, this.matched += h;
var k = h.match(/(?:\r\n?|\n).*/g);
return k ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), h;
},
// unshifts one char (or a string) into the input
unput: function(h) {
var k = h.length, v = h.split(/(?:\r\n?|\n)/g);
this._input = h + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - k), this.offset -= k;
var m = 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), v.length - 1 && (this.yylineno -= v.length - 1);
var u = 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: v ? (v.length === m.length ? this.yylloc.first_column : 0) + m[m.length - v.length].length - v[0].length : this.yylloc.first_column - k
}, this.options.ranges && (this.yylloc.range = [u[0], u[0] + this.yyleng - k]), this.yyleng = this.yytext.length, this;
},
// When called from action, caches matched text and appends it on next action
more: function() {
return this._more = !0, this;
},
// 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.
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).
` + this.showPosition(), {
text: "",
token: null,
line: this.yylineno
});
return this;
},
// retain first n characters of the match
less: function(h) {
this.unput(this.match.slice(h));
},
// displays already matched input, i.e. for error messages
pastInput: function() {
var h = this.matched.substr(0, this.matched.length - this.match.length);
return (h.length > 20 ? "..." : "") + h.substr(-20).replace(/\n/g, "");
},
// displays upcoming input, i.e. for error messages
upcomingInput: function() {
var h = this.match;
return h.length < 20 && (h += this._input.substr(0, 20 - h.length)), (h.substr(0, 20) + (h.length > 20 ? "..." : "")).replace(/\n/g, "");
},
// displays the character position where the lexing error occurred, i.e. for error messages
showPosition: function() {
var h = this.pastInput(), k = new Array(h.length + 1).join("-");
return h + this.upcomingInput() + `
` + k + "^";
},
// test the lexed token: return FALSE when not a match, otherwise return token
test_match: function(h, k) {
var v, m, u;
if (this.options.backtrack_lexer && (u = {
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 && (u.yylloc.range = this.yylloc.range.slice(0))), m = h[0].match(/(?:\r\n?|\n).*/g), m && (this.yylineno += m.length), this.yylloc = {
first_line: this.yylloc.last_line,
last_line: this.yylineno + 1,
first_column: this.yylloc.last_column,
last_column: m ? m[m.length - 1].length - m[m.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + h[0].length
}, this.yytext += h[0], this.match += h[0], this.matches = h, 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(h[0].length), this.matched += h[0], v = this.performAction.call(this, this.yy, this, k, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), v)
return v;
if (this._backtrack) {
for (var a in u)
this[a] = u[a];
return !1;
}
return !1;
},
// return next match in input
next: function() {
if (this.done)
return this.EOF;
this._input || (this.done = !0);
var h, k, v, m;
this._more || (this.yytext = "", this.match = "");
for (var u = this._currentRules(), a = 0; a < u.length; a++)
if (v = this._input.match(this.rules[u[a]]), v && (!k || v[0].length > k[0].length)) {
if (k = v, m = a, this.options.backtrack_lexer) {
if (h = this.test_match(v, u[a]), h !== !1)
return h;
if (this._backtrack) {
k = !1;
continue;
} else
return !1;
} else if (!this.options.flex)
break;
}
return k ? (h = this.test_match(k, u[m]), h !== !1 ? h : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
` + this.showPosition(), {
text: "",
token: null,
line: this.yylineno
});
},
// return next match that has a token
lex: function() {
var k = this.next();
return k || this.lex();
},
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
begin: function(k) {
this.conditionStack.push(k);
},
// pop the previously active lexer condition state off the condition stack
popState: function() {
var k = this.conditionStack.length - 1;
return k > 0 ? this.conditionStack.pop() : this.conditionStack[0];
},
// produce the lexer rule set which is active for the currently active lexer condition state
_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;
},
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
topState: function(k) {
return k = this.conditionStack.length - 1 - Math.abs(k || 0), k >= 0 ? this.conditionStack[k] : "INITIAL";
},
// alias for begin(condition)
pushState: function(k) {
this.begin(k);
},
// return the number of states currently on the stack
stateStackSize: function() {
return this.conditionStack.length;
},
options: { "case-insensitive": !0 },
performAction: function(k, v, m, u) {
switch (m) {
case 0:
return this.begin("open_directive"), 48;
case 1:
return this.begin("type_directive"), 49;
case 2:
return this.popState(), this.begin("arg_directive"), 41;
case 3:
return this.popState(), this.popState(), 51;
case 4:
return 50;
case 5:
return this.begin("acc_title"), 29;
case 6:
return this.popState(), "acc_title_value";
case 7:
return this.begin("acc_descr"), 31;
case 8:
return this.popState(), "acc_descr_value";
case 9:
this.begin("acc_descr_multiline");
break;
case 10:
this.popState();
break;
case 11:
return "acc_descr_multiline_value";
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return 11;
case 16:
break;
case 17:
break;
case 18:
break;
case 19:
this.begin("href");
break;
case 20:
this.popState();
break;
case 21:
return 46;
case 22:
this.begin("callbackname");
break;
case 23:
this.popState();
break;
case 24:
this.popState(), this.begin("callbackargs");
break;
case 25:
return 44;
case 26:
this.popState();
break;
case 27:
return 45;
case 28:
this.begin("click");
break;
case 29:
this.popState();
break;
case 30:
return 43;
case 31:
return 5;
case 32:
return 20;
case 33:
return 21;
case 34:
return 22;
case 35:
return 23;
case 36:
return 24;
case 37:
return 26;
case 38:
return 25;
case 39:
return 27;
case 40:
return 13;
case 41:
return 14;
case 42:
return 15;
case 43:
return 16;
case 44:
return 17;
case 45:
return 18;