/*! For license information please see bundle.js.LICENSE.txt */
(() => {
var e,
t,
i = {
29609: (e) => {
'use strict';
var t = /^(%20|\s)*(javascript|data)/im,
i = /[^\x20-\x7E]/gim,
n = /^([^:]+):/gm,
r = ['.', '/'];
e.exports = {
sanitizeUrl: function (e) {
if (!e) return 'about:blank';
var s,
o,
a = e.replace(i, '').trim();
return (function (e) {
return r.indexOf(e[0]) > -1;
})(a)
? a
: (o = a.match(n))
? ((s = o[0]), t.test(s) ? 'about:blank' : a)
: 'about:blank';
},
};
},
98129: (e, t, i) => {
'use strict';
var n = i(60690);
function r() {
var e = {},
t = 0,
i = 0,
n = 0;
return {
add: function (r, s) {
s || ((s = r), (r = 0)),
r > i ? (i = r) : r < n && (n = r),
e[r] || (e[r] = []),
e[r].push(s),
t++;
},
process: function () {
for (var t = n; t <= i; t++)
for (var r = e[t], s = 0; s < r.length; s++) (0, r[s])();
},
size: function () {
return t;
},
};
}
e.exports = function (e) {
var t = (e = e || {}).reporter,
i = n.getOption(e, 'async', !0),
s = n.getOption(e, 'auto', !0);
s &&
!i &&
(t &&
t.warn(
'Invalid options combination. auto=true and async=false is invalid. Setting async=true.'
),
(i = !0));
var o,
a = r(),
l = !1;
function c() {
for (l = !0; a.size(); ) {
var e = a;
(a = r()), e.process();
}
l = !1;
}
function d() {
o = setTimeout(c, 0);
}
return {
add: function (e, t) {
!l && s && i && 0 === a.size() && d(), a.add(e, t);
},
force: function (e) {
l ||
(void 0 === e && (e = i),
o && (clearTimeout(o), (o = null)),
e ? d() : c());
},
};
};
},
60690: (e) => {
'use strict';
(e.exports = {}).getOption = function (e, t, i) {
var n = e[t];
return null == n && void 0 !== i ? i : n;
};
},
69362: (e, t, i) => {
'use strict';
i.r(t),
i.d(t, {
FormatSpecifier: () => ll,
active: () => Xn,
arc: () => sw,
area: () => hw,
areaRadial: () => yw,
ascending: () => r,
autoType: () => Fo,
axisBottom: () => re,
axisLeft: () => se,
axisRight: () => ne,
axisTop: () => ie,
bisect: () => c,
bisectLeft: () => l,
bisectRight: () => a,
bisector: () => s,
blob: () => ma,
brush: () => Dr,
brushSelection: () => xr,
brushX: () => Lr,
brushY: () => Mr,
buffer: () => ba,
chord: () => Fr,
clientPoint: () => Ei,
cluster: () => xg,
color: () => Kt,
contourDensity: () => oo,
contours: () => eo,
create: () => Iy,
creator: () => rt,
cross: () => u,
csv: () => Sa,
csvFormat: () => ko,
csvFormatBody: () => xo,
csvFormatRow: () => Mo,
csvFormatRows: () => Lo,
csvFormatValue: () => Do,
csvParse: () => Co,
csvParseRows: () => So,
cubehelix: () => zs,
curveBasis: () => eC,
curveBasisClosed: () => iC,
curveBasisOpen: () => rC,
curveBundle: () => oC,
curveCardinal: () => cC,
curveCardinalClosed: () => hC,
curveCardinalOpen: () => gC,
curveCatmullRom: () => mC,
curveCatmullRomClosed: () => bC,
curveCatmullRomOpen: () => yC,
curveLinear: () => aw,
curveLinearClosed: () => CC,
curveMonotoneX: () => EC,
curveMonotoneY: () => TC,
curveNatural: () => AC,
curveStep: () => PC,
curveStepAfter: () => BC,
curveStepBefore: () => FC,
customEvent: () => mt,
descending: () => g,
deviation: () => m,
dispatch: () => ue,
drag: () => fo,
dragDisable: () => Mt,
dragEnable: () => Dt,
dsv: () => Ca,
dsvFormat: () => yo,
easeBack: () => da,
easeBackIn: () => la,
easeBackInOut: () => da,
easeBackOut: () => ca,
easeBounce: () => sa,
easeBounceIn: () => ra,
easeBounceInOut: () => oa,
easeBounceOut: () => sa,
easeCircle: () => ia,
easeCircleIn: () => ea,
easeCircleInOut: () => ia,
easeCircleOut: () => ta,
easeCubic: () => Gn,
easeCubicIn: () => Kn,
easeCubicInOut: () => Gn,
easeCubicOut: () => qn,
easeElastic: () => ga,
easeElasticIn: () => ua,
easeElasticInOut: () => fa,
easeElasticOut: () => ga,
easeExp: () => Xo,
easeExpIn: () => Jo,
easeExpInOut: () => Xo,
easeExpOut: () => Qo,
easeLinear: () => Wo,
easePoly: () => Uo,
easePolyIn: () => Vo,
easePolyInOut: () => Uo,
easePolyOut: () => zo,
easeQuad: () => jo,
easeQuadIn: () => Yo,
easeQuadInOut: () => jo,
easeQuadOut: () => Ho,
easeSin: () => Zo,
easeSinIn: () => qo,
easeSinInOut: () => Zo,
easeSinOut: () => Go,
entries: () => fs,
event: () => dt,
extent: () => _,
forceCenter: () => Ia,
forceCollide: () => Ua,
forceLink: () => qa,
forceManyBody: () => Xa,
forceRadial: () => el,
forceSimulation: () => Qa,
forceX: () => tl,
forceY: () => il,
format: () => gl,
formatDefaultLocale: () => bl,
formatLocale: () => _l,
formatPrefix: () => fl,
formatSpecifier: () => al,
geoAlbers: () => Wu,
geoAlbersUsa: () => Yu,
geoArea: () => fc,
geoAzimuthalEqualArea: () => zu,
geoAzimuthalEqualAreaRaw: () => Vu,
geoAzimuthalEquidistant: () => $u,
geoAzimuthalEquidistantRaw: () => Uu,
geoBounds: () => od,
geoCentroid: () => bd,
geoCircle: () => Nd,
geoClipAntimeridian: () => Hd,
geoClipCircle: () => jd,
geoClipExtent: () => $d,
geoClipRectangle: () => Ud,
geoConicConformal: () => Qu,
geoConicConformalRaw: () => Ju,
geoConicEqualArea: () => Bu,
geoConicEqualAreaRaw: () => Fu,
geoConicEquidistant: () => ig,
geoConicEquidistantRaw: () => tg,
geoContains: () => gh,
geoDistance: () => rh,
geoEqualEarth: () => cg,
geoEqualEarthRaw: () => lg,
geoEquirectangular: () => eg,
geoEquirectangularRaw: () => Xu,
geoGnomonic: () => hg,
geoGnomonicRaw: () => dg,
geoGraticule: () => mh,
geoGraticule10: () => _h,
geoIdentity: () => gg,
geoInterpolate: () => bh,
geoLength: () => th,
geoMercator: () => qu,
geoMercatorRaw: () => Ku,
geoNaturalEarth1: () => pg,
geoNaturalEarth1Raw: () => fg,
geoOrthographic: () => _g,
geoOrthographicRaw: () => mg,
geoPath: () => yu,
geoProjection: () => Au,
geoProjectionMutator: () => Ru,
geoRotation: () => Ld,
geoStereographic: () => vg,
geoStereographicRaw: () => bg,
geoStream: () => tc,
geoTransform: () => wu,
geoTransverseMercator: () => wg,
geoTransverseMercatorRaw: () => yg,
gray: () => Ss,
hcl: () => Is,
hierarchy: () => Mg,
histogram: () => T,
hsl: () => ri,
html: () => Ea,
image: () => xa,
interpolate: () => Di,
interpolateArray: () => yi,
interpolateBasis: () => li,
interpolateBasisClosed: () => ci,
interpolateBlues: () => sy,
interpolateBrBG: () => _v,
interpolateBuGn: () => Rv,
interpolateBuPu: () => Fv,
interpolateCividis: () => my,
interpolateCool: () => vy,
interpolateCubehelix: () => Yf,
interpolateCubehelixDefault: () => _y,
interpolateCubehelixLong: () => Hf,
interpolateDate: () => Ci,
interpolateDiscrete: () => Lf,
interpolateGnBu: () => Wv,
interpolateGreens: () => ay,
interpolateGreys: () => cy,
interpolateHcl: () => Ff,
interpolateHclLong: () => Bf,
interpolateHsl: () => Of,
interpolateHslLong: () => Af,
interpolateHue: () => Mf,
interpolateInferno: () => Ey,
interpolateLab: () => Rf,
interpolateMagma: () => Ny,
interpolateNumber: () => Si,
interpolateNumberArray: () => bi,
interpolateObject: () => ki,
interpolateOrRd: () => Hv,
interpolateOranges: () => py,
interpolatePRGn: () => vv,
interpolatePiYG: () => wv,
interpolatePlasma: () => Ty,
interpolatePuBu: () => Uv,
interpolatePuBuGn: () => Vv,
interpolatePuOr: () => Sv,
interpolatePuRd: () => Kv,
interpolatePurples: () => hy,
interpolateRainbow: () => wy,
interpolateRdBu: () => xv,
interpolateRdGy: () => Mv,
interpolateRdPu: () => Gv,
interpolateRdYlBu: () => Nv,
interpolateRdYlGn: () => Tv,
interpolateReds: () => gy,
interpolateRgb: () => fi,
interpolateRgbBasis: () => mi,
interpolateRgbBasisClosed: () => _i,
interpolateRound: () => Df,
interpolateSinebow: () => xy,
interpolateSpectral: () => Ov,
interpolateString: () => Mi,
interpolateTransformCss: () => fn,
interpolateTransformSvg: () => pn,
interpolateTurbo: () => Ly,
interpolateViridis: () => Dy,
interpolateWarm: () => by,
interpolateYlGn: () => Xv,
interpolateYlGnBu: () => Jv,
interpolateYlOrBr: () => ty,
interpolateYlOrRd: () => ny,
interpolateZoom: () => Tf,
interrupt: () => sn,
interval: () => nS,
isoFormat: () => tS,
isoParse: () => iS,
json: () => Ma,
keys: () => us,
lab: () => ks,
lch: () => Ts,
line: () => dw,
lineRadial: () => vw,
linkHorizontal: () => Nw,
linkRadial: () => Tw,
linkVertical: () => Ew,
local: () => Ay,
map: () => is,
matcher: () => _e,
max: () => R,
mean: () => P,
median: () => F,
merge: () => B,
min: () => W,
mouse: () => Ii,
namespace: () => xe,
namespaces: () => ke,
nest: () => ns,
now: () => Vi,
pack: () => Qg,
packEnclose: () => Og,
packSiblings: () => $g,
pairs: () => d,
partition: () => sf,
path: () => $r,
permute: () => Y,
pie: () => fw,
piecewise: () => jf,
pointRadial: () => ww,
polygonArea: () => zf,
polygonCentroid: () => Uf,
polygonContains: () => Zf,
polygonHull: () => Gf,
polygonLength: () => Jf,
precisionFixed: () => vl,
precisionPrefix: () => yl,
precisionRound: () => wl,
quadtree: () => Wa,
quantile: () => I,
quantize: () => Vf,
radialArea: () => yw,
radialLine: () => vw,
randomBates: () => np,
randomExponential: () => rp,
randomIrwinHall: () => ip,
randomLogNormal: () => tp,
randomNormal: () => ep,
randomUniform: () => Xf,
range: () => S,
rgb: () => Jt,
ribbon: () => Qr,
scaleBand: () => up,
scaleDiverging: () => Xb,
scaleDivergingLog: () => ev,
scaleDivergingPow: () => iv,
scaleDivergingSqrt: () => nv,
scaleDivergingSymlog: () => tv,
scaleIdentity: () => Dp,
scaleImplicit: () => dp,
scaleLinear: () => Mp,
scaleLog: () => Fp,
scaleOrdinal: () => hp,
scalePoint: () => fp,
scalePow: () => $p,
scaleQuantile: () => qp,
scaleQuantize: () => Gp,
scaleSequential: () => $b,
scaleSequentialLog: () => Kb,
scaleSequentialPow: () => Gb,
scaleSequentialQuantile: () => Jb,
scaleSequentialSqrt: () => Zb,
scaleSequentialSymlog: () => qb,
scaleSqrt: () => Kp,
scaleSymlog: () => Hp,
scaleThreshold: () => Zp,
scaleTime: () => Ob,
scaleUtc: () => Vb,
scan: () => H,
schemeAccent: () => ov,
schemeBlues: () => ry,
schemeBrBG: () => mv,
schemeBuGn: () => Av,
schemeBuPu: () => Pv,
schemeCategory10: () => sv,
schemeDark2: () => av,
schemeGnBu: () => Bv,
schemeGreens: () => oy,
schemeGreys: () => ly,
schemeOrRd: () => Yv,
schemeOranges: () => fy,
schemePRGn: () => bv,
schemePaired: () => lv,
schemePastel1: () => cv,
schemePastel2: () => dv,
schemePiYG: () => yv,
schemePuBu: () => zv,
schemePuBuGn: () => jv,
schemePuOr: () => Cv,
schemePuRd: () => $v,
schemePurples: () => dy,
schemeRdBu: () => kv,
schemeRdGy: () => Lv,
schemeRdPu: () => qv,
schemeRdYlBu: () => Dv,
schemeRdYlGn: () => Ev,
schemeReds: () => uy,
schemeSet1: () => hv,
schemeSet2: () => uv,
schemeSet3: () => gv,
schemeSpectral: () => Iv,
schemeTableau10: () => fv,
schemeYlGn: () => Qv,
schemeYlGnBu: () => Zv,
schemeYlOrBr: () => ey,
schemeYlOrRd: () => iy,
select: () => kt,
selectAll: () => Py,
selection: () => St,
selector: () => fe,
selectorAll: () => me,
set: () => hs,
shuffle: () => j,
stack: () => jC,
stackOffsetDiverging: () => zC,
stackOffsetExpand: () => VC,
stackOffsetNone: () => WC,
stackOffsetSilhouette: () => UC,
stackOffsetWiggle: () => $C,
stackOrderAppearance: () => KC,
stackOrderAscending: () => GC,
stackOrderDescending: () => JC,
stackOrderInsideOut: () => QC,
stackOrderNone: () => YC,
stackOrderReverse: () => XC,
stratify: () => df,
style: () => Pe,
sum: () => V,
svg: () => Ta,
symbol: () => Zw,
symbolCircle: () => Iw,
symbolCross: () => Ow,
symbolDiamond: () => Pw,
symbolSquare: () => Hw,
symbolStar: () => Yw,
symbolTriangle: () => Vw,
symbolWye: () => qw,
symbols: () => Gw,
text: () => ya,
thresholdFreedmanDiaconis: () => O,
thresholdScott: () => A,
thresholdSturges: () => E,
tickFormat: () => xp,
tickIncrement: () => D,
tickStep: () => N,
ticks: () => M,
timeDay: () => Mm,
timeDays: () => Dm,
timeFormat: () => g_,
timeFormatDefaultLocale: () => Db,
timeFormatLocale: () => h_,
timeFriday: () => _m,
timeFridays: () => km,
timeHour: () => Em,
timeHours: () => Tm,
timeInterval: () => Xp,
timeMillisecond: () => Wm,
timeMilliseconds: () => Ym,
timeMinute: () => Om,
timeMinutes: () => Am,
timeMonday: () => gm,
timeMondays: () => ym,
timeMonth: () => rm,
timeMonths: () => sm,
timeParse: () => f_,
timeSaturday: () => bm,
timeSaturdays: () => xm,
timeSecond: () => Pm,
timeSeconds: () => Fm,
timeSunday: () => um,
timeSundays: () => vm,
timeThursday: () => mm,
timeThursdays: () => Sm,
timeTuesday: () => fm,
timeTuesdays: () => wm,
timeWednesday: () => pm,
timeWednesdays: () => Cm,
timeWeek: () => um,
timeWeeks: () => vm,
timeYear: () => tm,
timeYears: () => im,
timeout: () => Ji,
timer: () => $i,
timerFlush: () => Ki,
touch: () => Ti,
touches: () => Fy,
transition: () => zn,
transpose: () => z,
tree: () => _f,
treemap: () => Cf,
treemapBinary: () => Sf,
treemapDice: () => rf,
treemapResquarify: () => xf,
treemapSlice: () => bf,
treemapSliceDice: () => kf,
treemapSquarify: () => wf,
tsv: () => ka,
tsvFormat: () => Io,
tsvFormatBody: () => Oo,
tsvFormatRow: () => Ro,
tsvFormatRows: () => Ao,
tsvFormatValue: () => Po,
tsvParse: () => Eo,
tsvParseRows: () => To,
utcDay: () => n_,
utcDays: () => r_,
utcFormat: () => p_,
utcFriday: () => Km,
utcFridays: () => e_,
utcHour: () => Bb,
utcHours: () => Wb,
utcMillisecond: () => Wm,
utcMilliseconds: () => Ym,
utcMinute: () => Hb,
utcMinutes: () => jb,
utcMonday: () => Vm,
utcMondays: () => Zm,
utcMonth: () => Rb,
utcMonths: () => Pb,
utcParse: () => m_,
utcSaturday: () => qm,
utcSaturdays: () => t_,
utcSecond: () => Pm,
utcSeconds: () => Fm,
utcSunday: () => jm,
utcSundays: () => Gm,
utcThursday: () => $m,
utcThursdays: () => Xm,
utcTuesday: () => zm,
utcTuesdays: () => Jm,
utcWednesday: () => Um,
utcWednesdays: () => Qm,
utcWeek: () => jm,
utcWeeks: () => Gm,
utcYear: () => o_,
utcYears: () => a_,
values: () => gs,
variance: () => p,
version: () => n,
voronoi: () => VS,
window: () => Ie,
xml: () => Na,
zip: () => $,
zoom: () => nk,
zoomIdentity: () => KS,
zoomTransform: () => qS,
});
var n = '5.14.2';
function r(e, t) {
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
}
function s(e) {
var t;
return (
1 === e.length &&
((t = e),
(e = function (e, i) {
return r(t(e), i);
})),
{
left: function (t, i, n, r) {
for (
null == n && (n = 0), null == r && (r = t.length);
n < r;
) {
var s = (n + r) >>> 1;
e(t[s], i) < 0 ? (n = s + 1) : (r = s);
}
return n;
},
right: function (t, i, n, r) {
for (
null == n && (n = 0), null == r && (r = t.length);
n < r;
) {
var s = (n + r) >>> 1;
e(t[s], i) > 0 ? (r = s) : (n = s + 1);
}
return n;
},
}
);
}
var o = s(r),
a = o.right,
l = o.left;
const c = a;
function d(e, t) {
null == t && (t = h);
for (
var i = 0, n = e.length - 1, r = e[0], s = new Array(n < 0 ? 0 : n);
i < n;
)
s[i] = t(r, (r = e[++i]));
return s;
}
function h(e, t) {
return [e, t];
}
function u(e, t, i) {
var n,
r,
s,
o,
a = e.length,
l = t.length,
c = new Array(a * l);
for (null == i && (i = h), n = s = 0; n < a; ++n)
for (o = e[n], r = 0; r < l; ++r, ++s) c[s] = i(o, t[r]);
return c;
}
function g(e, t) {
return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
}
function f(e) {
return null === e ? NaN : +e;
}
function p(e, t) {
var i,
n,
r = e.length,
s = 0,
o = -1,
a = 0,
l = 0;
if (null == t)
for (; ++o < r; )
isNaN((i = f(e[o]))) || (l += (n = i - a) * (i - (a += n / ++s)));
else
for (; ++o < r; )
isNaN((i = f(t(e[o], o, e)))) ||
(l += (n = i - a) * (i - (a += n / ++s)));
if (s > 1) return l / (s - 1);
}
function m(e, t) {
var i = p(e, t);
return i ? Math.sqrt(i) : i;
}
function _(e, t) {
var i,
n,
r,
s = e.length,
o = -1;
if (null == t) {
for (; ++o < s; )
if (null != (i = e[o]) && i >= i)
for (n = r = i; ++o < s; )
null != (i = e[o]) && (n > i && (n = i), r < i && (r = i));
} else
for (; ++o < s; )
if (null != (i = t(e[o], o, e)) && i >= i)
for (n = r = i; ++o < s; )
null != (i = t(e[o], o, e)) &&
(n > i && (n = i), r < i && (r = i));
return [n, r];
}
var b = Array.prototype,
v = b.slice,
y = b.map;
function w(e) {
return function () {
return e;
};
}
function C(e) {
return e;
}
function S(e, t, i) {
(e = +e),
(t = +t),
(i =
(r = arguments.length) < 2
? ((t = e), (e = 0), 1)
: r < 3
? 1
: +i);
for (
var n = -1,
r = 0 | Math.max(0, Math.ceil((t - e) / i)),
s = new Array(r);
++n < r;
)
s[n] = e + n * i;
return s;
}
var k = Math.sqrt(50),
x = Math.sqrt(10),
L = Math.sqrt(2);
function M(e, t, i) {
var n,
r,
s,
o,
a = -1;
if (((i = +i), (e = +e) == (t = +t) && i > 0)) return [e];
if (
((n = t < e) && ((r = e), (e = t), (t = r)),
0 === (o = D(e, t, i)) || !isFinite(o))
)
return [];
if (o > 0)
for (
e = Math.ceil(e / o),
t = Math.floor(t / o),
s = new Array((r = Math.ceil(t - e + 1)));
++a < r;
)
s[a] = (e + a) * o;
else
for (
e = Math.floor(e * o),
t = Math.ceil(t * o),
s = new Array((r = Math.ceil(e - t + 1)));
++a < r;
)
s[a] = (e - a) / o;
return n && s.reverse(), s;
}
function D(e, t, i) {
var n = (t - e) / Math.max(0, i),
r = Math.floor(Math.log(n) / Math.LN10),
s = n / Math.pow(10, r);
return r >= 0
? (s >= k ? 10 : s >= x ? 5 : s >= L ? 2 : 1) * Math.pow(10, r)
: -Math.pow(10, -r) / (s >= k ? 10 : s >= x ? 5 : s >= L ? 2 : 1);
}
function N(e, t, i) {
var n = Math.abs(t - e) / Math.max(0, i),
r = Math.pow(10, Math.floor(Math.log(n) / Math.LN10)),
s = n / r;
return (
s >= k ? (r *= 10) : s >= x ? (r *= 5) : s >= L && (r *= 2),
t < e ? -r : r
);
}
function E(e) {
return Math.ceil(Math.log(e.length) / Math.LN2) + 1;
}
function T() {
var e = C,
t = _,
i = E;
function n(n) {
var r,
s,
o = n.length,
a = new Array(o);
for (r = 0; r < o; ++r) a[r] = e(n[r], r, n);
var l = t(a),
d = l[0],
h = l[1],
u = i(a, d, h);
Array.isArray(u) ||
((u = N(d, h, u)), (u = S(Math.ceil(d / u) * u, h, u)));
for (var g = u.length; u[0] <= d; ) u.shift(), --g;
for (; u[g - 1] > h; ) u.pop(), --g;
var f,
p = new Array(g + 1);
for (r = 0; r <= g; ++r)
((f = p[r] = []).x0 = r > 0 ? u[r - 1] : d),
(f.x1 = r < g ? u[r] : h);
for (r = 0; r < o; ++r)
d <= (s = a[r]) && s <= h && p[c(u, s, 0, g)].push(n[r]);
return p;
}
return (
(n.value = function (t) {
return arguments.length
? ((e = 'function' == typeof t ? t : w(t)), n)
: e;
}),
(n.domain = function (e) {
return arguments.length
? ((t = 'function' == typeof e ? e : w([e[0], e[1]])), n)
: t;
}),
(n.thresholds = function (e) {
return arguments.length
? ((i =
'function' == typeof e
? e
: Array.isArray(e)
? w(v.call(e))
: w(e)),
n)
: i;
}),
n
);
}
function I(e, t, i) {
if ((null == i && (i = f), (n = e.length))) {
if ((t = +t) <= 0 || n < 2) return +i(e[0], 0, e);
if (t >= 1) return +i(e[n - 1], n - 1, e);
var n,
r = (n - 1) * t,
s = Math.floor(r),
o = +i(e[s], s, e);
return o + (+i(e[s + 1], s + 1, e) - o) * (r - s);
}
}
function O(e, t, i) {
return (
(e = y.call(e, f).sort(r)),
Math.ceil(
(i - t) /
(2 * (I(e, 0.75) - I(e, 0.25)) * Math.pow(e.length, -1 / 3))
)
);
}
function A(e, t, i) {
return Math.ceil((i - t) / (3.5 * m(e) * Math.pow(e.length, -1 / 3)));
}
function R(e, t) {
var i,
n,
r = e.length,
s = -1;
if (null == t) {
for (; ++s < r; )
if (null != (i = e[s]) && i >= i)
for (n = i; ++s < r; ) null != (i = e[s]) && i > n && (n = i);
} else
for (; ++s < r; )
if (null != (i = t(e[s], s, e)) && i >= i)
for (n = i; ++s < r; )
null != (i = t(e[s], s, e)) && i > n && (n = i);
return n;
}
function P(e, t) {
var i,
n = e.length,
r = n,
s = -1,
o = 0;
if (null == t)
for (; ++s < n; ) isNaN((i = f(e[s]))) ? --r : (o += i);
else for (; ++s < n; ) isNaN((i = f(t(e[s], s, e)))) ? --r : (o += i);
if (r) return o / r;
}
function F(e, t) {
var i,
n = e.length,
s = -1,
o = [];
if (null == t) for (; ++s < n; ) isNaN((i = f(e[s]))) || o.push(i);
else for (; ++s < n; ) isNaN((i = f(t(e[s], s, e)))) || o.push(i);
return I(o.sort(r), 0.5);
}
function B(e) {
for (var t, i, n, r = e.length, s = -1, o = 0; ++s < r; )
o += e[s].length;
for (i = new Array(o); --r >= 0; )
for (t = (n = e[r]).length; --t >= 0; ) i[--o] = n[t];
return i;
}
function W(e, t) {
var i,
n,
r = e.length,
s = -1;
if (null == t) {
for (; ++s < r; )
if (null != (i = e[s]) && i >= i)
for (n = i; ++s < r; ) null != (i = e[s]) && n > i && (n = i);
} else
for (; ++s < r; )
if (null != (i = t(e[s], s, e)) && i >= i)
for (n = i; ++s < r; )
null != (i = t(e[s], s, e)) && n > i && (n = i);
return n;
}
function Y(e, t) {
for (var i = t.length, n = new Array(i); i--; ) n[i] = e[t[i]];
return n;
}
function H(e, t) {
if ((i = e.length)) {
var i,
n,
s = 0,
o = 0,
a = e[o];
for (null == t && (t = r); ++s < i; )
(t((n = e[s]), a) < 0 || 0 !== t(a, a)) && ((a = n), (o = s));
return 0 === t(a, a) ? o : void 0;
}
}
function j(e, t, i) {
for (
var n, r, s = (null == i ? e.length : i) - (t = null == t ? 0 : +t);
s;
)
(r = (Math.random() * s--) | 0),
(n = e[s + t]),
(e[s + t] = e[r + t]),
(e[r + t] = n);
return e;
}
function V(e, t) {
var i,
n = e.length,
r = -1,
s = 0;
if (null == t) for (; ++r < n; ) (i = +e[r]) && (s += i);
else for (; ++r < n; ) (i = +t(e[r], r, e)) && (s += i);
return s;
}
function z(e) {
if (!(r = e.length)) return [];
for (var t = -1, i = W(e, U), n = new Array(i); ++t < i; )
for (var r, s = -1, o = (n[t] = new Array(r)); ++s < r; )
o[s] = e[s][t];
return n;
}
function U(e) {
return e.length;
}
function $() {
return z(arguments);
}
var K = Array.prototype.slice;
function q(e) {
return e;
}
var G = 1e-6;
function Z(e) {
return 'translate(' + (e + 0.5) + ',0)';
}
function J(e) {
return 'translate(0,' + (e + 0.5) + ')';
}
function Q(e) {
return function (t) {
return +e(t);
};
}
function X(e) {
var t = Math.max(0, e.bandwidth() - 1) / 2;
return (
e.round() && (t = Math.round(t)),
function (i) {
return +e(i) + t;
}
);
}
function ee() {
return !this.__axis;
}
function te(e, t) {
var i = [],
n = null,
r = null,
s = 6,
o = 6,
a = 3,
l = 1 === e || 4 === e ? -1 : 1,
c = 4 === e || 2 === e ? 'x' : 'y',
d = 1 === e || 3 === e ? Z : J;
function h(h) {
var u =
null == n ? (t.ticks ? t.ticks.apply(t, i) : t.domain()) : n,
g = null == r ? (t.tickFormat ? t.tickFormat.apply(t, i) : q) : r,
f = Math.max(s, 0) + a,
p = t.range(),
m = +p[0] + 0.5,
_ = +p[p.length - 1] + 0.5,
b = (t.bandwidth ? X : Q)(t.copy()),
v = h.selection ? h.selection() : h,
y = v.selectAll('.domain').data([null]),
w = v.selectAll('.tick').data(u, t).order(),
C = w.exit(),
S = w.enter().append('g').attr('class', 'tick'),
k = w.select('line'),
x = w.select('text');
(y = y.merge(
y
.enter()
.insert('path', '.tick')
.attr('class', 'domain')
.attr('stroke', 'currentColor')
)),
(w = w.merge(S)),
(k = k.merge(
S.append('line')
.attr('stroke', 'currentColor')
.attr(c + '2', l * s)
)),
(x = x.merge(
S.append('text')
.attr('fill', 'currentColor')
.attr(c, l * f)
.attr('dy', 1 === e ? '0em' : 3 === e ? '0.71em' : '0.32em')
)),
h !== v &&
((y = y.transition(h)),
(w = w.transition(h)),
(k = k.transition(h)),
(x = x.transition(h)),
(C = C.transition(h)
.attr('opacity', G)
.attr('transform', function (e) {
return isFinite((e = b(e)))
? d(e)
: this.getAttribute('transform');
})),
S.attr('opacity', G).attr('transform', function (e) {
var t = this.parentNode.__axis;
return d(t && isFinite((t = t(e))) ? t : b(e));
})),
C.remove(),
y.attr(
'd',
4 === e || 2 == e
? o
? 'M' + l * o + ',' + m + 'H0.5V' + _ + 'H' + l * o
: 'M0.5,' + m + 'V' + _
: o
? 'M' + m + ',' + l * o + 'V0.5H' + _ + 'V' + l * o
: 'M' + m + ',0.5H' + _
),
w.attr('opacity', 1).attr('transform', function (e) {
return d(b(e));
}),
k.attr(c + '2', l * s),
x.attr(c, l * f).text(g),
v
.filter(ee)
.attr('fill', 'none')
.attr('font-size', 10)
.attr('font-family', 'sans-serif')
.attr(
'text-anchor',
2 === e ? 'start' : 4 === e ? 'end' : 'middle'
),
v.each(function () {
this.__axis = b;
});
}
return (
(h.scale = function (e) {
return arguments.length ? ((t = e), h) : t;
}),
(h.ticks = function () {
return (i = K.call(arguments)), h;
}),
(h.tickArguments = function (e) {
return arguments.length
? ((i = null == e ? [] : K.call(e)), h)
: i.slice();
}),
(h.tickValues = function (e) {
return arguments.length
? ((n = null == e ? null : K.call(e)), h)
: n && n.slice();
}),
(h.tickFormat = function (e) {
return arguments.length ? ((r = e), h) : r;
}),
(h.tickSize = function (e) {
return arguments.length ? ((s = o = +e), h) : s;
}),
(h.tickSizeInner = function (e) {
return arguments.length ? ((s = +e), h) : s;
}),
(h.tickSizeOuter = function (e) {
return arguments.length ? ((o = +e), h) : o;
}),
(h.tickPadding = function (e) {
return arguments.length ? ((a = +e), h) : a;
}),
h
);
}
function ie(e) {
return te(1, e);
}
function ne(e) {
return te(2, e);
}
function re(e) {
return te(3, e);
}
function se(e) {
return te(4, e);
}
var oe = { value: function () {} };
function ae() {
for (var e, t = 0, i = arguments.length, n = {}; t < i; ++t) {
if (!(e = arguments[t] + '') || e in n || /[\s.]/.test(e))
throw new Error('illegal type: ' + e);
n[e] = [];
}
return new le(n);
}
function le(e) {
this._ = e;
}
function ce(e, t) {
return e
.trim()
.split(/^|\s+/)
.map(function (e) {
var i = '',
n = e.indexOf('.');
if (
(n >= 0 && ((i = e.slice(n + 1)), (e = e.slice(0, n))),
e && !t.hasOwnProperty(e))
)
throw new Error('unknown type: ' + e);
return { type: e, name: i };
});
}
function de(e, t) {
for (var i, n = 0, r = e.length; n < r; ++n)
if ((i = e[n]).name === t) return i.value;
}
function he(e, t, i) {
for (var n = 0, r = e.length; n < r; ++n)
if (e[n].name === t) {
(e[n] = oe), (e = e.slice(0, n).concat(e.slice(n + 1)));
break;
}
return null != i && e.push({ name: t, value: i }), e;
}
le.prototype = ae.prototype = {
constructor: le,
on: function (e, t) {
var i,
n = this._,
r = ce(e + '', n),
s = -1,
o = r.length;
if (!(arguments.length < 2)) {
if (null != t && 'function' != typeof t)
throw new Error('invalid callback: ' + t);
for (; ++s < o; )
if ((i = (e = r[s]).type)) n[i] = he(n[i], e.name, t);
else if (null == t) for (i in n) n[i] = he(n[i], e.name, null);
return this;
}
for (; ++s < o; )
if ((i = (e = r[s]).type) && (i = de(n[i], e.name))) return i;
},
copy: function () {
var e = {},
t = this._;
for (var i in t) e[i] = t[i].slice();
return new le(e);
},
call: function (e, t) {
if ((i = arguments.length - 2) > 0)
for (var i, n, r = new Array(i), s = 0; s < i; ++s)
r[s] = arguments[s + 2];
if (!this._.hasOwnProperty(e))
throw new Error('unknown type: ' + e);
for (s = 0, i = (n = this._[e]).length; s < i; ++s)
n[s].value.apply(t, r);
},
apply: function (e, t, i) {
if (!this._.hasOwnProperty(e))
throw new Error('unknown type: ' + e);
for (var n = this._[e], r = 0, s = n.length; r < s; ++r)
n[r].value.apply(t, i);
},
};
const ue = ae;
function ge() {}
function fe(e) {
return null == e
? ge
: function () {
return this.querySelector(e);
};
}
function pe() {
return [];
}
function me(e) {
return null == e
? pe
: function () {
return this.querySelectorAll(e);
};
}
function _e(e) {
return function () {
return this.matches(e);
};
}
function be(e) {
return new Array(e.length);
}
function ve(e, t) {
(this.ownerDocument = e.ownerDocument),
(this.namespaceURI = e.namespaceURI),
(this._next = null),
(this._parent = e),
(this.__data__ = t);
}
function ye(e, t, i, n, r, s) {
for (var o, a = 0, l = t.length, c = s.length; a < c; ++a)
(o = t[a])
? ((o.__data__ = s[a]), (n[a] = o))
: (i[a] = new ve(e, s[a]));
for (; a < l; ++a) (o = t[a]) && (r[a] = o);
}
function we(e, t, i, n, r, s, o) {
var a,
l,
c,
d = {},
h = t.length,
u = s.length,
g = new Array(h);
for (a = 0; a < h; ++a)
(l = t[a]) &&
((g[a] = c = '$' + o.call(l, l.__data__, a, t)),
c in d ? (r[a] = l) : (d[c] = l));
for (a = 0; a < u; ++a)
(l = d[(c = '$' + o.call(e, s[a], a, s))])
? ((n[a] = l), (l.__data__ = s[a]), (d[c] = null))
: (i[a] = new ve(e, s[a]));
for (a = 0; a < h; ++a) (l = t[a]) && d[g[a]] === l && (r[a] = l);
}
function Ce(e, t) {
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
}
ve.prototype = {
constructor: ve,
appendChild: function (e) {
return this._parent.insertBefore(e, this._next);
},
insertBefore: function (e, t) {
return this._parent.insertBefore(e, t);
},
querySelector: function (e) {
return this._parent.querySelector(e);
},
querySelectorAll: function (e) {
return this._parent.querySelectorAll(e);
},
};
var Se = 'http://www.w3.org/1999/xhtml';
const ke = {
svg: 'http://www.w3.org/2000/svg',
xhtml: Se,
xlink: 'http://www.w3.org/1999/xlink',
xml: 'http://www.w3.org/XML/1998/namespace',
xmlns: 'http://www.w3.org/2000/xmlns/',
};
function xe(e) {
var t = (e += ''),
i = t.indexOf(':');
return (
i >= 0 && 'xmlns' !== (t = e.slice(0, i)) && (e = e.slice(i + 1)),
ke.hasOwnProperty(t) ? { space: ke[t], local: e } : e
);
}
function Le(e) {
return function () {
this.removeAttribute(e);
};
}
function Me(e) {
return function () {
this.removeAttributeNS(e.space, e.local);
};
}
function De(e, t) {
return function () {
this.setAttribute(e, t);
};
}
function Ne(e, t) {
return function () {
this.setAttributeNS(e.space, e.local, t);
};
}
function Ee(e, t) {
return function () {
var i = t.apply(this, arguments);
null == i ? this.removeAttribute(e) : this.setAttribute(e, i);
};
}
function Te(e, t) {
return function () {
var i = t.apply(this, arguments);
null == i
? this.removeAttributeNS(e.space, e.local)
: this.setAttributeNS(e.space, e.local, i);
};
}
function Ie(e) {
return (
(e.ownerDocument && e.ownerDocument.defaultView) ||
(e.document && e) ||
e.defaultView
);
}
function Oe(e) {
return function () {
this.style.removeProperty(e);
};
}
function Ae(e, t, i) {
return function () {
this.style.setProperty(e, t, i);
};
}
function Re(e, t, i) {
return function () {
var n = t.apply(this, arguments);
null == n
? this.style.removeProperty(e)
: this.style.setProperty(e, n, i);
};
}
function Pe(e, t) {
return (
e.style.getPropertyValue(t) ||
Ie(e).getComputedStyle(e, null).getPropertyValue(t)
);
}
function Fe(e) {
return function () {
delete this[e];
};
}
function Be(e, t) {
return function () {
this[e] = t;
};
}
function We(e, t) {
return function () {
var i = t.apply(this, arguments);
null == i ? delete this[e] : (this[e] = i);
};
}
function Ye(e) {
return e.trim().split(/^|\s+/);
}
function He(e) {
return e.classList || new je(e);
}
function je(e) {
(this._node = e), (this._names = Ye(e.getAttribute('class') || ''));
}
function Ve(e, t) {
for (var i = He(e), n = -1, r = t.length; ++n < r; ) i.add(t[n]);
}
function ze(e, t) {
for (var i = He(e), n = -1, r = t.length; ++n < r; ) i.remove(t[n]);
}
function Ue(e) {
return function () {
Ve(this, e);
};
}
function $e(e) {
return function () {
ze(this, e);
};
}
function Ke(e, t) {
return function () {
(t.apply(this, arguments) ? Ve : ze)(this, e);
};
}
function qe() {
this.textContent = '';
}
function Ge(e) {
return function () {
this.textContent = e;
};
}
function Ze(e) {
return function () {
var t = e.apply(this, arguments);
this.textContent = null == t ? '' : t;
};
}
function Je() {
this.innerHTML = '';
}
function Qe(e) {
return function () {
this.innerHTML = e;
};
}
function Xe(e) {
return function () {
var t = e.apply(this, arguments);
this.innerHTML = null == t ? '' : t;
};
}
function et() {
this.nextSibling && this.parentNode.appendChild(this);
}
function tt() {
this.previousSibling &&
this.parentNode.insertBefore(this, this.parentNode.firstChild);
}
function it(e) {
return function () {
var t = this.ownerDocument,
i = this.namespaceURI;
return i === Se && t.documentElement.namespaceURI === Se
? t.createElement(e)
: t.createElementNS(i, e);
};
}
function nt(e) {
return function () {
return this.ownerDocument.createElementNS(e.space, e.local);
};
}
function rt(e) {
var t = xe(e);
return (t.local ? nt : it)(t);
}
function st() {
return null;
}
function ot() {
var e = this.parentNode;
e && e.removeChild(this);
}
function at() {
var e = this.cloneNode(!1),
t = this.parentNode;
return t ? t.insertBefore(e, this.nextSibling) : e;
}
function lt() {
var e = this.cloneNode(!0),
t = this.parentNode;
return t ? t.insertBefore(e, this.nextSibling) : e;
}
je.prototype = {
add: function (e) {
this._names.indexOf(e) < 0 &&
(this._names.push(e),
this._node.setAttribute('class', this._names.join(' ')));
},
remove: function (e) {
var t = this._names.indexOf(e);
t >= 0 &&
(this._names.splice(t, 1),
this._node.setAttribute('class', this._names.join(' ')));
},
contains: function (e) {
return this._names.indexOf(e) >= 0;
},
};
var ct = {},
dt = null;
function ht(e, t, i) {
return (
(e = ut(e, t, i)),
function (t) {
var i = t.relatedTarget;
(i && (i === this || 8 & i.compareDocumentPosition(this))) ||
e.call(this, t);
}
);
}
function ut(e, t, i) {
return function (n) {
var r = dt;
dt = n;
try {
e.call(this, this.__data__, t, i);
} finally {
dt = r;
}
};
}
function gt(e) {
return e
.trim()
.split(/^|\s+/)
.map(function (e) {
var t = '',
i = e.indexOf('.');
return (
i >= 0 && ((t = e.slice(i + 1)), (e = e.slice(0, i))),
{ type: e, name: t }
);
});
}
function ft(e) {
return function () {
var t = this.__on;
if (t) {
for (var i, n = 0, r = -1, s = t.length; n < s; ++n)
(i = t[n]),
(e.type && i.type !== e.type) || i.name !== e.name
? (t[++r] = i)
: this.removeEventListener(i.type, i.listener, i.capture);
++r ? (t.length = r) : delete this.__on;
}
};
}
function pt(e, t, i) {
var n = ct.hasOwnProperty(e.type) ? ht : ut;
return function (r, s, o) {
var a,
l = this.__on,
c = n(t, s, o);
if (l)
for (var d = 0, h = l.length; d < h; ++d)
if ((a = l[d]).type === e.type && a.name === e.name)
return (
this.removeEventListener(a.type, a.listener, a.capture),
this.addEventListener(
a.type,
(a.listener = c),
(a.capture = i)
),
void (a.value = t)
);
this.addEventListener(e.type, c, i),
(a = {
type: e.type,
name: e.name,
value: t,
listener: c,
capture: i,
}),
l ? l.push(a) : (this.__on = [a]);
};
}
function mt(e, t, i, n) {
var r = dt;
(e.sourceEvent = dt), (dt = e);
try {
return t.apply(i, n);
} finally {
dt = r;
}
}
function _t(e, t, i) {
var n = Ie(e),
r = n.CustomEvent;
'function' == typeof r
? (r = new r(t, i))
: ((r = n.document.createEvent('Event')),
i
? (r.initEvent(t, i.bubbles, i.cancelable),
(r.detail = i.detail))
: r.initEvent(t, !1, !1)),
e.dispatchEvent(r);
}
function bt(e, t) {
return function () {
return _t(this, e, t);
};
}
function vt(e, t) {
return function () {
return _t(this, e, t.apply(this, arguments));
};
}
'undefined' != typeof document &&
('onmouseenter' in document.documentElement ||
(ct = { mouseenter: 'mouseover', mouseleave: 'mouseout' }));
var yt = [null];
function wt(e, t) {
(this._groups = e), (this._parents = t);
}
function Ct() {
return new wt([[document.documentElement]], yt);
}
wt.prototype = Ct.prototype = {
constructor: wt,
select: function (e) {
'function' != typeof e && (e = fe(e));
for (
var t = this._groups, i = t.length, n = new Array(i), r = 0;
r < i;
++r
)
for (
var s,
o,
a = t[r],
l = a.length,
c = (n[r] = new Array(l)),
d = 0;
d < l;
++d
)
(s = a[d]) &&
(o = e.call(s, s.__data__, d, a)) &&
('__data__' in s && (o.__data__ = s.__data__), (c[d] = o));
return new wt(n, this._parents);
},
selectAll: function (e) {
'function' != typeof e && (e = me(e));
for (
var t = this._groups, i = t.length, n = [], r = [], s = 0;
s < i;
++s
)
for (var o, a = t[s], l = a.length, c = 0; c < l; ++c)
(o = a[c]) && (n.push(e.call(o, o.__data__, c, a)), r.push(o));
return new wt(n, r);
},
filter: function (e) {
'function' != typeof e && (e = _e(e));
for (
var t = this._groups, i = t.length, n = new Array(i), r = 0;
r < i;
++r
)
for (
var s, o = t[r], a = o.length, l = (n[r] = []), c = 0;
c < a;
++c
)
(s = o[c]) && e.call(s, s.__data__, c, o) && l.push(s);
return new wt(n, this._parents);
},
data: function (e, t) {
if (!e)
return (
(f = new Array(this.size())),
(d = -1),
this.each(function (e) {
f[++d] = e;
}),
f
);
var i,
n = t ? we : ye,
r = this._parents,
s = this._groups;
'function' != typeof e &&
((i = e),
(e = function () {
return i;
}));
for (
var o = s.length,
a = new Array(o),
l = new Array(o),
c = new Array(o),
d = 0;
d < o;
++d
) {
var h = r[d],
u = s[d],
g = u.length,
f = e.call(h, h && h.__data__, d, r),
p = f.length,
m = (l[d] = new Array(p)),
_ = (a[d] = new Array(p));
n(h, u, m, _, (c[d] = new Array(g)), f, t);
for (var b, v, y = 0, w = 0; y < p; ++y)
if ((b = m[y])) {
for (y >= w && (w = y + 1); !(v = _[w]) && ++w < p; );
b._next = v || null;
}
}
return ((a = new wt(a, r))._enter = l), (a._exit = c), a;
},
enter: function () {
return new wt(this._enter || this._groups.map(be), this._parents);
},
exit: function () {
return new wt(this._exit || this._groups.map(be), this._parents);
},
join: function (e, t, i) {
var n = this.enter(),
r = this,
s = this.exit();
return (
(n = 'function' == typeof e ? e(n) : n.append(e + '')),
null != t && (r = t(r)),
null == i ? s.remove() : i(s),
n && r ? n.merge(r).order() : r
);
},
merge: function (e) {
for (
var t = this._groups,
i = e._groups,
n = t.length,
r = i.length,
s = Math.min(n, r),
o = new Array(n),
a = 0;
a < s;
++a
)
for (
var l,
c = t[a],
d = i[a],
h = c.length,
u = (o[a] = new Array(h)),
g = 0;
g < h;
++g
)
(l = c[g] || d[g]) && (u[g] = l);
for (; a < n; ++a) o[a] = t[a];
return new wt(o, this._parents);
},
order: function () {
for (var e = this._groups, t = -1, i = e.length; ++t < i; )
for (var n, r = e[t], s = r.length - 1, o = r[s]; --s >= 0; )
(n = r[s]) &&
(o &&
4 ^ n.compareDocumentPosition(o) &&
o.parentNode.insertBefore(n, o),
(o = n));
return this;
},
sort: function (e) {
function t(t, i) {
return t && i ? e(t.__data__, i.__data__) : !t - !i;
}
e || (e = Ce);
for (
var i = this._groups, n = i.length, r = new Array(n), s = 0;
s < n;
++s
) {
for (
var o, a = i[s], l = a.length, c = (r[s] = new Array(l)), d = 0;
d < l;
++d
)
(o = a[d]) && (c[d] = o);
c.sort(t);
}
return new wt(r, this._parents).order();
},
call: function () {
var e = arguments[0];
return (arguments[0] = this), e.apply(null, arguments), this;
},
nodes: function () {
var e = new Array(this.size()),
t = -1;
return (
this.each(function () {
e[++t] = this;
}),
e
);
},
node: function () {
for (var e = this._groups, t = 0, i = e.length; t < i; ++t)
for (var n = e[t], r = 0, s = n.length; r < s; ++r) {
var o = n[r];
if (o) return o;
}
return null;
},
size: function () {
var e = 0;
return (
this.each(function () {
++e;
}),
e
);
},
empty: function () {
return !this.node();
},
each: function (e) {
for (var t = this._groups, i = 0, n = t.length; i < n; ++i)
for (var r, s = t[i], o = 0, a = s.length; o < a; ++o)
(r = s[o]) && e.call(r, r.__data__, o, s);
return this;
},
attr: function (e, t) {
var i = xe(e);
if (arguments.length < 2) {
var n = this.node();
return i.local
? n.getAttributeNS(i.space, i.local)
: n.getAttribute(i);
}
return this.each(
(null == t
? i.local
? Me
: Le
: 'function' == typeof t
? i.local
? Te
: Ee
: i.local
? Ne
: De)(i, t)
);
},
style: function (e, t, i) {
return arguments.length > 1
? this.each(
(null == t ? Oe : 'function' == typeof t ? Re : Ae)(
e,
t,
null == i ? '' : i
)
)
: Pe(this.node(), e);
},
property: function (e, t) {
return arguments.length > 1
? this.each(
(null == t ? Fe : 'function' == typeof t ? We : Be)(e, t)
)
: this.node()[e];
},
classed: function (e, t) {
var i = Ye(e + '');
if (arguments.length < 2) {
for (var n = He(this.node()), r = -1, s = i.length; ++r < s; )
if (!n.contains(i[r])) return !1;
return !0;
}
return this.each(('function' == typeof t ? Ke : t ? Ue : $e)(i, t));
},
text: function (e) {
return arguments.length
? this.each(
null == e ? qe : ('function' == typeof e ? Ze : Ge)(e)
)
: this.node().textContent;
},
html: function (e) {
return arguments.length
? this.each(
null == e ? Je : ('function' == typeof e ? Xe : Qe)(e)
)
: this.node().innerHTML;
},
raise: function () {
return this.each(et);
},
lower: function () {
return this.each(tt);
},
append: function (e) {
var t = 'function' == typeof e ? e : rt(e);
return this.select(function () {
return this.appendChild(t.apply(this, arguments));
});
},
insert: function (e, t) {
var i = 'function' == typeof e ? e : rt(e),
n = null == t ? st : 'function' == typeof t ? t : fe(t);
return this.select(function () {
return this.insertBefore(
i.apply(this, arguments),
n.apply(this, arguments) || null
);
});
},
remove: function () {
return this.each(ot);
},
clone: function (e) {
return this.select(e ? lt : at);
},
datum: function (e) {
return arguments.length
? this.property('__data__', e)
: this.node().__data__;
},
on: function (e, t, i) {
var n,
r,
s = gt(e + ''),
o = s.length;
if (!(arguments.length < 2)) {
for (a = t ? pt : ft, null == i && (i = !1), n = 0; n < o; ++n)
this.each(a(s[n], t, i));
return this;
}
var a = this.node().__on;
if (a)
for (var l, c = 0, d = a.length; c < d; ++c)
for (n = 0, l = a[c]; n < o; ++n)
if ((r = s[n]).type === l.type && r.name === l.name)
return l.value;
},
dispatch: function (e, t) {
return this.each(('function' == typeof t ? vt : bt)(e, t));
},
};
const St = Ct;
function kt(e) {
return 'string' == typeof e
? new wt([[document.querySelector(e)]], [document.documentElement])
: new wt([[e]], yt);
}
function xt() {
dt.stopImmediatePropagation();
}
function Lt() {
dt.preventDefault(), dt.stopImmediatePropagation();
}
function Mt(e) {
var t = e.document.documentElement,
i = kt(e).on('dragstart.drag', Lt, !0);
'onselectstart' in t
? i.on('selectstart.drag', Lt, !0)
: ((t.__noselect = t.style.MozUserSelect),
(t.style.MozUserSelect = 'none'));
}
function Dt(e, t) {
var i = e.document.documentElement,
n = kt(e).on('dragstart.drag', null);
t &&
(n.on('click.drag', Lt, !0),
setTimeout(function () {
n.on('click.drag', null);
}, 0)),
'onselectstart' in i
? n.on('selectstart.drag', null)
: ((i.style.MozUserSelect = i.__noselect), delete i.__noselect);
}
function Nt(e, t, i) {
(e.prototype = t.prototype = i), (i.constructor = e);
}
function Et(e, t) {
var i = Object.create(e.prototype);
for (var n in t) i[n] = t[n];
return i;
}
function Tt() {}
var It = 0.7,
Ot = 1 / It,
At = '\\s*([+-]?\\d+)\\s*',
Rt = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*',
Pt = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*',
Ft = /^#([0-9a-f]{3,8})$/,
Bt = new RegExp('^rgb\\(' + [At, At, At] + '\\)$'),
Wt = new RegExp('^rgb\\(' + [Pt, Pt, Pt] + '\\)$'),
Yt = new RegExp('^rgba\\(' + [At, At, At, Rt] + '\\)$'),
Ht = new RegExp('^rgba\\(' + [Pt, Pt, Pt, Rt] + '\\)$'),
jt = new RegExp('^hsl\\(' + [Rt, Pt, Pt] + '\\)$'),
Vt = new RegExp('^hsla\\(' + [Rt, Pt, Pt, Rt] + '\\)$'),
zt = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
aquamarine: 8388564,
azure: 15794175,
beige: 16119260,
bisque: 16770244,
black: 0,
blanchedalmond: 16772045,
blue: 255,
blueviolet: 9055202,
brown: 10824234,
burlywood: 14596231,
cadetblue: 6266528,
chartreuse: 8388352,
chocolate: 13789470,
coral: 16744272,
cornflowerblue: 6591981,
cornsilk: 16775388,
crimson: 14423100,
cyan: 65535,
darkblue: 139,
darkcyan: 35723,
darkgoldenrod: 12092939,
darkgray: 11119017,
darkgreen: 25600,
darkgrey: 11119017,
darkkhaki: 12433259,
darkmagenta: 9109643,
darkolivegreen: 5597999,
darkorange: 16747520,
darkorchid: 10040012,
darkred: 9109504,
darksalmon: 15308410,
darkseagreen: 9419919,
darkslateblue: 4734347,
darkslategray: 3100495,
darkslategrey: 3100495,
darkturquoise: 52945,
darkviolet: 9699539,
deeppink: 16716947,
deepskyblue: 49151,
dimgray: 6908265,
dimgrey: 6908265,
dodgerblue: 2003199,
firebrick: 11674146,
floralwhite: 16775920,
forestgreen: 2263842,
fuchsia: 16711935,
gainsboro: 14474460,
ghostwhite: 16316671,
gold: 16766720,
goldenrod: 14329120,
gray: 8421504,
green: 32768,
greenyellow: 11403055,
grey: 8421504,
honeydew: 15794160,
hotpink: 16738740,
indianred: 13458524,
indigo: 4915330,
ivory: 16777200,
khaki: 15787660,
lavender: 15132410,
lavenderblush: 16773365,
lawngreen: 8190976,
lemonchiffon: 16775885,
lightblue: 11393254,
lightcoral: 15761536,
lightcyan: 14745599,
lightgoldenrodyellow: 16448210,
lightgray: 13882323,
lightgreen: 9498256,
lightgrey: 13882323,
lightpink: 16758465,
lightsalmon: 16752762,
lightseagreen: 2142890,
lightskyblue: 8900346,
lightslategray: 7833753,
lightslategrey: 7833753,
lightsteelblue: 11584734,
lightyellow: 16777184,
lime: 65280,
limegreen: 3329330,
linen: 16445670,
magenta: 16711935,
maroon: 8388608,
mediumaquamarine: 6737322,
mediumblue: 205,
mediumorchid: 12211667,
mediumpurple: 9662683,
mediumseagreen: 3978097,
mediumslateblue: 8087790,
mediumspringgreen: 64154,
mediumturquoise: 4772300,
mediumvioletred: 13047173,
midnightblue: 1644912,
mintcream: 16121850,
mistyrose: 16770273,
moccasin: 16770229,
navajowhite: 16768685,
navy: 128,
oldlace: 16643558,
olive: 8421376,
olivedrab: 7048739,
orange: 16753920,
orangered: 16729344,
orchid: 14315734,
palegoldenrod: 15657130,
palegreen: 10025880,
paleturquoise: 11529966,
palevioletred: 14381203,
papayawhip: 16773077,
peachpuff: 16767673,
peru: 13468991,
pink: 16761035,
plum: 14524637,
powderblue: 11591910,
purple: 8388736,
rebeccapurple: 6697881,
red: 16711680,
rosybrown: 12357519,
royalblue: 4286945,
saddlebrown: 9127187,
salmon: 16416882,
sandybrown: 16032864,
seagreen: 3050327,
seashell: 16774638,
sienna: 10506797,
silver: 12632256,
skyblue: 8900331,
slateblue: 6970061,
slategray: 7372944,
slategrey: 7372944,
snow: 16775930,
springgreen: 65407,
steelblue: 4620980,
tan: 13808780,
teal: 32896,
thistle: 14204888,
tomato: 16737095,
turquoise: 4251856,
violet: 15631086,
wheat: 16113331,
white: 16777215,
whitesmoke: 16119285,
yellow: 16776960,
yellowgreen: 10145074,
};
function Ut() {
return this.rgb().formatHex();
}
function $t() {
return this.rgb().formatRgb();
}
function Kt(e) {
var t, i;
return (
(e = (e + '').trim().toLowerCase()),
(t = Ft.exec(e))
? ((i = t[1].length),
(t = parseInt(t[1], 16)),
6 === i
? qt(t)
: 3 === i
? new Qt(
((t >> 8) & 15) | ((t >> 4) & 240),
((t >> 4) & 15) | (240 & t),
((15 & t) << 4) | (15 & t),
1
)
: 8 === i
? new Qt(
(t >> 24) & 255,
(t >> 16) & 255,
(t >> 8) & 255,
(255 & t) / 255
)
: 4 === i
? new Qt(
((t >> 12) & 15) | ((t >> 8) & 240),
((t >> 8) & 15) | ((t >> 4) & 240),
((t >> 4) & 15) | (240 & t),
(((15 & t) << 4) | (15 & t)) / 255
)
: null)
: (t = Bt.exec(e))
? new Qt(t[1], t[2], t[3], 1)
: (t = Wt.exec(e))
? new Qt(
(255 * t[1]) / 100,
(255 * t[2]) / 100,
(255 * t[3]) / 100,
1
)
: (t = Yt.exec(e))
? Gt(t[1], t[2], t[3], t[4])
: (t = Ht.exec(e))
? Gt(
(255 * t[1]) / 100,
(255 * t[2]) / 100,
(255 * t[3]) / 100,
t[4]
)
: (t = jt.exec(e))
? ii(t[1], t[2] / 100, t[3] / 100, 1)
: (t = Vt.exec(e))
? ii(t[1], t[2] / 100, t[3] / 100, t[4])
: zt.hasOwnProperty(e)
? qt(zt[e])
: 'transparent' === e
? new Qt(NaN, NaN, NaN, 0)
: null
);
}
function qt(e) {
return new Qt((e >> 16) & 255, (e >> 8) & 255, 255 & e, 1);
}
function Gt(e, t, i, n) {
return n <= 0 && (e = t = i = NaN), new Qt(e, t, i, n);
}
function Zt(e) {
return (
e instanceof Tt || (e = Kt(e)),
e ? new Qt((e = e.rgb()).r, e.g, e.b, e.opacity) : new Qt()
);
}
function Jt(e, t, i, n) {
return 1 === arguments.length
? Zt(e)
: new Qt(e, t, i, null == n ? 1 : n);
}
function Qt(e, t, i, n) {
(this.r = +e), (this.g = +t), (this.b = +i), (this.opacity = +n);
}
function Xt() {
return '#' + ti(this.r) + ti(this.g) + ti(this.b);
}
function ei() {
var e = this.opacity;
return (
(1 === (e = isNaN(e) ? 1 : Math.max(0, Math.min(1, e)))
? 'rgb('
: 'rgba(') +
Math.max(0, Math.min(255, Math.round(this.r) || 0)) +
', ' +
Math.max(0, Math.min(255, Math.round(this.g) || 0)) +
', ' +
Math.max(0, Math.min(255, Math.round(this.b) || 0)) +
(1 === e ? ')' : ', ' + e + ')')
);
}
function ti(e) {
return (
((e = Math.max(0, Math.min(255, Math.round(e) || 0))) < 16
? '0'
: '') + e.toString(16)
);
}
function ii(e, t, i, n) {
return (
n <= 0
? (e = t = i = NaN)
: i <= 0 || i >= 1
? (e = t = NaN)
: t <= 0 && (e = NaN),
new si(e, t, i, n)
);
}
function ni(e) {
if (e instanceof si) return new si(e.h, e.s, e.l, e.opacity);
if ((e instanceof Tt || (e = Kt(e)), !e)) return new si();
if (e instanceof si) return e;
var t = (e = e.rgb()).r / 255,
i = e.g / 255,
n = e.b / 255,
r = Math.min(t, i, n),
s = Math.max(t, i, n),
o = NaN,
a = s - r,
l = (s + r) / 2;
return (
a
? ((o =
t === s
? (i - n) / a + 6 * (i < n)
: i === s
? (n - t) / a + 2
: (t - i) / a + 4),
(a /= l < 0.5 ? s + r : 2 - s - r),
(o *= 60))
: (a = l > 0 && l < 1 ? 0 : o),
new si(o, a, l, e.opacity)
);
}
function ri(e, t, i, n) {
return 1 === arguments.length
? ni(e)
: new si(e, t, i, null == n ? 1 : n);
}
function si(e, t, i, n) {
(this.h = +e), (this.s = +t), (this.l = +i), (this.opacity = +n);
}
function oi(e, t, i) {
return (
255 *
(e < 60
? t + ((i - t) * e) / 60
: e < 180
? i
: e < 240
? t + ((i - t) * (240 - e)) / 60
: t)
);
}
function ai(e, t, i, n, r) {
var s = e * e,
o = s * e;
return (
((1 - 3 * e + 3 * s - o) * t +
(4 - 6 * s + 3 * o) * i +
(1 + 3 * e + 3 * s - 3 * o) * n +
o * r) /
6
);
}
function li(e) {
var t = e.length - 1;
return function (i) {
var n =
i <= 0
? (i = 0)
: i >= 1
? ((i = 1), t - 1)
: Math.floor(i * t),
r = e[n],
s = e[n + 1],
o = n > 0 ? e[n - 1] : 2 * r - s,
a = n < t - 1 ? e[n + 2] : 2 * s - r;
return ai((i - n / t) * t, o, r, s, a);
};
}
function ci(e) {
var t = e.length;
return function (i) {
var n = Math.floor(((i %= 1) < 0 ? ++i : i) * t),
r = e[(n + t - 1) % t],
s = e[n % t],
o = e[(n + 1) % t],
a = e[(n + 2) % t];
return ai((i - n / t) * t, r, s, o, a);
};
}
function di(e) {
return function () {
return e;
};
}
function hi(e, t) {
return function (i) {
return e + i * t;
};
}
function ui(e, t) {
var i = t - e;
return i
? hi(e, i > 180 || i < -180 ? i - 360 * Math.round(i / 360) : i)
: di(isNaN(e) ? t : e);
}
function gi(e, t) {
var i = t - e;
return i ? hi(e, i) : di(isNaN(e) ? t : e);
}
Nt(Tt, Kt, {
copy: function (e) {
return Object.assign(new this.constructor(), this, e);
},
displayable: function () {
return this.rgb().displayable();
},
hex: Ut,
formatHex: Ut,
formatHsl: function () {
return ni(this).formatHsl();
},
formatRgb: $t,
toString: $t,
}),
Nt(
Qt,
Jt,
Et(Tt, {
brighter: function (e) {
return (
(e = null == e ? Ot : Math.pow(Ot, e)),
new Qt(this.r * e, this.g * e, this.b * e, this.opacity)
);
},
darker: function (e) {
return (
(e = null == e ? It : Math.pow(It, e)),
new Qt(this.r * e, this.g * e, this.b * e, this.opacity)
);
},
rgb: function () {
return this;
},
displayable: function () {
return (
-0.5 <= this.r &&
this.r < 255.5 &&
-0.5 <= this.g &&
this.g < 255.5 &&
-0.5 <= this.b &&
this.b < 255.5 &&
0 <= this.opacity &&
this.opacity <= 1
);
},
hex: Xt,
formatHex: Xt,
formatRgb: ei,
toString: ei,
})
),
Nt(
si,
ri,
Et(Tt, {
brighter: function (e) {
return (
(e = null == e ? Ot : Math.pow(Ot, e)),
new si(this.h, this.s, this.l * e, this.opacity)
);
},
darker: function (e) {
return (
(e = null == e ? It : Math.pow(It, e)),
new si(this.h, this.s, this.l * e, this.opacity)
);
},
rgb: function () {
var e = (this.h % 360) + 360 * (this.h < 0),
t = isNaN(e) || isNaN(this.s) ? 0 : this.s,
i = this.l,
n = i + (i < 0.5 ? i : 1 - i) * t,
r = 2 * i - n;
return new Qt(
oi(e >= 240 ? e - 240 : e + 120, r, n),
oi(e, r, n),
oi(e < 120 ? e + 240 : e - 120, r, n),
this.opacity
);
},
displayable: function () {
return (
((0 <= this.s && this.s <= 1) || isNaN(this.s)) &&
0 <= this.l &&
this.l <= 1 &&
0 <= this.opacity &&
this.opacity <= 1
);
},
formatHsl: function () {
var e = this.opacity;
return (
(1 === (e = isNaN(e) ? 1 : Math.max(0, Math.min(1, e)))
? 'hsl('
: 'hsla(') +
(this.h || 0) +
', ' +
100 * (this.s || 0) +
'%, ' +
100 * (this.l || 0) +
'%' +
(1 === e ? ')' : ', ' + e + ')')
);
},
})
);
const fi = (function e(t) {
var i = (function (e) {
return 1 == (e = +e)
? gi
: function (t, i) {
return i - t
? (function (e, t, i) {
return (
(e = Math.pow(e, i)),
(t = Math.pow(t, i) - e),
(i = 1 / i),
function (n) {
return Math.pow(e + n * t, i);
}
);
})(t, i, e)
: di(isNaN(t) ? i : t);
};
})(t);
function n(e, t) {
var n = i((e = Jt(e)).r, (t = Jt(t)).r),
r = i(e.g, t.g),
s = i(e.b, t.b),
o = gi(e.opacity, t.opacity);
return function (t) {
return (
(e.r = n(t)),
(e.g = r(t)),
(e.b = s(t)),
(e.opacity = o(t)),
e + ''
);
};
}
return (n.gamma = e), n;
})(1);
function pi(e) {
return function (t) {
var i,
n,
r = t.length,
s = new Array(r),
o = new Array(r),
a = new Array(r);
for (i = 0; i < r; ++i)
(n = Jt(t[i])),
(s[i] = n.r || 0),
(o[i] = n.g || 0),
(a[i] = n.b || 0);
return (
(s = e(s)),
(o = e(o)),
(a = e(a)),
(n.opacity = 1),
function (e) {
return (n.r = s(e)), (n.g = o(e)), (n.b = a(e)), n + '';
}
);
};
}
var mi = pi(li),
_i = pi(ci);
function bi(e, t) {
t || (t = []);
var i,
n = e ? Math.min(t.length, e.length) : 0,
r = t.slice();
return function (s) {
for (i = 0; i < n; ++i) r[i] = e[i] * (1 - s) + t[i] * s;
return r;
};
}
function vi(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
function yi(e, t) {
return (vi(t) ? bi : wi)(e, t);
}
function wi(e, t) {
var i,
n = t ? t.length : 0,
r = e ? Math.min(n, e.length) : 0,
s = new Array(r),
o = new Array(n);
for (i = 0; i < r; ++i) s[i] = Di(e[i], t[i]);
for (; i < n; ++i) o[i] = t[i];
return function (e) {
for (i = 0; i < r; ++i) o[i] = s[i](e);
return o;
};
}
function Ci(e, t) {
var i = new Date();
return (
(e = +e),
(t = +t),
function (n) {
return i.setTime(e * (1 - n) + t * n), i;
}
);
}
function Si(e, t) {
return (
(e = +e),
(t = +t),
function (i) {
return e * (1 - i) + t * i;
}
);
}
function ki(e, t) {
var i,
n = {},
r = {};
for (i in ((null !== e && 'object' == typeof e) || (e = {}),
(null !== t && 'object' == typeof t) || (t = {}),
t))
i in e ? (n[i] = Di(e[i], t[i])) : (r[i] = t[i]);
return function (e) {
for (i in n) r[i] = n[i](e);
return r;
};
}
var xi = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
Li = new RegExp(xi.source, 'g');
function Mi(e, t) {
var i,
n,
r,
s = (xi.lastIndex = Li.lastIndex = 0),
o = -1,
a = [],
l = [];
for (e += '', t += ''; (i = xi.exec(e)) && (n = Li.exec(t)); )
(r = n.index) > s &&
((r = t.slice(s, r)), a[o] ? (a[o] += r) : (a[++o] = r)),
(i = i[0]) === (n = n[0])
? a[o]
? (a[o] += n)
: (a[++o] = n)
: ((a[++o] = null), l.push({ i: o, x: Si(i, n) })),
(s = Li.lastIndex);
return (
s < t.length &&
((r = t.slice(s)), a[o] ? (a[o] += r) : (a[++o] = r)),
a.length < 2
? l[0]
? (function (e) {
return function (t) {
return e(t) + '';
};
})(l[0].x)
: (function (e) {
return function () {
return e;
};
})(t)
: ((t = l.length),
function (e) {
for (var i, n = 0; n < t; ++n) a[(i = l[n]).i] = i.x(e);
return a.join('');
})
);
}
function Di(e, t) {
var i,
n = typeof t;
return null == t || 'boolean' === n
? di(t)
: ('number' === n
? Si
: 'string' === n
? (i = Kt(t))
? ((t = i), fi)
: Mi
: t instanceof Kt
? fi
: t instanceof Date
? Ci
: vi(t)
? bi
: Array.isArray(t)
? wi
: ('function' != typeof t.valueOf &&
'function' != typeof t.toString) ||
isNaN(t)
? ki
: Si)(e, t);
}
function Ni() {
for (var e, t = dt; (e = t.sourceEvent); ) t = e;
return t;
}
function Ei(e, t) {
var i = e.ownerSVGElement || e;
if (i.createSVGPoint) {
var n = i.createSVGPoint();
return (
(n.x = t.clientX),
(n.y = t.clientY),
[(n = n.matrixTransform(e.getScreenCTM().inverse())).x, n.y]
);
}
var r = e.getBoundingClientRect();
return [
t.clientX - r.left - e.clientLeft,
t.clientY - r.top - e.clientTop,
];
}
function Ti(e, t, i) {
arguments.length < 3 && ((i = t), (t = Ni().changedTouches));
for (var n, r = 0, s = t ? t.length : 0; r < s; ++r)
if ((n = t[r]).identifier === i) return Ei(e, n);
return null;
}
function Ii(e) {
var t = Ni();
return t.changedTouches && (t = t.changedTouches[0]), Ei(e, t);
}
var Oi,
Ai,
Ri = 0,
Pi = 0,
Fi = 0,
Bi = 0,
Wi = 0,
Yi = 0,
Hi =
'object' == typeof performance && performance.now
? performance
: Date,
ji =
'object' == typeof window && window.requestAnimationFrame
? window.requestAnimationFrame.bind(window)
: function (e) {
setTimeout(e, 17);
};
function Vi() {
return Wi || (ji(zi), (Wi = Hi.now() + Yi));
}
function zi() {
Wi = 0;
}
function Ui() {
this._call = this._time = this._next = null;
}
function $i(e, t, i) {
var n = new Ui();
return n.restart(e, t, i), n;
}
function Ki() {
Vi(), ++Ri;
for (var e, t = Oi; t; )
(e = Wi - t._time) >= 0 && t._call.call(null, e), (t = t._next);
--Ri;
}
function qi() {
(Wi = (Bi = Hi.now()) + Yi), (Ri = Pi = 0);
try {
Ki();
} finally {
(Ri = 0),
(function () {
for (var e, t, i = Oi, n = 1 / 0; i; )
i._call
? (n > i._time && (n = i._time), (e = i), (i = i._next))
: ((t = i._next),
(i._next = null),
(i = e ? (e._next = t) : (Oi = t)));
(Ai = e), Zi(n);
})(),
(Wi = 0);
}
}
function Gi() {
var e = Hi.now(),
t = e - Bi;
t > 1e3 && ((Yi -= t), (Bi = e));
}
function Zi(e) {
Ri ||
(Pi && (Pi = clearTimeout(Pi)),
e - Wi > 24
? (e < 1 / 0 && (Pi = setTimeout(qi, e - Hi.now() - Yi)),
Fi && (Fi = clearInterval(Fi)))
: (Fi || ((Bi = Hi.now()), (Fi = setInterval(Gi, 1e3))),
(Ri = 1),
ji(qi)));
}
function Ji(e, t, i) {
var n = new Ui();
return (
(t = null == t ? 0 : +t),
n.restart(
function (i) {
n.stop(), e(i + t);
},
t,
i
),
n
);
}
Ui.prototype = $i.prototype = {
constructor: Ui,
restart: function (e, t, i) {
if ('function' != typeof e)
throw new TypeError('callback is not a function');
(i = (null == i ? Vi() : +i) + (null == t ? 0 : +t)),
this._next ||
Ai === this ||
(Ai ? (Ai._next = this) : (Oi = this), (Ai = this)),
(this._call = e),
(this._time = i),
Zi();
},
stop: function () {
this._call && ((this._call = null), (this._time = 1 / 0), Zi());
},
};
var Qi = ue('start', 'end', 'cancel', 'interrupt'),
Xi = [];
function en(e, t, i, n, r, s) {
var o = e.__transition;
if (o) {
if (i in o) return;
} else e.__transition = {};
!(function (e, t, i) {
var n,
r = e.__transition;
function s(l) {
var c, d, h, u;
if (1 !== i.state) return a();
for (c in r)
if ((u = r[c]).name === i.name) {
if (3 === u.state) return Ji(s);
4 === u.state
? ((u.state = 6),
u.timer.stop(),
u.on.call('interrupt', e, e.__data__, u.index, u.group),
delete r[c])
: +c < t &&
((u.state = 6),
u.timer.stop(),
u.on.call('cancel', e, e.__data__, u.index, u.group),
delete r[c]);
}
if (
(Ji(function () {
3 === i.state &&
((i.state = 4), i.timer.restart(o, i.delay, i.time), o(l));
}),
(i.state = 2),
i.on.call('start', e, e.__data__, i.index, i.group),
2 === i.state)
) {
for (
i.state = 3,
n = new Array((h = i.tween.length)),
c = 0,
d = -1;
c < h;
++c
)
(u = i.tween[c].value.call(
e,
e.__data__,
i.index,
i.group
)) && (n[++d] = u);
n.length = d + 1;
}
}
function o(t) {
for (
var r =
t < i.duration
? i.ease.call(null, t / i.duration)
: (i.timer.restart(a), (i.state = 5), 1),
s = -1,
o = n.length;
++s < o;
)
n[s].call(e, r);
5 === i.state &&
(i.on.call('end', e, e.__data__, i.index, i.group), a());
}
function a() {
for (var n in ((i.state = 6), i.timer.stop(), delete r[t], r))
return;
delete e.__transition;
}
(r[t] = i),
(i.timer = $i(
function (e) {
(i.state = 1),
i.timer.restart(s, i.delay, i.time),
i.delay <= e && s(e - i.delay);
},
0,
i.time
));
})(e, i, {
name: t,
index: n,
group: r,
on: Qi,
tween: Xi,
time: s.time,
delay: s.delay,
duration: s.duration,
ease: s.ease,
timer: null,
state: 0,
});
}
function tn(e, t) {
var i = rn(e, t);
if (i.state > 0) throw new Error('too late; already scheduled');
return i;
}
function nn(e, t) {
var i = rn(e, t);
if (i.state > 3) throw new Error('too late; already running');
return i;
}
function rn(e, t) {
var i = e.__transition;
if (!i || !(i = i[t])) throw new Error('transition not found');
return i;
}
function sn(e, t) {
var i,
n,
r,
s = e.__transition,
o = !0;
if (s) {
for (r in ((t = null == t ? null : t + ''), s))
(i = s[r]).name === t
? ((n = i.state > 2 && i.state < 5),
(i.state = 6),
i.timer.stop(),
i.on.call(
n ? 'interrupt' : 'cancel',
e,
e.__data__,
i.index,
i.group
),
delete s[r])
: (o = !1);
o && delete e.__transition;
}
}
var on,
an,
ln,
cn,
dn = 180 / Math.PI,
hn = {
translateX: 0,
translateY: 0,
rotate: 0,
skewX: 0,
scaleX: 1,
scaleY: 1,
};
function un(e, t, i, n, r, s) {
var o, a, l;
return (
(o = Math.sqrt(e * e + t * t)) && ((e /= o), (t /= o)),
(l = e * i + t * n) && ((i -= e * l), (n -= t * l)),
(a = Math.sqrt(i * i + n * n)) && ((i /= a), (n /= a), (l /= a)),
e * n < t * i && ((e = -e), (t = -t), (l = -l), (o = -o)),
{
translateX: r,
translateY: s,
rotate: Math.atan2(t, e) * dn,
skewX: Math.atan(l) * dn,
scaleX: o,
scaleY: a,
}
);
}
function gn(e, t, i, n) {
function r(e) {
return e.length ? e.pop() + ' ' : '';
}
return function (s, o) {
var a = [],
l = [];
return (
(s = e(s)),
(o = e(o)),
(function (e, n, r, s, o, a) {
if (e !== r || n !== s) {
var l = o.push('translate(', null, t, null, i);
a.push({ i: l - 4, x: Si(e, r) }, { i: l - 2, x: Si(n, s) });
} else (r || s) && o.push('translate(' + r + t + s + i);
})(s.translateX, s.translateY, o.translateX, o.translateY, a, l),
(function (e, t, i, s) {
e !== t
? (e - t > 180 ? (t += 360) : t - e > 180 && (e += 360),
s.push({
i: i.push(r(i) + 'rotate(', null, n) - 2,
x: Si(e, t),
}))
: t && i.push(r(i) + 'rotate(' + t + n);
})(s.rotate, o.rotate, a, l),
(function (e, t, i, s) {
e !== t
? s.push({
i: i.push(r(i) + 'skewX(', null, n) - 2,
x: Si(e, t),
})
: t && i.push(r(i) + 'skewX(' + t + n);
})(s.skewX, o.skewX, a, l),
(function (e, t, i, n, s, o) {
if (e !== i || t !== n) {
var a = s.push(r(s) + 'scale(', null, ',', null, ')');
o.push({ i: a - 4, x: Si(e, i) }, { i: a - 2, x: Si(t, n) });
} else
(1 === i && 1 === n) ||
s.push(r(s) + 'scale(' + i + ',' + n + ')');
})(s.scaleX, s.scaleY, o.scaleX, o.scaleY, a, l),
(s = o = null),
function (e) {
for (var t, i = -1, n = l.length; ++i < n; )
a[(t = l[i]).i] = t.x(e);
return a.join('');
}
);
};
}
var fn = gn(
function (e) {
return 'none' === e
? hn
: (on ||
((on = document.createElement('DIV')),
(an = document.documentElement),
(ln = document.defaultView)),
(on.style.transform = e),
(e = ln
.getComputedStyle(an.appendChild(on), null)
.getPropertyValue('transform')),
an.removeChild(on),
un(
+(e = e.slice(7, -1).split(','))[0],
+e[1],
+e[2],
+e[3],
+e[4],
+e[5]
));
},
'px, ',
'px)',
'deg)'
),
pn = gn(
function (e) {
return null == e
? hn
: (cn ||
(cn = document.createElementNS(
'http://www.w3.org/2000/svg',
'g'
)),
cn.setAttribute('transform', e),
(e = cn.transform.baseVal.consolidate())
? un((e = e.matrix).a, e.b, e.c, e.d, e.e, e.f)
: hn);
},
', ',
')',
')'
);
function mn(e, t) {
var i, n;
return function () {
var r = nn(this, e),
s = r.tween;
if (s !== i)
for (var o = 0, a = (n = i = s).length; o < a; ++o)
if (n[o].name === t) {
(n = n.slice()).splice(o, 1);
break;
}
r.tween = n;
};
}
function _n(e, t, i) {
var n, r;
if ('function' != typeof i) throw new Error();
return function () {
var s = nn(this, e),
o = s.tween;
if (o !== n) {
r = (n = o).slice();
for (
var a = { name: t, value: i }, l = 0, c = r.length;
l < c;
++l
)
if (r[l].name === t) {
r[l] = a;
break;
}
l === c && r.push(a);
}
s.tween = r;
};
}
function bn(e, t, i) {
var n = e._id;
return (
e.each(function () {
var e = nn(this, n);
(e.value || (e.value = {}))[t] = i.apply(this, arguments);
}),
function (e) {
return rn(e, n).value[t];
}
);
}
function vn(e, t) {
var i;
return ('number' == typeof t
? Si
: t instanceof Kt
? fi
: (i = Kt(t))
? ((t = i), fi)
: Mi)(e, t);
}
function yn(e) {
return function () {
this.removeAttribute(e);
};
}
function wn(e) {
return function () {
this.removeAttributeNS(e.space, e.local);
};
}
function Cn(e, t, i) {
var n,
r,
s = i + '';
return function () {
var o = this.getAttribute(e);
return o === s ? null : o === n ? r : (r = t((n = o), i));
};
}
function Sn(e, t, i) {
var n,
r,
s = i + '';
return function () {
var o = this.getAttributeNS(e.space, e.local);
return o === s ? null : o === n ? r : (r = t((n = o), i));
};
}
function kn(e, t, i) {
var n, r, s;
return function () {
var o,
a,
l = i(this);
if (null != l)
return (o = this.getAttribute(e)) === (a = l + '')
? null
: o === n && a === r
? s
: ((r = a), (s = t((n = o), l)));
this.removeAttribute(e);
};
}
function xn(e, t, i) {
var n, r, s;
return function () {
var o,
a,
l = i(this);
if (null != l)
return (o = this.getAttributeNS(e.space, e.local)) ===
(a = l + '')
? null
: o === n && a === r
? s
: ((r = a), (s = t((n = o), l)));
this.removeAttributeNS(e.space, e.local);
};
}
function Ln(e, t) {
return function (i) {
this.setAttribute(e, t.call(this, i));
};
}
function Mn(e, t) {
return function (i) {
this.setAttributeNS(e.space, e.local, t.call(this, i));
};
}
function Dn(e, t) {
var i, n;
function r() {
var r = t.apply(this, arguments);
return r !== n && (i = (n = r) && Mn(e, r)), i;
}
return (r._value = t), r;
}
function Nn(e, t) {
var i, n;
function r() {
var r = t.apply(this, arguments);
return r !== n && (i = (n = r) && Ln(e, r)), i;
}
return (r._value = t), r;
}
function En(e, t) {
return function () {
tn(this, e).delay = +t.apply(this, arguments);
};
}
function Tn(e, t) {
return (
(t = +t),
function () {
tn(this, e).delay = t;
}
);
}
function In(e, t) {
return function () {
nn(this, e).duration = +t.apply(this, arguments);
};
}
function On(e, t) {
return (
(t = +t),
function () {
nn(this, e).duration = t;
}
);
}
function An(e, t) {
if ('function' != typeof t) throw new Error();
return function () {
nn(this, e).ease = t;
};
}
function Rn(e, t, i) {
var n,
r,
s = (function (e) {
return (e + '')
.trim()
.split(/^|\s+/)
.every(function (e) {
var t = e.indexOf('.');
return t >= 0 && (e = e.slice(0, t)), !e || 'start' === e;
});
})(t)
? tn
: nn;
return function () {
var o = s(this, e),
a = o.on;
a !== n && (r = (n = a).copy()).on(t, i), (o.on = r);
};
}
var Pn = St.prototype.constructor;
function Fn(e) {
return function () {
this.style.removeProperty(e);
};
}
function Bn(e, t, i) {
return function (n) {
this.style.setProperty(e, t.call(this, n), i);
};
}
function Wn(e, t, i) {
var n, r;
function s() {
var s = t.apply(this, arguments);
return s !== r && (n = (r = s) && Bn(e, s, i)), n;
}
return (s._value = t), s;
}
function Yn(e) {
return function (t) {
this.textContent = e.call(this, t);
};
}
function Hn(e) {
var t, i;
function n() {
var n = e.apply(this, arguments);
return n !== i && (t = (i = n) && Yn(n)), t;
}
return (n._value = e), n;
}
var jn = 0;
function Vn(e, t, i, n) {
(this._groups = e),
(this._parents = t),
(this._name = i),
(this._id = n);
}
function zn(e) {
return St().transition(e);
}
function Un() {
return ++jn;
}
var $n = St.prototype;
function Kn(e) {
return e * e * e;
}
function qn(e) {
return --e * e * e + 1;
}
function Gn(e) {
return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
}
Vn.prototype = zn.prototype = {
constructor: Vn,
select: function (e) {
var t = this._name,
i = this._id;
'function' != typeof e && (e = fe(e));
for (
var n = this._groups, r = n.length, s = new Array(r), o = 0;
o < r;
++o
)
for (
var a,
l,
c = n[o],
d = c.length,
h = (s[o] = new Array(d)),
u = 0;
u < d;
++u
)
(a = c[u]) &&
(l = e.call(a, a.__data__, u, c)) &&
('__data__' in a && (l.__data__ = a.__data__),
(h[u] = l),
en(h[u], t, i, u, h, rn(a, i)));
return new Vn(s, this._parents, t, i);
},
selectAll: function (e) {
var t = this._name,
i = this._id;
'function' != typeof e && (e = me(e));
for (
var n = this._groups, r = n.length, s = [], o = [], a = 0;
a < r;
++a
)
for (var l, c = n[a], d = c.length, h = 0; h < d; ++h)
if ((l = c[h])) {
for (
var u,
g = e.call(l, l.__data__, h, c),
f = rn(l, i),
p = 0,
m = g.length;
p < m;
++p
)
(u = g[p]) && en(u, t, i, p, g, f);
s.push(g), o.push(l);
}
return new Vn(s, o, t, i);
},
filter: function (e) {
'function' != typeof e && (e = _e(e));
for (
var t = this._groups, i = t.length, n = new Array(i), r = 0;
r < i;
++r
)
for (
var s, o = t[r], a = o.length, l = (n[r] = []), c = 0;
c < a;
++c
)
(s = o[c]) && e.call(s, s.__data__, c, o) && l.push(s);
return new Vn(n, this._parents, this._name, this._id);
},
merge: function (e) {
if (e._id !== this._id) throw new Error();
for (
var t = this._groups,
i = e._groups,
n = t.length,
r = i.length,
s = Math.min(n, r),
o = new Array(n),
a = 0;
a < s;
++a
)
for (
var l,
c = t[a],
d = i[a],
h = c.length,
u = (o[a] = new Array(h)),
g = 0;
g < h;
++g
)
(l = c[g] || d[g]) && (u[g] = l);
for (; a < n; ++a) o[a] = t[a];
return new Vn(o, this._parents, this._name, this._id);
},
selection: function () {
return new Pn(this._groups, this._parents);
},
transition: function () {
for (
var e = this._name,
t = this._id,
i = Un(),
n = this._groups,
r = n.length,
s = 0;
s < r;
++s
)
for (var o, a = n[s], l = a.length, c = 0; c < l; ++c)
if ((o = a[c])) {
var d = rn(o, t);
en(o, e, i, c, a, {
time: d.time + d.delay + d.duration,
delay: 0,
duration: d.duration,
ease: d.ease,
});
}
return new Vn(n, this._parents, e, i);
},
call: $n.call,
nodes: $n.nodes,
node: $n.node,
size: $n.size,
empty: $n.empty,
each: $n.each,
on: function (e, t) {
var i = this._id;
return arguments.length < 2
? rn(this.node(), i).on.on(e)
: this.each(Rn(i, e, t));
},
attr: function (e, t) {
var i = xe(e),
n = 'transform' === i ? pn : vn;
return this.attrTween(
e,
'function' == typeof t
? (i.local ? xn : kn)(i, n, bn(this, 'attr.' + e, t))
: null == t
? (i.local ? wn : yn)(i)
: (i.local ? Sn : Cn)(i, n, t)
);
},
attrTween: function (e, t) {
var i = 'attr.' + e;
if (arguments.length < 2) return (i = this.tween(i)) && i._value;
if (null == t) return this.tween(i, null);
if ('function' != typeof t) throw new Error();
var n = xe(e);
return this.tween(i, (n.local ? Dn : Nn)(n, t));
},
style: function (e, t, i) {
var n = 'transform' == (e += '') ? fn : vn;
return null == t
? this.styleTween(
e,
(function (e, t) {
var i, n, r;
return function () {
var s = Pe(this, e),
o = (this.style.removeProperty(e), Pe(this, e));
return s === o
? null
: s === i && o === n
? r
: (r = t((i = s), (n = o)));
};
})(e, n)
).on('end.style.' + e, Fn(e))
: 'function' == typeof t
? this.styleTween(
e,
(function (e, t, i) {
var n, r, s;
return function () {
var o = Pe(this, e),
a = i(this),
l = a + '';
return (
null == a &&
(this.style.removeProperty(e), (l = a = Pe(this, e))),
o === l
? null
: o === n && l === r
? s
: ((r = l), (s = t((n = o), a)))
);
};
})(e, n, bn(this, 'style.' + e, t))
).each(
(function (e, t) {
var i,
n,
r,
s,
o = 'style.' + t,
a = 'end.' + o;
return function () {
var l = nn(this, e),
c = l.on,
d = null == l.value[o] ? s || (s = Fn(t)) : void 0;
(c === i && r === d) ||
(n = (i = c).copy()).on(a, (r = d)),
(l.on = n);
};
})(this._id, e)
)
: this.styleTween(
e,
(function (e, t, i) {
var n,
r,
s = i + '';
return function () {
var o = Pe(this, e);
return o === s ? null : o === n ? r : (r = t((n = o), i));
};
})(e, n, t),
i
).on('end.style.' + e, null);
},
styleTween: function (e, t, i) {
var n = 'style.' + (e += '');
if (arguments.length < 2) return (n = this.tween(n)) && n._value;
if (null == t) return this.tween(n, null);
if ('function' != typeof t) throw new Error();
return this.tween(n, Wn(e, t, null == i ? '' : i));
},
text: function (e) {
return this.tween(
'text',
'function' == typeof e
? (function (e) {
return function () {
var t = e(this);
this.textContent = null == t ? '' : t;
};
})(bn(this, 'text', e))
: (function (e) {
return function () {
this.textContent = e;
};
})(null == e ? '' : e + '')
);
},
textTween: function (e) {
var t = 'text';
if (arguments.length < 1) return (t = this.tween(t)) && t._value;
if (null == e) return this.tween(t, null);
if ('function' != typeof e) throw new Error();
return this.tween(t, Hn(e));
},
remove: function () {
return this.on(
'end.remove',
(function (e) {
return function () {
var t = this.parentNode;
for (var i in this.__transition) if (+i !== e) return;
t && t.removeChild(this);
};
})(this._id)
);
},
tween: function (e, t) {
var i = this._id;
if (((e += ''), arguments.length < 2)) {
for (
var n, r = rn(this.node(), i).tween, s = 0, o = r.length;
s < o;
++s
)
if ((n = r[s]).name === e) return n.value;
return null;
}
return this.each((null == t ? mn : _n)(i, e, t));
},
delay: function (e) {
var t = this._id;
return arguments.length
? this.each(('function' == typeof e ? En : Tn)(t, e))
: rn(this.node(), t).delay;
},
duration: function (e) {
var t = this._id;
return arguments.length
? this.each(('function' == typeof e ? In : On)(t, e))
: rn(this.node(), t).duration;
},
ease: function (e) {
var t = this._id;
return arguments.length
? this.each(An(t, e))
: rn(this.node(), t).ease;
},
end: function () {
var e,
t,
i = this,
n = i._id,
r = i.size();
return new Promise(function (s, o) {
var a = { value: o },
l = {
value: function () {
0 == --r && s();
},
};
i.each(function () {
var i = nn(this, n),
r = i.on;
r !== e &&
((t = (e = r).copy())._.cancel.push(a),
t._.interrupt.push(a),
t._.end.push(l)),
(i.on = t);
});
});
},
};
var Zn = { time: null, delay: 0, duration: 250, ease: Gn };
function Jn(e, t) {
for (var i; !(i = e.__transition) || !(i = i[t]); )
if (!(e = e.parentNode)) return (Zn.time = Vi()), Zn;
return i;
}
(St.prototype.interrupt = function (e) {
return this.each(function () {
sn(this, e);
});
}),
(St.prototype.transition = function (e) {
var t, i;
e instanceof Vn
? ((t = e._id), (e = e._name))
: ((t = Un()),
((i = Zn).time = Vi()),
(e = null == e ? null : e + ''));
for (var n = this._groups, r = n.length, s = 0; s < r; ++s)
for (var o, a = n[s], l = a.length, c = 0; c < l; ++c)
(o = a[c]) && en(o, e, t, c, a, i || Jn(o, t));
return new Vn(n, this._parents, e, t);
});
var Qn = [null];
function Xn(e, t) {
var i,
n,
r = e.__transition;
if (r)
for (n in ((t = null == t ? null : t + ''), r))
if ((i = r[n]).state > 1 && i.name === t)
return new Vn([[e]], Qn, t, +n);
return null;
}
function er(e) {
return function () {
return e;
};
}
function tr(e, t, i) {
(this.target = e), (this.type = t), (this.selection = i);
}
function ir() {
dt.stopImmediatePropagation();
}
function nr() {
dt.preventDefault(), dt.stopImmediatePropagation();
}
var rr = { name: 'drag' },
sr = { name: 'space' },
or = { name: 'handle' },
ar = { name: 'center' };
function lr(e) {
return [+e[0], +e[1]];
}
function cr(e) {
return [lr(e[0]), lr(e[1])];
}
function dr(e) {
return function (t) {
return Ti(t, dt.touches, e);
};
}
var hr = {
name: 'x',
handles: ['w', 'e'].map(vr),
input: function (e, t) {
return null == e
? null
: [
[+e[0], t[0][1]],
[+e[1], t[1][1]],
];
},
output: function (e) {
return e && [e[0][0], e[1][0]];
},
},
ur = {
name: 'y',
handles: ['n', 's'].map(vr),
input: function (e, t) {
return null == e
? null
: [
[t[0][0], +e[0]],
[t[1][0], +e[1]],
];
},
output: function (e) {
return e && [e[0][1], e[1][1]];
},
},
gr = {
name: 'xy',
handles: ['n', 'w', 'e', 's', 'nw', 'ne', 'sw', 'se'].map(vr),
input: function (e) {
return null == e ? null : cr(e);
},
output: function (e) {
return e;
},
},
fr = {
overlay: 'crosshair',
selection: 'move',
n: 'ns-resize',
e: 'ew-resize',
s: 'ns-resize',
w: 'ew-resize',
nw: 'nwse-resize',
ne: 'nesw-resize',
se: 'nwse-resize',
sw: 'nesw-resize',
},
pr = { e: 'w', w: 'e', nw: 'ne', ne: 'nw', se: 'sw', sw: 'se' },
mr = { n: 's', s: 'n', nw: 'sw', ne: 'se', se: 'ne', sw: 'nw' },
_r = {
overlay: 1,
selection: 1,
n: null,
e: 1,
s: null,
w: -1,
nw: -1,
ne: 1,
se: 1,
sw: -1,
},
br = {
overlay: 1,
selection: 1,
n: -1,
e: null,
s: 1,
w: null,
nw: -1,
ne: -1,
se: 1,
sw: 1,
};
function vr(e) {
return { type: e };
}
function yr() {
return !dt.ctrlKey && !dt.button;
}
function wr() {
var e = this.ownerSVGElement || this;
return e.hasAttribute('viewBox')
? [
[(e = e.viewBox.baseVal).x, e.y],
[e.x + e.width, e.y + e.height],
]
: [
[0, 0],
[e.width.baseVal.value, e.height.baseVal.value],
];
}
function Cr() {
return navigator.maxTouchPoints || 'ontouchstart' in this;
}
function Sr(e) {
for (; !e.__brush; ) if (!(e = e.parentNode)) return;
return e.__brush;
}
function kr(e) {
return e[0][0] === e[1][0] || e[0][1] === e[1][1];
}
function xr(e) {
var t = e.__brush;
return t ? t.dim.output(t.selection) : null;
}
function Lr() {
return Nr(hr);
}
function Mr() {
return Nr(ur);
}
function Dr() {
return Nr(gr);
}
function Nr(e) {
var t,
i = wr,
n = yr,
r = Cr,
s = !0,
o = ue('start', 'brush', 'end'),
a = 6;
function l(t) {
var i = t
.property('__brush', p)
.selectAll('.overlay')
.data([vr('overlay')]);
i
.enter()
.append('rect')
.attr('class', 'overlay')
.attr('pointer-events', 'all')
.attr('cursor', fr.overlay)
.merge(i)
.each(function () {
var e = Sr(this).extent;
kt(this)
.attr('x', e[0][0])
.attr('y', e[0][1])
.attr('width', e[1][0] - e[0][0])
.attr('height', e[1][1] - e[0][1]);
}),
t
.selectAll('.selection')
.data([vr('selection')])
.enter()
.append('rect')
.attr('class', 'selection')
.attr('cursor', fr.selection)
.attr('fill', '#777')
.attr('fill-opacity', 0.3)
.attr('stroke', '#fff')
.attr('shape-rendering', 'crispEdges');
var n = t.selectAll('.handle').data(e.handles, function (e) {
return e.type;
});
n.exit().remove(),
n
.enter()
.append('rect')
.attr('class', function (e) {
return 'handle handle--' + e.type;
})
.attr('cursor', function (e) {
return fr[e.type];
}),
t
.each(c)
.attr('fill', 'none')
.attr('pointer-events', 'all')
.on('mousedown.brush', u)
.filter(r)
.on('touchstart.brush', u)
.on('touchmove.brush', g)
.on('touchend.brush touchcancel.brush', f)
.style('touch-action', 'none')
.style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)');
}
function c() {
var e = kt(this),
t = Sr(this).selection;
t
? (e
.selectAll('.selection')
.style('display', null)
.attr('x', t[0][0])
.attr('y', t[0][1])
.attr('width', t[1][0] - t[0][0])
.attr('height', t[1][1] - t[0][1]),
e
.selectAll('.handle')
.style('display', null)
.attr('x', function (e) {
return 'e' === e.type[e.type.length - 1]
? t[1][0] - a / 2
: t[0][0] - a / 2;
})
.attr('y', function (e) {
return 's' === e.type[0]
? t[1][1] - a / 2
: t[0][1] - a / 2;
})
.attr('width', function (e) {
return 'n' === e.type || 's' === e.type
? t[1][0] - t[0][0] + a
: a;
})
.attr('height', function (e) {
return 'e' === e.type || 'w' === e.type
? t[1][1] - t[0][1] + a
: a;
}))
: e
.selectAll('.selection,.handle')
.style('display', 'none')
.attr('x', null)
.attr('y', null)
.attr('width', null)
.attr('height', null);
}
function d(e, t, i) {
return (!i && e.__brush.emitter) || new h(e, t);
}
function h(e, t) {
(this.that = e),
(this.args = t),
(this.state = e.__brush),
(this.active = 0);
}
function u() {
if ((!t || dt.touches) && n.apply(this, arguments)) {
var i,
r,
o,
a,
l,
h,
u,
g,
f,
p,
m,
_ = this,
b = dt.target.__data__.type,
v =
'selection' === (s && dt.metaKey ? (b = 'overlay') : b)
? rr
: s && dt.altKey
? ar
: or,
y = e === ur ? null : _r[b],
w = e === hr ? null : br[b],
C = Sr(_),
S = C.extent,
k = C.selection,
x = S[0][0],
L = S[0][1],
M = S[1][0],
D = S[1][1],
N = 0,
E = 0,
T = y && w && s && dt.shiftKey,
I = dt.touches ? dr(dt.changedTouches[0].identifier) : Ii,
O = I(_),
A = O,
R = d(_, arguments, !0).beforestart();
'overlay' === b
? (k && (f = !0),
(C.selection = k = [
[(i = e === ur ? x : O[0]), (o = e === hr ? L : O[1])],
[(l = e === ur ? M : i), (u = e === hr ? D : o)],
]))
: ((i = k[0][0]), (o = k[0][1]), (l = k[1][0]), (u = k[1][1])),
(r = i),
(a = o),
(h = l),
(g = u);
var P = kt(_).attr('pointer-events', 'none'),
F = P.selectAll('.overlay').attr('cursor', fr[b]);
if (dt.touches) (R.moved = W), (R.ended = H);
else {
var B = kt(dt.view)
.on('mousemove.brush', W, !0)
.on('mouseup.brush', H, !0);
s && B.on('keydown.brush', j, !0).on('keyup.brush', V, !0),
Mt(dt.view);
}
ir(), sn(_), c.call(_), R.start();
}
function W() {
var e = I(_);
!T ||
p ||
m ||
(Math.abs(e[0] - A[0]) > Math.abs(e[1] - A[1])
? (m = !0)
: (p = !0)),
(A = e),
(f = !0),
nr(),
Y();
}
function Y() {
var e;
switch (((N = A[0] - O[0]), (E = A[1] - O[1]), v)) {
case sr:
case rr:
y &&
((N = Math.max(x - i, Math.min(M - l, N))),
(r = i + N),
(h = l + N)),
w &&
((E = Math.max(L - o, Math.min(D - u, E))),
(a = o + E),
(g = u + E));
break;
case or:
y < 0
? ((N = Math.max(x - i, Math.min(M - i, N))),
(r = i + N),
(h = l))
: y > 0 &&
((N = Math.max(x - l, Math.min(M - l, N))),
(r = i),
(h = l + N)),
w < 0
? ((E = Math.max(L - o, Math.min(D - o, E))),
(a = o + E),
(g = u))
: w > 0 &&
((E = Math.max(L - u, Math.min(D - u, E))),
(a = o),
(g = u + E));
break;
case ar:
y &&
((r = Math.max(x, Math.min(M, i - N * y))),
(h = Math.max(x, Math.min(M, l + N * y)))),
w &&
((a = Math.max(L, Math.min(D, o - E * w))),
(g = Math.max(L, Math.min(D, u + E * w))));
}
h < r &&
((y *= -1),
(e = i),
(i = l),
(l = e),
(e = r),
(r = h),
(h = e),
b in pr && F.attr('cursor', fr[(b = pr[b])])),
g < a &&
((w *= -1),
(e = o),
(o = u),
(u = e),
(e = a),
(a = g),
(g = e),
b in mr && F.attr('cursor', fr[(b = mr[b])])),
C.selection && (k = C.selection),
p && ((r = k[0][0]), (h = k[1][0])),
m && ((a = k[0][1]), (g = k[1][1])),
(k[0][0] === r &&
k[0][1] === a &&
k[1][0] === h &&
k[1][1] === g) ||
((C.selection = [
[r, a],
[h, g],
]),
c.call(_),
R.brush());
}
function H() {
if ((ir(), dt.touches)) {
if (dt.touches.length) return;
t && clearTimeout(t),
(t = setTimeout(function () {
t = null;
}, 500));
} else
Dt(dt.view, f),
B.on(
'keydown.brush keyup.brush mousemove.brush mouseup.brush',
null
);
P.attr('pointer-events', 'all'),
F.attr('cursor', fr.overlay),
C.selection && (k = C.selection),
kr(k) && ((C.selection = null), c.call(_)),
R.end();
}
function j() {
switch (dt.keyCode) {
case 16:
T = y && w;
break;
case 18:
v === or &&
(y && ((l = h - N * y), (i = r + N * y)),
w && ((u = g - E * w), (o = a + E * w)),
(v = ar),
Y());
break;
case 32:
(v !== or && v !== ar) ||
(y < 0 ? (l = h - N) : y > 0 && (i = r - N),
w < 0 ? (u = g - E) : w > 0 && (o = a - E),
(v = sr),
F.attr('cursor', fr.selection),
Y());
break;
default:
return;
}
nr();
}
function V() {
switch (dt.keyCode) {
case 16:
T && ((p = m = T = !1), Y());
break;
case 18:
v === ar &&
(y < 0 ? (l = h) : y > 0 && (i = r),
w < 0 ? (u = g) : w > 0 && (o = a),
(v = or),
Y());
break;
case 32:
v === sr &&
(dt.altKey
? (y && ((l = h - N * y), (i = r + N * y)),
w && ((u = g - E * w), (o = a + E * w)),
(v = ar))
: (y < 0 ? (l = h) : y > 0 && (i = r),
w < 0 ? (u = g) : w > 0 && (o = a),
(v = or)),
F.attr('cursor', fr[b]),
Y());
break;
default:
return;
}
nr();
}
}
function g() {
d(this, arguments).moved();
}
function f() {
d(this, arguments).ended();
}
function p() {
var t = this.__brush || { selection: null };
return (t.extent = cr(i.apply(this, arguments))), (t.dim = e), t;
}
return (
(l.move = function (t, i) {
t.selection
? t
.on('start.brush', function () {
d(this, arguments).beforestart().start();
})
.on('interrupt.brush end.brush', function () {
d(this, arguments).end();
})
.tween('brush', function () {
var t = this,
n = t.__brush,
r = d(t, arguments),
s = n.selection,
o = e.input(
'function' == typeof i ? i.apply(this, arguments) : i,
n.extent
),
a = Di(s, o);
function l(e) {
(n.selection = 1 === e && null === o ? null : a(e)),
c.call(t),
r.brush();
}
return null !== s && null !== o ? l : l(1);
})
: t.each(function () {
var t = this,
n = arguments,
r = t.__brush,
s = e.input(
'function' == typeof i ? i.apply(t, n) : i,
r.extent
),
o = d(t, n).beforestart();
sn(t),
(r.selection = null === s ? null : s),
c.call(t),
o.start().brush().end();
});
}),
(l.clear = function (e) {
l.move(e, null);
}),
(h.prototype = {
beforestart: function () {
return (
1 == ++this.active &&
((this.state.emitter = this), (this.starting = !0)),
this
);
},
start: function () {
return (
this.starting
? ((this.starting = !1), this.emit('start'))
: this.emit('brush'),
this
);
},
brush: function () {
return this.emit('brush'), this;
},
end: function () {
return (
0 == --this.active &&
(delete this.state.emitter, this.emit('end')),
this
);
},
emit: function (t) {
mt(new tr(l, t, e.output(this.state.selection)), o.apply, o, [
t,
this.that,
this.args,
]);
},
}),
(l.extent = function (e) {
return arguments.length
? ((i = 'function' == typeof e ? e : er(cr(e))), l)
: i;
}),
(l.filter = function (e) {
return arguments.length
? ((n = 'function' == typeof e ? e : er(!!e)), l)
: n;
}),
(l.touchable = function (e) {
return arguments.length
? ((r = 'function' == typeof e ? e : er(!!e)), l)
: r;
}),
(l.handleSize = function (e) {
return arguments.length ? ((a = +e), l) : a;
}),
(l.keyModifiers = function (e) {
return arguments.length ? ((s = !!e), l) : s;
}),
(l.on = function () {
var e = o.on.apply(o, arguments);
return e === o ? l : e;
}),
l
);
}
var Er = Math.cos,
Tr = Math.sin,
Ir = Math.PI,
Or = Ir / 2,
Ar = 2 * Ir,
Rr = Math.max;
function Pr(e) {
return function (t, i) {
return e(
t.source.value + t.target.value,
i.source.value + i.target.value
);
};
}
function Fr() {
var e = 0,
t = null,
i = null,
n = null;
function r(r) {
var s,
o,
a,
l,
c,
d,
h = r.length,
u = [],
g = S(h),
f = [],
p = [],
m = (p.groups = new Array(h)),
_ = new Array(h * h);
for (s = 0, c = -1; ++c < h; ) {
for (o = 0, d = -1; ++d < h; ) o += r[c][d];
u.push(o), f.push(S(h)), (s += o);
}
for (
t &&
g.sort(function (e, i) {
return t(u[e], u[i]);
}),
i &&
f.forEach(function (e, t) {
e.sort(function (e, n) {
return i(r[t][e], r[t][n]);
});
}),
l = (s = Rr(0, Ar - e * h) / s) ? e : Ar / h,
o = 0,
c = -1;
++c < h;
) {
for (a = o, d = -1; ++d < h; ) {
var b = g[c],
v = f[b][d],
y = r[b][v],
w = o,
C = (o += y * s);
_[v * h + b] = {
index: b,
subindex: v,
startAngle: w,
endAngle: C,
value: y,
};
}
(m[b] = { index: b, startAngle: a, endAngle: o, value: u[b] }),
(o += l);
}
for (c = -1; ++c < h; )
for (d = c - 1; ++d < h; ) {
var k = _[d * h + c],
x = _[c * h + d];
(k.value || x.value) &&
p.push(
k.value < x.value
? { source: x, target: k }
: { source: k, target: x }
);
}
return n ? p.sort(n) : p;
}
return (
(r.padAngle = function (t) {
return arguments.length ? ((e = Rr(0, t)), r) : e;
}),
(r.sortGroups = function (e) {
return arguments.length ? ((t = e), r) : t;
}),
(r.sortSubgroups = function (e) {
return arguments.length ? ((i = e), r) : i;
}),
(r.sortChords = function (e) {
return arguments.length
? (null == e ? (n = null) : ((n = Pr(e))._ = e), r)
: n && n._;
}),
r
);
}
var Br = Array.prototype.slice;
function Wr(e) {
return function () {
return e;
};
}
var Yr = Math.PI,
Hr = 2 * Yr,
jr = 1e-6,
Vr = Hr - jr;
function zr() {
(this._x0 = this._y0 = this._x1 = this._y1 = null), (this._ = '');
}
function Ur() {
return new zr();
}
zr.prototype = Ur.prototype = {
constructor: zr,
moveTo: function (e, t) {
this._ +=
'M' +
(this._x0 = this._x1 = +e) +
',' +
(this._y0 = this._y1 = +t);
},
closePath: function () {
null !== this._x1 &&
((this._x1 = this._x0), (this._y1 = this._y0), (this._ += 'Z'));
},
lineTo: function (e, t) {
this._ += 'L' + (this._x1 = +e) + ',' + (this._y1 = +t);
},
quadraticCurveTo: function (e, t, i, n) {
this._ +=
'Q' +
+e +
',' +
+t +
',' +
(this._x1 = +i) +
',' +
(this._y1 = +n);
},
bezierCurveTo: function (e, t, i, n, r, s) {
this._ +=
'C' +
+e +
',' +
+t +
',' +
+i +
',' +
+n +
',' +
(this._x1 = +r) +
',' +
(this._y1 = +s);
},
arcTo: function (e, t, i, n, r) {
(e = +e), (t = +t), (i = +i), (n = +n), (r = +r);
var s = this._x1,
o = this._y1,
a = i - e,
l = n - t,
c = s - e,
d = o - t,
h = c * c + d * d;
if (r < 0) throw new Error('negative radius: ' + r);
if (null === this._x1)
this._ += 'M' + (this._x1 = e) + ',' + (this._y1 = t);
else if (h > jr)
if (Math.abs(d * a - l * c) > jr && r) {
var u = i - s,
g = n - o,
f = a * a + l * l,
p = u * u + g * g,
m = Math.sqrt(f),
_ = Math.sqrt(h),
b =
r *
Math.tan((Yr - Math.acos((f + h - p) / (2 * m * _))) / 2),
v = b / _,
y = b / m;
Math.abs(v - 1) > jr &&
(this._ += 'L' + (e + v * c) + ',' + (t + v * d)),
(this._ +=
'A' +
r +
',' +
r +
',0,0,' +
+(d * u > c * g) +
',' +
(this._x1 = e + y * a) +
',' +
(this._y1 = t + y * l));
} else this._ += 'L' + (this._x1 = e) + ',' + (this._y1 = t);
},
arc: function (e, t, i, n, r, s) {
(e = +e), (t = +t), (s = !!s);
var o = (i = +i) * Math.cos(n),
a = i * Math.sin(n),
l = e + o,
c = t + a,
d = 1 ^ s,
h = s ? n - r : r - n;
if (i < 0) throw new Error('negative radius: ' + i);
null === this._x1
? (this._ += 'M' + l + ',' + c)
: (Math.abs(this._x1 - l) > jr || Math.abs(this._y1 - c) > jr) &&
(this._ += 'L' + l + ',' + c),
i &&
(h < 0 && (h = (h % Hr) + Hr),
h > Vr
? (this._ +=
'A' +
i +
',' +
i +
',0,1,' +
d +
',' +
(e - o) +
',' +
(t - a) +
'A' +
i +
',' +
i +
',0,1,' +
d +
',' +
(this._x1 = l) +
',' +
(this._y1 = c))
: h > jr &&
(this._ +=
'A' +
i +
',' +
i +
',0,' +
+(h >= Yr) +
',' +
d +
',' +
(this._x1 = e + i * Math.cos(r)) +
',' +
(this._y1 = t + i * Math.sin(r))));
},
rect: function (e, t, i, n) {
this._ +=
'M' +
(this._x0 = this._x1 = +e) +
',' +
(this._y0 = this._y1 = +t) +
'h' +
+i +
'v' +
+n +
'h' +
-i +
'Z';
},
toString: function () {
return this._;
},
};
const $r = Ur;
function Kr(e) {
return e.source;
}
function qr(e) {
return e.target;
}
function Gr(e) {
return e.radius;
}
function Zr(e) {
return e.startAngle;
}
function Jr(e) {
return e.endAngle;
}
function Qr() {
var e = Kr,
t = qr,
i = Gr,
n = Zr,
r = Jr,
s = null;
function o() {
var o,
a = Br.call(arguments),
l = e.apply(this, a),
c = t.apply(this, a),
d = +i.apply(this, ((a[0] = l), a)),
h = n.apply(this, a) - Or,
u = r.apply(this, a) - Or,
g = d * Er(h),
f = d * Tr(h),
p = +i.apply(this, ((a[0] = c), a)),
m = n.apply(this, a) - Or,
_ = r.apply(this, a) - Or;
if (
(s || (s = o = $r()),
s.moveTo(g, f),
s.arc(0, 0, d, h, u),
(h === m && u === _) ||
(s.quadraticCurveTo(0, 0, p * Er(m), p * Tr(m)),
s.arc(0, 0, p, m, _)),
s.quadraticCurveTo(0, 0, g, f),
s.closePath(),
o)
)
return (s = null), o + '' || null;
}
return (
(o.radius = function (e) {
return arguments.length
? ((i = 'function' == typeof e ? e : Wr(+e)), o)
: i;
}),
(o.startAngle = function (e) {
return arguments.length
? ((n = 'function' == typeof e ? e : Wr(+e)), o)
: n;
}),
(o.endAngle = function (e) {
return arguments.length
? ((r = 'function' == typeof e ? e : Wr(+e)), o)
: r;
}),
(o.source = function (t) {
return arguments.length ? ((e = t), o) : e;
}),
(o.target = function (e) {
return arguments.length ? ((t = e), o) : t;
}),
(o.context = function (e) {
return arguments.length ? ((s = null == e ? null : e), o) : s;
}),
o
);
}
var Xr = '$';
function es() {}
function ts(e, t) {
var i = new es();
if (e instanceof es)
e.each(function (e, t) {
i.set(t, e);
});
else if (Array.isArray(e)) {
var n,
r = -1,
s = e.length;
if (null == t) for (; ++r < s; ) i.set(r, e[r]);
else for (; ++r < s; ) i.set(t((n = e[r]), r, e), n);
} else if (e) for (var o in e) i.set(o, e[o]);
return i;
}
es.prototype = ts.prototype = {
constructor: es,
has: function (e) {
return Xr + e in this;
},
get: function (e) {
return this[Xr + e];
},
set: function (e, t) {
return (this[Xr + e] = t), this;
},
remove: function (e) {
var t = Xr + e;
return t in this && delete this[t];
},
clear: function () {
for (var e in this) e[0] === Xr && delete this[e];
},
keys: function () {
var e = [];
for (var t in this) t[0] === Xr && e.push(t.slice(1));
return e;
},
values: function () {
var e = [];
for (var t in this) t[0] === Xr && e.push(this[t]);
return e;
},
entries: function () {
var e = [];
for (var t in this)
t[0] === Xr && e.push({ key: t.slice(1), value: this[t] });
return e;
},
size: function () {
var e = 0;
for (var t in this) t[0] === Xr && ++e;
return e;
},
empty: function () {
for (var e in this) if (e[0] === Xr) return !1;
return !0;
},
each: function (e) {
for (var t in this) t[0] === Xr && e(this[t], t.slice(1), this);
},
};
const is = ts;
function ns() {
var e,
t,
i,
n = [],
r = [];
function s(i, r, o, a) {
if (r >= n.length)
return null != e && i.sort(e), null != t ? t(i) : i;
for (
var l, c, d, h = -1, u = i.length, g = n[r++], f = is(), p = o();
++h < u;
)
(d = f.get((l = g((c = i[h])) + ''))) ? d.push(c) : f.set(l, [c]);
return (
f.each(function (e, t) {
a(p, t, s(e, r, o, a));
}),
p
);
}
function o(e, i) {
if (++i > n.length) return e;
var s,
a = r[i - 1];
return (
null != t && i >= n.length
? (s = e.entries())
: ((s = []),
e.each(function (e, t) {
s.push({ key: t, values: o(e, i) });
})),
null != a
? s.sort(function (e, t) {
return a(e.key, t.key);
})
: s
);
}
return (i = {
object: function (e) {
return s(e, 0, rs, ss);
},
map: function (e) {
return s(e, 0, os, as);
},
entries: function (e) {
return o(s(e, 0, os, as), 0);
},
key: function (e) {
return n.push(e), i;
},
sortKeys: function (e) {
return (r[n.length - 1] = e), i;
},
sortValues: function (t) {
return (e = t), i;
},
rollup: function (e) {
return (t = e), i;
},
});
}
function rs() {
return {};
}
function ss(e, t, i) {
e[t] = i;
}
function os() {
return is();
}
function as(e, t, i) {
e.set(t, i);
}
function ls() {}
var cs = is.prototype;
function ds(e, t) {
var i = new ls();
if (e instanceof ls)
e.each(function (e) {
i.add(e);
});
else if (e) {
var n = -1,
r = e.length;
if (null == t) for (; ++n < r; ) i.add(e[n]);
else for (; ++n < r; ) i.add(t(e[n], n, e));
}
return i;
}
ls.prototype = ds.prototype = {
constructor: ls,
has: cs.has,
add: function (e) {
return (this[Xr + (e += '')] = e), this;
},
remove: cs.remove,
clear: cs.clear,
values: cs.keys,
size: cs.size,
empty: cs.empty,
each: cs.each,
};
const hs = ds;
function us(e) {
var t = [];
for (var i in e) t.push(i);
return t;
}
function gs(e) {
var t = [];
for (var i in e) t.push(e[i]);
return t;
}
function fs(e) {
var t = [];
for (var i in e) t.push({ key: i, value: e[i] });
return t;
}
var ps = Math.PI / 180,
ms = 180 / Math.PI,
_s = 0.96422,
bs = 0.82521,
vs = 4 / 29,
ys = 6 / 29,
ws = 3 * ys * ys;
function Cs(e) {
if (e instanceof xs) return new xs(e.l, e.a, e.b, e.opacity);
if (e instanceof Os) return As(e);
e instanceof Qt || (e = Zt(e));
var t,
i,
n = Ns(e.r),
r = Ns(e.g),
s = Ns(e.b),
o = Ls((0.2225045 * n + 0.7168786 * r + 0.0606169 * s) / 1);
return (
n === r && r === s
? (t = i = o)
: ((t = Ls((0.4360747 * n + 0.3850649 * r + 0.1430804 * s) / _s)),
(i = Ls((0.0139322 * n + 0.0971045 * r + 0.7141733 * s) / bs))),
new xs(116 * o - 16, 500 * (t - o), 200 * (o - i), e.opacity)
);
}
function Ss(e, t) {
return new xs(e, 0, 0, null == t ? 1 : t);
}
function ks(e, t, i, n) {
return 1 === arguments.length
? Cs(e)
: new xs(e, t, i, null == n ? 1 : n);
}
function xs(e, t, i, n) {
(this.l = +e), (this.a = +t), (this.b = +i), (this.opacity = +n);
}
function Ls(e) {
return e > 0.008856451679035631 ? Math.pow(e, 1 / 3) : e / ws + vs;
}
function Ms(e) {
return e > ys ? e * e * e : ws * (e - vs);
}
function Ds(e) {
return (
255 *
(e <= 0.0031308 ? 12.92 * e : 1.055 * Math.pow(e, 1 / 2.4) - 0.055)
);
}
function Ns(e) {
return (e /= 255) <= 0.04045
? e / 12.92
: Math.pow((e + 0.055) / 1.055, 2.4);
}
function Es(e) {
if (e instanceof Os) return new Os(e.h, e.c, e.l, e.opacity);
if ((e instanceof xs || (e = Cs(e)), 0 === e.a && 0 === e.b))
return new Os(NaN, 0 < e.l && e.l < 100 ? 0 : NaN, e.l, e.opacity);
var t = Math.atan2(e.b, e.a) * ms;
return new Os(
t < 0 ? t + 360 : t,
Math.sqrt(e.a * e.a + e.b * e.b),
e.l,
e.opacity
);
}
function Ts(e, t, i, n) {
return 1 === arguments.length
? Es(e)
: new Os(i, t, e, null == n ? 1 : n);
}
function Is(e, t, i, n) {
return 1 === arguments.length
? Es(e)
: new Os(e, t, i, null == n ? 1 : n);
}
function Os(e, t, i, n) {
(this.h = +e), (this.c = +t), (this.l = +i), (this.opacity = +n);
}
function As(e) {
if (isNaN(e.h)) return new xs(e.l, 0, 0, e.opacity);
var t = e.h * ps;
return new xs(e.l, Math.cos(t) * e.c, Math.sin(t) * e.c, e.opacity);
}
Nt(
xs,
ks,
Et(Tt, {
brighter: function (e) {
return new xs(
this.l + 18 * (null == e ? 1 : e),
this.a,
this.b,
this.opacity
);
},
darker: function (e) {
return new xs(
this.l - 18 * (null == e ? 1 : e),
this.a,
this.b,
this.opacity
);
},
rgb: function () {
var e = (this.l + 16) / 116,
t = isNaN(this.a) ? e : e + this.a / 500,
i = isNaN(this.b) ? e : e - this.b / 200;
return new Qt(
Ds(
3.1338561 * (t = _s * Ms(t)) -
1.6168667 * (e = 1 * Ms(e)) -
0.4906146 * (i = bs * Ms(i))
),
Ds(-0.9787684 * t + 1.9161415 * e + 0.033454 * i),
Ds(0.0719453 * t - 0.2289914 * e + 1.4052427 * i),
this.opacity
);
},
})
),
Nt(
Os,
Is,
Et(Tt, {
brighter: function (e) {
return new Os(
this.h,
this.c,
this.l + 18 * (null == e ? 1 : e),
this.opacity
);
},
darker: function (e) {
return new Os(
this.h,
this.c,
this.l - 18 * (null == e ? 1 : e),
this.opacity
);
},
rgb: function () {
return As(this).rgb();
},
})
);
var Rs = -0.14861,
Ps = 1.78277,
Fs = -0.29227,
Bs = -0.90649,
Ws = 1.97294,
Ys = Ws * Bs,
Hs = Ws * Ps,
js = Ps * Fs - Bs * Rs;
function Vs(e) {
if (e instanceof Us) return new Us(e.h, e.s, e.l, e.opacity);
e instanceof Qt || (e = Zt(e));
var t = e.r / 255,
i = e.g / 255,
n = e.b / 255,
r = (js * n + Ys * t - Hs * i) / (js + Ys - Hs),
s = n - r,
o = (Ws * (i - r) - Fs * s) / Bs,
a = Math.sqrt(o * o + s * s) / (Ws * r * (1 - r)),
l = a ? Math.atan2(o, s) * ms - 120 : NaN;
return new Us(l < 0 ? l + 360 : l, a, r, e.opacity);
}
function zs(e, t, i, n) {
return 1 === arguments.length
? Vs(e)
: new Us(e, t, i, null == n ? 1 : n);
}
function Us(e, t, i, n) {
(this.h = +e), (this.s = +t), (this.l = +i), (this.opacity = +n);
}
Nt(
Us,
zs,
Et(Tt, {
brighter: function (e) {
return (
(e = null == e ? Ot : Math.pow(Ot, e)),
new Us(this.h, this.s, this.l * e, this.opacity)
);
},
darker: function (e) {
return (
(e = null == e ? It : Math.pow(It, e)),
new Us(this.h, this.s, this.l * e, this.opacity)
);
},
rgb: function () {
var e = isNaN(this.h) ? 0 : (this.h + 120) * ps,
t = +this.l,
i = isNaN(this.s) ? 0 : this.s * t * (1 - t),
n = Math.cos(e),
r = Math.sin(e);
return new Qt(
255 * (t + i * (Rs * n + Ps * r)),
255 * (t + i * (Fs * n + Bs * r)),
255 * (t + i * (Ws * n)),
this.opacity
);
},
})
);
var $s = Array.prototype.slice;
function Ks(e, t) {
return e - t;
}
function qs(e) {
return function () {
return e;
};
}
function Gs(e, t) {
for (var i, n = -1, r = t.length; ++n < r; )
if ((i = Zs(e, t[n]))) return i;
return 0;
}
function Zs(e, t) {
for (
var i = t[0], n = t[1], r = -1, s = 0, o = e.length, a = o - 1;
s < o;
a = s++
) {
var l = e[s],
c = l[0],
d = l[1],
h = e[a],
u = h[0],
g = h[1];
if (Js(l, h, t)) return 0;
d > n != g > n && i < ((u - c) * (n - d)) / (g - d) + c && (r = -r);
}
return r;
}
function Js(e, t, i) {
var n, r, s, o;
return (
(function (e, t, i) {
return (
(t[0] - e[0]) * (i[1] - e[1]) == (i[0] - e[0]) * (t[1] - e[1])
);
})(e, t, i) &&
((r = e[(n = +(e[0] === t[0]))]),
(s = i[n]),
(o = t[n]),
(r <= s && s <= o) || (o <= s && s <= r))
);
}
function Qs() {}
var Xs = [
[],
[
[
[1, 1.5],
[0.5, 1],
],
],
[
[
[1.5, 1],
[1, 1.5],
],
],
[
[
[1.5, 1],
[0.5, 1],
],
],
[
[
[1, 0.5],
[1.5, 1],
],
],
[
[
[1, 1.5],
[0.5, 1],
],
[
[1, 0.5],
[1.5, 1],
],
],
[
[
[1, 0.5],
[1, 1.5],
],
],
[
[
[1, 0.5],
[0.5, 1],
],
],
[
[
[0.5, 1],
[1, 0.5],
],
],
[
[
[1, 1.5],
[1, 0.5],
],
],
[
[
[0.5, 1],
[1, 0.5],
],
[
[1.5, 1],
[1, 1.5],
],
],
[
[
[1.5, 1],
[1, 0.5],
],
],
[
[
[0.5, 1],
[1.5, 1],
],
],
[
[
[1, 1.5],
[1.5, 1],
],
],
[
[
[0.5, 1],
[1, 1.5],
],
],
[],
];
function eo() {
var e = 1,
t = 1,
i = E,
n = a;
function r(e) {
var t = i(e);
if (Array.isArray(t)) t = t.slice().sort(Ks);
else {
var n = _(e),
r = n[0],
o = n[1];
(t = N(r, o, t)),
(t = S(Math.floor(r / t) * t, Math.floor(o / t) * t, t));
}
return t.map(function (t) {
return s(e, t);
});
}
function s(i, r) {
var s = [],
a = [];
return (
(function (i, n, r) {
var s,
a,
l,
c,
d,
h,
u = new Array(),
g = new Array();
for (
s = a = -1, c = i[0] >= n, Xs[c << 1].forEach(f);
++s < e - 1;
)
(l = c), (c = i[s + 1] >= n), Xs[l | (c << 1)].forEach(f);
for (Xs[c << 0].forEach(f); ++a < t - 1; ) {
for (
s = -1,
c = i[a * e + e] >= n,
d = i[a * e] >= n,
Xs[(c << 1) | (d << 2)].forEach(f);
++s < e - 1;
)
(l = c),
(c = i[a * e + e + s + 1] >= n),
(h = d),
(d = i[a * e + s + 1] >= n),
Xs[l | (c << 1) | (d << 2) | (h << 3)].forEach(f);
Xs[c | (d << 3)].forEach(f);
}
for (
s = -1, d = i[a * e] >= n, Xs[d << 2].forEach(f);
++s < e - 1;
)
(h = d),
(d = i[a * e + s + 1] >= n),
Xs[(d << 2) | (h << 3)].forEach(f);
function f(e) {
var t,
i,
n = [e[0][0] + s, e[0][1] + a],
l = [e[1][0] + s, e[1][1] + a],
c = o(n),
d = o(l);
(t = g[c])
? (i = u[d])
? (delete g[t.end],
delete u[i.start],
t === i
? (t.ring.push(l), r(t.ring))
: (u[t.start] = g[i.end] = {
start: t.start,
end: i.end,
ring: t.ring.concat(i.ring),
}))
: (delete g[t.end], t.ring.push(l), (g[(t.end = d)] = t))
: (t = u[d])
? (i = g[c])
? (delete u[t.start],
delete g[i.end],
t === i
? (t.ring.push(l), r(t.ring))
: (u[i.start] = g[t.end] = {
start: i.start,
end: t.end,
ring: i.ring.concat(t.ring),
}))
: (delete u[t.start],
t.ring.unshift(n),
(u[(t.start = c)] = t))
: (u[c] = g[d] = { start: c, end: d, ring: [n, l] });
}
Xs[d << 3].forEach(f);
})(i, r, function (e) {
n(e, i, r),
(function (e) {
for (
var t = 0,
i = e.length,
n = e[i - 1][1] * e[0][0] - e[i - 1][0] * e[0][1];
++t < i;
)
n += e[t - 1][1] * e[t][0] - e[t - 1][0] * e[t][1];
return n;
})(e) > 0
? s.push([e])
: a.push(e);
}),
a.forEach(function (e) {
for (var t, i = 0, n = s.length; i < n; ++i)
if (-1 !== Gs((t = s[i])[0], e)) return void t.push(e);
}),
{ type: 'MultiPolygon', value: r, coordinates: s }
);
}
function o(t) {
return 2 * t[0] + t[1] * (e + 1) * 4;
}
function a(i, n, r) {
i.forEach(function (i) {
var s,
o = i[0],
a = i[1],
l = 0 | o,
c = 0 | a,
d = n[c * e + l];
o > 0 &&
o < e &&
l === o &&
((s = n[c * e + l - 1]), (i[0] = o + (r - s) / (d - s) - 0.5)),
a > 0 &&
a < t &&
c === a &&
((s = n[(c - 1) * e + l]),
(i[1] = a + (r - s) / (d - s) - 0.5));
});
}
return (
(r.contour = s),
(r.size = function (i) {
if (!arguments.length) return [e, t];
var n = Math.ceil(i[0]),
s = Math.ceil(i[1]);
if (!(n > 0 && s > 0)) throw new Error('invalid size');
return (e = n), (t = s), r;
}),
(r.thresholds = function (e) {
return arguments.length
? ((i =
'function' == typeof e
? e
: Array.isArray(e)
? qs($s.call(e))
: qs(e)),
r)
: i;
}),
(r.smooth = function (e) {
return arguments.length ? ((n = e ? a : Qs), r) : n === a;
}),
r
);
}
function to(e, t, i) {
for (
var n = e.width, r = e.height, s = 1 + (i << 1), o = 0;
o < r;
++o
)
for (var a = 0, l = 0; a < n + i; ++a)
a < n && (l += e.data[a + o * n]),
a >= i &&
(a >= s && (l -= e.data[a - s + o * n]),
(t.data[a - i + o * n] =
l / Math.min(a + 1, n - 1 + s - a, s)));
}
function io(e, t, i) {
for (
var n = e.width, r = e.height, s = 1 + (i << 1), o = 0;
o < n;
++o
)
for (var a = 0, l = 0; a < r + i; ++a)
a < r && (l += e.data[o + a * n]),
a >= i &&
(a >= s && (l -= e.data[o + (a - s) * n]),
(t.data[o + (a - i) * n] =
l / Math.min(a + 1, r - 1 + s - a, s)));
}
function no(e) {
return e[0];
}
function ro(e) {
return e[1];
}
function so() {
return 1;
}
function oo() {
var e = no,
t = ro,
i = so,
n = 960,
r = 500,
s = 20,
o = 2,
a = 3 * s,
l = (n + 2 * a) >> o,
c = (r + 2 * a) >> o,
d = qs(20);
function h(n) {
var r = new Float32Array(l * c),
h = new Float32Array(l * c);
n.forEach(function (n, s, d) {
var h = (+e(n, s, d) + a) >> o,
u = (+t(n, s, d) + a) >> o,
g = +i(n, s, d);
h >= 0 && h < l && u >= 0 && u < c && (r[h + u * l] += g);
}),
to(
{ width: l, height: c, data: r },
{ width: l, height: c, data: h },
s >> o
),
io(
{ width: l, height: c, data: h },
{ width: l, height: c, data: r },
s >> o
),
to(
{ width: l, height: c, data: r },
{ width: l, height: c, data: h },
s >> o
),
io(
{ width: l, height: c, data: h },
{ width: l, height: c, data: r },
s >> o
),
to(
{ width: l, height: c, data: r },
{ width: l, height: c, data: h },
s >> o
),
io(
{ width: l, height: c, data: h },
{ width: l, height: c, data: r },
s >> o
);
var g = d(r);
if (!Array.isArray(g)) {
var f = R(r);
(g = N(0, f, g)), (g = S(0, Math.floor(f / g) * g, g)).shift();
}
return eo().thresholds(g).size([l, c])(r).map(u);
}
function u(e) {
return (
(e.value *= Math.pow(2, -2 * o)), e.coordinates.forEach(g), e
);
}
function g(e) {
e.forEach(f);
}
function f(e) {
e.forEach(p);
}
function p(e) {
(e[0] = e[0] * Math.pow(2, o) - a),
(e[1] = e[1] * Math.pow(2, o) - a);
}
function m() {
return (l = (n + 2 * (a = 3 * s)) >> o), (c = (r + 2 * a) >> o), h;
}
return (
(h.x = function (t) {
return arguments.length
? ((e = 'function' == typeof t ? t : qs(+t)), h)
: e;
}),
(h.y = function (e) {
return arguments.length
? ((t = 'function' == typeof e ? e : qs(+e)), h)
: t;
}),
(h.weight = function (e) {
return arguments.length
? ((i = 'function' == typeof e ? e : qs(+e)), h)
: i;
}),
(h.size = function (e) {
if (!arguments.length) return [n, r];
var t = Math.ceil(e[0]),
i = Math.ceil(e[1]);
if (!(t >= 0 || t >= 0)) throw new Error('invalid size');
return (n = t), (r = i), m();
}),
(h.cellSize = function (e) {
if (!arguments.length) return 1 << o;
if (!((e = +e) >= 1)) throw new Error('invalid cell size');
return (o = Math.floor(Math.log(e) / Math.LN2)), m();
}),
(h.thresholds = function (e) {
return arguments.length
? ((d =
'function' == typeof e
? e
: Array.isArray(e)
? qs($s.call(e))
: qs(e)),
h)
: d;
}),
(h.bandwidth = function (e) {
if (!arguments.length) return Math.sqrt(s * (s + 1));
if (!((e = +e) >= 0)) throw new Error('invalid bandwidth');
return (s = Math.round((Math.sqrt(4 * e * e + 1) - 1) / 2)), m();
}),
h
);
}
function ao(e) {
return function () {
return e;
};
}
function lo(e, t, i, n, r, s, o, a, l, c) {
(this.target = e),
(this.type = t),
(this.subject = i),
(this.identifier = n),
(this.active = r),
(this.x = s),
(this.y = o),
(this.dx = a),
(this.dy = l),
(this._ = c);
}
function co() {
return !dt.ctrlKey && !dt.button;
}
function ho() {
return this.parentNode;
}
function uo(e) {
return null == e ? { x: dt.x, y: dt.y } : e;
}
function go() {
return navigator.maxTouchPoints || 'ontouchstart' in this;
}
function fo() {
var e,
t,
i,
n,
r = co,
s = ho,
o = uo,
a = go,
l = {},
c = ue('start', 'drag', 'end'),
d = 0,
h = 0;
function u(e) {
e.on('mousedown.drag', g)
.filter(a)
.on('touchstart.drag', m)
.on('touchmove.drag', _)
.on('touchend.drag touchcancel.drag', b)
.style('touch-action', 'none')
.style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)');
}
function g() {
if (!n && r.apply(this, arguments)) {
var o = v('mouse', s.apply(this, arguments), Ii, this, arguments);
o &&
(kt(dt.view)
.on('mousemove.drag', f, !0)
.on('mouseup.drag', p, !0),
Mt(dt.view),
xt(),
(i = !1),
(e = dt.clientX),
(t = dt.clientY),
o('start'));
}
}
function f() {
if ((Lt(), !i)) {
var n = dt.clientX - e,
r = dt.clientY - t;
i = n * n + r * r > h;
}
l.mouse('drag');
}
function p() {
kt(dt.view).on('mousemove.drag mouseup.drag', null),
Dt(dt.view, i),
Lt(),
l.mouse('end');
}
function m() {
if (r.apply(this, arguments)) {
var e,
t,
i = dt.changedTouches,
n = s.apply(this, arguments),
o = i.length;
for (e = 0; e < o; ++e)
(t = v(i[e].identifier, n, Ti, this, arguments)) &&
(xt(), t('start'));
}
}
function _() {
var e,
t,
i = dt.changedTouches,
n = i.length;
for (e = 0; e < n; ++e)
(t = l[i[e].identifier]) && (Lt(), t('drag'));
}
function b() {
var e,
t,
i = dt.changedTouches,
r = i.length;
for (
n && clearTimeout(n),
n = setTimeout(function () {
n = null;
}, 500),
e = 0;
e < r;
++e
)
(t = l[i[e].identifier]) && (xt(), t('end'));
}
function v(e, t, i, n, r) {
var s,
a,
h,
g = i(t, e),
f = c.copy();
if (
mt(
new lo(u, 'beforestart', s, e, d, g[0], g[1], 0, 0, f),
function () {
return (
null != (dt.subject = s = o.apply(n, r)) &&
((a = s.x - g[0] || 0), (h = s.y - g[1] || 0), !0)
);
}
)
)
return function o(c) {
var p,
m = g;
switch (c) {
case 'start':
(l[e] = o), (p = d++);
break;
case 'end':
delete l[e], --d;
case 'drag':
(g = i(t, e)), (p = d);
}
mt(
new lo(
u,
c,
s,
e,
p,
g[0] + a,
g[1] + h,
g[0] - m[0],
g[1] - m[1],
f
),
f.apply,
f,
[c, n, r]
);
};
}
return (
(u.filter = function (e) {
return arguments.length
? ((r = 'function' == typeof e ? e : ao(!!e)), u)
: r;
}),
(u.container = function (e) {
return arguments.length
? ((s = 'function' == typeof e ? e : ao(e)), u)
: s;
}),
(u.subject = function (e) {
return arguments.length
? ((o = 'function' == typeof e ? e : ao(e)), u)
: o;
}),
(u.touchable = function (e) {
return arguments.length
? ((a = 'function' == typeof e ? e : ao(!!e)), u)
: a;
}),
(u.on = function () {
var e = c.on.apply(c, arguments);
return e === c ? u : e;
}),
(u.clickDistance = function (e) {
return arguments.length ? ((h = (e = +e) * e), u) : Math.sqrt(h);
}),
u
);
}
lo.prototype.on = function () {
var e = this._.on.apply(this._, arguments);
return e === this._ ? this : e;
};
var po = {},
mo = {};
function _o(e) {
return new Function(
'd',
'return {' +
e
.map(function (e, t) {
return JSON.stringify(e) + ': d[' + t + '] || ""';
})
.join(',') +
'}'
);
}
function bo(e) {
var t = Object.create(null),
i = [];
return (
e.forEach(function (e) {
for (var n in e) n in t || i.push((t[n] = n));
}),
i
);
}
function vo(e, t) {
var i = e + '',
n = i.length;
return n < t ? new Array(t - n + 1).join(0) + i : i;
}
function yo(e) {
var t = new RegExp('["' + e + '\n\r]'),
i = e.charCodeAt(0);
function n(e, t) {
var n,
r = [],
s = e.length,
o = 0,
a = 0,
l = s <= 0,
c = !1;
function d() {
if (l) return mo;
if (c) return (c = !1), po;
var t,
n,
r = o;
if (34 === e.charCodeAt(r)) {
for (
;
(o++ < s && 34 !== e.charCodeAt(o)) ||
34 === e.charCodeAt(++o);
);
return (
(t = o) >= s
? (l = !0)
: 10 === (n = e.charCodeAt(o++))
? (c = !0)
: 13 === n && ((c = !0), 10 === e.charCodeAt(o) && ++o),
e.slice(r + 1, t - 1).replace(/""/g, '"')
);
}
for (; o < s; ) {
if (10 === (n = e.charCodeAt((t = o++)))) c = !0;
else if (13 === n) (c = !0), 10 === e.charCodeAt(o) && ++o;
else if (n !== i) continue;
return e.slice(r, t);
}
return (l = !0), e.slice(r, s);
}
for (
10 === e.charCodeAt(s - 1) && --s,
13 === e.charCodeAt(s - 1) && --s;
(n = d()) !== mo;
) {
for (var h = []; n !== po && n !== mo; ) h.push(n), (n = d());
(t && null == (h = t(h, a++))) || r.push(h);
}
return r;
}
function r(t, i) {
return t.map(function (t) {
return i
.map(function (e) {
return o(t[e]);
})
.join(e);
});
}
function s(t) {
return t.map(o).join(e);
}
function o(e) {
return null == e
? ''
: e instanceof Date
? (function (e) {
var t = e.getUTCHours(),
i = e.getUTCMinutes(),
n = e.getUTCSeconds(),
r = e.getUTCMilliseconds();
return isNaN(e)
? 'Invalid Date'
: (function (e) {
return e < 0
? '-' + vo(-e, 6)
: e > 9999
? '+' + vo(e, 6)
: vo(e, 4);
})(e.getUTCFullYear()) +
'-' +
vo(e.getUTCMonth() + 1, 2) +
'-' +
vo(e.getUTCDate(), 2) +
(r
? 'T' +
vo(t, 2) +
':' +
vo(i, 2) +
':' +
vo(n, 2) +
'.' +
vo(r, 3) +
'Z'
: n
? 'T' +
vo(t, 2) +
':' +
vo(i, 2) +
':' +
vo(n, 2) +
'Z'
: i || t
? 'T' + vo(t, 2) + ':' + vo(i, 2) + 'Z'
: '');
})(e)
: t.test((e += ''))
? '"' + e.replace(/"/g, '""') + '"'
: e;
}
return {
parse: function (e, t) {
var i,
r,
s = n(e, function (e, n) {
if (i) return i(e, n - 1);
(r = e),
(i = t
? (function (e, t) {
var i = _o(e);
return function (n, r) {
return t(i(n), r, e);
};
})(e, t)
: _o(e));
});
return (s.columns = r || []), s;
},
parseRows: n,
format: function (t, i) {
return (
null == i && (i = bo(t)),
[i.map(o).join(e)].concat(r(t, i)).join('\n')
);
},
formatBody: function (e, t) {
return null == t && (t = bo(e)), r(e, t).join('\n');
},
formatRows: function (e) {
return e.map(s).join('\n');
},
formatRow: s,
formatValue: o,
};
}
var wo = yo(','),
Co = wo.parse,
So = wo.parseRows,
ko = wo.format,
xo = wo.formatBody,
Lo = wo.formatRows,
Mo = wo.formatRow,
Do = wo.formatValue,
No = yo('\t'),
Eo = No.parse,
To = No.parseRows,
Io = No.format,
Oo = No.formatBody,
Ao = No.formatRows,
Ro = No.formatRow,
Po = No.formatValue;
function Fo(e) {
for (var t in e) {
var i,
n,
r = e[t].trim();
if (r)
if ('true' === r) r = !0;
else if ('false' === r) r = !1;
else if ('NaN' === r) r = NaN;
else if (isNaN((i = +r))) {
if (
!(n = r.match(
/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/
))
)
continue;
Bo &&
n[4] &&
!n[7] &&
(r = r.replace(/-/g, '/').replace(/T/, ' ')),
(r = new Date(r));
} else r = i;
else r = null;
e[t] = r;
}
return e;
}
var Bo =
new Date('2019-01-01T00:00').getHours() ||
new Date('2019-07-01T00:00').getHours();
function Wo(e) {
return +e;
}
function Yo(e) {
return e * e;
}
function Ho(e) {
return e * (2 - e);
}
function jo(e) {
return ((e *= 2) <= 1 ? e * e : --e * (2 - e) + 1) / 2;
}
var Vo = (function e(t) {
function i(e) {
return Math.pow(e, t);
}
return (t = +t), (i.exponent = e), i;
})(3),
zo = (function e(t) {
function i(e) {
return 1 - Math.pow(1 - e, t);
}
return (t = +t), (i.exponent = e), i;
})(3),
Uo = (function e(t) {
function i(e) {
return (
((e *= 2) <= 1 ? Math.pow(e, t) : 2 - Math.pow(2 - e, t)) / 2
);
}
return (t = +t), (i.exponent = e), i;
})(3),
$o = Math.PI,
Ko = $o / 2;
function qo(e) {
return 1 - Math.cos(e * Ko);
}
function Go(e) {
return Math.sin(e * Ko);
}
function Zo(e) {
return (1 - Math.cos($o * e)) / 2;
}
function Jo(e) {
return Math.pow(2, 10 * e - 10);
}
function Qo(e) {
return 1 - Math.pow(2, -10 * e);
}
function Xo(e) {
return (
((e *= 2) <= 1
? Math.pow(2, 10 * e - 10)
: 2 - Math.pow(2, 10 - 10 * e)) / 2
);
}
function ea(e) {
return 1 - Math.sqrt(1 - e * e);
}
function ta(e) {
return Math.sqrt(1 - --e * e);
}
function ia(e) {
return (
((e *= 2) <= 1
? 1 - Math.sqrt(1 - e * e)
: Math.sqrt(1 - (e -= 2) * e) + 1) / 2
);
}
var na = 7.5625;
function ra(e) {
return 1 - sa(1 - e);
}
function sa(e) {
return (e = +e) < 0.36363636363636365
? na * e * e
: e < 0.7272727272727273
? na * (e -= 0.5454545454545454) * e + 0.75
: e < 0.9090909090909091
? na * (e -= 0.8181818181818182) * e + 0.9375
: na * (e -= 0.9545454545454546) * e + 0.984375;
}
function oa(e) {
return ((e *= 2) <= 1 ? 1 - sa(1 - e) : sa(e - 1) + 1) / 2;
}
var aa = 1.70158,
la = (function e(t) {
function i(e) {
return e * e * ((t + 1) * e - t);
}
return (t = +t), (i.overshoot = e), i;
})(aa),
ca = (function e(t) {
function i(e) {
return --e * e * ((t + 1) * e + t) + 1;
}
return (t = +t), (i.overshoot = e), i;
})(aa),
da = (function e(t) {
function i(e) {
return (
((e *= 2) < 1
? e * e * ((t + 1) * e - t)
: (e -= 2) * e * ((t + 1) * e + t) + 2) / 2
);
}
return (t = +t), (i.overshoot = e), i;
})(aa),
ha = 2 * Math.PI,
ua = (function e(t, i) {
var n = Math.asin(1 / (t = Math.max(1, t))) * (i /= ha);
function r(e) {
return t * Math.pow(2, 10 * --e) * Math.sin((n - e) / i);
}
return (
(r.amplitude = function (t) {
return e(t, i * ha);
}),
(r.period = function (i) {
return e(t, i);
}),
r
);
})(1, 0.3),
ga = (function e(t, i) {
var n = Math.asin(1 / (t = Math.max(1, t))) * (i /= ha);
function r(e) {
return (
1 - t * Math.pow(2, -10 * (e = +e)) * Math.sin((e + n) / i)
);
}
return (
(r.amplitude = function (t) {
return e(t, i * ha);
}),
(r.period = function (i) {
return e(t, i);
}),
r
);
})(1, 0.3),
fa = (function e(t, i) {
var n = Math.asin(1 / (t = Math.max(1, t))) * (i /= ha);
function r(e) {
return (
((e = 2 * e - 1) < 0
? t * Math.pow(2, 10 * e) * Math.sin((n - e) / i)
: 2 - t * Math.pow(2, -10 * e) * Math.sin((n + e) / i)) / 2
);
}
return (
(r.amplitude = function (t) {
return e(t, i * ha);
}),
(r.period = function (i) {
return e(t, i);
}),
r
);
})(1, 0.3);
function pa(e) {
if (!e.ok) throw new Error(e.status + ' ' + e.statusText);
return e.blob();
}
function ma(e, t) {
return fetch(e, t).then(pa);
}
function _a(e) {
if (!e.ok) throw new Error(e.status + ' ' + e.statusText);
return e.arrayBuffer();
}
function ba(e, t) {
return fetch(e, t).then(_a);
}
function va(e) {
if (!e.ok) throw new Error(e.status + ' ' + e.statusText);
return e.text();
}
function ya(e, t) {
return fetch(e, t).then(va);
}
function wa(e) {
return function (t, i, n) {
return (
2 === arguments.length &&
'function' == typeof i &&
((n = i), (i = void 0)),
ya(t, i).then(function (t) {
return e(t, n);
})
);
};
}
function Ca(e, t, i, n) {
3 === arguments.length &&
'function' == typeof i &&
((n = i), (i = void 0));
var r = yo(e);
return ya(t, i).then(function (e) {
return r.parse(e, n);
});
}
var Sa = wa(Co),
ka = wa(Eo);
function xa(e, t) {
return new Promise(function (i, n) {
var r = new Image();
for (var s in t) r[s] = t[s];
(r.onerror = n),
(r.onload = function () {
i(r);
}),
(r.src = e);
});
}
function La(e) {
if (!e.ok) throw new Error(e.status + ' ' + e.statusText);
return e.json();
}
function Ma(e, t) {
return fetch(e, t).then(La);
}
function Da(e) {
return function (t, i) {
return ya(t, i).then(function (t) {
return new DOMParser().parseFromString(t, e);
});
};
}
const Na = Da('application/xml');
var Ea = Da('text/html'),
Ta = Da('image/svg+xml');
function Ia(e, t) {
var i;
function n() {
var n,
r,
s = i.length,
o = 0,
a = 0;
for (n = 0; n < s; ++n) (o += (r = i[n]).x), (a += r.y);
for (o = o / s - e, a = a / s - t, n = 0; n < s; ++n)
((r = i[n]).x -= o), (r.y -= a);
}
return (
null == e && (e = 0),
null == t && (t = 0),
(n.initialize = function (e) {
i = e;
}),
(n.x = function (t) {
return arguments.length ? ((e = +t), n) : e;
}),
(n.y = function (e) {
return arguments.length ? ((t = +e), n) : t;
}),
n
);
}
function Oa(e) {
return function () {
return e;
};
}
function Aa() {
return 1e-6 * (Math.random() - 0.5);
}
function Ra(e, t, i, n) {
if (isNaN(t) || isNaN(i)) return e;
var r,
s,
o,
a,
l,
c,
d,
h,
u,
g = e._root,
f = { data: n },
p = e._x0,
m = e._y0,
_ = e._x1,
b = e._y1;
if (!g) return (e._root = f), e;
for (; g.length; )
if (
((c = t >= (s = (p + _) / 2)) ? (p = s) : (_ = s),
(d = i >= (o = (m + b) / 2)) ? (m = o) : (b = o),
(r = g),
!(g = g[(h = (d << 1) | c)]))
)
return (r[h] = f), e;
if (
((a = +e._x.call(null, g.data)),
(l = +e._y.call(null, g.data)),
t === a && i === l)
)
return (f.next = g), r ? (r[h] = f) : (e._root = f), e;
do {
(r = r ? (r[h] = new Array(4)) : (e._root = new Array(4))),
(c = t >= (s = (p + _) / 2)) ? (p = s) : (_ = s),
(d = i >= (o = (m + b) / 2)) ? (m = o) : (b = o);
} while ((h = (d << 1) | c) == (u = ((l >= o) << 1) | (a >= s)));
return (r[u] = g), (r[h] = f), e;
}
function Pa(e, t, i, n, r) {
(this.node = e),
(this.x0 = t),
(this.y0 = i),
(this.x1 = n),
(this.y1 = r);
}
function Fa(e) {
return e[0];
}
function Ba(e) {
return e[1];
}
function Wa(e, t, i) {
var n = new Ya(
null == t ? Fa : t,
null == i ? Ba : i,
NaN,
NaN,
NaN,
NaN
);
return null == e ? n : n.addAll(e);
}
function Ya(e, t, i, n, r, s) {
(this._x = e),
(this._y = t),
(this._x0 = i),
(this._y0 = n),
(this._x1 = r),
(this._y1 = s),
(this._root = void 0);
}
function Ha(e) {
for (var t = { data: e.data }, i = t; (e = e.next); )
i = i.next = { data: e.data };
return t;
}
var ja = (Wa.prototype = Ya.prototype);
function Va(e) {
return e.x + e.vx;
}
function za(e) {
return e.y + e.vy;
}
function Ua(e) {
var t,
i,
n = 1,
r = 1;
function s() {
for (var e, s, a, l, c, d, h, u = t.length, g = 0; g < r; ++g)
for (s = Wa(t, Va, za).visitAfter(o), e = 0; e < u; ++e)
(a = t[e]),
(d = i[a.index]),
(h = d * d),
(l = a.x + a.vx),
(c = a.y + a.vy),
s.visit(f);
function f(e, t, i, r, s) {
var o = e.data,
u = e.r,
g = d + u;
if (!o) return t > l + g || r < l - g || i > c + g || s < c - g;
if (o.index > a.index) {
var f = l - o.x - o.vx,
p = c - o.y - o.vy,
m = f * f + p * p;
m < g * g &&
(0 === f && (m += (f = Aa()) * f),
0 === p && (m += (p = Aa()) * p),
(m = ((g - (m = Math.sqrt(m))) / m) * n),
(a.vx += (f *= m) * (g = (u *= u) / (h + u))),
(a.vy += (p *= m) * g),
(o.vx -= f * (g = 1 - g)),
(o.vy -= p * g));
}
}
}
function o(e) {
if (e.data) return (e.r = i[e.data.index]);
for (var t = (e.r = 0); t < 4; ++t)
e[t] && e[t].r > e.r && (e.r = e[t].r);
}
function a() {
if (t) {
var n,
r,
s = t.length;
for (i = new Array(s), n = 0; n < s; ++n)
(r = t[n]), (i[r.index] = +e(r, n, t));
}
}
return (
'function' != typeof e && (e = Oa(null == e ? 1 : +e)),
(s.initialize = function (e) {
(t = e), a();
}),
(s.iterations = function (e) {
return arguments.length ? ((r = +e), s) : r;
}),
(s.strength = function (e) {
return arguments.length ? ((n = +e), s) : n;
}),
(s.radius = function (t) {
return arguments.length
? ((e = 'function' == typeof t ? t : Oa(+t)), a(), s)
: e;
}),
s
);
}
function $a(e) {
return e.index;
}
function Ka(e, t) {
var i = e.get(t);
if (!i) throw new Error('missing: ' + t);
return i;
}
function qa(e) {
var t,
i,
n,
r,
s,
o = $a,
a = function (e) {
return 1 / Math.min(r[e.source.index], r[e.target.index]);
},
l = Oa(30),
c = 1;
function d(n) {
for (var r = 0, o = e.length; r < c; ++r)
for (var a, l, d, h, u, g, f, p = 0; p < o; ++p)
(l = (a = e[p]).source),
(h = (d = a.target).x + d.vx - l.x - l.vx || Aa()),
(u = d.y + d.vy - l.y - l.vy || Aa()),
(h *= g =
(((g = Math.sqrt(h * h + u * u)) - i[p]) / g) * n * t[p]),
(u *= g),
(d.vx -= h * (f = s[p])),
(d.vy -= u * f),
(l.vx += h * (f = 1 - f)),
(l.vy += u * f);
}
function h() {
if (n) {
var a,
l,
c = n.length,
d = e.length,
h = is(n, o);
for (a = 0, r = new Array(c); a < d; ++a)
((l = e[a]).index = a),
'object' != typeof l.source && (l.source = Ka(h, l.source)),
'object' != typeof l.target && (l.target = Ka(h, l.target)),
(r[l.source.index] = (r[l.source.index] || 0) + 1),
(r[l.target.index] = (r[l.target.index] || 0) + 1);
for (a = 0, s = new Array(d); a < d; ++a)
(l = e[a]),
(s[a] =
r[l.source.index] /
(r[l.source.index] + r[l.target.index]));
(t = new Array(d)), u(), (i = new Array(d)), g();
}
}
function u() {
if (n)
for (var i = 0, r = e.length; i < r; ++i) t[i] = +a(e[i], i, e);
}
function g() {
if (n)
for (var t = 0, r = e.length; t < r; ++t) i[t] = +l(e[t], t, e);
}
return (
null == e && (e = []),
(d.initialize = function (e) {
(n = e), h();
}),
(d.links = function (t) {
return arguments.length ? ((e = t), h(), d) : e;
}),
(d.id = function (e) {
return arguments.length ? ((o = e), d) : o;
}),
(d.iterations = function (e) {
return arguments.length ? ((c = +e), d) : c;
}),
(d.strength = function (e) {
return arguments.length
? ((a = 'function' == typeof e ? e : Oa(+e)), u(), d)
: a;
}),
(d.distance = function (e) {
return arguments.length
? ((l = 'function' == typeof e ? e : Oa(+e)), g(), d)
: l;
}),
d
);
}
function Ga(e) {
return e.x;
}
function Za(e) {
return e.y;
}
(ja.copy = function () {
var e,
t,
i = new Ya(
this._x,
this._y,
this._x0,
this._y0,
this._x1,
this._y1
),
n = this._root;
if (!n) return i;
if (!n.length) return (i._root = Ha(n)), i;
for (
e = [{ source: n, target: (i._root = new Array(4)) }];
(n = e.pop());
)
for (var r = 0; r < 4; ++r)
(t = n.source[r]) &&
(t.length
? e.push({ source: t, target: (n.target[r] = new Array(4)) })
: (n.target[r] = Ha(t)));
return i;
}),
(ja.add = function (e) {
var t = +this._x.call(null, e),
i = +this._y.call(null, e);
return Ra(this.cover(t, i), t, i, e);
}),
(ja.addAll = function (e) {
var t,
i,
n,
r,
s = e.length,
o = new Array(s),
a = new Array(s),
l = 1 / 0,
c = 1 / 0,
d = -1 / 0,
h = -1 / 0;
for (i = 0; i < s; ++i)
isNaN((n = +this._x.call(null, (t = e[i])))) ||
isNaN((r = +this._y.call(null, t))) ||
((o[i] = n),
(a[i] = r),
n < l && (l = n),
n > d && (d = n),
r < c && (c = r),
r > h && (h = r));
if (l > d || c > h) return this;
for (this.cover(l, c).cover(d, h), i = 0; i < s; ++i)
Ra(this, o[i], a[i], e[i]);
return this;
}),
(ja.cover = function (e, t) {
if (isNaN((e = +e)) || isNaN((t = +t))) return this;
var i = this._x0,
n = this._y0,
r = this._x1,
s = this._y1;
if (isNaN(i))
(r = (i = Math.floor(e)) + 1), (s = (n = Math.floor(t)) + 1);
else {
for (
var o, a, l = r - i, c = this._root;
i > e || e >= r || n > t || t >= s;
)
switch (
((a = ((t < n) << 1) | (e < i)),
((o = new Array(4))[a] = c),
(c = o),
(l *= 2),
a)
) {
case 0:
(r = i + l), (s = n + l);
break;
case 1:
(i = r - l), (s = n + l);
break;
case 2:
(r = i + l), (n = s - l);
break;
case 3:
(i = r - l), (n = s - l);
}
this._root && this._root.length && (this._root = c);
}
return (
(this._x0 = i),
(this._y0 = n),
(this._x1 = r),
(this._y1 = s),
this
);
}),
(ja.data = function () {
var e = [];
return (
this.visit(function (t) {
if (!t.length)
do {
e.push(t.data);
} while ((t = t.next));
}),
e
);
}),
(ja.extent = function (e) {
return arguments.length
? this.cover(+e[0][0], +e[0][1]).cover(+e[1][0], +e[1][1])
: isNaN(this._x0)
? void 0
: [
[this._x0, this._y0],
[this._x1, this._y1],
];
}),
(ja.find = function (e, t, i) {
var n,
r,
s,
o,
a,
l,
c,
d = this._x0,
h = this._y0,
u = this._x1,
g = this._y1,
f = [],
p = this._root;
for (
p && f.push(new Pa(p, d, h, u, g)),
null == i
? (i = 1 / 0)
: ((d = e - i),
(h = t - i),
(u = e + i),
(g = t + i),
(i *= i));
(l = f.pop());
)
if (
!(
!(p = l.node) ||
(r = l.x0) > u ||
(s = l.y0) > g ||
(o = l.x1) < d ||
(a = l.y1) < h
)
)
if (p.length) {
var m = (r + o) / 2,
_ = (s + a) / 2;
f.push(
new Pa(p[3], m, _, o, a),
new Pa(p[2], r, _, m, a),
new Pa(p[1], m, s, o, _),
new Pa(p[0], r, s, m, _)
),
(c = ((t >= _) << 1) | (e >= m)) &&
((l = f[f.length - 1]),
(f[f.length - 1] = f[f.length - 1 - c]),
(f[f.length - 1 - c] = l));
} else {
var b = e - +this._x.call(null, p.data),
v = t - +this._y.call(null, p.data),
y = b * b + v * v;
if (y < i) {
var w = Math.sqrt((i = y));
(d = e - w),
(h = t - w),
(u = e + w),
(g = t + w),
(n = p.data);
}
}
return n;
}),
(ja.remove = function (e) {
if (
isNaN((s = +this._x.call(null, e))) ||
isNaN((o = +this._y.call(null, e)))
)
return this;
var t,
i,
n,
r,
s,
o,
a,
l,
c,
d,
h,
u,
g = this._root,
f = this._x0,
p = this._y0,
m = this._x1,
_ = this._y1;
if (!g) return this;
if (g.length)
for (;;) {
if (
((c = s >= (a = (f + m) / 2)) ? (f = a) : (m = a),
(d = o >= (l = (p + _) / 2)) ? (p = l) : (_ = l),
(t = g),
!(g = g[(h = (d << 1) | c)]))
)
return this;
if (!g.length) break;
(t[(h + 1) & 3] || t[(h + 2) & 3] || t[(h + 3) & 3]) &&
((i = t), (u = h));
}
for (; g.data !== e; ) if (((n = g), !(g = g.next))) return this;
return (
(r = g.next) && delete g.next,
n
? (r ? (n.next = r) : delete n.next, this)
: t
? (r ? (t[h] = r) : delete t[h],
(g = t[0] || t[1] || t[2] || t[3]) &&
g === (t[3] || t[2] || t[1] || t[0]) &&
!g.length &&
(i ? (i[u] = g) : (this._root = g)),
this)
: ((this._root = r), this)
);
}),
(ja.removeAll = function (e) {
for (var t = 0, i = e.length; t < i; ++t) this.remove(e[t]);
return this;
}),
(ja.root = function () {
return this._root;
}),
(ja.size = function () {
var e = 0;
return (
this.visit(function (t) {
if (!t.length)
do {
++e;
} while ((t = t.next));
}),
e
);
}),
(ja.visit = function (e) {
var t,
i,
n,
r,
s,
o,
a = [],
l = this._root;
for (
l && a.push(new Pa(l, this._x0, this._y0, this._x1, this._y1));
(t = a.pop());
)
if (
!e(
(l = t.node),
(n = t.x0),
(r = t.y0),
(s = t.x1),
(o = t.y1)
) &&
l.length
) {
var c = (n + s) / 2,
d = (r + o) / 2;
(i = l[3]) && a.push(new Pa(i, c, d, s, o)),
(i = l[2]) && a.push(new Pa(i, n, d, c, o)),
(i = l[1]) && a.push(new Pa(i, c, r, s, d)),
(i = l[0]) && a.push(new Pa(i, n, r, c, d));
}
return this;
}),
(ja.visitAfter = function (e) {
var t,
i = [],
n = [];
for (
this._root &&
i.push(
new Pa(this._root, this._x0, this._y0, this._x1, this._y1)
);
(t = i.pop());
) {
var r = t.node;
if (r.length) {
var s,
o = t.x0,
a = t.y0,
l = t.x1,
c = t.y1,
d = (o + l) / 2,
h = (a + c) / 2;
(s = r[0]) && i.push(new Pa(s, o, a, d, h)),
(s = r[1]) && i.push(new Pa(s, d, a, l, h)),
(s = r[2]) && i.push(new Pa(s, o, h, d, c)),
(s = r[3]) && i.push(new Pa(s, d, h, l, c));
}
n.push(t);
}
for (; (t = n.pop()); ) e(t.node, t.x0, t.y0, t.x1, t.y1);
return this;
}),
(ja.x = function (e) {
return arguments.length ? ((this._x = e), this) : this._x;
}),
(ja.y = function (e) {
return arguments.length ? ((this._y = e), this) : this._y;
});
var Ja = Math.PI * (3 - Math.sqrt(5));
function Qa(e) {
var t,
i = 1,
n = 0.001,
r = 1 - Math.pow(n, 1 / 300),
s = 0,
o = 0.6,
a = is(),
l = $i(d),
c = ue('tick', 'end');
function d() {
h(), c.call('tick', t), i < n && (l.stop(), c.call('end', t));
}
function h(n) {
var l,
c,
d = e.length;
void 0 === n && (n = 1);
for (var h = 0; h < n; ++h)
for (
i += (s - i) * r,
a.each(function (e) {
e(i);
}),
l = 0;
l < d;
++l
)
null == (c = e[l]).fx
? (c.x += c.vx *= o)
: ((c.x = c.fx), (c.vx = 0)),
null == c.fy
? (c.y += c.vy *= o)
: ((c.y = c.fy), (c.vy = 0));
return t;
}
function u() {
for (var t, i = 0, n = e.length; i < n; ++i) {
if (
(((t = e[i]).index = i),
null != t.fx && (t.x = t.fx),
null != t.fy && (t.y = t.fy),
isNaN(t.x) || isNaN(t.y))
) {
var r = 10 * Math.sqrt(i),
s = i * Ja;
(t.x = r * Math.cos(s)), (t.y = r * Math.sin(s));
}
(isNaN(t.vx) || isNaN(t.vy)) && (t.vx = t.vy = 0);
}
}
function g(t) {
return t.initialize && t.initialize(e), t;
}
return (
null == e && (e = []),
u(),
(t = {
tick: h,
restart: function () {
return l.restart(d), t;
},
stop: function () {
return l.stop(), t;
},
nodes: function (i) {
return arguments.length ? ((e = i), u(), a.each(g), t) : e;
},
alpha: function (e) {
return arguments.length ? ((i = +e), t) : i;
},
alphaMin: function (e) {
return arguments.length ? ((n = +e), t) : n;
},
alphaDecay: function (e) {
return arguments.length ? ((r = +e), t) : +r;
},
alphaTarget: function (e) {
return arguments.length ? ((s = +e), t) : s;
},
velocityDecay: function (e) {
return arguments.length ? ((o = 1 - e), t) : 1 - o;
},
force: function (e, i) {
return arguments.length > 1
? (null == i ? a.remove(e) : a.set(e, g(i)), t)
: a.get(e);
},
find: function (t, i, n) {
var r,
s,
o,
a,
l,
c = 0,
d = e.length;
for (null == n ? (n = 1 / 0) : (n *= n), c = 0; c < d; ++c)
(o = (r = t - (a = e[c]).x) * r + (s = i - a.y) * s) < n &&
((l = a), (n = o));
return l;
},
on: function (e, i) {
return arguments.length > 1 ? (c.on(e, i), t) : c.on(e);
},
})
);
}
function Xa() {
var e,
t,
i,
n,
r = Oa(-30),
s = 1,
o = 1 / 0,
a = 0.81;
function l(n) {
var r,
s = e.length,
o = Wa(e, Ga, Za).visitAfter(d);
for (i = n, r = 0; r < s; ++r) (t = e[r]), o.visit(h);
}
function c() {
if (e) {
var t,
i,
s = e.length;
for (n = new Array(s), t = 0; t < s; ++t)
(i = e[t]), (n[i.index] = +r(i, t, e));
}
}
function d(e) {
var t,
i,
r,
s,
o,
a = 0,
l = 0;
if (e.length) {
for (r = s = o = 0; o < 4; ++o)
(t = e[o]) &&
(i = Math.abs(t.value)) &&
((a += t.value), (l += i), (r += i * t.x), (s += i * t.y));
(e.x = r / l), (e.y = s / l);
} else {
((t = e).x = t.data.x), (t.y = t.data.y);
do {
a += n[t.data.index];
} while ((t = t.next));
}
e.value = a;
}
function h(e, r, l, c) {
if (!e.value) return !0;
var d = e.x - t.x,
h = e.y - t.y,
u = c - r,
g = d * d + h * h;
if ((u * u) / a < g)
return (
g < o &&
(0 === d && (g += (d = Aa()) * d),
0 === h && (g += (h = Aa()) * h),
g < s && (g = Math.sqrt(s * g)),
(t.vx += (d * e.value * i) / g),
(t.vy += (h * e.value * i) / g)),
!0
);
if (!(e.length || g >= o)) {
(e.data !== t || e.next) &&
(0 === d && (g += (d = Aa()) * d),
0 === h && (g += (h = Aa()) * h),
g < s && (g = Math.sqrt(s * g)));
do {
e.data !== t &&
((u = (n[e.data.index] * i) / g),
(t.vx += d * u),
(t.vy += h * u));
} while ((e = e.next));
}
}
return (
(l.initialize = function (t) {
(e = t), c();
}),
(l.strength = function (e) {
return arguments.length
? ((r = 'function' == typeof e ? e : Oa(+e)), c(), l)
: r;
}),
(l.distanceMin = function (e) {
return arguments.length ? ((s = e * e), l) : Math.sqrt(s);
}),
(l.distanceMax = function (e) {
return arguments.length ? ((o = e * e), l) : Math.sqrt(o);
}),
(l.theta = function (e) {
return arguments.length ? ((a = e * e), l) : Math.sqrt(a);
}),
l
);
}
function el(e, t, i) {
var n,
r,
s,
o = Oa(0.1);
function a(e) {
for (var o = 0, a = n.length; o < a; ++o) {
var l = n[o],
c = l.x - t || 1e-6,
d = l.y - i || 1e-6,
h = Math.sqrt(c * c + d * d),
u = ((s[o] - h) * r[o] * e) / h;
(l.vx += c * u), (l.vy += d * u);
}
}
function l() {
if (n) {
var t,
i = n.length;
for (r = new Array(i), s = new Array(i), t = 0; t < i; ++t)
(s[t] = +e(n[t], t, n)),
(r[t] = isNaN(s[t]) ? 0 : +o(n[t], t, n));
}
}
return (
'function' != typeof e && (e = Oa(+e)),
null == t && (t = 0),
null == i && (i = 0),
(a.initialize = function (e) {
(n = e), l();
}),
(a.strength = function (e) {
return arguments.length
? ((o = 'function' == typeof e ? e : Oa(+e)), l(), a)
: o;
}),
(a.radius = function (t) {
return arguments.length
? ((e = 'function' == typeof t ? t : Oa(+t)), l(), a)
: e;
}),
(a.x = function (e) {
return arguments.length ? ((t = +e), a) : t;
}),
(a.y = function (e) {
return arguments.length ? ((i = +e), a) : i;
}),
a
);
}
function tl(e) {
var t,
i,
n,
r = Oa(0.1);
function s(e) {
for (var r, s = 0, o = t.length; s < o; ++s)
(r = t[s]).vx += (n[s] - r.x) * i[s] * e;
}
function o() {
if (t) {
var s,
o = t.length;
for (i = new Array(o), n = new Array(o), s = 0; s < o; ++s)
i[s] = isNaN((n[s] = +e(t[s], s, t))) ? 0 : +r(t[s], s, t);
}
}
return (
'function' != typeof e && (e = Oa(null == e ? 0 : +e)),
(s.initialize = function (e) {
(t = e), o();
}),
(s.strength = function (e) {
return arguments.length
? ((r = 'function' == typeof e ? e : Oa(+e)), o(), s)
: r;
}),
(s.x = function (t) {
return arguments.length
? ((e = 'function' == typeof t ? t : Oa(+t)), o(), s)
: e;
}),
s
);
}
function il(e) {
var t,
i,
n,
r = Oa(0.1);
function s(e) {
for (var r, s = 0, o = t.length; s < o; ++s)
(r = t[s]).vy += (n[s] - r.y) * i[s] * e;
}
function o() {
if (t) {
var s,
o = t.length;
for (i = new Array(o), n = new Array(o), s = 0; s < o; ++s)
i[s] = isNaN((n[s] = +e(t[s], s, t))) ? 0 : +r(t[s], s, t);
}
}
return (
'function' != typeof e && (e = Oa(null == e ? 0 : +e)),
(s.initialize = function (e) {
(t = e), o();
}),
(s.strength = function (e) {
return arguments.length
? ((r = 'function' == typeof e ? e : Oa(+e)), o(), s)
: r;
}),
(s.y = function (t) {
return arguments.length
? ((e = 'function' == typeof t ? t : Oa(+t)), o(), s)
: e;
}),
s
);
}
function nl(e, t) {
if (
(i = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf(
'e'
)) < 0
)
return null;
var i,
n = e.slice(0, i);
return [n.length > 1 ? n[0] + n.slice(2) : n, +e.slice(i + 1)];
}
function rl(e) {
return (e = nl(Math.abs(e))) ? e[1] : NaN;
}
var sl,
ol = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
function al(e) {
if (!(t = ol.exec(e))) throw new Error('invalid format: ' + e);
var t;
return new ll({
fill: t[1],
align: t[2],
sign: t[3],
symbol: t[4],
zero: t[5],
width: t[6],
comma: t[7],
precision: t[8] && t[8].slice(1),
trim: t[9],
type: t[10],
});
}
function ll(e) {
(this.fill = void 0 === e.fill ? ' ' : e.fill + ''),
(this.align = void 0 === e.align ? '>' : e.align + ''),
(this.sign = void 0 === e.sign ? '-' : e.sign + ''),
(this.symbol = void 0 === e.symbol ? '' : e.symbol + ''),
(this.zero = !!e.zero),
(this.width = void 0 === e.width ? void 0 : +e.width),
(this.comma = !!e.comma),
(this.precision = void 0 === e.precision ? void 0 : +e.precision),
(this.trim = !!e.trim),
(this.type = void 0 === e.type ? '' : e.type + '');
}
function cl(e, t) {
var i = nl(e, t);
if (!i) return e + '';
var n = i[0],
r = i[1];
return r < 0
? '0.' + new Array(-r).join('0') + n
: n.length > r + 1
? n.slice(0, r + 1) + '.' + n.slice(r + 1)
: n + new Array(r - n.length + 2).join('0');
}
(al.prototype = ll.prototype),
(ll.prototype.toString = function () {
return (
this.fill +
this.align +
this.sign +
this.symbol +
(this.zero ? '0' : '') +
(void 0 === this.width ? '' : Math.max(1, 0 | this.width)) +
(this.comma ? ',' : '') +
(void 0 === this.precision
? ''
: '.' + Math.max(0, 0 | this.precision)) +
(this.trim ? '~' : '') +
this.type
);
});
const dl = {
'%': function (e, t) {
return (100 * e).toFixed(t);
},
b: function (e) {
return Math.round(e).toString(2);
},
c: function (e) {
return e + '';
},
d: function (e) {
return Math.round(e).toString(10);
},
e: function (e, t) {
return e.toExponential(t);
},
f: function (e, t) {
return e.toFixed(t);
},
g: function (e, t) {
return e.toPrecision(t);
},
o: function (e) {
return Math.round(e).toString(8);
},
p: function (e, t) {
return cl(100 * e, t);
},
r: cl,
s: function (e, t) {
var i = nl(e, t);
if (!i) return e + '';
var n = i[0],
r = i[1],
s =
r - (sl = 3 * Math.max(-8, Math.min(8, Math.floor(r / 3)))) + 1,
o = n.length;
return s === o
? n
: s > o
? n + new Array(s - o + 1).join('0')
: s > 0
? n.slice(0, s) + '.' + n.slice(s)
: '0.' +
new Array(1 - s).join('0') +
nl(e, Math.max(0, t + s - 1))[0];
},
X: function (e) {
return Math.round(e).toString(16).toUpperCase();
},
x: function (e) {
return Math.round(e).toString(16);
},
};
function hl(e) {
return e;
}
var ul,
gl,
fl,
pl = Array.prototype.map,
ml = [
'y',
'z',
'a',
'f',
'p',
'n',
'µ',
'm',
'',
'k',
'M',
'G',
'T',
'P',
'E',
'Z',
'Y',
];
function _l(e) {
var t,
i,
n =
void 0 === e.grouping || void 0 === e.thousands
? hl
: ((t = pl.call(e.grouping, Number)),
(i = e.thousands + ''),
function (e, n) {
for (
var r = e.length, s = [], o = 0, a = t[0], l = 0;
r > 0 &&
a > 0 &&
(l + a + 1 > n && (a = Math.max(1, n - l)),
s.push(e.substring((r -= a), r + a)),
!((l += a + 1) > n));
)
a = t[(o = (o + 1) % t.length)];
return s.reverse().join(i);
}),
r = void 0 === e.currency ? '' : e.currency[0] + '',
s = void 0 === e.currency ? '' : e.currency[1] + '',
o = void 0 === e.decimal ? '.' : e.decimal + '',
a =
void 0 === e.numerals
? hl
: (function (e) {
return function (t) {
return t.replace(/[0-9]/g, function (t) {
return e[+t];
});
};
})(pl.call(e.numerals, String)),
l = void 0 === e.percent ? '%' : e.percent + '',
c = void 0 === e.minus ? '-' : e.minus + '',
d = void 0 === e.nan ? 'NaN' : e.nan + '';
function h(e) {
var t = (e = al(e)).fill,
i = e.align,
h = e.sign,
u = e.symbol,
g = e.zero,
f = e.width,
p = e.comma,
m = e.precision,
_ = e.trim,
b = e.type;
'n' === b
? ((p = !0), (b = 'g'))
: dl[b] || (void 0 === m && (m = 12), (_ = !0), (b = 'g')),
(g || ('0' === t && '=' === i)) &&
((g = !0), (t = '0'), (i = '='));
var v =
'$' === u
? r
: '#' === u && /[boxX]/.test(b)
? '0' + b.toLowerCase()
: '',
y = '$' === u ? s : /[%p]/.test(b) ? l : '',
w = dl[b],
C = /[defgprs%]/.test(b);
function S(e) {
var r,
s,
l,
u = v,
S = y;
if ('c' === b) (S = w(e) + S), (e = '');
else {
var k = (e = +e) < 0;
if (
((e = isNaN(e) ? d : w(Math.abs(e), m)),
_ &&
(e = (function (e) {
e: for (var t, i = e.length, n = 1, r = -1; n < i; ++n)
switch (e[n]) {
case '.':
r = t = n;
break;
case '0':
0 === r && (r = n), (t = n);
break;
default:
if (r > 0) {
if (!+e[n]) break e;
r = 0;
}
}
return r > 0 ? e.slice(0, r) + e.slice(t + 1) : e;
})(e)),
k && 0 == +e && (k = !1),
(u =
(k
? '(' === h
? h
: c
: '-' === h || '(' === h
? ''
: h) + u),
(S =
('s' === b ? ml[8 + sl / 3] : '') +
S +
(k && '(' === h ? ')' : '')),
C)
)
for (r = -1, s = e.length; ++r < s; )
if (48 > (l = e.charCodeAt(r)) || l > 57) {
(S = (46 === l ? o + e.slice(r + 1) : e.slice(r)) + S),
(e = e.slice(0, r));
break;
}
}
p && !g && (e = n(e, 1 / 0));
var x = u.length + e.length + S.length,
L = x < f ? new Array(f - x + 1).join(t) : '';
switch (
(p &&
g &&
((e = n(L + e, L.length ? f - S.length : 1 / 0)), (L = '')),
i)
) {
case '<':
e = u + e + S + L;
break;
case '=':
e = u + L + e + S;
break;
case '^':
e = L.slice(0, (x = L.length >> 1)) + u + e + S + L.slice(x);
break;
default:
e = L + u + e + S;
}
return a(e);
}
return (
(m =
void 0 === m
? 6
: /[gprs]/.test(b)
? Math.max(1, Math.min(21, m))
: Math.max(0, Math.min(20, m))),
(S.toString = function () {
return e + '';
}),
S
);
}
return {
format: h,
formatPrefix: function (e, t) {
var i = h((((e = al(e)).type = 'f'), e)),
n = 3 * Math.max(-8, Math.min(8, Math.floor(rl(t) / 3))),
r = Math.pow(10, -n),
s = ml[8 + n / 3];
return function (e) {
return i(r * e) + s;
};
},
};
}
function bl(e) {
return (ul = _l(e)), (gl = ul.format), (fl = ul.formatPrefix), ul;
}
function vl(e) {
return Math.max(0, -rl(Math.abs(e)));
}
function yl(e, t) {
return Math.max(
0,
3 * Math.max(-8, Math.min(8, Math.floor(rl(t) / 3))) -
rl(Math.abs(e))
);
}
function wl(e, t) {
return (
(e = Math.abs(e)),
(t = Math.abs(t) - e),
Math.max(0, rl(t) - rl(e)) + 1
);
}
function Cl() {
return new Sl();
}
function Sl() {
this.reset();
}
bl({
decimal: '.',
thousands: ',',
grouping: [3],
currency: ['$', ''],
minus: '-',
}),
(Sl.prototype = {
constructor: Sl,
reset: function () {
this.s = this.t = 0;
},
add: function (e) {
xl(kl, e, this.t),
xl(this, kl.s, this.s),
this.s ? (this.t += kl.t) : (this.s = kl.t);
},
valueOf: function () {
return this.s;
},
});
var kl = new Sl();
function xl(e, t, i) {
var n = (e.s = t + i),
r = n - t,
s = n - r;
e.t = t - s + (i - r);
}
var Ll = 1e-6,
Ml = 1e-12,
Dl = Math.PI,
Nl = Dl / 2,
El = Dl / 4,
Tl = 2 * Dl,
Il = 180 / Dl,
Ol = Dl / 180,
Al = Math.abs,
Rl = Math.atan,
Pl = Math.atan2,
Fl = Math.cos,
Bl = Math.ceil,
Wl = Math.exp,
Yl = (Math.floor, Math.log),
Hl = Math.pow,
jl = Math.sin,
Vl =
Math.sign ||
function (e) {
return e > 0 ? 1 : e < 0 ? -1 : 0;
},
zl = Math.sqrt,
Ul = Math.tan;
function $l(e) {
return e > 1 ? 0 : e < -1 ? Dl : Math.acos(e);
}
function Kl(e) {
return e > 1 ? Nl : e < -1 ? -Nl : Math.asin(e);
}
function ql(e) {
return (e = jl(e / 2)) * e;
}
function Gl() {}
function Zl(e, t) {
e && Ql.hasOwnProperty(e.type) && Ql[e.type](e, t);
}
var Jl = {
Feature: function (e, t) {
Zl(e.geometry, t);
},
FeatureCollection: function (e, t) {
for (var i = e.features, n = -1, r = i.length; ++n < r; )
Zl(i[n].geometry, t);
},
},
Ql = {
Sphere: function (e, t) {
t.sphere();
},
Point: function (e, t) {
(e = e.coordinates), t.point(e[0], e[1], e[2]);
},
MultiPoint: function (e, t) {
for (var i = e.coordinates, n = -1, r = i.length; ++n < r; )
(e = i[n]), t.point(e[0], e[1], e[2]);
},
LineString: function (e, t) {
Xl(e.coordinates, t, 0);
},
MultiLineString: function (e, t) {
for (var i = e.coordinates, n = -1, r = i.length; ++n < r; )
Xl(i[n], t, 0);
},
Polygon: function (e, t) {
ec(e.coordinates, t);
},
MultiPolygon: function (e, t) {
for (var i = e.coordinates, n = -1, r = i.length; ++n < r; )
ec(i[n], t);
},
GeometryCollection: function (e, t) {
for (var i = e.geometries, n = -1, r = i.length; ++n < r; )
Zl(i[n], t);
},
};
function Xl(e, t, i) {
var n,
r = -1,
s = e.length - i;
for (t.lineStart(); ++r < s; ) (n = e[r]), t.point(n[0], n[1], n[2]);
t.lineEnd();
}
function ec(e, t) {
var i = -1,
n = e.length;
for (t.polygonStart(); ++i < n; ) Xl(e[i], t, 1);
t.polygonEnd();
}
function tc(e, t) {
e && Jl.hasOwnProperty(e.type) ? Jl[e.type](e, t) : Zl(e, t);
}
var ic,
nc,
rc,
sc,
oc,
ac = Cl(),
lc = Cl(),
cc = {
point: Gl,
lineStart: Gl,
lineEnd: Gl,
polygonStart: function () {
ac.reset(), (cc.lineStart = dc), (cc.lineEnd = hc);
},
polygonEnd: function () {
var e = +ac;
lc.add(e < 0 ? Tl + e : e),
(this.lineStart = this.lineEnd = this.point = Gl);
},
sphere: function () {
lc.add(Tl);
},
};
function dc() {
cc.point = uc;
}
function hc() {
gc(ic, nc);
}
function uc(e, t) {
(cc.point = gc),
(ic = e),
(nc = t),
(rc = e *= Ol),
(sc = Fl((t = (t *= Ol) / 2 + El))),
(oc = jl(t));
}
function gc(e, t) {
var i = (e *= Ol) - rc,
n = i >= 0 ? 1 : -1,
r = n * i,
s = Fl((t = (t *= Ol) / 2 + El)),
o = jl(t),
a = oc * o,
l = sc * s + a * Fl(r),
c = a * n * jl(r);
ac.add(Pl(c, l)), (rc = e), (sc = s), (oc = o);
}
function fc(e) {
return lc.reset(), tc(e, cc), 2 * lc;
}
function pc(e) {
return [Pl(e[1], e[0]), Kl(e[2])];
}
function mc(e) {
var t = e[0],
i = e[1],
n = Fl(i);
return [n * Fl(t), n * jl(t), jl(i)];
}
function _c(e, t) {
return e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
}
function bc(e, t) {
return [
e[1] * t[2] - e[2] * t[1],
e[2] * t[0] - e[0] * t[2],
e[0] * t[1] - e[1] * t[0],
];
}
function vc(e, t) {
(e[0] += t[0]), (e[1] += t[1]), (e[2] += t[2]);
}
function yc(e, t) {
return [e[0] * t, e[1] * t, e[2] * t];
}
function wc(e) {
var t = zl(e[0] * e[0] + e[1] * e[1] + e[2] * e[2]);
(e[0] /= t), (e[1] /= t), (e[2] /= t);
}
var Cc,
Sc,
kc,
xc,
Lc,
Mc,
Dc,
Nc,
Ec,
Tc,
Ic,
Oc,
Ac,
Rc,
Pc,
Fc,
Bc,
Wc,
Yc,
Hc,
jc,
Vc,
zc,
Uc,
$c,
Kc,
qc = Cl(),
Gc = {
point: Zc,
lineStart: Qc,
lineEnd: Xc,
polygonStart: function () {
(Gc.point = ed),
(Gc.lineStart = td),
(Gc.lineEnd = id),
qc.reset(),
cc.polygonStart();
},
polygonEnd: function () {
cc.polygonEnd(),
(Gc.point = Zc),
(Gc.lineStart = Qc),
(Gc.lineEnd = Xc),
ac < 0
? ((Cc = -(kc = 180)), (Sc = -(xc = 90)))
: qc > Ll
? (xc = 90)
: qc < -1e-6 && (Sc = -90),
(Tc[0] = Cc),
(Tc[1] = kc);
},
sphere: function () {
(Cc = -(kc = 180)), (Sc = -(xc = 90));
},
};
function Zc(e, t) {
Ec.push((Tc = [(Cc = e), (kc = e)])),
t < Sc && (Sc = t),
t > xc && (xc = t);
}
function Jc(e, t) {
var i = mc([e * Ol, t * Ol]);
if (Nc) {
var n = bc(Nc, i),
r = bc([n[1], -n[0], 0], n);
wc(r), (r = pc(r));
var s,
o = e - Lc,
a = o > 0 ? 1 : -1,
l = r[0] * Il * a,
c = Al(o) > 180;
c ^ (a * Lc < l && l < a * e)
? (s = r[1] * Il) > xc && (xc = s)
: c ^ (a * Lc < (l = ((l + 360) % 360) - 180) && l < a * e)
? (s = -r[1] * Il) < Sc && (Sc = s)
: (t < Sc && (Sc = t), t > xc && (xc = t)),
c
? e < Lc
? nd(Cc, e) > nd(Cc, kc) && (kc = e)
: nd(e, kc) > nd(Cc, kc) && (Cc = e)
: kc >= Cc
? (e < Cc && (Cc = e), e > kc && (kc = e))
: e > Lc
? nd(Cc, e) > nd(Cc, kc) && (kc = e)
: nd(e, kc) > nd(Cc, kc) && (Cc = e);
} else Ec.push((Tc = [(Cc = e), (kc = e)]));
t < Sc && (Sc = t), t > xc && (xc = t), (Nc = i), (Lc = e);
}
function Qc() {
Gc.point = Jc;
}
function Xc() {
(Tc[0] = Cc), (Tc[1] = kc), (Gc.point = Zc), (Nc = null);
}
function ed(e, t) {
if (Nc) {
var i = e - Lc;
qc.add(Al(i) > 180 ? i + (i > 0 ? 360 : -360) : i);
} else (Mc = e), (Dc = t);
cc.point(e, t), Jc(e, t);
}
function td() {
cc.lineStart();
}
function id() {
ed(Mc, Dc),
cc.lineEnd(),
Al(qc) > Ll && (Cc = -(kc = 180)),
(Tc[0] = Cc),
(Tc[1] = kc),
(Nc = null);
}
function nd(e, t) {
return (t -= e) < 0 ? t + 360 : t;
}
function rd(e, t) {
return e[0] - t[0];
}
function sd(e, t) {
return e[0] <= e[1] ? e[0] <= t && t <= e[1] : t < e[0] || e[1] < t;
}
function od(e) {
var t, i, n, r, s, o, a;
if (
((xc = kc = -(Cc = Sc = 1 / 0)),
(Ec = []),
tc(e, Gc),
(i = Ec.length))
) {
for (Ec.sort(rd), t = 1, s = [(n = Ec[0])]; t < i; ++t)
sd(n, (r = Ec[t])[0]) || sd(n, r[1])
? (nd(n[0], r[1]) > nd(n[0], n[1]) && (n[1] = r[1]),
nd(r[0], n[1]) > nd(n[0], n[1]) && (n[0] = r[0]))
: s.push((n = r));
for (
o = -1 / 0, t = 0, n = s[(i = s.length - 1)];
t <= i;
n = r, ++t
)
(r = s[t]),
(a = nd(n[1], r[0])) > o && ((o = a), (Cc = r[0]), (kc = n[1]));
}
return (
(Ec = Tc = null),
Cc === 1 / 0 || Sc === 1 / 0
? [
[NaN, NaN],
[NaN, NaN],
]
: [
[Cc, Sc],
[kc, xc],
]
);
}
var ad = {
sphere: Gl,
point: ld,
lineStart: dd,
lineEnd: gd,
polygonStart: function () {
(ad.lineStart = fd), (ad.lineEnd = pd);
},
polygonEnd: function () {
(ad.lineStart = dd), (ad.lineEnd = gd);
},
};
function ld(e, t) {
e *= Ol;
var i = Fl((t *= Ol));
cd(i * Fl(e), i * jl(e), jl(t));
}
function cd(e, t, i) {
++Ic,
(Ac += (e - Ac) / Ic),
(Rc += (t - Rc) / Ic),
(Pc += (i - Pc) / Ic);
}
function dd() {
ad.point = hd;
}
function hd(e, t) {
e *= Ol;
var i = Fl((t *= Ol));
(Uc = i * Fl(e)),
($c = i * jl(e)),
(Kc = jl(t)),
(ad.point = ud),
cd(Uc, $c, Kc);
}
function ud(e, t) {
e *= Ol;
var i = Fl((t *= Ol)),
n = i * Fl(e),
r = i * jl(e),
s = jl(t),
o = Pl(
zl(
(o = $c * s - Kc * r) * o +
(o = Kc * n - Uc * s) * o +
(o = Uc * r - $c * n) * o
),
Uc * n + $c * r + Kc * s
);
(Oc += o),
(Fc += o * (Uc + (Uc = n))),
(Bc += o * ($c + ($c = r))),
(Wc += o * (Kc + (Kc = s))),
cd(Uc, $c, Kc);
}
function gd() {
ad.point = ld;
}
function fd() {
ad.point = md;
}
function pd() {
_d(Vc, zc), (ad.point = ld);
}
function md(e, t) {
(Vc = e), (zc = t), (e *= Ol), (t *= Ol), (ad.point = _d);
var i = Fl(t);
(Uc = i * Fl(e)), ($c = i * jl(e)), (Kc = jl(t)), cd(Uc, $c, Kc);
}
function _d(e, t) {
e *= Ol;
var i = Fl((t *= Ol)),
n = i * Fl(e),
r = i * jl(e),
s = jl(t),
o = $c * s - Kc * r,
a = Kc * n - Uc * s,
l = Uc * r - $c * n,
c = zl(o * o + a * a + l * l),
d = Kl(c),
h = c && -d / c;
(Yc += h * o),
(Hc += h * a),
(jc += h * l),
(Oc += d),
(Fc += d * (Uc + (Uc = n))),
(Bc += d * ($c + ($c = r))),
(Wc += d * (Kc + (Kc = s))),
cd(Uc, $c, Kc);
}
function bd(e) {
(Ic = Oc = Ac = Rc = Pc = Fc = Bc = Wc = Yc = Hc = jc = 0), tc(e, ad);
var t = Yc,
i = Hc,
n = jc,
r = t * t + i * i + n * n;
return r < Ml &&
((t = Fc),
(i = Bc),
(n = Wc),
Oc < Ll && ((t = Ac), (i = Rc), (n = Pc)),
(r = t * t + i * i + n * n) < Ml)
? [NaN, NaN]
: [Pl(i, t) * Il, Kl(n / zl(r)) * Il];
}
function vd(e) {
return function () {
return e;
};
}
function yd(e, t) {
function i(i, n) {
return (i = e(i, n)), t(i[0], i[1]);
}
return (
e.invert &&
t.invert &&
(i.invert = function (i, n) {
return (i = t.invert(i, n)) && e.invert(i[0], i[1]);
}),
i
);
}
function wd(e, t) {
return [Al(e) > Dl ? e + Math.round(-e / Tl) * Tl : e, t];
}
function Cd(e, t, i) {
return (e %= Tl)
? t || i
? yd(kd(e), xd(t, i))
: kd(e)
: t || i
? xd(t, i)
: wd;
}
function Sd(e) {
return function (t, i) {
return [(t += e) > Dl ? t - Tl : t < -Dl ? t + Tl : t, i];
};
}
function kd(e) {
var t = Sd(e);
return (t.invert = Sd(-e)), t;
}
function xd(e, t) {
var i = Fl(e),
n = jl(e),
r = Fl(t),
s = jl(t);
function o(e, t) {
var o = Fl(t),
a = Fl(e) * o,
l = jl(e) * o,
c = jl(t),
d = c * i + a * n;
return [Pl(l * r - d * s, a * i - c * n), Kl(d * r + l * s)];
}
return (
(o.invert = function (e, t) {
var o = Fl(t),
a = Fl(e) * o,
l = jl(e) * o,
c = jl(t),
d = c * r - l * s;
return [Pl(l * r + c * s, a * i + d * n), Kl(d * i - a * n)];
}),
o
);
}
function Ld(e) {
function t(t) {
return ((t = e(t[0] * Ol, t[1] * Ol))[0] *= Il), (t[1] *= Il), t;
}
return (
(e = Cd(e[0] * Ol, e[1] * Ol, e.length > 2 ? e[2] * Ol : 0)),
(t.invert = function (t) {
return (
((t = e.invert(t[0] * Ol, t[1] * Ol))[0] *= Il), (t[1] *= Il), t
);
}),
t
);
}
function Md(e, t, i, n, r, s) {
if (i) {
var o = Fl(t),
a = jl(t),
l = n * i;
null == r
? ((r = t + n * Tl), (s = t - l / 2))
: ((r = Dd(o, r)),
(s = Dd(o, s)),
(n > 0 ? r < s : r > s) && (r += n * Tl));
for (var c, d = r; n > 0 ? d > s : d < s; d -= l)
(c = pc([o, -a * Fl(d), -a * jl(d)])), e.point(c[0], c[1]);
}
}
function Dd(e, t) {
((t = mc(t))[0] -= e), wc(t);
var i = $l(-t[1]);
return ((-t[2] < 0 ? -i : i) + Tl - Ll) % Tl;
}
function Nd() {
var e,
t,
i = vd([0, 0]),
n = vd(90),
r = vd(6),
s = {
point: function (i, n) {
e.push((i = t(i, n))), (i[0] *= Il), (i[1] *= Il);
},
};
function o() {
var o = i.apply(this, arguments),
a = n.apply(this, arguments) * Ol,
l = r.apply(this, arguments) * Ol;
return (
(e = []),
(t = Cd(-o[0] * Ol, -o[1] * Ol, 0).invert),
Md(s, a, l, 1),
(o = { type: 'Polygon', coordinates: [e] }),
(e = t = null),
o
);
}
return (
(o.center = function (e) {
return arguments.length
? ((i = 'function' == typeof e ? e : vd([+e[0], +e[1]])), o)
: i;
}),
(o.radius = function (e) {
return arguments.length
? ((n = 'function' == typeof e ? e : vd(+e)), o)
: n;
}),
(o.precision = function (e) {
return arguments.length
? ((r = 'function' == typeof e ? e : vd(+e)), o)
: r;
}),
o
);
}
function Ed() {
var e,
t = [];
return {
point: function (t, i) {
e.push([t, i]);
},
lineStart: function () {
t.push((e = []));
},
lineEnd: Gl,
rejoin: function () {
t.length > 1 && t.push(t.pop().concat(t.shift()));
},
result: function () {
var i = t;
return (t = []), (e = null), i;
},
};
}
function Td(e, t) {
return Al(e[0] - t[0]) < Ll && Al(e[1] - t[1]) < Ll;
}
function Id(e, t, i, n) {
(this.x = e),
(this.z = t),
(this.o = i),
(this.e = n),
(this.v = !1),
(this.n = this.p = null);
}
function Od(e, t, i, n, r) {
var s,
o,
a = [],
l = [];
if (
(e.forEach(function (e) {
if (!((t = e.length - 1) <= 0)) {
var t,
i,
n = e[0],
o = e[t];
if (Td(n, o)) {
for (r.lineStart(), s = 0; s < t; ++s)
r.point((n = e[s])[0], n[1]);
r.lineEnd();
} else
a.push((i = new Id(n, e, null, !0))),
l.push((i.o = new Id(n, null, i, !1))),
a.push((i = new Id(o, e, null, !1))),
l.push((i.o = new Id(o, null, i, !0)));
}
}),
a.length)
) {
for (l.sort(t), Ad(a), Ad(l), s = 0, o = l.length; s < o; ++s)
l[s].e = i = !i;
for (var c, d, h = a[0]; ; ) {
for (var u = h, g = !0; u.v; ) if ((u = u.n) === h) return;
(c = u.z), r.lineStart();
do {
if (((u.v = u.o.v = !0), u.e)) {
if (g)
for (s = 0, o = c.length; s < o; ++s)
r.point((d = c[s])[0], d[1]);
else n(u.x, u.n.x, 1, r);
u = u.n;
} else {
if (g)
for (c = u.p.z, s = c.length - 1; s >= 0; --s)
r.point((d = c[s])[0], d[1]);
else n(u.x, u.p.x, -1, r);
u = u.p;
}
(c = (u = u.o).z), (g = !g);
} while (!u.v);
r.lineEnd();
}
}
}
function Ad(e) {
if ((t = e.length)) {
for (var t, i, n = 0, r = e[0]; ++n < t; )
(r.n = i = e[n]), (i.p = r), (r = i);
(r.n = i = e[0]), (i.p = r);
}
}
wd.invert = wd;
var Rd = Cl();
function Pd(e) {
return Al(e[0]) <= Dl
? e[0]
: Vl(e[0]) * (((Al(e[0]) + Dl) % Tl) - Dl);
}
function Fd(e, t) {
var i = Pd(t),
n = t[1],
r = jl(n),
s = [jl(i), -Fl(i), 0],
o = 0,
a = 0;
Rd.reset(), 1 === r ? (n = Nl + Ll) : -1 === r && (n = -Nl - Ll);
for (var l = 0, c = e.length; l < c; ++l)
if ((h = (d = e[l]).length))
for (
var d,
h,
u = d[h - 1],
g = Pd(u),
f = u[1] / 2 + El,
p = jl(f),
m = Fl(f),
_ = 0;
_ < h;
++_, g = v, p = w, m = C, u = b
) {
var b = d[_],
v = Pd(b),
y = b[1] / 2 + El,
w = jl(y),
C = Fl(y),
S = v - g,
k = S >= 0 ? 1 : -1,
x = k * S,
L = x > Dl,
M = p * w;
if (
(Rd.add(Pl(M * k * jl(x), m * C + M * Fl(x))),
(o += L ? S + k * Tl : S),
L ^ (g >= i) ^ (v >= i))
) {
var D = bc(mc(u), mc(b));
wc(D);
var N = bc(s, D);
wc(N);
var E = (L ^ (S >= 0) ? -1 : 1) * Kl(N[2]);
(n > E || (n === E && (D[0] || D[1]))) &&
(a += L ^ (S >= 0) ? 1 : -1);
}
}
return (o < -1e-6 || (o < Ll && Rd < -1e-6)) ^ (1 & a);
}
function Bd(e, t, i, n) {
return function (r) {
var s,
o,
a,
l = t(r),
c = Ed(),
d = t(c),
h = !1,
u = {
point: g,
lineStart: p,
lineEnd: m,
polygonStart: function () {
(u.point = _),
(u.lineStart = b),
(u.lineEnd = v),
(o = []),
(s = []);
},
polygonEnd: function () {
(u.point = g), (u.lineStart = p), (u.lineEnd = m), (o = B(o));
var e = Fd(s, n);
o.length
? (h || (r.polygonStart(), (h = !0)), Od(o, Yd, e, i, r))
: e &&
(h || (r.polygonStart(), (h = !0)),
r.lineStart(),
i(null, null, 1, r),
r.lineEnd()),
h && (r.polygonEnd(), (h = !1)),
(o = s = null);
},
sphere: function () {
r.polygonStart(),
r.lineStart(),
i(null, null, 1, r),
r.lineEnd(),
r.polygonEnd();
},
};
function g(t, i) {
e(t, i) && r.point(t, i);
}
function f(e, t) {
l.point(e, t);
}
function p() {
(u.point = f), l.lineStart();
}
function m() {
(u.point = g), l.lineEnd();
}
function _(e, t) {
a.push([e, t]), d.point(e, t);
}
function b() {
d.lineStart(), (a = []);
}
function v() {
_(a[0][0], a[0][1]), d.lineEnd();
var e,
t,
i,
n,
l = d.clean(),
u = c.result(),
g = u.length;
if ((a.pop(), s.push(a), (a = null), g))
if (1 & l) {
if ((t = (i = u[0]).length - 1) > 0) {
for (
h || (r.polygonStart(), (h = !0)), r.lineStart(), e = 0;
e < t;
++e
)
r.point((n = i[e])[0], n[1]);
r.lineEnd();
}
} else
g > 1 && 2 & l && u.push(u.pop().concat(u.shift())),
o.push(u.filter(Wd));
}
return u;
};
}
function Wd(e) {
return e.length > 1;
}
function Yd(e, t) {
return (
((e = e.x)[0] < 0 ? e[1] - Nl - Ll : Nl - e[1]) -
((t = t.x)[0] < 0 ? t[1] - Nl - Ll : Nl - t[1])
);
}
const Hd = Bd(
function () {
return !0;
},
function (e) {
var t,
i = NaN,
n = NaN,
r = NaN;
return {
lineStart: function () {
e.lineStart(), (t = 1);
},
point: function (s, o) {
var a = s > 0 ? Dl : -Dl,
l = Al(s - i);
Al(l - Dl) < Ll
? (e.point(i, (n = (n + o) / 2 > 0 ? Nl : -Nl)),
e.point(r, n),
e.lineEnd(),
e.lineStart(),
e.point(a, n),
e.point(s, n),
(t = 0))
: r !== a &&
l >= Dl &&
(Al(i - r) < Ll && (i -= r * Ll),
Al(s - a) < Ll && (s -= a * Ll),
(n = (function (e, t, i, n) {
var r,
s,
o = jl(e - i);
return Al(o) > Ll
? Rl(
(jl(t) * (s = Fl(n)) * jl(i) -
jl(n) * (r = Fl(t)) * jl(e)) /
(r * s * o)
)
: (t + n) / 2;
})(i, n, s, o)),
e.point(r, n),
e.lineEnd(),
e.lineStart(),
e.point(a, n),
(t = 0)),
e.point((i = s), (n = o)),
(r = a);
},
lineEnd: function () {
e.lineEnd(), (i = n = NaN);
},
clean: function () {
return 2 - t;
},
};
},
function (e, t, i, n) {
var r;
if (null == e)
(r = i * Nl),
n.point(-Dl, r),
n.point(0, r),
n.point(Dl, r),
n.point(Dl, 0),
n.point(Dl, -r),
n.point(0, -r),
n.point(-Dl, -r),
n.point(-Dl, 0),
n.point(-Dl, r);
else if (Al(e[0] - t[0]) > Ll) {
var s = e[0] < t[0] ? Dl : -Dl;
(r = (i * s) / 2), n.point(-s, r), n.point(0, r), n.point(s, r);
} else n.point(t[0], t[1]);
},
[-Dl, -Nl]
);
function jd(e) {
var t = Fl(e),
i = 6 * Ol,
n = t > 0,
r = Al(t) > Ll;
function s(e, i) {
return Fl(e) * Fl(i) > t;
}
function o(e, i, n) {
var r = [1, 0, 0],
s = bc(mc(e), mc(i)),
o = _c(s, s),
a = s[0],
l = o - a * a;
if (!l) return !n && e;
var c = (t * o) / l,
d = (-t * a) / l,
h = bc(r, s),
u = yc(r, c);
vc(u, yc(s, d));
var g = h,
f = _c(u, g),
p = _c(g, g),
m = f * f - p * (_c(u, u) - 1);
if (!(m < 0)) {
var _ = zl(m),
b = yc(g, (-f - _) / p);
if ((vc(b, u), (b = pc(b)), !n)) return b;
var v,
y = e[0],
w = i[0],
C = e[1],
S = i[1];
w < y && ((v = y), (y = w), (w = v));
var k = w - y,
x = Al(k - Dl) < Ll;
if (
(!x && S < C && ((v = C), (C = S), (S = v)),
x || k < Ll
? x
? (C + S > 0) ^ (b[1] < (Al(b[0] - y) < Ll ? C : S))
: C <= b[1] && b[1] <= S
: (k > Dl) ^ (y <= b[0] && b[0] <= w))
) {
var L = yc(g, (-f + _) / p);
return vc(L, u), [b, pc(L)];
}
}
}
function a(t, i) {
var r = n ? e : Dl - e,
s = 0;
return (
t < -r ? (s |= 1) : t > r && (s |= 2),
i < -r ? (s |= 4) : i > r && (s |= 8),
s
);
}
return Bd(
s,
function (e) {
var t, i, l, c, d;
return {
lineStart: function () {
(c = l = !1), (d = 1);
},
point: function (h, u) {
var g,
f = [h, u],
p = s(h, u),
m = n
? p
? 0
: a(h, u)
: p
? a(h + (h < 0 ? Dl : -Dl), u)
: 0;
if (
(!t && (c = l = p) && e.lineStart(),
p !== l &&
(!(g = o(t, f)) || Td(t, g) || Td(f, g)) &&
((f[0] += Ll), (f[1] += Ll), (p = s(f[0], f[1]))),
p !== l)
)
(d = 0),
p
? (e.lineStart(), (g = o(f, t)), e.point(g[0], g[1]))
: ((g = o(t, f)), e.point(g[0], g[1]), e.lineEnd()),
(t = g);
else if (r && t && n ^ p) {
var _;
m & i ||
!(_ = o(f, t, !0)) ||
((d = 0),
n
? (e.lineStart(),
e.point(_[0][0], _[0][1]),
e.point(_[1][0], _[1][1]),
e.lineEnd())
: (e.point(_[1][0], _[1][1]),
e.lineEnd(),
e.lineStart(),
e.point(_[0][0], _[0][1])));
}
!p || (t && Td(t, f)) || e.point(f[0], f[1]),
(t = f),
(l = p),
(i = m);
},
lineEnd: function () {
l && e.lineEnd(), (t = null);
},
clean: function () {
return d | ((c && l) << 1);
},
};
},
function (t, n, r, s) {
Md(s, e, i, r, t, n);
},
n ? [0, -e] : [-Dl, e - Dl]
);
}
var Vd = 1e9,
zd = -Vd;
function Ud(e, t, i, n) {
function r(r, s) {
return e <= r && r <= i && t <= s && s <= n;
}
function s(r, s, a, c) {
var d = 0,
h = 0;
if (
null == r ||
(d = o(r, a)) !== (h = o(s, a)) ||
(l(r, s) < 0) ^ (a > 0)
)
do {
c.point(0 === d || 3 === d ? e : i, d > 1 ? n : t);
} while ((d = (d + a + 4) % 4) !== h);
else c.point(s[0], s[1]);
}
function o(n, r) {
return Al(n[0] - e) < Ll
? r > 0
? 0
: 3
: Al(n[0] - i) < Ll
? r > 0
? 2
: 1
: Al(n[1] - t) < Ll
? r > 0
? 1
: 0
: r > 0
? 3
: 2;
}
function a(e, t) {
return l(e.x, t.x);
}
function l(e, t) {
var i = o(e, 1),
n = o(t, 1);
return i !== n
? i - n
: 0 === i
? t[1] - e[1]
: 1 === i
? e[0] - t[0]
: 2 === i
? e[1] - t[1]
: t[0] - e[0];
}
return function (o) {
var l,
c,
d,
h,
u,
g,
f,
p,
m,
_,
b,
v = o,
y = Ed(),
w = {
point: C,
lineStart: function () {
(w.point = S),
c && c.push((d = [])),
(_ = !0),
(m = !1),
(f = p = NaN);
},
lineEnd: function () {
l && (S(h, u), g && m && y.rejoin(), l.push(y.result())),
(w.point = C),
m && v.lineEnd();
},
polygonStart: function () {
(v = y), (l = []), (c = []), (b = !0);
},
polygonEnd: function () {
var t = (function () {
for (var t = 0, i = 0, r = c.length; i < r; ++i)
for (
var s,
o,
a = c[i],
l = 1,
d = a.length,
h = a[0],
u = h[0],
g = h[1];
l < d;
++l
)
(s = u),
(o = g),
(u = (h = a[l])[0]),
(g = h[1]),
o <= n
? g > n &&
(u - s) * (n - o) > (g - o) * (e - s) &&
++t
: g <= n &&
(u - s) * (n - o) < (g - o) * (e - s) &&
--t;
return t;
})(),
i = b && t,
r = (l = B(l)).length;
(i || r) &&
(o.polygonStart(),
i && (o.lineStart(), s(null, null, 1, o), o.lineEnd()),
r && Od(l, a, t, s, o),
o.polygonEnd()),
(v = o),
(l = c = d = null);
},
};
function C(e, t) {
r(e, t) && v.point(e, t);
}
function S(s, o) {
var a = r(s, o);
if ((c && d.push([s, o]), _))
(h = s),
(u = o),
(g = a),
(_ = !1),
a && (v.lineStart(), v.point(s, o));
else if (a && m) v.point(s, o);
else {
var l = [
(f = Math.max(zd, Math.min(Vd, f))),
(p = Math.max(zd, Math.min(Vd, p))),
],
y = [
(s = Math.max(zd, Math.min(Vd, s))),
(o = Math.max(zd, Math.min(Vd, o))),
];
!(function (e, t, i, n, r, s) {
var o,
a = e[0],
l = e[1],
c = 0,
d = 1,
h = t[0] - a,
u = t[1] - l;
if (((o = i - a), h || !(o > 0))) {
if (((o /= h), h < 0)) {
if (o < c) return;
o < d && (d = o);
} else if (h > 0) {
if (o > d) return;
o > c && (c = o);
}
if (((o = r - a), h || !(o < 0))) {
if (((o /= h), h < 0)) {
if (o > d) return;
o > c && (c = o);
} else if (h > 0) {
if (o < c) return;
o < d && (d = o);
}
if (((o = n - l), u || !(o > 0))) {
if (((o /= u), u < 0)) {
if (o < c) return;
o < d && (d = o);
} else if (u > 0) {
if (o > d) return;
o > c && (c = o);
}
if (((o = s - l), u || !(o < 0))) {
if (((o /= u), u < 0)) {
if (o > d) return;
o > c && (c = o);
} else if (u > 0) {
if (o < c) return;
o < d && (d = o);
}
return (
c > 0 && ((e[0] = a + c * h), (e[1] = l + c * u)),
d < 1 && ((t[0] = a + d * h), (t[1] = l + d * u)),
!0
);
}
}
}
}
})(l, y, e, t, i, n)
? a && (v.lineStart(), v.point(s, o), (b = !1))
: (m || (v.lineStart(), v.point(l[0], l[1])),
v.point(y[0], y[1]),
a || v.lineEnd(),
(b = !1));
}
(f = s), (p = o), (m = a);
}
return w;
};
}
function $d() {
var e,
t,
i,
n = 0,
r = 0,
s = 960,
o = 500;
return (i = {
stream: function (i) {
return e && t === i ? e : (e = Ud(n, r, s, o)((t = i)));
},
extent: function (a) {
return arguments.length
? ((n = +a[0][0]),
(r = +a[0][1]),
(s = +a[1][0]),
(o = +a[1][1]),
(e = t = null),
i)
: [
[n, r],
[s, o],
];
},
});
}
var Kd,
qd,
Gd,
Zd = Cl(),
Jd = {
sphere: Gl,
point: Gl,
lineStart: function () {
(Jd.point = Xd), (Jd.lineEnd = Qd);
},
lineEnd: Gl,
polygonStart: Gl,
polygonEnd: Gl,
};
function Qd() {
Jd.point = Jd.lineEnd = Gl;
}
function Xd(e, t) {
(Kd = e *= Ol), (qd = jl((t *= Ol))), (Gd = Fl(t)), (Jd.point = eh);
}
function eh(e, t) {
e *= Ol;
var i = jl((t *= Ol)),
n = Fl(t),
r = Al(e - Kd),
s = Fl(r),
o = n * jl(r),
a = Gd * i - qd * n * s,
l = qd * i + Gd * n * s;
Zd.add(Pl(zl(o * o + a * a), l)), (Kd = e), (qd = i), (Gd = n);
}
function th(e) {
return Zd.reset(), tc(e, Jd), +Zd;
}
var ih = [null, null],
nh = { type: 'LineString', coordinates: ih };
function rh(e, t) {
return (ih[0] = e), (ih[1] = t), th(nh);
}
var sh = {
Feature: function (e, t) {
return ah(e.geometry, t);
},
FeatureCollection: function (e, t) {
for (var i = e.features, n = -1, r = i.length; ++n < r; )
if (ah(i[n].geometry, t)) return !0;
return !1;
},
},
oh = {
Sphere: function () {
return !0;
},
Point: function (e, t) {
return lh(e.coordinates, t);
},
MultiPoint: function (e, t) {
for (var i = e.coordinates, n = -1, r = i.length; ++n < r; )
if (lh(i[n], t)) return !0;
return !1;
},
LineString: function (e, t) {
return ch(e.coordinates, t);
},
MultiLineString: function (e, t) {
for (var i = e.coordinates, n = -1, r = i.length; ++n < r; )
if (ch(i[n], t)) return !0;
return !1;
},
Polygon: function (e, t) {
return dh(e.coordinates, t);
},
MultiPolygon: function (e, t) {
for (var i = e.coordinates, n = -1, r = i.length; ++n < r; )
if (dh(i[n], t)) return !0;
return !1;
},
GeometryCollection: function (e, t) {
for (var i = e.geometries, n = -1, r = i.length; ++n < r; )
if (ah(i[n], t)) return !0;
return !1;
},
};
function ah(e, t) {
return !(!e || !oh.hasOwnProperty(e.type)) && oh[e.type](e, t);
}
function lh(e, t) {
return 0 === rh(e, t);
}
function ch(e, t) {
for (var i, n, r, s = 0, o = e.length; s < o; s++) {
if (0 === (n = rh(e[s], t))) return !0;
if (
s > 0 &&
(r = rh(e[s], e[s - 1])) > 0 &&
i <= r &&
n <= r &&
(i + n - r) * (1 - Math.pow((i - n) / r, 2)) < Ml * r
)
return !0;
i = n;
}
return !1;
}
function dh(e, t) {
return !!Fd(e.map(hh), uh(t));
}
function hh(e) {
return (e = e.map(uh)).pop(), e;
}
function uh(e) {
return [e[0] * Ol, e[1] * Ol];
}
function gh(e, t) {
return (e && sh.hasOwnProperty(e.type) ? sh[e.type] : ah)(e, t);
}
function fh(e, t, i) {
var n = S(e, t - Ll, i).concat(t);
return function (e) {
return n.map(function (t) {
return [e, t];
});
};
}
function ph(e, t, i) {
var n = S(e, t - Ll, i).concat(t);
return function (e) {
return n.map(function (t) {
return [t, e];
});
};
}
function mh() {
var e,
t,
i,
n,
r,
s,
o,
a,
l,
c,
d,
h,
u = 10,
g = u,
f = 90,
p = 360,
m = 2.5;
function _() {
return { type: 'MultiLineString', coordinates: b() };
}
function b() {
return S(Bl(n / f) * f, i, f)
.map(d)
.concat(S(Bl(a / p) * p, o, p).map(h))
.concat(
S(Bl(t / u) * u, e, u)
.filter(function (e) {
return Al(e % f) > Ll;
})
.map(l)
)
.concat(
S(Bl(s / g) * g, r, g)
.filter(function (e) {
return Al(e % p) > Ll;
})
.map(c)
);
}
return (
(_.lines = function () {
return b().map(function (e) {
return { type: 'LineString', coordinates: e };
});
}),
(_.outline = function () {
return {
type: 'Polygon',
coordinates: [
d(n).concat(
h(o).slice(1),
d(i).reverse().slice(1),
h(a).reverse().slice(1)
),
],
};
}),
(_.extent = function (e) {
return arguments.length
? _.extentMajor(e).extentMinor(e)
: _.extentMinor();
}),
(_.extentMajor = function (e) {
return arguments.length
? ((n = +e[0][0]),
(i = +e[1][0]),
(a = +e[0][1]),
(o = +e[1][1]),
n > i && ((e = n), (n = i), (i = e)),
a > o && ((e = a), (a = o), (o = e)),
_.precision(m))
: [
[n, a],
[i, o],
];
}),
(_.extentMinor = function (i) {
return arguments.length
? ((t = +i[0][0]),
(e = +i[1][0]),
(s = +i[0][1]),
(r = +i[1][1]),
t > e && ((i = t), (t = e), (e = i)),
s > r && ((i = s), (s = r), (r = i)),
_.precision(m))
: [
[t, s],
[e, r],
];
}),
(_.step = function (e) {
return arguments.length
? _.stepMajor(e).stepMinor(e)
: _.stepMinor();
}),
(_.stepMajor = function (e) {
return arguments.length ? ((f = +e[0]), (p = +e[1]), _) : [f, p];
}),
(_.stepMinor = function (e) {
return arguments.length ? ((u = +e[0]), (g = +e[1]), _) : [u, g];
}),
(_.precision = function (u) {
return arguments.length
? ((m = +u),
(l = fh(s, r, 90)),
(c = ph(t, e, m)),
(d = fh(a, o, 90)),
(h = ph(n, i, m)),
_)
: m;
}),
_.extentMajor([
[-180, -89.999999],
[180, 89.999999],
]).extentMinor([
[-180, -80.000001],
[180, 80.000001],
])
);
}
function _h() {
return mh()();
}
function bh(e, t) {
var i = e[0] * Ol,
n = e[1] * Ol,
r = t[0] * Ol,
s = t[1] * Ol,
o = Fl(n),
a = jl(n),
l = Fl(s),
c = jl(s),
d = o * Fl(i),
h = o * jl(i),
u = l * Fl(r),
g = l * jl(r),
f = 2 * Kl(zl(ql(s - n) + o * l * ql(r - i))),
p = jl(f),
m = f
? function (e) {
var t = jl((e *= f)) / p,
i = jl(f - e) / p,
n = i * d + t * u,
r = i * h + t * g,
s = i * a + t * c;
return [Pl(r, n) * Il, Pl(s, zl(n * n + r * r)) * Il];
}
: function () {
return [i * Il, n * Il];
};
return (m.distance = f), m;
}
function vh(e) {
return e;
}
var yh,
wh,
Ch,
Sh,
kh = Cl(),
xh = Cl(),
Lh = {
point: Gl,
lineStart: Gl,
lineEnd: Gl,
polygonStart: function () {
(Lh.lineStart = Mh), (Lh.lineEnd = Eh);
},
polygonEnd: function () {
(Lh.lineStart = Lh.lineEnd = Lh.point = Gl),
kh.add(Al(xh)),
xh.reset();
},
result: function () {
var e = kh / 2;
return kh.reset(), e;
},
};
function Mh() {
Lh.point = Dh;
}
function Dh(e, t) {
(Lh.point = Nh), (yh = Ch = e), (wh = Sh = t);
}
function Nh(e, t) {
xh.add(Sh * e - Ch * t), (Ch = e), (Sh = t);
}
function Eh() {
Nh(yh, wh);
}
const Th = Lh;
var Ih = 1 / 0,
Oh = Ih,
Ah = -Ih,
Rh = Ah;
const Ph = {
point: function (e, t) {
e < Ih && (Ih = e),
e > Ah && (Ah = e),
t < Oh && (Oh = t),
t > Rh && (Rh = t);
},
lineStart: Gl,
lineEnd: Gl,
polygonStart: Gl,
polygonEnd: Gl,
result: function () {
var e = [
[Ih, Oh],
[Ah, Rh],
];
return (Ah = Rh = -(Oh = Ih = 1 / 0)), e;
},
};
var Fh,
Bh,
Wh,
Yh,
Hh = 0,
jh = 0,
Vh = 0,
zh = 0,
Uh = 0,
$h = 0,
Kh = 0,
qh = 0,
Gh = 0,
Zh = {
point: Jh,
lineStart: Qh,
lineEnd: tu,
polygonStart: function () {
(Zh.lineStart = iu), (Zh.lineEnd = nu);
},
polygonEnd: function () {
(Zh.point = Jh), (Zh.lineStart = Qh), (Zh.lineEnd = tu);
},
result: function () {
var e = Gh
? [Kh / Gh, qh / Gh]
: $h
? [zh / $h, Uh / $h]
: Vh
? [Hh / Vh, jh / Vh]
: [NaN, NaN];
return (Hh = jh = Vh = zh = Uh = $h = Kh = qh = Gh = 0), e;
},
};
function Jh(e, t) {
(Hh += e), (jh += t), ++Vh;
}
function Qh() {
Zh.point = Xh;
}
function Xh(e, t) {
(Zh.point = eu), Jh((Wh = e), (Yh = t));
}
function eu(e, t) {
var i = e - Wh,
n = t - Yh,
r = zl(i * i + n * n);
(zh += (r * (Wh + e)) / 2),
(Uh += (r * (Yh + t)) / 2),
($h += r),
Jh((Wh = e), (Yh = t));
}
function tu() {
Zh.point = Jh;
}
function iu() {
Zh.point = ru;
}
function nu() {
su(Fh, Bh);
}
function ru(e, t) {
(Zh.point = su), Jh((Fh = Wh = e), (Bh = Yh = t));
}
function su(e, t) {
var i = e - Wh,
n = t - Yh,
r = zl(i * i + n * n);
(zh += (r * (Wh + e)) / 2),
(Uh += (r * (Yh + t)) / 2),
($h += r),
(Kh += (r = Yh * e - Wh * t) * (Wh + e)),
(qh += r * (Yh + t)),
(Gh += 3 * r),
Jh((Wh = e), (Yh = t));
}
const ou = Zh;
function au(e) {
this._context = e;
}
au.prototype = {
_radius: 4.5,
pointRadius: function (e) {
return (this._radius = e), this;
},
polygonStart: function () {
this._line = 0;
},
polygonEnd: function () {
this._line = NaN;
},
lineStart: function () {
this._point = 0;
},
lineEnd: function () {
0 === this._line && this._context.closePath(), (this._point = NaN);
},
point: function (e, t) {
switch (this._point) {
case 0:
this._context.moveTo(e, t), (this._point = 1);
break;
case 1:
this._context.lineTo(e, t);
break;
default:
this._context.moveTo(e + this._radius, t),
this._context.arc(e, t, this._radius, 0, Tl);
}
},
result: Gl,
};
var lu,
cu,
du,
hu,
uu,
gu = Cl(),
fu = {
point: Gl,
lineStart: function () {
fu.point = pu;
},
lineEnd: function () {
lu && mu(cu, du), (fu.point = Gl);
},
polygonStart: function () {
lu = !0;
},
polygonEnd: function () {
lu = null;
},
result: function () {
var e = +gu;
return gu.reset(), e;
},
};
function pu(e, t) {
(fu.point = mu), (cu = hu = e), (du = uu = t);
}
function mu(e, t) {
(hu -= e),
(uu -= t),
gu.add(zl(hu * hu + uu * uu)),
(hu = e),
(uu = t);
}
const _u = fu;
function bu() {
this._string = [];
}
function vu(e) {
return (
'm0,' +
e +
'a' +
e +
',' +
e +
' 0 1,1 0,' +
-2 * e +
'a' +
e +
',' +
e +
' 0 1,1 0,' +
2 * e +
'z'
);
}
function yu(e, t) {
var i,
n,
r = 4.5;
function s(e) {
return (
e &&
('function' == typeof r &&
n.pointRadius(+r.apply(this, arguments)),
tc(e, i(n))),
n.result()
);
}
return (
(s.area = function (e) {
return tc(e, i(Th)), Th.result();
}),
(s.measure = function (e) {
return tc(e, i(_u)), _u.result();
}),
(s.bounds = function (e) {
return tc(e, i(Ph)), Ph.result();
}),
(s.centroid = function (e) {
return tc(e, i(ou)), ou.result();
}),
(s.projection = function (t) {
return arguments.length
? ((i = null == t ? ((e = null), vh) : (e = t).stream), s)
: e;
}),
(s.context = function (e) {
return arguments.length
? ((n = null == e ? ((t = null), new bu()) : new au((t = e))),
'function' != typeof r && n.pointRadius(r),
s)
: t;
}),
(s.pointRadius = function (e) {
return arguments.length
? ((r = 'function' == typeof e ? e : (n.pointRadius(+e), +e)),
s)
: r;
}),
s.projection(e).context(t)
);
}
function wu(e) {
return { stream: Cu(e) };
}
function Cu(e) {
return function (t) {
var i = new Su();
for (var n in e) i[n] = e[n];
return (i.stream = t), i;
};
}
function Su() {}
function ku(e, t, i) {
var n = e.clipExtent && e.clipExtent();
return (
e.scale(150).translate([0, 0]),
null != n && e.clipExtent(null),
tc(i, e.stream(Ph)),
t(Ph.result()),
null != n && e.clipExtent(n),
e
);
}
function xu(e, t, i) {
return ku(
e,
function (i) {
var n = t[1][0] - t[0][0],
r = t[1][1] - t[0][1],
s = Math.min(n / (i[1][0] - i[0][0]), r / (i[1][1] - i[0][1])),
o = +t[0][0] + (n - s * (i[1][0] + i[0][0])) / 2,
a = +t[0][1] + (r - s * (i[1][1] + i[0][1])) / 2;
e.scale(150 * s).translate([o, a]);
},
i
);
}
function Lu(e, t, i) {
return xu(e, [[0, 0], t], i);
}
function Mu(e, t, i) {
return ku(
e,
function (i) {
var n = +t,
r = n / (i[1][0] - i[0][0]),
s = (n - r * (i[1][0] + i[0][0])) / 2,
o = -r * i[0][1];
e.scale(150 * r).translate([s, o]);
},
i
);
}
function Du(e, t, i) {
return ku(
e,
function (i) {
var n = +t,
r = n / (i[1][1] - i[0][1]),
s = -r * i[0][0],
o = (n - r * (i[1][1] + i[0][1])) / 2;
e.scale(150 * r).translate([s, o]);
},
i
);
}
(bu.prototype = {
_radius: 4.5,
_circle: vu(4.5),
pointRadius: function (e) {
return (
(e = +e) !== this._radius &&
((this._radius = e), (this._circle = null)),
this
);
},
polygonStart: function () {
this._line = 0;
},
polygonEnd: function () {
this._line = NaN;
},
lineStart: function () {
this._point = 0;
},
lineEnd: function () {
0 === this._line && this._string.push('Z'), (this._point = NaN);
},
point: function (e, t) {
switch (this._point) {
case 0:
this._string.push('M', e, ',', t), (this._point = 1);
break;
case 1:
this._string.push('L', e, ',', t);
break;
default:
null == this._circle && (this._circle = vu(this._radius)),
this._string.push('M', e, ',', t, this._circle);
}
},
result: function () {
if (this._string.length) {
var e = this._string.join('');
return (this._string = []), e;
}
return null;
},
}),
(Su.prototype = {
constructor: Su,
point: function (e, t) {
this.stream.point(e, t);
},
sphere: function () {
this.stream.sphere();
},
lineStart: function () {
this.stream.lineStart();
},
lineEnd: function () {
this.stream.lineEnd();
},
polygonStart: function () {
this.stream.polygonStart();
},
polygonEnd: function () {
this.stream.polygonEnd();
},
});
var Nu = Fl(30 * Ol);
function Eu(e, t) {
return +t
? (function (e, t) {
function i(n, r, s, o, a, l, c, d, h, u, g, f, p, m) {
var _ = c - n,
b = d - r,
v = _ * _ + b * b;
if (v > 4 * t && p--) {
var y = o + u,
w = a + g,
C = l + f,
S = zl(y * y + w * w + C * C),
k = Kl((C /= S)),
x =
Al(Al(C) - 1) < Ll || Al(s - h) < Ll
? (s + h) / 2
: Pl(w, y),
L = e(x, k),
M = L[0],
D = L[1],
N = M - n,
E = D - r,
T = b * N - _ * E;
((T * T) / v > t ||
Al((_ * N + b * E) / v - 0.5) > 0.3 ||
o * u + a * g + l * f < Nu) &&
(i(
n,
r,
s,
o,
a,
l,
M,
D,
x,
(y /= S),
(w /= S),
C,
p,
m
),
m.point(M, D),
i(M, D, x, y, w, C, c, d, h, u, g, f, p, m));
}
}
return function (t) {
var n,
r,
s,
o,
a,
l,
c,
d,
h,
u,
g,
f,
p = {
point: m,
lineStart: _,
lineEnd: v,
polygonStart: function () {
t.polygonStart(), (p.lineStart = y);
},
polygonEnd: function () {
t.polygonEnd(), (p.lineStart = _);
},
};
function m(i, n) {
(i = e(i, n)), t.point(i[0], i[1]);
}
function _() {
(d = NaN), (p.point = b), t.lineStart();
}
function b(n, r) {
var s = mc([n, r]),
o = e(n, r);
i(
d,
h,
c,
u,
g,
f,
(d = o[0]),
(h = o[1]),
(c = n),
(u = s[0]),
(g = s[1]),
(f = s[2]),
16,
t
),
t.point(d, h);
}
function v() {
(p.point = m), t.lineEnd();
}
function y() {
_(), (p.point = w), (p.lineEnd = C);
}
function w(e, t) {
b((n = e), t),
(r = d),
(s = h),
(o = u),
(a = g),
(l = f),
(p.point = b);
}
function C() {
i(d, h, c, u, g, f, r, s, n, o, a, l, 16, t),
(p.lineEnd = v),
v();
}
return p;
};
})(e, t)
: (function (e) {
return Cu({
point: function (t, i) {
(t = e(t, i)), this.stream.point(t[0], t[1]);
},
});
})(e);
}
var Tu = Cu({
point: function (e, t) {
this.stream.point(e * Ol, t * Ol);
},
});
function Iu(e, t, i) {
function n(n, r) {
return [t + e * n, i - e * r];
}
return (
(n.invert = function (n, r) {
return [(n - t) / e, (i - r) / e];
}),
n
);
}
function Ou(e, t, i, n) {
var r = Fl(n),
s = jl(n),
o = r * e,
a = s * e,
l = r / e,
c = s / e,
d = (s * i - r * t) / e,
h = (s * t + r * i) / e;
function u(e, n) {
return [o * e - a * n + t, i - a * e - o * n];
}
return (
(u.invert = function (e, t) {
return [l * e - c * t + d, h - c * e - l * t];
}),
u
);
}
function Au(e) {
return Ru(function () {
return e;
})();
}
function Ru(e) {
var t,
i,
n,
r,
s,
o,
a,
l,
c,
d,
h = 150,
u = 480,
g = 250,
f = 0,
p = 0,
m = 0,
_ = 0,
b = 0,
v = 0,
y = null,
w = Hd,
C = null,
S = vh,
k = 0.5;
function x(e) {
return l(e[0] * Ol, e[1] * Ol);
}
function L(e) {
return (e = l.invert(e[0], e[1])) && [e[0] * Il, e[1] * Il];
}
function M() {
var e = Ou(h, 0, 0, v).apply(null, t(f, p)),
n = (v ? Ou : Iu)(h, u - e[0], g - e[1], v);
return (
(i = Cd(m, _, b)),
(a = yd(t, n)),
(l = yd(i, a)),
(o = Eu(a, k)),
D()
);
}
function D() {
return (c = d = null), x;
}
return (
(x.stream = function (e) {
return c && d === e
? c
: (c = Tu(
(function (e) {
return Cu({
point: function (t, i) {
var n = e(t, i);
return this.stream.point(n[0], n[1]);
},
});
})(i)(w(o(S((d = e)))))
));
}),
(x.preclip = function (e) {
return arguments.length ? ((w = e), (y = void 0), D()) : w;
}),
(x.postclip = function (e) {
return arguments.length
? ((S = e), (C = n = r = s = null), D())
: S;
}),
(x.clipAngle = function (e) {
return arguments.length
? ((w = +e ? jd((y = e * Ol)) : ((y = null), Hd)), D())
: y * Il;
}),
(x.clipExtent = function (e) {
return arguments.length
? ((S =
null == e
? ((C = n = r = s = null), vh)
: Ud(
(C = +e[0][0]),
(n = +e[0][1]),
(r = +e[1][0]),
(s = +e[1][1])
)),
D())
: null == C
? null
: [
[C, n],
[r, s],
];
}),
(x.scale = function (e) {
return arguments.length ? ((h = +e), M()) : h;
}),
(x.translate = function (e) {
return arguments.length
? ((u = +e[0]), (g = +e[1]), M())
: [u, g];
}),
(x.center = function (e) {
return arguments.length
? ((f = (e[0] % 360) * Ol), (p = (e[1] % 360) * Ol), M())
: [f * Il, p * Il];
}),
(x.rotate = function (e) {
return arguments.length
? ((m = (e[0] % 360) * Ol),
(_ = (e[1] % 360) * Ol),
(b = e.length > 2 ? (e[2] % 360) * Ol : 0),
M())
: [m * Il, _ * Il, b * Il];
}),
(x.angle = function (e) {
return arguments.length ? ((v = (e % 360) * Ol), M()) : v * Il;
}),
(x.precision = function (e) {
return arguments.length ? ((o = Eu(a, (k = e * e))), D()) : zl(k);
}),
(x.fitExtent = function (e, t) {
return xu(x, e, t);
}),
(x.fitSize = function (e, t) {
return Lu(x, e, t);
}),
(x.fitWidth = function (e, t) {
return Mu(x, e, t);
}),
(x.fitHeight = function (e, t) {
return Du(x, e, t);
}),
function () {
return (
(t = e.apply(this, arguments)), (x.invert = t.invert && L), M()
);
}
);
}
function Pu(e) {
var t = 0,
i = Dl / 3,
n = Ru(e),
r = n(t, i);
return (
(r.parallels = function (e) {
return arguments.length
? n((t = e[0] * Ol), (i = e[1] * Ol))
: [t * Il, i * Il];
}),
r
);
}
function Fu(e, t) {
var i = jl(e),
n = (i + jl(t)) / 2;
if (Al(n) < Ll)
return (function (e) {
var t = Fl(e);
function i(e, i) {
return [e * t, jl(i) / t];
}
return (
(i.invert = function (e, i) {
return [e / t, Kl(i * t)];
}),
i
);
})(e);
var r = 1 + i * (2 * n - i),
s = zl(r) / n;
function o(e, t) {
var i = zl(r - 2 * n * jl(t)) / n;
return [i * jl((e *= n)), s - i * Fl(e)];
}
return (
(o.invert = function (e, t) {
var i = s - t;
return [
(Pl(e, Al(i)) / n) * Vl(i),
Kl((r - (e * e + i * i) * n * n) / (2 * n)),
];
}),
o
);
}
function Bu() {
return Pu(Fu).scale(155.424).center([0, 33.6442]);
}
function Wu() {
return Bu()
.parallels([29.5, 45.5])
.scale(1070)
.translate([480, 250])
.rotate([96, 0])
.center([-0.6, 38.7]);
}
function Yu() {
var e,
t,
i,
n,
r,
s,
o = Wu(),
a = Bu().rotate([154, 0]).center([-2, 58.5]).parallels([55, 65]),
l = Bu().rotate([157, 0]).center([-3, 19.9]).parallels([8, 18]),
c = {
point: function (e, t) {
s = [e, t];
},
};
function d(e) {
var t = e[0],
o = e[1];
return (
(s = null),
i.point(t, o),
s || (n.point(t, o), s) || (r.point(t, o), s)
);
}
function h() {
return (e = t = null), d;
}
return (
(d.invert = function (e) {
var t = o.scale(),
i = o.translate(),
n = (e[0] - i[0]) / t,
r = (e[1] - i[1]) / t;
return (r >= 0.12 && r < 0.234 && n >= -0.425 && n < -0.214
? a
: r >= 0.166 && r < 0.234 && n >= -0.214 && n < -0.115
? l
: o
).invert(e);
}),
(d.stream = function (i) {
return e && t === i
? e
: ((n = [o.stream((t = i)), a.stream(i), l.stream(i)]),
(r = n.length),
(e = {
point: function (e, t) {
for (var i = -1; ++i < r; ) n[i].point(e, t);
},
sphere: function () {
for (var e = -1; ++e < r; ) n[e].sphere();
},
lineStart: function () {
for (var e = -1; ++e < r; ) n[e].lineStart();
},
lineEnd: function () {
for (var e = -1; ++e < r; ) n[e].lineEnd();
},
polygonStart: function () {
for (var e = -1; ++e < r; ) n[e].polygonStart();
},
polygonEnd: function () {
for (var e = -1; ++e < r; ) n[e].polygonEnd();
},
}));
var n, r;
}),
(d.precision = function (e) {
return arguments.length
? (o.precision(e), a.precision(e), l.precision(e), h())
: o.precision();
}),
(d.scale = function (e) {
return arguments.length
? (o.scale(e),
a.scale(0.35 * e),
l.scale(e),
d.translate(o.translate()))
: o.scale();
}),
(d.translate = function (e) {
if (!arguments.length) return o.translate();
var t = o.scale(),
s = +e[0],
d = +e[1];
return (
(i = o
.translate(e)
.clipExtent([
[s - 0.455 * t, d - 0.238 * t],
[s + 0.455 * t, d + 0.238 * t],
])
.stream(c)),
(n = a
.translate([s - 0.307 * t, d + 0.201 * t])
.clipExtent([
[s - 0.425 * t + Ll, d + 0.12 * t + Ll],
[s - 0.214 * t - Ll, d + 0.234 * t - Ll],
])
.stream(c)),
(r = l
.translate([s - 0.205 * t, d + 0.212 * t])
.clipExtent([
[s - 0.214 * t + Ll, d + 0.166 * t + Ll],
[s - 0.115 * t - Ll, d + 0.234 * t - Ll],
])
.stream(c)),
h()
);
}),
(d.fitExtent = function (e, t) {
return xu(d, e, t);
}),
(d.fitSize = function (e, t) {
return Lu(d, e, t);
}),
(d.fitWidth = function (e, t) {
return Mu(d, e, t);
}),
(d.fitHeight = function (e, t) {
return Du(d, e, t);
}),
d.scale(1070)
);
}
function Hu(e) {
return function (t, i) {
var n = Fl(t),
r = Fl(i),
s = e(n * r);
return [s * r * jl(t), s * jl(i)];
};
}
function ju(e) {
return function (t, i) {
var n = zl(t * t + i * i),
r = e(n),
s = jl(r),
o = Fl(r);
return [Pl(t * s, n * o), Kl(n && (i * s) / n)];
};
}
var Vu = Hu(function (e) {
return zl(2 / (1 + e));
});
function zu() {
return Au(Vu).scale(124.75).clipAngle(179.999);
}
Vu.invert = ju(function (e) {
return 2 * Kl(e / 2);
});
var Uu = Hu(function (e) {
return (e = $l(e)) && e / jl(e);
});
function $u() {
return Au(Uu).scale(79.4188).clipAngle(179.999);
}
function Ku(e, t) {
return [e, Yl(Ul((Nl + t) / 2))];
}
function qu() {
return Gu(Ku).scale(961 / Tl);
}
function Gu(e) {
var t,
i,
n,
r = Au(e),
s = r.center,
o = r.scale,
a = r.translate,
l = r.clipExtent,
c = null;
function d() {
var s = Dl * o(),
a = r(Ld(r.rotate()).invert([0, 0]));
return l(
null == c
? [
[a[0] - s, a[1] - s],
[a[0] + s, a[1] + s],
]
: e === Ku
? [
[Math.max(a[0] - s, c), t],
[Math.min(a[0] + s, i), n],
]
: [
[c, Math.max(a[1] - s, t)],
[i, Math.min(a[1] + s, n)],
]
);
}
return (
(r.scale = function (e) {
return arguments.length ? (o(e), d()) : o();
}),
(r.translate = function (e) {
return arguments.length ? (a(e), d()) : a();
}),
(r.center = function (e) {
return arguments.length ? (s(e), d()) : s();
}),
(r.clipExtent = function (e) {
return arguments.length
? (null == e
? (c = t = i = n = null)
: ((c = +e[0][0]),
(t = +e[0][1]),
(i = +e[1][0]),
(n = +e[1][1])),
d())
: null == c
? null
: [
[c, t],
[i, n],
];
}),
d()
);
}
function Zu(e) {
return Ul((Nl + e) / 2);
}
function Ju(e, t) {
var i = Fl(e),
n = e === t ? jl(e) : Yl(i / Fl(t)) / Yl(Zu(t) / Zu(e)),
r = (i * Hl(Zu(e), n)) / n;
if (!n) return Ku;
function s(e, t) {
r > 0
? t < -Nl + Ll && (t = -Nl + Ll)
: t > Nl - Ll && (t = Nl - Ll);
var i = r / Hl(Zu(t), n);
return [i * jl(n * e), r - i * Fl(n * e)];
}
return (
(s.invert = function (e, t) {
var i = r - t,
s = Vl(n) * zl(e * e + i * i);
return [
(Pl(e, Al(i)) / n) * Vl(i),
2 * Rl(Hl(r / s, 1 / n)) - Nl,
];
}),
s
);
}
function Qu() {
return Pu(Ju).scale(109.5).parallels([30, 30]);
}
function Xu(e, t) {
return [e, t];
}
function eg() {
return Au(Xu).scale(152.63);
}
function tg(e, t) {
var i = Fl(e),
n = e === t ? jl(e) : (i - Fl(t)) / (t - e),
r = i / n + e;
if (Al(n) < Ll) return Xu;
function s(e, t) {
var i = r - t,
s = n * e;
return [i * jl(s), r - i * Fl(s)];
}
return (
(s.invert = function (e, t) {
var i = r - t;
return [
(Pl(e, Al(i)) / n) * Vl(i),
r - Vl(n) * zl(e * e + i * i),
];
}),
s
);
}
function ig() {
return Pu(tg).scale(131.154).center([0, 13.9389]);
}
(Uu.invert = ju(function (e) {
return e;
})),
(Ku.invert = function (e, t) {
return [e, 2 * Rl(Wl(t)) - Nl];
}),
(Xu.invert = Xu);
var ng = 1.340264,
rg = -0.081106,
sg = 893e-6,
og = 0.003796,
ag = zl(3) / 2;
function lg(e, t) {
var i = Kl(ag * jl(t)),
n = i * i,
r = n * n * n;
return [
(e * Fl(i)) / (ag * (ng + 3 * rg * n + r * (7 * sg + 9 * og * n))),
i * (ng + rg * n + r * (sg + og * n)),
];
}
function cg() {
return Au(lg).scale(177.158);
}
function dg(e, t) {
var i = Fl(t),
n = Fl(e) * i;
return [(i * jl(e)) / n, jl(t) / n];
}
function hg() {
return Au(dg).scale(144.049).clipAngle(60);
}
function ug(e, t, i, n) {
return 1 === e && 1 === t && 0 === i && 0 === n
? vh
: Cu({
point: function (r, s) {
this.stream.point(r * e + i, s * t + n);
},
});
}
function gg() {
var e,
t,
i,
n,
r,
s,
o = 1,
a = 0,
l = 0,
c = 1,
d = 1,
h = vh,
u = null,
g = vh;
function f() {
return (n = r = null), s;
}
return (s = {
stream: function (e) {
return n && r === e ? n : (n = h(g((r = e))));
},
postclip: function (n) {
return arguments.length
? ((g = n), (u = e = t = i = null), f())
: g;
},
clipExtent: function (n) {
return arguments.length
? ((g =
null == n
? ((u = e = t = i = null), vh)
: Ud(
(u = +n[0][0]),
(e = +n[0][1]),
(t = +n[1][0]),
(i = +n[1][1])
)),
f())
: null == u
? null
: [
[u, e],
[t, i],
];
},
scale: function (e) {
return arguments.length
? ((h = ug((o = +e) * c, o * d, a, l)), f())
: o;
},
translate: function (e) {
return arguments.length
? ((h = ug(o * c, o * d, (a = +e[0]), (l = +e[1]))), f())
: [a, l];
},
reflectX: function (e) {
return arguments.length
? ((h = ug(o * (c = e ? -1 : 1), o * d, a, l)), f())
: c < 0;
},
reflectY: function (e) {
return arguments.length
? ((h = ug(o * c, o * (d = e ? -1 : 1), a, l)), f())
: d < 0;
},
fitExtent: function (e, t) {
return xu(s, e, t);
},
fitSize: function (e, t) {
return Lu(s, e, t);
},
fitWidth: function (e, t) {
return Mu(s, e, t);
},
fitHeight: function (e, t) {
return Du(s, e, t);
},
});
}
function fg(e, t) {
var i = t * t,
n = i * i;
return [
e *
(0.8707 -
0.131979 * i +
n * (n * (0.003971 * i - 0.001529 * n) - 0.013791)),
t *
(1.007226 +
i * (0.015085 + n * (0.028874 * i - 0.044475 - 0.005916 * n))),
];
}
function pg() {
return Au(fg).scale(175.295);
}
function mg(e, t) {
return [Fl(t) * jl(e), jl(t)];
}
function _g() {
return Au(mg).scale(249.5).clipAngle(90.000001);
}
function bg(e, t) {
var i = Fl(t),
n = 1 + Fl(e) * i;
return [(i * jl(e)) / n, jl(t) / n];
}
function vg() {
return Au(bg).scale(250).clipAngle(142);
}
function yg(e, t) {
return [Yl(Ul((Nl + t) / 2)), -e];
}
function wg() {
var e = Gu(yg),
t = e.center,
i = e.rotate;
return (
(e.center = function (e) {
return arguments.length
? t([-e[1], e[0]])
: [(e = t())[1], -e[0]];
}),
(e.rotate = function (e) {
return arguments.length
? i([e[0], e[1], e.length > 2 ? e[2] + 90 : 90])
: [(e = i())[0], e[1], e[2] - 90];
}),
i([0, 0, 90]).scale(159.155)
);
}
function Cg(e, t) {
return e.parent === t.parent ? 1 : 2;
}
function Sg(e, t) {
return e + t.x;
}
function kg(e, t) {
return Math.max(e, t.y);
}
function xg() {
var e = Cg,
t = 1,
i = 1,
n = !1;
function r(r) {
var s,
o = 0;
r.eachAfter(function (t) {
var i = t.children;
i
? ((t.x = (function (e) {
return e.reduce(Sg, 0) / e.length;
})(i)),
(t.y = (function (e) {
return 1 + e.reduce(kg, 0);
})(i)))
: ((t.x = s ? (o += e(t, s)) : 0), (t.y = 0), (s = t));
});
var a = (function (e) {
for (var t; (t = e.children); ) e = t[0];
return e;
})(r),
l = (function (e) {
for (var t; (t = e.children); ) e = t[t.length - 1];
return e;
})(r),
c = a.x - e(a, l) / 2,
d = l.x + e(l, a) / 2;
return r.eachAfter(
n
? function (e) {
(e.x = (e.x - r.x) * t), (e.y = (r.y - e.y) * i);
}
: function (e) {
(e.x = ((e.x - c) / (d - c)) * t),
(e.y = (1 - (r.y ? e.y / r.y : 1)) * i);
}
);
}
return (
(r.separation = function (t) {
return arguments.length ? ((e = t), r) : e;
}),
(r.size = function (e) {
return arguments.length
? ((n = !1), (t = +e[0]), (i = +e[1]), r)
: n
? null
: [t, i];
}),
(r.nodeSize = function (e) {
return arguments.length
? ((n = !0), (t = +e[0]), (i = +e[1]), r)
: n
? [t, i]
: null;
}),
r
);
}
function Lg(e) {
var t = 0,
i = e.children,
n = i && i.length;
if (n) for (; --n >= 0; ) t += i[n].value;
else t = 1;
e.value = t;
}
function Mg(e, t) {
var i,
n,
r,
s,
o,
a = new Tg(e),
l = +e.value && (a.value = e.value),
c = [a];
for (null == t && (t = Dg); (i = c.pop()); )
if (
(l && (i.value = +i.data.value),
(r = t(i.data)) && (o = r.length))
)
for (i.children = new Array(o), s = o - 1; s >= 0; --s)
c.push((n = i.children[s] = new Tg(r[s]))),
(n.parent = i),
(n.depth = i.depth + 1);
return a.eachBefore(Eg);
}
function Dg(e) {
return e.children;
}
function Ng(e) {
e.data = e.data.data;
}
function Eg(e) {
var t = 0;
do {
e.height = t;
} while ((e = e.parent) && e.height < ++t);
}
function Tg(e) {
(this.data = e), (this.depth = this.height = 0), (this.parent = null);
}
(lg.invert = function (e, t) {
for (
var i, n = t, r = n * n, s = r * r * r, o = 0;
o < 12 &&
((s =
(r =
(n -= i =
(n * (ng + rg * r + s * (sg + og * r)) - t) /
(ng + 3 * rg * r + s * (7 * sg + 9 * og * r))) * n) *
r *
r),
!(Al(i) < Ml));
++o
);
return [
(ag * e * (ng + 3 * rg * r + s * (7 * sg + 9 * og * r))) / Fl(n),
Kl(jl(n) / ag),
];
}),
(dg.invert = ju(Rl)),
(fg.invert = function (e, t) {
var i,
n = t,
r = 25;
do {
var s = n * n,
o = s * s;
n -= i =
(n *
(1.007226 +
s *
(0.015085 +
o * (0.028874 * s - 0.044475 - 0.005916 * o))) -
t) /
(1.007226 +
s *
(0.045255 +
o * (0.259866 * s - 0.311325 - 0.005916 * 11 * o)));
} while (Al(i) > Ll && --r > 0);
return [
e /
(0.8707 +
(s = n * n) *
(s * (s * s * s * (0.003971 - 0.001529 * s) - 0.013791) -
0.131979)),
n,
];
}),
(mg.invert = ju(Kl)),
(bg.invert = ju(function (e) {
return 2 * Rl(e);
})),
(yg.invert = function (e, t) {
return [-t, 2 * Rl(Wl(e)) - Nl];
}),
(Tg.prototype = Mg.prototype = {
constructor: Tg,
count: function () {
return this.eachAfter(Lg);
},
each: function (e) {
var t,
i,
n,
r,
s = this,
o = [s];
do {
for (t = o.reverse(), o = []; (s = t.pop()); )
if ((e(s), (i = s.children)))
for (n = 0, r = i.length; n < r; ++n) o.push(i[n]);
} while (o.length);
return this;
},
eachAfter: function (e) {
for (var t, i, n, r = this, s = [r], o = []; (r = s.pop()); )
if ((o.push(r), (t = r.children)))
for (i = 0, n = t.length; i < n; ++i) s.push(t[i]);
for (; (r = o.pop()); ) e(r);
return this;
},
eachBefore: function (e) {
for (var t, i, n = this, r = [n]; (n = r.pop()); )
if ((e(n), (t = n.children)))
for (i = t.length - 1; i >= 0; --i) r.push(t[i]);
return this;
},
sum: function (e) {
return this.eachAfter(function (t) {
for (
var i = +e(t.data) || 0, n = t.children, r = n && n.length;
--r >= 0;
)
i += n[r].value;
t.value = i;
});
},
sort: function (e) {
return this.eachBefore(function (t) {
t.children && t.children.sort(e);
});
},
path: function (e) {
for (
var t = this,
i = (function (e, t) {
if (e === t) return e;
var i = e.ancestors(),
n = t.ancestors(),
r = null;
for (e = i.pop(), t = n.pop(); e === t; )
(r = e), (e = i.pop()), (t = n.pop());
return r;
})(t, e),
n = [t];
t !== i;
)
(t = t.parent), n.push(t);
for (var r = n.length; e !== i; )
n.splice(r, 0, e), (e = e.parent);
return n;
},
ancestors: function () {
for (var e = this, t = [e]; (e = e.parent); ) t.push(e);
return t;
},
descendants: function () {
var e = [];
return (
this.each(function (t) {
e.push(t);
}),
e
);
},
leaves: function () {
var e = [];
return (
this.eachBefore(function (t) {
t.children || e.push(t);
}),
e
);
},
links: function () {
var e = this,
t = [];
return (
e.each(function (i) {
i !== e && t.push({ source: i.parent, target: i });
}),
t
);
},
copy: function () {
return Mg(this).eachBefore(Ng);
},
});
var Ig = Array.prototype.slice;
function Og(e) {
for (
var t,
i,
n = 0,
r = (e = (function (e) {
for (var t, i, n = e.length; n; )
(i = (Math.random() * n--) | 0),
(t = e[n]),
(e[n] = e[i]),
(e[i] = t);
return e;
})(Ig.call(e))).length,
s = [];
n < r;
)
(t = e[n]),
i && Pg(i, t) ? ++n : ((i = Bg((s = Ag(s, t)))), (n = 0));
return i;
}
function Ag(e, t) {
var i, n;
if (Fg(t, e)) return [t];
for (i = 0; i < e.length; ++i)
if (Rg(t, e[i]) && Fg(Wg(e[i], t), e)) return [e[i], t];
for (i = 0; i < e.length - 1; ++i)
for (n = i + 1; n < e.length; ++n)
if (
Rg(Wg(e[i], e[n]), t) &&
Rg(Wg(e[i], t), e[n]) &&
Rg(Wg(e[n], t), e[i]) &&
Fg(Yg(e[i], e[n], t), e)
)
return [e[i], e[n], t];
throw new Error();
}
function Rg(e, t) {
var i = e.r - t.r,
n = t.x - e.x,
r = t.y - e.y;
return i < 0 || i * i < n * n + r * r;
}
function Pg(e, t) {
var i = e.r - t.r + 1e-6,
n = t.x - e.x,
r = t.y - e.y;
return i > 0 && i * i > n * n + r * r;
}
function Fg(e, t) {
for (var i = 0; i < t.length; ++i) if (!Pg(e, t[i])) return !1;
return !0;
}
function Bg(e) {
switch (e.length) {
case 1:
return (function (e) {
return { x: e.x, y: e.y, r: e.r };
})(e[0]);
case 2:
return Wg(e[0], e[1]);
case 3:
return Yg(e[0], e[1], e[2]);
}
}
function Wg(e, t) {
var i = e.x,
n = e.y,
r = e.r,
s = t.x,
o = t.y,
a = t.r,
l = s - i,
c = o - n,
d = a - r,
h = Math.sqrt(l * l + c * c);
return {
x: (i + s + (l / h) * d) / 2,
y: (n + o + (c / h) * d) / 2,
r: (h + r + a) / 2,
};
}
function Yg(e, t, i) {
var n = e.x,
r = e.y,
s = e.r,
o = t.x,
a = t.y,
l = t.r,
c = i.x,
d = i.y,
h = i.r,
u = n - o,
g = n - c,
f = r - a,
p = r - d,
m = l - s,
_ = h - s,
b = n * n + r * r - s * s,
v = b - o * o - a * a + l * l,
y = b - c * c - d * d + h * h,
w = g * f - u * p,
C = (f * y - p * v) / (2 * w) - n,
S = (p * m - f * _) / w,
k = (g * v - u * y) / (2 * w) - r,
x = (u * _ - g * m) / w,
L = S * S + x * x - 1,
M = 2 * (s + C * S + k * x),
D = C * C + k * k - s * s,
N = -(L ? (M + Math.sqrt(M * M - 4 * L * D)) / (2 * L) : D / M);
return { x: n + C + S * N, y: r + k + x * N, r: N };
}
function Hg(e, t, i) {
var n,
r,
s,
o,
a = e.x - t.x,
l = e.y - t.y,
c = a * a + l * l;
c
? ((r = t.r + i.r),
(r *= r),
(o = e.r + i.r),
r > (o *= o)
? ((n = (c + o - r) / (2 * c)),
(s = Math.sqrt(Math.max(0, o / c - n * n))),
(i.x = e.x - n * a - s * l),
(i.y = e.y - n * l + s * a))
: ((n = (c + r - o) / (2 * c)),
(s = Math.sqrt(Math.max(0, r / c - n * n))),
(i.x = t.x + n * a - s * l),
(i.y = t.y + n * l + s * a)))
: ((i.x = t.x + i.r), (i.y = t.y));
}
function jg(e, t) {
var i = e.r + t.r - 1e-6,
n = t.x - e.x,
r = t.y - e.y;
return i > 0 && i * i > n * n + r * r;
}
function Vg(e) {
var t = e._,
i = e.next._,
n = t.r + i.r,
r = (t.x * i.r + i.x * t.r) / n,
s = (t.y * i.r + i.y * t.r) / n;
return r * r + s * s;
}
function zg(e) {
(this._ = e), (this.next = null), (this.previous = null);
}
function Ug(e) {
if (!(r = e.length)) return 0;
var t, i, n, r, s, o, a, l, c, d, h;
if ((((t = e[0]).x = 0), (t.y = 0), !(r > 1))) return t.r;
if (((i = e[1]), (t.x = -i.r), (i.x = t.r), (i.y = 0), !(r > 2)))
return t.r + i.r;
Hg(i, t, (n = e[2])),
(t = new zg(t)),
(i = new zg(i)),
(n = new zg(n)),
(t.next = n.previous = i),
(i.next = t.previous = n),
(n.next = i.previous = t);
e: for (a = 3; a < r; ++a) {
Hg(t._, i._, (n = e[a])),
(n = new zg(n)),
(l = i.next),
(c = t.previous),
(d = i._.r),
(h = t._.r);
do {
if (d <= h) {
if (jg(l._, n._)) {
(i = l), (t.next = i), (i.previous = t), --a;
continue e;
}
(d += l._.r), (l = l.next);
} else {
if (jg(c._, n._)) {
((t = c).next = i), (i.previous = t), --a;
continue e;
}
(h += c._.r), (c = c.previous);
}
} while (l !== c.next);
for (
n.previous = t,
n.next = i,
t.next = i.previous = i = n,
s = Vg(t);
(n = n.next) !== i;
)
(o = Vg(n)) < s && ((t = n), (s = o));
i = t.next;
}
for (t = [i._], n = i; (n = n.next) !== i; ) t.push(n._);
for (n = Og(t), a = 0; a < r; ++a)
((t = e[a]).x -= n.x), (t.y -= n.y);
return n.r;
}
function $g(e) {
return Ug(e), e;
}
function Kg(e) {
return null == e ? null : qg(e);
}
function qg(e) {
if ('function' != typeof e) throw new Error();
return e;
}
function Gg() {
return 0;
}
function Zg(e) {
return function () {
return e;
};
}
function Jg(e) {
return Math.sqrt(e.value);
}
function Qg() {
var e = null,
t = 1,
i = 1,
n = Gg;
function r(r) {
return (
(r.x = t / 2),
(r.y = i / 2),
e
? r.eachBefore(Xg(e)).eachAfter(ef(n, 0.5)).eachBefore(tf(1))
: r
.eachBefore(Xg(Jg))
.eachAfter(ef(Gg, 1))
.eachAfter(ef(n, r.r / Math.min(t, i)))
.eachBefore(tf(Math.min(t, i) / (2 * r.r))),
r
);
}
return (
(r.radius = function (t) {
return arguments.length ? ((e = Kg(t)), r) : e;
}),
(r.size = function (e) {
return arguments.length ? ((t = +e[0]), (i = +e[1]), r) : [t, i];
}),
(r.padding = function (e) {
return arguments.length
? ((n = 'function' == typeof e ? e : Zg(+e)), r)
: n;
}),
r
);
}
function Xg(e) {
return function (t) {
t.children || (t.r = Math.max(0, +e(t) || 0));
};
}
function ef(e, t) {
return function (i) {
if ((n = i.children)) {
var n,
r,
s,
o = n.length,
a = e(i) * t || 0;
if (a) for (r = 0; r < o; ++r) n[r].r += a;
if (((s = Ug(n)), a)) for (r = 0; r < o; ++r) n[r].r -= a;
i.r = s + a;
}
};
}
function tf(e) {
return function (t) {
var i = t.parent;
(t.r *= e), i && ((t.x = i.x + e * t.x), (t.y = i.y + e * t.y));
};
}
function nf(e) {
(e.x0 = Math.round(e.x0)),
(e.y0 = Math.round(e.y0)),
(e.x1 = Math.round(e.x1)),
(e.y1 = Math.round(e.y1));
}
function rf(e, t, i, n, r) {
for (
var s,
o = e.children,
a = -1,
l = o.length,
c = e.value && (n - t) / e.value;
++a < l;
)
((s = o[a]).y0 = i),
(s.y1 = r),
(s.x0 = t),
(s.x1 = t += s.value * c);
}
function sf() {
var e = 1,
t = 1,
i = 0,
n = !1;
function r(r) {
var s = r.height + 1;
return (
(r.x0 = r.y0 = i),
(r.x1 = e),
(r.y1 = t / s),
r.eachBefore(
(function (e, t) {
return function (n) {
n.children &&
rf(
n,
n.x0,
(e * (n.depth + 1)) / t,
n.x1,
(e * (n.depth + 2)) / t
);
var r = n.x0,
s = n.y0,
o = n.x1 - i,
a = n.y1 - i;
o < r && (r = o = (r + o) / 2),
a < s && (s = a = (s + a) / 2),
(n.x0 = r),
(n.y0 = s),
(n.x1 = o),
(n.y1 = a);
};
})(t, s)
),
n && r.eachBefore(nf),
r
);
}
return (
(r.round = function (e) {
return arguments.length ? ((n = !!e), r) : n;
}),
(r.size = function (i) {
return arguments.length ? ((e = +i[0]), (t = +i[1]), r) : [e, t];
}),
(r.padding = function (e) {
return arguments.length ? ((i = +e), r) : i;
}),
r
);
}
var of = { depth: -1 },
af = {};
function lf(e) {
return e.id;
}
function cf(e) {
return e.parentId;
}
function df() {
var e = lf,
t = cf;
function i(i) {
var n,
r,
s,
o,
a,
l,
c,
d = i.length,
h = new Array(d),
u = {};
for (r = 0; r < d; ++r)
(n = i[r]),
(a = h[r] = new Tg(n)),
null != (l = e(n, r, i)) &&
(l += '') &&
(u[(c = '$' + (a.id = l))] = c in u ? af : a);
for (r = 0; r < d; ++r)
if (((a = h[r]), null != (l = t(i[r], r, i)) && (l += ''))) {
if (!(o = u['$' + l])) throw new Error('missing: ' + l);
if (o === af) throw new Error('ambiguous: ' + l);
o.children ? o.children.push(a) : (o.children = [a]),
(a.parent = o);
} else {
if (s) throw new Error('multiple roots');
s = a;
}
if (!s) throw new Error('no root');
if (
((s.parent = of),
s
.eachBefore(function (e) {
(e.depth = e.parent.depth + 1), --d;
})
.eachBefore(Eg),
(s.parent = null),
d > 0)
)
throw new Error('cycle');
return s;
}
return (
(i.id = function (t) {
return arguments.length ? ((e = qg(t)), i) : e;
}),
(i.parentId = function (e) {
return arguments.length ? ((t = qg(e)), i) : t;
}),
i
);
}
function hf(e, t) {
return e.parent === t.parent ? 1 : 2;
}
function uf(e) {
var t = e.children;
return t ? t[0] : e.t;
}
function gf(e) {
var t = e.children;
return t ? t[t.length - 1] : e.t;
}
function ff(e, t, i) {
var n = i / (t.i - e.i);
(t.c -= n), (t.s += i), (e.c += n), (t.z += i), (t.m += i);
}
function pf(e, t, i) {
return e.a.parent === t.parent ? e.a : i;
}
function mf(e, t) {
(this._ = e),
(this.parent = null),
(this.children = null),
(this.A = null),
(this.a = this),
(this.z = 0),
(this.m = 0),
(this.c = 0),
(this.s = 0),
(this.t = null),
(this.i = t);
}
function _f() {
var e = hf,
t = 1,
i = 1,
n = null;
function r(r) {
var l = (function (e) {
for (
var t, i, n, r, s, o = new mf(e, 0), a = [o];
(t = a.pop());
)
if ((n = t._.children))
for (
t.children = new Array((s = n.length)), r = s - 1;
r >= 0;
--r
)
a.push((i = t.children[r] = new mf(n[r], r))),
(i.parent = t);
return ((o.parent = new mf(null, 0)).children = [o]), o;
})(r);
if ((l.eachAfter(s), (l.parent.m = -l.z), l.eachBefore(o), n))
r.eachBefore(a);
else {
var c = r,
d = r,
h = r;
r.eachBefore(function (e) {
e.x < c.x && (c = e),
e.x > d.x && (d = e),
e.depth > h.depth && (h = e);
});
var u = c === d ? 1 : e(c, d) / 2,
g = u - c.x,
f = t / (d.x + u + g),
p = i / (h.depth || 1);
r.eachBefore(function (e) {
(e.x = (e.x + g) * f), (e.y = e.depth * p);
});
}
return r;
}
function s(t) {
var i = t.children,
n = t.parent.children,
r = t.i ? n[t.i - 1] : null;
if (i) {
!(function (e) {
for (
var t, i = 0, n = 0, r = e.children, s = r.length;
--s >= 0;
)
((t = r[s]).z += i), (t.m += i), (i += t.s + (n += t.c));
})(t);
var s = (i[0].z + i[i.length - 1].z) / 2;
r ? ((t.z = r.z + e(t._, r._)), (t.m = t.z - s)) : (t.z = s);
} else r && (t.z = r.z + e(t._, r._));
t.parent.A = (function (t, i, n) {
if (i) {
for (
var r,
s = t,
o = t,
a = i,
l = s.parent.children[0],
c = s.m,
d = o.m,
h = a.m,
u = l.m;
(a = gf(a)), (s = uf(s)), a && s;
)
(l = uf(l)),
((o = gf(o)).a = t),
(r = a.z + h - s.z - c + e(a._, s._)) > 0 &&
(ff(pf(a, t, n), t, r), (c += r), (d += r)),
(h += a.m),
(c += s.m),
(u += l.m),
(d += o.m);
a && !gf(o) && ((o.t = a), (o.m += h - d)),
s && !uf(l) && ((l.t = s), (l.m += c - u), (n = t));
}
return n;
})(t, r, t.parent.A || n[0]);
}
function o(e) {
(e._.x = e.z + e.parent.m), (e.m += e.parent.m);
}
function a(e) {
(e.x *= t), (e.y = e.depth * i);
}
return (
(r.separation = function (t) {
return arguments.length ? ((e = t), r) : e;
}),
(r.size = function (e) {
return arguments.length
? ((n = !1), (t = +e[0]), (i = +e[1]), r)
: n
? null
: [t, i];
}),
(r.nodeSize = function (e) {
return arguments.length
? ((n = !0), (t = +e[0]), (i = +e[1]), r)
: n
? [t, i]
: null;
}),
r
);
}
function bf(e, t, i, n, r) {
for (
var s,
o = e.children,
a = -1,
l = o.length,
c = e.value && (r - i) / e.value;
++a < l;
)
((s = o[a]).x0 = t),
(s.x1 = n),
(s.y0 = i),
(s.y1 = i += s.value * c);
}
mf.prototype = Object.create(Tg.prototype);
var vf = (1 + Math.sqrt(5)) / 2;
function yf(e, t, i, n, r, s) {
for (
var o,
a,
l,
c,
d,
h,
u,
g,
f,
p,
m,
_ = [],
b = t.children,
v = 0,
y = 0,
w = b.length,
C = t.value;
v < w;
) {
(l = r - i), (c = s - n);
do {
d = b[y++].value;
} while (!d && y < w);
for (
h = u = d,
m = d * d * (p = Math.max(c / l, l / c) / (C * e)),
f = Math.max(u / m, m / h);
y < w;
++y
) {
if (
((d += a = b[y].value),
a < h && (h = a),
a > u && (u = a),
(m = d * d * p),
(g = Math.max(u / m, m / h)) > f)
) {
d -= a;
break;
}
f = g;
}
_.push((o = { value: d, dice: l < c, children: b.slice(v, y) })),
o.dice
? rf(o, i, n, r, C ? (n += (c * d) / C) : s)
: bf(o, i, n, C ? (i += (l * d) / C) : r, s),
(C -= d),
(v = y);
}
return _;
}
const wf = (function e(t) {
function i(e, i, n, r, s) {
yf(t, e, i, n, r, s);
}
return (
(i.ratio = function (t) {
return e((t = +t) > 1 ? t : 1);
}),
i
);
})(vf);
function Cf() {
var e = wf,
t = !1,
i = 1,
n = 1,
r = [0],
s = Gg,
o = Gg,
a = Gg,
l = Gg,
c = Gg;
function d(e) {
return (
(e.x0 = e.y0 = 0),
(e.x1 = i),
(e.y1 = n),
e.eachBefore(h),
(r = [0]),
t && e.eachBefore(nf),
e
);
}
function h(t) {
var i = r[t.depth],
n = t.x0 + i,
d = t.y0 + i,
h = t.x1 - i,
u = t.y1 - i;
h < n && (n = h = (n + h) / 2),
u < d && (d = u = (d + u) / 2),
(t.x0 = n),
(t.y0 = d),
(t.x1 = h),
(t.y1 = u),
t.children &&
((i = r[t.depth + 1] = s(t) / 2),
(n += c(t) - i),
(d += o(t) - i),
(h -= a(t) - i) < n && (n = h = (n + h) / 2),
(u -= l(t) - i) < d && (d = u = (d + u) / 2),
e(t, n, d, h, u));
}
return (
(d.round = function (e) {
return arguments.length ? ((t = !!e), d) : t;
}),
(d.size = function (e) {
return arguments.length ? ((i = +e[0]), (n = +e[1]), d) : [i, n];
}),
(d.tile = function (t) {
return arguments.length ? ((e = qg(t)), d) : e;
}),
(d.padding = function (e) {
return arguments.length
? d.paddingInner(e).paddingOuter(e)
: d.paddingInner();
}),
(d.paddingInner = function (e) {
return arguments.length
? ((s = 'function' == typeof e ? e : Zg(+e)), d)
: s;
}),
(d.paddingOuter = function (e) {
return arguments.length
? d
.paddingTop(e)
.paddingRight(e)
.paddingBottom(e)
.paddingLeft(e)
: d.paddingTop();
}),
(d.paddingTop = function (e) {
return arguments.length
? ((o = 'function' == typeof e ? e : Zg(+e)), d)
: o;
}),
(d.paddingRight = function (e) {
return arguments.length
? ((a = 'function' == typeof e ? e : Zg(+e)), d)
: a;
}),
(d.paddingBottom = function (e) {
return arguments.length
? ((l = 'function' == typeof e ? e : Zg(+e)), d)
: l;
}),
(d.paddingLeft = function (e) {
return arguments.length
? ((c = 'function' == typeof e ? e : Zg(+e)), d)
: c;
}),
d
);
}
function Sf(e, t, i, n, r) {
var s,
o,
a = e.children,
l = a.length,
c = new Array(l + 1);
for (c[0] = o = s = 0; s < l; ++s) c[s + 1] = o += a[s].value;
!(function e(t, i, n, r, s, o, l) {
if (t >= i - 1) {
var d = a[t];
return (d.x0 = r), (d.y0 = s), (d.x1 = o), void (d.y1 = l);
}
for (var h = c[t], u = n / 2 + h, g = t + 1, f = i - 1; g < f; ) {
var p = (g + f) >>> 1;
c[p] < u ? (g = p + 1) : (f = p);
}
u - c[g - 1] < c[g] - u && t + 1 < g && --g;
var m = c[g] - h,
_ = n - m;
if (o - r > l - s) {
var b = (r * _ + o * m) / n;
e(t, g, m, r, s, b, l), e(g, i, _, b, s, o, l);
} else {
var v = (s * _ + l * m) / n;
e(t, g, m, r, s, o, v), e(g, i, _, r, v, o, l);
}
})(0, l, e.value, t, i, n, r);
}
function kf(e, t, i, n, r) {
(1 & e.depth ? bf : rf)(e, t, i, n, r);
}
const xf = (function e(t) {
function i(e, i, n, r, s) {
if ((o = e._squarify) && o.ratio === t)
for (
var o, a, l, c, d, h = -1, u = o.length, g = e.value;
++h < u;
) {
for (
l = (a = o[h]).children, c = a.value = 0, d = l.length;
c < d;
++c
)
a.value += l[c].value;
a.dice
? rf(a, i, n, r, (n += ((s - n) * a.value) / g))
: bf(a, i, n, (i += ((r - i) * a.value) / g), s),
(g -= a.value);
}
else (e._squarify = o = yf(t, e, i, n, r, s)), (o.ratio = t);
}
return (
(i.ratio = function (t) {
return e((t = +t) > 1 ? t : 1);
}),
i
);
})(vf);
function Lf(e) {
var t = e.length;
return function (i) {
return e[Math.max(0, Math.min(t - 1, Math.floor(i * t)))];
};
}
function Mf(e, t) {
var i = ui(+e, +t);
return function (e) {
var t = i(e);
return t - 360 * Math.floor(t / 360);
};
}
function Df(e, t) {
return (
(e = +e),
(t = +t),
function (i) {
return Math.round(e * (1 - i) + t * i);
}
);
}
var Nf = Math.SQRT2;
function Ef(e) {
return ((e = Math.exp(e)) + 1 / e) / 2;
}
function Tf(e, t) {
var i,
n,
r = e[0],
s = e[1],
o = e[2],
a = t[0],
l = t[1],
c = t[2],
d = a - r,
h = l - s,
u = d * d + h * h;
if (u < 1e-12)
(n = Math.log(c / o) / Nf),
(i = function (e) {
return [r + e * d, s + e * h, o * Math.exp(Nf * e * n)];
});
else {
var g = Math.sqrt(u),
f = (c * c - o * o + 4 * u) / (2 * o * 2 * g),
p = (c * c - o * o - 4 * u) / (2 * c * 2 * g),
m = Math.log(Math.sqrt(f * f + 1) - f),
_ = Math.log(Math.sqrt(p * p + 1) - p);
(n = (_ - m) / Nf),
(i = function (e) {
var t,
i = e * n,
a = Ef(m),
l =
(o / (2 * g)) *
(a *
((t = Nf * i + m),
((t = Math.exp(2 * t)) - 1) / (t + 1)) -
(function (e) {
return ((e = Math.exp(e)) - 1 / e) / 2;
})(m));
return [r + l * d, s + l * h, (o * a) / Ef(Nf * i + m)];
});
}
return (i.duration = 1e3 * n), i;
}
function If(e) {
return function (t, i) {
var n = e((t = ri(t)).h, (i = ri(i)).h),
r = gi(t.s, i.s),
s = gi(t.l, i.l),
o = gi(t.opacity, i.opacity);
return function (e) {
return (
(t.h = n(e)),
(t.s = r(e)),
(t.l = s(e)),
(t.opacity = o(e)),
t + ''
);
};
};
}
const Of = If(ui);
var Af = If(gi);
function Rf(e, t) {
var i = gi((e = ks(e)).l, (t = ks(t)).l),
n = gi(e.a, t.a),
r = gi(e.b, t.b),
s = gi(e.opacity, t.opacity);
return function (t) {
return (
(e.l = i(t)),
(e.a = n(t)),
(e.b = r(t)),
(e.opacity = s(t)),
e + ''
);
};
}
function Pf(e) {
return function (t, i) {
var n = e((t = Is(t)).h, (i = Is(i)).h),
r = gi(t.c, i.c),
s = gi(t.l, i.l),
o = gi(t.opacity, i.opacity);
return function (e) {
return (
(t.h = n(e)),
(t.c = r(e)),
(t.l = s(e)),
(t.opacity = o(e)),
t + ''
);
};
};
}
const Ff = Pf(ui);
var Bf = Pf(gi);
function Wf(e) {
return (function t(i) {
function n(t, n) {
var r = e((t = zs(t)).h, (n = zs(n)).h),
s = gi(t.s, n.s),
o = gi(t.l, n.l),
a = gi(t.opacity, n.opacity);
return function (e) {
return (
(t.h = r(e)),
(t.s = s(e)),
(t.l = o(Math.pow(e, i))),
(t.opacity = a(e)),
t + ''
);
};
}
return (i = +i), (n.gamma = t), n;
})(1);
}
const Yf = Wf(ui);
var Hf = Wf(gi);
function jf(e, t) {
for (
var i = 0, n = t.length - 1, r = t[0], s = new Array(n < 0 ? 0 : n);
i < n;
)
s[i] = e(r, (r = t[++i]));
return function (e) {
var t = Math.max(0, Math.min(n - 1, Math.floor((e *= n))));
return s[t](e - t);
};
}
function Vf(e, t) {
for (var i = new Array(t), n = 0; n < t; ++n) i[n] = e(n / (t - 1));
return i;
}
function zf(e) {
for (var t, i = -1, n = e.length, r = e[n - 1], s = 0; ++i < n; )
(t = r), (r = e[i]), (s += t[1] * r[0] - t[0] * r[1]);
return s / 2;
}
function Uf(e) {
for (
var t, i, n = -1, r = e.length, s = 0, o = 0, a = e[r - 1], l = 0;
++n < r;
)
(t = a),
(a = e[n]),
(l += i = t[0] * a[1] - a[0] * t[1]),
(s += (t[0] + a[0]) * i),
(o += (t[1] + a[1]) * i);
return [s / (l *= 3), o / l];
}
function $f(e, t, i) {
return (t[0] - e[0]) * (i[1] - e[1]) - (t[1] - e[1]) * (i[0] - e[0]);
}
function Kf(e, t) {
return e[0] - t[0] || e[1] - t[1];
}
function qf(e) {
for (var t = e.length, i = [0, 1], n = 2, r = 2; r < t; ++r) {
for (; n > 1 && $f(e[i[n - 2]], e[i[n - 1]], e[r]) <= 0; ) --n;
i[n++] = r;
}
return i.slice(0, n);
}
function Gf(e) {
if ((i = e.length) < 3) return null;
var t,
i,
n = new Array(i),
r = new Array(i);
for (t = 0; t < i; ++t) n[t] = [+e[t][0], +e[t][1], t];
for (n.sort(Kf), t = 0; t < i; ++t) r[t] = [n[t][0], -n[t][1]];
var s = qf(n),
o = qf(r),
a = o[0] === s[0],
l = o[o.length - 1] === s[s.length - 1],
c = [];
for (t = s.length - 1; t >= 0; --t) c.push(e[n[s[t]][2]]);
for (t = +a; t < o.length - l; ++t) c.push(e[n[o[t]][2]]);
return c;
}
function Zf(e, t) {
for (
var i,
n,
r = e.length,
s = e[r - 1],
o = t[0],
a = t[1],
l = s[0],
c = s[1],
d = !1,
h = 0;
h < r;
++h
)
(i = (s = e[h])[0]),
(n = s[1]) > a != c > a &&
o < ((l - i) * (a - n)) / (c - n) + i &&
(d = !d),
(l = i),
(c = n);
return d;
}
function Jf(e) {
for (
var t,
i,
n = -1,
r = e.length,
s = e[r - 1],
o = s[0],
a = s[1],
l = 0;
++n < r;
)
(t = o),
(i = a),
(t -= o = (s = e[n])[0]),
(i -= a = s[1]),
(l += Math.sqrt(t * t + i * i));
return l;
}
function Qf() {
return Math.random();
}
const Xf = (function e(t) {
function i(e, i) {
return (
(e = null == e ? 0 : +e),
(i = null == i ? 1 : +i),
1 === arguments.length ? ((i = e), (e = 0)) : (i -= e),
function () {
return t() * i + e;
}
);
}
return (i.source = e), i;
})(Qf),
ep = (function e(t) {
function i(e, i) {
var n, r;
return (
(e = null == e ? 0 : +e),
(i = null == i ? 1 : +i),
function () {
var s;
if (null != n) (s = n), (n = null);
else
do {
(n = 2 * t() - 1), (s = 2 * t() - 1), (r = n * n + s * s);
} while (!r || r > 1);
return e + i * s * Math.sqrt((-2 * Math.log(r)) / r);
}
);
}
return (i.source = e), i;
})(Qf),
tp = (function e(t) {
function i() {
var e = ep.source(t).apply(this, arguments);
return function () {
return Math.exp(e());
};
}
return (i.source = e), i;
})(Qf),
ip = (function e(t) {
function i(e) {
return function () {
for (var i = 0, n = 0; n < e; ++n) i += t();
return i;
};
}
return (i.source = e), i;
})(Qf),
np = (function e(t) {
function i(e) {
var i = ip.source(t)(e);
return function () {
return i() / e;
};
}
return (i.source = e), i;
})(Qf),
rp = (function e(t) {
function i(e) {
return function () {
return -Math.log(1 - t()) / e;
};
}
return (i.source = e), i;
})(Qf);
function sp(e, t) {
switch (arguments.length) {
case 0:
break;
case 1:
this.range(e);
break;
default:
this.range(t).domain(e);
}
return this;
}
function op(e, t) {
switch (arguments.length) {
case 0:
break;
case 1:
this.interpolator(e);
break;
default:
this.interpolator(t).domain(e);
}
return this;
}
var ap = Array.prototype,
lp = ap.map,
cp = ap.slice,
dp = { name: 'implicit' };
function hp() {
var e = is(),
t = [],
i = [],
n = dp;
function r(r) {
var s = r + '',
o = e.get(s);
if (!o) {
if (n !== dp) return n;
e.set(s, (o = t.push(r)));
}
return i[(o - 1) % i.length];
}
return (
(r.domain = function (i) {
if (!arguments.length) return t.slice();
(t = []), (e = is());
for (var n, s, o = -1, a = i.length; ++o < a; )
e.has((s = (n = i[o]) + '')) || e.set(s, t.push(n));
return r;
}),
(r.range = function (e) {
return arguments.length ? ((i = cp.call(e)), r) : i.slice();
}),
(r.unknown = function (e) {
return arguments.length ? ((n = e), r) : n;
}),
(r.copy = function () {
return hp(t, i).unknown(n);
}),
sp.apply(r, arguments),
r
);
}
function up() {
var e,
t,
i = hp().unknown(void 0),
n = i.domain,
r = i.range,
s = [0, 1],
o = !1,
a = 0,
l = 0,
c = 0.5;
function d() {
var i = n().length,
d = s[1] < s[0],
h = s[d - 0],
u = s[1 - d];
(e = (u - h) / Math.max(1, i - a + 2 * l)),
o && (e = Math.floor(e)),
(h += (u - h - e * (i - a)) * c),
(t = e * (1 - a)),
o && ((h = Math.round(h)), (t = Math.round(t)));
var g = S(i).map(function (t) {
return h + e * t;
});
return r(d ? g.reverse() : g);
}
return (
delete i.unknown,
(i.domain = function (e) {
return arguments.length ? (n(e), d()) : n();
}),
(i.range = function (e) {
return arguments.length ? ((s = [+e[0], +e[1]]), d()) : s.slice();
}),
(i.rangeRound = function (e) {
return (s = [+e[0], +e[1]]), (o = !0), d();
}),
(i.bandwidth = function () {
return t;
}),
(i.step = function () {
return e;
}),
(i.round = function (e) {
return arguments.length ? ((o = !!e), d()) : o;
}),
(i.padding = function (e) {
return arguments.length ? ((a = Math.min(1, (l = +e))), d()) : a;
}),
(i.paddingInner = function (e) {
return arguments.length ? ((a = Math.min(1, e)), d()) : a;
}),
(i.paddingOuter = function (e) {
return arguments.length ? ((l = +e), d()) : l;
}),
(i.align = function (e) {
return arguments.length
? ((c = Math.max(0, Math.min(1, e))), d())
: c;
}),
(i.copy = function () {
return up(n(), s)
.round(o)
.paddingInner(a)
.paddingOuter(l)
.align(c);
}),
sp.apply(d(), arguments)
);
}
function gp(e) {
var t = e.copy;
return (
(e.padding = e.paddingOuter),
delete e.paddingInner,
delete e.paddingOuter,
(e.copy = function () {
return gp(t());
}),
e
);
}
function fp() {
return gp(up.apply(null, arguments).paddingInner(1));
}
function pp(e) {
return +e;
}
var mp = [0, 1];
function _p(e) {
return e;
}
function bp(e, t) {
return (t -= e = +e)
? function (i) {
return (i - e) / t;
}
: ((i = isNaN(t) ? NaN : 0.5),
function () {
return i;
});
var i;
}
function vp(e) {
var t,
i = e[0],
n = e[e.length - 1];
return (
i > n && ((t = i), (i = n), (n = t)),
function (e) {
return Math.max(i, Math.min(n, e));
}
);
}
function yp(e, t, i) {
var n = e[0],
r = e[1],
s = t[0],
o = t[1];
return (
r < n
? ((n = bp(r, n)), (s = i(o, s)))
: ((n = bp(n, r)), (s = i(s, o))),
function (e) {
return s(n(e));
}
);
}
function wp(e, t, i) {
var n = Math.min(e.length, t.length) - 1,
r = new Array(n),
s = new Array(n),
o = -1;
for (
e[n] < e[0] &&
((e = e.slice().reverse()), (t = t.slice().reverse()));
++o < n;
)
(r[o] = bp(e[o], e[o + 1])), (s[o] = i(t[o], t[o + 1]));
return function (t) {
var i = c(e, t, 1, n) - 1;
return s[i](r[i](t));
};
}
function Cp(e, t) {
return t
.domain(e.domain())
.range(e.range())
.interpolate(e.interpolate())
.clamp(e.clamp())
.unknown(e.unknown());
}
function Sp() {
var e,
t,
i,
n,
r,
s,
o = mp,
a = mp,
l = Di,
c = _p;
function d() {
return (
(n = Math.min(o.length, a.length) > 2 ? wp : yp),
(r = s = null),
h
);
}
function h(t) {
return isNaN((t = +t))
? i
: (r || (r = n(o.map(e), a, l)))(e(c(t)));
}
return (
(h.invert = function (i) {
return c(t((s || (s = n(a, o.map(e), Si)))(i)));
}),
(h.domain = function (e) {
return arguments.length
? ((o = lp.call(e, pp)), c === _p || (c = vp(o)), d())
: o.slice();
}),
(h.range = function (e) {
return arguments.length ? ((a = cp.call(e)), d()) : a.slice();
}),
(h.rangeRound = function (e) {
return (a = cp.call(e)), (l = Df), d();
}),
(h.clamp = function (e) {
return arguments.length ? ((c = e ? vp(o) : _p), h) : c !== _p;
}),
(h.interpolate = function (e) {
return arguments.length ? ((l = e), d()) : l;
}),
(h.unknown = function (e) {
return arguments.length ? ((i = e), h) : i;
}),
function (i, n) {
return (e = i), (t = n), d();
}
);
}
function kp(e, t) {
return Sp()(e, t);
}
function xp(e, t, i, n) {
var r,
s = N(e, t, i);
switch ((n = al(null == n ? ',f' : n)).type) {
case 's':
var o = Math.max(Math.abs(e), Math.abs(t));
return (
null != n.precision ||
isNaN((r = yl(s, o))) ||
(n.precision = r),
fl(n, o)
);
case '':
case 'e':
case 'g':
case 'p':
case 'r':
null != n.precision ||
isNaN((r = wl(s, Math.max(Math.abs(e), Math.abs(t))))) ||
(n.precision = r - ('e' === n.type));
break;
case 'f':
case '%':
null != n.precision ||
isNaN((r = vl(s))) ||
(n.precision = r - 2 * ('%' === n.type));
}
return gl(n);
}
function Lp(e) {
var t = e.domain;
return (
(e.ticks = function (e) {
var i = t();
return M(i[0], i[i.length - 1], null == e ? 10 : e);
}),
(e.tickFormat = function (e, i) {
var n = t();
return xp(n[0], n[n.length - 1], null == e ? 10 : e, i);
}),
(e.nice = function (i) {
null == i && (i = 10);
var n,
r = t(),
s = 0,
o = r.length - 1,
a = r[s],
l = r[o];
return (
l < a && ((n = a), (a = l), (l = n), (n = s), (s = o), (o = n)),
(n = D(a, l, i)) > 0
? (n = D(
(a = Math.floor(a / n) * n),
(l = Math.ceil(l / n) * n),
i
))
: n < 0 &&
(n = D(
(a = Math.ceil(a * n) / n),
(l = Math.floor(l * n) / n),
i
)),
n > 0
? ((r[s] = Math.floor(a / n) * n),
(r[o] = Math.ceil(l / n) * n),
t(r))
: n < 0 &&
((r[s] = Math.ceil(a * n) / n),
(r[o] = Math.floor(l * n) / n),
t(r)),
e
);
}),
e
);
}
function Mp() {
var e = kp(_p, _p);
return (
(e.copy = function () {
return Cp(e, Mp());
}),
sp.apply(e, arguments),
Lp(e)
);
}
function Dp(e) {
var t;
function i(e) {
return isNaN((e = +e)) ? t : e;
}
return (
(i.invert = i),
(i.domain = i.range = function (t) {
return arguments.length ? ((e = lp.call(t, pp)), i) : e.slice();
}),
(i.unknown = function (e) {
return arguments.length ? ((t = e), i) : t;
}),
(i.copy = function () {
return Dp(e).unknown(t);
}),
(e = arguments.length ? lp.call(e, pp) : [0, 1]),
Lp(i)
);
}
function Np(e, t) {
var i,
n = 0,
r = (e = e.slice()).length - 1,
s = e[n],
o = e[r];
return (
o < s && ((i = n), (n = r), (r = i), (i = s), (s = o), (o = i)),
(e[n] = t.floor(s)),
(e[r] = t.ceil(o)),
e
);
}
function Ep(e) {
return Math.log(e);
}
function Tp(e) {
return Math.exp(e);
}
function Ip(e) {
return -Math.log(-e);
}
function Op(e) {
return -Math.exp(-e);
}
function Ap(e) {
return isFinite(e) ? +('1e' + e) : e < 0 ? 0 : e;
}
function Rp(e) {
return function (t) {
return -e(-t);
};
}
function Pp(e) {
var t,
i,
n = e(Ep, Tp),
r = n.domain,
s = 10;
function o() {
return (
(t = (function (e) {
return e === Math.E
? Math.log
: (10 === e && Math.log10) ||
(2 === e && Math.log2) ||
((e = Math.log(e)),
function (t) {
return Math.log(t) / e;
});
})(s)),
(i = (function (e) {
return 10 === e
? Ap
: e === Math.E
? Math.exp
: function (t) {
return Math.pow(e, t);
};
})(s)),
r()[0] < 0 ? ((t = Rp(t)), (i = Rp(i)), e(Ip, Op)) : e(Ep, Tp),
n
);
}
return (
(n.base = function (e) {
return arguments.length ? ((s = +e), o()) : s;
}),
(n.domain = function (e) {
return arguments.length ? (r(e), o()) : r();
}),
(n.ticks = function (e) {
var n,
o = r(),
a = o[0],
l = o[o.length - 1];
(n = l < a) && ((u = a), (a = l), (l = u));
var c,
d,
h,
u = t(a),
g = t(l),
f = null == e ? 10 : +e,
p = [];
if (!(s % 1) && g - u < f) {
if (((u = Math.round(u) - 1), (g = Math.round(g) + 1), a > 0)) {
for (; u < g; ++u)
for (d = 1, c = i(u); d < s; ++d)
if (!((h = c * d) < a)) {
if (h > l) break;
p.push(h);
}
} else
for (; u < g; ++u)
for (d = s - 1, c = i(u); d >= 1; --d)
if (!((h = c * d) < a)) {
if (h > l) break;
p.push(h);
}
} else p = M(u, g, Math.min(g - u, f)).map(i);
return n ? p.reverse() : p;
}),
(n.tickFormat = function (e, r) {
if (
(null == r && (r = 10 === s ? '.0e' : ','),
'function' != typeof r && (r = gl(r)),
e === 1 / 0)
)
return r;
null == e && (e = 10);
var o = Math.max(1, (s * e) / n.ticks().length);
return function (e) {
var n = e / i(Math.round(t(e)));
return n * s < s - 0.5 && (n *= s), n <= o ? r(e) : '';
};
}),
(n.nice = function () {
return r(
Np(r(), {
floor: function (e) {
return i(Math.floor(t(e)));
},
ceil: function (e) {
return i(Math.ceil(t(e)));
},
})
);
}),
n
);
}
function Fp() {
var e = Pp(Sp()).domain([1, 10]);
return (
(e.copy = function () {
return Cp(e, Fp()).base(e.base());
}),
sp.apply(e, arguments),
e
);
}
function Bp(e) {
return function (t) {
return Math.sign(t) * Math.log1p(Math.abs(t / e));
};
}
function Wp(e) {
return function (t) {
return Math.sign(t) * Math.expm1(Math.abs(t)) * e;
};
}
function Yp(e) {
var t = 1,
i = e(Bp(t), Wp(t));
return (
(i.constant = function (i) {
return arguments.length ? e(Bp((t = +i)), Wp(t)) : t;
}),
Lp(i)
);
}
function Hp() {
var e = Yp(Sp());
return (
(e.copy = function () {
return Cp(e, Hp()).constant(e.constant());
}),
sp.apply(e, arguments)
);
}
function jp(e) {
return function (t) {
return t < 0 ? -Math.pow(-t, e) : Math.pow(t, e);
};
}
function Vp(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
function zp(e) {
return e < 0 ? -e * e : e * e;
}
function Up(e) {
var t = e(_p, _p),
i = 1;
function n() {
return 1 === i
? e(_p, _p)
: 0.5 === i
? e(Vp, zp)
: e(jp(i), jp(1 / i));
}
return (
(t.exponent = function (e) {
return arguments.length ? ((i = +e), n()) : i;
}),
Lp(t)
);
}
function $p() {
var e = Up(Sp());
return (
(e.copy = function () {
return Cp(e, $p()).exponent(e.exponent());
}),
sp.apply(e, arguments),
e
);
}
function Kp() {
return $p.apply(null, arguments).exponent(0.5);
}
function qp() {
var e,
t = [],
i = [],
n = [];
function s() {
var e = 0,
r = Math.max(1, i.length);
for (n = new Array(r - 1); ++e < r; ) n[e - 1] = I(t, e / r);
return o;
}
function o(t) {
return isNaN((t = +t)) ? e : i[c(n, t)];
}
return (
(o.invertExtent = function (e) {
var r = i.indexOf(e);
return r < 0
? [NaN, NaN]
: [
r > 0 ? n[r - 1] : t[0],
r < n.length ? n[r] : t[t.length - 1],
];
}),
(o.domain = function (e) {
if (!arguments.length) return t.slice();
t = [];
for (var i, n = 0, o = e.length; n < o; ++n)
null == (i = e[n]) || isNaN((i = +i)) || t.push(i);
return t.sort(r), s();
}),
(o.range = function (e) {
return arguments.length ? ((i = cp.call(e)), s()) : i.slice();
}),
(o.unknown = function (t) {
return arguments.length ? ((e = t), o) : e;
}),
(o.quantiles = function () {
return n.slice();
}),
(o.copy = function () {
return qp().domain(t).range(i).unknown(e);
}),
sp.apply(o, arguments)
);
}
function Gp() {
var e,
t = 0,
i = 1,
n = 1,
r = [0.5],
s = [0, 1];
function o(t) {
return t <= t ? s[c(r, t, 0, n)] : e;
}
function a() {
var e = -1;
for (r = new Array(n); ++e < n; )
r[e] = ((e + 1) * i - (e - n) * t) / (n + 1);
return o;
}
return (
(o.domain = function (e) {
return arguments.length
? ((t = +e[0]), (i = +e[1]), a())
: [t, i];
}),
(o.range = function (e) {
return arguments.length
? ((n = (s = cp.call(e)).length - 1), a())
: s.slice();
}),
(o.invertExtent = function (e) {
var o = s.indexOf(e);
return o < 0
? [NaN, NaN]
: o < 1
? [t, r[0]]
: o >= n
? [r[n - 1], i]
: [r[o - 1], r[o]];
}),
(o.unknown = function (t) {
return arguments.length ? ((e = t), o) : o;
}),
(o.thresholds = function () {
return r.slice();
}),
(o.copy = function () {
return Gp().domain([t, i]).range(s).unknown(e);
}),
sp.apply(Lp(o), arguments)
);
}
function Zp() {
var e,
t = [0.5],
i = [0, 1],
n = 1;
function r(r) {
return r <= r ? i[c(t, r, 0, n)] : e;
}
return (
(r.domain = function (e) {
return arguments.length
? ((t = cp.call(e)), (n = Math.min(t.length, i.length - 1)), r)
: t.slice();
}),
(r.range = function (e) {
return arguments.length
? ((i = cp.call(e)), (n = Math.min(t.length, i.length - 1)), r)
: i.slice();
}),
(r.invertExtent = function (e) {
var n = i.indexOf(e);
return [t[n - 1], t[n]];
}),
(r.unknown = function (t) {
return arguments.length ? ((e = t), r) : e;
}),
(r.copy = function () {
return Zp().domain(t).range(i).unknown(e);
}),
sp.apply(r, arguments)
);
}
var Jp = new Date(),
Qp = new Date();
function Xp(e, t, i, n) {
function r(t) {
return (
e((t = 0 === arguments.length ? new Date() : new Date(+t))), t
);
}
return (
(r.floor = function (t) {
return e((t = new Date(+t))), t;
}),
(r.ceil = function (i) {
return e((i = new Date(i - 1))), t(i, 1), e(i), i;
}),
(r.round = function (e) {
var t = r(e),
i = r.ceil(e);
return e - t < i - e ? t : i;
}),
(r.offset = function (e, i) {
return t((e = new Date(+e)), null == i ? 1 : Math.floor(i)), e;
}),
(r.range = function (i, n, s) {
var o,
a = [];
if (
((i = r.ceil(i)),
(s = null == s ? 1 : Math.floor(s)),
!(i < n && s > 0))
)
return a;
do {
a.push((o = new Date(+i))), t(i, s), e(i);
} while (o < i && i < n);
return a;
}),
(r.filter = function (i) {
return Xp(
function (t) {
if (t >= t) for (; e(t), !i(t); ) t.setTime(t - 1);
},
function (e, n) {
if (e >= e)
if (n < 0) for (; ++n <= 0; ) for (; t(e, -1), !i(e); );
else for (; --n >= 0; ) for (; t(e, 1), !i(e); );
}
);
}),
i &&
((r.count = function (t, n) {
return (
Jp.setTime(+t),
Qp.setTime(+n),
e(Jp),
e(Qp),
Math.floor(i(Jp, Qp))
);
}),
(r.every = function (e) {
return (
(e = Math.floor(e)),
isFinite(e) && e > 0
? e > 1
? r.filter(
n
? function (t) {
return n(t) % e == 0;
}
: function (t) {
return r.count(0, t) % e == 0;
}
)
: r
: null
);
})),
r
);
}
var em = Xp(
function (e) {
e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
},
function (e, t) {
e.setFullYear(e.getFullYear() + t);
},
function (e, t) {
return t.getFullYear() - e.getFullYear();
},
function (e) {
return e.getFullYear();
}
);
em.every = function (e) {
return isFinite((e = Math.floor(e))) && e > 0
? Xp(
function (t) {
t.setFullYear(Math.floor(t.getFullYear() / e) * e),
t.setMonth(0, 1),
t.setHours(0, 0, 0, 0);
},
function (t, i) {
t.setFullYear(t.getFullYear() + i * e);
}
)
: null;
};
const tm = em;
var im = em.range,
nm = Xp(
function (e) {
e.setDate(1), e.setHours(0, 0, 0, 0);
},
function (e, t) {
e.setMonth(e.getMonth() + t);
},
function (e, t) {
return (
t.getMonth() -
e.getMonth() +
12 * (t.getFullYear() - e.getFullYear())
);
},
function (e) {
return e.getMonth();
}
);
const rm = nm;
var sm = nm.range,
om = 1e3,
am = 6e4,
lm = 36e5,
cm = 864e5,
dm = 6048e5;
function hm(e) {
return Xp(
function (t) {
t.setDate(t.getDate() - ((t.getDay() + 7 - e) % 7)),
t.setHours(0, 0, 0, 0);
},
function (e, t) {
e.setDate(e.getDate() + 7 * t);
},
function (e, t) {
return (
(t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * am) /
dm
);
}
);
}
var um = hm(0),
gm = hm(1),
fm = hm(2),
pm = hm(3),
mm = hm(4),
_m = hm(5),
bm = hm(6),
vm = um.range,
ym = gm.range,
wm = fm.range,
Cm = pm.range,
Sm = mm.range,
km = _m.range,
xm = bm.range,
Lm = Xp(
function (e) {
e.setHours(0, 0, 0, 0);
},
function (e, t) {
e.setDate(e.getDate() + t);
},
function (e, t) {
return (
(t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * am) /
cm
);
},
function (e) {
return e.getDate() - 1;
}
);
const Mm = Lm;
var Dm = Lm.range,
Nm = Xp(
function (e) {
e.setTime(
e -
e.getMilliseconds() -
e.getSeconds() * om -
e.getMinutes() * am
);
},
function (e, t) {
e.setTime(+e + t * lm);
},
function (e, t) {
return (t - e) / lm;
},
function (e) {
return e.getHours();
}
);
const Em = Nm;
var Tm = Nm.range,
Im = Xp(
function (e) {
e.setTime(e - e.getMilliseconds() - e.getSeconds() * om);
},
function (e, t) {
e.setTime(+e + t * am);
},
function (e, t) {
return (t - e) / am;
},
function (e) {
return e.getMinutes();
}
);
const Om = Im;
var Am = Im.range,
Rm = Xp(
function (e) {
e.setTime(e - e.getMilliseconds());
},
function (e, t) {
e.setTime(+e + t * om);
},
function (e, t) {
return (t - e) / om;
},
function (e) {
return e.getUTCSeconds();
}
);
const Pm = Rm;
var Fm = Rm.range,
Bm = Xp(
function () {},
function (e, t) {
e.setTime(+e + t);
},
function (e, t) {
return t - e;
}
);
Bm.every = function (e) {
return (
(e = Math.floor(e)),
isFinite(e) && e > 0
? e > 1
? Xp(
function (t) {
t.setTime(Math.floor(t / e) * e);
},
function (t, i) {
t.setTime(+t + i * e);
},
function (t, i) {
return (i - t) / e;
}
)
: Bm
: null
);
};
const Wm = Bm;
var Ym = Bm.range;
function Hm(e) {
return Xp(
function (t) {
t.setUTCDate(t.getUTCDate() - ((t.getUTCDay() + 7 - e) % 7)),
t.setUTCHours(0, 0, 0, 0);
},
function (e, t) {
e.setUTCDate(e.getUTCDate() + 7 * t);
},
function (e, t) {
return (t - e) / dm;
}
);
}
var jm = Hm(0),
Vm = Hm(1),
zm = Hm(2),
Um = Hm(3),
$m = Hm(4),
Km = Hm(5),
qm = Hm(6),
Gm = jm.range,
Zm = Vm.range,
Jm = zm.range,
Qm = Um.range,
Xm = $m.range,
e_ = Km.range,
t_ = qm.range,
i_ = Xp(
function (e) {
e.setUTCHours(0, 0, 0, 0);
},
function (e, t) {
e.setUTCDate(e.getUTCDate() + t);
},
function (e, t) {
return (t - e) / cm;
},
function (e) {
return e.getUTCDate() - 1;
}
);
const n_ = i_;
var r_ = i_.range,
s_ = Xp(
function (e) {
e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
},
function (e, t) {
e.setUTCFullYear(e.getUTCFullYear() + t);
},
function (e, t) {
return t.getUTCFullYear() - e.getUTCFullYear();
},
function (e) {
return e.getUTCFullYear();
}
);
s_.every = function (e) {
return isFinite((e = Math.floor(e))) && e > 0
? Xp(
function (t) {
t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e),
t.setUTCMonth(0, 1),
t.setUTCHours(0, 0, 0, 0);
},
function (t, i) {
t.setUTCFullYear(t.getUTCFullYear() + i * e);
}
)
: null;
};
const o_ = s_;
var a_ = s_.range;
function l_(e) {
if (0 <= e.y && e.y < 100) {
var t = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
return t.setFullYear(e.y), t;
}
return new Date(e.y, e.m, e.d, e.H, e.M, e.S, e.L);
}
function c_(e) {
if (0 <= e.y && e.y < 100) {
var t = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L));
return t.setUTCFullYear(e.y), t;
}
return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L));
}
function d_(e, t, i) {
return { y: e, m: t, d: i, H: 0, M: 0, S: 0, L: 0 };
}
function h_(e) {
var t = e.dateTime,
i = e.date,
n = e.time,
r = e.periods,
s = e.days,
o = e.shortDays,
a = e.months,
l = e.shortMonths,
c = S_(r),
d = k_(r),
h = S_(s),
u = k_(s),
g = S_(o),
f = k_(o),
p = S_(a),
m = k_(a),
_ = S_(l),
b = k_(l),
v = {
a: function (e) {
return o[e.getDay()];
},
A: function (e) {
return s[e.getDay()];
},
b: function (e) {
return l[e.getMonth()];
},
B: function (e) {
return a[e.getMonth()];
},
c: null,
d: U_,
e: U_,
f: Z_,
H: $_,
I: K_,
j: q_,
L: G_,
m: J_,
M: Q_,
p: function (e) {
return r[+(e.getHours() >= 12)];
},
q: function (e) {
return 1 + ~~(e.getMonth() / 3);
},
Q: Lb,
s: Mb,
S: X_,
u: eb,
U: tb,
V: ib,
w: nb,
W: rb,
x: null,
X: null,
y: sb,
Y: ob,
Z: ab,
'%': xb,
},
y = {
a: function (e) {
return o[e.getUTCDay()];
},
A: function (e) {
return s[e.getUTCDay()];
},
b: function (e) {
return l[e.getUTCMonth()];
},
B: function (e) {
return a[e.getUTCMonth()];
},
c: null,
d: lb,
e: lb,
f: gb,
H: cb,
I: db,
j: hb,
L: ub,
m: fb,
M: pb,
p: function (e) {
return r[+(e.getUTCHours() >= 12)];
},
q: function (e) {
return 1 + ~~(e.getUTCMonth() / 3);
},
Q: Lb,
s: Mb,
S: mb,
u: _b,
U: bb,
V: vb,
w: yb,
W: wb,
x: null,
X: null,
y: Cb,
Y: Sb,
Z: kb,
'%': xb,
},
w = {
a: function (e, t, i) {
var n = g.exec(t.slice(i));
return n
? ((e.w = f[n[0].toLowerCase()]), i + n[0].length)
: -1;
},
A: function (e, t, i) {
var n = h.exec(t.slice(i));
return n
? ((e.w = u[n[0].toLowerCase()]), i + n[0].length)
: -1;
},
b: function (e, t, i) {
var n = _.exec(t.slice(i));
return n
? ((e.m = b[n[0].toLowerCase()]), i + n[0].length)
: -1;
},
B: function (e, t, i) {
var n = p.exec(t.slice(i));
return n
? ((e.m = m[n[0].toLowerCase()]), i + n[0].length)
: -1;
},
c: function (e, i, n) {
return k(e, t, i, n);
},
d: R_,
e: R_,
f: H_,
H: F_,
I: F_,
j: P_,
L: Y_,
m: A_,
M: B_,
p: function (e, t, i) {
var n = c.exec(t.slice(i));
return n
? ((e.p = d[n[0].toLowerCase()]), i + n[0].length)
: -1;
},
q: O_,
Q: V_,
s: z_,
S: W_,
u: L_,
U: M_,
V: D_,
w: x_,
W: N_,
x: function (e, t, n) {
return k(e, i, t, n);
},
X: function (e, t, i) {
return k(e, n, t, i);
},
y: T_,
Y: E_,
Z: I_,
'%': j_,
};
function C(e, t) {
return function (i) {
var n,
r,
s,
o = [],
a = -1,
l = 0,
c = e.length;
for (i instanceof Date || (i = new Date(+i)); ++a < c; )
37 === e.charCodeAt(a) &&
(o.push(e.slice(l, a)),
null != (r = __[(n = e.charAt(++a))])
? (n = e.charAt(++a))
: (r = 'e' === n ? ' ' : '0'),
(s = t[n]) && (n = s(i, r)),
o.push(n),
(l = a + 1));
return o.push(e.slice(l, a)), o.join('');
};
}
function S(e, t) {
return function (i) {
var n,
r,
s = d_(1900, void 0, 1);
if (k(s, e, (i += ''), 0) != i.length) return null;
if ('Q' in s) return new Date(s.Q);
if ('s' in s) return new Date(1e3 * s.s + ('L' in s ? s.L : 0));
if (
(t && !('Z' in s) && (s.Z = 0),
'p' in s && (s.H = (s.H % 12) + 12 * s.p),
void 0 === s.m && (s.m = 'q' in s ? s.q : 0),
'V' in s)
) {
if (s.V < 1 || s.V > 53) return null;
'w' in s || (s.w = 1),
'Z' in s
? ((r = (n = c_(d_(s.y, 0, 1))).getUTCDay()),
(n = r > 4 || 0 === r ? Vm.ceil(n) : Vm(n)),
(n = n_.offset(n, 7 * (s.V - 1))),
(s.y = n.getUTCFullYear()),
(s.m = n.getUTCMonth()),
(s.d = n.getUTCDate() + ((s.w + 6) % 7)))
: ((r = (n = l_(d_(s.y, 0, 1))).getDay()),
(n = r > 4 || 0 === r ? gm.ceil(n) : gm(n)),
(n = Mm.offset(n, 7 * (s.V - 1))),
(s.y = n.getFullYear()),
(s.m = n.getMonth()),
(s.d = n.getDate() + ((s.w + 6) % 7)));
} else
('W' in s || 'U' in s) &&
('w' in s || (s.w = 'u' in s ? s.u % 7 : 'W' in s ? 1 : 0),
(r =
'Z' in s
? c_(d_(s.y, 0, 1)).getUTCDay()
: l_(d_(s.y, 0, 1)).getDay()),
(s.m = 0),
(s.d =
'W' in s
? ((s.w + 6) % 7) + 7 * s.W - ((r + 5) % 7)
: s.w + 7 * s.U - ((r + 6) % 7)));
return 'Z' in s
? ((s.H += (s.Z / 100) | 0), (s.M += s.Z % 100), c_(s))
: l_(s);
};
}
function k(e, t, i, n) {
for (var r, s, o = 0, a = t.length, l = i.length; o < a; ) {
if (n >= l) return -1;
if (37 === (r = t.charCodeAt(o++))) {
if (
((r = t.charAt(o++)),
!(s = w[r in __ ? t.charAt(o++) : r]) || (n = s(e, i, n)) < 0)
)
return -1;
} else if (r != i.charCodeAt(n++)) return -1;
}
return n;
}
return (
(v.x = C(i, v)),
(v.X = C(n, v)),
(v.c = C(t, v)),
(y.x = C(i, y)),
(y.X = C(n, y)),
(y.c = C(t, y)),
{
format: function (e) {
var t = C((e += ''), v);
return (
(t.toString = function () {
return e;
}),
t
);
},
parse: function (e) {
var t = S((e += ''), !1);
return (
(t.toString = function () {
return e;
}),
t
);
},
utcFormat: function (e) {
var t = C((e += ''), y);
return (
(t.toString = function () {
return e;
}),
t
);
},
utcParse: function (e) {
var t = S((e += ''), !0);
return (
(t.toString = function () {
return e;
}),
t
);
},
}
);
}
var u_,
g_,
f_,
p_,
m_,
__ = { '-': '', _: ' ', 0: '0' },
b_ = /^\s*\d+/,
v_ = /^%/,
y_ = /[\\^$*+?|[\]().{}]/g;
function w_(e, t, i) {
var n = e < 0 ? '-' : '',
r = (n ? -e : e) + '',
s = r.length;
return n + (s < i ? new Array(i - s + 1).join(t) + r : r);
}
function C_(e) {
return e.replace(y_, '\\$&');
}
function S_(e) {
return new RegExp('^(?:' + e.map(C_).join('|') + ')', 'i');
}
function k_(e) {
for (var t = {}, i = -1, n = e.length; ++i < n; )
t[e[i].toLowerCase()] = i;
return t;
}
function x_(e, t, i) {
var n = b_.exec(t.slice(i, i + 1));
return n ? ((e.w = +n[0]), i + n[0].length) : -1;
}
function L_(e, t, i) {
var n = b_.exec(t.slice(i, i + 1));
return n ? ((e.u = +n[0]), i + n[0].length) : -1;
}
function M_(e, t, i) {
var n = b_.exec(t.slice(i, i + 2));
return n ? ((e.U = +n[0]), i + n[0].length) : -1;
}
function D_(e, t, i) {
var n = b_.exec(t.slice(i, i + 2));
return n ? ((e.V = +n[0]), i + n[0].length) : -1;
}
function N_(e, t, i) {
var n = b_.exec(t.slice(i, i + 2));
return n ? ((e.W = +n[0]), i + n[0].length) : -1;
}
function E_(e, t, i) {
var n = b_.exec(t.slice(i, i + 4));
return n ? ((e.y = +n[0]), i + n[0].length) : -1;
}
function T_(e, t, i) {
var n = b_.exec(t.slice(i, i + 2));
return n
? ((e.y = +n[0] + (+n[0] > 68 ? 1900 : 2e3)), i + n[0].length)
: -1;
}
function I_(e, t, i) {
var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(i, i + 6));
return n
? ((e.Z = n[1] ? 0 : -(n[2] + (n[3] || '00'))), i + n[0].length)
: -1;
}
function O_(e, t, i) {
var n = b_.exec(t.slice(i, i + 1));
return n ? ((e.q = 3 * n[0] - 3), i + n[0].length) : -1;
}
function A_(e, t, i) {
var n = b_.exec(t.slice(i, i + 2));
return n ? ((e.m = n[0] - 1), i + n[0].length) : -1;
}
function R_(e, t, i) {
var n = b_.exec(t.slice(i, i + 2));
return n ? ((e.d = +n[0]), i + n[0].length) : -1;
}
function P_(e, t, i) {
var n = b_.exec(t.slice(i, i + 3));
return n ? ((e.m = 0), (e.d = +n[0]), i + n[0].length) : -1;
}
function F_(e, t, i) {
var n = b_.exec(t.slice(i, i + 2));
return n ? ((e.H = +n[0]), i + n[0].length) : -1;
}
function B_(e, t, i) {
var n = b_.exec(t.slice(i, i + 2));
return n ? ((e.M = +n[0]), i + n[0].length) : -1;
}
function W_(e, t, i) {
var n = b_.exec(t.slice(i, i + 2));
return n ? ((e.S = +n[0]), i + n[0].length) : -1;
}
function Y_(e, t, i) {
var n = b_.exec(t.slice(i, i + 3));
return n ? ((e.L = +n[0]), i + n[0].length) : -1;
}
function H_(e, t, i) {
var n = b_.exec(t.slice(i, i + 6));
return n ? ((e.L = Math.floor(n[0] / 1e3)), i + n[0].length) : -1;
}
function j_(e, t, i) {
var n = v_.exec(t.slice(i, i + 1));
return n ? i + n[0].length : -1;
}
function V_(e, t, i) {
var n = b_.exec(t.slice(i));
return n ? ((e.Q = +n[0]), i + n[0].length) : -1;
}
function z_(e, t, i) {
var n = b_.exec(t.slice(i));
return n ? ((e.s = +n[0]), i + n[0].length) : -1;
}
function U_(e, t) {
return w_(e.getDate(), t, 2);
}
function $_(e, t) {
return w_(e.getHours(), t, 2);
}
function K_(e, t) {
return w_(e.getHours() % 12 || 12, t, 2);
}
function q_(e, t) {
return w_(1 + Mm.count(tm(e), e), t, 3);
}
function G_(e, t) {
return w_(e.getMilliseconds(), t, 3);
}
function Z_(e, t) {
return G_(e, t) + '000';
}
function J_(e, t) {
return w_(e.getMonth() + 1, t, 2);
}
function Q_(e, t) {
return w_(e.getMinutes(), t, 2);
}
function X_(e, t) {
return w_(e.getSeconds(), t, 2);
}
function eb(e) {
var t = e.getDay();
return 0 === t ? 7 : t;
}
function tb(e, t) {
return w_(um.count(tm(e) - 1, e), t, 2);
}
function ib(e, t) {
var i = e.getDay();
return (
(e = i >= 4 || 0 === i ? mm(e) : mm.ceil(e)),
w_(mm.count(tm(e), e) + (4 === tm(e).getDay()), t, 2)
);
}
function nb(e) {
return e.getDay();
}
function rb(e, t) {
return w_(gm.count(tm(e) - 1, e), t, 2);
}
function sb(e, t) {
return w_(e.getFullYear() % 100, t, 2);
}
function ob(e, t) {
return w_(e.getFullYear() % 1e4, t, 4);
}
function ab(e) {
var t = e.getTimezoneOffset();
return (
(t > 0 ? '-' : ((t *= -1), '+')) +
w_((t / 60) | 0, '0', 2) +
w_(t % 60, '0', 2)
);
}
function lb(e, t) {
return w_(e.getUTCDate(), t, 2);
}
function cb(e, t) {
return w_(e.getUTCHours(), t, 2);
}
function db(e, t) {
return w_(e.getUTCHours() % 12 || 12, t, 2);
}
function hb(e, t) {
return w_(1 + n_.count(o_(e), e), t, 3);
}
function ub(e, t) {
return w_(e.getUTCMilliseconds(), t, 3);
}
function gb(e, t) {
return ub(e, t) + '000';
}
function fb(e, t) {
return w_(e.getUTCMonth() + 1, t, 2);
}
function pb(e, t) {
return w_(e.getUTCMinutes(), t, 2);
}
function mb(e, t) {
return w_(e.getUTCSeconds(), t, 2);
}
function _b(e) {
var t = e.getUTCDay();
return 0 === t ? 7 : t;
}
function bb(e, t) {
return w_(jm.count(o_(e) - 1, e), t, 2);
}
function vb(e, t) {
var i = e.getUTCDay();
return (
(e = i >= 4 || 0 === i ? $m(e) : $m.ceil(e)),
w_($m.count(o_(e), e) + (4 === o_(e).getUTCDay()), t, 2)
);
}
function yb(e) {
return e.getUTCDay();
}
function wb(e, t) {
return w_(Vm.count(o_(e) - 1, e), t, 2);
}
function Cb(e, t) {
return w_(e.getUTCFullYear() % 100, t, 2);
}
function Sb(e, t) {
return w_(e.getUTCFullYear() % 1e4, t, 4);
}
function kb() {
return '+0000';
}
function xb() {
return '%';
}
function Lb(e) {
return +e;
}
function Mb(e) {
return Math.floor(+e / 1e3);
}
function Db(e) {
return (
(u_ = h_(e)),
(g_ = u_.format),
(f_ = u_.parse),
(p_ = u_.utcFormat),
(m_ = u_.utcParse),
u_
);
}
Db({
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',
],
});
var Nb = 31536e6;
function Eb(e) {
return new Date(e);
}
function Tb(e) {
return e instanceof Date ? +e : +new Date(+e);
}
function Ib(e, t, i, n, r, o, a, l, c) {
var d = kp(_p, _p),
h = d.invert,
u = d.domain,
g = c('.%L'),
f = c(':%S'),
p = c('%I:%M'),
m = c('%I %p'),
_ = c('%a %d'),
b = c('%b %d'),
v = c('%B'),
y = c('%Y'),
w = [
[a, 1, 1e3],
[a, 5, 5e3],
[a, 15, 15e3],
[a, 30, 3e4],
[o, 1, 6e4],
[o, 5, 3e5],
[o, 15, 9e5],
[o, 30, 18e5],
[r, 1, 36e5],
[r, 3, 108e5],
[r, 6, 216e5],
[r, 12, 432e5],
[n, 1, 864e5],
[n, 2, 1728e5],
[i, 1, 6048e5],
[t, 1, 2592e6],
[t, 3, 7776e6],
[e, 1, Nb],
];
function C(s) {
return (a(s) < s
? g
: o(s) < s
? f
: r(s) < s
? p
: n(s) < s
? m
: t(s) < s
? i(s) < s
? _
: b
: e(s) < s
? v
: y)(s);
}
function S(t, i, n, r) {
if ((null == t && (t = 10), 'number' == typeof t)) {
var o = Math.abs(n - i) / t,
a = s(function (e) {
return e[2];
}).right(w, o);
a === w.length
? ((r = N(i / Nb, n / Nb, t)), (t = e))
: a
? ((r = (a = w[o / w[a - 1][2] < w[a][2] / o ? a - 1 : a])[1]),
(t = a[0]))
: ((r = Math.max(N(i, n, t), 1)), (t = l));
}
return null == r ? t : t.every(r);
}
return (
(d.invert = function (e) {
return new Date(h(e));
}),
(d.domain = function (e) {
return arguments.length ? u(lp.call(e, Tb)) : u().map(Eb);
}),
(d.ticks = function (e, t) {
var i,
n = u(),
r = n[0],
s = n[n.length - 1],
o = s < r;
return (
o && ((i = r), (r = s), (s = i)),
(i = (i = S(e, r, s, t)) ? i.range(r, s + 1) : []),
o ? i.reverse() : i
);
}),
(d.tickFormat = function (e, t) {
return null == t ? C : c(t);
}),
(d.nice = function (e, t) {
var i = u();
return (e = S(e, i[0], i[i.length - 1], t)) ? u(Np(i, e)) : d;
}),
(d.copy = function () {
return Cp(d, Ib(e, t, i, n, r, o, a, l, c));
}),
d
);
}
function Ob() {
return sp.apply(
Ib(tm, rm, um, Mm, Em, Om, Pm, Wm, g_).domain([
new Date(2e3, 0, 1),
new Date(2e3, 0, 2),
]),
arguments
);
}
var Ab = Xp(
function (e) {
e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
},
function (e, t) {
e.setUTCMonth(e.getUTCMonth() + t);
},
function (e, t) {
return (
t.getUTCMonth() -
e.getUTCMonth() +
12 * (t.getUTCFullYear() - e.getUTCFullYear())
);
},
function (e) {
return e.getUTCMonth();
}
);
const Rb = Ab;
var Pb = Ab.range,
Fb = Xp(
function (e) {
e.setUTCMinutes(0, 0, 0);
},
function (e, t) {
e.setTime(+e + t * lm);
},
function (e, t) {
return (t - e) / lm;
},
function (e) {
return e.getUTCHours();
}
);
const Bb = Fb;
var Wb = Fb.range,
Yb = Xp(
function (e) {
e.setUTCSeconds(0, 0);
},
function (e, t) {
e.setTime(+e + t * am);
},
function (e, t) {
return (t - e) / am;
},
function (e) {
return e.getUTCMinutes();
}
);
const Hb = Yb;
var jb = Yb.range;
function Vb() {
return sp.apply(
Ib(o_, Rb, jm, n_, Bb, Hb, Pm, Wm, p_).domain([
Date.UTC(2e3, 0, 1),
Date.UTC(2e3, 0, 2),
]),
arguments
);
}
function zb() {
var e,
t,
i,
n,
r,
s = 0,
o = 1,
a = _p,
l = !1;
function c(t) {
return isNaN((t = +t))
? r
: a(
0 === i
? 0.5
: ((t = (n(t) - e) * i),
l ? Math.max(0, Math.min(1, t)) : t)
);
}
return (
(c.domain = function (r) {
return arguments.length
? ((e = n((s = +r[0]))),
(t = n((o = +r[1]))),
(i = e === t ? 0 : 1 / (t - e)),
c)
: [s, o];
}),
(c.clamp = function (e) {
return arguments.length ? ((l = !!e), c) : l;
}),
(c.interpolator = function (e) {
return arguments.length ? ((a = e), c) : a;
}),
(c.unknown = function (e) {
return arguments.length ? ((r = e), c) : r;
}),
function (r) {
return (
(n = r),
(e = r(s)),
(t = r(o)),
(i = e === t ? 0 : 1 / (t - e)),
c
);
}
);
}
function Ub(e, t) {
return t
.domain(e.domain())
.interpolator(e.interpolator())
.clamp(e.clamp())
.unknown(e.unknown());
}
function $b() {
var e = Lp(zb()(_p));
return (
(e.copy = function () {
return Ub(e, $b());
}),
op.apply(e, arguments)
);
}
function Kb() {
var e = Pp(zb()).domain([1, 10]);
return (
(e.copy = function () {
return Ub(e, Kb()).base(e.base());
}),
op.apply(e, arguments)
);
}
function qb() {
var e = Yp(zb());
return (
(e.copy = function () {
return Ub(e, qb()).constant(e.constant());
}),
op.apply(e, arguments)
);
}
function Gb() {
var e = Up(zb());
return (
(e.copy = function () {
return Ub(e, Gb()).exponent(e.exponent());
}),
op.apply(e, arguments)
);
}
function Zb() {
return Gb.apply(null, arguments).exponent(0.5);
}
function Jb() {
var e = [],
t = _p;
function i(i) {
if (!isNaN((i = +i))) return t((c(e, i) - 1) / (e.length - 1));
}
return (
(i.domain = function (t) {
if (!arguments.length) return e.slice();
e = [];
for (var n, s = 0, o = t.length; s < o; ++s)
null == (n = t[s]) || isNaN((n = +n)) || e.push(n);
return e.sort(r), i;
}),
(i.interpolator = function (e) {
return arguments.length ? ((t = e), i) : t;
}),
(i.copy = function () {
return Jb(t).domain(e);
}),
op.apply(i, arguments)
);
}
function Qb() {
var e,
t,
i,
n,
r,
s,
o,
a = 0,
l = 0.5,
c = 1,
d = _p,
h = !1;
function u(e) {
return isNaN((e = +e))
? o
: ((e = 0.5 + ((e = +s(e)) - t) * (e < t ? n : r)),
d(h ? Math.max(0, Math.min(1, e)) : e));
}
return (
(u.domain = function (o) {
return arguments.length
? ((e = s((a = +o[0]))),
(t = s((l = +o[1]))),
(i = s((c = +o[2]))),
(n = e === t ? 0 : 0.5 / (t - e)),
(r = t === i ? 0 : 0.5 / (i - t)),
u)
: [a, l, c];
}),
(u.clamp = function (e) {
return arguments.length ? ((h = !!e), u) : h;
}),
(u.interpolator = function (e) {
return arguments.length ? ((d = e), u) : d;
}),
(u.unknown = function (e) {
return arguments.length ? ((o = e), u) : o;
}),
function (o) {
return (
(s = o),
(e = o(a)),
(t = o(l)),
(i = o(c)),
(n = e === t ? 0 : 0.5 / (t - e)),
(r = t === i ? 0 : 0.5 / (i - t)),
u
);
}
);
}
function Xb() {
var e = Lp(Qb()(_p));
return (
(e.copy = function () {
return Ub(e, Xb());
}),
op.apply(e, arguments)
);
}
function ev() {
var e = Pp(Qb()).domain([0.1, 1, 10]);
return (
(e.copy = function () {
return Ub(e, ev()).base(e.base());
}),
op.apply(e, arguments)
);
}
function tv() {
var e = Yp(Qb());
return (
(e.copy = function () {
return Ub(e, tv()).constant(e.constant());
}),
op.apply(e, arguments)
);
}
function iv() {
var e = Up(Qb());
return (
(e.copy = function () {
return Ub(e, iv()).exponent(e.exponent());
}),
op.apply(e, arguments)
);
}
function nv() {
return iv.apply(null, arguments).exponent(0.5);
}
function rv(e) {
for (var t = (e.length / 6) | 0, i = new Array(t), n = 0; n < t; )
i[n] = '#' + e.slice(6 * n, 6 * ++n);
return i;
}
const sv = rv(
'1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf'
),
ov = rv('7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666'),
av = rv('1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666'),
lv = rv(
'a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928'
),
cv = rv('fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2'),
dv = rv('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'),
hv = rv('e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999'),
uv = rv('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'),
gv = rv(
'8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f'
),
fv = rv(
'4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab'
);
function pv(e) {
return mi(e[e.length - 1]);
}
var mv = new Array(3)
.concat(
'd8b365f5f5f55ab4ac',
'a6611adfc27d80cdc1018571',
'a6611adfc27df5f5f580cdc1018571',
'8c510ad8b365f6e8c3c7eae55ab4ac01665e',
'8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e',
'8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e',
'8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e',
'5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30',
'5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30'
)
.map(rv);
const _v = pv(mv);
var bv = new Array(3)
.concat(
'af8dc3f7f7f77fbf7b',
'7b3294c2a5cfa6dba0008837',
'7b3294c2a5cff7f7f7a6dba0008837',
'762a83af8dc3e7d4e8d9f0d37fbf7b1b7837',
'762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837',
'762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837',
'762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837',
'40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b',
'40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b'
)
.map(rv);
const vv = pv(bv);
var yv = new Array(3)
.concat(
'e9a3c9f7f7f7a1d76a',
'd01c8bf1b6dab8e1864dac26',
'd01c8bf1b6daf7f7f7b8e1864dac26',
'c51b7de9a3c9fde0efe6f5d0a1d76a4d9221',
'c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221',
'c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221',
'c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221',
'8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419',
'8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419'
)
.map(rv);
const wv = pv(yv);
var Cv = new Array(3)
.concat(
'998ec3f7f7f7f1a340',
'5e3c99b2abd2fdb863e66101',
'5e3c99b2abd2f7f7f7fdb863e66101',
'542788998ec3d8daebfee0b6f1a340b35806',
'542788998ec3d8daebf7f7f7fee0b6f1a340b35806',
'5427888073acb2abd2d8daebfee0b6fdb863e08214b35806',
'5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806',
'2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08',
'2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08'
)
.map(rv);
const Sv = pv(Cv);
var kv = new Array(3)
.concat(
'ef8a62f7f7f767a9cf',
'ca0020f4a58292c5de0571b0',
'ca0020f4a582f7f7f792c5de0571b0',
'b2182bef8a62fddbc7d1e5f067a9cf2166ac',
'b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac',
'b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac',
'b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac',
'67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061',
'67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061'
)
.map(rv);
const xv = pv(kv);
var Lv = new Array(3)
.concat(
'ef8a62ffffff999999',
'ca0020f4a582bababa404040',
'ca0020f4a582ffffffbababa404040',
'b2182bef8a62fddbc7e0e0e09999994d4d4d',
'b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d',
'b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d',
'b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d',
'67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a',
'67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a'
)
.map(rv);
const Mv = pv(Lv);
var Dv = new Array(3)
.concat(
'fc8d59ffffbf91bfdb',
'd7191cfdae61abd9e92c7bb6',
'd7191cfdae61ffffbfabd9e92c7bb6',
'd73027fc8d59fee090e0f3f891bfdb4575b4',
'd73027fc8d59fee090ffffbfe0f3f891bfdb4575b4',
'd73027f46d43fdae61fee090e0f3f8abd9e974add14575b4',
'd73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4',
'a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695',
'a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695'
)
.map(rv);
const Nv = pv(Dv);
var Ev = new Array(3)
.concat(
'fc8d59ffffbf91cf60',
'd7191cfdae61a6d96a1a9641',
'd7191cfdae61ffffbfa6d96a1a9641',
'd73027fc8d59fee08bd9ef8b91cf601a9850',
'd73027fc8d59fee08bffffbfd9ef8b91cf601a9850',
'd73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850',
'd73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850',
'a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837',
'a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837'
)
.map(rv);
const Tv = pv(Ev);
var Iv = new Array(3)
.concat(
'fc8d59ffffbf99d594',
'd7191cfdae61abdda42b83ba',
'd7191cfdae61ffffbfabdda42b83ba',
'd53e4ffc8d59fee08be6f59899d5943288bd',
'd53e4ffc8d59fee08bffffbfe6f59899d5943288bd',
'd53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd',
'd53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd',
'9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2',
'9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2'
)
.map(rv);
const Ov = pv(Iv);
var Av = new Array(3)
.concat(
'e5f5f999d8c92ca25f',
'edf8fbb2e2e266c2a4238b45',
'edf8fbb2e2e266c2a42ca25f006d2c',
'edf8fbccece699d8c966c2a42ca25f006d2c',
'edf8fbccece699d8c966c2a441ae76238b45005824',
'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824',
'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b'
)
.map(rv);
const Rv = pv(Av);
var Pv = new Array(3)
.concat(
'e0ecf49ebcda8856a7',
'edf8fbb3cde38c96c688419d',
'edf8fbb3cde38c96c68856a7810f7c',
'edf8fbbfd3e69ebcda8c96c68856a7810f7c',
'edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b',
'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b',
'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b'
)
.map(rv);
const Fv = pv(Pv);
var Bv = new Array(3)
.concat(
'e0f3dba8ddb543a2ca',
'f0f9e8bae4bc7bccc42b8cbe',
'f0f9e8bae4bc7bccc443a2ca0868ac',
'f0f9e8ccebc5a8ddb57bccc443a2ca0868ac',
'f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e',
'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e',
'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081'
)
.map(rv);
const Wv = pv(Bv);
var Yv = new Array(3)
.concat(
'fee8c8fdbb84e34a33',
'fef0d9fdcc8afc8d59d7301f',
'fef0d9fdcc8afc8d59e34a33b30000',
'fef0d9fdd49efdbb84fc8d59e34a33b30000',
'fef0d9fdd49efdbb84fc8d59ef6548d7301f990000',
'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000',
'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000'
)
.map(rv);
const Hv = pv(Yv);
var jv = new Array(3)
.concat(
'ece2f0a6bddb1c9099',
'f6eff7bdc9e167a9cf02818a',
'f6eff7bdc9e167a9cf1c9099016c59',
'f6eff7d0d1e6a6bddb67a9cf1c9099016c59',
'f6eff7d0d1e6a6bddb67a9cf3690c002818a016450',
'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450',
'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636'
)
.map(rv);
const Vv = pv(jv);
var zv = new Array(3)
.concat(
'ece7f2a6bddb2b8cbe',
'f1eef6bdc9e174a9cf0570b0',
'f1eef6bdc9e174a9cf2b8cbe045a8d',
'f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d',
'f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b',
'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b',
'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858'
)
.map(rv);
const Uv = pv(zv);
var $v = new Array(3)
.concat(
'e7e1efc994c7dd1c77',
'f1eef6d7b5d8df65b0ce1256',
'f1eef6d7b5d8df65b0dd1c77980043',
'f1eef6d4b9dac994c7df65b0dd1c77980043',
'f1eef6d4b9dac994c7df65b0e7298ace125691003f',
'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f',
'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f'
)
.map(rv);
const Kv = pv($v);
var qv = new Array(3)
.concat(
'fde0ddfa9fb5c51b8a',
'feebe2fbb4b9f768a1ae017e',
'feebe2fbb4b9f768a1c51b8a7a0177',
'feebe2fcc5c0fa9fb5f768a1c51b8a7a0177',
'feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177',
'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177',
'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a'
)
.map(rv);
const Gv = pv(qv);
var Zv = new Array(3)
.concat(
'edf8b17fcdbb2c7fb8',
'ffffcca1dab441b6c4225ea8',
'ffffcca1dab441b6c42c7fb8253494',
'ffffccc7e9b47fcdbb41b6c42c7fb8253494',
'ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84',
'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84',
'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58'
)
.map(rv);
const Jv = pv(Zv);
var Qv = new Array(3)
.concat(
'f7fcb9addd8e31a354',
'ffffccc2e69978c679238443',
'ffffccc2e69978c67931a354006837',
'ffffccd9f0a3addd8e78c67931a354006837',
'ffffccd9f0a3addd8e78c67941ab5d238443005a32',
'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32',
'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529'
)
.map(rv);
const Xv = pv(Qv);
var ey = new Array(3)
.concat(
'fff7bcfec44fd95f0e',
'ffffd4fed98efe9929cc4c02',
'ffffd4fed98efe9929d95f0e993404',
'ffffd4fee391fec44ffe9929d95f0e993404',
'ffffd4fee391fec44ffe9929ec7014cc4c028c2d04',
'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04',
'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506'
)
.map(rv);
const ty = pv(ey);
var iy = new Array(3)
.concat(
'ffeda0feb24cf03b20',
'ffffb2fecc5cfd8d3ce31a1c',
'ffffb2fecc5cfd8d3cf03b20bd0026',
'ffffb2fed976feb24cfd8d3cf03b20bd0026',
'ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026',
'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026',
'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026'
)
.map(rv);
const ny = pv(iy);
var ry = new Array(3)
.concat(
'deebf79ecae13182bd',
'eff3ffbdd7e76baed62171b5',
'eff3ffbdd7e76baed63182bd08519c',
'eff3ffc6dbef9ecae16baed63182bd08519c',
'eff3ffc6dbef9ecae16baed64292c62171b5084594',
'f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594',
'f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b'
)
.map(rv);
const sy = pv(ry);
var oy = new Array(3)
.concat(
'e5f5e0a1d99b31a354',
'edf8e9bae4b374c476238b45',
'edf8e9bae4b374c47631a354006d2c',
'edf8e9c7e9c0a1d99b74c47631a354006d2c',
'edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32',
'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32',
'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b'
)
.map(rv);
const ay = pv(oy);
var ly = new Array(3)
.concat(
'f0f0f0bdbdbd636363',
'f7f7f7cccccc969696525252',
'f7f7f7cccccc969696636363252525',
'f7f7f7d9d9d9bdbdbd969696636363252525',
'f7f7f7d9d9d9bdbdbd969696737373525252252525',
'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525',
'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000'
)
.map(rv);
const cy = pv(ly);
var dy = new Array(3)
.concat(
'efedf5bcbddc756bb1',
'f2f0f7cbc9e29e9ac86a51a3',
'f2f0f7cbc9e29e9ac8756bb154278f',
'f2f0f7dadaebbcbddc9e9ac8756bb154278f',
'f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486',
'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486',
'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d'
)
.map(rv);
const hy = pv(dy);
var uy = new Array(3)
.concat(
'fee0d2fc9272de2d26',
'fee5d9fcae91fb6a4acb181d',
'fee5d9fcae91fb6a4ade2d26a50f15',
'fee5d9fcbba1fc9272fb6a4ade2d26a50f15',
'fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d',
'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d',
'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d'
)
.map(rv);
const gy = pv(uy);
var fy = new Array(3)
.concat(
'fee6cefdae6be6550d',
'feeddefdbe85fd8d3cd94701',
'feeddefdbe85fd8d3ce6550da63603',
'feeddefdd0a2fdae6bfd8d3ce6550da63603',
'feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04',
'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04',
'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704'
)
.map(rv);
const py = pv(fy);
function my(e) {
return (
(e = Math.max(0, Math.min(1, e))),
'rgb(' +
Math.max(
0,
Math.min(
255,
Math.round(
-4.54 -
e *
(35.34 -
e *
(2381.73 -
e * (6402.7 - e * (7024.72 - 2710.57 * e))))
)
)
) +
', ' +
Math.max(
0,
Math.min(
255,
Math.round(
32.49 +
e *
(170.73 +
e * (52.82 - e * (131.46 - e * (176.58 - 67.37 * e))))
)
)
) +
', ' +
Math.max(
0,
Math.min(
255,
Math.round(
81.24 +
e *
(442.36 -
e *
(2482.43 -
e * (6167.24 - e * (6614.94 - 2475.67 * e))))
)
)
) +
')'
);
}
const _y = Hf(zs(300, 0.5, 0), zs(-240, 0.5, 1));
var by = Hf(zs(-100, 0.75, 0.35), zs(80, 1.5, 0.8)),
vy = Hf(zs(260, 0.75, 0.35), zs(80, 1.5, 0.8)),
yy = zs();
function wy(e) {
(e < 0 || e > 1) && (e -= Math.floor(e));
var t = Math.abs(e - 0.5);
return (
(yy.h = 360 * e - 100),
(yy.s = 1.5 - 1.5 * t),
(yy.l = 0.8 - 0.9 * t),
yy + ''
);
}
var Cy = Jt(),
Sy = Math.PI / 3,
ky = (2 * Math.PI) / 3;
function xy(e) {
var t;
return (
(e = (0.5 - e) * Math.PI),
(Cy.r = 255 * (t = Math.sin(e)) * t),
(Cy.g = 255 * (t = Math.sin(e + Sy)) * t),
(Cy.b = 255 * (t = Math.sin(e + ky)) * t),
Cy + ''
);
}
function Ly(e) {
return (
(e = Math.max(0, Math.min(1, e))),
'rgb(' +
Math.max(
0,
Math.min(
255,
Math.round(
34.61 +
e *
(1172.33 -
e *
(10793.56 -
e * (33300.12 - e * (38394.49 - 14825.05 * e))))
)
)
) +
', ' +
Math.max(
0,
Math.min(
255,
Math.round(
23.31 +
e *
(557.33 +
e *
(1225.33 -
e * (3574.96 - e * (1073.77 + 707.56 * e))))
)
)
) +
', ' +
Math.max(
0,
Math.min(
255,
Math.round(
27.2 +
e *
(3211.1 -
e *
(15327.97 -
e * (27814 - e * (22569.18 - 6838.66 * e))))
)
)
) +
')'
);
}
function My(e) {
var t = e.length;
return function (i) {
return e[Math.max(0, Math.min(t - 1, Math.floor(i * t)))];
};
}
const Dy = My(
rv(
'44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725'
)
);
var Ny = My(
rv(
'00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf'
)
),
Ey = My(
rv(
'00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4'
)
),
Ty = My(
rv(
'0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921'
)
);
function Iy(e) {
return kt(rt(e).call(document.documentElement));
}
var Oy = 0;
function Ay() {
return new Ry();
}
function Ry() {
this._ = '@' + (++Oy).toString(36);
}
function Py(e) {
return 'string' == typeof e
? new wt([document.querySelectorAll(e)], [document.documentElement])
: new wt([null == e ? [] : e], yt);
}
function Fy(e, t) {
null == t && (t = Ni().touches);
for (var i = 0, n = t ? t.length : 0, r = new Array(n); i < n; ++i)
r[i] = Ei(e, t[i]);
return r;
}
function By(e) {
return function () {
return e;
};
}
Ry.prototype = Ay.prototype = {
constructor: Ry,
get: function (e) {
for (var t = this._; !(t in e); ) if (!(e = e.parentNode)) return;
return e[t];
},
set: function (e, t) {
return (e[this._] = t);
},
remove: function (e) {
return this._ in e && delete e[this._];
},
toString: function () {
return this._;
},
};
var Wy = Math.abs,
Yy = Math.atan2,
Hy = Math.cos,
jy = Math.max,
Vy = Math.min,
zy = Math.sin,
Uy = Math.sqrt,
$y = 1e-12,
Ky = Math.PI,
qy = Ky / 2,
Gy = 2 * Ky;
function Zy(e) {
return e > 1 ? 0 : e < -1 ? Ky : Math.acos(e);
}
function Jy(e) {
return e >= 1 ? qy : e <= -1 ? -qy : Math.asin(e);
}
function Qy(e) {
return e.innerRadius;
}
function Xy(e) {
return e.outerRadius;
}
function ew(e) {
return e.startAngle;
}
function tw(e) {
return e.endAngle;
}
function iw(e) {
return e && e.padAngle;
}
function nw(e, t, i, n, r, s, o, a) {
var l = i - e,
c = n - t,
d = o - r,
h = a - s,
u = h * l - d * c;
if (!(u * u < $y))
return [e + (u = (d * (t - s) - h * (e - r)) / u) * l, t + u * c];
}
function rw(e, t, i, n, r, s, o) {
var a = e - i,
l = t - n,
c = (o ? s : -s) / Uy(a * a + l * l),
d = c * l,
h = -c * a,
u = e + d,
g = t + h,
f = i + d,
p = n + h,
m = (u + f) / 2,
_ = (g + p) / 2,
b = f - u,
v = p - g,
y = b * b + v * v,
w = r - s,
C = u * p - f * g,
S = (v < 0 ? -1 : 1) * Uy(jy(0, w * w * y - C * C)),
k = (C * v - b * S) / y,
x = (-C * b - v * S) / y,
L = (C * v + b * S) / y,
M = (-C * b + v * S) / y,
D = k - m,
N = x - _,
E = L - m,
T = M - _;
return (
D * D + N * N > E * E + T * T && ((k = L), (x = M)),
{
cx: k,
cy: x,
x01: -d,
y01: -h,
x11: k * (r / w - 1),
y11: x * (r / w - 1),
}
);
}
function sw() {
var e = Qy,
t = Xy,
i = By(0),
n = null,
r = ew,
s = tw,
o = iw,
a = null;
function l() {
var l,
c,
d = +e.apply(this, arguments),
h = +t.apply(this, arguments),
u = r.apply(this, arguments) - qy,
g = s.apply(this, arguments) - qy,
f = Wy(g - u),
p = g > u;
if (
(a || (a = l = $r()),
h < d && ((c = h), (h = d), (d = c)),
h > $y)
)
if (f > Gy - $y)
a.moveTo(h * Hy(u), h * zy(u)),
a.arc(0, 0, h, u, g, !p),
d > $y &&
(a.moveTo(d * Hy(g), d * zy(g)), a.arc(0, 0, d, g, u, p));
else {
var m,
_,
b = u,
v = g,
y = u,
w = g,
C = f,
S = f,
k = o.apply(this, arguments) / 2,
x =
k > $y &&
(n ? +n.apply(this, arguments) : Uy(d * d + h * h)),
L = Vy(Wy(h - d) / 2, +i.apply(this, arguments)),
M = L,
D = L;
if (x > $y) {
var N = Jy((x / d) * zy(k)),
E = Jy((x / h) * zy(k));
(C -= 2 * N) > $y
? ((y += N *= p ? 1 : -1), (w -= N))
: ((C = 0), (y = w = (u + g) / 2)),
(S -= 2 * E) > $y
? ((b += E *= p ? 1 : -1), (v -= E))
: ((S = 0), (b = v = (u + g) / 2));
}
var T = h * Hy(b),
I = h * zy(b),
O = d * Hy(w),
A = d * zy(w);
if (L > $y) {
var R,
P = h * Hy(v),
F = h * zy(v),
B = d * Hy(y),
W = d * zy(y);
if (f < Ky && (R = nw(T, I, B, W, P, F, O, A))) {
var Y = T - R[0],
H = I - R[1],
j = P - R[0],
V = F - R[1],
z =
1 /
zy(
Zy(
(Y * j + H * V) /
(Uy(Y * Y + H * H) * Uy(j * j + V * V))
) / 2
),
U = Uy(R[0] * R[0] + R[1] * R[1]);
(M = Vy(L, (d - U) / (z - 1))),
(D = Vy(L, (h - U) / (z + 1)));
}
}
S > $y
? D > $y
? ((m = rw(B, W, T, I, h, D, p)),
(_ = rw(P, F, O, A, h, D, p)),
a.moveTo(m.cx + m.x01, m.cy + m.y01),
D < L
? a.arc(
m.cx,
m.cy,
D,
Yy(m.y01, m.x01),
Yy(_.y01, _.x01),
!p
)
: (a.arc(
m.cx,
m.cy,
D,
Yy(m.y01, m.x01),
Yy(m.y11, m.x11),
!p
),
a.arc(
0,
0,
h,
Yy(m.cy + m.y11, m.cx + m.x11),
Yy(_.cy + _.y11, _.cx + _.x11),
!p
),
a.arc(
_.cx,
_.cy,
D,
Yy(_.y11, _.x11),
Yy(_.y01, _.x01),
!p
)))
: (a.moveTo(T, I), a.arc(0, 0, h, b, v, !p))
: a.moveTo(T, I),
d > $y && C > $y
? M > $y
? ((m = rw(O, A, P, F, d, -M, p)),
(_ = rw(T, I, B, W, d, -M, p)),
a.lineTo(m.cx + m.x01, m.cy + m.y01),
M < L
? a.arc(
m.cx,
m.cy,
M,
Yy(m.y01, m.x01),
Yy(_.y01, _.x01),
!p
)
: (a.arc(
m.cx,
m.cy,
M,
Yy(m.y01, m.x01),
Yy(m.y11, m.x11),
!p
),
a.arc(
0,
0,
d,
Yy(m.cy + m.y11, m.cx + m.x11),
Yy(_.cy + _.y11, _.cx + _.x11),
p
),
a.arc(
_.cx,
_.cy,
M,
Yy(_.y11, _.x11),
Yy(_.y01, _.x01),
!p
)))
: a.arc(0, 0, d, w, y, p)
: a.lineTo(O, A);
}
else a.moveTo(0, 0);
if ((a.closePath(), l)) return (a = null), l + '' || null;
}
return (
(l.centroid = function () {
var i =
(+e.apply(this, arguments) + +t.apply(this, arguments)) / 2,
n =
(+r.apply(this, arguments) + +s.apply(this, arguments)) / 2 -
Ky / 2;
return [Hy(n) * i, zy(n) * i];
}),
(l.innerRadius = function (t) {
return arguments.length
? ((e = 'function' == typeof t ? t : By(+t)), l)
: e;
}),
(l.outerRadius = function (e) {
return arguments.length
? ((t = 'function' == typeof e ? e : By(+e)), l)
: t;
}),
(l.cornerRadius = function (e) {
return arguments.length
? ((i = 'function' == typeof e ? e : By(+e)), l)
: i;
}),
(l.padRadius = function (e) {
return arguments.length
? ((n = null == e ? null : 'function' == typeof e ? e : By(+e)),
l)
: n;
}),
(l.startAngle = function (e) {
return arguments.length
? ((r = 'function' == typeof e ? e : By(+e)), l)
: r;
}),
(l.endAngle = function (e) {
return arguments.length
? ((s = 'function' == typeof e ? e : By(+e)), l)
: s;
}),
(l.padAngle = function (e) {
return arguments.length
? ((o = 'function' == typeof e ? e : By(+e)), l)
: o;
}),
(l.context = function (e) {
return arguments.length ? ((a = null == e ? null : e), l) : a;
}),
l
);
}
function ow(e) {
this._context = e;
}
function aw(e) {
return new ow(e);
}
function lw(e) {
return e[0];
}
function cw(e) {
return e[1];
}
function dw() {
var e = lw,
t = cw,
i = By(!0),
n = null,
r = aw,
s = null;
function o(o) {
var a,
l,
c,
d = o.length,
h = !1;
for (null == n && (s = r((c = $r()))), a = 0; a <= d; ++a)
!(a < d && i((l = o[a]), a, o)) === h &&
((h = !h) ? s.lineStart() : s.lineEnd()),
h && s.point(+e(l, a, o), +t(l, a, o));
if (c) return (s = null), c + '' || null;
}
return (
(o.x = function (t) {
return arguments.length
? ((e = 'function' == typeof t ? t : By(+t)), o)
: e;
}),
(o.y = function (e) {
return arguments.length
? ((t = 'function' == typeof e ? e : By(+e)), o)
: t;
}),
(o.defined = function (e) {
return arguments.length
? ((i = 'function' == typeof e ? e : By(!!e)), o)
: i;
}),
(o.curve = function (e) {
return arguments.length
? ((r = e), null != n && (s = r(n)), o)
: r;
}),
(o.context = function (e) {
return arguments.length
? (null == e ? (n = s = null) : (s = r((n = e))), o)
: n;
}),
o
);
}
function hw() {
var e = lw,
t = null,
i = By(0),
n = cw,
r = By(!0),
s = null,
o = aw,
a = null;
function l(l) {
var c,
d,
h,
u,
g,
f = l.length,
p = !1,
m = new Array(f),
_ = new Array(f);
for (null == s && (a = o((g = $r()))), c = 0; c <= f; ++c) {
if (!(c < f && r((u = l[c]), c, l)) === p)
if ((p = !p)) (d = c), a.areaStart(), a.lineStart();
else {
for (a.lineEnd(), a.lineStart(), h = c - 1; h >= d; --h)
a.point(m[h], _[h]);
a.lineEnd(), a.areaEnd();
}
p &&
((m[c] = +e(u, c, l)),
(_[c] = +i(u, c, l)),
a.point(t ? +t(u, c, l) : m[c], n ? +n(u, c, l) : _[c]));
}
if (g) return (a = null), g + '' || null;
}
function c() {
return dw().defined(r).curve(o).context(s);
}
return (
(l.x = function (i) {
return arguments.length
? ((e = 'function' == typeof i ? i : By(+i)), (t = null), l)
: e;
}),
(l.x0 = function (t) {
return arguments.length
? ((e = 'function' == typeof t ? t : By(+t)), l)
: e;
}),
(l.x1 = function (e) {
return arguments.length
? ((t = null == e ? null : 'function' == typeof e ? e : By(+e)),
l)
: t;
}),
(l.y = function (e) {
return arguments.length
? ((i = 'function' == typeof e ? e : By(+e)), (n = null), l)
: i;
}),
(l.y0 = function (e) {
return arguments.length
? ((i = 'function' == typeof e ? e : By(+e)), l)
: i;
}),
(l.y1 = function (e) {
return arguments.length
? ((n = null == e ? null : 'function' == typeof e ? e : By(+e)),
l)
: n;
}),
(l.lineX0 = l.lineY0 = function () {
return c().x(e).y(i);
}),
(l.lineY1 = function () {
return c().x(e).y(n);
}),
(l.lineX1 = function () {
return c().x(t).y(i);
}),
(l.defined = function (e) {
return arguments.length
? ((r = 'function' == typeof e ? e : By(!!e)), l)
: r;
}),
(l.curve = function (e) {
return arguments.length
? ((o = e), null != s && (a = o(s)), l)
: o;
}),
(l.context = function (e) {
return arguments.length
? (null == e ? (s = a = null) : (a = o((s = e))), l)
: s;
}),
l
);
}
function uw(e, t) {
return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
}
function gw(e) {
return e;
}
function fw() {
var e = gw,
t = uw,
i = null,
n = By(0),
r = By(Gy),
s = By(0);
function o(o) {
var a,
l,
c,
d,
h,
u = o.length,
g = 0,
f = new Array(u),
p = new Array(u),
m = +n.apply(this, arguments),
_ = Math.min(Gy, Math.max(-Gy, r.apply(this, arguments) - m)),
b = Math.min(Math.abs(_) / u, s.apply(this, arguments)),
v = b * (_ < 0 ? -1 : 1);
for (a = 0; a < u; ++a)
(h = p[(f[a] = a)] = +e(o[a], a, o)) > 0 && (g += h);
for (
null != t
? f.sort(function (e, i) {
return t(p[e], p[i]);
})
: null != i &&
f.sort(function (e, t) {
return i(o[e], o[t]);
}),
a = 0,
c = g ? (_ - u * v) / g : 0;
a < u;
++a, m = d
)
(l = f[a]),
(d = m + ((h = p[l]) > 0 ? h * c : 0) + v),
(p[l] = {
data: o[l],
index: a,
value: h,
startAngle: m,
endAngle: d,
padAngle: b,
});
return p;
}
return (
(o.value = function (t) {
return arguments.length
? ((e = 'function' == typeof t ? t : By(+t)), o)
: e;
}),
(o.sortValues = function (e) {
return arguments.length ? ((t = e), (i = null), o) : t;
}),
(o.sort = function (e) {
return arguments.length ? ((i = e), (t = null), o) : i;
}),
(o.startAngle = function (e) {
return arguments.length
? ((n = 'function' == typeof e ? e : By(+e)), o)
: n;
}),
(o.endAngle = function (e) {
return arguments.length
? ((r = 'function' == typeof e ? e : By(+e)), o)
: r;
}),
(o.padAngle = function (e) {
return arguments.length
? ((s = 'function' == typeof e ? e : By(+e)), o)
: s;
}),
o
);
}
ow.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
this._point = 0;
},
lineEnd: function () {
(this._line || (0 !== this._line && 1 === this._point)) &&
this._context.closePath(),
(this._line = 1 - this._line);
},
point: function (e, t) {
switch (((e = +e), (t = +t), this._point)) {
case 0:
(this._point = 1),
this._line
? this._context.lineTo(e, t)
: this._context.moveTo(e, t);
break;
case 1:
this._point = 2;
default:
this._context.lineTo(e, t);
}
},
};
var pw = _w(aw);
function mw(e) {
this._curve = e;
}
function _w(e) {
function t(t) {
return new mw(e(t));
}
return (t._curve = e), t;
}
function bw(e) {
var t = e.curve;
return (
(e.angle = e.x),
delete e.x,
(e.radius = e.y),
delete e.y,
(e.curve = function (e) {
return arguments.length ? t(_w(e)) : t()._curve;
}),
e
);
}
function vw() {
return bw(dw().curve(pw));
}
function yw() {
var e = hw().curve(pw),
t = e.curve,
i = e.lineX0,
n = e.lineX1,
r = e.lineY0,
s = e.lineY1;
return (
(e.angle = e.x),
delete e.x,
(e.startAngle = e.x0),
delete e.x0,
(e.endAngle = e.x1),
delete e.x1,
(e.radius = e.y),
delete e.y,
(e.innerRadius = e.y0),
delete e.y0,
(e.outerRadius = e.y1),
delete e.y1,
(e.lineStartAngle = function () {
return bw(i());
}),
delete e.lineX0,
(e.lineEndAngle = function () {
return bw(n());
}),
delete e.lineX1,
(e.lineInnerRadius = function () {
return bw(r());
}),
delete e.lineY0,
(e.lineOuterRadius = function () {
return bw(s());
}),
delete e.lineY1,
(e.curve = function (e) {
return arguments.length ? t(_w(e)) : t()._curve;
}),
e
);
}
function ww(e, t) {
return [(t = +t) * Math.cos((e -= Math.PI / 2)), t * Math.sin(e)];
}
mw.prototype = {
areaStart: function () {
this._curve.areaStart();
},
areaEnd: function () {
this._curve.areaEnd();
},
lineStart: function () {
this._curve.lineStart();
},
lineEnd: function () {
this._curve.lineEnd();
},
point: function (e, t) {
this._curve.point(t * Math.sin(e), t * -Math.cos(e));
},
};
var Cw = Array.prototype.slice;
function Sw(e) {
return e.source;
}
function kw(e) {
return e.target;
}
function xw(e) {
var t = Sw,
i = kw,
n = lw,
r = cw,
s = null;
function o() {
var o,
a = Cw.call(arguments),
l = t.apply(this, a),
c = i.apply(this, a);
if (
(s || (s = o = $r()),
e(
s,
+n.apply(this, ((a[0] = l), a)),
+r.apply(this, a),
+n.apply(this, ((a[0] = c), a)),
+r.apply(this, a)
),
o)
)
return (s = null), o + '' || null;
}
return (
(o.source = function (e) {
return arguments.length ? ((t = e), o) : t;
}),
(o.target = function (e) {
return arguments.length ? ((i = e), o) : i;
}),
(o.x = function (e) {
return arguments.length
? ((n = 'function' == typeof e ? e : By(+e)), o)
: n;
}),
(o.y = function (e) {
return arguments.length
? ((r = 'function' == typeof e ? e : By(+e)), o)
: r;
}),
(o.context = function (e) {
return arguments.length ? ((s = null == e ? null : e), o) : s;
}),
o
);
}
function Lw(e, t, i, n, r) {
e.moveTo(t, i), e.bezierCurveTo((t = (t + n) / 2), i, t, r, n, r);
}
function Mw(e, t, i, n, r) {
e.moveTo(t, i), e.bezierCurveTo(t, (i = (i + r) / 2), n, i, n, r);
}
function Dw(e, t, i, n, r) {
var s = ww(t, i),
o = ww(t, (i = (i + r) / 2)),
a = ww(n, i),
l = ww(n, r);
e.moveTo(s[0], s[1]),
e.bezierCurveTo(o[0], o[1], a[0], a[1], l[0], l[1]);
}
function Nw() {
return xw(Lw);
}
function Ew() {
return xw(Mw);
}
function Tw() {
var e = xw(Dw);
return (e.angle = e.x), delete e.x, (e.radius = e.y), delete e.y, e;
}
const Iw = {
draw: function (e, t) {
var i = Math.sqrt(t / Ky);
e.moveTo(i, 0), e.arc(0, 0, i, 0, Gy);
},
},
Ow = {
draw: function (e, t) {
var i = Math.sqrt(t / 5) / 2;
e.moveTo(-3 * i, -i),
e.lineTo(-i, -i),
e.lineTo(-i, -3 * i),
e.lineTo(i, -3 * i),
e.lineTo(i, -i),
e.lineTo(3 * i, -i),
e.lineTo(3 * i, i),
e.lineTo(i, i),
e.lineTo(i, 3 * i),
e.lineTo(-i, 3 * i),
e.lineTo(-i, i),
e.lineTo(-3 * i, i),
e.closePath();
},
};
var Aw = Math.sqrt(1 / 3),
Rw = 2 * Aw;
const Pw = {
draw: function (e, t) {
var i = Math.sqrt(t / Rw),
n = i * Aw;
e.moveTo(0, -i),
e.lineTo(n, 0),
e.lineTo(0, i),
e.lineTo(-n, 0),
e.closePath();
},
};
var Fw = Math.sin(Ky / 10) / Math.sin((7 * Ky) / 10),
Bw = Math.sin(Gy / 10) * Fw,
Ww = -Math.cos(Gy / 10) * Fw;
const Yw = {
draw: function (e, t) {
var i = Math.sqrt(0.8908130915292852 * t),
n = Bw * i,
r = Ww * i;
e.moveTo(0, -i), e.lineTo(n, r);
for (var s = 1; s < 5; ++s) {
var o = (Gy * s) / 5,
a = Math.cos(o),
l = Math.sin(o);
e.lineTo(l * i, -a * i), e.lineTo(a * n - l * r, l * n + a * r);
}
e.closePath();
},
},
Hw = {
draw: function (e, t) {
var i = Math.sqrt(t),
n = -i / 2;
e.rect(n, n, i, i);
},
};
var jw = Math.sqrt(3);
const Vw = {
draw: function (e, t) {
var i = -Math.sqrt(t / (3 * jw));
e.moveTo(0, 2 * i),
e.lineTo(-jw * i, -i),
e.lineTo(jw * i, -i),
e.closePath();
},
};
var zw = -0.5,
Uw = Math.sqrt(3) / 2,
$w = 1 / Math.sqrt(12),
Kw = 3 * ($w / 2 + 1);
const qw = {
draw: function (e, t) {
var i = Math.sqrt(t / Kw),
n = i / 2,
r = i * $w,
s = n,
o = i * $w + i,
a = -s,
l = o;
e.moveTo(n, r),
e.lineTo(s, o),
e.lineTo(a, l),
e.lineTo(zw * n - Uw * r, Uw * n + zw * r),
e.lineTo(zw * s - Uw * o, Uw * s + zw * o),
e.lineTo(zw * a - Uw * l, Uw * a + zw * l),
e.lineTo(zw * n + Uw * r, zw * r - Uw * n),
e.lineTo(zw * s + Uw * o, zw * o - Uw * s),
e.lineTo(zw * a + Uw * l, zw * l - Uw * a),
e.closePath();
},
};
var Gw = [Iw, Ow, Pw, Hw, Yw, Vw, qw];
function Zw() {
var e = By(Iw),
t = By(64),
i = null;
function n() {
var n;
if (
(i || (i = n = $r()),
e.apply(this, arguments).draw(i, +t.apply(this, arguments)),
n)
)
return (i = null), n + '' || null;
}
return (
(n.type = function (t) {
return arguments.length
? ((e = 'function' == typeof t ? t : By(t)), n)
: e;
}),
(n.size = function (e) {
return arguments.length
? ((t = 'function' == typeof e ? e : By(+e)), n)
: t;
}),
(n.context = function (e) {
return arguments.length ? ((i = null == e ? null : e), n) : i;
}),
n
);
}
function Jw() {}
function Qw(e, t, i) {
e._context.bezierCurveTo(
(2 * e._x0 + e._x1) / 3,
(2 * e._y0 + e._y1) / 3,
(e._x0 + 2 * e._x1) / 3,
(e._y0 + 2 * e._y1) / 3,
(e._x0 + 4 * e._x1 + t) / 6,
(e._y0 + 4 * e._y1 + i) / 6
);
}
function Xw(e) {
this._context = e;
}
function eC(e) {
return new Xw(e);
}
function tC(e) {
this._context = e;
}
function iC(e) {
return new tC(e);
}
function nC(e) {
this._context = e;
}
function rC(e) {
return new nC(e);
}
function sC(e, t) {
(this._basis = new Xw(e)), (this._beta = t);
}
(Xw.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x0 = this._x1 = this._y0 = this._y1 = NaN),
(this._point = 0);
},
lineEnd: function () {
switch (this._point) {
case 3:
Qw(this, this._x1, this._y1);
case 2:
this._context.lineTo(this._x1, this._y1);
}
(this._line || (0 !== this._line && 1 === this._point)) &&
this._context.closePath(),
(this._line = 1 - this._line);
},
point: function (e, t) {
switch (((e = +e), (t = +t), this._point)) {
case 0:
(this._point = 1),
this._line
? this._context.lineTo(e, t)
: this._context.moveTo(e, t);
break;
case 1:
this._point = 2;
break;
case 2:
(this._point = 3),
this._context.lineTo(
(5 * this._x0 + this._x1) / 6,
(5 * this._y0 + this._y1) / 6
);
default:
Qw(this, e, t);
}
(this._x0 = this._x1),
(this._x1 = e),
(this._y0 = this._y1),
(this._y1 = t);
},
}),
(tC.prototype = {
areaStart: Jw,
areaEnd: Jw,
lineStart: function () {
(this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN),
(this._point = 0);
},
lineEnd: function () {
switch (this._point) {
case 1:
this._context.moveTo(this._x2, this._y2),
this._context.closePath();
break;
case 2:
this._context.moveTo(
(this._x2 + 2 * this._x3) / 3,
(this._y2 + 2 * this._y3) / 3
),
this._context.lineTo(
(this._x3 + 2 * this._x2) / 3,
(this._y3 + 2 * this._y2) / 3
),
this._context.closePath();
break;
case 3:
this.point(this._x2, this._y2),
this.point(this._x3, this._y3),
this.point(this._x4, this._y4);
}
},
point: function (e, t) {
switch (((e = +e), (t = +t), this._point)) {
case 0:
(this._point = 1), (this._x2 = e), (this._y2 = t);
break;
case 1:
(this._point = 2), (this._x3 = e), (this._y3 = t);
break;
case 2:
(this._point = 3),
(this._x4 = e),
(this._y4 = t),
this._context.moveTo(
(this._x0 + 4 * this._x1 + e) / 6,
(this._y0 + 4 * this._y1 + t) / 6
);
break;
default:
Qw(this, e, t);
}
(this._x0 = this._x1),
(this._x1 = e),
(this._y0 = this._y1),
(this._y1 = t);
},
}),
(nC.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x0 = this._x1 = this._y0 = this._y1 = NaN),
(this._point = 0);
},
lineEnd: function () {
(this._line || (0 !== this._line && 3 === this._point)) &&
this._context.closePath(),
(this._line = 1 - this._line);
},
point: function (e, t) {
switch (((e = +e), (t = +t), this._point)) {
case 0:
this._point = 1;
break;
case 1:
this._point = 2;
break;
case 2:
this._point = 3;
var i = (this._x0 + 4 * this._x1 + e) / 6,
n = (this._y0 + 4 * this._y1 + t) / 6;
this._line
? this._context.lineTo(i, n)
: this._context.moveTo(i, n);
break;
case 3:
this._point = 4;
default:
Qw(this, e, t);
}
(this._x0 = this._x1),
(this._x1 = e),
(this._y0 = this._y1),
(this._y1 = t);
},
}),
(sC.prototype = {
lineStart: function () {
(this._x = []), (this._y = []), this._basis.lineStart();
},
lineEnd: function () {
var e = this._x,
t = this._y,
i = e.length - 1;
if (i > 0)
for (
var n, r = e[0], s = t[0], o = e[i] - r, a = t[i] - s, l = -1;
++l <= i;
)
(n = l / i),
this._basis.point(
this._beta * e[l] + (1 - this._beta) * (r + n * o),
this._beta * t[l] + (1 - this._beta) * (s + n * a)
);
(this._x = this._y = null), this._basis.lineEnd();
},
point: function (e, t) {
this._x.push(+e), this._y.push(+t);
},
});
const oC = (function e(t) {
function i(e) {
return 1 === t ? new Xw(e) : new sC(e, t);
}
return (
(i.beta = function (t) {
return e(+t);
}),
i
);
})(0.85);
function aC(e, t, i) {
e._context.bezierCurveTo(
e._x1 + e._k * (e._x2 - e._x0),
e._y1 + e._k * (e._y2 - e._y0),
e._x2 + e._k * (e._x1 - t),
e._y2 + e._k * (e._y1 - i),
e._x2,
e._y2
);
}
function lC(e, t) {
(this._context = e), (this._k = (1 - t) / 6);
}
lC.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN),
(this._point = 0);
},
lineEnd: function () {
switch (this._point) {
case 2:
this._context.lineTo(this._x2, this._y2);
break;
case 3:
aC(this, this._x1, this._y1);
}
(this._line || (0 !== this._line && 1 === this._point)) &&
this._context.closePath(),
(this._line = 1 - this._line);
},
point: function (e, t) {
switch (((e = +e), (t = +t), this._point)) {
case 0:
(this._point = 1),
this._line
? this._context.lineTo(e, t)
: this._context.moveTo(e, t);
break;
case 1:
(this._point = 2), (this._x1 = e), (this._y1 = t);
break;
case 2:
this._point = 3;
default:
aC(this, e, t);
}
(this._x0 = this._x1),
(this._x1 = this._x2),
(this._x2 = e),
(this._y0 = this._y1),
(this._y1 = this._y2),
(this._y2 = t);
},
};
const cC = (function e(t) {
function i(e) {
return new lC(e, t);
}
return (
(i.tension = function (t) {
return e(+t);
}),
i
);
})(0);
function dC(e, t) {
(this._context = e), (this._k = (1 - t) / 6);
}
dC.prototype = {
areaStart: Jw,
areaEnd: Jw,
lineStart: function () {
(this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN),
(this._point = 0);
},
lineEnd: function () {
switch (this._point) {
case 1:
this._context.moveTo(this._x3, this._y3),
this._context.closePath();
break;
case 2:
this._context.lineTo(this._x3, this._y3),
this._context.closePath();
break;
case 3:
this.point(this._x3, this._y3),
this.point(this._x4, this._y4),
this.point(this._x5, this._y5);
}
},
point: function (e, t) {
switch (((e = +e), (t = +t), this._point)) {
case 0:
(this._point = 1), (this._x3 = e), (this._y3 = t);
break;
case 1:
(this._point = 2),
this._context.moveTo((this._x4 = e), (this._y4 = t));
break;
case 2:
(this._point = 3), (this._x5 = e), (this._y5 = t);
break;
default:
aC(this, e, t);
}
(this._x0 = this._x1),
(this._x1 = this._x2),
(this._x2 = e),
(this._y0 = this._y1),
(this._y1 = this._y2),
(this._y2 = t);
},
};
const hC = (function e(t) {
function i(e) {
return new dC(e, t);
}
return (
(i.tension = function (t) {
return e(+t);
}),
i
);
})(0);
function uC(e, t) {
(this._context = e), (this._k = (1 - t) / 6);
}
uC.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN),
(this._point = 0);
},
lineEnd: function () {
(this._line || (0 !== this._line && 3 === this._point)) &&
this._context.closePath(),
(this._line = 1 - this._line);
},
point: function (e, t) {
switch (((e = +e), (t = +t), this._point)) {
case 0:
this._point = 1;
break;
case 1:
this._point = 2;
break;
case 2:
(this._point = 3),
this._line
? this._context.lineTo(this._x2, this._y2)
: this._context.moveTo(this._x2, this._y2);
break;
case 3:
this._point = 4;
default:
aC(this, e, t);
}
(this._x0 = this._x1),
(this._x1 = this._x2),
(this._x2 = e),
(this._y0 = this._y1),
(this._y1 = this._y2),
(this._y2 = t);
},
};
const gC = (function e(t) {
function i(e) {
return new uC(e, t);
}
return (
(i.tension = function (t) {
return e(+t);
}),
i
);
})(0);
function fC(e, t, i) {
var n = e._x1,
r = e._y1,
s = e._x2,
o = e._y2;
if (e._l01_a > $y) {
var a = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a,
l = 3 * e._l01_a * (e._l01_a + e._l12_a);
(n = (n * a - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / l),
(r = (r * a - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / l);
}
if (e._l23_a > $y) {
var c = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a,
d = 3 * e._l23_a * (e._l23_a + e._l12_a);
(s = (s * c + e._x1 * e._l23_2a - t * e._l12_2a) / d),
(o = (o * c + e._y1 * e._l23_2a - i * e._l12_2a) / d);
}
e._context.bezierCurveTo(n, r, s, o, e._x2, e._y2);
}
function pC(e, t) {
(this._context = e), (this._alpha = t);
}
pC.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN),
(this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0);
},
lineEnd: function () {
switch (this._point) {
case 2:
this._context.lineTo(this._x2, this._y2);
break;
case 3:
this.point(this._x2, this._y2);
}
(this._line || (0 !== this._line && 1 === this._point)) &&
this._context.closePath(),
(this._line = 1 - this._line);
},
point: function (e, t) {
if (((e = +e), (t = +t), this._point)) {
var i = this._x2 - e,
n = this._y2 - t;
this._l23_a = Math.sqrt(
(this._l23_2a = Math.pow(i * i + n * n, this._alpha))
);
}
switch (this._point) {
case 0:
(this._point = 1),
this._line
? this._context.lineTo(e, t)
: this._context.moveTo(e, t);
break;
case 1:
this._point = 2;
break;
case 2:
this._point = 3;
default:
fC(this, e, t);
}
(this._l01_a = this._l12_a),
(this._l12_a = this._l23_a),
(this._l01_2a = this._l12_2a),
(this._l12_2a = this._l23_2a),
(this._x0 = this._x1),
(this._x1 = this._x2),
(this._x2 = e),
(this._y0 = this._y1),
(this._y1 = this._y2),
(this._y2 = t);
},
};
const mC = (function e(t) {
function i(e) {
return t ? new pC(e, t) : new lC(e, 0);
}
return (
(i.alpha = function (t) {
return e(+t);
}),
i
);
})(0.5);
function _C(e, t) {
(this._context = e), (this._alpha = t);
}
_C.prototype = {
areaStart: Jw,
areaEnd: Jw,
lineStart: function () {
(this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN),
(this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0);
},
lineEnd: function () {
switch (this._point) {
case 1:
this._context.moveTo(this._x3, this._y3),
this._context.closePath();
break;
case 2:
this._context.lineTo(this._x3, this._y3),
this._context.closePath();
break;
case 3:
this.point(this._x3, this._y3),
this.point(this._x4, this._y4),
this.point(this._x5, this._y5);
}
},
point: function (e, t) {
if (((e = +e), (t = +t), this._point)) {
var i = this._x2 - e,
n = this._y2 - t;
this._l23_a = Math.sqrt(
(this._l23_2a = Math.pow(i * i + n * n, this._alpha))
);
}
switch (this._point) {
case 0:
(this._point = 1), (this._x3 = e), (this._y3 = t);
break;
case 1:
(this._point = 2),
this._context.moveTo((this._x4 = e), (this._y4 = t));
break;
case 2:
(this._point = 3), (this._x5 = e), (this._y5 = t);
break;
default:
fC(this, e, t);
}
(this._l01_a = this._l12_a),
(this._l12_a = this._l23_a),
(this._l01_2a = this._l12_2a),
(this._l12_2a = this._l23_2a),
(this._x0 = this._x1),
(this._x1 = this._x2),
(this._x2 = e),
(this._y0 = this._y1),
(this._y1 = this._y2),
(this._y2 = t);
},
};
const bC = (function e(t) {
function i(e) {
return t ? new _C(e, t) : new dC(e, 0);
}
return (
(i.alpha = function (t) {
return e(+t);
}),
i
);
})(0.5);
function vC(e, t) {
(this._context = e), (this._alpha = t);
}
vC.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN),
(this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0);
},
lineEnd: function () {
(this._line || (0 !== this._line && 3 === this._point)) &&
this._context.closePath(),
(this._line = 1 - this._line);
},
point: function (e, t) {
if (((e = +e), (t = +t), this._point)) {
var i = this._x2 - e,
n = this._y2 - t;
this._l23_a = Math.sqrt(
(this._l23_2a = Math.pow(i * i + n * n, this._alpha))
);
}
switch (this._point) {
case 0:
this._point = 1;
break;
case 1:
this._point = 2;
break;
case 2:
(this._point = 3),
this._line
? this._context.lineTo(this._x2, this._y2)
: this._context.moveTo(this._x2, this._y2);
break;
case 3:
this._point = 4;
default:
fC(this, e, t);
}
(this._l01_a = this._l12_a),
(this._l12_a = this._l23_a),
(this._l01_2a = this._l12_2a),
(this._l12_2a = this._l23_2a),
(this._x0 = this._x1),
(this._x1 = this._x2),
(this._x2 = e),
(this._y0 = this._y1),
(this._y1 = this._y2),
(this._y2 = t);
},
};
const yC = (function e(t) {
function i(e) {
return t ? new vC(e, t) : new uC(e, 0);
}
return (
(i.alpha = function (t) {
return e(+t);
}),
i
);
})(0.5);
function wC(e) {
this._context = e;
}
function CC(e) {
return new wC(e);
}
function SC(e) {
return e < 0 ? -1 : 1;
}
function kC(e, t, i) {
var n = e._x1 - e._x0,
r = t - e._x1,
s = (e._y1 - e._y0) / (n || (r < 0 && -0)),
o = (i - e._y1) / (r || (n < 0 && -0)),
a = (s * r + o * n) / (n + r);
return (
(SC(s) + SC(o)) *
Math.min(Math.abs(s), Math.abs(o), 0.5 * Math.abs(a)) || 0
);
}
function xC(e, t) {
var i = e._x1 - e._x0;
return i ? ((3 * (e._y1 - e._y0)) / i - t) / 2 : t;
}
function LC(e, t, i) {
var n = e._x0,
r = e._y0,
s = e._x1,
o = e._y1,
a = (s - n) / 3;
e._context.bezierCurveTo(n + a, r + a * t, s - a, o - a * i, s, o);
}
function MC(e) {
this._context = e;
}
function DC(e) {
this._context = new NC(e);
}
function NC(e) {
this._context = e;
}
function EC(e) {
return new MC(e);
}
function TC(e) {
return new DC(e);
}
function IC(e) {
this._context = e;
}
function OC(e) {
var t,
i,
n = e.length - 1,
r = new Array(n),
s = new Array(n),
o = new Array(n);
for (
r[0] = 0, s[0] = 2, o[0] = e[0] + 2 * e[1], t = 1;
t < n - 1;
++t
)
(r[t] = 1), (s[t] = 4), (o[t] = 4 * e[t] + 2 * e[t + 1]);
for (
r[n - 1] = 2, s[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1;
t < n;
++t
)
(i = r[t] / s[t - 1]), (s[t] -= i), (o[t] -= i * o[t - 1]);
for (r[n - 1] = o[n - 1] / s[n - 1], t = n - 2; t >= 0; --t)
r[t] = (o[t] - r[t + 1]) / s[t];
for (s[n - 1] = (e[n] + r[n - 1]) / 2, t = 0; t < n - 1; ++t)
s[t] = 2 * e[t + 1] - r[t + 1];
return [r, s];
}
function AC(e) {
return new IC(e);
}
function RC(e, t) {
(this._context = e), (this._t = t);
}
function PC(e) {
return new RC(e, 0.5);
}
function FC(e) {
return new RC(e, 0);
}
function BC(e) {
return new RC(e, 1);
}
function WC(e, t) {
if ((r = e.length) > 1)
for (var i, n, r, s = 1, o = e[t[0]], a = o.length; s < r; ++s)
for (n = o, o = e[t[s]], i = 0; i < a; ++i)
o[i][1] += o[i][0] = isNaN(n[i][1]) ? n[i][0] : n[i][1];
}
function YC(e) {
for (var t = e.length, i = new Array(t); --t >= 0; ) i[t] = t;
return i;
}
function HC(e, t) {
return e[t];
}
function jC() {
var e = By([]),
t = YC,
i = WC,
n = HC;
function r(r) {
var s,
o,
a = e.apply(this, arguments),
l = r.length,
c = a.length,
d = new Array(c);
for (s = 0; s < c; ++s) {
for (
var h, u = a[s], g = (d[s] = new Array(l)), f = 0;
f < l;
++f
)
(g[f] = h = [0, +n(r[f], u, f, r)]), (h.data = r[f]);
g.key = u;
}
for (s = 0, o = t(d); s < c; ++s) d[o[s]].index = s;
return i(d, o), d;
}
return (
(r.keys = function (t) {
return arguments.length
? ((e = 'function' == typeof t ? t : By(Cw.call(t))), r)
: e;
}),
(r.value = function (e) {
return arguments.length
? ((n = 'function' == typeof e ? e : By(+e)), r)
: n;
}),
(r.order = function (e) {
return arguments.length
? ((t =
null == e
? YC
: 'function' == typeof e
? e
: By(Cw.call(e))),
r)
: t;
}),
(r.offset = function (e) {
return arguments.length ? ((i = null == e ? WC : e), r) : i;
}),
r
);
}
function VC(e, t) {
if ((n = e.length) > 0) {
for (var i, n, r, s = 0, o = e[0].length; s < o; ++s) {
for (r = i = 0; i < n; ++i) r += e[i][s][1] || 0;
if (r) for (i = 0; i < n; ++i) e[i][s][1] /= r;
}
WC(e, t);
}
}
function zC(e, t) {
if ((a = e.length) > 0)
for (var i, n, r, s, o, a, l = 0, c = e[t[0]].length; l < c; ++l)
for (s = o = 0, i = 0; i < a; ++i)
(r = (n = e[t[i]][l])[1] - n[0]) > 0
? ((n[0] = s), (n[1] = s += r))
: r < 0
? ((n[1] = o), (n[0] = o += r))
: ((n[0] = 0), (n[1] = r));
}
function UC(e, t) {
if ((i = e.length) > 0) {
for (var i, n = 0, r = e[t[0]], s = r.length; n < s; ++n) {
for (var o = 0, a = 0; o < i; ++o) a += e[o][n][1] || 0;
r[n][1] += r[n][0] = -a / 2;
}
WC(e, t);
}
}
function $C(e, t) {
if ((r = e.length) > 0 && (n = (i = e[t[0]]).length) > 0) {
for (var i, n, r, s = 0, o = 1; o < n; ++o) {
for (var a = 0, l = 0, c = 0; a < r; ++a) {
for (
var d = e[t[a]],
h = d[o][1] || 0,
u = (h - (d[o - 1][1] || 0)) / 2,
g = 0;
g < a;
++g
) {
var f = e[t[g]];
u += (f[o][1] || 0) - (f[o - 1][1] || 0);
}
(l += h), (c += u * h);
}
(i[o - 1][1] += i[o - 1][0] = s), l && (s -= c / l);
}
(i[o - 1][1] += i[o - 1][0] = s), WC(e, t);
}
}
function KC(e) {
var t = e.map(qC);
return YC(e).sort(function (e, i) {
return t[e] - t[i];
});
}
function qC(e) {
for (var t, i = -1, n = 0, r = e.length, s = -1 / 0; ++i < r; )
(t = +e[i][1]) > s && ((s = t), (n = i));
return n;
}
function GC(e) {
var t = e.map(ZC);
return YC(e).sort(function (e, i) {
return t[e] - t[i];
});
}
function ZC(e) {
for (var t, i = 0, n = -1, r = e.length; ++n < r; )
(t = +e[n][1]) && (i += t);
return i;
}
function JC(e) {
return GC(e).reverse();
}
function QC(e) {
var t,
i,
n = e.length,
r = e.map(ZC),
s = KC(e),
o = 0,
a = 0,
l = [],
c = [];
for (t = 0; t < n; ++t)
(i = s[t]),
o < a ? ((o += r[i]), l.push(i)) : ((a += r[i]), c.push(i));
return c.reverse().concat(l);
}
function XC(e) {
return YC(e).reverse();
}
(wC.prototype = {
areaStart: Jw,
areaEnd: Jw,
lineStart: function () {
this._point = 0;
},
lineEnd: function () {
this._point && this._context.closePath();
},
point: function (e, t) {
(e = +e),
(t = +t),
this._point
? this._context.lineTo(e, t)
: ((this._point = 1), this._context.moveTo(e, t));
},
}),
(MC.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN),
(this._point = 0);
},
lineEnd: function () {
switch (this._point) {
case 2:
this._context.lineTo(this._x1, this._y1);
break;
case 3:
LC(this, this._t0, xC(this, this._t0));
}
(this._line || (0 !== this._line && 1 === this._point)) &&
this._context.closePath(),
(this._line = 1 - this._line);
},
point: function (e, t) {
var i = NaN;
if (((t = +t), (e = +e) !== this._x1 || t !== this._y1)) {
switch (this._point) {
case 0:
(this._point = 1),
this._line
? this._context.lineTo(e, t)
: this._context.moveTo(e, t);
break;
case 1:
this._point = 2;
break;
case 2:
(this._point = 3),
LC(this, xC(this, (i = kC(this, e, t))), i);
break;
default:
LC(this, this._t0, (i = kC(this, e, t)));
}
(this._x0 = this._x1),
(this._x1 = e),
(this._y0 = this._y1),
(this._y1 = t),
(this._t0 = i);
}
},
}),
((DC.prototype = Object.create(MC.prototype)).point = function (
e,
t
) {
MC.prototype.point.call(this, t, e);
}),
(NC.prototype = {
moveTo: function (e, t) {
this._context.moveTo(t, e);
},
closePath: function () {
this._context.closePath();
},
lineTo: function (e, t) {
this._context.lineTo(t, e);
},
bezierCurveTo: function (e, t, i, n, r, s) {
this._context.bezierCurveTo(t, e, n, i, s, r);
},
}),
(IC.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x = []), (this._y = []);
},
lineEnd: function () {
var e = this._x,
t = this._y,
i = e.length;
if (i)
if (
(this._line
? this._context.lineTo(e[0], t[0])
: this._context.moveTo(e[0], t[0]),
2 === i)
)
this._context.lineTo(e[1], t[1]);
else
for (var n = OC(e), r = OC(t), s = 0, o = 1; o < i; ++s, ++o)
this._context.bezierCurveTo(
n[0][s],
r[0][s],
n[1][s],
r[1][s],
e[o],
t[o]
);
(this._line || (0 !== this._line && 1 === i)) &&
this._context.closePath(),
(this._line = 1 - this._line),
(this._x = this._y = null);
},
point: function (e, t) {
this._x.push(+e), this._y.push(+t);
},
}),
(RC.prototype = {
areaStart: function () {
this._line = 0;
},
areaEnd: function () {
this._line = NaN;
},
lineStart: function () {
(this._x = this._y = NaN), (this._point = 0);
},
lineEnd: function () {
0 < this._t &&
this._t < 1 &&
2 === this._point &&
this._context.lineTo(this._x, this._y),
(this._line || (0 !== this._line && 1 === this._point)) &&
this._context.closePath(),
this._line >= 0 &&
((this._t = 1 - this._t), (this._line = 1 - this._line));
},
point: function (e, t) {
switch (((e = +e), (t = +t), this._point)) {
case 0:
(this._point = 1),
this._line
? this._context.lineTo(e, t)
: this._context.moveTo(e, t);
break;
case 1:
this._point = 2;
default:
if (this._t <= 0)
this._context.lineTo(this._x, t),
this._context.lineTo(e, t);
else {
var i = this._x * (1 - this._t) + e * this._t;
this._context.lineTo(i, this._y),
this._context.lineTo(i, t);
}
}
(this._x = e), (this._y = t);
},
});
var eS = '%Y-%m-%dT%H:%M:%S.%LZ';
const tS = Date.prototype.toISOString
? function (e) {
return e.toISOString();
}
: p_(eS),
iS = +new Date('2000-01-01T00:00:00.000Z')
? function (e) {
var t = new Date(e);
return isNaN(t) ? null : t;
}
: m_(eS);
function nS(e, t, i) {
var n = new Ui(),
r = t;
return null == t
? (n.restart(e, t, i), n)
: ((t = +t),
(i = null == i ? Vi() : +i),
n.restart(
function s(o) {
(o += r), n.restart(s, (r += t), i), e(o);
},
t,
i
),
n);
}
function rS(e) {
return function () {
return e;
};
}
function sS(e) {
return e[0];
}
function oS(e) {
return e[1];
}
function aS() {
this._ = null;
}
function lS(e) {
e.U = e.C = e.L = e.R = e.P = e.N = null;
}
function cS(e, t) {
var i = t,
n = t.R,
r = i.U;
r ? (r.L === i ? (r.L = n) : (r.R = n)) : (e._ = n),
(n.U = r),
(i.U = n),
(i.R = n.L),
i.R && (i.R.U = i),
(n.L = i);
}
function dS(e, t) {
var i = t,
n = t.L,
r = i.U;
r ? (r.L === i ? (r.L = n) : (r.R = n)) : (e._ = n),
(n.U = r),
(i.U = n),
(i.L = n.R),
i.L && (i.L.U = i),
(n.R = i);
}
function hS(e) {
for (; e.L; ) e = e.L;
return e;
}
aS.prototype = {
constructor: aS,
insert: function (e, t) {
var i, n, r;
if (e) {
if (
((t.P = e), (t.N = e.N), e.N && (e.N.P = t), (e.N = t), e.R)
) {
for (e = e.R; e.L; ) e = e.L;
e.L = t;
} else e.R = t;
i = e;
} else
this._
? ((e = hS(this._)),
(t.P = null),
(t.N = e),
(e.P = e.L = t),
(i = e))
: ((t.P = t.N = null), (this._ = t), (i = null));
for (t.L = t.R = null, t.U = i, t.C = !0, e = t; i && i.C; )
i === (n = i.U).L
? (r = n.R) && r.C
? ((i.C = r.C = !1), (n.C = !0), (e = n))
: (e === i.R && (cS(this, i), (i = (e = i).U)),
(i.C = !1),
(n.C = !0),
dS(this, n))
: (r = n.L) && r.C
? ((i.C = r.C = !1), (n.C = !0), (e = n))
: (e === i.L && (dS(this, i), (i = (e = i).U)),
(i.C = !1),
(n.C = !0),
cS(this, n)),
(i = e.U);
this._.C = !1;
},
remove: function (e) {
e.N && (e.N.P = e.P), e.P && (e.P.N = e.N), (e.N = e.P = null);
var t,
i,
n,
r = e.U,
s = e.L,
o = e.R;
if (
((i = s ? (o ? hS(o) : s) : o),
r ? (r.L === e ? (r.L = i) : (r.R = i)) : (this._ = i),
s && o
? ((n = i.C),
(i.C = e.C),
(i.L = s),
(s.U = i),
i !== o
? ((r = i.U),
(i.U = e.U),
(e = i.R),
(r.L = e),
(i.R = o),
(o.U = i))
: ((i.U = r), (r = i), (e = i.R)))
: ((n = e.C), (e = i)),
e && (e.U = r),
!n)
)
if (e && e.C) e.C = !1;
else {
do {
if (e === this._) break;
if (e === r.L) {
if (
((t = r.R).C &&
((t.C = !1), (r.C = !0), cS(this, r), (t = r.R)),
(t.L && t.L.C) || (t.R && t.R.C))
) {
(t.R && t.R.C) ||
((t.L.C = !1), (t.C = !0), dS(this, t), (t = r.R)),
(t.C = r.C),
(r.C = t.R.C = !1),
cS(this, r),
(e = this._);
break;
}
} else if (
((t = r.L).C &&
((t.C = !1), (r.C = !0), dS(this, r), (t = r.L)),
(t.L && t.L.C) || (t.R && t.R.C))
) {
(t.L && t.L.C) ||
((t.R.C = !1), (t.C = !0), cS(this, t), (t = r.L)),
(t.C = r.C),
(r.C = t.L.C = !1),
dS(this, r),
(e = this._);
break;
}
(t.C = !0), (e = r), (r = r.U);
} while (!e.C);
e && (e.C = !1);
}
},
};
const uS = aS;
function gS(e, t, i, n) {
var r = [null, null],
s = FS.push(r) - 1;
return (
(r.left = e),
(r.right = t),
i && pS(r, e, t, i),
n && pS(r, t, e, n),
RS[e.index].halfedges.push(s),
RS[t.index].halfedges.push(s),
r
);
}
function fS(e, t, i) {
var n = [t, i];
return (n.left = e), n;
}
function pS(e, t, i, n) {
e[0] || e[1]
? e.left === i
? (e[1] = n)
: (e[0] = n)
: ((e[0] = n), (e.left = t), (e.right = i));
}
function mS(e, t, i, n, r) {
var s,
o = e[0],
a = e[1],
l = o[0],
c = o[1],
d = 0,
h = 1,
u = a[0] - l,
g = a[1] - c;
if (((s = t - l), u || !(s > 0))) {
if (((s /= u), u < 0)) {
if (s < d) return;
s < h && (h = s);
} else if (u > 0) {
if (s > h) return;
s > d && (d = s);
}
if (((s = n - l), u || !(s < 0))) {
if (((s /= u), u < 0)) {
if (s > h) return;
s > d && (d = s);
} else if (u > 0) {
if (s < d) return;
s < h && (h = s);
}
if (((s = i - c), g || !(s > 0))) {
if (((s /= g), g < 0)) {
if (s < d) return;
s < h && (h = s);
} else if (g > 0) {
if (s > h) return;
s > d && (d = s);
}
if (((s = r - c), g || !(s < 0))) {
if (((s /= g), g < 0)) {
if (s > h) return;
s > d && (d = s);
} else if (g > 0) {
if (s < d) return;
s < h && (h = s);
}
return (
!(d > 0 || h < 1) ||
(d > 0 && (e[0] = [l + d * u, c + d * g]),
h < 1 && (e[1] = [l + h * u, c + h * g]),
!0)
);
}
}
}
}
}
function _S(e, t, i, n, r) {
var s = e[1];
if (s) return !0;
var o,
a,
l = e[0],
c = e.left,
d = e.right,
h = c[0],
u = c[1],
g = d[0],
f = d[1],
p = (h + g) / 2,
m = (u + f) / 2;
if (f === u) {
if (p < t || p >= n) return;
if (h > g) {
if (l) {
if (l[1] >= r) return;
} else l = [p, i];
s = [p, r];
} else {
if (l) {
if (l[1] < i) return;
} else l = [p, r];
s = [p, i];
}
} else if (((a = m - (o = (h - g) / (f - u)) * p), o < -1 || o > 1))
if (h > g) {
if (l) {
if (l[1] >= r) return;
} else l = [(i - a) / o, i];
s = [(r - a) / o, r];
} else {
if (l) {
if (l[1] < i) return;
} else l = [(r - a) / o, r];
s = [(i - a) / o, i];
}
else if (u < f) {
if (l) {
if (l[0] >= n) return;
} else l = [t, o * t + a];
s = [n, o * n + a];
} else {
if (l) {
if (l[0] < t) return;
} else l = [n, o * n + a];
s = [t, o * t + a];
}
return (e[0] = l), (e[1] = s), !0;
}
function bS(e, t) {
var i = e.site,
n = t.left,
r = t.right;
return (
i === r && ((r = n), (n = i)),
r
? Math.atan2(r[1] - n[1], r[0] - n[0])
: (i === n ? ((n = t[1]), (r = t[0])) : ((n = t[0]), (r = t[1])),
Math.atan2(n[0] - r[0], r[1] - n[1]))
);
}
function vS(e, t) {
return t[+(t.left !== e.site)];
}
function yS(e, t) {
return t[+(t.left === e.site)];
}
var wS,
CS = [];
function SS() {
lS(this), (this.x = this.y = this.arc = this.site = this.cy = null);
}
function kS(e) {
var t = e.P,
i = e.N;
if (t && i) {
var n = t.site,
r = e.site,
s = i.site;
if (n !== s) {
var o = r[0],
a = r[1],
l = n[0] - o,
c = n[1] - a,
d = s[0] - o,
h = s[1] - a,
u = 2 * (l * h - c * d);
if (!(u >= -WS)) {
var g = l * l + c * c,
f = d * d + h * h,
p = (h * g - c * f) / u,
m = (l * f - d * g) / u,
_ = CS.pop() || new SS();
(_.arc = e),
(_.site = r),
(_.x = p + o),
(_.y = (_.cy = m + a) + Math.sqrt(p * p + m * m)),
(e.circle = _);
for (var b = null, v = PS._; v; )
if (_.y < v.y || (_.y === v.y && _.x <= v.x)) {
if (!v.L) {
b = v.P;
break;
}
v = v.L;
} else {
if (!v.R) {
b = v;
break;
}
v = v.R;
}
PS.insert(b, _), b || (wS = _);
}
}
}
}
function xS(e) {
var t = e.circle;
t &&
(t.P || (wS = t.N),
PS.remove(t),
CS.push(t),
lS(t),
(e.circle = null));
}
var LS = [];
function MS() {
lS(this), (this.edge = this.site = this.circle = null);
}
function DS(e) {
var t = LS.pop() || new MS();
return (t.site = e), t;
}
function NS(e) {
xS(e), AS.remove(e), LS.push(e), lS(e);
}
function ES(e) {
var t = e.circle,
i = t.x,
n = t.cy,
r = [i, n],
s = e.P,
o = e.N,
a = [e];
NS(e);
for (
var l = s;
l.circle &&
Math.abs(i - l.circle.x) < BS &&
Math.abs(n - l.circle.cy) < BS;
)
(s = l.P), a.unshift(l), NS(l), (l = s);
a.unshift(l), xS(l);
for (
var c = o;
c.circle &&
Math.abs(i - c.circle.x) < BS &&
Math.abs(n - c.circle.cy) < BS;
)
(o = c.N), a.push(c), NS(c), (c = o);
a.push(c), xS(c);
var d,
h = a.length;
for (d = 1; d < h; ++d)
(c = a[d]), (l = a[d - 1]), pS(c.edge, l.site, c.site, r);
(l = a[0]),
((c = a[h - 1]).edge = gS(l.site, c.site, null, r)),
kS(l),
kS(c);
}
function TS(e) {
for (var t, i, n, r, s = e[0], o = e[1], a = AS._; a; )
if ((n = IS(a, o) - s) > BS) a = a.L;
else {
if (!((r = s - OS(a, o)) > BS)) {
n > -BS
? ((t = a.P), (i = a))
: r > -BS
? ((t = a), (i = a.N))
: (t = i = a);
break;
}
if (!a.R) {
t = a;
break;
}
a = a.R;
}
!(function (e) {
RS[e.index] = { site: e, halfedges: [] };
})(e);
var l = DS(e);
if ((AS.insert(t, l), t || i)) {
if (t === i)
return (
xS(t),
(i = DS(t.site)),
AS.insert(l, i),
(l.edge = i.edge = gS(t.site, l.site)),
kS(t),
void kS(i)
);
if (i) {
xS(t), xS(i);
var c = t.site,
d = c[0],
h = c[1],
u = e[0] - d,
g = e[1] - h,
f = i.site,
p = f[0] - d,
m = f[1] - h,
_ = 2 * (u * m - g * p),
b = u * u + g * g,
v = p * p + m * m,
y = [(m * b - g * v) / _ + d, (u * v - p * b) / _ + h];
pS(i.edge, c, f, y),
(l.edge = gS(c, e, null, y)),
(i.edge = gS(e, f, null, y)),
kS(t),
kS(i);
} else l.edge = gS(t.site, l.site);
}
}
function IS(e, t) {
var i = e.site,
n = i[0],
r = i[1],
s = r - t;
if (!s) return n;
var o = e.P;
if (!o) return -1 / 0;
var a = (i = o.site)[0],
l = i[1],
c = l - t;
if (!c) return a;
var d = a - n,
h = 1 / s - 1 / c,
u = d / c;
return h
? (-u +
Math.sqrt(
u * u - 2 * h * ((d * d) / (-2 * c) - l + c / 2 + r - s / 2)
)) /
h +
n
: (n + a) / 2;
}
function OS(e, t) {
var i = e.N;
if (i) return IS(i, t);
var n = e.site;
return n[1] === t ? n[0] : 1 / 0;
}
var AS,
RS,
PS,
FS,
BS = 1e-6,
WS = 1e-12;
function YS(e, t, i) {
return (e[0] - i[0]) * (t[1] - e[1]) - (e[0] - t[0]) * (i[1] - e[1]);
}
function HS(e, t) {
return t[1] - e[1] || t[0] - e[0];
}
function jS(e, t) {
var i,
n,
r,
s = e.sort(HS).pop();
for (
FS = [], RS = new Array(e.length), AS = new uS(), PS = new uS();
;
)
if (
((r = wS),
s && (!r || s[1] < r.y || (s[1] === r.y && s[0] < r.x)))
)
(s[0] === i && s[1] === n) || (TS(s), (i = s[0]), (n = s[1])),
(s = e.pop());
else {
if (!r) break;
ES(r.arc);
}
if (
((function () {
for (var e, t, i, n, r = 0, s = RS.length; r < s; ++r)
if ((e = RS[r]) && (n = (t = e.halfedges).length)) {
var o = new Array(n),
a = new Array(n);
for (i = 0; i < n; ++i) (o[i] = i), (a[i] = bS(e, FS[t[i]]));
for (
o.sort(function (e, t) {
return a[t] - a[e];
}),
i = 0;
i < n;
++i
)
a[i] = t[o[i]];
for (i = 0; i < n; ++i) t[i] = a[i];
}
})(),
t)
) {
var o = +t[0][0],
a = +t[0][1],
l = +t[1][0],
c = +t[1][1];
!(function (e, t, i, n) {
for (var r, s = FS.length; s--; )
(_S((r = FS[s]), e, t, i, n) &&
mS(r, e, t, i, n) &&
(Math.abs(r[0][0] - r[1][0]) > BS ||
Math.abs(r[0][1] - r[1][1]) > BS)) ||
delete FS[s];
})(o, a, l, c),
(function (e, t, i, n) {
var r,
s,
o,
a,
l,
c,
d,
h,
u,
g,
f,
p,
m = RS.length,
_ = !0;
for (r = 0; r < m; ++r)
if ((s = RS[r])) {
for (o = s.site, a = (l = s.halfedges).length; a--; )
FS[l[a]] || l.splice(a, 1);
for (a = 0, c = l.length; a < c; )
(f = (g = yS(s, FS[l[a]]))[0]),
(p = g[1]),
(h = (d = vS(s, FS[l[++a % c]]))[0]),
(u = d[1]),
(Math.abs(f - h) > BS || Math.abs(p - u) > BS) &&
(l.splice(
a,
0,
FS.push(
fS(
o,
g,
Math.abs(f - e) < BS && n - p > BS
? [e, Math.abs(h - e) < BS ? u : n]
: Math.abs(p - n) < BS && i - f > BS
? [Math.abs(u - n) < BS ? h : i, n]
: Math.abs(f - i) < BS && p - t > BS
? [i, Math.abs(h - i) < BS ? u : t]
: Math.abs(p - t) < BS && f - e > BS
? [Math.abs(u - t) < BS ? h : e, t]
: null
)
) - 1
),
++c);
c && (_ = !1);
}
if (_) {
var b,
v,
y,
w = 1 / 0;
for (r = 0, _ = null; r < m; ++r)
(s = RS[r]) &&
(y = (b = (o = s.site)[0] - e) * b + (v = o[1] - t) * v) <
w &&
((w = y), (_ = s));
if (_) {
var C = [e, t],
S = [e, n],
k = [i, n],
x = [i, t];
_.halfedges.push(
FS.push(fS((o = _.site), C, S)) - 1,
FS.push(fS(o, S, k)) - 1,
FS.push(fS(o, k, x)) - 1,
FS.push(fS(o, x, C)) - 1
);
}
}
for (r = 0; r < m; ++r)
(s = RS[r]) && (s.halfedges.length || delete RS[r]);
})(o, a, l, c);
}
(this.edges = FS), (this.cells = RS), (AS = PS = FS = RS = null);
}
function VS() {
var e = sS,
t = oS,
i = null;
function n(n) {
return new jS(
n.map(function (i, r) {
var s = [
Math.round(e(i, r, n) / BS) * BS,
Math.round(t(i, r, n) / BS) * BS,
];
return (s.index = r), (s.data = i), s;
}),
i
);
}
return (
(n.polygons = function (e) {
return n(e).polygons();
}),
(n.links = function (e) {
return n(e).links();
}),
(n.triangles = function (e) {
return n(e).triangles();
}),
(n.x = function (t) {
return arguments.length
? ((e = 'function' == typeof t ? t : rS(+t)), n)
: e;
}),
(n.y = function (e) {
return arguments.length
? ((t = 'function' == typeof e ? e : rS(+e)), n)
: t;
}),
(n.extent = function (e) {
return arguments.length
? ((i =
null == e
? null
: [
[+e[0][0], +e[0][1]],
[+e[1][0], +e[1][1]],
]),
n)
: i && [
[i[0][0], i[0][1]],
[i[1][0], i[1][1]],
];
}),
(n.size = function (e) {
return arguments.length
? ((i =
null == e
? null
: [
[0, 0],
[+e[0], +e[1]],
]),
n)
: i && [i[1][0] - i[0][0], i[1][1] - i[0][1]];
}),
n
);
}
function zS(e) {
return function () {
return e;
};
}
function US(e, t, i) {
(this.target = e), (this.type = t), (this.transform = i);
}
function $S(e, t, i) {
(this.k = e), (this.x = t), (this.y = i);
}
(jS.prototype = {
constructor: jS,
polygons: function () {
var e = this.edges;
return this.cells.map(function (t) {
var i = t.halfedges.map(function (i) {
return vS(t, e[i]);
});
return (i.data = t.site.data), i;
});
},
triangles: function () {
var e = [],
t = this.edges;
return (
this.cells.forEach(function (i, n) {
if ((s = (r = i.halfedges).length))
for (
var r,
s,
o,
a = i.site,
l = -1,
c = t[r[s - 1]],
d = c.left === a ? c.right : c.left;
++l < s;
)
(o = d),
(d = (c = t[r[l]]).left === a ? c.right : c.left),
o &&
d &&
n < o.index &&
n < d.index &&
YS(a, o, d) < 0 &&
e.push([a.data, o.data, d.data]);
}),
e
);
},
links: function () {
return this.edges
.filter(function (e) {
return e.right;
})
.map(function (e) {
return { source: e.left.data, target: e.right.data };
});
},
find: function (e, t, i) {
for (
var n, r, s = this, o = s._found || 0, a = s.cells.length;
!(r = s.cells[o]);
)
if (++o >= a) return null;
var l = e - r.site[0],
c = t - r.site[1],
d = l * l + c * c;
do {
(r = s.cells[(n = o)]),
(o = null),
r.halfedges.forEach(function (i) {
var n = s.edges[i],
a = n.left;
if ((a !== r.site && a) || (a = n.right)) {
var l = e - a[0],
c = t - a[1],
h = l * l + c * c;
h < d && ((d = h), (o = a.index));
}
});
} while (null !== o);
return (s._found = n), null == i || d <= i * i ? r.site : null;
},
}),
($S.prototype = {
constructor: $S,
scale: function (e) {
return 1 === e ? this : new $S(this.k * e, this.x, this.y);
},
translate: function (e, t) {
return (0 === e) & (0 === t)
? this
: new $S(this.k, this.x + this.k * e, this.y + this.k * t);
},
apply: function (e) {
return [e[0] * this.k + this.x, e[1] * this.k + this.y];
},
applyX: function (e) {
return e * this.k + this.x;
},
applyY: function (e) {
return e * this.k + this.y;
},
invert: function (e) {
return [(e[0] - this.x) / this.k, (e[1] - this.y) / this.k];
},
invertX: function (e) {
return (e - this.x) / this.k;
},
invertY: function (e) {
return (e - this.y) / this.k;
},
rescaleX: function (e) {
return e
.copy()
.domain(e.range().map(this.invertX, this).map(e.invert, e));
},
rescaleY: function (e) {
return e
.copy()
.domain(e.range().map(this.invertY, this).map(e.invert, e));
},
toString: function () {
return (
'translate(' + this.x + ',' + this.y + ') scale(' + this.k + ')'
);
},
});
var KS = new $S(1, 0, 0);
function qS(e) {
for (; !e.__zoom; ) if (!(e = e.parentNode)) return KS;
return e.__zoom;
}
function GS() {
dt.stopImmediatePropagation();
}
function ZS() {
dt.preventDefault(), dt.stopImmediatePropagation();
}
function JS() {
return !dt.ctrlKey && !dt.button;
}
function QS() {
var e = this;
return e instanceof SVGElement
? (e = e.ownerSVGElement || e).hasAttribute('viewBox')
? [
[(e = e.viewBox.baseVal).x, e.y],
[e.x + e.width, e.y + e.height],
]
: [
[0, 0],
[e.width.baseVal.value, e.height.baseVal.value],
]
: [
[0, 0],
[e.clientWidth, e.clientHeight],
];
}
function XS() {
return this.__zoom || KS;
}
function ek() {
return (
-dt.deltaY * (1 === dt.deltaMode ? 0.05 : dt.deltaMode ? 1 : 0.002)
);
}
function tk() {
return navigator.maxTouchPoints || 'ontouchstart' in this;
}
function ik(e, t, i) {
var n = e.invertX(t[0][0]) - i[0][0],
r = e.invertX(t[1][0]) - i[1][0],
s = e.invertY(t[0][1]) - i[0][1],
o = e.invertY(t[1][1]) - i[1][1];
return e.translate(
r > n ? (n + r) / 2 : Math.min(0, n) || Math.max(0, r),
o > s ? (s + o) / 2 : Math.min(0, s) || Math.max(0, o)
);
}
function nk() {
var e,
t,
i = JS,
n = QS,
r = ik,
s = ek,
o = tk,
a = [0, 1 / 0],
l = [
[-1 / 0, -1 / 0],
[1 / 0, 1 / 0],
],
c = 250,
d = Tf,
h = ue('start', 'zoom', 'end'),
u = 500,
g = 0;
function f(e) {
e.property('__zoom', XS)
.on('wheel.zoom', w)
.on('mousedown.zoom', C)
.on('dblclick.zoom', S)
.filter(o)
.on('touchstart.zoom', k)
.on('touchmove.zoom', x)
.on('touchend.zoom touchcancel.zoom', L)
.style('touch-action', 'none')
.style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)');
}
function p(e, t) {
return (t = Math.max(a[0], Math.min(a[1], t))) === e.k
? e
: new $S(t, e.x, e.y);
}
function m(e, t, i) {
var n = t[0] - i[0] * e.k,
r = t[1] - i[1] * e.k;
return n === e.x && r === e.y ? e : new $S(e.k, n, r);
}
function _(e) {
return [(+e[0][0] + +e[1][0]) / 2, (+e[0][1] + +e[1][1]) / 2];
}
function b(e, t, i) {
e.on('start.zoom', function () {
v(this, arguments).start();
})
.on('interrupt.zoom end.zoom', function () {
v(this, arguments).end();
})
.tween('zoom', function () {
var e = this,
r = arguments,
s = v(e, r),
o = n.apply(e, r),
a =
null == i
? _(o)
: 'function' == typeof i
? i.apply(e, r)
: i,
l = Math.max(o[1][0] - o[0][0], o[1][1] - o[0][1]),
c = e.__zoom,
h = 'function' == typeof t ? t.apply(e, r) : t,
u = d(
c.invert(a).concat(l / c.k),
h.invert(a).concat(l / h.k)
);
return function (e) {
if (1 === e) e = h;
else {
var t = u(e),
i = l / t[2];
e = new $S(i, a[0] - t[0] * i, a[1] - t[1] * i);
}
s.zoom(null, e);
};
});
}
function v(e, t, i) {
return (!i && e.__zooming) || new y(e, t);
}
function y(e, t) {
(this.that = e),
(this.args = t),
(this.active = 0),
(this.extent = n.apply(e, t)),
(this.taps = 0);
}
function w() {
if (i.apply(this, arguments)) {
var e = v(this, arguments),
t = this.__zoom,
n = Math.max(
a[0],
Math.min(a[1], t.k * Math.pow(2, s.apply(this, arguments)))
),
o = Ii(this);
if (e.wheel)
(e.mouse[0][0] === o[0] && e.mouse[0][1] === o[1]) ||
(e.mouse[1] = t.invert((e.mouse[0] = o))),
clearTimeout(e.wheel);
else {
if (t.k === n) return;
(e.mouse = [o, t.invert(o)]), sn(this), e.start();
}
ZS(),
(e.wheel = setTimeout(c, 150)),
e.zoom(
'mouse',
r(m(p(t, n), e.mouse[0], e.mouse[1]), e.extent, l)
);
}
function c() {
(e.wheel = null), e.end();
}
}
function C() {
if (!t && i.apply(this, arguments)) {
var e = v(this, arguments, !0),
n = kt(dt.view)
.on('mousemove.zoom', c, !0)
.on('mouseup.zoom', d, !0),
s = Ii(this),
o = dt.clientX,
a = dt.clientY;
Mt(dt.view),
GS(),
(e.mouse = [s, this.__zoom.invert(s)]),
sn(this),
e.start();
}
function c() {
if ((ZS(), !e.moved)) {
var t = dt.clientX - o,
i = dt.clientY - a;
e.moved = t * t + i * i > g;
}
e.zoom(
'mouse',
r(
m(e.that.__zoom, (e.mouse[0] = Ii(e.that)), e.mouse[1]),
e.extent,
l
)
);
}
function d() {
n.on('mousemove.zoom mouseup.zoom', null),
Dt(dt.view, e.moved),
ZS(),
e.end();
}
}
function S() {
if (i.apply(this, arguments)) {
var e = this.__zoom,
t = Ii(this),
s = e.invert(t),
o = e.k * (dt.shiftKey ? 0.5 : 2),
a = r(m(p(e, o), t, s), n.apply(this, arguments), l);
ZS(),
c > 0
? kt(this).transition().duration(c).call(b, a, t)
: kt(this).call(f.transform, a);
}
}
function k() {
if (i.apply(this, arguments)) {
var t,
n,
r,
s,
o = dt.touches,
a = o.length,
l = v(this, arguments, dt.changedTouches.length === a);
for (GS(), n = 0; n < a; ++n)
(s = [
(s = Ti(this, o, (r = o[n]).identifier)),
this.__zoom.invert(s),
r.identifier,
]),
l.touch0
? l.touch1 ||
l.touch0[2] === s[2] ||
((l.touch1 = s), (l.taps = 0))
: ((l.touch0 = s), (t = !0), (l.taps = 1 + !!e));
e && (e = clearTimeout(e)),
t &&
(l.taps < 2 &&
(e = setTimeout(function () {
e = null;
}, u)),
sn(this),
l.start());
}
}
function x() {
if (this.__zooming) {
var t,
i,
n,
s,
o = v(this, arguments),
a = dt.changedTouches,
c = a.length;
for (
ZS(), e && (e = clearTimeout(e)), o.taps = 0, t = 0;
t < c;
++t
)
(n = Ti(this, a, (i = a[t]).identifier)),
o.touch0 && o.touch0[2] === i.identifier
? (o.touch0[0] = n)
: o.touch1 &&
o.touch1[2] === i.identifier &&
(o.touch1[0] = n);
if (((i = o.that.__zoom), o.touch1)) {
var d = o.touch0[0],
h = o.touch0[1],
u = o.touch1[0],
g = o.touch1[1],
f = (f = u[0] - d[0]) * f + (f = u[1] - d[1]) * f,
_ = (_ = g[0] - h[0]) * _ + (_ = g[1] - h[1]) * _;
(i = p(i, Math.sqrt(f / _))),
(n = [(d[0] + u[0]) / 2, (d[1] + u[1]) / 2]),
(s = [(h[0] + g[0]) / 2, (h[1] + g[1]) / 2]);
} else {
if (!o.touch0) return;
(n = o.touch0[0]), (s = o.touch0[1]);
}
o.zoom('touch', r(m(i, n, s), o.extent, l));
}
}
function L() {
if (this.__zooming) {
var e,
i,
n = v(this, arguments),
r = dt.changedTouches,
s = r.length;
for (
GS(),
t && clearTimeout(t),
t = setTimeout(function () {
t = null;
}, u),
e = 0;
e < s;
++e
)
(i = r[e]),
n.touch0 && n.touch0[2] === i.identifier
? delete n.touch0
: n.touch1 &&
n.touch1[2] === i.identifier &&
delete n.touch1;
if (
(n.touch1 &&
!n.touch0 &&
((n.touch0 = n.touch1), delete n.touch1),
n.touch0)
)
n.touch0[1] = this.__zoom.invert(n.touch0[0]);
else if ((n.end(), 2 === n.taps)) {
var o = kt(this).on('dblclick.zoom');
o && o.apply(this, arguments);
}
}
}
return (
(f.transform = function (e, t, i) {
var n = e.selection ? e.selection() : e;
n.property('__zoom', XS),
e !== n
? b(e, t, i)
: n.interrupt().each(function () {
v(this, arguments)
.start()
.zoom(
null,
'function' == typeof t ? t.apply(this, arguments) : t
)
.end();
});
}),
(f.scaleBy = function (e, t, i) {
f.scaleTo(
e,
function () {
var e = this.__zoom.k,
i = 'function' == typeof t ? t.apply(this, arguments) : t;
return e * i;
},
i
);
}),
(f.scaleTo = function (e, t, i) {
f.transform(
e,
function () {
var e = n.apply(this, arguments),
s = this.__zoom,
o =
null == i
? _(e)
: 'function' == typeof i
? i.apply(this, arguments)
: i,
a = s.invert(o),
c = 'function' == typeof t ? t.apply(this, arguments) : t;
return r(m(p(s, c), o, a), e, l);
},
i
);
}),
(f.translateBy = function (e, t, i) {
f.transform(e, function () {
return r(
this.__zoom.translate(
'function' == typeof t ? t.apply(this, arguments) : t,
'function' == typeof i ? i.apply(this, arguments) : i
),
n.apply(this, arguments),
l
);
});
}),
(f.translateTo = function (e, t, i, s) {
f.transform(
e,
function () {
var e = n.apply(this, arguments),
o = this.__zoom,
a =
null == s
? _(e)
: 'function' == typeof s
? s.apply(this, arguments)
: s;
return r(
KS.translate(a[0], a[1])
.scale(o.k)
.translate(
'function' == typeof t ? -t.apply(this, arguments) : -t,
'function' == typeof i ? -i.apply(this, arguments) : -i
),
e,
l
);
},
s
);
}),
(y.prototype = {
start: function () {
return (
1 == ++this.active &&
((this.that.__zooming = this), this.emit('start')),
this
);
},
zoom: function (e, t) {
return (
this.mouse &&
'mouse' !== e &&
(this.mouse[1] = t.invert(this.mouse[0])),
this.touch0 &&
'touch' !== e &&
(this.touch0[1] = t.invert(this.touch0[0])),
this.touch1 &&
'touch' !== e &&
(this.touch1[1] = t.invert(this.touch1[0])),
(this.that.__zoom = t),
this.emit('zoom'),
this
);
},
end: function () {
return (
0 == --this.active &&
(delete this.that.__zooming, this.emit('end')),
this
);
},
emit: function (e) {
mt(new US(f, e, this.that.__zoom), h.apply, h, [
e,
this.that,
this.args,
]);
},
}),
(f.wheelDelta = function (e) {
return arguments.length
? ((s = 'function' == typeof e ? e : zS(+e)), f)
: s;
}),
(f.filter = function (e) {
return arguments.length
? ((i = 'function' == typeof e ? e : zS(!!e)), f)
: i;
}),
(f.touchable = function (e) {
return arguments.length
? ((o = 'function' == typeof e ? e : zS(!!e)), f)
: o;
}),
(f.extent = function (e) {
return arguments.length
? ((n =
'function' == typeof e
? e
: zS([
[+e[0][0], +e[0][1]],
[+e[1][0], +e[1][1]],
])),
f)
: n;
}),
(f.scaleExtent = function (e) {
return arguments.length
? ((a[0] = +e[0]), (a[1] = +e[1]), f)
: [a[0], a[1]];
}),
(f.translateExtent = function (e) {
return arguments.length
? ((l[0][0] = +e[0][0]),
(l[1][0] = +e[1][0]),
(l[0][1] = +e[0][1]),
(l[1][1] = +e[1][1]),
f)
: [
[l[0][0], l[0][1]],
[l[1][0], l[1][1]],
];
}),
(f.constrain = function (e) {
return arguments.length ? ((r = e), f) : r;
}),
(f.duration = function (e) {
return arguments.length ? ((c = +e), f) : c;
}),
(f.interpolate = function (e) {
return arguments.length ? ((d = e), f) : d;
}),
(f.on = function () {
var e = h.on.apply(h, arguments);
return e === h ? f : e;
}),
(f.clickDistance = function (e) {
return arguments.length ? ((g = (e = +e) * e), f) : Math.sqrt(g);
}),
f
);
}
qS.prototype = $S.prototype;
},
44949: (e, t, i) => {
e.exports = {
graphlib: i(66614),
dagre: i(51463),
intersect: i(78114),
render: i(95787),
util: i(28355),
version: i(55689),
};
},
39144: (e, t, i) => {
var n = i(28355);
function r(e, t, i, r) {
var s = e
.append('marker')
.attr('id', t)
.attr('viewBox', '0 0 10 10')
.attr('refX', 9)
.attr('refY', 5)
.attr('markerUnits', 'strokeWidth')
.attr('markerWidth', 8)
.attr('markerHeight', 6)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 0 0 L 10 5 L 0 10 z')
.style('stroke-width', 1)
.style('stroke-dasharray', '1,0');
n.applyStyle(s, i[r + 'Style']),
i[r + 'Class'] && s.attr('class', i[r + 'Class']);
}
e.exports = {
default: r,
normal: r,
vee: function (e, t, i, r) {
var s = e
.append('marker')
.attr('id', t)
.attr('viewBox', '0 0 10 10')
.attr('refX', 9)
.attr('refY', 5)
.attr('markerUnits', 'strokeWidth')
.attr('markerWidth', 8)
.attr('markerHeight', 6)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 0 0 L 10 5 L 0 10 L 4 5 z')
.style('stroke-width', 1)
.style('stroke-dasharray', '1,0');
n.applyStyle(s, i[r + 'Style']),
i[r + 'Class'] && s.attr('class', i[r + 'Class']);
},
undirected: function (e, t, i, r) {
var s = e
.append('marker')
.attr('id', t)
.attr('viewBox', '0 0 10 10')
.attr('refX', 9)
.attr('refY', 5)
.attr('markerUnits', 'strokeWidth')
.attr('markerWidth', 8)
.attr('markerHeight', 6)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 0 5 L 10 5')
.style('stroke-width', 1)
.style('stroke-dasharray', '1,0');
n.applyStyle(s, i[r + 'Style']),
i[r + 'Class'] && s.attr('class', i[r + 'Class']);
},
};
},
85632: (e, t, i) => {
var n = i(28355),
r = i(24322),
s = i(61322);
e.exports = function (e, t) {
var i,
o = t.nodes().filter(function (e) {
return n.isSubgraph(t, e);
}),
a = e.selectAll('g.cluster').data(o, function (e) {
return e;
});
return (
a.selectAll('*').remove(),
a
.enter()
.append('g')
.attr('class', 'cluster')
.attr('id', function (e) {
return t.node(e).id;
})
.style('opacity', 0),
(a = e.selectAll('g.cluster')),
n.applyTransition(a, t).style('opacity', 1),
a.each(function (e) {
var i = t.node(e),
n = r.select(this);
r.select(this).append('rect');
var o = n.append('g').attr('class', 'label');
s(o, i, i.clusterLabelPos);
}),
a.selectAll('rect').each(function (e) {
var i = t.node(e),
s = r.select(this);
n.applyStyle(s, i.style);
}),
(i = a.exit ? a.exit() : a.selectAll(null)),
n.applyTransition(i, t).style('opacity', 0).remove(),
a
);
};
},
16315: (e, t, i) => {
'use strict';
var n = i(91034),
r = i(61322),
s = i(28355),
o = i(24322);
e.exports = function (e, t) {
var i,
a = e
.selectAll('g.edgeLabel')
.data(t.edges(), function (e) {
return s.edgeToId(e);
})
.classed('update', !0);
return (
a.exit().remove(),
a.enter().append('g').classed('edgeLabel', !0).style('opacity', 0),
(a = e.selectAll('g.edgeLabel')).each(function (e) {
var i = o.select(this);
i.select('.label').remove();
var s = t.edge(e),
a = r(i, t.edge(e), 0, 0).classed('label', !0),
l = a.node().getBBox();
s.labelId && a.attr('id', s.labelId),
n.has(s, 'width') || (s.width = l.width),
n.has(s, 'height') || (s.height = l.height);
}),
(i = a.exit ? a.exit() : a.selectAll(null)),
s.applyTransition(i, t).style('opacity', 0).remove(),
a
);
};
},
70940: (e, t, i) => {
'use strict';
var n = i(91034),
r = i(13042),
s = i(28355),
o = i(24322);
function a(e, t) {
var i = (o.line || o.svg.line)()
.x(function (e) {
return e.x;
})
.y(function (e) {
return e.y;
});
return (i.curve || i.interpolate)(e.curve), i(t);
}
e.exports = function (e, t, i) {
var l = e
.selectAll('g.edgePath')
.data(t.edges(), function (e) {
return s.edgeToId(e);
})
.classed('update', !0),
c = (function (e, t) {
var i = e
.enter()
.append('g')
.attr('class', 'edgePath')
.style('opacity', 0);
return (
i
.append('path')
.attr('class', 'path')
.attr('d', function (e) {
var i = t.edge(e),
r = t.node(e.v).elem;
return a(
i,
n.range(i.points.length).map(function () {
return (
(t = (e = r).getBBox()),
{
x: (i = e.ownerSVGElement
.getScreenCTM()
.inverse()
.multiply(e.getScreenCTM())
.translate(t.width / 2, t.height / 2)).e,
y: i.f,
}
);
var e, t, i;
})
);
}),
i.append('defs'),
i
);
})(l, t);
!(function (e, t) {
var i = e.exit();
s.applyTransition(i, t).style('opacity', 0).remove();
})(l, t);
var d = void 0 !== l.merge ? l.merge(c) : l;
return (
s.applyTransition(d, t).style('opacity', 1),
d.each(function (e) {
var i = o.select(this),
n = t.edge(e);
(n.elem = this),
n.id && i.attr('id', n.id),
s.applyClass(
i,
n.class,
(i.classed('update') ? 'update ' : '') + 'edgePath'
);
}),
d.selectAll('path.path').each(function (e) {
var i = t.edge(e);
i.arrowheadId = n.uniqueId('arrowhead');
var l = o
.select(this)
.attr('marker-end', function () {
return (
'url(' +
((e = location.href),
(t = i.arrowheadId),
e.split('#')[0] + '#' + t + ')')
);
var e, t;
})
.style('fill', 'none');
s.applyTransition(l, t).attr('d', function (e) {
return (function (e, t) {
var i = e.edge(t),
n = e.node(t.v),
s = e.node(t.w),
o = i.points.slice(1, i.points.length - 1);
return (
o.unshift(r(n, o[0])),
o.push(r(s, o[o.length - 1])),
a(i, o)
);
})(t, e);
}),
s.applyStyle(l, i.style);
}),
d.selectAll('defs *').remove(),
d.selectAll('defs').each(function (e) {
var n = t.edge(e);
(0,
i[n.arrowhead])(o.select(this), n.arrowheadId, n, 'arrowhead');
}),
d
);
};
},
10607: (e, t, i) => {
'use strict';
var n = i(91034),
r = i(61322),
s = i(28355),
o = i(24322);
e.exports = function (e, t, i) {
var a,
l = t.nodes().filter(function (e) {
return !s.isSubgraph(t, e);
}),
c = e
.selectAll('g.node')
.data(l, function (e) {
return e;
})
.classed('update', !0);
return (
c.exit().remove(),
c.enter().append('g').attr('class', 'node').style('opacity', 0),
(c = e.selectAll('g.node')).each(function (e) {
var a = t.node(e),
l = o.select(this);
s.applyClass(
l,
a.class,
(l.classed('update') ? 'update ' : '') + 'node'
),
l.select('g.label').remove();
var c = l.append('g').attr('class', 'label'),
d = r(c, a),
h = i[a.shape],
u = n.pick(d.node().getBBox(), 'width', 'height');
(a.elem = this),
a.id && l.attr('id', a.id),
a.labelId && c.attr('id', a.labelId),
n.has(a, 'width') && (u.width = a.width),
n.has(a, 'height') && (u.height = a.height),
(u.width += a.paddingLeft + a.paddingRight),
(u.height += a.paddingTop + a.paddingBottom),
c.attr(
'transform',
'translate(' +
(a.paddingLeft - a.paddingRight) / 2 +
',' +
(a.paddingTop - a.paddingBottom) / 2 +
')'
);
var g = o.select(this);
g.select('.label-container').remove();
var f = h(g, u, a).classed('label-container', !0);
s.applyStyle(f, a.style);
var p = f.node().getBBox();
(a.width = p.width), (a.height = p.height);
}),
(a = c.exit ? c.exit() : c.selectAll(null)),
s.applyTransition(a, t).style('opacity', 0).remove(),
c
);
};
},
24322: (e, t, i) => {
var n;
if (!n)
try {
n = i(69362);
} catch (e) {}
n || (n = window.d3), (e.exports = n);
},
51463: (e, t, i) => {
var n;
try {
n = i(72135);
} catch (e) {}
n || (n = window.dagre), (e.exports = n);
},
66614: (e, t, i) => {
var n;
try {
n = i(79550);
} catch (e) {}
n || (n = window.graphlib), (e.exports = n);
},
78114: (e, t, i) => {
e.exports = {
node: i(13042),
circle: i(56587),
ellipse: i(3260),
polygon: i(5337),
rect: i(98049),
};
},
56587: (e, t, i) => {
var n = i(3260);
e.exports = function (e, t, i) {
return n(e, t, t, i);
};
},
3260: (e) => {
e.exports = function (e, t, i, n) {
var r = e.x,
s = e.y,
o = r - n.x,
a = s - n.y,
l = Math.sqrt(t * t * a * a + i * i * o * o),
c = Math.abs((t * i * o) / l);
n.x < r && (c = -c);
var d = Math.abs((t * i * a) / l);
return n.y < s && (d = -d), { x: r + c, y: s + d };
};
},
36808: (e) => {
function t(e, t) {
return e * t > 0;
}
e.exports = function (e, i, n, r) {
var s, o, a, l, c, d, h, u, g, f, p, m, _;
if (
!((s = i.y - e.y),
(a = e.x - i.x),
(c = i.x * e.y - e.x * i.y),
(g = s * n.x + a * n.y + c),
(f = s * r.x + a * r.y + c),
(0 !== g && 0 !== f && t(g, f)) ||
((o = r.y - n.y),
(l = n.x - r.x),
(d = r.x * n.y - n.x * r.y),
(h = o * e.x + l * e.y + d),
(u = o * i.x + l * i.y + d),
(0 !== h && 0 !== u && t(h, u)) || 0 == (p = s * l - o * a)))
)
return (
(m = Math.abs(p / 2)),
{
x: (_ = a * d - l * c) < 0 ? (_ - m) / p : (_ + m) / p,
y: (_ = o * c - s * d) < 0 ? (_ - m) / p : (_ + m) / p,
}
);
};
},
13042: (e) => {
e.exports = function (e, t) {
return e.intersect(t);
};
},
5337: (e, t, i) => {
var n = i(36808);
e.exports = function (e, t, i) {
var r = e.x,
s = e.y,
o = [],
a = Number.POSITIVE_INFINITY,
l = Number.POSITIVE_INFINITY;
t.forEach(function (e) {
(a = Math.min(a, e.x)), (l = Math.min(l, e.y));
});
for (
var c = r - e.width / 2 - a, d = s - e.height / 2 - l, h = 0;
h < t.length;
h++
) {
var u = t[h],
g = t[h < t.length - 1 ? h + 1 : 0],
f = n(
e,
i,
{ x: c + u.x, y: d + u.y },
{ x: c + g.x, y: d + g.y }
);
f && o.push(f);
}
return o.length
? (o.length > 1 &&
o.sort(function (e, t) {
var n = e.x - i.x,
r = e.y - i.y,
s = Math.sqrt(n * n + r * r),
o = t.x - i.x,
a = t.y - i.y,
l = Math.sqrt(o * o + a * a);
return s < l ? -1 : s === l ? 0 : 1;
}),
o[0])
: (console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', e), e);
};
},
98049: (e) => {
e.exports = function (e, t) {
var i,
n,
r = e.x,
s = e.y,
o = t.x - r,
a = t.y - s,
l = e.width / 2,
c = e.height / 2;
return (
Math.abs(a) * l > Math.abs(o) * c
? (a < 0 && (c = -c), (i = 0 === a ? 0 : (c * o) / a), (n = c))
: (o < 0 && (l = -l), (i = l), (n = 0 === o ? 0 : (l * a) / o)),
{ x: r + i, y: s + n }
);
};
},
88284: (e, t, i) => {
var n = i(28355);
e.exports = function (e, t) {
var i = e.append('foreignObject').attr('width', '100000'),
r = i.append('xhtml:div');
r.attr('xmlns', 'http://www.w3.org/1999/xhtml');
var s = t.label;
switch (typeof s) {
case 'function':
r.insert(s);
break;
case 'object':
r.insert(function () {
return s;
});
break;
default:
r.html(s);
}
n.applyStyle(r, t.labelStyle),
r.style('display', 'inline-block'),
r.style('white-space', 'nowrap');
var o = r.node().getBoundingClientRect();
return i.attr('width', o.width).attr('height', o.height), i;
};
},
61322: (e, t, i) => {
var n = i(67318),
r = i(88284),
s = i(98287);
e.exports = function (e, t, i) {
var o = t.label,
a = e.append('g');
'svg' === t.labelType
? s(a, t)
: 'string' != typeof o || 'html' === t.labelType
? r(a, t)
: n(a, t);
var l,
c = a.node().getBBox();
switch (i) {
case 'top':
l = -t.height / 2;
break;
case 'bottom':
l = t.height / 2 - c.height;
break;
default:
l = -c.height / 2;
}
return (
a.attr('transform', 'translate(' + -c.width / 2 + ',' + l + ')'), a
);
};
},
98287: (e, t, i) => {
var n = i(28355);
e.exports = function (e, t) {
var i = e;
return (
i.node().appendChild(t.label), n.applyStyle(i, t.labelStyle), i
);
};
},
67318: (e, t, i) => {
var n = i(28355);
e.exports = function (e, t) {
for (
var i = e.append('text'),
r = (function (e) {
for (var t, i = '', n = !1, r = 0; r < e.length; ++r)
if (((t = e[r]), n)) {
switch (t) {
case 'n':
i += '\n';
break;
default:
i += t;
}
n = !1;
} else '\\' === t ? (n = !0) : (i += t);
return i;
})(t.label).split('\n'),
s = 0;
s < r.length;
s++
)
i.append('tspan')
.attr('xml:space', 'preserve')
.attr('dy', '1em')
.attr('x', '1')
.text(r[s]);
return n.applyStyle(i, t.labelStyle), i;
};
},
91034: (e, t, i) => {
var n;
try {
n = {
defaults: i(91747),
each: i(66073),
isFunction: i(23560),
isPlainObject: i(68630),
pick: i(78718),
has: i(18721),
range: i(96026),
uniqueId: i(73955),
};
} catch (e) {}
n || (n = window._), (e.exports = n);
},
26381: (e, t, i) => {
'use strict';
var n = i(28355),
r = i(24322);
e.exports = function (e, t) {
var i = e.filter(function () {
return !r.select(this).classed('update');
});
function s(e) {
var i = t.node(e);
return 'translate(' + i.x + ',' + i.y + ')';
}
i.attr('transform', s),
n.applyTransition(e, t).style('opacity', 1).attr('transform', s),
n
.applyTransition(i.selectAll('rect'), t)
.attr('width', function (e) {
return t.node(e).width;
})
.attr('height', function (e) {
return t.node(e).height;
})
.attr('x', function (e) {
return -t.node(e).width / 2;
})
.attr('y', function (e) {
return -t.node(e).height / 2;
});
};
},
44577: (e, t, i) => {
'use strict';
var n = i(28355),
r = i(24322),
s = i(91034);
e.exports = function (e, t) {
function i(e) {
var i = t.edge(e);
return s.has(i, 'x') ? 'translate(' + i.x + ',' + i.y + ')' : '';
}
e
.filter(function () {
return !r.select(this).classed('update');
})
.attr('transform', i),
n.applyTransition(e, t).style('opacity', 1).attr('transform', i);
};
},
54849: (e, t, i) => {
'use strict';
var n = i(28355),
r = i(24322);
e.exports = function (e, t) {
function i(e) {
var i = t.node(e);
return 'translate(' + i.x + ',' + i.y + ')';
}
e
.filter(function () {
return !r.select(this).classed('update');
})
.attr('transform', i),
n.applyTransition(e, t).style('opacity', 1).attr('transform', i);
};
},
95787: (e, t, i) => {
var n = i(91034),
r = i(24322),
s = i(51463).layout;
e.exports = function () {
var e = i(10607),
t = i(85632),
r = i(16315),
c = i(70940),
d = i(54849),
h = i(44577),
u = i(26381),
g = i(54418),
f = i(39144),
p = function (i, p) {
!(function (e) {
e.nodes().forEach(function (t) {
var i = e.node(t);
n.has(i, 'label') || e.children(t).length || (i.label = t),
n.has(i, 'paddingX') &&
n.defaults(i, {
paddingLeft: i.paddingX,
paddingRight: i.paddingX,
}),
n.has(i, 'paddingY') &&
n.defaults(i, {
paddingTop: i.paddingY,
paddingBottom: i.paddingY,
}),
n.has(i, 'padding') &&
n.defaults(i, {
paddingLeft: i.padding,
paddingRight: i.padding,
paddingTop: i.padding,
paddingBottom: i.padding,
}),
n.defaults(i, o),
n.each(
[
'paddingLeft',
'paddingRight',
'paddingTop',
'paddingBottom',
],
function (e) {
i[e] = Number(i[e]);
}
),
n.has(i, 'width') && (i._prevWidth = i.width),
n.has(i, 'height') && (i._prevHeight = i.height);
}),
e.edges().forEach(function (t) {
var i = e.edge(t);
n.has(i, 'label') || (i.label = ''), n.defaults(i, a);
});
})(p);
var m = l(i, 'output'),
_ = l(m, 'clusters'),
b = l(m, 'edgePaths'),
v = r(l(m, 'edgeLabels'), p),
y = e(l(m, 'nodes'), p, g);
s(p), d(y, p), h(v, p), c(b, p, f);
var w = t(_, p);
u(w, p),
(function (e) {
n.each(e.nodes(), function (t) {
var i = e.node(t);
n.has(i, '_prevWidth')
? (i.width = i._prevWidth)
: delete i.width,
n.has(i, '_prevHeight')
? (i.height = i._prevHeight)
: delete i.height,
delete i._prevWidth,
delete i._prevHeight;
});
})(p);
};
return (
(p.createNodes = function (t) {
return arguments.length ? ((e = t), p) : e;
}),
(p.createClusters = function (e) {
return arguments.length ? ((t = e), p) : t;
}),
(p.createEdgeLabels = function (e) {
return arguments.length ? ((r = e), p) : r;
}),
(p.createEdgePaths = function (e) {
return arguments.length ? ((c = e), p) : c;
}),
(p.shapes = function (e) {
return arguments.length ? ((g = e), p) : g;
}),
(p.arrows = function (e) {
return arguments.length ? ((f = e), p) : f;
}),
p
);
};
var o = {
paddingLeft: 10,
paddingRight: 10,
paddingTop: 10,
paddingBottom: 10,
rx: 0,
ry: 0,
shape: 'rect',
},
a = { arrowhead: 'normal', curve: r.curveLinear };
function l(e, t) {
var i = e.select('g.' + t);
return i.empty() && (i = e.append('g').attr('class', t)), i;
}
},
54418: (e, t, i) => {
'use strict';
var n = i(98049),
r = i(3260),
s = i(56587),
o = i(5337);
e.exports = {
rect: function (e, t, i) {
var r = e
.insert('rect', ':first-child')
.attr('rx', i.rx)
.attr('ry', i.ry)
.attr('x', -t.width / 2)
.attr('y', -t.height / 2)
.attr('width', t.width)
.attr('height', t.height);
return (
(i.intersect = function (e) {
return n(i, e);
}),
r
);
},
ellipse: function (e, t, i) {
var n = t.width / 2,
s = t.height / 2,
o = e
.insert('ellipse', ':first-child')
.attr('x', -t.width / 2)
.attr('y', -t.height / 2)
.attr('rx', n)
.attr('ry', s);
return (
(i.intersect = function (e) {
return r(i, n, s, e);
}),
o
);
},
circle: function (e, t, i) {
var n = Math.max(t.width, t.height) / 2,
r = e
.insert('circle', ':first-child')
.attr('x', -t.width / 2)
.attr('y', -t.height / 2)
.attr('r', n);
return (
(i.intersect = function (e) {
return s(i, n, e);
}),
r
);
},
diamond: function (e, t, i) {
var n = (t.width * Math.SQRT2) / 2,
r = (t.height * Math.SQRT2) / 2,
s = [
{ x: 0, y: -r },
{ x: -n, y: 0 },
{ x: 0, y: r },
{ x: n, y: 0 },
],
a = e.insert('polygon', ':first-child').attr(
'points',
s
.map(function (e) {
return e.x + ',' + e.y;
})
.join(' ')
);
return (
(i.intersect = function (e) {
return o(i, s, e);
}),
a
);
},
};
},
28355: (e, t, i) => {
var n = i(91034);
e.exports = {
isSubgraph: function (e, t) {
return !!e.children(t).length;
},
edgeToId: function (e) {
return s(e.v) + ':' + s(e.w) + ':' + s(e.name);
},
applyStyle: function (e, t) {
t && e.attr('style', t);
},
applyClass: function (e, t, i) {
t && e.attr('class', t).attr('class', i + ' ' + e.attr('class'));
},
applyTransition: function (e, t) {
var i = t.graph();
if (n.isPlainObject(i)) {
var r = i.transition;
if (n.isFunction(r)) return r(e);
}
return e;
},
};
var r = /:/g;
function s(e) {
return e ? String(e).replace(r, '\\:') : '';
}
},
55689: (e) => {
e.exports = '0.6.4';
},
72135: (e, t, i) => {
e.exports = {
graphlib: i(33653),
layout: i(23946),
debug: i(76181),
util: { time: i(65029).time, notime: i(65029).notime },
version: i(96350),
};
},
33717: (e, t, i) => {
'use strict';
var n = i(29603),
r = i(16487);
e.exports = {
run: function (e) {
var t =
'greedy' === e.graph().acyclicer
? r(
e,
(function (e) {
return function (t) {
return e.edge(t).weight;
};
})(e)
)
: (function (e) {
var t = [],
i = {},
r = {};
return (
n.forEach(e.nodes(), function s(o) {
n.has(r, o) ||
((r[o] = !0),
(i[o] = !0),
n.forEach(e.outEdges(o), function (e) {
n.has(i, e.w) ? t.push(e) : s(e.w);
}),
delete i[o]);
}),
t
);
})(e);
n.forEach(t, function (t) {
var i = e.edge(t);
e.removeEdge(t),
(i.forwardName = t.name),
(i.reversed = !0),
e.setEdge(t.w, t.v, i, n.uniqueId('rev'));
});
},
undo: function (e) {
n.forEach(e.edges(), function (t) {
var i = e.edge(t);
if (i.reversed) {
e.removeEdge(t);
var n = i.forwardName;
delete i.reversed,
delete i.forwardName,
e.setEdge(t.w, t.v, i, n);
}
});
},
};
},
52226: (e, t, i) => {
var n = i(29603),
r = i(65029);
function s(e, t, i, n, s, o) {
var a = { width: 0, height: 0, rank: o, borderType: t },
l = s[t][o - 1],
c = r.addDummyNode(e, 'border', a, i);
(s[t][o] = c), e.setParent(c, n), l && e.setEdge(l, c, { weight: 1 });
}
e.exports = function (e) {
n.forEach(e.children(), function t(i) {
var r = e.children(i),
o = e.node(i);
if ((r.length && n.forEach(r, t), n.has(o, 'minRank'))) {
(o.borderLeft = []), (o.borderRight = []);
for (var a = o.minRank, l = o.maxRank + 1; a < l; ++a)
s(e, 'borderLeft', '_bl', i, o, a),
s(e, 'borderRight', '_br', i, o, a);
}
});
};
},
64181: (e, t, i) => {
'use strict';
var n = i(29603);
function r(e) {
n.forEach(e.nodes(), function (t) {
s(e.node(t));
}),
n.forEach(e.edges(), function (t) {
s(e.edge(t));
});
}
function s(e) {
var t = e.width;
(e.width = e.height), (e.height = t);
}
function o(e) {
e.y = -e.y;
}
function a(e) {
var t = e.x;
(e.x = e.y), (e.y = t);
}
e.exports = {
adjust: function (e) {
var t = e.graph().rankdir.toLowerCase();
('lr' !== t && 'rl' !== t) || r(e);
},
undo: function (e) {
var t = e.graph().rankdir.toLowerCase();
('bt' !== t && 'rl' !== t) ||
(function (e) {
n.forEach(e.nodes(), function (t) {
o(e.node(t));
}),
n.forEach(e.edges(), function (t) {
var i = e.edge(t);
n.forEach(i.points, o), n.has(i, 'y') && o(i);
});
})(e),
('lr' !== t && 'rl' !== t) ||
((function (e) {
n.forEach(e.nodes(), function (t) {
a(e.node(t));
}),
n.forEach(e.edges(), function (t) {
var i = e.edge(t);
n.forEach(i.points, a), n.has(i, 'x') && a(i);
});
})(e),
r(e));
},
};
},
21210: (e) => {
function t() {
var e = {};
(e._next = e._prev = e), (this._sentinel = e);
}
function i(e) {
(e._prev._next = e._next),
(e._next._prev = e._prev),
delete e._next,
delete e._prev;
}
function n(e, t) {
if ('_next' !== e && '_prev' !== e) return t;
}
(e.exports = t),
(t.prototype.dequeue = function () {
var e = this._sentinel,
t = e._prev;
if (t !== e) return i(t), t;
}),
(t.prototype.enqueue = function (e) {
var t = this._sentinel;
e._prev && e._next && i(e),
(e._next = t._next),
(t._next._prev = e),
(t._next = e),
(e._prev = t);
}),
(t.prototype.toString = function () {
for (var e = [], t = this._sentinel, i = t._prev; i !== t; )
e.push(JSON.stringify(i, n)), (i = i._prev);
return '[' + e.join(', ') + ']';
});
},
76181: (e, t, i) => {
var n = i(29603),
r = i(65029),
s = i(33653).Graph;
e.exports = {
debugOrdering: function (e) {
var t = r.buildLayerMatrix(e),
i = new s({ compound: !0, multigraph: !0 }).setGraph({});
return (
n.forEach(e.nodes(), function (t) {
i.setNode(t, { label: t }),
i.setParent(t, 'layer' + e.node(t).rank);
}),
n.forEach(e.edges(), function (e) {
i.setEdge(e.v, e.w, {}, e.name);
}),
n.forEach(t, function (e, t) {
var r = 'layer' + t;
i.setNode(r, { rank: 'same' }),
n.reduce(e, function (e, t) {
return i.setEdge(e, t, { style: 'invis' }), t;
});
}),
i
);
},
};
},
33653: (e, t, i) => {
var n;
try {
n = i(79550);
} catch (e) {}
n || (n = window.graphlib), (e.exports = n);
},
16487: (e, t, i) => {
var n = i(29603),
r = i(33653).Graph,
s = i(21210);
e.exports = function (e, t) {
if (e.nodeCount() <= 1) return [];
var i = (function (e, t) {
var i = new r(),
o = 0,
a = 0;
n.forEach(e.nodes(), function (e) {
i.setNode(e, { v: e, in: 0, out: 0 });
}),
n.forEach(e.edges(), function (e) {
var n = i.edge(e.v, e.w) || 0,
r = t(e),
s = n + r;
i.setEdge(e.v, e.w, s),
(a = Math.max(a, (i.node(e.v).out += r))),
(o = Math.max(o, (i.node(e.w).in += r)));
});
var c = n.range(a + o + 3).map(function () {
return new s();
}),
d = o + 1;
return (
n.forEach(i.nodes(), function (e) {
l(c, d, i.node(e));
}),
{ graph: i, buckets: c, zeroIdx: d }
);
})(e, t || o),
c = (function (e, t, i) {
for (
var n, r = [], s = t[t.length - 1], o = t[0];
e.nodeCount();
) {
for (; (n = o.dequeue()); ) a(e, t, i, n);
for (; (n = s.dequeue()); ) a(e, t, i, n);
if (e.nodeCount())
for (var l = t.length - 2; l > 0; --l)
if ((n = t[l].dequeue())) {
r = r.concat(a(e, t, i, n, !0));
break;
}
}
return r;
})(i.graph, i.buckets, i.zeroIdx);
return n.flatten(
n.map(c, function (t) {
return e.outEdges(t.v, t.w);
}),
!0
);
};
var o = n.constant(1);
function a(e, t, i, r, s) {
var o = s ? [] : void 0;
return (
n.forEach(e.inEdges(r.v), function (n) {
var r = e.edge(n),
a = e.node(n.v);
s && o.push({ v: n.v, w: n.w }), (a.out -= r), l(t, i, a);
}),
n.forEach(e.outEdges(r.v), function (n) {
var r = e.edge(n),
s = n.w,
o = e.node(s);
(o.in -= r), l(t, i, o);
}),
e.removeNode(r.v),
o
);
}
function l(e, t, i) {
i.out
? i.in
? e[i.out - i.in + t].enqueue(i)
: e[e.length - 1].enqueue(i)
: e[0].enqueue(i);
}
},
23946: (e, t, i) => {
'use strict';
var n = i(29603),
r = i(33717),
s = i(75399),
o = i(26833),
a = i(65029).normalizeRanks,
l = i(65891),
c = i(65029).removeEmptyRanks,
d = i(33956),
h = i(52226),
u = i(64181),
g = i(18095),
f = i(86587),
p = i(65029),
m = i(33653).Graph;
e.exports = function (e, t) {
var i = t && t.debugTiming ? p.time : p.notime;
i('layout', function () {
var t = i(' buildLayoutGraph', function () {
return (function (e) {
var t = new m({ multigraph: !0, compound: !0 }),
i = L(e.graph());
return (
t.setGraph(n.merge({}, b, x(i, _), n.pick(i, v))),
n.forEach(e.nodes(), function (i) {
var r = L(e.node(i));
t.setNode(i, n.defaults(x(r, y), w)),
t.setParent(i, e.parent(i));
}),
n.forEach(e.edges(), function (i) {
var r = L(e.edge(i));
t.setEdge(i, n.merge({}, S, x(r, C), n.pick(r, k)));
}),
t
);
})(e);
});
i(' runLayout', function () {
!(function (e, t) {
t(' makeSpaceForEdgeLabels', function () {
!(function (e) {
var t = e.graph();
(t.ranksep /= 2),
n.forEach(e.edges(), function (i) {
var n = e.edge(i);
(n.minlen *= 2),
'c' !== n.labelpos.toLowerCase() &&
('TB' === t.rankdir || 'BT' === t.rankdir
? (n.width += n.labeloffset)
: (n.height += n.labeloffset));
});
})(e);
}),
t(' removeSelfEdges', function () {
!(function (e) {
n.forEach(e.edges(), function (t) {
if (t.v === t.w) {
var i = e.node(t.v);
i.selfEdges || (i.selfEdges = []),
i.selfEdges.push({ e: t, label: e.edge(t) }),
e.removeEdge(t);
}
});
})(e);
}),
t(' acyclic', function () {
r.run(e);
}),
t(' nestingGraph.run', function () {
d.run(e);
}),
t(' rank', function () {
o(p.asNonCompoundGraph(e));
}),
t(' injectEdgeLabelProxies', function () {
!(function (e) {
n.forEach(e.edges(), function (t) {
var i = e.edge(t);
if (i.width && i.height) {
var n = e.node(t.v),
r = {
rank: (e.node(t.w).rank - n.rank) / 2 + n.rank,
e: t,
};
p.addDummyNode(e, 'edge-proxy', r, '_ep');
}
});
})(e);
}),
t(' removeEmptyRanks', function () {
c(e);
}),
t(' nestingGraph.cleanup', function () {
d.cleanup(e);
}),
t(' normalizeRanks', function () {
a(e);
}),
t(' assignRankMinMax', function () {
!(function (e) {
var t = 0;
n.forEach(e.nodes(), function (i) {
var r = e.node(i);
r.borderTop &&
((r.minRank = e.node(r.borderTop).rank),
(r.maxRank = e.node(r.borderBottom).rank),
(t = n.max(t, r.maxRank)));
}),
(e.graph().maxRank = t);
})(e);
}),
t(' removeEdgeLabelProxies', function () {
!(function (e) {
n.forEach(e.nodes(), function (t) {
var i = e.node(t);
'edge-proxy' === i.dummy &&
((e.edge(i.e).labelRank = i.rank), e.removeNode(t));
});
})(e);
}),
t(' normalize.run', function () {
s.run(e);
}),
t(' parentDummyChains', function () {
l(e);
}),
t(' addBorderSegments', function () {
h(e);
}),
t(' order', function () {
g(e);
}),
t(' insertSelfEdges', function () {
!(function (e) {
var t = p.buildLayerMatrix(e);
n.forEach(t, function (t) {
var i = 0;
n.forEach(t, function (t, r) {
var s = e.node(t);
(s.order = r + i),
n.forEach(s.selfEdges, function (t) {
p.addDummyNode(
e,
'selfedge',
{
width: t.label.width,
height: t.label.height,
rank: s.rank,
order: r + ++i,
e: t.e,
label: t.label,
},
'_se'
);
}),
delete s.selfEdges;
});
});
})(e);
}),
t(' adjustCoordinateSystem', function () {
u.adjust(e);
}),
t(' position', function () {
f(e);
}),
t(' positionSelfEdges', function () {
!(function (e) {
n.forEach(e.nodes(), function (t) {
var i = e.node(t);
if ('selfedge' === i.dummy) {
var n = e.node(i.e.v),
r = n.x + n.width / 2,
s = n.y,
o = i.x - r,
a = n.height / 2;
e.setEdge(i.e, i.label),
e.removeNode(t),
(i.label.points = [
{ x: r + (2 * o) / 3, y: s - a },
{ x: r + (5 * o) / 6, y: s - a },
{ x: r + o, y: s },
{ x: r + (5 * o) / 6, y: s + a },
{ x: r + (2 * o) / 3, y: s + a },
]),
(i.label.x = i.x),
(i.label.y = i.y);
}
});
})(e);
}),
t(' removeBorderNodes', function () {
!(function (e) {
n.forEach(e.nodes(), function (t) {
if (e.children(t).length) {
var i = e.node(t),
r = e.node(i.borderTop),
s = e.node(i.borderBottom),
o = e.node(n.last(i.borderLeft)),
a = e.node(n.last(i.borderRight));
(i.width = Math.abs(a.x - o.x)),
(i.height = Math.abs(s.y - r.y)),
(i.x = o.x + i.width / 2),
(i.y = r.y + i.height / 2);
}
}),
n.forEach(e.nodes(), function (t) {
'border' === e.node(t).dummy && e.removeNode(t);
});
})(e);
}),
t(' normalize.undo', function () {
s.undo(e);
}),
t(' fixupEdgeLabelCoords', function () {
!(function (e) {
n.forEach(e.edges(), function (t) {
var i = e.edge(t);
if (n.has(i, 'x'))
switch (
(('l' !== i.labelpos && 'r' !== i.labelpos) ||
(i.width -= i.labeloffset),
i.labelpos)
) {
case 'l':
i.x -= i.width / 2 + i.labeloffset;
break;
case 'r':
i.x += i.width / 2 + i.labeloffset;
}
});
})(e);
}),
t(' undoCoordinateSystem', function () {
u.undo(e);
}),
t(' translateGraph', function () {
!(function (e) {
var t = Number.POSITIVE_INFINITY,
i = 0,
r = Number.POSITIVE_INFINITY,
s = 0,
o = e.graph(),
a = o.marginx || 0,
l = o.marginy || 0;
function c(e) {
var n = e.x,
o = e.y,
a = e.width,
l = e.height;
(t = Math.min(t, n - a / 2)),
(i = Math.max(i, n + a / 2)),
(r = Math.min(r, o - l / 2)),
(s = Math.max(s, o + l / 2));
}
n.forEach(e.nodes(), function (t) {
c(e.node(t));
}),
n.forEach(e.edges(), function (t) {
var i = e.edge(t);
n.has(i, 'x') && c(i);
}),
(t -= a),
(r -= l),
n.forEach(e.nodes(), function (i) {
var n = e.node(i);
(n.x -= t), (n.y -= r);
}),
n.forEach(e.edges(), function (i) {
var s = e.edge(i);
n.forEach(s.points, function (e) {
(e.x -= t), (e.y -= r);
}),
n.has(s, 'x') && (s.x -= t),
n.has(s, 'y') && (s.y -= r);
}),
(o.width = i - t + a),
(o.height = s - r + l);
})(e);
}),
t(' assignNodeIntersects', function () {
!(function (e) {
n.forEach(e.edges(), function (t) {
var i,
n,
r = e.edge(t),
s = e.node(t.v),
o = e.node(t.w);
r.points
? ((i = r.points[0]),
(n = r.points[r.points.length - 1]))
: ((r.points = []), (i = o), (n = s)),
r.points.unshift(p.intersectRect(s, i)),
r.points.push(p.intersectRect(o, n));
});
})(e);
}),
t(' reversePoints', function () {
!(function (e) {
n.forEach(e.edges(), function (t) {
var i = e.edge(t);
i.reversed && i.points.reverse();
});
})(e);
}),
t(' acyclic.undo', function () {
r.undo(e);
});
})(t, i);
}),
i(' updateInputGraph', function () {
!(function (e, t) {
n.forEach(e.nodes(), function (i) {
var n = e.node(i),
r = t.node(i);
n &&
((n.x = r.x),
(n.y = r.y),
t.children(i).length &&
((n.width = r.width), (n.height = r.height)));
}),
n.forEach(e.edges(), function (i) {
var r = e.edge(i),
s = t.edge(i);
(r.points = s.points),
n.has(s, 'x') && ((r.x = s.x), (r.y = s.y));
}),
(e.graph().width = t.graph().width),
(e.graph().height = t.graph().height);
})(e, t);
});
});
};
var _ = ['nodesep', 'edgesep', 'ranksep', 'marginx', 'marginy'],
b = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: 'tb' },
v = ['acyclicer', 'ranker', 'rankdir', 'align'],
y = ['width', 'height'],
w = { width: 0, height: 0 },
C = ['minlen', 'weight', 'width', 'height', 'labeloffset'],
S = {
minlen: 1,
weight: 1,
width: 0,
height: 0,
labeloffset: 10,
labelpos: 'r',
},
k = ['labelpos'];
function x(e, t) {
return n.mapValues(n.pick(e, t), Number);
}
function L(e) {
var t = {};
return (
n.forEach(e, function (e, i) {
t[i.toLowerCase()] = e;
}),
t
);
}
},
29603: (e, t, i) => {
var n;
try {
n = {
cloneDeep: i(50361),
constant: i(75703),
defaults: i(91747),
each: i(66073),
filter: i(63105),
find: i(13311),
flatten: i(85564),
forEach: i(84486),
forIn: i(62620),
has: i(18721),
isUndefined: i(52353),
last: i(10928),
map: i(35161),
mapValues: i(66604),
max: i(6162),
merge: i(82492),
min: i(53632),
minBy: i(22762),
now: i(7771),
pick: i(78718),
range: i(96026),
reduce: i(54061),
sortBy: i(89734),
uniqueId: i(73955),
values: i(52628),
zipObject: i(7287),
};
} catch (e) {}
n || (n = window._), (e.exports = n);
},
33956: (e, t, i) => {
var n = i(29603),
r = i(65029);
function s(e, t, i, o, a, l, c) {
var d = e.children(c);
if (d.length) {
var h = r.addBorderNode(e, '_bt'),
u = r.addBorderNode(e, '_bb'),
g = e.node(c);
e.setParent(h, c),
(g.borderTop = h),
e.setParent(u, c),
(g.borderBottom = u),
n.forEach(d, function (n) {
s(e, t, i, o, a, l, n);
var r = e.node(n),
d = r.borderTop ? r.borderTop : n,
g = r.borderBottom ? r.borderBottom : n,
f = r.borderTop ? o : 2 * o,
p = d !== g ? 1 : a - l[c] + 1;
e.setEdge(h, d, { weight: f, minlen: p, nestingEdge: !0 }),
e.setEdge(g, u, { weight: f, minlen: p, nestingEdge: !0 });
}),
e.parent(c) || e.setEdge(t, h, { weight: 0, minlen: a + l[c] });
} else c !== t && e.setEdge(t, c, { weight: 0, minlen: i });
}
e.exports = {
run: function (e) {
var t = r.addDummyNode(e, 'root', {}, '_root'),
i = (function (e) {
var t = {};
function i(r, s) {
var o = e.children(r);
o &&
o.length &&
n.forEach(o, function (e) {
i(e, s + 1);
}),
(t[r] = s);
}
return (
n.forEach(e.children(), function (e) {
i(e, 1);
}),
t
);
})(e),
o = n.max(n.values(i)) - 1,
a = 2 * o + 1;
(e.graph().nestingRoot = t),
n.forEach(e.edges(), function (t) {
e.edge(t).minlen *= a;
});
var l =
(function (e) {
return n.reduce(
e.edges(),
function (t, i) {
return t + e.edge(i).weight;
},
0
);
})(e) + 1;
n.forEach(e.children(), function (n) {
s(e, t, a, l, o, i, n);
}),
(e.graph().nodeRankFactor = a);
},
cleanup: function (e) {
var t = e.graph();
e.removeNode(t.nestingRoot),
delete t.nestingRoot,
n.forEach(e.edges(), function (t) {
e.edge(t).nestingEdge && e.removeEdge(t);
});
},
};
},
75399: (e, t, i) => {
'use strict';
var n = i(29603),
r = i(65029);
e.exports = {
run: function (e) {
(e.graph().dummyChains = []),
n.forEach(e.edges(), function (t) {
!(function (e, t) {
var i,
n,
s,
o = t.v,
a = e.node(o).rank,
l = t.w,
c = e.node(l).rank,
d = t.name,
h = e.edge(t),
u = h.labelRank;
if (c !== a + 1) {
for (e.removeEdge(t), s = 0, ++a; a < c; ++s, ++a)
(h.points = []),
(n = {
width: 0,
height: 0,
edgeLabel: h,
edgeObj: t,
rank: a,
}),
(i = r.addDummyNode(e, 'edge', n, '_d')),
a === u &&
((n.width = h.width),
(n.height = h.height),
(n.dummy = 'edge-label'),
(n.labelpos = h.labelpos)),
e.setEdge(o, i, { weight: h.weight }, d),
0 === s && e.graph().dummyChains.push(i),
(o = i);
e.setEdge(o, l, { weight: h.weight }, d);
}
})(e, t);
});
},
undo: function (e) {
n.forEach(e.graph().dummyChains, function (t) {
var i,
n = e.node(t),
r = n.edgeLabel;
for (e.setEdge(n.edgeObj, r); n.dummy; )
(i = e.successors(t)[0]),
e.removeNode(t),
r.points.push({ x: n.x, y: n.y }),
'edge-label' === n.dummy &&
((r.x = n.x),
(r.y = n.y),
(r.width = n.width),
(r.height = n.height)),
(t = i),
(n = e.node(t));
});
},
};
},
67266: (e, t, i) => {
var n = i(29603);
e.exports = function (e, t, i) {
var r,
s = {};
n.forEach(i, function (i) {
for (var n, o, a = e.parent(i); a; ) {
if (
((n = e.parent(a))
? ((o = s[n]), (s[n] = a))
: ((o = r), (r = a)),
o && o !== a)
)
return void t.setEdge(o, a);
a = n;
}
});
};
},
57210: (e, t, i) => {
var n = i(29603);
e.exports = function (e, t) {
return n.map(t, function (t) {
var i = e.inEdges(t);
if (i.length) {
var r = n.reduce(
i,
function (t, i) {
var n = e.edge(i),
r = e.node(i.v);
return {
sum: t.sum + n.weight * r.order,
weight: t.weight + n.weight,
};
},
{ sum: 0, weight: 0 }
);
return { v: t, barycenter: r.sum / r.weight, weight: r.weight };
}
return { v: t };
});
};
},
78007: (e, t, i) => {
var n = i(29603),
r = i(33653).Graph;
e.exports = function (e, t, i) {
var s = (function (e) {
for (var t; e.hasNode((t = n.uniqueId('_root'))); );
return t;
})(e),
o = new r({ compound: !0 })
.setGraph({ root: s })
.setDefaultNodeLabel(function (t) {
return e.node(t);
});
return (
n.forEach(e.nodes(), function (r) {
var a = e.node(r),
l = e.parent(r);
(a.rank === t || (a.minRank <= t && t <= a.maxRank)) &&
(o.setNode(r),
o.setParent(r, l || s),
n.forEach(e[i](r), function (t) {
var i = t.v === r ? t.w : t.v,
s = o.edge(i, r),
a = n.isUndefined(s) ? 0 : s.weight;
o.setEdge(i, r, { weight: e.edge(t).weight + a });
}),
n.has(a, 'minRank') &&
o.setNode(r, {
borderLeft: a.borderLeft[t],
borderRight: a.borderRight[t],
}));
}),
o
);
};
},
20434: (e, t, i) => {
'use strict';
var n = i(29603);
function r(e, t, i) {
for (
var r = n.zipObject(
i,
n.map(i, function (e, t) {
return t;
})
),
s = n.flatten(
n.map(t, function (t) {
return n.sortBy(
n.map(e.outEdges(t), function (t) {
return { pos: r[t.w], weight: e.edge(t).weight };
}),
'pos'
);
}),
!0
),
o = 1;
o < i.length;
)
o <<= 1;
var a = 2 * o - 1;
o -= 1;
var l = n.map(new Array(a), function () {
return 0;
}),
c = 0;
return (
n.forEach(
s.forEach(function (e) {
var t = e.pos + o;
l[t] += e.weight;
for (var i = 0; t > 0; )
t % 2 && (i += l[t + 1]), (l[(t = (t - 1) >> 1)] += e.weight);
c += e.weight * i;
})
),
c
);
}
e.exports = function (e, t) {
for (var i = 0, n = 1; n < t.length; ++n) i += r(e, t[n - 1], t[n]);
return i;
};
},
18095: (e, t, i) => {
'use strict';
var n = i(29603),
r = i(48559),
s = i(20434),
o = i(40373),
a = i(78007),
l = i(67266),
c = i(33653).Graph,
d = i(65029);
function h(e, t, i) {
return n.map(t, function (t) {
return a(e, t, i);
});
}
function u(e, t) {
var i = new c();
n.forEach(e, function (e) {
var r = e.graph().root,
s = o(e, r, i, t);
n.forEach(s.vs, function (t, i) {
e.node(t).order = i;
}),
l(e, i, s.vs);
});
}
function g(e, t) {
n.forEach(t, function (t) {
n.forEach(t, function (t, i) {
e.node(t).order = i;
});
});
}
e.exports = function (e) {
var t = d.maxRank(e),
i = h(e, n.range(1, t + 1), 'inEdges'),
o = h(e, n.range(t - 1, -1, -1), 'outEdges'),
a = r(e);
g(e, a);
for (
var l, c = Number.POSITIVE_INFINITY, f = 0, p = 0;
p < 4;
++f, ++p
) {
u(f % 2 ? i : o, f % 4 >= 2), (a = d.buildLayerMatrix(e));
var m = s(e, a);
m < c && ((p = 0), (l = n.cloneDeep(a)), (c = m));
}
g(e, l);
};
},
48559: (e, t, i) => {
'use strict';
var n = i(29603);
e.exports = function (e) {
var t = {},
i = n.filter(e.nodes(), function (t) {
return !e.children(t).length;
}),
r = n.max(
n.map(i, function (t) {
return e.node(t).rank;
})
),
s = n.map(n.range(r + 1), function () {
return [];
}),
o = n.sortBy(i, function (t) {
return e.node(t).rank;
});
return (
n.forEach(o, function i(r) {
if (!n.has(t, r)) {
t[r] = !0;
var o = e.node(r);
s[o.rank].push(r), n.forEach(e.successors(r), i);
}
}),
s
);
};
},
91058: (e, t, i) => {
'use strict';
var n = i(29603);
e.exports = function (e, t) {
var i = {};
return (
n.forEach(e, function (e, t) {
var r = (i[e.v] = {
indegree: 0,
in: [],
out: [],
vs: [e.v],
i: t,
});
n.isUndefined(e.barycenter) ||
((r.barycenter = e.barycenter), (r.weight = e.weight));
}),
n.forEach(t.edges(), function (e) {
var t = i[e.v],
r = i[e.w];
n.isUndefined(t) ||
n.isUndefined(r) ||
(r.indegree++, t.out.push(i[e.w]));
}),
(function (e) {
var t = [];
function i(e) {
return function (t) {
var i, r, s, o;
t.merged ||
((n.isUndefined(t.barycenter) ||
n.isUndefined(e.barycenter) ||
t.barycenter >= e.barycenter) &&
((r = t),
(s = 0),
(o = 0),
(i = e).weight &&
((s += i.barycenter * i.weight), (o += i.weight)),
r.weight &&
((s += r.barycenter * r.weight), (o += r.weight)),
(i.vs = r.vs.concat(i.vs)),
(i.barycenter = s / o),
(i.weight = o),
(i.i = Math.min(r.i, i.i)),
(r.merged = !0)));
};
}
function r(t) {
return function (i) {
i.in.push(t), 0 == --i.indegree && e.push(i);
};
}
for (; e.length; ) {
var s = e.pop();
t.push(s),
n.forEach(s.in.reverse(), i(s)),
n.forEach(s.out, r(s));
}
return n.map(
n.filter(t, function (e) {
return !e.merged;
}),
function (e) {
return n.pick(e, ['vs', 'i', 'barycenter', 'weight']);
}
);
})(
n.filter(i, function (e) {
return !e.indegree;
})
)
);
};
},
40373: (e, t, i) => {
var n = i(29603),
r = i(57210),
s = i(91058),
o = i(96779);
e.exports = function e(t, i, a, l) {
var c = t.children(i),
d = t.node(i),
h = d ? d.borderLeft : void 0,
u = d ? d.borderRight : void 0,
g = {};
h &&
(c = n.filter(c, function (e) {
return e !== h && e !== u;
}));
var f = r(t, c);
n.forEach(f, function (i) {
if (t.children(i.v).length) {
var r = e(t, i.v, a, l);
(g[i.v] = r),
n.has(r, 'barycenter') &&
((s = i),
(o = r),
n.isUndefined(s.barycenter)
? ((s.barycenter = o.barycenter), (s.weight = o.weight))
: ((s.barycenter =
(s.barycenter * s.weight + o.barycenter * o.weight) /
(s.weight + o.weight)),
(s.weight += o.weight)));
}
var s, o;
});
var p = s(f, a);
!(function (e, t) {
n.forEach(e, function (e) {
e.vs = n.flatten(
e.vs.map(function (e) {
return t[e] ? t[e].vs : e;
}),
!0
);
});
})(p, g);
var m = o(p, l);
if (
h &&
((m.vs = n.flatten([h, m.vs, u], !0)), t.predecessors(h).length)
) {
var _ = t.node(t.predecessors(h)[0]),
b = t.node(t.predecessors(u)[0]);
n.has(m, 'barycenter') || ((m.barycenter = 0), (m.weight = 0)),
(m.barycenter =
(m.barycenter * m.weight + _.order + b.order) / (m.weight + 2)),
(m.weight += 2);
}
return m;
};
},
96779: (e, t, i) => {
var n = i(29603),
r = i(65029);
function s(e, t, i) {
for (var r; t.length && (r = n.last(t)).i <= i; )
t.pop(), e.push(r.vs), i++;
return i;
}
e.exports = function (e, t) {
var i,
o = r.partition(e, function (e) {
return n.has(e, 'barycenter');
}),
a = o.lhs,
l = n.sortBy(o.rhs, function (e) {
return -e.i;
}),
c = [],
d = 0,
h = 0,
u = 0;
a.sort(
((i = !!t),
function (e, t) {
return e.barycenter < t.barycenter
? -1
: e.barycenter > t.barycenter
? 1
: i
? t.i - e.i
: e.i - t.i;
})
),
(u = s(c, l, u)),
n.forEach(a, function (e) {
(u += e.vs.length),
c.push(e.vs),
(d += e.barycenter * e.weight),
(h += e.weight),
(u = s(c, l, u));
});
var g = { vs: n.flatten(c, !0) };
return h && ((g.barycenter = d / h), (g.weight = h)), g;
};
},
65891: (e, t, i) => {
var n = i(29603);
e.exports = function (e) {
var t = (function (e) {
var t = {},
i = 0;
return (
n.forEach(e.children(), function r(s) {
var o = i;
n.forEach(e.children(s), r), (t[s] = { low: o, lim: i++ });
}),
t
);
})(e);
n.forEach(e.graph().dummyChains, function (i) {
for (
var n = e.node(i),
r = n.edgeObj,
s = (function (e, t, i, n) {
var r,
s,
o = [],
a = [],
l = Math.min(t[i].low, t[n].low),
c = Math.max(t[i].lim, t[n].lim);
r = i;
do {
(r = e.parent(r)), o.push(r);
} while (r && (t[r].low > l || c > t[r].lim));
for (s = r, r = n; (r = e.parent(r)) !== s; ) a.push(r);
return { path: o.concat(a.reverse()), lca: s };
})(e, t, r.v, r.w),
o = s.path,
a = s.lca,
l = 0,
c = o[l],
d = !0;
i !== r.w;
) {
if (((n = e.node(i)), d)) {
for (; (c = o[l]) !== a && e.node(c).maxRank < n.rank; ) l++;
c === a && (d = !1);
}
if (!d) {
for (
;
l < o.length - 1 && e.node((c = o[l + 1])).minRank <= n.rank;
)
l++;
c = o[l];
}
e.setParent(i, c), (i = e.successors(i)[0]);
}
});
};
},
19998: (e, t, i) => {
'use strict';
var n = i(29603),
r = i(33653).Graph,
s = i(65029);
function o(e, t) {
var i = {};
return (
n.reduce(t, function (t, r) {
var s = 0,
o = 0,
a = t.length,
c = n.last(r);
return (
n.forEach(r, function (t, d) {
var h = (function (e, t) {
if (e.node(t).dummy)
return n.find(e.predecessors(t), function (t) {
return e.node(t).dummy;
});
})(e, t),
u = h ? e.node(h).order : a;
(h || t === c) &&
(n.forEach(r.slice(o, d + 1), function (t) {
n.forEach(e.predecessors(t), function (n) {
var r = e.node(n),
o = r.order;
!(o < s || u < o) ||
(r.dummy && e.node(t).dummy) ||
l(i, n, t);
});
}),
(o = d + 1),
(s = u));
}),
r
);
}),
i
);
}
function a(e, t) {
var i = {};
function r(t, r, s, o, a) {
var c;
n.forEach(n.range(r, s), function (r) {
(c = t[r]),
e.node(c).dummy &&
n.forEach(e.predecessors(c), function (t) {
var n = e.node(t);
n.dummy && (n.order < o || n.order > a) && l(i, t, c);
});
});
}
return (
n.reduce(t, function (t, i) {
var s,
o = -1,
a = 0;
return (
n.forEach(i, function (n, l) {
if ('border' === e.node(n).dummy) {
var c = e.predecessors(n);
c.length &&
((s = e.node(c[0]).order),
r(i, a, l, o, s),
(a = l),
(o = s));
}
r(i, a, i.length, s, t.length);
}),
i
);
}),
i
);
}
function l(e, t, i) {
if (t > i) {
var n = t;
(t = i), (i = n);
}
var r = e[t];
r || (e[t] = r = {}), (r[i] = !0);
}
function c(e, t, i) {
if (t > i) {
var r = t;
(t = i), (i = r);
}
return n.has(e[t], i);
}
function d(e, t, i, r) {
var s = {},
o = {},
a = {};
return (
n.forEach(t, function (e) {
n.forEach(e, function (e, t) {
(s[e] = e), (o[e] = e), (a[e] = t);
});
}),
n.forEach(t, function (e) {
var t = -1;
n.forEach(e, function (e) {
var l = r(e);
if (l.length)
for (
var d =
((l = n.sortBy(l, function (e) {
return a[e];
})).length -
1) /
2,
h = Math.floor(d),
u = Math.ceil(d);
h <= u;
++h
) {
var g = l[h];
o[e] === e &&
t < a[g] &&
!c(i, e, g) &&
((o[g] = e), (o[e] = s[e] = s[g]), (t = a[g]));
}
});
}),
{ root: s, align: o }
);
}
function h(e, t, i, s, o) {
var a = {},
l = (function (e, t, i, s) {
var o = new r(),
a = e.graph(),
l = (function (e, t, i) {
return function (r, s, o) {
var a,
l = r.node(s),
c = r.node(o),
d = 0;
if (((d += l.width / 2), n.has(l, 'labelpos')))
switch (l.labelpos.toLowerCase()) {
case 'l':
a = -l.width / 2;
break;
case 'r':
a = l.width / 2;
}
if (
(a && (d += i ? a : -a),
(a = 0),
(d += (l.dummy ? t : e) / 2),
(d += (c.dummy ? t : e) / 2),
(d += c.width / 2),
n.has(c, 'labelpos'))
)
switch (c.labelpos.toLowerCase()) {
case 'l':
a = c.width / 2;
break;
case 'r':
a = -c.width / 2;
}
return a && (d += i ? a : -a), (a = 0), d;
};
})(a.nodesep, a.edgesep, s);
return (
n.forEach(t, function (t) {
var r;
n.forEach(t, function (t) {
var n = i[t];
if ((o.setNode(n), r)) {
var s = i[r],
a = o.edge(s, n);
o.setEdge(s, n, Math.max(l(e, t, r), a || 0));
}
r = t;
});
}),
o
);
})(e, t, i, o),
c = o ? 'borderLeft' : 'borderRight';
function d(e, t) {
for (var i = l.nodes(), n = i.pop(), r = {}; n; )
r[n] ? e(n) : ((r[n] = !0), i.push(n), (i = i.concat(t(n)))),
(n = i.pop());
}
return (
d(function (e) {
a[e] = l.inEdges(e).reduce(function (e, t) {
return Math.max(e, a[t.v] + l.edge(t));
}, 0);
}, l.predecessors.bind(l)),
d(function (t) {
var i = l.outEdges(t).reduce(function (e, t) {
return Math.min(e, a[t.w] - l.edge(t));
}, Number.POSITIVE_INFINITY),
n = e.node(t);
i !== Number.POSITIVE_INFINITY &&
n.borderType !== c &&
(a[t] = Math.max(a[t], i));
}, l.successors.bind(l)),
n.forEach(s, function (e) {
a[e] = a[i[e]];
}),
a
);
}
function u(e, t) {
return n.minBy(n.values(t), function (t) {
var i = Number.NEGATIVE_INFINITY,
r = Number.POSITIVE_INFINITY;
return (
n.forIn(t, function (t, n) {
var s =
(function (e, t) {
return e.node(t).width;
})(e, n) / 2;
(i = Math.max(t + s, i)), (r = Math.min(t - s, r));
}),
i - r
);
});
}
function g(e, t) {
var i = n.values(t),
r = n.min(i),
s = n.max(i);
n.forEach(['u', 'd'], function (i) {
n.forEach(['l', 'r'], function (o) {
var a,
l = i + o,
c = e[l];
if (c !== t) {
var d = n.values(c);
(a = 'l' === o ? r - n.min(d) : s - n.max(d)) &&
(e[l] = n.mapValues(c, function (e) {
return e + a;
}));
}
});
});
}
function f(e, t) {
return n.mapValues(e.ul, function (i, r) {
if (t) return e[t.toLowerCase()][r];
var s = n.sortBy(n.map(e, r));
return (s[1] + s[2]) / 2;
});
}
e.exports = {
positionX: function (e) {
var t,
i = s.buildLayerMatrix(e),
r = n.merge(o(e, i), a(e, i)),
l = {};
n.forEach(['u', 'd'], function (s) {
(t = 'u' === s ? i : n.values(i).reverse()),
n.forEach(['l', 'r'], function (i) {
'r' === i &&
(t = n.map(t, function (e) {
return n.values(e).reverse();
}));
var o = ('u' === s ? e.predecessors : e.successors).bind(e),
a = d(0, t, r, o),
c = h(e, t, a.root, a.align, 'r' === i);
'r' === i &&
(c = n.mapValues(c, function (e) {
return -e;
})),
(l[s + i] = c);
});
});
var c = u(e, l);
return g(l, c), f(l, e.graph().align);
},
findType1Conflicts: o,
findType2Conflicts: a,
addConflict: l,
hasConflict: c,
verticalAlignment: d,
horizontalCompaction: h,
alignCoordinates: g,
findSmallestWidthAlignment: u,
balance: f,
};
},
86587: (e, t, i) => {
'use strict';
var n = i(29603),
r = i(65029),
s = i(19998).positionX;
e.exports = function (e) {
(function (e) {
var t = r.buildLayerMatrix(e),
i = e.graph().ranksep,
s = 0;
n.forEach(t, function (t) {
var r = n.max(
n.map(t, function (t) {
return e.node(t).height;
})
);
n.forEach(t, function (t) {
e.node(t).y = s + r / 2;
}),
(s += r + i);
});
})((e = r.asNonCompoundGraph(e))),
n.forEach(s(e), function (t, i) {
e.node(i).x = t;
});
};
},
54434: (e, t, i) => {
'use strict';
var n = i(29603),
r = i(33653).Graph,
s = i(90697).slack;
function o(e, t) {
return (
n.forEach(e.nodes(), function i(r) {
n.forEach(t.nodeEdges(r), function (n) {
var o = n.v,
a = r === o ? n.w : o;
e.hasNode(a) ||
s(t, n) ||
(e.setNode(a, {}), e.setEdge(r, a, {}), i(a));
});
}),
e.nodeCount()
);
}
function a(e, t) {
return n.minBy(t.edges(), function (i) {
if (e.hasNode(i.v) !== e.hasNode(i.w)) return s(t, i);
});
}
function l(e, t, i) {
n.forEach(e.nodes(), function (e) {
t.node(e).rank += i;
});
}
e.exports = function (e) {
var t,
i,
n = new r({ directed: !1 }),
c = e.nodes()[0],
d = e.nodeCount();
for (n.setNode(c, {}); o(n, e) < d; )
(t = a(n, e)),
(i = n.hasNode(t.v) ? s(e, t) : -s(e, t)),
l(n, e, i);
return n;
};
},
26833: (e, t, i) => {
'use strict';
var n = i(90697).longestPath,
r = i(54434),
s = i(33288);
e.exports = function (e) {
switch (e.graph().ranker) {
case 'network-simplex':
a(e);
break;
case 'tight-tree':
!(function (e) {
n(e), r(e);
})(e);
break;
case 'longest-path':
o(e);
break;
default:
a(e);
}
};
var o = n;
function a(e) {
s(e);
}
},
33288: (e, t, i) => {
'use strict';
var n = i(29603),
r = i(54434),
s = i(90697).slack,
o = i(90697).longestPath,
a = i(33653).alg.preorder,
l = i(33653).alg.postorder,
c = i(65029).simplify;
function d(e) {
(e = c(e)), o(e);
var t,
i = r(e);
for (g(i), h(i, e); (t = p(i)); ) _(i, e, t, m(i, e, t));
}
function h(e, t) {
var i = l(e, e.nodes());
(i = i.slice(0, i.length - 1)),
n.forEach(i, function (i) {
!(function (e, t, i) {
var n = e.node(i).parent;
e.edge(i, n).cutvalue = u(e, t, i);
})(e, t, i);
});
}
function u(e, t, i) {
var r = e.node(i).parent,
s = !0,
o = t.edge(i, r),
a = 0;
return (
o || ((s = !1), (o = t.edge(r, i))),
(a = o.weight),
n.forEach(t.nodeEdges(i), function (n) {
var o,
l,
c = n.v === i,
d = c ? n.w : n.v;
if (d !== r) {
var h = c === s,
u = t.edge(n).weight;
if (((a += h ? u : -u), (o = i), (l = d), e.hasEdge(o, l))) {
var g = e.edge(i, d).cutvalue;
a += h ? -g : g;
}
}
}),
a
);
}
function g(e, t) {
arguments.length < 2 && (t = e.nodes()[0]), f(e, {}, 1, t);
}
function f(e, t, i, r, s) {
var o = i,
a = e.node(r);
return (
(t[r] = !0),
n.forEach(e.neighbors(r), function (s) {
n.has(t, s) || (i = f(e, t, i, s, r));
}),
(a.low = o),
(a.lim = i++),
s ? (a.parent = s) : delete a.parent,
i
);
}
function p(e) {
return n.find(e.edges(), function (t) {
return e.edge(t).cutvalue < 0;
});
}
function m(e, t, i) {
var r = i.v,
o = i.w;
t.hasEdge(r, o) || ((r = i.w), (o = i.v));
var a = e.node(r),
l = e.node(o),
c = a,
d = !1;
a.lim > l.lim && ((c = l), (d = !0));
var h = n.filter(t.edges(), function (t) {
return d === b(0, e.node(t.v), c) && d !== b(0, e.node(t.w), c);
});
return n.minBy(h, function (e) {
return s(t, e);
});
}
function _(e, t, i, r) {
var s = i.v,
o = i.w;
e.removeEdge(s, o),
e.setEdge(r.v, r.w, {}),
g(e),
h(e, t),
(function (e, t) {
var i = n.find(e.nodes(), function (e) {
return !t.node(e).parent;
}),
r = a(e, i);
(r = r.slice(1)),
n.forEach(r, function (i) {
var n = e.node(i).parent,
r = t.edge(i, n),
s = !1;
r || ((r = t.edge(n, i)), (s = !0)),
(t.node(i).rank =
t.node(n).rank + (s ? r.minlen : -r.minlen));
});
})(e, t);
}
function b(e, t, i) {
return i.low <= t.lim && t.lim <= i.lim;
}
(e.exports = d),
(d.initLowLimValues = g),
(d.initCutValues = h),
(d.calcCutValue = u),
(d.leaveEdge = p),
(d.enterEdge = m),
(d.exchangeEdges = _);
},
90697: (e, t, i) => {
'use strict';
var n = i(29603);
e.exports = {
longestPath: function (e) {
var t = {};
n.forEach(e.sources(), function i(r) {
var s = e.node(r);
if (n.has(t, r)) return s.rank;
t[r] = !0;
var o = n.min(
n.map(e.outEdges(r), function (t) {
return i(t.w) - e.edge(t).minlen;
})
);
return (
(o !== Number.POSITIVE_INFINITY && null != o) || (o = 0),
(s.rank = o)
);
});
},
slack: function (e, t) {
return e.node(t.w).rank - e.node(t.v).rank - e.edge(t).minlen;
},
};
},
65029: (e, t, i) => {
'use strict';
var n = i(29603),
r = i(33653).Graph;
function s(e, t, i, r) {
var s;
do {
s = n.uniqueId(r);
} while (e.hasNode(s));
return (i.dummy = t), e.setNode(s, i), s;
}
function o(e) {
return n.max(
n.map(e.nodes(), function (t) {
var i = e.node(t).rank;
if (!n.isUndefined(i)) return i;
})
);
}
e.exports = {
addDummyNode: s,
simplify: function (e) {
var t = new r().setGraph(e.graph());
return (
n.forEach(e.nodes(), function (i) {
t.setNode(i, e.node(i));
}),
n.forEach(e.edges(), function (i) {
var n = t.edge(i.v, i.w) || { weight: 0, minlen: 1 },
r = e.edge(i);
t.setEdge(i.v, i.w, {
weight: n.weight + r.weight,
minlen: Math.max(n.minlen, r.minlen),
});
}),
t
);
},
asNonCompoundGraph: function (e) {
var t = new r({ multigraph: e.isMultigraph() }).setGraph(e.graph());
return (
n.forEach(e.nodes(), function (i) {
e.children(i).length || t.setNode(i, e.node(i));
}),
n.forEach(e.edges(), function (i) {
t.setEdge(i, e.edge(i));
}),
t
);
},
successorWeights: function (e) {
var t = n.map(e.nodes(), function (t) {
var i = {};
return (
n.forEach(e.outEdges(t), function (t) {
i[t.w] = (i[t.w] || 0) + e.edge(t).weight;
}),
i
);
});
return n.zipObject(e.nodes(), t);
},
predecessorWeights: function (e) {
var t = n.map(e.nodes(), function (t) {
var i = {};
return (
n.forEach(e.inEdges(t), function (t) {
i[t.v] = (i[t.v] || 0) + e.edge(t).weight;
}),
i
);
});
return n.zipObject(e.nodes(), t);
},
intersectRect: function (e, t) {
var i,
n,
r = e.x,
s = e.y,
o = t.x - r,
a = t.y - s,
l = e.width / 2,
c = e.height / 2;
if (!o && !a)
throw new Error(
'Not possible to find intersection inside of the rectangle'
);
return (
Math.abs(a) * l > Math.abs(o) * c
? (a < 0 && (c = -c), (i = (c * o) / a), (n = c))
: (o < 0 && (l = -l), (i = l), (n = (l * a) / o)),
{ x: r + i, y: s + n }
);
},
buildLayerMatrix: function (e) {
var t = n.map(n.range(o(e) + 1), function () {
return [];
});
return (
n.forEach(e.nodes(), function (i) {
var r = e.node(i),
s = r.rank;
n.isUndefined(s) || (t[s][r.order] = i);
}),
t
);
},
normalizeRanks: function (e) {
var t = n.min(
n.map(e.nodes(), function (t) {
return e.node(t).rank;
})
);
n.forEach(e.nodes(), function (i) {
var r = e.node(i);
n.has(r, 'rank') && (r.rank -= t);
});
},
removeEmptyRanks: function (e) {
var t = n.min(
n.map(e.nodes(), function (t) {
return e.node(t).rank;
})
),
i = [];
n.forEach(e.nodes(), function (n) {
var r = e.node(n).rank - t;
i[r] || (i[r] = []), i[r].push(n);
});
var r = 0,
s = e.graph().nodeRankFactor;
n.forEach(i, function (t, i) {
n.isUndefined(t) && i % s != 0
? --r
: r &&
n.forEach(t, function (t) {
e.node(t).rank += r;
});
});
},
addBorderNode: function (e, t, i, n) {
var r = { width: 0, height: 0 };
return (
arguments.length >= 4 && ((r.rank = i), (r.order = n)),
s(e, 'border', r, t)
);
},
maxRank: o,
partition: function (e, t) {
var i = { lhs: [], rhs: [] };
return (
n.forEach(e, function (e) {
t(e) ? i.lhs.push(e) : i.rhs.push(e);
}),
i
);
},
time: function (e, t) {
var i = n.now();
try {
return t();
} finally {
console.log(e + ' time: ' + (n.now() - i) + 'ms');
}
},
notime: function (e, t) {
return t();
},
};
},
96350: (e) => {
e.exports = '0.8.5';
},
79550: (e, t, i) => {
var n = i(86496);
e.exports = {
Graph: n.Graph,
json: i(72159),
alg: i(95725),
version: n.version,
};
},
35318: (e, t, i) => {
var n = i(23270);
e.exports = function (e) {
var t,
i = {},
r = [];
function s(r) {
n.has(i, r) ||
((i[r] = !0),
t.push(r),
n.each(e.successors(r), s),
n.each(e.predecessors(r), s));
}
return (
n.each(e.nodes(), function (e) {
(t = []), s(e), t.length && r.push(t);
}),
r
);
};
},
1012: (e, t, i) => {
var n = i(23270);
function r(e, t, i, s, o, a) {
n.has(s, t) ||
((s[t] = !0),
i || a.push(t),
n.each(o(t), function (t) {
r(e, t, i, s, o, a);
}),
i && a.push(t));
}
e.exports = function (e, t, i) {
n.isArray(t) || (t = [t]);
var s = (e.isDirected() ? e.successors : e.neighbors).bind(e),
o = [],
a = {};
return (
n.each(t, function (t) {
if (!e.hasNode(t))
throw new Error('Graph does not have node: ' + t);
r(e, t, 'post' === i, a, s, o);
}),
o
);
};
},
60796: (e, t, i) => {
var n = i(68013),
r = i(23270);
e.exports = function (e, t, i) {
return r.transform(
e.nodes(),
function (r, s) {
r[s] = n(e, s, t, i);
},
{}
);
};
},
68013: (e, t, i) => {
var n = i(23270),
r = i(43552);
e.exports = function (e, t, i, n) {
return (function (e, t, i, n) {
var s,
o,
a = {},
l = new r(),
c = function (e) {
var t = e.v !== s ? e.v : e.w,
n = a[t],
r = i(e),
c = o.distance + r;
if (r < 0)
throw new Error(
'dijkstra does not allow negative edge weights. Bad edge: ' +
e +
' Weight: ' +
r
);
c < n.distance &&
((n.distance = c), (n.predecessor = s), l.decrease(t, c));
};
for (
e.nodes().forEach(function (e) {
var i = e === t ? 0 : Number.POSITIVE_INFINITY;
(a[e] = { distance: i }), l.add(e, i);
});
l.size() > 0 &&
((s = l.removeMin()),
(o = a[s]).distance !== Number.POSITIVE_INFINITY);
)
n(s).forEach(c);
return a;
})(
e,
String(t),
i || s,
n ||
function (t) {
return e.outEdges(t);
}
);
};
var s = n.constant(1);
},
43647: (e, t, i) => {
var n = i(23270),
r = i(72109);
e.exports = function (e) {
return n.filter(r(e), function (t) {
return t.length > 1 || (1 === t.length && e.hasEdge(t[0], t[0]));
});
};
},
61511: (e, t, i) => {
var n = i(23270);
e.exports = function (e, t, i) {
return (function (e, t, i) {
var n = {},
r = e.nodes();
return (
r.forEach(function (e) {
(n[e] = {}),
(n[e][e] = { distance: 0 }),
r.forEach(function (t) {
e !== t &&
(n[e][t] = { distance: Number.POSITIVE_INFINITY });
}),
i(e).forEach(function (i) {
var r = i.v === e ? i.w : i.v,
s = t(i);
n[e][r] = { distance: s, predecessor: e };
});
}),
r.forEach(function (e) {
var t = n[e];
r.forEach(function (i) {
var s = n[i];
r.forEach(function (i) {
var n = s[e],
r = t[i],
o = s[i],
a = n.distance + r.distance;
a < o.distance &&
((o.distance = a), (o.predecessor = r.predecessor));
});
});
}),
n
);
})(
e,
t || r,
i ||
function (t) {
return e.outEdges(t);
}
);
};
var r = n.constant(1);
},
95725: (e, t, i) => {
e.exports = {
components: i(35318),
dijkstra: i(68013),
dijkstraAll: i(60796),
findCycles: i(43647),
floydWarshall: i(61511),
isAcyclic: i(42330),
postorder: i(70126),
preorder: i(74613),
prim: i(70646),
tarjan: i(72109),
topsort: i(71469),
};
},
42330: (e, t, i) => {
var n = i(71469);
e.exports = function (e) {
try {
n(e);
} catch (e) {
if (e instanceof n.CycleException) return !1;
throw e;
}
return !0;
};
},
70126: (e, t, i) => {
var n = i(1012);
e.exports = function (e, t) {
return n(e, t, 'post');
};
},
74613: (e, t, i) => {
var n = i(1012);
e.exports = function (e, t) {
return n(e, t, 'pre');
};
},
70646: (e, t, i) => {
var n = i(23270),
r = i(81380),
s = i(43552);
e.exports = function (e, t) {
var i,
o = new r(),
a = {},
l = new s();
function c(e) {
var n = e.v === i ? e.w : e.v,
r = l.priority(n);
if (void 0 !== r) {
var s = t(e);
s < r && ((a[n] = i), l.decrease(n, s));
}
}
if (0 === e.nodeCount()) return o;
n.each(e.nodes(), function (e) {
l.add(e, Number.POSITIVE_INFINITY), o.setNode(e);
}),
l.decrease(e.nodes()[0], 0);
for (var d = !1; l.size() > 0; ) {
if (((i = l.removeMin()), n.has(a, i))) o.setEdge(i, a[i]);
else {
if (d) throw new Error('Input graph is not connected: ' + e);
d = !0;
}
e.nodeEdges(i).forEach(c);
}
return o;
};
},
72109: (e, t, i) => {
var n = i(23270);
e.exports = function (e) {
var t = 0,
i = [],
r = {},
s = [];
function o(a) {
var l = (r[a] = { onStack: !0, lowlink: t, index: t++ });
if (
(i.push(a),
e.successors(a).forEach(function (e) {
n.has(r, e)
? r[e].onStack &&
(l.lowlink = Math.min(l.lowlink, r[e].index))
: (o(e), (l.lowlink = Math.min(l.lowlink, r[e].lowlink)));
}),
l.lowlink === l.index)
) {
var c,
d = [];
do {
(c = i.pop()), (r[c].onStack = !1), d.push(c);
} while (a !== c);
s.push(d);
}
}
return (
e.nodes().forEach(function (e) {
n.has(r, e) || o(e);
}),
s
);
};
},
71469: (e, t, i) => {
var n = i(23270);
function r(e) {
var t = {},
i = {},
r = [];
if (
(n.each(e.sinks(), function o(a) {
if (n.has(i, a)) throw new s();
n.has(t, a) ||
((i[a] = !0),
(t[a] = !0),
n.each(e.predecessors(a), o),
delete i[a],
r.push(a));
}),
n.size(t) !== e.nodeCount())
)
throw new s();
return r;
}
function s() {}
(e.exports = r), (r.CycleException = s), (s.prototype = new Error());
},
43552: (e, t, i) => {
var n = i(23270);
function r() {
(this._arr = []), (this._keyIndices = {});
}
(e.exports = r),
(r.prototype.size = function () {
return this._arr.length;
}),
(r.prototype.keys = function () {
return this._arr.map(function (e) {
return e.key;
});
}),
(r.prototype.has = function (e) {
return n.has(this._keyIndices, e);
}),
(r.prototype.priority = function (e) {
var t = this._keyIndices[e];
if (void 0 !== t) return this._arr[t].priority;
}),
(r.prototype.min = function () {
if (0 === this.size()) throw new Error('Queue underflow');
return this._arr[0].key;
}),
(r.prototype.add = function (e, t) {
var i = this._keyIndices;
if (((e = String(e)), !n.has(i, e))) {
var r = this._arr,
s = r.length;
return (
(i[e] = s),
r.push({ key: e, priority: t }),
this._decrease(s),
!0
);
}
return !1;
}),
(r.prototype.removeMin = function () {
this._swap(0, this._arr.length - 1);
var e = this._arr.pop();
return delete this._keyIndices[e.key], this._heapify(0), e.key;
}),
(r.prototype.decrease = function (e, t) {
var i = this._keyIndices[e];
if (t > this._arr[i].priority)
throw new Error(
'New priority is greater than current priority. Key: ' +
e +
' Old: ' +
this._arr[i].priority +
' New: ' +
t
);
(this._arr[i].priority = t), this._decrease(i);
}),
(r.prototype._heapify = function (e) {
var t = this._arr,
i = 2 * e,
n = i + 1,
r = e;
i < t.length &&
((r = t[i].priority < t[r].priority ? i : r),
n < t.length && (r = t[n].priority < t[r].priority ? n : r),
r !== e && (this._swap(e, r), this._heapify(r)));
}),
(r.prototype._decrease = function (e) {
for (
var t, i = this._arr, n = i[e].priority;
0 !== e && !(i[(t = e >> 1)].priority < n);
)
this._swap(e, t), (e = t);
}),
(r.prototype._swap = function (e, t) {
var i = this._arr,
n = this._keyIndices,
r = i[e],
s = i[t];
(i[e] = s), (i[t] = r), (n[s.key] = e), (n[r.key] = t);
});
},
81380: (e, t, i) => {
'use strict';
var n = i(23270);
e.exports = s;
var r = '\0';
function s(e) {
(this._isDirected = !n.has(e, 'directed') || e.directed),
(this._isMultigraph = !!n.has(e, 'multigraph') && e.multigraph),
(this._isCompound = !!n.has(e, 'compound') && e.compound),
(this._label = void 0),
(this._defaultNodeLabelFn = n.constant(void 0)),
(this._defaultEdgeLabelFn = n.constant(void 0)),
(this._nodes = {}),
this._isCompound &&
((this._parent = {}),
(this._children = {}),
(this._children['\0'] = {})),
(this._in = {}),
(this._preds = {}),
(this._out = {}),
(this._sucs = {}),
(this._edgeObjs = {}),
(this._edgeLabels = {});
}
function o(e, t) {
e[t] ? e[t]++ : (e[t] = 1);
}
function a(e, t) {
--e[t] || delete e[t];
}
function l(e, t, i, r) {
var s = '' + t,
o = '' + i;
if (!e && s > o) {
var a = s;
(s = o), (o = a);
}
return s + '' + o + '' + (n.isUndefined(r) ? '\0' : r);
}
function c(e, t, i, n) {
var r = '' + t,
s = '' + i;
if (!e && r > s) {
var o = r;
(r = s), (s = o);
}
var a = { v: r, w: s };
return n && (a.name = n), a;
}
function d(e, t) {
return l(e, t.v, t.w, t.name);
}
(s.prototype._nodeCount = 0),
(s.prototype._edgeCount = 0),
(s.prototype.isDirected = function () {
return this._isDirected;
}),
(s.prototype.isMultigraph = function () {
return this._isMultigraph;
}),
(s.prototype.isCompound = function () {
return this._isCompound;
}),
(s.prototype.setGraph = function (e) {
return (this._label = e), this;
}),
(s.prototype.graph = function () {
return this._label;
}),
(s.prototype.setDefaultNodeLabel = function (e) {
return (
n.isFunction(e) || (e = n.constant(e)),
(this._defaultNodeLabelFn = e),
this
);
}),
(s.prototype.nodeCount = function () {
return this._nodeCount;
}),
(s.prototype.nodes = function () {
return n.keys(this._nodes);
}),
(s.prototype.sources = function () {
var e = this;
return n.filter(this.nodes(), function (t) {
return n.isEmpty(e._in[t]);
});
}),
(s.prototype.sinks = function () {
var e = this;
return n.filter(this.nodes(), function (t) {
return n.isEmpty(e._out[t]);
});
}),
(s.prototype.setNodes = function (e, t) {
var i = arguments,
r = this;
return (
n.each(e, function (e) {
i.length > 1 ? r.setNode(e, t) : r.setNode(e);
}),
this
);
}),
(s.prototype.setNode = function (e, t) {
return n.has(this._nodes, e)
? (arguments.length > 1 && (this._nodes[e] = t), this)
: ((this._nodes[e] =
arguments.length > 1 ? t : this._defaultNodeLabelFn(e)),
this._isCompound &&
((this._parent[e] = r),
(this._children[e] = {}),
(this._children['\0'][e] = !0)),
(this._in[e] = {}),
(this._preds[e] = {}),
(this._out[e] = {}),
(this._sucs[e] = {}),
++this._nodeCount,
this);
}),
(s.prototype.node = function (e) {
return this._nodes[e];
}),
(s.prototype.hasNode = function (e) {
return n.has(this._nodes, e);
}),
(s.prototype.removeNode = function (e) {
var t = this;
if (n.has(this._nodes, e)) {
var i = function (e) {
t.removeEdge(t._edgeObjs[e]);
};
delete this._nodes[e],
this._isCompound &&
(this._removeFromParentsChildList(e),
delete this._parent[e],
n.each(this.children(e), function (e) {
t.setParent(e);
}),
delete this._children[e]),
n.each(n.keys(this._in[e]), i),
delete this._in[e],
delete this._preds[e],
n.each(n.keys(this._out[e]), i),
delete this._out[e],
delete this._sucs[e],
--this._nodeCount;
}
return this;
}),
(s.prototype.setParent = function (e, t) {
if (!this._isCompound)
throw new Error('Cannot set parent in a non-compound graph');
if (n.isUndefined(t)) t = r;
else {
for (var i = (t += ''); !n.isUndefined(i); i = this.parent(i))
if (i === e)
throw new Error(
'Setting ' +
t +
' as parent of ' +
e +
' would create a cycle'
);
this.setNode(t);
}
return (
this.setNode(e),
this._removeFromParentsChildList(e),
(this._parent[e] = t),
(this._children[t][e] = !0),
this
);
}),
(s.prototype._removeFromParentsChildList = function (e) {
delete this._children[this._parent[e]][e];
}),
(s.prototype.parent = function (e) {
if (this._isCompound) {
var t = this._parent[e];
if (t !== r) return t;
}
}),
(s.prototype.children = function (e) {
if ((n.isUndefined(e) && (e = r), this._isCompound)) {
var t = this._children[e];
if (t) return n.keys(t);
} else {
if (e === r) return this.nodes();
if (this.hasNode(e)) return [];
}
}),
(s.prototype.predecessors = function (e) {
var t = this._preds[e];
if (t) return n.keys(t);
}),
(s.prototype.successors = function (e) {
var t = this._sucs[e];
if (t) return n.keys(t);
}),
(s.prototype.neighbors = function (e) {
var t = this.predecessors(e);
if (t) return n.union(t, this.successors(e));
}),
(s.prototype.isLeaf = function (e) {
return (
0 ===
(this.isDirected() ? this.successors(e) : this.neighbors(e))
.length
);
}),
(s.prototype.filterNodes = function (e) {
var t = new this.constructor({
directed: this._isDirected,
multigraph: this._isMultigraph,
compound: this._isCompound,
});
t.setGraph(this.graph());
var i = this;
n.each(this._nodes, function (i, n) {
e(n) && t.setNode(n, i);
}),
n.each(this._edgeObjs, function (e) {
t.hasNode(e.v) && t.hasNode(e.w) && t.setEdge(e, i.edge(e));
});
var r = {};
function s(e) {
var n = i.parent(e);
return void 0 === n || t.hasNode(n)
? ((r[e] = n), n)
: n in r
? r[n]
: s(n);
}
return (
this._isCompound &&
n.each(t.nodes(), function (e) {
t.setParent(e, s(e));
}),
t
);
}),
(s.prototype.setDefaultEdgeLabel = function (e) {
return (
n.isFunction(e) || (e = n.constant(e)),
(this._defaultEdgeLabelFn = e),
this
);
}),
(s.prototype.edgeCount = function () {
return this._edgeCount;
}),
(s.prototype.edges = function () {
return n.values(this._edgeObjs);
}),
(s.prototype.setPath = function (e, t) {
var i = this,
r = arguments;
return (
n.reduce(e, function (e, n) {
return r.length > 1 ? i.setEdge(e, n, t) : i.setEdge(e, n), n;
}),
this
);
}),
(s.prototype.setEdge = function () {
var e,
t,
i,
r,
s = !1,
a = arguments[0];
'object' == typeof a && null !== a && 'v' in a
? ((e = a.v),
(t = a.w),
(i = a.name),
2 === arguments.length && ((r = arguments[1]), (s = !0)))
: ((e = a),
(t = arguments[1]),
(i = arguments[3]),
arguments.length > 2 && ((r = arguments[2]), (s = !0))),
(e = '' + e),
(t = '' + t),
n.isUndefined(i) || (i = '' + i);
var d = l(this._isDirected, e, t, i);
if (n.has(this._edgeLabels, d))
return s && (this._edgeLabels[d] = r), this;
if (!n.isUndefined(i) && !this._isMultigraph)
throw new Error(
'Cannot set a named edge when isMultigraph = false'
);
this.setNode(e),
this.setNode(t),
(this._edgeLabels[d] = s ? r : this._defaultEdgeLabelFn(e, t, i));
var h = c(this._isDirected, e, t, i);
return (
(e = h.v),
(t = h.w),
Object.freeze(h),
(this._edgeObjs[d] = h),
o(this._preds[t], e),
o(this._sucs[e], t),
(this._in[t][d] = h),
(this._out[e][d] = h),
this._edgeCount++,
this
);
}),
(s.prototype.edge = function (e, t, i) {
var n =
1 === arguments.length
? d(this._isDirected, arguments[0])
: l(this._isDirected, e, t, i);
return this._edgeLabels[n];
}),
(s.prototype.hasEdge = function (e, t, i) {
var r =
1 === arguments.length
? d(this._isDirected, arguments[0])
: l(this._isDirected, e, t, i);
return n.has(this._edgeLabels, r);
}),
(s.prototype.removeEdge = function (e, t, i) {
var n =
1 === arguments.length
? d(this._isDirected, arguments[0])
: l(this._isDirected, e, t, i),
r = this._edgeObjs[n];
return (
r &&
((e = r.v),
(t = r.w),
delete this._edgeLabels[n],
delete this._edgeObjs[n],
a(this._preds[t], e),
a(this._sucs[e], t),
delete this._in[t][n],
delete this._out[e][n],
this._edgeCount--),
this
);
}),
(s.prototype.inEdges = function (e, t) {
var i = this._in[e];
if (i) {
var r = n.values(i);
return t
? n.filter(r, function (e) {
return e.v === t;
})
: r;
}
}),
(s.prototype.outEdges = function (e, t) {
var i = this._out[e];
if (i) {
var r = n.values(i);
return t
? n.filter(r, function (e) {
return e.w === t;
})
: r;
}
}),
(s.prototype.nodeEdges = function (e, t) {
var i = this.inEdges(e, t);
if (i) return i.concat(this.outEdges(e, t));
});
},
86496: (e, t, i) => {
e.exports = { Graph: i(81380), version: i(52389) };
},
72159: (e, t, i) => {
var n = i(23270),
r = i(81380);
function s(e) {
return n.map(e.nodes(), function (t) {
var i = e.node(t),
r = e.parent(t),
s = { v: t };
return (
n.isUndefined(i) || (s.value = i),
n.isUndefined(r) || (s.parent = r),
s
);
});
}
function o(e) {
return n.map(e.edges(), function (t) {
var i = e.edge(t),
r = { v: t.v, w: t.w };
return (
n.isUndefined(t.name) || (r.name = t.name),
n.isUndefined(i) || (r.value = i),
r
);
});
}
e.exports = {
write: function (e) {
var t = {
options: {
directed: e.isDirected(),
multigraph: e.isMultigraph(),
compound: e.isCompound(),
},
nodes: s(e),
edges: o(e),
};
return (
n.isUndefined(e.graph()) || (t.value = n.clone(e.graph())), t
);
},
read: function (e) {
var t = new r(e.options).setGraph(e.value);
return (
n.each(e.nodes, function (e) {
t.setNode(e.v, e.value), e.parent && t.setParent(e.v, e.parent);
}),
n.each(e.edges, function (e) {
t.setEdge({ v: e.v, w: e.w, name: e.name }, e.value);
}),
t
);
},
};
},
23270: (e, t, i) => {
var n;
try {
n = {
clone: i(66678),
constant: i(75703),
each: i(66073),
filter: i(63105),
has: i(18721),
isArray: i(1469),
isEmpty: i(41609),
isFunction: i(23560),
isUndefined: i(52353),
keys: i(3674),
map: i(35161),
reduce: i(54061),
size: i(84238),
transform: i(68718),
union: i(93386),
values: i(52628),
};
} catch (e) {}
n || (n = window._), (e.exports = n);
},
52389: (e) => {
e.exports = '2.1.8';
},
70681: (e, t, i) => {
e.exports = {
graphlib: i(70574),
layout: i(98123),
debug: i(27570),
util: { time: i(11138).time, notime: i(11138).notime },
version: i(88177),
};
},
92188: (e, t, i) => {
'use strict';
var n = i(38436),
r = i(74079);
e.exports = {
run: function (e) {
var t =
'greedy' === e.graph().acyclicer
? r(
e,
(function (e) {
return function (t) {
return e.edge(t).weight;
};
})(e)
)
: (function (e) {
var t = [],
i = {},
r = {};
return (
n.forEach(e.nodes(), function s(o) {
n.has(r, o) ||
((r[o] = !0),
(i[o] = !0),
n.forEach(e.outEdges(o), function (e) {
n.has(i, e.w) ? t.push(e) : s(e.w);
}),
delete i[o]);
}),
t
);
})(e);
n.forEach(t, function (t) {
var i = e.edge(t);
e.removeEdge(t),
(i.forwardName = t.name),
(i.reversed = !0),
e.setEdge(t.w, t.v, i, n.uniqueId('rev'));
});
},
undo: function (e) {
n.forEach(e.edges(), function (t) {
var i = e.edge(t);
if (i.reversed) {
e.removeEdge(t);
var n = i.forwardName;
delete i.reversed,
delete i.forwardName,
e.setEdge(t.w, t.v, i, n);
}
});
},
};
},
61133: (e, t, i) => {
var n = i(38436),
r = i(11138);
function s(e, t, i, n, s, o) {
var a = { width: 0, height: 0, rank: o, borderType: t },
l = s[t][o - 1],
c = r.addDummyNode(e, 'border', a, i);
(s[t][o] = c), e.setParent(c, n), l && e.setEdge(l, c, { weight: 1 });
}
e.exports = function (e) {
n.forEach(e.children(), function t(i) {
var r = e.children(i),
o = e.node(i);
if ((r.length && n.forEach(r, t), n.has(o, 'minRank'))) {
(o.borderLeft = []), (o.borderRight = []);
for (var a = o.minRank, l = o.maxRank + 1; a < l; ++a)
s(e, 'borderLeft', '_bl', i, o, a),
s(e, 'borderRight', '_br', i, o, a);
}
});
};
},
53258: (e, t, i) => {
'use strict';
var n = i(38436);
function r(e) {
n.forEach(e.nodes(), function (t) {
s(e.node(t));
}),
n.forEach(e.edges(), function (t) {
s(e.edge(t));
});
}
function s(e) {
var t = e.width;
(e.width = e.height), (e.height = t);
}
function o(e) {
e.y = -e.y;
}
function a(e) {
var t = e.x;
(e.x = e.y), (e.y = t);
}
e.exports = {
adjust: function (e) {
var t = e.graph().rankdir.toLowerCase();
('lr' !== t && 'rl' !== t) || r(e);
},
undo: function (e) {
var t = e.graph().rankdir.toLowerCase();
('bt' !== t && 'rl' !== t) ||
(function (e) {
n.forEach(e.nodes(), function (t) {
o(e.node(t));
}),
n.forEach(e.edges(), function (t) {
var i = e.edge(t);
n.forEach(i.points, o), n.has(i, 'y') && o(i);
});
})(e),
('lr' !== t && 'rl' !== t) ||
((function (e) {
n.forEach(e.nodes(), function (t) {
a(e.node(t));
}),
n.forEach(e.edges(), function (t) {
var i = e.edge(t);
n.forEach(i.points, a), n.has(i, 'x') && a(i);
});
})(e),
r(e));
},
};
},
77822: (e) => {
function t() {
var e = {};
(e._next = e._prev = e), (this._sentinel = e);
}
function i(e) {
(e._prev._next = e._next),
(e._next._prev = e._prev),
delete e._next,
delete e._prev;
}
function n(e, t) {
if ('_next' !== e && '_prev' !== e) return t;
}
(e.exports = t),
(t.prototype.dequeue = function () {
var e = this._sentinel,
t = e._prev;
if (t !== e) return i(t), t;
}),
(t.prototype.enqueue = function (e) {
var t = this._sentinel;
e._prev && e._next && i(e),
(e._next = t._next),
(t._next._prev = e),
(t._next = e),
(e._prev = t);
}),
(t.prototype.toString = function () {
for (var e = [], t = this._sentinel, i = t._prev; i !== t; )
e.push(JSON.stringify(i, n)), (i = i._prev);
return '[' + e.join(', ') + ']';
});
},
27570: (e, t, i) => {
var n = i(38436),
r = i(11138),
s = i(70574).Graph;
e.exports = {
debugOrdering: function (e) {
var t = r.buildLayerMatrix(e),
i = new s({ compound: !0, multigraph: !0 }).setGraph({});
return (
n.forEach(e.nodes(), function (t) {
i.setNode(t, { label: t }),
i.setParent(t, 'layer' + e.node(t).rank);
}),
n.forEach(e.edges(), function (e) {
i.setEdge(e.v, e.w, {}, e.name);
}),
n.forEach(t, function (e, t) {
var r = 'layer' + t;
i.setNode(r, { rank: 'same' }),
n.reduce(e, function (e, t) {
return i.setEdge(e, t, { style: 'invis' }), t;
});
}),
i
);
},
};
},
70574: (e, t, i) => {
var n;
try {
n = i(28282);
} catch (e) {}
n || (n = window.graphlib), (e.exports = n);
},
74079: (e, t, i) => {
var n = i(38436),
r = i(70574).Graph,
s = i(77822);
e.exports = function (e, t) {
if (e.nodeCount() <= 1) return [];
var i = (function (e, t) {
var i = new r(),
o = 0,
a = 0;
n.forEach(e.nodes(), function (e) {
i.setNode(e, { v: e, in: 0, out: 0 });
}),
n.forEach(e.edges(), function (e) {
var n = i.edge(e.v, e.w) || 0,
r = t(e),
s = n + r;
i.setEdge(e.v, e.w, s),
(a = Math.max(a, (i.node(e.v).out += r))),
(o = Math.max(o, (i.node(e.w).in += r)));
});
var c = n.range(a + o + 3).map(function () {
return new s();
}),
d = o + 1;
return (
n.forEach(i.nodes(), function (e) {
l(c, d, i.node(e));
}),
{ graph: i, buckets: c, zeroIdx: d }
);
})(e, t || o),
c = (function (e, t, i) {
for (
var n, r = [], s = t[t.length - 1], o = t[0];
e.nodeCount();
) {
for (; (n = o.dequeue()); ) a(e, t, i, n);
for (; (n = s.dequeue()); ) a(e, t, i, n);
if (e.nodeCount())
for (var l = t.length - 2; l > 0; --l)
if ((n = t[l].dequeue())) {
r = r.concat(a(e, t, i, n, !0));
break;
}
}
return r;
})(i.graph, i.buckets, i.zeroIdx);
return n.flatten(
n.map(c, function (t) {
return e.outEdges(t.v, t.w);
}),
!0
);
};
var o = n.constant(1);
function a(e, t, i, r, s) {
var o = s ? [] : void 0;
return (
n.forEach(e.inEdges(r.v), function (n) {
var r = e.edge(n),
a = e.node(n.v);
s && o.push({ v: n.v, w: n.w }), (a.out -= r), l(t, i, a);
}),
n.forEach(e.outEdges(r.v), function (n) {
var r = e.edge(n),
s = n.w,
o = e.node(s);
(o.in -= r), l(t, i, o);
}),
e.removeNode(r.v),
o
);
}
function l(e, t, i) {
i.out
? i.in
? e[i.out - i.in + t].enqueue(i)
: e[e.length - 1].enqueue(i)
: e[0].enqueue(i);
}
},
98123: (e, t, i) => {
'use strict';
var n = i(38436),
r = i(92188),
s = i(45995),
o = i(78093),
a = i(11138).normalizeRanks,
l = i(24219),
c = i(11138).removeEmptyRanks,
d = i(72981),
h = i(61133),
u = i(53258),
g = i(53408),
f = i(17873),
p = i(11138),
m = i(70574).Graph;
e.exports = function (e, t) {
var i = t && t.debugTiming ? p.time : p.notime;
i('layout', function () {
var t = i(' buildLayoutGraph', function () {
return (function (e) {
var t = new m({ multigraph: !0, compound: !0 }),
i = L(e.graph());
return (
t.setGraph(n.merge({}, b, x(i, _), n.pick(i, v))),
n.forEach(e.nodes(), function (i) {
var r = L(e.node(i));
t.setNode(i, n.defaults(x(r, y), w)),
t.setParent(i, e.parent(i));
}),
n.forEach(e.edges(), function (i) {
var r = L(e.edge(i));
t.setEdge(i, n.merge({}, S, x(r, C), n.pick(r, k)));
}),
t
);
})(e);
});
i(' runLayout', function () {
!(function (e, t) {
t(' makeSpaceForEdgeLabels', function () {
!(function (e) {
var t = e.graph();
(t.ranksep /= 2),
n.forEach(e.edges(), function (i) {
var n = e.edge(i);
(n.minlen *= 2),
'c' !== n.labelpos.toLowerCase() &&
('TB' === t.rankdir || 'BT' === t.rankdir
? (n.width += n.labeloffset)
: (n.height += n.labeloffset));
});
})(e);
}),
t(' removeSelfEdges', function () {
!(function (e) {
n.forEach(e.edges(), function (t) {
if (t.v === t.w) {
var i = e.node(t.v);
i.selfEdges || (i.selfEdges = []),
i.selfEdges.push({ e: t, label: e.edge(t) }),
e.removeEdge(t);
}
});
})(e);
}),
t(' acyclic', function () {
r.run(e);
}),
t(' nestingGraph.run', function () {
d.run(e);
}),
t(' rank', function () {
o(p.asNonCompoundGraph(e));
}),
t(' injectEdgeLabelProxies', function () {
!(function (e) {
n.forEach(e.edges(), function (t) {
var i = e.edge(t);
if (i.width && i.height) {
var n = e.node(t.v),
r = {
rank: (e.node(t.w).rank - n.rank) / 2 + n.rank,
e: t,
};
p.addDummyNode(e, 'edge-proxy', r, '_ep');
}
});
})(e);
}),
t(' removeEmptyRanks', function () {
c(e);
}),
t(' nestingGraph.cleanup', function () {
d.cleanup(e);
}),
t(' normalizeRanks', function () {
a(e);
}),
t(' assignRankMinMax', function () {
!(function (e) {
var t = 0;
n.forEach(e.nodes(), function (i) {
var r = e.node(i);
r.borderTop &&
((r.minRank = e.node(r.borderTop).rank),
(r.maxRank = e.node(r.borderBottom).rank),
(t = n.max(t, r.maxRank)));
}),
(e.graph().maxRank = t);
})(e);
}),
t(' removeEdgeLabelProxies', function () {
!(function (e) {
n.forEach(e.nodes(), function (t) {
var i = e.node(t);
'edge-proxy' === i.dummy &&
((e.edge(i.e).labelRank = i.rank), e.removeNode(t));
});
})(e);
}),
t(' normalize.run', function () {
s.run(e);
}),
t(' parentDummyChains', function () {
l(e);
}),
t(' addBorderSegments', function () {
h(e);
}),
t(' order', function () {
g(e);
}),
t(' insertSelfEdges', function () {
!(function (e) {
var t = p.buildLayerMatrix(e);
n.forEach(t, function (t) {
var i = 0;
n.forEach(t, function (t, r) {
var s = e.node(t);
(s.order = r + i),
n.forEach(s.selfEdges, function (t) {
p.addDummyNode(
e,
'selfedge',
{
width: t.label.width,
height: t.label.height,
rank: s.rank,
order: r + ++i,
e: t.e,
label: t.label,
},
'_se'
);
}),
delete s.selfEdges;
});
});
})(e);
}),
t(' adjustCoordinateSystem', function () {
u.adjust(e);
}),
t(' position', function () {
f(e);
}),
t(' positionSelfEdges', function () {
!(function (e) {
n.forEach(e.nodes(), function (t) {
var i = e.node(t);
if ('selfedge' === i.dummy) {
var n = e.node(i.e.v),
r = n.x + n.width / 2,
s = n.y,
o = i.x - r,
a = n.height / 2;
e.setEdge(i.e, i.label),
e.removeNode(t),
(i.label.points = [
{ x: r + (2 * o) / 3, y: s - a },
{ x: r + (5 * o) / 6, y: s - a },
{ x: r + o, y: s },
{ x: r + (5 * o) / 6, y: s + a },
{ x: r + (2 * o) / 3, y: s + a },
]),
(i.label.x = i.x),
(i.label.y = i.y);
}
});
})(e);
}),
t(' removeBorderNodes', function () {
!(function (e) {
n.forEach(e.nodes(), function (t) {
if (e.children(t).length) {
var i = e.node(t),
r = e.node(i.borderTop),
s = e.node(i.borderBottom),
o = e.node(n.last(i.borderLeft)),
a = e.node(n.last(i.borderRight));
(i.width = Math.abs(a.x - o.x)),
(i.height = Math.abs(s.y - r.y)),
(i.x = o.x + i.width / 2),
(i.y = r.y + i.height / 2);
}
}),
n.forEach(e.nodes(), function (t) {
'border' === e.node(t).dummy && e.removeNode(t);
});
})(e);
}),
t(' normalize.undo', function () {
s.undo(e);
}),
t(' fixupEdgeLabelCoords', function () {
!(function (e) {
n.forEach(e.edges(), function (t) {
var i = e.edge(t);
if (n.has(i, 'x'))
switch (
(('l' !== i.labelpos && 'r' !== i.labelpos) ||
(i.width -= i.labeloffset),
i.labelpos)
) {
case 'l':
i.x -= i.width / 2 + i.labeloffset;
break;
case 'r':
i.x += i.width / 2 + i.labeloffset;
}
});
})(e);
}),
t(' undoCoordinateSystem', function () {
u.undo(e);
}),
t(' translateGraph', function () {
!(function (e) {
var t = Number.POSITIVE_INFINITY,
i = 0,
r = Number.POSITIVE_INFINITY,
s = 0,
o = e.graph(),
a = o.marginx || 0,
l = o.marginy || 0;
function c(e) {
var n = e.x,
o = e.y,
a = e.width,
l = e.height;
(t = Math.min(t, n - a / 2)),
(i = Math.max(i, n + a / 2)),
(r = Math.min(r, o - l / 2)),
(s = Math.max(s, o + l / 2));
}
n.forEach(e.nodes(), function (t) {
c(e.node(t));
}),
n.forEach(e.edges(), function (t) {
var i = e.edge(t);
n.has(i, 'x') && c(i);
}),
(t -= a),
(r -= l),
n.forEach(e.nodes(), function (i) {
var n = e.node(i);
(n.x -= t), (n.y -= r);
}),
n.forEach(e.edges(), function (i) {
var s = e.edge(i);
n.forEach(s.points, function (e) {
(e.x -= t), (e.y -= r);
}),
n.has(s, 'x') && (s.x -= t),
n.has(s, 'y') && (s.y -= r);
}),
(o.width = i - t + a),
(o.height = s - r + l);
})(e);
}),
t(' assignNodeIntersects', function () {
!(function (e) {
n.forEach(e.edges(), function (t) {
var i,
n,
r = e.edge(t),
s = e.node(t.v),
o = e.node(t.w);
r.points
? ((i = r.points[0]),
(n = r.points[r.points.length - 1]))
: ((r.points = []), (i = o), (n = s)),
r.points.unshift(p.intersectRect(s, i)),
r.points.push(p.intersectRect(o, n));
});
})(e);
}),
t(' reversePoints', function () {
!(function (e) {
n.forEach(e.edges(), function (t) {
var i = e.edge(t);
i.reversed && i.points.reverse();
});
})(e);
}),
t(' acyclic.undo', function () {
r.undo(e);
});
})(t, i);
}),
i(' updateInputGraph', function () {
!(function (e, t) {
n.forEach(e.nodes(), function (i) {
var n = e.node(i),
r = t.node(i);
n &&
((n.x = r.x),
(n.y = r.y),
t.children(i).length &&
((n.width = r.width), (n.height = r.height)));
}),
n.forEach(e.edges(), function (i) {
var r = e.edge(i),
s = t.edge(i);
(r.points = s.points),
n.has(s, 'x') && ((r.x = s.x), (r.y = s.y));
}),
(e.graph().width = t.graph().width),
(e.graph().height = t.graph().height);
})(e, t);
});
});
};
var _ = ['nodesep', 'edgesep', 'ranksep', 'marginx', 'marginy'],
b = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: 'tb' },
v = ['acyclicer', 'ranker', 'rankdir', 'align'],
y = ['width', 'height'],
w = { width: 0, height: 0 },
C = ['minlen', 'weight', 'width', 'height', 'labeloffset'],
S = {
minlen: 1,
weight: 1,
width: 0,
height: 0,
labeloffset: 10,
labelpos: 'r',
},
k = ['labelpos'];
function x(e, t) {
return n.mapValues(n.pick(e, t), Number);
}
function L(e) {
var t = {};
return (
n.forEach(e, function (e, i) {
t[i.toLowerCase()] = e;
}),
t
);
}
},
38436: (e, t, i) => {
var n;
try {
n = {
cloneDeep: i(50361),
constant: i(75703),
defaults: i(91747),
each: i(66073),
filter: i(63105),
find: i(13311),
flatten: i(85564),
forEach: i(84486),
forIn: i(62620),
has: i(18721),
isUndefined: i(52353),
last: i(10928),
map: i(35161),
mapValues: i(66604),
max: i(6162),
merge: i(82492),
min: i(53632),
minBy: i(22762),
now: i(7771),
pick: i(78718),
range: i(96026),
reduce: i(54061),
sortBy: i(89734),
uniqueId: i(73955),
values: i(52628),
zipObject: i(7287),
};
} catch (e) {}
n || (n = window._), (e.exports = n);
},
72981: (e, t, i) => {
var n = i(38436),
r = i(11138);
function s(e, t, i, o, a, l, c) {
var d = e.children(c);
if (d.length) {
var h = r.addBorderNode(e, '_bt'),
u = r.addBorderNode(e, '_bb'),
g = e.node(c);
e.setParent(h, c),
(g.borderTop = h),
e.setParent(u, c),
(g.borderBottom = u),
n.forEach(d, function (n) {
s(e, t, i, o, a, l, n);
var r = e.node(n),
d = r.borderTop ? r.borderTop : n,
g = r.borderBottom ? r.borderBottom : n,
f = r.borderTop ? o : 2 * o,
p = d !== g ? 1 : a - l[c] + 1;
e.setEdge(h, d, { weight: f, minlen: p, nestingEdge: !0 }),
e.setEdge(g, u, { weight: f, minlen: p, nestingEdge: !0 });
}),
e.parent(c) || e.setEdge(t, h, { weight: 0, minlen: a + l[c] });
} else c !== t && e.setEdge(t, c, { weight: 0, minlen: i });
}
e.exports = {
run: function (e) {
var t = r.addDummyNode(e, 'root', {}, '_root'),
i = (function (e) {
var t = {};
function i(r, s) {
var o = e.children(r);
o &&
o.length &&
n.forEach(o, function (e) {
i(e, s + 1);
}),
(t[r] = s);
}
return (
n.forEach(e.children(), function (e) {
i(e, 1);
}),
t
);
})(e),
o = n.max(n.values(i)) - 1,
a = 2 * o + 1;
(e.graph().nestingRoot = t),
n.forEach(e.edges(), function (t) {
e.edge(t).minlen *= a;
});
var l =
(function (e) {
return n.reduce(
e.edges(),
function (t, i) {
return t + e.edge(i).weight;
},
0
);
})(e) + 1;
n.forEach(e.children(), function (n) {
s(e, t, a, l, o, i, n);
}),
(e.graph().nodeRankFactor = a);
},
cleanup: function (e) {
var t = e.graph();
e.removeNode(t.nestingRoot),
delete t.nestingRoot,
n.forEach(e.edges(), function (t) {
e.edge(t).nestingEdge && e.removeEdge(t);
});
},
};
},
45995: (e, t, i) => {
'use strict';
var n = i(38436),
r = i(11138);
e.exports = {
run: function (e) {
(e.graph().dummyChains = []),
n.forEach(e.edges(), function (t) {
!(function (e, t) {
var i,
n,
s,
o = t.v,
a = e.node(o).rank,
l = t.w,
c = e.node(l).rank,
d = t.name,
h = e.edge(t),
u = h.labelRank;
if (c !== a + 1) {
for (e.removeEdge(t), s = 0, ++a; a < c; ++s, ++a)
(h.points = []),
(n = {
width: 0,
height: 0,
edgeLabel: h,
edgeObj: t,
rank: a,
}),
(i = r.addDummyNode(e, 'edge', n, '_d')),
a === u &&
((n.width = h.width),
(n.height = h.height),
(n.dummy = 'edge-label'),
(n.labelpos = h.labelpos)),
e.setEdge(o, i, { weight: h.weight }, d),
0 === s && e.graph().dummyChains.push(i),
(o = i);
e.setEdge(o, l, { weight: h.weight }, d);
}
})(e, t);
});
},
undo: function (e) {
n.forEach(e.graph().dummyChains, function (t) {
var i,
n = e.node(t),
r = n.edgeLabel;
for (e.setEdge(n.edgeObj, r); n.dummy; )
(i = e.successors(t)[0]),
e.removeNode(t),
r.points.push({ x: n.x, y: n.y }),
'edge-label' === n.dummy &&
((r.x = n.x),
(r.y = n.y),
(r.width = n.width),
(r.height = n.height)),
(t = i),
(n = e.node(t));
});
},
};
},
55093: (e, t, i) => {
var n = i(38436);
e.exports = function (e, t, i) {
var r,
s = {};
n.forEach(i, function (i) {
for (var n, o, a = e.parent(i); a; ) {
if (
((n = e.parent(a))
? ((o = s[n]), (s[n] = a))
: ((o = r), (r = a)),
o && o !== a)
)
return void t.setEdge(o, a);
a = n;
}
});
};
},
35439: (e, t, i) => {
var n = i(38436);
e.exports = function (e, t) {
return n.map(t, function (t) {
var i = e.inEdges(t);
if (i.length) {
var r = n.reduce(
i,
function (t, i) {
var n = e.edge(i),
r = e.node(i.v);
return {
sum: t.sum + n.weight * r.order,
weight: t.weight + n.weight,
};
},
{ sum: 0, weight: 0 }
);
return { v: t, barycenter: r.sum / r.weight, weight: r.weight };
}
return { v: t };
});
};
},
23128: (e, t, i) => {
var n = i(38436),
r = i(70574).Graph;
e.exports = function (e, t, i) {
var s = (function (e) {
for (var t; e.hasNode((t = n.uniqueId('_root'))); );
return t;
})(e),
o = new r({ compound: !0 })
.setGraph({ root: s })
.setDefaultNodeLabel(function (t) {
return e.node(t);
});
return (
n.forEach(e.nodes(), function (r) {
var a = e.node(r),
l = e.parent(r);
(a.rank === t || (a.minRank <= t && t <= a.maxRank)) &&
(o.setNode(r),
o.setParent(r, l || s),
n.forEach(e[i](r), function (t) {
var i = t.v === r ? t.w : t.v,
s = o.edge(i, r),
a = n.isUndefined(s) ? 0 : s.weight;
o.setEdge(i, r, { weight: e.edge(t).weight + a });
}),
n.has(a, 'minRank') &&
o.setNode(r, {
borderLeft: a.borderLeft[t],
borderRight: a.borderRight[t],
}));
}),
o
);
};
},
56630: (e, t, i) => {
'use strict';
var n = i(38436);
function r(e, t, i) {
for (
var r = n.zipObject(
i,
n.map(i, function (e, t) {
return t;
})
),
s = n.flatten(
n.map(t, function (t) {
return n.sortBy(
n.map(e.outEdges(t), function (t) {
return { pos: r[t.w], weight: e.edge(t).weight };
}),
'pos'
);
}),
!0
),
o = 1;
o < i.length;
)
o <<= 1;
var a = 2 * o - 1;
o -= 1;
var l = n.map(new Array(a), function () {
return 0;
}),
c = 0;
return (
n.forEach(
s.forEach(function (e) {
var t = e.pos + o;
l[t] += e.weight;
for (var i = 0; t > 0; )
t % 2 && (i += l[t + 1]), (l[(t = (t - 1) >> 1)] += e.weight);
c += e.weight * i;
})
),
c
);
}
e.exports = function (e, t) {
for (var i = 0, n = 1; n < t.length; ++n) i += r(e, t[n - 1], t[n]);
return i;
};
},
53408: (e, t, i) => {
'use strict';
var n = i(38436),
r = i(2588),
s = i(56630),
o = i(61026),
a = i(23128),
l = i(55093),
c = i(70574).Graph,
d = i(11138);
function h(e, t, i) {
return n.map(t, function (t) {
return a(e, t, i);
});
}
function u(e, t) {
var i = new c();
n.forEach(e, function (e) {
var r = e.graph().root,
s = o(e, r, i, t);
n.forEach(s.vs, function (t, i) {
e.node(t).order = i;
}),
l(e, i, s.vs);
});
}
function g(e, t) {
n.forEach(t, function (t) {
n.forEach(t, function (t, i) {
e.node(t).order = i;
});
});
}
e.exports = function (e) {
var t = d.maxRank(e),
i = h(e, n.range(1, t + 1), 'inEdges'),
o = h(e, n.range(t - 1, -1, -1), 'outEdges'),
a = r(e);
g(e, a);
for (
var l, c = Number.POSITIVE_INFINITY, f = 0, p = 0;
p < 4;
++f, ++p
) {
u(f % 2 ? i : o, f % 4 >= 2), (a = d.buildLayerMatrix(e));
var m = s(e, a);
m < c && ((p = 0), (l = n.cloneDeep(a)), (c = m));
}
g(e, l);
};
},
2588: (e, t, i) => {
'use strict';
var n = i(38436);
e.exports = function (e) {
var t = {},
i = n.filter(e.nodes(), function (t) {
return !e.children(t).length;
}),
r = n.max(
n.map(i, function (t) {
return e.node(t).rank;
})
),
s = n.map(n.range(r + 1), function () {
return [];
}),
o = n.sortBy(i, function (t) {
return e.node(t).rank;
});
return (
n.forEach(o, function i(r) {
if (!n.has(t, r)) {
t[r] = !0;
var o = e.node(r);
s[o.rank].push(r), n.forEach(e.successors(r), i);
}
}),
s
);
};
},
83678: (e, t, i) => {
'use strict';
var n = i(38436);
e.exports = function (e, t) {
var i = {};
return (
n.forEach(e, function (e, t) {
var r = (i[e.v] = {
indegree: 0,
in: [],
out: [],
vs: [e.v],
i: t,
});
n.isUndefined(e.barycenter) ||
((r.barycenter = e.barycenter), (r.weight = e.weight));
}),
n.forEach(t.edges(), function (e) {
var t = i[e.v],
r = i[e.w];
n.isUndefined(t) ||
n.isUndefined(r) ||
(r.indegree++, t.out.push(i[e.w]));
}),
(function (e) {
var t = [];
function i(e) {
return function (t) {
var i, r, s, o;
t.merged ||
((n.isUndefined(t.barycenter) ||
n.isUndefined(e.barycenter) ||
t.barycenter >= e.barycenter) &&
((r = t),
(s = 0),
(o = 0),
(i = e).weight &&
((s += i.barycenter * i.weight), (o += i.weight)),
r.weight &&
((s += r.barycenter * r.weight), (o += r.weight)),
(i.vs = r.vs.concat(i.vs)),
(i.barycenter = s / o),
(i.weight = o),
(i.i = Math.min(r.i, i.i)),
(r.merged = !0)));
};
}
function r(t) {
return function (i) {
i.in.push(t), 0 == --i.indegree && e.push(i);
};
}
for (; e.length; ) {
var s = e.pop();
t.push(s),
n.forEach(s.in.reverse(), i(s)),
n.forEach(s.out, r(s));
}
return n.map(
n.filter(t, function (e) {
return !e.merged;
}),
function (e) {
return n.pick(e, ['vs', 'i', 'barycenter', 'weight']);
}
);
})(
n.filter(i, function (e) {
return !e.indegree;
})
)
);
};
},
61026: (e, t, i) => {
var n = i(38436),
r = i(35439),
s = i(83678),
o = i(87304);
e.exports = function e(t, i, a, l) {
var c = t.children(i),
d = t.node(i),
h = d ? d.borderLeft : void 0,
u = d ? d.borderRight : void 0,
g = {};
h &&
(c = n.filter(c, function (e) {
return e !== h && e !== u;
}));
var f = r(t, c);
n.forEach(f, function (i) {
if (t.children(i.v).length) {
var r = e(t, i.v, a, l);
(g[i.v] = r),
n.has(r, 'barycenter') &&
((s = i),
(o = r),
n.isUndefined(s.barycenter)
? ((s.barycenter = o.barycenter), (s.weight = o.weight))
: ((s.barycenter =
(s.barycenter * s.weight + o.barycenter * o.weight) /
(s.weight + o.weight)),
(s.weight += o.weight)));
}
var s, o;
});
var p = s(f, a);
!(function (e, t) {
n.forEach(e, function (e) {
e.vs = n.flatten(
e.vs.map(function (e) {
return t[e] ? t[e].vs : e;
}),
!0
);
});
})(p, g);
var m = o(p, l);
if (
h &&
((m.vs = n.flatten([h, m.vs, u], !0)), t.predecessors(h).length)
) {
var _ = t.node(t.predecessors(h)[0]),
b = t.node(t.predecessors(u)[0]);
n.has(m, 'barycenter') || ((m.barycenter = 0), (m.weight = 0)),
(m.barycenter =
(m.barycenter * m.weight + _.order + b.order) / (m.weight + 2)),
(m.weight += 2);
}
return m;
};
},
87304: (e, t, i) => {
var n = i(38436),
r = i(11138);
function s(e, t, i) {
for (var r; t.length && (r = n.last(t)).i <= i; )
t.pop(), e.push(r.vs), i++;
return i;
}
e.exports = function (e, t) {
var i,
o = r.partition(e, function (e) {
return n.has(e, 'barycenter');
}),
a = o.lhs,
l = n.sortBy(o.rhs, function (e) {
return -e.i;
}),
c = [],
d = 0,
h = 0,
u = 0;
a.sort(
((i = !!t),
function (e, t) {
return e.barycenter < t.barycenter
? -1
: e.barycenter > t.barycenter
? 1
: i
? t.i - e.i
: e.i - t.i;
})
),
(u = s(c, l, u)),
n.forEach(a, function (e) {
(u += e.vs.length),
c.push(e.vs),
(d += e.barycenter * e.weight),
(h += e.weight),
(u = s(c, l, u));
});
var g = { vs: n.flatten(c, !0) };
return h && ((g.barycenter = d / h), (g.weight = h)), g;
};
},
24219: (e, t, i) => {
var n = i(38436);
e.exports = function (e) {
var t = (function (e) {
var t = {},
i = 0;
return (
n.forEach(e.children(), function r(s) {
var o = i;
n.forEach(e.children(s), r), (t[s] = { low: o, lim: i++ });
}),
t
);
})(e);
n.forEach(e.graph().dummyChains, function (i) {
for (
var n = e.node(i),
r = n.edgeObj,
s = (function (e, t, i, n) {
var r,
s,
o = [],
a = [],
l = Math.min(t[i].low, t[n].low),
c = Math.max(t[i].lim, t[n].lim);
r = i;
do {
(r = e.parent(r)), o.push(r);
} while (r && (t[r].low > l || c > t[r].lim));
for (s = r, r = n; (r = e.parent(r)) !== s; ) a.push(r);
return { path: o.concat(a.reverse()), lca: s };
})(e, t, r.v, r.w),
o = s.path,
a = s.lca,
l = 0,
c = o[l],
d = !0;
i !== r.w;
) {
if (((n = e.node(i)), d)) {
for (; (c = o[l]) !== a && e.node(c).maxRank < n.rank; ) l++;
c === a && (d = !1);
}
if (!d) {
for (
;
l < o.length - 1 && e.node((c = o[l + 1])).minRank <= n.rank;
)
l++;
c = o[l];
}
e.setParent(i, c), (i = e.successors(i)[0]);
}
});
};
},
3573: (e, t, i) => {
'use strict';
var n = i(38436),
r = i(70574).Graph,
s = i(11138);
function o(e, t) {
var i = {};
return (
n.reduce(t, function (t, r) {
var s = 0,
o = 0,
a = t.length,
c = n.last(r);
return (
n.forEach(r, function (t, d) {
var h = (function (e, t) {
if (e.node(t).dummy)
return n.find(e.predecessors(t), function (t) {
return e.node(t).dummy;
});
})(e, t),
u = h ? e.node(h).order : a;
(h || t === c) &&
(n.forEach(r.slice(o, d + 1), function (t) {
n.forEach(e.predecessors(t), function (n) {
var r = e.node(n),
o = r.order;
!(o < s || u < o) ||
(r.dummy && e.node(t).dummy) ||
l(i, n, t);
});
}),
(o = d + 1),
(s = u));
}),
r
);
}),
i
);
}
function a(e, t) {
var i = {};
function r(t, r, s, o, a) {
var c;
n.forEach(n.range(r, s), function (r) {
(c = t[r]),
e.node(c).dummy &&
n.forEach(e.predecessors(c), function (t) {
var n = e.node(t);
n.dummy && (n.order < o || n.order > a) && l(i, t, c);
});
});
}
return (
n.reduce(t, function (t, i) {
var s,
o = -1,
a = 0;
return (
n.forEach(i, function (n, l) {
if ('border' === e.node(n).dummy) {
var c = e.predecessors(n);
c.length &&
((s = e.node(c[0]).order),
r(i, a, l, o, s),
(a = l),
(o = s));
}
r(i, a, i.length, s, t.length);
}),
i
);
}),
i
);
}
function l(e, t, i) {
if (t > i) {
var n = t;
(t = i), (i = n);
}
var r = e[t];
r || (e[t] = r = {}), (r[i] = !0);
}
function c(e, t, i) {
if (t > i) {
var r = t;
(t = i), (i = r);
}
return n.has(e[t], i);
}
function d(e, t, i, r) {
var s = {},
o = {},
a = {};
return (
n.forEach(t, function (e) {
n.forEach(e, function (e, t) {
(s[e] = e), (o[e] = e), (a[e] = t);
});
}),
n.forEach(t, function (e) {
var t = -1;
n.forEach(e, function (e) {
var l = r(e);
if (l.length)
for (
var d =
((l = n.sortBy(l, function (e) {
return a[e];
})).length -
1) /
2,
h = Math.floor(d),
u = Math.ceil(d);
h <= u;
++h
) {
var g = l[h];
o[e] === e &&
t < a[g] &&
!c(i, e, g) &&
((o[g] = e), (o[e] = s[e] = s[g]), (t = a[g]));
}
});
}),
{ root: s, align: o }
);
}
function h(e, t, i, s, o) {
var a = {},
l = (function (e, t, i, s) {
var o = new r(),
a = e.graph(),
l = (function (e, t, i) {
return function (r, s, o) {
var a,
l = r.node(s),
c = r.node(o),
d = 0;
if (((d += l.width / 2), n.has(l, 'labelpos')))
switch (l.labelpos.toLowerCase()) {
case 'l':
a = -l.width / 2;
break;
case 'r':
a = l.width / 2;
}
if (
(a && (d += i ? a : -a),
(a = 0),
(d += (l.dummy ? t : e) / 2),
(d += (c.dummy ? t : e) / 2),
(d += c.width / 2),
n.has(c, 'labelpos'))
)
switch (c.labelpos.toLowerCase()) {
case 'l':
a = c.width / 2;
break;
case 'r':
a = -c.width / 2;
}
return a && (d += i ? a : -a), (a = 0), d;
};
})(a.nodesep, a.edgesep, s);
return (
n.forEach(t, function (t) {
var r;
n.forEach(t, function (t) {
var n = i[t];
if ((o.setNode(n), r)) {
var s = i[r],
a = o.edge(s, n);
o.setEdge(s, n, Math.max(l(e, t, r), a || 0));
}
r = t;
});
}),
o
);
})(e, t, i, o),
c = o ? 'borderLeft' : 'borderRight';
function d(e, t) {
for (var i = l.nodes(), n = i.pop(), r = {}; n; )
r[n] ? e(n) : ((r[n] = !0), i.push(n), (i = i.concat(t(n)))),
(n = i.pop());
}
return (
d(function (e) {
a[e] = l.inEdges(e).reduce(function (e, t) {
return Math.max(e, a[t.v] + l.edge(t));
}, 0);
}, l.predecessors.bind(l)),
d(function (t) {
var i = l.outEdges(t).reduce(function (e, t) {
return Math.min(e, a[t.w] - l.edge(t));
}, Number.POSITIVE_INFINITY),
n = e.node(t);
i !== Number.POSITIVE_INFINITY &&
n.borderType !== c &&
(a[t] = Math.max(a[t], i));
}, l.successors.bind(l)),
n.forEach(s, function (e) {
a[e] = a[i[e]];
}),
a
);
}
function u(e, t) {
return n.minBy(n.values(t), function (t) {
var i = Number.NEGATIVE_INFINITY,
r = Number.POSITIVE_INFINITY;
return (
n.forIn(t, function (t, n) {
var s =
(function (e, t) {
return e.node(t).width;
})(e, n) / 2;
(i = Math.max(t + s, i)), (r = Math.min(t - s, r));
}),
i - r
);
});
}
function g(e, t) {
var i = n.values(t),
r = n.min(i),
s = n.max(i);
n.forEach(['u', 'd'], function (i) {
n.forEach(['l', 'r'], function (o) {
var a,
l = i + o,
c = e[l];
if (c !== t) {
var d = n.values(c);
(a = 'l' === o ? r - n.min(d) : s - n.max(d)) &&
(e[l] = n.mapValues(c, function (e) {
return e + a;
}));
}
});
});
}
function f(e, t) {
return n.mapValues(e.ul, function (i, r) {
if (t) return e[t.toLowerCase()][r];
var s = n.sortBy(n.map(e, r));
return (s[1] + s[2]) / 2;
});
}
e.exports = {
positionX: function (e) {
var t,
i = s.buildLayerMatrix(e),
r = n.merge(o(e, i), a(e, i)),
l = {};
n.forEach(['u', 'd'], function (s) {
(t = 'u' === s ? i : n.values(i).reverse()),
n.forEach(['l', 'r'], function (i) {
'r' === i &&
(t = n.map(t, function (e) {
return n.values(e).reverse();
}));
var o = ('u' === s ? e.predecessors : e.successors).bind(e),
a = d(0, t, r, o),
c = h(e, t, a.root, a.align, 'r' === i);
'r' === i &&
(c = n.mapValues(c, function (e) {
return -e;
})),
(l[s + i] = c);
});
});
var c = u(e, l);
return g(l, c), f(l, e.graph().align);
},
findType1Conflicts: o,
findType2Conflicts: a,
addConflict: l,
hasConflict: c,
verticalAlignment: d,
horizontalCompaction: h,
alignCoordinates: g,
findSmallestWidthAlignment: u,
balance: f,
};
},
17873: (e, t, i) => {
'use strict';
var n = i(38436),
r = i(11138),
s = i(3573).positionX;
e.exports = function (e) {
(function (e) {
var t = r.buildLayerMatrix(e),
i = e.graph().ranksep,
s = 0;
n.forEach(t, function (t) {
var r = n.max(
n.map(t, function (t) {
return e.node(t).height;
})
);
n.forEach(t, function (t) {
e.node(t).y = s + r / 2;
}),
(s += r + i);
});
})((e = r.asNonCompoundGraph(e))),
n.forEach(s(e), function (t, i) {
e.node(i).x = t;
});
};
},
20300: (e, t, i) => {
'use strict';
var n = i(38436),
r = i(70574).Graph,
s = i(76681).slack;
function o(e, t) {
return (
n.forEach(e.nodes(), function i(r) {
n.forEach(t.nodeEdges(r), function (n) {
var o = n.v,
a = r === o ? n.w : o;
e.hasNode(a) ||
s(t, n) ||
(e.setNode(a, {}), e.setEdge(r, a, {}), i(a));
});
}),
e.nodeCount()
);
}
function a(e, t) {
return n.minBy(t.edges(), function (i) {
if (e.hasNode(i.v) !== e.hasNode(i.w)) return s(t, i);
});
}
function l(e, t, i) {
n.forEach(e.nodes(), function (e) {
t.node(e).rank += i;
});
}
e.exports = function (e) {
var t,
i,
n = new r({ directed: !1 }),
c = e.nodes()[0],
d = e.nodeCount();
for (n.setNode(c, {}); o(n, e) < d; )
(t = a(n, e)),
(i = n.hasNode(t.v) ? s(e, t) : -s(e, t)),
l(n, e, i);
return n;
};
},
78093: (e, t, i) => {
'use strict';
var n = i(76681).longestPath,
r = i(20300),
s = i(42472);
e.exports = function (e) {
switch (e.graph().ranker) {
case 'network-simplex':
a(e);
break;
case 'tight-tree':
!(function (e) {
n(e), r(e);
})(e);
break;
case 'longest-path':
o(e);
break;
default:
a(e);
}
};
var o = n;
function a(e) {
s(e);
}
},
42472: (e, t, i) => {
'use strict';
var n = i(38436),
r = i(20300),
s = i(76681).slack,
o = i(76681).longestPath,
a = i(70574).alg.preorder,
l = i(70574).alg.postorder,
c = i(11138).simplify;
function d(e) {
(e = c(e)), o(e);
var t,
i = r(e);
for (g(i), h(i, e); (t = p(i)); ) _(i, e, t, m(i, e, t));
}
function h(e, t) {
var i = l(e, e.nodes());
(i = i.slice(0, i.length - 1)),
n.forEach(i, function (i) {
!(function (e, t, i) {
var n = e.node(i).parent;
e.edge(i, n).cutvalue = u(e, t, i);
})(e, t, i);
});
}
function u(e, t, i) {
var r = e.node(i).parent,
s = !0,
o = t.edge(i, r),
a = 0;
return (
o || ((s = !1), (o = t.edge(r, i))),
(a = o.weight),
n.forEach(t.nodeEdges(i), function (n) {
var o,
l,
c = n.v === i,
d = c ? n.w : n.v;
if (d !== r) {
var h = c === s,
u = t.edge(n).weight;
if (((a += h ? u : -u), (o = i), (l = d), e.hasEdge(o, l))) {
var g = e.edge(i, d).cutvalue;
a += h ? -g : g;
}
}
}),
a
);
}
function g(e, t) {
arguments.length < 2 && (t = e.nodes()[0]), f(e, {}, 1, t);
}
function f(e, t, i, r, s) {
var o = i,
a = e.node(r);
return (
(t[r] = !0),
n.forEach(e.neighbors(r), function (s) {
n.has(t, s) || (i = f(e, t, i, s, r));
}),
(a.low = o),
(a.lim = i++),
s ? (a.parent = s) : delete a.parent,
i
);
}
function p(e) {
return n.find(e.edges(), function (t) {
return e.edge(t).cutvalue < 0;
});
}
function m(e, t, i) {
var r = i.v,
o = i.w;
t.hasEdge(r, o) || ((r = i.w), (o = i.v));
var a = e.node(r),
l = e.node(o),
c = a,
d = !1;
a.lim > l.lim && ((c = l), (d = !0));
var h = n.filter(t.edges(), function (t) {
return d === b(0, e.node(t.v), c) && d !== b(0, e.node(t.w), c);
});
return n.minBy(h, function (e) {
return s(t, e);
});
}
function _(e, t, i, r) {
var s = i.v,
o = i.w;
e.removeEdge(s, o),
e.setEdge(r.v, r.w, {}),
g(e),
h(e, t),
(function (e, t) {
var i = n.find(e.nodes(), function (e) {
return !t.node(e).parent;
}),
r = a(e, i);
(r = r.slice(1)),
n.forEach(r, function (i) {
var n = e.node(i).parent,
r = t.edge(i, n),
s = !1;
r || ((r = t.edge(n, i)), (s = !0)),
(t.node(i).rank =
t.node(n).rank + (s ? r.minlen : -r.minlen));
});
})(e, t);
}
function b(e, t, i) {
return i.low <= t.lim && t.lim <= i.lim;
}
(e.exports = d),
(d.initLowLimValues = g),
(d.initCutValues = h),
(d.calcCutValue = u),
(d.leaveEdge = p),
(d.enterEdge = m),
(d.exchangeEdges = _);
},
76681: (e, t, i) => {
'use strict';
var n = i(38436);
e.exports = {
longestPath: function (e) {
var t = {};
n.forEach(e.sources(), function i(r) {
var s = e.node(r);
if (n.has(t, r)) return s.rank;
t[r] = !0;
var o = n.min(
n.map(e.outEdges(r), function (t) {
return i(t.w) - e.edge(t).minlen;
})
);
return (
(o !== Number.POSITIVE_INFINITY && null != o) || (o = 0),
(s.rank = o)
);
});
},
slack: function (e, t) {
return e.node(t.w).rank - e.node(t.v).rank - e.edge(t).minlen;
},
};
},
11138: (e, t, i) => {
'use strict';
var n = i(38436),
r = i(70574).Graph;
function s(e, t, i, r) {
var s;
do {
s = n.uniqueId(r);
} while (e.hasNode(s));
return (i.dummy = t), e.setNode(s, i), s;
}
function o(e) {
return n.max(
n.map(e.nodes(), function (t) {
var i = e.node(t).rank;
if (!n.isUndefined(i)) return i;
})
);
}
e.exports = {
addDummyNode: s,
simplify: function (e) {
var t = new r().setGraph(e.graph());
return (
n.forEach(e.nodes(), function (i) {
t.setNode(i, e.node(i));
}),
n.forEach(e.edges(), function (i) {
var n = t.edge(i.v, i.w) || { weight: 0, minlen: 1 },
r = e.edge(i);
t.setEdge(i.v, i.w, {
weight: n.weight + r.weight,
minlen: Math.max(n.minlen, r.minlen),
});
}),
t
);
},
asNonCompoundGraph: function (e) {
var t = new r({ multigraph: e.isMultigraph() }).setGraph(e.graph());
return (
n.forEach(e.nodes(), function (i) {
e.children(i).length || t.setNode(i, e.node(i));
}),
n.forEach(e.edges(), function (i) {
t.setEdge(i, e.edge(i));
}),
t
);
},
successorWeights: function (e) {
var t = n.map(e.nodes(), function (t) {
var i = {};
return (
n.forEach(e.outEdges(t), function (t) {
i[t.w] = (i[t.w] || 0) + e.edge(t).weight;
}),
i
);
});
return n.zipObject(e.nodes(), t);
},
predecessorWeights: function (e) {
var t = n.map(e.nodes(), function (t) {
var i = {};
return (
n.forEach(e.inEdges(t), function (t) {
i[t.v] = (i[t.v] || 0) + e.edge(t).weight;
}),
i
);
});
return n.zipObject(e.nodes(), t);
},
intersectRect: function (e, t) {
var i,
n,
r = e.x,
s = e.y,
o = t.x - r,
a = t.y - s,
l = e.width / 2,
c = e.height / 2;
if (!o && !a)
throw new Error(
'Not possible to find intersection inside of the rectangle'
);
return (
Math.abs(a) * l > Math.abs(o) * c
? (a < 0 && (c = -c), (i = (c * o) / a), (n = c))
: (o < 0 && (l = -l), (i = l), (n = (l * a) / o)),
{ x: r + i, y: s + n }
);
},
buildLayerMatrix: function (e) {
var t = n.map(n.range(o(e) + 1), function () {
return [];
});
return (
n.forEach(e.nodes(), function (i) {
var r = e.node(i),
s = r.rank;
n.isUndefined(s) || (t[s][r.order] = i);
}),
t
);
},
normalizeRanks: function (e) {
var t = n.min(
n.map(e.nodes(), function (t) {
return e.node(t).rank;
})
);
n.forEach(e.nodes(), function (i) {
var r = e.node(i);
n.has(r, 'rank') && (r.rank -= t);
});
},
removeEmptyRanks: function (e) {
var t = n.min(
n.map(e.nodes(), function (t) {
return e.node(t).rank;
})
),
i = [];
n.forEach(e.nodes(), function (n) {
var r = e.node(n).rank - t;
i[r] || (i[r] = []), i[r].push(n);
});
var r = 0,
s = e.graph().nodeRankFactor;
n.forEach(i, function (t, i) {
n.isUndefined(t) && i % s != 0
? --r
: r &&
n.forEach(t, function (t) {
e.node(t).rank += r;
});
});
},
addBorderNode: function (e, t, i, n) {
var r = { width: 0, height: 0 };
return (
arguments.length >= 4 && ((r.rank = i), (r.order = n)),
s(e, 'border', r, t)
);
},
maxRank: o,
partition: function (e, t) {
var i = { lhs: [], rhs: [] };
return (
n.forEach(e, function (e) {
t(e) ? i.lhs.push(e) : i.rhs.push(e);
}),
i
);
},
time: function (e, t) {
var i = n.now();
try {
return t();
} finally {
console.log(e + ' time: ' + (n.now() - i) + 'ms');
}
},
notime: function (e, t) {
return t();
},
};
},
88177: (e) => {
e.exports = '0.8.4';
},
2268: (e) => {
'use strict';
var t = (e.exports = {});
(t.isIE = function (e) {
return !(
(-1 === (t = navigator.userAgent.toLowerCase()).indexOf('msie') &&
-1 === t.indexOf('trident') &&
-1 === t.indexOf(' edge/')) ||
(e &&
e !==
(function () {
var e = 3,
t = document.createElement('div'),
i = t.getElementsByTagName('i');
do {
t.innerHTML =
'\x3c!--[if gt IE ' + ++e + ']> 4 ? e : void 0;
})())
);
var t;
}),
(t.isLegacyOpera = function () {
return !!window.opera;
});
},
17900: (e) => {
'use strict';
(e.exports = {}).forEach = function (e, t) {
for (var i = 0; i < e.length; i++) {
var n = t(e[i]);
if (n) return n;
}
};
},
58229: (e, t, i) => {
'use strict';
var n = i(2268);
e.exports = function (e) {
var t = (e = e || {}).reporter,
i = e.batchProcessor,
r = e.stateHandler.getState;
if (!t) throw new Error('Missing required dependency: reporter.');
function s(t) {
var i = e.important ? ' !important; ' : '; ';
return (t.join(i) + i).trim();
}
function o(e) {
return r(e).object;
}
return {
makeDetectable: function (e, o, a) {
a || ((a = o), (o = e), (e = null)),
(e = e || {}).debug,
n.isIE(8)
? a(o)
: (function (o, a) {
var l = s([
'display: block',
'position: absolute',
'top: 0',
'left: 0',
'width: 100%',
'height: 100%',
'border: none',
'padding: 0',
'margin: 0',
'opacity: 0',
'z-index: -1000',
'pointer-events: none',
]),
c = !1,
d = window.getComputedStyle(o),
h = o.offsetWidth,
u = o.offsetHeight;
function g() {
function i() {
if ('static' === d.position) {
o.style.setProperty(
'position',
'relative',
e.important ? 'important' : ''
);
var i = function (t, i, n, r) {
var s = n[r];
'auto' !== s &&
'0' !==
(function (e) {
return e.replace(/[^-\d\.]/g, '');
})(s) &&
(t.warn(
'An element that is positioned static has style.' +
r +
'=' +
s +
' which is ignored due to the static positioning. The element will need to be positioned relative, so the style.' +
r +
' will be set to 0. Element: ',
i
),
i.style.setProperty(
r,
'0',
e.important ? 'important' : ''
));
};
i(t, o, d, 'top'),
i(t, o, d, 'right'),
i(t, o, d, 'bottom'),
i(t, o, d, 'left');
}
}
'' !== d.position && (i(), (c = !0));
var s = document.createElement('object');
(s.style.cssText = l),
(s.tabIndex = -1),
(s.type = 'text/html'),
s.setAttribute('aria-hidden', 'true'),
(s.onload = function () {
c || i(),
(function e(t, i) {
if (!t.contentDocument) {
var n = r(t);
return (
n.checkForObjectDocumentTimeoutId &&
window.clearTimeout(
n.checkForObjectDocumentTimeoutId
),
void (n.checkForObjectDocumentTimeoutId = setTimeout(
function () {
(n.checkForObjectDocumentTimeoutId = 0),
e(t, i);
},
100
))
);
}
i(t.contentDocument);
})(this, function (e) {
a(o);
});
}),
n.isIE() || (s.data = 'about:blank'),
r(o) &&
(o.appendChild(s),
(r(o).object = s),
n.isIE() && (s.data = 'about:blank'));
}
(r(o).startSize = { width: h, height: u }),
i ? i.add(g) : g();
})(o, a);
},
addListener: function (e, t) {
function i() {
t(e);
}
if (n.isIE(8))
(r(e).object = { proxy: i }), e.attachEvent('onresize', i);
else {
var s = o(e);
if (!s)
throw new Error(
'Element is not detectable by this strategy.'
);
s.contentDocument.defaultView.addEventListener('resize', i);
}
},
uninstall: function (e) {
if (r(e)) {
var t = o(e);
t &&
(n.isIE(8)
? e.detachEvent('onresize', t.proxy)
: e.removeChild(t),
r(e).checkForObjectDocumentTimeoutId &&
window.clearTimeout(r(e).checkForObjectDocumentTimeoutId),
delete r(e).object);
}
},
};
};
},
60787: (e, t, i) => {
'use strict';
var n = i(17900).forEach;
e.exports = function (e) {
var t = (e = e || {}).reporter,
i = e.batchProcessor,
r = e.stateHandler.getState,
s = (e.stateHandler.hasState, e.idHandler);
if (!i)
throw new Error('Missing required dependency: batchProcessor');
if (!t) throw new Error('Missing required dependency: reporter.');
var o = (function () {
var e = document.createElement('div');
e.style.cssText = c([
'position: absolute',
'width: 1000px',
'height: 1000px',
'visibility: hidden',
'margin: 0',
'padding: 0',
]);
var t = document.createElement('div');
(t.style.cssText = c([
'position: absolute',
'width: 500px',
'height: 500px',
'overflow: scroll',
'visibility: none',
'top: -1500px',
'left: -1500px',
'visibility: hidden',
'margin: 0',
'padding: 0',
])),
t.appendChild(e),
document.body.insertBefore(t, document.body.firstChild);
var i = 500 - t.clientWidth,
n = 500 - t.clientHeight;
return document.body.removeChild(t), { width: i, height: n };
})(),
a = 'erd_scroll_detection_container';
function l(e) {
!(function (e, t, i) {
if (!e.getElementById(t)) {
var n = i + '_animation',
r = '/* Created by the element-resize-detector library. */\n';
(r +=
'.' +
i +
' > div::-webkit-scrollbar { ' +
c(['display: none']) +
' }\n\n'),
(r +=
'.erd_scroll_detection_container_animation_active { ' +
c([
'-webkit-animation-duration: 0.1s',
'animation-duration: 0.1s',
'-webkit-animation-name: ' + n,
'animation-name: ' + n,
]) +
' }\n'),
(r +=
'@-webkit-keyframes ' +
n +
' { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n'),
(function (i, n) {
n =
n ||
function (t) {
e.head.appendChild(t);
};
var r = e.createElement('style');
(r.innerHTML = i), (r.id = t), n(r);
})(
(r +=
'@keyframes ' +
n +
' { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }')
);
}
})(e, 'erd_scroll_detection_scrollbar_style', a);
}
function c(t) {
var i = e.important ? ' !important; ' : '; ';
return (t.join(i) + i).trim();
}
function d(e, i, n) {
if (e.addEventListener) e.addEventListener(i, n);
else {
if (!e.attachEvent)
return t.error(
"[scroll] Don't know how to add event listeners."
);
e.attachEvent('on' + i, n);
}
}
function h(e, i, n) {
if (e.removeEventListener) e.removeEventListener(i, n);
else {
if (!e.detachEvent)
return t.error(
"[scroll] Don't know how to remove event listeners."
);
e.detachEvent('on' + i, n);
}
}
function u(e) {
return r(e).container.childNodes[0].childNodes[0].childNodes[0];
}
function g(e) {
return r(e).container.childNodes[0].childNodes[0].childNodes[1];
}
return (
l(window.document),
{
makeDetectable: function (e, l, h) {
function f() {
if (e.debug) {
var i = Array.prototype.slice.call(arguments);
if ((i.unshift(s.get(l), 'Scroll: '), t.log.apply))
t.log.apply(null, i);
else for (var n = 0; n < i.length; n++) t.log(i[n]);
}
}
function p(e) {
var t = r(e).container.childNodes[0],
i = window.getComputedStyle(t);
return !i.width || -1 === i.width.indexOf('px');
}
function m() {
var e = window.getComputedStyle(l),
t = {};
return (
(t.position = e.position),
(t.width = l.offsetWidth),
(t.height = l.offsetHeight),
(t.top = e.top),
(t.right = e.right),
(t.bottom = e.bottom),
(t.left = e.left),
(t.widthCSS = e.width),
(t.heightCSS = e.height),
t
);
}
function _() {
if ((f('storeStyle invoked.'), r(l))) {
var e = m();
r(l).style = e;
} else f('Aborting because element has been uninstalled');
}
function b(e, t, i) {
(r(e).lastWidth = t), (r(e).lastHeight = i);
}
function v() {
return 2 * o.width + 1;
}
function y() {
return 2 * o.height + 1;
}
function w(e) {
return e + 10 + v();
}
function C(e) {
return e + 10 + y();
}
function S(e, t, i) {
var n = u(e),
r = g(e),
s = w(t),
o = C(i),
a = (function (e) {
return 2 * e + v();
})(t),
l = (function (e) {
return 2 * e + y();
})(i);
(n.scrollLeft = s),
(n.scrollTop = o),
(r.scrollLeft = a),
(r.scrollTop = l);
}
function k() {
var e = r(l).container;
if (!e) {
((e = document.createElement('div')).className = a),
(e.style.cssText = c([
'visibility: hidden',
'display: inline',
'width: 0px',
'height: 0px',
'z-index: -1',
'overflow: hidden',
'margin: 0',
'padding: 0',
])),
(r(l).container = e),
(function (e) {
e.className += ' ' + a + '_animation_active';
})(e),
l.appendChild(e);
var t = function () {
r(l).onRendered && r(l).onRendered();
};
d(e, 'animationstart', t), (r(l).onAnimationStart = t);
}
return e;
}
function x() {
if ((f('Injecting elements'), r(l))) {
!(function () {
var i = r(l).style;
if ('static' === i.position) {
l.style.setProperty(
'position',
'relative',
e.important ? 'important' : ''
);
var n = function (e, t, i, n) {
var r = i[n];
'auto' !== r &&
'0' !==
(function (e) {
return e.replace(/[^-\d\.]/g, '');
})(r) &&
(e.warn(
'An element that is positioned static has style.' +
n +
'=' +
r +
' which is ignored due to the static positioning. The element will need to be positioned relative, so the style.' +
n +
' will be set to 0. Element: ',
t
),
(t.style[n] = 0));
};
n(t, l, i, 'top'),
n(t, l, i, 'right'),
n(t, l, i, 'bottom'),
n(t, l, i, 'left');
}
})();
var i = r(l).container;
i || (i = k());
var n,
s,
h,
u,
g = o.width,
p = o.height,
m = c([
'position: absolute',
'flex: none',
'overflow: hidden',
'z-index: -1',
'visibility: hidden',
'width: 100%',
'height: 100%',
'left: 0px',
'top: 0px',
]),
_ = c(
[
'position: absolute',
'flex: none',
'overflow: hidden',
'z-index: -1',
'visibility: hidden',
].concat([
'left: ' + (n = (n = -(1 + g)) ? n + 'px' : '0'),
'top: ' + (s = (s = -(1 + p)) ? s + 'px' : '0'),
'right: ' + (u = (u = -g) ? u + 'px' : '0'),
'bottom: ' + (h = (h = -p) ? h + 'px' : '0'),
])
),
b = c([
'position: absolute',
'flex: none',
'overflow: scroll',
'z-index: -1',
'visibility: hidden',
'width: 100%',
'height: 100%',
]),
v = c([
'position: absolute',
'flex: none',
'overflow: scroll',
'z-index: -1',
'visibility: hidden',
'width: 100%',
'height: 100%',
]),
y = c(['position: absolute', 'left: 0', 'top: 0']),
w = c([
'position: absolute',
'width: 200%',
'height: 200%',
]),
C = document.createElement('div'),
S = document.createElement('div'),
x = document.createElement('div'),
L = document.createElement('div'),
M = document.createElement('div'),
D = document.createElement('div');
(C.dir = 'ltr'),
(C.style.cssText = m),
(C.className = a),
(S.className = a),
(S.style.cssText = _),
(x.style.cssText = b),
(L.style.cssText = y),
(M.style.cssText = v),
(D.style.cssText = w),
x.appendChild(L),
M.appendChild(D),
S.appendChild(x),
S.appendChild(M),
C.appendChild(S),
i.appendChild(C),
d(x, 'scroll', N),
d(M, 'scroll', E),
(r(l).onExpandScroll = N),
(r(l).onShrinkScroll = E);
} else f('Aborting because element has been uninstalled');
function N() {
r(l).onExpand && r(l).onExpand();
}
function E() {
r(l).onShrink && r(l).onShrink();
}
}
function L() {
function o(t, i, n) {
var r = (function (e) {
return u(e).childNodes[0];
})(t),
s = w(i),
o = C(n);
r.style.setProperty(
'width',
s + 'px',
e.important ? 'important' : ''
),
r.style.setProperty(
'height',
o + 'px',
e.important ? 'important' : ''
);
}
function a(n) {
var a = l.offsetWidth,
d = l.offsetHeight,
h = a !== r(l).lastWidth || d !== r(l).lastHeight;
f('Storing current size', a, d),
b(l, a, d),
i.add(0, function () {
if (h)
if (r(l))
if (c()) {
if (e.debug) {
var i = l.offsetWidth,
n = l.offsetHeight;
(i === a && n === d) ||
t.warn(
s.get(l),
'Scroll: Size changed before updating detector elements.'
);
}
o(l, a, d);
} else
f(
'Aborting because element container has not been initialized'
);
else
f('Aborting because element has been uninstalled');
}),
i.add(1, function () {
r(l)
? c()
? S(l, a, d)
: f(
'Aborting because element container has not been initialized'
)
: f('Aborting because element has been uninstalled');
}),
h &&
n &&
i.add(2, function () {
r(l)
? c()
? n()
: f(
'Aborting because element container has not been initialized'
)
: f(
'Aborting because element has been uninstalled'
);
});
}
function c() {
return !!r(l).container;
}
function d() {
f('notifyListenersIfNeeded invoked');
var e = r(l);
return void 0 === r(l).lastNotifiedWidth &&
e.lastWidth === e.startSize.width &&
e.lastHeight === e.startSize.height
? f(
'Not notifying: Size is the same as the start size, and there has been no notification yet.'
)
: e.lastWidth === e.lastNotifiedWidth &&
e.lastHeight === e.lastNotifiedHeight
? f('Not notifying: Size already notified')
: (f('Current size not notified, notifying...'),
(e.lastNotifiedWidth = e.lastWidth),
(e.lastNotifiedHeight = e.lastHeight),
void n(r(l).listeners, function (e) {
e(l);
}));
}
function h() {
f('Scroll detected.'),
p(l)
? f('Scroll event fired while unrendered. Ignoring...')
: a(d);
}
if (
(f('registerListenersAndPositionElements invoked.'), r(l))
) {
(r(l).onRendered = function () {
if ((f('startanimation triggered.'), p(l)))
f('Ignoring since element is still unrendered...');
else {
f('Element rendered.');
var e = u(l),
t = g(l);
(0 !== e.scrollLeft &&
0 !== e.scrollTop &&
0 !== t.scrollLeft &&
0 !== t.scrollTop) ||
(f(
'Scrollbars out of sync. Updating detector elements...'
),
a(d));
}
}),
(r(l).onExpand = h),
(r(l).onShrink = h);
var m = r(l).style;
o(l, m.width, m.height);
} else f('Aborting because element has been uninstalled');
}
function M() {
if ((f('finalizeDomMutation invoked.'), r(l))) {
var e = r(l).style;
b(l, e.width, e.height), S(l, e.width, e.height);
} else f('Aborting because element has been uninstalled');
}
function D() {
h(l);
}
function N() {
var e;
f('Installing...'),
(r(l).listeners = []),
(e = m()),
(r(l).startSize = { width: e.width, height: e.height }),
f('Element start size', r(l).startSize),
i.add(0, _),
i.add(1, x),
i.add(2, L),
i.add(3, M),
i.add(4, D);
}
h || ((h = l), (l = e), (e = null)),
(e = e || {}),
f('Making detectable...'),
(function (e) {
return (
!(function (e) {
return (
e === e.ownerDocument.body ||
e.ownerDocument.body.contains(e)
);
})(e) || null === window.getComputedStyle(e)
);
})(l)
? (f('Element is detached'),
k(),
f('Waiting until element is attached...'),
(r(l).onRendered = function () {
f('Element is now attached'), N();
}))
: N();
},
addListener: function (e, t) {
if (!r(e).listeners.push)
throw new Error(
'Cannot add listener to an element that is not detectable.'
);
r(e).listeners.push(t);
},
uninstall: function (e) {
var t = r(e);
t &&
(t.onExpandScroll && h(u(e), 'scroll', t.onExpandScroll),
t.onShrinkScroll && h(g(e), 'scroll', t.onShrinkScroll),
t.onAnimationStart &&
h(t.container, 'animationstart', t.onAnimationStart),
t.container && e.removeChild(t.container));
},
initDocument: l,
}
);
};
},
63844: (e, t, i) => {
'use strict';
var n = i(17900).forEach,
r = i(68452),
s = i(96199),
o = i(75805),
a = i(79799),
l = i(71724),
c = i(2268),
d = i(98129),
h = i(21931),
u = i(58229),
g = i(60787);
function f(e) {
return Array.isArray(e) || void 0 !== e.length;
}
function p(e) {
if (Array.isArray(e)) return e;
var t = [];
return (
n(e, function (e) {
t.push(e);
}),
t
);
}
function m(e) {
return e && 1 === e.nodeType;
}
function _(e, t, i) {
var n = e[t];
return null == n && void 0 !== i ? i : n;
}
e.exports = function (e) {
var t;
if ((e = e || {}).idHandler)
t = {
get: function (t) {
return e.idHandler.get(t, !0);
},
set: e.idHandler.set,
};
else {
var i = o(),
b = a({ idGenerator: i, stateHandler: h });
t = b;
}
var v = e.reporter;
v || (v = l(!1 === v));
var y = _(e, 'batchProcessor', d({ reporter: v })),
w = {};
(w.callOnAdd = !!_(e, 'callOnAdd', !0)),
(w.debug = !!_(e, 'debug', !1));
var C,
S = s(t),
k = r({ stateHandler: h }),
x = _(e, 'strategy', 'object'),
L = _(e, 'important', !1),
M = {
reporter: v,
batchProcessor: y,
stateHandler: h,
idHandler: t,
important: L,
};
if (
('scroll' === x &&
(c.isLegacyOpera()
? (v.warn(
'Scroll strategy is not supported on legacy Opera. Changing to object strategy.'
),
(x = 'object'))
: c.isIE(9) &&
(v.warn(
'Scroll strategy is not supported on IE9. Changing to object strategy.'
),
(x = 'object'))),
'scroll' === x)
)
C = g(M);
else {
if ('object' !== x) throw new Error('Invalid strategy name: ' + x);
C = u(M);
}
var D = {};
return {
listenTo: function (e, i, r) {
function s(e) {
var t = S.get(e);
n(t, function (t) {
t(e);
});
}
function o(e, t, i) {
S.add(t, i), e && i(t);
}
if ((r || ((r = i), (i = e), (e = {})), !i))
throw new Error('At least one element required.');
if (!r) throw new Error('Listener required.');
if (m(i)) i = [i];
else {
if (!f(i))
return v.error(
'Invalid arguments. Must be a DOM element or a collection of DOM elements.'
);
i = p(i);
}
var a = 0,
l = _(e, 'callOnAdd', w.callOnAdd),
c = _(e, 'onReady', function () {}),
d = _(e, 'debug', w.debug);
n(i, function (e) {
h.getState(e) || (h.initState(e), t.set(e));
var u = t.get(e);
if (
(d && v.log('Attaching listener to element', u, e),
!k.isDetectable(e))
)
return (
d && v.log(u, 'Not detectable.'),
k.isBusy(e)
? (d && v.log(u, 'System busy making it detectable'),
o(l, e, r),
(D[u] = D[u] || []),
void D[u].push(function () {
++a === i.length && c();
}))
: (d && v.log(u, 'Making detectable...'),
k.markBusy(e, !0),
C.makeDetectable(
{ debug: d, important: L },
e,
function (e) {
if (
(d && v.log(u, 'onElementDetectable'),
h.getState(e))
) {
k.markAsDetectable(e),
k.markBusy(e, !1),
C.addListener(e, s),
o(l, e, r);
var t = h.getState(e);
if (t && t.startSize) {
var g = e.offsetWidth,
f = e.offsetHeight;
(t.startSize.width === g &&
t.startSize.height === f) ||
s(e);
}
D[u] &&
n(D[u], function (e) {
e();
});
} else
d &&
v.log(
u,
'Element uninstalled before being detectable.'
);
delete D[u], ++a === i.length && c();
}
))
);
d && v.log(u, 'Already detecable, adding listener.'),
o(l, e, r),
a++;
}),
a === i.length && c();
},
removeListener: S.removeListener,
removeAllListeners: S.removeAllListeners,
uninstall: function (e) {
if (!e) return v.error('At least one element is required.');
if (m(e)) e = [e];
else {
if (!f(e))
return v.error(
'Invalid arguments. Must be a DOM element or a collection of DOM elements.'
);
e = p(e);
}
n(e, function (e) {
S.removeAllListeners(e), C.uninstall(e), h.cleanState(e);
});
},
initDocument: function (e) {
C.initDocument && C.initDocument(e);
},
};
};
},
68452: (e) => {
'use strict';
e.exports = function (e) {
var t = e.stateHandler.getState;
return {
isDetectable: function (e) {
var i = t(e);
return i && !!i.isDetectable;
},
markAsDetectable: function (e) {
t(e).isDetectable = !0;
},
isBusy: function (e) {
return !!t(e).busy;
},
markBusy: function (e, i) {
t(e).busy = !!i;
},
};
};
},
75805: (e) => {
'use strict';
e.exports = function () {
var e = 1;
return {
generate: function () {
return e++;
},
};
};
},
79799: (e) => {
'use strict';
e.exports = function (e) {
var t = e.idGenerator,
i = e.stateHandler.getState;
return {
get: function (e) {
var t = i(e);
return t && void 0 !== t.id ? t.id : null;
},
set: function (e) {
var n = i(e);
if (!n)
throw new Error(
'setId required the element to have a resize detection state.'
);
var r = t.generate();
return (n.id = r), r;
},
};
};
},
96199: (e) => {
'use strict';
e.exports = function (e) {
var t = {};
function i(i) {
var n = e.get(i);
return void 0 === n ? [] : t[n] || [];
}
return {
get: i,
add: function (i, n) {
var r = e.get(i);
t[r] || (t[r] = []), t[r].push(n);
},
removeListener: function (e, t) {
for (var n = i(e), r = 0, s = n.length; r < s; ++r)
if (n[r] === t) {
n.splice(r, 1);
break;
}
},
removeAllListeners: function (e) {
var t = i(e);
t && (t.length = 0);
},
};
};
},
71724: (e) => {
'use strict';
e.exports = function (e) {
function t() {}
var i = { log: t, warn: t, error: t };
if (!e && window.console) {
var n = function (e, t) {
e[t] = function () {
var e = console[t];
if (e.apply) e.apply(console, arguments);
else for (var i = 0; i < arguments.length; i++) e(arguments[i]);
};
};
n(i, 'log'), n(i, 'warn'), n(i, 'error');
}
return i;
};
},
21931: (e) => {
'use strict';
function t(e) {
return e._erd;
}
e.exports = {
initState: function (e) {
return (e._erd = {}), t(e);
},
getState: t,
cleanState: function (e) {
delete e._erd;
},
};
},
42859: (e, t, i) => {
'use strict';
var n;
function r(e) {
return (
(n = n || document.createElement('div')),
(e = escape(e)
.replace(/%26/g, '&')
.replace(/%23/g, '#')
.replace(/%3B/g, ';')),
(n.innerHTML = e),
unescape(n.textContent)
);
}
i.r(t), i.d(t, { default: () => r });
},
28282: (e, t, i) => {
var n = i(82354);
e.exports = {
Graph: n.Graph,
json: i(28974),
alg: i(12440),
version: n.version,
};
},
2842: (e, t, i) => {
var n = i(89126);
e.exports = function (e) {
var t,
i = {},
r = [];
function s(r) {
n.has(i, r) ||
((i[r] = !0),
t.push(r),
n.each(e.successors(r), s),
n.each(e.predecessors(r), s));
}
return (
n.each(e.nodes(), function (e) {
(t = []), s(e), t.length && r.push(t);
}),
r
);
};
},
53984: (e, t, i) => {
var n = i(89126);
function r(e, t, i, s, o, a) {
n.has(s, t) ||
((s[t] = !0),
i || a.push(t),
n.each(o(t), function (t) {
r(e, t, i, s, o, a);
}),
i && a.push(t));
}
e.exports = function (e, t, i) {
n.isArray(t) || (t = [t]);
var s = (e.isDirected() ? e.successors : e.neighbors).bind(e),
o = [],
a = {};
return (
n.each(t, function (t) {
if (!e.hasNode(t))
throw new Error('Graph does not have node: ' + t);
r(e, t, 'post' === i, a, s, o);
}),
o
);
};
},
84847: (e, t, i) => {
var n = i(63763),
r = i(89126);
e.exports = function (e, t, i) {
return r.transform(
e.nodes(),
function (r, s) {
r[s] = n(e, s, t, i);
},
{}
);
};
},
63763: (e, t, i) => {
var n = i(89126),
r = i(75639);
e.exports = function (e, t, i, n) {
return (function (e, t, i, n) {
var s,
o,
a = {},
l = new r(),
c = function (e) {
var t = e.v !== s ? e.v : e.w,
n = a[t],
r = i(e),
c = o.distance + r;
if (r < 0)
throw new Error(
'dijkstra does not allow negative edge weights. Bad edge: ' +
e +
' Weight: ' +
r
);
c < n.distance &&
((n.distance = c), (n.predecessor = s), l.decrease(t, c));
};
for (
e.nodes().forEach(function (e) {
var i = e === t ? 0 : Number.POSITIVE_INFINITY;
(a[e] = { distance: i }), l.add(e, i);
});
l.size() > 0 &&
((s = l.removeMin()),
(o = a[s]).distance !== Number.POSITIVE_INFINITY);
)
n(s).forEach(c);
return a;
})(
e,
String(t),
i || s,
n ||
function (t) {
return e.outEdges(t);
}
);
};
var s = n.constant(1);
},
9096: (e, t, i) => {
var n = i(89126),
r = i(5023);
e.exports = function (e) {
return n.filter(r(e), function (t) {
return t.length > 1 || (1 === t.length && e.hasEdge(t[0], t[0]));
});
};
},
38924: (e, t, i) => {
var n = i(89126);
e.exports = function (e, t, i) {
return (function (e, t, i) {
var n = {},
r = e.nodes();
return (
r.forEach(function (e) {
(n[e] = {}),
(n[e][e] = { distance: 0 }),
r.forEach(function (t) {
e !== t &&
(n[e][t] = { distance: Number.POSITIVE_INFINITY });
}),
i(e).forEach(function (i) {
var r = i.v === e ? i.w : i.v,
s = t(i);
n[e][r] = { distance: s, predecessor: e };
});
}),
r.forEach(function (e) {
var t = n[e];
r.forEach(function (i) {
var s = n[i];
r.forEach(function (i) {
var n = s[e],
r = t[i],
o = s[i],
a = n.distance + r.distance;
a < o.distance &&
((o.distance = a), (o.predecessor = r.predecessor));
});
});
}),
n
);
})(
e,
t || r,
i ||
function (t) {
return e.outEdges(t);
}
);
};
var r = n.constant(1);
},
12440: (e, t, i) => {
e.exports = {
components: i(2842),
dijkstra: i(63763),
dijkstraAll: i(84847),
findCycles: i(9096),
floydWarshall: i(38924),
isAcyclic: i(62707),
postorder: i(58828),
preorder: i(92648),
prim: i(80514),
tarjan: i(5023),
topsort: i(2166),
};
},
62707: (e, t, i) => {
var n = i(2166);
e.exports = function (e) {
try {
n(e);
} catch (e) {
if (e instanceof n.CycleException) return !1;
throw e;
}
return !0;
};
},
58828: (e, t, i) => {
var n = i(53984);
e.exports = function (e, t) {
return n(e, t, 'post');
};
},
92648: (e, t, i) => {
var n = i(53984);
e.exports = function (e, t) {
return n(e, t, 'pre');
};
},
80514: (e, t, i) => {
var n = i(89126),
r = i(30771),
s = i(75639);
e.exports = function (e, t) {
var i,
o = new r(),
a = {},
l = new s();
function c(e) {
var n = e.v === i ? e.w : e.v,
r = l.priority(n);
if (void 0 !== r) {
var s = t(e);
s < r && ((a[n] = i), l.decrease(n, s));
}
}
if (0 === e.nodeCount()) return o;
n.each(e.nodes(), function (e) {
l.add(e, Number.POSITIVE_INFINITY), o.setNode(e);
}),
l.decrease(e.nodes()[0], 0);
for (var d = !1; l.size() > 0; ) {
if (((i = l.removeMin()), n.has(a, i))) o.setEdge(i, a[i]);
else {
if (d) throw new Error('Input graph is not connected: ' + e);
d = !0;
}
e.nodeEdges(i).forEach(c);
}
return o;
};
},
5023: (e, t, i) => {
var n = i(89126);
e.exports = function (e) {
var t = 0,
i = [],
r = {},
s = [];
function o(a) {
var l = (r[a] = { onStack: !0, lowlink: t, index: t++ });
if (
(i.push(a),
e.successors(a).forEach(function (e) {
n.has(r, e)
? r[e].onStack &&
(l.lowlink = Math.min(l.lowlink, r[e].index))
: (o(e), (l.lowlink = Math.min(l.lowlink, r[e].lowlink)));
}),
l.lowlink === l.index)
) {
var c,
d = [];
do {
(c = i.pop()), (r[c].onStack = !1), d.push(c);
} while (a !== c);
s.push(d);
}
}
return (
e.nodes().forEach(function (e) {
n.has(r, e) || o(e);
}),
s
);
};
},
2166: (e, t, i) => {
var n = i(89126);
function r(e) {
var t = {},
i = {},
r = [];
if (
(n.each(e.sinks(), function o(a) {
if (n.has(i, a)) throw new s();
n.has(t, a) ||
((i[a] = !0),
(t[a] = !0),
n.each(e.predecessors(a), o),
delete i[a],
r.push(a));
}),
n.size(t) !== e.nodeCount())
)
throw new s();
return r;
}
function s() {}
(e.exports = r), (r.CycleException = s), (s.prototype = new Error());
},
75639: (e, t, i) => {
var n = i(89126);
function r() {
(this._arr = []), (this._keyIndices = {});
}
(e.exports = r),
(r.prototype.size = function () {
return this._arr.length;
}),
(r.prototype.keys = function () {
return this._arr.map(function (e) {
return e.key;
});
}),
(r.prototype.has = function (e) {
return n.has(this._keyIndices, e);
}),
(r.prototype.priority = function (e) {
var t = this._keyIndices[e];
if (void 0 !== t) return this._arr[t].priority;
}),
(r.prototype.min = function () {
if (0 === this.size()) throw new Error('Queue underflow');
return this._arr[0].key;
}),
(r.prototype.add = function (e, t) {
var i = this._keyIndices;
if (((e = String(e)), !n.has(i, e))) {
var r = this._arr,
s = r.length;
return (
(i[e] = s),
r.push({ key: e, priority: t }),
this._decrease(s),
!0
);
}
return !1;
}),
(r.prototype.removeMin = function () {
this._swap(0, this._arr.length - 1);
var e = this._arr.pop();
return delete this._keyIndices[e.key], this._heapify(0), e.key;
}),
(r.prototype.decrease = function (e, t) {
var i = this._keyIndices[e];
if (t > this._arr[i].priority)
throw new Error(
'New priority is greater than current priority. Key: ' +
e +
' Old: ' +
this._arr[i].priority +
' New: ' +
t
);
(this._arr[i].priority = t), this._decrease(i);
}),
(r.prototype._heapify = function (e) {
var t = this._arr,
i = 2 * e,
n = i + 1,
r = e;
i < t.length &&
((r = t[i].priority < t[r].priority ? i : r),
n < t.length && (r = t[n].priority < t[r].priority ? n : r),
r !== e && (this._swap(e, r), this._heapify(r)));
}),
(r.prototype._decrease = function (e) {
for (
var t, i = this._arr, n = i[e].priority;
0 !== e && !(i[(t = e >> 1)].priority < n);
)
this._swap(e, t), (e = t);
}),
(r.prototype._swap = function (e, t) {
var i = this._arr,
n = this._keyIndices,
r = i[e],
s = i[t];
(i[e] = s), (i[t] = r), (n[s.key] = e), (n[r.key] = t);
});
},
30771: (e, t, i) => {
'use strict';
var n = i(89126);
e.exports = s;
var r = '\0';
function s(e) {
(this._isDirected = !n.has(e, 'directed') || e.directed),
(this._isMultigraph = !!n.has(e, 'multigraph') && e.multigraph),
(this._isCompound = !!n.has(e, 'compound') && e.compound),
(this._label = void 0),
(this._defaultNodeLabelFn = n.constant(void 0)),
(this._defaultEdgeLabelFn = n.constant(void 0)),
(this._nodes = {}),
this._isCompound &&
((this._parent = {}),
(this._children = {}),
(this._children['\0'] = {})),
(this._in = {}),
(this._preds = {}),
(this._out = {}),
(this._sucs = {}),
(this._edgeObjs = {}),
(this._edgeLabels = {});
}
function o(e, t) {
e[t] ? e[t]++ : (e[t] = 1);
}
function a(e, t) {
--e[t] || delete e[t];
}
function l(e, t, i, r) {
var s = '' + t,
o = '' + i;
if (!e && s > o) {
var a = s;
(s = o), (o = a);
}
return s + '' + o + '' + (n.isUndefined(r) ? '\0' : r);
}
function c(e, t, i, n) {
var r = '' + t,
s = '' + i;
if (!e && r > s) {
var o = r;
(r = s), (s = o);
}
var a = { v: r, w: s };
return n && (a.name = n), a;
}
function d(e, t) {
return l(e, t.v, t.w, t.name);
}
(s.prototype._nodeCount = 0),
(s.prototype._edgeCount = 0),
(s.prototype.isDirected = function () {
return this._isDirected;
}),
(s.prototype.isMultigraph = function () {
return this._isMultigraph;
}),
(s.prototype.isCompound = function () {
return this._isCompound;
}),
(s.prototype.setGraph = function (e) {
return (this._label = e), this;
}),
(s.prototype.graph = function () {
return this._label;
}),
(s.prototype.setDefaultNodeLabel = function (e) {
return (
n.isFunction(e) || (e = n.constant(e)),
(this._defaultNodeLabelFn = e),
this
);
}),
(s.prototype.nodeCount = function () {
return this._nodeCount;
}),
(s.prototype.nodes = function () {
return n.keys(this._nodes);
}),
(s.prototype.sources = function () {
var e = this;
return n.filter(this.nodes(), function (t) {
return n.isEmpty(e._in[t]);
});
}),
(s.prototype.sinks = function () {
var e = this;
return n.filter(this.nodes(), function (t) {
return n.isEmpty(e._out[t]);
});
}),
(s.prototype.setNodes = function (e, t) {
var i = arguments,
r = this;
return (
n.each(e, function (e) {
i.length > 1 ? r.setNode(e, t) : r.setNode(e);
}),
this
);
}),
(s.prototype.setNode = function (e, t) {
return n.has(this._nodes, e)
? (arguments.length > 1 && (this._nodes[e] = t), this)
: ((this._nodes[e] =
arguments.length > 1 ? t : this._defaultNodeLabelFn(e)),
this._isCompound &&
((this._parent[e] = r),
(this._children[e] = {}),
(this._children['\0'][e] = !0)),
(this._in[e] = {}),
(this._preds[e] = {}),
(this._out[e] = {}),
(this._sucs[e] = {}),
++this._nodeCount,
this);
}),
(s.prototype.node = function (e) {
return this._nodes[e];
}),
(s.prototype.hasNode = function (e) {
return n.has(this._nodes, e);
}),
(s.prototype.removeNode = function (e) {
var t = this;
if (n.has(this._nodes, e)) {
var i = function (e) {
t.removeEdge(t._edgeObjs[e]);
};
delete this._nodes[e],
this._isCompound &&
(this._removeFromParentsChildList(e),
delete this._parent[e],
n.each(this.children(e), function (e) {
t.setParent(e);
}),
delete this._children[e]),
n.each(n.keys(this._in[e]), i),
delete this._in[e],
delete this._preds[e],
n.each(n.keys(this._out[e]), i),
delete this._out[e],
delete this._sucs[e],
--this._nodeCount;
}
return this;
}),
(s.prototype.setParent = function (e, t) {
if (!this._isCompound)
throw new Error('Cannot set parent in a non-compound graph');
if (n.isUndefined(t)) t = r;
else {
for (var i = (t += ''); !n.isUndefined(i); i = this.parent(i))
if (i === e)
throw new Error(
'Setting ' +
t +
' as parent of ' +
e +
' would create a cycle'
);
this.setNode(t);
}
return (
this.setNode(e),
this._removeFromParentsChildList(e),
(this._parent[e] = t),
(this._children[t][e] = !0),
this
);
}),
(s.prototype._removeFromParentsChildList = function (e) {
delete this._children[this._parent[e]][e];
}),
(s.prototype.parent = function (e) {
if (this._isCompound) {
var t = this._parent[e];
if (t !== r) return t;
}
}),
(s.prototype.children = function (e) {
if ((n.isUndefined(e) && (e = r), this._isCompound)) {
var t = this._children[e];
if (t) return n.keys(t);
} else {
if (e === r) return this.nodes();
if (this.hasNode(e)) return [];
}
}),
(s.prototype.predecessors = function (e) {
var t = this._preds[e];
if (t) return n.keys(t);
}),
(s.prototype.successors = function (e) {
var t = this._sucs[e];
if (t) return n.keys(t);
}),
(s.prototype.neighbors = function (e) {
var t = this.predecessors(e);
if (t) return n.union(t, this.successors(e));
}),
(s.prototype.isLeaf = function (e) {
return (
0 ===
(this.isDirected() ? this.successors(e) : this.neighbors(e))
.length
);
}),
(s.prototype.filterNodes = function (e) {
var t = new this.constructor({
directed: this._isDirected,
multigraph: this._isMultigraph,
compound: this._isCompound,
});
t.setGraph(this.graph());
var i = this;
n.each(this._nodes, function (i, n) {
e(n) && t.setNode(n, i);
}),
n.each(this._edgeObjs, function (e) {
t.hasNode(e.v) && t.hasNode(e.w) && t.setEdge(e, i.edge(e));
});
var r = {};
function s(e) {
var n = i.parent(e);
return void 0 === n || t.hasNode(n)
? ((r[e] = n), n)
: n in r
? r[n]
: s(n);
}
return (
this._isCompound &&
n.each(t.nodes(), function (e) {
t.setParent(e, s(e));
}),
t
);
}),
(s.prototype.setDefaultEdgeLabel = function (e) {
return (
n.isFunction(e) || (e = n.constant(e)),
(this._defaultEdgeLabelFn = e),
this
);
}),
(s.prototype.edgeCount = function () {
return this._edgeCount;
}),
(s.prototype.edges = function () {
return n.values(this._edgeObjs);
}),
(s.prototype.setPath = function (e, t) {
var i = this,
r = arguments;
return (
n.reduce(e, function (e, n) {
return r.length > 1 ? i.setEdge(e, n, t) : i.setEdge(e, n), n;
}),
this
);
}),
(s.prototype.setEdge = function () {
var e,
t,
i,
r,
s = !1,
a = arguments[0];
'object' == typeof a && null !== a && 'v' in a
? ((e = a.v),
(t = a.w),
(i = a.name),
2 === arguments.length && ((r = arguments[1]), (s = !0)))
: ((e = a),
(t = arguments[1]),
(i = arguments[3]),
arguments.length > 2 && ((r = arguments[2]), (s = !0))),
(e = '' + e),
(t = '' + t),
n.isUndefined(i) || (i = '' + i);
var d = l(this._isDirected, e, t, i);
if (n.has(this._edgeLabels, d))
return s && (this._edgeLabels[d] = r), this;
if (!n.isUndefined(i) && !this._isMultigraph)
throw new Error(
'Cannot set a named edge when isMultigraph = false'
);
this.setNode(e),
this.setNode(t),
(this._edgeLabels[d] = s ? r : this._defaultEdgeLabelFn(e, t, i));
var h = c(this._isDirected, e, t, i);
return (
(e = h.v),
(t = h.w),
Object.freeze(h),
(this._edgeObjs[d] = h),
o(this._preds[t], e),
o(this._sucs[e], t),
(this._in[t][d] = h),
(this._out[e][d] = h),
this._edgeCount++,
this
);
}),
(s.prototype.edge = function (e, t, i) {
var n =
1 === arguments.length
? d(this._isDirected, arguments[0])
: l(this._isDirected, e, t, i);
return this._edgeLabels[n];
}),
(s.prototype.hasEdge = function (e, t, i) {
var r =
1 === arguments.length
? d(this._isDirected, arguments[0])
: l(this._isDirected, e, t, i);
return n.has(this._edgeLabels, r);
}),
(s.prototype.removeEdge = function (e, t, i) {
var n =
1 === arguments.length
? d(this._isDirected, arguments[0])
: l(this._isDirected, e, t, i),
r = this._edgeObjs[n];
return (
r &&
((e = r.v),
(t = r.w),
delete this._edgeLabels[n],
delete this._edgeObjs[n],
a(this._preds[t], e),
a(this._sucs[e], t),
delete this._in[t][n],
delete this._out[e][n],
this._edgeCount--),
this
);
}),
(s.prototype.inEdges = function (e, t) {
var i = this._in[e];
if (i) {
var r = n.values(i);
return t
? n.filter(r, function (e) {
return e.v === t;
})
: r;
}
}),
(s.prototype.outEdges = function (e, t) {
var i = this._out[e];
if (i) {
var r = n.values(i);
return t
? n.filter(r, function (e) {
return e.w === t;
})
: r;
}
}),
(s.prototype.nodeEdges = function (e, t) {
var i = this.inEdges(e, t);
if (i) return i.concat(this.outEdges(e, t));
});
},
82354: (e, t, i) => {
e.exports = { Graph: i(30771), version: i(49631) };
},
28974: (e, t, i) => {
var n = i(89126),
r = i(30771);
function s(e) {
return n.map(e.nodes(), function (t) {
var i = e.node(t),
r = e.parent(t),
s = { v: t };
return (
n.isUndefined(i) || (s.value = i),
n.isUndefined(r) || (s.parent = r),
s
);
});
}
function o(e) {
return n.map(e.edges(), function (t) {
var i = e.edge(t),
r = { v: t.v, w: t.w };
return (
n.isUndefined(t.name) || (r.name = t.name),
n.isUndefined(i) || (r.value = i),
r
);
});
}
e.exports = {
write: function (e) {
var t = {
options: {
directed: e.isDirected(),
multigraph: e.isMultigraph(),
compound: e.isCompound(),
},
nodes: s(e),
edges: o(e),
};
return (
n.isUndefined(e.graph()) || (t.value = n.clone(e.graph())), t
);
},
read: function (e) {
var t = new r(e.options).setGraph(e.value);
return (
n.each(e.nodes, function (e) {
t.setNode(e.v, e.value), e.parent && t.setParent(e.v, e.parent);
}),
n.each(e.edges, function (e) {
t.setEdge({ v: e.v, w: e.w, name: e.name }, e.value);
}),
t
);
},
};
},
89126: (e, t, i) => {
var n;
try {
n = {
clone: i(66678),
constant: i(75703),
each: i(66073),
filter: i(63105),
has: i(18721),
isArray: i(1469),
isEmpty: i(41609),
isFunction: i(23560),
isUndefined: i(52353),
keys: i(3674),
map: i(35161),
reduce: i(54061),
size: i(84238),
transform: i(68718),
union: i(93386),
values: i(52628),
};
} catch (e) {}
n || (n = window._), (e.exports = n);
},
49631: (e) => {
e.exports = '2.1.7';
},
61773: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(81083),
r = i(2536),
s = i(7628),
o = (function () {
function e(e, t) {
(this.color = t),
(this.changed = !1),
(this.data = e),
(this.type = new s.default());
}
return (
(e.prototype.set = function (e, t) {
return (
(this.color = t),
(this.changed = !1),
(this.data = e),
(this.type.type = r.TYPE.ALL),
this
);
}),
(e.prototype._ensureHSL = function () {
void 0 === this.data.h &&
(this.data.h = n.default.channel.rgb2hsl(this.data, 'h')),
void 0 === this.data.s &&
(this.data.s = n.default.channel.rgb2hsl(this.data, 's')),
void 0 === this.data.l &&
(this.data.l = n.default.channel.rgb2hsl(this.data, 'l'));
}),
(e.prototype._ensureRGB = function () {
void 0 === this.data.r &&
(this.data.r = n.default.channel.hsl2rgb(this.data, 'r')),
void 0 === this.data.g &&
(this.data.g = n.default.channel.hsl2rgb(this.data, 'g')),
void 0 === this.data.b &&
(this.data.b = n.default.channel.hsl2rgb(this.data, 'b'));
}),
Object.defineProperty(e.prototype, 'r', {
get: function () {
return this.type.is(r.TYPE.HSL) || void 0 === this.data.r
? (this._ensureHSL(),
n.default.channel.hsl2rgb(this.data, 'r'))
: this.data.r;
},
set: function (e) {
this.type.set(r.TYPE.RGB),
(this.changed = !0),
(this.data.r = e);
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(e.prototype, 'g', {
get: function () {
return this.type.is(r.TYPE.HSL) || void 0 === this.data.g
? (this._ensureHSL(),
n.default.channel.hsl2rgb(this.data, 'g'))
: this.data.g;
},
set: function (e) {
this.type.set(r.TYPE.RGB),
(this.changed = !0),
(this.data.g = e);
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(e.prototype, 'b', {
get: function () {
return this.type.is(r.TYPE.HSL) || void 0 === this.data.b
? (this._ensureHSL(),
n.default.channel.hsl2rgb(this.data, 'b'))
: this.data.b;
},
set: function (e) {
this.type.set(r.TYPE.RGB),
(this.changed = !0),
(this.data.b = e);
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(e.prototype, 'h', {
get: function () {
return this.type.is(r.TYPE.RGB) || void 0 === this.data.h
? (this._ensureRGB(),
n.default.channel.rgb2hsl(this.data, 'h'))
: this.data.h;
},
set: function (e) {
this.type.set(r.TYPE.HSL),
(this.changed = !0),
(this.data.h = e);
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(e.prototype, 's', {
get: function () {
return this.type.is(r.TYPE.RGB) || void 0 === this.data.s
? (this._ensureRGB(),
n.default.channel.rgb2hsl(this.data, 's'))
: this.data.s;
},
set: function (e) {
this.type.set(r.TYPE.HSL),
(this.changed = !0),
(this.data.s = e);
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(e.prototype, 'l', {
get: function () {
return this.type.is(r.TYPE.RGB) || void 0 === this.data.l
? (this._ensureRGB(),
n.default.channel.rgb2hsl(this.data, 'l'))
: this.data.l;
},
set: function (e) {
this.type.set(r.TYPE.HSL),
(this.changed = !0),
(this.data.l = e);
},
enumerable: !0,
configurable: !0,
}),
Object.defineProperty(e.prototype, 'a', {
get: function () {
return this.data.a;
},
set: function (e) {
(this.changed = !0), (this.data.a = e);
},
enumerable: !0,
configurable: !0,
}),
e
);
})();
t.default = o;
},
28167: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = new (i(61773).default)(
{ r: 0, g: 0, b: 0, a: 0 },
'transparent'
);
t.default = n;
},
7628: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(2536),
r = (function () {
function e() {
this.type = n.TYPE.ALL;
}
return (
(e.prototype.get = function () {
return this.type;
}),
(e.prototype.set = function (e) {
if (this.type && this.type !== e)
throw new Error(
'Cannot change both RGB and HSL channels at the same time'
);
this.type = e;
}),
(e.prototype.reset = function () {
this.type = n.TYPE.ALL;
}),
(e.prototype.is = function (e) {
return this.type === e;
}),
e
);
})();
t.default = r;
},
51655: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(81083),
r = i(28167),
s = i(66061),
o = {
re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
parse: function (e) {
if (35 === e.charCodeAt(0)) {
var t = e.match(o.re);
if (t) {
var i = t[1],
n = parseInt(i, 16),
s = i.length,
a = s % 4 == 0,
l = s > 4,
c = l ? 1 : 17,
d = l ? 8 : 4,
h = a ? 0 : -1,
u = l ? 255 : 15;
return r.default.set(
{
r: ((n >> (d * (h + 3))) & u) * c,
g: ((n >> (d * (h + 2))) & u) * c,
b: ((n >> (d * (h + 1))) & u) * c,
a: a ? ((n & u) * c) / 255 : 1,
},
e
);
}
}
},
stringify: function (e) {
return e.a < 1
? '#' +
s.DEC2HEX[Math.round(e.r)] +
s.DEC2HEX[Math.round(e.g)] +
s.DEC2HEX[Math.round(e.b)] +
n.default.unit.frac2hex(e.a)
: '#' +
s.DEC2HEX[Math.round(e.r)] +
s.DEC2HEX[Math.round(e.g)] +
s.DEC2HEX[Math.round(e.b)];
},
};
t.default = o;
},
58589: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(81083),
r = i(28167),
s = {
re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,
hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
_hue2deg: function (e) {
var t = e.match(s.hueRe);
if (t) {
var i = t[1];
switch (t[2]) {
case 'grad':
return n.default.channel.clamp.h(0.9 * parseFloat(i));
case 'rad':
return n.default.channel.clamp.h(
(180 * parseFloat(i)) / Math.PI
);
case 'turn':
return n.default.channel.clamp.h(360 * parseFloat(i));
}
}
return n.default.channel.clamp.h(parseFloat(e));
},
parse: function (e) {
var t = e.charCodeAt(0);
if (104 === t || 72 === t) {
var i = e.match(s.re);
if (i) {
var o = i[1],
a = i[2],
l = i[3],
c = i[4],
d = i[5];
return r.default.set(
{
h: s._hue2deg(o),
s: n.default.channel.clamp.s(parseFloat(a)),
l: n.default.channel.clamp.l(parseFloat(l)),
a: c
? n.default.channel.clamp.a(
d ? parseFloat(c) / 100 : parseFloat(c)
)
: 1,
},
e
);
}
}
},
stringify: function (e) {
return e.a < 1
? 'hsla(' +
n.default.lang.round(e.h) +
', ' +
n.default.lang.round(e.s) +
'%, ' +
n.default.lang.round(e.l) +
'%, ' +
e.a +
')'
: 'hsl(' +
n.default.lang.round(e.h) +
', ' +
n.default.lang.round(e.s) +
'%, ' +
n.default.lang.round(e.l) +
'%)';
},
};
t.default = s;
},
32191: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(2536),
r = i(51655),
s = i(7538),
o = i(76762),
a = i(58589),
l = {
format: {
keyword: s.default,
hex: r.default,
rgb: o.default,
rgba: o.default,
hsl: a.default,
hsla: a.default,
},
parse: function (e) {
if ('string' != typeof e) return e;
var t =
r.default.parse(e) ||
o.default.parse(e) ||
a.default.parse(e) ||
s.default.parse(e);
if (t) return t;
throw new Error('Unsupported color format: "' + e + '"');
},
stringify: function (e) {
return !e.changed && e.color
? e.color
: e.type.is(n.TYPE.HSL) || void 0 === e.data.r
? a.default.stringify(e)
: e.a < 1 ||
!Number.isInteger(e.r) ||
!Number.isInteger(e.g) ||
!Number.isInteger(e.b)
? o.default.stringify(e)
: r.default.stringify(e);
},
};
t.default = l;
},
7538: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(51655),
r = {
colors: {
aliceblue: '#f0f8ff',
antiquewhite: '#faebd7',
aqua: '#00ffff',
aquamarine: '#7fffd4',
azure: '#f0ffff',
beige: '#f5f5dc',
bisque: '#ffe4c4',
black: '#000000',
blanchedalmond: '#ffebcd',
blue: '#0000ff',
blueviolet: '#8a2be2',
brown: '#a52a2a',
burlywood: '#deb887',
cadetblue: '#5f9ea0',
chartreuse: '#7fff00',
chocolate: '#d2691e',
coral: '#ff7f50',
cornflowerblue: '#6495ed',
cornsilk: '#fff8dc',
crimson: '#dc143c',
cyanaqua: '#00ffff',
darkblue: '#00008b',
darkcyan: '#008b8b',
darkgoldenrod: '#b8860b',
darkgray: '#a9a9a9',
darkgreen: '#006400',
darkgrey: '#a9a9a9',
darkkhaki: '#bdb76b',
darkmagenta: '#8b008b',
darkolivegreen: '#556b2f',
darkorange: '#ff8c00',
darkorchid: '#9932cc',
darkred: '#8b0000',
darksalmon: '#e9967a',
darkseagreen: '#8fbc8f',
darkslateblue: '#483d8b',
darkslategray: '#2f4f4f',
darkslategrey: '#2f4f4f',
darkturquoise: '#00ced1',
darkviolet: '#9400d3',
deeppink: '#ff1493',
deepskyblue: '#00bfff',
dimgray: '#696969',
dimgrey: '#696969',
dodgerblue: '#1e90ff',
firebrick: '#b22222',
floralwhite: '#fffaf0',
forestgreen: '#228b22',
fuchsia: '#ff00ff',
gainsboro: '#dcdcdc',
ghostwhite: '#f8f8ff',
gold: '#ffd700',
goldenrod: '#daa520',
gray: '#808080',
green: '#008000',
greenyellow: '#adff2f',
grey: '#808080',
honeydew: '#f0fff0',
hotpink: '#ff69b4',
indianred: '#cd5c5c',
indigo: '#4b0082',
ivory: '#fffff0',
khaki: '#f0e68c',
lavender: '#e6e6fa',
lavenderblush: '#fff0f5',
lawngreen: '#7cfc00',
lemonchiffon: '#fffacd',
lightblue: '#add8e6',
lightcoral: '#f08080',
lightcyan: '#e0ffff',
lightgoldenrodyellow: '#fafad2',
lightgray: '#d3d3d3',
lightgreen: '#90ee90',
lightgrey: '#d3d3d3',
lightpink: '#ffb6c1',
lightsalmon: '#ffa07a',
lightseagreen: '#20b2aa',
lightskyblue: '#87cefa',
lightslategray: '#778899',
lightslategrey: '#778899',
lightsteelblue: '#b0c4de',
lightyellow: '#ffffe0',
lime: '#00ff00',
limegreen: '#32cd32',
linen: '#faf0e6',
magenta: '#ff00ff',
maroon: '#800000',
mediumaquamarine: '#66cdaa',
mediumblue: '#0000cd',
mediumorchid: '#ba55d3',
mediumpurple: '#9370db',
mediumseagreen: '#3cb371',
mediumslateblue: '#7b68ee',
mediumspringgreen: '#00fa9a',
mediumturquoise: '#48d1cc',
mediumvioletred: '#c71585',
midnightblue: '#191970',
mintcream: '#f5fffa',
mistyrose: '#ffe4e1',
moccasin: '#ffe4b5',
navajowhite: '#ffdead',
navy: '#000080',
oldlace: '#fdf5e6',
olive: '#808000',
olivedrab: '#6b8e23',
orange: '#ffa500',
orangered: '#ff4500',
orchid: '#da70d6',
palegoldenrod: '#eee8aa',
palegreen: '#98fb98',
paleturquoise: '#afeeee',
palevioletred: '#db7093',
papayawhip: '#ffefd5',
peachpuff: '#ffdab9',
peru: '#cd853f',
pink: '#ffc0cb',
plum: '#dda0dd',
powderblue: '#b0e0e6',
purple: '#800080',
rebeccapurple: '#663399',
red: '#ff0000',
rosybrown: '#bc8f8f',
royalblue: '#4169e1',
saddlebrown: '#8b4513',
salmon: '#fa8072',
sandybrown: '#f4a460',
seagreen: '#2e8b57',
seashell: '#fff5ee',
sienna: '#a0522d',
silver: '#c0c0c0',
skyblue: '#87ceeb',
slateblue: '#6a5acd',
slategray: '#708090',
slategrey: '#708090',
snow: '#fffafa',
springgreen: '#00ff7f',
tan: '#d2b48c',
teal: '#008080',
thistle: '#d8bfd8',
transparent: '#00000000',
turquoise: '#40e0d0',
violet: '#ee82ee',
wheat: '#f5deb3',
white: '#ffffff',
whitesmoke: '#f5f5f5',
yellow: '#ffff00',
yellowgreen: '#9acd32',
},
parse: function (e) {
e = e.toLowerCase();
var t = r.colors[e];
if (t) return n.default.parse(t);
},
stringify: function (e) {
var t = n.default.stringify(e);
for (var i in r.colors) if (r.colors[i] === t) return i;
},
};
t.default = r;
},
76762: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(81083),
r = i(28167),
s = {
re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
parse: function (e) {
var t = e.charCodeAt(0);
if (114 === t || 82 === t) {
var i = e.match(s.re);
if (i) {
var o = i[1],
a = i[2],
l = i[3],
c = i[4],
d = i[5],
h = i[6],
u = i[7],
g = i[8];
return r.default.set(
{
r: n.default.channel.clamp.r(
a ? 2.55 * parseFloat(o) : parseFloat(o)
),
g: n.default.channel.clamp.g(
c ? 2.55 * parseFloat(l) : parseFloat(l)
),
b: n.default.channel.clamp.b(
h ? 2.55 * parseFloat(d) : parseFloat(d)
),
a: u
? n.default.channel.clamp.a(
g ? parseFloat(u) / 100 : parseFloat(u)
)
: 1,
},
e
);
}
}
},
stringify: function (e) {
return e.a < 1
? 'rgba(' +
n.default.lang.round(e.r) +
', ' +
n.default.lang.round(e.g) +
', ' +
n.default.lang.round(e.b) +
', ' +
n.default.lang.round(e.a) +
')'
: 'rgb(' +
n.default.lang.round(e.r) +
', ' +
n.default.lang.round(e.g) +
', ' +
n.default.lang.round(e.b) +
')';
},
};
t.default = s;
},
66061: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(81083),
r = {};
t.DEC2HEX = r;
for (var s = 0; s <= 255; s++) r[s] = n.default.unit.dec2hex(s);
},
8613: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 }),
(function (e) {
for (var i in e) t.hasOwnProperty(i) || (t[i] = e[i]);
})(i(21203));
},
45371: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(32191),
r = i(50418);
t.default = function (e, t) {
var i = n.default.parse(e),
s = {};
for (var o in t) t[o] && (s[o] = i[o] + t[o]);
return r.default(e, s);
};
},
11416: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(81083),
r = i(32191);
t.default = function (e, t, i) {
var s = r.default.parse(e),
o = s[t],
a = n.default.channel.clamp[t](o + i);
return o !== a && (s[t] = a), r.default.stringify(s);
};
},
89353: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(6197);
t.default = function (e) {
return n.default(e, 'a');
};
},
63394: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(6197);
t.default = function (e) {
return n.default(e, 'b');
};
},
50418: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(81083),
r = i(32191);
t.default = function (e, t) {
var i = r.default.parse(e);
for (var s in t) i[s] = n.default.channel.clamp[s](t[s]);
return r.default.stringify(i);
};
},
6197: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(81083),
r = i(32191);
t.default = function (e, t) {
return n.default.lang.round(r.default.parse(e)[t]);
};
},
77361: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(11416);
t.default = function (e) {
return n.default(e, 'h', 180);
};
},
61364: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(11416);
t.default = function (e, t) {
return n.default(e, 'l', -t);
};
},
49610: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(11416);
t.default = function (e, t) {
return n.default(e, 's', -t);
};
},
40572: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(50418);
t.default = function (e) {
return n.default(e, { s: 0 });
};
},
12299: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(6197);
t.default = function (e) {
return n.default(e, 'g');
};
},
43116: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(81083),
r = i(28167),
s = i(32191);
t.default = function (e, t, i, o) {
void 0 === o && (o = 1);
var a = r.default.set({
h: n.default.channel.clamp.h(e),
s: n.default.channel.clamp.s(t),
l: n.default.channel.clamp.l(i),
a: n.default.channel.clamp.a(o),
});
return s.default.stringify(a);
};
},
23008: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(6197);
t.default = function (e) {
return n.default(e, 'h');
};
},
21203: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(76538);
t.hex = n.default;
var r = i(76538);
t.rgb = r.default;
var s = i(76538);
t.rgba = s.default;
var o = i(43116);
t.hsl = o.default;
var a = i(43116);
t.hsla = a.default;
var l = i(6197);
t.channel = l.default;
var c = i(79640);
t.red = c.default;
var d = i(12299);
t.green = d.default;
var h = i(63394);
t.blue = h.default;
var u = i(23008);
t.hue = u.default;
var g = i(46451);
t.saturation = g.default;
var f = i(29235);
t.lightness = f.default;
var p = i(89353);
t.alpha = p.default;
var m = i(89353);
t.opacity = m.default;
var _ = i(68346);
t.luminance = _.default;
var b = i(4117);
t.isDark = b.default;
var v = i(82224);
t.isLight = v.default;
var y = i(20585);
t.isValid = y.default;
var w = i(61080);
t.saturate = w.default;
var C = i(49610);
t.desaturate = C.default;
var S = i(23235);
t.lighten = S.default;
var k = i(61364);
t.darken = k.default;
var x = i(27189);
t.opacify = x.default;
var L = i(27189);
t.fadeIn = L.default;
var M = i(24989);
t.transparentize = M.default;
var D = i(24989);
t.fadeOut = D.default;
var N = i(77361);
t.complement = N.default;
var E = i(40572);
t.grayscale = E.default;
var T = i(45371);
t.adjust = T.default;
var I = i(50418);
t.change = I.default;
var O = i(566);
t.invert = O.default;
var A = i(51861);
t.mix = A.default;
var R = i(7081);
t.scale = R.default;
},
566: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(32191),
r = i(51861);
t.default = function (e, t) {
void 0 === t && (t = 100);
var i = n.default.parse(e);
return (
(i.r = 255 - i.r),
(i.g = 255 - i.g),
(i.b = 255 - i.b),
r.default(i, e, t)
);
};
},
4117: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(82224);
t.default = function (e) {
return !n.default(e);
};
},
82224: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(68346);
t.default = function (e) {
return n.default(e) >= 0.5;
};
},
20585: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(32191);
t.default = function (e) {
try {
return n.default.parse(e), !0;
} catch (e) {
return !1;
}
};
},
23235: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(11416);
t.default = function (e, t) {
return n.default(e, 'l', t);
};
},
29235: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(6197);
t.default = function (e) {
return n.default(e, 'l');
};
},
68346: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(81083),
r = i(32191);
t.default = function (e) {
var t = r.default.parse(e),
i = t.r,
s = t.g,
o = t.b,
a =
0.2126 * n.default.channel.toLinear(i) +
0.7152 * n.default.channel.toLinear(s) +
0.0722 * n.default.channel.toLinear(o);
return n.default.lang.round(a);
};
},
51861: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(32191),
r = i(76538);
t.default = function (e, t, i) {
void 0 === i && (i = 50);
var s = n.default.parse(e),
o = s.r,
a = s.g,
l = s.b,
c = s.a,
d = n.default.parse(t),
h = d.r,
u = d.g,
g = d.b,
f = d.a,
p = i / 100,
m = 2 * p - 1,
_ = c - f,
b = ((m * _ == -1 ? m : (m + _) / (1 + m * _)) + 1) / 2,
v = 1 - b,
y = o * b + h * v,
w = a * b + u * v,
C = l * b + g * v,
S = c * p + f * (1 - p);
return r.default(y, w, C, S);
};
},
27189: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(11416);
t.default = function (e, t) {
return n.default(e, 'a', t);
};
},
79640: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(6197);
t.default = function (e) {
return n.default(e, 'r');
};
},
76538: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(81083),
r = i(28167),
s = i(32191),
o = i(50418);
t.default = function (e, t, i, a) {
if (
(void 0 === i && (i = 0),
void 0 === a && (a = 1),
'number' != typeof e)
)
return o.default(e, { a: t });
var l = r.default.set({
r: n.default.channel.clamp.r(e),
g: n.default.channel.clamp.g(t),
b: n.default.channel.clamp.b(i),
a: n.default.channel.clamp.a(a),
});
return s.default.stringify(l);
};
},
61080: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(11416);
t.default = function (e, t) {
return n.default(e, 's', t);
};
},
46451: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(6197);
t.default = function (e) {
return n.default(e, 's');
};
},
7081: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(81083),
r = i(32191),
s = i(45371);
t.default = function (e, t) {
var i,
o,
a,
l = r.default.parse(e),
c = {};
for (var d in t)
c[d] =
((i = l[d]),
(o = t[d]),
(a = n.default.channel.max[d]),
o > 0 ? ((a - i) * o) / 100 : (i * o) / 100);
return s.default(e, c);
};
},
24989: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(11416);
t.default = function (e, t) {
return n.default(e, 'a', -t);
};
},
2536: (e, t) => {
'use strict';
var i;
Object.defineProperty(t, '__esModule', { value: !0 }),
(function (e) {
(e[(e.ALL = 0)] = 'ALL'),
(e[(e.RGB = 1)] = 'RGB'),
(e[(e.HSL = 2)] = 'HSL');
})(i || (i = {})),
(t.TYPE = i);
},
47994: (e, t) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var i = {
min: { r: 0, g: 0, b: 0, s: 0, l: 0, a: 0 },
max: { r: 255, g: 255, b: 255, h: 360, s: 100, l: 100, a: 1 },
clamp: {
r: function (e) {
return e >= 255 ? 255 : e < 0 ? 0 : e;
},
g: function (e) {
return e >= 255 ? 255 : e < 0 ? 0 : e;
},
b: function (e) {
return e >= 255 ? 255 : e < 0 ? 0 : e;
},
h: function (e) {
return e % 360;
},
s: function (e) {
return e >= 100 ? 100 : e < 0 ? 0 : e;
},
l: function (e) {
return e >= 100 ? 100 : e < 0 ? 0 : e;
},
a: function (e) {
return e >= 1 ? 1 : e < 0 ? 0 : e;
},
},
toLinear: function (e) {
var t = e / 255;
return e > 0.03928 ? Math.pow((t + 0.055) / 1.055, 2.4) : t / 12.92;
},
hue2rgb: function (e, t, i) {
return (
i < 0 && (i += 1),
i > 1 && (i -= 1),
i < 1 / 6
? e + 6 * (t - e) * i
: i < 0.5
? t
: i < 2 / 3
? e + (t - e) * (2 / 3 - i) * 6
: e
);
},
hsl2rgb: function (e, t) {
var n = e.h,
r = e.s,
s = e.l;
if (100 === r) return 2.55 * s;
(n /= 360), (r /= 100);
var o = (s /= 100) < 0.5 ? s * (1 + r) : s + r - s * r,
a = 2 * s - o;
switch (t) {
case 'r':
return 255 * i.hue2rgb(a, o, n + 1 / 3);
case 'g':
return 255 * i.hue2rgb(a, o, n);
case 'b':
return 255 * i.hue2rgb(a, o, n - 1 / 3);
}
},
rgb2hsl: function (e, t) {
var i = e.r,
n = e.g,
r = e.b;
(i /= 255), (n /= 255), (r /= 255);
var s = Math.max(i, n, r),
o = Math.min(i, n, r),
a = (s + o) / 2;
if ('l' === t) return 100 * a;
if (s === o) return 0;
var l = s - o;
if ('s' === t)
return 100 * (a > 0.5 ? l / (2 - s - o) : l / (s + o));
switch (s) {
case i:
return 60 * ((n - r) / l + (n < r ? 6 : 0));
case n:
return 60 * ((r - i) / l + 2);
case r:
return 60 * ((i - n) / l + 4);
default:
return -1;
}
},
};
t.default = i;
},
81083: (e, t, i) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var n = i(47994),
r = i(64027),
s = i(10318),
o = { channel: n.default, lang: r.default, unit: s.default };
t.default = o;
},
64027: (e, t) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var i = {
round: function (e) {
return Math.round(1e10 * e) / 1e10;
},
};
t.default = i;
},
10318: (e, t) => {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var i = {
frac2hex: function (e) {
var t = Math.round(255 * e).toString(16);
return t.length > 1 ? t : '0' + t;
},
dec2hex: function (e) {
var t = Math.round(e).toString(16);
return t.length > 1 ? t : '0' + t;
},
};
t.default = i;
},
18552: (e, t, i) => {
var n = i(10852)(i(55639), 'DataView');
e.exports = n;
},
1989: (e, t, i) => {
var n = i(51789),
r = i(80401),
s = i(57667),
o = i(21327),
a = i(81866);
function l(e) {
var t = -1,
i = null == e ? 0 : e.length;
for (this.clear(); ++t < i; ) {
var n = e[t];
this.set(n[0], n[1]);
}
}
(l.prototype.clear = n),
(l.prototype.delete = r),
(l.prototype.get = s),
(l.prototype.has = o),
(l.prototype.set = a),
(e.exports = l);
},
38407: (e, t, i) => {
var n = i(27040),
r = i(14125),
s = i(82117),
o = i(67518),
a = i(54705);
function l(e) {
var t = -1,
i = null == e ? 0 : e.length;
for (this.clear(); ++t < i; ) {
var n = e[t];
this.set(n[0], n[1]);
}
}
(l.prototype.clear = n),
(l.prototype.delete = r),
(l.prototype.get = s),
(l.prototype.has = o),
(l.prototype.set = a),
(e.exports = l);
},
57071: (e, t, i) => {
var n = i(10852)(i(55639), 'Map');
e.exports = n;
},
83369: (e, t, i) => {
var n = i(24785),
r = i(11285),
s = i(96e3),
o = i(49916),
a = i(95265);
function l(e) {
var t = -1,
i = null == e ? 0 : e.length;
for (this.clear(); ++t < i; ) {
var n = e[t];
this.set(n[0], n[1]);
}
}
(l.prototype.clear = n),
(l.prototype.delete = r),
(l.prototype.get = s),
(l.prototype.has = o),
(l.prototype.set = a),
(e.exports = l);
},
53818: (e, t, i) => {
var n = i(10852)(i(55639), 'Promise');
e.exports = n;
},
58525: (e, t, i) => {
var n = i(10852)(i(55639), 'Set');
e.exports = n;
},
88668: (e, t, i) => {
var n = i(83369),
r = i(90619),
s = i(72385);
function o(e) {
var t = -1,
i = null == e ? 0 : e.length;
for (this.__data__ = new n(); ++t < i; ) this.add(e[t]);
}
(o.prototype.add = o.prototype.push = r),
(o.prototype.has = s),
(e.exports = o);
},
46384: (e, t, i) => {
var n = i(38407),
r = i(37465),
s = i(63779),
o = i(67599),
a = i(44758),
l = i(34309);
function c(e) {
var t = (this.__data__ = new n(e));
this.size = t.size;
}
(c.prototype.clear = r),
(c.prototype.delete = s),
(c.prototype.get = o),
(c.prototype.has = a),
(c.prototype.set = l),
(e.exports = c);
},
62705: (e, t, i) => {
var n = i(55639).Symbol;
e.exports = n;
},
11149: (e, t, i) => {
var n = i(55639).Uint8Array;
e.exports = n;
},
70577: (e, t, i) => {
var n = i(10852)(i(55639), 'WeakMap');
e.exports = n;
},
96874: (e) => {
e.exports = function (e, t, i) {
switch (i.length) {
case 0:
return e.call(t);
case 1:
return e.call(t, i[0]);
case 2:
return e.call(t, i[0], i[1]);
case 3:
return e.call(t, i[0], i[1], i[2]);
}
return e.apply(t, i);
};
},
77412: (e) => {
e.exports = function (e, t) {
for (
var i = -1, n = null == e ? 0 : e.length;
++i < n && !1 !== t(e[i], i, e);
);
return e;
};
},
34963: (e) => {
e.exports = function (e, t) {
for (
var i = -1, n = null == e ? 0 : e.length, r = 0, s = [];
++i < n;
) {
var o = e[i];
t(o, i, e) && (s[r++] = o);
}
return s;
};
},
47443: (e, t, i) => {
var n = i(42118);
e.exports = function (e, t) {
return !(null == e || !e.length) && n(e, t, 0) > -1;
};
},
1196: (e) => {
e.exports = function (e, t, i) {
for (var n = -1, r = null == e ? 0 : e.length; ++n < r; )
if (i(t, e[n])) return !0;
return !1;
};
},
14636: (e, t, i) => {
var n = i(22545),
r = i(35694),
s = i(1469),
o = i(44144),
a = i(65776),
l = i(36719),
c = Object.prototype.hasOwnProperty;
e.exports = function (e, t) {
var i = s(e),
d = !i && r(e),
h = !i && !d && o(e),
u = !i && !d && !h && l(e),
g = i || d || h || u,
f = g ? n(e.length, String) : [],
p = f.length;
for (var m in e)
(!t && !c.call(e, m)) ||
(g &&
('length' == m ||
(h && ('offset' == m || 'parent' == m)) ||
(u &&
('buffer' == m ||
'byteLength' == m ||
'byteOffset' == m)) ||
a(m, p))) ||
f.push(m);
return f;
};
},
29932: (e) => {
e.exports = function (e, t) {
for (
var i = -1, n = null == e ? 0 : e.length, r = Array(n);
++i < n;
)
r[i] = t(e[i], i, e);
return r;
};
},
62488: (e) => {
e.exports = function (e, t) {
for (var i = -1, n = t.length, r = e.length; ++i < n; )
e[r + i] = t[i];
return e;
};
},
62663: (e) => {
e.exports = function (e, t, i, n) {
var r = -1,
s = null == e ? 0 : e.length;
for (n && s && (i = e[++r]); ++r < s; ) i = t(i, e[r], r, e);
return i;
};
},
82908: (e) => {
e.exports = function (e, t) {
for (var i = -1, n = null == e ? 0 : e.length; ++i < n; )
if (t(e[i], i, e)) return !0;
return !1;
};
},
48983: (e, t, i) => {
var n = i(40371)('length');
e.exports = n;
},
86556: (e, t, i) => {
var n = i(89465),
r = i(77813);
e.exports = function (e, t, i) {
((void 0 !== i && !r(e[t], i)) || (void 0 === i && !(t in e))) &&
n(e, t, i);
};
},
34865: (e, t, i) => {
var n = i(89465),
r = i(77813),
s = Object.prototype.hasOwnProperty;
e.exports = function (e, t, i) {
var o = e[t];
(s.call(e, t) && r(o, i) && (void 0 !== i || t in e)) || n(e, t, i);
};
},
18470: (e, t, i) => {
var n = i(77813);
e.exports = function (e, t) {
for (var i = e.length; i--; ) if (n(e[i][0], t)) return i;
return -1;
};
},
44037: (e, t, i) => {
var n = i(98363),
r = i(3674);
e.exports = function (e, t) {
return e && n(t, r(t), e);
};
},
63886: (e, t, i) => {
var n = i(98363),
r = i(81704);
e.exports = function (e, t) {
return e && n(t, r(t), e);
};
},
89465: (e, t, i) => {
var n = i(38777);
e.exports = function (e, t, i) {
'__proto__' == t && n
? n(e, t, {
configurable: !0,
enumerable: !0,
value: i,
writable: !0,
})
: (e[t] = i);
};
},
85990: (e, t, i) => {
var n = i(46384),
r = i(77412),
s = i(34865),
o = i(44037),
a = i(63886),
l = i(64626),
c = i(278),
d = i(18805),
h = i(1911),
u = i(58234),
g = i(46904),
f = i(64160),
p = i(43824),
m = i(29148),
_ = i(38517),
b = i(1469),
v = i(44144),
y = i(56688),
w = i(13218),
C = i(72928),
S = i(3674),
k = '[object Arguments]',
x = '[object Function]',
L = '[object Object]',
M = {};
(M[k] = M['[object Array]'] = M['[object ArrayBuffer]'] = M[
'[object DataView]'
] = M['[object Boolean]'] = M['[object Date]'] = M[
'[object Float32Array]'
] = M['[object Float64Array]'] = M['[object Int8Array]'] = M[
'[object Int16Array]'
] = M['[object Int32Array]'] = M['[object Map]'] = M[
'[object Number]'
] = M[L] = M['[object RegExp]'] = M['[object Set]'] = M[
'[object String]'
] = M['[object Symbol]'] = M['[object Uint8Array]'] = M[
'[object Uint8ClampedArray]'
] = M['[object Uint16Array]'] = M['[object Uint32Array]'] = !0),
(M['[object Error]'] = M[x] = M['[object WeakMap]'] = !1),
(e.exports = function e(t, i, D, N, E, T) {
var I,
O = 1 & i,
A = 2 & i,
R = 4 & i;
if ((D && (I = E ? D(t, N, E, T) : D(t)), void 0 !== I)) return I;
if (!w(t)) return t;
var P = b(t);
if (P) {
if (((I = p(t)), !O)) return c(t, I);
} else {
var F = f(t),
B = F == x || '[object GeneratorFunction]' == F;
if (v(t)) return l(t, O);
if (F == L || F == k || (B && !E)) {
if (((I = A || B ? {} : _(t)), !O))
return A ? h(t, a(I, t)) : d(t, o(I, t));
} else {
if (!M[F]) return E ? t : {};
I = m(t, F, O);
}
}
T || (T = new n());
var W = T.get(t);
if (W) return W;
T.set(t, I),
C(t)
? t.forEach(function (n) {
I.add(e(n, i, D, n, t, T));
})
: y(t) &&
t.forEach(function (n, r) {
I.set(r, e(n, i, D, r, t, T));
});
var Y = R ? (A ? g : u) : A ? keysIn : S,
H = P ? void 0 : Y(t);
return (
r(H || t, function (n, r) {
H && (n = t[(r = n)]), s(I, r, e(n, i, D, r, t, T));
}),
I
);
});
},
3118: (e, t, i) => {
var n = i(13218),
r = Object.create,
s = (function () {
function e() {}
return function (t) {
if (!n(t)) return {};
if (r) return r(t);
e.prototype = t;
var i = new e();
return (e.prototype = void 0), i;
};
})();
e.exports = s;
},
89881: (e, t, i) => {
var n = i(47816),
r = i(99291)(n);
e.exports = r;
},
56029: (e, t, i) => {
var n = i(33448);
e.exports = function (e, t, i) {
for (var r = -1, s = e.length; ++r < s; ) {
var o = e[r],
a = t(o);
if (null != a && (void 0 === l ? a == a && !n(a) : i(a, l)))
var l = a,
c = o;
}
return c;
};
},
80760: (e, t, i) => {
var n = i(89881);
e.exports = function (e, t) {
var i = [];
return (
n(e, function (e, n, r) {
t(e, n, r) && i.push(e);
}),
i
);
};
},
41848: (e) => {
e.exports = function (e, t, i, n) {
for (var r = e.length, s = i + (n ? 1 : -1); n ? s-- : ++s < r; )
if (t(e[s], s, e)) return s;
return -1;
};
},
21078: (e, t, i) => {
var n = i(62488),
r = i(37285);
e.exports = function e(t, i, s, o, a) {
var l = -1,
c = t.length;
for (s || (s = r), a || (a = []); ++l < c; ) {
var d = t[l];
i > 0 && s(d)
? i > 1
? e(d, i - 1, s, o, a)
: n(a, d)
: o || (a[a.length] = d);
}
return a;
};
},
28483: (e, t, i) => {
var n = i(25063)();
e.exports = n;
},
47816: (e, t, i) => {
var n = i(28483),
r = i(3674);
e.exports = function (e, t) {
return e && n(e, t, r);
};
},
97786: (e, t, i) => {
var n = i(71811),
r = i(40327);
e.exports = function (e, t) {
for (var i = 0, s = (t = n(t, e)).length; null != e && i < s; )
e = e[r(t[i++])];
return i && i == s ? e : void 0;
};
},
68866: (e, t, i) => {
var n = i(62488),
r = i(1469);
e.exports = function (e, t, i) {
var s = t(e);
return r(e) ? s : n(s, i(e));
};
},
44239: (e, t, i) => {
var n = i(62705),
r = i(89607),
s = i(2333),
o = n ? n.toStringTag : void 0;
e.exports = function (e) {
return null == e
? void 0 === e
? '[object Undefined]'
: '[object Null]'
: o && o in Object(e)
? r(e)
: s(e);
};
},
53325: (e) => {
e.exports = function (e, t) {
return e > t;
};
},
78565: (e) => {
var t = Object.prototype.hasOwnProperty;
e.exports = function (e, i) {
return null != e && t.call(e, i);
};
},
13: (e) => {
e.exports = function (e, t) {
return null != e && t in Object(e);
};
},
42118: (e, t, i) => {
var n = i(41848),
r = i(62722),
s = i(42351);
e.exports = function (e, t, i) {
return t == t ? s(e, t, i) : n(e, r, i);
};
},
9454: (e, t, i) => {
var n = i(44239),
r = i(37005);
e.exports = function (e) {
return r(e) && '[object Arguments]' == n(e);
};
},
90939: (e, t, i) => {
var n = i(2492),
r = i(37005);
e.exports = function e(t, i, s, o, a) {
return (
t === i ||
(null == t || null == i || (!r(t) && !r(i))
? t != t && i != i
: n(t, i, s, o, e, a))
);
};
},
2492: (e, t, i) => {
var n = i(46384),
r = i(67114),
s = i(18351),
o = i(16096),
a = i(64160),
l = i(1469),
c = i(44144),
d = i(36719),
h = '[object Arguments]',
u = '[object Array]',
g = '[object Object]',
f = Object.prototype.hasOwnProperty;
e.exports = function (e, t, i, p, m, _) {
var b = l(e),
v = l(t),
y = b ? u : a(e),
w = v ? u : a(t),
C = (y = y == h ? g : y) == g,
S = (w = w == h ? g : w) == g,
k = y == w;
if (k && c(e)) {
if (!c(t)) return !1;
(b = !0), (C = !1);
}
if (k && !C)
return (
_ || (_ = new n()),
b || d(e) ? r(e, t, i, p, m, _) : s(e, t, y, i, p, m, _)
);
if (!(1 & i)) {
var x = C && f.call(e, '__wrapped__'),
L = S && f.call(t, '__wrapped__');
if (x || L) {
var M = x ? e.value() : e,
D = L ? t.value() : t;
return _ || (_ = new n()), m(M, D, i, p, _);
}
}
return !!k && (_ || (_ = new n()), o(e, t, i, p, m, _));
};
},
25588: (e, t, i) => {
var n = i(64160),
r = i(37005);
e.exports = function (e) {
return r(e) && '[object Map]' == n(e);
};
},
2958: (e, t, i) => {
var n = i(46384),
r = i(90939);
e.exports = function (e, t, i, s) {
var o = i.length,
a = o,
l = !s;
if (null == e) return !a;
for (e = Object(e); o--; ) {
var c = i[o];
if (l && c[2] ? c[1] !== e[c[0]] : !(c[0] in e)) return !1;
}
for (; ++o < a; ) {
var d = (c = i[o])[0],
h = e[d],
u = c[1];
if (l && c[2]) {
if (void 0 === h && !(d in e)) return !1;
} else {
var g = new n();
if (s) var f = s(h, u, d, e, t, g);
if (!(void 0 === f ? r(u, h, 3, s, g) : f)) return !1;
}
}
return !0;
};
},
62722: (e) => {
e.exports = function (e) {
return e != e;
};
},
28458: (e, t, i) => {
var n = i(23560),
r = i(15346),
s = i(13218),
o = i(80346),
a = /^\[object .+?Constructor\]$/,
l = Function.prototype,
c = Object.prototype,
d = l.toString,
h = c.hasOwnProperty,
u = RegExp(
'^' +
d
.call(h)
.replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
.replace(
/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
'$1.*?'
) +
'$'
);
e.exports = function (e) {
return !(!s(e) || r(e)) && (n(e) ? u : a).test(o(e));
};
},
29221: (e, t, i) => {
var n = i(64160),
r = i(37005);
e.exports = function (e) {
return r(e) && '[object Set]' == n(e);
};
},
38749: (e, t, i) => {
var n = i(44239),
r = i(41780),
s = i(37005),
o = {};
(o['[object Float32Array]'] = o['[object Float64Array]'] = o[
'[object Int8Array]'
] = o['[object Int16Array]'] = o['[object Int32Array]'] = o[
'[object Uint8Array]'
] = o['[object Uint8ClampedArray]'] = o['[object Uint16Array]'] = o[
'[object Uint32Array]'
] = !0),
(o['[object Arguments]'] = o['[object Array]'] = o[
'[object ArrayBuffer]'
] = o['[object Boolean]'] = o['[object DataView]'] = o[
'[object Date]'
] = o['[object Error]'] = o['[object Function]'] = o[
'[object Map]'
] = o['[object Number]'] = o['[object Object]'] = o[
'[object RegExp]'
] = o['[object Set]'] = o['[object String]'] = o[
'[object WeakMap]'
] = !1),
(e.exports = function (e) {
return s(e) && r(e.length) && !!o[n(e)];
});
},
67206: (e, t, i) => {
var n = i(91573),
r = i(16432),
s = i(6557),
o = i(1469),
a = i(39601);
e.exports = function (e) {
return 'function' == typeof e
? e
: null == e
? s
: 'object' == typeof e
? o(e)
? r(e[0], e[1])
: n(e)
: a(e);
};
},
280: (e, t, i) => {
var n = i(25726),
r = i(86916),
s = Object.prototype.hasOwnProperty;
e.exports = function (e) {
if (!n(e)) return r(e);
var t = [];
for (var i in Object(e))
s.call(e, i) && 'constructor' != i && t.push(i);
return t;
};
},
10313: (e, t, i) => {
var n = i(13218),
r = i(25726),
s = i(33498),
o = Object.prototype.hasOwnProperty;
e.exports = function (e) {
if (!n(e)) return s(e);
var t = r(e),
i = [];
for (var a in e)
('constructor' != a || (!t && o.call(e, a))) && i.push(a);
return i;
};
},
70433: (e) => {
e.exports = function (e, t) {
return e < t;
};
},
69199: (e, t, i) => {
var n = i(89881),
r = i(98612);
e.exports = function (e, t) {
var i = -1,
s = r(e) ? Array(e.length) : [];
return (
n(e, function (e, n, r) {
s[++i] = t(e, n, r);
}),
s
);
};
},
91573: (e, t, i) => {
var n = i(2958),
r = i(1499),
s = i(42634);
e.exports = function (e) {
var t = r(e);
return 1 == t.length && t[0][2]
? s(t[0][0], t[0][1])
: function (i) {
return i === e || n(i, e, t);
};
};
},
16432: (e, t, i) => {
var n = i(90939),
r = i(27361),
s = i(79095),
o = i(15403),
a = i(89162),
l = i(42634),
c = i(40327);
e.exports = function (e, t) {
return o(e) && a(t)
? l(c(e), t)
: function (i) {
var o = r(i, e);
return void 0 === o && o === t ? s(i, e) : n(t, o, 3);
};
};
},
42980: (e, t, i) => {
var n = i(46384),
r = i(86556),
s = i(28483),
o = i(59783),
a = i(13218),
l = i(81704),
c = i(36390);
e.exports = function e(t, i, d, h, u) {
t !== i &&
s(
i,
function (s, l) {
if ((u || (u = new n()), a(s))) o(t, i, l, d, e, h, u);
else {
var g = h ? h(c(t, l), s, l + '', t, i, u) : void 0;
void 0 === g && (g = s), r(t, l, g);
}
},
l
);
};
},
59783: (e, t, i) => {
var n = i(86556),
r = i(64626),
s = i(77133),
o = i(278),
a = i(38517),
l = i(35694),
c = i(1469),
d = i(29246),
h = i(44144),
u = i(23560),
g = i(13218),
f = i(68630),
p = i(36719),
m = i(36390),
_ = i(59881);
e.exports = function (e, t, i, b, v, y, w) {
var C = m(e, i),
S = m(t, i),
k = w.get(S);
if (k) n(e, i, k);
else {
var x = y ? y(C, S, i + '', e, t, w) : void 0,
L = void 0 === x;
if (L) {
var M = c(S),
D = !M && h(S),
N = !M && !D && p(S);
(x = S),
M || D || N
? c(C)
? (x = C)
: d(C)
? (x = o(C))
: D
? ((L = !1), (x = r(S, !0)))
: N
? ((L = !1), (x = s(S, !0)))
: (x = [])
: f(S) || l(S)
? ((x = C), l(C) ? (x = _(C)) : (g(C) && !u(C)) || (x = a(S)))
: (L = !1);
}
L && (w.set(S, x), v(x, S, b, y, w), w.delete(S)), n(e, i, x);
}
};
},
82689: (e, t, i) => {
var n = i(29932),
r = i(67206),
s = i(69199),
o = i(71131),
a = i(7518),
l = i(85022),
c = i(6557);
e.exports = function (e, t, i) {
var d = -1;
t = n(t.length ? t : [c], a(r));
var h = s(e, function (e, i, r) {
return {
criteria: n(t, function (t) {
return t(e);
}),
index: ++d,
value: e,
};
});
return o(h, function (e, t) {
return l(e, t, i);
});
};
},
25970: (e, t, i) => {
var n = i(63012),
r = i(79095);
e.exports = function (e, t) {
return n(e, t, function (t, i) {
return r(e, i);
});
};
},
63012: (e, t, i) => {
var n = i(97786),
r = i(10611),
s = i(71811);
e.exports = function (e, t, i) {
for (var o = -1, a = t.length, l = {}; ++o < a; ) {
var c = t[o],
d = n(e, c);
i(d, c) && r(l, s(c, e), d);
}
return l;
};
},
40371: (e) => {
e.exports = function (e) {
return function (t) {
return null == t ? void 0 : t[e];
};
};
},
79152: (e, t, i) => {
var n = i(97786);
e.exports = function (e) {
return function (t) {
return n(t, e);
};
};
},
40098: (e) => {
var t = Math.ceil,
i = Math.max;
e.exports = function (e, n, r, s) {
for (var o = -1, a = i(t((n - e) / (r || 1)), 0), l = Array(a); a--; )
(l[s ? a : ++o] = e), (e += r);
return l;
};
},
10107: (e) => {
e.exports = function (e, t, i, n, r) {
return (
r(e, function (e, r, s) {
i = n ? ((n = !1), e) : t(i, e, r, s);
}),
i
);
};
},
18460: (e, t, i) => {
var n = i(6557),
r = i(45357),
s = i(30061);
e.exports = function (e, t) {
return s(r(e, t, n), e + '');
};
},
10611: (e, t, i) => {
var n = i(34865),
r = i(71811),
s = i(65776),
o = i(13218),
a = i(40327);
e.exports = function (e, t, i, l) {
if (!o(e)) return e;
for (
var c = -1, d = (t = r(t, e)).length, h = d - 1, u = e;
null != u && ++c < d;
) {
var g = a(t[c]),
f = i;
if (c != h) {
var p = u[g];
void 0 === (f = l ? l(p, g, u) : void 0) &&
(f = o(p) ? p : s(t[c + 1]) ? [] : {});
}
n(u, g, f), (u = u[g]);
}
return e;
};
},
56560: (e, t, i) => {
var n = i(75703),
r = i(38777),
s = i(6557),
o = r
? function (e, t) {
return r(e, 'toString', {
configurable: !0,
enumerable: !1,
value: n(t),
writable: !0,
});
}
: s;
e.exports = o;
},
71131: (e) => {
e.exports = function (e, t) {
var i = e.length;
for (e.sort(t); i--; ) e[i] = e[i].value;
return e;
};
},
22545: (e) => {
e.exports = function (e, t) {
for (var i = -1, n = Array(e); ++i < e; ) n[i] = t(i);
return n;
};
},
80531: (e, t, i) => {
var n = i(62705),
r = i(29932),
s = i(1469),
o = i(33448),
a = n ? n.prototype : void 0,
l = a ? a.toString : void 0;
e.exports = function e(t) {
if ('string' == typeof t) return t;
if (s(t)) return r(t, e) + '';
if (o(t)) return l ? l.call(t) : '';
var i = t + '';
return '0' == i && 1 / t == -1 / 0 ? '-0' : i;
};
},
7518: (e) => {
e.exports = function (e) {
return function (t) {
return e(t);
};
};
},
45652: (e, t, i) => {
var n = i(88668),
r = i(47443),
s = i(1196),
o = i(74757),
a = i(23593),
l = i(21814);
e.exports = function (e, t, i) {
var c = -1,
d = r,
h = e.length,
u = !0,
g = [],
f = g;
if (i) (u = !1), (d = s);
else if (h >= 200) {
var p = t ? null : a(e);
if (p) return l(p);
(u = !1), (d = o), (f = new n());
} else f = t ? [] : g;
e: for (; ++c < h; ) {
var m = e[c],
_ = t ? t(m) : m;
if (((m = i || 0 !== m ? m : 0), u && _ == _)) {
for (var b = f.length; b--; ) if (f[b] === _) continue e;
t && f.push(_), g.push(m);
} else d(f, _, i) || (f !== g && f.push(_), g.push(m));
}
return g;
};
},
47415: (e, t, i) => {
var n = i(29932);
e.exports = function (e, t) {
return n(t, function (t) {
return e[t];
});
};
},
1757: (e) => {
e.exports = function (e, t, i) {
for (var n = -1, r = e.length, s = t.length, o = {}; ++n < r; ) {
var a = n < s ? t[n] : void 0;
i(o, e[n], a);
}
return o;
};
},
74757: (e) => {
e.exports = function (e, t) {
return e.has(t);
};
},
54290: (e, t, i) => {
var n = i(6557);
e.exports = function (e) {
return 'function' == typeof e ? e : n;
};
},
71811: (e, t, i) => {
var n = i(1469),
r = i(15403),
s = i(55514),
o = i(79833);
e.exports = function (e, t) {
return n(e) ? e : r(e, t) ? [e] : s(o(e));
};
},
74318: (e, t, i) => {
var n = i(11149);
e.exports = function (e) {
var t = new e.constructor(e.byteLength);
return new n(t).set(new n(e)), t;
};
},
64626: (e, t, i) => {
e = i.nmd(e);
var n = i(55639),
r = t && !t.nodeType && t,
s = r && e && !e.nodeType && e,
o = s && s.exports === r ? n.Buffer : void 0,
a = o ? o.allocUnsafe : void 0;
e.exports = function (e, t) {
if (t) return e.slice();
var i = e.length,
n = a ? a(i) : new e.constructor(i);
return e.copy(n), n;
};
},
57157: (e, t, i) => {
var n = i(74318);
e.exports = function (e, t) {
var i = t ? n(e.buffer) : e.buffer;
return new e.constructor(i, e.byteOffset, e.byteLength);
};
},
93147: (e) => {
var t = /\w*$/;
e.exports = function (e) {
var i = new e.constructor(e.source, t.exec(e));
return (i.lastIndex = e.lastIndex), i;
};
},
40419: (e, t, i) => {
var n = i(62705),
r = n ? n.prototype : void 0,
s = r ? r.valueOf : void 0;
e.exports = function (e) {
return s ? Object(s.call(e)) : {};
};
},
77133: (e, t, i) => {
var n = i(74318);
e.exports = function (e, t) {
var i = t ? n(e.buffer) : e.buffer;
return new e.constructor(i, e.byteOffset, e.length);
};
},
26393: (e, t, i) => {
var n = i(33448);
e.exports = function (e, t) {
if (e !== t) {
var i = void 0 !== e,
r = null === e,
s = e == e,
o = n(e),
a = void 0 !== t,
l = null === t,
c = t == t,
d = n(t);
if (
(!l && !d && !o && e > t) ||
(o && a && c && !l && !d) ||
(r && a && c) ||
(!i && c) ||
!s
)
return 1;
if (
(!r && !o && !d && e < t) ||
(d && i && s && !r && !o) ||
(l && i && s) ||
(!a && s) ||
!c
)
return -1;
}
return 0;
};
},
85022: (e, t, i) => {
var n = i(26393);
e.exports = function (e, t, i) {
for (
var r = -1,
s = e.criteria,
o = t.criteria,
a = s.length,
l = i.length;
++r < a;
) {
var c = n(s[r], o[r]);
if (c) return r >= l ? c : c * ('desc' == i[r] ? -1 : 1);
}
return e.index - t.index;
};
},
278: (e) => {
e.exports = function (e, t) {
var i = -1,
n = e.length;
for (t || (t = Array(n)); ++i < n; ) t[i] = e[i];
return t;
};
},
98363: (e, t, i) => {
var n = i(34865),
r = i(89465);
e.exports = function (e, t, i, s) {
var o = !i;
i || (i = {});
for (var a = -1, l = t.length; ++a < l; ) {
var c = t[a],
d = s ? s(i[c], e[c], c, i, e) : void 0;
void 0 === d && (d = e[c]), o ? r(i, c, d) : n(i, c, d);
}
return i;
};
},
18805: (e, t, i) => {
var n = i(98363),
r = i(99551);
e.exports = function (e, t) {
return n(e, r(e), t);
};
},
1911: (e, t, i) => {
var n = i(98363),
r = i(51442);
e.exports = function (e, t) {
return n(e, r(e), t);
};
},
14429: (e, t, i) => {
var n = i(55639)['__core-js_shared__'];
e.exports = n;
},
21463: (e, t, i) => {
var n = i(18460),
r = i(16612);
e.exports = function (e) {
return n(function (t, i) {
var n = -1,
s = i.length,
o = s > 1 ? i[s - 1] : void 0,
a = s > 2 ? i[2] : void 0;
for (
o = e.length > 3 && 'function' == typeof o ? (s--, o) : void 0,
a && r(i[0], i[1], a) && ((o = s < 3 ? void 0 : o), (s = 1)),
t = Object(t);
++n < s;
) {
var l = i[n];
l && e(t, l, n, o);
}
return t;
});
};
},
99291: (e, t, i) => {
var n = i(98612);
e.exports = function (e, t) {
return function (i, r) {
if (null == i) return i;
if (!n(i)) return e(i, r);
for (
var s = i.length, o = t ? s : -1, a = Object(i);
(t ? o-- : ++o < s) && !1 !== r(a[o], o, a);
);
return i;
};
};
},
25063: (e) => {
e.exports = function (e) {
return function (t, i, n) {
for (var r = -1, s = Object(t), o = n(t), a = o.length; a--; ) {
var l = o[e ? a : ++r];
if (!1 === i(s[l], l, s)) break;
}
return t;
};
};
},
67740: (e, t, i) => {
var n = i(67206),
r = i(98612),
s = i(3674);
e.exports = function (e) {
return function (t, i, o) {
var a = Object(t);
if (!r(t)) {
var l = n(i, 3);
(t = s(t)),
(i = function (e) {
return l(a[e], e, a);
});
}
var c = e(t, i, o);
return c > -1 ? a[l ? t[c] : c] : void 0;
};
};
},
47445: (e, t, i) => {
var n = i(40098),
r = i(16612),
s = i(18601);
e.exports = function (e) {
return function (t, i, o) {
return (
o && 'number' != typeof o && r(t, i, o) && (i = o = void 0),
(t = s(t)),
void 0 === i ? ((i = t), (t = 0)) : (i = s(i)),
(o = void 0 === o ? (t < i ? 1 : -1) : s(o)),
n(t, i, o, e)
);
};
};
},
23593: (e, t, i) => {
var n = i(58525),
r = i(50308),
s = i(21814),
o =
n && 1 / s(new n([, -0]))[1] == 1 / 0
? function (e) {
return new n(e);
}
: r;
e.exports = o;
},
38777: (e, t, i) => {
var n = i(10852),
r = (function () {
try {
var e = n(Object, 'defineProperty');
return e({}, '', {}), e;
} catch (e) {}
})();
e.exports = r;
},
67114: (e, t, i) => {
var n = i(88668),
r = i(82908),
s = i(74757);
e.exports = function (e, t, i, o, a, l) {
var c = 1 & i,
d = e.length,
h = t.length;
if (d != h && !(c && h > d)) return !1;
var u = l.get(e);
if (u && l.get(t)) return u == t;
var g = -1,
f = !0,
p = 2 & i ? new n() : void 0;
for (l.set(e, t), l.set(t, e); ++g < d; ) {
var m = e[g],
_ = t[g];
if (o) var b = c ? o(_, m, g, t, e, l) : o(m, _, g, e, t, l);
if (void 0 !== b) {
if (b) continue;
f = !1;
break;
}
if (p) {
if (
!r(t, function (e, t) {
if (!s(p, t) && (m === e || a(m, e, i, o, l)))
return p.push(t);
})
) {
f = !1;
break;
}
} else if (m !== _ && !a(m, _, i, o, l)) {
f = !1;
break;
}
}
return l.delete(e), l.delete(t), f;
};
},
18351: (e, t, i) => {
var n = i(62705),
r = i(11149),
s = i(77813),
o = i(67114),
a = i(68776),
l = i(21814),
c = n ? n.prototype : void 0,
d = c ? c.valueOf : void 0;
e.exports = function (e, t, i, n, c, h, u) {
switch (i) {
case '[object DataView]':
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
return !1;
(e = e.buffer), (t = t.buffer);
case '[object ArrayBuffer]':
return !(e.byteLength != t.byteLength || !h(new r(e), new r(t)));
case '[object Boolean]':
case '[object Date]':
case '[object Number]':
return s(+e, +t);
case '[object Error]':
return e.name == t.name && e.message == t.message;
case '[object RegExp]':
case '[object String]':
return e == t + '';
case '[object Map]':
var g = a;
case '[object Set]':
var f = 1 & n;
if ((g || (g = l), e.size != t.size && !f)) return !1;
var p = u.get(e);
if (p) return p == t;
(n |= 2), u.set(e, t);
var m = o(g(e), g(t), n, c, h, u);
return u.delete(e), m;
case '[object Symbol]':
if (d) return d.call(e) == d.call(t);
}
return !1;
};
},
16096: (e, t, i) => {
var n = i(58234),
r = Object.prototype.hasOwnProperty;
e.exports = function (e, t, i, s, o, a) {
var l = 1 & i,
c = n(e),
d = c.length;
if (d != n(t).length && !l) return !1;
for (var h = d; h--; ) {
var u = c[h];
if (!(l ? u in t : r.call(t, u))) return !1;
}
var g = a.get(e);
if (g && a.get(t)) return g == t;
var f = !0;
a.set(e, t), a.set(t, e);
for (var p = l; ++h < d; ) {
var m = e[(u = c[h])],
_ = t[u];
if (s) var b = l ? s(_, m, u, t, e, a) : s(m, _, u, e, t, a);
if (!(void 0 === b ? m === _ || o(m, _, i, s, a) : b)) {
f = !1;
break;
}
p || (p = 'constructor' == u);
}
if (f && !p) {
var v = e.constructor,
y = t.constructor;
v == y ||
!('constructor' in e) ||
!('constructor' in t) ||
('function' == typeof v &&
v instanceof v &&
'function' == typeof y &&
y instanceof y) ||
(f = !1);
}
return a.delete(e), a.delete(t), f;
};
},
99021: (e, t, i) => {
var n = i(85564),
r = i(45357),
s = i(30061);
e.exports = function (e) {
return s(r(e, void 0, n), e + '');
};
},
31957: (e, t, i) => {
var n = 'object' == typeof i.g && i.g && i.g.Object === Object && i.g;
e.exports = n;
},
58234: (e, t, i) => {
var n = i(68866),
r = i(99551),
s = i(3674);
e.exports = function (e) {
return n(e, s, r);
};
},
46904: (e, t, i) => {
var n = i(68866),
r = i(51442),
s = i(81704);
e.exports = function (e) {
return n(e, s, r);
};
},
45050: (e, t, i) => {
var n = i(37019);
e.exports = function (e, t) {
var i = e.__data__;
return n(t) ? i['string' == typeof t ? 'string' : 'hash'] : i.map;
};
},
1499: (e, t, i) => {
var n = i(89162),
r = i(3674);
e.exports = function (e) {
for (var t = r(e), i = t.length; i--; ) {
var s = t[i],
o = e[s];
t[i] = [s, o, n(o)];
}
return t;
};
},
10852: (e, t, i) => {
var n = i(28458),
r = i(47801);
e.exports = function (e, t) {
var i = r(e, t);
return n(i) ? i : void 0;
};
},
85924: (e, t, i) => {
var n = i(5569)(Object.getPrototypeOf, Object);
e.exports = n;
},
89607: (e, t, i) => {
var n = i(62705),
r = Object.prototype,
s = r.hasOwnProperty,
o = r.toString,
a = n ? n.toStringTag : void 0;
e.exports = function (e) {
var t = s.call(e, a),
i = e[a];
try {
e[a] = void 0;
var n = !0;
} catch (e) {}
var r = o.call(e);
return n && (t ? (e[a] = i) : delete e[a]), r;
};
},
99551: (e, t, i) => {
var n = i(34963),
r = i(70479),
s = Object.prototype.propertyIsEnumerable,
o = Object.getOwnPropertySymbols,
a = o
? function (e) {
return null == e
? []
: ((e = Object(e)),
n(o(e), function (t) {
return s.call(e, t);
}));
}
: r;
e.exports = a;
},
51442: (e, t, i) => {
var n = i(62488),
r = i(85924),
s = i(99551),
o = i(70479),
a = Object.getOwnPropertySymbols
? function (e) {
for (var t = []; e; ) n(t, s(e)), (e = r(e));
return t;
}
: o;
e.exports = a;
},
64160: (e, t, i) => {
var n = i(18552),
r = i(57071),
s = i(53818),
o = i(58525),
a = i(70577),
l = i(44239),
c = i(80346),
d = '[object Map]',
h = '[object Promise]',
u = '[object Set]',
g = '[object WeakMap]',
f = '[object DataView]',
p = c(n),
m = c(r),
_ = c(s),
b = c(o),
v = c(a),
y = l;
((n && y(new n(new ArrayBuffer(1))) != f) ||
(r && y(new r()) != d) ||
(s && y(s.resolve()) != h) ||
(o && y(new o()) != u) ||
(a && y(new a()) != g)) &&
(y = function (e) {
var t = l(e),
i = '[object Object]' == t ? e.constructor : void 0,
n = i ? c(i) : '';
if (n)
switch (n) {
case p:
return f;
case m:
return d;
case _:
return h;
case b:
return u;
case v:
return g;
}
return t;
}),
(e.exports = y);
},
47801: (e) => {
e.exports = function (e, t) {
return null == e ? void 0 : e[t];
};
},
222: (e, t, i) => {
var n = i(71811),
r = i(35694),
s = i(1469),
o = i(65776),
a = i(41780),
l = i(40327);
e.exports = function (e, t, i) {
for (var c = -1, d = (t = n(t, e)).length, h = !1; ++c < d; ) {
var u = l(t[c]);
if (!(h = null != e && i(e, u))) break;
e = e[u];
}
return h || ++c != d
? h
: !!(d = null == e ? 0 : e.length) &&
a(d) &&
o(u, d) &&
(s(e) || r(e));
};
},
62689: (e) => {
var t = RegExp(
'[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]'
);
e.exports = function (e) {
return t.test(e);
};
},
51789: (e, t, i) => {
var n = i(94536);
e.exports = function () {
(this.__data__ = n ? n(null) : {}), (this.size = 0);
};
},
80401: (e) => {
e.exports = function (e) {
var t = this.has(e) && delete this.__data__[e];
return (this.size -= t ? 1 : 0), t;
};
},
57667: (e, t, i) => {
var n = i(94536),
r = Object.prototype.hasOwnProperty;
e.exports = function (e) {
var t = this.__data__;
if (n) {
var i = t[e];
return '__lodash_hash_undefined__' === i ? void 0 : i;
}
return r.call(t, e) ? t[e] : void 0;
};
},
21327: (e, t, i) => {
var n = i(94536),
r = Object.prototype.hasOwnProperty;
e.exports = function (e) {
var t = this.__data__;
return n ? void 0 !== t[e] : r.call(t, e);
};
},
81866: (e, t, i) => {
var n = i(94536);
e.exports = function (e, t) {
var i = this.__data__;
return (
(this.size += this.has(e) ? 0 : 1),
(i[e] = n && void 0 === t ? '__lodash_hash_undefined__' : t),
this
);
};
},
43824: (e) => {
var t = Object.prototype.hasOwnProperty;
e.exports = function (e) {
var i = e.length,
n = new e.constructor(i);
return (
i &&
'string' == typeof e[0] &&
t.call(e, 'index') &&
((n.index = e.index), (n.input = e.input)),
n
);
};
},
29148: (e, t, i) => {
var n = i(74318),
r = i(57157),
s = i(93147),
o = i(40419),
a = i(77133);
e.exports = function (e, t, i) {
var l = e.constructor;
switch (t) {
case '[object ArrayBuffer]':
return n(e);
case '[object Boolean]':
case '[object Date]':
return new l(+e);
case '[object DataView]':
return r(e, i);
case '[object Float32Array]':
case '[object Float64Array]':
case '[object Int8Array]':
case '[object Int16Array]':
case '[object Int32Array]':
case '[object Uint8Array]':
case '[object Uint8ClampedArray]':
case '[object Uint16Array]':
case '[object Uint32Array]':
return a(e, i);
case '[object Map]':
return new l();
case '[object Number]':
case '[object String]':
return new l(e);
case '[object RegExp]':
return s(e);
case '[object Set]':
return new l();
case '[object Symbol]':
return o(e);
}
};
},
38517: (e, t, i) => {
var n = i(3118),
r = i(85924),
s = i(25726);
e.exports = function (e) {
return 'function' != typeof e.constructor || s(e) ? {} : n(r(e));
};
},
37285: (e, t, i) => {
var n = i(62705),
r = i(35694),
s = i(1469),
o = n ? n.isConcatSpreadable : void 0;
e.exports = function (e) {
return s(e) || r(e) || !!(o && e && e[o]);
};
},
65776: (e) => {
var t = /^(?:0|[1-9]\d*)$/;
e.exports = function (e, i) {
var n = typeof e;
return (
!!(i = null == i ? 9007199254740991 : i) &&
('number' == n || ('symbol' != n && t.test(e))) &&
e > -1 &&
e % 1 == 0 &&
e < i
);
};
},
16612: (e, t, i) => {
var n = i(77813),
r = i(98612),
s = i(65776),
o = i(13218);
e.exports = function (e, t, i) {
if (!o(i)) return !1;
var a = typeof t;
return (
!!('number' == a
? r(i) && s(t, i.length)
: 'string' == a && t in i) && n(i[t], e)
);
};
},
15403: (e, t, i) => {
var n = i(1469),
r = i(33448),
s = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
o = /^\w*$/;
e.exports = function (e, t) {
if (n(e)) return !1;
var i = typeof e;
return (
!(
'number' != i &&
'symbol' != i &&
'boolean' != i &&
null != e &&
!r(e)
) ||
o.test(e) ||
!s.test(e) ||
(null != t && e in Object(t))
);
};
},
37019: (e) => {
e.exports = function (e) {
var t = typeof e;
return 'string' == t ||
'number' == t ||
'symbol' == t ||
'boolean' == t
? '__proto__' !== e
: null === e;
};
},
15346: (e, t, i) => {
var n,
r = i(14429),
s = (n = /[^.]+$/.exec((r && r.keys && r.keys.IE_PROTO) || ''))
? 'Symbol(src)_1.' + n
: '';
e.exports = function (e) {
return !!s && s in e;
};
},
25726: (e) => {
var t = Object.prototype;
e.exports = function (e) {
var i = e && e.constructor;
return e === (('function' == typeof i && i.prototype) || t);
};
},
89162: (e, t, i) => {
var n = i(13218);
e.exports = function (e) {
return e == e && !n(e);
};
},
27040: (e) => {
e.exports = function () {
(this.__data__ = []), (this.size = 0);
};
},
14125: (e, t, i) => {
var n = i(18470),
r = Array.prototype.splice;
e.exports = function (e) {
var t = this.__data__,
i = n(t, e);
return !(
i < 0 ||
(i == t.length - 1 ? t.pop() : r.call(t, i, 1), --this.size, 0)
);
};
},
82117: (e, t, i) => {
var n = i(18470);
e.exports = function (e) {
var t = this.__data__,
i = n(t, e);
return i < 0 ? void 0 : t[i][1];
};
},
67518: (e, t, i) => {
var n = i(18470);
e.exports = function (e) {
return n(this.__data__, e) > -1;
};
},
54705: (e, t, i) => {
var n = i(18470);
e.exports = function (e, t) {
var i = this.__data__,
r = n(i, e);
return r < 0 ? (++this.size, i.push([e, t])) : (i[r][1] = t), this;
};
},
24785: (e, t, i) => {
var n = i(1989),
r = i(38407),
s = i(57071);
e.exports = function () {
(this.size = 0),
(this.__data__ = {
hash: new n(),
map: new (s || r)(),
string: new n(),
});
};
},
11285: (e, t, i) => {
var n = i(45050);
e.exports = function (e) {
var t = n(this, e).delete(e);
return (this.size -= t ? 1 : 0), t;
};
},
96e3: (e, t, i) => {
var n = i(45050);
e.exports = function (e) {
return n(this, e).get(e);
};
},
49916: (e, t, i) => {
var n = i(45050);
e.exports = function (e) {
return n(this, e).has(e);
};
},
95265: (e, t, i) => {
var n = i(45050);
e.exports = function (e, t) {
var i = n(this, e),
r = i.size;
return i.set(e, t), (this.size += i.size == r ? 0 : 1), this;
};
},
68776: (e) => {
e.exports = function (e) {
var t = -1,
i = Array(e.size);
return (
e.forEach(function (e, n) {
i[++t] = [n, e];
}),
i
);
};
},
42634: (e) => {
e.exports = function (e, t) {
return function (i) {
return null != i && i[e] === t && (void 0 !== t || e in Object(i));
};
};
},
24523: (e, t, i) => {
var n = i(88306);
e.exports = function (e) {
var t = n(e, function (e) {
return 500 === i.size && i.clear(), e;
}),
i = t.cache;
return t;
};
},
94536: (e, t, i) => {
var n = i(10852)(Object, 'create');
e.exports = n;
},
86916: (e, t, i) => {
var n = i(5569)(Object.keys, Object);
e.exports = n;
},
33498: (e) => {
e.exports = function (e) {
var t = [];
if (null != e) for (var i in Object(e)) t.push(i);
return t;
};
},
31167: (e, t, i) => {
e = i.nmd(e);
var n = i(31957),
r = t && !t.nodeType && t,
s = r && e && !e.nodeType && e,
o = s && s.exports === r && n.process,
a = (function () {
try {
return (
(s && s.require && s.require('util').types) ||
(o && o.binding && o.binding('util'))
);
} catch (e) {}
})();
e.exports = a;
},
2333: (e) => {
var t = Object.prototype.toString;
e.exports = function (e) {
return t.call(e);
};
},
5569: (e) => {
e.exports = function (e, t) {
return function (i) {
return e(t(i));
};
};
},
45357: (e, t, i) => {
var n = i(96874),
r = Math.max;
e.exports = function (e, t, i) {
return (
(t = r(void 0 === t ? e.length - 1 : t, 0)),
function () {
for (
var s = arguments, o = -1, a = r(s.length - t, 0), l = Array(a);
++o < a;
)
l[o] = s[t + o];
o = -1;
for (var c = Array(t + 1); ++o < t; ) c[o] = s[o];
return (c[t] = i(l)), n(e, this, c);
}
);
};
},
55639: (e, t, i) => {
var n = i(31957),
r = 'object' == typeof self && self && self.Object === Object && self,
s = n || r || Function('return this')();
e.exports = s;
},
36390: (e) => {
e.exports = function (e, t) {
if (
('constructor' !== t || 'function' != typeof e[t]) &&
'__proto__' != t
)
return e[t];
};
},
90619: (e) => {
e.exports = function (e) {
return this.__data__.set(e, '__lodash_hash_undefined__'), this;
};
},
72385: (e) => {
e.exports = function (e) {
return this.__data__.has(e);
};
},
21814: (e) => {
e.exports = function (e) {
var t = -1,
i = Array(e.size);
return (
e.forEach(function (e) {
i[++t] = e;
}),
i
);
};
},
30061: (e, t, i) => {
var n = i(56560),
r = i(21275)(n);
e.exports = r;
},
21275: (e) => {
var t = Date.now;
e.exports = function (e) {
var i = 0,
n = 0;
return function () {
var r = t(),
s = 16 - (r - n);
if (((n = r), s > 0)) {
if (++i >= 800) return arguments[0];
} else i = 0;
return e.apply(void 0, arguments);
};
};
},
37465: (e, t, i) => {
var n = i(38407);
e.exports = function () {
(this.__data__ = new n()), (this.size = 0);
};
},
63779: (e) => {
e.exports = function (e) {
var t = this.__data__,
i = t.delete(e);
return (this.size = t.size), i;
};
},
67599: (e) => {
e.exports = function (e) {
return this.__data__.get(e);
};
},
44758: (e) => {
e.exports = function (e) {
return this.__data__.has(e);
};
},
34309: (e, t, i) => {
var n = i(38407),
r = i(57071),
s = i(83369);
e.exports = function (e, t) {
var i = this.__data__;
if (i instanceof n) {
var o = i.__data__;
if (!r || o.length < 199)
return o.push([e, t]), (this.size = ++i.size), this;
i = this.__data__ = new s(o);
}
return i.set(e, t), (this.size = i.size), this;
};
},
42351: (e) => {
e.exports = function (e, t, i) {
for (var n = i - 1, r = e.length; ++n < r; ) if (e[n] === t) return n;
return -1;
};
},
88016: (e, t, i) => {
var n = i(48983),
r = i(62689),
s = i(21903);
e.exports = function (e) {
return r(e) ? s(e) : n(e);
};
},
55514: (e, t, i) => {
var n = i(24523),
r = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
s = /\\(\\)?/g,
o = n(function (e) {
var t = [];
return (
46 === e.charCodeAt(0) && t.push(''),
e.replace(r, function (e, i, n, r) {
t.push(n ? r.replace(s, '$1') : i || e);
}),
t
);
});
e.exports = o;
},
40327: (e, t, i) => {
var n = i(33448);
e.exports = function (e) {
if ('string' == typeof e || n(e)) return e;
var t = e + '';
return '0' == t && 1 / e == -1 / 0 ? '-0' : t;
};
},
80346: (e) => {
var t = Function.prototype.toString;
e.exports = function (e) {
if (null != e) {
try {
return t.call(e);
} catch (e) {}
try {
return e + '';
} catch (e) {}
}
return '';
};
},
21903: (e) => {
var t = '[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]',
i = '\\ud83c[\\udffb-\\udfff]',
n = '[^\\ud800-\\udfff]',
r = '(?:\\ud83c[\\udde6-\\uddff]){2}',
s = '[\\ud800-\\udbff][\\udc00-\\udfff]',
o = '(?:' + t + '|' + i + ')?',
a = '[\\ufe0e\\ufe0f]?',
l =
a + o + '(?:\\u200d(?:' + [n, r, s].join('|') + ')' + a + o + ')*',
c =
'(?:' + [n + t + '?', t, r, s, '[\\ud800-\\udfff]'].join('|') + ')',
d = RegExp(i + '(?=' + i + ')|' + c + l, 'g');
e.exports = function (e) {
for (var t = (d.lastIndex = 0); d.test(e); ) ++t;
return t;
};
},
66678: (e, t, i) => {
var n = i(85990);
e.exports = function (e) {
return n(e, 4);
};
},
50361: (e, t, i) => {
var n = i(85990);
e.exports = function (e) {
return n(e, 5);
};
},
75703: (e) => {
e.exports = function (e) {
return function () {
return e;
};
};
},
91747: (e, t, i) => {
var n = i(18460),
r = i(77813),
s = i(16612),
o = i(81704),
a = Object.prototype,
l = a.hasOwnProperty,
c = n(function (e, t) {
e = Object(e);
var i = -1,
n = t.length,
c = n > 2 ? t[2] : void 0;
for (c && s(t[0], t[1], c) && (n = 1); ++i < n; )
for (var d = t[i], h = o(d), u = -1, g = h.length; ++u < g; ) {
var f = h[u],
p = e[f];
(void 0 === p || (r(p, a[f]) && !l.call(e, f))) &&
(e[f] = d[f]);
}
return e;
});
e.exports = c;
},
66073: (e, t, i) => {
e.exports = i(84486);
},
77813: (e) => {
e.exports = function (e, t) {
return e === t || (e != e && t != t);
};
},
63105: (e, t, i) => {
var n = i(34963),
r = i(80760),
s = i(67206),
o = i(1469);
e.exports = function (e, t) {
return (o(e) ? n : r)(e, s(t, 3));
};
},
13311: (e, t, i) => {
var n = i(67740)(i(30998));
e.exports = n;
},
30998: (e, t, i) => {
var n = i(41848),
r = i(67206),
s = i(40554),
o = Math.max;
e.exports = function (e, t, i) {
var a = null == e ? 0 : e.length;
if (!a) return -1;
var l = null == i ? 0 : s(i);
return l < 0 && (l = o(a + l, 0)), n(e, r(t, 3), l);
};
},
85564: (e, t, i) => {
var n = i(21078);
e.exports = function (e) {
return null != e && e.length ? n(e, 1) : [];
};
},
84486: (e, t, i) => {
var n = i(77412),
r = i(89881),
s = i(54290),
o = i(1469);
e.exports = function (e, t) {
return (o(e) ? n : r)(e, s(t));
};
},
62620: (e, t, i) => {
var n = i(28483),
r = i(54290),
s = i(81704);
e.exports = function (e, t) {
return null == e ? e : n(e, r(t), s);
};
},
27361: (e, t, i) => {
var n = i(97786);
e.exports = function (e, t, i) {
var r = null == e ? void 0 : n(e, t);
return void 0 === r ? i : r;
};
},
18721: (e, t, i) => {
var n = i(78565),
r = i(222);
e.exports = function (e, t) {
return null != e && r(e, t, n);
};
},
79095: (e, t, i) => {
var n = i(13),
r = i(222);
e.exports = function (e, t) {
return null != e && r(e, t, n);
};
},
6557: (e) => {
e.exports = function (e) {
return e;
};
},
35694: (e, t, i) => {
var n = i(9454),
r = i(37005),
s = Object.prototype,
o = s.hasOwnProperty,
a = s.propertyIsEnumerable,
l = n(
(function () {
return arguments;
})()
)
? n
: function (e) {
return r(e) && o.call(e, 'callee') && !a.call(e, 'callee');
};
e.exports = l;
},
1469: (e) => {
var t = Array.isArray;
e.exports = t;
},
98612: (e, t, i) => {
var n = i(23560),
r = i(41780);
e.exports = function (e) {
return null != e && r(e.length) && !n(e);
};
},
29246: (e, t, i) => {
var n = i(98612),
r = i(37005);
e.exports = function (e) {
return r(e) && n(e);
};
},
44144: (e, t, i) => {
e = i.nmd(e);
var n = i(55639),
r = i(95062),
s = t && !t.nodeType && t,
o = s && e && !e.nodeType && e,
a = o && o.exports === s ? n.Buffer : void 0,
l = (a ? a.isBuffer : void 0) || r;
e.exports = l;
},
41609: (e, t, i) => {
var n = i(280),
r = i(64160),
s = i(35694),
o = i(1469),
a = i(98612),
l = i(44144),
c = i(25726),
d = i(36719),
h = Object.prototype.hasOwnProperty;
e.exports = function (e) {
if (null == e) return !0;
if (
a(e) &&
(o(e) ||
'string' == typeof e ||
'function' == typeof e.splice ||
l(e) ||
d(e) ||
s(e))
)
return !e.length;
var t = r(e);
if ('[object Map]' == t || '[object Set]' == t) return !e.size;
if (c(e)) return !n(e).length;
for (var i in e) if (h.call(e, i)) return !1;
return !0;
};
},
23560: (e, t, i) => {
var n = i(44239),
r = i(13218);
e.exports = function (e) {
if (!r(e)) return !1;
var t = n(e);
return (
'[object Function]' == t ||
'[object GeneratorFunction]' == t ||
'[object AsyncFunction]' == t ||
'[object Proxy]' == t
);
};
},
41780: (e) => {
e.exports = function (e) {
return (
'number' == typeof e &&
e > -1 &&
e % 1 == 0 &&
e <= 9007199254740991
);
};
},
56688: (e, t, i) => {
var n = i(25588),
r = i(7518),
s = i(31167),
o = s && s.isMap,
a = o ? r(o) : n;
e.exports = a;
},
13218: (e) => {
e.exports = function (e) {
var t = typeof e;
return null != e && ('object' == t || 'function' == t);
};
},
37005: (e) => {
e.exports = function (e) {
return null != e && 'object' == typeof e;
};
},
68630: (e, t, i) => {
var n = i(44239),
r = i(85924),
s = i(37005),
o = Function.prototype,
a = Object.prototype,
l = o.toString,
c = a.hasOwnProperty,
d = l.call(Object);
e.exports = function (e) {
if (!s(e) || '[object Object]' != n(e)) return !1;
var t = r(e);
if (null === t) return !0;
var i = c.call(t, 'constructor') && t.constructor;
return 'function' == typeof i && i instanceof i && l.call(i) == d;
};
},
72928: (e, t, i) => {
var n = i(29221),
r = i(7518),
s = i(31167),
o = s && s.isSet,
a = o ? r(o) : n;
e.exports = a;
},
47037: (e, t, i) => {
var n = i(44239),
r = i(1469),
s = i(37005);
e.exports = function (e) {
return (
'string' == typeof e || (!r(e) && s(e) && '[object String]' == n(e))
);
};
},
33448: (e, t, i) => {
var n = i(44239),
r = i(37005);
e.exports = function (e) {
return 'symbol' == typeof e || (r(e) && '[object Symbol]' == n(e));
};
},
36719: (e, t, i) => {
var n = i(38749),
r = i(7518),
s = i(31167),
o = s && s.isTypedArray,
a = o ? r(o) : n;
e.exports = a;
},
52353: (e) => {
e.exports = function (e) {
return void 0 === e;
};
},
3674: (e, t, i) => {
var n = i(14636),
r = i(280),
s = i(98612);
e.exports = function (e) {
return s(e) ? n(e) : r(e);
};
},
81704: (e, t, i) => {
var n = i(14636),
r = i(10313),
s = i(98612);
e.exports = function (e) {
return s(e) ? n(e, !0) : r(e);
};
},
10928: (e) => {
e.exports = function (e) {
var t = null == e ? 0 : e.length;
return t ? e[t - 1] : void 0;
};
},
35161: (e, t, i) => {
var n = i(29932),
r = i(67206),
s = i(69199),
o = i(1469);
e.exports = function (e, t) {
return (o(e) ? n : s)(e, r(t, 3));
};
},
66604: (e, t, i) => {
var n = i(89465),
r = i(47816),
s = i(67206);
e.exports = function (e, t) {
var i = {};
return (
(t = s(t, 3)),
r(e, function (e, r, s) {
n(i, r, t(e, r, s));
}),
i
);
};
},
6162: (e, t, i) => {
var n = i(56029),
r = i(53325),
s = i(6557);
e.exports = function (e) {
return e && e.length ? n(e, s, r) : void 0;
};
},
88306: (e, t, i) => {
var n = i(83369);
function r(e, t) {
if ('function' != typeof e || (null != t && 'function' != typeof t))
throw new TypeError('Expected a function');
var i = function () {
var n = arguments,
r = t ? t.apply(this, n) : n[0],
s = i.cache;
if (s.has(r)) return s.get(r);
var o = e.apply(this, n);
return (i.cache = s.set(r, o) || s), o;
};
return (i.cache = new (r.Cache || n)()), i;
}
(r.Cache = n), (e.exports = r);
},
82492: (e, t, i) => {
var n = i(42980),
r = i(21463)(function (e, t, i) {
n(e, t, i);
});
e.exports = r;
},
53632: (e, t, i) => {
var n = i(56029),
r = i(70433),
s = i(6557);
e.exports = function (e) {
return e && e.length ? n(e, s, r) : void 0;
};
},
22762: (e, t, i) => {
var n = i(56029),
r = i(67206),
s = i(70433);
e.exports = function (e, t) {
return e && e.length ? n(e, r(t, 2), s) : void 0;
};
},
50308: (e) => {
e.exports = function () {};
},
7771: (e, t, i) => {
var n = i(55639);
e.exports = function () {
return n.Date.now();
};
},
78718: (e, t, i) => {
var n = i(25970),
r = i(99021)(function (e, t) {
return null == e ? {} : n(e, t);
});
e.exports = r;
},
39601: (e, t, i) => {
var n = i(40371),
r = i(79152),
s = i(15403),
o = i(40327);
e.exports = function (e) {
return s(e) ? n(o(e)) : r(e);
};
},
96026: (e, t, i) => {
var n = i(47445)();
e.exports = n;
},
54061: (e, t, i) => {
var n = i(62663),
r = i(89881),
s = i(67206),
o = i(10107),
a = i(1469);
e.exports = function (e, t, i) {
var l = a(e) ? n : o,
c = arguments.length < 3;
return l(e, s(t, 4), i, c, r);
};
},
84238: (e, t, i) => {
var n = i(280),
r = i(64160),
s = i(98612),
o = i(47037),
a = i(88016);
e.exports = function (e) {
if (null == e) return 0;
if (s(e)) return o(e) ? a(e) : e.length;
var t = r(e);
return '[object Map]' == t || '[object Set]' == t
? e.size
: n(e).length;
};
},
89734: (e, t, i) => {
var n = i(21078),
r = i(82689),
s = i(18460),
o = i(16612),
a = s(function (e, t) {
if (null == e) return [];
var i = t.length;
return (
i > 1 && o(e, t[0], t[1])
? (t = [])
: i > 2 && o(t[0], t[1], t[2]) && (t = [t[0]]),
r(e, n(t, 1), [])
);
});
e.exports = a;
},
70479: (e) => {
e.exports = function () {
return [];
};
},
95062: (e) => {
e.exports = function () {
return !1;
};
},
18601: (e, t, i) => {
var n = i(14841);
e.exports = function (e) {
return e
? Infinity === (e = n(e)) || e === -1 / 0
? 17976931348623157e292 * (e < 0 ? -1 : 1)
: e == e
? e
: 0
: 0 === e
? e
: 0;
};
},
40554: (e, t, i) => {
var n = i(18601);
e.exports = function (e) {
var t = n(e),
i = t % 1;
return t == t ? (i ? t - i : t) : 0;
};
},
14841: (e, t, i) => {
var n = i(13218),
r = i(33448),
s = /^\s+|\s+$/g,
o = /^[-+]0x[0-9a-f]+$/i,
a = /^0b[01]+$/i,
l = /^0o[0-7]+$/i,
c = parseInt;
e.exports = function (e) {
if ('number' == typeof e) return e;
if (r(e)) return NaN;
if (n(e)) {
var t = 'function' == typeof e.valueOf ? e.valueOf() : e;
e = n(t) ? t + '' : t;
}
if ('string' != typeof e) return 0 === e ? e : +e;
e = e.replace(s, '');
var i = a.test(e);
return i || l.test(e)
? c(e.slice(2), i ? 2 : 8)
: o.test(e)
? NaN
: +e;
};
},
59881: (e, t, i) => {
var n = i(98363),
r = i(81704);
e.exports = function (e) {
return n(e, r(e));
};
},
79833: (e, t, i) => {
var n = i(80531);
e.exports = function (e) {
return null == e ? '' : n(e);
};
},
68718: (e, t, i) => {
var n = i(77412),
r = i(3118),
s = i(47816),
o = i(67206),
a = i(85924),
l = i(1469),
c = i(44144),
d = i(23560),
h = i(13218),
u = i(36719);
e.exports = function (e, t, i) {
var g = l(e),
f = g || c(e) || u(e);
if (((t = o(t, 4)), null == i)) {
var p = e && e.constructor;
i = f ? (g ? new p() : []) : h(e) && d(p) ? r(a(e)) : {};
}
return (
(f ? n : s)(e, function (e, n, r) {
return t(i, e, n, r);
}),
i
);
};
},
93386: (e, t, i) => {
var n = i(21078),
r = i(18460),
s = i(45652),
o = i(29246),
a = r(function (e) {
return s(n(e, 1, o, !0));
});
e.exports = a;
},
73955: (e, t, i) => {
var n = i(79833),
r = 0;
e.exports = function (e) {
var t = ++r;
return n(e) + t;
};
},
52628: (e, t, i) => {
var n = i(47415),
r = i(3674);
e.exports = function (e) {
return null == e ? [] : n(e, r(e));
};
},
7287: (e, t, i) => {
var n = i(34865),
r = i(1757);
e.exports = function (e, t) {
return r(e || [], t || [], n);
};
},
21140: function (e, t, i) {
var n;
'undefined' != typeof self && self,
(n = function () {
return (function (e) {
var t = {};
function i(n) {
if (t[n]) return t[n].exports;
var r = (t[n] = { i: n, l: !1, exports: {} });
return (
e[n].call(r.exports, r, r.exports, i), (r.l = !0), r.exports
);
}
return (
(i.m = e),
(i.c = t),
(i.d = function (e, t, n) {
i.o(e, t) ||
Object.defineProperty(e, t, { enumerable: !0, get: n });
}),
(i.r = function (e) {
'undefined' != typeof Symbol &&
Symbol.toStringTag &&
Object.defineProperty(e, Symbol.toStringTag, {
value: 'Module',
}),
Object.defineProperty(e, '__esModule', { value: !0 });
}),
(i.t = function (e, t) {
if ((1 & t && (e = i(e)), 8 & t)) return e;
if (4 & t && 'object' == typeof e && e && e.__esModule)
return e;
var n = Object.create(null);
if (
(i.r(n),
Object.defineProperty(n, 'default', {
enumerable: !0,
value: e,
}),
2 & t && 'string' != typeof e)
)
for (var r in e)
i.d(
n,
r,
function (t) {
return e[t];
}.bind(null, r)
);
return n;
}),
(i.n = function (e) {
var t =
e && e.__esModule
? function () {
return e.default;
}
: function () {
return e;
};
return i.d(t, 'a', t), t;
}),
(i.o = function (e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}),
(i.p = ''),
i((i.s = './src/mermaid.js'))
);
})({
'./node_modules/node-libs-browser/mock/empty.js': function (
e,
t
) {},
'./node_modules/path-browserify/index.js': function (e, t, i) {
(function (e) {
function i(e, t) {
for (var i = 0, n = e.length - 1; n >= 0; n--) {
var r = e[n];
'.' === r
? e.splice(n, 1)
: '..' === r
? (e.splice(n, 1), i++)
: i && (e.splice(n, 1), i--);
}
if (t) for (; i--; i) e.unshift('..');
return e;
}
function n(e, t) {
if (e.filter) return e.filter(t);
for (var i = [], n = 0; n < e.length; n++)
t(e[n], n, e) && i.push(e[n]);
return i;
}
(t.resolve = function () {
for (
var t = '', r = !1, s = arguments.length - 1;
s >= -1 && !r;
s--
) {
var o = s >= 0 ? arguments[s] : e.cwd();
if ('string' != typeof o)
throw new TypeError(
'Arguments to path.resolve must be strings'
);
o && ((t = o + '/' + t), (r = '/' === o.charAt(0)));
}
return (
(r ? '/' : '') +
(t = i(
n(t.split('/'), function (e) {
return !!e;
}),
!r
).join('/')) || '.'
);
}),
(t.normalize = function (e) {
var s = t.isAbsolute(e),
o = '/' === r(e, -1);
return (
(e = i(
n(e.split('/'), function (e) {
return !!e;
}),
!s
).join('/')) ||
s ||
(e = '.'),
e && o && (e += '/'),
(s ? '/' : '') + e
);
}),
(t.isAbsolute = function (e) {
return '/' === e.charAt(0);
}),
(t.join = function () {
var e = Array.prototype.slice.call(arguments, 0);
return t.normalize(
n(e, function (e, t) {
if ('string' != typeof e)
throw new TypeError(
'Arguments to path.join must be strings'
);
return e;
}).join('/')
);
}),
(t.relative = function (e, i) {
function n(e) {
for (var t = 0; t < e.length && '' === e[t]; t++);
for (var i = e.length - 1; i >= 0 && '' === e[i]; i--);
return t > i ? [] : e.slice(t, i - t + 1);
}
(e = t.resolve(e).substr(1)),
(i = t.resolve(i).substr(1));
for (
var r = n(e.split('/')),
s = n(i.split('/')),
o = Math.min(r.length, s.length),
a = o,
l = 0;
l < o;
l++
)
if (r[l] !== s[l]) {
a = l;
break;
}
var c = [];
for (l = a; l < r.length; l++) c.push('..');
return (c = c.concat(s.slice(a))).join('/');
}),
(t.sep = '/'),
(t.delimiter = ':'),
(t.dirname = function (e) {
if (('string' != typeof e && (e += ''), 0 === e.length))
return '.';
for (
var t = e.charCodeAt(0),
i = 47 === t,
n = -1,
r = !0,
s = e.length - 1;
s >= 1;
--s
)
if (47 === (t = e.charCodeAt(s))) {
if (!r) {
n = s;
break;
}
} else r = !1;
return -1 === n
? i
? '/'
: '.'
: i && 1 === n
? '/'
: e.slice(0, n);
}),
(t.basename = function (e, t) {
var i = (function (e) {
'string' != typeof e && (e += '');
var t,
i = 0,
n = -1,
r = !0;
for (t = e.length - 1; t >= 0; --t)
if (47 === e.charCodeAt(t)) {
if (!r) {
i = t + 1;
break;
}
} else -1 === n && ((r = !1), (n = t + 1));
return -1 === n ? '' : e.slice(i, n);
})(e);
return (
t &&
i.substr(-1 * t.length) === t &&
(i = i.substr(0, i.length - t.length)),
i
);
}),
(t.extname = function (e) {
'string' != typeof e && (e += '');
for (
var t = -1,
i = 0,
n = -1,
r = !0,
s = 0,
o = e.length - 1;
o >= 0;
--o
) {
var a = e.charCodeAt(o);
if (47 !== a)
-1 === n && ((r = !1), (n = o + 1)),
46 === a
? -1 === t
? (t = o)
: 1 !== s && (s = 1)
: -1 !== t && (s = -1);
else if (!r) {
i = o + 1;
break;
}
}
return -1 === t ||
-1 === n ||
0 === s ||
(1 === s && t === n - 1 && t === i + 1)
? ''
: e.slice(t, n);
});
var r = function (e, t, i) {
return e.substr(t, i);
};
}.call(this, i('./node_modules/process/browser.js')));
},
'./node_modules/process/browser.js': function (e, t) {
var i,
n,
r = (e.exports = {});
function s() {
throw new Error('setTimeout has not been defined');
}
function o() {
throw new Error('clearTimeout has not been defined');
}
function a(e) {
if (i === setTimeout) return setTimeout(e, 0);
if ((i === s || !i) && setTimeout)
return (i = setTimeout), setTimeout(e, 0);
try {
return i(e, 0);
} catch (t) {
try {
return i.call(null, e, 0);
} catch (t) {
return i.call(this, e, 0);
}
}
}
!(function () {
try {
i = 'function' == typeof setTimeout ? setTimeout : s;
} catch (e) {
i = s;
}
try {
n = 'function' == typeof clearTimeout ? clearTimeout : o;
} catch (e) {
n = o;
}
})();
var l,
c = [],
d = !1,
h = -1;
function u() {
d &&
l &&
((d = !1),
l.length ? (c = l.concat(c)) : (h = -1),
c.length && g());
}
function g() {
if (!d) {
var e = a(u);
d = !0;
for (var t = c.length; t; ) {
for (l = c, c = []; ++h < t; ) l && l[h].run();
(h = -1), (t = c.length);
}
(l = null),
(d = !1),
(function (e) {
if (n === clearTimeout) return clearTimeout(e);
if ((n === o || !n) && clearTimeout)
return (n = clearTimeout), clearTimeout(e);
try {
n(e);
} catch (t) {
try {
return n.call(null, e);
} catch (t) {
return n.call(this, e);
}
}
})(e);
}
}
function f(e, t) {
(this.fun = e), (this.array = t);
}
function p() {}
(r.nextTick = function (e) {
var t = new Array(arguments.length - 1);
if (arguments.length > 1)
for (var i = 1; i < arguments.length; i++)
t[i - 1] = arguments[i];
c.push(new f(e, t)), 1 !== c.length || d || a(g);
}),
(f.prototype.run = function () {
this.fun.apply(null, this.array);
}),
(r.title = 'browser'),
(r.browser = !0),
(r.env = {}),
(r.argv = []),
(r.version = ''),
(r.versions = {}),
(r.on = p),
(r.addListener = p),
(r.once = p),
(r.off = p),
(r.removeListener = p),
(r.removeAllListeners = p),
(r.emit = p),
(r.prependListener = p),
(r.prependOnceListener = p),
(r.listeners = function (e) {
return [];
}),
(r.binding = function (e) {
throw new Error('process.binding is not supported');
}),
(r.cwd = function () {
return '/';
}),
(r.chdir = function (e) {
throw new Error('process.chdir is not supported');
}),
(r.umask = function () {
return 0;
});
},
'./node_modules/webpack/buildin/module.js': function (e, t) {
e.exports = function (e) {
return (
e.webpackPolyfill ||
((e.deprecate = function () {}),
(e.paths = []),
e.children || (e.children = []),
Object.defineProperty(e, 'loaded', {
enumerable: !0,
get: function () {
return e.l;
},
}),
Object.defineProperty(e, 'id', {
enumerable: !0,
get: function () {
return e.i;
},
}),
(e.webpackPolyfill = 1)),
e
);
};
},
'./package.json': function (e) {
e.exports = JSON.parse(
'{"name":"mermaid","version":"8.9.3","description":"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.","main":"dist/mermaid.core.js","keywords":["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph"],"scripts":{"build:development":"webpack --progress --colors","build:production":"yarn build:development -p --config webpack.config.prod.babel.js","build":"yarn build:development && yarn build:production","postbuild":"documentation build src/mermaidAPI.js src/config.js src/defaultConfig.js --shallow -f md --markdown-toc false > docs/Setup.md","build:watch":"yarn build --watch","minify":"minify ./dist/mermaid.js > ./dist/mermaid.min.js","release":"yarn build","lint":"eslint src","e2e:depr":"yarn lint && jest e2e --config e2e/jest.config.js","cypress":"percy exec -- cypress run","e2e":"start-server-and-test dev http://localhost:9000/ cypress","e2e-upd":"yarn lint && jest e2e -u --config e2e/jest.config.js","dev":"webpack-dev-server --config webpack.config.e2e.js","test":"yarn lint && jest src/.*","test:watch":"jest --watch src","prepublishOnly":"yarn build && yarn test","prepare":"yarn build"},"repository":{"type":"git","url":"https://github.com/knsv/mermaid"},"author":"Knut Sveidqvist","license":"MIT","standard":{"ignore":["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],"globals":["page"]},"dependencies":{"@braintree/sanitize-url":"^3.1.0","d3":"^5.7.0","dagre":"^0.8.4","dagre-d3":"^0.6.4","entity-decode":"^2.0.2","graphlib":"^2.1.7","he":"^1.2.0","khroma":"^1.1.0","minify":"^4.1.1","moment-mini":"^2.22.1","stylis":"^3.5.2"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.8.4","@babel/register":"^7.0.0","@percy/cypress":"*","babel-core":"7.0.0-bridge.0","babel-eslint":"^10.1.0","babel-jest":"^24.9.0","babel-loader":"^8.0.4","coveralls":"^3.0.2","css-loader":"^2.0.1","css-to-string-loader":"^0.1.3","cypress":"4.0.1","documentation":"^12.0.1","eslint":"^6.3.0","eslint-config-prettier":"^6.3.0","eslint-plugin-prettier":"^3.1.0","husky":"^1.2.1","identity-obj-proxy":"^3.0.0","jest":"^24.9.0","jison":"^0.4.18","moment":"^2.23.0","node-sass":"^5.0.0","prettier":"^1.18.2","puppeteer":"^1.17.0","sass-loader":"^7.1.0","start-server-and-test":"^1.10.6","terser-webpack-plugin":"^2.2.2","webpack":"^4.41.2","webpack-bundle-analyzer":"^3.7.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.4.1","webpack-node-externals":"^1.7.2","yarn-upgrade-all":"^0.5.0"},"files":["dist"],"yarn-upgrade-all":{"ignore":["babel-core"]},"sideEffects":["**/*.css","**/*.scss"],"husky":{"hooks":{"pre-push":"yarn test"}}}'
);
},
'./src/config.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'defaultConfig', function () {
return c;
}),
i.d(t, 'updateCurrentConfig', function () {
return g;
}),
i.d(t, 'setSiteConfig', function () {
return f;
}),
i.d(t, 'saveConfigFromInitilize', function () {
return p;
}),
i.d(t, 'updateSiteConfig', function () {
return m;
}),
i.d(t, 'getSiteConfig', function () {
return _;
}),
i.d(t, 'setConfig', function () {
return b;
}),
i.d(t, 'getConfig', function () {
return v;
}),
i.d(t, 'sanitize', function () {
return y;
}),
i.d(t, 'addDirective', function () {
return w;
}),
i.d(t, 'reset', function () {
return C;
});
var n = i('./src/utils.js'),
r = i('./src/logger.js'),
s = i('./src/themes/index.js'),
o = i('./src/defaultConfig.js');
function a(e) {
return (a =
'function' == typeof Symbol &&
'symbol' == typeof Symbol.iterator
? function (e) {
return typeof e;
}
: function (e) {
return e &&
'function' == typeof Symbol &&
e.constructor === Symbol &&
e !== Symbol.prototype
? 'symbol'
: typeof e;
})(e);
}
var l,
c = Object.freeze(o.default),
d = Object(n.assignWithDepth)({}, c),
h = [],
u = Object(n.assignWithDepth)({}, c),
g = function (e, t) {
for (
var i = Object(n.assignWithDepth)({}, e), r = {}, o = 0;
o < t.length;
o++
) {
var a = t[o];
y(a), (r = Object(n.assignWithDepth)(r, a));
}
if (((i = Object(n.assignWithDepth)(i, r)), r.theme)) {
var c = Object(n.assignWithDepth)({}, l),
d = Object(n.assignWithDepth)(
c.themeVariables || {},
r.themeVariables
);
i.themeVariables = s.default[i.theme].getThemeVariables(
d
);
}
return (u = i), i;
},
f = function (e) {
return (
(d = Object(n.assignWithDepth)({}, c)),
(d = Object(n.assignWithDepth)(d, e)),
e.theme &&
(d.themeVariables = s.default[
e.theme
].getThemeVariables(e.themeVariables)),
(u = g(d, h)),
d
);
},
p = function (e) {
l = Object(n.assignWithDepth)({}, e);
},
m = function (e) {
return (d = Object(n.assignWithDepth)(d, e)), g(d, h), d;
},
_ = function () {
return Object(n.assignWithDepth)({}, d);
},
b = function (e) {
return Object(n.assignWithDepth)(u, e), v();
},
v = function () {
return Object(n.assignWithDepth)({}, u);
},
y = function e(t) {
Object.keys(d.secure).forEach(function (e) {
void 0 !== t[d.secure[e]] &&
(r.log.debug(
'Denied attempt to modify a secure key '.concat(
d.secure[e]
),
t[d.secure[e]]
),
delete t[d.secure[e]]);
}),
Object.keys(t).forEach(function (e) {
0 === e.indexOf('__') && delete t[e];
}),
Object.keys(t).forEach(function (i) {
'string' == typeof t[i] &&
(t[i].indexOf('<') > -1 ||
t[i].indexOf('>') > -1 ||
t[i].indexOf('url(data:') > -1) &&
delete t[i],
'object' === a(t[i]) && e(t[i]);
});
},
w = function (e) {
e.fontFamily &&
((e.themeVariables && e.themeVariables.fontFamily) ||
(e.themeVariables = { fontFamily: e.fontFamily })),
h.push(e),
g(d, h);
},
C = function () {
g(d, (h = []));
};
},
'./src/dagre-wrapper/clusters.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'insertCluster', function () {
return d;
}),
i.d(t, 'getClusterTitleWidth', function () {
return h;
}),
i.d(t, 'clear', function () {
return u;
}),
i.d(t, 'positionCluster', function () {
return g;
});
var n = i('./src/dagre-wrapper/intersect/intersect-rect.js'),
r = i('./src/logger.js'),
s = i('./src/dagre-wrapper/createLabel.js'),
o = i('d3'),
a = i('./src/config.js'),
l = {
rect: function (e, t) {
r.log.trace('Creating subgraph rect for ', t.id, t);
var i = e
.insert('g')
.attr(
'class',
'cluster' + (t.class ? ' ' + t.class : '')
)
.attr('id', t.id),
l = i.insert('rect', ':first-child'),
c = i.insert('g').attr('class', 'cluster-label'),
d = c
.node()
.appendChild(
Object(s.default)(
t.labelText,
t.labelStyle,
void 0,
!0
)
),
h = d.getBBox();
if (Object(a.getConfig)().flowchart.htmlLabels) {
var u = d.children[0],
g = Object(o.select)(d);
(h = u.getBoundingClientRect()),
g.attr('width', h.width),
g.attr('height', h.height);
}
var f = 0 * t.padding,
p = f / 2;
r.log.trace('Data ', t, JSON.stringify(t)),
l
.attr('style', t.style)
.attr('rx', t.rx)
.attr('ry', t.ry)
.attr('x', t.x - t.width / 2 - p)
.attr('y', t.y - t.height / 2 - p)
.attr('width', t.width + f)
.attr('height', t.height + f),
c.attr(
'transform',
'translate(' +
(t.x - h.width / 2) +
', ' +
(t.y - t.height / 2 + t.padding / 3) +
')'
);
var m = l.node().getBBox();
return (
(t.width = m.width),
(t.height = m.height),
(t.intersect = function (e) {
return Object(n.default)(t, e);
}),
i
);
},
roundedWithTitle: function (e, t) {
var i = e
.insert('g')
.attr('class', t.classes)
.attr('id', t.id),
r = i.insert('rect', ':first-child'),
l = i.insert('g').attr('class', 'cluster-label'),
c = i.append('rect'),
d = l
.node()
.appendChild(
Object(s.default)(
t.labelText,
t.labelStyle,
void 0,
!0
)
),
h = d.getBBox();
if (Object(a.getConfig)().flowchart.htmlLabels) {
var u = d.children[0],
g = Object(o.select)(d);
(h = u.getBoundingClientRect()),
g.attr('width', h.width),
g.attr('height', h.height);
}
h = d.getBBox();
var f = 0 * t.padding,
p = f / 2;
r
.attr('class', 'outer')
.attr('x', t.x - t.width / 2 - p)
.attr('y', t.y - t.height / 2 - p)
.attr('width', t.width + f)
.attr('height', t.height + f),
c
.attr('class', 'inner')
.attr('x', t.x - t.width / 2 - p)
.attr('y', t.y - t.height / 2 - p + h.height - 1)
.attr('width', t.width + f)
.attr('height', t.height + f - h.height - 3),
l.attr(
'transform',
'translate(' +
(t.x - h.width / 2) +
', ' +
(t.y -
t.height / 2 -
t.padding / 3 +
(Object(a.getConfig)().flowchart.htmlLabels
? 5
: 3)) +
')'
);
var m = r.node().getBBox();
return (
(t.width = m.width),
(t.height = m.height),
(t.intersect = function (e) {
return Object(n.default)(t, e);
}),
i
);
},
noteGroup: function (e, t) {
var i = e
.insert('g')
.attr('class', 'note-cluster')
.attr('id', t.id),
r = i.insert('rect', ':first-child'),
s = 0 * t.padding,
o = s / 2;
r.attr('rx', t.rx)
.attr('ry', t.ry)
.attr('x', t.x - t.width / 2 - o)
.attr('y', t.y - t.height / 2 - o)
.attr('width', t.width + s)
.attr('height', t.height + s)
.attr('fill', 'none');
var a = r.node().getBBox();
return (
(t.width = a.width),
(t.height = a.height),
(t.intersect = function (e) {
return Object(n.default)(t, e);
}),
i
);
},
divider: function (e, t) {
var i = e
.insert('g')
.attr('class', t.classes)
.attr('id', t.id),
r = i.insert('rect', ':first-child'),
s = 0 * t.padding,
o = s / 2;
r.attr('class', 'divider')
.attr('x', t.x - t.width / 2 - o)
.attr('y', t.y - t.height / 2)
.attr('width', t.width + s)
.attr('height', t.height + s);
var a = r.node().getBBox();
return (
(t.width = a.width),
(t.height = a.height),
(t.intersect = function (e) {
return Object(n.default)(t, e);
}),
i
);
},
},
c = {},
d = function (e, t) {
r.log.trace('Inserting cluster');
var i = t.shape || 'rect';
c[t.id] = l[i](e, t);
},
h = function (e, t) {
var i = Object(s.default)(
t.labelText,
t.labelStyle,
void 0,
!0
);
e.node().appendChild(i);
var n = i.getBBox().width;
return e.node().removeChild(i), n;
},
u = function () {
c = {};
},
g = function (e) {
r.log.info('Position cluster'),
c[e.id].attr(
'transform',
'translate(' + e.x + ', ' + e.y + ')'
);
};
},
'./src/dagre-wrapper/createLabel.js': function (e, t, i) {
'use strict';
i.r(t);
var n = i('d3'),
r = i('./src/logger.js'),
s = i('./src/config.js');
t.default = function (e, t, i, o) {
var a,
l,
c,
d,
h,
u,
g = e || '';
if (Object(s.getConfig)().flowchart.htmlLabels)
return (
(g = g.replace(/\\n|\n/g, '
')),
r.log.info('vertexText' + g),
(a = {
isNode: o,
label: g.replace(/fa[lrsb]?:fa-[\w-]+/g, function (e) {
return ""
);
}),
labelStyle: t.replace('fill:', 'color:'),
}),
(c = Object(n.select)(
document.createElementNS(
'http://www.w3.org/2000/svg',
'foreignObject'
)
)),
(d = c.append('xhtml:div')),
(h = a.label),
(u = a.isNode ? 'nodeLabel' : 'edgeLabel'),
d.html(
'' +
h +
''
),
(l = a.labelStyle) && d.attr('style', l),
d.style('display', 'inline-block'),
d.style('white-space', 'nowrap'),
d.attr('xmlns', 'http://www.w3.org/1999/xhtml'),
c.node()
);
var f = document.createElementNS(
'http://www.w3.org/2000/svg',
'text'
);
f.setAttribute('style', t.replace('color:', 'fill:'));
var p = [];
p =
'string' == typeof g
? g.split(/\\n|\n|
/gi)
: Array.isArray(g)
? g
: [];
for (var m = 0; m < p.length; m++) {
var _ = document.createElementNS(
'http://www.w3.org/2000/svg',
'tspan'
);
_.setAttributeNS(
'http://www.w3.org/XML/1998/namespace',
'xml:space',
'preserve'
),
_.setAttribute('dy', '1em'),
_.setAttribute('x', '0'),
i
? _.setAttribute('class', 'title-row')
: _.setAttribute('class', 'row'),
(_.textContent = p[m].trim()),
f.appendChild(_);
}
return f;
};
},
'./src/dagre-wrapper/edges.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'clear', function () {
return d;
}),
i.d(t, 'insertEdgeLabel', function () {
return h;
}),
i.d(t, 'positionEdgeLabel', function () {
return u;
}),
i.d(t, 'intersection', function () {
return f;
}),
i.d(t, 'insertEdge', function () {
return p;
});
var n = i('./src/logger.js'),
r = i('./src/dagre-wrapper/createLabel.js'),
s = i('d3'),
o = i('./src/config.js'),
a = i('./src/utils.js'),
l = {},
c = {},
d = function () {
(l = {}), (c = {});
},
h = function (e, t) {
var i = Object(r.default)(t.label, t.labelStyle),
n = e.insert('g').attr('class', 'edgeLabel'),
a = n.insert('g').attr('class', 'label');
a.node().appendChild(i);
var d = i.getBBox();
if (Object(o.getConfig)().flowchart.htmlLabels) {
var h = i.children[0],
u = Object(s.select)(i);
(d = h.getBoundingClientRect()),
u.attr('width', d.width),
u.attr('height', d.height);
}
if (
(a.attr(
'transform',
'translate(' + -d.width / 2 + ', ' + -d.height / 2 + ')'
),
(l[t.id] = n),
(t.width = d.width),
(t.height = d.height),
t.startLabelLeft)
) {
var g = Object(r.default)(t.startLabelLeft, t.labelStyle),
f = e.insert('g').attr('class', 'edgeTerminals'),
p = f.insert('g').attr('class', 'inner');
p.node().appendChild(g);
var m = g.getBBox();
p.attr(
'transform',
'translate(' + -m.width / 2 + ', ' + -m.height / 2 + ')'
),
c[t.id] || (c[t.id] = {}),
(c[t.id].startLeft = f);
}
if (t.startLabelRight) {
var _ = Object(r.default)(
t.startLabelRight,
t.labelStyle
),
b = e.insert('g').attr('class', 'edgeTerminals'),
v = b.insert('g').attr('class', 'inner');
b.node().appendChild(_), v.node().appendChild(_);
var y = _.getBBox();
v.attr(
'transform',
'translate(' + -y.width / 2 + ', ' + -y.height / 2 + ')'
),
c[t.id] || (c[t.id] = {}),
(c[t.id].startRight = b);
}
if (t.endLabelLeft) {
var w = Object(r.default)(t.endLabelLeft, t.labelStyle),
C = e.insert('g').attr('class', 'edgeTerminals'),
S = C.insert('g').attr('class', 'inner');
S.node().appendChild(w);
var k = w.getBBox();
S.attr(
'transform',
'translate(' + -k.width / 2 + ', ' + -k.height / 2 + ')'
),
C.node().appendChild(w),
c[t.id] || (c[t.id] = {}),
(c[t.id].endLeft = C);
}
if (t.endLabelRight) {
var x = Object(r.default)(t.endLabelRight, t.labelStyle),
L = e.insert('g').attr('class', 'edgeTerminals'),
M = L.insert('g').attr('class', 'inner');
M.node().appendChild(x);
var D = x.getBBox();
M.attr(
'transform',
'translate(' + -D.width / 2 + ', ' + -D.height / 2 + ')'
),
L.node().appendChild(x),
c[t.id] || (c[t.id] = {}),
(c[t.id].endRight = L);
}
},
u = function (e, t) {
n.log.info('Moving label', e.id, e.label, l[e.id]);
var i = t.updatedPath ? t.updatedPath : t.originalPath;
if (e.label) {
var r = l[e.id],
s = e.x,
o = e.y;
if (i) {
var d = a.default.calcLabelPosition(i);
n.log.info(
'Moving label from (',
s,
',',
o,
') to (',
d.x,
',',
d.y,
')'
);
}
r.attr('transform', 'translate(' + s + ', ' + o + ')');
}
if (e.startLabelLeft) {
var h = c[e.id].startLeft,
u = e.x,
g = e.y;
if (i) {
var f = a.default.calcTerminalLabelPosition(
0,
'start_left',
i
);
(u = f.x), (g = f.y);
}
h.attr('transform', 'translate(' + u + ', ' + g + ')');
}
if (e.startLabelRight) {
var p = c[e.id].startRight,
m = e.x,
_ = e.y;
if (i) {
var b = a.default.calcTerminalLabelPosition(
0,
'start_right',
i
);
(m = b.x), (_ = b.y);
}
p.attr('transform', 'translate(' + m + ', ' + _ + ')');
}
if (e.endLabelLeft) {
var v = c[e.id].endLeft,
y = e.x,
w = e.y;
if (i) {
var C = a.default.calcTerminalLabelPosition(
0,
'end_left',
i
);
(y = C.x), (w = C.y);
}
v.attr('transform', 'translate(' + y + ', ' + w + ')');
}
if (e.endLabelRight) {
var S = c[e.id].endRight,
k = e.x,
x = e.y;
if (i) {
var L = a.default.calcTerminalLabelPosition(
0,
'end_right',
i
);
(k = L.x), (x = L.y);
}
S.attr('transform', 'translate(' + k + ', ' + x + ')');
}
},
g = function (e, t) {
var i = e.x,
n = e.y,
r = Math.abs(t.x - i),
s = Math.abs(t.y - n),
o = e.width / 2,
a = e.height / 2;
return r >= o || s >= a;
},
f = function (e, t, i) {
n.log.warn('intersection calc o:', t, ' i:', i, e);
var r = e.x,
s = e.y,
o = Math.abs(r - i.x),
a = e.width / 2,
l = i.x < t.x ? a - o : a + o,
c = e.height / 2,
d = r - a,
h = r + a,
u = s - c,
g = s + c;
if (t.x === d || t.x === h || t.y === u || t.y === g)
return n.log.warn('calc equals on edge'), t;
var f = Math.abs(t.y - i.y),
p = Math.abs(t.x - i.x);
if (Math.abs(s - t.y) * a > Math.abs(r - t.x) * c) {
var m = i.y < t.y ? t.y - c - s : s - c - t.y;
l = (p * m) / f;
var _ = {
x: i.x < t.x ? i.x + p - l : i.x - l,
y: i.y < t.y ? i.y + f - m : i.y - m,
};
return (
n.log.warn(
'topp/bott calc, Q '
.concat(f, ', q ')
.concat(m, ', R ')
.concat(p, ', r ')
.concat(l),
_
),
_
);
}
var b = (b =
(f * (l = i.x < t.x ? t.x - a - r : r - a - t.x)) / p);
return (
n.log.warn(
'sides calc, Q '
.concat(f, ', q ')
.concat(b, ', R ')
.concat(p, ', r ')
.concat(l),
{
x: i.x < t.x ? i.x + p - l : i.x + o - a,
y: i.y < t.y ? i.y + b : i.y - b,
}
),
{
x: i.x < t.x ? i.x + p - l : i.x + o - a,
y: i.y < t.y ? i.y + b : i.y - b,
}
);
},
p = function (e, t, i, r, a, l) {
var c = i.points,
d = !1,
h = l.node(t.v),
u = l.node(t.w);
if (
(u.intersect &&
h.intersect &&
((c = c.slice(1, i.points.length - 1)).unshift(
h.intersect(c[0])
),
n.log.info(
'Last point',
c[c.length - 1],
u,
u.intersect(c[c.length - 1])
),
c.push(u.intersect(c[c.length - 1]))),
i.toCluster)
) {
var p;
n.log.trace('edge', i),
n.log.trace('to cluster', r[i.toCluster]),
(c = []);
var m = !1;
i.points.forEach(function (e) {
var t = r[i.toCluster].node;
if (g(t, e) || m) m || c.push(e);
else {
n.log.trace('inside', i.toCluster, e, p);
var s = f(t, p, e),
o = !1;
c.forEach(function (e) {
o = o || (e.x === s.x && e.y === s.y);
}),
c.find(function (e) {
return e.x === s.x && e.y === s.y;
})
? n.log.warn('no intersect', s, c)
: c.push(s),
(m = !0);
}
p = e;
}),
(d = !0);
}
if (i.fromCluster) {
n.log.trace('edge', i),
n.log.warn('from cluster', r[i.fromCluster]);
for (
var _, b = [], v = !1, y = c.length - 1;
y >= 0;
y--
) {
var w = c[y],
C = r[i.fromCluster].node;
if (g(C, w) || v)
n.log.trace('Outside point', w), v || b.unshift(w);
else {
n.log.warn('inside', i.fromCluster, w, C);
var S = f(C, _, w);
b.unshift(S), (v = !0);
}
_ = w;
}
(c = b), (d = !0);
}
var k,
x = c.filter(function (e) {
return !Number.isNaN(e.y);
});
k =
(('graph' === a || 'flowchart' === a) && i.curve) ||
s.curveBasis;
var L,
M = Object(s.line)()
.x(function (e) {
return e.x;
})
.y(function (e) {
return e.y;
})
.curve(k);
switch (i.thickness) {
case 'normal':
L = 'edge-thickness-normal';
break;
case 'thick':
L = 'edge-thickness-thick';
break;
default:
L = '';
}
switch (i.pattern) {
case 'solid':
L += ' edge-pattern-solid';
break;
case 'dotted':
L += ' edge-pattern-dotted';
break;
case 'dashed':
L += ' edge-pattern-dashed';
}
var D = e
.append('path')
.attr('d', M(x))
.attr('id', i.id)
.attr(
'class',
' ' + L + (i.classes ? ' ' + i.classes : '')
)
.attr('style', i.style),
N = '';
switch (
(Object(o.getConfig)().state.arrowMarkerAbsolute &&
(N = (N = (N =
window.location.protocol +
'//' +
window.location.host +
window.location.pathname +
window.location.search).replace(
/\(/g,
'\\('
)).replace(/\)/g, '\\)')),
n.log.info('arrowTypeStart', i.arrowTypeStart),
n.log.info('arrowTypeEnd', i.arrowTypeEnd),
i.arrowTypeStart)
) {
case 'arrow_cross':
D.attr(
'marker-start',
'url(' + N + '#' + a + '-crossStart)'
);
break;
case 'arrow_point':
D.attr(
'marker-start',
'url(' + N + '#' + a + '-pointStart)'
);
break;
case 'arrow_barb':
D.attr(
'marker-start',
'url(' + N + '#' + a + '-barbStart)'
);
break;
case 'arrow_circle':
D.attr(
'marker-start',
'url(' + N + '#' + a + '-circleStart)'
);
break;
case 'aggregation':
D.attr(
'marker-start',
'url(' + N + '#' + a + '-aggregationStart)'
);
break;
case 'extension':
D.attr(
'marker-start',
'url(' + N + '#' + a + '-extensionStart)'
);
break;
case 'composition':
D.attr(
'marker-start',
'url(' + N + '#' + a + '-compositionStart)'
);
break;
case 'dependency':
D.attr(
'marker-start',
'url(' + N + '#' + a + '-dependencyStart)'
);
}
switch (i.arrowTypeEnd) {
case 'arrow_cross':
D.attr(
'marker-end',
'url(' + N + '#' + a + '-crossEnd)'
);
break;
case 'arrow_point':
D.attr(
'marker-end',
'url(' + N + '#' + a + '-pointEnd)'
);
break;
case 'arrow_barb':
D.attr(
'marker-end',
'url(' + N + '#' + a + '-barbEnd)'
);
break;
case 'arrow_circle':
D.attr(
'marker-end',
'url(' + N + '#' + a + '-circleEnd)'
);
break;
case 'aggregation':
D.attr(
'marker-end',
'url(' + N + '#' + a + '-aggregationEnd)'
);
break;
case 'extension':
D.attr(
'marker-end',
'url(' + N + '#' + a + '-extensionEnd)'
);
break;
case 'composition':
D.attr(
'marker-end',
'url(' + N + '#' + a + '-compositionEnd)'
);
break;
case 'dependency':
D.attr(
'marker-end',
'url(' + N + '#' + a + '-dependencyEnd)'
);
}
var E = {};
return (
d && (E.updatedPath = c), (E.originalPath = i.points), E
);
};
},
'./src/dagre-wrapper/index.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'render', function () {
return p;
});
var n = i('dagre'),
r = i.n(n),
s = i('graphlib'),
o = i.n(s),
a = i('./src/dagre-wrapper/markers.js'),
l = i('./src/dagre-wrapper/shapes/util.js'),
c = i('./src/dagre-wrapper/mermaid-graphlib.js'),
d = i('./src/dagre-wrapper/nodes.js'),
h = i('./src/dagre-wrapper/clusters.js'),
u = i('./src/dagre-wrapper/edges.js'),
g = i('./src/logger.js'),
f = function e(t, i, n, s) {
g.log.info(
'Graph in recursive render: XXX',
o.a.json.write(i),
s
);
var a = i.graph().rankdir;
g.log.warn('Dir in recursive render - dir:', a);
var f = t.insert('g').attr('class', 'root');
i.nodes()
? g.log.info('Recursive render XXX', i.nodes())
: g.log.info('No nodes found for', i),
i.edges().length > 0 &&
g.log.info('Recursive edges', i.edge(i.edges()[0]));
var p = f.insert('g').attr('class', 'clusters'),
m = f.insert('g').attr('class', 'edgePaths'),
_ = f.insert('g').attr('class', 'edgeLabels'),
b = f.insert('g').attr('class', 'nodes');
return (
i.nodes().forEach(function (t) {
var r = i.node(t);
if (void 0 !== s) {
var o = JSON.parse(JSON.stringify(s.clusterData));
g.log.info(
'Setting data for cluster XXX (',
t,
') ',
o,
s
),
i.setNode(s.id, o),
i.parent(t) ||
(g.log.warn('Setting parent', t, s.id),
i.setParent(t, s.id, o));
}
if (
(g.log.info(
'(Insert) Node XXX' +
t +
': ' +
JSON.stringify(i.node(t))
),
r && r.clusterNode)
) {
g.log.info('Cluster identified', t, r, i.node(t));
var h = e(b, r.graph, n, i.node(t));
Object(l.updateNodeBounds)(r, h),
Object(d.setNodeElem)(h, r),
g.log.warn('Recursive render complete', h, r);
} else i.children(t).length > 0 ? (g.log.info('Cluster - the non recursive path XXX', t, r.id, r, i), g.log.info(Object(c.findNonClusterChild)(r.id, i)), (c.clusterDb[r.id] = { id: Object(c.findNonClusterChild)(r.id, i), node: r })) : (g.log.info('Node - the non recursive path', t, r.id, r), Object(d.insertNode)(b, i.node(t), a));
}),
i.edges().forEach(function (e) {
var t = i.edge(e.v, e.w, e.name);
g.log.info(
'Edge ' +
e.v +
' -> ' +
e.w +
': ' +
JSON.stringify(e)
),
g.log.info(
'Edge ' + e.v + ' -> ' + e.w + ': ',
e,
' ',
JSON.stringify(i.edge(e))
),
g.log.info(
'Fix',
c.clusterDb,
'ids:',
e.v,
e.w,
'Translateing: ',
c.clusterDb[e.v],
c.clusterDb[e.w]
),
Object(u.insertEdgeLabel)(_, t);
}),
i.edges().forEach(function (e) {
g.log.info(
'Edge ' +
e.v +
' -> ' +
e.w +
': ' +
JSON.stringify(e)
);
}),
g.log.info(
'#############################################'
),
g.log.info(
'### Layout ###'
),
g.log.info(
'#############################################'
),
g.log.info(i),
r.a.layout(i),
g.log.info('Graph after layout:', o.a.json.write(i)),
Object(c.sortNodesByHierarchy)(i).forEach(function (e) {
var t = i.node(e);
g.log.info(
'Position ' + e + ': ' + JSON.stringify(i.node(e))
),
g.log.info(
'Position ' + e + ': (' + t.x,
',' + t.y,
') width: ',
t.width,
' height: ',
t.height
),
t && t.clusterNode
? Object(d.positionNode)(t)
: i.children(e).length > 0
? (Object(h.insertCluster)(p, t),
(c.clusterDb[t.id].node = t))
: Object(d.positionNode)(t);
}),
i.edges().forEach(function (e) {
var t = i.edge(e);
g.log.info(
'Edge ' +
e.v +
' -> ' +
e.w +
': ' +
JSON.stringify(t),
t
);
var r = Object(u.insertEdge)(
m,
e,
t,
c.clusterDb,
n,
i
);
Object(u.positionEdgeLabel)(t, r);
}),
f
);
},
p = function (e, t, i, n, r) {
Object(a.default)(e, i, n, r),
Object(d.clear)(),
Object(u.clear)(),
Object(h.clear)(),
Object(c.clear)(),
g.log.warn('Graph at first:', o.a.json.write(t)),
Object(c.adjustClustersAndEdges)(t),
g.log.warn('Graph after:', o.a.json.write(t)),
f(e, t, n);
};
},
'./src/dagre-wrapper/intersect/index.js': function (e, t, i) {
'use strict';
i.r(t);
var n = i('./src/dagre-wrapper/intersect/intersect-node.js'),
r = i.n(n),
s = i('./src/dagre-wrapper/intersect/intersect-circle.js'),
o = i('./src/dagre-wrapper/intersect/intersect-ellipse.js'),
a = i('./src/dagre-wrapper/intersect/intersect-polygon.js'),
l = i('./src/dagre-wrapper/intersect/intersect-rect.js');
t.default = {
node: r.a,
circle: s.default,
ellipse: o.default,
polygon: a.default,
rect: l.default,
};
},
'./src/dagre-wrapper/intersect/intersect-circle.js': function (
e,
t,
i
) {
'use strict';
i.r(t);
var n = i('./src/dagre-wrapper/intersect/intersect-ellipse.js');
t.default = function (e, t, i) {
return Object(n.default)(e, t, t, i);
};
},
'./src/dagre-wrapper/intersect/intersect-ellipse.js': function (
e,
t,
i
) {
'use strict';
i.r(t),
(t.default = function (e, t, i, n) {
var r = e.x,
s = e.y,
o = r - n.x,
a = s - n.y,
l = Math.sqrt(t * t * a * a + i * i * o * o),
c = Math.abs((t * i * o) / l);
n.x < r && (c = -c);
var d = Math.abs((t * i * a) / l);
return n.y < s && (d = -d), { x: r + c, y: s + d };
});
},
'./src/dagre-wrapper/intersect/intersect-line.js': function (
e,
t,
i
) {
'use strict';
function n(e, t) {
return e * t > 0;
}
i.r(t),
(t.default = function (e, t, i, r) {
var s, o, a, l, c, d, h, u, g, f, p, m, _;
if (
((s = t.y - e.y),
(a = e.x - t.x),
(c = t.x * e.y - e.x * t.y),
(g = s * i.x + a * i.y + c),
(f = s * r.x + a * r.y + c),
!(
(0 !== g && 0 !== f && n(g, f)) ||
((o = r.y - i.y),
(l = i.x - r.x),
(d = r.x * i.y - i.x * r.y),
(h = o * e.x + l * e.y + d),
(u = o * t.x + l * t.y + d),
(0 !== h && 0 !== u && n(h, u)) ||
0 == (p = s * l - o * a))
))
)
return (
(m = Math.abs(p / 2)),
{
x:
(_ = a * d - l * c) < 0 ? (_ - m) / p : (_ + m) / p,
y:
(_ = o * c - s * d) < 0 ? (_ - m) / p : (_ + m) / p,
}
);
});
},
'./src/dagre-wrapper/intersect/intersect-node.js': function (
e,
t
) {
e.exports = function (e, t) {
return e.intersect(t);
};
},
'./src/dagre-wrapper/intersect/intersect-polygon.js': function (
e,
t,
i
) {
'use strict';
i.r(t);
var n = i('./src/dagre-wrapper/intersect/intersect-line.js');
t.default = function (e, t, i) {
var r = e.x,
s = e.y,
o = [],
a = Number.POSITIVE_INFINITY,
l = Number.POSITIVE_INFINITY;
'function' == typeof t.forEach
? t.forEach(function (e) {
(a = Math.min(a, e.x)), (l = Math.min(l, e.y));
})
: ((a = Math.min(a, t.x)), (l = Math.min(l, t.y)));
for (
var c = r - e.width / 2 - a,
d = s - e.height / 2 - l,
h = 0;
h < t.length;
h++
) {
var u = t[h],
g = t[h < t.length - 1 ? h + 1 : 0],
f = Object(n.default)(
e,
i,
{ x: c + u.x, y: d + u.y },
{ x: c + g.x, y: d + g.y }
);
f && o.push(f);
}
return o.length
? (o.length > 1 &&
o.sort(function (e, t) {
var n = e.x - i.x,
r = e.y - i.y,
s = Math.sqrt(n * n + r * r),
o = t.x - i.x,
a = t.y - i.y,
l = Math.sqrt(o * o + a * a);
return s < l ? -1 : s === l ? 0 : 1;
}),
o[0])
: e;
};
},
'./src/dagre-wrapper/intersect/intersect-rect.js': function (
e,
t,
i
) {
'use strict';
i.r(t),
(t.default = function (e, t) {
var i,
n,
r = e.x,
s = e.y,
o = t.x - r,
a = t.y - s,
l = e.width / 2,
c = e.height / 2;
return (
Math.abs(a) * l > Math.abs(o) * c
? (a < 0 && (c = -c),
(i = 0 === a ? 0 : (c * o) / a),
(n = c))
: (o < 0 && (l = -l),
(i = l),
(n = 0 === o ? 0 : (l * a) / o)),
{ x: r + i, y: s + n }
);
});
},
'./src/dagre-wrapper/markers.js': function (e, t, i) {
'use strict';
i.r(t);
var n = i('./src/logger.js'),
r = {
extension: function (e, t, i) {
n.log.trace('Making markers for ', i),
e
.append('defs')
.append('marker')
.attr('id', t + '-extensionStart')
.attr('class', 'marker extension ' + t)
.attr('refX', 0)
.attr('refY', 7)
.attr('markerWidth', 190)
.attr('markerHeight', 240)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 1,7 L18,13 V 1 Z'),
e
.append('defs')
.append('marker')
.attr('id', t + '-extensionEnd')
.attr('class', 'marker extension ' + t)
.attr('refX', 19)
.attr('refY', 7)
.attr('markerWidth', 20)
.attr('markerHeight', 28)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 1,1 V 13 L18,7 Z');
},
composition: function (e, t) {
e
.append('defs')
.append('marker')
.attr('id', t + '-compositionStart')
.attr('class', 'marker composition ' + t)
.attr('refX', 0)
.attr('refY', 7)
.attr('markerWidth', 190)
.attr('markerHeight', 240)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'),
e
.append('defs')
.append('marker')
.attr('id', t + '-compositionEnd')
.attr('class', 'marker composition ' + t)
.attr('refX', 19)
.attr('refY', 7)
.attr('markerWidth', 20)
.attr('markerHeight', 28)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');
},
aggregation: function (e, t) {
e
.append('defs')
.append('marker')
.attr('id', t + '-aggregationStart')
.attr('class', 'marker aggregation ' + t)
.attr('refX', 0)
.attr('refY', 7)
.attr('markerWidth', 190)
.attr('markerHeight', 240)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'),
e
.append('defs')
.append('marker')
.attr('id', t + '-aggregationEnd')
.attr('class', 'marker aggregation ' + t)
.attr('refX', 19)
.attr('refY', 7)
.attr('markerWidth', 20)
.attr('markerHeight', 28)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');
},
dependency: function (e, t) {
e
.append('defs')
.append('marker')
.attr('id', t + '-dependencyStart')
.attr('class', 'marker dependency ' + t)
.attr('refX', 0)
.attr('refY', 7)
.attr('markerWidth', 190)
.attr('markerHeight', 240)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z'),
e
.append('defs')
.append('marker')
.attr('id', t + '-dependencyEnd')
.attr('class', 'marker dependency ' + t)
.attr('refX', 19)
.attr('refY', 7)
.attr('markerWidth', 20)
.attr('markerHeight', 28)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');
},
point: function (e, t) {
e
.append('marker')
.attr('id', t + '-pointEnd')
.attr('class', 'marker ' + t)
.attr('viewBox', '0 0 10 10')
.attr('refX', 9)
.attr('refY', 5)
.attr('markerUnits', 'userSpaceOnUse')
.attr('markerWidth', 12)
.attr('markerHeight', 12)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 0 0 L 10 5 L 0 10 z')
.attr('class', 'arrowMarkerPath')
.style('stroke-width', 1)
.style('stroke-dasharray', '1,0'),
e
.append('marker')
.attr('id', t + '-pointStart')
.attr('class', 'marker ' + t)
.attr('viewBox', '0 0 10 10')
.attr('refX', 0)
.attr('refY', 5)
.attr('markerUnits', 'userSpaceOnUse')
.attr('markerWidth', 12)
.attr('markerHeight', 12)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 0 5 L 10 10 L 10 0 z')
.attr('class', 'arrowMarkerPath')
.style('stroke-width', 1)
.style('stroke-dasharray', '1,0');
},
circle: function (e, t) {
e
.append('marker')
.attr('id', t + '-circleEnd')
.attr('class', 'marker ' + t)
.attr('viewBox', '0 0 10 10')
.attr('refX', 11)
.attr('refY', 5)
.attr('markerUnits', 'userSpaceOnUse')
.attr('markerWidth', 11)
.attr('markerHeight', 11)
.attr('orient', 'auto')
.append('circle')
.attr('cx', '5')
.attr('cy', '5')
.attr('r', '5')
.attr('class', 'arrowMarkerPath')
.style('stroke-width', 1)
.style('stroke-dasharray', '1,0'),
e
.append('marker')
.attr('id', t + '-circleStart')
.attr('class', 'marker ' + t)
.attr('viewBox', '0 0 10 10')
.attr('refX', -1)
.attr('refY', 5)
.attr('markerUnits', 'userSpaceOnUse')
.attr('markerWidth', 11)
.attr('markerHeight', 11)
.attr('orient', 'auto')
.append('circle')
.attr('cx', '5')
.attr('cy', '5')
.attr('r', '5')
.attr('class', 'arrowMarkerPath')
.style('stroke-width', 1)
.style('stroke-dasharray', '1,0');
},
cross: function (e, t) {
e
.append('marker')
.attr('id', t + '-crossEnd')
.attr('class', 'marker cross ' + t)
.attr('viewBox', '0 0 11 11')
.attr('refX', 12)
.attr('refY', 5.2)
.attr('markerUnits', 'userSpaceOnUse')
.attr('markerWidth', 11)
.attr('markerHeight', 11)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9')
.attr('class', 'arrowMarkerPath')
.style('stroke-width', 2)
.style('stroke-dasharray', '1,0'),
e
.append('marker')
.attr('id', t + '-crossStart')
.attr('class', 'marker cross ' + t)
.attr('viewBox', '0 0 11 11')
.attr('refX', -1)
.attr('refY', 5.2)
.attr('markerUnits', 'userSpaceOnUse')
.attr('markerWidth', 11)
.attr('markerHeight', 11)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9')
.attr('class', 'arrowMarkerPath')
.style('stroke-width', 2)
.style('stroke-dasharray', '1,0');
},
barb: function (e, t) {
e.append('defs')
.append('marker')
.attr('id', t + '-barbEnd')
.attr('refX', 19)
.attr('refY', 7)
.attr('markerWidth', 20)
.attr('markerHeight', 14)
.attr('markerUnits', 'strokeWidth')
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');
},
};
t.default = function (e, t, i, n) {
t.forEach(function (t) {
r[t](e, i, n);
});
};
},
'./src/dagre-wrapper/mermaid-graphlib.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'clusterDb', function () {
return o;
}),
i.d(t, 'clear', function () {
return c;
}),
i.d(t, 'extractDecendants', function () {
return u;
}),
i.d(t, 'validate', function () {
return g;
}),
i.d(t, 'findNonClusterChild', function () {
return f;
}),
i.d(t, 'adjustClustersAndEdges', function () {
return m;
}),
i.d(t, 'extractor', function () {
return _;
}),
i.d(t, 'sortNodesByHierarchy', function () {
return v;
});
var n = i('./src/logger.js'),
r = i('graphlib'),
s = i.n(r),
o = {},
a = {},
l = {},
c = function () {
(a = {}), (l = {}), (o = {});
},
d = function (e, t) {
return (
n.log.debug(
'In isDecendant',
t,
' ',
e,
' = ',
a[t].indexOf(e) >= 0
),
a[t].indexOf(e) >= 0
);
},
h = function e(t, i, r, s) {
n.log.warn(
'Copying children of ',
t,
'root',
s,
'data',
i.node(t),
s
);
var o = i.children(t) || [];
t !== s && o.push(t),
n.log.warn('Copying (nodes) clusterId', t, 'nodes', o),
o.forEach(function (o) {
if (i.children(o).length > 0) e(o, i, r, s);
else {
var l = i.node(o);
n.log.info('cp ', o, ' to ', s, ' with parent ', t),
r.setNode(o, l),
s !== i.parent(o) &&
(n.log.warn('Setting parent', o, i.parent(o)),
r.setParent(o, i.parent(o))),
t !== s && o !== t
? (n.log.debug('Setting parent', o, t),
r.setParent(o, t))
: (n.log.info(
'In copy ',
t,
'root',
s,
'data',
i.node(t),
s
),
n.log.debug(
'Not Setting parent for node=',
o,
'cluster!==rootId',
t !== s,
'node!==clusterId',
o !== t
));
var c = i.edges(o);
n.log.debug('Copying Edges', c),
c.forEach(function (e) {
n.log.info('Edge', e);
var o = i.edge(e.v, e.w, e.name);
n.log.info('Edge data', o, s);
try {
!(function (e, t) {
return (
n.log.info(
'Decendants of ',
t,
' is ',
a[t]
),
n.log.info('Edge is ', e),
e.v !== t &&
e.w !== t &&
(a[t]
? (n.log.info('Here '),
a[t].indexOf(e.v) >= 0 ||
!!d(e.v, t) ||
!!d(e.w, t) ||
a[t].indexOf(e.w) >= 0)
: (n.log.debug(
'Tilt, ',
t,
',not in decendants'
),
!1))
);
})(e, s)
? n.log.info(
'Skipping copy of edge ',
e.v,
'--\x3e',
e.w,
' rootId: ',
s,
' clusterId:',
t
)
: (n.log.info(
'Copying as ',
e.v,
e.w,
o,
e.name
),
r.setEdge(e.v, e.w, o, e.name),
n.log.info(
'newGraph edges ',
r.edges(),
r.edge(r.edges()[0])
));
} catch (e) {
n.log.error(e);
}
});
}
n.log.debug('Removing node', o), i.removeNode(o);
});
},
u = function e(t, i) {
for (
var n = i.children(t), r = [].concat(n), s = 0;
s < n.length;
s++
)
(l[n[s]] = t), (r = r.concat(e(n[s], i)));
return r;
},
g = function (e) {
var t = e.edges();
n.log.trace('Edges: ', t);
for (var i = 0; i < t.length; i++) {
if (e.children(t[i].v).length > 0)
return (
n.log.trace(
'The node ',
t[i].v,
' is part of and edge even though it has children'
),
!1
);
if (e.children(t[i].w).length > 0)
return (
n.log.trace(
'The node ',
t[i].w,
' is part of and edge even though it has children'
),
!1
);
}
return !0;
},
f = function e(t, i) {
n.log.trace('Searching', t);
var r = i.children(t);
if (
(n.log.trace('Searching children of id ', t, r),
r.length < 1)
)
return n.log.trace('This is a valid node', t), t;
for (var s = 0; s < r.length; s++) {
var o = e(r[s], i);
if (o)
return (
n.log.trace('Found replacement for', t, ' => ', o), o
);
}
},
p = function (e) {
return o[e] && o[e].externalConnections && o[e]
? o[e].id
: e;
},
m = function (e, t) {
!e || t > 10
? n.log.debug('Opting out, no graph ')
: (n.log.debug('Opting in, graph '),
e.nodes().forEach(function (t) {
e.children(t).length > 0 &&
(n.log.warn(
'Cluster identified',
t,
' Replacement id in edges: ',
f(t, e)
),
(a[t] = u(t, e)),
(o[t] = { id: f(t, e), clusterData: e.node(t) }));
}),
e.nodes().forEach(function (t) {
var i = e.children(t),
r = e.edges();
i.length > 0
? (n.log.debug('Cluster identified', t, a),
r.forEach(function (e) {
e.v !== t &&
e.w !== t &&
d(e.v, t) ^ d(e.w, t) &&
(n.log.warn(
'Edge: ',
e,
' leaves cluster ',
t
),
n.log.warn(
'Decendants of XXX ',
t,
': ',
a[t]
),
(o[t].externalConnections = !0));
}))
: n.log.debug('Not a cluster ', t, a);
}),
e.edges().forEach(function (t) {
var i = e.edge(t);
n.log.warn(
'Edge ' +
t.v +
' -> ' +
t.w +
': ' +
JSON.stringify(t)
),
n.log.warn(
'Edge ' +
t.v +
' -> ' +
t.w +
': ' +
JSON.stringify(e.edge(t))
);
var r = t.v,
s = t.w;
n.log.warn(
'Fix XXX',
o,
'ids:',
t.v,
t.w,
'Translateing: ',
o[t.v],
' --- ',
o[t.w]
),
(o[t.v] || o[t.w]) &&
(n.log.warn(
'Fixing and trixing - removing XXX',
t.v,
t.w,
t.name
),
(r = p(t.v)),
(s = p(t.w)),
e.removeEdge(t.v, t.w, t.name),
r !== t.v && (i.fromCluster = t.v),
s !== t.w && (i.toCluster = t.w),
n.log.warn(
'Fix Replacing with XXX',
r,
s,
t.name
),
e.setEdge(r, s, i, t.name));
}),
n.log.warn('Adjusted Graph', s.a.json.write(e)),
_(e, 0),
n.log.trace(o));
},
_ = function e(t, i) {
if (
(n.log.warn(
'extractor - ',
i,
s.a.json.write(t),
t.children('D')
),
i > 10)
)
n.log.error('Bailing out');
else {
for (
var r = t.nodes(), a = !1, l = 0;
l < r.length;
l++
) {
var c = r[l],
d = t.children(c);
a = a || d.length > 0;
}
if (a) {
n.log.debug('Nodes = ', r, i);
for (var u = 0; u < r.length; u++) {
var g = r[u];
if (
(n.log.debug(
'Extracting node',
g,
o,
o[g] && !o[g].externalConnections,
!t.parent(g),
t.node(g),
t.children('D'),
' Depth ',
i
),
o[g])
)
if (
!o[g].externalConnections &&
t.children(g) &&
t.children(g).length > 0
) {
n.log.warn(
'Cluster without external connections, without a parent and with children',
g,
i
);
var f = t.graph(),
p = new s.a.Graph({
multigraph: !0,
compound: !0,
})
.setGraph({
rankdir: 'TB' === f.rankdir ? 'LR' : 'TB',
nodesep: 50,
ranksep: 50,
marginx: 8,
marginy: 8,
})
.setDefaultEdgeLabel(function () {
return {};
});
n.log.warn(
'Old graph before copy',
s.a.json.write(t)
),
h(g, t, p, g),
t.setNode(g, {
clusterNode: !0,
id: g,
clusterData: o[g].clusterData,
labelText: o[g].labelText,
graph: p,
}),
n.log.warn(
'New graph after copy node: (',
g,
')',
s.a.json.write(p)
),
n.log.debug(
'Old graph after copy',
s.a.json.write(t)
);
} else
n.log.warn(
'Cluster ** ',
g,
' **not meeting the criteria !externalConnections:',
!o[g].externalConnections,
' no parent: ',
!t.parent(g),
' children ',
t.children(g) && t.children(g).length > 0,
t.children('D'),
i
),
n.log.debug(o);
else n.log.debug('Not a cluster', g, i);
}
(r = t.nodes()), n.log.warn('New list of nodes', r);
for (var m = 0; m < r.length; m++) {
var _ = r[m],
b = t.node(_);
n.log.warn(' Now next level', _, b),
b.clusterNode && e(b.graph, i + 1);
}
} else
n.log.debug('Done, no node has children', t.nodes());
}
},
b = function e(t, i) {
if (0 === i.length) return [];
var n = Object.assign(i);
return (
i.forEach(function (i) {
var r = t.children(i),
s = e(t, r);
n = n.concat(s);
}),
n
);
},
v = function (e) {
return b(e, e.children());
};
},
'./src/dagre-wrapper/nodes.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'insertNode', function () {
return f;
}),
i.d(t, 'setNodeElem', function () {
return p;
}),
i.d(t, 'clear', function () {
return m;
}),
i.d(t, 'positionNode', function () {
return _;
});
var n = i('d3'),
r = i('./src/logger.js'),
s = i('./src/dagre-wrapper/shapes/util.js'),
o = i('./src/config.js'),
a = i('./src/dagre-wrapper/intersect/index.js'),
l = i('./src/dagre-wrapper/createLabel.js'),
c = i('./src/dagre-wrapper/shapes/note.js'),
d = i('./src/diagrams/class/svgDraw.js'),
h = function (e, t, i) {
var n = e
.insert('g')
.attr('class', 'node default')
.attr('id', t.domId || t.id),
r = 70,
o = 10;
'LR' === i && ((r = 10), (o = 70));
var l = n
.append('rect')
.style('stroke', 'black')
.style('fill', 'black')
.attr('x', (-1 * r) / 2)
.attr('y', (-1 * o) / 2)
.attr('width', r)
.attr('height', o)
.attr('class', 'fork-join');
return (
Object(s.updateNodeBounds)(t, l),
(t.height = t.height + t.padding / 2),
(t.width = t.width + t.padding / 2),
(t.intersect = function (e) {
return a.default.rect(t, e);
}),
n
);
},
u = {
question: function (e, t) {
var i = Object(s.labelHelper)(e, t, void 0, !0),
n = i.shapeSvg,
o = i.bbox,
l = o.width + t.padding + (o.height + t.padding),
c = [
{ x: l / 2, y: 0 },
{ x: l, y: -l / 2 },
{ x: l / 2, y: -l },
{ x: 0, y: -l / 2 },
];
r.log.info('Question main (Circle)');
var d = Object(s.insertPolygonShape)(n, l, l, c);
return (
d.attr('style', t.style),
Object(s.updateNodeBounds)(t, d),
(t.intersect = function (e) {
return (
r.log.warn('Intersect called'),
a.default.polygon(t, c, e)
);
}),
n
);
},
rect: function (e, t) {
var i = Object(s.labelHelper)(
e,
t,
'node ' + t.classes,
!0
),
n = i.shapeSvg,
o = i.bbox,
l = i.halfPadding;
r.log.trace('Classes = ', t.classes);
var c = n.insert('rect', ':first-child');
return (
c
.attr('class', 'basic label-container')
.attr('style', t.style)
.attr('rx', t.rx)
.attr('ry', t.ry)
.attr('x', -o.width / 2 - l)
.attr('y', -o.height / 2 - l)
.attr('width', o.width + t.padding)
.attr('height', o.height + t.padding),
Object(s.updateNodeBounds)(t, c),
(t.intersect = function (e) {
return a.default.rect(t, e);
}),
n
);
},
rectWithTitle: function (e, t) {
var i;
i = t.classes ? 'node ' + t.classes : 'node default';
var c = e
.insert('g')
.attr('class', i)
.attr('id', t.domId || t.id),
d = c.insert('rect', ':first-child'),
h = c.insert('line'),
u = c.insert('g').attr('class', 'label'),
g = t.labelText.flat();
r.log.info('Label text', g[0]);
var f,
p = u
.node()
.appendChild(
Object(l.default)(g[0], t.labelStyle, !0, !0)
);
if (Object(o.getConfig)().flowchart.htmlLabels) {
var m = p.children[0],
_ = Object(n.select)(p);
(f = m.getBoundingClientRect()),
_.attr('width', f.width),
_.attr('height', f.height);
}
r.log.info('Text 2', g);
var b = g.slice(1, g.length),
v = p.getBBox(),
y = u
.node()
.appendChild(
Object(l.default)(
b.join('
'),
t.labelStyle,
!0,
!0
)
);
if (Object(o.getConfig)().flowchart.htmlLabels) {
var w = y.children[0],
C = Object(n.select)(y);
(f = w.getBoundingClientRect()),
C.attr('width', f.width),
C.attr('height', f.height);
}
var S = t.padding / 2;
return (
Object(n.select)(y).attr(
'transform',
'translate( ' +
(f.width > v.width ? 0 : (v.width - f.width) / 2) +
', ' +
(v.height + S + 5) +
')'
),
Object(n.select)(p).attr(
'transform',
'translate( ' +
(f.width < v.width ? 0 : -(v.width - f.width) / 2) +
', 0)'
),
(f = u.node().getBBox()),
u.attr(
'transform',
'translate(' +
-f.width / 2 +
', ' +
(-f.height / 2 - S + 3) +
')'
),
d
.attr('class', 'outer title-state')
.attr('x', -f.width / 2 - S)
.attr('y', -f.height / 2 - S)
.attr('width', f.width + t.padding)
.attr('height', f.height + t.padding),
h
.attr('class', 'divider')
.attr('x1', -f.width / 2 - S)
.attr('x2', f.width / 2 + S)
.attr('y1', -f.height / 2 - S + v.height + S)
.attr('y2', -f.height / 2 - S + v.height + S),
Object(s.updateNodeBounds)(t, d),
(t.intersect = function (e) {
return a.default.rect(t, e);
}),
c
);
},
circle: function (e, t) {
var i = Object(s.labelHelper)(e, t, void 0, !0),
n = i.shapeSvg,
o = i.bbox,
l = i.halfPadding,
c = n.insert('circle', ':first-child');
return (
c
.attr('style', t.style)
.attr('rx', t.rx)
.attr('ry', t.ry)
.attr('r', o.width / 2 + l)
.attr('width', o.width + t.padding)
.attr('height', o.height + t.padding),
r.log.info('Circle main'),
Object(s.updateNodeBounds)(t, c),
(t.intersect = function (e) {
return (
r.log.info(
'Circle intersect',
t,
o.width / 2 + l,
e
),
a.default.circle(t, o.width / 2 + l, e)
);
}),
n
);
},
stadium: function (e, t) {
var i = Object(s.labelHelper)(e, t, void 0, !0),
n = i.shapeSvg,
r = i.bbox,
o = r.height + t.padding,
l = r.width + o / 4 + t.padding,
c = n
.insert('rect', ':first-child')
.attr('style', t.style)
.attr('rx', o / 2)
.attr('ry', o / 2)
.attr('x', -l / 2)
.attr('y', -o / 2)
.attr('width', l)
.attr('height', o);
return (
Object(s.updateNodeBounds)(t, c),
(t.intersect = function (e) {
return a.default.rect(t, e);
}),
n
);
},
hexagon: function (e, t) {
var i = Object(s.labelHelper)(e, t, void 0, !0),
n = i.shapeSvg,
r = i.bbox,
o = r.height + t.padding,
l = o / 4,
c = r.width + 2 * l + t.padding,
d = [
{ x: l, y: 0 },
{ x: c - l, y: 0 },
{ x: c, y: -o / 2 },
{ x: c - l, y: -o },
{ x: l, y: -o },
{ x: 0, y: -o / 2 },
],
h = Object(s.insertPolygonShape)(n, c, o, d);
return (
h.attr('style', t.style),
Object(s.updateNodeBounds)(t, h),
(t.intersect = function (e) {
return a.default.polygon(t, d, e);
}),
n
);
},
rect_left_inv_arrow: function (e, t) {
var i = Object(s.labelHelper)(e, t, void 0, !0),
n = i.shapeSvg,
r = i.bbox,
o = r.width + t.padding,
l = r.height + t.padding,
c = [
{ x: -l / 2, y: 0 },
{ x: o, y: 0 },
{ x: o, y: -l },
{ x: -l / 2, y: -l },
{ x: 0, y: -l / 2 },
];
return (
Object(s.insertPolygonShape)(n, o, l, c).attr(
'style',
t.style
),
(t.width = o + l),
(t.height = l),
(t.intersect = function (e) {
return a.default.polygon(t, c, e);
}),
n
);
},
lean_right: function (e, t) {
var i = Object(s.labelHelper)(e, t, void 0, !0),
n = i.shapeSvg,
r = i.bbox,
o = r.width + t.padding,
l = r.height + t.padding,
c = [
{ x: (-2 * l) / 6, y: 0 },
{ x: o - l / 6, y: 0 },
{ x: o + (2 * l) / 6, y: -l },
{ x: l / 6, y: -l },
],
d = Object(s.insertPolygonShape)(n, o, l, c);
return (
d.attr('style', t.style),
Object(s.updateNodeBounds)(t, d),
(t.intersect = function (e) {
return a.default.polygon(t, c, e);
}),
n
);
},
lean_left: function (e, t) {
var i = Object(s.labelHelper)(e, t, void 0, !0),
n = i.shapeSvg,
r = i.bbox,
o = r.width + t.padding,
l = r.height + t.padding,
c = [
{ x: (2 * l) / 6, y: 0 },
{ x: o + l / 6, y: 0 },
{ x: o - (2 * l) / 6, y: -l },
{ x: -l / 6, y: -l },
],
d = Object(s.insertPolygonShape)(n, o, l, c);
return (
d.attr('style', t.style),
Object(s.updateNodeBounds)(t, d),
(t.intersect = function (e) {
return a.default.polygon(t, c, e);
}),
n
);
},
trapezoid: function (e, t) {
var i = Object(s.labelHelper)(e, t, void 0, !0),
n = i.shapeSvg,
r = i.bbox,
o = r.width + t.padding,
l = r.height + t.padding,
c = [
{ x: (-2 * l) / 6, y: 0 },
{ x: o + (2 * l) / 6, y: 0 },
{ x: o - l / 6, y: -l },
{ x: l / 6, y: -l },
],
d = Object(s.insertPolygonShape)(n, o, l, c);
return (
d.attr('style', t.style),
Object(s.updateNodeBounds)(t, d),
(t.intersect = function (e) {
return a.default.polygon(t, c, e);
}),
n
);
},
inv_trapezoid: function (e, t) {
var i = Object(s.labelHelper)(e, t, void 0, !0),
n = i.shapeSvg,
r = i.bbox,
o = r.width + t.padding,
l = r.height + t.padding,
c = [
{ x: l / 6, y: 0 },
{ x: o - l / 6, y: 0 },
{ x: o + (2 * l) / 6, y: -l },
{ x: (-2 * l) / 6, y: -l },
],
d = Object(s.insertPolygonShape)(n, o, l, c);
return (
d.attr('style', t.style),
Object(s.updateNodeBounds)(t, d),
(t.intersect = function (e) {
return a.default.polygon(t, c, e);
}),
n
);
},
rect_right_inv_arrow: function (e, t) {
var i = Object(s.labelHelper)(e, t, void 0, !0),
n = i.shapeSvg,
r = i.bbox,
o = r.width + t.padding,
l = r.height + t.padding,
c = [
{ x: 0, y: 0 },
{ x: o + l / 2, y: 0 },
{ x: o, y: -l / 2 },
{ x: o + l / 2, y: -l },
{ x: 0, y: -l },
],
d = Object(s.insertPolygonShape)(n, o, l, c);
return (
d.attr('style', t.style),
Object(s.updateNodeBounds)(t, d),
(t.intersect = function (e) {
return a.default.polygon(t, c, e);
}),
n
);
},
cylinder: function (e, t) {
var i = Object(s.labelHelper)(e, t, void 0, !0),
n = i.shapeSvg,
r = i.bbox,
o = r.width + t.padding,
l = o / 2,
c = l / (2.5 + o / 50),
d = r.height + c + t.padding,
h =
'M 0,' +
c +
' a ' +
l +
',' +
c +
' 0,0,0 ' +
o +
' 0 a ' +
l +
',' +
c +
' 0,0,0 ' +
-o +
' 0 l 0,' +
d +
' a ' +
l +
',' +
c +
' 0,0,0 ' +
o +
' 0 l 0,' +
-d,
u = n
.attr('label-offset-y', c)
.insert('path', ':first-child')
.attr('style', t.style)
.attr('d', h)
.attr(
'transform',
'translate(' + -o / 2 + ',' + -(d / 2 + c) + ')'
);
return (
Object(s.updateNodeBounds)(t, u),
(t.intersect = function (e) {
var i = a.default.rect(t, e),
n = i.x - t.x;
if (
0 != l &&
(Math.abs(n) < t.width / 2 ||
(Math.abs(n) == t.width / 2 &&
Math.abs(i.y - t.y) > t.height / 2 - c))
) {
var r = c * c * (1 - (n * n) / (l * l));
0 != r && (r = Math.sqrt(r)),
(r = c - r),
e.y - t.y > 0 && (r = -r),
(i.y += r);
}
return i;
}),
n
);
},
start: function (e, t) {
var i = e
.insert('g')
.attr('class', 'node default')
.attr('id', t.domId || t.id),
n = i.insert('circle', ':first-child');
return (
n
.attr('class', 'state-start')
.attr('r', 7)
.attr('width', 14)
.attr('height', 14),
Object(s.updateNodeBounds)(t, n),
(t.intersect = function (e) {
return a.default.circle(t, 7, e);
}),
i
);
},
end: function (e, t) {
var i = e
.insert('g')
.attr('class', 'node default')
.attr('id', t.domId || t.id),
n = i.insert('circle', ':first-child'),
r = i.insert('circle', ':first-child');
return (
r
.attr('class', 'state-start')
.attr('r', 7)
.attr('width', 14)
.attr('height', 14),
n
.attr('class', 'state-end')
.attr('r', 5)
.attr('width', 10)
.attr('height', 10),
Object(s.updateNodeBounds)(t, r),
(t.intersect = function (e) {
return a.default.circle(t, 7, e);
}),
i
);
},
note: c.default,
subroutine: function (e, t) {
var i = Object(s.labelHelper)(e, t, void 0, !0),
n = i.shapeSvg,
r = i.bbox,
o = r.width + t.padding,
l = r.height + t.padding,
c = [
{ x: 0, y: 0 },
{ x: o, y: 0 },
{ x: o, y: -l },
{ x: 0, y: -l },
{ x: 0, y: 0 },
{ x: -8, y: 0 },
{ x: o + 8, y: 0 },
{ x: o + 8, y: -l },
{ x: -8, y: -l },
{ x: -8, y: 0 },
],
d = Object(s.insertPolygonShape)(n, o, l, c);
return (
d.attr('style', t.style),
Object(s.updateNodeBounds)(t, d),
(t.intersect = function (e) {
return a.default.polygon(t, c, e);
}),
n
);
},
fork: h,
join: h,
class_box: function (e, t) {
var i,
r = t.padding / 2;
i = t.classes ? 'node ' + t.classes : 'node default';
var c = e
.insert('g')
.attr('class', i)
.attr('id', t.domId || t.id),
h = c.insert('rect', ':first-child'),
u = c.insert('line'),
g = c.insert('line'),
f = 0,
p = 4,
m = c.insert('g').attr('class', 'label'),
_ = 0,
b =
t.classData.annotations && t.classData.annotations[0],
v = t.classData.annotations[0]
? '«' + t.classData.annotations[0] + '»'
: '',
y = m
.node()
.appendChild(
Object(l.default)(v, t.labelStyle, !0, !0)
),
w = y.getBBox();
if (Object(o.getConfig)().flowchart.htmlLabels) {
var C = y.children[0],
S = Object(n.select)(y);
(w = C.getBoundingClientRect()),
S.attr('width', w.width),
S.attr('height', w.height);
}
t.classData.annotations[0] &&
((p += w.height + 4), (f += w.width));
var k = t.classData.id;
void 0 !== t.classData.type &&
'' !== t.classData.type &&
(k += '<' + t.classData.type + '>');
var x = m
.node()
.appendChild(
Object(l.default)(k, t.labelStyle, !0, !0)
);
Object(n.select)(x).attr('class', 'classTitle');
var L = x.getBBox();
if (Object(o.getConfig)().flowchart.htmlLabels) {
var M = x.children[0],
D = Object(n.select)(x);
(L = M.getBoundingClientRect()),
D.attr('width', L.width),
D.attr('height', L.height);
}
(p += L.height + 4), L.width > f && (f = L.width);
var N = [];
t.classData.members.forEach(function (e) {
var i = Object(d.parseMember)(e).displayText,
r = m
.node()
.appendChild(
Object(l.default)(i, t.labelStyle, !0, !0)
),
s = r.getBBox();
if (Object(o.getConfig)().flowchart.htmlLabels) {
var a = r.children[0],
c = Object(n.select)(r);
(s = a.getBoundingClientRect()),
c.attr('width', s.width),
c.attr('height', s.height);
}
s.width > f && (f = s.width),
(p += s.height + 4),
N.push(r);
}),
(p += 8);
var E = [];
if (
(t.classData.methods.forEach(function (e) {
var i = Object(d.parseMember)(e).displayText,
r = m
.node()
.appendChild(
Object(l.default)(i, t.labelStyle, !0, !0)
),
s = r.getBBox();
if (Object(o.getConfig)().flowchart.htmlLabels) {
var a = r.children[0],
c = Object(n.select)(r);
(s = a.getBoundingClientRect()),
c.attr('width', s.width),
c.attr('height', s.height);
}
s.width > f && (f = s.width),
(p += s.height + 4),
E.push(r);
}),
(p += 8),
b)
) {
var T = (f - w.width) / 2;
Object(n.select)(y).attr(
'transform',
'translate( ' +
((-1 * f) / 2 + T) +
', ' +
(-1 * p) / 2 +
')'
),
(_ = w.height + 4);
}
var I = (f - L.width) / 2;
return (
Object(n.select)(x).attr(
'transform',
'translate( ' +
((-1 * f) / 2 + I) +
', ' +
((-1 * p) / 2 + _) +
')'
),
(_ += L.height + 4),
u
.attr('class', 'divider')
.attr('x1', -f / 2 - r)
.attr('x2', f / 2 + r)
.attr('y1', -p / 2 - r + 8 + _)
.attr('y2', -p / 2 - r + 8 + _),
(_ += 8),
N.forEach(function (e) {
Object(n.select)(e).attr(
'transform',
'translate( ' +
-f / 2 +
', ' +
((-1 * p) / 2 + _ + 4) +
')'
),
(_ += L.height + 4);
}),
(_ += 8),
g
.attr('class', 'divider')
.attr('x1', -f / 2 - r)
.attr('x2', f / 2 + r)
.attr('y1', -p / 2 - r + 8 + _)
.attr('y2', -p / 2 - r + 8 + _),
(_ += 8),
E.forEach(function (e) {
Object(n.select)(e).attr(
'transform',
'translate( ' +
-f / 2 +
', ' +
((-1 * p) / 2 + _) +
')'
),
(_ += L.height + 4);
}),
h
.attr('class', 'outer title-state')
.attr('x', -f / 2 - r)
.attr('y', -p / 2 - r)
.attr('width', f + t.padding)
.attr('height', p + t.padding),
Object(s.updateNodeBounds)(t, h),
(t.intersect = function (e) {
return a.default.rect(t, e);
}),
c
);
},
},
g = {},
f = function (e, t, i) {
var n, r;
t.link
? ((n = e
.insert('svg:a')
.attr('xlink:href', t.link)
.attr('target', t.linkTarget || '_blank')),
(r = u[t.shape](n, t, i)))
: (n = r = u[t.shape](e, t, i)),
t.tooltip && r.attr('title', t.tooltip),
t.class && r.attr('class', 'node default ' + t.class),
(g[t.id] = n),
t.haveCallback &&
g[t.id].attr(
'class',
g[t.id].attr('class') + ' clickable'
);
},
p = function (e, t) {
g[t.id] = e;
},
m = function () {
g = {};
},
_ = function (e) {
var t = g[e.id];
r.log.trace(
'Transforming node',
e,
'translate(' +
(e.x - e.width / 2 - 5) +
', ' +
(e.y - e.height / 2 - 5) +
')'
),
e.clusterNode
? t.attr(
'transform',
'translate(' +
(e.x - e.width / 2 - 8) +
', ' +
(e.y - e.height / 2 - 8) +
')'
)
: t.attr(
'transform',
'translate(' + e.x + ', ' + e.y + ')'
);
};
},
'./src/dagre-wrapper/shapes/note.js': function (e, t, i) {
'use strict';
i.r(t);
var n = i('./src/dagre-wrapper/shapes/util.js'),
r = i('./src/logger.js'),
s = i('./src/dagre-wrapper/intersect/index.js');
t.default = function (e, t) {
var i = Object(n.labelHelper)(e, t, 'node ' + t.classes, !0),
o = i.shapeSvg,
a = i.bbox,
l = i.halfPadding;
r.log.info('Classes = ', t.classes);
var c = o.insert('rect', ':first-child');
return (
c
.attr('rx', t.rx)
.attr('ry', t.ry)
.attr('x', -a.width / 2 - l)
.attr('y', -a.height / 2 - l)
.attr('width', a.width + t.padding)
.attr('height', a.height + t.padding),
Object(n.updateNodeBounds)(t, c),
(t.intersect = function (e) {
return s.default.rect(t, e);
}),
o
);
};
},
'./src/dagre-wrapper/shapes/util.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'labelHelper', function () {
return o;
}),
i.d(t, 'updateNodeBounds', function () {
return a;
}),
i.d(t, 'insertPolygonShape', function () {
return l;
});
var n = i('./src/dagre-wrapper/createLabel.js'),
r = i('./src/config.js'),
s = i('d3'),
o = function (e, t, i, o) {
var a;
a = i || 'node default';
var l = e
.insert('g')
.attr('class', a)
.attr('id', t.domId || t.id),
c = l
.insert('g')
.attr('class', 'label')
.attr('style', t.labelStyle),
d = c
.node()
.appendChild(
Object(n.default)(t.labelText, t.labelStyle, !1, o)
),
h = d.getBBox();
if (Object(r.getConfig)().flowchart.htmlLabels) {
var u = d.children[0],
g = Object(s.select)(d);
(h = u.getBoundingClientRect()),
g.attr('width', h.width),
g.attr('height', h.height);
}
var f = t.padding / 2;
return (
c.attr(
'transform',
'translate(' + -h.width / 2 + ', ' + -h.height / 2 + ')'
),
{ shapeSvg: l, bbox: h, halfPadding: f, label: c }
);
},
a = function (e, t) {
var i = t.node().getBBox();
(e.width = i.width), (e.height = i.height);
};
function l(e, t, i, n) {
return e
.insert('polygon', ':first-child')
.attr(
'points',
n
.map(function (e) {
return e.x + ',' + e.y;
})
.join(' ')
)
.attr('class', 'label-container')
.attr(
'transform',
'translate(' + -t / 2 + ',' + i / 2 + ')'
);
}
},
'./src/defaultConfig.js': function (e, t, i) {
'use strict';
i.r(t);
var n = {
theme: 'default',
themeVariables: i(
'./src/themes/index.js'
).default.default.getThemeVariables(),
themeCSS: void 0,
maxTextSize: 5e4,
fontFamily: '"trebuchet ms", verdana, arial, sans-serif;',
logLevel: 5,
securityLevel: 'strict',
startOnLoad: !0,
arrowMarkerAbsolute: !1,
secure: [
'secure',
'securityLevel',
'startOnLoad',
'maxTextSize',
],
deterministicIds: !1,
deterministicIDSeed: void 0,
flowchart: {
diagramPadding: 8,
htmlLabels: !0,
nodeSpacing: 50,
rankSpacing: 50,
curve: 'basis',
padding: 15,
useMaxWidth: !0,
},
sequence: {
activationWidth: 10,
diagramMarginX: 50,
diagramMarginY: 10,
actorMargin: 50,
width: 150,
height: 65,
boxMargin: 10,
boxTextMargin: 5,
noteMargin: 10,
messageMargin: 35,
messageAlign: 'center',
mirrorActors: !0,
bottomMarginAdj: 1,
useMaxWidth: !0,
rightAngles: !1,
showSequenceNumbers: !1,
actorFontSize: 14,
actorFontFamily: '"Open-Sans", "sans-serif"',
actorFontWeight: 400,
noteFontSize: 14,
noteFontFamily:
'"trebuchet ms", verdana, arial, sans-serif',
noteFontWeight: 400,
noteAlign: 'center',
messageFontSize: 16,
messageFontFamily:
'"trebuchet ms", verdana, arial, sans-serif',
messageFontWeight: 400,
wrap: !1,
wrapPadding: 10,
labelBoxWidth: 50,
labelBoxHeight: 20,
messageFont: function () {
return {
fontFamily: this.messageFontFamily,
fontSize: this.messageFontSize,
fontWeight: this.messageFontWeight,
};
},
noteFont: function () {
return {
fontFamily: this.noteFontFamily,
fontSize: this.noteFontSize,
fontWeight: this.noteFontWeight,
};
},
actorFont: function () {
return {
fontFamily: this.actorFontFamily,
fontSize: this.actorFontSize,
fontWeight: this.actorFontWeight,
};
},
},
gantt: {
titleTopMargin: 25,
barHeight: 20,
barGap: 4,
topPadding: 50,
rightPadding: 75,
leftPadding: 75,
gridLineStartPadding: 35,
fontSize: 11,
sectionFontSize: 11,
numberSectionStyles: 4,
axisFormat: '%Y-%m-%d',
useMaxWidth: !0,
topAxis: !1,
useWidth: void 0,
},
journey: {
diagramMarginX: 50,
diagramMarginY: 10,
leftMargin: 150,
width: 150,
height: 50,
boxMargin: 10,
boxTextMargin: 5,
noteMargin: 10,
messageMargin: 35,
messageAlign: 'center',
bottomMarginAdj: 1,
useMaxWidth: !0,
rightAngles: !1,
taskFontSize: 14,
taskFontFamily: '"Open-Sans", "sans-serif"',
taskMargin: 50,
activationWidth: 10,
textPlacement: 'fo',
actorColours: [
'#8FBC8F',
'#7CFC00',
'#00FFFF',
'#20B2AA',
'#B0E0E6',
'#FFFFE0',
],
sectionFills: [
'#191970',
'#8B008B',
'#4B0082',
'#2F4F4F',
'#800000',
'#8B4513',
'#00008B',
],
sectionColours: ['#fff'],
},
class: { arrowMarkerAbsolute: !1, useMaxWidth: !0 },
git: {
arrowMarkerAbsolute: !1,
useWidth: void 0,
useMaxWidth: !0,
},
state: {
dividerMargin: 10,
sizeUnit: 5,
padding: 8,
textHeight: 10,
titleShift: -15,
noteMargin: 10,
forkWidth: 70,
forkHeight: 7,
miniPadding: 2,
fontSizeFactor: 5.02,
fontSize: 24,
labelHeight: 16,
edgeLengthFactor: '20',
compositTitleSize: 35,
radius: 5,
useMaxWidth: !0,
},
er: {
diagramPadding: 20,
layoutDirection: 'TB',
minEntityWidth: 100,
minEntityHeight: 75,
entityPadding: 15,
stroke: 'gray',
fill: 'honeydew',
fontSize: 12,
useMaxWidth: !0,
},
pie: { useWidth: void 0, useMaxWidth: !0 },
requirement: {
useWidth: void 0,
useMaxWidth: !0,
rect_fill: '#f9f9f9',
text_color: '#333',
rect_border_size: '0.5px',
rect_border_color: '#bbb',
rect_min_width: 200,
rect_min_height: 200,
fontSize: 14,
rect_padding: 10,
line_height: 20,
},
};
(n.class.arrowMarkerAbsolute = n.arrowMarkerAbsolute),
(n.git.arrowMarkerAbsolute = n.arrowMarkerAbsolute),
(t.default = n);
},
'./src/diagrams/class/classDb.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'parseDirective', function () {
return f;
}),
i.d(t, 'addClass', function () {
return m;
}),
i.d(t, 'lookUpDomId', function () {
return _;
}),
i.d(t, 'clear', function () {
return b;
}),
i.d(t, 'getClass', function () {
return v;
}),
i.d(t, 'getClasses', function () {
return y;
}),
i.d(t, 'getRelations', function () {
return w;
}),
i.d(t, 'addRelation', function () {
return C;
}),
i.d(t, 'addAnnotation', function () {
return S;
}),
i.d(t, 'addMember', function () {
return k;
}),
i.d(t, 'addMembers', function () {
return x;
}),
i.d(t, 'cleanupLabel', function () {
return L;
}),
i.d(t, 'setCssClass', function () {
return M;
}),
i.d(t, 'setLink', function () {
return D;
}),
i.d(t, 'setClickEvent', function () {
return N;
}),
i.d(t, 'bindFunctions', function () {
return T;
}),
i.d(t, 'lineType', function () {
return I;
}),
i.d(t, 'relationType', function () {
return O;
});
var n = i('d3'),
r = i('./src/logger.js'),
s = i('./src/config.js'),
o = i('./src/diagrams/common/common.js'),
a = i('./src/utils.js'),
l = i('./src/mermaidAPI.js');
var c = 'classid-',
d = [],
h = {},
u = 0,
g = [],
f = function (e, t, i) {
l.default.parseDirective(this, e, t, i);
},
p = function (e) {
var t = '',
i = e;
if (e.indexOf('~') > 0) {
var n = e.split('~');
(i = n[0]), (t = n[1]);
}
return { className: i, type: t };
},
m = function (e) {
var t = p(e);
void 0 === h[t.className] &&
((h[t.className] = {
id: t.className,
type: t.type,
cssClasses: [],
methods: [],
members: [],
annotations: [],
domId: c + t.className + '-' + u,
}),
u++);
},
_ = function (e) {
for (var t = Object.keys(h), i = 0; i < t.length; i++)
if (h[t[i]].id === e) return h[t[i]].domId;
},
b = function () {
(d = []), (h = {}), (g = []).push(A);
},
v = function (e) {
return h[e];
},
y = function () {
return h;
},
w = function () {
return d;
},
C = function (e) {
r.log.debug('Adding relation: ' + JSON.stringify(e)),
m(e.id1),
m(e.id2),
(e.id1 = p(e.id1).className),
(e.id2 = p(e.id2).className),
d.push(e);
},
S = function (e, t) {
var i = p(e).className;
h[i].annotations.push(t);
},
k = function (e, t) {
var i = p(e).className,
n = h[i];
if ('string' == typeof t) {
var r = t.trim();
r.startsWith('<<') && r.endsWith('>>')
? n.annotations.push(r.substring(2, r.length - 2))
: r.indexOf(')') > 0
? n.methods.push(r)
: r && n.members.push(r);
}
},
x = function (e, t) {
Array.isArray(t) &&
(t.reverse(),
t.forEach(function (t) {
return k(e, t);
}));
},
L = function (e) {
return ':' === e.substring(0, 1)
? e.substr(1).trim()
: e.trim();
},
M = function (e, t) {
e.split(',').forEach(function (e) {
var i = e;
e[0].match(/\d/) && (i = c + i),
void 0 !== h[i] && h[i].cssClasses.push(t);
});
},
D = function (e, t, i) {
var n = s.getConfig();
e.split(',').forEach(function (e) {
var r = e;
e[0].match(/\d/) && (r = c + r),
void 0 !== h[r] &&
((h[r].link = a.default.formatUrl(t, n)),
(h[r].linkTarget =
'string' == typeof i ? i : '_blank'));
}),
M(e, 'clickable');
},
N = function (e, t, i) {
e.split(',').forEach(function (e) {
E(e, t, i), (h[e].haveCallback = !0);
}),
M(e, 'clickable');
},
E = function (e, t, i) {
var n = s.getConfig(),
r = e,
o = _(r);
if (
'loose' === n.securityLevel &&
void 0 !== t &&
void 0 !== h[r]
) {
var l = [];
if ('string' == typeof i) {
l = i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
for (var c = 0; c < l.length; c++) {
var d = l[c].trim();
'"' === d.charAt(0) &&
'"' === d.charAt(d.length - 1) &&
(d = d.substr(1, d.length - 2)),
(l[c] = d);
}
}
0 === l.length && l.push(o),
g.push(function () {
var e = document.querySelector(
'[id="'.concat(o, '"]')
);
null !== e &&
e.addEventListener(
'click',
function () {
var e;
a.default.runFunc.apply(
a.default,
[t].concat(
(function (e) {
if (Array.isArray(e)) {
for (
var t = 0, i = new Array(e.length);
t < e.length;
t++
)
i[t] = e[t];
return i;
}
})((e = l)) ||
(function (e) {
if (
Symbol.iterator in Object(e) ||
'[object Arguments]' ===
Object.prototype.toString.call(e)
)
return Array.from(e);
})(e) ||
(function () {
throw new TypeError(
'Invalid attempt to spread non-iterable instance'
);
})()
)
);
},
!1
);
});
}
},
T = function (e) {
g.forEach(function (t) {
t(e);
});
},
I = { LINE: 0, DOTTED_LINE: 1 },
O = {
AGGREGATION: 0,
EXTENSION: 1,
COMPOSITION: 2,
DEPENDENCY: 3,
},
A = function (e) {
var t = Object(n.select)('.mermaidTooltip');
null === (t._groups || t)[0][0] &&
(t = Object(n.select)('body')
.append('div')
.attr('class', 'mermaidTooltip')
.style('opacity', 0)),
Object(n.select)(e)
.select('svg')
.selectAll('g.node')
.on('mouseover', function () {
var e = Object(n.select)(this);
if (null !== e.attr('title')) {
var i = this.getBoundingClientRect();
t.transition().duration(200).style('opacity', '.9'),
t
.html(e.attr('title'))
.style(
'left',
window.scrollX +
i.left +
(i.right - i.left) / 2 +
'px'
)
.style(
'top',
window.scrollY +
i.top -
14 +
document.body.scrollTop +
'px'
),
e.classed('hover', !0);
}
})
.on('mouseout', function () {
t.transition().duration(500).style('opacity', 0),
Object(n.select)(this).classed('hover', !1);
});
};
g.push(A),
(t.default = {
parseDirective: f,
getConfig: function () {
return s.getConfig().class;
},
addClass: m,
bindFunctions: T,
clear: b,
getClass: v,
getClasses: y,
addAnnotation: S,
getRelations: w,
addRelation: C,
addMember: k,
addMembers: x,
cleanupLabel: L,
lineType: I,
relationType: O,
setClickEvent: N,
setCssClass: M,
setLink: D,
setTooltip: function (e, t) {
var i = s.getConfig();
e.split(',').forEach(function (e) {
void 0 !== t &&
(h[e].tooltip = o.default.sanitizeText(t, i));
});
},
lookUpDomId: _,
});
},
'./src/diagrams/class/classRenderer-v2.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'addClasses', function () {
return b;
}),
i.d(t, 'addRelations', function () {
return v;
}),
i.d(t, 'setConf', function () {
return w;
}),
i.d(t, 'drawOld', function () {
return C;
}),
i.d(t, 'draw', function () {
return S;
});
var n = i('d3'),
r = i('dagre'),
s = i.n(r),
o = i('graphlib'),
a = i.n(o),
l = i('./src/logger.js'),
c = i('./src/diagrams/class/classDb.js'),
d = i('./src/diagrams/class/parser/classDiagram.jison'),
h = i('./src/diagrams/class/svgDraw.js'),
u = i('./src/config.js'),
g = i('./src/dagre-wrapper/index.js'),
f = i('./src/utils.js'),
p = i('./src/diagrams/common/common.js');
d.parser.yy = c.default;
var m = {},
_ = { dividerMargin: 10, padding: 5, textHeight: 10 },
b = function (e, t) {
var i = Object.keys(e);
l.log.info('keys:', i),
l.log.info(e),
i.forEach(function (i) {
var n = e[i],
r = '';
n.cssClasses.length > 0 &&
(r = r + ' ' + n.cssClasses.join(' '));
var s = { labelStyle: '' },
o = void 0 !== n.text ? n.text : n.id,
a = '';
switch (n.type) {
case 'class':
a = 'class_box';
break;
default:
a = 'class_box';
}
t.setNode(n.id, {
labelStyle: s.labelStyle,
shape: a,
labelText: o,
classData: n,
rx: 0,
ry: 0,
class: r,
style: s.style,
id: n.id,
domId: n.domId,
haveCallback: n.haveCallback,
link: n.link,
width: 'group' === n.type ? 500 : void 0,
type: n.type,
padding: Object(u.getConfig)().flowchart.padding,
}),
l.log.info('setNode', {
labelStyle: s.labelStyle,
shape: a,
labelText: o,
rx: 0,
ry: 0,
class: r,
style: s.style,
id: n.id,
width: 'group' === n.type ? 500 : void 0,
type: n.type,
padding: Object(u.getConfig)().flowchart.padding,
});
});
},
v = function (e, t) {
var i = 0;
e.forEach(function (r) {
i++;
var s = { classes: 'relation' };
(s.pattern =
1 == r.relation.lineType ? 'dashed' : 'solid'),
(s.id = 'id' + i),
'arrow_open' === r.type
? (s.arrowhead = 'none')
: (s.arrowhead = 'normal'),
l.log.info(s, r),
(s.startLabelRight =
'none' === r.relationTitle1 ? '' : r.relationTitle1),
(s.endLabelLeft =
'none' === r.relationTitle2 ? '' : r.relationTitle2),
(s.arrowTypeStart = k(r.relation.type1)),
(s.arrowTypeEnd = k(r.relation.type2));
var o = '',
a = '';
if (void 0 !== r.style) {
var c = Object(f.getStylesFromArray)(r.style);
(o = c.style), (a = c.labelStyle);
} else o = 'fill:none';
(s.style = o),
(s.labelStyle = a),
void 0 !== r.interpolate
? (s.curve = Object(f.interpolateToCurve)(
r.interpolate,
n.curveLinear
))
: void 0 !== e.defaultInterpolate
? (s.curve = Object(f.interpolateToCurve)(
e.defaultInterpolate,
n.curveLinear
))
: (s.curve = Object(f.interpolateToCurve)(
_.curve,
n.curveLinear
)),
(r.text = r.title),
void 0 === r.text
? void 0 !== r.style &&
(s.arrowheadStyle = 'fill: #333')
: ((s.arrowheadStyle = 'fill: #333'),
(s.labelpos = 'c'),
Object(u.getConfig)().flowchart.htmlLabels,
(s.labelType = 'text'),
(s.label = r.text.replace(
p.default.lineBreakRegex,
'\n'
)),
void 0 === r.style &&
(s.style =
s.style ||
'stroke: #333; stroke-width: 1.5px;fill:none'),
(s.labelStyle = s.labelStyle.replace(
'color:',
'fill:'
))),
t.setEdge(r.id1, r.id2, s, i);
});
},
y = function (e) {
for (var t = Object.keys(m), i = 0; i < t.length; i++)
if (m[t[i]].label === e) return t[i];
},
w = function (e) {
Object.keys(e).forEach(function (t) {
_[t] = e[t];
});
},
C = function (e, t) {
(m = {}),
d.parser.yy.clear(),
d.parser.parse(e),
l.log.info('Rendering diagram ' + e);
var i = Object(n.select)("[id='".concat(t, "']")),
r = new a.a.Graph({ multigraph: !0 });
r.setGraph({ isMultiGraph: !0 }),
r.setDefaultEdgeLabel(function () {
return {};
});
var o = c.default.getClasses();
l.log.info('classes:'), l.log.info(o);
for (var u = Object.keys(o), g = 0; g < u.length; g++) {
var p = o[u[g]],
b = h.default.drawClass(i, p, _);
(m[b.id] = b),
r.setNode(b.id, b),
l.log.info('Org height: ' + b.height);
}
var v = c.default.getRelations();
l.log.info('relations:', v),
v.forEach(function (e) {
l.log.info(
'tjoho' + y(e.id1) + y(e.id2) + JSON.stringify(e)
),
r.setEdge(
y(e.id1),
y(e.id2),
{ relation: e },
e.title || 'DEFAULT'
);
}),
s.a.layout(r),
r.nodes().forEach(function (e) {
void 0 !== e &&
void 0 !== r.node(e) &&
(l.log.debug(
'Node ' + e + ': ' + JSON.stringify(r.node(e))
),
Object(n.select)('#' + Object(c.lookUpDomId)(e)).attr(
'transform',
'translate(' +
(r.node(e).x - r.node(e).width / 2) +
',' +
(r.node(e).y - r.node(e).height / 2) +
' )'
));
}),
r.edges().forEach(function (e) {
void 0 !== e &&
void 0 !== r.edge(e) &&
(l.log.debug(
'Edge ' +
e.v +
' -> ' +
e.w +
': ' +
JSON.stringify(r.edge(e))
),
h.default.drawEdge(
i,
r.edge(e),
r.edge(e).relation,
_
));
});
var w = i.node().getBBox(),
C = w.width + 40,
S = w.height + 40;
Object(f.configureSvgSize)(i, S, C, _.useMaxWidth);
var k = ''
.concat(w.x - 20, ' ')
.concat(w.y - 20, ' ')
.concat(C, ' ')
.concat(S);
l.log.debug('viewBox '.concat(k)), i.attr('viewBox', k);
},
S = function (e, t) {
l.log.info('Drawing class'),
c.default.clear(),
d.parser.parse(e);
var i = Object(u.getConfig)().flowchart;
l.log.info('config:', i);
var r = i.nodeSpacing || 50,
s = i.rankSpacing || 50,
o = new a.a.Graph({ multigraph: !0, compound: !0 })
.setGraph({
rankdir: 'TD',
nodesep: r,
ranksep: s,
marginx: 8,
marginy: 8,
})
.setDefaultEdgeLabel(function () {
return {};
}),
h = c.default.getClasses(),
p = c.default.getRelations();
l.log.info(p), b(h, o, t), v(p, o);
var m = Object(n.select)('[id="'.concat(t, '"]'));
m.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');
var _ = Object(n.select)('#' + t + ' g');
Object(g.render)(
_,
o,
['aggregation', 'extension', 'composition', 'dependency'],
'classDiagram',
t
);
var y = m.node().getBBox(),
w = y.width + 16,
C = y.height + 16;
if (
(l.log.debug(
'new ViewBox 0 0 '.concat(w, ' ').concat(C),
'translate('
.concat(8 - o._label.marginx, ', ')
.concat(8 - o._label.marginy, ')')
),
Object(f.configureSvgSize)(m, C, w, i.useMaxWidth),
m.attr('viewBox', '0 0 '.concat(w, ' ').concat(C)),
m
.select('g')
.attr(
'transform',
'translate('
.concat(8 - o._label.marginx, ', ')
.concat(8 - y.y, ')')
),
!i.htmlLabels)
)
for (
var S = document.querySelectorAll(
'[id="' + t + '"] .edgeLabel .label'
),
k = 0;
k < S.length;
k++
) {
var x = S[k],
L = x.getBBox(),
M = document.createElementNS(
'http://www.w3.org/2000/svg',
'rect'
);
M.setAttribute('rx', 0),
M.setAttribute('ry', 0),
M.setAttribute('width', L.width),
M.setAttribute('height', L.height),
M.setAttribute('style', 'fill:#e8e8e8;'),
x.insertBefore(M, x.firstChild);
}
};
function k(e) {
var t;
switch (e) {
case 0:
t = 'aggregation';
break;
case 1:
t = 'extension';
break;
case 2:
t = 'composition';
break;
case 3:
t = 'dependency';
break;
default:
t = 'none';
}
return t;
}
t.default = { setConf: w, draw: S };
},
'./src/diagrams/class/classRenderer.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'setConf', function () {
return m;
}),
i.d(t, 'draw', function () {
return _;
});
var n = i('d3'),
r = i('dagre'),
s = i.n(r),
o = i('graphlib'),
a = i.n(o),
l = i('./src/logger.js'),
c = i('./src/diagrams/class/classDb.js'),
d = i('./src/diagrams/class/parser/classDiagram.jison'),
h = i('./src/diagrams/class/svgDraw.js'),
u = i('./src/utils.js');
d.parser.yy = c.default;
var g = {},
f = { dividerMargin: 10, padding: 5, textHeight: 10 },
p = function (e) {
for (var t = Object.keys(g), i = 0; i < t.length; i++)
if (g[t[i]].label === e) return t[i];
},
m = function (e) {
Object.keys(e).forEach(function (t) {
f[t] = e[t];
});
},
_ = function (e, t) {
(g = {}),
d.parser.yy.clear(),
d.parser.parse(e),
l.log.info('Rendering diagram ' + e);
var i,
r = Object(n.select)("[id='".concat(t, "']"));
r.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink'),
(i = r)
.append('defs')
.append('marker')
.attr('id', 'extensionStart')
.attr('class', 'extension')
.attr('refX', 0)
.attr('refY', 7)
.attr('markerWidth', 190)
.attr('markerHeight', 240)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 1,7 L18,13 V 1 Z'),
i
.append('defs')
.append('marker')
.attr('id', 'extensionEnd')
.attr('refX', 19)
.attr('refY', 7)
.attr('markerWidth', 20)
.attr('markerHeight', 28)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 1,1 V 13 L18,7 Z'),
i
.append('defs')
.append('marker')
.attr('id', 'compositionStart')
.attr('class', 'extension')
.attr('refX', 0)
.attr('refY', 7)
.attr('markerWidth', 190)
.attr('markerHeight', 240)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'),
i
.append('defs')
.append('marker')
.attr('id', 'compositionEnd')
.attr('refX', 19)
.attr('refY', 7)
.attr('markerWidth', 20)
.attr('markerHeight', 28)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'),
i
.append('defs')
.append('marker')
.attr('id', 'aggregationStart')
.attr('class', 'extension')
.attr('refX', 0)
.attr('refY', 7)
.attr('markerWidth', 190)
.attr('markerHeight', 240)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'),
i
.append('defs')
.append('marker')
.attr('id', 'aggregationEnd')
.attr('refX', 19)
.attr('refY', 7)
.attr('markerWidth', 20)
.attr('markerHeight', 28)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'),
i
.append('defs')
.append('marker')
.attr('id', 'dependencyStart')
.attr('class', 'extension')
.attr('refX', 0)
.attr('refY', 7)
.attr('markerWidth', 190)
.attr('markerHeight', 240)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z'),
i
.append('defs')
.append('marker')
.attr('id', 'dependencyEnd')
.attr('refX', 19)
.attr('refY', 7)
.attr('markerWidth', 20)
.attr('markerHeight', 28)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');
var o = new a.a.Graph({ multigraph: !0 });
o.setGraph({ isMultiGraph: !0 }),
o.setDefaultEdgeLabel(function () {
return {};
});
for (
var m = c.default.getClasses(), _ = Object.keys(m), b = 0;
b < _.length;
b++
) {
var v = m[_[b]],
y = h.default.drawClass(r, v, f);
(g[y.id] = y),
o.setNode(y.id, y),
l.log.info('Org height: ' + y.height);
}
c.default.getRelations().forEach(function (e) {
l.log.info(
'tjoho' + p(e.id1) + p(e.id2) + JSON.stringify(e)
),
o.setEdge(
p(e.id1),
p(e.id2),
{ relation: e },
e.title || 'DEFAULT'
);
}),
s.a.layout(o),
o.nodes().forEach(function (e) {
void 0 !== e &&
void 0 !== o.node(e) &&
(l.log.debug(
'Node ' + e + ': ' + JSON.stringify(o.node(e))
),
Object(n.select)('#' + Object(c.lookUpDomId)(e)).attr(
'transform',
'translate(' +
(o.node(e).x - o.node(e).width / 2) +
',' +
(o.node(e).y - o.node(e).height / 2) +
' )'
));
}),
o.edges().forEach(function (e) {
void 0 !== e &&
void 0 !== o.edge(e) &&
(l.log.debug(
'Edge ' +
e.v +
' -> ' +
e.w +
': ' +
JSON.stringify(o.edge(e))
),
h.default.drawEdge(
r,
o.edge(e),
o.edge(e).relation,
f
));
});
var w = r.node().getBBox(),
C = w.width + 40,
S = w.height + 40;
Object(u.configureSvgSize)(r, S, C, f.useMaxWidth);
var k = ''
.concat(w.x - 20, ' ')
.concat(w.y - 20, ' ')
.concat(C, ' ')
.concat(S);
l.log.debug('viewBox '.concat(k)), r.attr('viewBox', k);
};
t.default = { setConf: m, draw: _ };
},
'./src/diagrams/class/parser/classDiagram.jison': function (
e,
t,
i
) {
(function (e, n) {
var r = (function () {
var e = function (e, t, i, n) {
for (i = i || {}, n = e.length; n--; i[e[n]] = t);
return i;
},
t = [1, 7],
i = [1, 6],
n = [1, 14],
r = [1, 25],
s = [1, 28],
o = [1, 26],
a = [1, 27],
l = [1, 29],
c = [1, 30],
d = [1, 31],
h = [1, 32],
u = [1, 35],
g = [1, 36],
f = [1, 37],
p = [1, 38],
m = [10, 19],
_ = [1, 50],
b = [1, 51],
v = [1, 52],
y = [1, 53],
w = [1, 54],
C = [1, 55],
S = [
10,
19,
26,
33,
34,
42,
45,
46,
47,
48,
49,
50,
55,
57,
],
k = [
10,
19,
24,
26,
33,
34,
38,
42,
45,
46,
47,
48,
49,
50,
55,
57,
72,
73,
74,
75,
],
x = [10, 13, 17, 19],
L = [42, 72, 73, 74, 75],
M = [42, 49, 50, 72, 73, 74, 75],
D = [42, 45, 46, 47, 48, 72, 73, 74, 75],
N = [10, 19, 26],
E = [1, 87],
T = {
trace: function () {},
yy: {},
symbols_: {
error: 2,
start: 3,
mermaidDoc: 4,
directive: 5,
graphConfig: 6,
openDirective: 7,
typeDirective: 8,
closeDirective: 9,
NEWLINE: 10,
':': 11,
argDirective: 12,
open_directive: 13,
type_directive: 14,
arg_directive: 15,
close_directive: 16,
CLASS_DIAGRAM: 17,
statements: 18,
EOF: 19,
statement: 20,
className: 21,
alphaNumToken: 22,
classLiteralName: 23,
GENERICTYPE: 24,
relationStatement: 25,
LABEL: 26,
classStatement: 27,
methodStatement: 28,
annotationStatement: 29,
clickStatement: 30,
cssClassStatement: 31,
CLASS: 32,
STYLE_SEPARATOR: 33,
STRUCT_START: 34,
members: 35,
STRUCT_STOP: 36,
ANNOTATION_START: 37,
ANNOTATION_END: 38,
MEMBER: 39,
SEPARATOR: 40,
relation: 41,
STR: 42,
relationType: 43,
lineType: 44,
AGGREGATION: 45,
EXTENSION: 46,
COMPOSITION: 47,
DEPENDENCY: 48,
LINE: 49,
DOTTED_LINE: 50,
CALLBACK: 51,
LINK: 52,
LINK_TARGET: 53,
CLICK: 54,
CALLBACK_NAME: 55,
CALLBACK_ARGS: 56,
HREF: 57,
CSSCLASS: 58,
commentToken: 59,
textToken: 60,
graphCodeTokens: 61,
textNoTagsToken: 62,
TAGSTART: 63,
TAGEND: 64,
'==': 65,
'--': 66,
PCT: 67,
DEFAULT: 68,
SPACE: 69,
MINUS: 70,
keywords: 71,
UNICODE_TEXT: 72,
NUM: 73,
ALPHA: 74,
BQUOTE_STR: 75,
$accept: 0,
$end: 1,
},
terminals_: {
2: 'error',
10: 'NEWLINE',
11: ':',
13: 'open_directive',
14: 'type_directive',
15: 'arg_directive',
16: 'close_directive',
17: 'CLASS_DIAGRAM',
19: 'EOF',
24: 'GENERICTYPE',
26: 'LABEL',
32: 'CLASS',
33: 'STYLE_SEPARATOR',
34: 'STRUCT_START',
36: 'STRUCT_STOP',
37: 'ANNOTATION_START',
38: 'ANNOTATION_END',
39: 'MEMBER',
40: 'SEPARATOR',
42: 'STR',
45: 'AGGREGATION',
46: 'EXTENSION',
47: 'COMPOSITION',
48: 'DEPENDENCY',
49: 'LINE',
50: 'DOTTED_LINE',
51: 'CALLBACK',
52: 'LINK',
53: 'LINK_TARGET',
54: 'CLICK',
55: 'CALLBACK_NAME',
56: 'CALLBACK_ARGS',
57: 'HREF',
58: 'CSSCLASS',
61: 'graphCodeTokens',
63: 'TAGSTART',
64: 'TAGEND',
65: '==',
66: '--',
67: 'PCT',
68: 'DEFAULT',
69: 'SPACE',
70: 'MINUS',
71: 'keywords',
72: 'UNICODE_TEXT',
73: 'NUM',
74: 'ALPHA',
75: 'BQUOTE_STR',
},
productions_: [
0,
[3, 1],
[3, 2],
[4, 1],
[5, 4],
[5, 6],
[7, 1],
[8, 1],
[12, 1],
[9, 1],
[6, 4],
[18, 1],
[18, 2],
[18, 3],
[21, 1],
[21, 1],
[21, 2],
[21, 2],
[21, 2],
[20, 1],
[20, 2],
[20, 1],
[20, 1],
[20, 1],
[20, 1],
[20, 1],
[20, 1],
[27, 2],
[27, 4],
[27, 5],
[27, 7],
[29, 4],
[35, 1],
[35, 2],
[28, 1],
[28, 2],
[28, 1],
[28, 1],
[25, 3],
[25, 4],
[25, 4],
[25, 5],
[41, 3],
[41, 2],
[41, 2],
[41, 1],
[43, 1],
[43, 1],
[43, 1],
[43, 1],
[44, 1],
[44, 1],
[30, 3],
[30, 4],
[30, 3],
[30, 4],
[30, 4],
[30, 5],
[30, 3],
[30, 4],
[30, 4],
[30, 5],
[30, 3],
[30, 4],
[30, 4],
[30, 5],
[31, 3],
[59, 1],
[59, 1],
[60, 1],
[60, 1],
[60, 1],
[60, 1],
[60, 1],
[60, 1],
[60, 1],
[62, 1],
[62, 1],
[62, 1],
[62, 1],
[22, 1],
[22, 1],
[22, 1],
[23, 1],
],
performAction: function (e, t, i, n, r, s, o) {
var a = s.length - 1;
switch (r) {
case 6:
n.parseDirective('%%{', 'open_directive');
break;
case 7:
n.parseDirective(s[a], 'type_directive');
break;
case 8:
(s[a] = s[a].trim().replace(/'/g, '"')),
n.parseDirective(s[a], 'arg_directive');
break;
case 9:
n.parseDirective(
'}%%',
'close_directive',
'class'
);
break;
case 14:
case 15:
this.$ = s[a];
break;
case 16:
this.$ = s[a - 1] + s[a];
break;
case 17:
case 18:
this.$ = s[a - 1] + '~' + s[a];
break;
case 19:
n.addRelation(s[a]);
break;
case 20:
(s[a - 1].title = n.cleanupLabel(s[a])),
n.addRelation(s[a - 1]);
break;
case 27:
n.addClass(s[a]);
break;
case 28:
n.addClass(s[a - 2]),
n.setCssClass(s[a - 2], s[a]);
break;
case 29:
n.addClass(s[a - 3]),
n.addMembers(s[a - 3], s[a - 1]);
break;
case 30:
n.addClass(s[a - 5]),
n.setCssClass(s[a - 5], s[a - 3]),
n.addMembers(s[a - 5], s[a - 1]);
break;
case 31:
n.addAnnotation(s[a], s[a - 2]);
break;
case 32:
this.$ = [s[a]];
break;
case 33:
s[a].push(s[a - 1]), (this.$ = s[a]);
break;
case 34:
break;
case 35:
n.addMember(s[a - 1], n.cleanupLabel(s[a]));
break;
case 36:
case 37:
break;
case 38:
this.$ = {
id1: s[a - 2],
id2: s[a],
relation: s[a - 1],
relationTitle1: 'none',
relationTitle2: 'none',
};
break;
case 39:
this.$ = {
id1: s[a - 3],
id2: s[a],
relation: s[a - 1],
relationTitle1: s[a - 2],
relationTitle2: 'none',
};
break;
case 40:
this.$ = {
id1: s[a - 3],
id2: s[a],
relation: s[a - 2],
relationTitle1: 'none',
relationTitle2: s[a - 1],
};
break;
case 41:
this.$ = {
id1: s[a - 4],
id2: s[a],
relation: s[a - 2],
relationTitle1: s[a - 3],
relationTitle2: s[a - 1],
};
break;
case 42:
this.$ = {
type1: s[a - 2],
type2: s[a],
lineType: s[a - 1],
};
break;
case 43:
this.$ = {
type1: 'none',
type2: s[a],
lineType: s[a - 1],
};
break;
case 44:
this.$ = {
type1: s[a - 1],
type2: 'none',
lineType: s[a],
};
break;
case 45:
this.$ = {
type1: 'none',
type2: 'none',
lineType: s[a],
};
break;
case 46:
this.$ = n.relationType.AGGREGATION;
break;
case 47:
this.$ = n.relationType.EXTENSION;
break;
case 48:
this.$ = n.relationType.COMPOSITION;
break;
case 49:
this.$ = n.relationType.DEPENDENCY;
break;
case 50:
this.$ = n.lineType.LINE;
break;
case 51:
this.$ = n.lineType.DOTTED_LINE;
break;
case 52:
case 58:
(this.$ = s[a - 2]),
n.setClickEvent(s[a - 1], s[a]);
break;
case 53:
case 59:
(this.$ = s[a - 3]),
n.setClickEvent(s[a - 2], s[a - 1]),
n.setTooltip(s[a - 2], s[a]);
break;
case 54:
case 62:
(this.$ = s[a - 2]), n.setLink(s[a - 1], s[a]);
break;
case 55:
(this.$ = s[a - 3]),
n.setLink(s[a - 2], s[a - 1], s[a]);
break;
case 56:
case 64:
(this.$ = s[a - 3]),
n.setLink(s[a - 2], s[a - 1]),
n.setTooltip(s[a - 2], s[a]);
break;
case 57:
case 65:
(this.$ = s[a - 4]),
n.setLink(s[a - 3], s[a - 2], s[a]),
n.setTooltip(s[a - 3], s[a - 1]);
break;
case 60:
(this.$ = s[a - 3]),
n.setClickEvent(s[a - 2], s[a - 1], s[a]);
break;
case 61:
(this.$ = s[a - 4]),
n.setClickEvent(s[a - 3], s[a - 2], s[a - 1]),
n.setTooltip(s[a - 3], s[a]);
break;
case 63:
(this.$ = s[a - 3]),
n.setLink(s[a - 2], s[a - 1], s[a]);
break;
case 66:
n.setCssClass(s[a - 1], s[a]);
}
},
table: [
{ 3: 1, 4: 2, 5: 3, 6: 4, 7: 5, 13: t, 17: i },
{ 1: [3] },
{ 1: [2, 1] },
{ 3: 8, 4: 2, 5: 3, 6: 4, 7: 5, 13: t, 17: i },
{ 1: [2, 3] },
{ 8: 9, 14: [1, 10] },
{ 10: [1, 11] },
{ 14: [2, 6] },
{ 1: [2, 2] },
{ 9: 12, 11: [1, 13], 16: n },
e([11, 16], [2, 7]),
{
5: 23,
7: 5,
13: t,
18: 15,
20: 16,
21: 24,
22: 33,
23: 34,
25: 17,
27: 18,
28: 19,
29: 20,
30: 21,
31: 22,
32: r,
37: s,
39: o,
40: a,
51: l,
52: c,
54: d,
58: h,
72: u,
73: g,
74: f,
75: p,
},
{ 10: [1, 39] },
{ 12: 40, 15: [1, 41] },
{ 10: [2, 9] },
{ 19: [1, 42] },
{ 10: [1, 43], 19: [2, 11] },
e(m, [2, 19], { 26: [1, 44] }),
e(m, [2, 21]),
e(m, [2, 22]),
e(m, [2, 23]),
e(m, [2, 24]),
e(m, [2, 25]),
e(m, [2, 26]),
e(m, [2, 34], {
41: 45,
43: 48,
44: 49,
26: [1, 47],
42: [1, 46],
45: _,
46: b,
47: v,
48: y,
49: w,
50: C,
}),
{
21: 56,
22: 33,
23: 34,
72: u,
73: g,
74: f,
75: p,
},
e(m, [2, 36]),
e(m, [2, 37]),
{ 22: 57, 72: u, 73: g, 74: f },
{
21: 58,
22: 33,
23: 34,
72: u,
73: g,
74: f,
75: p,
},
{
21: 59,
22: 33,
23: 34,
72: u,
73: g,
74: f,
75: p,
},
{
21: 60,
22: 33,
23: 34,
72: u,
73: g,
74: f,
75: p,
},
{ 42: [1, 61] },
e(S, [2, 14], {
22: 33,
23: 34,
21: 62,
24: [1, 63],
72: u,
73: g,
74: f,
75: p,
}),
e(S, [2, 15], { 24: [1, 64] }),
e(k, [2, 80]),
e(k, [2, 81]),
e(k, [2, 82]),
e(
[
10,
19,
24,
26,
33,
34,
42,
45,
46,
47,
48,
49,
50,
55,
57,
],
[2, 83]
),
e(x, [2, 4]),
{ 9: 65, 16: n },
{ 16: [2, 8] },
{ 1: [2, 10] },
{
5: 23,
7: 5,
13: t,
18: 66,
19: [2, 12],
20: 16,
21: 24,
22: 33,
23: 34,
25: 17,
27: 18,
28: 19,
29: 20,
30: 21,
31: 22,
32: r,
37: s,
39: o,
40: a,
51: l,
52: c,
54: d,
58: h,
72: u,
73: g,
74: f,
75: p,
},
e(m, [2, 20]),
{
21: 67,
22: 33,
23: 34,
42: [1, 68],
72: u,
73: g,
74: f,
75: p,
},
{
41: 69,
43: 48,
44: 49,
45: _,
46: b,
47: v,
48: y,
49: w,
50: C,
},
e(m, [2, 35]),
{ 44: 70, 49: w, 50: C },
e(L, [2, 45], { 43: 71, 45: _, 46: b, 47: v, 48: y }),
e(M, [2, 46]),
e(M, [2, 47]),
e(M, [2, 48]),
e(M, [2, 49]),
e(D, [2, 50]),
e(D, [2, 51]),
e(m, [2, 27], { 33: [1, 72], 34: [1, 73] }),
{ 38: [1, 74] },
{ 42: [1, 75] },
{ 42: [1, 76] },
{ 55: [1, 77], 57: [1, 78] },
{ 22: 79, 72: u, 73: g, 74: f },
e(S, [2, 16]),
e(S, [2, 17]),
e(S, [2, 18]),
{ 10: [1, 80] },
{ 19: [2, 13] },
e(N, [2, 38]),
{
21: 81,
22: 33,
23: 34,
72: u,
73: g,
74: f,
75: p,
},
{
21: 82,
22: 33,
23: 34,
42: [1, 83],
72: u,
73: g,
74: f,
75: p,
},
e(L, [2, 44], { 43: 84, 45: _, 46: b, 47: v, 48: y }),
e(L, [2, 43]),
{ 22: 85, 72: u, 73: g, 74: f },
{ 35: 86, 39: E },
{
21: 88,
22: 33,
23: 34,
72: u,
73: g,
74: f,
75: p,
},
e(m, [2, 52], { 42: [1, 89] }),
e(m, [2, 54], { 42: [1, 91], 53: [1, 90] }),
e(m, [2, 58], { 42: [1, 92], 56: [1, 93] }),
e(m, [2, 62], { 42: [1, 95], 53: [1, 94] }),
e(m, [2, 66]),
e(x, [2, 5]),
e(N, [2, 40]),
e(N, [2, 39]),
{
21: 96,
22: 33,
23: 34,
72: u,
73: g,
74: f,
75: p,
},
e(L, [2, 42]),
e(m, [2, 28], { 34: [1, 97] }),
{ 36: [1, 98] },
{ 35: 99, 36: [2, 32], 39: E },
e(m, [2, 31]),
e(m, [2, 53]),
e(m, [2, 55]),
e(m, [2, 56], { 53: [1, 100] }),
e(m, [2, 59]),
e(m, [2, 60], { 42: [1, 101] }),
e(m, [2, 63]),
e(m, [2, 64], { 53: [1, 102] }),
e(N, [2, 41]),
{ 35: 103, 39: E },
e(m, [2, 29]),
{ 36: [2, 33] },
e(m, [2, 57]),
e(m, [2, 61]),
e(m, [2, 65]),
{ 36: [1, 104] },
e(m, [2, 30]),
],
defaultActions: {
2: [2, 1],
4: [2, 3],
7: [2, 6],
8: [2, 2],
14: [2, 9],
41: [2, 8],
42: [2, 10],
66: [2, 13],
99: [2, 33],
},
parseError: function (e, t) {
if (!t.recoverable) {
var i = new Error(e);
throw ((i.hash = t), i);
}
this.trace(e);
},
parse: function (e) {
var t = this,
i = [0],
n = [],
r = [null],
s = [],
o = this.table,
a = '',
l = 0,
c = 0,
d = 0,
h = 2,
u = 1,
g = s.slice.call(arguments, 1),
f = Object.create(this.lexer),
p = { yy: {} };
for (var m in this.yy)
Object.prototype.hasOwnProperty.call(this.yy, m) &&
(p.yy[m] = this.yy[m]);
f.setInput(e, p.yy),
(p.yy.lexer = f),
(p.yy.parser = this),
void 0 === f.yylloc && (f.yylloc = {});
var _ = f.yylloc;
s.push(_);
var b = f.options && f.options.ranges;
function v() {
var e;
return (
'number' !=
typeof (e = n.pop() || f.lex() || u) &&
(e instanceof Array && (e = (n = e).pop()),
(e = t.symbols_[e] || e)),
e
);
}
'function' == typeof p.yy.parseError
? (this.parseError = p.yy.parseError)
: (this.parseError = Object.getPrototypeOf(
this
).parseError);
for (var y, w, C, S, k, x, L, M, D, N = {}; ; ) {
if (
((C = i[i.length - 1]),
this.defaultActions[C]
? (S = this.defaultActions[C])
: (null == y && (y = v()),
(S = o[C] && o[C][y])),
void 0 === S || !S.length || !S[0])
) {
var E = '';
for (x in ((D = []), o[C]))
this.terminals_[x] &&
x > h &&
D.push("'" + this.terminals_[x] + "'");
(E = f.showPosition
? 'Parse error on line ' +
(l + 1) +
':\n' +
f.showPosition() +
'\nExpecting ' +
D.join(', ') +
", got '" +
(this.terminals_[y] || y) +
"'"
: 'Parse error on line ' +
(l + 1) +
': Unexpected ' +
(y == u
? 'end of input'
: "'" + (this.terminals_[y] || y) + "'")),
this.parseError(E, {
text: f.match,
token: this.terminals_[y] || y,
line: f.yylineno,
loc: _,
expected: D,
});
}
if (S[0] instanceof Array && S.length > 1)
throw new Error(
'Parse Error: multiple actions possible at state: ' +
C +
', token: ' +
y
);
switch (S[0]) {
case 1:
i.push(y),
r.push(f.yytext),
s.push(f.yylloc),
i.push(S[1]),
(y = null),
w
? ((y = w), (w = null))
: ((c = f.yyleng),
(a = f.yytext),
(l = f.yylineno),
(_ = f.yylloc),
d > 0 && d--);
break;
case 2:
if (
((L = this.productions_[S[1]][1]),
(N.$ = r[r.length - L]),
(N._$ = {
first_line:
s[s.length - (L || 1)].first_line,
last_line: s[s.length - 1].last_line,
first_column:
s[s.length - (L || 1)].first_column,
last_column: s[s.length - 1].last_column,
}),
b &&
(N._$.range = [
s[s.length - (L || 1)].range[0],
s[s.length - 1].range[1],
]),
void 0 !==
(k = this.performAction.apply(
N,
[a, c, l, p.yy, S[1], r, s].concat(g)
)))
)
return k;
L &&
((i = i.slice(0, -1 * L * 2)),
(r = r.slice(0, -1 * L)),
(s = s.slice(0, -1 * L))),
i.push(this.productions_[S[1]][0]),
r.push(N.$),
s.push(N._$),
(M = o[i[i.length - 2]][i[i.length - 1]]),
i.push(M);
break;
case 3:
return !0;
}
}
return !0;
},
},
I = {
EOF: 1,
parseError: function (e, t) {
if (!this.yy.parser) throw new Error(e);
this.yy.parser.parseError(e, t);
},
setInput: function (e, t) {
return (
(this.yy = t || this.yy || {}),
(this._input = e),
(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 e = this._input[0];
return (
(this.yytext += e),
this.yyleng++,
this.offset++,
(this.match += e),
(this.matched += e),
e.match(/(?:\r\n?|\n).*/g)
? (this.yylineno++, this.yylloc.last_line++)
: this.yylloc.last_column++,
this.options.ranges && this.yylloc.range[1]++,
(this._input = this._input.slice(1)),
e
);
},
unput: function (e) {
var t = e.length,
i = e.split(/(?:\r\n?|\n)/g);
(this._input = e + this._input),
(this.yytext = this.yytext.substr(
0,
this.yytext.length - t
)),
(this.offset -= t);
var n = 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
)),
i.length - 1 && (this.yylineno -= i.length - 1);
var r = 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: i
? (i.length === n.length
? this.yylloc.first_column
: 0) +
n[n.length - i.length].length -
i[0].length
: this.yylloc.first_column - t,
}),
this.options.ranges &&
(this.yylloc.range = [
r[0],
r[0] + this.yyleng - t,
]),
(this.yyleng = this.yytext.length),
this
);
},
more: function () {
return (this._more = !0), this;
},
reject: function () {
return this.options.backtrack_lexer
? ((this._backtrack = !0), this)
: 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).\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
less: function (e) {
this.unput(this.match.slice(e));
},
pastInput: function () {
var e = this.matched.substr(
0,
this.matched.length - this.match.length
);
return (
(e.length > 20 ? '...' : '') +
e.substr(-20).replace(/\n/g, '')
);
},
upcomingInput: function () {
var e = this.match;
return (
e.length < 20 &&
(e += this._input.substr(0, 20 - e.length)),
(
e.substr(0, 20) + (e.length > 20 ? '...' : '')
).replace(/\n/g, '')
);
},
showPosition: function () {
var e = this.pastInput(),
t = new Array(e.length + 1).join('-');
return e + this.upcomingInput() + '\n' + t + '^';
},
test_match: function (e, t) {
var i, n, r;
if (
(this.options.backtrack_lexer &&
((r = {
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 &&
(r.yylloc.range = this.yylloc.range.slice(0))),
(n = e[0].match(/(?:\r\n?|\n).*/g)) &&
(this.yylineno += n.length),
(this.yylloc = {
first_line: this.yylloc.last_line,
last_line: this.yylineno + 1,
first_column: this.yylloc.last_column,
last_column: n
? n[n.length - 1].length -
n[n.length - 1].match(/\r?\n?/)[0].length
: this.yylloc.last_column + e[0].length,
}),
(this.yytext += e[0]),
(this.match += e[0]),
(this.matches = e),
(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(e[0].length)),
(this.matched += e[0]),
(i = this.performAction.call(
this,
this.yy,
this,
t,
this.conditionStack[
this.conditionStack.length - 1
]
)),
this.done && this._input && (this.done = !1),
i)
)
return i;
if (this._backtrack) {
for (var s in r) this[s] = r[s];
return !1;
}
return !1;
},
next: function () {
if (this.done) return this.EOF;
var e, t, i, n;
this._input || (this.done = !0),
this._more ||
((this.yytext = ''), (this.match = ''));
for (
var r = this._currentRules(), s = 0;
s < r.length;
s++
)
if (
(i = this._input.match(this.rules[r[s]])) &&
(!t || i[0].length > t[0].length)
) {
if (
((t = i), (n = s), this.options.backtrack_lexer)
) {
if (!1 !== (e = this.test_match(i, r[s])))
return e;
if (this._backtrack) {
t = !1;
continue;
}
return !1;
}
if (!this.options.flex) break;
}
return t
? !1 !== (e = this.test_match(t, r[n])) && e
: '' === this._input
? this.EOF
: this.parseError(
'Lexical error on line ' +
(this.yylineno + 1) +
'. Unrecognized text.\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
lex: function () {
return this.next() || this.lex();
},
begin: function (e) {
this.conditionStack.push(e);
},
popState: function () {
return this.conditionStack.length - 1 > 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 (e) {
return (e =
this.conditionStack.length -
1 -
Math.abs(e || 0)) >= 0
? this.conditionStack[e]
: 'INITIAL';
},
pushState: function (e) {
this.begin(e);
},
stateStackSize: function () {
return this.conditionStack.length;
},
options: {},
performAction: function (e, t, i, n) {
switch (i) {
case 0:
return this.begin('open_directive'), 13;
case 1:
return this.begin('type_directive'), 14;
case 2:
return (
this.popState(), this.begin('arg_directive'), 11
);
case 3:
return this.popState(), this.popState(), 16;
case 4:
return 15;
case 5:
case 6:
break;
case 7:
return 10;
case 8:
break;
case 9:
case 10:
return 17;
case 11:
return this.begin('struct'), 34;
case 12:
return 'EOF_IN_STRUCT';
case 13:
return 'OPEN_IN_STRUCT';
case 14:
return this.popState(), 36;
case 15:
break;
case 16:
return 'MEMBER';
case 17:
return 32;
case 18:
return 58;
case 19:
return 51;
case 20:
return 52;
case 21:
return 54;
case 22:
return 37;
case 23:
return 38;
case 24:
this.begin('generic');
break;
case 25:
this.popState();
break;
case 26:
return 'GENERICTYPE';
case 27:
this.begin('string');
break;
case 28:
this.popState();
break;
case 29:
return 'STR';
case 30:
this.begin('bqstring');
break;
case 31:
this.popState();
break;
case 32:
return 'BQUOTE_STR';
case 33:
this.begin('href');
break;
case 34:
this.popState();
break;
case 35:
return 57;
case 36:
this.begin('callback_name');
break;
case 37:
this.popState();
break;
case 38:
this.popState(), this.begin('callback_args');
break;
case 39:
return 55;
case 40:
this.popState();
break;
case 41:
return 56;
case 42:
case 43:
case 44:
case 45:
return 53;
case 46:
case 47:
return 46;
case 48:
case 49:
return 48;
case 50:
return 47;
case 51:
return 45;
case 52:
return 49;
case 53:
return 50;
case 54:
return 26;
case 55:
return 33;
case 56:
return 70;
case 57:
return 'DOT';
case 58:
return 'PLUS';
case 59:
return 67;
case 60:
case 61:
return 'EQUALS';
case 62:
return 74;
case 63:
return 'PUNCTUATION';
case 64:
return 73;
case 65:
return 72;
case 66:
return 69;
case 67:
return 19;
}
},
rules: [
/^(?:%%\{)/,
/^(?:((?:(?!\}%%)[^:.])*))/,
/^(?::)/,
/^(?:\}%%)/,
/^(?:((?:(?!\}%%).|\n)*))/,
/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,
/^(?:%%[^\n]*(\r?\n)*)/,
/^(?:(\r?\n)+)/,
/^(?:\s+)/,
/^(?:classDiagram-v2\b)/,
/^(?:classDiagram\b)/,
/^(?:[{])/,
/^(?:$)/,
/^(?:[{])/,
/^(?:[}])/,
/^(?:[\n])/,
/^(?:[^{}\n]*)/,
/^(?:class\b)/,
/^(?:cssClass\b)/,
/^(?:callback\b)/,
/^(?:link\b)/,
/^(?:click\b)/,
/^(?:<<)/,
/^(?:>>)/,
/^(?:[~])/,
/^(?:[~])/,
/^(?:[^~]*)/,
/^(?:["])/,
/^(?:["])/,
/^(?:[^"]*)/,
/^(?:[`])/,
/^(?:[`])/,
/^(?:[^`]+)/,
/^(?:href[\s]+["])/,
/^(?:["])/,
/^(?:[^"]*)/,
/^(?:call[\s]+)/,
/^(?:\([\s]*\))/,
/^(?:\()/,
/^(?:[^(]*)/,
/^(?:\))/,
/^(?:[^)]*)/,
/^(?:_self\b)/,
/^(?:_blank\b)/,
/^(?:_parent\b)/,
/^(?:_top\b)/,
/^(?:\s*<\|)/,
/^(?:\s*\|>)/,
/^(?:\s*>)/,
/^(?:\s*<)/,
/^(?:\s*\*)/,
/^(?:\s*o\b)/,
/^(?:--)/,
/^(?:\.\.)/,
/^(?::{1}[^:\n;]+)/,
/^(?::{3})/,
/^(?:-)/,
/^(?:\.)/,
/^(?:\+)/,
/^(?:%)/,
/^(?:=)/,
/^(?:=)/,
/^(?:\w+)/,
/^(?:[!"#$%&'*+,-.`?\\/])/,
/^(?:[0-9]+)/,
/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,
/^(?:\s)/,
/^(?:$)/,
],
conditions: {
arg_directive: { rules: [3, 4], inclusive: !1 },
type_directive: { rules: [2, 3], inclusive: !1 },
open_directive: { rules: [1], inclusive: !1 },
callback_args: { rules: [40, 41], inclusive: !1 },
callback_name: { rules: [37, 38, 39], inclusive: !1 },
href: { rules: [34, 35], inclusive: !1 },
struct: {
rules: [12, 13, 14, 15, 16],
inclusive: !1,
},
generic: { rules: [25, 26], inclusive: !1 },
bqstring: { rules: [31, 32], inclusive: !1 },
string: { rules: [28, 29], inclusive: !1 },
INITIAL: {
rules: [
0,
5,
6,
7,
8,
9,
10,
11,
17,
18,
19,
20,
21,
22,
23,
24,
27,
30,
33,
36,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
],
inclusive: !0,
},
},
};
function O() {
this.yy = {};
}
return (
(T.lexer = I), (O.prototype = T), (T.Parser = O), new O()
);
})();
(t.parser = r),
(t.Parser = r.Parser),
(t.parse = function () {
return r.parse.apply(r, arguments);
}),
(t.main = function (n) {
n[1] ||
(console.log('Usage: ' + n[0] + ' FILE'), e.exit(1));
var r = i(
'./node_modules/node-libs-browser/mock/empty.js'
).readFileSync(
i('./node_modules/path-browserify/index.js').normalize(
n[1]
),
'utf8'
);
return t.parser.parse(r);
}),
i.c[i.s] === n && t.main(e.argv.slice(1));
}.call(
this,
i('./node_modules/process/browser.js'),
i('./node_modules/webpack/buildin/module.js')(e)
));
},
'./src/diagrams/class/styles.js': function (e, t, i) {
'use strict';
i.r(t),
(t.default = function (e) {
return 'g.classGroup text {\n fill: '
.concat(e.nodeBorder, ';\n fill: ')
.concat(
e.classText,
';\n stroke: none;\n font-family: '
)
.concat(
e.fontFamily,
';\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: '
)
.concat(e.mainBkg, ';\n stroke: ')
.concat(
e.nodeBorder,
';\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: '
)
.concat(
e.nodeBorder,
';\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: '
)
.concat(e.mainBkg, ';\n stroke: ')
.concat(
e.nodeBorder,
';\n}\n\ng.classGroup line {\n stroke: '
)
.concat(
e.nodeBorder,
';\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: '
)
.concat(
e.mainBkg,
';\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: '
)
.concat(
e.nodeBorder,
';\n font-size: 10px;\n}\n\n.relation {\n stroke: '
)
.concat(
e.lineColor,
';\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n#compositionStart, .composition {\n fill: '
)
.concat(e.lineColor, ' !important;\n stroke: ')
.concat(
e.lineColor,
' !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: '
)
.concat(e.lineColor, ' !important;\n stroke: ')
.concat(
e.lineColor,
' !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: '
)
.concat(e.lineColor, ' !important;\n stroke: ')
.concat(
e.lineColor,
' !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: '
)
.concat(e.lineColor, ' !important;\n stroke: ')
.concat(
e.lineColor,
' !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: '
)
.concat(e.lineColor, ' !important;\n stroke: ')
.concat(
e.lineColor,
' !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: '
)
.concat(e.lineColor, ' !important;\n stroke: ')
.concat(
e.lineColor,
' !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: '
)
.concat(e.mainBkg, ' !important;\n stroke: ')
.concat(
e.lineColor,
' !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: '
)
.concat(e.mainBkg, ' !important;\n stroke: ')
.concat(
e.lineColor,
' !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n}\n\n'
);
});
},
'./src/diagrams/class/svgDraw.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'drawEdge', function () {
return l;
}),
i.d(t, 'drawClass', function () {
return c;
}),
i.d(t, 'parseMember', function () {
return d;
});
var n = i('d3'),
r = i('./src/diagrams/class/classDb.js'),
s = i('./src/utils.js'),
o = i('./src/logger.js'),
a = 0,
l = function (e, t, i, l) {
var c = function (e) {
switch (e) {
case r.relationType.AGGREGATION:
return 'aggregation';
case r.relationType.EXTENSION:
return 'extension';
case r.relationType.COMPOSITION:
return 'composition';
case r.relationType.DEPENDENCY:
return 'dependency';
}
};
t.points = t.points.filter(function (e) {
return !Number.isNaN(e.y);
});
var d,
h,
u = t.points,
g = Object(n.line)()
.x(function (e) {
return e.x;
})
.y(function (e) {
return e.y;
})
.curve(n.curveBasis),
f = e
.append('path')
.attr('d', g(u))
.attr('id', 'edge' + a)
.attr('class', 'relation'),
p = '';
l.arrowMarkerAbsolute &&
(p = (p = (p =
window.location.protocol +
'//' +
window.location.host +
window.location.pathname +
window.location.search).replace(/\(/g, '\\(')).replace(
/\)/g,
'\\)'
)),
1 == i.relation.lineType &&
f.attr('class', 'relation dashed-line'),
'none' !== i.relation.type1 &&
f.attr(
'marker-start',
'url(' + p + '#' + c(i.relation.type1) + 'Start)'
),
'none' !== i.relation.type2 &&
f.attr(
'marker-end',
'url(' + p + '#' + c(i.relation.type2) + 'End)'
);
var m,
_,
b,
v,
y = t.points.length,
w = s.default.calcLabelPosition(t.points);
if (((d = w.x), (h = w.y), y % 2 != 0 && y > 1)) {
var C = s.default.calcCardinalityPosition(
'none' !== i.relation.type1,
t.points,
t.points[0]
),
S = s.default.calcCardinalityPosition(
'none' !== i.relation.type2,
t.points,
t.points[y - 1]
);
o.log.debug('cardinality_1_point ' + JSON.stringify(C)),
o.log.debug('cardinality_2_point ' + JSON.stringify(S)),
(m = C.x),
(_ = C.y),
(b = S.x),
(v = S.y);
}
if (void 0 !== i.title) {
var k = e.append('g').attr('class', 'classLabel'),
x = k
.append('text')
.attr('class', 'label')
.attr('x', d)
.attr('y', h)
.attr('fill', 'red')
.attr('text-anchor', 'middle')
.text(i.title);
window.label = x;
var L = x.node().getBBox();
k.insert('rect', ':first-child')
.attr('class', 'box')
.attr('x', L.x - l.padding / 2)
.attr('y', L.y - l.padding / 2)
.attr('width', L.width + l.padding)
.attr('height', L.height + l.padding);
}
o.log.info('Rendering relation ' + JSON.stringify(i)),
void 0 !== i.relationTitle1 &&
'none' !== i.relationTitle1 &&
e
.append('g')
.attr('class', 'cardinality')
.append('text')
.attr('class', 'type1')
.attr('x', m)
.attr('y', _)
.attr('fill', 'black')
.attr('font-size', '6')
.text(i.relationTitle1),
void 0 !== i.relationTitle2 &&
'none' !== i.relationTitle2 &&
e
.append('g')
.attr('class', 'cardinality')
.append('text')
.attr('class', 'type2')
.attr('x', b)
.attr('y', v)
.attr('fill', 'black')
.attr('font-size', '6')
.text(i.relationTitle2),
a++;
},
c = function (e, t, i) {
o.log.info('Rendering class ' + t);
var n,
s = t.id,
a = { id: s, label: t.id, width: 0, height: 0 },
l = e
.append('g')
.attr('id', Object(r.lookUpDomId)(s))
.attr('class', 'classGroup');
n = t.link
? l
.append('svg:a')
.attr('xlink:href', t.link)
.attr('target', t.linkTarget)
.append('text')
.attr('y', i.textHeight + i.padding)
.attr('x', 0)
: l
.append('text')
.attr('y', i.textHeight + i.padding)
.attr('x', 0);
var c = !0;
t.annotations.forEach(function (e) {
var t = n.append('tspan').text('«' + e + '»');
c || t.attr('dy', i.textHeight), (c = !1);
});
var d = t.id;
void 0 !== t.type &&
'' !== t.type &&
(d += '<' + t.type + '>');
var h = n.append('tspan').text(d).attr('class', 'title');
c || h.attr('dy', i.textHeight);
var u = n.node().getBBox().height,
g = l
.append('line')
.attr('x1', 0)
.attr('y1', i.padding + u + i.dividerMargin / 2)
.attr('y2', i.padding + u + i.dividerMargin / 2),
p = l
.append('text')
.attr('x', i.padding)
.attr('y', u + i.dividerMargin + i.textHeight)
.attr('fill', 'white')
.attr('class', 'classText');
(c = !0),
t.members.forEach(function (e) {
f(p, e, c, i), (c = !1);
});
var m = p.node().getBBox(),
_ = l
.append('line')
.attr('x1', 0)
.attr('y1', i.padding + u + i.dividerMargin + m.height)
.attr('y2', i.padding + u + i.dividerMargin + m.height),
b = l
.append('text')
.attr('x', i.padding)
.attr(
'y',
u + 2 * i.dividerMargin + m.height + i.textHeight
)
.attr('fill', 'white')
.attr('class', 'classText');
(c = !0),
t.methods.forEach(function (e) {
f(b, e, c, i), (c = !1);
});
var v = l.node().getBBox(),
y = ' ';
t.cssClasses.length > 0 && (y += t.cssClasses.join(' '));
var w = l
.insert('rect', ':first-child')
.attr('x', 0)
.attr('y', 0)
.attr('width', v.width + 2 * i.padding)
.attr(
'height',
v.height + i.padding + 0.5 * i.dividerMargin
)
.attr('class', y)
.node()
.getBBox().width;
return (
n.node().childNodes.forEach(function (e) {
e.setAttribute('x', (w - e.getBBox().width) / 2);
}),
t.tooltip && n.insert('title').text(t.tooltip),
g.attr('x2', w),
_.attr('x2', w),
(a.width = w),
(a.height = v.height + i.padding + 0.5 * i.dividerMargin),
a
);
},
d = function (e) {
var t = e.match(/(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+)/),
i = e.match(
/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/
);
return t && !i ? h(t) : i ? u(i) : g(e);
},
h = function (e) {
var t = '';
try {
t =
(e[1] ? e[1].trim() : '') +
(e[2] ? e[2].trim() : '') +
(e[3] ? p(e[3].trim()) : '') +
' ' +
(e[4] ? e[4].trim() : '');
} catch (i) {
t = e;
}
return { displayText: t, cssStyle: '' };
},
u = function (e) {
var t = '',
i = '';
try {
var n = e[1] ? e[1].trim() : '',
r = e[2] ? e[2].trim() : '',
s = e[3] ? p(e[3].trim()) : '',
o = e[4] ? e[4].trim() : '';
(i =
n +
r +
'(' +
s +
')' +
(e[5] ? ' : ' + p(e[5]).trim() : '')),
(t = m(o));
} catch (t) {
i = e;
}
return { displayText: i, cssStyle: t };
},
g = function (e) {
var t = '',
i = '',
n = '',
r = e.indexOf('('),
s = e.indexOf(')');
if (r > 1 && s > r && s <= e.length) {
var o = '',
a = '',
l = e.substring(0, 1);
l.match(/\w/)
? (a = e.substring(0, r).trim())
: (l.match(/\+|-|~|#/) && (o = l),
(a = e.substring(1, r).trim()));
var c = e.substring(r + 1, s),
d = e.substring(s + 1, 1);
(i = m(d)),
(t = o + a + '(' + p(c.trim()) + ')'),
s < ''.length &&
'' !== (n = e.substring(s + 2).trim()) &&
(n = ' : ' + p(n));
} else t = p(e);
return { displayText: t, cssStyle: i };
},
f = function (e, t, i, n) {
var r = d(t),
s = e
.append('tspan')
.attr('x', n.padding)
.text(r.displayText);
'' !== r.cssStyle && s.attr('style', r.cssStyle),
i || s.attr('dy', n.textHeight);
},
p = function e(t) {
var i = t;
return -1 != t.indexOf('~')
? e((i = (i = i.replace('~', '<')).replace('~', '>')))
: i;
},
m = function (e) {
switch (e) {
case '*':
return 'font-style:italic;';
case '$':
return 'text-decoration:underline;';
default:
return '';
}
};
t.default = { drawClass: c, drawEdge: l, parseMember: d };
},
'./src/diagrams/common/common.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'getRows', function () {
return n;
}),
i.d(t, 'removeScript', function () {
return r;
}),
i.d(t, 'sanitizeText', function () {
return s;
}),
i.d(t, 'lineBreakRegex', function () {
return o;
}),
i.d(t, 'hasBreaks', function () {
return a;
}),
i.d(t, 'splitBreaks', function () {
return l;
});
var n = function (e) {
if (!e) return 1;
var t = c(e);
return (t = t.replace(/\\n/g, '#br#')).split('#br#');
},
r = function (e) {
for (var t = '', i = 0; i >= 0; ) {
if (!((i = e.indexOf('')) >= 0 &&
((i += 9), (e = e.substr(i)));
}
return t;
},
s = function (e, t) {
var i = e,
n = !0;
if (
(!t.flowchart ||
(!1 !== t.flowchart.htmlLabels &&
'false' !== t.flowchart.htmlLabels) ||
(n = !1),
n)
) {
var s = t.securityLevel;
'antiscript' === s
? (i = r(i))
: 'loose' !== s &&
((i = (i = (i = c(i))
.replace(//g, '>')).replace(/=/g, '=')),
(i = d(i)));
}
return i;
},
o = /
/gi,
a = function (e) {
return /
/gi.test(e);
},
l = function (e) {
return e.split(/
/gi);
},
c = function (e) {
return e.replace(o, '#br#');
},
d = function (e) {
return e.replace(/#br#/g, '
');
};
t.default = {
getRows: n,
sanitizeText: s,
hasBreaks: a,
splitBreaks: l,
lineBreakRegex: o,
removeScript: r,
getUrl: function (e) {
var t = '';
return (
e &&
(t = (t = (t =
window.location.protocol +
'//' +
window.location.host +
window.location.pathname +
window.location.search).replace(
/\(/g,
'\\('
)).replace(/\)/g, '\\)')),
t
);
},
};
},
'./src/diagrams/er/erDb.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'parseDirective', function () {
return c;
});
var n = i('./src/logger.js'),
r = i('./src/mermaidAPI.js'),
s = i('./src/config.js'),
o = {},
a = [],
l = '',
c = function (e, t, i) {
r.default.parseDirective(this, e, t, i);
},
d = function (e) {
return (
void 0 === o[e] &&
((o[e] = { attributes: [] }),
n.log.info('Added new entity :', e)),
o[e]
);
};
t.default = {
Cardinality: {
ZERO_OR_ONE: 'ZERO_OR_ONE',
ZERO_OR_MORE: 'ZERO_OR_MORE',
ONE_OR_MORE: 'ONE_OR_MORE',
ONLY_ONE: 'ONLY_ONE',
},
Identification: {
NON_IDENTIFYING: 'NON_IDENTIFYING',
IDENTIFYING: 'IDENTIFYING',
},
parseDirective: c,
getConfig: function () {
return s.getConfig().er;
},
addEntity: d,
addAttributes: function (e, t) {
var i,
r = d(e);
for (i = t.length - 1; i >= 0; i--)
r.attributes.push(t[i]),
n.log.debug('Added attribute ', t[i].attributeName);
},
getEntities: function () {
return o;
},
addRelationship: function (e, t, i, r) {
var s = { entityA: e, roleA: t, entityB: i, relSpec: r };
a.push(s), n.log.debug('Added new relationship :', s);
},
getRelationships: function () {
return a;
},
clear: function () {
(o = {}), (a = []), (l = '');
},
setTitle: function (e) {
l = e;
},
getTitle: function () {
return l;
},
};
},
'./src/diagrams/er/erMarkers.js': function (e, t, i) {
'use strict';
i.r(t);
var n = {
ONLY_ONE_START: 'ONLY_ONE_START',
ONLY_ONE_END: 'ONLY_ONE_END',
ZERO_OR_ONE_START: 'ZERO_OR_ONE_START',
ZERO_OR_ONE_END: 'ZERO_OR_ONE_END',
ONE_OR_MORE_START: 'ONE_OR_MORE_START',
ONE_OR_MORE_END: 'ONE_OR_MORE_END',
ZERO_OR_MORE_START: 'ZERO_OR_MORE_START',
ZERO_OR_MORE_END: 'ZERO_OR_MORE_END',
};
t.default = {
ERMarkers: n,
insertMarkers: function (e, t) {
var i;
e
.append('defs')
.append('marker')
.attr('id', n.ONLY_ONE_START)
.attr('refX', 0)
.attr('refY', 9)
.attr('markerWidth', 18)
.attr('markerHeight', 18)
.attr('orient', 'auto')
.append('path')
.attr('stroke', t.stroke)
.attr('fill', 'none')
.attr('d', 'M9,0 L9,18 M15,0 L15,18'),
e
.append('defs')
.append('marker')
.attr('id', n.ONLY_ONE_END)
.attr('refX', 18)
.attr('refY', 9)
.attr('markerWidth', 18)
.attr('markerHeight', 18)
.attr('orient', 'auto')
.append('path')
.attr('stroke', t.stroke)
.attr('fill', 'none')
.attr('d', 'M3,0 L3,18 M9,0 L9,18'),
(i = e
.append('defs')
.append('marker')
.attr('id', n.ZERO_OR_ONE_START)
.attr('refX', 0)
.attr('refY', 9)
.attr('markerWidth', 30)
.attr('markerHeight', 18)
.attr('orient', 'auto'))
.append('circle')
.attr('stroke', t.stroke)
.attr('fill', 'white')
.attr('cx', 21)
.attr('cy', 9)
.attr('r', 6),
i
.append('path')
.attr('stroke', t.stroke)
.attr('fill', 'none')
.attr('d', 'M9,0 L9,18'),
(i = e
.append('defs')
.append('marker')
.attr('id', n.ZERO_OR_ONE_END)
.attr('refX', 30)
.attr('refY', 9)
.attr('markerWidth', 30)
.attr('markerHeight', 18)
.attr('orient', 'auto'))
.append('circle')
.attr('stroke', t.stroke)
.attr('fill', 'white')
.attr('cx', 9)
.attr('cy', 9)
.attr('r', 6),
i
.append('path')
.attr('stroke', t.stroke)
.attr('fill', 'none')
.attr('d', 'M21,0 L21,18'),
e
.append('defs')
.append('marker')
.attr('id', n.ONE_OR_MORE_START)
.attr('refX', 18)
.attr('refY', 18)
.attr('markerWidth', 45)
.attr('markerHeight', 36)
.attr('orient', 'auto')
.append('path')
.attr('stroke', t.stroke)
.attr('fill', 'none')
.attr(
'd',
'M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27'
),
e
.append('defs')
.append('marker')
.attr('id', n.ONE_OR_MORE_END)
.attr('refX', 27)
.attr('refY', 18)
.attr('markerWidth', 45)
.attr('markerHeight', 36)
.attr('orient', 'auto')
.append('path')
.attr('stroke', t.stroke)
.attr('fill', 'none')
.attr('d', 'M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18'),
(i = e
.append('defs')
.append('marker')
.attr('id', n.ZERO_OR_MORE_START)
.attr('refX', 18)
.attr('refY', 18)
.attr('markerWidth', 57)
.attr('markerHeight', 36)
.attr('orient', 'auto'))
.append('circle')
.attr('stroke', t.stroke)
.attr('fill', 'white')
.attr('cx', 48)
.attr('cy', 18)
.attr('r', 6),
i
.append('path')
.attr('stroke', t.stroke)
.attr('fill', 'none')
.attr('d', 'M0,18 Q18,0 36,18 Q18,36 0,18'),
(i = e
.append('defs')
.append('marker')
.attr('id', n.ZERO_OR_MORE_END)
.attr('refX', 39)
.attr('refY', 18)
.attr('markerWidth', 57)
.attr('markerHeight', 36)
.attr('orient', 'auto'))
.append('circle')
.attr('stroke', t.stroke)
.attr('fill', 'white')
.attr('cx', 9)
.attr('cy', 18)
.attr('r', 6),
i
.append('path')
.attr('stroke', t.stroke)
.attr('fill', 'none')
.attr('d', 'M21,18 Q39,0 57,18 Q39,36 21,18');
},
};
},
'./src/diagrams/er/erRenderer.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'setConf', function () {
return m;
}),
i.d(t, 'draw', function () {
return v;
});
var n = i('graphlib'),
r = i.n(n),
s = i('d3'),
o = i('./src/diagrams/er/erDb.js'),
a = i('./src/diagrams/er/parser/erDiagram.jison'),
l = i.n(a),
c = i('dagre'),
d = i.n(c),
h = i('./src/config.js'),
u = i('./src/logger.js'),
g = i('./src/diagrams/er/erMarkers.js'),
f = i('./src/utils.js'),
p = {},
m = function (e) {
for (var t = Object.keys(e), i = 0; i < t.length; i++)
p[t[i]] = e[t[i]];
},
_ = function (e) {
return (e.entityA + e.roleA + e.entityB).replace(/\s/g, '');
},
b = 0,
v = function (e, t) {
u.log.info('Drawing ER diagram'), o.default.clear();
var i = l.a.parser;
i.yy = o.default;
try {
i.parse(e);
} catch (e) {
u.log.debug('Parsing failed');
}
var n,
a = Object(s.select)("[id='".concat(t, "']"));
g.default.insertMarkers(a, p),
(n = new r.a.Graph({
multigraph: !0,
directed: !0,
compound: !1,
})
.setGraph({
rankdir: p.layoutDirection,
marginx: 20,
marginy: 20,
nodesep: 100,
edgesep: 100,
ranksep: 100,
})
.setDefaultEdgeLabel(function () {
return {};
}));
var c,
m,
v = (function (e, t, i) {
var n;
return (
Object.keys(t).forEach(function (r) {
var s = e.append('g').attr('id', r);
n = void 0 === n ? r : n;
var o = 'entity-' + r,
a = s
.append('text')
.attr('class', 'er entityLabel')
.attr('id', o)
.attr('x', 0)
.attr('y', 0)
.attr('dominant-baseline', 'middle')
.attr('text-anchor', 'middle')
.attr(
'style',
'font-family: ' +
Object(h.getConfig)().fontFamily +
'; font-size: ' +
p.fontSize +
'px'
)
.text(r),
l = (function (e, t, i) {
var n = p.entityPadding / 3,
r = p.entityPadding / 3,
s = 0.85 * p.fontSize,
o = t.node().getBBox(),
a = [],
l = 0,
c = 0,
d = o.height + 2 * n,
u = 1;
i.forEach(function (i) {
var r = ''
.concat(t.node().id, '-attr-')
.concat(u),
o = e
.append('text')
.attr('class', 'er entityLabel')
.attr('id', ''.concat(r, '-type'))
.attr('x', 0)
.attr('y', 0)
.attr('dominant-baseline', 'middle')
.attr('text-anchor', 'left')
.attr(
'style',
'font-family: ' +
Object(h.getConfig)().fontFamily +
'; font-size: ' +
s +
'px'
)
.text(i.attributeType),
g = e
.append('text')
.attr('class', 'er entityLabel')
.attr('id', ''.concat(r, '-name'))
.attr('x', 0)
.attr('y', 0)
.attr('dominant-baseline', 'middle')
.attr('text-anchor', 'left')
.attr(
'style',
'font-family: ' +
Object(h.getConfig)().fontFamily +
'; font-size: ' +
s +
'px'
)
.text(i.attributeName);
a.push({ tn: o, nn: g });
var f = o.node().getBBox(),
p = g.node().getBBox();
(l = Math.max(l, f.width)),
(c = Math.max(c, p.width)),
(d += Math.max(f.height, p.height) + 2 * n),
(u += 1);
});
var g = {
width: Math.max(
p.minEntityWidth,
Math.max(
o.width + 2 * p.entityPadding,
l + c + 4 * r
)
),
height:
i.length > 0
? d
: Math.max(
p.minEntityHeight,
o.height + 2 * p.entityPadding
),
},
f = Math.max(0, g.width - (l + c) - 4 * r);
if (i.length > 0) {
t.attr(
'transform',
'translate(' +
g.width / 2 +
',' +
(n + o.height / 2) +
')'
);
var m = o.height + 2 * n,
_ = 'attributeBoxOdd';
a.forEach(function (t) {
var i =
m +
n +
Math.max(
t.tn.node().getBBox().height,
t.nn.node().getBBox().height
) /
2;
t.tn.attr(
'transform',
'translate(' + r + ',' + i + ')'
);
var s = e
.insert('rect', '#' + t.tn.node().id)
.attr('class', 'er '.concat(_))
.attr('fill', p.fill)
.attr('fill-opacity', '100%')
.attr('stroke', p.stroke)
.attr('x', 0)
.attr('y', m)
.attr('width', l + 2 * r + f / 2)
.attr(
'height',
t.tn.node().getBBox().height + 2 * n
);
t.nn.attr(
'transform',
'translate(' +
(parseFloat(s.attr('width')) + r) +
',' +
i +
')'
),
e
.insert('rect', '#' + t.nn.node().id)
.attr('class', 'er '.concat(_))
.attr('fill', p.fill)
.attr('fill-opacity', '100%')
.attr('stroke', p.stroke)
.attr(
'x',
''.concat(
s.attr('x') + s.attr('width')
)
)
.attr('y', m)
.attr('width', c + 2 * r + f / 2)
.attr(
'height',
t.nn.node().getBBox().height + 2 * n
),
(m +=
Math.max(
t.tn.node().getBBox().height,
t.nn.node().getBBox().height
) +
2 * n),
(_ =
'attributeBoxOdd' == _
? 'attributeBoxEven'
: 'attributeBoxOdd');
});
} else
(g.height = Math.max(p.minEntityHeight, d)),
t.attr(
'transform',
'translate(' +
g.width / 2 +
',' +
g.height / 2 +
')'
);
return g;
})(s, a, t[r].attributes),
c = l.width,
d = l.height,
u = s
.insert('rect', '#' + o)
.attr('class', 'er entityBox')
.attr('fill', p.fill)
.attr('fill-opacity', '100%')
.attr('stroke', p.stroke)
.attr('x', 0)
.attr('y', 0)
.attr('width', c)
.attr('height', d)
.node()
.getBBox();
i.setNode(r, {
width: u.width,
height: u.height,
shape: 'rect',
id: r,
});
}),
n
);
})(a, o.default.getEntities(), n),
y = (function (e, t) {
return (
e.forEach(function (e) {
t.setEdge(
e.entityA,
e.entityB,
{ relationship: e },
_(e)
);
}),
e
);
})(o.default.getRelationships(), n);
d.a.layout(n),
(c = a),
(m = n).nodes().forEach(function (e) {
void 0 !== e &&
void 0 !== m.node(e) &&
c
.select('#' + e)
.attr(
'transform',
'translate(' +
(m.node(e).x - m.node(e).width / 2) +
',' +
(m.node(e).y - m.node(e).height / 2) +
' )'
);
}),
y.forEach(function (e) {
!(function (e, t, i, n) {
b++;
var r = i.edge(t.entityA, t.entityB, _(t)),
a = Object(s.line)()
.x(function (e) {
return e.x;
})
.y(function (e) {
return e.y;
})
.curve(s.curveBasis),
l = e
.insert('path', '#' + n)
.attr('class', 'er relationshipLine')
.attr('d', a(r.points))
.attr('stroke', p.stroke)
.attr('fill', 'none');
t.relSpec.relType ===
o.default.Identification.NON_IDENTIFYING &&
l.attr('stroke-dasharray', '8,8');
var c = '';
switch (
(p.arrowMarkerAbsolute &&
(c = (c = (c =
window.location.protocol +
'//' +
window.location.host +
window.location.pathname +
window.location.search).replace(
/\(/g,
'\\('
)).replace(/\)/g, '\\)')),
t.relSpec.cardA)
) {
case o.default.Cardinality.ZERO_OR_ONE:
l.attr(
'marker-end',
'url(' +
c +
'#' +
g.default.ERMarkers.ZERO_OR_ONE_END +
')'
);
break;
case o.default.Cardinality.ZERO_OR_MORE:
l.attr(
'marker-end',
'url(' +
c +
'#' +
g.default.ERMarkers.ZERO_OR_MORE_END +
')'
);
break;
case o.default.Cardinality.ONE_OR_MORE:
l.attr(
'marker-end',
'url(' +
c +
'#' +
g.default.ERMarkers.ONE_OR_MORE_END +
')'
);
break;
case o.default.Cardinality.ONLY_ONE:
l.attr(
'marker-end',
'url(' +
c +
'#' +
g.default.ERMarkers.ONLY_ONE_END +
')'
);
}
switch (t.relSpec.cardB) {
case o.default.Cardinality.ZERO_OR_ONE:
l.attr(
'marker-start',
'url(' +
c +
'#' +
g.default.ERMarkers.ZERO_OR_ONE_START +
')'
);
break;
case o.default.Cardinality.ZERO_OR_MORE:
l.attr(
'marker-start',
'url(' +
c +
'#' +
g.default.ERMarkers.ZERO_OR_MORE_START +
')'
);
break;
case o.default.Cardinality.ONE_OR_MORE:
l.attr(
'marker-start',
'url(' +
c +
'#' +
g.default.ERMarkers.ONE_OR_MORE_START +
')'
);
break;
case o.default.Cardinality.ONLY_ONE:
l.attr(
'marker-start',
'url(' +
c +
'#' +
g.default.ERMarkers.ONLY_ONE_START +
')'
);
}
var d = l.node().getTotalLength(),
u = l.node().getPointAtLength(0.5 * d),
f = 'rel' + b,
m = e
.append('text')
.attr('class', 'er relationshipLabel')
.attr('id', f)
.attr('x', u.x)
.attr('y', u.y)
.attr('text-anchor', 'middle')
.attr('dominant-baseline', 'middle')
.attr(
'style',
'font-family: ' +
Object(h.getConfig)().fontFamily +
'; font-size: ' +
p.fontSize +
'px'
)
.text(t.roleA)
.node()
.getBBox();
e.insert('rect', '#' + f)
.attr('class', 'er relationshipLabelBox')
.attr('x', u.x - m.width / 2)
.attr('y', u.y - m.height / 2)
.attr('width', m.width)
.attr('height', m.height)
.attr('fill', 'white')
.attr('fill-opacity', '85%');
})(a, e, n, v);
});
var w = p.diagramPadding,
C = a.node().getBBox(),
S = C.width + 2 * w,
k = C.height + 2 * w;
Object(f.configureSvgSize)(a, k, S, p.useMaxWidth),
a.attr(
'viewBox',
''
.concat(C.x - w, ' ')
.concat(C.y - w, ' ')
.concat(S, ' ')
.concat(k)
);
};
t.default = { setConf: m, draw: v };
},
'./src/diagrams/er/parser/erDiagram.jison': function (e, t, i) {
(function (e, n) {
var r = (function () {
var e = function (e, t, i, n) {
for (i = i || {}, n = e.length; n--; i[e[n]] = t);
return i;
},
t = [1, 2],
i = [1, 5],
n = [6, 9, 11, 23, 37],
r = [1, 17],
s = [1, 20],
o = [1, 25],
a = [1, 26],
l = [1, 27],
c = [1, 28],
d = [1, 37],
h = [23, 34, 35],
u = [4, 6, 9, 11, 23, 37],
g = [30, 31, 32, 33],
f = [22, 27],
p = {
trace: function () {},
yy: {},
symbols_: {
error: 2,
start: 3,
ER_DIAGRAM: 4,
document: 5,
EOF: 6,
directive: 7,
line: 8,
SPACE: 9,
statement: 10,
NEWLINE: 11,
openDirective: 12,
typeDirective: 13,
closeDirective: 14,
':': 15,
argDirective: 16,
entityName: 17,
relSpec: 18,
role: 19,
BLOCK_START: 20,
attributes: 21,
BLOCK_STOP: 22,
ALPHANUM: 23,
attribute: 24,
attributeType: 25,
attributeName: 26,
ATTRIBUTE_WORD: 27,
cardinality: 28,
relType: 29,
ZERO_OR_ONE: 30,
ZERO_OR_MORE: 31,
ONE_OR_MORE: 32,
ONLY_ONE: 33,
NON_IDENTIFYING: 34,
IDENTIFYING: 35,
WORD: 36,
open_directive: 37,
type_directive: 38,
arg_directive: 39,
close_directive: 40,
$accept: 0,
$end: 1,
},
terminals_: {
2: 'error',
4: 'ER_DIAGRAM',
6: 'EOF',
9: 'SPACE',
11: 'NEWLINE',
15: ':',
20: 'BLOCK_START',
22: 'BLOCK_STOP',
23: 'ALPHANUM',
27: 'ATTRIBUTE_WORD',
30: 'ZERO_OR_ONE',
31: 'ZERO_OR_MORE',
32: 'ONE_OR_MORE',
33: 'ONLY_ONE',
34: 'NON_IDENTIFYING',
35: 'IDENTIFYING',
36: 'WORD',
37: 'open_directive',
38: 'type_directive',
39: 'arg_directive',
40: 'close_directive',
},
productions_: [
0,
[3, 3],
[3, 2],
[5, 0],
[5, 2],
[8, 2],
[8, 1],
[8, 1],
[8, 1],
[7, 4],
[7, 6],
[10, 1],
[10, 5],
[10, 4],
[10, 3],
[10, 1],
[17, 1],
[21, 1],
[21, 2],
[24, 2],
[25, 1],
[26, 1],
[18, 3],
[28, 1],
[28, 1],
[28, 1],
[28, 1],
[29, 1],
[29, 1],
[19, 1],
[19, 1],
[12, 1],
[13, 1],
[16, 1],
[14, 1],
],
performAction: function (e, t, i, n, r, s, o) {
var a = s.length - 1;
switch (r) {
case 1:
break;
case 3:
this.$ = [];
break;
case 4:
s[a - 1].push(s[a]), (this.$ = s[a - 1]);
break;
case 5:
case 6:
this.$ = s[a];
break;
case 7:
case 8:
this.$ = [];
break;
case 12:
n.addEntity(s[a - 4]),
n.addEntity(s[a - 2]),
n.addRelationship(
s[a - 4],
s[a],
s[a - 2],
s[a - 3]
);
break;
case 13:
n.addEntity(s[a - 3]),
n.addAttributes(s[a - 3], s[a - 1]);
break;
case 14:
n.addEntity(s[a - 2]);
break;
case 15:
n.addEntity(s[a]);
break;
case 16:
this.$ = s[a];
break;
case 17:
this.$ = [s[a]];
break;
case 18:
s[a].push(s[a - 1]), (this.$ = s[a]);
break;
case 19:
this.$ = {
attributeType: s[a - 1],
attributeName: s[a],
};
break;
case 20:
case 21:
this.$ = s[a];
break;
case 22:
this.$ = {
cardA: s[a],
relType: s[a - 1],
cardB: s[a - 2],
};
break;
case 23:
this.$ = n.Cardinality.ZERO_OR_ONE;
break;
case 24:
this.$ = n.Cardinality.ZERO_OR_MORE;
break;
case 25:
this.$ = n.Cardinality.ONE_OR_MORE;
break;
case 26:
this.$ = n.Cardinality.ONLY_ONE;
break;
case 27:
this.$ = n.Identification.NON_IDENTIFYING;
break;
case 28:
this.$ = n.Identification.IDENTIFYING;
break;
case 29:
this.$ = s[a].replace(/"/g, '');
break;
case 30:
this.$ = s[a];
break;
case 31:
n.parseDirective('%%{', 'open_directive');
break;
case 32:
n.parseDirective(s[a], 'type_directive');
break;
case 33:
(s[a] = s[a].trim().replace(/'/g, '"')),
n.parseDirective(s[a], 'arg_directive');
break;
case 34:
n.parseDirective('}%%', 'close_directive', 'er');
}
},
table: [
{ 3: 1, 4: t, 7: 3, 12: 4, 37: i },
{ 1: [3] },
e(n, [2, 3], { 5: 6 }),
{ 3: 7, 4: t, 7: 3, 12: 4, 37: i },
{ 13: 8, 38: [1, 9] },
{ 38: [2, 31] },
{
6: [1, 10],
7: 15,
8: 11,
9: [1, 12],
10: 13,
11: [1, 14],
12: 4,
17: 16,
23: r,
37: i,
},
{ 1: [2, 2] },
{ 14: 18, 15: [1, 19], 40: s },
e([15, 40], [2, 32]),
e(n, [2, 8], { 1: [2, 1] }),
e(n, [2, 4]),
{ 7: 15, 10: 21, 12: 4, 17: 16, 23: r, 37: i },
e(n, [2, 6]),
e(n, [2, 7]),
e(n, [2, 11]),
e(n, [2, 15], {
18: 22,
28: 24,
20: [1, 23],
30: o,
31: a,
32: l,
33: c,
}),
e(
[6, 9, 11, 15, 20, 23, 30, 31, 32, 33, 37],
[2, 16]
),
{ 11: [1, 29] },
{ 16: 30, 39: [1, 31] },
{ 11: [2, 34] },
e(n, [2, 5]),
{ 17: 32, 23: r },
{ 21: 33, 22: [1, 34], 24: 35, 25: 36, 27: d },
{ 29: 38, 34: [1, 39], 35: [1, 40] },
e(h, [2, 23]),
e(h, [2, 24]),
e(h, [2, 25]),
e(h, [2, 26]),
e(u, [2, 9]),
{ 14: 41, 40: s },
{ 40: [2, 33] },
{ 15: [1, 42] },
{ 22: [1, 43] },
e(n, [2, 14]),
{ 21: 44, 22: [2, 17], 24: 35, 25: 36, 27: d },
{ 26: 45, 27: [1, 46] },
{ 27: [2, 20] },
{ 28: 47, 30: o, 31: a, 32: l, 33: c },
e(g, [2, 27]),
e(g, [2, 28]),
{ 11: [1, 48] },
{ 19: 49, 23: [1, 51], 36: [1, 50] },
e(n, [2, 13]),
{ 22: [2, 18] },
e(f, [2, 19]),
e(f, [2, 21]),
{ 23: [2, 22] },
e(u, [2, 10]),
e(n, [2, 12]),
e(n, [2, 29]),
e(n, [2, 30]),
],
defaultActions: {
5: [2, 31],
7: [2, 2],
20: [2, 34],
31: [2, 33],
37: [2, 20],
44: [2, 18],
47: [2, 22],
},
parseError: function (e, t) {
if (!t.recoverable) {
var i = new Error(e);
throw ((i.hash = t), i);
}
this.trace(e);
},
parse: function (e) {
var t = this,
i = [0],
n = [],
r = [null],
s = [],
o = this.table,
a = '',
l = 0,
c = 0,
d = 0,
h = 2,
u = 1,
g = s.slice.call(arguments, 1),
f = Object.create(this.lexer),
p = { yy: {} };
for (var m in this.yy)
Object.prototype.hasOwnProperty.call(this.yy, m) &&
(p.yy[m] = this.yy[m]);
f.setInput(e, p.yy),
(p.yy.lexer = f),
(p.yy.parser = this),
void 0 === f.yylloc && (f.yylloc = {});
var _ = f.yylloc;
s.push(_);
var b = f.options && f.options.ranges;
function v() {
var e;
return (
'number' !=
typeof (e = n.pop() || f.lex() || u) &&
(e instanceof Array && (e = (n = e).pop()),
(e = t.symbols_[e] || e)),
e
);
}
'function' == typeof p.yy.parseError
? (this.parseError = p.yy.parseError)
: (this.parseError = Object.getPrototypeOf(
this
).parseError);
for (var y, w, C, S, k, x, L, M, D, N = {}; ; ) {
if (
((C = i[i.length - 1]),
this.defaultActions[C]
? (S = this.defaultActions[C])
: (null == y && (y = v()),
(S = o[C] && o[C][y])),
void 0 === S || !S.length || !S[0])
) {
var E = '';
for (x in ((D = []), o[C]))
this.terminals_[x] &&
x > h &&
D.push("'" + this.terminals_[x] + "'");
(E = f.showPosition
? 'Parse error on line ' +
(l + 1) +
':\n' +
f.showPosition() +
'\nExpecting ' +
D.join(', ') +
", got '" +
(this.terminals_[y] || y) +
"'"
: 'Parse error on line ' +
(l + 1) +
': Unexpected ' +
(y == u
? 'end of input'
: "'" + (this.terminals_[y] || y) + "'")),
this.parseError(E, {
text: f.match,
token: this.terminals_[y] || y,
line: f.yylineno,
loc: _,
expected: D,
});
}
if (S[0] instanceof Array && S.length > 1)
throw new Error(
'Parse Error: multiple actions possible at state: ' +
C +
', token: ' +
y
);
switch (S[0]) {
case 1:
i.push(y),
r.push(f.yytext),
s.push(f.yylloc),
i.push(S[1]),
(y = null),
w
? ((y = w), (w = null))
: ((c = f.yyleng),
(a = f.yytext),
(l = f.yylineno),
(_ = f.yylloc),
d > 0 && d--);
break;
case 2:
if (
((L = this.productions_[S[1]][1]),
(N.$ = r[r.length - L]),
(N._$ = {
first_line:
s[s.length - (L || 1)].first_line,
last_line: s[s.length - 1].last_line,
first_column:
s[s.length - (L || 1)].first_column,
last_column: s[s.length - 1].last_column,
}),
b &&
(N._$.range = [
s[s.length - (L || 1)].range[0],
s[s.length - 1].range[1],
]),
void 0 !==
(k = this.performAction.apply(
N,
[a, c, l, p.yy, S[1], r, s].concat(g)
)))
)
return k;
L &&
((i = i.slice(0, -1 * L * 2)),
(r = r.slice(0, -1 * L)),
(s = s.slice(0, -1 * L))),
i.push(this.productions_[S[1]][0]),
r.push(N.$),
s.push(N._$),
(M = o[i[i.length - 2]][i[i.length - 1]]),
i.push(M);
break;
case 3:
return !0;
}
}
return !0;
},
},
m = {
EOF: 1,
parseError: function (e, t) {
if (!this.yy.parser) throw new Error(e);
this.yy.parser.parseError(e, t);
},
setInput: function (e, t) {
return (
(this.yy = t || this.yy || {}),
(this._input = e),
(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 e = this._input[0];
return (
(this.yytext += e),
this.yyleng++,
this.offset++,
(this.match += e),
(this.matched += e),
e.match(/(?:\r\n?|\n).*/g)
? (this.yylineno++, this.yylloc.last_line++)
: this.yylloc.last_column++,
this.options.ranges && this.yylloc.range[1]++,
(this._input = this._input.slice(1)),
e
);
},
unput: function (e) {
var t = e.length,
i = e.split(/(?:\r\n?|\n)/g);
(this._input = e + this._input),
(this.yytext = this.yytext.substr(
0,
this.yytext.length - t
)),
(this.offset -= t);
var n = 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
)),
i.length - 1 && (this.yylineno -= i.length - 1);
var r = 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: i
? (i.length === n.length
? this.yylloc.first_column
: 0) +
n[n.length - i.length].length -
i[0].length
: this.yylloc.first_column - t,
}),
this.options.ranges &&
(this.yylloc.range = [
r[0],
r[0] + this.yyleng - t,
]),
(this.yyleng = this.yytext.length),
this
);
},
more: function () {
return (this._more = !0), this;
},
reject: function () {
return this.options.backtrack_lexer
? ((this._backtrack = !0), this)
: 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).\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
less: function (e) {
this.unput(this.match.slice(e));
},
pastInput: function () {
var e = this.matched.substr(
0,
this.matched.length - this.match.length
);
return (
(e.length > 20 ? '...' : '') +
e.substr(-20).replace(/\n/g, '')
);
},
upcomingInput: function () {
var e = this.match;
return (
e.length < 20 &&
(e += this._input.substr(0, 20 - e.length)),
(
e.substr(0, 20) + (e.length > 20 ? '...' : '')
).replace(/\n/g, '')
);
},
showPosition: function () {
var e = this.pastInput(),
t = new Array(e.length + 1).join('-');
return e + this.upcomingInput() + '\n' + t + '^';
},
test_match: function (e, t) {
var i, n, r;
if (
(this.options.backtrack_lexer &&
((r = {
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 &&
(r.yylloc.range = this.yylloc.range.slice(0))),
(n = e[0].match(/(?:\r\n?|\n).*/g)) &&
(this.yylineno += n.length),
(this.yylloc = {
first_line: this.yylloc.last_line,
last_line: this.yylineno + 1,
first_column: this.yylloc.last_column,
last_column: n
? n[n.length - 1].length -
n[n.length - 1].match(/\r?\n?/)[0].length
: this.yylloc.last_column + e[0].length,
}),
(this.yytext += e[0]),
(this.match += e[0]),
(this.matches = e),
(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(e[0].length)),
(this.matched += e[0]),
(i = this.performAction.call(
this,
this.yy,
this,
t,
this.conditionStack[
this.conditionStack.length - 1
]
)),
this.done && this._input && (this.done = !1),
i)
)
return i;
if (this._backtrack) {
for (var s in r) this[s] = r[s];
return !1;
}
return !1;
},
next: function () {
if (this.done) return this.EOF;
var e, t, i, n;
this._input || (this.done = !0),
this._more ||
((this.yytext = ''), (this.match = ''));
for (
var r = this._currentRules(), s = 0;
s < r.length;
s++
)
if (
(i = this._input.match(this.rules[r[s]])) &&
(!t || i[0].length > t[0].length)
) {
if (
((t = i), (n = s), this.options.backtrack_lexer)
) {
if (!1 !== (e = this.test_match(i, r[s])))
return e;
if (this._backtrack) {
t = !1;
continue;
}
return !1;
}
if (!this.options.flex) break;
}
return t
? !1 !== (e = this.test_match(t, r[n])) && e
: '' === this._input
? this.EOF
: this.parseError(
'Lexical error on line ' +
(this.yylineno + 1) +
'. Unrecognized text.\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
lex: function () {
return this.next() || this.lex();
},
begin: function (e) {
this.conditionStack.push(e);
},
popState: function () {
return this.conditionStack.length - 1 > 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 (e) {
return (e =
this.conditionStack.length -
1 -
Math.abs(e || 0)) >= 0
? this.conditionStack[e]
: 'INITIAL';
},
pushState: function (e) {
this.begin(e);
},
stateStackSize: function () {
return this.conditionStack.length;
},
options: { 'case-insensitive': !0 },
performAction: function (e, t, i, n) {
switch (i) {
case 0:
return this.begin('open_directive'), 37;
case 1:
return this.begin('type_directive'), 38;
case 2:
return (
this.popState(), this.begin('arg_directive'), 15
);
case 3:
return this.popState(), this.popState(), 40;
case 4:
return 39;
case 5:
case 6:
break;
case 7:
return 11;
case 8:
break;
case 9:
return 9;
case 10:
return 36;
case 11:
return 4;
case 12:
return this.begin('block'), 20;
case 13:
break;
case 14:
return 27;
case 15:
break;
case 16:
return this.popState(), 22;
case 17:
return t.yytext[0];
case 18:
return 30;
case 19:
return 31;
case 20:
return 32;
case 21:
return 33;
case 22:
return 30;
case 23:
return 31;
case 24:
return 32;
case 25:
return 34;
case 26:
return 35;
case 27:
case 28:
return 34;
case 29:
return 23;
case 30:
return t.yytext[0];
case 31:
return 6;
}
},
rules: [
/^(?:%%\{)/i,
/^(?:((?:(?!\}%%)[^:.])*))/i,
/^(?::)/i,
/^(?:\}%%)/i,
/^(?:((?:(?!\}%%).|\n)*))/i,
/^(?:%(?!\{)[^\n]*)/i,
/^(?:[^\}]%%[^\n]*)/i,
/^(?:[\n]+)/i,
/^(?:\s+)/i,
/^(?:[\s]+)/i,
/^(?:"[^"]*")/i,
/^(?:erDiagram\b)/i,
/^(?:\{)/i,
/^(?:\s+)/i,
/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,
/^(?:[\n]+)/i,
/^(?:\})/i,
/^(?:.)/i,
/^(?:\|o\b)/i,
/^(?:\}o\b)/i,
/^(?:\}\|)/i,
/^(?:\|\|)/i,
/^(?:o\|)/i,
/^(?:o\{)/i,
/^(?:\|\{)/i,
/^(?:\.\.)/i,
/^(?:--)/i,
/^(?:\.-)/i,
/^(?:-\.)/i,
/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,
/^(?:.)/i,
/^(?:$)/i,
],
conditions: {
open_directive: { rules: [1], inclusive: !1 },
type_directive: { rules: [2, 3], inclusive: !1 },
arg_directive: { rules: [3, 4], inclusive: !1 },
block: { rules: [13, 14, 15, 16, 17], inclusive: !1 },
INITIAL: {
rules: [
0,
5,
6,
7,
8,
9,
10,
11,
12,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
],
inclusive: !0,
},
},
};
function _() {
this.yy = {};
}
return (
(p.lexer = m), (_.prototype = p), (p.Parser = _), new _()
);
})();
(t.parser = r),
(t.Parser = r.Parser),
(t.parse = function () {
return r.parse.apply(r, arguments);
}),
(t.main = function (n) {
n[1] ||
(console.log('Usage: ' + n[0] + ' FILE'), e.exit(1));
var r = i(
'./node_modules/node-libs-browser/mock/empty.js'
).readFileSync(
i('./node_modules/path-browserify/index.js').normalize(
n[1]
),
'utf8'
);
return t.parser.parse(r);
}),
i.c[i.s] === n && t.main(e.argv.slice(1));
}.call(
this,
i('./node_modules/process/browser.js'),
i('./node_modules/webpack/buildin/module.js')(e)
));
},
'./src/diagrams/er/styles.js': function (e, t, i) {
'use strict';
i.r(t),
(t.default = function (e) {
return '\n .entityBox {\n fill: '
.concat(e.mainBkg, ';\n stroke: ')
.concat(
e.nodeBorder,
';\n }\n\n .attributeBoxOdd {\n fill: #ffffff;\n stroke: '
)
.concat(
e.nodeBorder,
';\n }\n\n .attributeBoxEven {\n fill: #f2f2f2;\n stroke: '
)
.concat(
e.nodeBorder,
';\n }\n\n .relationshipLabelBox {\n fill: '
)
.concat(
e.tertiaryColor,
';\n opacity: 0.7;\n background-color: '
)
.concat(
e.tertiaryColor,
';\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: '
)
.concat(e.lineColor, ';\n }\n');
});
},
'./src/diagrams/flowchart/flowChartShapes.js': function (
e,
t,
i
) {
'use strict';
i.r(t),
i.d(t, 'addToRender', function () {
return m;
}),
i.d(t, 'addToRenderV2', function () {
return _;
});
var n = i('dagre-d3'),
r = i.n(n);
function s(e, t, i) {
var n = 0.9 * (t.width + t.height),
s = [
{ x: n / 2, y: 0 },
{ x: n, y: -n / 2 },
{ x: n / 2, y: -n },
{ x: 0, y: -n / 2 },
],
o = b(e, n, n, s);
return (
(i.intersect = function (e) {
return r.a.intersect.polygon(i, s, e);
}),
o
);
}
function o(e, t, i) {
var n = t.height,
s = n / 4,
o = t.width + 2 * s,
a = [
{ x: s, y: 0 },
{ x: o - s, y: 0 },
{ x: o, y: -n / 2 },
{ x: o - s, y: -n },
{ x: s, y: -n },
{ x: 0, y: -n / 2 },
],
l = b(e, o, n, a);
return (
(i.intersect = function (e) {
return r.a.intersect.polygon(i, a, e);
}),
l
);
}
function a(e, t, i) {
var n = t.width,
s = t.height,
o = [
{ x: -s / 2, y: 0 },
{ x: n, y: 0 },
{ x: n, y: -s },
{ x: -s / 2, y: -s },
{ x: 0, y: -s / 2 },
],
a = b(e, n, s, o);
return (
(i.intersect = function (e) {
return r.a.intersect.polygon(i, o, e);
}),
a
);
}
function l(e, t, i) {
var n = t.width,
s = t.height,
o = [
{ x: (-2 * s) / 6, y: 0 },
{ x: n - s / 6, y: 0 },
{ x: n + (2 * s) / 6, y: -s },
{ x: s / 6, y: -s },
],
a = b(e, n, s, o);
return (
(i.intersect = function (e) {
return r.a.intersect.polygon(i, o, e);
}),
a
);
}
function c(e, t, i) {
var n = t.width,
s = t.height,
o = [
{ x: (2 * s) / 6, y: 0 },
{ x: n + s / 6, y: 0 },
{ x: n - (2 * s) / 6, y: -s },
{ x: -s / 6, y: -s },
],
a = b(e, n, s, o);
return (
(i.intersect = function (e) {
return r.a.intersect.polygon(i, o, e);
}),
a
);
}
function d(e, t, i) {
var n = t.width,
s = t.height,
o = [
{ x: (-2 * s) / 6, y: 0 },
{ x: n + (2 * s) / 6, y: 0 },
{ x: n - s / 6, y: -s },
{ x: s / 6, y: -s },
],
a = b(e, n, s, o);
return (
(i.intersect = function (e) {
return r.a.intersect.polygon(i, o, e);
}),
a
);
}
function h(e, t, i) {
var n = t.width,
s = t.height,
o = [
{ x: s / 6, y: 0 },
{ x: n - s / 6, y: 0 },
{ x: n + (2 * s) / 6, y: -s },
{ x: (-2 * s) / 6, y: -s },
],
a = b(e, n, s, o);
return (
(i.intersect = function (e) {
return r.a.intersect.polygon(i, o, e);
}),
a
);
}
function u(e, t, i) {
var n = t.width,
s = t.height,
o = [
{ x: 0, y: 0 },
{ x: n + s / 2, y: 0 },
{ x: n, y: -s / 2 },
{ x: n + s / 2, y: -s },
{ x: 0, y: -s },
],
a = b(e, n, s, o);
return (
(i.intersect = function (e) {
return r.a.intersect.polygon(i, o, e);
}),
a
);
}
function g(e, t, i) {
var n = t.height,
s = t.width + n / 4,
o = e
.insert('rect', ':first-child')
.attr('rx', n / 2)
.attr('ry', n / 2)
.attr('x', -s / 2)
.attr('y', -n / 2)
.attr('width', s)
.attr('height', n);
return (
(i.intersect = function (e) {
return r.a.intersect.rect(i, e);
}),
o
);
}
function f(e, t, i) {
var n = t.width,
s = t.height,
o = [
{ x: 0, y: 0 },
{ x: n, y: 0 },
{ x: n, y: -s },
{ x: 0, y: -s },
{ x: 0, y: 0 },
{ x: -8, y: 0 },
{ x: n + 8, y: 0 },
{ x: n + 8, y: -s },
{ x: -8, y: -s },
{ x: -8, y: 0 },
],
a = b(e, n, s, o);
return (
(i.intersect = function (e) {
return r.a.intersect.polygon(i, o, e);
}),
a
);
}
function p(e, t, i) {
var n = t.width,
s = n / 2,
o = s / (2.5 + n / 50),
a = t.height + o,
l =
'M 0,' +
o +
' a ' +
s +
',' +
o +
' 0,0,0 ' +
n +
' 0 a ' +
s +
',' +
o +
' 0,0,0 ' +
-n +
' 0 l 0,' +
a +
' a ' +
s +
',' +
o +
' 0,0,0 ' +
n +
' 0 l 0,' +
-a,
c = e
.attr('label-offset-y', o)
.insert('path', ':first-child')
.attr('d', l)
.attr(
'transform',
'translate(' + -n / 2 + ',' + -(a / 2 + o) + ')'
);
return (
(i.intersect = function (e) {
var t = r.a.intersect.rect(i, e),
n = t.x - i.x;
if (
0 != s &&
(Math.abs(n) < i.width / 2 ||
(Math.abs(n) == i.width / 2 &&
Math.abs(t.y - i.y) > i.height / 2 - o))
) {
var a = o * o * (1 - (n * n) / (s * s));
0 != a && (a = Math.sqrt(a)),
(a = o - a),
e.y - i.y > 0 && (a = -a),
(t.y += a);
}
return t;
}),
c
);
}
function m(e) {
(e.shapes().question = s),
(e.shapes().hexagon = o),
(e.shapes().stadium = g),
(e.shapes().subroutine = f),
(e.shapes().cylinder = p),
(e.shapes().rect_left_inv_arrow = a),
(e.shapes().lean_right = l),
(e.shapes().lean_left = c),
(e.shapes().trapezoid = d),
(e.shapes().inv_trapezoid = h),
(e.shapes().rect_right_inv_arrow = u);
}
function _(e) {
e({ question: s }),
e({ hexagon: o }),
e({ stadium: g }),
e({ subroutine: f }),
e({ cylinder: p }),
e({ rect_left_inv_arrow: a }),
e({ lean_right: l }),
e({ lean_left: c }),
e({ trapezoid: d }),
e({ inv_trapezoid: h }),
e({ rect_right_inv_arrow: u });
}
function b(e, t, i, n) {
return e
.insert('polygon', ':first-child')
.attr(
'points',
n
.map(function (e) {
return e.x + ',' + e.y;
})
.join(' ')
)
.attr(
'transform',
'translate(' + -t / 2 + ',' + i / 2 + ')'
);
}
t.default = { addToRender: m, addToRenderV2: _ };
},
'./src/diagrams/flowchart/flowDb.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'parseDirective', function () {
return S;
}),
i.d(t, 'lookUpDomId', function () {
return k;
}),
i.d(t, 'addVertex', function () {
return x;
}),
i.d(t, 'addSingleLink', function () {
return L;
}),
i.d(t, 'addLink', function () {
return M;
}),
i.d(t, 'updateLinkInterpolate', function () {
return D;
}),
i.d(t, 'updateLink', function () {
return N;
}),
i.d(t, 'addClass', function () {
return E;
}),
i.d(t, 'setDirection', function () {
return T;
}),
i.d(t, 'setClass', function () {
return I;
}),
i.d(t, 'setLink', function () {
return O;
}),
i.d(t, 'getTooltip', function () {
return A;
}),
i.d(t, 'setClickEvent', function () {
return R;
}),
i.d(t, 'bindFunctions', function () {
return P;
}),
i.d(t, 'getDirection', function () {
return F;
}),
i.d(t, 'getVertices', function () {
return B;
}),
i.d(t, 'getEdges', function () {
return W;
}),
i.d(t, 'getClasses', function () {
return Y;
}),
i.d(t, 'clear', function () {
return j;
}),
i.d(t, 'setGen', function () {
return V;
}),
i.d(t, 'defaultStyle', function () {
return z;
}),
i.d(t, 'addSubGraph', function () {
return U;
}),
i.d(t, 'getDepthFirstPos', function () {
return Z;
}),
i.d(t, 'indexNodes', function () {
return J;
}),
i.d(t, 'getSubGraphs', function () {
return Q;
}),
i.d(t, 'firstGraph', function () {
return X;
});
var n = i('d3'),
r = i('./src/utils.js'),
s = i('./src/config.js'),
o = i('./src/diagrams/common/common.js'),
a = i('./src/mermaidAPI.js'),
l = i('./src/logger.js');
function c(e) {
return (c =
'function' == typeof Symbol &&
'symbol' == typeof Symbol.iterator
? function (e) {
return typeof e;
}
: function (e) {
return e &&
'function' == typeof Symbol &&
e.constructor === Symbol &&
e !== Symbol.prototype
? 'symbol'
: typeof e;
})(e);
}
var d,
h,
u = 0,
g = s.getConfig(),
f = {},
p = [],
m = [],
_ = [],
b = {},
v = {},
y = 0,
w = !0,
C = [],
S = function (e, t, i) {
a.default.parseDirective(this, e, t, i);
},
k = function (e) {
for (var t = Object.keys(f), i = 0; i < t.length; i++)
if (f[t[i]].id === e) return f[t[i]].domId;
return e;
},
x = function (e, t, i, n, r) {
var a,
l = e;
void 0 !== l &&
0 !== l.trim().length &&
(void 0 === f[l] &&
(f[l] = {
id: l,
domId: 'flowchart-' + l + '-' + u,
styles: [],
classes: [],
}),
u++,
void 0 !== t
? ((g = s.getConfig()),
'"' ===
(a = o.default.sanitizeText(t.trim(), g))[0] &&
'"' === a[a.length - 1] &&
(a = a.substring(1, a.length - 1)),
(f[l].text = a))
: void 0 === f[l].text && (f[l].text = e),
void 0 !== i && (f[l].type = i),
null != n &&
n.forEach(function (e) {
f[l].styles.push(e);
}),
null != r &&
r.forEach(function (e) {
f[l].classes.push(e);
}));
},
L = function (e, t, i, n) {
var r = { start: e, end: t, type: void 0, text: '' };
void 0 !== (n = i.text) &&
((r.text = o.default.sanitizeText(n.trim(), g)),
'"' === r.text[0] &&
'"' === r.text[r.text.length - 1] &&
(r.text = r.text.substring(1, r.text.length - 1))),
void 0 !== i &&
((r.type = i.type),
(r.stroke = i.stroke),
(r.length = i.length)),
p.push(r);
},
M = function (e, t, i, n) {
var r, s;
for (r = 0; r < e.length; r++)
for (s = 0; s < t.length; s++) L(e[r], t[s], i, n);
},
D = function (e, t) {
e.forEach(function (e) {
'default' === e
? (p.defaultInterpolate = t)
: (p[e].interpolate = t);
});
},
N = function (e, t) {
e.forEach(function (e) {
'default' === e
? (p.defaultStyle = t)
: (-1 === r.default.isSubstringInArray('fill', t) &&
t.push('fill:none'),
(p[e].style = t));
});
},
E = function (e, t) {
void 0 === m[e] &&
(m[e] = { id: e, styles: [], textStyles: [] }),
null != t &&
t.forEach(function (t) {
if (t.match('color')) {
var i = t
.replace('fill', 'bgFill')
.replace('color', 'fill');
m[e].textStyles.push(i);
}
m[e].styles.push(t);
});
},
T = function (e) {
(d = e).match(/.*) && (d = 'RL'),
d.match(/.*\^/) && (d = 'BT'),
d.match(/.*>/) && (d = 'LR'),
d.match(/.*v/) && (d = 'TB');
},
I = function (e, t) {
e.split(',').forEach(function (e) {
var i = e;
void 0 !== f[i] && f[i].classes.push(t),
void 0 !== b[i] && b[i].classes.push(t);
});
},
O = function (e, t, i) {
e.split(',').forEach(function (e) {
void 0 !== f[e] &&
((f[e].link = r.default.formatUrl(t, g)),
(f[e].linkTarget = i));
}),
I(e, 'clickable');
},
A = function (e) {
return v[e];
},
R = function (e, t, i) {
e.split(',').forEach(function (e) {
!(function (e, t, i) {
var n = k(e);
if (
'loose' === s.getConfig().securityLevel &&
void 0 !== t
) {
var o = [];
if ('string' == typeof i) {
o = i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
for (var a = 0; a < o.length; a++) {
var l = o[a].trim();
'"' === l.charAt(0) &&
'"' === l.charAt(l.length - 1) &&
(l = l.substr(1, l.length - 2)),
(o[a] = l);
}
}
0 === o.length && o.push(e),
void 0 !== f[e] &&
((f[e].haveCallback = !0),
C.push(function () {
var e = document.querySelector(
'[id="'.concat(n, '"]')
);
null !== e &&
e.addEventListener(
'click',
function () {
var e;
r.default.runFunc.apply(
r.default,
[t].concat(
(function (e) {
if (Array.isArray(e)) {
for (
var t = 0,
i = new Array(e.length);
t < e.length;
t++
)
i[t] = e[t];
return i;
}
})((e = o)) ||
(function (e) {
if (
Symbol.iterator in Object(e) ||
'[object Arguments]' ===
Object.prototype.toString.call(
e
)
)
return Array.from(e);
})(e) ||
(function () {
throw new TypeError(
'Invalid attempt to spread non-iterable instance'
);
})()
)
);
},
!1
);
}));
}
})(e, t, i);
}),
I(e, 'clickable');
},
P = function (e) {
C.forEach(function (t) {
t(e);
});
},
F = function () {
return d.trim();
},
B = function () {
return f;
},
W = function () {
return p;
},
Y = function () {
return m;
},
H = function (e) {
var t = Object(n.select)('.mermaidTooltip');
null === (t._groups || t)[0][0] &&
(t = Object(n.select)('body')
.append('div')
.attr('class', 'mermaidTooltip')
.style('opacity', 0)),
Object(n.select)(e)
.select('svg')
.selectAll('g.node')
.on('mouseover', function () {
var e = Object(n.select)(this);
if (null !== e.attr('title')) {
var i = this.getBoundingClientRect();
t.transition().duration(200).style('opacity', '.9'),
t
.html(e.attr('title'))
.style(
'left',
window.scrollX +
i.left +
(i.right - i.left) / 2 +
'px'
)
.style(
'top',
window.scrollY +
i.top -
14 +
document.body.scrollTop +
'px'
),
e.classed('hover', !0);
}
})
.on('mouseout', function () {
t.transition().duration(500).style('opacity', 0),
Object(n.select)(this).classed('hover', !1);
});
};
C.push(H);
var j = function (e) {
(f = {}),
(m = {}),
(p = []),
(C = []).push(H),
(_ = []),
(b = {}),
(y = 0),
(v = []),
(w = !0),
(h = e || 'gen-1');
},
V = function (e) {
h = e || 'gen-1';
},
z = function () {
return 'fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;';
},
U = function (e, t, i) {
var n = e.trim(),
r = i;
e === i && i.match(/\s/) && (n = void 0);
var s,
a,
d,
u = [];
if (
((s = u.concat.apply(u, t)),
(a = { boolean: {}, number: {}, string: {} }),
(d = []),
(u = s.filter(function (e) {
var t = c(e);
return (
'' !== e.trim() &&
(t in a
? !a[t].hasOwnProperty(e) && (a[t][e] = !0)
: !(d.indexOf(e) >= 0) && d.push(e))
);
})),
'gen-1' === h)
) {
l.log.warn('LOOKING UP');
for (var f = 0; f < u.length; f++) u[f] = k(u[f]);
}
(n = n || 'subGraph' + y),
(r = r || ''),
(r = o.default.sanitizeText(r, g)),
(y += 1);
var p = { id: n, nodes: u, title: r.trim(), classes: [] };
return (
l.log.info('Adding', p.id, p.nodes),
(p.nodes = te(p, _).nodes),
_.push(p),
(b[n] = p),
n
);
},
$ = function (e) {
for (var t = 0; t < _.length; t++)
if (_[t].id === e) return t;
return -1;
},
K = -1,
q = [],
G = function e(t, i) {
var n = _[i].nodes;
if (!((K += 1) > 2e3)) {
if (((q[K] = i), _[i].id === t))
return { result: !0, count: 0 };
for (var r = 0, s = 1; r < n.length; ) {
var o = $(n[r]);
if (o >= 0) {
var a = e(t, o);
if (a.result)
return { result: !0, count: s + a.count };
s += a.count;
}
r += 1;
}
return { result: !1, count: s };
}
},
Z = function (e) {
return q[e];
},
J = function () {
(K = -1), _.length > 0 && G('none', _.length - 1);
},
Q = function () {
return _;
},
X = function () {
return !!w && ((w = !1), !0);
},
ee = function (e, t) {
var i = !1;
return (
e.forEach(function (e) {
e.nodes.indexOf(t) >= 0 && (i = !0);
}),
i
);
},
te = function (e, t) {
var i = [];
return (
e.nodes.forEach(function (n, r) {
ee(t, n) || i.push(e.nodes[r]);
}),
{ nodes: i }
);
};
t.default = {
parseDirective: S,
defaultConfig: function () {
return s.defaultConfig.flowchart;
},
addVertex: x,
lookUpDomId: k,
addLink: M,
updateLinkInterpolate: D,
updateLink: N,
addClass: E,
setDirection: T,
setClass: I,
setTooltip: function (e, t) {
e.split(',').forEach(function (e) {
void 0 !== t &&
(v['gen-1' === h ? k(e) : e] = o.default.sanitizeText(
t,
g
));
});
},
getTooltip: A,
setClickEvent: R,
setLink: O,
bindFunctions: P,
getDirection: F,
getVertices: B,
getEdges: W,
getClasses: Y,
clear: j,
setGen: V,
defaultStyle: z,
addSubGraph: U,
getDepthFirstPos: Z,
indexNodes: J,
getSubGraphs: Q,
destructLink: function (e, t) {
var i,
n = (function (e) {
var t = e.trim(),
i = t.slice(0, -1),
n = 'arrow_open';
switch (t.slice(-1)) {
case 'x':
(n = 'arrow_cross'),
'x' === t[0] &&
((n = 'double_' + n), (i = i.slice(1)));
break;
case '>':
(n = 'arrow_point'),
'<' === t[0] &&
((n = 'double_' + n), (i = i.slice(1)));
break;
case 'o':
(n = 'arrow_circle'),
'o' === t[0] &&
((n = 'double_' + n), (i = i.slice(1)));
}
var r = 'normal',
s = i.length - 1;
'=' === i[0] && (r = 'thick');
var o = (function (e, t) {
for (var i = t.length, n = 0, r = 0; r < i; ++r)
'.' === t[r] && ++n;
return n;
})(0, i);
return (
o && ((r = 'dotted'), (s = o)),
{ type: n, stroke: r, length: s }
);
})(e);
if (t) {
if (
(i = (function (e) {
var t = e.trim(),
i = 'arrow_open';
switch (t[0]) {
case '<':
(i = 'arrow_point'), (t = t.slice(1));
break;
case 'x':
(i = 'arrow_cross'), (t = t.slice(1));
break;
case 'o':
(i = 'arrow_circle'), (t = t.slice(1));
}
var n = 'normal';
return (
-1 !== t.indexOf('=') && (n = 'thick'),
-1 !== t.indexOf('.') && (n = 'dotted'),
{ type: i, stroke: n }
);
})(t)).stroke !== n.stroke
)
return { type: 'INVALID', stroke: 'INVALID' };
if ('arrow_open' === i.type) i.type = n.type;
else {
if (i.type !== n.type)
return { type: 'INVALID', stroke: 'INVALID' };
i.type = 'double_' + i.type;
}
return (
'double_arrow' === i.type &&
(i.type = 'double_arrow_point'),
(i.length = n.length),
i
);
}
return n;
},
lex: { firstGraph: X },
exists: ee,
makeUniq: te,
};
},
'./src/diagrams/flowchart/flowRenderer-v2.js': function (
e,
t,
i
) {
'use strict';
i.r(t),
i.d(t, 'setConf', function () {
return _;
}),
i.d(t, 'addVertices', function () {
return b;
}),
i.d(t, 'addEdges', function () {
return v;
}),
i.d(t, 'getClasses', function () {
return y;
}),
i.d(t, 'draw', function () {
return w;
});
var n = i('graphlib'),
r = i.n(n),
s = i('d3'),
o = i('./src/diagrams/flowchart/flowDb.js'),
a = i('./src/diagrams/flowchart/parser/flow.jison'),
l = i.n(a),
c = i('./src/config.js'),
d = i('./src/dagre-wrapper/index.js'),
h = i('dagre-d3/lib/label/add-html-label.js'),
u = i.n(h),
g = i('./src/logger.js'),
f = i('./src/diagrams/common/common.js'),
p = i('./src/utils.js'),
m = {},
_ = function (e) {
for (var t = Object.keys(e), i = 0; i < t.length; i++)
m[t[i]] = e[t[i]];
},
b = function (e, t, i) {
var n = Object(s.select)('[id="'.concat(i, '"]'));
Object.keys(e).forEach(function (i) {
var r = e[i],
s = 'default';
r.classes.length > 0 && (s = r.classes.join(' '));
var a,
l = Object(p.getStylesFromArray)(r.styles),
d = void 0 !== r.text ? r.text : r.id;
if (Object(c.getConfig)().flowchart.htmlLabels) {
var h = {
label: d.replace(
/fa[lrsb]?:fa-[\w-]+/g,
function (e) {
return ""
);
}
),
};
(a = u()(n, h).node()).parentNode.removeChild(a);
} else {
var m = document.createElementNS(
'http://www.w3.org/2000/svg',
'text'
);
m.setAttribute(
'style',
l.labelStyle.replace('color:', 'fill:')
);
for (
var _ = d.split(f.default.lineBreakRegex), b = 0;
b < _.length;
b++
) {
var v = document.createElementNS(
'http://www.w3.org/2000/svg',
'tspan'
);
v.setAttributeNS(
'http://www.w3.org/XML/1998/namespace',
'xml:space',
'preserve'
),
v.setAttribute('dy', '1em'),
v.setAttribute('x', '1'),
(v.textContent = _[b]),
m.appendChild(v);
}
a = m;
}
var y = 0,
w = '';
switch (r.type) {
case 'round':
(y = 5), (w = 'rect');
break;
case 'square':
w = 'rect';
break;
case 'diamond':
w = 'question';
break;
case 'hexagon':
w = 'hexagon';
break;
case 'odd':
w = 'rect_left_inv_arrow';
break;
case 'lean_right':
w = 'lean_right';
break;
case 'lean_left':
w = 'lean_left';
break;
case 'trapezoid':
w = 'trapezoid';
break;
case 'inv_trapezoid':
w = 'inv_trapezoid';
break;
case 'odd_right':
w = 'rect_left_inv_arrow';
break;
case 'circle':
w = 'circle';
break;
case 'ellipse':
w = 'ellipse';
break;
case 'stadium':
w = 'stadium';
break;
case 'subroutine':
w = 'subroutine';
break;
case 'cylinder':
w = 'cylinder';
break;
case 'group':
w = 'rect';
break;
default:
w = 'rect';
}
t.setNode(r.id, {
labelStyle: l.labelStyle,
shape: w,
labelText: d,
rx: y,
ry: y,
class: s,
style: l.style,
id: r.id,
link: r.link,
linkTarget: r.linkTarget,
tooltip: o.default.getTooltip(r.id) || '',
domId: o.default.lookUpDomId(r.id),
haveCallback: r.haveCallback,
width: 'group' === r.type ? 500 : void 0,
type: r.type,
padding: Object(c.getConfig)().flowchart.padding,
}),
g.log.info('setNode', {
labelStyle: l.labelStyle,
shape: w,
labelText: d,
rx: y,
ry: y,
class: s,
style: l.style,
id: r.id,
domId: o.default.lookUpDomId(r.id),
width: 'group' === r.type ? 500 : void 0,
type: r.type,
padding: Object(c.getConfig)().flowchart.padding,
});
});
},
v = function (e, t) {
var i,
n,
r = 0;
if (void 0 !== e.defaultStyle) {
var o = Object(p.getStylesFromArray)(e.defaultStyle);
(i = o.style), (n = o.labelStyle);
}
e.forEach(function (o) {
r++;
var a = 'L-' + o.start + '-' + o.end,
l = 'LS-' + o.start,
c = 'LE-' + o.end,
d = { style: '', labelStyle: '' };
switch (
((d.minlen = o.length || 1),
'arrow_open' === o.type
? (d.arrowhead = 'none')
: (d.arrowhead = 'normal'),
(d.arrowTypeStart = 'arrow_open'),
(d.arrowTypeEnd = 'arrow_open'),
o.type)
) {
case 'double_arrow_cross':
d.arrowTypeStart = 'arrow_cross';
case 'arrow_cross':
d.arrowTypeEnd = 'arrow_cross';
break;
case 'double_arrow_point':
d.arrowTypeStart = 'arrow_point';
case 'arrow_point':
d.arrowTypeEnd = 'arrow_point';
break;
case 'double_arrow_circle':
d.arrowTypeStart = 'arrow_circle';
case 'arrow_circle':
d.arrowTypeEnd = 'arrow_circle';
}
var h = '',
u = '';
switch (o.stroke) {
case 'normal':
(h = 'fill:none;'),
void 0 !== i && (h = i),
void 0 !== n && (u = n),
(d.thickness = 'normal'),
(d.pattern = 'solid');
break;
case 'dotted':
(d.thickness = 'normal'),
(d.pattern = 'dotted'),
(d.style =
'fill:none;stroke-width:2px;stroke-dasharray:3;');
break;
case 'thick':
(d.thickness = 'thick'),
(d.pattern = 'solid'),
(d.style = 'stroke-width: 3.5px;fill:none;');
}
if (void 0 !== o.style) {
var g = Object(p.getStylesFromArray)(o.style);
(h = g.style), (u = g.labelStyle);
}
(d.style = d.style += h),
(d.labelStyle = d.labelStyle += u),
void 0 !== o.interpolate
? (d.curve = Object(p.interpolateToCurve)(
o.interpolate,
s.curveLinear
))
: void 0 !== e.defaultInterpolate
? (d.curve = Object(p.interpolateToCurve)(
e.defaultInterpolate,
s.curveLinear
))
: (d.curve = Object(p.interpolateToCurve)(
m.curve,
s.curveLinear
)),
void 0 === o.text
? void 0 !== o.style &&
(d.arrowheadStyle = 'fill: #333')
: ((d.arrowheadStyle = 'fill: #333'),
(d.labelpos = 'c')),
(d.labelType = 'text'),
(d.label = o.text.replace(
f.default.lineBreakRegex,
'\n'
)),
void 0 === o.style &&
(d.style =
d.style ||
'stroke: #333; stroke-width: 1.5px;fill:none;'),
(d.labelStyle = d.labelStyle.replace(
'color:',
'fill:'
)),
(d.id = a),
(d.classes = 'flowchart-link ' + l + ' ' + c),
t.setEdge(o.start, o.end, d, r);
});
},
y = function (e) {
g.log.info('Extracting classes'), o.default.clear();
var t = l.a.parser;
t.yy = o.default;
try {
t.parse(e);
} catch (e) {
return;
}
return o.default.getClasses();
},
w = function (e, t) {
g.log.info('Drawing flowchart'),
o.default.clear(),
o.default.setGen('gen-2');
var i = l.a.parser;
(i.yy = o.default), i.parse(e);
var n = o.default.getDirection();
void 0 === n && (n = 'TD');
var a,
h = Object(c.getConfig)().flowchart,
u = h.nodeSpacing || 50,
f = h.rankSpacing || 50,
m = new r.a.Graph({ multigraph: !0, compound: !0 })
.setGraph({
rankdir: n,
nodesep: u,
ranksep: f,
marginx: 8,
marginy: 8,
})
.setDefaultEdgeLabel(function () {
return {};
}),
_ = o.default.getSubGraphs();
g.log.info('Subgraphs - ', _);
for (var y = _.length - 1; y >= 0; y--)
(a = _[y]),
g.log.info('Subgraph - ', a),
o.default.addVertex(
a.id,
a.title,
'group',
void 0,
a.classes
);
var w = o.default.getVertices(),
C = o.default.getEdges();
g.log.info(C);
var S = 0;
for (S = _.length - 1; S >= 0; S--) {
(a = _[S]), Object(s.selectAll)('cluster').append('text');
for (var k = 0; k < a.nodes.length; k++)
g.log.info('Setting up subgraphs', a.nodes[k], a.id),
m.setParent(a.nodes[k], a.id);
}
b(w, m, t), v(C, m);
var x = Object(s.select)('[id="'.concat(t, '"]'));
x.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');
var L = Object(s.select)('#' + t + ' g');
Object(d.render)(
L,
m,
['point', 'circle', 'cross'],
'flowchart',
t
);
var M = h.diagramPadding,
D = x.node().getBBox(),
N = D.width + 2 * M,
E = D.height + 2 * M;
if (
(g.log.debug(
'new ViewBox 0 0 '.concat(N, ' ').concat(E),
'translate('
.concat(M - m._label.marginx, ', ')
.concat(M - m._label.marginy, ')')
),
Object(p.configureSvgSize)(x, E, N, h.useMaxWidth),
x.attr('viewBox', '0 0 '.concat(N, ' ').concat(E)),
x
.select('g')
.attr(
'transform',
'translate('
.concat(M - m._label.marginx, ', ')
.concat(M - D.y, ')')
),
o.default.indexNodes('subGraph' + S),
!h.htmlLabels)
)
for (
var T = document.querySelectorAll(
'[id="' + t + '"] .edgeLabel .label'
),
I = 0;
I < T.length;
I++
) {
var O = T[I],
A = O.getBBox(),
R = document.createElementNS(
'http://www.w3.org/2000/svg',
'rect'
);
R.setAttribute('rx', 0),
R.setAttribute('ry', 0),
R.setAttribute('width', A.width),
R.setAttribute('height', A.height),
O.insertBefore(R, O.firstChild);
}
Object.keys(w).forEach(function (e) {
var i = w[e];
if (i.link) {
var n = Object(s.select)('#' + t + ' [id="' + e + '"]');
if (n) {
var r = document.createElementNS(
'http://www.w3.org/2000/svg',
'a'
);
r.setAttributeNS(
'http://www.w3.org/2000/svg',
'class',
i.classes.join(' ')
),
r.setAttributeNS(
'http://www.w3.org/2000/svg',
'href',
i.link
),
r.setAttributeNS(
'http://www.w3.org/2000/svg',
'rel',
'noopener'
),
i.linkTarget &&
r.setAttributeNS(
'http://www.w3.org/2000/svg',
'target',
i.linkTarget
);
var o = n.insert(function () {
return r;
}, ':first-child'),
a = n.select('.label-container');
a &&
o.append(function () {
return a.node();
});
var l = n.select('.label');
l &&
o.append(function () {
return l.node();
});
}
}
});
};
t.default = {
setConf: _,
addVertices: b,
addEdges: v,
getClasses: y,
draw: w,
};
},
'./src/diagrams/flowchart/flowRenderer.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'setConf', function () {
return v;
}),
i.d(t, 'addVertices', function () {
return y;
}),
i.d(t, 'addEdges', function () {
return w;
}),
i.d(t, 'getClasses', function () {
return C;
}),
i.d(t, 'draw', function () {
return S;
});
var n = i('graphlib'),
r = i.n(n),
s = i('d3'),
o = i('./src/diagrams/flowchart/flowDb.js'),
a = i('./src/diagrams/flowchart/parser/flow.jison'),
l = i.n(a),
c = i('./src/config.js'),
d = i('dagre-d3'),
h = i.n(d),
u = i('dagre-d3/lib/label/add-html-label.js'),
g = i.n(u),
f = i('./src/logger.js'),
p = i('./src/diagrams/common/common.js'),
m = i('./src/utils.js'),
_ = i('./src/diagrams/flowchart/flowChartShapes.js'),
b = {},
v = function (e) {
for (var t = Object.keys(e), i = 0; i < t.length; i++)
b[t[i]] = e[t[i]];
},
y = function (e, t, i) {
var n = Object(s.select)('[id="'.concat(i, '"]'));
Object.keys(e).forEach(function (i) {
var r = e[i],
s = 'default';
r.classes.length > 0 && (s = r.classes.join(' '));
var a,
l = Object(m.getStylesFromArray)(r.styles),
d = void 0 !== r.text ? r.text : r.id;
if (Object(c.getConfig)().flowchart.htmlLabels) {
var h = {
label: d.replace(
/fa[lrsb]?:fa-[\w-]+/g,
function (e) {
return ""
);
}
),
};
(a = g()(n, h).node()).parentNode.removeChild(a);
} else {
var u = document.createElementNS(
'http://www.w3.org/2000/svg',
'text'
);
u.setAttribute(
'style',
l.labelStyle.replace('color:', 'fill:')
);
for (
var _ = d.split(p.default.lineBreakRegex), b = 0;
b < _.length;
b++
) {
var v = document.createElementNS(
'http://www.w3.org/2000/svg',
'tspan'
);
v.setAttributeNS(
'http://www.w3.org/XML/1998/namespace',
'xml:space',
'preserve'
),
v.setAttribute('dy', '1em'),
v.setAttribute('x', '1'),
(v.textContent = _[b]),
u.appendChild(v);
}
a = u;
}
var y = 0,
w = '';
switch (r.type) {
case 'round':
(y = 5), (w = 'rect');
break;
case 'square':
w = 'rect';
break;
case 'diamond':
w = 'question';
break;
case 'hexagon':
w = 'hexagon';
break;
case 'odd':
w = 'rect_left_inv_arrow';
break;
case 'lean_right':
w = 'lean_right';
break;
case 'lean_left':
w = 'lean_left';
break;
case 'trapezoid':
w = 'trapezoid';
break;
case 'inv_trapezoid':
w = 'inv_trapezoid';
break;
case 'odd_right':
w = 'rect_left_inv_arrow';
break;
case 'circle':
w = 'circle';
break;
case 'ellipse':
w = 'ellipse';
break;
case 'stadium':
w = 'stadium';
break;
case 'subroutine':
w = 'subroutine';
break;
case 'cylinder':
w = 'cylinder';
break;
case 'group':
w = 'rect';
break;
default:
w = 'rect';
}
f.log.warn('Adding node', r.id, r.domId),
t.setNode(o.default.lookUpDomId(r.id), {
labelType: 'svg',
labelStyle: l.labelStyle,
shape: w,
label: a,
rx: y,
ry: y,
class: s,
style: l.style,
id: o.default.lookUpDomId(r.id),
});
});
},
w = function (e, t) {
var i,
n,
r = 0;
if (void 0 !== e.defaultStyle) {
var a = Object(m.getStylesFromArray)(e.defaultStyle);
(i = a.style), (n = a.labelStyle);
}
e.forEach(function (a) {
r++;
var l = 'L-' + a.start + '-' + a.end,
d = 'LS-' + a.start,
h = 'LE-' + a.end,
u = {};
'arrow_open' === a.type
? (u.arrowhead = 'none')
: (u.arrowhead = 'normal');
var g = '',
f = '';
if (void 0 !== a.style) {
var _ = Object(m.getStylesFromArray)(a.style);
(g = _.style), (f = _.labelStyle);
} else
switch (a.stroke) {
case 'normal':
(g = 'fill:none'),
void 0 !== i && (g = i),
void 0 !== n && (f = n);
break;
case 'dotted':
g =
'fill:none;stroke-width:2px;stroke-dasharray:3;';
break;
case 'thick':
g = ' stroke-width: 3.5px;fill:none';
}
(u.style = g),
(u.labelStyle = f),
void 0 !== a.interpolate
? (u.curve = Object(m.interpolateToCurve)(
a.interpolate,
s.curveLinear
))
: void 0 !== e.defaultInterpolate
? (u.curve = Object(m.interpolateToCurve)(
e.defaultInterpolate,
s.curveLinear
))
: (u.curve = Object(m.interpolateToCurve)(
b.curve,
s.curveLinear
)),
void 0 === a.text
? void 0 !== a.style &&
(u.arrowheadStyle = 'fill: #333')
: ((u.arrowheadStyle = 'fill: #333'),
(u.labelpos = 'c'),
Object(c.getConfig)().flowchart.htmlLabels
? ((u.labelType = 'html'),
(u.label = '')
.concat(
a.text.replace(
/fa[lrsb]?:fa-[\w-]+/g,
function (e) {
return ""
);
}
),
''
)))
: ((u.labelType = 'text'),
(u.label = a.text.replace(
p.default.lineBreakRegex,
'\n'
)),
void 0 === a.style &&
(u.style =
u.style ||
'stroke: #333; stroke-width: 1.5px;fill:none'),
(u.labelStyle = u.labelStyle.replace(
'color:',
'fill:'
)))),
(u.id = l),
(u.class = d + ' ' + h),
(u.minlen = a.length || 1),
t.setEdge(
o.default.lookUpDomId(a.start),
o.default.lookUpDomId(a.end),
u,
r
);
});
},
C = function (e) {
f.log.info('Extracting classes'), o.default.clear();
try {
var t = l.a.parser;
return (
(t.yy = o.default), t.parse(e), o.default.getClasses()
);
} catch (e) {
return;
}
},
S = function (e, t) {
f.log.info('Drawing flowchart'),
o.default.clear(),
o.default.setGen('gen-1');
var i = l.a.parser;
(i.yy = o.default), i.parse(e);
var n = o.default.getDirection();
void 0 === n && (n = 'TD');
for (
var a,
d = Object(c.getConfig)().flowchart,
u = d.nodeSpacing || 50,
g = d.rankSpacing || 50,
p = new r.a.Graph({ multigraph: !0, compound: !0 })
.setGraph({
rankdir: n,
nodesep: u,
ranksep: g,
marginx: 8,
marginy: 8,
})
.setDefaultEdgeLabel(function () {
return {};
}),
b = o.default.getSubGraphs(),
v = b.length - 1;
v >= 0;
v--
)
(a = b[v]),
o.default.addVertex(
a.id,
a.title,
'group',
void 0,
a.classes
);
var C = o.default.getVertices();
f.log.warn('Get vertices', C);
var S = o.default.getEdges(),
k = 0;
for (k = b.length - 1; k >= 0; k--) {
(a = b[k]), Object(s.selectAll)('cluster').append('text');
for (var x = 0; x < a.nodes.length; x++)
f.log.warn(
'Setting subgraph',
a.nodes[x],
o.default.lookUpDomId(a.nodes[x]),
o.default.lookUpDomId(a.id)
),
p.setParent(
o.default.lookUpDomId(a.nodes[x]),
o.default.lookUpDomId(a.id)
);
}
y(C, p, t), w(S, p);
var L = new (0, h.a.render)();
_.default.addToRender(L),
(L.arrows().none = function (e, t, i, n) {
var r = e
.append('marker')
.attr('id', t)
.attr('viewBox', '0 0 10 10')
.attr('refX', 9)
.attr('refY', 5)
.attr('markerUnits', 'strokeWidth')
.attr('markerWidth', 8)
.attr('markerHeight', 6)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 0 0 L 0 0 L 0 0 z');
h.a.util.applyStyle(r, i[n + 'Style']);
}),
(L.arrows().normal = function (e, t) {
e.append('marker')
.attr('id', t)
.attr('viewBox', '0 0 10 10')
.attr('refX', 9)
.attr('refY', 5)
.attr('markerUnits', 'strokeWidth')
.attr('markerWidth', 8)
.attr('markerHeight', 6)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 0 0 L 10 5 L 0 10 z')
.attr('class', 'arrowheadPath')
.style('stroke-width', 1)
.style('stroke-dasharray', '1,0');
});
var M = Object(s.select)('[id="'.concat(t, '"]'));
M.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink'),
f.log.warn(p);
var D = Object(s.select)('#' + t + ' g');
L(D, p),
D.selectAll('g.node').attr('title', function () {
return o.default.getTooltip(this.id);
});
var N = d.diagramPadding,
E = M.node().getBBox(),
T = E.width + 2 * N,
I = E.height + 2 * N;
Object(m.configureSvgSize)(M, I, T, d.useMaxWidth);
var O = ''
.concat(E.x - N, ' ')
.concat(E.y - N, ' ')
.concat(T, ' ')
.concat(I);
for (
f.log.debug('viewBox '.concat(O)),
M.attr('viewBox', O),
o.default.indexNodes('subGraph' + k),
k = 0;
k < b.length;
k++
)
if ('undefined' !== (a = b[k]).title) {
var A = document.querySelectorAll(
'#' +
t +
' [id="' +
o.default.lookUpDomId(a.id) +
'"] rect'
),
R = document.querySelectorAll(
'#' +
t +
' [id="' +
o.default.lookUpDomId(a.id) +
'"]'
),
P = A[0].x.baseVal.value,
F = A[0].y.baseVal.value,
B = A[0].width.baseVal.value,
W = Object(s.select)(R[0]).select('.label');
W.attr(
'transform',
'translate('
.concat(P + B / 2, ', ')
.concat(F + 14, ')')
),
W.attr('id', t + 'Text');
for (var Y = 0; Y < a.classes.length; Y++)
R[0].classList.add(a.classes[Y]);
}
d.htmlLabels;
for (
var H = document.querySelectorAll(
'[id="' + t + '"] .edgeLabel .label'
),
j = 0;
j < H.length;
j++
) {
var V = H[j],
z = V.getBBox(),
U = document.createElementNS(
'http://www.w3.org/2000/svg',
'rect'
);
U.setAttribute('rx', 0),
U.setAttribute('ry', 0),
U.setAttribute('width', z.width),
U.setAttribute('height', z.height),
V.insertBefore(U, V.firstChild);
}
Object.keys(C).forEach(function (e) {
var i = C[e];
if (i.link) {
var n = Object(s.select)(
'#' + t + ' [id="' + o.default.lookUpDomId(e) + '"]'
);
if (n) {
var r = document.createElementNS(
'http://www.w3.org/2000/svg',
'a'
);
r.setAttributeNS(
'http://www.w3.org/2000/svg',
'class',
i.classes.join(' ')
),
r.setAttributeNS(
'http://www.w3.org/2000/svg',
'href',
i.link
),
r.setAttributeNS(
'http://www.w3.org/2000/svg',
'rel',
'noopener'
),
i.linkTarget &&
r.setAttributeNS(
'http://www.w3.org/2000/svg',
'target',
i.linkTarget
);
var a = n.insert(function () {
return r;
}, ':first-child'),
l = n.select('.label-container');
l &&
a.append(function () {
return l.node();
});
var c = n.select('.label');
c &&
a.append(function () {
return c.node();
});
}
}
});
};
t.default = {
setConf: v,
addVertices: y,
addEdges: w,
getClasses: C,
draw: S,
};
},
'./src/diagrams/flowchart/parser/flow.jison': function (e, t, i) {
(function (e, n) {
var r = (function () {
var e = function (e, t, i, n) {
for (i = i || {}, n = e.length; n--; i[e[n]] = t);
return i;
},
t = [1, 9],
i = [1, 7],
n = [1, 6],
r = [1, 8],
s = [
1,
20,
21,
22,
23,
38,
46,
75,
76,
77,
78,
79,
80,
94,
95,
98,
99,
100,
102,
103,
109,
110,
111,
112,
113,
114,
],
o = [2, 10],
a = [1, 20],
l = [1, 21],
c = [1, 22],
d = [1, 23],
h = [1, 30],
u = [1, 54],
g = [1, 32],
f = [1, 33],
p = [1, 34],
m = [1, 35],
_ = [1, 36],
b = [1, 48],
v = [1, 43],
y = [1, 45],
w = [1, 40],
C = [1, 44],
S = [1, 47],
k = [1, 51],
x = [1, 52],
L = [1, 53],
M = [1, 42],
D = [1, 46],
N = [1, 49],
E = [1, 50],
T = [1, 41],
I = [1, 57],
O = [1, 62],
A = [
1,
20,
21,
22,
23,
38,
42,
46,
75,
76,
77,
78,
79,
80,
94,
95,
98,
99,
100,
102,
103,
109,
110,
111,
112,
113,
114,
],
R = [1, 66],
P = [1, 65],
F = [1, 67],
B = [20, 21, 23, 69, 70],
W = [1, 88],
Y = [1, 93],
H = [1, 90],
j = [1, 95],
V = [1, 98],
z = [1, 96],
U = [1, 97],
$ = [1, 91],
K = [1, 103],
q = [1, 102],
G = [1, 92],
Z = [1, 94],
J = [1, 99],
Q = [1, 100],
X = [1, 101],
ee = [1, 104],
te = [20, 21, 22, 23, 69, 70],
ie = [20, 21, 22, 23, 47, 69, 70],
ne = [
20,
21,
22,
23,
40,
46,
47,
49,
51,
53,
55,
57,
59,
61,
62,
64,
69,
70,
80,
94,
95,
98,
99,
100,
102,
103,
109,
110,
111,
112,
113,
114,
],
re = [20, 21, 23],
se = [
20,
21,
23,
46,
69,
70,
80,
94,
95,
98,
99,
100,
102,
103,
109,
110,
111,
112,
113,
114,
],
oe = [
1,
12,
20,
21,
22,
23,
24,
38,
42,
46,
75,
76,
77,
78,
79,
80,
94,
95,
98,
99,
100,
102,
103,
109,
110,
111,
112,
113,
114,
],
ae = [
46,
80,
94,
95,
98,
99,
100,
102,
103,
109,
110,
111,
112,
113,
114,
],
le = [1, 136],
ce = [1, 144],
de = [1, 145],
he = [1, 146],
ue = [1, 147],
ge = [1, 131],
fe = [1, 132],
pe = [1, 128],
me = [1, 139],
_e = [1, 140],
be = [1, 141],
ve = [1, 142],
ye = [1, 143],
we = [1, 148],
Ce = [1, 149],
Se = [1, 134],
ke = [1, 137],
xe = [1, 133],
Le = [1, 130],
Me = [
20,
21,
22,
23,
38,
42,
46,
75,
76,
77,
78,
79,
80,
94,
95,
98,
99,
100,
102,
103,
109,
110,
111,
112,
113,
114,
],
De = [1, 152],
Ne = [
20,
21,
22,
23,
26,
46,
80,
94,
95,
98,
99,
100,
102,
103,
109,
110,
111,
112,
113,
114,
],
Ee = [
20,
21,
22,
23,
24,
26,
38,
40,
41,
42,
46,
50,
52,
54,
56,
58,
60,
61,
63,
65,
69,
70,
71,
75,
76,
77,
78,
79,
80,
81,
84,
94,
95,
98,
99,
100,
102,
103,
104,
105,
109,
110,
111,
112,
113,
114,
],
Te = [12, 21, 22, 24],
Ie = [22, 95],
Oe = [1, 233],
Ae = [1, 237],
Re = [1, 234],
Pe = [1, 231],
Fe = [1, 228],
Be = [1, 229],
We = [1, 230],
Ye = [1, 232],
He = [1, 235],
je = [1, 236],
Ve = [1, 238],
ze = [1, 255],
Ue = [20, 21, 23, 95],
$e = [
20,
21,
22,
23,
75,
91,
94,
95,
98,
99,
100,
101,
102,
103,
104,
],
Ke = {
trace: function () {},
yy: {},
symbols_: {
error: 2,
start: 3,
mermaidDoc: 4,
directive: 5,
openDirective: 6,
typeDirective: 7,
closeDirective: 8,
separator: 9,
':': 10,
argDirective: 11,
open_directive: 12,
type_directive: 13,
arg_directive: 14,
close_directive: 15,
graphConfig: 16,
document: 17,
line: 18,
statement: 19,
SEMI: 20,
NEWLINE: 21,
SPACE: 22,
EOF: 23,
GRAPH: 24,
NODIR: 25,
DIR: 26,
FirstStmtSeperator: 27,
ending: 28,
endToken: 29,
spaceList: 30,
spaceListNewline: 31,
verticeStatement: 32,
styleStatement: 33,
linkStyleStatement: 34,
classDefStatement: 35,
classStatement: 36,
clickStatement: 37,
subgraph: 38,
text: 39,
SQS: 40,
SQE: 41,
end: 42,
link: 43,
node: 44,
vertex: 45,
AMP: 46,
STYLE_SEPARATOR: 47,
idString: 48,
PS: 49,
PE: 50,
'(-': 51,
'-)': 52,
STADIUMSTART: 53,
STADIUMEND: 54,
SUBROUTINESTART: 55,
SUBROUTINEEND: 56,
CYLINDERSTART: 57,
CYLINDEREND: 58,
DIAMOND_START: 59,
DIAMOND_STOP: 60,
TAGEND: 61,
TRAPSTART: 62,
TRAPEND: 63,
INVTRAPSTART: 64,
INVTRAPEND: 65,
linkStatement: 66,
arrowText: 67,
TESTSTR: 68,
START_LINK: 69,
LINK: 70,
PIPE: 71,
textToken: 72,
STR: 73,
keywords: 74,
STYLE: 75,
LINKSTYLE: 76,
CLASSDEF: 77,
CLASS: 78,
CLICK: 79,
DOWN: 80,
UP: 81,
textNoTags: 82,
textNoTagsToken: 83,
DEFAULT: 84,
stylesOpt: 85,
alphaNum: 86,
CALLBACKNAME: 87,
CALLBACKARGS: 88,
HREF: 89,
LINK_TARGET: 90,
HEX: 91,
numList: 92,
INTERPOLATE: 93,
NUM: 94,
COMMA: 95,
style: 96,
styleComponent: 97,
ALPHA: 98,
COLON: 99,
MINUS: 100,
UNIT: 101,
BRKT: 102,
DOT: 103,
PCT: 104,
TAGSTART: 105,
alphaNumToken: 106,
idStringToken: 107,
alphaNumStatement: 108,
PUNCTUATION: 109,
UNICODE_TEXT: 110,
PLUS: 111,
EQUALS: 112,
MULT: 113,
UNDERSCORE: 114,
graphCodeTokens: 115,
ARROW_CROSS: 116,
ARROW_POINT: 117,
ARROW_CIRCLE: 118,
ARROW_OPEN: 119,
QUOTE: 120,
$accept: 0,
$end: 1,
},
terminals_: {
2: 'error',
10: ':',
12: 'open_directive',
13: 'type_directive',
14: 'arg_directive',
15: 'close_directive',
20: 'SEMI',
21: 'NEWLINE',
22: 'SPACE',
23: 'EOF',
24: 'GRAPH',
25: 'NODIR',
26: 'DIR',
38: 'subgraph',
40: 'SQS',
41: 'SQE',
42: 'end',
46: 'AMP',
47: 'STYLE_SEPARATOR',
49: 'PS',
50: 'PE',
51: '(-',
52: '-)',
53: 'STADIUMSTART',
54: 'STADIUMEND',
55: 'SUBROUTINESTART',
56: 'SUBROUTINEEND',
57: 'CYLINDERSTART',
58: 'CYLINDEREND',
59: 'DIAMOND_START',
60: 'DIAMOND_STOP',
61: 'TAGEND',
62: 'TRAPSTART',
63: 'TRAPEND',
64: 'INVTRAPSTART',
65: 'INVTRAPEND',
68: 'TESTSTR',
69: 'START_LINK',
70: 'LINK',
71: 'PIPE',
73: 'STR',
75: 'STYLE',
76: 'LINKSTYLE',
77: 'CLASSDEF',
78: 'CLASS',
79: 'CLICK',
80: 'DOWN',
81: 'UP',
84: 'DEFAULT',
87: 'CALLBACKNAME',
88: 'CALLBACKARGS',
89: 'HREF',
90: 'LINK_TARGET',
91: 'HEX',
93: 'INTERPOLATE',
94: 'NUM',
95: 'COMMA',
98: 'ALPHA',
99: 'COLON',
100: 'MINUS',
101: 'UNIT',
102: 'BRKT',
103: 'DOT',
104: 'PCT',
105: 'TAGSTART',
109: 'PUNCTUATION',
110: 'UNICODE_TEXT',
111: 'PLUS',
112: 'EQUALS',
113: 'MULT',
114: 'UNDERSCORE',
116: 'ARROW_CROSS',
117: 'ARROW_POINT',
118: 'ARROW_CIRCLE',
119: 'ARROW_OPEN',
120: 'QUOTE',
},
productions_: [
0,
[3, 1],
[3, 2],
[5, 4],
[5, 6],
[6, 1],
[7, 1],
[11, 1],
[8, 1],
[4, 2],
[17, 0],
[17, 2],
[18, 1],
[18, 1],
[18, 1],
[18, 1],
[18, 1],
[16, 2],
[16, 2],
[16, 2],
[16, 3],
[28, 2],
[28, 1],
[29, 1],
[29, 1],
[29, 1],
[27, 1],
[27, 1],
[27, 2],
[31, 2],
[31, 2],
[31, 1],
[31, 1],
[30, 2],
[30, 1],
[19, 2],
[19, 2],
[19, 2],
[19, 2],
[19, 2],
[19, 2],
[19, 9],
[19, 6],
[19, 4],
[9, 1],
[9, 1],
[9, 1],
[32, 3],
[32, 4],
[32, 2],
[32, 1],
[44, 1],
[44, 5],
[44, 3],
[45, 4],
[45, 6],
[45, 4],
[45, 4],
[45, 4],
[45, 4],
[45, 4],
[45, 4],
[45, 6],
[45, 4],
[45, 4],
[45, 4],
[45, 4],
[45, 4],
[45, 1],
[43, 2],
[43, 3],
[43, 3],
[43, 1],
[43, 3],
[66, 1],
[67, 3],
[39, 1],
[39, 2],
[39, 1],
[74, 1],
[74, 1],
[74, 1],
[74, 1],
[74, 1],
[74, 1],
[74, 1],
[74, 1],
[74, 1],
[74, 1],
[74, 1],
[82, 1],
[82, 2],
[35, 5],
[35, 5],
[36, 5],
[37, 2],
[37, 4],
[37, 3],
[37, 5],
[37, 2],
[37, 4],
[37, 4],
[37, 6],
[37, 2],
[37, 4],
[37, 2],
[37, 4],
[37, 4],
[37, 6],
[33, 5],
[33, 5],
[34, 5],
[34, 5],
[34, 9],
[34, 9],
[34, 7],
[34, 7],
[92, 1],
[92, 3],
[85, 1],
[85, 3],
[96, 1],
[96, 2],
[97, 1],
[97, 1],
[97, 1],
[97, 1],
[97, 1],
[97, 1],
[97, 1],
[97, 1],
[97, 1],
[97, 1],
[97, 1],
[72, 1],
[72, 1],
[72, 1],
[72, 1],
[72, 1],
[72, 1],
[83, 1],
[83, 1],
[83, 1],
[83, 1],
[48, 1],
[48, 2],
[86, 1],
[86, 2],
[108, 1],
[108, 1],
[108, 1],
[108, 1],
[106, 1],
[106, 1],
[106, 1],
[106, 1],
[106, 1],
[106, 1],
[106, 1],
[106, 1],
[106, 1],
[106, 1],
[106, 1],
[106, 1],
[106, 1],
[107, 1],
[107, 1],
[107, 1],
[107, 1],
[107, 1],
[107, 1],
[107, 1],
[107, 1],
[107, 1],
[107, 1],
[107, 1],
[107, 1],
[107, 1],
[107, 1],
[107, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
[115, 1],
],
performAction: function (e, t, i, n, r, s, o) {
var a = s.length - 1;
switch (r) {
case 5:
n.parseDirective('%%{', 'open_directive');
break;
case 6:
n.parseDirective(s[a], 'type_directive');
break;
case 7:
(s[a] = s[a].trim().replace(/'/g, '"')),
n.parseDirective(s[a], 'arg_directive');
break;
case 8:
n.parseDirective(
'}%%',
'close_directive',
'flowchart'
);
break;
case 10:
this.$ = [];
break;
case 11:
s[a] !== [] && s[a - 1].push(s[a]),
(this.$ = s[a - 1]);
break;
case 12:
case 76:
case 78:
case 90:
case 146:
case 148:
case 149:
this.$ = s[a];
break;
case 19:
n.setDirection('TB'), (this.$ = 'TB');
break;
case 20:
n.setDirection(s[a - 1]), (this.$ = s[a - 1]);
break;
case 35:
this.$ = s[a - 1].nodes;
break;
case 36:
case 37:
case 38:
case 39:
case 40:
this.$ = [];
break;
case 41:
this.$ = n.addSubGraph(
s[a - 6],
s[a - 1],
s[a - 4]
);
break;
case 42:
this.$ = n.addSubGraph(
s[a - 3],
s[a - 1],
s[a - 3]
);
break;
case 43:
this.$ = n.addSubGraph(void 0, s[a - 1], void 0);
break;
case 47:
n.addLink(s[a - 2].stmt, s[a], s[a - 1]),
(this.$ = {
stmt: s[a],
nodes: s[a].concat(s[a - 2].nodes),
});
break;
case 48:
n.addLink(s[a - 3].stmt, s[a - 1], s[a - 2]),
(this.$ = {
stmt: s[a - 1],
nodes: s[a - 1].concat(s[a - 3].nodes),
});
break;
case 49:
this.$ = { stmt: s[a - 1], nodes: s[a - 1] };
break;
case 50:
this.$ = { stmt: s[a], nodes: s[a] };
break;
case 51:
this.$ = [s[a]];
break;
case 52:
this.$ = s[a - 4].concat(s[a]);
break;
case 53:
(this.$ = [s[a - 2]]), n.setClass(s[a - 2], s[a]);
break;
case 54:
(this.$ = s[a - 3]),
n.addVertex(s[a - 3], s[a - 1], 'square');
break;
case 55:
(this.$ = s[a - 5]),
n.addVertex(s[a - 5], s[a - 2], 'circle');
break;
case 56:
(this.$ = s[a - 3]),
n.addVertex(s[a - 3], s[a - 1], 'ellipse');
break;
case 57:
(this.$ = s[a - 3]),
n.addVertex(s[a - 3], s[a - 1], 'stadium');
break;
case 58:
(this.$ = s[a - 3]),
n.addVertex(s[a - 3], s[a - 1], 'subroutine');
break;
case 59:
(this.$ = s[a - 3]),
n.addVertex(s[a - 3], s[a - 1], 'cylinder');
break;
case 60:
(this.$ = s[a - 3]),
n.addVertex(s[a - 3], s[a - 1], 'round');
break;
case 61:
(this.$ = s[a - 3]),
n.addVertex(s[a - 3], s[a - 1], 'diamond');
break;
case 62:
(this.$ = s[a - 5]),
n.addVertex(s[a - 5], s[a - 2], 'hexagon');
break;
case 63:
(this.$ = s[a - 3]),
n.addVertex(s[a - 3], s[a - 1], 'odd');
break;
case 64:
(this.$ = s[a - 3]),
n.addVertex(s[a - 3], s[a - 1], 'trapezoid');
break;
case 65:
(this.$ = s[a - 3]),
n.addVertex(
s[a - 3],
s[a - 1],
'inv_trapezoid'
);
break;
case 66:
(this.$ = s[a - 3]),
n.addVertex(s[a - 3], s[a - 1], 'lean_right');
break;
case 67:
(this.$ = s[a - 3]),
n.addVertex(s[a - 3], s[a - 1], 'lean_left');
break;
case 68:
(this.$ = s[a]), n.addVertex(s[a]);
break;
case 69:
(s[a - 1].text = s[a]), (this.$ = s[a - 1]);
break;
case 70:
case 71:
(s[a - 2].text = s[a - 1]), (this.$ = s[a - 2]);
break;
case 72:
this.$ = s[a];
break;
case 73:
var l = n.destructLink(s[a], s[a - 2]);
this.$ = {
type: l.type,
stroke: l.stroke,
length: l.length,
text: s[a - 1],
};
break;
case 74:
(l = n.destructLink(s[a])),
(this.$ = {
type: l.type,
stroke: l.stroke,
length: l.length,
});
break;
case 75:
this.$ = s[a - 1];
break;
case 77:
case 91:
case 147:
this.$ = s[a - 1] + '' + s[a];
break;
case 92:
case 93:
(this.$ = s[a - 4]), n.addClass(s[a - 2], s[a]);
break;
case 94:
(this.$ = s[a - 4]), n.setClass(s[a - 2], s[a]);
break;
case 95:
case 103:
(this.$ = s[a - 1]),
n.setClickEvent(s[a - 1], s[a]);
break;
case 96:
case 104:
(this.$ = s[a - 3]),
n.setClickEvent(s[a - 3], s[a - 2]),
n.setTooltip(s[a - 3], s[a]);
break;
case 97:
(this.$ = s[a - 2]),
n.setClickEvent(s[a - 2], s[a - 1], s[a]);
break;
case 98:
(this.$ = s[a - 4]),
n.setClickEvent(s[a - 4], s[a - 3], s[a - 2]),
n.setTooltip(s[a - 4], s[a]);
break;
case 99:
case 105:
(this.$ = s[a - 1]), n.setLink(s[a - 1], s[a]);
break;
case 100:
case 106:
(this.$ = s[a - 3]),
n.setLink(s[a - 3], s[a - 2]),
n.setTooltip(s[a - 3], s[a]);
break;
case 101:
case 107:
(this.$ = s[a - 3]),
n.setLink(s[a - 3], s[a - 2], s[a]);
break;
case 102:
case 108:
(this.$ = s[a - 5]),
n.setLink(s[a - 5], s[a - 4], s[a]),
n.setTooltip(s[a - 5], s[a - 2]);
break;
case 109:
(this.$ = s[a - 4]),
n.addVertex(s[a - 2], void 0, void 0, s[a]);
break;
case 110:
case 112:
(this.$ = s[a - 4]), n.updateLink(s[a - 2], s[a]);
break;
case 111:
(this.$ = s[a - 4]),
n.updateLink([s[a - 2]], s[a]);
break;
case 113:
(this.$ = s[a - 8]),
n.updateLinkInterpolate([s[a - 6]], s[a - 2]),
n.updateLink([s[a - 6]], s[a]);
break;
case 114:
(this.$ = s[a - 8]),
n.updateLinkInterpolate(s[a - 6], s[a - 2]),
n.updateLink(s[a - 6], s[a]);
break;
case 115:
(this.$ = s[a - 6]),
n.updateLinkInterpolate([s[a - 4]], s[a]);
break;
case 116:
(this.$ = s[a - 6]),
n.updateLinkInterpolate(s[a - 4], s[a]);
break;
case 117:
case 119:
this.$ = [s[a]];
break;
case 118:
case 120:
s[a - 2].push(s[a]), (this.$ = s[a - 2]);
break;
case 122:
this.$ = s[a - 1] + s[a];
break;
case 144:
this.$ = s[a];
break;
case 145:
this.$ = s[a - 1] + '' + s[a];
break;
case 150:
this.$ = 'v';
break;
case 151:
this.$ = '-';
}
},
table: [
{
3: 1,
4: 2,
5: 3,
6: 5,
12: t,
16: 4,
21: i,
22: n,
24: r,
},
{ 1: [3] },
{ 1: [2, 1] },
{
3: 10,
4: 2,
5: 3,
6: 5,
12: t,
16: 4,
21: i,
22: n,
24: r,
},
e(s, o, { 17: 11 }),
{ 7: 12, 13: [1, 13] },
{ 16: 14, 21: i, 22: n, 24: r },
{ 16: 15, 21: i, 22: n, 24: r },
{ 25: [1, 16], 26: [1, 17] },
{ 13: [2, 5] },
{ 1: [2, 2] },
{
1: [2, 9],
18: 18,
19: 19,
20: a,
21: l,
22: c,
23: d,
32: 24,
33: 25,
34: 26,
35: 27,
36: 28,
37: 29,
38: h,
44: 31,
45: 37,
46: u,
48: 38,
75: g,
76: f,
77: p,
78: m,
79: _,
80: b,
94: v,
95: y,
98: w,
99: C,
100: S,
102: k,
103: x,
107: 39,
109: L,
110: M,
111: D,
112: N,
113: E,
114: T,
},
{ 8: 55, 10: [1, 56], 15: I },
e([10, 15], [2, 6]),
e(s, [2, 17]),
e(s, [2, 18]),
e(s, [2, 19]),
{ 20: [1, 59], 21: [1, 60], 22: O, 27: 58, 30: 61 },
e(A, [2, 11]),
e(A, [2, 12]),
e(A, [2, 13]),
e(A, [2, 14]),
e(A, [2, 15]),
e(A, [2, 16]),
{
9: 63,
20: R,
21: P,
23: F,
43: 64,
66: 68,
69: [1, 69],
70: [1, 70],
},
{ 9: 71, 20: R, 21: P, 23: F },
{ 9: 72, 20: R, 21: P, 23: F },
{ 9: 73, 20: R, 21: P, 23: F },
{ 9: 74, 20: R, 21: P, 23: F },
{ 9: 75, 20: R, 21: P, 23: F },
{ 9: 77, 20: R, 21: P, 22: [1, 76], 23: F },
e(B, [2, 50], { 30: 78, 22: O }),
{ 22: [1, 79] },
{ 22: [1, 80] },
{ 22: [1, 81] },
{ 22: [1, 82] },
{
26: W,
46: Y,
73: [1, 86],
80: H,
86: 85,
87: [1, 83],
89: [1, 84],
94: j,
95: V,
98: z,
99: U,
100: $,
102: K,
103: q,
106: 89,
108: 87,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
e(te, [2, 51], { 47: [1, 105] }),
e(ie, [2, 68], {
107: 116,
40: [1, 106],
46: u,
49: [1, 107],
51: [1, 108],
53: [1, 109],
55: [1, 110],
57: [1, 111],
59: [1, 112],
61: [1, 113],
62: [1, 114],
64: [1, 115],
80: b,
94: v,
95: y,
98: w,
99: C,
100: S,
102: k,
103: x,
109: L,
110: M,
111: D,
112: N,
113: E,
114: T,
}),
e(ne, [2, 144]),
e(ne, [2, 165]),
e(ne, [2, 166]),
e(ne, [2, 167]),
e(ne, [2, 168]),
e(ne, [2, 169]),
e(ne, [2, 170]),
e(ne, [2, 171]),
e(ne, [2, 172]),
e(ne, [2, 173]),
e(ne, [2, 174]),
e(ne, [2, 175]),
e(ne, [2, 176]),
e(ne, [2, 177]),
e(ne, [2, 178]),
e(ne, [2, 179]),
{ 9: 117, 20: R, 21: P, 23: F },
{ 11: 118, 14: [1, 119] },
e(re, [2, 8]),
e(s, [2, 20]),
e(s, [2, 26]),
e(s, [2, 27]),
{ 21: [1, 120] },
e(se, [2, 34], { 30: 121, 22: O }),
e(A, [2, 35]),
{
44: 122,
45: 37,
46: u,
48: 38,
80: b,
94: v,
95: y,
98: w,
99: C,
100: S,
102: k,
103: x,
107: 39,
109: L,
110: M,
111: D,
112: N,
113: E,
114: T,
},
e(oe, [2, 44]),
e(oe, [2, 45]),
e(oe, [2, 46]),
e(ae, [2, 72], {
67: 123,
68: [1, 124],
71: [1, 125],
}),
{
22: le,
24: ce,
26: de,
38: he,
39: 126,
42: ue,
46: Y,
61: ge,
69: fe,
72: 127,
73: pe,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
e(
[
46,
68,
71,
80,
94,
95,
98,
99,
100,
102,
103,
109,
110,
111,
112,
113,
114,
],
[2, 74]
),
e(A, [2, 36]),
e(A, [2, 37]),
e(A, [2, 38]),
e(A, [2, 39]),
e(A, [2, 40]),
{
22: le,
24: ce,
26: de,
38: he,
39: 150,
42: ue,
46: Y,
61: ge,
69: fe,
72: 127,
73: pe,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
e(Me, o, { 17: 151 }),
e(B, [2, 49], { 46: De }),
{
26: W,
46: Y,
80: H,
86: 153,
91: [1, 154],
94: j,
95: V,
98: z,
99: U,
100: $,
102: K,
103: q,
106: 89,
108: 87,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{ 84: [1, 155], 92: 156, 94: [1, 157] },
{
26: W,
46: Y,
80: H,
84: [1, 158],
86: 159,
94: j,
95: V,
98: z,
99: U,
100: $,
102: K,
103: q,
106: 89,
108: 87,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
26: W,
46: Y,
80: H,
86: 160,
94: j,
95: V,
98: z,
99: U,
100: $,
102: K,
103: q,
106: 89,
108: 87,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
e(re, [2, 95], { 22: [1, 161], 88: [1, 162] }),
e(re, [2, 99], { 22: [1, 163] }),
e(re, [2, 103], {
106: 89,
108: 165,
22: [1, 164],
26: W,
46: Y,
80: H,
94: j,
95: V,
98: z,
99: U,
100: $,
102: K,
103: q,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
}),
e(re, [2, 105], { 22: [1, 166] }),
e(Ne, [2, 146]),
e(Ne, [2, 148]),
e(Ne, [2, 149]),
e(Ne, [2, 150]),
e(Ne, [2, 151]),
e(Ee, [2, 152]),
e(Ee, [2, 153]),
e(Ee, [2, 154]),
e(Ee, [2, 155]),
e(Ee, [2, 156]),
e(Ee, [2, 157]),
e(Ee, [2, 158]),
e(Ee, [2, 159]),
e(Ee, [2, 160]),
e(Ee, [2, 161]),
e(Ee, [2, 162]),
e(Ee, [2, 163]),
e(Ee, [2, 164]),
{
46: u,
48: 167,
80: b,
94: v,
95: y,
98: w,
99: C,
100: S,
102: k,
103: x,
107: 39,
109: L,
110: M,
111: D,
112: N,
113: E,
114: T,
},
{
22: le,
24: ce,
26: de,
38: he,
39: 168,
42: ue,
46: Y,
61: ge,
69: fe,
72: 127,
73: pe,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
39: 170,
42: ue,
46: Y,
49: [1, 169],
61: ge,
69: fe,
72: 127,
73: pe,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
39: 171,
42: ue,
46: Y,
61: ge,
69: fe,
72: 127,
73: pe,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
39: 172,
42: ue,
46: Y,
61: ge,
69: fe,
72: 127,
73: pe,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
39: 173,
42: ue,
46: Y,
61: ge,
69: fe,
72: 127,
73: pe,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
39: 174,
42: ue,
46: Y,
61: ge,
69: fe,
72: 127,
73: pe,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
39: 175,
42: ue,
46: Y,
59: [1, 176],
61: ge,
69: fe,
72: 127,
73: pe,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
39: 177,
42: ue,
46: Y,
61: ge,
69: fe,
72: 127,
73: pe,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
39: 178,
42: ue,
46: Y,
61: ge,
69: fe,
72: 127,
73: pe,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
39: 179,
42: ue,
46: Y,
61: ge,
69: fe,
72: 127,
73: pe,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
e(ne, [2, 145]),
e(Te, [2, 3]),
{ 8: 180, 15: I },
{ 15: [2, 7] },
e(s, [2, 28]),
e(se, [2, 33]),
e(B, [2, 47], { 30: 181, 22: O }),
e(ae, [2, 69], { 22: [1, 182] }),
{ 22: [1, 183] },
{
22: le,
24: ce,
26: de,
38: he,
39: 184,
42: ue,
46: Y,
61: ge,
69: fe,
72: 127,
73: pe,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
42: ue,
46: Y,
61: ge,
69: fe,
70: [1, 185],
72: 186,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
e(Ee, [2, 76]),
e(Ee, [2, 78]),
e(Ee, [2, 134]),
e(Ee, [2, 135]),
e(Ee, [2, 136]),
e(Ee, [2, 137]),
e(Ee, [2, 138]),
e(Ee, [2, 139]),
e(Ee, [2, 140]),
e(Ee, [2, 141]),
e(Ee, [2, 142]),
e(Ee, [2, 143]),
e(Ee, [2, 79]),
e(Ee, [2, 80]),
e(Ee, [2, 81]),
e(Ee, [2, 82]),
e(Ee, [2, 83]),
e(Ee, [2, 84]),
e(Ee, [2, 85]),
e(Ee, [2, 86]),
e(Ee, [2, 87]),
e(Ee, [2, 88]),
e(Ee, [2, 89]),
{
9: 188,
20: R,
21: P,
22: le,
23: F,
24: ce,
26: de,
38: he,
40: [1, 187],
42: ue,
46: Y,
61: ge,
69: fe,
72: 186,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
18: 18,
19: 19,
20: a,
21: l,
22: c,
23: d,
32: 24,
33: 25,
34: 26,
35: 27,
36: 28,
37: 29,
38: h,
42: [1, 189],
44: 31,
45: 37,
46: u,
48: 38,
75: g,
76: f,
77: p,
78: m,
79: _,
80: b,
94: v,
95: y,
98: w,
99: C,
100: S,
102: k,
103: x,
107: 39,
109: L,
110: M,
111: D,
112: N,
113: E,
114: T,
},
{ 22: O, 30: 190 },
{
22: [1, 191],
26: W,
46: Y,
80: H,
94: j,
95: V,
98: z,
99: U,
100: $,
102: K,
103: q,
106: 89,
108: 165,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{ 22: [1, 192] },
{ 22: [1, 193] },
{ 22: [1, 194], 95: [1, 195] },
e(Ie, [2, 117]),
{ 22: [1, 196] },
{
22: [1, 197],
26: W,
46: Y,
80: H,
94: j,
95: V,
98: z,
99: U,
100: $,
102: K,
103: q,
106: 89,
108: 165,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: [1, 198],
26: W,
46: Y,
80: H,
94: j,
95: V,
98: z,
99: U,
100: $,
102: K,
103: q,
106: 89,
108: 165,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{ 73: [1, 199] },
e(re, [2, 97], { 22: [1, 200] }),
{ 73: [1, 201], 90: [1, 202] },
{ 73: [1, 203] },
e(Ne, [2, 147]),
{ 73: [1, 204], 90: [1, 205] },
e(te, [2, 53], {
107: 116,
46: u,
80: b,
94: v,
95: y,
98: w,
99: C,
100: S,
102: k,
103: x,
109: L,
110: M,
111: D,
112: N,
113: E,
114: T,
}),
{
22: le,
24: ce,
26: de,
38: he,
41: [1, 206],
42: ue,
46: Y,
61: ge,
69: fe,
72: 186,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
39: 207,
42: ue,
46: Y,
61: ge,
69: fe,
72: 127,
73: pe,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
42: ue,
46: Y,
50: [1, 208],
61: ge,
69: fe,
72: 186,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
42: ue,
46: Y,
52: [1, 209],
61: ge,
69: fe,
72: 186,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
42: ue,
46: Y,
54: [1, 210],
61: ge,
69: fe,
72: 186,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
42: ue,
46: Y,
56: [1, 211],
61: ge,
69: fe,
72: 186,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
42: ue,
46: Y,
58: [1, 212],
61: ge,
69: fe,
72: 186,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
42: ue,
46: Y,
60: [1, 213],
61: ge,
69: fe,
72: 186,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
39: 214,
42: ue,
46: Y,
61: ge,
69: fe,
72: 127,
73: pe,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
41: [1, 215],
42: ue,
46: Y,
61: ge,
69: fe,
72: 186,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
42: ue,
46: Y,
61: ge,
63: [1, 216],
65: [1, 217],
69: fe,
72: 186,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
22: le,
24: ce,
26: de,
38: he,
42: ue,
46: Y,
61: ge,
63: [1, 219],
65: [1, 218],
69: fe,
72: 186,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{ 9: 220, 20: R, 21: P, 23: F },
e(B, [2, 48], { 46: De }),
e(ae, [2, 71]),
e(ae, [2, 70]),
{
22: le,
24: ce,
26: de,
38: he,
42: ue,
46: Y,
61: ge,
69: fe,
71: [1, 221],
72: 186,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
e(ae, [2, 73]),
e(Ee, [2, 77]),
{
22: le,
24: ce,
26: de,
38: he,
39: 222,
42: ue,
46: Y,
61: ge,
69: fe,
72: 127,
73: pe,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
e(Me, o, { 17: 223 }),
e(A, [2, 43]),
{
45: 224,
46: u,
48: 38,
80: b,
94: v,
95: y,
98: w,
99: C,
100: S,
102: k,
103: x,
107: 39,
109: L,
110: M,
111: D,
112: N,
113: E,
114: T,
},
{
22: Oe,
75: Ae,
85: 225,
91: Re,
94: Pe,
96: 226,
97: 227,
98: Fe,
99: Be,
100: We,
101: Ye,
102: He,
103: je,
104: Ve,
},
{
22: Oe,
75: Ae,
85: 239,
91: Re,
94: Pe,
96: 226,
97: 227,
98: Fe,
99: Be,
100: We,
101: Ye,
102: He,
103: je,
104: Ve,
},
{
22: Oe,
75: Ae,
85: 240,
91: Re,
93: [1, 241],
94: Pe,
96: 226,
97: 227,
98: Fe,
99: Be,
100: We,
101: Ye,
102: He,
103: je,
104: Ve,
},
{
22: Oe,
75: Ae,
85: 242,
91: Re,
93: [1, 243],
94: Pe,
96: 226,
97: 227,
98: Fe,
99: Be,
100: We,
101: Ye,
102: He,
103: je,
104: Ve,
},
{ 94: [1, 244] },
{
22: Oe,
75: Ae,
85: 245,
91: Re,
94: Pe,
96: 226,
97: 227,
98: Fe,
99: Be,
100: We,
101: Ye,
102: He,
103: je,
104: Ve,
},
{
22: Oe,
75: Ae,
85: 246,
91: Re,
94: Pe,
96: 226,
97: 227,
98: Fe,
99: Be,
100: We,
101: Ye,
102: He,
103: je,
104: Ve,
},
{
26: W,
46: Y,
80: H,
86: 247,
94: j,
95: V,
98: z,
99: U,
100: $,
102: K,
103: q,
106: 89,
108: 87,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
e(re, [2, 96]),
{ 73: [1, 248] },
e(re, [2, 100], { 22: [1, 249] }),
e(re, [2, 101]),
e(re, [2, 104]),
e(re, [2, 106], { 22: [1, 250] }),
e(re, [2, 107]),
e(ie, [2, 54]),
{
22: le,
24: ce,
26: de,
38: he,
42: ue,
46: Y,
50: [1, 251],
61: ge,
69: fe,
72: 186,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
e(ie, [2, 60]),
e(ie, [2, 56]),
e(ie, [2, 57]),
e(ie, [2, 58]),
e(ie, [2, 59]),
e(ie, [2, 61]),
{
22: le,
24: ce,
26: de,
38: he,
42: ue,
46: Y,
60: [1, 252],
61: ge,
69: fe,
72: 186,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
e(ie, [2, 63]),
e(ie, [2, 64]),
e(ie, [2, 66]),
e(ie, [2, 65]),
e(ie, [2, 67]),
e(Te, [2, 4]),
e(
[
22,
46,
80,
94,
95,
98,
99,
100,
102,
103,
109,
110,
111,
112,
113,
114,
],
[2, 75]
),
{
22: le,
24: ce,
26: de,
38: he,
41: [1, 253],
42: ue,
46: Y,
61: ge,
69: fe,
72: 186,
74: 138,
75: me,
76: _e,
77: be,
78: ve,
79: ye,
80: we,
81: Ce,
83: 129,
84: Se,
94: j,
95: V,
98: z,
99: U,
100: ke,
102: K,
103: q,
104: xe,
105: Le,
106: 135,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
18: 18,
19: 19,
20: a,
21: l,
22: c,
23: d,
32: 24,
33: 25,
34: 26,
35: 27,
36: 28,
37: 29,
38: h,
42: [1, 254],
44: 31,
45: 37,
46: u,
48: 38,
75: g,
76: f,
77: p,
78: m,
79: _,
80: b,
94: v,
95: y,
98: w,
99: C,
100: S,
102: k,
103: x,
107: 39,
109: L,
110: M,
111: D,
112: N,
113: E,
114: T,
},
e(te, [2, 52]),
e(re, [2, 109], { 95: ze }),
e(Ue, [2, 119], {
97: 256,
22: Oe,
75: Ae,
91: Re,
94: Pe,
98: Fe,
99: Be,
100: We,
101: Ye,
102: He,
103: je,
104: Ve,
}),
e($e, [2, 121]),
e($e, [2, 123]),
e($e, [2, 124]),
e($e, [2, 125]),
e($e, [2, 126]),
e($e, [2, 127]),
e($e, [2, 128]),
e($e, [2, 129]),
e($e, [2, 130]),
e($e, [2, 131]),
e($e, [2, 132]),
e($e, [2, 133]),
e(re, [2, 110], { 95: ze }),
e(re, [2, 111], { 95: ze }),
{ 22: [1, 257] },
e(re, [2, 112], { 95: ze }),
{ 22: [1, 258] },
e(Ie, [2, 118]),
e(re, [2, 92], { 95: ze }),
e(re, [2, 93], { 95: ze }),
e(re, [2, 94], {
106: 89,
108: 165,
26: W,
46: Y,
80: H,
94: j,
95: V,
98: z,
99: U,
100: $,
102: K,
103: q,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
}),
e(re, [2, 98]),
{ 90: [1, 259] },
{ 90: [1, 260] },
{ 50: [1, 261] },
{ 60: [1, 262] },
{ 9: 263, 20: R, 21: P, 23: F },
e(A, [2, 42]),
{
22: Oe,
75: Ae,
91: Re,
94: Pe,
96: 264,
97: 227,
98: Fe,
99: Be,
100: We,
101: Ye,
102: He,
103: je,
104: Ve,
},
e($e, [2, 122]),
{
26: W,
46: Y,
80: H,
86: 265,
94: j,
95: V,
98: z,
99: U,
100: $,
102: K,
103: q,
106: 89,
108: 87,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
{
26: W,
46: Y,
80: H,
86: 266,
94: j,
95: V,
98: z,
99: U,
100: $,
102: K,
103: q,
106: 89,
108: 87,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
},
e(re, [2, 102]),
e(re, [2, 108]),
e(ie, [2, 55]),
e(ie, [2, 62]),
e(Me, o, { 17: 267 }),
e(Ue, [2, 120], {
97: 256,
22: Oe,
75: Ae,
91: Re,
94: Pe,
98: Fe,
99: Be,
100: We,
101: Ye,
102: He,
103: je,
104: Ve,
}),
e(re, [2, 115], {
106: 89,
108: 165,
22: [1, 268],
26: W,
46: Y,
80: H,
94: j,
95: V,
98: z,
99: U,
100: $,
102: K,
103: q,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
}),
e(re, [2, 116], {
106: 89,
108: 165,
22: [1, 269],
26: W,
46: Y,
80: H,
94: j,
95: V,
98: z,
99: U,
100: $,
102: K,
103: q,
109: G,
110: Z,
111: J,
112: Q,
113: X,
114: ee,
}),
{
18: 18,
19: 19,
20: a,
21: l,
22: c,
23: d,
32: 24,
33: 25,
34: 26,
35: 27,
36: 28,
37: 29,
38: h,
42: [1, 270],
44: 31,
45: 37,
46: u,
48: 38,
75: g,
76: f,
77: p,
78: m,
79: _,
80: b,
94: v,
95: y,
98: w,
99: C,
100: S,
102: k,
103: x,
107: 39,
109: L,
110: M,
111: D,
112: N,
113: E,
114: T,
},
{
22: Oe,
75: Ae,
85: 271,
91: Re,
94: Pe,
96: 226,
97: 227,
98: Fe,
99: Be,
100: We,
101: Ye,
102: He,
103: je,
104: Ve,
},
{
22: Oe,
75: Ae,
85: 272,
91: Re,
94: Pe,
96: 226,
97: 227,
98: Fe,
99: Be,
100: We,
101: Ye,
102: He,
103: je,
104: Ve,
},
e(A, [2, 41]),
e(re, [2, 113], { 95: ze }),
e(re, [2, 114], { 95: ze }),
],
defaultActions: {
2: [2, 1],
9: [2, 5],
10: [2, 2],
119: [2, 7],
},
parseError: function (e, t) {
if (!t.recoverable) {
var i = new Error(e);
throw ((i.hash = t), i);
}
this.trace(e);
},
parse: function (e) {
var t = this,
i = [0],
n = [],
r = [null],
s = [],
o = this.table,
a = '',
l = 0,
c = 0,
d = 0,
h = 2,
u = 1,
g = s.slice.call(arguments, 1),
f = Object.create(this.lexer),
p = { yy: {} };
for (var m in this.yy)
Object.prototype.hasOwnProperty.call(this.yy, m) &&
(p.yy[m] = this.yy[m]);
f.setInput(e, p.yy),
(p.yy.lexer = f),
(p.yy.parser = this),
void 0 === f.yylloc && (f.yylloc = {});
var _ = f.yylloc;
s.push(_);
var b = f.options && f.options.ranges;
function v() {
var e;
return (
'number' !=
typeof (e = n.pop() || f.lex() || u) &&
(e instanceof Array && (e = (n = e).pop()),
(e = t.symbols_[e] || e)),
e
);
}
'function' == typeof p.yy.parseError
? (this.parseError = p.yy.parseError)
: (this.parseError = Object.getPrototypeOf(
this
).parseError);
for (var y, w, C, S, k, x, L, M, D, N = {}; ; ) {
if (
((C = i[i.length - 1]),
this.defaultActions[C]
? (S = this.defaultActions[C])
: (null == y && (y = v()),
(S = o[C] && o[C][y])),
void 0 === S || !S.length || !S[0])
) {
var E = '';
for (x in ((D = []), o[C]))
this.terminals_[x] &&
x > h &&
D.push("'" + this.terminals_[x] + "'");
(E = f.showPosition
? 'Parse error on line ' +
(l + 1) +
':\n' +
f.showPosition() +
'\nExpecting ' +
D.join(', ') +
", got '" +
(this.terminals_[y] || y) +
"'"
: 'Parse error on line ' +
(l + 1) +
': Unexpected ' +
(y == u
? 'end of input'
: "'" + (this.terminals_[y] || y) + "'")),
this.parseError(E, {
text: f.match,
token: this.terminals_[y] || y,
line: f.yylineno,
loc: _,
expected: D,
});
}
if (S[0] instanceof Array && S.length > 1)
throw new Error(
'Parse Error: multiple actions possible at state: ' +
C +
', token: ' +
y
);
switch (S[0]) {
case 1:
i.push(y),
r.push(f.yytext),
s.push(f.yylloc),
i.push(S[1]),
(y = null),
w
? ((y = w), (w = null))
: ((c = f.yyleng),
(a = f.yytext),
(l = f.yylineno),
(_ = f.yylloc),
d > 0 && d--);
break;
case 2:
if (
((L = this.productions_[S[1]][1]),
(N.$ = r[r.length - L]),
(N._$ = {
first_line:
s[s.length - (L || 1)].first_line,
last_line: s[s.length - 1].last_line,
first_column:
s[s.length - (L || 1)].first_column,
last_column: s[s.length - 1].last_column,
}),
b &&
(N._$.range = [
s[s.length - (L || 1)].range[0],
s[s.length - 1].range[1],
]),
void 0 !==
(k = this.performAction.apply(
N,
[a, c, l, p.yy, S[1], r, s].concat(g)
)))
)
return k;
L &&
((i = i.slice(0, -1 * L * 2)),
(r = r.slice(0, -1 * L)),
(s = s.slice(0, -1 * L))),
i.push(this.productions_[S[1]][0]),
r.push(N.$),
s.push(N._$),
(M = o[i[i.length - 2]][i[i.length - 1]]),
i.push(M);
break;
case 3:
return !0;
}
}
return !0;
},
},
qe = {
EOF: 1,
parseError: function (e, t) {
if (!this.yy.parser) throw new Error(e);
this.yy.parser.parseError(e, t);
},
setInput: function (e, t) {
return (
(this.yy = t || this.yy || {}),
(this._input = e),
(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 e = this._input[0];
return (
(this.yytext += e),
this.yyleng++,
this.offset++,
(this.match += e),
(this.matched += e),
e.match(/(?:\r\n?|\n).*/g)
? (this.yylineno++, this.yylloc.last_line++)
: this.yylloc.last_column++,
this.options.ranges && this.yylloc.range[1]++,
(this._input = this._input.slice(1)),
e
);
},
unput: function (e) {
var t = e.length,
i = e.split(/(?:\r\n?|\n)/g);
(this._input = e + this._input),
(this.yytext = this.yytext.substr(
0,
this.yytext.length - t
)),
(this.offset -= t);
var n = 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
)),
i.length - 1 && (this.yylineno -= i.length - 1);
var r = 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: i
? (i.length === n.length
? this.yylloc.first_column
: 0) +
n[n.length - i.length].length -
i[0].length
: this.yylloc.first_column - t,
}),
this.options.ranges &&
(this.yylloc.range = [
r[0],
r[0] + this.yyleng - t,
]),
(this.yyleng = this.yytext.length),
this
);
},
more: function () {
return (this._more = !0), this;
},
reject: function () {
return this.options.backtrack_lexer
? ((this._backtrack = !0), this)
: 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).\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
less: function (e) {
this.unput(this.match.slice(e));
},
pastInput: function () {
var e = this.matched.substr(
0,
this.matched.length - this.match.length
);
return (
(e.length > 20 ? '...' : '') +
e.substr(-20).replace(/\n/g, '')
);
},
upcomingInput: function () {
var e = this.match;
return (
e.length < 20 &&
(e += this._input.substr(0, 20 - e.length)),
(
e.substr(0, 20) + (e.length > 20 ? '...' : '')
).replace(/\n/g, '')
);
},
showPosition: function () {
var e = this.pastInput(),
t = new Array(e.length + 1).join('-');
return e + this.upcomingInput() + '\n' + t + '^';
},
test_match: function (e, t) {
var i, n, r;
if (
(this.options.backtrack_lexer &&
((r = {
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 &&
(r.yylloc.range = this.yylloc.range.slice(0))),
(n = e[0].match(/(?:\r\n?|\n).*/g)) &&
(this.yylineno += n.length),
(this.yylloc = {
first_line: this.yylloc.last_line,
last_line: this.yylineno + 1,
first_column: this.yylloc.last_column,
last_column: n
? n[n.length - 1].length -
n[n.length - 1].match(/\r?\n?/)[0].length
: this.yylloc.last_column + e[0].length,
}),
(this.yytext += e[0]),
(this.match += e[0]),
(this.matches = e),
(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(e[0].length)),
(this.matched += e[0]),
(i = this.performAction.call(
this,
this.yy,
this,
t,
this.conditionStack[
this.conditionStack.length - 1
]
)),
this.done && this._input && (this.done = !1),
i)
)
return i;
if (this._backtrack) {
for (var s in r) this[s] = r[s];
return !1;
}
return !1;
},
next: function () {
if (this.done) return this.EOF;
var e, t, i, n;
this._input || (this.done = !0),
this._more ||
((this.yytext = ''), (this.match = ''));
for (
var r = this._currentRules(), s = 0;
s < r.length;
s++
)
if (
(i = this._input.match(this.rules[r[s]])) &&
(!t || i[0].length > t[0].length)
) {
if (
((t = i), (n = s), this.options.backtrack_lexer)
) {
if (!1 !== (e = this.test_match(i, r[s])))
return e;
if (this._backtrack) {
t = !1;
continue;
}
return !1;
}
if (!this.options.flex) break;
}
return t
? !1 !== (e = this.test_match(t, r[n])) && e
: '' === this._input
? this.EOF
: this.parseError(
'Lexical error on line ' +
(this.yylineno + 1) +
'. Unrecognized text.\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
lex: function () {
return this.next() || this.lex();
},
begin: function (e) {
this.conditionStack.push(e);
},
popState: function () {
return this.conditionStack.length - 1 > 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 (e) {
return (e =
this.conditionStack.length -
1 -
Math.abs(e || 0)) >= 0
? this.conditionStack[e]
: 'INITIAL';
},
pushState: function (e) {
this.begin(e);
},
stateStackSize: function () {
return this.conditionStack.length;
},
options: {},
performAction: function (e, t, i, n) {
switch (i) {
case 0:
return this.begin('open_directive'), 12;
case 1:
return this.begin('type_directive'), 13;
case 2:
return (
this.popState(), this.begin('arg_directive'), 10
);
case 3:
return this.popState(), this.popState(), 15;
case 4:
return 14;
case 5:
case 6:
break;
case 7:
this.begin('string');
break;
case 8:
this.popState();
break;
case 9:
return 'STR';
case 10:
return 75;
case 11:
return 84;
case 12:
return 76;
case 13:
return 93;
case 14:
return 77;
case 15:
return 78;
case 16:
this.begin('href');
break;
case 17:
this.popState();
break;
case 18:
return 89;
case 19:
this.begin('callbackname');
break;
case 20:
this.popState();
break;
case 21:
this.popState(), this.begin('callbackargs');
break;
case 22:
return 87;
case 23:
this.popState();
break;
case 24:
return 88;
case 25:
this.begin('click');
break;
case 26:
this.popState();
break;
case 27:
return 79;
case 28:
case 29:
return (
e.lex.firstGraph() && this.begin('dir'), 24
);
case 30:
return 38;
case 31:
return 42;
case 32:
case 33:
case 34:
case 35:
return 90;
case 36:
return this.popState(), 25;
case 37:
case 38:
case 39:
case 40:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
return this.popState(), 26;
case 47:
return 94;
case 48:
return 102;
case 49:
return 47;
case 50:
return 99;
case 51:
return 46;
case 52:
return 20;
case 53:
return 95;
case 54:
return 113;
case 55:
case 56:
case 57:
return 70;
case 58:
case 59:
case 60:
return 69;
case 61:
return 51;
case 62:
return 52;
case 63:
return 53;
case 64:
return 54;
case 65:
return 55;
case 66:
return 56;
case 67:
return 57;
case 68:
return 58;
case 69:
return 100;
case 70:
return 103;
case 71:
return 114;
case 72:
return 111;
case 73:
return 104;
case 74:
case 75:
return 112;
case 76:
return 105;
case 77:
return 61;
case 78:
return 81;
case 79:
return 'SEP';
case 80:
return 80;
case 81:
return 98;
case 82:
return 63;
case 83:
return 62;
case 84:
return 65;
case 85:
return 64;
case 86:
return 109;
case 87:
return 110;
case 88:
return 71;
case 89:
return 49;
case 90:
return 50;
case 91:
return 40;
case 92:
return 41;
case 93:
return 59;
case 94:
return 60;
case 95:
return 120;
case 96:
return 21;
case 97:
return 22;
case 98:
return 23;
}
},
rules: [
/^(?:%%\{)/,
/^(?:((?:(?!\}%%)[^:.])*))/,
/^(?::)/,
/^(?:\}%%)/,
/^(?:((?:(?!\}%%).|\n)*))/,
/^(?:%%(?!\{)[^\n]*)/,
/^(?:[^\}]%%[^\n]*)/,
/^(?:["])/,
/^(?:["])/,
/^(?:[^"]*)/,
/^(?:style\b)/,
/^(?:default\b)/,
/^(?:linkStyle\b)/,
/^(?:interpolate\b)/,
/^(?:classDef\b)/,
/^(?:class\b)/,
/^(?:href[\s]+["])/,
/^(?:["])/,
/^(?:[^"]*)/,
/^(?:call[\s]+)/,
/^(?:\([\s]*\))/,
/^(?:\()/,
/^(?:[^(]*)/,
/^(?:\))/,
/^(?:[^)]*)/,
/^(?:click[\s]+)/,
/^(?:[\s\n])/,
/^(?:[^\s\n]*)/,
/^(?:graph\b)/,
/^(?:flowchart\b)/,
/^(?:subgraph\b)/,
/^(?:end\b\s*)/,
/^(?:_self\b)/,
/^(?:_blank\b)/,
/^(?:_parent\b)/,
/^(?:_top\b)/,
/^(?:(\r?\n)*\s*\n)/,
/^(?:\s*LR\b)/,
/^(?:\s*RL\b)/,
/^(?:\s*TB\b)/,
/^(?:\s*BT\b)/,
/^(?:\s*TD\b)/,
/^(?:\s*BR\b)/,
/^(?:\s*<)/,
/^(?:\s*>)/,
/^(?:\s*\^)/,
/^(?:\s*v\b)/,
/^(?:[0-9]+)/,
/^(?:#)/,
/^(?::::)/,
/^(?::)/,
/^(?:&)/,
/^(?:;)/,
/^(?:,)/,
/^(?:\*)/,
/^(?:\s*[xo<]?--+[-xo>]\s*)/,
/^(?:\s*[xo<]?==+[=xo>]\s*)/,
/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
/^(?:\s*[xo<]?--\s*)/,
/^(?:\s*[xo<]?==\s*)/,
/^(?:\s*[xo<]?-\.\s*)/,
/^(?:\(-)/,
/^(?:-\))/,
/^(?:\(\[)/,
/^(?:\]\))/,
/^(?:\[\[)/,
/^(?:\]\])/,
/^(?:\[\()/,
/^(?:\)\])/,
/^(?:-)/,
/^(?:\.)/,
/^(?:[\_])/,
/^(?:\+)/,
/^(?:%)/,
/^(?:=)/,
/^(?:=)/,
/^(?:<)/,
/^(?:>)/,
/^(?:\^)/,
/^(?:\\\|)/,
/^(?:v\b)/,
/^(?:[A-Za-z]+)/,
/^(?:\\\])/,
/^(?:\[\/)/,
/^(?:\/\])/,
/^(?:\[\\)/,
/^(?:[!"#$%&'*+,-.`?\\_/])/,
/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,
/^(?:\|)/,
/^(?:\()/,
/^(?:\))/,
/^(?:\[)/,
/^(?:\])/,
/^(?:\{)/,
/^(?:\})/,
/^(?:")/,
/^(?:(\r?\n)+)/,
/^(?:\s)/,
/^(?:$)/,
],
conditions: {
close_directive: { rules: [], inclusive: !1 },
arg_directive: { rules: [3, 4], inclusive: !1 },
type_directive: { rules: [2, 3], inclusive: !1 },
open_directive: { rules: [1], inclusive: !1 },
callbackargs: { rules: [23, 24], inclusive: !1 },
callbackname: { rules: [20, 21, 22], inclusive: !1 },
href: { rules: [17, 18], inclusive: !1 },
click: { rules: [26, 27], inclusive: !1 },
vertex: { rules: [], inclusive: !1 },
dir: {
rules: [36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46],
inclusive: !1,
},
string: { rules: [8, 9], inclusive: !1 },
INITIAL: {
rules: [
0,
5,
6,
7,
10,
11,
12,
13,
14,
15,
16,
19,
25,
28,
29,
30,
31,
32,
33,
34,
35,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
],
inclusive: !0,
},
},
};
function Ge() {
this.yy = {};
}
return (
(Ke.lexer = qe),
(Ge.prototype = Ke),
(Ke.Parser = Ge),
new Ge()
);
})();
(t.parser = r),
(t.Parser = r.Parser),
(t.parse = function () {
return r.parse.apply(r, arguments);
}),
(t.main = function (n) {
n[1] ||
(console.log('Usage: ' + n[0] + ' FILE'), e.exit(1));
var r = i(
'./node_modules/node-libs-browser/mock/empty.js'
).readFileSync(
i('./node_modules/path-browserify/index.js').normalize(
n[1]
),
'utf8'
);
return t.parser.parse(r);
}),
i.c[i.s] === n && t.main(e.argv.slice(1));
}.call(
this,
i('./node_modules/process/browser.js'),
i('./node_modules/webpack/buildin/module.js')(e)
));
},
'./src/diagrams/flowchart/styles.js': function (e, t, i) {
'use strict';
i.r(t),
(t.default = function (e) {
return '.label {\n font-family: '
.concat(e.fontFamily, ';\n color: ')
.concat(
e.nodeTextColor || e.textColor,
';\n }\n .cluster-label text {\n fill: '
)
.concat(
e.titleColor,
';\n }\n .cluster-label span {\n color: '
)
.concat(
e.titleColor,
';\n }\n\n .label text,span {\n fill: '
)
.concat(e.nodeTextColor || e.textColor, ';\n color: ')
.concat(
e.nodeTextColor || e.textColor,
';\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: '
)
.concat(e.mainBkg, ';\n stroke: ')
.concat(
e.nodeBorder,
';\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: '
)
.concat(
e.arrowheadColor,
';\n }\n\n .edgePath .path {\n stroke: '
)
.concat(
e.lineColor,
';\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: '
)
.concat(
e.lineColor,
';\n fill: none;\n }\n\n .edgeLabel {\n background-color: '
)
.concat(
e.edgeLabelBackground,
';\n rect {\n opacity: 0.5;\n background-color: '
)
.concat(e.edgeLabelBackground, ';\n fill: ')
.concat(
e.edgeLabelBackground,
';\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: '
)
.concat(e.clusterBkg, ';\n stroke: ')
.concat(
e.clusterBorder,
';\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: '
)
.concat(
e.titleColor,
';\n }\n\n .cluster span {\n color: '
)
.concat(
e.titleColor,
';\n }\n // .cluster div {\n // color: '
)
.concat(
e.titleColor,
';\n // }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: '
)
.concat(
e.fontFamily,
';\n font-size: 12px;\n background: '
)
.concat(e.tertiaryColor, ';\n border: 1px solid ')
.concat(
e.border2,
';\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n'
);
});
},
'./src/diagrams/gantt/ganttDb.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'parseDirective', function () {
return x;
}),
i.d(t, 'clear', function () {
return L;
}),
i.d(t, 'setAxisFormat', function () {
return M;
}),
i.d(t, 'getAxisFormat', function () {
return D;
}),
i.d(t, 'setTodayMarker', function () {
return N;
}),
i.d(t, 'getTodayMarker', function () {
return E;
}),
i.d(t, 'setDateFormat', function () {
return T;
}),
i.d(t, 'enableInclusiveEndDates', function () {
return I;
}),
i.d(t, 'endDatesAreInclusive', function () {
return O;
}),
i.d(t, 'enableTopAxis', function () {
return A;
}),
i.d(t, 'topAxisEnabled', function () {
return R;
}),
i.d(t, 'getDateFormat', function () {
return P;
}),
i.d(t, 'setExcludes', function () {
return F;
}),
i.d(t, 'getExcludes', function () {
return B;
}),
i.d(t, 'setTitle', function () {
return W;
}),
i.d(t, 'getTitle', function () {
return Y;
}),
i.d(t, 'addSection', function () {
return H;
}),
i.d(t, 'getSections', function () {
return j;
}),
i.d(t, 'getTasks', function () {
return V;
}),
i.d(t, 'addTask', function () {
return ee;
}),
i.d(t, 'findTaskById', function () {
return te;
}),
i.d(t, 'addTaskOrg', function () {
return ie;
}),
i.d(t, 'setLink', function () {
return re;
}),
i.d(t, 'setClass', function () {
return se;
}),
i.d(t, 'setClickEvent', function () {
return ae;
}),
i.d(t, 'bindFunctions', function () {
return le;
});
var n = i('moment-mini'),
r = i.n(n),
s = i('@braintree/sanitize-url'),
o = i('./src/logger.js'),
a = i('./src/config.js'),
l = i('./src/utils.js'),
c = i('./src/mermaidAPI.js');
var d,
h,
u = '',
g = '',
f = '',
p = [],
m = '',
_ = [],
b = [],
v = '',
y = ['active', 'done', 'crit', 'milestone'],
w = [],
C = !1,
S = !1,
k = 0,
x = function (e, t, i) {
c.default.parseDirective(this, e, t, i);
},
L = function () {
(_ = []),
(b = []),
(v = ''),
(w = []),
(m = ''),
(Z = 0),
(d = void 0),
(h = void 0),
(Q = []),
(u = ''),
(g = ''),
(f = ''),
(p = []),
(C = !1),
(S = !1),
(k = 0);
},
M = function (e) {
g = e;
},
D = function () {
return g;
},
N = function (e) {
f = e;
},
E = function () {
return f;
},
T = function (e) {
u = e;
},
I = function () {
C = !0;
},
O = function () {
return C;
},
A = function () {
S = !0;
},
R = function () {
return S;
},
P = function () {
return u;
},
F = function (e) {
p = e.toLowerCase().split(/[\s,]+/);
},
B = function () {
return p;
},
W = function (e) {
m = e;
},
Y = function () {
return m;
},
H = function (e) {
(v = e), _.push(e);
},
j = function () {
return _;
},
V = function () {
for (var e = ne(), t = 0; !e && t < 10; ) (e = ne()), t++;
return (b = Q);
},
z = function (e, t, i) {
return (
(e.isoWeekday() >= 6 && i.indexOf('weekends') >= 0) ||
i.indexOf(e.format('dddd').toLowerCase()) >= 0 ||
i.indexOf(e.format(t.trim())) >= 0
);
},
U = function (e, t, i) {
if (i.length && !e.manualEndTime) {
var n = r()(e.startTime, t, !0);
n.add(1, 'd');
var s = r()(e.endTime, t, !0),
o = $(n, s, t, i);
(e.endTime = s.toDate()), (e.renderEndTime = o);
}
},
$ = function (e, t, i, n) {
for (var r = !1, s = null; e <= t; )
r || (s = t.toDate()),
(r = z(e, i, n)) && t.add(1, 'd'),
e.add(1, 'd');
return s;
},
K = function (e, t, i) {
i = i.trim();
var n = /^after\s+([\d\w- ]+)/.exec(i.trim());
if (null !== n) {
var s = null;
if (
(n[1].split(' ').forEach(function (e) {
var t = te(e);
void 0 !== t &&
(s ? t.endTime > s.endTime && (s = t) : (s = t));
}),
s)
)
return s.endTime;
var a = new Date();
return a.setHours(0, 0, 0, 0), a;
}
var l = r()(i, t.trim(), !0);
return l.isValid()
? l.toDate()
: (o.log.debug('Invalid date:' + i),
o.log.debug('With date format:' + t.trim()),
new Date());
},
q = function (e, t) {
if (null !== e)
switch (e[2]) {
case 's':
t.add(e[1], 'seconds');
break;
case 'm':
t.add(e[1], 'minutes');
break;
case 'h':
t.add(e[1], 'hours');
break;
case 'd':
t.add(e[1], 'days');
break;
case 'w':
t.add(e[1], 'weeks');
}
return t.toDate();
},
G = function (e, t, i, n) {
(n = n || !1), (i = i.trim());
var s = r()(i, t.trim(), !0);
return s.isValid()
? (n && s.add(1, 'd'), s.toDate())
: q(/^([\d]+)([wdhms])/.exec(i.trim()), r()(e));
},
Z = 0,
J = function (e) {
return void 0 === e ? 'task' + (Z += 1) : e;
},
Q = [],
X = {},
ee = function (e, t) {
var i = {
section: v,
type: v,
processed: !1,
manualEndTime: !1,
renderEndTime: null,
raw: { data: t },
task: e,
classes: [],
},
n = (function (e, t) {
var i = (':' === t.substr(0, 1)
? t.substr(1, t.length)
: t
).split(','),
n = {};
ce(i, n, y);
for (var r = 0; r < i.length; r++) i[r] = i[r].trim();
switch (i.length) {
case 1:
(n.id = J()),
(n.startTime = { type: 'prevTaskEnd', id: e }),
(n.endTime = { data: i[0] });
break;
case 2:
(n.id = J()),
(n.startTime = {
type: 'getStartDate',
startData: i[0],
}),
(n.endTime = { data: i[1] });
break;
case 3:
(n.id = J(i[0])),
(n.startTime = {
type: 'getStartDate',
startData: i[1],
}),
(n.endTime = { data: i[2] });
}
return n;
})(h, t);
(i.raw.startTime = n.startTime),
(i.raw.endTime = n.endTime),
(i.id = n.id),
(i.prevTaskId = h),
(i.active = n.active),
(i.done = n.done),
(i.crit = n.crit),
(i.milestone = n.milestone),
(i.order = k),
k++;
var r = Q.push(i);
(h = i.id), (X[i.id] = r - 1);
},
te = function (e) {
var t = X[e];
return Q[t];
},
ie = function (e, t) {
var i = {
section: v,
type: v,
description: e,
task: e,
classes: [],
},
n = (function (e, t) {
var i = (':' === t.substr(0, 1)
? t.substr(1, t.length)
: t
).split(','),
n = {};
ce(i, n, y);
for (var s = 0; s < i.length; s++) i[s] = i[s].trim();
var o = '';
switch (i.length) {
case 1:
(n.id = J()), (n.startTime = e.endTime), (o = i[0]);
break;
case 2:
(n.id = J()),
(n.startTime = K(0, u, i[0])),
(o = i[1]);
break;
case 3:
(n.id = J(i[0])),
(n.startTime = K(0, u, i[1])),
(o = i[2]);
}
return (
o &&
((n.endTime = G(n.startTime, u, o, C)),
(n.manualEndTime = r()(
o,
'YYYY-MM-DD',
!0
).isValid()),
U(n, u, p)),
n
);
})(d, t);
(i.startTime = n.startTime),
(i.endTime = n.endTime),
(i.id = n.id),
(i.active = n.active),
(i.done = n.done),
(i.crit = n.crit),
(i.milestone = n.milestone),
(d = i),
b.push(i);
},
ne = function () {
for (
var e = function (e) {
var t = Q[e],
i = '';
switch (Q[e].raw.startTime.type) {
case 'prevTaskEnd':
var n = te(t.prevTaskId);
t.startTime = n.endTime;
break;
case 'getStartDate':
(i = K(0, u, Q[e].raw.startTime.startData)) &&
(Q[e].startTime = i);
}
return (
Q[e].startTime &&
((Q[e].endTime = G(
Q[e].startTime,
u,
Q[e].raw.endTime.data,
C
)),
Q[e].endTime &&
((Q[e].processed = !0),
(Q[e].manualEndTime = r()(
Q[e].raw.endTime.data,
'YYYY-MM-DD',
!0
).isValid()),
U(Q[e], u, p))),
Q[e].processed
);
},
t = !0,
i = 0;
i < Q.length;
i++
)
e(i), (t = t && Q[i].processed);
return t;
},
re = function (e, t) {
var i = t;
'loose' !== a.getConfig().securityLevel &&
(i = Object(s.sanitizeUrl)(t)),
e.split(',').forEach(function (e) {
void 0 !== te(e) &&
oe(e, function () {
window.open(i, '_self');
});
}),
se(e, 'clickable');
},
se = function (e, t) {
e.split(',').forEach(function (e) {
var i = te(e);
void 0 !== i && i.classes.push(t);
});
},
oe = function (e, t) {
w.push(function () {
var i = document.querySelector('[id="'.concat(e, '"]'));
null !== i &&
i.addEventListener('click', function () {
t();
});
}),
w.push(function () {
var i = document.querySelector(
'[id="'.concat(e, '-text"]')
);
null !== i &&
i.addEventListener('click', function () {
t();
});
});
},
ae = function (e, t, i) {
e.split(',').forEach(function (e) {
!(function (e, t, i) {
if (
'loose' === a.getConfig().securityLevel &&
void 0 !== t
) {
var n = [];
if ('string' == typeof i) {
n = i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
for (var r = 0; r < n.length; r++) {
var s = n[r].trim();
'"' === s.charAt(0) &&
'"' === s.charAt(s.length - 1) &&
(s = s.substr(1, s.length - 2)),
(n[r] = s);
}
}
0 === n.length && n.push(e),
void 0 !== te(e) &&
oe(e, function () {
var e;
l.default.runFunc.apply(
l.default,
[t].concat(
(function (e) {
if (Array.isArray(e)) {
for (
var t = 0, i = new Array(e.length);
t < e.length;
t++
)
i[t] = e[t];
return i;
}
})((e = n)) ||
(function (e) {
if (
Symbol.iterator in Object(e) ||
'[object Arguments]' ===
Object.prototype.toString.call(e)
)
return Array.from(e);
})(e) ||
(function () {
throw new TypeError(
'Invalid attempt to spread non-iterable instance'
);
})()
)
);
});
}
})(e, t, i);
}),
se(e, 'clickable');
},
le = function (e) {
w.forEach(function (t) {
t(e);
});
};
function ce(e, t, i) {
for (var n = !0; n; )
(n = !1),
i.forEach(function (i) {
var r = new RegExp('^\\s*' + i + '\\s*$');
e[0].match(r) && ((t[i] = !0), e.shift(1), (n = !0));
});
}
t.default = {
parseDirective: x,
getConfig: function () {
return a.getConfig().gantt;
},
clear: L,
setDateFormat: T,
getDateFormat: P,
enableInclusiveEndDates: I,
endDatesAreInclusive: O,
enableTopAxis: A,
topAxisEnabled: R,
setAxisFormat: M,
getAxisFormat: D,
setTodayMarker: N,
getTodayMarker: E,
setTitle: W,
getTitle: Y,
addSection: H,
getSections: j,
getTasks: V,
addTask: ee,
findTaskById: te,
addTaskOrg: ie,
setExcludes: F,
getExcludes: B,
setClickEvent: ae,
setLink: re,
bindFunctions: le,
durationToDate: q,
};
},
'./src/diagrams/gantt/ganttRenderer.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'setConf', function () {
return d;
}),
i.d(t, 'draw', function () {
return h;
});
var n = i('d3'),
r = i('./src/diagrams/gantt/parser/gantt.jison'),
s = i('./src/diagrams/common/common.js'),
o = i('./src/diagrams/gantt/ganttDb.js'),
a = i('./src/config.js'),
l = i('./src/utils.js');
r.parser.yy = o.default;
var c,
d = function () {},
h = function (e, t) {
var i = Object(a.getConfig)().gantt;
r.parser.yy.clear(), r.parser.parse(e);
var d = document.getElementById(t);
void 0 === (c = d.parentElement.offsetWidth) && (c = 1200),
void 0 !== i.useWidth && (c = i.useWidth);
var h = r.parser.yy.getTasks(),
u =
h.length * (i.barHeight + i.barGap) + 2 * i.topPadding;
d.setAttribute('viewBox', '0 0 ' + c + ' ' + u);
for (
var g = Object(n.select)('[id="'.concat(t, '"]')),
f = Object(n.scaleTime)()
.domain([
Object(n.min)(h, function (e) {
return e.startTime;
}),
Object(n.max)(h, function (e) {
return e.endTime;
}),
])
.rangeRound([0, c - i.leftPadding - i.rightPadding]),
p = [],
m = 0;
m < h.length;
m++
)
p.push(h[m].type);
var _,
b,
v,
y,
w,
C,
S,
k = p;
(p = (function (e) {
for (var t = {}, i = [], n = 0, r = e.length; n < r; ++n)
t.hasOwnProperty(e[n]) ||
((t[e[n]] = !0), i.push(e[n]));
return i;
})(p)),
h.sort(function (e, t) {
var i = e.startTime,
n = t.startTime,
r = 0;
return i > n ? (r = 1) : i < n && (r = -1), r;
}),
(_ = h),
(b = c),
(v = u),
(w = (y = i.barHeight) + i.barGap),
(C = i.topPadding),
(S = i.leftPadding),
Object(n.scaleLinear)()
.domain([0, p.length])
.range(['#00B9FA', '#F95002'])
.interpolate(n.interpolateHcl),
(function (e, t, s, a) {
var l = Object(n.axisBottom)(f)
.tickSize(-a + t + i.gridLineStartPadding)
.tickFormat(
Object(n.timeFormat)(
r.parser.yy.getAxisFormat() ||
i.axisFormat ||
'%Y-%m-%d'
)
);
if (
(g
.append('g')
.attr('class', 'grid')
.attr(
'transform',
'translate(' + e + ', ' + (a - 50) + ')'
)
.call(l)
.selectAll('text')
.style('text-anchor', 'middle')
.attr('fill', '#000')
.attr('stroke', 'none')
.attr('font-size', 10)
.attr('dy', '1em'),
o.default.topAxisEnabled() || i.topAxis)
) {
var c = Object(n.axisTop)(f)
.tickSize(-a + t + i.gridLineStartPadding)
.tickFormat(
Object(n.timeFormat)(
r.parser.yy.getAxisFormat() ||
i.axisFormat ||
'%Y-%m-%d'
)
);
g.append('g')
.attr('class', 'grid')
.attr(
'transform',
'translate(' + e + ', ' + t + ')'
)
.call(c)
.selectAll('text')
.style('text-anchor', 'middle')
.attr('fill', '#000')
.attr('stroke', 'none')
.attr('font-size', 10);
}
})(S, C, 0, v),
(function (e, t, n, r, s, o, a) {
g.append('g')
.selectAll('rect')
.data(e)
.enter()
.append('rect')
.attr('x', 0)
.attr('y', function (e, i) {
return e.order * t + n - 2;
})
.attr('width', function () {
return a - i.rightPadding / 2;
})
.attr('height', t)
.attr('class', function (e) {
for (var t = 0; t < p.length; t++)
if (e.type === p[t])
return (
'section section' +
(t % i.numberSectionStyles)
);
return 'section section0';
});
var l = g.append('g').selectAll('rect').data(e).enter();
l
.append('rect')
.attr('id', function (e) {
return e.id;
})
.attr('rx', 3)
.attr('ry', 3)
.attr('x', function (e) {
return e.milestone
? f(e.startTime) +
r +
0.5 * (f(e.endTime) - f(e.startTime)) -
0.5 * s
: f(e.startTime) + r;
})
.attr('y', function (e, i) {
return e.order * t + n;
})
.attr('width', function (e) {
return e.milestone
? s
: f(e.renderEndTime || e.endTime) -
f(e.startTime);
})
.attr('height', s)
.attr('transform-origin', function (e, i) {
return (
(i = e.order),
(
f(e.startTime) +
r +
0.5 * (f(e.endTime) - f(e.startTime))
).toString() +
'px ' +
(i * t + n + 0.5 * s).toString() +
'px'
);
})
.attr('class', function (e) {
var t = '';
e.classes.length > 0 && (t = e.classes.join(' '));
for (var n = 0, r = 0; r < p.length; r++)
e.type === p[r] &&
(n = r % i.numberSectionStyles);
var s = '';
return (
e.active
? e.crit
? (s += ' activeCrit')
: (s = ' active')
: e.done
? (s = e.crit ? ' doneCrit' : ' done')
: e.crit && (s += ' crit'),
0 === s.length && (s = ' task'),
e.milestone && (s = ' milestone ' + s),
'task' + (s += n) + ' ' + t
);
}),
l
.append('text')
.attr('id', function (e) {
return e.id + '-text';
})
.text(function (e) {
return e.task;
})
.attr('font-size', i.fontSize)
.attr('x', function (e) {
var t = f(e.startTime),
n = f(e.renderEndTime || e.endTime);
e.milestone &&
(t +=
0.5 * (f(e.endTime) - f(e.startTime)) -
0.5 * s),
e.milestone && (n = t + s);
var o = this.getBBox().width;
return o > n - t
? n + o + 1.5 * i.leftPadding > a
? t + r - 5
: n + r + 5
: (n - t) / 2 + t + r;
})
.attr('y', function (e, r) {
return (
e.order * t +
i.barHeight / 2 +
(i.fontSize / 2 - 2) +
n
);
})
.attr('text-height', s)
.attr('class', function (e) {
var t = f(e.startTime),
n = f(e.endTime);
e.milestone && (n = t + s);
var r = this.getBBox().width,
o = '';
e.classes.length > 0 && (o = e.classes.join(' '));
for (var l = 0, c = 0; c < p.length; c++)
e.type === p[c] &&
(l = c % i.numberSectionStyles);
var d = '';
return (
e.active &&
(d = e.crit
? 'activeCritText' + l
: 'activeText' + l),
e.done
? (d = e.crit
? d + ' doneCritText' + l
: d + ' doneText' + l)
: e.crit && (d = d + ' critText' + l),
e.milestone && (d += ' milestoneText'),
r > n - t
? n + r + 1.5 * i.leftPadding > a
? o +
' taskTextOutsideLeft taskTextOutside' +
l +
' ' +
d
: o +
' taskTextOutsideRight taskTextOutside' +
l +
' ' +
d +
' width-' +
r
: o +
' taskText taskText' +
l +
' ' +
d +
' width-' +
r
);
});
})(_, w, C, S, y, 0, b),
(function (e, t) {
for (var n = [], r = 0, o = 0; o < p.length; o++)
n[o] = [
p[o],
((a = p[o]),
(l = k),
(function (e) {
for (var t = e.length, i = {}; t; )
i[e[--t]] = (i[e[t]] || 0) + 1;
return i;
})(l)[a] || 0),
];
var a, l;
g.append('g')
.selectAll('text')
.data(n)
.enter()
.append(function (e) {
var t = e[0].split(s.default.lineBreakRegex),
i = -(t.length - 1) / 2,
n = document.createElementNS(
'http://www.w3.org/2000/svg',
'text'
);
n.setAttribute('dy', i + 'em');
for (var r = 0; r < t.length; r++) {
var o = document.createElementNS(
'http://www.w3.org/2000/svg',
'tspan'
);
o.setAttribute('alignment-baseline', 'central'),
o.setAttribute('x', '10'),
r > 0 && o.setAttribute('dy', '1em'),
(o.textContent = t[r]),
n.appendChild(o);
}
return n;
})
.attr('x', 10)
.attr('y', function (i, s) {
if (!(s > 0)) return (i[1] * e) / 2 + t;
for (var o = 0; o < s; o++)
return (
(r += n[s - 1][1]), (i[1] * e) / 2 + r * e + t
);
})
.attr('font-size', i.sectionFontSize)
.attr('font-size', i.sectionFontSize)
.attr('class', function (e) {
for (var t = 0; t < p.length; t++)
if (e[0] === p[t])
return (
'sectionTitle sectionTitle' +
(t % i.numberSectionStyles)
);
return 'sectionTitle';
});
})(w, C),
(function (e, t, n, r) {
var s = o.default.getTodayMarker();
if ('off' !== s) {
var a = g.append('g').attr('class', 'today'),
l = new Date(),
c = a.append('line');
c
.attr('x1', f(l) + e)
.attr('x2', f(l) + e)
.attr('y1', i.titleTopMargin)
.attr('y2', r - i.titleTopMargin)
.attr('class', 'today'),
'' !== s && c.attr('style', s.replace(/,/g, ';'));
}
})(S, 0, 0, v),
Object(l.configureSvgSize)(g, u, c, i.useMaxWidth),
g
.append('text')
.text(r.parser.yy.getTitle())
.attr('x', c / 2)
.attr('y', i.titleTopMargin)
.attr('class', 'titleText');
};
t.default = { setConf: d, draw: h };
},
'./src/diagrams/gantt/parser/gantt.jison': function (e, t, i) {
(function (e, n) {
var r = (function () {
var e = function (e, t, i, n) {
for (i = i || {}, n = e.length; n--; i[e[n]] = t);
return i;
},
t = [1, 3],
i = [1, 5],
n = [
7,
9,
11,
12,
13,
14,
15,
16,
17,
18,
19,
21,
28,
33,
],
r = [1, 15],
s = [1, 16],
o = [1, 17],
a = [1, 18],
l = [1, 19],
c = [1, 20],
d = [1, 21],
h = [1, 22],
u = [1, 24],
g = [1, 26],
f = [1, 29],
p = [
5,
7,
9,
11,
12,
13,
14,
15,
16,
17,
18,
19,
21,
28,
33,
],
m = {
trace: function () {},
yy: {},
symbols_: {
error: 2,
start: 3,
directive: 4,
gantt: 5,
document: 6,
EOF: 7,
line: 8,
SPACE: 9,
statement: 10,
NL: 11,
dateFormat: 12,
inclusiveEndDates: 13,
topAxis: 14,
axisFormat: 15,
excludes: 16,
todayMarker: 17,
title: 18,
section: 19,
clickStatement: 20,
taskTxt: 21,
taskData: 22,
openDirective: 23,
typeDirective: 24,
closeDirective: 25,
':': 26,
argDirective: 27,
click: 28,
callbackname: 29,
callbackargs: 30,
href: 31,
clickStatementDebug: 32,
open_directive: 33,
type_directive: 34,
arg_directive: 35,
close_directive: 36,
$accept: 0,
$end: 1,
},
terminals_: {
2: 'error',
5: 'gantt',
7: 'EOF',
9: 'SPACE',
11: 'NL',
12: 'dateFormat',
13: 'inclusiveEndDates',
14: 'topAxis',
15: 'axisFormat',
16: 'excludes',
17: 'todayMarker',
18: 'title',
19: 'section',
21: 'taskTxt',
22: 'taskData',
26: ':',
28: 'click',
29: 'callbackname',
30: 'callbackargs',
31: 'href',
33: 'open_directive',
34: 'type_directive',
35: 'arg_directive',
36: 'close_directive',
},
productions_: [
0,
[3, 2],
[3, 3],
[6, 0],
[6, 2],
[8, 2],
[8, 1],
[8, 1],
[8, 1],
[10, 1],
[10, 1],
[10, 1],
[10, 1],
[10, 1],
[10, 1],
[10, 1],
[10, 1],
[10, 1],
[10, 2],
[10, 1],
[4, 4],
[4, 6],
[20, 2],
[20, 3],
[20, 3],
[20, 4],
[20, 3],
[20, 4],
[20, 2],
[32, 2],
[32, 3],
[32, 3],
[32, 4],
[32, 3],
[32, 4],
[32, 2],
[23, 1],
[24, 1],
[27, 1],
[25, 1],
],
performAction: function (e, t, i, n, r, s, o) {
var a = s.length - 1;
switch (r) {
case 2:
return s[a - 1];
case 3:
this.$ = [];
break;
case 4:
s[a - 1].push(s[a]), (this.$ = s[a - 1]);
break;
case 5:
case 6:
this.$ = s[a];
break;
case 7:
case 8:
this.$ = [];
break;
case 9:
n.setDateFormat(s[a].substr(11)),
(this.$ = s[a].substr(11));
break;
case 10:
n.enableInclusiveEndDates(),
(this.$ = s[a].substr(18));
break;
case 11:
n.TopAxis(), (this.$ = s[a].substr(8));
break;
case 12:
n.setAxisFormat(s[a].substr(11)),
(this.$ = s[a].substr(11));
break;
case 13:
n.setExcludes(s[a].substr(9)),
(this.$ = s[a].substr(9));
break;
case 14:
n.setTodayMarker(s[a].substr(12)),
(this.$ = s[a].substr(12));
break;
case 15:
n.setTitle(s[a].substr(6)),
(this.$ = s[a].substr(6));
break;
case 16:
n.addSection(s[a].substr(8)),
(this.$ = s[a].substr(8));
break;
case 18:
n.addTask(s[a - 1], s[a]), (this.$ = 'task');
break;
case 22:
(this.$ = s[a - 1]),
n.setClickEvent(s[a - 1], s[a], null);
break;
case 23:
(this.$ = s[a - 2]),
n.setClickEvent(s[a - 2], s[a - 1], s[a]);
break;
case 24:
(this.$ = s[a - 2]),
n.setClickEvent(s[a - 2], s[a - 1], null),
n.setLink(s[a - 2], s[a]);
break;
case 25:
(this.$ = s[a - 3]),
n.setClickEvent(s[a - 3], s[a - 2], s[a - 1]),
n.setLink(s[a - 3], s[a]);
break;
case 26:
(this.$ = s[a - 2]),
n.setClickEvent(s[a - 2], s[a], null),
n.setLink(s[a - 2], s[a - 1]);
break;
case 27:
(this.$ = s[a - 3]),
n.setClickEvent(s[a - 3], s[a - 1], s[a]),
n.setLink(s[a - 3], s[a - 2]);
break;
case 28:
(this.$ = s[a - 1]), n.setLink(s[a - 1], s[a]);
break;
case 29:
case 35:
this.$ = s[a - 1] + ' ' + s[a];
break;
case 30:
case 31:
case 33:
this.$ = s[a - 2] + ' ' + s[a - 1] + ' ' + s[a];
break;
case 32:
case 34:
this.$ =
s[a - 3] +
' ' +
s[a - 2] +
' ' +
s[a - 1] +
' ' +
s[a];
break;
case 36:
n.parseDirective('%%{', 'open_directive');
break;
case 37:
n.parseDirective(s[a], 'type_directive');
break;
case 38:
(s[a] = s[a].trim().replace(/'/g, '"')),
n.parseDirective(s[a], 'arg_directive');
break;
case 39:
n.parseDirective(
'}%%',
'close_directive',
'gantt'
);
}
},
table: [
{ 3: 1, 4: 2, 5: t, 23: 4, 33: i },
{ 1: [3] },
{ 3: 6, 4: 2, 5: t, 23: 4, 33: i },
e(n, [2, 3], { 6: 7 }),
{ 24: 8, 34: [1, 9] },
{ 34: [2, 36] },
{ 1: [2, 1] },
{
4: 25,
7: [1, 10],
8: 11,
9: [1, 12],
10: 13,
11: [1, 14],
12: r,
13: s,
14: o,
15: a,
16: l,
17: c,
18: d,
19: h,
20: 23,
21: u,
23: 4,
28: g,
33: i,
},
{ 25: 27, 26: [1, 28], 36: f },
e([26, 36], [2, 37]),
e(n, [2, 8], { 1: [2, 2] }),
e(n, [2, 4]),
{
4: 25,
10: 30,
12: r,
13: s,
14: o,
15: a,
16: l,
17: c,
18: d,
19: h,
20: 23,
21: u,
23: 4,
28: g,
33: i,
},
e(n, [2, 6]),
e(n, [2, 7]),
e(n, [2, 9]),
e(n, [2, 10]),
e(n, [2, 11]),
e(n, [2, 12]),
e(n, [2, 13]),
e(n, [2, 14]),
e(n, [2, 15]),
e(n, [2, 16]),
e(n, [2, 17]),
{ 22: [1, 31] },
e(n, [2, 19]),
{ 29: [1, 32], 31: [1, 33] },
{ 11: [1, 34] },
{ 27: 35, 35: [1, 36] },
{ 11: [2, 39] },
e(n, [2, 5]),
e(n, [2, 18]),
e(n, [2, 22], { 30: [1, 37], 31: [1, 38] }),
e(n, [2, 28], { 29: [1, 39] }),
e(p, [2, 20]),
{ 25: 40, 36: f },
{ 36: [2, 38] },
e(n, [2, 23], { 31: [1, 41] }),
e(n, [2, 24]),
e(n, [2, 26], { 30: [1, 42] }),
{ 11: [1, 43] },
e(n, [2, 25]),
e(n, [2, 27]),
e(p, [2, 21]),
],
defaultActions: {
5: [2, 36],
6: [2, 1],
29: [2, 39],
36: [2, 38],
},
parseError: function (e, t) {
if (!t.recoverable) {
var i = new Error(e);
throw ((i.hash = t), i);
}
this.trace(e);
},
parse: function (e) {
var t = this,
i = [0],
n = [],
r = [null],
s = [],
o = this.table,
a = '',
l = 0,
c = 0,
d = 0,
h = 2,
u = 1,
g = s.slice.call(arguments, 1),
f = Object.create(this.lexer),
p = { yy: {} };
for (var m in this.yy)
Object.prototype.hasOwnProperty.call(this.yy, m) &&
(p.yy[m] = this.yy[m]);
f.setInput(e, p.yy),
(p.yy.lexer = f),
(p.yy.parser = this),
void 0 === f.yylloc && (f.yylloc = {});
var _ = f.yylloc;
s.push(_);
var b = f.options && f.options.ranges;
function v() {
var e;
return (
'number' !=
typeof (e = n.pop() || f.lex() || u) &&
(e instanceof Array && (e = (n = e).pop()),
(e = t.symbols_[e] || e)),
e
);
}
'function' == typeof p.yy.parseError
? (this.parseError = p.yy.parseError)
: (this.parseError = Object.getPrototypeOf(
this
).parseError);
for (var y, w, C, S, k, x, L, M, D, N = {}; ; ) {
if (
((C = i[i.length - 1]),
this.defaultActions[C]
? (S = this.defaultActions[C])
: (null == y && (y = v()),
(S = o[C] && o[C][y])),
void 0 === S || !S.length || !S[0])
) {
var E = '';
for (x in ((D = []), o[C]))
this.terminals_[x] &&
x > h &&
D.push("'" + this.terminals_[x] + "'");
(E = f.showPosition
? 'Parse error on line ' +
(l + 1) +
':\n' +
f.showPosition() +
'\nExpecting ' +
D.join(', ') +
", got '" +
(this.terminals_[y] || y) +
"'"
: 'Parse error on line ' +
(l + 1) +
': Unexpected ' +
(y == u
? 'end of input'
: "'" + (this.terminals_[y] || y) + "'")),
this.parseError(E, {
text: f.match,
token: this.terminals_[y] || y,
line: f.yylineno,
loc: _,
expected: D,
});
}
if (S[0] instanceof Array && S.length > 1)
throw new Error(
'Parse Error: multiple actions possible at state: ' +
C +
', token: ' +
y
);
switch (S[0]) {
case 1:
i.push(y),
r.push(f.yytext),
s.push(f.yylloc),
i.push(S[1]),
(y = null),
w
? ((y = w), (w = null))
: ((c = f.yyleng),
(a = f.yytext),
(l = f.yylineno),
(_ = f.yylloc),
d > 0 && d--);
break;
case 2:
if (
((L = this.productions_[S[1]][1]),
(N.$ = r[r.length - L]),
(N._$ = {
first_line:
s[s.length - (L || 1)].first_line,
last_line: s[s.length - 1].last_line,
first_column:
s[s.length - (L || 1)].first_column,
last_column: s[s.length - 1].last_column,
}),
b &&
(N._$.range = [
s[s.length - (L || 1)].range[0],
s[s.length - 1].range[1],
]),
void 0 !==
(k = this.performAction.apply(
N,
[a, c, l, p.yy, S[1], r, s].concat(g)
)))
)
return k;
L &&
((i = i.slice(0, -1 * L * 2)),
(r = r.slice(0, -1 * L)),
(s = s.slice(0, -1 * L))),
i.push(this.productions_[S[1]][0]),
r.push(N.$),
s.push(N._$),
(M = o[i[i.length - 2]][i[i.length - 1]]),
i.push(M);
break;
case 3:
return !0;
}
}
return !0;
},
},
_ = {
EOF: 1,
parseError: function (e, t) {
if (!this.yy.parser) throw new Error(e);
this.yy.parser.parseError(e, t);
},
setInput: function (e, t) {
return (
(this.yy = t || this.yy || {}),
(this._input = e),
(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 e = this._input[0];
return (
(this.yytext += e),
this.yyleng++,
this.offset++,
(this.match += e),
(this.matched += e),
e.match(/(?:\r\n?|\n).*/g)
? (this.yylineno++, this.yylloc.last_line++)
: this.yylloc.last_column++,
this.options.ranges && this.yylloc.range[1]++,
(this._input = this._input.slice(1)),
e
);
},
unput: function (e) {
var t = e.length,
i = e.split(/(?:\r\n?|\n)/g);
(this._input = e + this._input),
(this.yytext = this.yytext.substr(
0,
this.yytext.length - t
)),
(this.offset -= t);
var n = 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
)),
i.length - 1 && (this.yylineno -= i.length - 1);
var r = 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: i
? (i.length === n.length
? this.yylloc.first_column
: 0) +
n[n.length - i.length].length -
i[0].length
: this.yylloc.first_column - t,
}),
this.options.ranges &&
(this.yylloc.range = [
r[0],
r[0] + this.yyleng - t,
]),
(this.yyleng = this.yytext.length),
this
);
},
more: function () {
return (this._more = !0), this;
},
reject: function () {
return this.options.backtrack_lexer
? ((this._backtrack = !0), this)
: 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).\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
less: function (e) {
this.unput(this.match.slice(e));
},
pastInput: function () {
var e = this.matched.substr(
0,
this.matched.length - this.match.length
);
return (
(e.length > 20 ? '...' : '') +
e.substr(-20).replace(/\n/g, '')
);
},
upcomingInput: function () {
var e = this.match;
return (
e.length < 20 &&
(e += this._input.substr(0, 20 - e.length)),
(
e.substr(0, 20) + (e.length > 20 ? '...' : '')
).replace(/\n/g, '')
);
},
showPosition: function () {
var e = this.pastInput(),
t = new Array(e.length + 1).join('-');
return e + this.upcomingInput() + '\n' + t + '^';
},
test_match: function (e, t) {
var i, n, r;
if (
(this.options.backtrack_lexer &&
((r = {
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 &&
(r.yylloc.range = this.yylloc.range.slice(0))),
(n = e[0].match(/(?:\r\n?|\n).*/g)) &&
(this.yylineno += n.length),
(this.yylloc = {
first_line: this.yylloc.last_line,
last_line: this.yylineno + 1,
first_column: this.yylloc.last_column,
last_column: n
? n[n.length - 1].length -
n[n.length - 1].match(/\r?\n?/)[0].length
: this.yylloc.last_column + e[0].length,
}),
(this.yytext += e[0]),
(this.match += e[0]),
(this.matches = e),
(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(e[0].length)),
(this.matched += e[0]),
(i = this.performAction.call(
this,
this.yy,
this,
t,
this.conditionStack[
this.conditionStack.length - 1
]
)),
this.done && this._input && (this.done = !1),
i)
)
return i;
if (this._backtrack) {
for (var s in r) this[s] = r[s];
return !1;
}
return !1;
},
next: function () {
if (this.done) return this.EOF;
var e, t, i, n;
this._input || (this.done = !0),
this._more ||
((this.yytext = ''), (this.match = ''));
for (
var r = this._currentRules(), s = 0;
s < r.length;
s++
)
if (
(i = this._input.match(this.rules[r[s]])) &&
(!t || i[0].length > t[0].length)
) {
if (
((t = i), (n = s), this.options.backtrack_lexer)
) {
if (!1 !== (e = this.test_match(i, r[s])))
return e;
if (this._backtrack) {
t = !1;
continue;
}
return !1;
}
if (!this.options.flex) break;
}
return t
? !1 !== (e = this.test_match(t, r[n])) && e
: '' === this._input
? this.EOF
: this.parseError(
'Lexical error on line ' +
(this.yylineno + 1) +
'. Unrecognized text.\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
lex: function () {
return this.next() || this.lex();
},
begin: function (e) {
this.conditionStack.push(e);
},
popState: function () {
return this.conditionStack.length - 1 > 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 (e) {
return (e =
this.conditionStack.length -
1 -
Math.abs(e || 0)) >= 0
? this.conditionStack[e]
: 'INITIAL';
},
pushState: function (e) {
this.begin(e);
},
stateStackSize: function () {
return this.conditionStack.length;
},
options: { 'case-insensitive': !0 },
performAction: function (e, t, i, n) {
switch (i) {
case 0:
return this.begin('open_directive'), 33;
case 1:
return this.begin('type_directive'), 34;
case 2:
return (
this.popState(), this.begin('arg_directive'), 26
);
case 3:
return this.popState(), this.popState(), 36;
case 4:
return 35;
case 5:
case 6:
case 7:
break;
case 8:
return 11;
case 9:
case 10:
case 11:
break;
case 12:
this.begin('href');
break;
case 13:
this.popState();
break;
case 14:
return 31;
case 15:
this.begin('callbackname');
break;
case 16:
this.popState();
break;
case 17:
this.popState(), this.begin('callbackargs');
break;
case 18:
return 29;
case 19:
this.popState();
break;
case 20:
return 30;
case 21:
this.begin('click');
break;
case 22:
this.popState();
break;
case 23:
return 28;
case 24:
return 5;
case 25:
return 12;
case 26:
return 13;
case 27:
return 14;
case 28:
return 15;
case 29:
return 16;
case 30:
return 17;
case 31:
return 'date';
case 32:
return 18;
case 33:
return 19;
case 34:
return 21;
case 35:
return 22;
case 36:
return 26;
case 37:
return 7;
case 38:
return 'INVALID';
}
},
rules: [
/^(?:%%\{)/i,
/^(?:((?:(?!\}%%)[^:.])*))/i,
/^(?::)/i,
/^(?:\}%%)/i,
/^(?:((?:(?!\}%%).|\n)*))/i,
/^(?:%%(?!\{)*[^\n]*)/i,
/^(?:[^\}]%%*[^\n]*)/i,
/^(?:%%*[^\n]*[\n]*)/i,
/^(?:[\n]+)/i,
/^(?:\s+)/i,
/^(?:#[^\n]*)/i,
/^(?:%[^\n]*)/i,
/^(?:href[\s]+["])/i,
/^(?:["])/i,
/^(?:[^"]*)/i,
/^(?:call[\s]+)/i,
/^(?:\([\s]*\))/i,
/^(?:\()/i,
/^(?:[^(]*)/i,
/^(?:\))/i,
/^(?:[^)]*)/i,
/^(?:click[\s]+)/i,
/^(?:[\s\n])/i,
/^(?:[^\s\n]*)/i,
/^(?:gantt\b)/i,
/^(?:dateFormat\s[^#\n;]+)/i,
/^(?:inclusiveEndDates\b)/i,
/^(?:topAxis\b)/i,
/^(?:axisFormat\s[^#\n;]+)/i,
/^(?:excludes\s[^#\n;]+)/i,
/^(?:todayMarker\s[^\n;]+)/i,
/^(?:\d\d\d\d-\d\d-\d\d\b)/i,
/^(?:title\s[^#\n;]+)/i,
/^(?:section\s[^#:\n;]+)/i,
/^(?:[^#:\n;]+)/i,
/^(?::[^#\n;]+)/i,
/^(?::)/i,
/^(?:$)/i,
/^(?:.)/i,
],
conditions: {
close_directive: { rules: [], inclusive: !1 },
arg_directive: { rules: [3, 4], inclusive: !1 },
type_directive: { rules: [2, 3], inclusive: !1 },
open_directive: { rules: [1], inclusive: !1 },
callbackargs: { rules: [19, 20], inclusive: !1 },
callbackname: { rules: [16, 17, 18], inclusive: !1 },
href: { rules: [13, 14], inclusive: !1 },
click: { rules: [22, 23], inclusive: !1 },
INITIAL: {
rules: [
0,
5,
6,
7,
8,
9,
10,
11,
12,
15,
21,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
],
inclusive: !0,
},
},
};
function b() {
this.yy = {};
}
return (
(m.lexer = _), (b.prototype = m), (m.Parser = b), new b()
);
})();
(t.parser = r),
(t.Parser = r.Parser),
(t.parse = function () {
return r.parse.apply(r, arguments);
}),
(t.main = function (n) {
n[1] ||
(console.log('Usage: ' + n[0] + ' FILE'), e.exit(1));
var r = i(
'./node_modules/node-libs-browser/mock/empty.js'
).readFileSync(
i('./node_modules/path-browserify/index.js').normalize(
n[1]
),
'utf8'
);
return t.parser.parse(r);
}),
i.c[i.s] === n && t.main(e.argv.slice(1));
}.call(
this,
i('./node_modules/process/browser.js'),
i('./node_modules/webpack/buildin/module.js')(e)
));
},
'./src/diagrams/gantt/styles.js': function (e, t, i) {
'use strict';
i.r(t),
(t.default = function (e) {
return '\n .mermaid-main-font {\n font-family: "trebuchet ms", verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: '
.concat(
e.sectionBkgColor,
';\n }\n\n .section2 {\n fill: '
)
.concat(
e.sectionBkgColor2,
';\n }\n\n .section1,\n .section3 {\n fill: '
)
.concat(
e.altSectionBkgColor,
';\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: '
)
.concat(
e.titleColor,
';\n }\n\n .sectionTitle1 {\n fill: '
)
.concat(
e.titleColor,
';\n }\n\n .sectionTitle2 {\n fill: '
)
.concat(
e.titleColor,
';\n }\n\n .sectionTitle3 {\n fill: '
)
.concat(
e.titleColor,
';\n }\n\n .sectionTitle {\n text-anchor: start;\n // font-size: '
)
.concat(
e.ganttFontSize,
";\n // text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: "
)
.concat(
e.gridColor,
';\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: '
)
.concat(e.fontFamily, ';\n fill: ')
.concat(
e.textColor,
';\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: '
)
.concat(
e.todayLineColor,
";\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n\n // .taskText:not([font-size]) {\n // font-size: "
)
.concat(
e.ganttFontSize,
';\n // }\n\n .taskTextOutsideRight {\n fill: '
)
.concat(
e.taskTextDarkColor,
';\n text-anchor: start;\n // font-size: '
)
.concat(
e.ganttFontSize,
";\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: "
)
.concat(
e.taskTextDarkColor,
';\n text-anchor: end;\n // font-size: '
)
.concat(
e.ganttFontSize,
';\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: '
)
.concat(
e.taskTextClickableColor,
' !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: '
)
.concat(
e.taskTextClickableColor,
' !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: '
)
.concat(
e.taskTextClickableColor,
' !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: '
)
.concat(
e.taskTextColor,
';\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: '
)
.concat(e.taskBkgColor, ';\n stroke: ')
.concat(
e.taskBorderColor,
';\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: '
)
.concat(
e.taskTextOutsideColor,
';\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: '
)
.concat(
e.taskTextOutsideColor,
';\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: '
)
.concat(e.activeTaskBkgColor, ';\n stroke: ')
.concat(
e.activeTaskBorderColor,
';\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: '
)
.concat(
e.taskTextDarkColor,
' !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: '
)
.concat(e.doneTaskBorderColor, ';\n fill: ')
.concat(
e.doneTaskBkgColor,
';\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: '
)
.concat(
e.taskTextDarkColor,
' !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: '
)
.concat(e.critBorderColor, ';\n fill: ')
.concat(
e.critBkgColor,
';\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: '
)
.concat(e.critBorderColor, ';\n fill: ')
.concat(
e.activeTaskBkgColor,
';\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: '
)
.concat(e.critBorderColor, ';\n fill: ')
.concat(
e.doneTaskBkgColor,
';\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: '
)
.concat(
e.taskTextDarkColor,
' !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: '
)
.concat(
e.taskTextDarkColor,
' !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: '
)
.concat(
e.textColor,
" ;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n"
);
});
},
'./src/diagrams/git/gitGraphAst.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'setDirection', function () {
return g;
}),
i.d(t, 'setOptions', function () {
return p;
}),
i.d(t, 'getOptions', function () {
return m;
}),
i.d(t, 'commit', function () {
return _;
}),
i.d(t, 'branch', function () {
return b;
}),
i.d(t, 'merge', function () {
return v;
}),
i.d(t, 'checkout', function () {
return y;
}),
i.d(t, 'reset', function () {
return w;
}),
i.d(t, 'prettyPrint', function () {
return k;
}),
i.d(t, 'clear', function () {
return x;
}),
i.d(t, 'getBranchesAsObjArray', function () {
return L;
}),
i.d(t, 'getBranches', function () {
return M;
}),
i.d(t, 'getCommits', function () {
return D;
}),
i.d(t, 'getCommitsArray', function () {
return N;
}),
i.d(t, 'getCurrentBranch', function () {
return E;
}),
i.d(t, 'getDirection', function () {
return T;
}),
i.d(t, 'getHead', function () {
return I;
});
var n = i('./src/logger.js'),
r = i('./src/utils.js'),
s = {},
o = null,
a = { master: o },
l = 'master',
c = 'LR',
d = 0;
function h() {
return Object(r.random)({ length: 7 });
}
function u(e, t) {
for (
n.log.debug('Entering isfastforwardable:', e.id, t.id);
e.seq <= t.seq && e !== t && null != t.parent;
) {
if (Array.isArray(t.parent))
return (
n.log.debug('In merge commit:', t.parent),
u(e, s[t.parent[0]]) || u(e, s[t.parent[1]])
);
t = s[t.parent];
}
return n.log.debug(e.id, t.id), e.id === t.id;
}
var g = function (e) {
c = e;
},
f = {},
p = function (e) {
n.log.debug('options str', e),
(e = (e = e && e.trim()) || '{}');
try {
f = JSON.parse(e);
} catch (e) {
n.log.error(
'error while parsing gitGraph options',
e.message
);
}
},
m = function () {
return f;
},
_ = function (e) {
var t = {
id: h(),
message: e,
seq: d++,
parent: null == o ? null : o.id,
};
(o = t),
(s[t.id] = t),
(a[l] = t.id),
n.log.debug('in pushCommit ' + t.id);
},
b = function (e) {
(a[e] = null != o ? o.id : null),
n.log.debug('in createBranch');
},
v = function (e) {
var t = s[a[l]],
i = s[a[e]];
if (
(function (e, t) {
return e.seq > t.seq && u(t, e);
})(t, i)
)
n.log.debug('Already merged');
else {
if (u(t, i)) (a[l] = a[e]), (o = s[a[l]]);
else {
var r = {
id: h(),
message: 'merged branch ' + e + ' into ' + l,
seq: d++,
parent: [null == o ? null : o.id, a[e]],
};
(o = r), (s[r.id] = r), (a[l] = r.id);
}
n.log.debug(a), n.log.debug('in mergeBranch');
}
},
y = function (e) {
n.log.debug('in checkout');
var t = a[(l = e)];
o = s[t];
},
w = function (e) {
n.log.debug('in reset', e);
var t = e.split(':')[0],
i = parseInt(e.split(':')[1]),
r = 'HEAD' === t ? o : s[a[t]];
for (n.log.debug(r, i); i > 0; )
if ((i--, !(r = s[r.parent]))) {
var c =
'Critical error - unique parent commit not found during reset';
throw (n.log.error(c), c);
}
(o = r), (a[l] = r.id);
};
function C(e, t, i) {
var n = e.indexOf(t);
-1 === n ? e.push(i) : e.splice(n, 1, i);
}
function S(e) {
var t = e.reduce(function (e, t) {
return e.seq > t.seq ? e : t;
}, e[0]),
i = '';
e.forEach(function (e) {
i += e === t ? '\t*' : '\t|';
});
var r,
o,
l,
c = [i, t.id, t.seq];
for (var d in a) a[d] === t.id && c.push(d);
if ((n.log.debug(c.join(' ')), Array.isArray(t.parent))) {
var h = s[t.parent[0]];
C(e, t, h), e.push(s[t.parent[1]]);
} else {
if (null == t.parent) return;
var u = s[t.parent];
C(e, t, u);
}
(r = e),
(o = function (e) {
return e.id;
}),
(l = Object.create(null)),
S(
(e = r.reduce(function (e, t) {
var i = o(t);
return l[i] || ((l[i] = !0), e.push(t)), e;
}, []))
);
}
var k = function () {
n.log.debug(s), S([N()[0]]);
},
x = function () {
(s = {}),
(a = { master: (o = null) }),
(l = 'master'),
(d = 0);
},
L = function () {
var e = [];
for (var t in a) e.push({ name: t, commit: s[a[t]] });
return e;
},
M = function () {
return a;
},
D = function () {
return s;
},
N = function () {
var e = Object.keys(s).map(function (e) {
return s[e];
});
return (
e.forEach(function (e) {
n.log.debug(e.id);
}),
e.sort(function (e, t) {
return t.seq - e.seq;
}),
e
);
},
E = function () {
return l;
},
T = function () {
return c;
},
I = function () {
return o;
};
t.default = {
setDirection: g,
setOptions: p,
getOptions: m,
commit: _,
branch: b,
merge: v,
checkout: y,
reset: w,
prettyPrint: k,
clear: x,
getBranchesAsObjArray: L,
getBranches: M,
getCommits: D,
getCommitsArray: N,
getCurrentBranch: E,
getDirection: T,
getHead: I,
};
},
'./src/diagrams/git/gitGraphRenderer.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'setConf', function () {
return g;
}),
i.d(t, 'draw', function () {
return y;
});
var n,
r = i('d3'),
s = i('./src/diagrams/git/gitGraphAst.js'),
o = i('./src/diagrams/git/parser/gitGraph.jison'),
a = i.n(o),
l = i('./src/logger.js'),
c = i('./src/utils.js'),
d = {},
h = {
nodeSpacing: 150,
nodeFillColor: 'yellow',
nodeStrokeWidth: 2,
nodeStrokeColor: 'grey',
lineStrokeWidth: 4,
branchOffset: 50,
lineColor: 'grey',
leftMargin: 50,
branchColors: ['#442f74', '#983351', '#609732', '#AA9A39'],
nodeRadius: 10,
nodeLabel: { width: 75, height: 100, x: -25, y: 0 },
},
u = {},
g = function (e) {
u = e;
};
function f(e, t, i, n) {
var s = Object(c.interpolateToCurve)(n, r.curveBasis),
o = h.branchColors[i % h.branchColors.length],
a = Object(r.line)()
.x(function (e) {
return Math.round(e.x);
})
.y(function (e) {
return Math.round(e.y);
})
.curve(s);
e.append('svg:path')
.attr('d', a(t))
.style('stroke', o)
.style('stroke-width', h.lineStrokeWidth)
.style('fill', 'none');
}
function p(e, t) {
t = t || e.node().getBBox();
var i = e.node().getCTM();
return {
left: i.e + t.x * i.a,
top: i.f + t.y * i.d,
width: t.width,
height: t.height,
};
}
function m(e, t, i, n, r) {
l.log.debug('svgDrawLineForCommits: ', t, i);
var s = p(e.select('#node-' + t + ' circle')),
o = p(e.select('#node-' + i + ' circle'));
switch (n) {
case 'LR':
if (s.left - o.left > h.nodeSpacing) {
var a = {
x: s.left - h.nodeSpacing,
y: o.top + o.height / 2,
};
f(
e,
[a, { x: o.left + o.width, y: o.top + o.height / 2 }],
r,
'linear'
),
f(
e,
[
{ x: s.left, y: s.top + s.height / 2 },
{
x: s.left - h.nodeSpacing / 2,
y: s.top + s.height / 2,
},
{ x: s.left - h.nodeSpacing / 2, y: a.y },
a,
],
r
);
} else
f(
e,
[
{ x: s.left, y: s.top + s.height / 2 },
{
x: s.left - h.nodeSpacing / 2,
y: s.top + s.height / 2,
},
{
x: s.left - h.nodeSpacing / 2,
y: o.top + o.height / 2,
},
{ x: o.left + o.width, y: o.top + o.height / 2 },
],
r
);
break;
case 'BT':
if (o.top - s.top > h.nodeSpacing) {
var c = {
x: o.left + o.width / 2,
y: s.top + s.height + h.nodeSpacing,
};
f(
e,
[c, { x: o.left + o.width / 2, y: o.top }],
r,
'linear'
),
f(
e,
[
{ x: s.left + s.width / 2, y: s.top + s.height },
{
x: s.left + s.width / 2,
y: s.top + s.height + h.nodeSpacing / 2,
},
{
x: o.left + o.width / 2,
y: c.y - h.nodeSpacing / 2,
},
c,
],
r
);
} else
f(
e,
[
{ x: s.left + s.width / 2, y: s.top + s.height },
{
x: s.left + s.width / 2,
y: s.top + h.nodeSpacing / 2,
},
{
x: o.left + o.width / 2,
y: o.top - h.nodeSpacing / 2,
},
{ x: o.left + o.width / 2, y: o.top },
],
r
);
}
}
function _(e, t) {
return e.select(t).node().cloneNode(!0);
}
function b(e, t, i, r) {
var s,
o = Object.keys(d).length;
if ('string' == typeof t)
do {
if (
((s = d[t]),
l.log.debug('in renderCommitHistory', s.id, s.seq),
e.select('#node-' + t).size() > 0)
)
return;
e.append(function () {
return _(e, '#def-commit');
})
.attr('class', 'commit')
.attr('id', function () {
return 'node-' + s.id;
})
.attr('transform', function () {
switch (r) {
case 'LR':
return (
'translate(' +
(s.seq * h.nodeSpacing + h.leftMargin) +
', ' +
n * h.branchOffset +
')'
);
case 'BT':
return (
'translate(' +
(n * h.branchOffset + h.leftMargin) +
', ' +
(o - s.seq) * h.nodeSpacing +
')'
);
}
})
.attr('fill', h.nodeFillColor)
.attr('stroke', h.nodeStrokeColor)
.attr('stroke-width', h.nodeStrokeWidth);
var a = void 0;
for (var c in i)
if (i[c].commit === s) {
a = i[c];
break;
}
a &&
(l.log.debug('found branch ', a.name),
e
.select('#node-' + s.id + ' p')
.append('xhtml:span')
.attr('class', 'branch-label')
.text(a.name + ', ')),
e
.select('#node-' + s.id + ' p')
.append('xhtml:span')
.attr('class', 'commit-id')
.text(s.id),
'' !== s.message &&
'BT' === r &&
e
.select('#node-' + s.id + ' p')
.append('xhtml:span')
.attr('class', 'commit-msg')
.text(', ' + s.message),
(t = s.parent);
} while (t && d[t]);
Array.isArray(t) &&
(l.log.debug('found merge commmit', t),
b(e, t[0], i, r),
n++,
b(e, t[1], i, r),
n--);
}
function v(e, t, i, n) {
for (n = n || 0; t.seq > 0 && !t.lineDrawn; )
'string' == typeof t.parent
? (m(e, t.id, t.parent, i, n),
(t.lineDrawn = !0),
(t = d[t.parent]))
: Array.isArray(t.parent) &&
(m(e, t.id, t.parent[0], i, n),
m(e, t.id, t.parent[1], i, n + 1),
v(e, d[t.parent[1]], i, n + 1),
(t.lineDrawn = !0),
(t = d[t.parent[0]]));
}
var y = function (e, t, i) {
try {
var o = a.a.parser;
(o.yy = s.default),
o.yy.clear(),
l.log.debug(
'in gitgraph renderer',
e + '\n',
'id:',
t,
i
),
o.parse(e + '\n'),
(h = Object.assign(h, u, s.default.getOptions())),
l.log.debug('effective options', h);
var c = s.default.getDirection();
d = s.default.getCommits();
var g = s.default.getBranchesAsObjArray();
'BT' === c &&
((h.nodeLabel.x = g.length * h.branchOffset),
(h.nodeLabel.width = '100%'),
(h.nodeLabel.y = -2 * h.nodeRadius));
var f = Object(r.select)('[id="'.concat(t, '"]'));
for (var p in ((function (e) {
e
.append('defs')
.append('g')
.attr('id', 'def-commit')
.append('circle')
.attr('r', h.nodeRadius)
.attr('cx', 0)
.attr('cy', 0),
e
.select('#def-commit')
.append('foreignObject')
.attr('width', h.nodeLabel.width)
.attr('height', h.nodeLabel.height)
.attr('x', h.nodeLabel.x)
.attr('y', h.nodeLabel.y)
.attr('class', 'node-label')
.attr(
'requiredFeatures',
'http://www.w3.org/TR/SVG11/feature#Extensibility'
)
.append('p')
.html('');
})(f),
(n = 1),
g)) {
var m = g[p];
b(f, m.commit.id, g, c), v(f, m.commit, c), n++;
}
f.attr('height', function () {
return 'BT' === c
? Object.keys(d).length * h.nodeSpacing
: (g.length + 1) * h.branchOffset;
});
} catch (e) {
l.log.error('Error while rendering gitgraph'),
l.log.error(e.message);
}
};
t.default = { setConf: g, draw: y };
},
'./src/diagrams/git/parser/gitGraph.jison': function (e, t, i) {
(function (e, n) {
var r = (function () {
var e = function (e, t, i, n) {
for (i = i || {}, n = e.length; n--; i[e[n]] = t);
return i;
},
t = [2, 3],
i = [1, 7],
n = [7, 12, 15, 17, 19, 20, 21],
r = [7, 11, 12, 15, 17, 19, 20, 21],
s = [2, 20],
o = [1, 32],
a = {
trace: function () {},
yy: {},
symbols_: {
error: 2,
start: 3,
GG: 4,
':': 5,
document: 6,
EOF: 7,
DIR: 8,
options: 9,
body: 10,
OPT: 11,
NL: 12,
line: 13,
statement: 14,
COMMIT: 15,
commit_arg: 16,
BRANCH: 17,
ID: 18,
CHECKOUT: 19,
MERGE: 20,
RESET: 21,
reset_arg: 22,
STR: 23,
HEAD: 24,
reset_parents: 25,
CARET: 26,
$accept: 0,
$end: 1,
},
terminals_: {
2: 'error',
4: 'GG',
5: ':',
7: 'EOF',
8: 'DIR',
11: 'OPT',
12: 'NL',
15: 'COMMIT',
17: 'BRANCH',
18: 'ID',
19: 'CHECKOUT',
20: 'MERGE',
21: 'RESET',
23: 'STR',
24: 'HEAD',
26: 'CARET',
},
productions_: [
0,
[3, 4],
[3, 5],
[6, 0],
[6, 2],
[9, 2],
[9, 1],
[10, 0],
[10, 2],
[13, 2],
[13, 1],
[14, 2],
[14, 2],
[14, 2],
[14, 2],
[14, 2],
[16, 0],
[16, 1],
[22, 2],
[22, 2],
[25, 0],
[25, 2],
],
performAction: function (e, t, i, n, r, s, o) {
var a = s.length - 1;
switch (r) {
case 1:
return s[a - 1];
case 2:
return n.setDirection(s[a - 3]), s[a - 1];
case 4:
n.setOptions(s[a - 1]), (this.$ = s[a]);
break;
case 5:
(s[a - 1] += s[a]), (this.$ = s[a - 1]);
break;
case 7:
this.$ = [];
break;
case 8:
s[a - 1].push(s[a]), (this.$ = s[a - 1]);
break;
case 9:
this.$ = s[a - 1];
break;
case 11:
n.commit(s[a]);
break;
case 12:
n.branch(s[a]);
break;
case 13:
n.checkout(s[a]);
break;
case 14:
n.merge(s[a]);
break;
case 15:
n.reset(s[a]);
break;
case 16:
this.$ = '';
break;
case 17:
this.$ = s[a];
break;
case 18:
this.$ = s[a - 1] + ':' + s[a];
break;
case 19:
(this.$ = s[a - 1] + ':' + n.count),
(n.count = 0);
break;
case 20:
n.count = 0;
break;
case 21:
n.count += 1;
}
},
table: [
{ 3: 1, 4: [1, 2] },
{ 1: [3] },
{ 5: [1, 3], 8: [1, 4] },
{ 6: 5, 7: t, 9: 6, 12: i },
{ 5: [1, 8] },
{ 7: [1, 9] },
e(n, [2, 7], { 10: 10, 11: [1, 11] }),
e(r, [2, 6]),
{ 6: 12, 7: t, 9: 6, 12: i },
{ 1: [2, 1] },
{
7: [2, 4],
12: [1, 15],
13: 13,
14: 14,
15: [1, 16],
17: [1, 17],
19: [1, 18],
20: [1, 19],
21: [1, 20],
},
e(r, [2, 5]),
{ 7: [1, 21] },
e(n, [2, 8]),
{ 12: [1, 22] },
e(n, [2, 10]),
{ 12: [2, 16], 16: 23, 23: [1, 24] },
{ 18: [1, 25] },
{ 18: [1, 26] },
{ 18: [1, 27] },
{ 18: [1, 30], 22: 28, 24: [1, 29] },
{ 1: [2, 2] },
e(n, [2, 9]),
{ 12: [2, 11] },
{ 12: [2, 17] },
{ 12: [2, 12] },
{ 12: [2, 13] },
{ 12: [2, 14] },
{ 12: [2, 15] },
{ 12: s, 25: 31, 26: o },
{ 12: s, 25: 33, 26: o },
{ 12: [2, 18] },
{ 12: s, 25: 34, 26: o },
{ 12: [2, 19] },
{ 12: [2, 21] },
],
defaultActions: {
9: [2, 1],
21: [2, 2],
23: [2, 11],
24: [2, 17],
25: [2, 12],
26: [2, 13],
27: [2, 14],
28: [2, 15],
31: [2, 18],
33: [2, 19],
34: [2, 21],
},
parseError: function (e, t) {
if (!t.recoverable) {
var i = new Error(e);
throw ((i.hash = t), i);
}
this.trace(e);
},
parse: function (e) {
var t = this,
i = [0],
n = [],
r = [null],
s = [],
o = this.table,
a = '',
l = 0,
c = 0,
d = 0,
h = 2,
u = 1,
g = s.slice.call(arguments, 1),
f = Object.create(this.lexer),
p = { yy: {} };
for (var m in this.yy)
Object.prototype.hasOwnProperty.call(this.yy, m) &&
(p.yy[m] = this.yy[m]);
f.setInput(e, p.yy),
(p.yy.lexer = f),
(p.yy.parser = this),
void 0 === f.yylloc && (f.yylloc = {});
var _ = f.yylloc;
s.push(_);
var b = f.options && f.options.ranges;
function v() {
var e;
return (
'number' !=
typeof (e = n.pop() || f.lex() || u) &&
(e instanceof Array && (e = (n = e).pop()),
(e = t.symbols_[e] || e)),
e
);
}
'function' == typeof p.yy.parseError
? (this.parseError = p.yy.parseError)
: (this.parseError = Object.getPrototypeOf(
this
).parseError);
for (var y, w, C, S, k, x, L, M, D, N = {}; ; ) {
if (
((C = i[i.length - 1]),
this.defaultActions[C]
? (S = this.defaultActions[C])
: (null == y && (y = v()),
(S = o[C] && o[C][y])),
void 0 === S || !S.length || !S[0])
) {
var E = '';
for (x in ((D = []), o[C]))
this.terminals_[x] &&
x > h &&
D.push("'" + this.terminals_[x] + "'");
(E = f.showPosition
? 'Parse error on line ' +
(l + 1) +
':\n' +
f.showPosition() +
'\nExpecting ' +
D.join(', ') +
", got '" +
(this.terminals_[y] || y) +
"'"
: 'Parse error on line ' +
(l + 1) +
': Unexpected ' +
(y == u
? 'end of input'
: "'" + (this.terminals_[y] || y) + "'")),
this.parseError(E, {
text: f.match,
token: this.terminals_[y] || y,
line: f.yylineno,
loc: _,
expected: D,
});
}
if (S[0] instanceof Array && S.length > 1)
throw new Error(
'Parse Error: multiple actions possible at state: ' +
C +
', token: ' +
y
);
switch (S[0]) {
case 1:
i.push(y),
r.push(f.yytext),
s.push(f.yylloc),
i.push(S[1]),
(y = null),
w
? ((y = w), (w = null))
: ((c = f.yyleng),
(a = f.yytext),
(l = f.yylineno),
(_ = f.yylloc),
d > 0 && d--);
break;
case 2:
if (
((L = this.productions_[S[1]][1]),
(N.$ = r[r.length - L]),
(N._$ = {
first_line:
s[s.length - (L || 1)].first_line,
last_line: s[s.length - 1].last_line,
first_column:
s[s.length - (L || 1)].first_column,
last_column: s[s.length - 1].last_column,
}),
b &&
(N._$.range = [
s[s.length - (L || 1)].range[0],
s[s.length - 1].range[1],
]),
void 0 !==
(k = this.performAction.apply(
N,
[a, c, l, p.yy, S[1], r, s].concat(g)
)))
)
return k;
L &&
((i = i.slice(0, -1 * L * 2)),
(r = r.slice(0, -1 * L)),
(s = s.slice(0, -1 * L))),
i.push(this.productions_[S[1]][0]),
r.push(N.$),
s.push(N._$),
(M = o[i[i.length - 2]][i[i.length - 1]]),
i.push(M);
break;
case 3:
return !0;
}
}
return !0;
},
},
l = {
EOF: 1,
parseError: function (e, t) {
if (!this.yy.parser) throw new Error(e);
this.yy.parser.parseError(e, t);
},
setInput: function (e, t) {
return (
(this.yy = t || this.yy || {}),
(this._input = e),
(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 e = this._input[0];
return (
(this.yytext += e),
this.yyleng++,
this.offset++,
(this.match += e),
(this.matched += e),
e.match(/(?:\r\n?|\n).*/g)
? (this.yylineno++, this.yylloc.last_line++)
: this.yylloc.last_column++,
this.options.ranges && this.yylloc.range[1]++,
(this._input = this._input.slice(1)),
e
);
},
unput: function (e) {
var t = e.length,
i = e.split(/(?:\r\n?|\n)/g);
(this._input = e + this._input),
(this.yytext = this.yytext.substr(
0,
this.yytext.length - t
)),
(this.offset -= t);
var n = 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
)),
i.length - 1 && (this.yylineno -= i.length - 1);
var r = 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: i
? (i.length === n.length
? this.yylloc.first_column
: 0) +
n[n.length - i.length].length -
i[0].length
: this.yylloc.first_column - t,
}),
this.options.ranges &&
(this.yylloc.range = [
r[0],
r[0] + this.yyleng - t,
]),
(this.yyleng = this.yytext.length),
this
);
},
more: function () {
return (this._more = !0), this;
},
reject: function () {
return this.options.backtrack_lexer
? ((this._backtrack = !0), this)
: 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).\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
less: function (e) {
this.unput(this.match.slice(e));
},
pastInput: function () {
var e = this.matched.substr(
0,
this.matched.length - this.match.length
);
return (
(e.length > 20 ? '...' : '') +
e.substr(-20).replace(/\n/g, '')
);
},
upcomingInput: function () {
var e = this.match;
return (
e.length < 20 &&
(e += this._input.substr(0, 20 - e.length)),
(
e.substr(0, 20) + (e.length > 20 ? '...' : '')
).replace(/\n/g, '')
);
},
showPosition: function () {
var e = this.pastInput(),
t = new Array(e.length + 1).join('-');
return e + this.upcomingInput() + '\n' + t + '^';
},
test_match: function (e, t) {
var i, n, r;
if (
(this.options.backtrack_lexer &&
((r = {
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 &&
(r.yylloc.range = this.yylloc.range.slice(0))),
(n = e[0].match(/(?:\r\n?|\n).*/g)) &&
(this.yylineno += n.length),
(this.yylloc = {
first_line: this.yylloc.last_line,
last_line: this.yylineno + 1,
first_column: this.yylloc.last_column,
last_column: n
? n[n.length - 1].length -
n[n.length - 1].match(/\r?\n?/)[0].length
: this.yylloc.last_column + e[0].length,
}),
(this.yytext += e[0]),
(this.match += e[0]),
(this.matches = e),
(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(e[0].length)),
(this.matched += e[0]),
(i = this.performAction.call(
this,
this.yy,
this,
t,
this.conditionStack[
this.conditionStack.length - 1
]
)),
this.done && this._input && (this.done = !1),
i)
)
return i;
if (this._backtrack) {
for (var s in r) this[s] = r[s];
return !1;
}
return !1;
},
next: function () {
if (this.done) return this.EOF;
var e, t, i, n;
this._input || (this.done = !0),
this._more ||
((this.yytext = ''), (this.match = ''));
for (
var r = this._currentRules(), s = 0;
s < r.length;
s++
)
if (
(i = this._input.match(this.rules[r[s]])) &&
(!t || i[0].length > t[0].length)
) {
if (
((t = i), (n = s), this.options.backtrack_lexer)
) {
if (!1 !== (e = this.test_match(i, r[s])))
return e;
if (this._backtrack) {
t = !1;
continue;
}
return !1;
}
if (!this.options.flex) break;
}
return t
? !1 !== (e = this.test_match(t, r[n])) && e
: '' === this._input
? this.EOF
: this.parseError(
'Lexical error on line ' +
(this.yylineno + 1) +
'. Unrecognized text.\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
lex: function () {
return this.next() || this.lex();
},
begin: function (e) {
this.conditionStack.push(e);
},
popState: function () {
return this.conditionStack.length - 1 > 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 (e) {
return (e =
this.conditionStack.length -
1 -
Math.abs(e || 0)) >= 0
? this.conditionStack[e]
: 'INITIAL';
},
pushState: function (e) {
this.begin(e);
},
stateStackSize: function () {
return this.conditionStack.length;
},
options: { 'case-insensitive': !0 },
performAction: function (e, t, i, n) {
switch (i) {
case 0:
return 12;
case 1:
case 2:
case 3:
break;
case 4:
return 4;
case 5:
return 15;
case 6:
return 17;
case 7:
return 20;
case 8:
return 21;
case 9:
return 19;
case 10:
case 11:
return 8;
case 12:
return 5;
case 13:
return 26;
case 14:
this.begin('options');
break;
case 15:
this.popState();
break;
case 16:
return 11;
case 17:
this.begin('string');
break;
case 18:
this.popState();
break;
case 19:
return 23;
case 20:
return 18;
case 21:
return 7;
}
},
rules: [
/^(?:(\r?\n)+)/i,
/^(?:\s+)/i,
/^(?:#[^\n]*)/i,
/^(?:%[^\n]*)/i,
/^(?:gitGraph\b)/i,
/^(?:commit\b)/i,
/^(?:branch\b)/i,
/^(?:merge\b)/i,
/^(?:reset\b)/i,
/^(?:checkout\b)/i,
/^(?:LR\b)/i,
/^(?:BT\b)/i,
/^(?::)/i,
/^(?:\^)/i,
/^(?:options\r?\n)/i,
/^(?:end\r?\n)/i,
/^(?:[^\n]+\r?\n)/i,
/^(?:["])/i,
/^(?:["])/i,
/^(?:[^"]*)/i,
/^(?:[a-zA-Z][-_\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,
/^(?:$)/i,
],
conditions: {
options: { rules: [15, 16], inclusive: !1 },
string: { rules: [18, 19], inclusive: !1 },
INITIAL: {
rules: [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
17,
20,
21,
],
inclusive: !0,
},
},
};
function c() {
this.yy = {};
}
return (
(a.lexer = l), (c.prototype = a), (a.Parser = c), new c()
);
})();
(t.parser = r),
(t.Parser = r.Parser),
(t.parse = function () {
return r.parse.apply(r, arguments);
}),
(t.main = function (n) {
n[1] ||
(console.log('Usage: ' + n[0] + ' FILE'), e.exit(1));
var r = i(
'./node_modules/node-libs-browser/mock/empty.js'
).readFileSync(
i('./node_modules/path-browserify/index.js').normalize(
n[1]
),
'utf8'
);
return t.parser.parse(r);
}),
i.c[i.s] === n && t.main(e.argv.slice(1));
}.call(
this,
i('./node_modules/process/browser.js'),
i('./node_modules/webpack/buildin/module.js')(e)
));
},
'./src/diagrams/git/styles.js': function (e, t, i) {
'use strict';
i.r(t),
(t.default = function () {
return "\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n";
});
},
'./src/diagrams/info/infoDb.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'setMessage', function () {
return o;
}),
i.d(t, 'getMessage', function () {
return a;
}),
i.d(t, 'setInfo', function () {
return l;
}),
i.d(t, 'getInfo', function () {
return c;
});
var n = i('./src/logger.js'),
r = '',
s = !1,
o = function (e) {
n.log.debug('Setting message to: ' + e), (r = e);
},
a = function () {
return r;
},
l = function (e) {
s = e;
},
c = function () {
return s;
};
t.default = {
setMessage: o,
getMessage: a,
setInfo: l,
getInfo: c,
};
},
'./src/diagrams/info/infoRenderer.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'setConf', function () {
return c;
}),
i.d(t, 'draw', function () {
return d;
});
var n = i('d3'),
r = i('./src/diagrams/info/infoDb.js'),
s = i('./src/diagrams/info/parser/info.jison'),
o = i.n(s),
a = i('./src/logger.js'),
l = {},
c = function (e) {
Object.keys(e).forEach(function (t) {
l[t] = e[t];
});
},
d = function (e, t, i) {
try {
var s = o.a.parser;
(s.yy = r.default),
a.log.debug('Renering info diagram\n' + e),
s.parse(e),
a.log.debug('Parsed info diagram');
var l = Object(n.select)('#' + t);
l
.append('g')
.append('text')
.attr('x', 100)
.attr('y', 40)
.attr('class', 'version')
.attr('font-size', '32px')
.style('text-anchor', 'middle')
.text('v ' + i),
l.attr('height', 100),
l.attr('width', 400);
} catch (e) {
a.log.error('Error while rendering info diagram'),
a.log.error(e.message);
}
};
t.default = { setConf: c, draw: d };
},
'./src/diagrams/info/parser/info.jison': function (e, t, i) {
(function (e, n) {
var r = (function () {
var e = function (e, t, i, n) {
for (i = i || {}, n = e.length; n--; i[e[n]] = t);
return i;
},
t = [6, 9, 10],
i = {
trace: function () {},
yy: {},
symbols_: {
error: 2,
start: 3,
info: 4,
document: 5,
EOF: 6,
line: 7,
statement: 8,
NL: 9,
showInfo: 10,
$accept: 0,
$end: 1,
},
terminals_: {
2: 'error',
4: 'info',
6: 'EOF',
9: 'NL',
10: 'showInfo',
},
productions_: [
0,
[3, 3],
[5, 0],
[5, 2],
[7, 1],
[7, 1],
[8, 1],
],
performAction: function (e, t, i, n, r, s, o) {
switch ((s.length, r)) {
case 1:
return n;
case 4:
break;
case 6:
n.setInfo(!0);
}
},
table: [
{ 3: 1, 4: [1, 2] },
{ 1: [3] },
e(t, [2, 2], { 5: 3 }),
{ 6: [1, 4], 7: 5, 8: 6, 9: [1, 7], 10: [1, 8] },
{ 1: [2, 1] },
e(t, [2, 3]),
e(t, [2, 4]),
e(t, [2, 5]),
e(t, [2, 6]),
],
defaultActions: { 4: [2, 1] },
parseError: function (e, t) {
if (!t.recoverable) {
var i = new Error(e);
throw ((i.hash = t), i);
}
this.trace(e);
},
parse: function (e) {
var t = this,
i = [0],
n = [],
r = [null],
s = [],
o = this.table,
a = '',
l = 0,
c = 0,
d = 0,
h = 2,
u = 1,
g = s.slice.call(arguments, 1),
f = Object.create(this.lexer),
p = { yy: {} };
for (var m in this.yy)
Object.prototype.hasOwnProperty.call(this.yy, m) &&
(p.yy[m] = this.yy[m]);
f.setInput(e, p.yy),
(p.yy.lexer = f),
(p.yy.parser = this),
void 0 === f.yylloc && (f.yylloc = {});
var _ = f.yylloc;
s.push(_);
var b = f.options && f.options.ranges;
function v() {
var e;
return (
'number' !=
typeof (e = n.pop() || f.lex() || u) &&
(e instanceof Array && (e = (n = e).pop()),
(e = t.symbols_[e] || e)),
e
);
}
'function' == typeof p.yy.parseError
? (this.parseError = p.yy.parseError)
: (this.parseError = Object.getPrototypeOf(
this
).parseError);
for (var y, w, C, S, k, x, L, M, D, N = {}; ; ) {
if (
((C = i[i.length - 1]),
this.defaultActions[C]
? (S = this.defaultActions[C])
: (null == y && (y = v()),
(S = o[C] && o[C][y])),
void 0 === S || !S.length || !S[0])
) {
var E = '';
for (x in ((D = []), o[C]))
this.terminals_[x] &&
x > h &&
D.push("'" + this.terminals_[x] + "'");
(E = f.showPosition
? 'Parse error on line ' +
(l + 1) +
':\n' +
f.showPosition() +
'\nExpecting ' +
D.join(', ') +
", got '" +
(this.terminals_[y] || y) +
"'"
: 'Parse error on line ' +
(l + 1) +
': Unexpected ' +
(y == u
? 'end of input'
: "'" + (this.terminals_[y] || y) + "'")),
this.parseError(E, {
text: f.match,
token: this.terminals_[y] || y,
line: f.yylineno,
loc: _,
expected: D,
});
}
if (S[0] instanceof Array && S.length > 1)
throw new Error(
'Parse Error: multiple actions possible at state: ' +
C +
', token: ' +
y
);
switch (S[0]) {
case 1:
i.push(y),
r.push(f.yytext),
s.push(f.yylloc),
i.push(S[1]),
(y = null),
w
? ((y = w), (w = null))
: ((c = f.yyleng),
(a = f.yytext),
(l = f.yylineno),
(_ = f.yylloc),
d > 0 && d--);
break;
case 2:
if (
((L = this.productions_[S[1]][1]),
(N.$ = r[r.length - L]),
(N._$ = {
first_line:
s[s.length - (L || 1)].first_line,
last_line: s[s.length - 1].last_line,
first_column:
s[s.length - (L || 1)].first_column,
last_column: s[s.length - 1].last_column,
}),
b &&
(N._$.range = [
s[s.length - (L || 1)].range[0],
s[s.length - 1].range[1],
]),
void 0 !==
(k = this.performAction.apply(
N,
[a, c, l, p.yy, S[1], r, s].concat(g)
)))
)
return k;
L &&
((i = i.slice(0, -1 * L * 2)),
(r = r.slice(0, -1 * L)),
(s = s.slice(0, -1 * L))),
i.push(this.productions_[S[1]][0]),
r.push(N.$),
s.push(N._$),
(M = o[i[i.length - 2]][i[i.length - 1]]),
i.push(M);
break;
case 3:
return !0;
}
}
return !0;
},
},
n = {
EOF: 1,
parseError: function (e, t) {
if (!this.yy.parser) throw new Error(e);
this.yy.parser.parseError(e, t);
},
setInput: function (e, t) {
return (
(this.yy = t || this.yy || {}),
(this._input = e),
(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 e = this._input[0];
return (
(this.yytext += e),
this.yyleng++,
this.offset++,
(this.match += e),
(this.matched += e),
e.match(/(?:\r\n?|\n).*/g)
? (this.yylineno++, this.yylloc.last_line++)
: this.yylloc.last_column++,
this.options.ranges && this.yylloc.range[1]++,
(this._input = this._input.slice(1)),
e
);
},
unput: function (e) {
var t = e.length,
i = e.split(/(?:\r\n?|\n)/g);
(this._input = e + this._input),
(this.yytext = this.yytext.substr(
0,
this.yytext.length - t
)),
(this.offset -= t);
var n = 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
)),
i.length - 1 && (this.yylineno -= i.length - 1);
var r = 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: i
? (i.length === n.length
? this.yylloc.first_column
: 0) +
n[n.length - i.length].length -
i[0].length
: this.yylloc.first_column - t,
}),
this.options.ranges &&
(this.yylloc.range = [
r[0],
r[0] + this.yyleng - t,
]),
(this.yyleng = this.yytext.length),
this
);
},
more: function () {
return (this._more = !0), this;
},
reject: function () {
return this.options.backtrack_lexer
? ((this._backtrack = !0), this)
: 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).\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
less: function (e) {
this.unput(this.match.slice(e));
},
pastInput: function () {
var e = this.matched.substr(
0,
this.matched.length - this.match.length
);
return (
(e.length > 20 ? '...' : '') +
e.substr(-20).replace(/\n/g, '')
);
},
upcomingInput: function () {
var e = this.match;
return (
e.length < 20 &&
(e += this._input.substr(0, 20 - e.length)),
(
e.substr(0, 20) + (e.length > 20 ? '...' : '')
).replace(/\n/g, '')
);
},
showPosition: function () {
var e = this.pastInput(),
t = new Array(e.length + 1).join('-');
return e + this.upcomingInput() + '\n' + t + '^';
},
test_match: function (e, t) {
var i, n, r;
if (
(this.options.backtrack_lexer &&
((r = {
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 &&
(r.yylloc.range = this.yylloc.range.slice(0))),
(n = e[0].match(/(?:\r\n?|\n).*/g)) &&
(this.yylineno += n.length),
(this.yylloc = {
first_line: this.yylloc.last_line,
last_line: this.yylineno + 1,
first_column: this.yylloc.last_column,
last_column: n
? n[n.length - 1].length -
n[n.length - 1].match(/\r?\n?/)[0].length
: this.yylloc.last_column + e[0].length,
}),
(this.yytext += e[0]),
(this.match += e[0]),
(this.matches = e),
(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(e[0].length)),
(this.matched += e[0]),
(i = this.performAction.call(
this,
this.yy,
this,
t,
this.conditionStack[
this.conditionStack.length - 1
]
)),
this.done && this._input && (this.done = !1),
i)
)
return i;
if (this._backtrack) {
for (var s in r) this[s] = r[s];
return !1;
}
return !1;
},
next: function () {
if (this.done) return this.EOF;
var e, t, i, n;
this._input || (this.done = !0),
this._more ||
((this.yytext = ''), (this.match = ''));
for (
var r = this._currentRules(), s = 0;
s < r.length;
s++
)
if (
(i = this._input.match(this.rules[r[s]])) &&
(!t || i[0].length > t[0].length)
) {
if (
((t = i), (n = s), this.options.backtrack_lexer)
) {
if (!1 !== (e = this.test_match(i, r[s])))
return e;
if (this._backtrack) {
t = !1;
continue;
}
return !1;
}
if (!this.options.flex) break;
}
return t
? !1 !== (e = this.test_match(t, r[n])) && e
: '' === this._input
? this.EOF
: this.parseError(
'Lexical error on line ' +
(this.yylineno + 1) +
'. Unrecognized text.\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
lex: function () {
return this.next() || this.lex();
},
begin: function (e) {
this.conditionStack.push(e);
},
popState: function () {
return this.conditionStack.length - 1 > 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 (e) {
return (e =
this.conditionStack.length -
1 -
Math.abs(e || 0)) >= 0
? this.conditionStack[e]
: 'INITIAL';
},
pushState: function (e) {
this.begin(e);
},
stateStackSize: function () {
return this.conditionStack.length;
},
options: { 'case-insensitive': !0 },
performAction: function (e, t, i, n) {
switch (i) {
case 0:
return 4;
case 1:
return 9;
case 2:
return 'space';
case 3:
return 10;
case 4:
return 6;
case 5:
return 'TXT';
}
},
rules: [
/^(?:info\b)/i,
/^(?:[\s\n\r]+)/i,
/^(?:[\s]+)/i,
/^(?:showInfo\b)/i,
/^(?:$)/i,
/^(?:.)/i,
],
conditions: {
INITIAL: { rules: [0, 1, 2, 3, 4, 5], inclusive: !0 },
},
};
function r() {
this.yy = {};
}
return (
(i.lexer = n), (r.prototype = i), (i.Parser = r), new r()
);
})();
(t.parser = r),
(t.Parser = r.Parser),
(t.parse = function () {
return r.parse.apply(r, arguments);
}),
(t.main = function (n) {
n[1] ||
(console.log('Usage: ' + n[0] + ' FILE'), e.exit(1));
var r = i(
'./node_modules/node-libs-browser/mock/empty.js'
).readFileSync(
i('./node_modules/path-browserify/index.js').normalize(
n[1]
),
'utf8'
);
return t.parser.parse(r);
}),
i.c[i.s] === n && t.main(e.argv.slice(1));
}.call(
this,
i('./node_modules/process/browser.js'),
i('./node_modules/webpack/buildin/module.js')(e)
));
},
'./src/diagrams/info/styles.js': function (e, t, i) {
'use strict';
i.r(t),
(t.default = function () {
return '';
});
},
'./src/diagrams/pie/parser/pie.jison': function (e, t, i) {
(function (e, n) {
var r = (function () {
var e = function (e, t, i, n) {
for (i = i || {}, n = e.length; n--; i[e[n]] = t);
return i;
},
t = [1, 4],
i = [1, 5],
n = [1, 6],
r = [1, 7],
s = [1, 9],
o = [1, 10, 12, 19, 20, 21, 22],
a = [1, 6, 10, 12, 19, 20, 21, 22],
l = [19, 20, 21],
c = [1, 22],
d = [6, 19, 20, 21, 22],
h = {
trace: function () {},
yy: {},
symbols_: {
error: 2,
start: 3,
eol: 4,
directive: 5,
PIE: 6,
document: 7,
line: 8,
statement: 9,
txt: 10,
value: 11,
title: 12,
title_value: 13,
openDirective: 14,
typeDirective: 15,
closeDirective: 16,
':': 17,
argDirective: 18,
NEWLINE: 19,
';': 20,
EOF: 21,
open_directive: 22,
type_directive: 23,
arg_directive: 24,
close_directive: 25,
$accept: 0,
$end: 1,
},
terminals_: {
2: 'error',
6: 'PIE',
10: 'txt',
11: 'value',
12: 'title',
13: 'title_value',
17: ':',
19: 'NEWLINE',
20: ';',
21: 'EOF',
22: 'open_directive',
23: 'type_directive',
24: 'arg_directive',
25: 'close_directive',
},
productions_: [
0,
[3, 2],
[3, 2],
[3, 2],
[7, 0],
[7, 2],
[8, 2],
[9, 0],
[9, 2],
[9, 2],
[9, 1],
[5, 3],
[5, 5],
[4, 1],
[4, 1],
[4, 1],
[14, 1],
[15, 1],
[18, 1],
[16, 1],
],
performAction: function (e, t, i, n, r, s, o) {
var a = s.length - 1;
switch (r) {
case 6:
this.$ = s[a - 1];
break;
case 8:
n.addSection(s[a - 1], n.cleanupValue(s[a]));
break;
case 9:
(this.$ = s[a].trim()), n.setTitle(this.$);
break;
case 16:
n.parseDirective('%%{', 'open_directive');
break;
case 17:
n.parseDirective(s[a], 'type_directive');
break;
case 18:
(s[a] = s[a].trim().replace(/'/g, '"')),
n.parseDirective(s[a], 'arg_directive');
break;
case 19:
n.parseDirective('}%%', 'close_directive', 'pie');
}
},
table: [
{
3: 1,
4: 2,
5: 3,
6: t,
14: 8,
19: i,
20: n,
21: r,
22: s,
},
{ 1: [3] },
{
3: 10,
4: 2,
5: 3,
6: t,
14: 8,
19: i,
20: n,
21: r,
22: s,
},
{
3: 11,
4: 2,
5: 3,
6: t,
14: 8,
19: i,
20: n,
21: r,
22: s,
},
e(o, [2, 4], { 7: 12 }),
e(a, [2, 13]),
e(a, [2, 14]),
e(a, [2, 15]),
{ 15: 13, 23: [1, 14] },
{ 23: [2, 16] },
{ 1: [2, 1] },
{ 1: [2, 2] },
e(l, [2, 7], {
14: 8,
8: 15,
9: 16,
5: 19,
1: [2, 3],
10: [1, 17],
12: [1, 18],
22: s,
}),
{ 16: 20, 17: [1, 21], 25: c },
e([17, 25], [2, 17]),
e(o, [2, 5]),
{ 4: 23, 19: i, 20: n, 21: r },
{ 11: [1, 24] },
{ 13: [1, 25] },
e(l, [2, 10]),
e(d, [2, 11]),
{ 18: 26, 24: [1, 27] },
e(d, [2, 19]),
e(o, [2, 6]),
e(l, [2, 8]),
e(l, [2, 9]),
{ 16: 28, 25: c },
{ 25: [2, 18] },
e(d, [2, 12]),
],
defaultActions: {
9: [2, 16],
10: [2, 1],
11: [2, 2],
27: [2, 18],
},
parseError: function (e, t) {
if (!t.recoverable) {
var i = new Error(e);
throw ((i.hash = t), i);
}
this.trace(e);
},
parse: function (e) {
var t = this,
i = [0],
n = [],
r = [null],
s = [],
o = this.table,
a = '',
l = 0,
c = 0,
d = 0,
h = 2,
u = 1,
g = s.slice.call(arguments, 1),
f = Object.create(this.lexer),
p = { yy: {} };
for (var m in this.yy)
Object.prototype.hasOwnProperty.call(this.yy, m) &&
(p.yy[m] = this.yy[m]);
f.setInput(e, p.yy),
(p.yy.lexer = f),
(p.yy.parser = this),
void 0 === f.yylloc && (f.yylloc = {});
var _ = f.yylloc;
s.push(_);
var b = f.options && f.options.ranges;
function v() {
var e;
return (
'number' !=
typeof (e = n.pop() || f.lex() || u) &&
(e instanceof Array && (e = (n = e).pop()),
(e = t.symbols_[e] || e)),
e
);
}
'function' == typeof p.yy.parseError
? (this.parseError = p.yy.parseError)
: (this.parseError = Object.getPrototypeOf(
this
).parseError);
for (var y, w, C, S, k, x, L, M, D, N = {}; ; ) {
if (
((C = i[i.length - 1]),
this.defaultActions[C]
? (S = this.defaultActions[C])
: (null == y && (y = v()),
(S = o[C] && o[C][y])),
void 0 === S || !S.length || !S[0])
) {
var E = '';
for (x in ((D = []), o[C]))
this.terminals_[x] &&
x > h &&
D.push("'" + this.terminals_[x] + "'");
(E = f.showPosition
? 'Parse error on line ' +
(l + 1) +
':\n' +
f.showPosition() +
'\nExpecting ' +
D.join(', ') +
", got '" +
(this.terminals_[y] || y) +
"'"
: 'Parse error on line ' +
(l + 1) +
': Unexpected ' +
(y == u
? 'end of input'
: "'" + (this.terminals_[y] || y) + "'")),
this.parseError(E, {
text: f.match,
token: this.terminals_[y] || y,
line: f.yylineno,
loc: _,
expected: D,
});
}
if (S[0] instanceof Array && S.length > 1)
throw new Error(
'Parse Error: multiple actions possible at state: ' +
C +
', token: ' +
y
);
switch (S[0]) {
case 1:
i.push(y),
r.push(f.yytext),
s.push(f.yylloc),
i.push(S[1]),
(y = null),
w
? ((y = w), (w = null))
: ((c = f.yyleng),
(a = f.yytext),
(l = f.yylineno),
(_ = f.yylloc),
d > 0 && d--);
break;
case 2:
if (
((L = this.productions_[S[1]][1]),
(N.$ = r[r.length - L]),
(N._$ = {
first_line:
s[s.length - (L || 1)].first_line,
last_line: s[s.length - 1].last_line,
first_column:
s[s.length - (L || 1)].first_column,
last_column: s[s.length - 1].last_column,
}),
b &&
(N._$.range = [
s[s.length - (L || 1)].range[0],
s[s.length - 1].range[1],
]),
void 0 !==
(k = this.performAction.apply(
N,
[a, c, l, p.yy, S[1], r, s].concat(g)
)))
)
return k;
L &&
((i = i.slice(0, -1 * L * 2)),
(r = r.slice(0, -1 * L)),
(s = s.slice(0, -1 * L))),
i.push(this.productions_[S[1]][0]),
r.push(N.$),
s.push(N._$),
(M = o[i[i.length - 2]][i[i.length - 1]]),
i.push(M);
break;
case 3:
return !0;
}
}
return !0;
},
},
u = {
EOF: 1,
parseError: function (e, t) {
if (!this.yy.parser) throw new Error(e);
this.yy.parser.parseError(e, t);
},
setInput: function (e, t) {
return (
(this.yy = t || this.yy || {}),
(this._input = e),
(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 e = this._input[0];
return (
(this.yytext += e),
this.yyleng++,
this.offset++,
(this.match += e),
(this.matched += e),
e.match(/(?:\r\n?|\n).*/g)
? (this.yylineno++, this.yylloc.last_line++)
: this.yylloc.last_column++,
this.options.ranges && this.yylloc.range[1]++,
(this._input = this._input.slice(1)),
e
);
},
unput: function (e) {
var t = e.length,
i = e.split(/(?:\r\n?|\n)/g);
(this._input = e + this._input),
(this.yytext = this.yytext.substr(
0,
this.yytext.length - t
)),
(this.offset -= t);
var n = 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
)),
i.length - 1 && (this.yylineno -= i.length - 1);
var r = 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: i
? (i.length === n.length
? this.yylloc.first_column
: 0) +
n[n.length - i.length].length -
i[0].length
: this.yylloc.first_column - t,
}),
this.options.ranges &&
(this.yylloc.range = [
r[0],
r[0] + this.yyleng - t,
]),
(this.yyleng = this.yytext.length),
this
);
},
more: function () {
return (this._more = !0), this;
},
reject: function () {
return this.options.backtrack_lexer
? ((this._backtrack = !0), this)
: 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).\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
less: function (e) {
this.unput(this.match.slice(e));
},
pastInput: function () {
var e = this.matched.substr(
0,
this.matched.length - this.match.length
);
return (
(e.length > 20 ? '...' : '') +
e.substr(-20).replace(/\n/g, '')
);
},
upcomingInput: function () {
var e = this.match;
return (
e.length < 20 &&
(e += this._input.substr(0, 20 - e.length)),
(
e.substr(0, 20) + (e.length > 20 ? '...' : '')
).replace(/\n/g, '')
);
},
showPosition: function () {
var e = this.pastInput(),
t = new Array(e.length + 1).join('-');
return e + this.upcomingInput() + '\n' + t + '^';
},
test_match: function (e, t) {
var i, n, r;
if (
(this.options.backtrack_lexer &&
((r = {
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 &&
(r.yylloc.range = this.yylloc.range.slice(0))),
(n = e[0].match(/(?:\r\n?|\n).*/g)) &&
(this.yylineno += n.length),
(this.yylloc = {
first_line: this.yylloc.last_line,
last_line: this.yylineno + 1,
first_column: this.yylloc.last_column,
last_column: n
? n[n.length - 1].length -
n[n.length - 1].match(/\r?\n?/)[0].length
: this.yylloc.last_column + e[0].length,
}),
(this.yytext += e[0]),
(this.match += e[0]),
(this.matches = e),
(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(e[0].length)),
(this.matched += e[0]),
(i = this.performAction.call(
this,
this.yy,
this,
t,
this.conditionStack[
this.conditionStack.length - 1
]
)),
this.done && this._input && (this.done = !1),
i)
)
return i;
if (this._backtrack) {
for (var s in r) this[s] = r[s];
return !1;
}
return !1;
},
next: function () {
if (this.done) return this.EOF;
var e, t, i, n;
this._input || (this.done = !0),
this._more ||
((this.yytext = ''), (this.match = ''));
for (
var r = this._currentRules(), s = 0;
s < r.length;
s++
)
if (
(i = this._input.match(this.rules[r[s]])) &&
(!t || i[0].length > t[0].length)
) {
if (
((t = i), (n = s), this.options.backtrack_lexer)
) {
if (!1 !== (e = this.test_match(i, r[s])))
return e;
if (this._backtrack) {
t = !1;
continue;
}
return !1;
}
if (!this.options.flex) break;
}
return t
? !1 !== (e = this.test_match(t, r[n])) && e
: '' === this._input
? this.EOF
: this.parseError(
'Lexical error on line ' +
(this.yylineno + 1) +
'. Unrecognized text.\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
lex: function () {
return this.next() || this.lex();
},
begin: function (e) {
this.conditionStack.push(e);
},
popState: function () {
return this.conditionStack.length - 1 > 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 (e) {
return (e =
this.conditionStack.length -
1 -
Math.abs(e || 0)) >= 0
? this.conditionStack[e]
: 'INITIAL';
},
pushState: function (e) {
this.begin(e);
},
stateStackSize: function () {
return this.conditionStack.length;
},
options: { 'case-insensitive': !0 },
performAction: function (e, t, i, n) {
switch (i) {
case 0:
return this.begin('open_directive'), 22;
case 1:
return this.begin('type_directive'), 23;
case 2:
return (
this.popState(), this.begin('arg_directive'), 17
);
case 3:
return this.popState(), this.popState(), 25;
case 4:
return 24;
case 5:
case 6:
break;
case 7:
return 19;
case 8:
case 9:
break;
case 10:
return this.begin('title'), 12;
case 11:
return this.popState(), 'title_value';
case 12:
this.begin('string');
break;
case 13:
this.popState();
break;
case 14:
return 'txt';
case 15:
return 6;
case 16:
return 'value';
case 17:
return 21;
}
},
rules: [
/^(?:%%\{)/i,
/^(?:((?:(?!\}%%)[^:.])*))/i,
/^(?::)/i,
/^(?:\}%%)/i,
/^(?:((?:(?!\}%%).|\n)*))/i,
/^(?:%%(?!\{)[^\n]*)/i,
/^(?:[^\}]%%[^\n]*)/i,
/^(?:[\n\r]+)/i,
/^(?:%%[^\n]*)/i,
/^(?:[\s]+)/i,
/^(?:title\b)/i,
/^(?:(?!\n||)*[^\n]*)/i,
/^(?:["])/i,
/^(?:["])/i,
/^(?:[^"]*)/i,
/^(?:pie\b)/i,
/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,
/^(?:$)/i,
],
conditions: {
close_directive: { rules: [], inclusive: !1 },
arg_directive: { rules: [3, 4], inclusive: !1 },
type_directive: { rules: [2, 3], inclusive: !1 },
open_directive: { rules: [1], inclusive: !1 },
title: { rules: [11], inclusive: !1 },
string: { rules: [13, 14], inclusive: !1 },
INITIAL: {
rules: [0, 5, 6, 7, 8, 9, 10, 12, 15, 16, 17],
inclusive: !0,
},
},
};
function g() {
this.yy = {};
}
return (
(h.lexer = u), (g.prototype = h), (h.Parser = g), new g()
);
})();
(t.parser = r),
(t.Parser = r.Parser),
(t.parse = function () {
return r.parse.apply(r, arguments);
}),
(t.main = function (n) {
n[1] ||
(console.log('Usage: ' + n[0] + ' FILE'), e.exit(1));
var r = i(
'./node_modules/node-libs-browser/mock/empty.js'
).readFileSync(
i('./node_modules/path-browserify/index.js').normalize(
n[1]
),
'utf8'
);
return t.parser.parse(r);
}),
i.c[i.s] === n && t.main(e.argv.slice(1));
}.call(
this,
i('./node_modules/process/browser.js'),
i('./node_modules/webpack/buildin/module.js')(e)
));
},
'./src/diagrams/pie/pieDb.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'parseDirective', function () {
return l;
});
var n = i('./src/logger.js'),
r = i('./src/mermaidAPI.js'),
s = i('./src/config.js'),
o = {},
a = '',
l = function (e, t, i) {
r.default.parseDirective(this, e, t, i);
};
t.default = {
parseDirective: l,
getConfig: function () {
return s.getConfig().pie;
},
addSection: function (e, t) {
void 0 === o[e] &&
((o[e] = t), n.log.debug('Added new section :', e));
},
getSections: function () {
return o;
},
cleanupValue: function (e) {
return ':' === e.substring(0, 1)
? ((e = e.substring(1).trim()), Number(e.trim()))
: Number(e.trim());
},
clear: function () {
(o = {}), (a = '');
},
setTitle: function (e) {
a = e;
},
getTitle: function () {
return a;
},
};
},
'./src/diagrams/pie/pieRenderer.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'setConf', function () {
return h;
}),
i.d(t, 'draw', function () {
return u;
});
var n,
r = i('d3'),
s = i('./src/diagrams/pie/pieDb.js'),
o = i('./src/diagrams/pie/parser/pie.jison'),
a = i.n(o),
l = i('./src/logger.js'),
c = i('./src/utils.js'),
d = {},
h = function (e) {
Object.keys(e).forEach(function (t) {
d[t] = e[t];
});
},
u = function (e, t) {
try {
var i = a.a.parser;
(i.yy = s.default),
l.log.debug('Rendering info diagram\n' + e),
i.yy.clear(),
i.parse(e),
l.log.debug('Parsed info diagram');
var o = document.getElementById(t);
void 0 === (n = o.parentElement.offsetWidth) &&
(n = 1200),
void 0 !== d.useWidth && (n = d.useWidth);
var h = Object(r.select)('#' + t);
Object(c.configureSvgSize)(h, 450, n, d.useMaxWidth),
o.setAttribute('viewBox', '0 0 ' + n + ' 450');
var u = Math.min(n, 450) / 2 - 40,
g = h
.append('g')
.attr('transform', 'translate(' + n / 2 + ',225)'),
f = s.default.getSections(),
p = 0;
Object.keys(f).forEach(function (e) {
p += f[e];
});
var m = Object(r.scaleOrdinal)()
.domain(f)
.range(r.schemeSet2),
_ = Object(r.pie)().value(function (e) {
return e.value;
})(Object(r.entries)(f)),
b = Object(r.arc)().innerRadius(0).outerRadius(u);
g
.selectAll('mySlices')
.data(_)
.enter()
.append('path')
.attr('d', b)
.attr('fill', function (e) {
return m(e.data.key);
})
.attr('stroke', 'black')
.style('stroke-width', '2px')
.style('opacity', 0.7),
g
.selectAll('mySlices')
.data(
_.filter(function (e) {
return 0 !== e.data.value;
})
)
.enter()
.append('text')
.text(function (e) {
return ((e.data.value / p) * 100).toFixed(0) + '%';
})
.attr('transform', function (e) {
return 'translate(' + b.centroid(e) + ')';
})
.style('text-anchor', 'middle')
.attr('class', 'slice')
.style('font-size', 17),
g
.append('text')
.text(i.yy.getTitle())
.attr('x', 0)
.attr('y', -200)
.attr('class', 'pieTitleText');
var v = g
.selectAll('.legend')
.data(m.domain())
.enter()
.append('g')
.attr('class', 'legend')
.attr('transform', function (e, t) {
return (
'translate(216,' +
(22 * t - (22 * m.domain().length) / 2) +
')'
);
});
v
.append('rect')
.attr('width', 18)
.attr('height', 18)
.style('fill', m)
.style('stroke', m),
v
.append('text')
.attr('x', 22)
.attr('y', 14)
.text(function (e) {
return e;
});
} catch (e) {
l.log.error('Error while rendering info diagram'),
l.log.error(e);
}
};
t.default = { setConf: h, draw: u };
},
'./src/diagrams/pie/styles.js': function (e, t, i) {
'use strict';
i.r(t),
(t.default = function (e) {
return '.pieTitleText {\n text-anchor: middle;\n font-size: 25px;\n fill: '
.concat(e.taskTextDarkColor, ';\n font-family: ')
.concat(
e.fontFamily,
';\n }\n .slice {\n font-family: '
)
.concat(e.fontFamily, ';\n fill: ')
.concat(
e.textColor,
';\n // fill: white;\n }\n .legend text {\n fill: '
)
.concat(e.taskTextDarkColor, ';\n font-family: ')
.concat(e.fontFamily, ';\n font-size: 17px;\n }\n');
});
},
'./src/diagrams/requirement/parser/requirementDiagram.jison': function (
e,
t,
i
) {
(function (e, n) {
var r = (function () {
var e = function (e, t, i, n) {
for (i = i || {}, n = e.length; n--; i[e[n]] = t);
return i;
},
t = [1, 3],
i = [1, 5],
n = [1, 14],
r = [2, 9],
s = [1, 18],
o = [1, 19],
a = [1, 20],
l = [1, 21],
c = [1, 22],
d = [1, 23],
h = [1, 16],
u = [1, 24],
g = [1, 25],
f = [1, 28],
p = [66, 67],
m = [6, 8, 35, 36, 37, 38, 39, 40, 48, 55, 57, 66, 67],
_ = [5, 14],
b = [1, 47],
v = [1, 48],
y = [1, 49],
w = [1, 50],
C = [1, 51],
S = [1, 52],
k = [1, 53],
x = [57, 58],
L = [1, 65],
M = [1, 61],
D = [1, 62],
N = [1, 63],
E = [1, 64],
T = [1, 66],
I = [1, 70],
O = [1, 71],
A = [1, 68],
R = [1, 69],
P = [6, 8, 35, 36, 37, 38, 39, 40, 48, 66, 67],
F = {
trace: function () {},
yy: {},
symbols_: {
error: 2,
start: 3,
directive: 4,
RD: 5,
NEWLINE: 6,
diagram: 7,
EOF: 8,
openDirective: 9,
typeDirective: 10,
closeDirective: 11,
':': 12,
argDirective: 13,
open_directive: 14,
type_directive: 15,
arg_directive: 16,
close_directive: 17,
requirementDef: 18,
elementDef: 19,
relationshipDef: 20,
requirementType: 21,
requirementName: 22,
STRUCT_START: 23,
requirementBody: 24,
ID: 25,
COLONSEP: 26,
id: 27,
TEXT: 28,
text: 29,
RISK: 30,
riskLevel: 31,
VERIFYMTHD: 32,
verifyType: 33,
STRUCT_STOP: 34,
REQUIREMENT: 35,
FUNCTIONAL_REQUIREMENT: 36,
INTERFACE_REQUIREMENT: 37,
PERFORMANCE_REQUIREMENT: 38,
PHYSICAL_REQUIREMENT: 39,
DESIGN_CONSTRAINT: 40,
LOW_RISK: 41,
MED_RISK: 42,
HIGH_RISK: 43,
VERIFY_ANALYSIS: 44,
VERIFY_DEMONSTRATION: 45,
VERIFY_INSPECTION: 46,
VERIFY_TEST: 47,
ELEMENT: 48,
elementName: 49,
elementBody: 50,
TYPE: 51,
type: 52,
DOCREF: 53,
ref: 54,
END_ARROW_L: 55,
relationship: 56,
LINE: 57,
END_ARROW_R: 58,
CONTAINS: 59,
COPIES: 60,
DERIVES: 61,
SATISFIES: 62,
VERIFIES: 63,
REFINES: 64,
TRACES: 65,
unqString: 66,
qString: 67,
$accept: 0,
$end: 1,
},
terminals_: {
2: 'error',
5: 'RD',
6: 'NEWLINE',
8: 'EOF',
12: ':',
14: 'open_directive',
15: 'type_directive',
16: 'arg_directive',
17: 'close_directive',
23: 'STRUCT_START',
25: 'ID',
26: 'COLONSEP',
28: 'TEXT',
30: 'RISK',
32: 'VERIFYMTHD',
34: 'STRUCT_STOP',
35: 'REQUIREMENT',
36: 'FUNCTIONAL_REQUIREMENT',
37: 'INTERFACE_REQUIREMENT',
38: 'PERFORMANCE_REQUIREMENT',
39: 'PHYSICAL_REQUIREMENT',
40: 'DESIGN_CONSTRAINT',
41: 'LOW_RISK',
42: 'MED_RISK',
43: 'HIGH_RISK',
44: 'VERIFY_ANALYSIS',
45: 'VERIFY_DEMONSTRATION',
46: 'VERIFY_INSPECTION',
47: 'VERIFY_TEST',
48: 'ELEMENT',
51: 'TYPE',
53: 'DOCREF',
55: 'END_ARROW_L',
57: 'LINE',
58: 'END_ARROW_R',
59: 'CONTAINS',
60: 'COPIES',
61: 'DERIVES',
62: 'SATISFIES',
63: 'VERIFIES',
64: 'REFINES',
65: 'TRACES',
66: 'unqString',
67: 'qString',
},
productions_: [
0,
[3, 2],
[3, 4],
[4, 3],
[4, 5],
[9, 1],
[10, 1],
[13, 1],
[11, 1],
[7, 0],
[7, 2],
[7, 2],
[7, 2],
[7, 2],
[18, 5],
[24, 5],
[24, 5],
[24, 5],
[24, 5],
[24, 2],
[24, 1],
[21, 1],
[21, 1],
[21, 1],
[21, 1],
[21, 1],
[21, 1],
[31, 1],
[31, 1],
[31, 1],
[33, 1],
[33, 1],
[33, 1],
[33, 1],
[19, 5],
[50, 5],
[50, 5],
[50, 2],
[50, 1],
[20, 5],
[20, 5],
[56, 1],
[56, 1],
[56, 1],
[56, 1],
[56, 1],
[56, 1],
[56, 1],
[22, 1],
[22, 1],
[27, 1],
[27, 1],
[29, 1],
[29, 1],
[49, 1],
[49, 1],
[52, 1],
[52, 1],
[54, 1],
[54, 1],
],
performAction: function (e, t, i, n, r, s, o) {
var a = s.length - 1;
switch (r) {
case 5:
n.parseDirective('%%{', 'open_directive');
break;
case 6:
n.parseDirective(s[a], 'type_directive');
break;
case 7:
(s[a] = s[a].trim().replace(/'/g, '"')),
n.parseDirective(s[a], 'arg_directive');
break;
case 8:
n.parseDirective('}%%', 'close_directive', 'pie');
break;
case 9:
this.$ = [];
break;
case 14:
n.addRequirement(s[a - 3], s[a - 4]);
break;
case 15:
n.setNewReqId(s[a - 2]);
break;
case 16:
n.setNewReqText(s[a - 2]);
break;
case 17:
n.setNewReqRisk(s[a - 2]);
break;
case 18:
n.setNewReqVerifyMethod(s[a - 2]);
break;
case 21:
this.$ = n.RequirementType.REQUIREMENT;
break;
case 22:
this.$ = n.RequirementType.FUNCTIONAL_REQUIREMENT;
break;
case 23:
this.$ = n.RequirementType.INTERFACE_REQUIREMENT;
break;
case 24:
this.$ =
n.RequirementType.PERFORMANCE_REQUIREMENT;
break;
case 25:
this.$ = n.RequirementType.PHYSICAL_REQUIREMENT;
break;
case 26:
this.$ = n.RequirementType.DESIGN_CONSTRAINT;
break;
case 27:
this.$ = n.RiskLevel.LOW_RISK;
break;
case 28:
this.$ = n.RiskLevel.MED_RISK;
break;
case 29:
this.$ = n.RiskLevel.HIGH_RISK;
break;
case 30:
this.$ = n.VerifyType.VERIFY_ANALYSIS;
break;
case 31:
this.$ = n.VerifyType.VERIFY_DEMONSTRATION;
break;
case 32:
this.$ = n.VerifyType.VERIFY_INSPECTION;
break;
case 33:
this.$ = n.VerifyType.VERIFY_TEST;
break;
case 34:
n.addElement(s[a - 3]);
break;
case 35:
n.setNewElementType(s[a - 2]);
break;
case 36:
n.setNewElementDocRef(s[a - 2]);
break;
case 39:
n.addRelationship(s[a - 2], s[a], s[a - 4]);
break;
case 40:
n.addRelationship(s[a - 2], s[a - 4], s[a]);
break;
case 41:
this.$ = n.Relationships.CONTAINS;
break;
case 42:
this.$ = n.Relationships.COPIES;
break;
case 43:
this.$ = n.Relationships.DERIVES;
break;
case 44:
this.$ = n.Relationships.SATISFIES;
break;
case 45:
this.$ = n.Relationships.VERIFIES;
break;
case 46:
this.$ = n.Relationships.REFINES;
break;
case 47:
this.$ = n.Relationships.TRACES;
}
},
table: [
{ 3: 1, 4: 2, 5: t, 9: 4, 14: i },
{ 1: [3] },
{ 3: 6, 4: 2, 5: t, 9: 4, 14: i },
{ 6: [1, 7] },
{ 10: 8, 15: [1, 9] },
{ 15: [2, 5] },
{ 1: [2, 1] },
{
6: n,
7: 10,
8: r,
18: 11,
19: 12,
20: 13,
21: 15,
27: 17,
35: s,
36: o,
37: a,
38: l,
39: c,
40: d,
48: h,
66: u,
67: g,
},
{ 11: 26, 12: [1, 27], 17: f },
e([12, 17], [2, 6]),
{ 8: [1, 29] },
{
6: n,
7: 30,
8: r,
18: 11,
19: 12,
20: 13,
21: 15,
27: 17,
35: s,
36: o,
37: a,
38: l,
39: c,
40: d,
48: h,
66: u,
67: g,
},
{
6: n,
7: 31,
8: r,
18: 11,
19: 12,
20: 13,
21: 15,
27: 17,
35: s,
36: o,
37: a,
38: l,
39: c,
40: d,
48: h,
66: u,
67: g,
},
{
6: n,
7: 32,
8: r,
18: 11,
19: 12,
20: 13,
21: 15,
27: 17,
35: s,
36: o,
37: a,
38: l,
39: c,
40: d,
48: h,
66: u,
67: g,
},
{
6: n,
7: 33,
8: r,
18: 11,
19: 12,
20: 13,
21: 15,
27: 17,
35: s,
36: o,
37: a,
38: l,
39: c,
40: d,
48: h,
66: u,
67: g,
},
{ 22: 34, 66: [1, 35], 67: [1, 36] },
{ 49: 37, 66: [1, 38], 67: [1, 39] },
{ 55: [1, 40], 57: [1, 41] },
e(p, [2, 21]),
e(p, [2, 22]),
e(p, [2, 23]),
e(p, [2, 24]),
e(p, [2, 25]),
e(p, [2, 26]),
e(m, [2, 50]),
e(m, [2, 51]),
e(_, [2, 3]),
{ 13: 42, 16: [1, 43] },
e(_, [2, 8]),
{ 1: [2, 2] },
{ 8: [2, 10] },
{ 8: [2, 11] },
{ 8: [2, 12] },
{ 8: [2, 13] },
{ 23: [1, 44] },
{ 23: [2, 48] },
{ 23: [2, 49] },
{ 23: [1, 45] },
{ 23: [2, 54] },
{ 23: [2, 55] },
{
56: 46,
59: b,
60: v,
61: y,
62: w,
63: C,
64: S,
65: k,
},
{
56: 54,
59: b,
60: v,
61: y,
62: w,
63: C,
64: S,
65: k,
},
{ 11: 55, 17: f },
{ 17: [2, 7] },
{ 6: [1, 56] },
{ 6: [1, 57] },
{ 57: [1, 58] },
e(x, [2, 41]),
e(x, [2, 42]),
e(x, [2, 43]),
e(x, [2, 44]),
e(x, [2, 45]),
e(x, [2, 46]),
e(x, [2, 47]),
{ 58: [1, 59] },
e(_, [2, 4]),
{ 6: L, 24: 60, 25: M, 28: D, 30: N, 32: E, 34: T },
{ 6: I, 34: O, 50: 67, 51: A, 53: R },
{ 27: 72, 66: u, 67: g },
{ 27: 73, 66: u, 67: g },
e(P, [2, 14]),
{ 26: [1, 74] },
{ 26: [1, 75] },
{ 26: [1, 76] },
{ 26: [1, 77] },
{ 6: L, 24: 78, 25: M, 28: D, 30: N, 32: E, 34: T },
e(P, [2, 20]),
e(P, [2, 34]),
{ 26: [1, 79] },
{ 26: [1, 80] },
{ 6: I, 34: O, 50: 81, 51: A, 53: R },
e(P, [2, 38]),
e(P, [2, 39]),
e(P, [2, 40]),
{ 27: 82, 66: u, 67: g },
{ 29: 83, 66: [1, 84], 67: [1, 85] },
{ 31: 86, 41: [1, 87], 42: [1, 88], 43: [1, 89] },
{
33: 90,
44: [1, 91],
45: [1, 92],
46: [1, 93],
47: [1, 94],
},
e(P, [2, 19]),
{ 52: 95, 66: [1, 96], 67: [1, 97] },
{ 54: 98, 66: [1, 99], 67: [1, 100] },
e(P, [2, 37]),
{ 6: [1, 101] },
{ 6: [1, 102] },
{ 6: [2, 52] },
{ 6: [2, 53] },
{ 6: [1, 103] },
{ 6: [2, 27] },
{ 6: [2, 28] },
{ 6: [2, 29] },
{ 6: [1, 104] },
{ 6: [2, 30] },
{ 6: [2, 31] },
{ 6: [2, 32] },
{ 6: [2, 33] },
{ 6: [1, 105] },
{ 6: [2, 56] },
{ 6: [2, 57] },
{ 6: [1, 106] },
{ 6: [2, 58] },
{ 6: [2, 59] },
{ 6: L, 24: 107, 25: M, 28: D, 30: N, 32: E, 34: T },
{ 6: L, 24: 108, 25: M, 28: D, 30: N, 32: E, 34: T },
{ 6: L, 24: 109, 25: M, 28: D, 30: N, 32: E, 34: T },
{ 6: L, 24: 110, 25: M, 28: D, 30: N, 32: E, 34: T },
{ 6: I, 34: O, 50: 111, 51: A, 53: R },
{ 6: I, 34: O, 50: 112, 51: A, 53: R },
e(P, [2, 15]),
e(P, [2, 16]),
e(P, [2, 17]),
e(P, [2, 18]),
e(P, [2, 35]),
e(P, [2, 36]),
],
defaultActions: {
5: [2, 5],
6: [2, 1],
29: [2, 2],
30: [2, 10],
31: [2, 11],
32: [2, 12],
33: [2, 13],
35: [2, 48],
36: [2, 49],
38: [2, 54],
39: [2, 55],
43: [2, 7],
84: [2, 52],
85: [2, 53],
87: [2, 27],
88: [2, 28],
89: [2, 29],
91: [2, 30],
92: [2, 31],
93: [2, 32],
94: [2, 33],
96: [2, 56],
97: [2, 57],
99: [2, 58],
100: [2, 59],
},
parseError: function (e, t) {
if (!t.recoverable) {
var i = new Error(e);
throw ((i.hash = t), i);
}
this.trace(e);
},
parse: function (e) {
var t = this,
i = [0],
n = [],
r = [null],
s = [],
o = this.table,
a = '',
l = 0,
c = 0,
d = 0,
h = 2,
u = 1,
g = s.slice.call(arguments, 1),
f = Object.create(this.lexer),
p = { yy: {} };
for (var m in this.yy)
Object.prototype.hasOwnProperty.call(this.yy, m) &&
(p.yy[m] = this.yy[m]);
f.setInput(e, p.yy),
(p.yy.lexer = f),
(p.yy.parser = this),
void 0 === f.yylloc && (f.yylloc = {});
var _ = f.yylloc;
s.push(_);
var b = f.options && f.options.ranges;
function v() {
var e;
return (
'number' !=
typeof (e = n.pop() || f.lex() || u) &&
(e instanceof Array && (e = (n = e).pop()),
(e = t.symbols_[e] || e)),
e
);
}
'function' == typeof p.yy.parseError
? (this.parseError = p.yy.parseError)
: (this.parseError = Object.getPrototypeOf(
this
).parseError);
for (var y, w, C, S, k, x, L, M, D, N = {}; ; ) {
if (
((C = i[i.length - 1]),
this.defaultActions[C]
? (S = this.defaultActions[C])
: (null == y && (y = v()),
(S = o[C] && o[C][y])),
void 0 === S || !S.length || !S[0])
) {
var E = '';
for (x in ((D = []), o[C]))
this.terminals_[x] &&
x > h &&
D.push("'" + this.terminals_[x] + "'");
(E = f.showPosition
? 'Parse error on line ' +
(l + 1) +
':\n' +
f.showPosition() +
'\nExpecting ' +
D.join(', ') +
", got '" +
(this.terminals_[y] || y) +
"'"
: 'Parse error on line ' +
(l + 1) +
': Unexpected ' +
(y == u
? 'end of input'
: "'" + (this.terminals_[y] || y) + "'")),
this.parseError(E, {
text: f.match,
token: this.terminals_[y] || y,
line: f.yylineno,
loc: _,
expected: D,
});
}
if (S[0] instanceof Array && S.length > 1)
throw new Error(
'Parse Error: multiple actions possible at state: ' +
C +
', token: ' +
y
);
switch (S[0]) {
case 1:
i.push(y),
r.push(f.yytext),
s.push(f.yylloc),
i.push(S[1]),
(y = null),
w
? ((y = w), (w = null))
: ((c = f.yyleng),
(a = f.yytext),
(l = f.yylineno),
(_ = f.yylloc),
d > 0 && d--);
break;
case 2:
if (
((L = this.productions_[S[1]][1]),
(N.$ = r[r.length - L]),
(N._$ = {
first_line:
s[s.length - (L || 1)].first_line,
last_line: s[s.length - 1].last_line,
first_column:
s[s.length - (L || 1)].first_column,
last_column: s[s.length - 1].last_column,
}),
b &&
(N._$.range = [
s[s.length - (L || 1)].range[0],
s[s.length - 1].range[1],
]),
void 0 !==
(k = this.performAction.apply(
N,
[a, c, l, p.yy, S[1], r, s].concat(g)
)))
)
return k;
L &&
((i = i.slice(0, -1 * L * 2)),
(r = r.slice(0, -1 * L)),
(s = s.slice(0, -1 * L))),
i.push(this.productions_[S[1]][0]),
r.push(N.$),
s.push(N._$),
(M = o[i[i.length - 2]][i[i.length - 1]]),
i.push(M);
break;
case 3:
return !0;
}
}
return !0;
},
},
B = {
EOF: 1,
parseError: function (e, t) {
if (!this.yy.parser) throw new Error(e);
this.yy.parser.parseError(e, t);
},
setInput: function (e, t) {
return (
(this.yy = t || this.yy || {}),
(this._input = e),
(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 e = this._input[0];
return (
(this.yytext += e),
this.yyleng++,
this.offset++,
(this.match += e),
(this.matched += e),
e.match(/(?:\r\n?|\n).*/g)
? (this.yylineno++, this.yylloc.last_line++)
: this.yylloc.last_column++,
this.options.ranges && this.yylloc.range[1]++,
(this._input = this._input.slice(1)),
e
);
},
unput: function (e) {
var t = e.length,
i = e.split(/(?:\r\n?|\n)/g);
(this._input = e + this._input),
(this.yytext = this.yytext.substr(
0,
this.yytext.length - t
)),
(this.offset -= t);
var n = 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
)),
i.length - 1 && (this.yylineno -= i.length - 1);
var r = 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: i
? (i.length === n.length
? this.yylloc.first_column
: 0) +
n[n.length - i.length].length -
i[0].length
: this.yylloc.first_column - t,
}),
this.options.ranges &&
(this.yylloc.range = [
r[0],
r[0] + this.yyleng - t,
]),
(this.yyleng = this.yytext.length),
this
);
},
more: function () {
return (this._more = !0), this;
},
reject: function () {
return this.options.backtrack_lexer
? ((this._backtrack = !0), this)
: 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).\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
less: function (e) {
this.unput(this.match.slice(e));
},
pastInput: function () {
var e = this.matched.substr(
0,
this.matched.length - this.match.length
);
return (
(e.length > 20 ? '...' : '') +
e.substr(-20).replace(/\n/g, '')
);
},
upcomingInput: function () {
var e = this.match;
return (
e.length < 20 &&
(e += this._input.substr(0, 20 - e.length)),
(
e.substr(0, 20) + (e.length > 20 ? '...' : '')
).replace(/\n/g, '')
);
},
showPosition: function () {
var e = this.pastInput(),
t = new Array(e.length + 1).join('-');
return e + this.upcomingInput() + '\n' + t + '^';
},
test_match: function (e, t) {
var i, n, r;
if (
(this.options.backtrack_lexer &&
((r = {
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 &&
(r.yylloc.range = this.yylloc.range.slice(0))),
(n = e[0].match(/(?:\r\n?|\n).*/g)) &&
(this.yylineno += n.length),
(this.yylloc = {
first_line: this.yylloc.last_line,
last_line: this.yylineno + 1,
first_column: this.yylloc.last_column,
last_column: n
? n[n.length - 1].length -
n[n.length - 1].match(/\r?\n?/)[0].length
: this.yylloc.last_column + e[0].length,
}),
(this.yytext += e[0]),
(this.match += e[0]),
(this.matches = e),
(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(e[0].length)),
(this.matched += e[0]),
(i = this.performAction.call(
this,
this.yy,
this,
t,
this.conditionStack[
this.conditionStack.length - 1
]
)),
this.done && this._input && (this.done = !1),
i)
)
return i;
if (this._backtrack) {
for (var s in r) this[s] = r[s];
return !1;
}
return !1;
},
next: function () {
if (this.done) return this.EOF;
var e, t, i, n;
this._input || (this.done = !0),
this._more ||
((this.yytext = ''), (this.match = ''));
for (
var r = this._currentRules(), s = 0;
s < r.length;
s++
)
if (
(i = this._input.match(this.rules[r[s]])) &&
(!t || i[0].length > t[0].length)
) {
if (
((t = i), (n = s), this.options.backtrack_lexer)
) {
if (!1 !== (e = this.test_match(i, r[s])))
return e;
if (this._backtrack) {
t = !1;
continue;
}
return !1;
}
if (!this.options.flex) break;
}
return t
? !1 !== (e = this.test_match(t, r[n])) && e
: '' === this._input
? this.EOF
: this.parseError(
'Lexical error on line ' +
(this.yylineno + 1) +
'. Unrecognized text.\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
lex: function () {
return this.next() || this.lex();
},
begin: function (e) {
this.conditionStack.push(e);
},
popState: function () {
return this.conditionStack.length - 1 > 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 (e) {
return (e =
this.conditionStack.length -
1 -
Math.abs(e || 0)) >= 0
? this.conditionStack[e]
: 'INITIAL';
},
pushState: function (e) {
this.begin(e);
},
stateStackSize: function () {
return this.conditionStack.length;
},
options: { 'case-insensitive': !0 },
performAction: function (e, t, i, n) {
switch (i) {
case 0:
return this.begin('open_directive'), 14;
case 1:
return this.begin('type_directive'), 15;
case 2:
return (
this.popState(), this.begin('arg_directive'), 12
);
case 3:
return this.popState(), this.popState(), 17;
case 4:
return 16;
case 5:
return 6;
case 6:
case 7:
case 8:
break;
case 9:
return 8;
case 10:
return 5;
case 11:
return 23;
case 12:
return 34;
case 13:
return 26;
case 14:
return 25;
case 15:
return 28;
case 16:
return 30;
case 17:
return 32;
case 18:
return 35;
case 19:
return 36;
case 20:
return 37;
case 21:
return 38;
case 22:
return 39;
case 23:
return 40;
case 24:
return 41;
case 25:
return 42;
case 26:
return 43;
case 27:
return 44;
case 28:
return 45;
case 29:
return 46;
case 30:
return 47;
case 31:
return 48;
case 32:
return 59;
case 33:
return 60;
case 34:
return 61;
case 35:
return 62;
case 36:
return 63;
case 37:
return 64;
case 38:
return 65;
case 39:
return 51;
case 40:
return 53;
case 41:
return 55;
case 42:
return 58;
case 43:
return 57;
case 44:
this.begin('string');
break;
case 45:
this.popState();
break;
case 46:
return 'qString';
case 47:
return (t.yytext = t.yytext.trim()), 66;
}
},
rules: [
/^(?:%%\{)/i,
/^(?:((?:(?!\}%%)[^:.])*))/i,
/^(?::)/i,
/^(?:\}%%)/i,
/^(?:((?:(?!\}%%).|\n)*))/i,
/^(?:(\r?\n)+)/i,
/^(?:\s+)/i,
/^(?:#[^\n]*)/i,
/^(?:%[^\n]*)/i,
/^(?:$)/i,
/^(?:requirementDiagram\b)/i,
/^(?:\{)/i,
/^(?:\})/i,
/^(?::)/i,
/^(?:id\b)/i,
/^(?:text\b)/i,
/^(?:risk\b)/i,
/^(?:verifyMethod\b)/i,
/^(?:requirement\b)/i,
/^(?:functionalRequirement\b)/i,
/^(?:interfaceRequirement\b)/i,
/^(?:performanceRequirement\b)/i,
/^(?:physicalRequirement\b)/i,
/^(?:designConstraint\b)/i,
/^(?:low\b)/i,
/^(?:medium\b)/i,
/^(?:high\b)/i,
/^(?:analysis\b)/i,
/^(?:demonstration\b)/i,
/^(?:inspection\b)/i,
/^(?:test\b)/i,
/^(?:element\b)/i,
/^(?:contains\b)/i,
/^(?:copies\b)/i,
/^(?:derives\b)/i,
/^(?:satisfies\b)/i,
/^(?:verifies\b)/i,
/^(?:refines\b)/i,
/^(?:traces\b)/i,
/^(?:type\b)/i,
/^(?:docref\b)/i,
/^(?:<-)/i,
/^(?:->)/i,
/^(?:-)/i,
/^(?:["])/i,
/^(?:["])/i,
/^(?:[^"]*)/i,
/^(?:[\w][^\r\n\{\<\>\-\=]*)/i,
],
conditions: {
close_directive: { rules: [], inclusive: !1 },
arg_directive: { rules: [3, 4], inclusive: !1 },
type_directive: { rules: [2, 3], inclusive: !1 },
open_directive: { rules: [1], inclusive: !1 },
unqString: { rules: [], inclusive: !1 },
token: { rules: [], inclusive: !1 },
string: { rules: [45, 46], inclusive: !1 },
INITIAL: {
rules: [
0,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
47,
],
inclusive: !0,
},
},
};
function W() {
this.yy = {};
}
return (
(F.lexer = B), (W.prototype = F), (F.Parser = W), new W()
);
})();
(t.parser = r),
(t.Parser = r.Parser),
(t.parse = function () {
return r.parse.apply(r, arguments);
}),
(t.main = function (n) {
n[1] ||
(console.log('Usage: ' + n[0] + ' FILE'), e.exit(1));
var r = i(
'./node_modules/node-libs-browser/mock/empty.js'
).readFileSync(
i('./node_modules/path-browserify/index.js').normalize(
n[1]
),
'utf8'
);
return t.parser.parse(r);
}),
i.c[i.s] === n && t.main(e.argv.slice(1));
}.call(
this,
i('./node_modules/process/browser.js'),
i('./node_modules/webpack/buildin/module.js')(e)
));
},
'./src/diagrams/requirement/requirementDb.js': function (
e,
t,
i
) {
'use strict';
i.r(t),
i.d(t, 'parseDirective', function () {
return h;
});
var n = i('./src/config.js'),
r = i('./src/logger.js'),
s = i('./src/mermaidAPI.js'),
o = [],
a = {},
l = {},
c = {},
d = {},
h = function (e, t, i) {
s.default.parseDirective(this, e, t, i);
};
t.default = {
RequirementType: {
REQUIREMENT: 'Requirement',
FUNCTIONAL_REQUIREMENT: 'Functional Requirement',
INTERFACE_REQUIREMENT: 'Interface Requirement',
PERFORMANCE_REQUIREMENT: 'Performance Requirement',
PHYSICAL_REQUIREMENT: 'Physical Requirement',
DESIGN_CONSTRAINT: 'Design Constraint',
},
RiskLevel: {
LOW_RISK: 'Low',
MED_RISK: 'Medium',
HIGH_RISK: 'High',
},
VerifyType: {
VERIFY_ANALYSIS: 'Analysis',
VERIFY_DEMONSTRATION: 'Demonstration',
VERIFY_INSPECTION: 'Inspection',
VERIFY_TEST: 'Test',
},
Relationships: {
CONTAINS: 'contains',
COPIES: 'copies',
DERIVES: 'derives',
SATISFIES: 'satisfies',
VERIFIES: 'verifies',
REFINES: 'refines',
TRACES: 'traces',
},
parseDirective: h,
getConfig: function () {
return n.getConfig().req;
},
addRequirement: function (e, t) {
return (
void 0 === l[e] &&
(l[e] = {
name: e,
type: t,
id: a.id,
text: a.text,
risk: a.risk,
verifyMethod: a.verifyMethod,
}),
(a = {}),
l[e]
);
},
getRequirements: function () {
return l;
},
setNewReqId: function (e) {
void 0 !== a && (a.id = e);
},
setNewReqText: function (e) {
void 0 !== a && (a.text = e);
},
setNewReqRisk: function (e) {
void 0 !== a && (a.risk = e);
},
setNewReqVerifyMethod: function (e) {
void 0 !== a && (a.verifyMethod = e);
},
addElement: function (e) {
return (
void 0 === d[e] &&
((d[e] = { name: e, type: c.type, docRef: c.docRef }),
r.log.info('Added new requirement: ', e)),
(c = {}),
d[e]
);
},
getElements: function () {
return d;
},
setNewElementType: function (e) {
void 0 !== c && (c.type = e);
},
setNewElementDocRef: function (e) {
void 0 !== c && (c.docRef = e);
},
addRelationship: function (e, t, i) {
o.push({ type: e, src: t, dst: i });
},
getRelationships: function () {
return o;
},
clear: function () {
(o = []), (a = {}), (l = {}), (c = {}), (d = {});
},
};
},
'./src/diagrams/requirement/requirementMarkers.js': function (
e,
t,
i
) {
'use strict';
i.r(t);
var n = { CONTAINS: 'contains', ARROW: 'arrow' };
t.default = {
ReqMarkers: n,
insertLineEndings: function (e, t) {
var i = e
.append('defs')
.append('marker')
.attr('id', n.CONTAINS + '_line_ending')
.attr('refX', 0)
.attr('refY', t.line_height / 2)
.attr('markerWidth', t.line_height)
.attr('markerHeight', t.line_height)
.attr('orient', 'auto')
.append('g');
i
.append('circle')
.attr('cx', t.line_height / 2)
.attr('cy', t.line_height / 2)
.attr('r', t.line_height / 2)
.attr('stroke', t.rect_border_color)
.attr('stroke-width', 1)
.attr('fill', 'none'),
i
.append('line')
.attr('x1', 0)
.attr('x2', t.line_height)
.attr('y1', t.line_height / 2)
.attr('y2', t.line_height / 2)
.attr('stroke', t.rect_border_color)
.attr('stroke-width', 1),
i
.append('line')
.attr('y1', 0)
.attr('y2', t.line_height)
.attr('x1', t.line_height / 2)
.attr('x2', t.line_height / 2)
.attr('stroke', t.rect_border_color)
.attr('stroke-width', 1),
e
.append('defs')
.append('marker')
.attr('id', n.ARROW + '_line_ending')
.attr('refX', t.line_height)
.attr('refY', 0.5 * t.line_height)
.attr('markerWidth', t.line_height)
.attr('markerHeight', t.line_height)
.attr('orient', 'auto')
.append('path')
.attr(
'd',
'M0,0 \n L'
.concat(t.line_height, ',')
.concat(t.line_height / 2, ' \n M')
.concat(t.line_height, ',')
.concat(t.line_height / 2, ' \n L0,')
.concat(t.line_height)
)
.attr('stroke-width', 1)
.attr('stroke', t.rect_border_color);
},
};
},
'./src/diagrams/requirement/requirementRenderer.js': function (
e,
t,
i
) {
'use strict';
i.r(t),
i.d(t, 'setConf', function () {
return _;
}),
i.d(t, 'drawReqs', function () {
return w;
}),
i.d(t, 'drawElements', function () {
return C;
}),
i.d(t, 'draw', function () {
return k;
});
var n = i('d3'),
r = i('dagre'),
s = i.n(r),
o = i('graphlib'),
a = i.n(o),
l = i('./src/config.js'),
c = i('./src/logger.js'),
d = i('./src/utils.js'),
h = i('./src/diagrams/common/common.js'),
u = i(
'./src/diagrams/requirement/parser/requirementDiagram.jison'
),
g = i('./src/diagrams/requirement/requirementDb.js'),
f = i('./src/diagrams/requirement/requirementMarkers.js'),
p = {},
m = 0,
_ = function (e) {
if (void 0 !== e)
for (var t = Object.keys(e), i = 0; i < t.length; i++)
p[t[i]] = e[t[i]];
},
b = function (e, t) {
return e
.insert('rect', '#' + t)
.attr('class', 'req reqBox')
.attr('fill', p.rect_fill)
.attr('fill-opacity', '100%')
.attr('stroke', p.rect_border_color)
.attr('stroke-size', p.rect_border_size)
.attr('x', 0)
.attr('y', 0)
.attr('width', p.rect_min_width + 'px')
.attr('height', p.rect_min_height + 'px');
},
v = function (e, t, i) {
var n = p.rect_min_width / 2,
r = e
.append('text')
.attr('class', 'req reqLabel reqTitle')
.attr('id', t)
.attr('x', n)
.attr('y', p.rect_padding)
.attr('dominant-baseline', 'hanging')
.attr(
'style',
'font-family: ' +
l.getConfig().fontFamily +
'; font-size: ' +
p.fontSize +
'px'
),
s = 0;
i.forEach(function (e) {
0 == s
? r
.append('tspan')
.attr('text-anchor', 'middle')
.attr('x', p.rect_min_width / 2)
.attr('dy', 0)
.text(e)
: r
.append('tspan')
.attr('text-anchor', 'middle')
.attr('x', p.rect_min_width / 2)
.attr('dy', 0.75 * p.line_height)
.text(e),
s++;
});
var o = 1.5 * p.rect_padding + s * p.line_height * 0.75;
return (
e
.append('line')
.attr('x1', '0')
.attr('x2', p.rect_min_width)
.attr('y1', o)
.attr('y2', o)
.attr(
'style',
'stroke: '.concat(
p.rect_border_color,
'; stroke-width: 1'
)
),
{ titleNode: r, y: o }
);
},
y = function (e, t, i, n) {
var r = e
.append('text')
.attr('class', 'req reqLabel')
.attr('id', t)
.attr('x', p.rect_padding)
.attr('y', n)
.attr('dominant-baseline', 'hanging')
.attr(
'style',
'font-family: ' +
l.getConfig().fontFamily +
'; font-size: ' +
p.fontSize +
'px'
),
s = 0,
o = [];
return (
i.forEach(function (e) {
for (var t = e.length; t > 30 && s < 3; ) {
var i = e.substring(0, 30);
(t = (e = e.substring(30, e.length)).length),
(o[o.length] = i),
s++;
}
if (3 == s) {
var n = o[o.length - 1];
o[o.length - 1] =
n.substring(0, n.length - 4) + '...';
} else o[o.length] = e;
s = 0;
}),
o.forEach(function (e) {
r.append('tspan')
.attr('x', p.rect_padding)
.attr('dy', p.line_height)
.text(e);
}),
r
);
},
w = function (e, t, i) {
Object.keys(e).forEach(function (n) {
var r = e[n];
(n = S(n)),
console.log('reqName: ', n),
c.log.info('Added new requirement: ', n);
var s = i.append('g').attr('id', n),
o = b(s, 'req-' + n),
a = [],
l = v(s, n + '_title', [
'<<'.concat(r.type, '>>'),
''.concat(r.name),
]);
a.push(l.titleNode);
var d = y(
s,
n + '_body',
[
'Id: '.concat(r.id),
'Text: '.concat(r.text),
'Risk: '.concat(r.risk),
'Verification: '.concat(r.verifyMethod),
],
l.y
);
a.push(d);
var h = o.node().getBBox();
t.setNode(n, {
width: h.width,
height: h.height,
shape: 'rect',
id: n,
});
});
},
C = function (e, t, i) {
Object.keys(e).forEach(function (n) {
var r = e[n],
s = S(n),
o = i.append('g').attr('id', s),
a = 'element-' + s,
l = b(o, a),
c = [],
d = v(o, a + '_title', ['<>', ''.concat(n)]);
c.push(d.titleNode);
var h = y(
o,
a + '_body',
[
'Type: '.concat(r.type || 'Not Specified'),
'Doc Ref: '.concat(r.docref || 'None'),
],
d.y
);
c.push(h);
var u = l.node().getBBox();
t.setNode(s, {
width: u.width,
height: u.height,
shape: 'rect',
id: s,
});
});
},
S = function (e) {
return e.replace(/\s/g, '').replace(/\./g, '_');
},
k = function (e, t) {
(u.parser.yy = g.default), u.parser.parse(e);
var i = Object(n.select)("[id='".concat(t, "']"));
f.default.insertLineEndings(i, p);
var r,
o,
l = new a.a.Graph({
multigraph: !1,
compound: !1,
directed: !0,
})
.setGraph({
rankdir: p.layoutDirection,
marginx: 20,
marginy: 20,
nodesep: 100,
edgesep: 100,
ranksep: 100,
})
.setDefaultEdgeLabel(function () {
return {};
}),
c = g.default.getRequirements(),
_ = g.default.getElements(),
b = g.default.getRelationships();
w(c, l, i),
C(_, l, i),
(function (e, t) {
e.forEach(function (e) {
var i = S(e.src),
n = S(e.dst);
t.setEdge(i, n, { relationship: e });
});
})(b, l),
s.a.layout(l),
(r = i),
(o = l).nodes().forEach(function (e) {
void 0 !== e &&
void 0 !== o.node(e) &&
(r.select('#' + e),
r
.select('#' + e)
.attr(
'transform',
'translate(' +
(o.node(e).x - o.node(e).width / 2) +
',' +
(o.node(e).y - o.node(e).height / 2) +
' )'
));
}),
b.forEach(function (e) {
!(function (e, t, i, r) {
var s = i.edge(S(t.src), S(t.dst)),
o = Object(n.line)()
.x(function (e) {
return e.x;
})
.y(function (e) {
return e.y;
}),
a = e
.insert('path', '#' + r)
.attr('class', 'er relationshipLine')
.attr('d', o(s.points))
.attr('stroke', p.rect_border_color)
.attr('fill', 'none');
t.type == g.default.Relationships.CONTAINS
? a.attr(
'marker-start',
'url(' +
h.default.getUrl(p.arrowMarkerAbsolute) +
'#' +
t.type +
'_line_ending)'
)
: (a.attr('stroke-dasharray', '10,7'),
a.attr(
'marker-end',
'url(' +
h.default.getUrl(p.arrowMarkerAbsolute) +
'#' +
f.default.ReqMarkers.ARROW +
'_line_ending)'
)),
(function (e, t, i, n) {
var r = t.node().getTotalLength(),
s = t.node().getPointAtLength(0.5 * r),
o = 'rel' + m;
m++;
var a = e
.append('text')
.attr('class', 'er relationshipLabel')
.attr('id', o)
.attr('x', s.x)
.attr('y', s.y)
.attr('text-anchor', 'middle')
.attr('dominant-baseline', 'middle')
.attr(
'style',
'font-family: ' +
i.fontFamily +
'; font-size: ' +
i.fontSize +
'px'
)
.text(n)
.node()
.getBBox();
e.insert('rect', '#' + o)
.attr('class', 'req reqLabelBox')
.attr('x', s.x - a.width / 2)
.attr('y', s.y - a.height / 2)
.attr('width', a.width)
.attr('height', a.height)
.attr('fill', 'white')
.attr('fill-opacity', '85%');
})(e, a, p, '<<'.concat(t.type, '>>'));
})(i, e, l, t);
});
var v = p.rect_padding,
y = i.node().getBBox(),
k = y.width + 2 * v,
x = y.height + 2 * v;
Object(d.configureSvgSize)(i, x, k, p.useMaxWidth),
i.attr(
'viewBox',
''
.concat(y.x - v, ' ')
.concat(y.y - v, ' ')
.concat(k, ' ')
.concat(x)
);
};
t.default = { setConf: _, draw: k };
},
'./src/diagrams/requirement/styles.js': function (e, t, i) {
'use strict';
i.r(t),
(t.default = function () {
return '';
});
},
'./src/diagrams/sequence/parser/sequenceDiagram.jison': function (
e,
t,
i
) {
(function (e, n) {
var r = (function () {
var e = function (e, t, i, n) {
for (i = i || {}, n = e.length; n--; i[e[n]] = t);
return i;
},
t = [1, 2],
i = [1, 3],
n = [1, 5],
r = [1, 7],
s = [2, 5],
o = [1, 15],
a = [1, 17],
l = [1, 18],
c = [1, 20],
d = [1, 21],
h = [1, 22],
u = [1, 24],
g = [1, 25],
f = [1, 26],
p = [1, 27],
m = [1, 28],
_ = [1, 29],
b = [1, 32],
v = [1, 33],
y = [1, 36],
w = [
1,
4,
5,
16,
21,
22,
23,
25,
27,
28,
29,
30,
31,
33,
35,
36,
37,
48,
58,
],
C = [1, 44],
S = [
4,
5,
16,
21,
22,
23,
25,
27,
28,
29,
30,
31,
33,
37,
48,
58,
],
k = [
4,
5,
16,
21,
22,
23,
25,
27,
28,
29,
30,
31,
33,
36,
37,
48,
58,
],
x = [
4,
5,
16,
21,
22,
23,
25,
27,
28,
29,
30,
31,
33,
35,
37,
48,
58,
],
L = [46, 47, 48],
M = [
1,
4,
5,
7,
16,
21,
22,
23,
25,
27,
28,
29,
30,
31,
33,
35,
36,
37,
48,
58,
],
D = {
trace: function () {},
yy: {},
symbols_: {
error: 2,
start: 3,
SPACE: 4,
NEWLINE: 5,
directive: 6,
SD: 7,
document: 8,
line: 9,
statement: 10,
openDirective: 11,
typeDirective: 12,
closeDirective: 13,
':': 14,
argDirective: 15,
participant: 16,
actor: 17,
AS: 18,
restOfLine: 19,
signal: 20,
autonumber: 21,
activate: 22,
deactivate: 23,
note_statement: 24,
title: 25,
text2: 26,
loop: 27,
end: 28,
rect: 29,
opt: 30,
alt: 31,
else_sections: 32,
par: 33,
par_sections: 34,
and: 35,
else: 36,
note: 37,
placement: 38,
over: 39,
actor_pair: 40,
spaceList: 41,
',': 42,
left_of: 43,
right_of: 44,
signaltype: 45,
'+': 46,
'-': 47,
ACTOR: 48,
SOLID_OPEN_ARROW: 49,
DOTTED_OPEN_ARROW: 50,
SOLID_ARROW: 51,
DOTTED_ARROW: 52,
SOLID_CROSS: 53,
DOTTED_CROSS: 54,
SOLID_POINT: 55,
DOTTED_POINT: 56,
TXT: 57,
open_directive: 58,
type_directive: 59,
arg_directive: 60,
close_directive: 61,
$accept: 0,
$end: 1,
},
terminals_: {
2: 'error',
4: 'SPACE',
5: 'NEWLINE',
7: 'SD',
14: ':',
16: 'participant',
18: 'AS',
19: 'restOfLine',
21: 'autonumber',
22: 'activate',
23: 'deactivate',
25: 'title',
27: 'loop',
28: 'end',
29: 'rect',
30: 'opt',
31: 'alt',
33: 'par',
35: 'and',
36: 'else',
37: 'note',
39: 'over',
42: ',',
43: 'left_of',
44: 'right_of',
46: '+',
47: '-',
48: 'ACTOR',
49: 'SOLID_OPEN_ARROW',
50: 'DOTTED_OPEN_ARROW',
51: 'SOLID_ARROW',
52: 'DOTTED_ARROW',
53: 'SOLID_CROSS',
54: 'DOTTED_CROSS',
55: 'SOLID_POINT',
56: 'DOTTED_POINT',
57: 'TXT',
58: 'open_directive',
59: 'type_directive',
60: 'arg_directive',
61: 'close_directive',
},
productions_: [
0,
[3, 2],
[3, 2],
[3, 2],
[3, 2],
[8, 0],
[8, 2],
[9, 2],
[9, 1],
[9, 1],
[6, 4],
[6, 6],
[10, 5],
[10, 3],
[10, 2],
[10, 1],
[10, 3],
[10, 3],
[10, 2],
[10, 3],
[10, 4],
[10, 4],
[10, 4],
[10, 4],
[10, 4],
[10, 1],
[34, 1],
[34, 4],
[32, 1],
[32, 4],
[24, 4],
[24, 4],
[41, 2],
[41, 1],
[40, 3],
[40, 1],
[38, 1],
[38, 1],
[20, 5],
[20, 5],
[20, 4],
[17, 1],
[45, 1],
[45, 1],
[45, 1],
[45, 1],
[45, 1],
[45, 1],
[45, 1],
[45, 1],
[26, 1],
[11, 1],
[12, 1],
[15, 1],
[13, 1],
],
performAction: function (e, t, i, n, r, s, o) {
var a = s.length - 1;
switch (r) {
case 4:
return n.apply(s[a]), s[a];
case 5:
this.$ = [];
break;
case 6:
s[a - 1].push(s[a]), (this.$ = s[a - 1]);
break;
case 7:
case 8:
this.$ = s[a];
break;
case 9:
this.$ = [];
break;
case 12:
(s[a - 3].description = n.parseMessage(s[a - 1])),
(this.$ = s[a - 3]);
break;
case 13:
this.$ = s[a - 1];
break;
case 15:
n.enableSequenceNumbers();
break;
case 16:
this.$ = {
type: 'activeStart',
signalType: n.LINETYPE.ACTIVE_START,
actor: s[a - 1],
};
break;
case 17:
this.$ = {
type: 'activeEnd',
signalType: n.LINETYPE.ACTIVE_END,
actor: s[a - 1],
};
break;
case 19:
this.$ = [{ type: 'setTitle', text: s[a - 1] }];
break;
case 20:
s[a - 1].unshift({
type: 'loopStart',
loopText: n.parseMessage(s[a - 2]),
signalType: n.LINETYPE.LOOP_START,
}),
s[a - 1].push({
type: 'loopEnd',
loopText: s[a - 2],
signalType: n.LINETYPE.LOOP_END,
}),
(this.$ = s[a - 1]);
break;
case 21:
s[a - 1].unshift({
type: 'rectStart',
color: n.parseMessage(s[a - 2]),
signalType: n.LINETYPE.RECT_START,
}),
s[a - 1].push({
type: 'rectEnd',
color: n.parseMessage(s[a - 2]),
signalType: n.LINETYPE.RECT_END,
}),
(this.$ = s[a - 1]);
break;
case 22:
s[a - 1].unshift({
type: 'optStart',
optText: n.parseMessage(s[a - 2]),
signalType: n.LINETYPE.OPT_START,
}),
s[a - 1].push({
type: 'optEnd',
optText: n.parseMessage(s[a - 2]),
signalType: n.LINETYPE.OPT_END,
}),
(this.$ = s[a - 1]);
break;
case 23:
s[a - 1].unshift({
type: 'altStart',
altText: n.parseMessage(s[a - 2]),
signalType: n.LINETYPE.ALT_START,
}),
s[a - 1].push({
type: 'altEnd',
signalType: n.LINETYPE.ALT_END,
}),
(this.$ = s[a - 1]);
break;
case 24:
s[a - 1].unshift({
type: 'parStart',
parText: n.parseMessage(s[a - 2]),
signalType: n.LINETYPE.PAR_START,
}),
s[a - 1].push({
type: 'parEnd',
signalType: n.LINETYPE.PAR_END,
}),
(this.$ = s[a - 1]);
break;
case 27:
this.$ = s[a - 3].concat([
{
type: 'and',
parText: n.parseMessage(s[a - 1]),
signalType: n.LINETYPE.PAR_AND,
},
s[a],
]);
break;
case 29:
this.$ = s[a - 3].concat([
{
type: 'else',
altText: n.parseMessage(s[a - 1]),
signalType: n.LINETYPE.ALT_ELSE,
},
s[a],
]);
break;
case 30:
this.$ = [
s[a - 1],
{
type: 'addNote',
placement: s[a - 2],
actor: s[a - 1].actor,
text: s[a],
},
];
break;
case 31:
(s[a - 2] = []
.concat(s[a - 1], s[a - 1])
.slice(0, 2)),
(s[a - 2][0] = s[a - 2][0].actor),
(s[a - 2][1] = s[a - 2][1].actor),
(this.$ = [
s[a - 1],
{
type: 'addNote',
placement: n.PLACEMENT.OVER,
actor: s[a - 2].slice(0, 2),
text: s[a],
},
]);
break;
case 34:
this.$ = [s[a - 2], s[a]];
break;
case 35:
this.$ = s[a];
break;
case 36:
this.$ = n.PLACEMENT.LEFTOF;
break;
case 37:
this.$ = n.PLACEMENT.RIGHTOF;
break;
case 38:
this.$ = [
s[a - 4],
s[a - 1],
{
type: 'addMessage',
from: s[a - 4].actor,
to: s[a - 1].actor,
signalType: s[a - 3],
msg: s[a],
},
{
type: 'activeStart',
signalType: n.LINETYPE.ACTIVE_START,
actor: s[a - 1],
},
];
break;
case 39:
this.$ = [
s[a - 4],
s[a - 1],
{
type: 'addMessage',
from: s[a - 4].actor,
to: s[a - 1].actor,
signalType: s[a - 3],
msg: s[a],
},
{
type: 'activeEnd',
signalType: n.LINETYPE.ACTIVE_END,
actor: s[a - 4],
},
];
break;
case 40:
this.$ = [
s[a - 3],
s[a - 1],
{
type: 'addMessage',
from: s[a - 3].actor,
to: s[a - 1].actor,
signalType: s[a - 2],
msg: s[a],
},
];
break;
case 41:
this.$ = { type: 'addActor', actor: s[a] };
break;
case 42:
this.$ = n.LINETYPE.SOLID_OPEN;
break;
case 43:
this.$ = n.LINETYPE.DOTTED_OPEN;
break;
case 44:
this.$ = n.LINETYPE.SOLID;
break;
case 45:
this.$ = n.LINETYPE.DOTTED;
break;
case 46:
this.$ = n.LINETYPE.SOLID_CROSS;
break;
case 47:
this.$ = n.LINETYPE.DOTTED_CROSS;
break;
case 48:
this.$ = n.LINETYPE.SOLID_POINT;
break;
case 49:
this.$ = n.LINETYPE.DOTTED_POINT;
break;
case 50:
this.$ = n.parseMessage(s[a].trim().substring(1));
break;
case 51:
n.parseDirective('%%{', 'open_directive');
break;
case 52:
n.parseDirective(s[a], 'type_directive');
break;
case 53:
(s[a] = s[a].trim().replace(/'/g, '"')),
n.parseDirective(s[a], 'arg_directive');
break;
case 54:
n.parseDirective(
'}%%',
'close_directive',
'sequence'
);
}
},
table: [
{ 3: 1, 4: t, 5: i, 6: 4, 7: n, 11: 6, 58: r },
{ 1: [3] },
{ 3: 8, 4: t, 5: i, 6: 4, 7: n, 11: 6, 58: r },
{ 3: 9, 4: t, 5: i, 6: 4, 7: n, 11: 6, 58: r },
{ 3: 10, 4: t, 5: i, 6: 4, 7: n, 11: 6, 58: r },
e(
[
1,
4,
5,
16,
21,
22,
23,
25,
27,
29,
30,
31,
33,
37,
48,
58,
],
s,
{ 8: 11 }
),
{ 12: 12, 59: [1, 13] },
{ 59: [2, 51] },
{ 1: [2, 1] },
{ 1: [2, 2] },
{ 1: [2, 3] },
{
1: [2, 4],
4: o,
5: a,
6: 30,
9: 14,
10: 16,
11: 6,
16: l,
17: 31,
20: 19,
21: c,
22: d,
23: h,
24: 23,
25: u,
27: g,
29: f,
30: p,
31: m,
33: _,
37: b,
48: v,
58: r,
},
{ 13: 34, 14: [1, 35], 61: y },
e([14, 61], [2, 52]),
e(w, [2, 6]),
{
6: 30,
10: 37,
11: 6,
16: l,
17: 31,
20: 19,
21: c,
22: d,
23: h,
24: 23,
25: u,
27: g,
29: f,
30: p,
31: m,
33: _,
37: b,
48: v,
58: r,
},
e(w, [2, 8]),
e(w, [2, 9]),
{ 17: 38, 48: v },
{ 5: [1, 39] },
e(w, [2, 15]),
{ 17: 40, 48: v },
{ 17: 41, 48: v },
{ 5: [1, 42] },
{ 26: 43, 57: C },
{ 19: [1, 45] },
{ 19: [1, 46] },
{ 19: [1, 47] },
{ 19: [1, 48] },
{ 19: [1, 49] },
e(w, [2, 25]),
{
45: 50,
49: [1, 51],
50: [1, 52],
51: [1, 53],
52: [1, 54],
53: [1, 55],
54: [1, 56],
55: [1, 57],
56: [1, 58],
},
{ 38: 59, 39: [1, 60], 43: [1, 61], 44: [1, 62] },
e(
[5, 18, 42, 49, 50, 51, 52, 53, 54, 55, 56, 57],
[2, 41]
),
{ 5: [1, 63] },
{ 15: 64, 60: [1, 65] },
{ 5: [2, 54] },
e(w, [2, 7]),
{ 5: [1, 67], 18: [1, 66] },
e(w, [2, 14]),
{ 5: [1, 68] },
{ 5: [1, 69] },
e(w, [2, 18]),
{ 5: [1, 70] },
{ 5: [2, 50] },
e(S, s, { 8: 71 }),
e(S, s, { 8: 72 }),
e(S, s, { 8: 73 }),
e(k, s, { 32: 74, 8: 75 }),
e(x, s, { 34: 76, 8: 77 }),
{ 17: 80, 46: [1, 78], 47: [1, 79], 48: v },
e(L, [2, 42]),
e(L, [2, 43]),
e(L, [2, 44]),
e(L, [2, 45]),
e(L, [2, 46]),
e(L, [2, 47]),
e(L, [2, 48]),
e(L, [2, 49]),
{ 17: 81, 48: v },
{ 17: 83, 40: 82, 48: v },
{ 48: [2, 36] },
{ 48: [2, 37] },
e(M, [2, 10]),
{ 13: 84, 61: y },
{ 61: [2, 53] },
{ 19: [1, 85] },
e(w, [2, 13]),
e(w, [2, 16]),
e(w, [2, 17]),
e(w, [2, 19]),
{
4: o,
5: a,
6: 30,
9: 14,
10: 16,
11: 6,
16: l,
17: 31,
20: 19,
21: c,
22: d,
23: h,
24: 23,
25: u,
27: g,
28: [1, 86],
29: f,
30: p,
31: m,
33: _,
37: b,
48: v,
58: r,
},
{
4: o,
5: a,
6: 30,
9: 14,
10: 16,
11: 6,
16: l,
17: 31,
20: 19,
21: c,
22: d,
23: h,
24: 23,
25: u,
27: g,
28: [1, 87],
29: f,
30: p,
31: m,
33: _,
37: b,
48: v,
58: r,
},
{
4: o,
5: a,
6: 30,
9: 14,
10: 16,
11: 6,
16: l,
17: 31,
20: 19,
21: c,
22: d,
23: h,
24: 23,
25: u,
27: g,
28: [1, 88],
29: f,
30: p,
31: m,
33: _,
37: b,
48: v,
58: r,
},
{ 28: [1, 89] },
{
4: o,
5: a,
6: 30,
9: 14,
10: 16,
11: 6,
16: l,
17: 31,
20: 19,
21: c,
22: d,
23: h,
24: 23,
25: u,
27: g,
28: [2, 28],
29: f,
30: p,
31: m,
33: _,
36: [1, 90],
37: b,
48: v,
58: r,
},
{ 28: [1, 91] },
{
4: o,
5: a,
6: 30,
9: 14,
10: 16,
11: 6,
16: l,
17: 31,
20: 19,
21: c,
22: d,
23: h,
24: 23,
25: u,
27: g,
28: [2, 26],
29: f,
30: p,
31: m,
33: _,
35: [1, 92],
37: b,
48: v,
58: r,
},
{ 17: 93, 48: v },
{ 17: 94, 48: v },
{ 26: 95, 57: C },
{ 26: 96, 57: C },
{ 26: 97, 57: C },
{ 42: [1, 98], 57: [2, 35] },
{ 5: [1, 99] },
{ 5: [1, 100] },
e(w, [2, 20]),
e(w, [2, 21]),
e(w, [2, 22]),
e(w, [2, 23]),
{ 19: [1, 101] },
e(w, [2, 24]),
{ 19: [1, 102] },
{ 26: 103, 57: C },
{ 26: 104, 57: C },
{ 5: [2, 40] },
{ 5: [2, 30] },
{ 5: [2, 31] },
{ 17: 105, 48: v },
e(M, [2, 11]),
e(w, [2, 12]),
e(k, s, { 8: 75, 32: 106 }),
e(x, s, { 8: 77, 34: 107 }),
{ 5: [2, 38] },
{ 5: [2, 39] },
{ 57: [2, 34] },
{ 28: [2, 29] },
{ 28: [2, 27] },
],
defaultActions: {
7: [2, 51],
8: [2, 1],
9: [2, 2],
10: [2, 3],
36: [2, 54],
44: [2, 50],
61: [2, 36],
62: [2, 37],
65: [2, 53],
95: [2, 40],
96: [2, 30],
97: [2, 31],
103: [2, 38],
104: [2, 39],
105: [2, 34],
106: [2, 29],
107: [2, 27],
},
parseError: function (e, t) {
if (!t.recoverable) {
var i = new Error(e);
throw ((i.hash = t), i);
}
this.trace(e);
},
parse: function (e) {
var t = this,
i = [0],
n = [],
r = [null],
s = [],
o = this.table,
a = '',
l = 0,
c = 0,
d = 0,
h = 2,
u = 1,
g = s.slice.call(arguments, 1),
f = Object.create(this.lexer),
p = { yy: {} };
for (var m in this.yy)
Object.prototype.hasOwnProperty.call(this.yy, m) &&
(p.yy[m] = this.yy[m]);
f.setInput(e, p.yy),
(p.yy.lexer = f),
(p.yy.parser = this),
void 0 === f.yylloc && (f.yylloc = {});
var _ = f.yylloc;
s.push(_);
var b = f.options && f.options.ranges;
function v() {
var e;
return (
'number' !=
typeof (e = n.pop() || f.lex() || u) &&
(e instanceof Array && (e = (n = e).pop()),
(e = t.symbols_[e] || e)),
e
);
}
'function' == typeof p.yy.parseError
? (this.parseError = p.yy.parseError)
: (this.parseError = Object.getPrototypeOf(
this
).parseError);
for (var y, w, C, S, k, x, L, M, D, N = {}; ; ) {
if (
((C = i[i.length - 1]),
this.defaultActions[C]
? (S = this.defaultActions[C])
: (null == y && (y = v()),
(S = o[C] && o[C][y])),
void 0 === S || !S.length || !S[0])
) {
var E = '';
for (x in ((D = []), o[C]))
this.terminals_[x] &&
x > h &&
D.push("'" + this.terminals_[x] + "'");
(E = f.showPosition
? 'Parse error on line ' +
(l + 1) +
':\n' +
f.showPosition() +
'\nExpecting ' +
D.join(', ') +
", got '" +
(this.terminals_[y] || y) +
"'"
: 'Parse error on line ' +
(l + 1) +
': Unexpected ' +
(y == u
? 'end of input'
: "'" + (this.terminals_[y] || y) + "'")),
this.parseError(E, {
text: f.match,
token: this.terminals_[y] || y,
line: f.yylineno,
loc: _,
expected: D,
});
}
if (S[0] instanceof Array && S.length > 1)
throw new Error(
'Parse Error: multiple actions possible at state: ' +
C +
', token: ' +
y
);
switch (S[0]) {
case 1:
i.push(y),
r.push(f.yytext),
s.push(f.yylloc),
i.push(S[1]),
(y = null),
w
? ((y = w), (w = null))
: ((c = f.yyleng),
(a = f.yytext),
(l = f.yylineno),
(_ = f.yylloc),
d > 0 && d--);
break;
case 2:
if (
((L = this.productions_[S[1]][1]),
(N.$ = r[r.length - L]),
(N._$ = {
first_line:
s[s.length - (L || 1)].first_line,
last_line: s[s.length - 1].last_line,
first_column:
s[s.length - (L || 1)].first_column,
last_column: s[s.length - 1].last_column,
}),
b &&
(N._$.range = [
s[s.length - (L || 1)].range[0],
s[s.length - 1].range[1],
]),
void 0 !==
(k = this.performAction.apply(
N,
[a, c, l, p.yy, S[1], r, s].concat(g)
)))
)
return k;
L &&
((i = i.slice(0, -1 * L * 2)),
(r = r.slice(0, -1 * L)),
(s = s.slice(0, -1 * L))),
i.push(this.productions_[S[1]][0]),
r.push(N.$),
s.push(N._$),
(M = o[i[i.length - 2]][i[i.length - 1]]),
i.push(M);
break;
case 3:
return !0;
}
}
return !0;
},
},
N = {
EOF: 1,
parseError: function (e, t) {
if (!this.yy.parser) throw new Error(e);
this.yy.parser.parseError(e, t);
},
setInput: function (e, t) {
return (
(this.yy = t || this.yy || {}),
(this._input = e),
(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 e = this._input[0];
return (
(this.yytext += e),
this.yyleng++,
this.offset++,
(this.match += e),
(this.matched += e),
e.match(/(?:\r\n?|\n).*/g)
? (this.yylineno++, this.yylloc.last_line++)
: this.yylloc.last_column++,
this.options.ranges && this.yylloc.range[1]++,
(this._input = this._input.slice(1)),
e
);
},
unput: function (e) {
var t = e.length,
i = e.split(/(?:\r\n?|\n)/g);
(this._input = e + this._input),
(this.yytext = this.yytext.substr(
0,
this.yytext.length - t
)),
(this.offset -= t);
var n = 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
)),
i.length - 1 && (this.yylineno -= i.length - 1);
var r = 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: i
? (i.length === n.length
? this.yylloc.first_column
: 0) +
n[n.length - i.length].length -
i[0].length
: this.yylloc.first_column - t,
}),
this.options.ranges &&
(this.yylloc.range = [
r[0],
r[0] + this.yyleng - t,
]),
(this.yyleng = this.yytext.length),
this
);
},
more: function () {
return (this._more = !0), this;
},
reject: function () {
return this.options.backtrack_lexer
? ((this._backtrack = !0), this)
: 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).\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
less: function (e) {
this.unput(this.match.slice(e));
},
pastInput: function () {
var e = this.matched.substr(
0,
this.matched.length - this.match.length
);
return (
(e.length > 20 ? '...' : '') +
e.substr(-20).replace(/\n/g, '')
);
},
upcomingInput: function () {
var e = this.match;
return (
e.length < 20 &&
(e += this._input.substr(0, 20 - e.length)),
(
e.substr(0, 20) + (e.length > 20 ? '...' : '')
).replace(/\n/g, '')
);
},
showPosition: function () {
var e = this.pastInput(),
t = new Array(e.length + 1).join('-');
return e + this.upcomingInput() + '\n' + t + '^';
},
test_match: function (e, t) {
var i, n, r;
if (
(this.options.backtrack_lexer &&
((r = {
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 &&
(r.yylloc.range = this.yylloc.range.slice(0))),
(n = e[0].match(/(?:\r\n?|\n).*/g)) &&
(this.yylineno += n.length),
(this.yylloc = {
first_line: this.yylloc.last_line,
last_line: this.yylineno + 1,
first_column: this.yylloc.last_column,
last_column: n
? n[n.length - 1].length -
n[n.length - 1].match(/\r?\n?/)[0].length
: this.yylloc.last_column + e[0].length,
}),
(this.yytext += e[0]),
(this.match += e[0]),
(this.matches = e),
(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(e[0].length)),
(this.matched += e[0]),
(i = this.performAction.call(
this,
this.yy,
this,
t,
this.conditionStack[
this.conditionStack.length - 1
]
)),
this.done && this._input && (this.done = !1),
i)
)
return i;
if (this._backtrack) {
for (var s in r) this[s] = r[s];
return !1;
}
return !1;
},
next: function () {
if (this.done) return this.EOF;
var e, t, i, n;
this._input || (this.done = !0),
this._more ||
((this.yytext = ''), (this.match = ''));
for (
var r = this._currentRules(), s = 0;
s < r.length;
s++
)
if (
(i = this._input.match(this.rules[r[s]])) &&
(!t || i[0].length > t[0].length)
) {
if (
((t = i), (n = s), this.options.backtrack_lexer)
) {
if (!1 !== (e = this.test_match(i, r[s])))
return e;
if (this._backtrack) {
t = !1;
continue;
}
return !1;
}
if (!this.options.flex) break;
}
return t
? !1 !== (e = this.test_match(t, r[n])) && e
: '' === this._input
? this.EOF
: this.parseError(
'Lexical error on line ' +
(this.yylineno + 1) +
'. Unrecognized text.\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
lex: function () {
return this.next() || this.lex();
},
begin: function (e) {
this.conditionStack.push(e);
},
popState: function () {
return this.conditionStack.length - 1 > 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 (e) {
return (e =
this.conditionStack.length -
1 -
Math.abs(e || 0)) >= 0
? this.conditionStack[e]
: 'INITIAL';
},
pushState: function (e) {
this.begin(e);
},
stateStackSize: function () {
return this.conditionStack.length;
},
options: { 'case-insensitive': !0 },
performAction: function (e, t, i, n) {
switch (i) {
case 0:
return this.begin('open_directive'), 58;
case 1:
return this.begin('type_directive'), 59;
case 2:
return (
this.popState(), this.begin('arg_directive'), 14
);
case 3:
return this.popState(), this.popState(), 61;
case 4:
return 60;
case 5:
return 5;
case 6:
case 7:
case 8:
case 9:
case 10:
break;
case 11:
return this.begin('ID'), 16;
case 12:
return (
(t.yytext = t.yytext.trim()),
this.begin('ALIAS'),
48
);
case 13:
return (
this.popState(),
this.popState(),
this.begin('LINE'),
18
);
case 14:
return this.popState(), this.popState(), 5;
case 15:
return this.begin('LINE'), 27;
case 16:
return this.begin('LINE'), 29;
case 17:
return this.begin('LINE'), 30;
case 18:
return this.begin('LINE'), 31;
case 19:
return this.begin('LINE'), 36;
case 20:
return this.begin('LINE'), 33;
case 21:
return this.begin('LINE'), 35;
case 22:
return this.popState(), 19;
case 23:
return 28;
case 24:
return 43;
case 25:
return 44;
case 26:
return 39;
case 27:
return 37;
case 28:
return this.begin('ID'), 22;
case 29:
return this.begin('ID'), 23;
case 30:
return 25;
case 31:
return 7;
case 32:
return 21;
case 33:
return 42;
case 34:
return 5;
case 35:
return (t.yytext = t.yytext.trim()), 48;
case 36:
return 51;
case 37:
return 52;
case 38:
return 49;
case 39:
return 50;
case 40:
return 53;
case 41:
return 54;
case 42:
return 55;
case 43:
return 56;
case 44:
return 57;
case 45:
return 46;
case 46:
return 47;
case 47:
return 5;
case 48:
return 'INVALID';
}
},
rules: [
/^(?:%%\{)/i,
/^(?:((?:(?!\}%%)[^:.])*))/i,
/^(?::)/i,
/^(?:\}%%)/i,
/^(?:((?:(?!\}%%).|\n)*))/i,
/^(?:[\n]+)/i,
/^(?:\s+)/i,
/^(?:((?!\n)\s)+)/i,
/^(?:#[^\n]*)/i,
/^(?:%(?!\{)[^\n]*)/i,
/^(?:[^\}]%%[^\n]*)/i,
/^(?:participant\b)/i,
/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,
/^(?:as\b)/i,
/^(?:(?:))/i,
/^(?:loop\b)/i,
/^(?:rect\b)/i,
/^(?:opt\b)/i,
/^(?:alt\b)/i,
/^(?:else\b)/i,
/^(?:par\b)/i,
/^(?:and\b)/i,
/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,
/^(?:end\b)/i,
/^(?:left of\b)/i,
/^(?:right of\b)/i,
/^(?:over\b)/i,
/^(?:note\b)/i,
/^(?:activate\b)/i,
/^(?:deactivate\b)/i,
/^(?:title\b)/i,
/^(?:sequenceDiagram\b)/i,
/^(?:autonumber\b)/i,
/^(?:,)/i,
/^(?:;)/i,
/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,
/^(?:->>)/i,
/^(?:-->>)/i,
/^(?:->)/i,
/^(?:-->)/i,
/^(?:-[x])/i,
/^(?:--[x])/i,
/^(?:-[\)])/i,
/^(?:--[\)])/i,
/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,
/^(?:\+)/i,
/^(?:-)/i,
/^(?:$)/i,
/^(?:.)/i,
],
conditions: {
open_directive: { rules: [1, 8], inclusive: !1 },
type_directive: { rules: [2, 3, 8], inclusive: !1 },
arg_directive: { rules: [3, 4, 8], inclusive: !1 },
ID: { rules: [7, 8, 12], inclusive: !1 },
ALIAS: { rules: [7, 8, 13, 14], inclusive: !1 },
LINE: { rules: [7, 8, 22], inclusive: !1 },
INITIAL: {
rules: [
0,
5,
6,
8,
9,
10,
11,
15,
16,
17,
18,
19,
20,
21,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
],
inclusive: !0,
},
},
};
function E() {
this.yy = {};
}
return (
(D.lexer = N), (E.prototype = D), (D.Parser = E), new E()
);
})();
(t.parser = r),
(t.Parser = r.Parser),
(t.parse = function () {
return r.parse.apply(r, arguments);
}),
(t.main = function (n) {
n[1] ||
(console.log('Usage: ' + n[0] + ' FILE'), e.exit(1));
var r = i(
'./node_modules/node-libs-browser/mock/empty.js'
).readFileSync(
i('./node_modules/path-browserify/index.js').normalize(
n[1]
),
'utf8'
);
return t.parser.parse(r);
}),
i.c[i.s] === n && t.main(e.argv.slice(1));
}.call(
this,
i('./node_modules/process/browser.js'),
i('./node_modules/webpack/buildin/module.js')(e)
));
},
'./src/diagrams/sequence/sequenceDb.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'parseDirective', function () {
return f;
}),
i.d(t, 'addActor', function () {
return p;
}),
i.d(t, 'addMessage', function () {
return _;
}),
i.d(t, 'addSignal', function () {
return b;
}),
i.d(t, 'getMessages', function () {
return v;
}),
i.d(t, 'getActors', function () {
return y;
}),
i.d(t, 'getActor', function () {
return w;
}),
i.d(t, 'getActorKeys', function () {
return C;
}),
i.d(t, 'getTitle', function () {
return S;
}),
i.d(t, 'getTitleWrapped', function () {
return k;
}),
i.d(t, 'enableSequenceNumbers', function () {
return x;
}),
i.d(t, 'showSequenceNumbers', function () {
return L;
}),
i.d(t, 'setWrap', function () {
return M;
}),
i.d(t, 'autoWrap', function () {
return D;
}),
i.d(t, 'clear', function () {
return N;
}),
i.d(t, 'parseMessage', function () {
return E;
}),
i.d(t, 'LINETYPE', function () {
return T;
}),
i.d(t, 'ARROWTYPE', function () {
return I;
}),
i.d(t, 'PLACEMENT', function () {
return O;
}),
i.d(t, 'addNote', function () {
return A;
}),
i.d(t, 'setTitle', function () {
return R;
}),
i.d(t, 'apply', function () {
return P;
});
var n = i('./src/mermaidAPI.js'),
r = i('./src/config.js'),
s = i('./src/logger.js'),
o = void 0,
a = {},
l = [],
c = [],
d = '',
h = !1,
u = !1,
g = !1,
f = function (e, t, i) {
n.default.parseDirective(this, e, t, i);
},
p = function (e, t, i) {
var n = a[e];
(n && t === n.name && null == i) ||
((null != i && null != i.text) ||
(i = { text: t, wrap: null }),
(a[e] = {
name: t,
description: i.text,
wrap: (void 0 === i.wrap && D()) || !!i.wrap,
prevActor: o,
}),
o && a[o] && (a[o].nextActor = e),
(o = e));
},
m = function (e) {
var t,
i = 0;
for (t = 0; t < l.length; t++)
l[t].type === T.ACTIVE_START &&
l[t].from.actor === e &&
i++,
l[t].type === T.ACTIVE_END &&
l[t].from.actor === e &&
i--;
return i;
},
_ = function (e, t, i, n) {
l.push({
from: e,
to: t,
message: i.text,
wrap: (void 0 === i.wrap && D()) || !!i.wrap,
answer: n,
});
},
b = function (e, t) {
var i =
arguments.length > 2 && void 0 !== arguments[2]
? arguments[2]
: { text: void 0, wrap: void 0 },
n = arguments.length > 3 ? arguments[3] : void 0;
if (n === T.ACTIVE_END) {
var r = m(e.actor);
if (r < 1) {
var s = new Error(
'Trying to inactivate an inactive participant (' +
e.actor +
')'
);
throw (
((s.hash = {
text: '->>-',
token: '->>-',
line: '1',
loc: {
first_line: 1,
last_line: 1,
first_column: 1,
last_column: 1,
},
expected: ["'ACTIVE_PARTICIPANT'"],
}),
s)
);
}
}
return (
l.push({
from: e,
to: t,
message: i.text,
wrap: (void 0 === i.wrap && D()) || !!i.wrap,
type: n,
}),
!0
);
},
v = function () {
return l;
},
y = function () {
return a;
},
w = function (e) {
return a[e];
},
C = function () {
return Object.keys(a);
},
S = function () {
return d;
},
k = function () {
return h;
},
x = function () {
u = !0;
},
L = function () {
return u;
},
M = function (e) {
g = e;
},
D = function () {
return g;
},
N = function () {
(a = {}), (l = []);
},
E = function (e) {
var t = e.trim(),
i = {
text: t.replace(/^[:]?(?:no)?wrap:/, '').trim(),
wrap:
null !== t.match(/^[:]?wrap:/) ||
(null === t.match(/^[:]?nowrap:/) && void 0),
};
return s.log.debug('parseMessage:', i), i;
},
T = {
SOLID: 0,
DOTTED: 1,
NOTE: 2,
SOLID_CROSS: 3,
DOTTED_CROSS: 4,
SOLID_OPEN: 5,
DOTTED_OPEN: 6,
LOOP_START: 10,
LOOP_END: 11,
ALT_START: 12,
ALT_ELSE: 13,
ALT_END: 14,
OPT_START: 15,
OPT_END: 16,
ACTIVE_START: 17,
ACTIVE_END: 18,
PAR_START: 19,
PAR_AND: 20,
PAR_END: 21,
RECT_START: 22,
RECT_END: 23,
SOLID_POINT: 24,
DOTTED_POINT: 25,
},
I = { FILLED: 0, OPEN: 1 },
O = { LEFTOF: 0, RIGHTOF: 1, OVER: 2 },
A = function (e, t, i) {
var n = {
actor: e,
placement: t,
message: i.text,
wrap: (void 0 === i.wrap && D()) || !!i.wrap,
},
r = [].concat(e, e);
c.push(n),
l.push({
from: r[0],
to: r[1],
message: i.text,
wrap: (void 0 === i.wrap && D()) || !!i.wrap,
type: T.NOTE,
placement: t,
});
},
R = function (e) {
(d = e.text), (h = (void 0 === e.wrap && D()) || !!e.wrap);
},
P = function e(t) {
if (t instanceof Array)
t.forEach(function (t) {
e(t);
});
else
switch (t.type) {
case 'addActor':
p(t.actor, t.actor, t.description);
break;
case 'activeStart':
case 'activeEnd':
b(t.actor, void 0, void 0, t.signalType);
break;
case 'addNote':
A(t.actor, t.placement, t.text);
break;
case 'addMessage':
b(t.from, t.to, t.msg, t.signalType);
break;
case 'loopStart':
b(void 0, void 0, t.loopText, t.signalType);
break;
case 'loopEnd':
b(void 0, void 0, void 0, t.signalType);
break;
case 'rectStart':
b(void 0, void 0, t.color, t.signalType);
break;
case 'rectEnd':
b(void 0, void 0, void 0, t.signalType);
break;
case 'optStart':
b(void 0, void 0, t.optText, t.signalType);
break;
case 'optEnd':
b(void 0, void 0, void 0, t.signalType);
break;
case 'altStart':
case 'else':
b(void 0, void 0, t.altText, t.signalType);
break;
case 'altEnd':
b(void 0, void 0, void 0, t.signalType);
break;
case 'setTitle':
R(t.text);
break;
case 'parStart':
case 'and':
b(void 0, void 0, t.parText, t.signalType);
break;
case 'parEnd':
b(void 0, void 0, void 0, t.signalType);
}
};
t.default = {
addActor: p,
addMessage: _,
addSignal: b,
autoWrap: D,
setWrap: M,
enableSequenceNumbers: x,
showSequenceNumbers: L,
getMessages: v,
getActors: y,
getActor: w,
getActorKeys: C,
getTitle: S,
parseDirective: f,
getConfig: function () {
return r.getConfig().sequence;
},
getTitleWrapped: k,
clear: N,
parseMessage: E,
LINETYPE: T,
ARROWTYPE: I,
PLACEMENT: O,
addNote: A,
setTitle: R,
apply: P,
};
},
'./src/diagrams/sequence/sequenceRenderer.js': function (
e,
t,
i
) {
'use strict';
i.r(t),
i.d(t, 'bounds', function () {
return u;
}),
i.d(t, 'drawActors', function () {
return m;
}),
i.d(t, 'setConf', function () {
return _;
}),
i.d(t, 'draw', function () {
return w;
});
var n = i('d3'),
r = i('./src/diagrams/sequence/svgDraw.js'),
s = i('./src/logger.js'),
o = i('./src/diagrams/sequence/parser/sequenceDiagram.jison'),
a = i('./src/diagrams/common/common.js'),
l = i('./src/diagrams/sequence/sequenceDb.js'),
c = i('./src/config.js'),
d = i('./src/utils.js');
o.parser.yy = l.default;
var h = {},
u = {
data: {
startx: void 0,
stopx: void 0,
starty: void 0,
stopy: void 0,
},
verticalPos: 0,
sequenceItems: [],
activations: [],
models: {
getHeight: function () {
return (
Math.max.apply(
null,
0 === this.actors.length
? [0]
: this.actors.map(function (e) {
return e.height || 0;
})
) +
(0 === this.loops.length
? 0
: this.loops
.map(function (e) {
return e.height || 0;
})
.reduce(function (e, t) {
return e + t;
})) +
(0 === this.messages.length
? 0
: this.messages
.map(function (e) {
return e.height || 0;
})
.reduce(function (e, t) {
return e + t;
})) +
(0 === this.notes.length
? 0
: this.notes
.map(function (e) {
return e.height || 0;
})
.reduce(function (e, t) {
return e + t;
}))
);
},
clear: function () {
(this.actors = []),
(this.loops = []),
(this.messages = []),
(this.notes = []);
},
addActor: function (e) {
this.actors.push(e);
},
addLoop: function (e) {
this.loops.push(e);
},
addMessage: function (e) {
this.messages.push(e);
},
addNote: function (e) {
this.notes.push(e);
},
lastActor: function () {
return this.actors[this.actors.length - 1];
},
lastLoop: function () {
return this.loops[this.loops.length - 1];
},
lastMessage: function () {
return this.messages[this.messages.length - 1];
},
lastNote: function () {
return this.notes[this.notes.length - 1];
},
actors: [],
loops: [],
messages: [],
notes: [],
},
init: function () {
(this.sequenceItems = []),
(this.activations = []),
this.models.clear(),
(this.data = {
startx: void 0,
stopx: void 0,
starty: void 0,
stopy: void 0,
}),
(this.verticalPos = 0),
_(o.parser.yy.getConfig());
},
updateVal: function (e, t, i, n) {
void 0 === e[t] ? (e[t] = i) : (e[t] = n(i, e[t]));
},
updateBounds: function (e, t, i, n) {
var r = this,
s = 0;
function o(o) {
return function (a) {
s++;
var l = r.sequenceItems.length - s + 1;
r.updateVal(
a,
'starty',
t - l * h.boxMargin,
Math.min
),
r.updateVal(
a,
'stopy',
n + l * h.boxMargin,
Math.max
),
r.updateVal(
u.data,
'startx',
e - l * h.boxMargin,
Math.min
),
r.updateVal(
u.data,
'stopx',
i + l * h.boxMargin,
Math.max
),
'activation' !== o &&
(r.updateVal(
a,
'startx',
e - l * h.boxMargin,
Math.min
),
r.updateVal(
a,
'stopx',
i + l * h.boxMargin,
Math.max
),
r.updateVal(
u.data,
'starty',
t - l * h.boxMargin,
Math.min
),
r.updateVal(
u.data,
'stopy',
n + l * h.boxMargin,
Math.max
));
};
}
this.sequenceItems.forEach(o()),
this.activations.forEach(o('activation'));
},
insert: function (e, t, i, n) {
var r = Math.min(e, i),
s = Math.max(e, i),
o = Math.min(t, n),
a = Math.max(t, n);
this.updateVal(u.data, 'startx', r, Math.min),
this.updateVal(u.data, 'starty', o, Math.min),
this.updateVal(u.data, 'stopx', s, Math.max),
this.updateVal(u.data, 'stopy', a, Math.max),
this.updateBounds(r, o, s, a);
},
newActivation: function (e, t, i) {
var n = i[e.from.actor],
s = b(e.from.actor).length || 0,
o =
n.x + n.width / 2 + ((s - 1) * h.activationWidth) / 2;
this.activations.push({
startx: o,
starty: this.verticalPos + 2,
stopx: o + h.activationWidth,
stopy: void 0,
actor: e.from.actor,
anchored: r.default.anchorElement(t),
});
},
endActivation: function (e) {
var t = this.activations
.map(function (e) {
return e.actor;
})
.lastIndexOf(e.from.actor);
return this.activations.splice(t, 1)[0];
},
createLoop: function () {
var e =
arguments.length > 0 && void 0 !== arguments[0]
? arguments[0]
: { message: void 0, wrap: !1, width: void 0 },
t = arguments.length > 1 ? arguments[1] : void 0;
return {
startx: void 0,
starty: this.verticalPos,
stopx: void 0,
stopy: void 0,
title: e.message,
wrap: e.wrap,
width: e.width,
height: 0,
fill: t,
};
},
newLoop: function () {
var e =
arguments.length > 0 && void 0 !== arguments[0]
? arguments[0]
: { message: void 0, wrap: !1, width: void 0 },
t = arguments.length > 1 ? arguments[1] : void 0;
this.sequenceItems.push(this.createLoop(e, t));
},
endLoop: function () {
return this.sequenceItems.pop();
},
addSectionToLoop: function (e) {
var t = this.sequenceItems.pop();
(t.sections = t.sections || []),
(t.sectionTitles = t.sectionTitles || []),
t.sections.push({ y: u.getVerticalPos(), height: 0 }),
t.sectionTitles.push(e),
this.sequenceItems.push(t);
},
bumpVerticalPos: function (e) {
(this.verticalPos = this.verticalPos + e),
(this.data.stopy = this.verticalPos);
},
getVerticalPos: function () {
return this.verticalPos;
},
getBounds: function () {
return { bounds: this.data, models: this.models };
},
},
g = function (e) {
return {
fontFamily: e.messageFontFamily,
fontSize: e.messageFontSize,
fontWeight: e.messageFontWeight,
};
},
f = function (e) {
return {
fontFamily: e.noteFontFamily,
fontSize: e.noteFontSize,
fontWeight: e.noteFontWeight,
};
},
p = function (e) {
return {
fontFamily: e.actorFontFamily,
fontSize: e.actorFontSize,
fontWeight: e.actorFontWeight,
};
},
m = function (e, t, i, n) {
for (var s = 0, o = 0, a = 0; a < i.length; a++) {
var l = t[i[a]];
(l.width = l.width || h.width),
(l.height = Math.max(l.height || h.height, h.height)),
(l.margin = l.margin || h.actorMargin),
(l.x = s + o),
(l.y = n),
r.default.drawActor(e, l, h),
u.insert(l.x, n, l.x + l.width, l.height),
(s += l.width),
(o += l.margin),
u.models.addActor(l);
}
u.bumpVerticalPos(h.height);
},
_ = function (e) {
Object(d.assignWithDepth)(h, e),
e.fontFamily &&
(h.actorFontFamily = h.noteFontFamily = h.messageFontFamily =
e.fontFamily),
e.fontSize &&
(h.actorFontSize = h.noteFontSize = h.messageFontSize =
e.fontSize),
e.fontWeight &&
(h.actorFontWeight = h.noteFontWeight = h.messageFontWeight =
e.fontWeight);
},
b = function (e) {
return u.activations.filter(function (t) {
return t.actor === e;
});
},
v = function (e, t) {
var i = t[e],
n = b(e);
return [
n.reduce(function (e, t) {
return Math.min(e, t.startx);
}, i.x + i.width / 2),
n.reduce(function (e, t) {
return Math.max(e, t.stopx);
}, i.x + i.width / 2),
];
};
function y(e, t, i, n, r) {
u.bumpVerticalPos(i);
var o = n;
if (t.id && t.message && e[t.id]) {
var a = e[t.id].width,
l = g(h);
(t.message = d.default.wrapLabel(
'['.concat(t.message, ']'),
a - 2 * h.wrapPadding,
l
)),
(t.width = a),
(t.wrap = !0);
var c = d.default.calculateTextDimensions(t.message, l),
f = Math.max(c.height, h.labelBoxHeight);
(o = n + f),
s.log.debug(''.concat(f, ' - ').concat(t.message));
}
r(t), u.bumpVerticalPos(o);
}
var w = function (e, t) {
(h = c.getConfig().sequence),
o.parser.yy.clear(),
o.parser.yy.setWrap(h.wrap),
o.parser.parse(e + '\n'),
u.init(),
s.log.debug('C:'.concat(JSON.stringify(h, null, 2)));
var i = Object(n.select)('[id="'.concat(t, '"]')),
f = o.parser.yy.getActors(),
p = o.parser.yy.getActorKeys(),
_ = o.parser.yy.getMessages(),
v = o.parser.yy.getTitle(),
w = C(f, _);
(h.height = S(f, w)), m(i, f, p, 0);
var x = k(_, f, w);
r.default.insertArrowHead(i),
r.default.insertArrowCrossHead(i),
r.default.insertArrowFilledHead(i),
r.default.insertSequenceNumber(i);
var L = 1;
_.forEach(function (e) {
var t, n, c;
switch (e.type) {
case o.parser.yy.LINETYPE.NOTE:
(n = e.noteModel),
(function (e, t) {
u.bumpVerticalPos(h.boxMargin),
(t.height = h.boxMargin),
(t.starty = u.getVerticalPos());
var i = r.default.getNoteRect();
(i.x = t.startx),
(i.y = t.starty),
(i.width = t.width || h.width),
(i.class = 'note');
var n = e.append('g'),
s = r.default.drawRect(n, i),
o = r.default.getTextObj();
(o.x = t.startx),
(o.y = t.starty),
(o.width = i.width),
(o.dy = '1em'),
(o.text = t.message),
(o.class = 'noteText'),
(o.fontFamily = h.noteFontFamily),
(o.fontSize = h.noteFontSize),
(o.fontWeight = h.noteFontWeight),
(o.anchor = h.noteAlign),
(o.textMargin = h.noteMargin),
(o.valign = h.noteAlign);
var a = Object(r.drawText)(n, o),
l = Math.round(
a
.map(function (e) {
return (e._groups ||
e)[0][0].getBBox().height;
})
.reduce(function (e, t) {
return e + t;
})
);
s.attr('height', l + 2 * h.noteMargin),
(t.height += l + 2 * h.noteMargin),
u.bumpVerticalPos(l + 2 * h.noteMargin),
(t.stopy = t.starty + l + 2 * h.noteMargin),
(t.stopx = t.startx + i.width),
u.insert(t.startx, t.starty, t.stopx, t.stopy),
u.models.addNote(t);
})(i, n);
break;
case o.parser.yy.LINETYPE.ACTIVE_START:
u.newActivation(e, i, f);
break;
case o.parser.yy.LINETYPE.ACTIVE_END:
!(function (e, t) {
var n = u.endActivation(e);
n.starty + 18 > t &&
((n.starty = t - 6), (t += 12)),
r.default.drawActivation(
i,
n,
t,
h,
b(e.from.actor).length
),
u.insert(n.startx, t - 10, n.stopx, t);
})(e, u.getVerticalPos());
break;
case o.parser.yy.LINETYPE.LOOP_START:
y(
x,
e,
h.boxMargin,
h.boxMargin + h.boxTextMargin,
function (e) {
return u.newLoop(e);
}
);
break;
case o.parser.yy.LINETYPE.LOOP_END:
(t = u.endLoop()),
r.default.drawLoop(i, t, 'loop', h),
u.bumpVerticalPos(t.stopy - u.getVerticalPos()),
u.models.addLoop(t);
break;
case o.parser.yy.LINETYPE.RECT_START:
y(x, e, h.boxMargin, h.boxMargin, function (e) {
return u.newLoop(void 0, e.message);
});
break;
case o.parser.yy.LINETYPE.RECT_END:
(t = u.endLoop()),
r.default.drawBackgroundRect(i, t),
u.models.addLoop(t),
u.bumpVerticalPos(t.stopy - u.getVerticalPos());
break;
case o.parser.yy.LINETYPE.OPT_START:
y(
x,
e,
h.boxMargin,
h.boxMargin + h.boxTextMargin,
function (e) {
return u.newLoop(e);
}
);
break;
case o.parser.yy.LINETYPE.OPT_END:
(t = u.endLoop()),
r.default.drawLoop(i, t, 'opt', h),
u.bumpVerticalPos(t.stopy - u.getVerticalPos()),
u.models.addLoop(t);
break;
case o.parser.yy.LINETYPE.ALT_START:
y(
x,
e,
h.boxMargin,
h.boxMargin + h.boxTextMargin,
function (e) {
return u.newLoop(e);
}
);
break;
case o.parser.yy.LINETYPE.ALT_ELSE:
y(
x,
e,
h.boxMargin + h.boxTextMargin,
h.boxMargin,
function (e) {
return u.addSectionToLoop(e);
}
);
break;
case o.parser.yy.LINETYPE.ALT_END:
(t = u.endLoop()),
r.default.drawLoop(i, t, 'alt', h),
u.bumpVerticalPos(t.stopy - u.getVerticalPos()),
u.models.addLoop(t);
break;
case o.parser.yy.LINETYPE.PAR_START:
y(
x,
e,
h.boxMargin,
h.boxMargin + h.boxTextMargin,
function (e) {
return u.newLoop(e);
}
);
break;
case o.parser.yy.LINETYPE.PAR_AND:
y(
x,
e,
h.boxMargin + h.boxTextMargin,
h.boxMargin,
function (e) {
return u.addSectionToLoop(e);
}
);
break;
case o.parser.yy.LINETYPE.PAR_END:
(t = u.endLoop()),
r.default.drawLoop(i, t, 'par', h),
u.bumpVerticalPos(t.stopy - u.getVerticalPos()),
u.models.addLoop(t);
break;
default:
try {
((c = e.msgModel).starty = u.getVerticalPos()),
(c.sequenceIndex = L),
(function (e, t) {
u.bumpVerticalPos(10);
var i = t.startx,
n = t.stopx,
s = t.starty,
c = t.message,
f = t.type,
p = t.sequenceIndex,
m = a.default.splitBreaks(c).length,
_ = d.default.calculateTextDimensions(
c,
g(h)
),
b = _.height / m;
(t.height += b), u.bumpVerticalPos(b);
var v = r.default.getTextObj();
(v.x = i),
(v.y = s + 10),
(v.width = n - i),
(v.class = 'messageText'),
(v.dy = '1em'),
(v.text = c),
(v.fontFamily = h.messageFontFamily),
(v.fontSize = h.messageFontSize),
(v.fontWeight = h.messageFontWeight),
(v.anchor = h.messageAlign),
(v.valign = h.messageAlign),
(v.textMargin = h.wrapPadding),
(v.tspan = !1),
Object(r.drawText)(e, v);
var y,
w,
C = _.height - 10,
S = _.width;
if (i === n) {
(w = u.getVerticalPos() + C),
h.rightAngles
? (y = e.append('path').attr(
'd',
'M '
.concat(i, ',')
.concat(w, ' H ')
.concat(
i + Math.max(h.width / 2, S / 2),
' V '
)
.concat(w + 25, ' H ')
.concat(i)
))
: ((C += h.boxMargin),
(w = u.getVerticalPos() + C),
(y = e
.append('path')
.attr(
'd',
'M ' +
i +
',' +
w +
' C ' +
(i + 60) +
',' +
(w - 10) +
' ' +
(i + 60) +
',' +
(w + 30) +
' ' +
i +
',' +
(w + 20)
))),
(C += 30);
var k = Math.max(S / 2, h.width / 2);
u.insert(
i - k,
u.getVerticalPos() - 10 + C,
n + k,
u.getVerticalPos() + 30 + C
);
} else
(C += h.boxMargin),
(w = u.getVerticalPos() + C),
(y = e.append('line')).attr('x1', i),
y.attr('y1', w),
y.attr('x2', n),
y.attr('y2', w),
u.insert(i, w - 10, n, w);
f === o.parser.yy.LINETYPE.DOTTED ||
f === o.parser.yy.LINETYPE.DOTTED_CROSS ||
f === o.parser.yy.LINETYPE.DOTTED_POINT ||
f === o.parser.yy.LINETYPE.DOTTED_OPEN
? (y.style('stroke-dasharray', '3, 3'),
y.attr('class', 'messageLine1'))
: y.attr('class', 'messageLine0');
var x = '';
h.arrowMarkerAbsolute &&
(x = (x = (x =
window.location.protocol +
'//' +
window.location.host +
window.location.pathname +
window.location.search).replace(
/\(/g,
'\\('
)).replace(/\)/g, '\\)')),
y.attr('stroke-width', 2),
y.attr('stroke', 'none'),
y.style('fill', 'none'),
(f !== o.parser.yy.LINETYPE.SOLID &&
f !== o.parser.yy.LINETYPE.DOTTED) ||
y.attr(
'marker-end',
'url(' + x + '#arrowhead)'
),
(f !== o.parser.yy.LINETYPE.SOLID_POINT &&
f !== o.parser.yy.LINETYPE.DOTTED_POINT) ||
y.attr(
'marker-end',
'url(' + x + '#filled-head)'
),
(f !== o.parser.yy.LINETYPE.SOLID_CROSS &&
f !== o.parser.yy.LINETYPE.DOTTED_CROSS) ||
y.attr(
'marker-end',
'url(' + x + '#crosshead)'
),
(l.default.showSequenceNumbers() ||
h.showSequenceNumbers) &&
(y.attr(
'marker-start',
'url(' + x + '#sequencenumber)'
),
e
.append('text')
.attr('x', i)
.attr('y', w + 4)
.attr('font-family', 'sans-serif')
.attr('font-size', '12px')
.attr('text-anchor', 'middle')
.attr('textLength', '16px')
.attr('class', 'sequenceNumber')
.text(p)),
u.bumpVerticalPos(C),
(t.height += C),
(t.stopy = t.starty + t.height),
u.insert(
t.fromBounds,
t.starty,
t.toBounds,
t.stopy
);
})(i, c),
u.models.addMessage(c);
} catch (e) {
s.log.error('error while drawing message', e);
}
}
[
o.parser.yy.LINETYPE.SOLID_OPEN,
o.parser.yy.LINETYPE.DOTTED_OPEN,
o.parser.yy.LINETYPE.SOLID,
o.parser.yy.LINETYPE.DOTTED,
o.parser.yy.LINETYPE.SOLID_CROSS,
o.parser.yy.LINETYPE.DOTTED_CROSS,
o.parser.yy.LINETYPE.SOLID_POINT,
o.parser.yy.LINETYPE.DOTTED_POINT,
].includes(e.type) && L++;
}),
h.mirrorActors &&
(u.bumpVerticalPos(2 * h.boxMargin),
m(i, f, p, u.getVerticalPos()));
var M = u.getBounds().bounds;
s.log.debug(
'For line height fix Querying: #' + t + ' .actor-line'
),
Object(n.selectAll)('#' + t + ' .actor-line').attr(
'y2',
M.stopy
);
var D = M.stopy - M.starty + 2 * h.diagramMarginY;
h.mirrorActors && (D = D - h.boxMargin + h.bottomMarginAdj);
var N = M.stopx - M.startx + 2 * h.diagramMarginX;
v &&
i
.append('text')
.text(v)
.attr(
'x',
(M.stopx - M.startx) / 2 - 2 * h.diagramMarginX
)
.attr('y', -25),
Object(d.configureSvgSize)(i, D, N, h.useMaxWidth);
var E = v ? 40 : 0;
i.attr(
'viewBox',
M.startx -
h.diagramMarginX +
' -' +
(h.diagramMarginY + E) +
' ' +
N +
' ' +
(D + E)
),
s.log.debug('models:', u.models);
},
C = function (e, t) {
var i = {};
return (
t.forEach(function (t) {
if (e[t.to] && e[t.from]) {
var n = e[t.to];
if (
t.placement === o.parser.yy.PLACEMENT.LEFTOF &&
!n.prevActor
)
return;
if (
t.placement === o.parser.yy.PLACEMENT.RIGHTOF &&
!n.nextActor
)
return;
var r = void 0 !== t.placement,
s = !r,
a = r ? f(h) : g(h),
l = t.wrap
? d.default.wrapLabel(
t.message,
h.width - 2 * h.wrapPadding,
a
)
: t.message,
c =
d.default.calculateTextDimensions(l, a).width +
2 * h.wrapPadding;
s && t.from === n.nextActor
? (i[t.to] = Math.max(i[t.to] || 0, c))
: s && t.from === n.prevActor
? (i[t.from] = Math.max(i[t.from] || 0, c))
: s && t.from === t.to
? ((i[t.from] = Math.max(i[t.from] || 0, c / 2)),
(i[t.to] = Math.max(i[t.to] || 0, c / 2)))
: t.placement === o.parser.yy.PLACEMENT.RIGHTOF
? (i[t.from] = Math.max(i[t.from] || 0, c))
: t.placement === o.parser.yy.PLACEMENT.LEFTOF
? (i[n.prevActor] = Math.max(
i[n.prevActor] || 0,
c
))
: t.placement === o.parser.yy.PLACEMENT.OVER &&
(n.prevActor &&
(i[n.prevActor] = Math.max(
i[n.prevActor] || 0,
c / 2
)),
n.nextActor &&
(i[t.from] = Math.max(i[t.from] || 0, c / 2)));
}
}),
s.log.debug('maxMessageWidthPerActor:', i),
i
);
},
S = function (e, t) {
var i = 0;
for (var n in (Object.keys(e).forEach(function (t) {
var n = e[t];
n.wrap &&
(n.description = d.default.wrapLabel(
n.description,
h.width - 2 * h.wrapPadding,
p(h)
));
var r = d.default.calculateTextDimensions(
n.description,
p(h)
);
(n.width = n.wrap
? h.width
: Math.max(h.width, r.width + 2 * h.wrapPadding)),
(n.height = n.wrap
? Math.max(r.height, h.height)
: h.height),
(i = Math.max(i, n.height));
}),
t)) {
var r = e[n];
if (r) {
var s = e[r.nextActor];
if (s) {
var o =
t[n] + h.actorMargin - r.width / 2 - s.width / 2;
r.margin = Math.max(o, h.actorMargin);
}
}
}
return Math.max(i, h.height);
},
k = function (e, t) {
var i,
n,
r,
a = {},
l = [];
return (
e.forEach(function (e) {
switch (
((e.id = d.default.random({ length: 10 })), e.type)
) {
case o.parser.yy.LINETYPE.LOOP_START:
case o.parser.yy.LINETYPE.ALT_START:
case o.parser.yy.LINETYPE.OPT_START:
case o.parser.yy.LINETYPE.PAR_START:
l.push({
id: e.id,
msg: e.message,
from: Number.MAX_SAFE_INTEGER,
to: Number.MIN_SAFE_INTEGER,
width: 0,
});
break;
case o.parser.yy.LINETYPE.ALT_ELSE:
case o.parser.yy.LINETYPE.PAR_AND:
e.message &&
((i = l.pop()),
(a[i.id] = i),
(a[e.id] = i),
l.push(i));
break;
case o.parser.yy.LINETYPE.LOOP_END:
case o.parser.yy.LINETYPE.ALT_END:
case o.parser.yy.LINETYPE.OPT_END:
case o.parser.yy.LINETYPE.PAR_END:
(i = l.pop()), (a[i.id] = i);
break;
case o.parser.yy.LINETYPE.ACTIVE_START:
var c = t[e.from ? e.from.actor : e.to.actor],
p = b(e.from ? e.from.actor : e.to.actor).length,
m =
c.x +
c.width / 2 +
((p - 1) * h.activationWidth) / 2,
_ = {
startx: m,
stopx: m + h.activationWidth,
actor: e.from.actor,
enabled: !0,
};
u.activations.push(_);
break;
case o.parser.yy.LINETYPE.ACTIVE_END:
var y = u.activations
.map(function (e) {
return e.actor;
})
.lastIndexOf(e.from.actor);
delete u.activations.splice(y, 1)[0];
}
void 0 !== e.placement
? ((n = (function (e, t) {
var i = t[e.from].x,
n = t[e.to].x,
r = e.wrap && e.message,
a = d.default.calculateTextDimensions(
r
? d.default.wrapLabel(
e.message,
h.width,
f(h)
)
: e.message,
f(h)
),
l = {
width: r
? h.width
: Math.max(
h.width,
a.width + 2 * h.noteMargin
),
height: 0,
startx: t[e.from].x,
stopx: 0,
starty: 0,
stopy: 0,
message: e.message,
};
return (
e.placement === o.parser.yy.PLACEMENT.RIGHTOF
? ((l.width = r
? Math.max(h.width, a.width)
: Math.max(
t[e.from].width / 2 +
t[e.to].width / 2,
a.width + 2 * h.noteMargin
)),
(l.startx =
i +
(t[e.from].width + h.actorMargin) / 2))
: e.placement === o.parser.yy.PLACEMENT.LEFTOF
? ((l.width = r
? Math.max(
h.width,
a.width + 2 * h.noteMargin
)
: Math.max(
t[e.from].width / 2 +
t[e.to].width / 2,
a.width + 2 * h.noteMargin
)),
(l.startx =
i -
l.width +
(t[e.from].width - h.actorMargin) / 2))
: e.to === e.from
? ((a = d.default.calculateTextDimensions(
r
? d.default.wrapLabel(
e.message,
Math.max(h.width, t[e.from].width),
f(h)
)
: e.message,
f(h)
)),
(l.width = r
? Math.max(h.width, t[e.from].width)
: Math.max(
t[e.from].width,
h.width,
a.width + 2 * h.noteMargin
)),
(l.startx =
i + (t[e.from].width - l.width) / 2))
: ((l.width =
Math.abs(
i +
t[e.from].width / 2 -
(n + t[e.to].width / 2)
) + h.actorMargin),
(l.startx =
i < n
? i +
t[e.from].width / 2 -
h.actorMargin / 2
: n +
t[e.to].width / 2 -
h.actorMargin / 2)),
r &&
(l.message = d.default.wrapLabel(
e.message,
l.width - 2 * h.wrapPadding,
f(h)
)),
s.log.debug(
'NM:['
.concat(l.startx, ',')
.concat(l.stopx, ',')
.concat(l.starty, ',')
.concat(l.stopy, ':')
.concat(l.width, ',')
.concat(l.height, '=')
.concat(e.message, ']')
),
l
);
})(e, t)),
(e.noteModel = n),
l.forEach(function (e) {
((i = e).from = Math.min(i.from, n.startx)),
(i.to = Math.max(i.to, n.startx + n.width)),
(i.width =
Math.max(i.width, Math.abs(i.from - i.to)) -
h.labelBoxWidth);
}))
: ((r = (function (e, t) {
var i = !1;
if (
([
o.parser.yy.LINETYPE.SOLID_OPEN,
o.parser.yy.LINETYPE.DOTTED_OPEN,
o.parser.yy.LINETYPE.SOLID,
o.parser.yy.LINETYPE.DOTTED,
o.parser.yy.LINETYPE.SOLID_CROSS,
o.parser.yy.LINETYPE.DOTTED_CROSS,
o.parser.yy.LINETYPE.SOLID_POINT,
o.parser.yy.LINETYPE.DOTTED_POINT,
].includes(e.type) && (i = !0),
!i)
)
return {};
var n = v(e.from, t),
r = v(e.to, t),
s = n[0] <= r[0] ? 1 : 0,
a = n[0] < r[0] ? 0 : 1,
l = n.concat(r),
c = Math.abs(r[a] - n[s]);
e.wrap &&
e.message &&
(e.message = d.default.wrapLabel(
e.message,
Math.max(c + 2 * h.wrapPadding, h.width),
g(h)
));
var u = d.default.calculateTextDimensions(
e.message,
g(h)
);
return {
width: Math.max(
e.wrap ? 0 : u.width + 2 * h.wrapPadding,
c + 2 * h.wrapPadding,
h.width
),
height: 0,
startx: n[s],
stopx: r[a],
starty: 0,
stopy: 0,
message: e.message,
type: e.type,
wrap: e.wrap,
fromBounds: Math.min.apply(null, l),
toBounds: Math.max.apply(null, l),
};
})(e, t)),
(e.msgModel = r),
r.startx &&
r.stopx &&
l.length > 0 &&
l.forEach(function (n) {
if (((i = n), r.startx === r.stopx)) {
var s = t[e.from],
o = t[e.to];
(i.from = Math.min(
s.x - r.width / 2,
s.x - s.width / 2,
i.from
)),
(i.to = Math.max(
o.x + r.width / 2,
o.x + s.width / 2,
i.to
)),
(i.width =
Math.max(
i.width,
Math.abs(i.to - i.from)
) - h.labelBoxWidth);
} else (i.from = Math.min(r.startx, i.from)), (i.to = Math.max(r.stopx, i.to)), (i.width = Math.max(i.width, r.width) - h.labelBoxWidth);
}));
}),
(u.activations = []),
s.log.debug('Loop type widths:', a),
a
);
};
t.default = { bounds: u, drawActors: m, setConf: _, draw: w };
},
'./src/diagrams/sequence/styles.js': function (e, t, i) {
'use strict';
i.r(t),
(t.default = function (e) {
return '.actor {\n stroke: '
.concat(e.actorBorder, ';\n fill: ')
.concat(
e.actorBkg,
';\n }\n\n text.actor > tspan {\n fill: '
)
.concat(
e.actorTextColor,
';\n stroke: none;\n }\n\n .actor-line {\n stroke: '
)
.concat(
e.actorLineColor,
';\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: '
)
.concat(
e.signalColor,
';\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: '
)
.concat(
e.signalColor,
';\n }\n\n #arrowhead path {\n fill: '
)
.concat(e.signalColor, ';\n stroke: ')
.concat(
e.signalColor,
';\n }\n\n .sequenceNumber {\n fill: '
)
.concat(
e.sequenceNumberColor,
';\n }\n\n #sequencenumber {\n fill: '
)
.concat(
e.signalColor,
';\n }\n\n #crosshead path {\n fill: '
)
.concat(e.signalColor, ';\n stroke: ')
.concat(
e.signalColor,
';\n }\n\n .messageText {\n fill: '
)
.concat(e.signalTextColor, ';\n stroke: ')
.concat(
e.signalTextColor,
';\n }\n\n .labelBox {\n stroke: '
)
.concat(e.labelBoxBorderColor, ';\n fill: ')
.concat(
e.labelBoxBkgColor,
';\n }\n\n .labelText, .labelText > tspan {\n fill: '
)
.concat(
e.labelTextColor,
';\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: '
)
.concat(
e.loopTextColor,
';\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: '
)
.concat(e.labelBoxBorderColor, ';\n fill: ')
.concat(
e.labelBoxBorderColor,
';\n }\n\n .note {\n //stroke: #decc93;\n stroke: '
)
.concat(e.noteBorderColor, ';\n fill: ')
.concat(
e.noteBkgColor,
';\n }\n\n .noteText, .noteText > tspan {\n fill: '
)
.concat(
e.noteTextColor,
';\n stroke: none;\n }\n\n .activation0 {\n fill: '
)
.concat(e.activationBkgColor, ';\n stroke: ')
.concat(
e.activationBorderColor,
';\n }\n\n .activation1 {\n fill: '
)
.concat(e.activationBkgColor, ';\n stroke: ')
.concat(
e.activationBorderColor,
';\n }\n\n .activation2 {\n fill: '
)
.concat(e.activationBkgColor, ';\n stroke: ')
.concat(e.activationBorderColor, ';\n }\n');
});
},
'./src/diagrams/sequence/svgDraw.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'drawRect', function () {
return r;
}),
i.d(t, 'drawText', function () {
return s;
}),
i.d(t, 'drawLabel', function () {
return o;
}),
i.d(t, 'drawActor', function () {
return l;
}),
i.d(t, 'anchorElement', function () {
return c;
}),
i.d(t, 'drawActivation', function () {
return d;
}),
i.d(t, 'drawLoop', function () {
return h;
}),
i.d(t, 'drawBackgroundRect', function () {
return u;
}),
i.d(t, 'insertArrowHead', function () {
return g;
}),
i.d(t, 'insertArrowFilledHead', function () {
return f;
}),
i.d(t, 'insertSequenceNumber', function () {
return p;
}),
i.d(t, 'insertArrowCrossHead', function () {
return m;
}),
i.d(t, 'getTextObj', function () {
return _;
}),
i.d(t, 'getNoteRect', function () {
return b;
});
var n = i('./src/diagrams/common/common.js'),
r = function (e, t) {
var i = e.append('rect');
return (
i.attr('x', t.x),
i.attr('y', t.y),
i.attr('fill', t.fill),
i.attr('stroke', t.stroke),
i.attr('width', t.width),
i.attr('height', t.height),
i.attr('rx', t.rx),
i.attr('ry', t.ry),
void 0 !== t.class && i.attr('class', t.class),
i
);
},
s = function (e, t) {
var i = 0,
r = 0,
s = t.text.split(n.default.lineBreakRegex),
o = [],
a = 0,
l = function () {
return t.y;
};
if (
void 0 !== t.valign &&
void 0 !== t.textMargin &&
t.textMargin > 0
)
switch (t.valign) {
case 'top':
case 'start':
l = function () {
return Math.round(t.y + t.textMargin);
};
break;
case 'middle':
case 'center':
l = function () {
return Math.round(t.y + (i + r + t.textMargin) / 2);
};
break;
case 'bottom':
case 'end':
l = function () {
return Math.round(
t.y + (i + r + 2 * t.textMargin) - t.textMargin
);
};
}
if (
void 0 !== t.anchor &&
void 0 !== t.textMargin &&
void 0 !== t.width
)
switch (t.anchor) {
case 'left':
case 'start':
(t.x = Math.round(t.x + t.textMargin)),
(t.anchor = 'start'),
(t.dominantBaseline = 'text-after-edge'),
(t.alignmentBaseline = 'middle');
break;
case 'middle':
case 'center':
(t.x = Math.round(t.x + t.width / 2)),
(t.anchor = 'middle'),
(t.dominantBaseline = 'middle'),
(t.alignmentBaseline = 'middle');
break;
case 'right':
case 'end':
(t.x = Math.round(t.x + t.width - t.textMargin)),
(t.anchor = 'end'),
(t.dominantBaseline = 'text-before-edge'),
(t.alignmentBaseline = 'middle');
}
for (var c = 0; c < s.length; c++) {
var d = s[c];
void 0 !== t.textMargin &&
0 === t.textMargin &&
void 0 !== t.fontSize &&
(a = c * t.fontSize);
var h = e.append('text');
if (
(h.attr('x', t.x),
h.attr('y', l()),
void 0 !== t.anchor &&
h
.attr('text-anchor', t.anchor)
.attr('dominant-baseline', t.dominantBaseline)
.attr('alignment-baseline', t.alignmentBaseline),
void 0 !== t.fontFamily &&
h.style('font-family', t.fontFamily),
void 0 !== t.fontSize &&
h.style('font-size', t.fontSize),
void 0 !== t.fontWeight &&
h.style('font-weight', t.fontWeight),
void 0 !== t.fill && h.attr('fill', t.fill),
void 0 !== t.class && h.attr('class', t.class),
void 0 !== t.dy
? h.attr('dy', t.dy)
: 0 !== a && h.attr('dy', a),
t.tspan)
) {
var u = h.append('tspan');
u.attr('x', t.x),
void 0 !== t.fill && u.attr('fill', t.fill),
u.text(d);
} else h.text(d);
void 0 !== t.valign &&
void 0 !== t.textMargin &&
t.textMargin > 0 &&
((r += (h._groups || h)[0][0].getBBox().height),
(i = r)),
o.push(h);
}
return o;
},
o = function (e, t) {
var i,
n,
r,
o,
a = e.append('polygon');
return (
a.attr(
'points',
(i = t.x) +
',' +
(n = t.y) +
' ' +
(i + (r = t.width)) +
',' +
n +
' ' +
(i + r) +
',' +
(n + (o = t.height) - 7) +
' ' +
(i + r - 8.4) +
',' +
(n + o) +
' ' +
i +
',' +
(n + o)
),
a.attr('class', 'labelBox'),
(t.y = t.y + t.height / 2),
s(e, t),
a
);
},
a = -1,
l = function (e, t, i) {
var n = t.x + t.width / 2,
s = e.append('g');
0 === t.y &&
(a++,
s
.append('line')
.attr('id', 'actor' + a)
.attr('x1', n)
.attr('y1', 5)
.attr('x2', n)
.attr('y2', 2e3)
.attr('class', 'actor-line')
.attr('stroke-width', '0.5px')
.attr('stroke', '#999'));
var o = b();
(o.x = t.x),
(o.y = t.y),
(o.fill = '#eaeaea'),
(o.width = t.width),
(o.height = t.height),
(o.class = 'actor'),
(o.rx = 3),
(o.ry = 3),
r(s, o),
v(i)(
t.description,
s,
o.x,
o.y,
o.width,
o.height,
{ class: 'actor' },
i
);
},
c = function (e) {
return e.append('g');
},
d = function (e, t, i, n, s) {
var o = b(),
a = t.anchored;
(o.x = t.startx),
(o.y = t.starty),
(o.class = 'activation' + (s % 3)),
(o.width = t.stopx - t.startx),
(o.height = i - t.starty),
r(a, o);
},
h = function (e, t, i, n) {
var r = n.boxMargin,
a = n.boxTextMargin,
l = n.labelBoxHeight,
c = n.labelBoxWidth,
d = n.messageFontFamily,
h = n.messageFontSize,
u = n.messageFontWeight,
g = e.append('g'),
f = function (e, t, i, n) {
return g
.append('line')
.attr('x1', e)
.attr('y1', t)
.attr('x2', i)
.attr('y2', n)
.attr('class', 'loopLine');
};
f(t.startx, t.starty, t.stopx, t.starty),
f(t.stopx, t.starty, t.stopx, t.stopy),
f(t.startx, t.stopy, t.stopx, t.stopy),
f(t.startx, t.starty, t.startx, t.stopy),
void 0 !== t.sections &&
t.sections.forEach(function (e) {
f(t.startx, e.y, t.stopx, e.y).style(
'stroke-dasharray',
'3, 3'
);
});
var p = _();
(p.text = i),
(p.x = t.startx),
(p.y = t.starty),
(p.fontFamily = d),
(p.fontSize = h),
(p.fontWeight = u),
(p.anchor = 'middle'),
(p.valign = 'middle'),
(p.tspan = !1),
(p.width = c || 50),
(p.height = l || 20),
(p.textMargin = a),
(p.class = 'labelText'),
o(g, p),
((p = _()).text = t.title),
(p.x = t.startx + c / 2 + (t.stopx - t.startx) / 2),
(p.y = t.starty + r + a),
(p.anchor = 'middle'),
(p.valign = 'middle'),
(p.textMargin = a),
(p.class = 'loopText'),
(p.fontFamily = d),
(p.fontSize = h),
(p.fontWeight = u),
(p.wrap = !0);
var m = s(g, p);
return (
void 0 !== t.sectionTitles &&
t.sectionTitles.forEach(function (e, i) {
if (e.message) {
(p.text = e.message),
(p.x = t.startx + (t.stopx - t.startx) / 2),
(p.y = t.sections[i].y + r + a),
(p.class = 'loopText'),
(p.anchor = 'middle'),
(p.valign = 'middle'),
(p.tspan = !1),
(p.fontFamily = d),
(p.fontSize = h),
(p.fontWeight = u),
(p.wrap = t.wrap),
(m = s(g, p));
var n = Math.round(
m
.map(function (e) {
return (e._groups ||
e)[0][0].getBBox().height;
})
.reduce(function (e, t) {
return e + t;
})
);
t.sections[i].height += n - (r + a);
}
}),
(t.height = Math.round(t.stopy - t.starty)),
g
);
},
u = function (e, t) {
r(e, {
x: t.startx,
y: t.starty,
width: t.stopx - t.startx,
height: t.stopy - t.starty,
fill: t.fill,
class: 'rect',
}).lower();
},
g = function (e) {
e.append('defs')
.append('marker')
.attr('id', 'arrowhead')
.attr('refX', 9)
.attr('refY', 5)
.attr('markerUnits', 'userSpaceOnUse')
.attr('markerWidth', 12)
.attr('markerHeight', 12)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 0 0 L 10 5 L 0 10 z');
},
f = function (e) {
e.append('defs')
.append('marker')
.attr('id', 'filled-head')
.attr('refX', 18)
.attr('refY', 7)
.attr('markerWidth', 20)
.attr('markerHeight', 28)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');
},
p = function (e) {
e.append('defs')
.append('marker')
.attr('id', 'sequencenumber')
.attr('refX', 15)
.attr('refY', 15)
.attr('markerWidth', 60)
.attr('markerHeight', 40)
.attr('orient', 'auto')
.append('circle')
.attr('cx', 15)
.attr('cy', 15)
.attr('r', 6);
},
m = function (e) {
var t = e
.append('defs')
.append('marker')
.attr('id', 'crosshead')
.attr('markerWidth', 15)
.attr('markerHeight', 8)
.attr('orient', 'auto')
.attr('refX', 16)
.attr('refY', 4);
t
.append('path')
.attr('fill', 'black')
.attr('stroke', '#000000')
.style('stroke-dasharray', '0, 0')
.attr('stroke-width', '1px')
.attr('d', 'M 9,2 V 6 L16,4 Z'),
t
.append('path')
.attr('fill', 'none')
.attr('stroke', '#000000')
.style('stroke-dasharray', '0, 0')
.attr('stroke-width', '1px')
.attr('d', 'M 0,1 L 6,7 M 6,1 L 0,7');
},
_ = function () {
return {
x: 0,
y: 0,
fill: void 0,
anchor: void 0,
style: '#666',
width: void 0,
height: void 0,
textMargin: 0,
rx: 0,
ry: 0,
tspan: !0,
valign: void 0,
};
},
b = function () {
return {
x: 0,
y: 0,
fill: '#EDF2AE',
stroke: '#666',
width: 100,
anchor: 'start',
height: 100,
rx: 0,
ry: 0,
};
},
v = (function () {
function e(e, t, i, n, s, o, a) {
r(
t
.append('text')
.attr('x', i + s / 2)
.attr('y', n + o / 2 + 5)
.style('text-anchor', 'middle')
.text(e),
a
);
}
function t(e, t, i, s, o, a, l, c) {
for (
var d = c.actorFontSize,
h = c.actorFontFamily,
u = c.actorFontWeight,
g = e.split(n.default.lineBreakRegex),
f = 0;
f < g.length;
f++
) {
var p = f * d - (d * (g.length - 1)) / 2,
m = t
.append('text')
.attr('x', i + o / 2)
.attr('y', s)
.style('text-anchor', 'middle')
.style('font-size', d)
.style('font-weight', u)
.style('font-family', h);
m
.append('tspan')
.attr('x', i + o / 2)
.attr('dy', p)
.text(g[f]),
m
.attr('y', s + a / 2)
.attr('dominant-baseline', 'central')
.attr('alignment-baseline', 'central'),
r(m, l);
}
}
function i(e, i, n, s, o, a, l, c) {
var d = i.append('switch'),
h = d
.append('foreignObject')
.attr('x', n)
.attr('y', s)
.attr('width', o)
.attr('height', a)
.append('div')
.style('display', 'table')
.style('height', '100%')
.style('width', '100%');
h
.append('div')
.style('display', 'table-cell')
.style('text-align', 'center')
.style('vertical-align', 'middle')
.text(e),
t(e, d, n, s, o, a, l, c),
r(h, l);
}
function r(e, t) {
for (var i in t) t.hasOwnProperty(i) && e.attr(i, t[i]);
}
return function (n) {
return 'fo' === n.textPlacement
? i
: 'old' === n.textPlacement
? e
: t;
};
})();
t.default = {
drawRect: r,
drawText: s,
drawLabel: o,
drawActor: l,
anchorElement: c,
drawActivation: d,
drawLoop: h,
drawBackgroundRect: u,
insertArrowHead: g,
insertArrowFilledHead: f,
insertSequenceNumber: p,
insertArrowCrossHead: m,
getTextObj: _,
getNoteRect: b,
};
},
'./src/diagrams/state/id-cache.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'set', function () {
return r;
}),
i.d(t, 'get', function () {
return s;
}),
i.d(t, 'keys', function () {
return o;
}),
i.d(t, 'size', function () {
return a;
});
var n = {},
r = function (e, t) {
n[e] = t;
},
s = function (e) {
return n[e];
},
o = function () {
return Object.keys(n);
},
a = function () {
return o().length;
};
t.default = { get: s, set: r, keys: o, size: a };
},
'./src/diagrams/state/parser/stateDiagram.jison': function (
e,
t,
i
) {
(function (e, n) {
var r = (function () {
var e = function (e, t, i, n) {
for (i = i || {}, n = e.length; n--; i[e[n]] = t);
return i;
},
t = [1, 2],
i = [1, 3],
n = [1, 5],
r = [1, 7],
s = [2, 5],
o = [1, 15],
a = [1, 17],
l = [1, 19],
c = [1, 20],
d = [1, 21],
h = [1, 22],
u = [1, 28],
g = [1, 23],
f = [1, 24],
p = [1, 25],
m = [1, 26],
_ = [1, 29],
b = [1, 32],
v = [
1,
4,
5,
14,
15,
17,
19,
20,
22,
23,
24,
25,
26,
36,
39,
],
y = [
1,
4,
5,
12,
13,
14,
15,
17,
19,
20,
22,
23,
24,
25,
26,
36,
39,
],
w = [
1,
4,
5,
7,
14,
15,
17,
19,
20,
22,
23,
24,
25,
26,
36,
39,
],
C = [
4,
5,
14,
15,
17,
19,
20,
22,
23,
24,
25,
26,
36,
39,
],
S = {
trace: function () {},
yy: {},
symbols_: {
error: 2,
start: 3,
SPACE: 4,
NL: 5,
directive: 6,
SD: 7,
document: 8,
line: 9,
statement: 10,
idStatement: 11,
DESCR: 12,
'--\x3e': 13,
HIDE_EMPTY: 14,
scale: 15,
WIDTH: 16,
COMPOSIT_STATE: 17,
STRUCT_START: 18,
STRUCT_STOP: 19,
STATE_DESCR: 20,
AS: 21,
ID: 22,
FORK: 23,
JOIN: 24,
CONCURRENT: 25,
note: 26,
notePosition: 27,
NOTE_TEXT: 28,
openDirective: 29,
typeDirective: 30,
closeDirective: 31,
':': 32,
argDirective: 33,
eol: 34,
';': 35,
EDGE_STATE: 36,
left_of: 37,
right_of: 38,
open_directive: 39,
type_directive: 40,
arg_directive: 41,
close_directive: 42,
$accept: 0,
$end: 1,
},
terminals_: {
2: 'error',
4: 'SPACE',
5: 'NL',
7: 'SD',
12: 'DESCR',
13: '--\x3e',
14: 'HIDE_EMPTY',
15: 'scale',
16: 'WIDTH',
17: 'COMPOSIT_STATE',
18: 'STRUCT_START',
19: 'STRUCT_STOP',
20: 'STATE_DESCR',
21: 'AS',
22: 'ID',
23: 'FORK',
24: 'JOIN',
25: 'CONCURRENT',
26: 'note',
28: 'NOTE_TEXT',
32: ':',
35: ';',
36: 'EDGE_STATE',
37: 'left_of',
38: 'right_of',
39: 'open_directive',
40: 'type_directive',
41: 'arg_directive',
42: 'close_directive',
},
productions_: [
0,
[3, 2],
[3, 2],
[3, 2],
[3, 2],
[8, 0],
[8, 2],
[9, 2],
[9, 1],
[9, 1],
[10, 1],
[10, 2],
[10, 3],
[10, 4],
[10, 1],
[10, 2],
[10, 1],
[10, 4],
[10, 3],
[10, 6],
[10, 1],
[10, 1],
[10, 1],
[10, 4],
[10, 4],
[10, 1],
[6, 3],
[6, 5],
[34, 1],
[34, 1],
[11, 1],
[11, 1],
[27, 1],
[27, 1],
[29, 1],
[30, 1],
[33, 1],
[31, 1],
],
performAction: function (e, t, i, n, r, s, o) {
var a = s.length - 1;
switch (r) {
case 4:
return n.setRootDoc(s[a]), s[a];
case 5:
this.$ = [];
break;
case 6:
'nl' != s[a] &&
(s[a - 1].push(s[a]), (this.$ = s[a - 1]));
break;
case 7:
case 8:
this.$ = s[a];
break;
case 9:
this.$ = 'nl';
break;
case 10:
this.$ = {
stmt: 'state',
id: s[a],
type: 'default',
description: '',
};
break;
case 11:
this.$ = {
stmt: 'state',
id: s[a - 1],
type: 'default',
description: n.trimColon(s[a]),
};
break;
case 12:
this.$ = {
stmt: 'relation',
state1: {
stmt: 'state',
id: s[a - 2],
type: 'default',
description: '',
},
state2: {
stmt: 'state',
id: s[a],
type: 'default',
description: '',
},
};
break;
case 13:
this.$ = {
stmt: 'relation',
state1: {
stmt: 'state',
id: s[a - 3],
type: 'default',
description: '',
},
state2: {
stmt: 'state',
id: s[a - 1],
type: 'default',
description: '',
},
description: s[a].substr(1).trim(),
};
break;
case 17:
this.$ = {
stmt: 'state',
id: s[a - 3],
type: 'default',
description: '',
doc: s[a - 1],
};
break;
case 18:
var l = s[a],
c = s[a - 2].trim();
if (s[a].match(':')) {
var d = s[a].split(':');
(l = d[0]), (c = [c, d[1]]);
}
this.$ = {
stmt: 'state',
id: l,
type: 'default',
description: c,
};
break;
case 19:
this.$ = {
stmt: 'state',
id: s[a - 3],
type: 'default',
description: s[a - 5],
doc: s[a - 1],
};
break;
case 20:
this.$ = {
stmt: 'state',
id: s[a],
type: 'fork',
};
break;
case 21:
this.$ = {
stmt: 'state',
id: s[a],
type: 'join',
};
break;
case 22:
this.$ = {
stmt: 'state',
id: n.getDividerId(),
type: 'divider',
};
break;
case 23:
this.$ = {
stmt: 'state',
id: s[a - 1].trim(),
note: {
position: s[a - 2].trim(),
text: s[a].trim(),
},
};
break;
case 30:
case 31:
this.$ = s[a];
break;
case 34:
n.parseDirective('%%{', 'open_directive');
break;
case 35:
n.parseDirective(s[a], 'type_directive');
break;
case 36:
(s[a] = s[a].trim().replace(/'/g, '"')),
n.parseDirective(s[a], 'arg_directive');
break;
case 37:
n.parseDirective(
'}%%',
'close_directive',
'state'
);
}
},
table: [
{ 3: 1, 4: t, 5: i, 6: 4, 7: n, 29: 6, 39: r },
{ 1: [3] },
{ 3: 8, 4: t, 5: i, 6: 4, 7: n, 29: 6, 39: r },
{ 3: 9, 4: t, 5: i, 6: 4, 7: n, 29: 6, 39: r },
{ 3: 10, 4: t, 5: i, 6: 4, 7: n, 29: 6, 39: r },
e(
[
1,
4,
5,
14,
15,
17,
20,
22,
23,
24,
25,
26,
36,
39,
],
s,
{ 8: 11 }
),
{ 30: 12, 40: [1, 13] },
{ 40: [2, 34] },
{ 1: [2, 1] },
{ 1: [2, 2] },
{ 1: [2, 3] },
{
1: [2, 4],
4: o,
5: a,
6: 27,
9: 14,
10: 16,
11: 18,
14: l,
15: c,
17: d,
20: h,
22: u,
23: g,
24: f,
25: p,
26: m,
29: 6,
36: _,
39: r,
},
{ 31: 30, 32: [1, 31], 42: b },
e([32, 42], [2, 35]),
e(v, [2, 6]),
{
6: 27,
10: 33,
11: 18,
14: l,
15: c,
17: d,
20: h,
22: u,
23: g,
24: f,
25: p,
26: m,
29: 6,
36: _,
39: r,
},
e(v, [2, 8]),
e(v, [2, 9]),
e(v, [2, 10], { 12: [1, 34], 13: [1, 35] }),
e(v, [2, 14]),
{ 16: [1, 36] },
e(v, [2, 16], { 18: [1, 37] }),
{ 21: [1, 38] },
e(v, [2, 20]),
e(v, [2, 21]),
e(v, [2, 22]),
{ 27: 39, 28: [1, 40], 37: [1, 41], 38: [1, 42] },
e(v, [2, 25]),
e(y, [2, 30]),
e(y, [2, 31]),
e(w, [2, 26]),
{ 33: 43, 41: [1, 44] },
e(w, [2, 37]),
e(v, [2, 7]),
e(v, [2, 11]),
{ 11: 45, 22: u, 36: _ },
e(v, [2, 15]),
e(C, s, { 8: 46 }),
{ 22: [1, 47] },
{ 22: [1, 48] },
{ 21: [1, 49] },
{ 22: [2, 32] },
{ 22: [2, 33] },
{ 31: 50, 42: b },
{ 42: [2, 36] },
e(v, [2, 12], { 12: [1, 51] }),
{
4: o,
5: a,
6: 27,
9: 14,
10: 16,
11: 18,
14: l,
15: c,
17: d,
19: [1, 52],
20: h,
22: u,
23: g,
24: f,
25: p,
26: m,
29: 6,
36: _,
39: r,
},
e(v, [2, 18], { 18: [1, 53] }),
{ 28: [1, 54] },
{ 22: [1, 55] },
e(w, [2, 27]),
e(v, [2, 13]),
e(v, [2, 17]),
e(C, s, { 8: 56 }),
e(v, [2, 23]),
e(v, [2, 24]),
{
4: o,
5: a,
6: 27,
9: 14,
10: 16,
11: 18,
14: l,
15: c,
17: d,
19: [1, 57],
20: h,
22: u,
23: g,
24: f,
25: p,
26: m,
29: 6,
36: _,
39: r,
},
e(v, [2, 19]),
],
defaultActions: {
7: [2, 34],
8: [2, 1],
9: [2, 2],
10: [2, 3],
41: [2, 32],
42: [2, 33],
44: [2, 36],
},
parseError: function (e, t) {
if (!t.recoverable) {
var i = new Error(e);
throw ((i.hash = t), i);
}
this.trace(e);
},
parse: function (e) {
var t = this,
i = [0],
n = [],
r = [null],
s = [],
o = this.table,
a = '',
l = 0,
c = 0,
d = 0,
h = 2,
u = 1,
g = s.slice.call(arguments, 1),
f = Object.create(this.lexer),
p = { yy: {} };
for (var m in this.yy)
Object.prototype.hasOwnProperty.call(this.yy, m) &&
(p.yy[m] = this.yy[m]);
f.setInput(e, p.yy),
(p.yy.lexer = f),
(p.yy.parser = this),
void 0 === f.yylloc && (f.yylloc = {});
var _ = f.yylloc;
s.push(_);
var b = f.options && f.options.ranges;
function v() {
var e;
return (
'number' !=
typeof (e = n.pop() || f.lex() || u) &&
(e instanceof Array && (e = (n = e).pop()),
(e = t.symbols_[e] || e)),
e
);
}
'function' == typeof p.yy.parseError
? (this.parseError = p.yy.parseError)
: (this.parseError = Object.getPrototypeOf(
this
).parseError);
for (var y, w, C, S, k, x, L, M, D, N = {}; ; ) {
if (
((C = i[i.length - 1]),
this.defaultActions[C]
? (S = this.defaultActions[C])
: (null == y && (y = v()),
(S = o[C] && o[C][y])),
void 0 === S || !S.length || !S[0])
) {
var E = '';
for (x in ((D = []), o[C]))
this.terminals_[x] &&
x > h &&
D.push("'" + this.terminals_[x] + "'");
(E = f.showPosition
? 'Parse error on line ' +
(l + 1) +
':\n' +
f.showPosition() +
'\nExpecting ' +
D.join(', ') +
", got '" +
(this.terminals_[y] || y) +
"'"
: 'Parse error on line ' +
(l + 1) +
': Unexpected ' +
(y == u
? 'end of input'
: "'" + (this.terminals_[y] || y) + "'")),
this.parseError(E, {
text: f.match,
token: this.terminals_[y] || y,
line: f.yylineno,
loc: _,
expected: D,
});
}
if (S[0] instanceof Array && S.length > 1)
throw new Error(
'Parse Error: multiple actions possible at state: ' +
C +
', token: ' +
y
);
switch (S[0]) {
case 1:
i.push(y),
r.push(f.yytext),
s.push(f.yylloc),
i.push(S[1]),
(y = null),
w
? ((y = w), (w = null))
: ((c = f.yyleng),
(a = f.yytext),
(l = f.yylineno),
(_ = f.yylloc),
d > 0 && d--);
break;
case 2:
if (
((L = this.productions_[S[1]][1]),
(N.$ = r[r.length - L]),
(N._$ = {
first_line:
s[s.length - (L || 1)].first_line,
last_line: s[s.length - 1].last_line,
first_column:
s[s.length - (L || 1)].first_column,
last_column: s[s.length - 1].last_column,
}),
b &&
(N._$.range = [
s[s.length - (L || 1)].range[0],
s[s.length - 1].range[1],
]),
void 0 !==
(k = this.performAction.apply(
N,
[a, c, l, p.yy, S[1], r, s].concat(g)
)))
)
return k;
L &&
((i = i.slice(0, -1 * L * 2)),
(r = r.slice(0, -1 * L)),
(s = s.slice(0, -1 * L))),
i.push(this.productions_[S[1]][0]),
r.push(N.$),
s.push(N._$),
(M = o[i[i.length - 2]][i[i.length - 1]]),
i.push(M);
break;
case 3:
return !0;
}
}
return !0;
},
},
k = {
EOF: 1,
parseError: function (e, t) {
if (!this.yy.parser) throw new Error(e);
this.yy.parser.parseError(e, t);
},
setInput: function (e, t) {
return (
(this.yy = t || this.yy || {}),
(this._input = e),
(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 e = this._input[0];
return (
(this.yytext += e),
this.yyleng++,
this.offset++,
(this.match += e),
(this.matched += e),
e.match(/(?:\r\n?|\n).*/g)
? (this.yylineno++, this.yylloc.last_line++)
: this.yylloc.last_column++,
this.options.ranges && this.yylloc.range[1]++,
(this._input = this._input.slice(1)),
e
);
},
unput: function (e) {
var t = e.length,
i = e.split(/(?:\r\n?|\n)/g);
(this._input = e + this._input),
(this.yytext = this.yytext.substr(
0,
this.yytext.length - t
)),
(this.offset -= t);
var n = 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
)),
i.length - 1 && (this.yylineno -= i.length - 1);
var r = 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: i
? (i.length === n.length
? this.yylloc.first_column
: 0) +
n[n.length - i.length].length -
i[0].length
: this.yylloc.first_column - t,
}),
this.options.ranges &&
(this.yylloc.range = [
r[0],
r[0] + this.yyleng - t,
]),
(this.yyleng = this.yytext.length),
this
);
},
more: function () {
return (this._more = !0), this;
},
reject: function () {
return this.options.backtrack_lexer
? ((this._backtrack = !0), this)
: 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).\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
less: function (e) {
this.unput(this.match.slice(e));
},
pastInput: function () {
var e = this.matched.substr(
0,
this.matched.length - this.match.length
);
return (
(e.length > 20 ? '...' : '') +
e.substr(-20).replace(/\n/g, '')
);
},
upcomingInput: function () {
var e = this.match;
return (
e.length < 20 &&
(e += this._input.substr(0, 20 - e.length)),
(
e.substr(0, 20) + (e.length > 20 ? '...' : '')
).replace(/\n/g, '')
);
},
showPosition: function () {
var e = this.pastInput(),
t = new Array(e.length + 1).join('-');
return e + this.upcomingInput() + '\n' + t + '^';
},
test_match: function (e, t) {
var i, n, r;
if (
(this.options.backtrack_lexer &&
((r = {
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 &&
(r.yylloc.range = this.yylloc.range.slice(0))),
(n = e[0].match(/(?:\r\n?|\n).*/g)) &&
(this.yylineno += n.length),
(this.yylloc = {
first_line: this.yylloc.last_line,
last_line: this.yylineno + 1,
first_column: this.yylloc.last_column,
last_column: n
? n[n.length - 1].length -
n[n.length - 1].match(/\r?\n?/)[0].length
: this.yylloc.last_column + e[0].length,
}),
(this.yytext += e[0]),
(this.match += e[0]),
(this.matches = e),
(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(e[0].length)),
(this.matched += e[0]),
(i = this.performAction.call(
this,
this.yy,
this,
t,
this.conditionStack[
this.conditionStack.length - 1
]
)),
this.done && this._input && (this.done = !1),
i)
)
return i;
if (this._backtrack) {
for (var s in r) this[s] = r[s];
return !1;
}
return !1;
},
next: function () {
if (this.done) return this.EOF;
var e, t, i, n;
this._input || (this.done = !0),
this._more ||
((this.yytext = ''), (this.match = ''));
for (
var r = this._currentRules(), s = 0;
s < r.length;
s++
)
if (
(i = this._input.match(this.rules[r[s]])) &&
(!t || i[0].length > t[0].length)
) {
if (
((t = i), (n = s), this.options.backtrack_lexer)
) {
if (!1 !== (e = this.test_match(i, r[s])))
return e;
if (this._backtrack) {
t = !1;
continue;
}
return !1;
}
if (!this.options.flex) break;
}
return t
? !1 !== (e = this.test_match(t, r[n])) && e
: '' === this._input
? this.EOF
: this.parseError(
'Lexical error on line ' +
(this.yylineno + 1) +
'. Unrecognized text.\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
lex: function () {
return this.next() || this.lex();
},
begin: function (e) {
this.conditionStack.push(e);
},
popState: function () {
return this.conditionStack.length - 1 > 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 (e) {
return (e =
this.conditionStack.length -
1 -
Math.abs(e || 0)) >= 0
? this.conditionStack[e]
: 'INITIAL';
},
pushState: function (e) {
this.begin(e);
},
stateStackSize: function () {
return this.conditionStack.length;
},
options: { 'case-insensitive': !0 },
performAction: function (e, t, i, n) {
switch (i) {
case 0:
return this.begin('open_directive'), 39;
case 1:
return this.begin('type_directive'), 40;
case 2:
return (
this.popState(), this.begin('arg_directive'), 32
);
case 3:
return this.popState(), this.popState(), 42;
case 4:
return 41;
case 5:
break;
case 6:
console.log('Crap after close');
break;
case 7:
return 5;
case 8:
case 9:
case 10:
case 11:
break;
case 12:
return this.pushState('SCALE'), 15;
case 13:
return 16;
case 14:
this.popState();
break;
case 15:
this.pushState('STATE');
break;
case 16:
return (
this.popState(),
(t.yytext = t.yytext.slice(0, -8).trim()),
23
);
case 17:
return (
this.popState(),
(t.yytext = t.yytext.slice(0, -8).trim()),
24
);
case 18:
return (
this.popState(),
(t.yytext = t.yytext.slice(0, -8).trim()),
23
);
case 19:
return (
this.popState(),
(t.yytext = t.yytext.slice(0, -8).trim()),
24
);
case 20:
this.begin('STATE_STRING');
break;
case 21:
return (
this.popState(),
this.pushState('STATE_ID'),
'AS'
);
case 22:
return this.popState(), 'ID';
case 23:
this.popState();
break;
case 24:
return 'STATE_DESCR';
case 25:
return 17;
case 26:
this.popState();
break;
case 27:
return (
this.popState(), this.pushState('struct'), 18
);
case 28:
return this.popState(), 19;
case 29:
break;
case 30:
return this.begin('NOTE'), 26;
case 31:
return (
this.popState(), this.pushState('NOTE_ID'), 37
);
case 32:
return (
this.popState(), this.pushState('NOTE_ID'), 38
);
case 33:
this.popState(), this.pushState('FLOATING_NOTE');
break;
case 34:
return (
this.popState(),
this.pushState('FLOATING_NOTE_ID'),
'AS'
);
case 35:
break;
case 36:
return 'NOTE_TEXT';
case 37:
return this.popState(), 'ID';
case 38:
return (
this.popState(), this.pushState('NOTE_TEXT'), 22
);
case 39:
return (
this.popState(),
(t.yytext = t.yytext.substr(2).trim()),
28
);
case 40:
return (
this.popState(),
(t.yytext = t.yytext.slice(0, -8).trim()),
28
);
case 41:
case 42:
return 7;
case 43:
return 14;
case 44:
return 36;
case 45:
return 22;
case 46:
return (t.yytext = t.yytext.trim()), 12;
case 47:
return 13;
case 48:
return 25;
case 49:
return 5;
case 50:
return 'INVALID';
}
},
rules: [
/^(?:%%\{)/i,
/^(?:((?:(?!\}%%)[^:.])*))/i,
/^(?::)/i,
/^(?:\}%%)/i,
/^(?:((?:(?!\}%%).|\n)*))/i,
/^(?:%%(?!\{)[^\n]*)/i,
/^(?:[^\}]%%[^\n]*)/i,
/^(?:[\n]+)/i,
/^(?:[\s]+)/i,
/^(?:((?!\n)\s)+)/i,
/^(?:#[^\n]*)/i,
/^(?:%[^\n]*)/i,
/^(?:scale\s+)/i,
/^(?:\d+)/i,
/^(?:\s+width\b)/i,
/^(?:state\s+)/i,
/^(?:.*<>)/i,
/^(?:.*<>)/i,
/^(?:.*\[\[fork\]\])/i,
/^(?:.*\[\[join\]\])/i,
/^(?:["])/i,
/^(?:\s*as\s+)/i,
/^(?:[^\n\{]*)/i,
/^(?:["])/i,
/^(?:[^"]*)/i,
/^(?:[^\n\s\{]+)/i,
/^(?:\n)/i,
/^(?:\{)/i,
/^(?:\})/i,
/^(?:[\n])/i,
/^(?:note\s+)/i,
/^(?:left of\b)/i,
/^(?:right of\b)/i,
/^(?:")/i,
/^(?:\s*as\s*)/i,
/^(?:["])/i,
/^(?:[^"]*)/i,
/^(?:[^\n]*)/i,
/^(?:\s*[^:\n\s\-]+)/i,
/^(?:\s*:[^:\n;]+)/i,
/^(?:[\s\S]*?end note\b)/i,
/^(?:stateDiagram\s+)/i,
/^(?:stateDiagram-v2\s+)/i,
/^(?:hide empty description\b)/i,
/^(?:\[\*\])/i,
/^(?:[^:\n\s\-\{]+)/i,
/^(?:\s*:[^:\n;]+)/i,
/^(?:-->)/i,
/^(?:--)/i,
/^(?:$)/i,
/^(?:.)/i,
],
conditions: {
LINE: { rules: [9, 10], inclusive: !1 },
close_directive: { rules: [9, 10], inclusive: !1 },
arg_directive: {
rules: [3, 4, 9, 10],
inclusive: !1,
},
type_directive: {
rules: [2, 3, 9, 10],
inclusive: !1,
},
open_directive: { rules: [1, 9, 10], inclusive: !1 },
struct: {
rules: [9, 10, 15, 28, 29, 30, 44, 45, 46, 47, 48],
inclusive: !1,
},
FLOATING_NOTE_ID: { rules: [37], inclusive: !1 },
FLOATING_NOTE: { rules: [34, 35, 36], inclusive: !1 },
NOTE_TEXT: { rules: [39, 40], inclusive: !1 },
NOTE_ID: { rules: [38], inclusive: !1 },
NOTE: { rules: [31, 32, 33], inclusive: !1 },
SCALE: { rules: [13, 14], inclusive: !1 },
ALIAS: { rules: [], inclusive: !1 },
STATE_ID: { rules: [22], inclusive: !1 },
STATE_STRING: { rules: [23, 24], inclusive: !1 },
FORK_STATE: { rules: [], inclusive: !1 },
STATE: {
rules: [9, 10, 16, 17, 18, 19, 20, 21, 25, 26, 27],
inclusive: !1,
},
ID: { rules: [9, 10], inclusive: !1 },
INITIAL: {
rules: [
0,
5,
6,
7,
8,
10,
11,
12,
15,
27,
30,
41,
42,
43,
44,
45,
46,
47,
49,
50,
],
inclusive: !0,
},
},
};
function x() {
this.yy = {};
}
return (
(S.lexer = k), (x.prototype = S), (S.Parser = x), new x()
);
})();
(t.parser = r),
(t.Parser = r.Parser),
(t.parse = function () {
return r.parse.apply(r, arguments);
}),
(t.main = function (n) {
n[1] ||
(console.log('Usage: ' + n[0] + ' FILE'), e.exit(1));
var r = i(
'./node_modules/node-libs-browser/mock/empty.js'
).readFileSync(
i('./node_modules/path-browserify/index.js').normalize(
n[1]
),
'utf8'
);
return t.parser.parse(r);
}),
i.c[i.s] === n && t.main(e.argv.slice(1));
}.call(
this,
i('./node_modules/process/browser.js'),
i('./node_modules/webpack/buildin/module.js')(e)
));
},
'./src/diagrams/state/shapes.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'drawStartState', function () {
return d;
}),
i.d(t, 'drawDivider', function () {
return h;
}),
i.d(t, 'drawSimpleState', function () {
return u;
}),
i.d(t, 'drawDescrState', function () {
return g;
}),
i.d(t, 'addTitleAndBox', function () {
return f;
}),
i.d(t, 'drawText', function () {
return p;
}),
i.d(t, 'drawNote', function () {
return m;
}),
i.d(t, 'drawState', function () {
return _;
}),
i.d(t, 'drawEdge', function () {
return v;
});
var n = i('d3'),
r = i('./src/diagrams/state/id-cache.js'),
s = i('./src/diagrams/state/stateDb.js'),
o = i('./src/utils.js'),
a = i('./src/diagrams/common/common.js'),
l = i('./src/config.js'),
c = i('./src/logger.js'),
d = function (e) {
return e
.append('circle')
.attr('class', 'start-state')
.attr('r', Object(l.getConfig)().state.sizeUnit)
.attr(
'cx',
Object(l.getConfig)().state.padding +
Object(l.getConfig)().state.sizeUnit
)
.attr(
'cy',
Object(l.getConfig)().state.padding +
Object(l.getConfig)().state.sizeUnit
);
},
h = function (e) {
return e
.append('line')
.style('stroke', 'grey')
.style('stroke-dasharray', '3')
.attr('x1', Object(l.getConfig)().state.textHeight)
.attr('class', 'divider')
.attr('x2', 2 * Object(l.getConfig)().state.textHeight)
.attr('y1', 0)
.attr('y2', 0);
},
u = function (e, t) {
var i = e
.append('text')
.attr('x', 2 * Object(l.getConfig)().state.padding)
.attr(
'y',
Object(l.getConfig)().state.textHeight +
2 * Object(l.getConfig)().state.padding
)
.attr('font-size', Object(l.getConfig)().state.fontSize)
.attr('class', 'state-title')
.text(t.id),
n = i.node().getBBox();
return (
e
.insert('rect', ':first-child')
.attr('x', Object(l.getConfig)().state.padding)
.attr('y', Object(l.getConfig)().state.padding)
.attr(
'width',
n.width + 2 * Object(l.getConfig)().state.padding
)
.attr(
'height',
n.height + 2 * Object(l.getConfig)().state.padding
)
.attr('rx', Object(l.getConfig)().state.radius),
i
);
},
g = function (e, t) {
var i = e
.append('text')
.attr('x', 2 * Object(l.getConfig)().state.padding)
.attr(
'y',
Object(l.getConfig)().state.textHeight +
1.3 * Object(l.getConfig)().state.padding
)
.attr('font-size', Object(l.getConfig)().state.fontSize)
.attr('class', 'state-title')
.text(t.descriptions[0])
.node()
.getBBox(),
n = i.height,
r = e
.append('text')
.attr('x', Object(l.getConfig)().state.padding)
.attr(
'y',
n +
0.4 * Object(l.getConfig)().state.padding +
Object(l.getConfig)().state.dividerMargin +
Object(l.getConfig)().state.textHeight
)
.attr('class', 'state-description'),
s = !0,
o = !0;
t.descriptions.forEach(function (e) {
s ||
((function (e, t, i) {
var n = e
.append('tspan')
.attr('x', 2 * Object(l.getConfig)().state.padding)
.text(t);
i ||
n.attr(
'dy',
Object(l.getConfig)().state.textHeight
);
})(r, e, o),
(o = !1)),
(s = !1);
});
var a = e
.append('line')
.attr('x1', Object(l.getConfig)().state.padding)
.attr(
'y1',
Object(l.getConfig)().state.padding +
n +
Object(l.getConfig)().state.dividerMargin / 2
)
.attr(
'y2',
Object(l.getConfig)().state.padding +
n +
Object(l.getConfig)().state.dividerMargin / 2
)
.attr('class', 'descr-divider'),
c = r.node().getBBox(),
d = Math.max(c.width, i.width);
return (
a.attr('x2', d + 3 * Object(l.getConfig)().state.padding),
e
.insert('rect', ':first-child')
.attr('x', Object(l.getConfig)().state.padding)
.attr('y', Object(l.getConfig)().state.padding)
.attr(
'width',
d + 2 * Object(l.getConfig)().state.padding
)
.attr(
'height',
c.height + n + 2 * Object(l.getConfig)().state.padding
)
.attr('rx', Object(l.getConfig)().state.radius),
e
);
},
f = function (e, t, i) {
var n,
r = Object(l.getConfig)().state.padding,
s = 2 * Object(l.getConfig)().state.padding,
o = e.node().getBBox(),
a = o.width,
c = o.x,
d = e
.append('text')
.attr('x', 0)
.attr('y', Object(l.getConfig)().state.titleShift)
.attr('font-size', Object(l.getConfig)().state.fontSize)
.attr('class', 'state-title')
.text(t.id),
h = d.node().getBBox().width + s,
u = Math.max(h, a);
u === a && (u += s);
var g = e.node().getBBox();
t.doc,
(n = c - r),
h > a && (n = (a - u) / 2 + r),
Math.abs(c - g.x) < r && h > a && (n = c - (h - a) / 2);
var f = 1 - Object(l.getConfig)().state.textHeight;
return (
e
.insert('rect', ':first-child')
.attr('x', n)
.attr('y', f)
.attr('class', i ? 'alt-composit' : 'composit')
.attr('width', u)
.attr(
'height',
g.height +
Object(l.getConfig)().state.textHeight +
Object(l.getConfig)().state.titleShift +
1
)
.attr('rx', '0'),
d.attr('x', n + r),
h <= a && d.attr('x', c + (u - s) / 2 - h / 2 + r),
e
.insert('rect', ':first-child')
.attr('x', n)
.attr(
'y',
Object(l.getConfig)().state.titleShift -
Object(l.getConfig)().state.textHeight -
Object(l.getConfig)().state.padding
)
.attr('width', u)
.attr(
'height',
3 * Object(l.getConfig)().state.textHeight
)
.attr('rx', Object(l.getConfig)().state.radius),
e
.insert('rect', ':first-child')
.attr('x', n)
.attr(
'y',
Object(l.getConfig)().state.titleShift -
Object(l.getConfig)().state.textHeight -
Object(l.getConfig)().state.padding
)
.attr('width', u)
.attr(
'height',
g.height +
3 +
2 * Object(l.getConfig)().state.textHeight
)
.attr('rx', Object(l.getConfig)().state.radius),
e
);
},
p = function (e, t) {
var i = t.text.replace(a.default.lineBreakRegex, ' '),
n = e.append('text');
n.attr('x', t.x),
n.attr('y', t.y),
n.style('text-anchor', t.anchor),
n.attr('fill', t.fill),
void 0 !== t.class && n.attr('class', t.class);
var r = n.append('tspan');
return (
r.attr('x', t.x + 2 * t.textMargin),
r.attr('fill', t.fill),
r.text(i),
n
);
},
m = function (e, t) {
t.attr('class', 'state-note');
var i = t
.append('rect')
.attr('x', 0)
.attr('y', Object(l.getConfig)().state.padding),
n = (function (e, t, i, n) {
var r = 0,
s = n.append('text');
s.style('text-anchor', 'start'),
s.attr('class', 'noteText');
var o = e.replace(/\r\n/g, '
'),
c = (o = o.replace(/\n/g, '
')).split(
a.default.lineBreakRegex
),
d = 1.25 * Object(l.getConfig)().state.noteMargin,
h = !0,
u = !1,
g = void 0;
try {
for (
var f, p = c[Symbol.iterator]();
!(h = (f = p.next()).done);
h = !0
) {
var m = f.value.trim();
if (m.length > 0) {
var _ = s.append('tspan');
_.text(m),
0 === d && (d += _.node().getBBox().height),
(r += d),
_.attr(
'x',
0 + Object(l.getConfig)().state.noteMargin
),
_.attr(
'y',
0 +
r +
1.25 *
Object(l.getConfig)().state.noteMargin
);
}
}
} catch (e) {
(u = !0), (g = e);
} finally {
try {
h || null == p.return || p.return();
} finally {
if (u) throw g;
}
}
return {
textWidth: s.node().getBBox().width,
textHeight: r,
};
})(e, 0, 0, t.append('g')),
r = n.textWidth,
s = n.textHeight;
return (
i.attr(
'height',
s + 2 * Object(l.getConfig)().state.noteMargin
),
i.attr(
'width',
r + 2 * Object(l.getConfig)().state.noteMargin
),
i
);
},
_ = function (e, t) {
var i = t.id,
n = { id: i, label: t.id, width: 0, height: 0 },
s = e
.append('g')
.attr('id', i)
.attr('class', 'stateGroup');
'start' === t.type && d(s),
'end' === t.type &&
(function (e) {
e
.append('circle')
.attr('class', 'end-state-outer')
.attr(
'r',
Object(l.getConfig)().state.sizeUnit +
Object(l.getConfig)().state.miniPadding
)
.attr(
'cx',
Object(l.getConfig)().state.padding +
Object(l.getConfig)().state.sizeUnit +
Object(l.getConfig)().state.miniPadding
)
.attr(
'cy',
Object(l.getConfig)().state.padding +
Object(l.getConfig)().state.sizeUnit +
Object(l.getConfig)().state.miniPadding
),
e
.append('circle')
.attr('class', 'end-state-inner')
.attr('r', Object(l.getConfig)().state.sizeUnit)
.attr(
'cx',
Object(l.getConfig)().state.padding +
Object(l.getConfig)().state.sizeUnit +
2
)
.attr(
'cy',
Object(l.getConfig)().state.padding +
Object(l.getConfig)().state.sizeUnit +
2
);
})(s),
('fork' !== t.type && 'join' !== t.type) ||
(function (e, t) {
var i = Object(l.getConfig)().state.forkWidth,
n = Object(l.getConfig)().state.forkHeight;
if (t.parentId) {
var r = i;
(i = n), (n = r);
}
e.append('rect')
.style('stroke', 'black')
.style('fill', 'black')
.attr('width', i)
.attr('height', n)
.attr('x', Object(l.getConfig)().state.padding)
.attr('y', Object(l.getConfig)().state.padding);
})(s, t),
'note' === t.type && m(t.note.text, s),
'divider' === t.type && h(s),
'default' === t.type &&
0 === t.descriptions.length &&
u(s, t),
'default' === t.type &&
t.descriptions.length > 0 &&
g(s, t);
var o = s.node().getBBox();
return (
(n.width =
o.width + 2 * Object(l.getConfig)().state.padding),
(n.height =
o.height + 2 * Object(l.getConfig)().state.padding),
r.default.set(i, n),
n
);
},
b = 0,
v = function (e, t, i) {
t.points = t.points.filter(function (e) {
return !Number.isNaN(e.y);
});
var r = t.points,
d = Object(n.line)()
.x(function (e) {
return e.x;
})
.y(function (e) {
return e.y;
})
.curve(n.curveBasis),
h = e
.append('path')
.attr('d', d(r))
.attr('id', 'edge' + b)
.attr('class', 'transition'),
u = '';
if (
(Object(l.getConfig)().state.arrowMarkerAbsolute &&
(u = (u = (u =
window.location.protocol +
'//' +
window.location.host +
window.location.pathname +
window.location.search).replace(
/\(/g,
'\\('
)).replace(/\)/g, '\\)')),
h.attr(
'marker-end',
'url(' +
u +
'#' +
(function (e) {
switch (e) {
case s.default.relationType.AGGREGATION:
return 'aggregation';
case s.default.relationType.EXTENSION:
return 'extension';
case s.default.relationType.COMPOSITION:
return 'composition';
case s.default.relationType.DEPENDENCY:
return 'dependency';
}
})(s.default.relationType.DEPENDENCY) +
'End)'
),
void 0 !== i.title)
) {
for (
var g = e.append('g').attr('class', 'stateLabel'),
f = o.default.calcLabelPosition(t.points),
p = f.x,
m = f.y,
_ = a.default.getRows(i.title),
v = 0,
y = [],
w = 0,
C = 0,
S = 0;
S <= _.length;
S++
) {
var k = g
.append('text')
.attr('text-anchor', 'middle')
.text(_[S])
.attr('x', p)
.attr('y', m + v),
x = k.node().getBBox();
if (
((w = Math.max(w, x.width)),
(C = Math.min(C, x.x)),
c.log.info(x.x, p, m + v),
0 === v)
) {
var L = k.node().getBBox();
(v = L.height), c.log.info('Title height', v, m);
}
y.push(k);
}
var M = v * _.length;
if (_.length > 1) {
var D = (_.length - 1) * v * 0.5;
y.forEach(function (e, t) {
return e.attr('y', m + t * v - D);
}),
(M = v * _.length);
}
var N = g.node().getBBox();
g
.insert('rect', ':first-child')
.attr('class', 'box')
.attr(
'x',
p - w / 2 - Object(l.getConfig)().state.padding / 2
)
.attr(
'y',
m -
M / 2 -
Object(l.getConfig)().state.padding / 2 -
3.5
)
.attr('width', w + Object(l.getConfig)().state.padding)
.attr(
'height',
M + Object(l.getConfig)().state.padding
),
c.log.info(N);
}
b++;
};
},
'./src/diagrams/state/stateDb.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'parseDirective', function () {
return d;
}),
i.d(t, 'addState', function () {
return p;
}),
i.d(t, 'clear', function () {
return m;
}),
i.d(t, 'getState', function () {
return _;
}),
i.d(t, 'getStates', function () {
return b;
}),
i.d(t, 'logDocuments', function () {
return v;
}),
i.d(t, 'getRelations', function () {
return y;
}),
i.d(t, 'addRelation', function () {
return w;
}),
i.d(t, 'cleanupLabel', function () {
return S;
}),
i.d(t, 'lineType', function () {
return k;
}),
i.d(t, 'relationType', function () {
return M;
});
var n = i('./src/logger.js'),
r = i('./src/utils.js'),
s = i('./src/mermaidAPI.js'),
o = i('./src/config.js');
function a(e) {
return (a =
'function' == typeof Symbol &&
'symbol' == typeof Symbol.iterator
? function (e) {
return typeof e;
}
: function (e) {
return e &&
'function' == typeof Symbol &&
e.constructor === Symbol &&
e !== Symbol.prototype
? 'symbol'
: typeof e;
})(e);
}
var l = function (e) {
return JSON.parse(JSON.stringify(e));
},
c = [],
d = function (e, t, i) {
s.default.parseDirective(this, e, t, i);
},
h = function e(t, i, n) {
if ('relation' === i.stmt)
e(t, i.state1, !0), e(t, i.state2, !1);
else if (
('state' === i.stmt &&
'[*]' === i.id &&
((i.id = n ? t.id + '_start' : t.id + '_end'),
(i.start = n)),
i.doc)
) {
var s = [],
o = 0,
a = [];
for (o = 0; o < i.doc.length; o++)
if ('divider' === i.doc[o].type) {
var c = l(i.doc[o]);
(c.doc = l(a)), s.push(c), (a = []);
} else a.push(i.doc[o]);
if (s.length > 0 && a.length > 0) {
var d = {
stmt: 'state',
id: Object(r.generateId)(),
type: 'divider',
doc: l(a),
};
s.push(l(d)), (i.doc = s);
}
i.doc.forEach(function (t) {
return e(i, t, !0);
});
}
},
u = { root: { relations: [], states: {}, documents: {} } },
g = u.root,
f = 0,
p = function (e, t, i, r, s) {
void 0 === g.states[e]
? (g.states[e] = {
id: e,
descriptions: [],
type: t,
doc: i,
note: s,
})
: (g.states[e].doc || (g.states[e].doc = i),
g.states[e].type || (g.states[e].type = t)),
r &&
(n.log.info('Adding state ', e, r),
'string' == typeof r && C(e, r.trim()),
'object' === a(r) &&
r.forEach(function (t) {
return C(e, t.trim());
})),
s && (g.states[e].note = s);
},
m = function () {
(g = (u = {
root: { relations: [], states: {}, documents: {} },
}).root),
(g = u.root),
(f = 0),
(L = []);
},
_ = function (e) {
return g.states[e];
},
b = function () {
return g.states;
},
v = function () {
n.log.info('Documents = ', u);
},
y = function () {
return g.relations;
},
w = function (e, t, i) {
var n = e,
r = t,
s = 'default',
o = 'default';
'[*]' === e && ((n = 'start' + ++f), (s = 'start')),
'[*]' === t && ((r = 'end' + f), (o = 'end')),
p(n, s),
p(r, o),
g.relations.push({ id1: n, id2: r, title: i });
},
C = function (e, t) {
var i = g.states[e],
n = t;
':' === n[0] && (n = n.substr(1).trim()),
i.descriptions.push(n);
},
S = function (e) {
return ':' === e.substring(0, 1)
? e.substr(2).trim()
: e.trim();
},
k = { LINE: 0, DOTTED_LINE: 1 },
x = 0,
L = [],
M = {
AGGREGATION: 0,
EXTENSION: 1,
COMPOSITION: 2,
DEPENDENCY: 3,
};
t.default = {
parseDirective: d,
getConfig: function () {
return o.getConfig().state;
},
addState: p,
clear: m,
getState: _,
getStates: b,
getRelations: y,
getClasses: function () {
return L;
},
getDirection: function () {
return 'TB';
},
addRelation: w,
getDividerId: function () {
return 'divider-id-' + ++x;
},
cleanupLabel: S,
lineType: k,
relationType: M,
logDocuments: v,
getRootDoc: function () {
return c;
},
setRootDoc: function (e) {
n.log.info('Setting root doc', e), (c = e);
},
getRootDocV2: function () {
return (
h({ id: 'root' }, { id: 'root', doc: c }, !0),
{ id: 'root', doc: c }
);
},
extract: function (e) {
var t;
(t = e.doc ? e.doc : e),
n.log.info(t),
m(),
n.log.info('Extract', t),
t.forEach(function (e) {
'state' === e.stmt &&
p(e.id, e.type, e.doc, e.description, e.note),
'relation' === e.stmt &&
w(e.state1.id, e.state2.id, e.description);
});
},
trimColon: function (e) {
return e && ':' === e[0] ? e.substr(1).trim() : e.trim();
},
};
},
'./src/diagrams/state/stateRenderer-v2.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'setConf', function () {
return f;
}),
i.d(t, 'getClasses', function () {
return m;
}),
i.d(t, 'draw', function () {
return y;
});
var n = i('graphlib'),
r = i.n(n),
s = i('d3'),
o = i('./src/diagrams/state/stateDb.js'),
a = i('./src/diagrams/state/parser/stateDiagram.jison'),
l = i.n(a),
c = i('./src/config.js'),
d = i('./src/dagre-wrapper/index.js'),
h = i('./src/logger.js'),
u = i('./src/utils.js'),
g = {},
f = function (e) {
for (var t = Object.keys(e), i = 0; i < t.length; i++)
g[t[i]] = e[t[i]];
},
p = {},
m = function (e) {
h.log.trace('Extracting classes'), o.default.clear();
var t = l.a.parser;
return (
(t.yy = o.default), t.parse(e), o.default.getClasses()
);
},
_ = function (e, t, i, n) {
if ('root' !== i.id) {
var r = 'rect';
!0 === i.start && (r = 'start'),
!1 === i.start && (r = 'end'),
'default' !== i.type && (r = i.type),
p[i.id] ||
(p[i.id] = {
id: i.id,
shape: r,
description: i.id,
classes: 'statediagram-state',
}),
i.description &&
(Array.isArray(p[i.id].description)
? ((p[i.id].shape = 'rectWithTitle'),
p[i.id].description.push(i.description))
: p[i.id].description.length > 0
? ((p[i.id].shape = 'rectWithTitle'),
p[i.id].description === i.id
? (p[i.id].description = [i.description])
: (p[i.id].description = [
p[i.id].description,
i.description,
]))
: ((p[i.id].shape = 'rect'),
(p[i.id].description = i.description))),
!p[i.id].type &&
i.doc &&
(h.log.info('Setting cluser for ', i.id),
(p[i.id].type = 'group'),
(p[i.id].shape =
'divider' === i.type
? 'divider'
: 'roundedWithTitle'),
(p[i.id].classes =
p[i.id].classes +
' ' +
(n
? 'statediagram-cluster statediagram-cluster-alt'
: 'statediagram-cluster')));
var s = {
labelStyle: '',
shape: p[i.id].shape,
labelText: p[i.id].description,
classes: p[i.id].classes,
style: '',
id: i.id,
domId: 'state-' + i.id + '-' + b,
type: p[i.id].type,
padding: 15,
};
if (i.note) {
var o = {
labelStyle: '',
shape: 'note',
labelText: i.note.text,
classes: 'statediagram-note',
style: '',
id: i.id + '----note',
domId: 'state-' + i.id + '----note-' + b,
type: p[i.id].type,
padding: 15,
},
a = {
labelStyle: '',
shape: 'noteGroup',
labelText: i.note.text,
classes: p[i.id].classes,
style: '',
id: i.id + '----parent',
domId: 'state-' + i.id + '----parent-' + b,
type: 'group',
padding: 0,
};
b++,
e.setNode(i.id + '----parent', a),
e.setNode(o.id, o),
e.setNode(i.id, s),
e.setParent(i.id, i.id + '----parent'),
e.setParent(o.id, i.id + '----parent');
var l = i.id,
c = o.id;
'left of' === i.note.position &&
((l = o.id), (c = i.id)),
e.setEdge(l, c, {
arrowhead: 'none',
arrowType: '',
style: 'fill:none',
labelStyle: '',
classes: 'transition note-edge',
arrowheadStyle: 'fill: #333',
labelpos: 'c',
labelType: 'text',
thickness: 'normal',
});
} else e.setNode(i.id, s);
}
t &&
'root' !== t.id &&
(h.log.info(
'Setting node ',
i.id,
' to be child of its parent ',
t.id
),
e.setParent(i.id, t.id)),
i.doc &&
(h.log.info('Adding nodes children '),
v(e, i, i.doc, !n));
},
b = 0,
v = function (e, t, i, n) {
(b = 0),
h.log.trace('items', i),
i.forEach(function (i) {
if ('state' === i.stmt || 'default' === i.stmt)
_(e, t, i, n);
else if ('relation' === i.stmt) {
_(e, t, i.state1, n), _(e, t, i.state2, n);
var r = {
id: 'edge' + b,
arrowhead: 'normal',
arrowTypeEnd: 'arrow_barb',
style: 'fill:none',
labelStyle: '',
label: i.description,
arrowheadStyle: 'fill: #333',
labelpos: 'c',
labelType: 'text',
thickness: 'normal',
classes: 'transition',
},
s = i.state1.id,
o = i.state2.id;
e.setEdge(s, o, r, b), b++;
}
});
},
y = function (e, t) {
h.log.info('Drawing state diagram (v2)', t),
o.default.clear(),
(p = {});
var i = l.a.parser;
(i.yy = o.default), i.parse(e);
var n = o.default.getDirection();
void 0 === n && (n = 'LR');
var a = Object(c.getConfig)().state,
g = a.nodeSpacing || 50,
f = a.rankSpacing || 50,
m = new r.a.Graph({ multigraph: !0, compound: !0 })
.setGraph({
rankdir: 'TB',
nodesep: g,
ranksep: f,
marginx: 8,
marginy: 8,
})
.setDefaultEdgeLabel(function () {
return {};
});
h.log.info(o.default.getRootDocV2()),
o.default.extract(o.default.getRootDocV2()),
h.log.info(o.default.getRootDocV2()),
_(m, void 0, o.default.getRootDocV2(), !0);
var b = Object(s.select)('[id="'.concat(t, '"]')),
v = Object(s.select)('#' + t + ' g');
Object(d.render)(v, m, ['barb'], 'statediagram', t);
var y = b.node().getBBox(),
w = y.width + 16,
C = y.height + 16;
b.attr('class', 'statediagram');
var S = b.node().getBBox();
Object(u.configureSvgSize)(b, C, 1.75 * w, a.useMaxWidth);
var k = ''
.concat(S.x - 8, ' ')
.concat(S.y - 8, ' ')
.concat(w, ' ')
.concat(C);
if (
(h.log.debug('viewBox '.concat(k)),
b.attr('viewBox', k),
!a.htmlLabels)
)
for (
var x = document.querySelectorAll(
'[id="' + t + '"] .edgeLabel .label'
),
L = 0;
L < x.length;
L++
) {
var M = x[L],
D = M.getBBox(),
N = document.createElementNS(
'http://www.w3.org/2000/svg',
'rect'
);
N.setAttribute('rx', 0),
N.setAttribute('ry', 0),
N.setAttribute('width', D.width),
N.setAttribute('height', D.height),
M.insertBefore(N, M.firstChild);
}
};
t.default = { setConf: f, getClasses: m, draw: y };
},
'./src/diagrams/state/stateRenderer.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'setConf', function () {
return _;
}),
i.d(t, 'draw', function () {
return b;
});
var n,
r = i('d3'),
s = i('dagre'),
o = i.n(s),
a = i('graphlib'),
l = i.n(a),
c = i('./src/logger.js'),
d = i('./src/diagrams/state/stateDb.js'),
h = i('./src/diagrams/common/common.js'),
u = i('./src/diagrams/state/parser/stateDiagram.jison'),
g = i('./src/diagrams/state/shapes.js'),
f = i('./src/config.js'),
p = i('./src/utils.js');
u.parser.yy = d.default;
var m = {},
_ = function () {},
b = function (e, t) {
(n = Object(f.getConfig)().state),
u.parser.yy.clear(),
u.parser.parse(e),
c.log.debug('Rendering diagram ' + e);
var i = Object(r.select)("[id='".concat(t, "']"));
i
.append('defs')
.append('marker')
.attr('id', 'dependencyEnd')
.attr('refX', 19)
.attr('refY', 7)
.attr('markerWidth', 20)
.attr('markerHeight', 28)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z'),
new l.a.Graph({
multigraph: !0,
compound: !0,
rankdir: 'RL',
}).setDefaultEdgeLabel(function () {
return {};
});
var s = d.default.getRootDoc();
v(s, i, void 0, !1);
var o = n.padding,
a = i.node().getBBox(),
h = a.width + 2 * o,
g = a.height + 2 * o,
m = 1.75 * h;
Object(p.configureSvgSize)(i, g, m, n.useMaxWidth),
i.attr(
'viewBox',
''
.concat(a.x - n.padding, ' ')
.concat(a.y - n.padding, ' ') +
h +
' ' +
g
);
},
v = function e(t, i, s, a) {
var u,
f = new l.a.Graph({ compound: !0, multigraph: !0 }),
p = !0;
for (u = 0; u < t.length; u++)
if ('relation' === t[u].stmt) {
p = !1;
break;
}
s
? f.setGraph({
rankdir: 'LR',
multigraph: !0,
compound: !0,
ranker: 'tight-tree',
ranksep: p ? 1 : n.edgeLengthFactor,
nodeSep: p ? 1 : 50,
isMultiGraph: !0,
})
: f.setGraph({
rankdir: 'TB',
multigraph: !0,
compound: !0,
ranksep: p ? 1 : n.edgeLengthFactor,
nodeSep: p ? 1 : 50,
ranker: 'tight-tree',
isMultiGraph: !0,
}),
f.setDefaultEdgeLabel(function () {
return {};
}),
d.default.extract(t);
for (
var _ = d.default.getStates(),
b = d.default.getRelations(),
v = Object.keys(_),
y = 0;
y < v.length;
y++
) {
var w = _[v[y]];
s && (w.parentId = s);
var C = void 0;
if (w.doc) {
var S = i
.append('g')
.attr('id', w.id)
.attr('class', 'stateGroup');
C = e(w.doc, S, w.id, !a);
var k = (S = Object(g.addTitleAndBox)(S, w, a))
.node()
.getBBox();
(C.width = k.width),
(C.height = k.height + n.padding / 2),
(m[w.id] = { y: n.compositTitleSize });
} else C = Object(g.drawState)(i, w, f);
if (w.note) {
var x = {
descriptions: [],
id: w.id + '-note',
note: w.note,
type: 'note',
},
L = Object(g.drawState)(i, x, f);
'left of' === w.note.position
? (f.setNode(C.id + '-note', L), f.setNode(C.id, C))
: (f.setNode(C.id, C), f.setNode(C.id + '-note', L)),
f.setParent(C.id, C.id + '-group'),
f.setParent(C.id + '-note', C.id + '-group');
} else f.setNode(C.id, C);
}
c.log.debug('Count=', f.nodeCount(), f);
var M = 0;
b.forEach(function (e) {
var t;
M++,
c.log.debug('Setting edge', e),
f.setEdge(
e.id1,
e.id2,
{
relation: e,
width:
((t = e.title),
t ? t.length * n.fontSizeFactor : 1),
height:
n.labelHeight * h.default.getRows(e.title).length,
labelpos: 'c',
},
'id' + M
);
}),
o.a.layout(f),
c.log.debug('Graph after layout', f.nodes());
var D = i.node();
f.nodes().forEach(function (e) {
void 0 !== e && void 0 !== f.node(e)
? (c.log.warn(
'Node ' + e + ': ' + JSON.stringify(f.node(e))
),
Object(r.select)('#' + D.id + ' #' + e).attr(
'transform',
'translate(' +
(f.node(e).x - f.node(e).width / 2) +
',' +
(f.node(e).y +
(m[e] ? m[e].y : 0) -
f.node(e).height / 2) +
' )'
),
Object(r.select)('#' + D.id + ' #' + e).attr(
'data-x-shift',
f.node(e).x - f.node(e).width / 2
),
document
.querySelectorAll(
'#' + D.id + ' #' + e + ' .divider'
)
.forEach(function (e) {
var t = e.parentElement,
i = 0,
n = 0;
t &&
(t.parentElement &&
(i = t.parentElement.getBBox().width),
(n = parseInt(
t.getAttribute('data-x-shift'),
10
)),
Number.isNaN(n) && (n = 0)),
e.setAttribute('x1', 0 - n + 8),
e.setAttribute('x2', i - n - 8);
}))
: c.log.debug(
'No Node ' + e + ': ' + JSON.stringify(f.node(e))
);
});
var N = D.getBBox();
f.edges().forEach(function (e) {
void 0 !== e &&
void 0 !== f.edge(e) &&
(c.log.debug(
'Edge ' +
e.v +
' -> ' +
e.w +
': ' +
JSON.stringify(f.edge(e))
),
Object(g.drawEdge)(i, f.edge(e), f.edge(e).relation));
}),
(N = D.getBBox());
var E = {
id: s || 'root',
label: s || 'root',
width: 0,
height: 0,
};
return (
(E.width = N.width + 2 * n.padding),
(E.height = N.height + 2 * n.padding),
c.log.debug('Doc rendered', E, f),
E
);
};
t.default = { setConf: _, draw: b };
},
'./src/diagrams/state/styles.js': function (e, t, i) {
'use strict';
i.r(t),
(t.default = function (e) {
return 'g.stateGroup text {\n fill: '
.concat(
e.nodeBorder,
';\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: '
)
.concat(
e.textColor,
';\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: '
)
.concat(
e.labelColor,
';\n}\n\ng.stateGroup rect {\n fill: '
)
.concat(e.mainBkg, ';\n stroke: ')
.concat(
e.nodeBorder,
';\n}\n\ng.stateGroup line {\n stroke: '
)
.concat(
e.lineColor,
';\n stroke-width: 1;\n}\n\n.transition {\n stroke: '
)
.concat(
e.lineColor,
';\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: '
)
.concat(
e.background,
';\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: '
)
.concat(e.noteBorderColor, ';\n fill: ')
.concat(
e.noteBkgColor,
';\n\n text {\n fill: black;\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: '
)
.concat(
e.mainBkg,
';\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: '
)
.concat(
e.tertiaryColor,
';\n opacity: 0.5;\n}\n.edgeLabel .label text {\n fill: '
)
.concat(
e.tertiaryTextColor,
';\n}\n.label div .edgeLabel {\n color: '
)
.concat(
e.tertiaryTextColor,
';\n}\n\n.stateLabel text {\n fill: '
)
.concat(
e.labelColor,
';\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: '
)
.concat(
e.lineColor,
';\n stroke: black;\n}\n.node circle.state-end {\n fill: '
)
.concat(e.primaryBorderColor, ';\n stroke: ')
.concat(
e.background,
';\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: '
)
.concat(e.background, ';\n // stroke: ')
.concat(
e.background,
';\n stroke-width: 1.5\n}\n\n.node rect {\n fill: '
)
.concat(e.mainBkg, ';\n stroke: ')
.concat(
e.nodeBorder,
';\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: '
)
.concat(
e.lineColor,
';\n}\n\n.statediagram-cluster rect {\n fill: '
)
.concat(e.mainBkg, ';\n stroke: ')
.concat(
e.nodeBorder,
';\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: '
)
.concat(
e.textColor,
';\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: '
)
.concat(
e.nodeBorder,
';\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: '
)
.concat(
e.background,
';\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0;\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: '
)
.concat(
e.altBackground ? e.altBackground : '#efefef',
';\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: '
)
.concat(e.noteBkgColor, ';\n stroke: ')
.concat(
e.noteBorderColor,
';\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: '
)
.concat(e.noteBkgColor, ';\n stroke: ')
.concat(
e.noteBorderColor,
';\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: '
)
.concat(
e.noteTextColor,
';\n}\n\n.statediagram-note .nodeLabel {\n color: '
)
.concat(
e.noteTextColor,
';\n}\n\n#dependencyStart, #dependencyEnd {\n fill: '
)
.concat(e.lineColor, ';\n stroke: ')
.concat(e.lineColor, ';\n stroke-width: 1;\n}\n');
});
},
'./src/diagrams/user-journey/journeyDb.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'parseDirective', function () {
return h;
}),
i.d(t, 'clear', function () {
return u;
}),
i.d(t, 'setTitle', function () {
return g;
}),
i.d(t, 'getTitle', function () {
return f;
}),
i.d(t, 'addSection', function () {
return p;
}),
i.d(t, 'getSections', function () {
return m;
}),
i.d(t, 'getTasks', function () {
return _;
}),
i.d(t, 'addTask', function () {
return b;
}),
i.d(t, 'addTaskOrg', function () {
return v;
});
var n = i('./src/mermaidAPI.js'),
r = i('./src/config.js');
function s(e) {
return (
(function (e) {
if (Array.isArray(e)) {
for (
var t = 0, i = new Array(e.length);
t < e.length;
t++
)
i[t] = e[t];
return i;
}
})(e) ||
(function (e) {
if (
Symbol.iterator in Object(e) ||
'[object Arguments]' ===
Object.prototype.toString.call(e)
)
return Array.from(e);
})(e) ||
(function () {
throw new TypeError(
'Invalid attempt to spread non-iterable instance'
);
})()
);
}
var o = '',
a = '',
l = [],
c = [],
d = [],
h = function (e, t, i) {
n.default.parseDirective(this, e, t, i);
},
u = function () {
(l.length = 0),
(c.length = 0),
(a = ''),
(o = ''),
(d.length = 0);
},
g = function (e) {
o = e;
},
f = function () {
return o;
},
p = function (e) {
(a = e), l.push(e);
},
m = function () {
return l;
},
_ = function () {
for (var e = y(), t = 0; !e && t < 100; ) (e = y()), t++;
return c.push.apply(c, d), c;
},
b = function (e, t) {
var i = t.substr(1).split(':'),
n = 0,
r = [];
1 === i.length
? ((n = Number(i[0])), (r = []))
: ((n = Number(i[0])), (r = i[1].split(',')));
var s = r.map(function (e) {
return e.trim();
}),
o = { section: a, type: a, people: s, task: e, score: n };
d.push(o);
},
v = function (e) {
var t = {
section: a,
type: a,
description: e,
task: e,
classes: [],
};
c.push(t);
},
y = function () {
for (var e = !0, t = 0; t < d.length; t++)
d[t].processed, (e = e && d[t].processed);
return e;
};
t.default = {
parseDirective: h,
getConfig: function () {
return r.getConfig().journey;
},
clear: u,
setTitle: g,
getTitle: f,
addSection: p,
getSections: m,
getTasks: _,
addTask: b,
addTaskOrg: v,
getActors: function () {
return (
(e = []),
c.forEach(function (t) {
t.people && e.push.apply(e, s(t.people));
}),
s(new Set(e)).sort()
);
var e;
},
};
},
'./src/diagrams/user-journey/journeyRenderer.js': function (
e,
t,
i
) {
'use strict';
i.r(t),
i.d(t, 'setConf', function () {
return c;
}),
i.d(t, 'draw', function () {
return g;
}),
i.d(t, 'bounds', function () {
return f;
}),
i.d(t, 'drawTasks', function () {
return _;
});
var n = i('d3'),
r = i('./src/diagrams/user-journey/parser/journey.jison'),
s = i('./src/diagrams/user-journey/journeyDb.js'),
o = i('./src/diagrams/user-journey/svgDraw.js'),
a = i('./src/config.js'),
l = i('./src/utils.js');
r.parser.yy = s.default;
var c = function (e) {
Object.keys(e).forEach(function (t) {
h[t] = e[t];
});
},
d = {},
h = Object(a.getConfig)().journey,
u = Object(a.getConfig)().journey.leftMargin,
g = function (e, t) {
var i = Object(a.getConfig)().journey;
r.parser.yy.clear(), r.parser.parse(e + '\n'), f.init();
var s = Object(n.select)('#' + t);
s.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink'),
o.default.initGraphics(s);
var c = r.parser.yy.getTasks(),
h = r.parser.yy.getTitle(),
g = r.parser.yy.getActors();
for (var p in d) delete d[p];
var m = 0;
g.forEach(function (e) {
(d[e] = i.actorColours[m % i.actorColours.length]), m++;
}),
(function (e) {
var t = Object(a.getConfig)().journey,
i = 60;
Object.keys(d).forEach(function (n) {
var r = d[n],
s = {
cx: 20,
cy: i,
r: 7,
fill: r,
stroke: '#000',
};
o.default.drawCircle(e, s);
var a = {
x: 40,
y: i + 7,
fill: '#666',
text: n,
textMargin: 5 | t.boxTextMargin,
};
o.default.drawText(e, a), (i += 20);
});
})(s),
f.insert(0, 0, u, 50 * Object.keys(d).length),
console.log(f),
_(s, c, 0);
var b = f.getBounds();
h &&
s
.append('text')
.text(h)
.attr('x', u)
.attr('font-size', '4ex')
.attr('font-weight', 'bold')
.attr('y', 25);
var v = b.stopy - b.starty + 2 * i.diagramMarginY,
y = u + b.stopx + 2 * i.diagramMarginX;
Object(l.configureSvgSize)(s, v, y, i.useMaxWidth),
s
.append('line')
.attr('x1', u)
.attr('y1', 4 * i.height)
.attr('x2', y - u - 4)
.attr('y2', 4 * i.height)
.attr('stroke-width', 4)
.attr('stroke', 'black')
.attr('marker-end', 'url(#arrowhead)');
var w = h ? 70 : 0;
s.attr(
'viewBox',
''
.concat(b.startx, ' -25 ')
.concat(y, ' ')
.concat(v + w)
),
s.attr('preserveAspectRatio', 'xMinYMin meet'),
s.attr('height', v + w + 25);
},
f = {
data: {
startx: void 0,
stopx: void 0,
starty: void 0,
stopy: void 0,
},
verticalPos: 0,
sequenceItems: [],
init: function () {
(this.sequenceItems = []),
(this.data = {
startx: void 0,
stopx: void 0,
starty: void 0,
stopy: void 0,
}),
(this.verticalPos = 0);
},
updateVal: function (e, t, i, n) {
void 0 === e[t] ? (e[t] = i) : (e[t] = n(i, e[t]));
},
updateBounds: function (e, t, i, n) {
var r = Object(a.getConfig)().journey,
s = this,
o = 0;
this.sequenceItems.forEach(function (a) {
o++;
var l = s.sequenceItems.length - o + 1;
s.updateVal(a, 'starty', t - l * r.boxMargin, Math.min),
s.updateVal(
a,
'stopy',
n + l * r.boxMargin,
Math.max
),
s.updateVal(
f.data,
'startx',
e - l * r.boxMargin,
Math.min
),
s.updateVal(
f.data,
'stopx',
i + l * r.boxMargin,
Math.max
),
s.updateVal(
a,
'startx',
e - l * r.boxMargin,
Math.min
),
s.updateVal(
a,
'stopx',
i + l * r.boxMargin,
Math.max
),
s.updateVal(
f.data,
'starty',
t - l * r.boxMargin,
Math.min
),
s.updateVal(
f.data,
'stopy',
n + l * r.boxMargin,
Math.max
);
});
},
insert: function (e, t, i, n) {
var r = Math.min(e, i),
s = Math.max(e, i),
o = Math.min(t, n),
a = Math.max(t, n);
this.updateVal(f.data, 'startx', r, Math.min),
this.updateVal(f.data, 'starty', o, Math.min),
this.updateVal(f.data, 'stopx', s, Math.max),
this.updateVal(f.data, 'stopy', a, Math.max),
this.updateBounds(r, o, s, a);
},
bumpVerticalPos: function (e) {
(this.verticalPos = this.verticalPos + e),
(this.data.stopy = this.verticalPos);
},
getVerticalPos: function () {
return this.verticalPos;
},
getBounds: function () {
return this.data;
},
},
p = h.sectionFills,
m = h.sectionColours,
_ = function (e, t, i) {
for (
var n = Object(a.getConfig)().journey,
r = '',
s = i + (2 * n.height + n.diagramMarginY),
l = 0,
c = '#CCC',
h = 'black',
g = 0,
_ = 0;
_ < t.length;
_++
) {
var b = t[_];
if (r !== b.section) {
(c = p[l % p.length]),
(g = l % p.length),
(h = m[l % m.length]);
var v = {
x: _ * n.taskMargin + _ * n.width + u,
y: 50,
text: b.section,
fill: c,
num: g,
colour: h,
};
o.default.drawSection(e, v, n), (r = b.section), l++;
}
var y = b.people.reduce(function (e, t) {
return d[t] && (e[t] = d[t]), e;
}, {});
(b.x = _ * n.taskMargin + _ * n.width + u),
(b.y = s),
(b.width = n.diagramMarginX),
(b.height = n.diagramMarginY),
(b.colour = h),
(b.fill = c),
(b.num = g),
(b.actors = y),
o.default.drawTask(e, b, n),
f.insert(b.x, b.y, b.x + b.width + n.taskMargin, 450);
}
};
t.default = { setConf: c, draw: g };
},
'./src/diagrams/user-journey/parser/journey.jison': function (
e,
t,
i
) {
(function (e, n) {
var r = (function () {
var e = function (e, t, i, n) {
for (i = i || {}, n = e.length; n--; i[e[n]] = t);
return i;
},
t = [1, 2],
i = [1, 5],
n = [6, 9, 11, 17, 18, 19, 21],
r = [1, 15],
s = [1, 16],
o = [1, 17],
a = [1, 21],
l = [4, 6, 9, 11, 17, 18, 19, 21],
c = {
trace: function () {},
yy: {},
symbols_: {
error: 2,
start: 3,
journey: 4,
document: 5,
EOF: 6,
directive: 7,
line: 8,
SPACE: 9,
statement: 10,
NEWLINE: 11,
openDirective: 12,
typeDirective: 13,
closeDirective: 14,
':': 15,
argDirective: 16,
title: 17,
section: 18,
taskName: 19,
taskData: 20,
open_directive: 21,
type_directive: 22,
arg_directive: 23,
close_directive: 24,
$accept: 0,
$end: 1,
},
terminals_: {
2: 'error',
4: 'journey',
6: 'EOF',
9: 'SPACE',
11: 'NEWLINE',
15: ':',
17: 'title',
18: 'section',
19: 'taskName',
20: 'taskData',
21: 'open_directive',
22: 'type_directive',
23: 'arg_directive',
24: 'close_directive',
},
productions_: [
0,
[3, 3],
[3, 2],
[5, 0],
[5, 2],
[8, 2],
[8, 1],
[8, 1],
[8, 1],
[7, 4],
[7, 6],
[10, 1],
[10, 1],
[10, 2],
[10, 1],
[12, 1],
[13, 1],
[16, 1],
[14, 1],
],
performAction: function (e, t, i, n, r, s, o) {
var a = s.length - 1;
switch (r) {
case 1:
return s[a - 1];
case 3:
this.$ = [];
break;
case 4:
s[a - 1].push(s[a]), (this.$ = s[a - 1]);
break;
case 5:
case 6:
this.$ = s[a];
break;
case 7:
case 8:
this.$ = [];
break;
case 11:
n.setTitle(s[a].substr(6)),
(this.$ = s[a].substr(6));
break;
case 12:
n.addSection(s[a].substr(8)),
(this.$ = s[a].substr(8));
break;
case 13:
n.addTask(s[a - 1], s[a]), (this.$ = 'task');
break;
case 15:
n.parseDirective('%%{', 'open_directive');
break;
case 16:
n.parseDirective(s[a], 'type_directive');
break;
case 17:
(s[a] = s[a].trim().replace(/'/g, '"')),
n.parseDirective(s[a], 'arg_directive');
break;
case 18:
n.parseDirective(
'}%%',
'close_directive',
'journey'
);
}
},
table: [
{ 3: 1, 4: t, 7: 3, 12: 4, 21: i },
{ 1: [3] },
e(n, [2, 3], { 5: 6 }),
{ 3: 7, 4: t, 7: 3, 12: 4, 21: i },
{ 13: 8, 22: [1, 9] },
{ 22: [2, 15] },
{
6: [1, 10],
7: 18,
8: 11,
9: [1, 12],
10: 13,
11: [1, 14],
12: 4,
17: r,
18: s,
19: o,
21: i,
},
{ 1: [2, 2] },
{ 14: 19, 15: [1, 20], 24: a },
e([15, 24], [2, 16]),
e(n, [2, 8], { 1: [2, 1] }),
e(n, [2, 4]),
{ 7: 18, 10: 22, 12: 4, 17: r, 18: s, 19: o, 21: i },
e(n, [2, 6]),
e(n, [2, 7]),
e(n, [2, 11]),
e(n, [2, 12]),
{ 20: [1, 23] },
e(n, [2, 14]),
{ 11: [1, 24] },
{ 16: 25, 23: [1, 26] },
{ 11: [2, 18] },
e(n, [2, 5]),
e(n, [2, 13]),
e(l, [2, 9]),
{ 14: 27, 24: a },
{ 24: [2, 17] },
{ 11: [1, 28] },
e(l, [2, 10]),
],
defaultActions: {
5: [2, 15],
7: [2, 2],
21: [2, 18],
26: [2, 17],
},
parseError: function (e, t) {
if (!t.recoverable) {
var i = new Error(e);
throw ((i.hash = t), i);
}
this.trace(e);
},
parse: function (e) {
var t = this,
i = [0],
n = [],
r = [null],
s = [],
o = this.table,
a = '',
l = 0,
c = 0,
d = 0,
h = 2,
u = 1,
g = s.slice.call(arguments, 1),
f = Object.create(this.lexer),
p = { yy: {} };
for (var m in this.yy)
Object.prototype.hasOwnProperty.call(this.yy, m) &&
(p.yy[m] = this.yy[m]);
f.setInput(e, p.yy),
(p.yy.lexer = f),
(p.yy.parser = this),
void 0 === f.yylloc && (f.yylloc = {});
var _ = f.yylloc;
s.push(_);
var b = f.options && f.options.ranges;
function v() {
var e;
return (
'number' !=
typeof (e = n.pop() || f.lex() || u) &&
(e instanceof Array && (e = (n = e).pop()),
(e = t.symbols_[e] || e)),
e
);
}
'function' == typeof p.yy.parseError
? (this.parseError = p.yy.parseError)
: (this.parseError = Object.getPrototypeOf(
this
).parseError);
for (var y, w, C, S, k, x, L, M, D, N = {}; ; ) {
if (
((C = i[i.length - 1]),
this.defaultActions[C]
? (S = this.defaultActions[C])
: (null == y && (y = v()),
(S = o[C] && o[C][y])),
void 0 === S || !S.length || !S[0])
) {
var E = '';
for (x in ((D = []), o[C]))
this.terminals_[x] &&
x > h &&
D.push("'" + this.terminals_[x] + "'");
(E = f.showPosition
? 'Parse error on line ' +
(l + 1) +
':\n' +
f.showPosition() +
'\nExpecting ' +
D.join(', ') +
", got '" +
(this.terminals_[y] || y) +
"'"
: 'Parse error on line ' +
(l + 1) +
': Unexpected ' +
(y == u
? 'end of input'
: "'" + (this.terminals_[y] || y) + "'")),
this.parseError(E, {
text: f.match,
token: this.terminals_[y] || y,
line: f.yylineno,
loc: _,
expected: D,
});
}
if (S[0] instanceof Array && S.length > 1)
throw new Error(
'Parse Error: multiple actions possible at state: ' +
C +
', token: ' +
y
);
switch (S[0]) {
case 1:
i.push(y),
r.push(f.yytext),
s.push(f.yylloc),
i.push(S[1]),
(y = null),
w
? ((y = w), (w = null))
: ((c = f.yyleng),
(a = f.yytext),
(l = f.yylineno),
(_ = f.yylloc),
d > 0 && d--);
break;
case 2:
if (
((L = this.productions_[S[1]][1]),
(N.$ = r[r.length - L]),
(N._$ = {
first_line:
s[s.length - (L || 1)].first_line,
last_line: s[s.length - 1].last_line,
first_column:
s[s.length - (L || 1)].first_column,
last_column: s[s.length - 1].last_column,
}),
b &&
(N._$.range = [
s[s.length - (L || 1)].range[0],
s[s.length - 1].range[1],
]),
void 0 !==
(k = this.performAction.apply(
N,
[a, c, l, p.yy, S[1], r, s].concat(g)
)))
)
return k;
L &&
((i = i.slice(0, -1 * L * 2)),
(r = r.slice(0, -1 * L)),
(s = s.slice(0, -1 * L))),
i.push(this.productions_[S[1]][0]),
r.push(N.$),
s.push(N._$),
(M = o[i[i.length - 2]][i[i.length - 1]]),
i.push(M);
break;
case 3:
return !0;
}
}
return !0;
},
},
d = {
EOF: 1,
parseError: function (e, t) {
if (!this.yy.parser) throw new Error(e);
this.yy.parser.parseError(e, t);
},
setInput: function (e, t) {
return (
(this.yy = t || this.yy || {}),
(this._input = e),
(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 e = this._input[0];
return (
(this.yytext += e),
this.yyleng++,
this.offset++,
(this.match += e),
(this.matched += e),
e.match(/(?:\r\n?|\n).*/g)
? (this.yylineno++, this.yylloc.last_line++)
: this.yylloc.last_column++,
this.options.ranges && this.yylloc.range[1]++,
(this._input = this._input.slice(1)),
e
);
},
unput: function (e) {
var t = e.length,
i = e.split(/(?:\r\n?|\n)/g);
(this._input = e + this._input),
(this.yytext = this.yytext.substr(
0,
this.yytext.length - t
)),
(this.offset -= t);
var n = 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
)),
i.length - 1 && (this.yylineno -= i.length - 1);
var r = 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: i
? (i.length === n.length
? this.yylloc.first_column
: 0) +
n[n.length - i.length].length -
i[0].length
: this.yylloc.first_column - t,
}),
this.options.ranges &&
(this.yylloc.range = [
r[0],
r[0] + this.yyleng - t,
]),
(this.yyleng = this.yytext.length),
this
);
},
more: function () {
return (this._more = !0), this;
},
reject: function () {
return this.options.backtrack_lexer
? ((this._backtrack = !0), this)
: 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).\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
less: function (e) {
this.unput(this.match.slice(e));
},
pastInput: function () {
var e = this.matched.substr(
0,
this.matched.length - this.match.length
);
return (
(e.length > 20 ? '...' : '') +
e.substr(-20).replace(/\n/g, '')
);
},
upcomingInput: function () {
var e = this.match;
return (
e.length < 20 &&
(e += this._input.substr(0, 20 - e.length)),
(
e.substr(0, 20) + (e.length > 20 ? '...' : '')
).replace(/\n/g, '')
);
},
showPosition: function () {
var e = this.pastInput(),
t = new Array(e.length + 1).join('-');
return e + this.upcomingInput() + '\n' + t + '^';
},
test_match: function (e, t) {
var i, n, r;
if (
(this.options.backtrack_lexer &&
((r = {
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 &&
(r.yylloc.range = this.yylloc.range.slice(0))),
(n = e[0].match(/(?:\r\n?|\n).*/g)) &&
(this.yylineno += n.length),
(this.yylloc = {
first_line: this.yylloc.last_line,
last_line: this.yylineno + 1,
first_column: this.yylloc.last_column,
last_column: n
? n[n.length - 1].length -
n[n.length - 1].match(/\r?\n?/)[0].length
: this.yylloc.last_column + e[0].length,
}),
(this.yytext += e[0]),
(this.match += e[0]),
(this.matches = e),
(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(e[0].length)),
(this.matched += e[0]),
(i = this.performAction.call(
this,
this.yy,
this,
t,
this.conditionStack[
this.conditionStack.length - 1
]
)),
this.done && this._input && (this.done = !1),
i)
)
return i;
if (this._backtrack) {
for (var s in r) this[s] = r[s];
return !1;
}
return !1;
},
next: function () {
if (this.done) return this.EOF;
var e, t, i, n;
this._input || (this.done = !0),
this._more ||
((this.yytext = ''), (this.match = ''));
for (
var r = this._currentRules(), s = 0;
s < r.length;
s++
)
if (
(i = this._input.match(this.rules[r[s]])) &&
(!t || i[0].length > t[0].length)
) {
if (
((t = i), (n = s), this.options.backtrack_lexer)
) {
if (!1 !== (e = this.test_match(i, r[s])))
return e;
if (this._backtrack) {
t = !1;
continue;
}
return !1;
}
if (!this.options.flex) break;
}
return t
? !1 !== (e = this.test_match(t, r[n])) && e
: '' === this._input
? this.EOF
: this.parseError(
'Lexical error on line ' +
(this.yylineno + 1) +
'. Unrecognized text.\n' +
this.showPosition(),
{ text: '', token: null, line: this.yylineno }
);
},
lex: function () {
return this.next() || this.lex();
},
begin: function (e) {
this.conditionStack.push(e);
},
popState: function () {
return this.conditionStack.length - 1 > 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 (e) {
return (e =
this.conditionStack.length -
1 -
Math.abs(e || 0)) >= 0
? this.conditionStack[e]
: 'INITIAL';
},
pushState: function (e) {
this.begin(e);
},
stateStackSize: function () {
return this.conditionStack.length;
},
options: { 'case-insensitive': !0 },
performAction: function (e, t, i, n) {
switch (i) {
case 0:
return this.begin('open_directive'), 21;
case 1:
return this.begin('type_directive'), 22;
case 2:
return (
this.popState(), this.begin('arg_directive'), 15
);
case 3:
return this.popState(), this.popState(), 24;
case 4:
return 23;
case 5:
case 6:
break;
case 7:
return 11;
case 8:
case 9:
break;
case 10:
return 4;
case 11:
return 17;
case 12:
return 18;
case 13:
return 19;
case 14:
return 20;
case 15:
return 15;
case 16:
return 6;
case 17:
return 'INVALID';
}
},
rules: [
/^(?:%%\{)/i,
/^(?:((?:(?!\}%%)[^:.])*))/i,
/^(?::)/i,
/^(?:\}%%)/i,
/^(?:((?:(?!\}%%).|\n)*))/i,
/^(?:%(?!\{)[^\n]*)/i,
/^(?:[^\}]%%[^\n]*)/i,
/^(?:[\n]+)/i,
/^(?:\s+)/i,
/^(?:#[^\n]*)/i,
/^(?:journey\b)/i,
/^(?:title\s[^#\n;]+)/i,
/^(?:section\s[^#:\n;]+)/i,
/^(?:[^#:\n;]+)/i,
/^(?::[^#\n;]+)/i,
/^(?::)/i,
/^(?:$)/i,
/^(?:.)/i,
],
conditions: {
open_directive: { rules: [1], inclusive: !1 },
type_directive: { rules: [2, 3], inclusive: !1 },
arg_directive: { rules: [3, 4], inclusive: !1 },
INITIAL: {
rules: [
0,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
],
inclusive: !0,
},
},
};
function h() {
this.yy = {};
}
return (
(c.lexer = d), (h.prototype = c), (c.Parser = h), new h()
);
})();
(t.parser = r),
(t.Parser = r.Parser),
(t.parse = function () {
return r.parse.apply(r, arguments);
}),
(t.main = function (n) {
n[1] ||
(console.log('Usage: ' + n[0] + ' FILE'), e.exit(1));
var r = i(
'./node_modules/node-libs-browser/mock/empty.js'
).readFileSync(
i('./node_modules/path-browserify/index.js').normalize(
n[1]
),
'utf8'
);
return t.parser.parse(r);
}),
i.c[i.s] === n && t.main(e.argv.slice(1));
}.call(
this,
i('./node_modules/process/browser.js'),
i('./node_modules/webpack/buildin/module.js')(e)
));
},
'./src/diagrams/user-journey/styles.js': function (e, t, i) {
'use strict';
i.r(t),
(t.default = function (e) {
return ".label {\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n color: "
.concat(
e.textColor,
';\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: '
)
.concat(e.textColor, '\n }\n\n .legend {\n fill: ')
.concat(
e.textColor,
';\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: '
)
.concat(
e.textColor,
'\n }\n\n .face {\n fill: #FFF8DC;\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: '
)
.concat(e.mainBkg, ';\n stroke: ')
.concat(
e.nodeBorder,
';\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: '
)
.concat(
e.arrowheadColor,
';\n }\n\n .edgePath .path {\n stroke: '
)
.concat(
e.lineColor,
';\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: '
)
.concat(
e.lineColor,
';\n fill: none;\n }\n\n .edgeLabel {\n background-color: '
)
.concat(
e.edgeLabelBackground,
';\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: '
)
.concat(
e.titleColor,
";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: "
)
.concat(e.tertiaryColor, ';\n border: 1px solid ')
.concat(
e.border2,
';\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n '
)
.concat(
e.fillType0 ? 'fill: '.concat(e.fillType0) : '',
';\n }\n .task-type-1, .section-type-1 {\n '
)
.concat(
e.fillType0 ? 'fill: '.concat(e.fillType1) : '',
';\n }\n .task-type-2, .section-type-2 {\n '
)
.concat(
e.fillType0 ? 'fill: '.concat(e.fillType2) : '',
';\n }\n .task-type-3, .section-type-3 {\n '
)
.concat(
e.fillType0 ? 'fill: '.concat(e.fillType3) : '',
';\n }\n .task-type-4, .section-type-4 {\n '
)
.concat(
e.fillType0 ? 'fill: '.concat(e.fillType4) : '',
';\n }\n .task-type-5, .section-type-5 {\n '
)
.concat(
e.fillType0 ? 'fill: '.concat(e.fillType5) : '',
';\n }\n .task-type-6, .section-type-6 {\n '
)
.concat(
e.fillType0 ? 'fill: '.concat(e.fillType6) : '',
';\n }\n .task-type-7, .section-type-7 {\n '
)
.concat(
e.fillType0 ? 'fill: '.concat(e.fillType7) : '',
';\n }\n'
);
});
},
'./src/diagrams/user-journey/svgDraw.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'drawRect', function () {
return r;
}),
i.d(t, 'drawFace', function () {
return s;
}),
i.d(t, 'drawCircle', function () {
return o;
}),
i.d(t, 'drawText', function () {
return a;
}),
i.d(t, 'drawLabel', function () {
return l;
}),
i.d(t, 'drawSection', function () {
return c;
}),
i.d(t, 'drawTask', function () {
return h;
}),
i.d(t, 'drawBackgroundRect', function () {
return u;
}),
i.d(t, 'getTextObj', function () {
return g;
}),
i.d(t, 'getNoteRect', function () {
return f;
});
var n = i('d3'),
r = function (e, t) {
var i = e.append('rect');
return (
i.attr('x', t.x),
i.attr('y', t.y),
i.attr('fill', t.fill),
i.attr('stroke', t.stroke),
i.attr('width', t.width),
i.attr('height', t.height),
i.attr('rx', t.rx),
i.attr('ry', t.ry),
void 0 !== t.class && i.attr('class', t.class),
i
);
},
s = function (e, t) {
var i = e
.append('circle')
.attr('cx', t.cx)
.attr('cy', t.cy)
.attr('class', 'face')
.attr('r', 15)
.attr('stroke-width', 2)
.attr('overflow', 'visible'),
r = e.append('g');
return (
r
.append('circle')
.attr('cx', t.cx - 5)
.attr('cy', t.cy - 5)
.attr('r', 1.5)
.attr('stroke-width', 2)
.attr('fill', '#666')
.attr('stroke', '#666'),
r
.append('circle')
.attr('cx', t.cx + 5)
.attr('cy', t.cy - 5)
.attr('r', 1.5)
.attr('stroke-width', 2)
.attr('fill', '#666')
.attr('stroke', '#666'),
t.score > 3
? (function (e) {
var i = Object(n.arc)()
.startAngle(Math.PI / 2)
.endAngle((Math.PI / 2) * 3)
.innerRadius(7.5)
.outerRadius(15 / 2.2);
e.append('path')
.attr('class', 'mouth')
.attr('d', i)
.attr(
'transform',
'translate(' + t.cx + ',' + (t.cy + 2) + ')'
);
})(r)
: t.score < 3
? (function (e) {
var i = Object(n.arc)()
.startAngle((3 * Math.PI) / 2)
.endAngle((Math.PI / 2) * 5)
.innerRadius(7.5)
.outerRadius(15 / 2.2);
e.append('path')
.attr('class', 'mouth')
.attr('d', i)
.attr(
'transform',
'translate(' + t.cx + ',' + (t.cy + 7) + ')'
);
})(r)
: (function (e) {
e.append('line')
.attr('class', 'mouth')
.attr('stroke', 2)
.attr('x1', t.cx - 5)
.attr('y1', t.cy + 7)
.attr('x2', t.cx + 5)
.attr('y2', t.cy + 7)
.attr('class', 'mouth')
.attr('stroke-width', '1px')
.attr('stroke', '#666');
})(r),
i
);
},
o = function (e, t) {
var i = e.append('circle');
return (
i.attr('cx', t.cx),
i.attr('cy', t.cy),
i.attr('fill', t.fill),
i.attr('stroke', t.stroke),
i.attr('r', t.r),
void 0 !== i.class && i.attr('class', i.class),
void 0 !== t.title && i.append('title').text(t.title),
i
);
},
a = function (e, t) {
var i = t.text.replace(/
/gi, ' '),
n = e.append('text');
n.attr('x', t.x),
n.attr('y', t.y),
n.attr('class', 'legend'),
n.style('text-anchor', t.anchor),
void 0 !== t.class && n.attr('class', t.class);
var r = n.append('tspan');
return r.attr('x', t.x + 2 * t.textMargin), r.text(i), n;
},
l = function (e, t) {
var i,
n,
r = e.append('polygon');
r.attr(
'points',
(i = t.x) +
',' +
(n = t.y) +
' ' +
(i + 50) +
',' +
n +
' ' +
(i + 50) +
',' +
(n + 20 - 7) +
' ' +
(i + 50 - 8.4) +
',' +
(n + 20) +
' ' +
i +
',' +
(n + 20)
),
r.attr('class', 'labelBox'),
(t.y = t.y + t.labelMargin),
(t.x = t.x + 0.5 * t.labelMargin),
a(e, t);
},
c = function (e, t, i) {
var n = e.append('g'),
s = f();
(s.x = t.x),
(s.y = t.y),
(s.fill = t.fill),
(s.width = i.width),
(s.height = i.height),
(s.class = 'journey-section section-type-' + t.num),
(s.rx = 3),
(s.ry = 3),
r(n, s),
p(i)(
t.text,
n,
s.x,
s.y,
s.width,
s.height,
{ class: 'journey-section section-type-' + t.num },
i,
t.colour
);
},
d = -1,
h = function (e, t, i) {
var n = t.x + i.width / 2,
a = e.append('g');
d++,
a
.append('line')
.attr('id', 'task' + d)
.attr('x1', n)
.attr('y1', t.y)
.attr('x2', n)
.attr('y2', 450)
.attr('class', 'task-line')
.attr('stroke-width', '1px')
.attr('stroke-dasharray', '4 2')
.attr('stroke', '#666'),
s(a, {
cx: n,
cy: 300 + 30 * (5 - t.score),
score: t.score,
});
var l = f();
(l.x = t.x),
(l.y = t.y),
(l.fill = t.fill),
(l.width = i.width),
(l.height = i.height),
(l.class = 'task task-type-' + t.num),
(l.rx = 3),
(l.ry = 3),
r(a, l);
var c = t.x + 14;
t.people.forEach(function (e) {
var i = t.actors[e],
n = {
cx: c,
cy: t.y,
r: 7,
fill: i,
stroke: '#000',
title: e,
};
o(a, n), (c += 10);
}),
p(i)(
t.task,
a,
l.x,
l.y,
l.width,
l.height,
{ class: 'task' },
i,
t.colour
);
},
u = function (e, t) {
r(e, {
x: t.startx,
y: t.starty,
width: t.stopx - t.startx,
height: t.stopy - t.starty,
fill: t.fill,
class: 'rect',
}).lower();
},
g = function () {
return {
x: 0,
y: 0,
fill: void 0,
'text-anchor': 'start',
width: 100,
height: 100,
textMargin: 0,
rx: 0,
ry: 0,
};
},
f = function () {
return {
x: 0,
y: 0,
width: 100,
anchor: 'start',
height: 100,
rx: 0,
ry: 0,
};
},
p = (function () {
function e(e, t, i, r, s, o, a, l) {
n(
t
.append('text')
.attr('x', i + s / 2)
.attr('y', r + o / 2 + 5)
.style('font-color', l)
.style('text-anchor', 'middle')
.text(e),
a
);
}
function t(e, t, i, r, s, o, a, l, c) {
for (
var d = l.taskFontSize,
h = l.taskFontFamily,
u = e.split(/
/gi),
g = 0;
g < u.length;
g++
) {
var f = g * d - (d * (u.length - 1)) / 2,
p = t
.append('text')
.attr('x', i + s / 2)
.attr('y', r)
.attr('fill', c)
.style('text-anchor', 'middle')
.style('font-size', d)
.style('font-family', h);
p
.append('tspan')
.attr('x', i + s / 2)
.attr('dy', f)
.text(u[g]),
p
.attr('y', r + o / 2)
.attr('dominant-baseline', 'central')
.attr('alignment-baseline', 'central'),
n(p, a);
}
}
function i(e, i, r, s, o, a, l, c) {
var d = i.append('switch'),
h = d
.append('foreignObject')
.attr('x', r)
.attr('y', s)
.attr('width', o)
.attr('height', a)
.attr('position', 'fixed')
.append('div')
.style('display', 'table')
.style('height', '100%')
.style('width', '100%');
h
.append('div')
.attr('class', 'label')
.style('display', 'table-cell')
.style('text-align', 'center')
.style('vertical-align', 'middle')
.text(e),
t(e, d, r, s, o, a, l, c),
n(h, l);
}
function n(e, t) {
for (var i in t) i in t && e.attr(i, t[i]);
}
return function (n) {
return 'fo' === n.textPlacement
? i
: 'old' === n.textPlacement
? e
: t;
};
})();
t.default = {
drawRect: r,
drawCircle: o,
drawSection: c,
drawText: a,
drawLabel: l,
drawTask: h,
drawBackgroundRect: u,
getTextObj: g,
getNoteRect: f,
initGraphics: function (e) {
e.append('defs')
.append('marker')
.attr('id', 'arrowhead')
.attr('refX', 5)
.attr('refY', 2)
.attr('markerWidth', 6)
.attr('markerHeight', 4)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M 0,0 V 4 L6,2 Z');
},
};
},
'./src/errorRenderer.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'setConf', function () {
return o;
}),
i.d(t, 'draw', function () {
return a;
});
var n = i('d3'),
r = i('./src/logger.js'),
s = {},
o = function (e) {
Object.keys(e).forEach(function (t) {
s[t] = e[t];
});
},
a = function (e, t) {
try {
r.log.debug('Renering svg for syntax error\n');
var i = Object(n.select)('#' + e),
s = i.append('g');
s
.append('path')
.attr('class', 'error-icon')
.attr(
'd',
'm411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z'
),
s
.append('path')
.attr('class', 'error-icon')
.attr(
'd',
'm459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z'
),
s
.append('path')
.attr('class', 'error-icon')
.attr(
'd',
'm340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z'
),
s
.append('path')
.attr('class', 'error-icon')
.attr(
'd',
'm400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z'
),
s
.append('path')
.attr('class', 'error-icon')
.attr(
'd',
'm496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z'
),
s
.append('path')
.attr('class', 'error-icon')
.attr(
'd',
'm436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z'
),
s
.append('text')
.attr('class', 'error-text')
.attr('x', 1240)
.attr('y', 250)
.attr('font-size', '150px')
.style('text-anchor', 'middle')
.text('Syntax error in graph'),
s
.append('text')
.attr('class', 'error-text')
.attr('x', 1050)
.attr('y', 400)
.attr('font-size', '100px')
.style('text-anchor', 'middle')
.text('mermaid version ' + t),
i.attr('height', 100),
i.attr('width', 400),
i.attr('viewBox', '768 0 512 512');
} catch (e) {
r.log.error('Error while rendering info diagram'),
r.log.error(e.message);
}
};
t.default = { setConf: o, draw: a };
},
'./src/logger.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'LEVELS', function () {
return s;
}),
i.d(t, 'log', function () {
return o;
}),
i.d(t, 'setLogLevel', function () {
return a;
});
var n = i('moment-mini'),
r = i.n(n),
s = { debug: 1, info: 2, warn: 3, error: 4, fatal: 5 },
o = {
debug: function () {},
info: function () {},
warn: function () {},
error: function () {},
fatal: function () {},
},
a = function () {
var e =
arguments.length > 0 && void 0 !== arguments[0]
? arguments[0]
: 'fatal';
isNaN(e) &&
((e = e.toLowerCase()), void 0 !== s[e] && (e = s[e])),
(o.trace = function () {}),
(o.debug = function () {}),
(o.info = function () {}),
(o.warn = function () {}),
(o.error = function () {}),
(o.fatal = function () {}),
e <= s.fatal &&
(o.fatal = console.error
? console.error.bind(
console,
l('FATAL'),
'color: orange'
)
: console.log.bind(console, '[35m', l('FATAL'))),
e <= s.error &&
(o.error = console.error
? console.error.bind(
console,
l('ERROR'),
'color: orange'
)
: console.log.bind(console, '[31m', l('ERROR'))),
e <= s.warn &&
(o.warn = console.warn
? console.warn.bind(
console,
l('WARN'),
'color: orange'
)
: console.log.bind(console, '[33m', l('WARN'))),
e <= s.info &&
(o.info = console.info
? console.info.bind(
console,
l('INFO'),
'color: lightblue'
)
: console.log.bind(console, '[34m', l('INFO'))),
e <= s.debug &&
(o.debug = console.debug
? console.debug.bind(
console,
l('DEBUG'),
'color: lightgreen'
)
: console.log.bind(console, '[32m', l('DEBUG')));
},
l = function (e) {
var t = r()().format('ss.SSS');
return '%c'.concat(t, ' : ').concat(e, ' : ');
};
},
'./src/mermaid.js': function (e, t, i) {
'use strict';
i.r(t);
var n = i('entity-decode/browser'),
r = i.n(n),
s = i('./src/logger.js'),
o = i('./src/mermaidAPI.js'),
a = i('./src/utils.js'),
l = function () {
c.startOnLoad
? o.default.getConfig().startOnLoad && c.init()
: void 0 === c.startOnLoad &&
(s.log.debug('In start, no config'),
o.default.getConfig().startOnLoad && c.init());
};
'undefined' != typeof document &&
window.addEventListener(
'load',
function () {
l();
},
!1
);
var c = {
startOnLoad: !0,
htmlLabels: !0,
mermaidAPI: o.default,
parse: o.default.parse,
render: o.default.render,
init: function () {
var e,
t,
i = this,
n = o.default.getConfig();
arguments.length >= 2
? (void 0 !== arguments[0] &&
(c.sequenceConfig = arguments[0]),
(e = arguments[1]))
: (e = arguments[0]),
'function' == typeof arguments[arguments.length - 1]
? ((t = arguments[arguments.length - 1]),
s.log.debug('Callback function found'))
: void 0 !== n.mermaid &&
('function' == typeof n.mermaid.callback
? ((t = n.mermaid.callback),
s.log.debug('Callback function found'))
: s.log.debug('No Callback function found')),
(e =
void 0 === e
? document.querySelectorAll('.mermaid')
: 'string' == typeof e
? document.querySelectorAll(e)
: e instanceof window.Node
? [e]
: e),
s.log.debug('Start On Load before: ' + c.startOnLoad),
void 0 !== c.startOnLoad &&
(s.log.debug('Start On Load inner: ' + c.startOnLoad),
o.default.updateSiteConfig({
startOnLoad: c.startOnLoad,
})),
void 0 !== c.ganttConfig &&
o.default.updateSiteConfig({ gantt: c.ganttConfig });
for (
var l,
d = new a.default.initIdGeneratior(
n.deterministicIds,
n.deterministicIDSeed
),
h = function (n) {
var c = e[n];
if (c.getAttribute('data-processed'))
return 'continue';
c.setAttribute('data-processed', !0);
var h = 'mermaid-'.concat(d.next());
(l = c.innerHTML),
(l = r()(l)
.trim()
.replace(/
/gi, '
'));
var u = a.default.detectInit(l);
u && s.log.debug('Detected early reinit: ', u);
try {
o.default.render(
h,
l,
function (e, i) {
(c.innerHTML = e),
void 0 !== t && t(h),
i && i(c);
},
c
);
} catch (e) {
s.log.warn('Syntax Error rendering'),
s.log.warn(e),
i.parseError && i.parseError(e);
}
},
u = 0;
u < e.length;
u++
)
h(u);
},
initialize: function (e) {
void 0 !== e.mermaid &&
(void 0 !== e.mermaid.startOnLoad &&
(c.startOnLoad = e.mermaid.startOnLoad),
void 0 !== e.mermaid.htmlLabels &&
(c.htmlLabels = e.mermaid.htmlLabels)),
o.default.initialize(e);
},
contentLoaded: l,
};
t.default = c;
},
'./src/mermaidAPI.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'encodeEntities', function () {
return ae;
}),
i.d(t, 'decodeEntities', function () {
return le;
});
var n = i('d3'),
r = i('stylis'),
s = i.n(r),
o = i('./package.json'),
a = i('./src/config.js'),
l = i('./src/diagrams/class/classDb.js'),
c = i('./src/diagrams/class/classRenderer.js'),
d = i('./src/diagrams/class/classRenderer-v2.js'),
h = i('./src/diagrams/class/parser/classDiagram.jison'),
u = i.n(h),
g = i('./src/diagrams/er/erDb.js'),
f = i('./src/diagrams/er/erRenderer.js'),
p = i('./src/diagrams/er/parser/erDiagram.jison'),
m = i.n(p),
_ = i('./src/diagrams/flowchart/flowDb.js'),
b = i('./src/diagrams/flowchart/flowRenderer.js'),
v = i('./src/diagrams/flowchart/flowRenderer-v2.js'),
y = i('./src/diagrams/flowchart/parser/flow.jison'),
w = i.n(y),
C = i('./src/diagrams/gantt/ganttDb.js'),
S = i('./src/diagrams/gantt/ganttRenderer.js'),
k = i('./src/diagrams/gantt/parser/gantt.jison'),
x = i.n(k),
L = i('./src/diagrams/git/gitGraphAst.js'),
M = i('./src/diagrams/git/gitGraphRenderer.js'),
D = i('./src/diagrams/git/parser/gitGraph.jison'),
N = i.n(D),
E = i('./src/diagrams/info/infoDb.js'),
T = i('./src/diagrams/info/infoRenderer.js'),
I = i('./src/diagrams/info/parser/info.jison'),
O = i.n(I),
A = i('./src/diagrams/pie/parser/pie.jison'),
R = i.n(A),
P = i('./src/diagrams/pie/pieDb.js'),
F = i('./src/diagrams/pie/pieRenderer.js'),
B = i(
'./src/diagrams/requirement/parser/requirementDiagram.jison'
),
W = i.n(B),
Y = i('./src/diagrams/requirement/requirementDb.js'),
H = i('./src/diagrams/requirement/requirementRenderer.js'),
j = i('./src/diagrams/sequence/parser/sequenceDiagram.jison'),
V = i.n(j),
z = i('./src/diagrams/sequence/sequenceDb.js'),
U = i('./src/diagrams/sequence/sequenceRenderer.js'),
$ = i('./src/diagrams/state/parser/stateDiagram.jison'),
K = i.n($),
q = i('./src/diagrams/state/stateDb.js'),
G = i('./src/diagrams/state/stateRenderer.js'),
Z = i('./src/diagrams/state/stateRenderer-v2.js'),
J = i('./src/diagrams/user-journey/journeyDb.js'),
Q = i('./src/diagrams/user-journey/journeyRenderer.js'),
X = i('./src/diagrams/user-journey/parser/journey.jison'),
ee = i.n(X),
te = i('./src/errorRenderer.js'),
ie = i('./src/logger.js'),
ne = i('./src/styles.js'),
re = i('./src/themes/index.js'),
se = i('./src/utils.js');
function oe(e) {
return (oe =
'function' == typeof Symbol &&
'symbol' == typeof Symbol.iterator
? function (e) {
return typeof e;
}
: function (e) {
return e &&
'function' == typeof Symbol &&
e.constructor === Symbol &&
e !== Symbol.prototype
? 'symbol'
: typeof e;
})(e);
}
var ae = function (e) {
var t = e;
return (t = (t = t.replace(
/style.*:\S*#.*;/g,
function (e) {
return e.substring(0, e.length - 1);
}
)).replace(/classDef.*:\S*#.*;/g, function (e) {
return e.substring(0, e.length - 1);
})).replace(/#\w+;/g, function (e) {
var t = e.substring(1, e.length - 1);
return /^\+?\d+$/.test(t)
? 'fl°°' + t + '¶ß'
: 'fl°' + t + '¶ß';
});
},
le = function (e) {
var t = e;
return (t = (t = t.replace(/fl°°/g, function () {
return '';
})).replace(/fl°/g, function () {
return '&';
})).replace(/¶ß/g, function () {
return ';';
});
},
ce = {};
function de(e) {
M.default.setConf(e.git),
b.default.setConf(e.flowchart),
v.default.setConf(e.flowchart),
void 0 !== e.sequenceDiagram &&
U.default.setConf(
Object(se.assignWithDepth)(
e.sequence,
e.sequenceDiagram
)
),
U.default.setConf(e.sequence),
S.default.setConf(e.gantt),
c.default.setConf(e.class),
G.default.setConf(e.state),
Z.default.setConf(e.state),
T.default.setConf(e.class),
F.default.setConf(e.class),
f.default.setConf(e.er),
Q.default.setConf(e.journey),
H.default.setConf(e.requirement),
te.default.setConf(e.class);
}
var he = Object.freeze({
render: function (e, t, i, r) {
a.reset();
var h = t,
u = se.default.detectInit(h);
u && a.addDirective(u);
var g = a.getConfig();
if (
(t.length > g.maxTextSize &&
(h =
'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa'),
void 0 !== r)
)
(r.innerHTML = ''),
Object(n.select)(r)
.append('div')
.attr('id', 'd' + e)
.attr('style', 'font-family: ' + g.fontFamily)
.append('svg')
.attr('id', e)
.attr('width', '100%')
.attr('xmlns', 'http://www.w3.org/2000/svg')
.append('g');
else {
var p = document.getElementById(e);
p && p.remove();
var m = document.querySelector('#d' + e);
m && m.remove(),
Object(n.select)('body')
.append('div')
.attr('id', 'd' + e)
.append('svg')
.attr('id', e)
.attr('width', '100%')
.attr('xmlns', 'http://www.w3.org/2000/svg')
.append('g');
}
(window.txt = h), (h = ae(h));
var y = Object(n.select)('#d' + e).node(),
w = se.default.detectType(h),
k = y.firstChild,
x = k.firstChild,
L = '';
if (
(void 0 !== g.themeCSS && (L += '\n'.concat(g.themeCSS)),
void 0 !== g.fontFamily &&
(L += '\n:root { --mermaid-font-family: '.concat(
g.fontFamily,
'}'
)),
void 0 !== g.altFontFamily &&
(L += '\n:root { --mermaid-alt-font-family: '.concat(
g.altFontFamily,
'}'
)),
'flowchart' === w ||
'flowchart-v2' === w ||
'graph' === w)
) {
var D = b.default.getClasses(h);
for (var N in D)
g.htmlLabels || g.flowchart.htmlLabels
? ((L += '\n.'
.concat(N, ' > * { ')
.concat(
D[N].styles.join(' !important; '),
' !important; }'
)),
(L += '\n.'
.concat(N, ' span { ')
.concat(
D[N].styles.join(' !important; '),
' !important; }'
)))
: ((L += '\n.'
.concat(N, ' path { ')
.concat(
D[N].styles.join(' !important; '),
' !important; }'
)),
(L += '\n.'
.concat(N, ' rect { ')
.concat(
D[N].styles.join(' !important; '),
' !important; }'
)),
(L += '\n.'
.concat(N, ' polygon { ')
.concat(
D[N].styles.join(' !important; '),
' !important; }'
)),
(L += '\n.'
.concat(N, ' ellipse { ')
.concat(
D[N].styles.join(' !important; '),
' !important; }'
)),
(L += '\n.'
.concat(N, ' circle { ')
.concat(
D[N].styles.join(' !important; '),
' !important; }'
)),
D[N].textStyles &&
(L += '\n.'
.concat(N, ' tspan { ')
.concat(
D[N].textStyles.join(' !important; '),
' !important; }'
)));
}
var E = new s.a()(
'#'.concat(e),
Object(ne.default)(w, L, g.themeVariables)
),
I = document.createElement('style');
(I.innerHTML = E), k.insertBefore(I, x);
try {
switch (w) {
case 'git':
(g.flowchart.arrowMarkerAbsolute =
g.arrowMarkerAbsolute),
M.default.setConf(g.git),
M.default.draw(h, e, !1);
break;
case 'flowchart':
(g.flowchart.arrowMarkerAbsolute =
g.arrowMarkerAbsolute),
b.default.setConf(g.flowchart),
b.default.draw(h, e, !1);
break;
case 'flowchart-v2':
(g.flowchart.arrowMarkerAbsolute =
g.arrowMarkerAbsolute),
v.default.setConf(g.flowchart),
v.default.draw(h, e, !1);
break;
case 'sequence':
(g.sequence.arrowMarkerAbsolute =
g.arrowMarkerAbsolute),
g.sequenceDiagram
? (U.default.setConf(
Object.assign(g.sequence, g.sequenceDiagram)
),
console.error(
'`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.'
))
: U.default.setConf(g.sequence),
U.default.draw(h, e);
break;
case 'gantt':
(g.gantt.arrowMarkerAbsolute = g.arrowMarkerAbsolute),
S.default.setConf(g.gantt),
S.default.draw(h, e);
break;
case 'class':
(g.class.arrowMarkerAbsolute = g.arrowMarkerAbsolute),
c.default.setConf(g.class),
c.default.draw(h, e);
break;
case 'classDiagram':
(g.class.arrowMarkerAbsolute = g.arrowMarkerAbsolute),
d.default.setConf(g.class),
d.default.draw(h, e);
break;
case 'state':
(g.class.arrowMarkerAbsolute = g.arrowMarkerAbsolute),
G.default.setConf(g.state),
G.default.draw(h, e);
break;
case 'stateDiagram':
(g.class.arrowMarkerAbsolute = g.arrowMarkerAbsolute),
Z.default.setConf(g.state),
Z.default.draw(h, e);
break;
case 'info':
(g.class.arrowMarkerAbsolute = g.arrowMarkerAbsolute),
T.default.setConf(g.class),
T.default.draw(h, e, o.version);
break;
case 'pie':
(g.class.arrowMarkerAbsolute = g.arrowMarkerAbsolute),
F.default.setConf(g.pie),
F.default.draw(h, e, o.version);
break;
case 'er':
f.default.setConf(g.er),
f.default.draw(h, e, o.version);
break;
case 'journey':
Q.default.setConf(g.journey),
Q.default.draw(h, e, o.version);
break;
case 'requirement':
H.default.setConf(g.requirement),
H.default.draw(h, e, o.version);
}
} catch (t) {
throw (te.default.draw(e, o.version), t);
}
Object(n.select)('[id="'.concat(e, '"]'))
.selectAll('foreignobject > *')
.attr('xmlns', 'http://www.w3.org/1999/xhtml');
var O = Object(n.select)('#d' + e).node().innerHTML;
if (
(ie.log.debug(
'cnf.arrowMarkerAbsolute',
g.arrowMarkerAbsolute
),
(g.arrowMarkerAbsolute &&
'false' !== g.arrowMarkerAbsolute) ||
(O = O.replace(
/marker-end="url\(.*?#/g,
'marker-end="url(#',
'g'
)),
(O = (O = le(O)).replace(/
/g, '
')),
void 0 !== i)
)
switch (w) {
case 'flowchart':
case 'flowchart-v2':
i(O, _.default.bindFunctions);
break;
case 'gantt':
i(O, C.default.bindFunctions);
break;
case 'class':
case 'classDiagram':
i(O, l.default.bindFunctions);
break;
default:
i(O);
}
else ie.log.debug('CB = undefined!');
var A = Object(n.select)('#d' + e).node();
return (
null !== A &&
'function' == typeof A.remove &&
Object(n.select)('#d' + e)
.node()
.remove(),
O
);
},
parse: function (e) {
var t = se.default.detectInit(e);
t && ie.log.debug('reinit ', t);
var i,
n = se.default.detectType(e);
switch ((ie.log.debug('Type ' + n), n)) {
case 'git':
(i = N.a).parser.yy = L.default;
break;
case 'flowchart':
case 'flowchart-v2':
_.default.clear(), ((i = w.a).parser.yy = _.default);
break;
case 'sequence':
(i = V.a).parser.yy = z.default;
break;
case 'gantt':
(i = x.a).parser.yy = C.default;
break;
case 'class':
case 'classDiagram':
(i = u.a).parser.yy = l.default;
break;
case 'state':
case 'stateDiagram':
(i = K.a).parser.yy = q.default;
break;
case 'info':
ie.log.debug('info info info'),
((i = O.a).parser.yy = E.default);
break;
case 'pie':
ie.log.debug('pie'), ((i = R.a).parser.yy = P.default);
break;
case 'er':
ie.log.debug('er'), ((i = m.a).parser.yy = g.default);
break;
case 'journey':
ie.log.debug('Journey'),
((i = ee.a).parser.yy = J.default);
break;
case 'requirement':
case 'requirementDiagram':
console.log('RequirementDiagram'),
ie.log.debug('RequirementDiagram'),
((i = W.a).parser.yy = Y.default);
}
return (
(i.parser.yy.graphType = n),
(i.parser.yy.parseError = function (e, t) {
throw { str: e, hash: t };
}),
i.parse(e),
i
);
},
parseDirective: function (e, t, i, n) {
try {
if (void 0 !== t)
switch (((t = t.trim()), i)) {
case 'open_directive':
ce = {};
break;
case 'type_directive':
ce.type = t.toLowerCase();
break;
case 'arg_directive':
ce.args = JSON.parse(t);
break;
case 'close_directive':
(function (e, t, i) {
switch (
(ie.log.debug(
'Directive type='.concat(
t.type,
' with args:'
),
t.args
),
t.type)
) {
case 'init':
case 'initialize':
['config'].forEach(function (e) {
void 0 !== t.args[e] &&
('flowchart-v2' === i &&
(i = 'flowchart'),
(t.args[i] = t.args[e]),
delete t.args[e]);
}),
t.args,
a.addDirective(t.args);
break;
case 'wrap':
case 'nowrap':
e &&
e.setWrap &&
e.setWrap('wrap' === t.type);
break;
default:
ie.log.warn(
"Unhandled directive: source: '%%{"
.concat(t.type, ': ')
.concat(
JSON.stringify(t.args ? t.args : {}),
'}%%'
),
t
);
}
})(e, ce, n),
(ce = null);
}
} catch (e) {
ie.log.error(
'Error while rendering sequenceDiagram directive: '
.concat(t, ' jison context: ')
.concat(i)
),
ie.log.error(e.message);
}
},
initialize: function (e) {
e &&
e.fontFamily &&
((e.themeVariables && e.themeVariables.fontFamily) ||
(e.themeVariables = { fontFamily: e.fontFamily })),
a.saveConfigFromInitilize(e),
e && e.theme && re.default[e.theme]
? (e.themeVariables = re.default[
e.theme
].getThemeVariables(e.themeVariables))
: e &&
(e.themeVariables = re.default.default.getThemeVariables(
e.themeVariables
));
var t =
'object' === oe(e)
? a.setSiteConfig(e)
: a.getSiteConfig();
de(t), Object(ie.setLogLevel)(t.logLevel);
},
reinitialize: function () {},
getConfig: a.getConfig,
setConfig: a.setConfig,
getSiteConfig: a.getSiteConfig,
updateSiteConfig: a.updateSiteConfig,
reset: function () {
a.reset();
},
globalReset: function () {
a.reset(a.defaultConfig), de(a.getConfig());
},
defaultConfig: a.defaultConfig,
});
Object(ie.setLogLevel)(a.getConfig().logLevel),
a.reset(a.getConfig()),
(t.default = he);
},
'./src/styles.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'calcThemeVariables', function () {
return p;
});
var n = i('./src/diagrams/class/styles.js'),
r = i('./src/diagrams/er/styles.js'),
s = i('./src/diagrams/flowchart/styles.js'),
o = i('./src/diagrams/gantt/styles.js'),
a = i('./src/diagrams/git/styles.js'),
l = i('./src/diagrams/info/styles.js'),
c = i('./src/diagrams/pie/styles.js'),
d = i('./src/diagrams/requirement/styles.js'),
h = i('./src/diagrams/sequence/styles.js'),
u = i('./src/diagrams/state/styles.js'),
g = i('./src/diagrams/user-journey/styles.js'),
f = {
flowchart: s.default,
'flowchart-v2': s.default,
sequence: h.default,
gantt: o.default,
classDiagram: n.default,
'classDiagram-v2': n.default,
class: n.default,
stateDiagram: u.default,
state: u.default,
git: a.default,
info: l.default,
pie: c.default,
er: r.default,
journey: g.default,
requirement: d.default,
},
p = function (e, t) {
return e.calcColors(t);
};
t.default = function (e, t, i) {
return ' {\n font-family: '
.concat(i.fontFamily, ';\n font-size: ')
.concat(i.fontSize, ';\n fill: ')
.concat(
i.textColor,
'\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: '
)
.concat(
i.errorBkgColor,
';\n }\n .error-text {\n fill: '
)
.concat(i.errorTextColor, ';\n stroke: ')
.concat(
i.errorTextColor,
';\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: '
)
.concat(i.lineColor, ';\n stroke: ')
.concat(
i.lineColor,
';\n }\n .marker.cross {\n stroke: '
)
.concat(i.lineColor, ';\n }\n\n svg {\n font-family: ')
.concat(i.fontFamily, ';\n font-size: ')
.concat(i.fontSize, ';\n }\n\n ')
.concat(f[e](i), '\n\n ')
.concat(t, '\n\n ')
.concat(e, ' { fill: apa;}\n');
};
},
'./src/themes/index.js': function (e, t, i) {
'use strict';
i.r(t);
var n = i('./src/themes/theme-base.js'),
r = i('./src/themes/theme-dark.js'),
s = i('./src/themes/theme-default.js'),
o = i('./src/themes/theme-forest.js'),
a = i('./src/themes/theme-neutral.js');
t.default = {
base: { getThemeVariables: n.getThemeVariables },
dark: { getThemeVariables: r.getThemeVariables },
default: { getThemeVariables: s.getThemeVariables },
forest: { getThemeVariables: o.getThemeVariables },
neutral: { getThemeVariables: a.getThemeVariables },
};
},
'./src/themes/theme-base.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'getThemeVariables', function () {
return l;
});
var n = i('khroma'),
r = i('./src/themes/theme-helpers.js');
function s(e) {
return (s =
'function' == typeof Symbol &&
'symbol' == typeof Symbol.iterator
? function (e) {
return typeof e;
}
: function (e) {
return e &&
'function' == typeof Symbol &&
e.constructor === Symbol &&
e !== Symbol.prototype
? 'symbol'
: typeof e;
})(e);
}
function o(e, t) {
for (var i = 0; i < t.length; i++) {
var n = t[i];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
'value' in n && (n.writable = !0),
Object.defineProperty(e, n.key, n);
}
}
var a = (function () {
function e() {
!(function (e, t) {
if (!(e instanceof t))
throw new TypeError(
'Cannot call a class as a function'
);
})(this, e),
(this.background = '#f4f4f4'),
(this.darkMode = !1),
(this.primaryColor = '#fff4dd'),
(this.noteBkgColor = '#fff5ad'),
(this.noteTextColor = '#333'),
(this.fontFamily =
'"trebuchet ms", verdana, arial, sans-serif'),
(this.fontSize = '16px');
}
var t, i;
return (
(t = e),
(i = [
{
key: 'updateColors',
value: function () {
(this.primaryTextColor =
this.primaryTextColor ||
(this.darkMode ? '#ddd' : '#333')),
(this.secondaryColor =
this.secondaryColor ||
Object(n.adjust)(this.primaryColor, {
h: -120,
})),
(this.tertiaryColor =
this.tertiaryColor ||
Object(n.adjust)(this.primaryColor, {
h: 180,
l: 5,
})),
(this.primaryBorderColor =
this.primaryBorderColor ||
Object(r.mkBorder)(
this.primaryColor,
this.darkMode
)),
(this.secondaryBorderColor =
this.secondaryBorderColor ||
Object(r.mkBorder)(
this.secondaryColor,
this.darkMode
)),
(this.tertiaryBorderColor =
this.tertiaryBorderColor ||
Object(r.mkBorder)(
this.tertiaryColor,
this.darkMode
)),
(this.noteBorderColor =
this.noteBorderColor ||
Object(r.mkBorder)(
this.noteBkgColor,
this.darkMode
)),
(this.secondaryTextColor =
this.secondaryTextColor ||
Object(n.invert)(this.secondaryColor)),
(this.tertiaryTextColor =
this.tertiaryTextColor ||
Object(n.invert)(this.tertiaryColor)),
(this.lineColor =
this.lineColor ||
Object(n.invert)(this.background)),
(this.textColor =
this.textColor || this.primaryTextColor),
(this.nodeBkg =
this.nodeBkg || this.primaryColor),
(this.mainBkg =
this.mainBkg || this.primaryColor),
(this.nodeBorder =
this.nodeBorder || this.primaryBorderColor),
(this.clusterBkg =
this.clusterBkg || this.tertiaryColor),
(this.clusterBorder =
this.clusterBorder || this.tertiaryBorderColor),
(this.defaultLinkColor =
this.defaultLinkColor || this.lineColor),
(this.titleColor =
this.titleColor || this.tertiaryTextColor),
(this.edgeLabelBackground =
this.edgeLabelBackground ||
(this.darkMode
? Object(n.darken)(this.secondaryColor, 30)
: this.secondaryColor)),
(this.nodeTextColor =
this.nodeTextColor || this.primaryTextColor),
(this.actorBorder =
this.actorBorder || this.primaryBorderColor),
(this.actorBkg = this.actorBkg || this.mainBkg),
(this.actorTextColor =
this.actorTextColor || this.primaryTextColor),
(this.actorLineColor =
this.actorLineColor || 'grey'),
(this.labelBoxBkgColor =
this.labelBoxBkgColor || this.actorBkg),
(this.signalColor =
this.signalColor || this.textColor),
(this.signalTextColor =
this.signalTextColor || this.textColor),
(this.labelBoxBorderColor =
this.labelBoxBorderColor || this.actorBorder),
(this.labelTextColor =
this.labelTextColor || this.actorTextColor),
(this.loopTextColor =
this.loopTextColor || this.actorTextColor),
(this.activationBorderColor =
this.activationBorderColor ||
Object(n.darken)(this.secondaryColor, 10)),
(this.activationBkgColor =
this.activationBkgColor || this.secondaryColor),
(this.sequenceNumberColor =
this.sequenceNumberColor ||
Object(n.invert)(this.lineColor)),
(this.sectionBkgColor =
this.sectionBkgColor || this.tertiaryColor),
(this.altSectionBkgColor =
this.altSectionBkgColor || 'white'),
(this.sectionBkgColor =
this.sectionBkgColor || this.secondaryColor),
(this.sectionBkgColor2 =
this.sectionBkgColor2 || this.primaryColor),
(this.taskBorderColor =
this.taskBorderColor ||
this.primaryBorderColor),
(this.taskBkgColor =
this.taskBkgColor || this.primaryColor),
(this.activeTaskBorderColor =
this.activeTaskBorderColor ||
this.primaryColor),
(this.activeTaskBkgColor =
this.activeTaskBkgColor ||
Object(n.lighten)(this.primaryColor, 23)),
(this.gridColor = this.gridColor || 'lightgrey'),
(this.doneTaskBkgColor =
this.doneTaskBkgColor || 'lightgrey'),
(this.doneTaskBorderColor =
this.doneTaskBorderColor || 'grey'),
(this.critBorderColor =
this.critBorderColor || '#ff8888'),
(this.critBkgColor = this.critBkgColor || 'red'),
(this.todayLineColor =
this.todayLineColor || 'red'),
(this.taskTextColor =
this.taskTextColor || this.textColor),
(this.taskTextOutsideColor =
this.taskTextOutsideColor || this.textColor),
(this.taskTextLightColor =
this.taskTextLightColor || this.textColor),
(this.taskTextColor =
this.taskTextColor || this.primaryTextColor),
(this.taskTextDarkColor =
this.taskTextDarkColor || this.textColor),
(this.taskTextClickableColor =
this.taskTextClickableColor || '#003163'),
(this.labelColor =
this.labelColor || this.primaryTextColor),
(this.altBackground =
this.altBackground || this.tertiaryColor),
(this.errorBkgColor =
this.errorBkgColor || this.tertiaryColor),
(this.errorTextColor =
this.errorTextColor || this.tertiaryTextColor),
(this.classText =
this.classText || this.textColor),
(this.fillType0 =
this.fillType0 || this.primaryColor),
(this.fillType1 =
this.fillType1 || this.secondaryColor),
(this.fillType2 =
this.fillType2 ||
Object(n.adjust)(this.primaryColor, { h: 64 })),
(this.fillType3 =
this.fillType3 ||
Object(n.adjust)(this.secondaryColor, {
h: 64,
})),
(this.fillType4 =
this.fillType4 ||
Object(n.adjust)(this.primaryColor, {
h: -64,
})),
(this.fillType5 =
this.fillType5 ||
Object(n.adjust)(this.secondaryColor, {
h: -64,
})),
(this.fillType6 =
this.fillType6 ||
Object(n.adjust)(this.primaryColor, {
h: 128,
})),
(this.fillType7 =
this.fillType7 ||
Object(n.adjust)(this.secondaryColor, {
h: 128,
}));
},
},
{
key: 'calculate',
value: function (e) {
var t = this;
if ('object' === s(e)) {
var i = Object.keys(e);
i.forEach(function (i) {
t[i] = e[i];
}),
this.updateColors(),
i.forEach(function (i) {
t[i] = e[i];
});
} else this.updateColors();
},
},
]) && o(t.prototype, i),
e
);
})(),
l = function (e) {
var t = new a();
return t.calculate(e), t;
};
},
'./src/themes/theme-dark.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'getThemeVariables', function () {
return l;
});
var n = i('khroma'),
r = i('./src/themes/theme-helpers.js');
function s(e) {
return (s =
'function' == typeof Symbol &&
'symbol' == typeof Symbol.iterator
? function (e) {
return typeof e;
}
: function (e) {
return e &&
'function' == typeof Symbol &&
e.constructor === Symbol &&
e !== Symbol.prototype
? 'symbol'
: typeof e;
})(e);
}
function o(e, t) {
for (var i = 0; i < t.length; i++) {
var n = t[i];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
'value' in n && (n.writable = !0),
Object.defineProperty(e, n.key, n);
}
}
var a = (function () {
function e() {
!(function (e, t) {
if (!(e instanceof t))
throw new TypeError(
'Cannot call a class as a function'
);
})(this, e),
(this.background = '#333'),
(this.primaryColor = '#1f2020'),
(this.secondaryColor = Object(n.lighten)(
this.primaryColor,
16
)),
(this.tertiaryColor = Object(n.adjust)(
this.primaryColor,
{ h: -160 }
)),
(this.primaryBorderColor = Object(r.mkBorder)(
this.primaryColor,
this.darkMode
)),
(this.secondaryBorderColor = Object(r.mkBorder)(
this.secondaryColor,
this.darkMode
)),
(this.tertiaryBorderColor = Object(r.mkBorder)(
this.tertiaryColor,
this.darkMode
)),
(this.primaryTextColor = Object(n.invert)(
this.primaryColor
)),
(this.secondaryTextColor = Object(n.invert)(
this.secondaryColor
)),
(this.tertiaryTextColor = Object(n.invert)(
this.tertiaryColor
)),
(this.lineColor = Object(n.invert)(this.background)),
(this.textColor = Object(n.invert)(this.background)),
(this.mainBkg = '#1f2020'),
(this.secondBkg = 'calculated'),
(this.mainContrastColor = 'lightgrey'),
(this.darkTextColor = Object(n.lighten)(
Object(n.invert)('#323D47'),
10
)),
(this.lineColor = 'calculated'),
(this.border1 = '#81B1DB'),
(this.border2 = Object(n.rgba)(255, 255, 255, 0.25)),
(this.arrowheadColor = 'calculated'),
(this.fontFamily =
'"trebuchet ms", verdana, arial, sans-serif'),
(this.fontSize = '16px'),
(this.labelBackground = '#181818'),
(this.textColor = '#ccc'),
(this.nodeBkg = 'calculated'),
(this.nodeBorder = 'calculated'),
(this.clusterBkg = 'calculated'),
(this.clusterBorder = 'calculated'),
(this.defaultLinkColor = 'calculated'),
(this.titleColor = '#F9FFFE'),
(this.edgeLabelBackground = 'calculated'),
(this.actorBorder = 'calculated'),
(this.actorBkg = 'calculated'),
(this.actorTextColor = 'calculated'),
(this.actorLineColor = 'calculated'),
(this.signalColor = 'calculated'),
(this.signalTextColor = 'calculated'),
(this.labelBoxBkgColor = 'calculated'),
(this.labelBoxBorderColor = 'calculated'),
(this.labelTextColor = 'calculated'),
(this.loopTextColor = 'calculated'),
(this.noteBorderColor = 'calculated'),
(this.noteBkgColor = '#fff5ad'),
(this.noteTextColor = 'calculated'),
(this.activationBorderColor = 'calculated'),
(this.activationBkgColor = 'calculated'),
(this.sequenceNumberColor = 'black'),
(this.sectionBkgColor = Object(n.darken)(
'#EAE8D9',
30
)),
(this.altSectionBkgColor = 'calculated'),
(this.sectionBkgColor2 = '#EAE8D9'),
(this.taskBorderColor = Object(n.rgba)(
255,
255,
255,
70
)),
(this.taskBkgColor = 'calculated'),
(this.taskTextColor = 'calculated'),
(this.taskTextLightColor = 'calculated'),
(this.taskTextOutsideColor = 'calculated'),
(this.taskTextClickableColor = '#003163'),
(this.activeTaskBorderColor = Object(n.rgba)(
255,
255,
255,
50
)),
(this.activeTaskBkgColor = '#81B1DB'),
(this.gridColor = 'calculated'),
(this.doneTaskBkgColor = 'calculated'),
(this.doneTaskBorderColor = 'grey'),
(this.critBorderColor = '#E83737'),
(this.critBkgColor = '#E83737'),
(this.taskTextDarkColor = 'calculated'),
(this.todayLineColor = '#DB5757'),
(this.labelColor = 'calculated'),
(this.errorBkgColor = '#a44141'),
(this.errorTextColor = '#ddd');
}
var t, i;
return (
(t = e),
(i = [
{
key: 'updateColors',
value: function () {
(this.secondBkg = Object(n.lighten)(
this.mainBkg,
16
)),
(this.lineColor = this.mainContrastColor),
(this.arrowheadColor = this.mainContrastColor),
(this.nodeBkg = this.mainBkg),
(this.nodeBorder = this.border1),
(this.clusterBkg = this.secondBkg),
(this.clusterBorder = this.border2),
(this.defaultLinkColor = this.lineColor),
(this.edgeLabelBackground = Object(n.lighten)(
this.labelBackground,
25
)),
(this.actorBorder = this.border1),
(this.actorBkg = this.mainBkg),
(this.actorTextColor = this.mainContrastColor),
(this.actorLineColor = this.mainContrastColor),
(this.signalColor = this.mainContrastColor),
(this.signalTextColor = this.mainContrastColor),
(this.labelBoxBkgColor = this.actorBkg),
(this.labelBoxBorderColor = this.actorBorder),
(this.labelTextColor = this.mainContrastColor),
(this.loopTextColor = this.mainContrastColor),
(this.noteBorderColor = this.secondaryBorderColor),
(this.noteBkgColor = this.secondBkg),
(this.noteTextColor = this.secondaryTextColor),
(this.activationBorderColor = this.border1),
(this.activationBkgColor = this.secondBkg),
(this.altSectionBkgColor = this.background),
(this.taskBkgColor = Object(n.lighten)(
this.mainBkg,
23
)),
(this.taskTextColor = this.darkTextColor),
(this.taskTextLightColor = this.mainContrastColor),
(this.taskTextOutsideColor = this.taskTextLightColor),
(this.gridColor = this.mainContrastColor),
(this.doneTaskBkgColor = this.mainContrastColor),
(this.taskTextDarkColor = this.darkTextColor),
(this.labelColor = this.textColor),
(this.altBackground = Object(n.lighten)(
this.background,
20
)),
(this.fillType0 = this.primaryColor),
(this.fillType1 = this.secondaryColor),
(this.fillType2 = Object(n.adjust)(
this.primaryColor,
{ h: 64 }
)),
(this.fillType3 = Object(n.adjust)(
this.secondaryColor,
{ h: 64 }
)),
(this.fillType4 = Object(n.adjust)(
this.primaryColor,
{ h: -64 }
)),
(this.fillType5 = Object(n.adjust)(
this.secondaryColor,
{ h: -64 }
)),
(this.fillType6 = Object(n.adjust)(
this.primaryColor,
{ h: 128 }
)),
(this.fillType7 = Object(n.adjust)(
this.secondaryColor,
{ h: 128 }
)),
(this.classText = this.primaryTextColor);
},
},
{
key: 'calculate',
value: function (e) {
var t = this;
if ('object' === s(e)) {
var i = Object.keys(e);
i.forEach(function (i) {
t[i] = e[i];
}),
this.updateColors(),
i.forEach(function (i) {
t[i] = e[i];
});
} else this.updateColors();
},
},
]) && o(t.prototype, i),
e
);
})(),
l = function (e) {
var t = new a();
return t.calculate(e), t;
};
},
'./src/themes/theme-default.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'getThemeVariables', function () {
return l;
});
var n = i('khroma'),
r = i('./src/themes/theme-helpers.js');
function s(e) {
return (s =
'function' == typeof Symbol &&
'symbol' == typeof Symbol.iterator
? function (e) {
return typeof e;
}
: function (e) {
return e &&
'function' == typeof Symbol &&
e.constructor === Symbol &&
e !== Symbol.prototype
? 'symbol'
: typeof e;
})(e);
}
function o(e, t) {
for (var i = 0; i < t.length; i++) {
var n = t[i];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
'value' in n && (n.writable = !0),
Object.defineProperty(e, n.key, n);
}
}
var a = (function () {
function e() {
!(function (e, t) {
if (!(e instanceof t))
throw new TypeError(
'Cannot call a class as a function'
);
})(this, e),
(this.background = '#f4f4f4'),
(this.primaryColor = '#ECECFF'),
(this.secondaryColor = Object(n.adjust)(
this.primaryColor,
{ h: 120 }
)),
(this.secondaryColor = '#ffffde'),
(this.tertiaryColor = Object(n.adjust)(
this.primaryColor,
{ h: -160 }
)),
(this.primaryBorderColor = Object(r.mkBorder)(
this.primaryColor,
this.darkMode
)),
(this.secondaryBorderColor = Object(r.mkBorder)(
this.secondaryColor,
this.darkMode
)),
(this.tertiaryBorderColor = Object(r.mkBorder)(
this.tertiaryColor,
this.darkMode
)),
(this.primaryTextColor = Object(n.invert)(
this.primaryColor
)),
(this.secondaryTextColor = Object(n.invert)(
this.secondaryColor
)),
(this.tertiaryTextColor = Object(n.invert)(
this.tertiaryColor
)),
(this.lineColor = Object(n.invert)(this.background)),
(this.textColor = Object(n.invert)(this.background)),
(this.background = 'white'),
(this.mainBkg = '#ECECFF'),
(this.secondBkg = '#ffffde'),
(this.lineColor = '#333333'),
(this.border1 = '#9370DB'),
(this.border2 = '#aaaa33'),
(this.arrowheadColor = '#333333'),
(this.fontFamily =
'"trebuchet ms", verdana, arial, sans-serif'),
(this.fontSize = '16px'),
(this.labelBackground = '#e8e8e8'),
(this.textColor = '#333'),
(this.nodeBkg = 'calculated'),
(this.nodeBorder = 'calculated'),
(this.clusterBkg = 'calculated'),
(this.clusterBorder = 'calculated'),
(this.defaultLinkColor = 'calculated'),
(this.titleColor = 'calculated'),
(this.edgeLabelBackground = 'calculated'),
(this.actorBorder = 'calculated'),
(this.actorBkg = 'calculated'),
(this.actorTextColor = 'black'),
(this.actorLineColor = 'grey'),
(this.signalColor = 'calculated'),
(this.signalTextColor = 'calculated'),
(this.labelBoxBkgColor = 'calculated'),
(this.labelBoxBorderColor = 'calculated'),
(this.labelTextColor = 'calculated'),
(this.loopTextColor = 'calculated'),
(this.noteBorderColor = 'calculated'),
(this.noteBkgColor = '#fff5ad'),
(this.noteTextColor = 'calculated'),
(this.activationBorderColor = '#666'),
(this.activationBkgColor = '#f4f4f4'),
(this.sequenceNumberColor = 'white'),
(this.sectionBkgColor = 'calculated'),
(this.altSectionBkgColor = 'calculated'),
(this.sectionBkgColor2 = 'calculated'),
(this.taskBorderColor = 'calculated'),
(this.taskBkgColor = 'calculated'),
(this.taskTextLightColor = 'calculated'),
(this.taskTextColor = this.taskTextLightColor),
(this.taskTextDarkColor = 'calculated'),
(this.taskTextOutsideColor = this.taskTextDarkColor),
(this.taskTextClickableColor = 'calculated'),
(this.activeTaskBorderColor = 'calculated'),
(this.activeTaskBkgColor = 'calculated'),
(this.gridColor = 'calculated'),
(this.doneTaskBkgColor = 'calculated'),
(this.doneTaskBorderColor = 'calculated'),
(this.critBorderColor = 'calculated'),
(this.critBkgColor = 'calculated'),
(this.todayLineColor = 'calculated'),
(this.sectionBkgColor = Object(n.rgba)(
102,
102,
255,
0.49
)),
(this.altSectionBkgColor = 'white'),
(this.sectionBkgColor2 = '#fff400'),
(this.taskBorderColor = '#534fbc'),
(this.taskBkgColor = '#8a90dd'),
(this.taskTextLightColor = 'white'),
(this.taskTextColor = 'calculated'),
(this.taskTextDarkColor = 'black'),
(this.taskTextOutsideColor = 'calculated'),
(this.taskTextClickableColor = '#003163'),
(this.activeTaskBorderColor = '#534fbc'),
(this.activeTaskBkgColor = '#bfc7ff'),
(this.gridColor = 'lightgrey'),
(this.doneTaskBkgColor = 'lightgrey'),
(this.doneTaskBorderColor = 'grey'),
(this.critBorderColor = '#ff8888'),
(this.critBkgColor = 'red'),
(this.todayLineColor = 'red'),
(this.labelColor = 'black'),
(this.errorBkgColor = '#552222'),
(this.errorTextColor = '#552222'),
this.updateColors();
}
var t, i;
return (
(t = e),
(i = [
{
key: 'updateColors',
value: function () {
(this.nodeBkg = this.mainBkg),
(this.nodeBorder = this.border1),
(this.clusterBkg = this.secondBkg),
(this.clusterBorder = this.border2),
(this.defaultLinkColor = this.lineColor),
(this.titleColor = this.textColor),
(this.edgeLabelBackground = this.labelBackground),
(this.actorBorder = Object(n.lighten)(
this.border1,
23
)),
(this.actorBkg = this.mainBkg),
(this.labelBoxBkgColor = this.actorBkg),
(this.signalColor = this.textColor),
(this.signalTextColor = this.textColor),
(this.labelBoxBorderColor = this.actorBorder),
(this.labelTextColor = this.actorTextColor),
(this.loopTextColor = this.actorTextColor),
(this.noteBorderColor = this.border2),
(this.noteTextColor = this.actorTextColor),
(this.taskTextColor = this.taskTextLightColor),
(this.taskTextOutsideColor = this.taskTextDarkColor),
(this.classText = this.primaryTextColor),
(this.fillType0 = this.primaryColor),
(this.fillType1 = this.secondaryColor),
(this.fillType2 = Object(n.adjust)(
this.primaryColor,
{ h: 64 }
)),
(this.fillType3 = Object(n.adjust)(
this.secondaryColor,
{ h: 64 }
)),
(this.fillType4 = Object(n.adjust)(
this.primaryColor,
{ h: -64 }
)),
(this.fillType5 = Object(n.adjust)(
this.secondaryColor,
{ h: -64 }
)),
(this.fillType6 = Object(n.adjust)(
this.primaryColor,
{ h: 128 }
)),
(this.fillType7 = Object(n.adjust)(
this.secondaryColor,
{ h: 128 }
));
},
},
{
key: 'calculate',
value: function (e) {
var t = this;
if ('object' === s(e)) {
var i = Object.keys(e);
i.forEach(function (i) {
t[i] = e[i];
}),
this.updateColors(),
i.forEach(function (i) {
t[i] = e[i];
});
} else this.updateColors();
},
},
]) && o(t.prototype, i),
e
);
})(),
l = function (e) {
var t = new a();
return t.calculate(e), t;
};
},
'./src/themes/theme-forest.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'getThemeVariables', function () {
return l;
});
var n = i('khroma'),
r = i('./src/themes/theme-helpers.js');
function s(e) {
return (s =
'function' == typeof Symbol &&
'symbol' == typeof Symbol.iterator
? function (e) {
return typeof e;
}
: function (e) {
return e &&
'function' == typeof Symbol &&
e.constructor === Symbol &&
e !== Symbol.prototype
? 'symbol'
: typeof e;
})(e);
}
function o(e, t) {
for (var i = 0; i < t.length; i++) {
var n = t[i];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
'value' in n && (n.writable = !0),
Object.defineProperty(e, n.key, n);
}
}
var a = (function () {
function e() {
!(function (e, t) {
if (!(e instanceof t))
throw new TypeError(
'Cannot call a class as a function'
);
})(this, e),
(this.background = '#f4f4f4'),
(this.primaryColor = '#cde498'),
(this.secondaryColor = '#cdffb2'),
(this.background = 'white'),
(this.mainBkg = '#cde498'),
(this.secondBkg = '#cdffb2'),
(this.lineColor = 'green'),
(this.border1 = '#13540c'),
(this.border2 = '#6eaa49'),
(this.arrowheadColor = 'green'),
(this.fontFamily =
'"trebuchet ms", verdana, arial, sans-serif'),
(this.fontSize = '16px'),
(this.tertiaryColor = Object(n.lighten)('#cde498', 10)),
(this.primaryBorderColor = Object(r.mkBorder)(
this.primaryColor,
this.darkMode
)),
(this.secondaryBorderColor = Object(r.mkBorder)(
this.secondaryColor,
this.darkMode
)),
(this.tertiaryBorderColor = Object(r.mkBorder)(
this.tertiaryColor,
this.darkMode
)),
(this.primaryTextColor = Object(n.invert)(
this.primaryColor
)),
(this.secondaryTextColor = Object(n.invert)(
this.secondaryColor
)),
(this.tertiaryTextColor = Object(n.invert)(
this.primaryColor
)),
(this.lineColor = Object(n.invert)(this.background)),
(this.textColor = Object(n.invert)(this.background)),
(this.nodeBkg = 'calculated'),
(this.nodeBorder = 'calculated'),
(this.clusterBkg = 'calculated'),
(this.clusterBorder = 'calculated'),
(this.defaultLinkColor = 'calculated'),
(this.titleColor = '#333'),
(this.edgeLabelBackground = '#e8e8e8'),
(this.actorBorder = 'calculated'),
(this.actorBkg = 'calculated'),
(this.actorTextColor = 'black'),
(this.actorLineColor = 'grey'),
(this.signalColor = '#333'),
(this.signalTextColor = '#333'),
(this.labelBoxBkgColor = 'calculated'),
(this.labelBoxBorderColor = '#326932'),
(this.labelTextColor = 'calculated'),
(this.loopTextColor = 'calculated'),
(this.noteBorderColor = 'calculated'),
(this.noteBkgColor = '#fff5ad'),
(this.noteTextColor = 'calculated'),
(this.activationBorderColor = '#666'),
(this.activationBkgColor = '#f4f4f4'),
(this.sequenceNumberColor = 'white'),
(this.sectionBkgColor = '#6eaa49'),
(this.altSectionBkgColor = 'white'),
(this.sectionBkgColor2 = '#6eaa49'),
(this.taskBorderColor = 'calculated'),
(this.taskBkgColor = '#487e3a'),
(this.taskTextLightColor = 'white'),
(this.taskTextColor = 'calculated'),
(this.taskTextDarkColor = 'black'),
(this.taskTextOutsideColor = 'calculated'),
(this.taskTextClickableColor = '#003163'),
(this.activeTaskBorderColor = 'calculated'),
(this.activeTaskBkgColor = 'calculated'),
(this.gridColor = 'lightgrey'),
(this.doneTaskBkgColor = 'lightgrey'),
(this.doneTaskBorderColor = 'grey'),
(this.critBorderColor = '#ff8888'),
(this.critBkgColor = 'red'),
(this.todayLineColor = 'red'),
(this.labelColor = 'black'),
(this.errorBkgColor = '#552222'),
(this.errorTextColor = '#552222');
}
var t, i;
return (
(t = e),
(i = [
{
key: 'updateColors',
value: function () {
(this.nodeBkg = this.mainBkg),
(this.nodeBorder = this.border1),
(this.clusterBkg = this.secondBkg),
(this.clusterBorder = this.border2),
(this.defaultLinkColor = this.lineColor),
(this.actorBorder = Object(n.darken)(
this.mainBkg,
20
)),
(this.actorBkg = this.mainBkg),
(this.labelBoxBkgColor = this.actorBkg),
(this.labelTextColor = this.actorTextColor),
(this.loopTextColor = this.actorTextColor),
(this.noteBorderColor = this.border2),
(this.noteTextColor = this.actorTextColor),
(this.taskBorderColor = this.border1),
(this.taskTextColor = this.taskTextLightColor),
(this.taskTextOutsideColor = this.taskTextDarkColor),
(this.activeTaskBorderColor = this.taskBorderColor),
(this.activeTaskBkgColor = this.mainBkg),
(this.classText = this.primaryTextColor),
(this.fillType0 = this.primaryColor),
(this.fillType1 = this.secondaryColor),
(this.fillType2 = Object(n.adjust)(
this.primaryColor,
{ h: 64 }
)),
(this.fillType3 = Object(n.adjust)(
this.secondaryColor,
{ h: 64 }
)),
(this.fillType4 = Object(n.adjust)(
this.primaryColor,
{ h: -64 }
)),
(this.fillType5 = Object(n.adjust)(
this.secondaryColor,
{ h: -64 }
)),
(this.fillType6 = Object(n.adjust)(
this.primaryColor,
{ h: 128 }
)),
(this.fillType7 = Object(n.adjust)(
this.secondaryColor,
{ h: 128 }
));
},
},
{
key: 'calculate',
value: function (e) {
var t = this;
if ('object' === s(e)) {
var i = Object.keys(e);
i.forEach(function (i) {
t[i] = e[i];
}),
this.updateColors(),
i.forEach(function (i) {
t[i] = e[i];
});
} else this.updateColors();
},
},
]) && o(t.prototype, i),
e
);
})(),
l = function (e) {
var t = new a();
return t.calculate(e), t;
};
},
'./src/themes/theme-helpers.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'mkBorder', function () {
return r;
});
var n = i('khroma'),
r = function (e, t) {
return t
? Object(n.adjust)(e, { s: -40, l: 10 })
: Object(n.adjust)(e, { s: -40, l: -10 });
};
},
'./src/themes/theme-neutral.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'getThemeVariables', function () {
return l;
});
var n = i('khroma'),
r = i('./src/themes/theme-helpers.js');
function s(e) {
return (s =
'function' == typeof Symbol &&
'symbol' == typeof Symbol.iterator
? function (e) {
return typeof e;
}
: function (e) {
return e &&
'function' == typeof Symbol &&
e.constructor === Symbol &&
e !== Symbol.prototype
? 'symbol'
: typeof e;
})(e);
}
function o(e, t) {
for (var i = 0; i < t.length; i++) {
var n = t[i];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
'value' in n && (n.writable = !0),
Object.defineProperty(e, n.key, n);
}
}
var a = (function () {
function e() {
!(function (e, t) {
if (!(e instanceof t))
throw new TypeError(
'Cannot call a class as a function'
);
})(this, e),
(this.primaryColor = '#eee'),
(this.contrast = '#707070'),
(this.secondaryColor = Object(n.lighten)(
this.contrast,
55
)),
(this.background = '#ffffff'),
(this.tertiaryColor = Object(n.adjust)(
this.primaryColor,
{ h: -160 }
)),
(this.primaryBorderColor = Object(r.mkBorder)(
this.primaryColor,
this.darkMode
)),
(this.secondaryBorderColor = Object(r.mkBorder)(
this.secondaryColor,
this.darkMode
)),
(this.tertiaryBorderColor = Object(r.mkBorder)(
this.tertiaryColor,
this.darkMode
)),
(this.primaryTextColor = Object(n.invert)(
this.primaryColor
)),
(this.secondaryTextColor = Object(n.invert)(
this.secondaryColor
)),
(this.tertiaryTextColor = Object(n.invert)(
this.tertiaryColor
)),
(this.lineColor = Object(n.invert)(this.background)),
(this.textColor = Object(n.invert)(this.background)),
(this.altBackground = Object(n.lighten)(
this.contrast,
55
)),
(this.mainBkg = '#eee'),
(this.secondBkg = 'calculated'),
(this.lineColor = '#666'),
(this.border1 = '#999'),
(this.border2 = 'calculated'),
(this.note = '#ffa'),
(this.text = '#333'),
(this.critical = '#d42'),
(this.done = '#bbb'),
(this.arrowheadColor = '#333333'),
(this.fontFamily =
'"trebuchet ms", verdana, arial, sans-serif'),
(this.fontSize = '16px'),
(this.nodeBkg = 'calculated'),
(this.nodeBorder = 'calculated'),
(this.clusterBkg = 'calculated'),
(this.clusterBorder = 'calculated'),
(this.defaultLinkColor = 'calculated'),
(this.titleColor = 'calculated'),
(this.edgeLabelBackground = 'white'),
(this.actorBorder = 'calculated'),
(this.actorBkg = 'calculated'),
(this.actorTextColor = 'calculated'),
(this.actorLineColor = 'calculated'),
(this.signalColor = 'calculated'),
(this.signalTextColor = 'calculated'),
(this.labelBoxBkgColor = 'calculated'),
(this.labelBoxBorderColor = 'calculated'),
(this.labelTextColor = 'calculated'),
(this.loopTextColor = 'calculated'),
(this.noteBorderColor = 'calculated'),
(this.noteBkgColor = 'calculated'),
(this.noteTextColor = 'calculated'),
(this.activationBorderColor = '#666'),
(this.activationBkgColor = '#f4f4f4'),
(this.sequenceNumberColor = 'white'),
(this.sectionBkgColor = 'calculated'),
(this.altSectionBkgColor = 'white'),
(this.sectionBkgColor2 = 'calculated'),
(this.taskBorderColor = 'calculated'),
(this.taskBkgColor = 'calculated'),
(this.taskTextLightColor = 'white'),
(this.taskTextColor = 'calculated'),
(this.taskTextDarkColor = 'calculated'),
(this.taskTextOutsideColor = 'calculated'),
(this.taskTextClickableColor = '#003163'),
(this.activeTaskBorderColor = 'calculated'),
(this.activeTaskBkgColor = 'calculated'),
(this.gridColor = 'calculated'),
(this.doneTaskBkgColor = 'calculated'),
(this.doneTaskBorderColor = 'calculated'),
(this.critBkgColor = 'calculated'),
(this.critBorderColor = 'calculated'),
(this.todayLineColor = 'calculated'),
(this.labelColor = 'black'),
(this.errorBkgColor = '#552222'),
(this.errorTextColor = '#552222');
}
var t, i;
return (
(t = e),
(i = [
{
key: 'updateColors',
value: function () {
(this.secondBkg = Object(n.lighten)(
this.contrast,
55
)),
(this.border2 = this.contrast),
(this.nodeBkg = this.mainBkg),
(this.nodeBorder = this.border1),
(this.clusterBkg = this.secondBkg),
(this.clusterBorder = this.border2),
(this.defaultLinkColor = this.lineColor),
(this.titleColor = this.text),
(this.actorBorder = Object(n.lighten)(
this.border1,
23
)),
(this.actorBkg = this.mainBkg),
(this.actorTextColor = this.text),
(this.actorLineColor = this.lineColor),
(this.signalColor = this.text),
(this.signalTextColor = this.text),
(this.labelBoxBkgColor = this.actorBkg),
(this.labelBoxBorderColor = this.actorBorder),
(this.labelTextColor = this.text),
(this.loopTextColor = this.text),
(this.noteBorderColor = Object(n.darken)(
this.note,
60
)),
(this.noteBkgColor = this.note),
(this.noteTextColor = this.actorTextColor),
(this.sectionBkgColor = Object(n.lighten)(
this.contrast,
30
)),
(this.sectionBkgColor2 = Object(n.lighten)(
this.contrast,
30
)),
(this.taskBorderColor = Object(n.darken)(
this.contrast,
10
)),
(this.taskBkgColor = this.contrast),
(this.taskTextColor = this.taskTextLightColor),
(this.taskTextDarkColor = this.text),
(this.taskTextOutsideColor = this.taskTextDarkColor),
(this.activeTaskBorderColor = this.taskBorderColor),
(this.activeTaskBkgColor = this.mainBkg),
(this.gridColor = Object(n.lighten)(
this.border1,
30
)),
(this.doneTaskBkgColor = this.done),
(this.doneTaskBorderColor = this.lineColor),
(this.critBkgColor = this.critical),
(this.critBorderColor = Object(n.darken)(
this.critBkgColor,
10
)),
(this.todayLineColor = this.critBkgColor),
(this.classText = this.primaryTextColor),
(this.fillType0 = this.primaryColor),
(this.fillType1 = this.secondaryColor),
(this.fillType2 = Object(n.adjust)(
this.primaryColor,
{ h: 64 }
)),
(this.fillType3 = Object(n.adjust)(
this.secondaryColor,
{ h: 64 }
)),
(this.fillType4 = Object(n.adjust)(
this.primaryColor,
{ h: -64 }
)),
(this.fillType5 = Object(n.adjust)(
this.secondaryColor,
{ h: -64 }
)),
(this.fillType6 = Object(n.adjust)(
this.primaryColor,
{ h: 128 }
)),
(this.fillType7 = Object(n.adjust)(
this.secondaryColor,
{ h: 128 }
));
},
},
{
key: 'calculate',
value: function (e) {
var t = this;
if ('object' === s(e)) {
var i = Object.keys(e);
i.forEach(function (i) {
t[i] = e[i];
}),
this.updateColors(),
i.forEach(function (i) {
t[i] = e[i];
});
} else this.updateColors();
},
},
]) && o(t.prototype, i),
e
);
})(),
l = function (e) {
var t = new a();
return t.calculate(e), t;
};
},
'./src/utils.js': function (e, t, i) {
'use strict';
i.r(t),
i.d(t, 'detectInit', function () {
return p;
}),
i.d(t, 'detectDirective', function () {
return m;
}),
i.d(t, 'detectType', function () {
return _;
}),
i.d(t, 'isSubstringInArray', function () {
return v;
}),
i.d(t, 'interpolateToCurve', function () {
return y;
}),
i.d(t, 'formatUrl', function () {
return w;
}),
i.d(t, 'runFunc', function () {
return C;
}),
i.d(t, 'getStylesFromArray', function () {
return k;
}),
i.d(t, 'generateId', function () {
return L;
}),
i.d(t, 'random', function () {
return M;
}),
i.d(t, 'assignWithDepth', function () {
return D;
}),
i.d(t, 'getTextObj', function () {
return N;
}),
i.d(t, 'drawSimpleText', function () {
return E;
}),
i.d(t, 'wrapLabel', function () {
return T;
}),
i.d(t, 'calculateTextHeight', function () {
return O;
}),
i.d(t, 'calculateTextWidth', function () {
return A;
}),
i.d(t, 'calculateTextDimensions', function () {
return R;
}),
i.d(t, 'calculateSvgSizeAttrs', function () {
return P;
}),
i.d(t, 'configureSvgSize', function () {
return F;
}),
i.d(t, 'initIdGeneratior', function () {
return B;
});
var n = i('@braintree/sanitize-url'),
r = i('d3'),
s = i('./src/diagrams/common/common.js'),
o = i('./src/logger.js'),
a = void 0;
function l(e, t) {
for (var i = 0; i < t.length; i++) {
var n = t[i];
(n.enumerable = n.enumerable || !1),
(n.configurable = !0),
'value' in n && (n.writable = !0),
Object.defineProperty(e, n.key, n);
}
}
function c(e) {
return (c =
'function' == typeof Symbol &&
'symbol' == typeof Symbol.iterator
? function (e) {
return typeof e;
}
: function (e) {
return e &&
'function' == typeof Symbol &&
e.constructor === Symbol &&
e !== Symbol.prototype
? 'symbol'
: typeof e;
})(e);
}
function d(e) {
return (
(function (e) {
if (Array.isArray(e)) {
for (
var t = 0, i = new Array(e.length);
t < e.length;
t++
)
i[t] = e[t];
return i;
}
})(e) ||
(function (e) {
if (
Symbol.iterator in Object(e) ||
'[object Arguments]' ===
Object.prototype.toString.call(e)
)
return Array.from(e);
})(e) ||
(function () {
throw new TypeError(
'Invalid attempt to spread non-iterable instance'
);
})()
);
}
var h = {
curveBasis: r.curveBasis,
curveBasisClosed: r.curveBasisClosed,
curveBasisOpen: r.curveBasisOpen,
curveLinear: r.curveLinear,
curveLinearClosed: r.curveLinearClosed,
curveMonotoneX: r.curveMonotoneX,
curveMonotoneY: r.curveMonotoneY,
curveNatural: r.curveNatural,
curveStep: r.curveStep,
curveStepAfter: r.curveStepAfter,
curveStepBefore: r.curveStepBefore,
},
u = /[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,
g = /\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,
f = /\s*%%.*\n/gm,
p = function (e) {
var t = m(e, /(?:init\b)|(?:initialize\b)/),
i = {};
if (Array.isArray(t)) {
var n = t.map(function (e) {
return e.args;
});
i = D(i, d(n));
} else i = t.args;
if (i) {
var r = _(e);
['config'].forEach(function (e) {
void 0 !== i[e] &&
('flowchart-v2' === r && (r = 'flowchart'),
(i[r] = i[e]),
delete i[e]);
});
}
return i;
},
m = function (e) {
var t =
arguments.length > 1 && void 0 !== arguments[1]
? arguments[1]
: null;
try {
var i = new RegExp(
'[%]{2}(?![{]'.concat(g.source, ')(?=[}][%]{2}).*\n'),
'ig'
);
(e = e.trim().replace(i, '').replace(/'/gm, '"')),
o.log.debug(
'Detecting diagram directive'
.concat(
null !== t ? ' type:' + t : '',
' based on the text:'
)
.concat(e)
);
for (var n, r = []; null !== (n = u.exec(e)); )
if (
(n.index === u.lastIndex && u.lastIndex++,
(n && !t) ||
(t && n[1] && n[1].match(t)) ||
(t && n[2] && n[2].match(t)))
) {
var s = n[1] ? n[1] : n[2],
a = n[3]
? n[3].trim()
: n[4]
? JSON.parse(n[4].trim())
: null;
r.push({ type: s, args: a });
}
return (
0 === r.length && r.push({ type: e, args: null }),
1 === r.length ? r[0] : r
);
} catch (i) {
return (
o.log.error(
'ERROR: '
.concat(
i.message,
' - Unable to parse directive\n '
)
.concat(
null !== t ? ' type:' + t : '',
' based on the text:'
)
.concat(e)
),
{ type: null, args: null }
);
}
},
_ = function (e) {
return (
(e = e.replace(u, '').replace(f, '\n')),
o.log.debug(
'Detecting diagram type based on the text ' + e
),
e.match(/^\s*sequenceDiagram/)
? 'sequence'
: e.match(/^\s*gantt/)
? 'gantt'
: e.match(/^\s*classDiagram-v2/)
? 'classDiagram'
: e.match(/^\s*classDiagram/)
? 'class'
: e.match(/^\s*stateDiagram-v2/)
? 'stateDiagram'
: e.match(/^\s*stateDiagram/)
? 'state'
: e.match(/^\s*gitGraph/)
? 'git'
: e.match(/^\s*flowchart/)
? 'flowchart-v2'
: e.match(/^\s*info/)
? 'info'
: e.match(/^\s*pie/)
? 'pie'
: e.match(/^\s*erDiagram/)
? 'er'
: e.match(/^\s*journey/)
? 'journey'
: e.match(/^\s*requirement/) ||
e.match(/^\s*requirementDiagram/)
? 'requirement'
: 'flowchart'
);
},
b = function (e, t) {
var i = {};
return function () {
for (
var n = arguments.length, r = new Array(n), s = 0;
s < n;
s++
)
r[s] = arguments[s];
var o = t ? t.apply(a, r) : r[0];
if (o in i) return i[o];
var l = e.apply(void 0, r);
return (i[o] = l), l;
};
},
v = function (e, t) {
for (var i = 0; i < t.length; i++)
if (t[i].match(e)) return i;
return -1;
},
y = function (e, t) {
if (!e) return t;
var i = 'curve'.concat(
e.charAt(0).toUpperCase() + e.slice(1)
);
return h[i] || t;
},
w = function (e, t) {
var i = e.trim();
if (i)
return 'loose' !== t.securityLevel
? Object(n.sanitizeUrl)(i)
: i;
},
C = function (e) {
for (
var t,
i = e.split('.'),
n = i.length - 1,
r = i[n],
s = window,
o = 0;
o < n;
o++
)
if (!(s = s[i[o]])) return;
for (
var a = arguments.length,
l = new Array(a > 1 ? a - 1 : 0),
c = 1;
c < a;
c++
)
l[c - 1] = arguments[c];
(t = s)[r].apply(t, l);
},
S = function (e, t) {
return e && t
? Math.sqrt(
Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)
)
: 0;
},
k = function (e) {
for (var t = '', i = '', n = 0; n < e.length; n++)
void 0 !== e[n] &&
(e[n].startsWith('color:') ||
e[n].startsWith('text-align:')
? (i = i + e[n] + ';')
: (t = t + e[n] + ';'));
return { style: t, labelStyle: i };
},
x = 0,
L = function () {
return (
x++,
'id-' + Math.random().toString(36).substr(2, 12) + '-' + x
);
},
M = function (e) {
return (function (e) {
for (
var t = '', i = '0123456789abcdef', n = i.length, r = 0;
r < e;
r++
)
t += i.charAt(Math.floor(Math.random() * n));
return t;
})(e.length);
},
D = function e(t, i, n) {
var r = Object.assign({ depth: 2, clobber: !1 }, n),
s = r.depth,
o = r.clobber;
return Array.isArray(i) && !Array.isArray(t)
? (i.forEach(function (i) {
return e(t, i, n);
}),
t)
: Array.isArray(i) && Array.isArray(t)
? (i.forEach(function (e) {
-1 === t.indexOf(e) && t.push(e);
}),
t)
: void 0 === t || s <= 0
? null != t && 'object' === c(t) && 'object' === c(i)
? Object.assign(t, i)
: i
: (void 0 !== i &&
'object' === c(t) &&
'object' === c(i) &&
Object.keys(i).forEach(function (n) {
'object' !== c(i[n]) ||
(void 0 !== t[n] && 'object' !== c(t[n]))
? (o ||
('object' !== c(t[n]) &&
'object' !== c(i[n]))) &&
(t[n] = i[n])
: (void 0 === t[n] &&
(t[n] = Array.isArray(i[n]) ? [] : {}),
(t[n] = e(t[n], i[n], {
depth: s - 1,
clobber: o,
})));
}),
t);
},
N = function () {
return {
x: 0,
y: 0,
fill: void 0,
anchor: 'start',
style: '#666',
width: 100,
height: 100,
textMargin: 0,
rx: 0,
ry: 0,
valign: void 0,
};
},
E = function (e, t) {
var i = t.text.replace(s.default.lineBreakRegex, ' '),
n = e.append('text');
n.attr('x', t.x),
n.attr('y', t.y),
n.style('text-anchor', t.anchor),
n.style('font-family', t.fontFamily),
n.style('font-size', t.fontSize),
n.style('font-weight', t.fontWeight),
n.attr('fill', t.fill),
void 0 !== t.class && n.attr('class', t.class);
var r = n.append('tspan');
return (
r.attr('x', t.x + 2 * t.textMargin),
r.attr('fill', t.fill),
r.text(i),
n
);
},
T = b(
function (e, t, i) {
if (!e) return e;
if (
((i = Object.assign(
{
fontSize: 12,
fontWeight: 400,
fontFamily: 'Arial',
joinWith: '
',
},
i
)),
s.default.lineBreakRegex.test(e))
)
return e;
var n = e.split(' '),
r = [],
o = '';
return (
n.forEach(function (e, s) {
var a = A(''.concat(e, ' '), i),
l = A(o, i);
if (a > t) {
var c = I(e, t, '-', i),
h = c.hyphenatedStrings,
u = c.remainingWord;
r.push.apply(r, [o].concat(d(h))), (o = u);
} else l + a >= t ? (r.push(o), (o = e)) : (o = [o, e].filter(Boolean).join(' '));
s + 1 === n.length && r.push(o);
}),
r
.filter(function (e) {
return '' !== e;
})
.join(i.joinWith)
);
},
function (e, t, i) {
return ''
.concat(e, '-')
.concat(t, '-')
.concat(i.fontSize, '-')
.concat(i.fontWeight, '-')
.concat(i.fontFamily, '-')
.concat(i.joinWith);
}
),
I = b(
function (e, t) {
var i =
arguments.length > 2 && void 0 !== arguments[2]
? arguments[2]
: '-',
n = arguments.length > 3 ? arguments[3] : void 0;
n = Object.assign(
{
fontSize: 12,
fontWeight: 400,
fontFamily: 'Arial',
margin: 0,
},
n
);
var r = e.split(''),
s = [],
o = '';
return (
r.forEach(function (e, a) {
var l = ''.concat(o).concat(e);
if (A(l, n) >= t) {
var c = a + 1,
d = r.length === c,
h = ''.concat(l).concat(i);
s.push(d ? l : h), (o = '');
} else o = l;
}),
{ hyphenatedStrings: s, remainingWord: o }
);
},
function (e, t) {
var i =
arguments.length > 2 && void 0 !== arguments[2]
? arguments[2]
: '-',
n = arguments.length > 3 ? arguments[3] : void 0;
return ''
.concat(e, '-')
.concat(t, '-')
.concat(i, '-')
.concat(n.fontSize, '-')
.concat(n.fontWeight, '-')
.concat(n.fontFamily);
}
),
O = function (e, t) {
return (
(t = Object.assign(
{
fontSize: 12,
fontWeight: 400,
fontFamily: 'Arial',
margin: 15,
},
t
)),
R(e, t).height
);
},
A = function (e, t) {
return (
(t = Object.assign(
{ fontSize: 12, fontWeight: 400, fontFamily: 'Arial' },
t
)),
R(e, t).width
);
},
R = b(
function (e, t) {
var i = (t = Object.assign(
{
fontSize: 12,
fontWeight: 400,
fontFamily: 'Arial',
},
t
)),
n = i.fontSize,
o = i.fontFamily,
a = i.fontWeight;
if (!e) return { width: 0, height: 0 };
var l = ['sans-serif', o],
c = e.split(s.default.lineBreakRegex),
d = [],
h = Object(r.select)('body');
if (!h.remove)
return { width: 0, height: 0, lineHeight: 0 };
for (
var u = h.append('svg'), g = 0, f = l;
g < f.length;
g++
) {
var p = f[g],
m = 0,
_ = { width: 0, height: 0, lineHeight: 0 },
b = !0,
v = !1,
y = void 0;
try {
for (
var w, C = c[Symbol.iterator]();
!(b = (w = C.next()).done);
b = !0
) {
var S = w.value,
k = N();
k.text = S;
var x = E(u, k)
.style('font-size', n)
.style('font-weight', a)
.style('font-family', p),
L = (x._groups || x)[0][0].getBBox();
(_.width = Math.round(Math.max(_.width, L.width))),
(m = Math.round(L.height)),
(_.height += m),
(_.lineHeight = Math.round(
Math.max(_.lineHeight, m)
));
}
} catch (e) {
(v = !0), (y = e);
} finally {
try {
b || null == C.return || C.return();
} finally {
if (v) throw y;
}
}
d.push(_);
}
return (
u.remove(),
d[
isNaN(d[1].height) ||
isNaN(d[1].width) ||
isNaN(d[1].lineHeight) ||
(d[0].height > d[1].height &&
d[0].width > d[1].width &&
d[0].lineHeight > d[1].lineHeight)
? 0
: 1
]
);
},
function (e, t) {
return ''
.concat(e, '-')
.concat(t.fontSize, '-')
.concat(t.fontWeight, '-')
.concat(t.fontFamily);
}
),
P = function (e, t, i) {
var n = new Map();
return (
n.set('height', e),
i
? (n.set('width', '100%'),
n.set('style', 'max-width: '.concat(t, 'px;')))
: n.set('width', t),
n
);
},
F = function (e, t, i, n) {
!(function (e, t) {
var i = !0,
n = !1,
r = void 0;
try {
for (
var s, o = t[Symbol.iterator]();
!(i = (s = o.next()).done);
i = !0
) {
var a = s.value;
e.attr(a[0], a[1]);
}
} catch (e) {
(n = !0), (r = e);
} finally {
try {
i || null == o.return || o.return();
} finally {
if (n) throw r;
}
}
})(e, P(t, i, n));
},
B = (function () {
function e(t, i) {
!(function (e, t) {
if (!(e instanceof t))
throw new TypeError(
'Cannot call a class as a function'
);
})(this, e),
(this.deterministic = t),
(this.seed = i),
(this.count = i ? i.length : 0);
}
var t, i;
return (
(t = e),
(i = [
{
key: 'next',
value: function () {
return this.deterministic
? this.count++
: Date.now();
},
},
]) && l(t.prototype, i),
e
);
})();
t.default = {
assignWithDepth: D,
wrapLabel: T,
calculateTextHeight: O,
calculateTextWidth: A,
calculateTextDimensions: R,
calculateSvgSizeAttrs: P,
configureSvgSize: F,
detectInit: p,
detectDirective: m,
detectType: _,
isSubstringInArray: v,
interpolateToCurve: y,
calcLabelPosition: function (e) {
return (function (e) {
var t,
i = 0;
e.forEach(function (e) {
(i += S(e, t)), (t = e);
});
var n = i / 2,
r = void 0;
return (
(t = void 0),
e.forEach(function (e) {
if (t && !r) {
var i = S(e, t);
if (i < n) n -= i;
else {
var s = n / i;
s <= 0 && (r = t),
s >= 1 && (r = { x: e.x, y: e.y }),
s > 0 &&
s < 1 &&
(r = {
x: (1 - s) * t.x + s * e.x,
y: (1 - s) * t.y + s * e.y,
});
}
}
t = e;
}),
r
);
})(e);
},
calcCardinalityPosition: function (e, t, i) {
var n;
o.log.info('our points', t),
t[0] !== i && (t = t.reverse()),
t.forEach(function (e) {
S(e, n), (n = e);
});
var r,
s = 25;
(n = void 0),
t.forEach(function (e) {
if (n && !r) {
var t = S(e, n);
if (t < s) s -= t;
else {
var i = s / t;
i <= 0 && (r = n),
i >= 1 && (r = { x: e.x, y: e.y }),
i > 0 &&
i < 1 &&
(r = {
x: (1 - i) * n.x + i * e.x,
y: (1 - i) * n.y + i * e.y,
});
}
}
n = e;
});
var a = e ? 10 : 5,
l = Math.atan2(t[0].y - r.y, t[0].x - r.x),
c = { x: 0, y: 0 };
return (
(c.x = Math.sin(l) * a + (t[0].x + r.x) / 2),
(c.y = -Math.cos(l) * a + (t[0].y + r.y) / 2),
c
);
},
calcTerminalLabelPosition: function (e, t, i) {
var n,
r = JSON.parse(JSON.stringify(i));
o.log.info('our points', r),
'start_left' !== t &&
'start_right' !== t &&
(r = r.reverse()),
r.forEach(function (e) {
S(e, n), (n = e);
});
var s,
a = 25;
(n = void 0),
r.forEach(function (e) {
if (n && !s) {
var t = S(e, n);
if (t < a) a -= t;
else {
var i = a / t;
i <= 0 && (s = n),
i >= 1 && (s = { x: e.x, y: e.y }),
i > 0 &&
i < 1 &&
(s = {
x: (1 - i) * n.x + i * e.x,
y: (1 - i) * n.y + i * e.y,
});
}
}
n = e;
});
var l = 10,
c = Math.atan2(r[0].y - s.y, r[0].x - s.x),
d = { x: 0, y: 0 };
return (
(d.x = Math.sin(c) * l + (r[0].x + s.x) / 2),
(d.y = -Math.cos(c) * l + (r[0].y + s.y) / 2),
'start_left' === t &&
((d.x = Math.sin(c + Math.PI) * l + (r[0].x + s.x) / 2),
(d.y =
-Math.cos(c + Math.PI) * l + (r[0].y + s.y) / 2)),
'end_right' === t &&
((d.x =
Math.sin(c - Math.PI) * l + (r[0].x + s.x) / 2 - 5),
(d.y =
-Math.cos(c - Math.PI) * l + (r[0].y + s.y) / 2 - 5)),
'end_left' === t &&
((d.x = Math.sin(c) * l + (r[0].x + s.x) / 2 - 5),
(d.y = -Math.cos(c) * l + (r[0].y + s.y) / 2 - 5)),
d
);
},
formatUrl: w,
getStylesFromArray: k,
generateId: L,
random: M,
memoize: b,
runFunc: C,
initIdGeneratior: B,
};
},
'@braintree/sanitize-url': function (e, t) {
e.exports = i(29609);
},
d3: function (e, t) {
e.exports = i(69362);
},
dagre: function (e, t) {
e.exports = i(70681);
},
'dagre-d3': function (e, t) {
e.exports = i(44949);
},
'dagre-d3/lib/label/add-html-label.js': function (e, t) {
e.exports = i(88284);
},
'entity-decode/browser': function (e, t) {
e.exports = i(42859);
},
graphlib: function (e, t) {
e.exports = i(28282);
},
khroma: function (e, t) {
e.exports = i(8613);
},
'moment-mini': function (e, t) {
e.exports = i(11941);
},
stylis: function (e, t) {
e.exports = i(673);
},
}).default;
}),
(e.exports = n());
},
89234: () => {},
11748: (e, t, i) => {
var n = { './locale': 89234, './locale.js': 89234 };
function r(e) {
var t = s(e);
return i(t);
}
function s(e) {
if (!i.o(n, e)) {
var t = new Error("Cannot find module '" + e + "'");
throw ((t.code = 'MODULE_NOT_FOUND'), t);
}
return n[e];
}
(r.keys = function () {
return Object.keys(n);
}),
(r.resolve = s),
(e.exports = r),
(r.id = 11748);
},
11941: function (e, t, i) {
(e = i.nmd(e)).exports = (function () {
'use strict';
var t, n;
function r() {
return t.apply(null, arguments);
}
function s(e) {
return (
e instanceof Array ||
'[object Array]' === Object.prototype.toString.call(e)
);
}
function o(e) {
return (
null != e &&
'[object Object]' === Object.prototype.toString.call(e)
);
}
function a(e) {
return void 0 === e;
}
function l(e) {
return (
'number' == typeof e ||
'[object Number]' === Object.prototype.toString.call(e)
);
}
function c(e) {
return (
e instanceof Date ||
'[object Date]' === Object.prototype.toString.call(e)
);
}
function d(e, t) {
var i,
n = [];
for (i = 0; i < e.length; ++i) n.push(t(e[i], i));
return n;
}
function h(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
function u(e, t) {
for (var i in t) h(t, i) && (e[i] = t[i]);
return (
h(t, 'toString') && (e.toString = t.toString),
h(t, 'valueOf') && (e.valueOf = t.valueOf),
e
);
}
function g(e, t, i, n) {
return bt(e, t, i, n, !0).utc();
}
function f(e) {
return (
null == e._pf &&
(e._pf = {
empty: !1,
unusedTokens: [],
unusedInput: [],
overflow: -2,
charsLeftOver: 0,
nullInput: !1,
invalidMonth: null,
invalidFormat: !1,
userInvalidated: !1,
iso: !1,
parsedDateParts: [],
meridiem: null,
rfc2822: !1,
weekdayMismatch: !1,
}),
e._pf
);
}
function p(e) {
if (null == e._isValid) {
var t = f(e),
i = n.call(t.parsedDateParts, function (e) {
return null != e;
}),
r =
!isNaN(e._d.getTime()) &&
t.overflow < 0 &&
!t.empty &&
!t.invalidMonth &&
!t.invalidWeekday &&
!t.weekdayMismatch &&
!t.nullInput &&
!t.invalidFormat &&
!t.userInvalidated &&
(!t.meridiem || (t.meridiem && i));
if (
(e._strict &&
(r =
r &&
0 === t.charsLeftOver &&
0 === t.unusedTokens.length &&
void 0 === t.bigHour),
null != Object.isFrozen && Object.isFrozen(e))
)
return r;
e._isValid = r;
}
return e._isValid;
}
function m(e) {
var t = g(NaN);
return null != e ? u(f(t), e) : (f(t).userInvalidated = !0), t;
}
n = Array.prototype.some
? Array.prototype.some
: function (e) {
for (
var t = Object(this), i = t.length >>> 0, n = 0;
n < i;
n++
)
if (n in t && e.call(this, t[n], n, t)) return !0;
return !1;
};
var _ = (r.momentProperties = []);
function b(e, t) {
var i, n, r;
if (
(a(t._isAMomentObject) ||
(e._isAMomentObject = t._isAMomentObject),
a(t._i) || (e._i = t._i),
a(t._f) || (e._f = t._f),
a(t._l) || (e._l = t._l),
a(t._strict) || (e._strict = t._strict),
a(t._tzm) || (e._tzm = t._tzm),
a(t._isUTC) || (e._isUTC = t._isUTC),
a(t._offset) || (e._offset = t._offset),
a(t._pf) || (e._pf = f(t)),
a(t._locale) || (e._locale = t._locale),
0 < _.length)
)
for (i = 0; i < _.length; i++)
a((r = t[(n = _[i])])) || (e[n] = r);
return e;
}
var v = !1;
function y(e) {
b(this, e),
(this._d = new Date(null != e._d ? e._d.getTime() : NaN)),
this.isValid() || (this._d = new Date(NaN)),
!1 === v && ((v = !0), r.updateOffset(this), (v = !1));
}
function w(e) {
return e instanceof y || (null != e && null != e._isAMomentObject);
}
function C(e) {
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
}
function S(e) {
var t = +e,
i = 0;
return 0 !== t && isFinite(t) && (i = C(t)), i;
}
function k(e, t, i) {
var n,
r = Math.min(e.length, t.length),
s = Math.abs(e.length - t.length),
o = 0;
for (n = 0; n < r; n++)
((i && e[n] !== t[n]) || (!i && S(e[n]) !== S(t[n]))) && o++;
return o + s;
}
function x(e) {
!1 === r.suppressDeprecationWarnings &&
'undefined' != typeof console &&
console.warn &&
console.warn('Deprecation warning: ' + e);
}
function L(e, t) {
var i = !0;
return u(function () {
if (
(null != r.deprecationHandler && r.deprecationHandler(null, e),
i)
) {
for (var n, s = [], o = 0; o < arguments.length; o++) {
if (((n = ''), 'object' == typeof arguments[o])) {
for (var a in ((n += '\n[' + o + '] '), arguments[0]))
n += a + ': ' + arguments[0][a] + ', ';
n = n.slice(0, -2);
} else n = arguments[o];
s.push(n);
}
x(
e +
'\nArguments: ' +
Array.prototype.slice.call(s).join('') +
'\n' +
new Error().stack
),
(i = !1);
}
return t.apply(this, arguments);
}, t);
}
var M,
D = {};
function N(e, t) {
null != r.deprecationHandler && r.deprecationHandler(e, t),
D[e] || (x(t), (D[e] = !0));
}
function E(e) {
return (
e instanceof Function ||
'[object Function]' === Object.prototype.toString.call(e)
);
}
function T(e, t) {
var i,
n = u({}, e);
for (i in t)
h(t, i) &&
(o(e[i]) && o(t[i])
? ((n[i] = {}), u(n[i], e[i]), u(n[i], t[i]))
: null != t[i]
? (n[i] = t[i])
: delete n[i]);
for (i in e) h(e, i) && !h(t, i) && o(e[i]) && (n[i] = u({}, n[i]));
return n;
}
function I(e) {
null != e && this.set(e);
}
(r.suppressDeprecationWarnings = !1),
(r.deprecationHandler = null),
(M = Object.keys
? Object.keys
: function (e) {
var t,
i = [];
for (t in e) h(e, t) && i.push(t);
return i;
});
var O = {};
function A(e, t) {
var i = e.toLowerCase();
O[i] = O[i + 's'] = O[t] = e;
}
function R(e) {
return 'string' == typeof e ? O[e] || O[e.toLowerCase()] : void 0;
}
function P(e) {
var t,
i,
n = {};
for (i in e) h(e, i) && (t = R(i)) && (n[t] = e[i]);
return n;
}
var F = {};
function B(e, t) {
F[e] = t;
}
function W(e, t, i) {
var n = '' + Math.abs(e),
r = t - n.length;
return (
(0 <= e ? (i ? '+' : '') : '-') +
Math.pow(10, Math.max(0, r)).toString().substr(1) +
n
);
}
var Y = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
H = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
j = {},
V = {};
function z(e, t, i, n) {
var r = n;
'string' == typeof n &&
(r = function () {
return this[n]();
}),
e && (V[e] = r),
t &&
(V[t[0]] = function () {
return W(r.apply(this, arguments), t[1], t[2]);
}),
i &&
(V[i] = function () {
return this.localeData().ordinal(r.apply(this, arguments), e);
});
}
function U(e, t) {
return e.isValid()
? ((t = $(t, e.localeData())),
(j[t] =
j[t] ||
(function (e) {
var t,
i,
n,
r = e.match(Y);
for (t = 0, i = r.length; t < i; t++)
V[r[t]]
? (r[t] = V[r[t]])
: (r[t] = (n = r[t]).match(/\[[\s\S]/)
? n.replace(/^\[|\]$/g, '')
: n.replace(/\\/g, ''));
return function (t) {
var n,
s = '';
for (n = 0; n < i; n++)
s += E(r[n]) ? r[n].call(t, e) : r[n];
return s;
};
})(t)),
j[t](e))
: e.localeData().invalidDate();
}
function $(e, t) {
var i = 5;
function n(e) {
return t.longDateFormat(e) || e;
}
for (H.lastIndex = 0; 0 <= i && H.test(e); )
(e = e.replace(H, n)), (H.lastIndex = 0), (i -= 1);
return e;
}
var K = /\d/,
q = /\d\d/,
G = /\d{3}/,
Z = /\d{4}/,
J = /[+-]?\d{6}/,
Q = /\d\d?/,
X = /\d\d\d\d?/,
ee = /\d\d\d\d\d\d?/,
te = /\d{1,3}/,
ie = /\d{1,4}/,
ne = /[+-]?\d{1,6}/,
re = /\d+/,
se = /[+-]?\d+/,
oe = /Z|[+-]\d\d:?\d\d/gi,
ae = /Z|[+-]\d\d(?::?\d\d)?/gi,
le = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
ce = {};
function de(e, t, i) {
ce[e] = E(t)
? t
: function (e, n) {
return e && i ? i : t;
};
}
function he(e, t) {
return h(ce, e)
? ce[e](t._strict, t._locale)
: new RegExp(
ue(
e
.replace('\\', '')
.replace(
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
function (e, t, i, n, r) {
return t || i || n || r;
}
)
)
);
}
function ue(e) {
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
}
var ge = {};
function fe(e, t) {
var i,
n = t;
for (
'string' == typeof e && (e = [e]),
l(t) &&
(n = function (e, i) {
i[t] = S(e);
}),
i = 0;
i < e.length;
i++
)
ge[e[i]] = n;
}
function pe(e, t) {
fe(e, function (e, i, n, r) {
(n._w = n._w || {}), t(e, n._w, n, r);
});
}
function me(e) {
return _e(e) ? 366 : 365;
}
function _e(e) {
return (e % 4 == 0 && e % 100 != 0) || e % 400 == 0;
}
z('Y', 0, 0, function () {
var e = this.year();
return e <= 9999 ? '' + e : '+' + e;
}),
z(0, ['YY', 2], 0, function () {
return this.year() % 100;
}),
z(0, ['YYYY', 4], 0, 'year'),
z(0, ['YYYYY', 5], 0, 'year'),
z(0, ['YYYYYY', 6, !0], 0, 'year'),
A('year', 'y'),
B('year', 1),
de('Y', se),
de('YY', Q, q),
de('YYYY', ie, Z),
de('YYYYY', ne, J),
de('YYYYYY', ne, J),
fe(['YYYYY', 'YYYYYY'], 0),
fe('YYYY', function (e, t) {
t[0] = 2 === e.length ? r.parseTwoDigitYear(e) : S(e);
}),
fe('YY', function (e, t) {
t[0] = r.parseTwoDigitYear(e);
}),
fe('Y', function (e, t) {
t[0] = parseInt(e, 10);
}),
(r.parseTwoDigitYear = function (e) {
return S(e) + (68 < S(e) ? 1900 : 2e3);
});
var be,
ve = ye('FullYear', !0);
function ye(e, t) {
return function (i) {
return null != i
? (Ce(this, e, i), r.updateOffset(this, t), this)
: we(this, e);
};
}
function we(e, t) {
return e.isValid()
? e._d['get' + (e._isUTC ? 'UTC' : '') + t]()
: NaN;
}
function Ce(e, t, i) {
e.isValid() &&
!isNaN(i) &&
('FullYear' === t &&
_e(e.year()) &&
1 === e.month() &&
29 === e.date()
? e._d['set' + (e._isUTC ? 'UTC' : '') + t](
i,
e.month(),
Se(i, e.month())
)
: e._d['set' + (e._isUTC ? 'UTC' : '') + t](i));
}
function Se(e, t) {
if (isNaN(e) || isNaN(t)) return NaN;
var i = ((t % 12) + 12) % 12;
return (
(e += (t - i) / 12),
1 === i ? (_e(e) ? 29 : 28) : 31 - ((i % 7) % 2)
);
}
(be = Array.prototype.indexOf
? Array.prototype.indexOf
: function (e) {
var t;
for (t = 0; t < this.length; ++t) if (this[t] === e) return t;
return -1;
}),
z('M', ['MM', 2], 'Mo', function () {
return this.month() + 1;
}),
z('MMM', 0, 0, function (e) {
return this.localeData().monthsShort(this, e);
}),
z('MMMM', 0, 0, function (e) {
return this.localeData().months(this, e);
}),
A('month', 'M'),
B('month', 8),
de('M', Q),
de('MM', Q, q),
de('MMM', function (e, t) {
return t.monthsShortRegex(e);
}),
de('MMMM', function (e, t) {
return t.monthsRegex(e);
}),
fe(['M', 'MM'], function (e, t) {
t[1] = S(e) - 1;
}),
fe(['MMM', 'MMMM'], function (e, t, i, n) {
var r = i._locale.monthsParse(e, n, i._strict);
null != r ? (t[1] = r) : (f(i).invalidMonth = e);
});
var ke = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
xe = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
'_'
),
Le = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
function Me(e, t) {
var i;
if (!e.isValid()) return e;
if ('string' == typeof t)
if (/^\d+$/.test(t)) t = S(t);
else if (!l((t = e.localeData().monthsParse(t)))) return e;
return (
(i = Math.min(e.date(), Se(e.year(), t))),
e._d['set' + (e._isUTC ? 'UTC' : '') + 'Month'](t, i),
e
);
}
function De(e) {
return null != e
? (Me(this, e), r.updateOffset(this, !0), this)
: we(this, 'Month');
}
var Ne = le,
Ee = le;
function Te() {
function e(e, t) {
return t.length - e.length;
}
var t,
i,
n = [],
r = [],
s = [];
for (t = 0; t < 12; t++)
(i = g([2e3, t])),
n.push(this.monthsShort(i, '')),
r.push(this.months(i, '')),
s.push(this.months(i, '')),
s.push(this.monthsShort(i, ''));
for (n.sort(e), r.sort(e), s.sort(e), t = 0; t < 12; t++)
(n[t] = ue(n[t])), (r[t] = ue(r[t]));
for (t = 0; t < 24; t++) s[t] = ue(s[t]);
(this._monthsRegex = new RegExp('^(' + s.join('|') + ')', 'i')),
(this._monthsShortRegex = this._monthsRegex),
(this._monthsStrictRegex = new RegExp(
'^(' + r.join('|') + ')',
'i'
)),
(this._monthsShortStrictRegex = new RegExp(
'^(' + n.join('|') + ')',
'i'
));
}
function Ie(e) {
var t = new Date(Date.UTC.apply(null, arguments));
return (
e < 100 &&
0 <= e &&
isFinite(t.getUTCFullYear()) &&
t.setUTCFullYear(e),
t
);
}
function Oe(e, t, i) {
var n = 7 + t - i;
return (-(7 + Ie(e, 0, n).getUTCDay() - t) % 7) + n - 1;
}
function Ae(e, t, i, n, r) {
var s,
o,
a = 1 + 7 * (t - 1) + ((7 + i - n) % 7) + Oe(e, n, r);
return (
a <= 0
? (o = me((s = e - 1)) + a)
: a > me(e)
? ((s = e + 1), (o = a - me(e)))
: ((s = e), (o = a)),
{ year: s, dayOfYear: o }
);
}
function Re(e, t, i) {
var n,
r,
s = Oe(e.year(), t, i),
o = Math.floor((e.dayOfYear() - s - 1) / 7) + 1;
return (
o < 1
? (n = o + Pe((r = e.year() - 1), t, i))
: o > Pe(e.year(), t, i)
? ((n = o - Pe(e.year(), t, i)), (r = e.year() + 1))
: ((r = e.year()), (n = o)),
{ week: n, year: r }
);
}
function Pe(e, t, i) {
var n = Oe(e, t, i),
r = Oe(e + 1, t, i);
return (me(e) - n + r) / 7;
}
z('w', ['ww', 2], 'wo', 'week'),
z('W', ['WW', 2], 'Wo', 'isoWeek'),
A('week', 'w'),
A('isoWeek', 'W'),
B('week', 5),
B('isoWeek', 5),
de('w', Q),
de('ww', Q, q),
de('W', Q),
de('WW', Q, q),
pe(['w', 'ww', 'W', 'WW'], function (e, t, i, n) {
t[n.substr(0, 1)] = S(e);
}),
z('d', 0, 'do', 'day'),
z('dd', 0, 0, function (e) {
return this.localeData().weekdaysMin(this, e);
}),
z('ddd', 0, 0, function (e) {
return this.localeData().weekdaysShort(this, e);
}),
z('dddd', 0, 0, function (e) {
return this.localeData().weekdays(this, e);
}),
z('e', 0, 0, 'weekday'),
z('E', 0, 0, 'isoWeekday'),
A('day', 'd'),
A('weekday', 'e'),
A('isoWeekday', 'E'),
B('day', 11),
B('weekday', 11),
B('isoWeekday', 11),
de('d', Q),
de('e', Q),
de('E', Q),
de('dd', function (e, t) {
return t.weekdaysMinRegex(e);
}),
de('ddd', function (e, t) {
return t.weekdaysShortRegex(e);
}),
de('dddd', function (e, t) {
return t.weekdaysRegex(e);
}),
pe(['dd', 'ddd', 'dddd'], function (e, t, i, n) {
var r = i._locale.weekdaysParse(e, n, i._strict);
null != r ? (t.d = r) : (f(i).invalidWeekday = e);
}),
pe(['d', 'e', 'E'], function (e, t, i, n) {
t[n] = S(e);
});
var Fe = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
'_'
),
Be = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
We = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
Ye = le,
He = le,
je = le;
function Ve() {
function e(e, t) {
return t.length - e.length;
}
var t,
i,
n,
r,
s,
o = [],
a = [],
l = [],
c = [];
for (t = 0; t < 7; t++)
(i = g([2e3, 1]).day(t)),
(n = this.weekdaysMin(i, '')),
(r = this.weekdaysShort(i, '')),
(s = this.weekdays(i, '')),
o.push(n),
a.push(r),
l.push(s),
c.push(n),
c.push(r),
c.push(s);
for (o.sort(e), a.sort(e), l.sort(e), c.sort(e), t = 0; t < 7; t++)
(a[t] = ue(a[t])), (l[t] = ue(l[t])), (c[t] = ue(c[t]));
(this._weekdaysRegex = new RegExp('^(' + c.join('|') + ')', 'i')),
(this._weekdaysShortRegex = this._weekdaysRegex),
(this._weekdaysMinRegex = this._weekdaysRegex),
(this._weekdaysStrictRegex = new RegExp(
'^(' + l.join('|') + ')',
'i'
)),
(this._weekdaysShortStrictRegex = new RegExp(
'^(' + a.join('|') + ')',
'i'
)),
(this._weekdaysMinStrictRegex = new RegExp(
'^(' + o.join('|') + ')',
'i'
));
}
function ze() {
return this.hours() % 12 || 12;
}
function Ue(e, t) {
z(e, 0, 0, function () {
return this.localeData().meridiem(
this.hours(),
this.minutes(),
t
);
});
}
function $e(e, t) {
return t._meridiemParse;
}
z('H', ['HH', 2], 0, 'hour'),
z('h', ['hh', 2], 0, ze),
z('k', ['kk', 2], 0, function () {
return this.hours() || 24;
}),
z('hmm', 0, 0, function () {
return '' + ze.apply(this) + W(this.minutes(), 2);
}),
z('hmmss', 0, 0, function () {
return (
'' +
ze.apply(this) +
W(this.minutes(), 2) +
W(this.seconds(), 2)
);
}),
z('Hmm', 0, 0, function () {
return '' + this.hours() + W(this.minutes(), 2);
}),
z('Hmmss', 0, 0, function () {
return (
'' + this.hours() + W(this.minutes(), 2) + W(this.seconds(), 2)
);
}),
Ue('a', !0),
Ue('A', !1),
A('hour', 'h'),
B('hour', 13),
de('a', $e),
de('A', $e),
de('H', Q),
de('h', Q),
de('k', Q),
de('HH', Q, q),
de('hh', Q, q),
de('kk', Q, q),
de('hmm', X),
de('hmmss', ee),
de('Hmm', X),
de('Hmmss', ee),
fe(['H', 'HH'], 3),
fe(['k', 'kk'], function (e, t, i) {
var n = S(e);
t[3] = 24 === n ? 0 : n;
}),
fe(['a', 'A'], function (e, t, i) {
(i._isPm = i._locale.isPM(e)), (i._meridiem = e);
}),
fe(['h', 'hh'], function (e, t, i) {
(t[3] = S(e)), (f(i).bigHour = !0);
}),
fe('hmm', function (e, t, i) {
var n = e.length - 2;
(t[3] = S(e.substr(0, n))),
(t[4] = S(e.substr(n))),
(f(i).bigHour = !0);
}),
fe('hmmss', function (e, t, i) {
var n = e.length - 4,
r = e.length - 2;
(t[3] = S(e.substr(0, n))),
(t[4] = S(e.substr(n, 2))),
(t[5] = S(e.substr(r))),
(f(i).bigHour = !0);
}),
fe('Hmm', function (e, t, i) {
var n = e.length - 2;
(t[3] = S(e.substr(0, n))), (t[4] = S(e.substr(n)));
}),
fe('Hmmss', function (e, t, i) {
var n = e.length - 4,
r = e.length - 2;
(t[3] = S(e.substr(0, n))),
(t[4] = S(e.substr(n, 2))),
(t[5] = S(e.substr(r)));
});
var Ke,
qe = ye('Hours', !0),
Ge = {
calendar: {
sameDay: '[Today at] LT',
nextDay: '[Tomorrow at] LT',
nextWeek: 'dddd [at] LT',
lastDay: '[Yesterday at] LT',
lastWeek: '[Last] dddd [at] LT',
sameElse: 'L',
},
longDateFormat: {
LTS: 'h:mm:ss A',
LT: 'h:mm A',
L: 'MM/DD/YYYY',
LL: 'MMMM D, YYYY',
LLL: 'MMMM D, YYYY h:mm A',
LLLL: 'dddd, MMMM D, YYYY h:mm A',
},
invalidDate: 'Invalid date',
ordinal: '%d',
dayOfMonthOrdinalParse: /\d{1,2}/,
relativeTime: {
future: 'in %s',
past: '%s ago',
s: 'a few seconds',
ss: '%d seconds',
m: 'a minute',
mm: '%d minutes',
h: 'an hour',
hh: '%d hours',
d: 'a day',
dd: '%d days',
M: 'a month',
MM: '%d months',
y: 'a year',
yy: '%d years',
},
months: xe,
monthsShort: Le,
week: { dow: 0, doy: 6 },
weekdays: Fe,
weekdaysMin: We,
weekdaysShort: Be,
meridiemParse: /[ap]\.?m?\.?/i,
},
Ze = {},
Je = {};
function Qe(e) {
return e ? e.toLowerCase().replace('_', '-') : e;
}
function Xe(t) {
var n = null;
if (!Ze[t] && e && e.exports)
try {
(n = Ke._abbr), i(11748)('./' + t), et(n);
} catch (t) {}
return Ze[t];
}
function et(e, t) {
var i;
return (
e &&
((i = a(t) ? it(e) : tt(e, t))
? (Ke = i)
: 'undefined' != typeof console &&
console.warn &&
console.warn(
'Locale ' + e + ' not found. Did you forget to load it?'
)),
Ke._abbr
);
}
function tt(e, t) {
if (null !== t) {
var i,
n = Ge;
if (((t.abbr = e), null != Ze[e]))
N(
'defineLocaleOverride',
'use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'
),
(n = Ze[e]._config);
else if (null != t.parentLocale)
if (null != Ze[t.parentLocale]) n = Ze[t.parentLocale]._config;
else {
if (null == (i = Xe(t.parentLocale)))
return (
Je[t.parentLocale] || (Je[t.parentLocale] = []),
Je[t.parentLocale].push({ name: e, config: t }),
null
);
n = i._config;
}
return (
(Ze[e] = new I(T(n, t))),
Je[e] &&
Je[e].forEach(function (e) {
tt(e.name, e.config);
}),
et(e),
Ze[e]
);
}
return delete Ze[e], null;
}
function it(e) {
var t;
if (
(e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
)
return Ke;
if (!s(e)) {
if ((t = Xe(e))) return t;
e = [e];
}
return (function (e) {
for (var t, i, n, r, s = 0; s < e.length; ) {
for (
t = (r = Qe(e[s]).split('-')).length,
i = (i = Qe(e[s + 1])) ? i.split('-') : null;
0 < t;
) {
if ((n = Xe(r.slice(0, t).join('-')))) return n;
if (i && i.length >= t && k(r, i, !0) >= t - 1) break;
t--;
}
s++;
}
return Ke;
})(e);
}
function nt(e) {
var t,
i = e._a;
return (
i &&
-2 === f(e).overflow &&
((t =
i[1] < 0 || 11 < i[1]
? 1
: i[2] < 1 || i[2] > Se(i[0], i[1])
? 2
: i[3] < 0 ||
24 < i[3] ||
(24 === i[3] && (0 !== i[4] || 0 !== i[5] || 0 !== i[6]))
? 3
: i[4] < 0 || 59 < i[4]
? 4
: i[5] < 0 || 59 < i[5]
? 5
: i[6] < 0 || 999 < i[6]
? 6
: -1),
f(e)._overflowDayOfYear && (t < 0 || 2 < t) && (t = 2),
f(e)._overflowWeeks && -1 === t && (t = 7),
f(e)._overflowWeekday && -1 === t && (t = 8),
(f(e).overflow = t)),
e
);
}
function rt(e, t, i) {
return null != e ? e : null != t ? t : i;
}
function st(e) {
var t,
i,
n,
s,
o,
a = [];
if (!e._d) {
var l, c;
for (
l = e,
c = new Date(r.now()),
n = l._useUTC
? [c.getUTCFullYear(), c.getUTCMonth(), c.getUTCDate()]
: [c.getFullYear(), c.getMonth(), c.getDate()],
e._w &&
null == e._a[2] &&
null == e._a[1] &&
(function (e) {
var t, i, n, r, s, o, a, l;
if (null != (t = e._w).GG || null != t.W || null != t.E)
(s = 1),
(o = 4),
(i = rt(t.GG, e._a[0], Re(vt(), 1, 4).year)),
(n = rt(t.W, 1)),
((r = rt(t.E, 1)) < 1 || 7 < r) && (l = !0);
else {
(s = e._locale._week.dow), (o = e._locale._week.doy);
var c = Re(vt(), s, o);
(i = rt(t.gg, e._a[0], c.year)),
(n = rt(t.w, c.week)),
null != t.d
? ((r = t.d) < 0 || 6 < r) && (l = !0)
: null != t.e
? ((r = t.e + s), (t.e < 0 || 6 < t.e) && (l = !0))
: (r = s);
}
n < 1 || n > Pe(i, s, o)
? (f(e)._overflowWeeks = !0)
: null != l
? (f(e)._overflowWeekday = !0)
: ((a = Ae(i, n, r, s, o)),
(e._a[0] = a.year),
(e._dayOfYear = a.dayOfYear));
})(e),
null != e._dayOfYear &&
((o = rt(e._a[0], n[0])),
(e._dayOfYear > me(o) || 0 === e._dayOfYear) &&
(f(e)._overflowDayOfYear = !0),
(i = Ie(o, 0, e._dayOfYear)),
(e._a[1] = i.getUTCMonth()),
(e._a[2] = i.getUTCDate())),
t = 0;
t < 3 && null == e._a[t];
++t
)
e._a[t] = a[t] = n[t];
for (; t < 7; t++)
e._a[t] = a[t] = null == e._a[t] ? (2 === t ? 1 : 0) : e._a[t];
24 === e._a[3] &&
0 === e._a[4] &&
0 === e._a[5] &&
0 === e._a[6] &&
((e._nextDay = !0), (e._a[3] = 0)),
(e._d = (e._useUTC
? Ie
: function (e, t, i, n, r, s, o) {
var a = new Date(e, t, i, n, r, s, o);
return (
e < 100 &&
0 <= e &&
isFinite(a.getFullYear()) &&
a.setFullYear(e),
a
);
}
).apply(null, a)),
(s = e._useUTC ? e._d.getUTCDay() : e._d.getDay()),
null != e._tzm &&
e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm),
e._nextDay && (e._a[3] = 24),
e._w &&
void 0 !== e._w.d &&
e._w.d !== s &&
(f(e).weekdayMismatch = !0);
}
}
var ot = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
at = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
lt = /Z|[+-]\d\d(?::?\d\d)?/,
ct = [
['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
['GGGG-[W]WW', /\d{4}-W\d\d/, !1],
['YYYY-DDD', /\d{4}-\d{3}/],
['YYYY-MM', /\d{4}-\d\d/, !1],
['YYYYYYMMDD', /[+-]\d{10}/],
['YYYYMMDD', /\d{8}/],
['GGGG[W]WWE', /\d{4}W\d{3}/],
['GGGG[W]WW', /\d{4}W\d{2}/, !1],
['YYYYDDD', /\d{7}/],
],
dt = [
['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
['HH:mm:ss', /\d\d:\d\d:\d\d/],
['HH:mm', /\d\d:\d\d/],
['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
['HHmmss', /\d\d\d\d\d\d/],
['HHmm', /\d\d\d\d/],
['HH', /\d\d/],
],
ht = /^\/?Date\((\-?\d+)/i;
function ut(e) {
var t,
i,
n,
r,
s,
o,
a = e._i,
l = ot.exec(a) || at.exec(a);
if (l) {
for (f(e).iso = !0, t = 0, i = ct.length; t < i; t++)
if (ct[t][1].exec(l[1])) {
(r = ct[t][0]), (n = !1 !== ct[t][2]);
break;
}
if (null == r) return void (e._isValid = !1);
if (l[3]) {
for (t = 0, i = dt.length; t < i; t++)
if (dt[t][1].exec(l[3])) {
s = (l[2] || ' ') + dt[t][0];
break;
}
if (null == s) return void (e._isValid = !1);
}
if (!n && null != s) return void (e._isValid = !1);
if (l[4]) {
if (!lt.exec(l[4])) return void (e._isValid = !1);
o = 'Z';
}
(e._f = r + (s || '') + (o || '')), mt(e);
} else e._isValid = !1;
}
var gt = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;
var ft = {
UT: 0,
GMT: 0,
EDT: -240,
EST: -300,
CDT: -300,
CST: -360,
MDT: -360,
MST: -420,
PDT: -420,
PST: -480,
};
function pt(e) {
var t,
i,
n,
r = gt.exec(
e._i
.replace(/\([^)]*\)|[\n\t]/g, ' ')
.replace(/(\s\s+)/g, ' ')
.trim()
);
if (r) {
var s = (function (e, t, i, n, r, s) {
var o = [
(function (e) {
var t = parseInt(e, 10);
return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
})(e),
Le.indexOf(t),
parseInt(i, 10),
parseInt(n, 10),
parseInt(r, 10),
];
return s && o.push(parseInt(s, 10)), o;
})(r[4], r[3], r[2], r[5], r[6], r[7]);
if (
((i = s),
(n = e),
(t = r[1]) &&
Be.indexOf(t) !== new Date(i[0], i[1], i[2]).getDay() &&
((f(n).weekdayMismatch = !0), !(n._isValid = !1)))
)
return;
(e._a = s),
(e._tzm = (function (e, t, i) {
if (e) return ft[e];
if (t) return 0;
var n = parseInt(i, 10),
r = n % 100;
return ((n - r) / 100) * 60 + r;
})(r[8], r[9], r[10])),
(e._d = Ie.apply(null, e._a)),
e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm),
(f(e).rfc2822 = !0);
} else e._isValid = !1;
}
function mt(e) {
if (e._f !== r.ISO_8601)
if (e._f !== r.RFC_2822) {
(e._a = []), (f(e).empty = !0);
var t,
i,
n,
s,
o,
a,
l,
c,
d = '' + e._i,
u = d.length,
g = 0;
for (
n = $(e._f, e._locale).match(Y) || [], t = 0;
t < n.length;
t++
)
(s = n[t]),
(i = (d.match(he(s, e)) || [])[0]) &&
(0 < (o = d.substr(0, d.indexOf(i))).length &&
f(e).unusedInput.push(o),
(d = d.slice(d.indexOf(i) + i.length)),
(g += i.length)),
V[s]
? (i ? (f(e).empty = !1) : f(e).unusedTokens.push(s),
(a = s),
(c = e),
null != (l = i) && h(ge, a) && ge[a](l, c._a, c, a))
: e._strict && !i && f(e).unusedTokens.push(s);
(f(e).charsLeftOver = u - g),
0 < d.length && f(e).unusedInput.push(d),
e._a[3] <= 12 &&
!0 === f(e).bigHour &&
0 < e._a[3] &&
(f(e).bigHour = void 0),
(f(e).parsedDateParts = e._a.slice(0)),
(f(e).meridiem = e._meridiem),
(e._a[3] = (function (e, t, i) {
var n;
return null == i
? t
: null != e.meridiemHour
? e.meridiemHour(t, i)
: (null != e.isPM &&
((n = e.isPM(i)) && t < 12 && (t += 12),
n || 12 !== t || (t = 0)),
t);
})(e._locale, e._a[3], e._meridiem)),
st(e),
nt(e);
} else pt(e);
else ut(e);
}
function _t(e) {
var t,
i,
n,
h,
g = e._i,
_ = e._f;
return (
(e._locale = e._locale || it(e._l)),
null === g || (void 0 === _ && '' === g)
? m({ nullInput: !0 })
: ('string' == typeof g && (e._i = g = e._locale.preparse(g)),
w(g)
? new y(nt(g))
: (c(g)
? (e._d = g)
: s(_)
? (function (e) {
var t, i, n, r, s;
if (0 === e._f.length)
return (
(f(e).invalidFormat = !0),
(e._d = new Date(NaN))
);
for (r = 0; r < e._f.length; r++)
(s = 0),
(t = b({}, e)),
null != e._useUTC && (t._useUTC = e._useUTC),
(t._f = e._f[r]),
mt(t),
p(t) &&
((s += f(t).charsLeftOver),
(s += 10 * f(t).unusedTokens.length),
(f(t).score = s),
(null == n || s < n) && ((n = s), (i = t)));
u(e, i || t);
})(e)
: _
? mt(e)
: a((i = (t = e)._i))
? (t._d = new Date(r.now()))
: c(i)
? (t._d = new Date(i.valueOf()))
: 'string' == typeof i
? ((n = t),
null === (h = ht.exec(n._i))
? (ut(n),
!1 === n._isValid &&
(delete n._isValid,
pt(n),
!1 === n._isValid &&
(delete n._isValid,
r.createFromInputFallback(n))))
: (n._d = new Date(+h[1])))
: s(i)
? ((t._a = d(i.slice(0), function (e) {
return parseInt(e, 10);
})),
st(t))
: o(i)
? (function (e) {
if (!e._d) {
var t = P(e._i);
(e._a = d(
[
t.year,
t.month,
t.day || t.date,
t.hour,
t.minute,
t.second,
t.millisecond,
],
function (e) {
return e && parseInt(e, 10);
}
)),
st(e);
}
})(t)
: l(i)
? (t._d = new Date(i))
: r.createFromInputFallback(t),
p(e) || (e._d = null),
e))
);
}
function bt(e, t, i, n, r) {
var a,
l = {};
return (
(!0 !== i && !1 !== i) || ((n = i), (i = void 0)),
((o(e) &&
(function (e) {
if (Object.getOwnPropertyNames)
return 0 === Object.getOwnPropertyNames(e).length;
var t;
for (t in e) if (e.hasOwnProperty(t)) return !1;
return !0;
})(e)) ||
(s(e) && 0 === e.length)) &&
(e = void 0),
(l._isAMomentObject = !0),
(l._useUTC = l._isUTC = r),
(l._l = i),
(l._i = e),
(l._f = t),
(l._strict = n),
(a = new y(nt(_t(l))))._nextDay &&
(a.add(1, 'd'), (a._nextDay = void 0)),
a
);
}
function vt(e, t, i, n) {
return bt(e, t, i, n, !1);
}
(r.createFromInputFallback = L(
'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',
function (e) {
e._d = new Date(e._i + (e._useUTC ? ' UTC' : ''));
}
)),
(r.ISO_8601 = function () {}),
(r.RFC_2822 = function () {});
var yt = L(
'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
function () {
var e = vt.apply(null, arguments);
return this.isValid() && e.isValid()
? e < this
? this
: e
: m();
}
),
wt = L(
'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
function () {
var e = vt.apply(null, arguments);
return this.isValid() && e.isValid()
? this < e
? this
: e
: m();
}
);
function Ct(e, t) {
var i, n;
if ((1 === t.length && s(t[0]) && (t = t[0]), !t.length))
return vt();
for (i = t[0], n = 1; n < t.length; ++n)
(t[n].isValid() && !t[n][e](i)) || (i = t[n]);
return i;
}
var St = [
'year',
'quarter',
'month',
'week',
'day',
'hour',
'minute',
'second',
'millisecond',
];
function kt(e) {
var t = P(e),
i = t.year || 0,
n = t.quarter || 0,
r = t.month || 0,
s = t.week || 0,
o = t.day || 0,
a = t.hour || 0,
l = t.minute || 0,
c = t.second || 0,
d = t.millisecond || 0;
(this._isValid = (function (e) {
for (var t in e)
if (-1 === be.call(St, t) || (null != e[t] && isNaN(e[t])))
return !1;
for (var i = !1, n = 0; n < St.length; ++n)
if (e[St[n]]) {
if (i) return !1;
parseFloat(e[St[n]]) !== S(e[St[n]]) && (i = !0);
}
return !0;
})(t)),
(this._milliseconds = +d + 1e3 * c + 6e4 * l + 1e3 * a * 60 * 60),
(this._days = +o + 7 * s),
(this._months = +r + 3 * n + 12 * i),
(this._data = {}),
(this._locale = it()),
this._bubble();
}
function xt(e) {
return e instanceof kt;
}
function Lt(e) {
return e < 0 ? -1 * Math.round(-1 * e) : Math.round(e);
}
function Mt(e, t) {
z(e, 0, 0, function () {
var e = this.utcOffset(),
i = '+';
return (
e < 0 && ((e = -e), (i = '-')),
i + W(~~(e / 60), 2) + t + W(~~e % 60, 2)
);
});
}
Mt('Z', ':'),
Mt('ZZ', ''),
de('Z', ae),
de('ZZ', ae),
fe(['Z', 'ZZ'], function (e, t, i) {
(i._useUTC = !0), (i._tzm = Nt(ae, e));
});
var Dt = /([\+\-]|\d\d)/gi;
function Nt(e, t) {
var i = (t || '').match(e);
if (null === i) return null;
var n = ((i[i.length - 1] || []) + '').match(Dt) || ['-', 0, 0],
r = 60 * n[1] + S(n[2]);
return 0 === r ? 0 : '+' === n[0] ? r : -r;
}
function Et(e, t) {
var i, n;
return t._isUTC
? ((i = t.clone()),
(n =
(w(e) || c(e) ? e.valueOf() : vt(e).valueOf()) - i.valueOf()),
i._d.setTime(i._d.valueOf() + n),
r.updateOffset(i, !1),
i)
: vt(e).local();
}
function Tt(e) {
return 15 * -Math.round(e._d.getTimezoneOffset() / 15);
}
function It() {
return !!this.isValid() && this._isUTC && 0 === this._offset;
}
r.updateOffset = function () {};
var Ot = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,
At = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
function Rt(e, t) {
var i,
n,
r,
s = e,
o = null;
return (
xt(e)
? (s = { ms: e._milliseconds, d: e._days, M: e._months })
: l(e)
? ((s = {}), t ? (s[t] = e) : (s.milliseconds = e))
: (o = Ot.exec(e))
? ((i = '-' === o[1] ? -1 : 1),
(s = {
y: 0,
d: S(o[2]) * i,
h: S(o[3]) * i,
m: S(o[4]) * i,
s: S(o[5]) * i,
ms: S(Lt(1e3 * o[6])) * i,
}))
: (o = At.exec(e))
? ((i = '-' === o[1] ? -1 : (o[1], 1)),
(s = {
y: Pt(o[2], i),
M: Pt(o[3], i),
w: Pt(o[4], i),
d: Pt(o[5], i),
h: Pt(o[6], i),
m: Pt(o[7], i),
s: Pt(o[8], i),
}))
: null == s
? (s = {})
: 'object' == typeof s &&
('from' in s || 'to' in s) &&
((r = (function (e, t) {
var i;
return e.isValid() && t.isValid()
? ((t = Et(t, e)),
e.isBefore(t)
? (i = Ft(e, t))
: (((i = Ft(t, e)).milliseconds = -i.milliseconds),
(i.months = -i.months)),
i)
: { milliseconds: 0, months: 0 };
})(vt(s.from), vt(s.to))),
((s = {}).ms = r.milliseconds),
(s.M = r.months)),
(n = new kt(s)),
xt(e) && h(e, '_locale') && (n._locale = e._locale),
n
);
}
function Pt(e, t) {
var i = e && parseFloat(e.replace(',', '.'));
return (isNaN(i) ? 0 : i) * t;
}
function Ft(e, t) {
var i = { milliseconds: 0, months: 0 };
return (
(i.months = t.month() - e.month() + 12 * (t.year() - e.year())),
e.clone().add(i.months, 'M').isAfter(t) && --i.months,
(i.milliseconds = +t - +e.clone().add(i.months, 'M')),
i
);
}
function Bt(e, t) {
return function (i, n) {
var r;
return (
null === n ||
isNaN(+n) ||
(N(
t,
'moment().' +
t +
'(period, number) is deprecated. Please use moment().' +
t +
'(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'
),
(r = i),
(i = n),
(n = r)),
Wt(this, Rt((i = 'string' == typeof i ? +i : i), n), e),
this
);
};
}
function Wt(e, t, i, n) {
var s = t._milliseconds,
o = Lt(t._days),
a = Lt(t._months);
e.isValid() &&
((n = null == n || n),
a && Me(e, we(e, 'Month') + a * i),
o && Ce(e, 'Date', we(e, 'Date') + o * i),
s && e._d.setTime(e._d.valueOf() + s * i),
n && r.updateOffset(e, o || a));
}
(Rt.fn = kt.prototype),
(Rt.invalid = function () {
return Rt(NaN);
});
var Yt = Bt(1, 'add'),
Ht = Bt(-1, 'subtract');
function jt(e, t) {
var i = 12 * (t.year() - e.year()) + (t.month() - e.month()),
n = e.clone().add(i, 'months');
return (
-(
i +
(t - n < 0
? (t - n) / (n - e.clone().add(i - 1, 'months'))
: (t - n) / (e.clone().add(i + 1, 'months') - n))
) || 0
);
}
function Vt(e) {
var t;
return void 0 === e
? this._locale._abbr
: (null != (t = it(e)) && (this._locale = t), this);
}
(r.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'),
(r.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]');
var zt = L(
'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
function (e) {
return void 0 === e ? this.localeData() : this.locale(e);
}
);
function Ut() {
return this._locale;
}
function $t(e, t) {
z(0, [e, e.length], 0, t);
}
function Kt(e, t, i, n, r) {
var s;
return null == e
? Re(this, n, r).year
: ((s = Pe(e, n, r)) < t && (t = s),
function (e, t, i, n, r) {
var s = Ae(e, t, i, n, r),
o = Ie(s.year, 0, s.dayOfYear);
return (
this.year(o.getUTCFullYear()),
this.month(o.getUTCMonth()),
this.date(o.getUTCDate()),
this
);
}.call(this, e, t, i, n, r));
}
z(0, ['gg', 2], 0, function () {
return this.weekYear() % 100;
}),
z(0, ['GG', 2], 0, function () {
return this.isoWeekYear() % 100;
}),
$t('gggg', 'weekYear'),
$t('ggggg', 'weekYear'),
$t('GGGG', 'isoWeekYear'),
$t('GGGGG', 'isoWeekYear'),
A('weekYear', 'gg'),
A('isoWeekYear', 'GG'),
B('weekYear', 1),
B('isoWeekYear', 1),
de('G', se),
de('g', se),
de('GG', Q, q),
de('gg', Q, q),
de('GGGG', ie, Z),
de('gggg', ie, Z),
de('GGGGG', ne, J),
de('ggggg', ne, J),
pe(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (e, t, i, n) {
t[n.substr(0, 2)] = S(e);
}),
pe(['gg', 'GG'], function (e, t, i, n) {
t[n] = r.parseTwoDigitYear(e);
}),
z('Q', 0, 'Qo', 'quarter'),
A('quarter', 'Q'),
B('quarter', 7),
de('Q', K),
fe('Q', function (e, t) {
t[1] = 3 * (S(e) - 1);
}),
z('D', ['DD', 2], 'Do', 'date'),
A('date', 'D'),
B('date', 9),
de('D', Q),
de('DD', Q, q),
de('Do', function (e, t) {
return e
? t._dayOfMonthOrdinalParse || t._ordinalParse
: t._dayOfMonthOrdinalParseLenient;
}),
fe(['D', 'DD'], 2),
fe('Do', function (e, t) {
t[2] = S(e.match(Q)[0]);
});
var qt = ye('Date', !0);
z('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'),
A('dayOfYear', 'DDD'),
B('dayOfYear', 4),
de('DDD', te),
de('DDDD', G),
fe(['DDD', 'DDDD'], function (e, t, i) {
i._dayOfYear = S(e);
}),
z('m', ['mm', 2], 0, 'minute'),
A('minute', 'm'),
B('minute', 14),
de('m', Q),
de('mm', Q, q),
fe(['m', 'mm'], 4);
var Gt = ye('Minutes', !1);
z('s', ['ss', 2], 0, 'second'),
A('second', 's'),
B('second', 15),
de('s', Q),
de('ss', Q, q),
fe(['s', 'ss'], 5);
var Zt,
Jt = ye('Seconds', !1);
for (
z('S', 0, 0, function () {
return ~~(this.millisecond() / 100);
}),
z(0, ['SS', 2], 0, function () {
return ~~(this.millisecond() / 10);
}),
z(0, ['SSS', 3], 0, 'millisecond'),
z(0, ['SSSS', 4], 0, function () {
return 10 * this.millisecond();
}),
z(0, ['SSSSS', 5], 0, function () {
return 100 * this.millisecond();
}),
z(0, ['SSSSSS', 6], 0, function () {
return 1e3 * this.millisecond();
}),
z(0, ['SSSSSSS', 7], 0, function () {
return 1e4 * this.millisecond();
}),
z(0, ['SSSSSSSS', 8], 0, function () {
return 1e5 * this.millisecond();
}),
z(0, ['SSSSSSSSS', 9], 0, function () {
return 1e6 * this.millisecond();
}),
A('millisecond', 'ms'),
B('millisecond', 16),
de('S', te, K),
de('SS', te, q),
de('SSS', te, G),
Zt = 'SSSS';
Zt.length <= 9;
Zt += 'S'
)
de(Zt, re);
function Qt(e, t) {
t[6] = S(1e3 * ('0.' + e));
}
for (Zt = 'S'; Zt.length <= 9; Zt += 'S') fe(Zt, Qt);
var Xt = ye('Milliseconds', !1);
z('z', 0, 0, 'zoneAbbr'), z('zz', 0, 0, 'zoneName');
var ei = y.prototype;
function ti(e) {
return e;
}
(ei.add = Yt),
(ei.calendar = function (e, t) {
var i = e || vt(),
n = Et(i, this).startOf('day'),
s = r.calendarFormat(this, n) || 'sameElse',
o = t && (E(t[s]) ? t[s].call(this, i) : t[s]);
return this.format(
o || this.localeData().calendar(s, this, vt(i))
);
}),
(ei.clone = function () {
return new y(this);
}),
(ei.diff = function (e, t, i) {
var n, r, s;
if (!this.isValid()) return NaN;
if (!(n = Et(e, this)).isValid()) return NaN;
switch (
((r = 6e4 * (n.utcOffset() - this.utcOffset())), (t = R(t)))
) {
case 'year':
s = jt(this, n) / 12;
break;
case 'month':
s = jt(this, n);
break;
case 'quarter':
s = jt(this, n) / 3;
break;
case 'second':
s = (this - n) / 1e3;
break;
case 'minute':
s = (this - n) / 6e4;
break;
case 'hour':
s = (this - n) / 36e5;
break;
case 'day':
s = (this - n - r) / 864e5;
break;
case 'week':
s = (this - n - r) / 6048e5;
break;
default:
s = this - n;
}
return i ? s : C(s);
}),
(ei.endOf = function (e) {
return void 0 === (e = R(e)) || 'millisecond' === e
? this
: ('date' === e && (e = 'day'),
this.startOf(e)
.add(1, 'isoWeek' === e ? 'week' : e)
.subtract(1, 'ms'));
}),
(ei.format = function (e) {
e || (e = this.isUtc() ? r.defaultFormatUtc : r.defaultFormat);
var t = U(this, e);
return this.localeData().postformat(t);
}),
(ei.from = function (e, t) {
return this.isValid() &&
((w(e) && e.isValid()) || vt(e).isValid())
? Rt({ to: this, from: e }).locale(this.locale()).humanize(!t)
: this.localeData().invalidDate();
}),
(ei.fromNow = function (e) {
return this.from(vt(), e);
}),
(ei.to = function (e, t) {
return this.isValid() &&
((w(e) && e.isValid()) || vt(e).isValid())
? Rt({ from: this, to: e }).locale(this.locale()).humanize(!t)
: this.localeData().invalidDate();
}),
(ei.toNow = function (e) {
return this.to(vt(), e);
}),
(ei.get = function (e) {
return E(this[(e = R(e))]) ? this[e]() : this;
}),
(ei.invalidAt = function () {
return f(this).overflow;
}),
(ei.isAfter = function (e, t) {
var i = w(e) ? e : vt(e);
return (
!(!this.isValid() || !i.isValid()) &&
('millisecond' === (t = R(a(t) ? 'millisecond' : t))
? this.valueOf() > i.valueOf()
: i.valueOf() < this.clone().startOf(t).valueOf())
);
}),
(ei.isBefore = function (e, t) {
var i = w(e) ? e : vt(e);
return (
!(!this.isValid() || !i.isValid()) &&
('millisecond' === (t = R(a(t) ? 'millisecond' : t))
? this.valueOf() < i.valueOf()
: this.clone().endOf(t).valueOf() < i.valueOf())
);
}),
(ei.isBetween = function (e, t, i, n) {
return (
('(' === (n = n || '()')[0]
? this.isAfter(e, i)
: !this.isBefore(e, i)) &&
(')' === n[1] ? this.isBefore(t, i) : !this.isAfter(t, i))
);
}),
(ei.isSame = function (e, t) {
var i,
n = w(e) ? e : vt(e);
return (
!(!this.isValid() || !n.isValid()) &&
('millisecond' === (t = R(t || 'millisecond'))
? this.valueOf() === n.valueOf()
: ((i = n.valueOf()),
this.clone().startOf(t).valueOf() <= i &&
i <= this.clone().endOf(t).valueOf()))
);
}),
(ei.isSameOrAfter = function (e, t) {
return this.isSame(e, t) || this.isAfter(e, t);
}),
(ei.isSameOrBefore = function (e, t) {
return this.isSame(e, t) || this.isBefore(e, t);
}),
(ei.isValid = function () {
return p(this);
}),
(ei.lang = zt),
(ei.locale = Vt),
(ei.localeData = Ut),
(ei.max = wt),
(ei.min = yt),
(ei.parsingFlags = function () {
return u({}, f(this));
}),
(ei.set = function (e, t) {
if ('object' == typeof e)
for (
var i = (function (e) {
var t = [];
for (var i in e) t.push({ unit: i, priority: F[i] });
return (
t.sort(function (e, t) {
return e.priority - t.priority;
}),
t
);
})((e = P(e))),
n = 0;
n < i.length;
n++
)
this[i[n].unit](e[i[n].unit]);
else if (E(this[(e = R(e))])) return this[e](t);
return this;
}),
(ei.startOf = function (e) {
switch ((e = R(e))) {
case 'year':
this.month(0);
case 'quarter':
case 'month':
this.date(1);
case 'week':
case 'isoWeek':
case 'day':
case 'date':
this.hours(0);
case 'hour':
this.minutes(0);
case 'minute':
this.seconds(0);
case 'second':
this.milliseconds(0);
}
return (
'week' === e && this.weekday(0),
'isoWeek' === e && this.isoWeekday(1),
'quarter' === e && this.month(3 * Math.floor(this.month() / 3)),
this
);
}),
(ei.subtract = Ht),
(ei.toArray = function () {
var e = this;
return [
e.year(),
e.month(),
e.date(),
e.hour(),
e.minute(),
e.second(),
e.millisecond(),
];
}),
(ei.toObject = function () {
var e = this;
return {
years: e.year(),
months: e.month(),
date: e.date(),
hours: e.hours(),
minutes: e.minutes(),
seconds: e.seconds(),
milliseconds: e.milliseconds(),
};
}),
(ei.toDate = function () {
return new Date(this.valueOf());
}),
(ei.toISOString = function (e) {
if (!this.isValid()) return null;
var t = !0 !== e,
i = t ? this.clone().utc() : this;
return i.year() < 0 || 9999 < i.year()
? U(
i,
t
? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'
: 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'
)
: E(Date.prototype.toISOString)
? t
? this.toDate().toISOString()
: new Date(this.valueOf() + 60 * this.utcOffset() * 1e3)
.toISOString()
.replace('Z', U(i, 'Z'))
: U(
i,
t
? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]'
: 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'
);
}),
(ei.inspect = function () {
if (!this.isValid())
return 'moment.invalid(/* ' + this._i + ' */)';
var e = 'moment',
t = '';
this.isLocal() ||
((e =
0 === this.utcOffset() ? 'moment.utc' : 'moment.parseZone'),
(t = 'Z'));
var i = '[' + e + '("]',
n = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY',
r = t + '[")]';
return this.format(i + n + '-MM-DD[T]HH:mm:ss.SSS' + r);
}),
(ei.toJSON = function () {
return this.isValid() ? this.toISOString() : null;
}),
(ei.toString = function () {
return this.clone()
.locale('en')
.format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
}),
(ei.unix = function () {
return Math.floor(this.valueOf() / 1e3);
}),
(ei.valueOf = function () {
return this._d.valueOf() - 6e4 * (this._offset || 0);
}),
(ei.creationData = function () {
return {
input: this._i,
format: this._f,
locale: this._locale,
isUTC: this._isUTC,
strict: this._strict,
};
}),
(ei.year = ve),
(ei.isLeapYear = function () {
return _e(this.year());
}),
(ei.weekYear = function (e) {
return Kt.call(
this,
e,
this.week(),
this.weekday(),
this.localeData()._week.dow,
this.localeData()._week.doy
);
}),
(ei.isoWeekYear = function (e) {
return Kt.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4);
}),
(ei.quarter = ei.quarters = function (e) {
return null == e
? Math.ceil((this.month() + 1) / 3)
: this.month(3 * (e - 1) + (this.month() % 3));
}),
(ei.month = De),
(ei.daysInMonth = function () {
return Se(this.year(), this.month());
}),
(ei.week = ei.weeks = function (e) {
var t = this.localeData().week(this);
return null == e ? t : this.add(7 * (e - t), 'd');
}),
(ei.isoWeek = ei.isoWeeks = function (e) {
var t = Re(this, 1, 4).week;
return null == e ? t : this.add(7 * (e - t), 'd');
}),
(ei.weeksInYear = function () {
var e = this.localeData()._week;
return Pe(this.year(), e.dow, e.doy);
}),
(ei.isoWeeksInYear = function () {
return Pe(this.year(), 1, 4);
}),
(ei.date = qt),
(ei.day = ei.days = function (e) {
if (!this.isValid()) return null != e ? this : NaN;
var t,
i,
n = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
return null != e
? ((t = e),
(i = this.localeData()),
(e =
'string' != typeof t
? t
: isNaN(t)
? 'number' == typeof (t = i.weekdaysParse(t))
? t
: null
: parseInt(t, 10)),
this.add(e - n, 'd'))
: n;
}),
(ei.weekday = function (e) {
if (!this.isValid()) return null != e ? this : NaN;
var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
return null == e ? t : this.add(e - t, 'd');
}),
(ei.isoWeekday = function (e) {
if (!this.isValid()) return null != e ? this : NaN;
if (null != e) {
var t =
((i = e),
(n = this.localeData()),
'string' == typeof i
? n.weekdaysParse(i) % 7 || 7
: isNaN(i)
? null
: i);
return this.day(this.day() % 7 ? t : t - 7);
}
return this.day() || 7;
var i, n;
}),
(ei.dayOfYear = function (e) {
var t =
Math.round(
(this.clone().startOf('day') - this.clone().startOf('year')) /
864e5
) + 1;
return null == e ? t : this.add(e - t, 'd');
}),
(ei.hour = ei.hours = qe),
(ei.minute = ei.minutes = Gt),
(ei.second = ei.seconds = Jt),
(ei.millisecond = ei.milliseconds = Xt),
(ei.utcOffset = function (e, t, i) {
var n,
s = this._offset || 0;
if (!this.isValid()) return null != e ? this : NaN;
if (null != e) {
if ('string' == typeof e) {
if (null === (e = Nt(ae, e))) return this;
} else Math.abs(e) < 16 && !i && (e *= 60);
return (
!this._isUTC && t && (n = Tt(this)),
(this._offset = e),
(this._isUTC = !0),
null != n && this.add(n, 'm'),
s !== e &&
(!t || this._changeInProgress
? Wt(this, Rt(e - s, 'm'), 1, !1)
: this._changeInProgress ||
((this._changeInProgress = !0),
r.updateOffset(this, !0),
(this._changeInProgress = null))),
this
);
}
return this._isUTC ? s : Tt(this);
}),
(ei.utc = function (e) {
return this.utcOffset(0, e);
}),
(ei.local = function (e) {
return (
this._isUTC &&
(this.utcOffset(0, e),
(this._isUTC = !1),
e && this.subtract(Tt(this), 'm')),
this
);
}),
(ei.parseZone = function () {
if (null != this._tzm) this.utcOffset(this._tzm, !1, !0);
else if ('string' == typeof this._i) {
var e = Nt(oe, this._i);
null != e ? this.utcOffset(e) : this.utcOffset(0, !0);
}
return this;
}),
(ei.hasAlignedHourOffset = function (e) {
return (
!!this.isValid() &&
((e = e ? vt(e).utcOffset() : 0),
(this.utcOffset() - e) % 60 == 0)
);
}),
(ei.isDST = function () {
return (
this.utcOffset() > this.clone().month(0).utcOffset() ||
this.utcOffset() > this.clone().month(5).utcOffset()
);
}),
(ei.isLocal = function () {
return !!this.isValid() && !this._isUTC;
}),
(ei.isUtcOffset = function () {
return !!this.isValid() && this._isUTC;
}),
(ei.isUtc = It),
(ei.isUTC = It),
(ei.zoneAbbr = function () {
return this._isUTC ? 'UTC' : '';
}),
(ei.zoneName = function () {
return this._isUTC ? 'Coordinated Universal Time' : '';
}),
(ei.dates = L(
'dates accessor is deprecated. Use date instead.',
qt
)),
(ei.months = L(
'months accessor is deprecated. Use month instead',
De
)),
(ei.years = L(
'years accessor is deprecated. Use year instead',
ve
)),
(ei.zone = L(
'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
function (e, t) {
return null != e
? ('string' != typeof e && (e = -e),
this.utcOffset(e, t),
this)
: -this.utcOffset();
}
)),
(ei.isDSTShifted = L(
'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
function () {
if (!a(this._isDSTShifted)) return this._isDSTShifted;
var e = {};
if ((b(e, this), (e = _t(e))._a)) {
var t = e._isUTC ? g(e._a) : vt(e._a);
this._isDSTShifted =
this.isValid() && 0 < k(e._a, t.toArray());
} else this._isDSTShifted = !1;
return this._isDSTShifted;
}
));
var ii = I.prototype;
function ni(e, t, i, n) {
var r = it(),
s = g().set(n, t);
return r[i](s, e);
}
function ri(e, t, i) {
if ((l(e) && ((t = e), (e = void 0)), (e = e || ''), null != t))
return ni(e, t, i, 'month');
var n,
r = [];
for (n = 0; n < 12; n++) r[n] = ni(e, n, i, 'month');
return r;
}
function si(e, t, i, n) {
'boolean' == typeof e
? l(t) && ((i = t), (t = void 0))
: ((t = e), (e = !1), l((i = t)) && ((i = t), (t = void 0))),
(t = t || '');
var r,
s = it(),
o = e ? s._week.dow : 0;
if (null != i) return ni(t, (i + o) % 7, n, 'day');
var a = [];
for (r = 0; r < 7; r++) a[r] = ni(t, (r + o) % 7, n, 'day');
return a;
}
(ii.calendar = function (e, t, i) {
var n = this._calendar[e] || this._calendar.sameElse;
return E(n) ? n.call(t, i) : n;
}),
(ii.longDateFormat = function (e) {
var t = this._longDateFormat[e],
i = this._longDateFormat[e.toUpperCase()];
return t || !i
? t
: ((this._longDateFormat[e] = i.replace(
/MMMM|MM|DD|dddd/g,
function (e) {
return e.slice(1);
}
)),
this._longDateFormat[e]);
}),
(ii.invalidDate = function () {
return this._invalidDate;
}),
(ii.ordinal = function (e) {
return this._ordinal.replace('%d', e);
}),
(ii.preparse = ti),
(ii.postformat = ti),
(ii.relativeTime = function (e, t, i, n) {
var r = this._relativeTime[i];
return E(r) ? r(e, t, i, n) : r.replace(/%d/i, e);
}),
(ii.pastFuture = function (e, t) {
var i = this._relativeTime[0 < e ? 'future' : 'past'];
return E(i) ? i(t) : i.replace(/%s/i, t);
}),
(ii.set = function (e) {
var t, i;
for (i in e) E((t = e[i])) ? (this[i] = t) : (this['_' + i] = t);
(this._config = e),
(this._dayOfMonthOrdinalParseLenient = new RegExp(
(this._dayOfMonthOrdinalParse.source ||
this._ordinalParse.source) +
'|' +
/\d{1,2}/.source
));
}),
(ii.months = function (e, t) {
return e
? s(this._months)
? this._months[e.month()]
: this._months[
(this._months.isFormat || ke).test(t)
? 'format'
: 'standalone'
][e.month()]
: s(this._months)
? this._months
: this._months.standalone;
}),
(ii.monthsShort = function (e, t) {
return e
? s(this._monthsShort)
? this._monthsShort[e.month()]
: this._monthsShort[ke.test(t) ? 'format' : 'standalone'][
e.month()
]
: s(this._monthsShort)
? this._monthsShort
: this._monthsShort.standalone;
}),
(ii.monthsParse = function (e, t, i) {
var n, r, s;
if (this._monthsParseExact)
return function (e, t, i) {
var n,
r,
s,
o = e.toLocaleLowerCase();
if (!this._monthsParse)
for (
this._monthsParse = [],
this._longMonthsParse = [],
this._shortMonthsParse = [],
n = 0;
n < 12;
++n
)
(s = g([2e3, n])),
(this._shortMonthsParse[n] = this.monthsShort(
s,
''
).toLocaleLowerCase()),
(this._longMonthsParse[n] = this.months(
s,
''
).toLocaleLowerCase());
return i
? 'MMM' === t
? -1 !== (r = be.call(this._shortMonthsParse, o))
? r
: null
: -1 !== (r = be.call(this._longMonthsParse, o))
? r
: null
: 'MMM' === t
? -1 !== (r = be.call(this._shortMonthsParse, o)) ||
-1 !== (r = be.call(this._longMonthsParse, o))
? r
: null
: -1 !== (r = be.call(this._longMonthsParse, o)) ||
-1 !== (r = be.call(this._shortMonthsParse, o))
? r
: null;
}.call(this, e, t, i);
for (
this._monthsParse ||
((this._monthsParse = []),
(this._longMonthsParse = []),
(this._shortMonthsParse = [])),
n = 0;
n < 12;
n++
) {
if (
((r = g([2e3, n])),
i &&
!this._longMonthsParse[n] &&
((this._longMonthsParse[n] = new RegExp(
'^' + this.months(r, '').replace('.', '') + '$',
'i'
)),
(this._shortMonthsParse[n] = new RegExp(
'^' + this.monthsShort(r, '').replace('.', '') + '$',
'i'
))),
i ||
this._monthsParse[n] ||
((s =
'^' +
this.months(r, '') +
'|^' +
this.monthsShort(r, '')),
(this._monthsParse[n] = new RegExp(
s.replace('.', ''),
'i'
))),
i && 'MMMM' === t && this._longMonthsParse[n].test(e))
)
return n;
if (i && 'MMM' === t && this._shortMonthsParse[n].test(e))
return n;
if (!i && this._monthsParse[n].test(e)) return n;
}
}),
(ii.monthsRegex = function (e) {
return this._monthsParseExact
? (h(this, '_monthsRegex') || Te.call(this),
e ? this._monthsStrictRegex : this._monthsRegex)
: (h(this, '_monthsRegex') || (this._monthsRegex = Ee),
this._monthsStrictRegex && e
? this._monthsStrictRegex
: this._monthsRegex);
}),
(ii.monthsShortRegex = function (e) {
return this._monthsParseExact
? (h(this, '_monthsRegex') || Te.call(this),
e ? this._monthsShortStrictRegex : this._monthsShortRegex)
: (h(this, '_monthsShortRegex') ||
(this._monthsShortRegex = Ne),
this._monthsShortStrictRegex && e
? this._monthsShortStrictRegex
: this._monthsShortRegex);
}),
(ii.week = function (e) {
return Re(e, this._week.dow, this._week.doy).week;
}),
(ii.firstDayOfYear = function () {
return this._week.doy;
}),
(ii.firstDayOfWeek = function () {
return this._week.dow;
}),
(ii.weekdays = function (e, t) {
return e
? s(this._weekdays)
? this._weekdays[e.day()]
: this._weekdays[
this._weekdays.isFormat.test(t) ? 'format' : 'standalone'
][e.day()]
: s(this._weekdays)
? this._weekdays
: this._weekdays.standalone;
}),
(ii.weekdaysMin = function (e) {
return e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
}),
(ii.weekdaysShort = function (e) {
return e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
}),
(ii.weekdaysParse = function (e, t, i) {
var n, r, s;
if (this._weekdaysParseExact)
return function (e, t, i) {
var n,
r,
s,
o = e.toLocaleLowerCase();
if (!this._weekdaysParse)
for (
this._weekdaysParse = [],
this._shortWeekdaysParse = [],
this._minWeekdaysParse = [],
n = 0;
n < 7;
++n
)
(s = g([2e3, 1]).day(n)),
(this._minWeekdaysParse[n] = this.weekdaysMin(
s,
''
).toLocaleLowerCase()),
(this._shortWeekdaysParse[n] = this.weekdaysShort(
s,
''
).toLocaleLowerCase()),
(this._weekdaysParse[n] = this.weekdays(
s,
''
).toLocaleLowerCase());
return i
? 'dddd' === t
? -1 !== (r = be.call(this._weekdaysParse, o))
? r
: null
: 'ddd' === t
? -1 !== (r = be.call(this._shortWeekdaysParse, o))
? r
: null
: -1 !== (r = be.call(this._minWeekdaysParse, o))
? r
: null
: 'dddd' === t
? -1 !== (r = be.call(this._weekdaysParse, o)) ||
-1 !== (r = be.call(this._shortWeekdaysParse, o)) ||
-1 !== (r = be.call(this._minWeekdaysParse, o))
? r
: null
: 'ddd' === t
? -1 !== (r = be.call(this._shortWeekdaysParse, o)) ||
-1 !== (r = be.call(this._weekdaysParse, o)) ||
-1 !== (r = be.call(this._minWeekdaysParse, o))
? r
: null
: -1 !== (r = be.call(this._minWeekdaysParse, o)) ||
-1 !== (r = be.call(this._weekdaysParse, o)) ||
-1 !== (r = be.call(this._shortWeekdaysParse, o))
? r
: null;
}.call(this, e, t, i);
for (
this._weekdaysParse ||
((this._weekdaysParse = []),
(this._minWeekdaysParse = []),
(this._shortWeekdaysParse = []),
(this._fullWeekdaysParse = [])),
n = 0;
n < 7;
n++
) {
if (
((r = g([2e3, 1]).day(n)),
i &&
!this._fullWeekdaysParse[n] &&
((this._fullWeekdaysParse[n] = new RegExp(
'^' + this.weekdays(r, '').replace('.', '.?') + '$',
'i'
)),
(this._shortWeekdaysParse[n] = new RegExp(
'^' + this.weekdaysShort(r, '').replace('.', '.?') + '$',
'i'
)),
(this._minWeekdaysParse[n] = new RegExp(
'^' + this.weekdaysMin(r, '').replace('.', '.?') + '$',
'i'
))),
this._weekdaysParse[n] ||
((s =
'^' +
this.weekdays(r, '') +
'|^' +
this.weekdaysShort(r, '') +
'|^' +
this.weekdaysMin(r, '')),
(this._weekdaysParse[n] = new RegExp(
s.replace('.', ''),
'i'
))),
i && 'dddd' === t && this._fullWeekdaysParse[n].test(e))
)
return n;
if (i && 'ddd' === t && this._shortWeekdaysParse[n].test(e))
return n;
if (i && 'dd' === t && this._minWeekdaysParse[n].test(e))
return n;
if (!i && this._weekdaysParse[n].test(e)) return n;
}
}),
(ii.weekdaysRegex = function (e) {
return this._weekdaysParseExact
? (h(this, '_weekdaysRegex') || Ve.call(this),
e ? this._weekdaysStrictRegex : this._weekdaysRegex)
: (h(this, '_weekdaysRegex') || (this._weekdaysRegex = Ye),
this._weekdaysStrictRegex && e
? this._weekdaysStrictRegex
: this._weekdaysRegex);
}),
(ii.weekdaysShortRegex = function (e) {
return this._weekdaysParseExact
? (h(this, '_weekdaysRegex') || Ve.call(this),
e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex)
: (h(this, '_weekdaysShortRegex') ||
(this._weekdaysShortRegex = He),
this._weekdaysShortStrictRegex && e
? this._weekdaysShortStrictRegex
: this._weekdaysShortRegex);
}),
(ii.weekdaysMinRegex = function (e) {
return this._weekdaysParseExact
? (h(this, '_weekdaysRegex') || Ve.call(this),
e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex)
: (h(this, '_weekdaysMinRegex') ||
(this._weekdaysMinRegex = je),
this._weekdaysMinStrictRegex && e
? this._weekdaysMinStrictRegex
: this._weekdaysMinRegex);
}),
(ii.isPM = function (e) {
return 'p' === (e + '').toLowerCase().charAt(0);
}),
(ii.meridiem = function (e, t, i) {
return 11 < e ? (i ? 'pm' : 'PM') : i ? 'am' : 'AM';
}),
et('en', {
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
ordinal: function (e) {
var t = e % 10;
return (
e +
(1 === S((e % 100) / 10)
? 'th'
: 1 === t
? 'st'
: 2 === t
? 'nd'
: 3 === t
? 'rd'
: 'th')
);
},
}),
(r.lang = L(
'moment.lang is deprecated. Use moment.locale instead.',
et
)),
(r.langData = L(
'moment.langData is deprecated. Use moment.localeData instead.',
it
));
var oi = Math.abs;
function ai(e, t, i, n) {
var r = Rt(t, i);
return (
(e._milliseconds += n * r._milliseconds),
(e._days += n * r._days),
(e._months += n * r._months),
e._bubble()
);
}
function li(e) {
return e < 0 ? Math.floor(e) : Math.ceil(e);
}
function ci(e) {
return (4800 * e) / 146097;
}
function di(e) {
return (146097 * e) / 4800;
}
function hi(e) {
return function () {
return this.as(e);
};
}
var ui = hi('ms'),
gi = hi('s'),
fi = hi('m'),
pi = hi('h'),
mi = hi('d'),
_i = hi('w'),
bi = hi('M'),
vi = hi('y');
function yi(e) {
return function () {
return this.isValid() ? this._data[e] : NaN;
};
}
var wi = yi('milliseconds'),
Ci = yi('seconds'),
Si = yi('minutes'),
ki = yi('hours'),
xi = yi('days'),
Li = yi('months'),
Mi = yi('years'),
Di = Math.round,
Ni = { ss: 44, s: 45, m: 45, h: 22, d: 26, M: 11 },
Ei = Math.abs;
function Ti(e) {
return (0 < e) - (e < 0) || +e;
}
function Ii() {
if (!this.isValid()) return this.localeData().invalidDate();
var e,
t,
i = Ei(this._milliseconds) / 1e3,
n = Ei(this._days),
r = Ei(this._months);
(t = C((e = C(i / 60)) / 60)), (i %= 60), (e %= 60);
var s = C(r / 12),
o = (r %= 12),
a = n,
l = t,
c = e,
d = i ? i.toFixed(3).replace(/\.?0+$/, '') : '',
h = this.asSeconds();
if (!h) return 'P0D';
var u = h < 0 ? '-' : '',
g = Ti(this._months) !== Ti(h) ? '-' : '',
f = Ti(this._days) !== Ti(h) ? '-' : '',
p = Ti(this._milliseconds) !== Ti(h) ? '-' : '';
return (
u +
'P' +
(s ? g + s + 'Y' : '') +
(o ? g + o + 'M' : '') +
(a ? f + a + 'D' : '') +
(l || c || d ? 'T' : '') +
(l ? p + l + 'H' : '') +
(c ? p + c + 'M' : '') +
(d ? p + d + 'S' : '')
);
}
var Oi = kt.prototype;
return (
(Oi.isValid = function () {
return this._isValid;
}),
(Oi.abs = function () {
var e = this._data;
return (
(this._milliseconds = oi(this._milliseconds)),
(this._days = oi(this._days)),
(this._months = oi(this._months)),
(e.milliseconds = oi(e.milliseconds)),
(e.seconds = oi(e.seconds)),
(e.minutes = oi(e.minutes)),
(e.hours = oi(e.hours)),
(e.months = oi(e.months)),
(e.years = oi(e.years)),
this
);
}),
(Oi.add = function (e, t) {
return ai(this, e, t, 1);
}),
(Oi.subtract = function (e, t) {
return ai(this, e, t, -1);
}),
(Oi.as = function (e) {
if (!this.isValid()) return NaN;
var t,
i,
n = this._milliseconds;
if ('month' === (e = R(e)) || 'year' === e)
return (
(t = this._days + n / 864e5),
(i = this._months + ci(t)),
'month' === e ? i : i / 12
);
switch (((t = this._days + Math.round(di(this._months))), e)) {
case 'week':
return t / 7 + n / 6048e5;
case 'day':
return t + n / 864e5;
case 'hour':
return 24 * t + n / 36e5;
case 'minute':
return 1440 * t + n / 6e4;
case 'second':
return 86400 * t + n / 1e3;
case 'millisecond':
return Math.floor(864e5 * t) + n;
default:
throw new Error('Unknown unit ' + e);
}
}),
(Oi.asMilliseconds = ui),
(Oi.asSeconds = gi),
(Oi.asMinutes = fi),
(Oi.asHours = pi),
(Oi.asDays = mi),
(Oi.asWeeks = _i),
(Oi.asMonths = bi),
(Oi.asYears = vi),
(Oi.valueOf = function () {
return this.isValid()
? this._milliseconds +
864e5 * this._days +
(this._months % 12) * 2592e6 +
31536e6 * S(this._months / 12)
: NaN;
}),
(Oi._bubble = function () {
var e,
t,
i,
n,
r,
s = this._milliseconds,
o = this._days,
a = this._months,
l = this._data;
return (
(0 <= s && 0 <= o && 0 <= a) ||
(s <= 0 && o <= 0 && a <= 0) ||
((s += 864e5 * li(di(a) + o)), (a = o = 0)),
(l.milliseconds = s % 1e3),
(e = C(s / 1e3)),
(l.seconds = e % 60),
(t = C(e / 60)),
(l.minutes = t % 60),
(i = C(t / 60)),
(l.hours = i % 24),
(a += r = C(ci((o += C(i / 24))))),
(o -= li(di(r))),
(n = C(a / 12)),
(a %= 12),
(l.days = o),
(l.months = a),
(l.years = n),
this
);
}),
(Oi.clone = function () {
return Rt(this);
}),
(Oi.get = function (e) {
return (e = R(e)), this.isValid() ? this[e + 's']() : NaN;
}),
(Oi.milliseconds = wi),
(Oi.seconds = Ci),
(Oi.minutes = Si),
(Oi.hours = ki),
(Oi.days = xi),
(Oi.weeks = function () {
return C(this.days() / 7);
}),
(Oi.months = Li),
(Oi.years = Mi),
(Oi.humanize = function (e) {
if (!this.isValid()) return this.localeData().invalidDate();
var t,
i,
n,
r,
s,
o,
a,
l,
c,
d,
h = this.localeData(),
u =
((t = !e),
(i = h),
(n = Rt(this).abs()),
(r = Di(n.as('s'))),
(s = Di(n.as('m'))),
(o = Di(n.as('h'))),
(a = Di(n.as('d'))),
(l = Di(n.as('M'))),
(c = Di(n.as('y'))),
((d = (r <= Ni.ss && ['s', r]) ||
(r < Ni.s && ['ss', r]) ||
(s <= 1 && ['m']) ||
(s < Ni.m && ['mm', s]) ||
(o <= 1 && ['h']) ||
(o < Ni.h && ['hh', o]) ||
(a <= 1 && ['d']) ||
(a < Ni.d && ['dd', a]) ||
(l <= 1 && ['M']) ||
(l < Ni.M && ['MM', l]) ||
(c <= 1 && ['y']) || ['yy', c])[2] = t),
(d[3] = 0 < +this),
(d[4] = i),
function (e, t, i, n, r) {
return r.relativeTime(t || 1, !!i, e, n);
}.apply(null, d));
return e && (u = h.pastFuture(+this, u)), h.postformat(u);
}),
(Oi.toISOString = Ii),
(Oi.toString = Ii),
(Oi.toJSON = Ii),
(Oi.locale = Vt),
(Oi.localeData = Ut),
(Oi.toIsoString = L(
'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
Ii
)),
(Oi.lang = zt),
z('X', 0, 0, 'unix'),
z('x', 0, 0, 'valueOf'),
de('x', se),
de('X', /[+-]?\d+(\.\d{1,3})?/),
fe('X', function (e, t, i) {
i._d = new Date(1e3 * parseFloat(e, 10));
}),
fe('x', function (e, t, i) {
i._d = new Date(S(e));
}),
(r.version = '2.22.1'),
(t = vt),
(r.fn = ei),
(r.min = function () {
return Ct('isBefore', [].slice.call(arguments, 0));
}),
(r.max = function () {
return Ct('isAfter', [].slice.call(arguments, 0));
}),
(r.now = function () {
return Date.now ? Date.now() : +new Date();
}),
(r.utc = g),
(r.unix = function (e) {
return vt(1e3 * e);
}),
(r.months = function (e, t) {
return ri(e, t, 'months');
}),
(r.isDate = c),
(r.locale = et),
(r.invalid = m),
(r.duration = Rt),
(r.isMoment = w),
(r.weekdays = function (e, t, i) {
return si(e, t, i, 'weekdays');
}),
(r.parseZone = function () {
return vt.apply(null, arguments).parseZone();
}),
(r.localeData = it),
(r.isDuration = xt),
(r.monthsShort = function (e, t) {
return ri(e, t, 'monthsShort');
}),
(r.weekdaysMin = function (e, t, i) {
return si(e, t, i, 'weekdaysMin');
}),
(r.defineLocale = tt),
(r.updateLocale = function (e, t) {
if (null != t) {
var i,
n,
r = Ge;
null != (n = Xe(e)) && (r = n._config),
((i = new I((t = T(r, t)))).parentLocale = Ze[e]),
(Ze[e] = i),
et(e);
} else
null != Ze[e] &&
(null != Ze[e].parentLocale
? (Ze[e] = Ze[e].parentLocale)
: null != Ze[e] && delete Ze[e]);
return Ze[e];
}),
(r.locales = function () {
return M(Ze);
}),
(r.weekdaysShort = function (e, t, i) {
return si(e, t, i, 'weekdaysShort');
}),
(r.normalizeUnits = R),
(r.relativeTimeRounding = function (e) {
return void 0 === e
? Di
: 'function' == typeof e && ((Di = e), !0);
}),
(r.relativeTimeThreshold = function (e, t) {
return (
void 0 !== Ni[e] &&
(void 0 === t
? Ni[e]
: ((Ni[e] = t), 's' === e && (Ni.ss = t - 1), !0))
);
}),
(r.calendarFormat = function (e, t) {
var i = e.diff(t, 'days', !0);
return i < -6
? 'sameElse'
: i < -1
? 'lastWeek'
: i < 0
? 'lastDay'
: i < 1
? 'sameDay'
: i < 2
? 'nextDay'
: i < 7
? 'nextWeek'
: 'sameElse';
}),
(r.prototype = ei),
(r.HTML5_FMT = {
DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm',
DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss',
DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS',
DATE: 'YYYY-MM-DD',
TIME: 'HH:mm',
TIME_SECONDS: 'HH:mm:ss',
TIME_MS: 'HH:mm:ss.SSS',
WEEK: 'YYYY-[W]WW',
MONTH: 'YYYY-MM',
}),
r
);
})();
},
42786: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('af', {
months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split(
'_'
),
monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split(
'_'
),
weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split(
'_'
),
weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
meridiemParse: /vm|nm/i,
isPM: function (e) {
return /^nm$/i.test(e);
},
meridiem: function (e, t, i) {
return e < 12 ? (i ? 'vm' : 'VM') : i ? 'nm' : 'NM';
},
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Vandag om] LT',
nextDay: '[Môre om] LT',
nextWeek: 'dddd [om] LT',
lastDay: '[Gister om] LT',
lastWeek: '[Laas] dddd [om] LT',
sameElse: 'L',
},
relativeTime: {
future: 'oor %s',
past: '%s gelede',
s: "'n paar sekondes",
ss: '%d sekondes',
m: "'n minuut",
mm: '%d minute',
h: "'n uur",
hh: '%d ure',
d: "'n dag",
dd: '%d dae',
M: "'n maand",
MM: '%d maande',
y: "'n jaar",
yy: '%d jaar',
},
dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
ordinal: function (e) {
return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de');
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
14130: function (e, t, i) {
!(function (e) {
'use strict';
var t = function (e) {
return 0 === e
? 0
: 1 === e
? 1
: 2 === e
? 2
: e % 100 >= 3 && e % 100 <= 10
? 3
: e % 100 >= 11
? 4
: 5;
},
i = {
s: [
'أقل من ثانية',
'ثانية واحدة',
['ثانيتان', 'ثانيتين'],
'%d ثوان',
'%d ثانية',
'%d ثانية',
],
m: [
'أقل من دقيقة',
'دقيقة واحدة',
['دقيقتان', 'دقيقتين'],
'%d دقائق',
'%d دقيقة',
'%d دقيقة',
],
h: [
'أقل من ساعة',
'ساعة واحدة',
['ساعتان', 'ساعتين'],
'%d ساعات',
'%d ساعة',
'%d ساعة',
],
d: [
'أقل من يوم',
'يوم واحد',
['يومان', 'يومين'],
'%d أيام',
'%d يومًا',
'%d يوم',
],
M: [
'أقل من شهر',
'شهر واحد',
['شهران', 'شهرين'],
'%d أشهر',
'%d شهرا',
'%d شهر',
],
y: [
'أقل من عام',
'عام واحد',
['عامان', 'عامين'],
'%d أعوام',
'%d عامًا',
'%d عام',
],
},
n = function (e) {
return function (n, r, s, o) {
var a = t(n),
l = i[e][t(n)];
return 2 === a && (l = l[r ? 0 : 1]), l.replace(/%d/i, n);
};
},
r = [
'جانفي',
'فيفري',
'مارس',
'أفريل',
'ماي',
'جوان',
'جويلية',
'أوت',
'سبتمبر',
'أكتوبر',
'نوفمبر',
'ديسمبر',
];
e.defineLocale('ar-dz', {
months: r,
monthsShort: r,
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split(
'_'
),
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'D/M/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
meridiemParse: /ص|م/,
isPM: function (e) {
return 'م' === e;
},
meridiem: function (e, t, i) {
return e < 12 ? 'ص' : 'م';
},
calendar: {
sameDay: '[اليوم عند الساعة] LT',
nextDay: '[غدًا عند الساعة] LT',
nextWeek: 'dddd [عند الساعة] LT',
lastDay: '[أمس عند الساعة] LT',
lastWeek: 'dddd [عند الساعة] LT',
sameElse: 'L',
},
relativeTime: {
future: 'بعد %s',
past: 'منذ %s',
s: n('s'),
ss: n('s'),
m: n('m'),
mm: n('m'),
h: n('h'),
hh: n('h'),
d: n('d'),
dd: n('d'),
M: n('M'),
MM: n('M'),
y: n('y'),
yy: n('y'),
},
postformat: function (e) {
return e.replace(/,/g, '،');
},
week: { dow: 0, doy: 4 },
});
})(i(30381));
},
96135: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('ar-kw', {
months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
'_'
),
monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
'_'
),
weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split(
'_'
),
weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[اليوم على الساعة] LT',
nextDay: '[غدا على الساعة] LT',
nextWeek: 'dddd [على الساعة] LT',
lastDay: '[أمس على الساعة] LT',
lastWeek: 'dddd [على الساعة] LT',
sameElse: 'L',
},
relativeTime: {
future: 'في %s',
past: 'منذ %s',
s: 'ثوان',
ss: '%d ثانية',
m: 'دقيقة',
mm: '%d دقائق',
h: 'ساعة',
hh: '%d ساعات',
d: 'يوم',
dd: '%d أيام',
M: 'شهر',
MM: '%d أشهر',
y: 'سنة',
yy: '%d سنوات',
},
week: { dow: 0, doy: 12 },
});
})(i(30381));
},
56440: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '1',
2: '2',
3: '3',
4: '4',
5: '5',
6: '6',
7: '7',
8: '8',
9: '9',
0: '0',
},
i = function (e) {
return 0 === e
? 0
: 1 === e
? 1
: 2 === e
? 2
: e % 100 >= 3 && e % 100 <= 10
? 3
: e % 100 >= 11
? 4
: 5;
},
n = {
s: [
'أقل من ثانية',
'ثانية واحدة',
['ثانيتان', 'ثانيتين'],
'%d ثوان',
'%d ثانية',
'%d ثانية',
],
m: [
'أقل من دقيقة',
'دقيقة واحدة',
['دقيقتان', 'دقيقتين'],
'%d دقائق',
'%d دقيقة',
'%d دقيقة',
],
h: [
'أقل من ساعة',
'ساعة واحدة',
['ساعتان', 'ساعتين'],
'%d ساعات',
'%d ساعة',
'%d ساعة',
],
d: [
'أقل من يوم',
'يوم واحد',
['يومان', 'يومين'],
'%d أيام',
'%d يومًا',
'%d يوم',
],
M: [
'أقل من شهر',
'شهر واحد',
['شهران', 'شهرين'],
'%d أشهر',
'%d شهرا',
'%d شهر',
],
y: [
'أقل من عام',
'عام واحد',
['عامان', 'عامين'],
'%d أعوام',
'%d عامًا',
'%d عام',
],
},
r = function (e) {
return function (t, r, s, o) {
var a = i(t),
l = n[e][i(t)];
return 2 === a && (l = l[r ? 0 : 1]), l.replace(/%d/i, t);
};
},
s = [
'يناير',
'فبراير',
'مارس',
'أبريل',
'مايو',
'يونيو',
'يوليو',
'أغسطس',
'سبتمبر',
'أكتوبر',
'نوفمبر',
'ديسمبر',
];
e.defineLocale('ar-ly', {
months: s,
monthsShort: s,
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split(
'_'
),
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'D/M/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
meridiemParse: /ص|م/,
isPM: function (e) {
return 'م' === e;
},
meridiem: function (e, t, i) {
return e < 12 ? 'ص' : 'م';
},
calendar: {
sameDay: '[اليوم عند الساعة] LT',
nextDay: '[غدًا عند الساعة] LT',
nextWeek: 'dddd [عند الساعة] LT',
lastDay: '[أمس عند الساعة] LT',
lastWeek: 'dddd [عند الساعة] LT',
sameElse: 'L',
},
relativeTime: {
future: 'بعد %s',
past: 'منذ %s',
s: r('s'),
ss: r('s'),
m: r('m'),
mm: r('m'),
h: r('h'),
hh: r('h'),
d: r('d'),
dd: r('d'),
M: r('M'),
MM: r('M'),
y: r('y'),
yy: r('y'),
},
preparse: function (e) {
return e.replace(/،/g, ',');
},
postformat: function (e) {
return e
.replace(/\d/g, function (e) {
return t[e];
})
.replace(/,/g, '،');
},
week: { dow: 6, doy: 12 },
});
})(i(30381));
},
47702: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('ar-ma', {
months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
'_'
),
monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
'_'
),
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split(
'_'
),
weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[اليوم على الساعة] LT',
nextDay: '[غدا على الساعة] LT',
nextWeek: 'dddd [على الساعة] LT',
lastDay: '[أمس على الساعة] LT',
lastWeek: 'dddd [على الساعة] LT',
sameElse: 'L',
},
relativeTime: {
future: 'في %s',
past: 'منذ %s',
s: 'ثوان',
ss: '%d ثانية',
m: 'دقيقة',
mm: '%d دقائق',
h: 'ساعة',
hh: '%d ساعات',
d: 'يوم',
dd: '%d أيام',
M: 'شهر',
MM: '%d أشهر',
y: 'سنة',
yy: '%d سنوات',
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
16040: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '١',
2: '٢',
3: '٣',
4: '٤',
5: '٥',
6: '٦',
7: '٧',
8: '٨',
9: '٩',
0: '٠',
},
i = {
'١': '1',
'٢': '2',
'٣': '3',
'٤': '4',
'٥': '5',
'٦': '6',
'٧': '7',
'٨': '8',
'٩': '9',
'٠': '0',
};
e.defineLocale('ar-sa', {
months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
'_'
),
monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
'_'
),
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split(
'_'
),
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
meridiemParse: /ص|م/,
isPM: function (e) {
return 'م' === e;
},
meridiem: function (e, t, i) {
return e < 12 ? 'ص' : 'م';
},
calendar: {
sameDay: '[اليوم على الساعة] LT',
nextDay: '[غدا على الساعة] LT',
nextWeek: 'dddd [على الساعة] LT',
lastDay: '[أمس على الساعة] LT',
lastWeek: 'dddd [على الساعة] LT',
sameElse: 'L',
},
relativeTime: {
future: 'في %s',
past: 'منذ %s',
s: 'ثوان',
ss: '%d ثانية',
m: 'دقيقة',
mm: '%d دقائق',
h: 'ساعة',
hh: '%d ساعات',
d: 'يوم',
dd: '%d أيام',
M: 'شهر',
MM: '%d أشهر',
y: 'سنة',
yy: '%d سنوات',
},
preparse: function (e) {
return e
.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (e) {
return i[e];
})
.replace(/،/g, ',');
},
postformat: function (e) {
return e
.replace(/\d/g, function (e) {
return t[e];
})
.replace(/,/g, '،');
},
week: { dow: 0, doy: 6 },
});
})(i(30381));
},
37100: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('ar-tn', {
months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
'_'
),
monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
'_'
),
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split(
'_'
),
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[اليوم على الساعة] LT',
nextDay: '[غدا على الساعة] LT',
nextWeek: 'dddd [على الساعة] LT',
lastDay: '[أمس على الساعة] LT',
lastWeek: 'dddd [على الساعة] LT',
sameElse: 'L',
},
relativeTime: {
future: 'في %s',
past: 'منذ %s',
s: 'ثوان',
ss: '%d ثانية',
m: 'دقيقة',
mm: '%d دقائق',
h: 'ساعة',
hh: '%d ساعات',
d: 'يوم',
dd: '%d أيام',
M: 'شهر',
MM: '%d أشهر',
y: 'سنة',
yy: '%d سنوات',
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
30867: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '١',
2: '٢',
3: '٣',
4: '٤',
5: '٥',
6: '٦',
7: '٧',
8: '٨',
9: '٩',
0: '٠',
},
i = {
'١': '1',
'٢': '2',
'٣': '3',
'٤': '4',
'٥': '5',
'٦': '6',
'٧': '7',
'٨': '8',
'٩': '9',
'٠': '0',
},
n = function (e) {
return 0 === e
? 0
: 1 === e
? 1
: 2 === e
? 2
: e % 100 >= 3 && e % 100 <= 10
? 3
: e % 100 >= 11
? 4
: 5;
},
r = {
s: [
'أقل من ثانية',
'ثانية واحدة',
['ثانيتان', 'ثانيتين'],
'%d ثوان',
'%d ثانية',
'%d ثانية',
],
m: [
'أقل من دقيقة',
'دقيقة واحدة',
['دقيقتان', 'دقيقتين'],
'%d دقائق',
'%d دقيقة',
'%d دقيقة',
],
h: [
'أقل من ساعة',
'ساعة واحدة',
['ساعتان', 'ساعتين'],
'%d ساعات',
'%d ساعة',
'%d ساعة',
],
d: [
'أقل من يوم',
'يوم واحد',
['يومان', 'يومين'],
'%d أيام',
'%d يومًا',
'%d يوم',
],
M: [
'أقل من شهر',
'شهر واحد',
['شهران', 'شهرين'],
'%d أشهر',
'%d شهرا',
'%d شهر',
],
y: [
'أقل من عام',
'عام واحد',
['عامان', 'عامين'],
'%d أعوام',
'%d عامًا',
'%d عام',
],
},
s = function (e) {
return function (t, i, s, o) {
var a = n(t),
l = r[e][n(t)];
return 2 === a && (l = l[i ? 0 : 1]), l.replace(/%d/i, t);
};
},
o = [
'يناير',
'فبراير',
'مارس',
'أبريل',
'مايو',
'يونيو',
'يوليو',
'أغسطس',
'سبتمبر',
'أكتوبر',
'نوفمبر',
'ديسمبر',
];
e.defineLocale('ar', {
months: o,
monthsShort: o,
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split(
'_'
),
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'D/M/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
meridiemParse: /ص|م/,
isPM: function (e) {
return 'م' === e;
},
meridiem: function (e, t, i) {
return e < 12 ? 'ص' : 'م';
},
calendar: {
sameDay: '[اليوم عند الساعة] LT',
nextDay: '[غدًا عند الساعة] LT',
nextWeek: 'dddd [عند الساعة] LT',
lastDay: '[أمس عند الساعة] LT',
lastWeek: 'dddd [عند الساعة] LT',
sameElse: 'L',
},
relativeTime: {
future: 'بعد %s',
past: 'منذ %s',
s: s('s'),
ss: s('s'),
m: s('m'),
mm: s('m'),
h: s('h'),
hh: s('h'),
d: s('d'),
dd: s('d'),
M: s('M'),
MM: s('M'),
y: s('y'),
yy: s('y'),
},
preparse: function (e) {
return e
.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (e) {
return i[e];
})
.replace(/،/g, ',');
},
postformat: function (e) {
return e
.replace(/\d/g, function (e) {
return t[e];
})
.replace(/,/g, '،');
},
week: { dow: 6, doy: 12 },
});
})(i(30381));
},
31083: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '-inci',
5: '-inci',
8: '-inci',
70: '-inci',
80: '-inci',
2: '-nci',
7: '-nci',
20: '-nci',
50: '-nci',
3: '-üncü',
4: '-üncü',
100: '-üncü',
6: '-ncı',
9: '-uncu',
10: '-uncu',
30: '-uncu',
60: '-ıncı',
90: '-ıncı',
};
e.defineLocale('az', {
months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
'_'
),
monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split(
'_'
),
weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
'_'
),
weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[bugün saat] LT',
nextDay: '[sabah saat] LT',
nextWeek: '[gələn həftə] dddd [saat] LT',
lastDay: '[dünən] LT',
lastWeek: '[keçən həftə] dddd [saat] LT',
sameElse: 'L',
},
relativeTime: {
future: '%s sonra',
past: '%s əvvəl',
s: 'bir neçə saniyə',
ss: '%d saniyə',
m: 'bir dəqiqə',
mm: '%d dəqiqə',
h: 'bir saat',
hh: '%d saat',
d: 'bir gün',
dd: '%d gün',
M: 'bir ay',
MM: '%d ay',
y: 'bir il',
yy: '%d il',
},
meridiemParse: /gecə|səhər|gündüz|axşam/,
isPM: function (e) {
return /^(gündüz|axşam)$/.test(e);
},
meridiem: function (e, t, i) {
return e < 4
? 'gecə'
: e < 12
? 'səhər'
: e < 17
? 'gündüz'
: 'axşam';
},
dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
ordinal: function (e) {
if (0 === e) return e + '-ıncı';
var i = e % 10;
return e + (t[i] || t[(e % 100) - i] || t[e >= 100 ? 100 : null]);
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
9808: function (e, t, i) {
!(function (e) {
'use strict';
function t(e, t, i) {
return 'm' === i
? t
? 'хвіліна'
: 'хвіліну'
: 'h' === i
? t
? 'гадзіна'
: 'гадзіну'
: e +
' ' +
((n = +e),
(r = {
ss: t ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
mm: t ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
hh: t ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
dd: 'дзень_дні_дзён',
MM: 'месяц_месяцы_месяцаў',
yy: 'год_гады_гадоў',
}[i].split('_')),
n % 10 == 1 && n % 100 != 11
? r[0]
: n % 10 >= 2 &&
n % 10 <= 4 &&
(n % 100 < 10 || n % 100 >= 20)
? r[1]
: r[2]);
var n, r;
}
e.defineLocale('be', {
months: {
format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
'_'
),
standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
'_'
),
},
monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split(
'_'
),
weekdays: {
format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
'_'
),
standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
'_'
),
isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/,
},
weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY г.',
LLL: 'D MMMM YYYY г., HH:mm',
LLLL: 'dddd, D MMMM YYYY г., HH:mm',
},
calendar: {
sameDay: '[Сёння ў] LT',
nextDay: '[Заўтра ў] LT',
lastDay: '[Учора ў] LT',
nextWeek: function () {
return '[У] dddd [ў] LT';
},
lastWeek: function () {
switch (this.day()) {
case 0:
case 3:
case 5:
case 6:
return '[У мінулую] dddd [ў] LT';
case 1:
case 2:
case 4:
return '[У мінулы] dddd [ў] LT';
}
},
sameElse: 'L',
},
relativeTime: {
future: 'праз %s',
past: '%s таму',
s: 'некалькі секунд',
m: t,
mm: t,
h: t,
hh: t,
d: 'дзень',
dd: t,
M: 'месяц',
MM: t,
y: 'год',
yy: t,
},
meridiemParse: /ночы|раніцы|дня|вечара/,
isPM: function (e) {
return /^(дня|вечара)$/.test(e);
},
meridiem: function (e, t, i) {
return e < 4
? 'ночы'
: e < 12
? 'раніцы'
: e < 17
? 'дня'
: 'вечара';
},
dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
ordinal: function (e, t) {
switch (t) {
case 'M':
case 'd':
case 'DDD':
case 'w':
case 'W':
return (e % 10 != 2 && e % 10 != 3) ||
e % 100 == 12 ||
e % 100 == 13
? e + '-ы'
: e + '-і';
case 'D':
return e + '-га';
default:
return e;
}
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
68338: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('bg', {
months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
'_'
),
monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split(
'_'
),
weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
'_'
),
weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'D.MM.YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY H:mm',
LLLL: 'dddd, D MMMM YYYY H:mm',
},
calendar: {
sameDay: '[Днес в] LT',
nextDay: '[Утре в] LT',
nextWeek: 'dddd [в] LT',
lastDay: '[Вчера в] LT',
lastWeek: function () {
switch (this.day()) {
case 0:
case 3:
case 6:
return '[Миналата] dddd [в] LT';
case 1:
case 2:
case 4:
case 5:
return '[Миналия] dddd [в] LT';
}
},
sameElse: 'L',
},
relativeTime: {
future: 'след %s',
past: 'преди %s',
s: 'няколко секунди',
ss: '%d секунди',
m: 'минута',
mm: '%d минути',
h: 'час',
hh: '%d часа',
d: 'ден',
dd: '%d дена',
w: 'седмица',
ww: '%d седмици',
M: 'месец',
MM: '%d месеца',
y: 'година',
yy: '%d години',
},
dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
ordinal: function (e) {
var t = e % 10,
i = e % 100;
return 0 === e
? e + '-ев'
: 0 === i
? e + '-ен'
: i > 10 && i < 20
? e + '-ти'
: 1 === t
? e + '-ви'
: 2 === t
? e + '-ри'
: 7 === t || 8 === t
? e + '-ми'
: e + '-ти';
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
67438: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('bm', {
months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
'_'
),
monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split(
'_'
),
weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'MMMM [tile] D [san] YYYY',
LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
},
calendar: {
sameDay: '[Bi lɛrɛ] LT',
nextDay: '[Sini lɛrɛ] LT',
nextWeek: 'dddd [don lɛrɛ] LT',
lastDay: '[Kunu lɛrɛ] LT',
lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
sameElse: 'L',
},
relativeTime: {
future: '%s kɔnɔ',
past: 'a bɛ %s bɔ',
s: 'sanga dama dama',
ss: 'sekondi %d',
m: 'miniti kelen',
mm: 'miniti %d',
h: 'lɛrɛ kelen',
hh: 'lɛrɛ %d',
d: 'tile kelen',
dd: 'tile %d',
M: 'kalo kelen',
MM: 'kalo %d',
y: 'san kelen',
yy: 'san %d',
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
76225: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '১',
2: '২',
3: '৩',
4: '৪',
5: '৫',
6: '৬',
7: '৭',
8: '৮',
9: '৯',
0: '০',
},
i = {
'১': '1',
'২': '2',
'৩': '3',
'৪': '4',
'৫': '5',
'৬': '6',
'৭': '7',
'৮': '8',
'৯': '9',
'০': '0',
};
e.defineLocale('bn-bd', {
months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
'_'
),
monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
'_'
),
weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
'_'
),
weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
longDateFormat: {
LT: 'A h:mm সময়',
LTS: 'A h:mm:ss সময়',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, A h:mm সময়',
LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
},
calendar: {
sameDay: '[আজ] LT',
nextDay: '[আগামীকাল] LT',
nextWeek: 'dddd, LT',
lastDay: '[গতকাল] LT',
lastWeek: '[গত] dddd, LT',
sameElse: 'L',
},
relativeTime: {
future: '%s পরে',
past: '%s আগে',
s: 'কয়েক সেকেন্ড',
ss: '%d সেকেন্ড',
m: 'এক মিনিট',
mm: '%d মিনিট',
h: 'এক ঘন্টা',
hh: '%d ঘন্টা',
d: 'এক দিন',
dd: '%d দিন',
M: 'এক মাস',
MM: '%d মাস',
y: 'এক বছর',
yy: '%d বছর',
},
preparse: function (e) {
return e.replace(/[১২৩৪৫৬৭৮৯০]/g, function (e) {
return i[e];
});
},
postformat: function (e) {
return e.replace(/\d/g, function (e) {
return t[e];
});
},
meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'রাত' === t
? e < 4
? e
: e + 12
: 'ভোর' === t || 'সকাল' === t
? e
: 'দুপুর' === t
? e >= 3
? e
: e + 12
: 'বিকাল' === t || 'সন্ধ্যা' === t
? e + 12
: void 0
);
},
meridiem: function (e, t, i) {
return e < 4
? 'রাত'
: e < 6
? 'ভোর'
: e < 12
? 'সকাল'
: e < 15
? 'দুপুর'
: e < 18
? 'বিকাল'
: e < 20
? 'সন্ধ্যা'
: 'রাত';
},
week: { dow: 0, doy: 6 },
});
})(i(30381));
},
8905: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '১',
2: '২',
3: '৩',
4: '৪',
5: '৫',
6: '৬',
7: '৭',
8: '৮',
9: '৯',
0: '০',
},
i = {
'১': '1',
'২': '2',
'৩': '3',
'৪': '4',
'৫': '5',
'৬': '6',
'৭': '7',
'৮': '8',
'৯': '9',
'০': '0',
};
e.defineLocale('bn', {
months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
'_'
),
monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
'_'
),
weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
'_'
),
weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
longDateFormat: {
LT: 'A h:mm সময়',
LTS: 'A h:mm:ss সময়',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, A h:mm সময়',
LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
},
calendar: {
sameDay: '[আজ] LT',
nextDay: '[আগামীকাল] LT',
nextWeek: 'dddd, LT',
lastDay: '[গতকাল] LT',
lastWeek: '[গত] dddd, LT',
sameElse: 'L',
},
relativeTime: {
future: '%s পরে',
past: '%s আগে',
s: 'কয়েক সেকেন্ড',
ss: '%d সেকেন্ড',
m: 'এক মিনিট',
mm: '%d মিনিট',
h: 'এক ঘন্টা',
hh: '%d ঘন্টা',
d: 'এক দিন',
dd: '%d দিন',
M: 'এক মাস',
MM: '%d মাস',
y: 'এক বছর',
yy: '%d বছর',
},
preparse: function (e) {
return e.replace(/[১২৩৪৫৬৭৮৯০]/g, function (e) {
return i[e];
});
},
postformat: function (e) {
return e.replace(/\d/g, function (e) {
return t[e];
});
},
meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
('রাত' === t && e >= 4) ||
('দুপুর' === t && e < 5) ||
'বিকাল' === t
? e + 12
: e
);
},
meridiem: function (e, t, i) {
return e < 4
? 'রাত'
: e < 10
? 'সকাল'
: e < 17
? 'দুপুর'
: e < 20
? 'বিকাল'
: 'রাত';
},
week: { dow: 0, doy: 6 },
});
})(i(30381));
},
11560: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '༡',
2: '༢',
3: '༣',
4: '༤',
5: '༥',
6: '༦',
7: '༧',
8: '༨',
9: '༩',
0: '༠',
},
i = {
'༡': '1',
'༢': '2',
'༣': '3',
'༤': '4',
'༥': '5',
'༦': '6',
'༧': '7',
'༨': '8',
'༩': '9',
'༠': '0',
};
e.defineLocale('bo', {
months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(
'_'
),
monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(
'_'
),
monthsShortRegex: /^(ཟླ་\d{1,2})/,
monthsParseExact: !0,
weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(
'_'
),
weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(
'_'
),
weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
longDateFormat: {
LT: 'A h:mm',
LTS: 'A h:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, A h:mm',
LLLL: 'dddd, D MMMM YYYY, A h:mm',
},
calendar: {
sameDay: '[དི་རིང] LT',
nextDay: '[སང་ཉིན] LT',
nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
lastDay: '[ཁ་སང] LT',
lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
sameElse: 'L',
},
relativeTime: {
future: '%s ལ་',
past: '%s སྔན་ལ',
s: 'ལམ་སང',
ss: '%d སྐར་ཆ།',
m: 'སྐར་མ་གཅིག',
mm: '%d སྐར་མ',
h: 'ཆུ་ཚོད་གཅིག',
hh: '%d ཆུ་ཚོད',
d: 'ཉིན་གཅིག',
dd: '%d ཉིན་',
M: 'ཟླ་བ་གཅིག',
MM: '%d ཟླ་བ',
y: 'ལོ་གཅིག',
yy: '%d ལོ',
},
preparse: function (e) {
return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (e) {
return i[e];
});
},
postformat: function (e) {
return e.replace(/\d/g, function (e) {
return t[e];
});
},
meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
('མཚན་མོ' === t && e >= 4) ||
('ཉིན་གུང' === t && e < 5) ||
'དགོང་དག' === t
? e + 12
: e
);
},
meridiem: function (e, t, i) {
return e < 4
? 'མཚན་མོ'
: e < 10
? 'ཞོགས་ཀས'
: e < 17
? 'ཉིན་གུང'
: e < 20
? 'དགོང་དག'
: 'མཚན་མོ';
},
week: { dow: 0, doy: 6 },
});
})(i(30381));
},
1278: function (e, t, i) {
!(function (e) {
'use strict';
function t(e, t, i) {
return (
e +
' ' +
(function (e, t) {
return 2 === t
? (function (e) {
var t = { m: 'v', b: 'v', d: 'z' };
return void 0 === t[e.charAt(0)]
? e
: t[e.charAt(0)] + e.substring(1);
})(e)
: e;
})({ mm: 'munutenn', MM: 'miz', dd: 'devezh' }[i], e)
);
}
function i(e) {
return e > 9 ? i(e % 10) : e;
}
var n = [
/^gen/i,
/^c[ʼ\']hwe/i,
/^meu/i,
/^ebr/i,
/^mae/i,
/^(mez|eve)/i,
/^gou/i,
/^eos/i,
/^gwe/i,
/^her/i,
/^du/i,
/^ker/i,
],
r = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
s = [
/^Su/i,
/^Lu/i,
/^Me([^r]|$)/i,
/^Mer/i,
/^Ya/i,
/^Gw/i,
/^Sa/i,
];
e.defineLocale('br', {
months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(
'_'
),
monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split(
'_'
),
weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
weekdaysParse: s,
fullWeekdaysParse: [
/^sul/i,
/^lun/i,
/^meurzh/i,
/^merc[ʼ\']her/i,
/^yaou/i,
/^gwener/i,
/^sadorn/i,
],
shortWeekdaysParse: [
/^Sul/i,
/^Lun/i,
/^Meu/i,
/^Mer/i,
/^Yao/i,
/^Gwe/i,
/^Sad/i,
],
minWeekdaysParse: s,
monthsRegex: r,
monthsShortRegex: r,
monthsStrictRegex: /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
monthsShortStrictRegex: /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
monthsParse: n,
longMonthsParse: n,
shortMonthsParse: n,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D [a viz] MMMM YYYY',
LLL: 'D [a viz] MMMM YYYY HH:mm',
LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Hiziv da] LT',
nextDay: '[Warcʼhoazh da] LT',
nextWeek: 'dddd [da] LT',
lastDay: '[Decʼh da] LT',
lastWeek: 'dddd [paset da] LT',
sameElse: 'L',
},
relativeTime: {
future: 'a-benn %s',
past: '%s ʼzo',
s: 'un nebeud segondennoù',
ss: '%d eilenn',
m: 'ur vunutenn',
mm: t,
h: 'un eur',
hh: '%d eur',
d: 'un devezh',
dd: t,
M: 'ur miz',
MM: t,
y: 'ur bloaz',
yy: function (e) {
switch (i(e)) {
case 1:
case 3:
case 4:
case 5:
case 9:
return e + ' bloaz';
default:
return e + ' vloaz';
}
},
},
dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
ordinal: function (e) {
return e + (1 === e ? 'añ' : 'vet');
},
week: { dow: 1, doy: 4 },
meridiemParse: /a.m.|g.m./,
isPM: function (e) {
return 'g.m.' === e;
},
meridiem: function (e, t, i) {
return e < 12 ? 'a.m.' : 'g.m.';
},
});
})(i(30381));
},
80622: function (e, t, i) {
!(function (e) {
'use strict';
function t(e, t, i) {
var n = e + ' ';
switch (i) {
case 'ss':
return (
n +
(1 === e
? 'sekunda'
: 2 === e || 3 === e || 4 === e
? 'sekunde'
: 'sekundi')
);
case 'm':
return t ? 'jedna minuta' : 'jedne minute';
case 'mm':
return (
n +
(1 === e
? 'minuta'
: 2 === e || 3 === e || 4 === e
? 'minute'
: 'minuta')
);
case 'h':
return t ? 'jedan sat' : 'jednog sata';
case 'hh':
return (
n +
(1 === e
? 'sat'
: 2 === e || 3 === e || 4 === e
? 'sata'
: 'sati')
);
case 'dd':
return n + (1 === e ? 'dan' : 'dana');
case 'MM':
return (
n +
(1 === e
? 'mjesec'
: 2 === e || 3 === e || 4 === e
? 'mjeseca'
: 'mjeseci')
);
case 'yy':
return (
n +
(1 === e
? 'godina'
: 2 === e || 3 === e || 4 === e
? 'godine'
: 'godina')
);
}
}
e.defineLocale('bs', {
months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
'_'
),
monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
'_'
),
weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D. MMMM YYYY',
LLL: 'D. MMMM YYYY H:mm',
LLLL: 'dddd, D. MMMM YYYY H:mm',
},
calendar: {
sameDay: '[danas u] LT',
nextDay: '[sutra u] LT',
nextWeek: function () {
switch (this.day()) {
case 0:
return '[u] [nedjelju] [u] LT';
case 3:
return '[u] [srijedu] [u] LT';
case 6:
return '[u] [subotu] [u] LT';
case 1:
case 2:
case 4:
case 5:
return '[u] dddd [u] LT';
}
},
lastDay: '[jučer u] LT',
lastWeek: function () {
switch (this.day()) {
case 0:
case 3:
return '[prošlu] dddd [u] LT';
case 6:
return '[prošle] [subote] [u] LT';
case 1:
case 2:
case 4:
case 5:
return '[prošli] dddd [u] LT';
}
},
sameElse: 'L',
},
relativeTime: {
future: 'za %s',
past: 'prije %s',
s: 'par sekundi',
ss: t,
m: t,
mm: t,
h: t,
hh: t,
d: 'dan',
dd: t,
M: 'mjesec',
MM: t,
y: 'godinu',
yy: t,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
2468: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('ca', {
months: {
standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
'_'
),
format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split(
'_'
),
isFormat: /D[oD]?(\s)+MMMM/,
},
monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
'_'
),
weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM [de] YYYY',
ll: 'D MMM YYYY',
LLL: 'D MMMM [de] YYYY [a les] H:mm',
lll: 'D MMM YYYY, H:mm',
LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
llll: 'ddd D MMM YYYY, H:mm',
},
calendar: {
sameDay: function () {
return (
'[avui a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'
);
},
nextDay: function () {
return (
'[demà a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'
);
},
nextWeek: function () {
return (
'dddd [a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'
);
},
lastDay: function () {
return (
'[ahir a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'
);
},
lastWeek: function () {
return (
'[el] dddd [passat a ' +
(1 !== this.hours() ? 'les' : 'la') +
'] LT'
);
},
sameElse: 'L',
},
relativeTime: {
future: "d'aquí %s",
past: 'fa %s',
s: 'uns segons',
ss: '%d segons',
m: 'un minut',
mm: '%d minuts',
h: 'una hora',
hh: '%d hores',
d: 'un dia',
dd: '%d dies',
M: 'un mes',
MM: '%d mesos',
y: 'un any',
yy: '%d anys',
},
dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
ordinal: function (e, t) {
var i =
1 === e
? 'r'
: 2 === e
? 'n'
: 3 === e
? 'r'
: 4 === e
? 't'
: 'è';
return ('w' !== t && 'W' !== t) || (i = 'a'), e + i;
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
5822: function (e, t, i) {
!(function (e) {
'use strict';
var t = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
'_'
),
i = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
n = [
/^led/i,
/^úno/i,
/^bře/i,
/^dub/i,
/^kvě/i,
/^(čvn|červen$|června)/i,
/^(čvc|červenec|července)/i,
/^srp/i,
/^zář/i,
/^říj/i,
/^lis/i,
/^pro/i,
],
r = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
function s(e) {
return e > 1 && e < 5 && 1 != ~~(e / 10);
}
function o(e, t, i, n) {
var r = e + ' ';
switch (i) {
case 's':
return t || n ? 'pár sekund' : 'pár sekundami';
case 'ss':
return t || n
? r + (s(e) ? 'sekundy' : 'sekund')
: r + 'sekundami';
case 'm':
return t ? 'minuta' : n ? 'minutu' : 'minutou';
case 'mm':
return t || n
? r + (s(e) ? 'minuty' : 'minut')
: r + 'minutami';
case 'h':
return t ? 'hodina' : n ? 'hodinu' : 'hodinou';
case 'hh':
return t || n
? r + (s(e) ? 'hodiny' : 'hodin')
: r + 'hodinami';
case 'd':
return t || n ? 'den' : 'dnem';
case 'dd':
return t || n ? r + (s(e) ? 'dny' : 'dní') : r + 'dny';
case 'M':
return t || n ? 'měsíc' : 'měsícem';
case 'MM':
return t || n ? r + (s(e) ? 'měsíce' : 'měsíců') : r + 'měsíci';
case 'y':
return t || n ? 'rok' : 'rokem';
case 'yy':
return t || n ? r + (s(e) ? 'roky' : 'let') : r + 'lety';
}
}
e.defineLocale('cs', {
months: t,
monthsShort: i,
monthsRegex: r,
monthsShortRegex: r,
monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
monthsParse: n,
longMonthsParse: n,
shortMonthsParse: n,
weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split(
'_'
),
weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D. MMMM YYYY',
LLL: 'D. MMMM YYYY H:mm',
LLLL: 'dddd D. MMMM YYYY H:mm',
l: 'D. M. YYYY',
},
calendar: {
sameDay: '[dnes v] LT',
nextDay: '[zítra v] LT',
nextWeek: function () {
switch (this.day()) {
case 0:
return '[v neděli v] LT';
case 1:
case 2:
return '[v] dddd [v] LT';
case 3:
return '[ve středu v] LT';
case 4:
return '[ve čtvrtek v] LT';
case 5:
return '[v pátek v] LT';
case 6:
return '[v sobotu v] LT';
}
},
lastDay: '[včera v] LT',
lastWeek: function () {
switch (this.day()) {
case 0:
return '[minulou neděli v] LT';
case 1:
case 2:
return '[minulé] dddd [v] LT';
case 3:
return '[minulou středu v] LT';
case 4:
case 5:
return '[minulý] dddd [v] LT';
case 6:
return '[minulou sobotu v] LT';
}
},
sameElse: 'L',
},
relativeTime: {
future: 'za %s',
past: 'před %s',
s: o,
ss: o,
m: o,
mm: o,
h: o,
hh: o,
d: o,
dd: o,
M: o,
MM: o,
y: o,
yy: o,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
50877: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('cv', {
months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
'_'
),
monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split(
'_'
),
weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
'_'
),
weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD-MM-YYYY',
LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
},
calendar: {
sameDay: '[Паян] LT [сехетре]',
nextDay: '[Ыран] LT [сехетре]',
lastDay: '[Ӗнер] LT [сехетре]',
nextWeek: '[Ҫитес] dddd LT [сехетре]',
lastWeek: '[Иртнӗ] dddd LT [сехетре]',
sameElse: 'L',
},
relativeTime: {
future: function (e) {
return (
e +
(/сехет$/i.exec(e) ? 'рен' : /ҫул$/i.exec(e) ? 'тан' : 'ран')
);
},
past: '%s каялла',
s: 'пӗр-ик ҫеккунт',
ss: '%d ҫеккунт',
m: 'пӗр минут',
mm: '%d минут',
h: 'пӗр сехет',
hh: '%d сехет',
d: 'пӗр кун',
dd: '%d кун',
M: 'пӗр уйӑх',
MM: '%d уйӑх',
y: 'пӗр ҫул',
yy: '%d ҫул',
},
dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
ordinal: '%d-мӗш',
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
47373: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('cy', {
months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
'_'
),
monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
'_'
),
weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
'_'
),
weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Heddiw am] LT',
nextDay: '[Yfory am] LT',
nextWeek: 'dddd [am] LT',
lastDay: '[Ddoe am] LT',
lastWeek: 'dddd [diwethaf am] LT',
sameElse: 'L',
},
relativeTime: {
future: 'mewn %s',
past: '%s yn ôl',
s: 'ychydig eiliadau',
ss: '%d eiliad',
m: 'munud',
mm: '%d munud',
h: 'awr',
hh: '%d awr',
d: 'diwrnod',
dd: '%d diwrnod',
M: 'mis',
MM: '%d mis',
y: 'blwyddyn',
yy: '%d flynedd',
},
dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
ordinal: function (e) {
var t = '';
return (
e > 20
? (t =
40 === e || 50 === e || 60 === e || 80 === e || 100 === e
? 'fed'
: 'ain')
: e > 0 &&
(t = [
'',
'af',
'il',
'ydd',
'ydd',
'ed',
'ed',
'ed',
'fed',
'fed',
'fed',
'eg',
'fed',
'eg',
'eg',
'fed',
'eg',
'eg',
'fed',
'eg',
'fed',
][e]),
e + t
);
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
24780: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('da', {
months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(
'_'
),
monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split(
'_'
),
weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split(
'_'
),
weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D. MMMM YYYY',
LLL: 'D. MMMM YYYY HH:mm',
LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',
},
calendar: {
sameDay: '[i dag kl.] LT',
nextDay: '[i morgen kl.] LT',
nextWeek: 'på dddd [kl.] LT',
lastDay: '[i går kl.] LT',
lastWeek: '[i] dddd[s kl.] LT',
sameElse: 'L',
},
relativeTime: {
future: 'om %s',
past: '%s siden',
s: 'få sekunder',
ss: '%d sekunder',
m: 'et minut',
mm: '%d minutter',
h: 'en time',
hh: '%d timer',
d: 'en dag',
dd: '%d dage',
M: 'en måned',
MM: '%d måneder',
y: 'et år',
yy: '%d år',
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
60217: function (e, t, i) {
!(function (e) {
'use strict';
function t(e, t, i, n) {
var r = {
m: ['eine Minute', 'einer Minute'],
h: ['eine Stunde', 'einer Stunde'],
d: ['ein Tag', 'einem Tag'],
dd: [e + ' Tage', e + ' Tagen'],
w: ['eine Woche', 'einer Woche'],
M: ['ein Monat', 'einem Monat'],
MM: [e + ' Monate', e + ' Monaten'],
y: ['ein Jahr', 'einem Jahr'],
yy: [e + ' Jahre', e + ' Jahren'],
};
return t ? r[i][0] : r[i][1];
}
e.defineLocale('de-at', {
months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
'_'
),
monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
'_'
),
weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D. MMMM YYYY',
LLL: 'D. MMMM YYYY HH:mm',
LLLL: 'dddd, D. MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[heute um] LT [Uhr]',
sameElse: 'L',
nextDay: '[morgen um] LT [Uhr]',
nextWeek: 'dddd [um] LT [Uhr]',
lastDay: '[gestern um] LT [Uhr]',
lastWeek: '[letzten] dddd [um] LT [Uhr]',
},
relativeTime: {
future: 'in %s',
past: 'vor %s',
s: 'ein paar Sekunden',
ss: '%d Sekunden',
m: t,
mm: '%d Minuten',
h: t,
hh: '%d Stunden',
d: t,
dd: t,
w: t,
ww: '%d Wochen',
M: t,
MM: t,
y: t,
yy: t,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
60894: function (e, t, i) {
!(function (e) {
'use strict';
function t(e, t, i, n) {
var r = {
m: ['eine Minute', 'einer Minute'],
h: ['eine Stunde', 'einer Stunde'],
d: ['ein Tag', 'einem Tag'],
dd: [e + ' Tage', e + ' Tagen'],
w: ['eine Woche', 'einer Woche'],
M: ['ein Monat', 'einem Monat'],
MM: [e + ' Monate', e + ' Monaten'],
y: ['ein Jahr', 'einem Jahr'],
yy: [e + ' Jahre', e + ' Jahren'],
};
return t ? r[i][0] : r[i][1];
}
e.defineLocale('de-ch', {
months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
'_'
),
monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
'_'
),
weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D. MMMM YYYY',
LLL: 'D. MMMM YYYY HH:mm',
LLLL: 'dddd, D. MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[heute um] LT [Uhr]',
sameElse: 'L',
nextDay: '[morgen um] LT [Uhr]',
nextWeek: 'dddd [um] LT [Uhr]',
lastDay: '[gestern um] LT [Uhr]',
lastWeek: '[letzten] dddd [um] LT [Uhr]',
},
relativeTime: {
future: 'in %s',
past: 'vor %s',
s: 'ein paar Sekunden',
ss: '%d Sekunden',
m: t,
mm: '%d Minuten',
h: t,
hh: '%d Stunden',
d: t,
dd: t,
w: t,
ww: '%d Wochen',
M: t,
MM: t,
y: t,
yy: t,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
59740: function (e, t, i) {
!(function (e) {
'use strict';
function t(e, t, i, n) {
var r = {
m: ['eine Minute', 'einer Minute'],
h: ['eine Stunde', 'einer Stunde'],
d: ['ein Tag', 'einem Tag'],
dd: [e + ' Tage', e + ' Tagen'],
w: ['eine Woche', 'einer Woche'],
M: ['ein Monat', 'einem Monat'],
MM: [e + ' Monate', e + ' Monaten'],
y: ['ein Jahr', 'einem Jahr'],
yy: [e + ' Jahre', e + ' Jahren'],
};
return t ? r[i][0] : r[i][1];
}
e.defineLocale('de', {
months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
'_'
),
monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
'_'
),
weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D. MMMM YYYY',
LLL: 'D. MMMM YYYY HH:mm',
LLLL: 'dddd, D. MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[heute um] LT [Uhr]',
sameElse: 'L',
nextDay: '[morgen um] LT [Uhr]',
nextWeek: 'dddd [um] LT [Uhr]',
lastDay: '[gestern um] LT [Uhr]',
lastWeek: '[letzten] dddd [um] LT [Uhr]',
},
relativeTime: {
future: 'in %s',
past: 'vor %s',
s: 'ein paar Sekunden',
ss: '%d Sekunden',
m: t,
mm: '%d Minuten',
h: t,
hh: '%d Stunden',
d: t,
dd: t,
w: t,
ww: '%d Wochen',
M: t,
MM: t,
y: t,
yy: t,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
5300: function (e, t, i) {
!(function (e) {
'use strict';
var t = [
'ޖެނުއަރީ',
'ފެބްރުއަރީ',
'މާރިޗު',
'އޭޕްރީލު',
'މޭ',
'ޖޫން',
'ޖުލައި',
'އޯގަސްޓު',
'ސެޕްޓެމްބަރު',
'އޮކްޓޯބަރު',
'ނޮވެމްބަރު',
'ޑިސެމްބަރު',
],
i = [
'އާދިއްތަ',
'ހޯމަ',
'އަންގާރަ',
'ބުދަ',
'ބުރާސްފަތި',
'ހުކުރު',
'ހޮނިހިރު',
];
e.defineLocale('dv', {
months: t,
monthsShort: t,
weekdays: i,
weekdaysShort: i,
weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'D/M/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
meridiemParse: /މކ|މފ/,
isPM: function (e) {
return 'މފ' === e;
},
meridiem: function (e, t, i) {
return e < 12 ? 'މކ' : 'މފ';
},
calendar: {
sameDay: '[މިއަދު] LT',
nextDay: '[މާދަމާ] LT',
nextWeek: 'dddd LT',
lastDay: '[އިއްޔެ] LT',
lastWeek: '[ފާއިތުވި] dddd LT',
sameElse: 'L',
},
relativeTime: {
future: 'ތެރޭގައި %s',
past: 'ކުރިން %s',
s: 'ސިކުންތުކޮޅެއް',
ss: 'd% ސިކުންތު',
m: 'މިނިޓެއް',
mm: 'މިނިޓު %d',
h: 'ގަޑިއިރެއް',
hh: 'ގަޑިއިރު %d',
d: 'ދުވަހެއް',
dd: 'ދުވަސް %d',
M: 'މަހެއް',
MM: 'މަސް %d',
y: 'އަހަރެއް',
yy: 'އަހަރު %d',
},
preparse: function (e) {
return e.replace(/،/g, ',');
},
postformat: function (e) {
return e.replace(/,/g, '،');
},
week: { dow: 7, doy: 12 },
});
})(i(30381));
},
50837: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('el', {
monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(
'_'
),
monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(
'_'
),
months: function (e, t) {
return e
? 'string' == typeof t &&
/D/.test(t.substring(0, t.indexOf('MMMM')))
? this._monthsGenitiveEl[e.month()]
: this._monthsNominativeEl[e.month()]
: this._monthsNominativeEl;
},
monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split(
'_'
),
weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(
'_'
),
weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
meridiem: function (e, t, i) {
return e > 11 ? (i ? 'μμ' : 'ΜΜ') : i ? 'πμ' : 'ΠΜ';
},
isPM: function (e) {
return 'μ' === (e + '').toLowerCase()[0];
},
meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
longDateFormat: {
LT: 'h:mm A',
LTS: 'h:mm:ss A',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY h:mm A',
LLLL: 'dddd, D MMMM YYYY h:mm A',
},
calendarEl: {
sameDay: '[Σήμερα {}] LT',
nextDay: '[Αύριο {}] LT',
nextWeek: 'dddd [{}] LT',
lastDay: '[Χθες {}] LT',
lastWeek: function () {
switch (this.day()) {
case 6:
return '[το προηγούμενο] dddd [{}] LT';
default:
return '[την προηγούμενη] dddd [{}] LT';
}
},
sameElse: 'L',
},
calendar: function (e, t) {
var i,
n = this._calendarEl[e],
r = t && t.hours();
return (
(i = n),
(('undefined' != typeof Function && i instanceof Function) ||
'[object Function]' === Object.prototype.toString.call(i)) &&
(n = n.apply(t)),
n.replace('{}', r % 12 == 1 ? 'στη' : 'στις')
);
},
relativeTime: {
future: 'σε %s',
past: '%s πριν',
s: 'λίγα δευτερόλεπτα',
ss: '%d δευτερόλεπτα',
m: 'ένα λεπτό',
mm: '%d λεπτά',
h: 'μία ώρα',
hh: '%d ώρες',
d: 'μία μέρα',
dd: '%d μέρες',
M: 'ένας μήνας',
MM: '%d μήνες',
y: 'ένας χρόνος',
yy: '%d χρόνια',
},
dayOfMonthOrdinalParse: /\d{1,2}η/,
ordinal: '%dη',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
78348: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('en-au', {
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
'_'
),
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
'_'
),
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
'_'
),
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
longDateFormat: {
LT: 'h:mm A',
LTS: 'h:mm:ss A',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY h:mm A',
LLLL: 'dddd, D MMMM YYYY h:mm A',
},
calendar: {
sameDay: '[Today at] LT',
nextDay: '[Tomorrow at] LT',
nextWeek: 'dddd [at] LT',
lastDay: '[Yesterday at] LT',
lastWeek: '[Last] dddd [at] LT',
sameElse: 'L',
},
relativeTime: {
future: 'in %s',
past: '%s ago',
s: 'a few seconds',
ss: '%d seconds',
m: 'a minute',
mm: '%d minutes',
h: 'an hour',
hh: '%d hours',
d: 'a day',
dd: '%d days',
M: 'a month',
MM: '%d months',
y: 'a year',
yy: '%d years',
},
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
ordinal: function (e) {
var t = e % 10;
return (
e +
(1 == ~~((e % 100) / 10)
? 'th'
: 1 === t
? 'st'
: 2 === t
? 'nd'
: 3 === t
? 'rd'
: 'th')
);
},
week: { dow: 0, doy: 4 },
});
})(i(30381));
},
77925: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('en-ca', {
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
'_'
),
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
'_'
),
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
'_'
),
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
longDateFormat: {
LT: 'h:mm A',
LTS: 'h:mm:ss A',
L: 'YYYY-MM-DD',
LL: 'MMMM D, YYYY',
LLL: 'MMMM D, YYYY h:mm A',
LLLL: 'dddd, MMMM D, YYYY h:mm A',
},
calendar: {
sameDay: '[Today at] LT',
nextDay: '[Tomorrow at] LT',
nextWeek: 'dddd [at] LT',
lastDay: '[Yesterday at] LT',
lastWeek: '[Last] dddd [at] LT',
sameElse: 'L',
},
relativeTime: {
future: 'in %s',
past: '%s ago',
s: 'a few seconds',
ss: '%d seconds',
m: 'a minute',
mm: '%d minutes',
h: 'an hour',
hh: '%d hours',
d: 'a day',
dd: '%d days',
M: 'a month',
MM: '%d months',
y: 'a year',
yy: '%d years',
},
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
ordinal: function (e) {
var t = e % 10;
return (
e +
(1 == ~~((e % 100) / 10)
? 'th'
: 1 === t
? 'st'
: 2 === t
? 'nd'
: 3 === t
? 'rd'
: 'th')
);
},
});
})(i(30381));
},
22243: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('en-gb', {
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
'_'
),
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
'_'
),
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
'_'
),
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Today at] LT',
nextDay: '[Tomorrow at] LT',
nextWeek: 'dddd [at] LT',
lastDay: '[Yesterday at] LT',
lastWeek: '[Last] dddd [at] LT',
sameElse: 'L',
},
relativeTime: {
future: 'in %s',
past: '%s ago',
s: 'a few seconds',
ss: '%d seconds',
m: 'a minute',
mm: '%d minutes',
h: 'an hour',
hh: '%d hours',
d: 'a day',
dd: '%d days',
M: 'a month',
MM: '%d months',
y: 'a year',
yy: '%d years',
},
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
ordinal: function (e) {
var t = e % 10;
return (
e +
(1 == ~~((e % 100) / 10)
? 'th'
: 1 === t
? 'st'
: 2 === t
? 'nd'
: 3 === t
? 'rd'
: 'th')
);
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
46436: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('en-ie', {
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
'_'
),
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
'_'
),
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
'_'
),
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Today at] LT',
nextDay: '[Tomorrow at] LT',
nextWeek: 'dddd [at] LT',
lastDay: '[Yesterday at] LT',
lastWeek: '[Last] dddd [at] LT',
sameElse: 'L',
},
relativeTime: {
future: 'in %s',
past: '%s ago',
s: 'a few seconds',
ss: '%d seconds',
m: 'a minute',
mm: '%d minutes',
h: 'an hour',
hh: '%d hours',
d: 'a day',
dd: '%d days',
M: 'a month',
MM: '%d months',
y: 'a year',
yy: '%d years',
},
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
ordinal: function (e) {
var t = e % 10;
return (
e +
(1 == ~~((e % 100) / 10)
? 'th'
: 1 === t
? 'st'
: 2 === t
? 'nd'
: 3 === t
? 'rd'
: 'th')
);
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
47207: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('en-il', {
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
'_'
),
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
'_'
),
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
'_'
),
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Today at] LT',
nextDay: '[Tomorrow at] LT',
nextWeek: 'dddd [at] LT',
lastDay: '[Yesterday at] LT',
lastWeek: '[Last] dddd [at] LT',
sameElse: 'L',
},
relativeTime: {
future: 'in %s',
past: '%s ago',
s: 'a few seconds',
ss: '%d seconds',
m: 'a minute',
mm: '%d minutes',
h: 'an hour',
hh: '%d hours',
d: 'a day',
dd: '%d days',
M: 'a month',
MM: '%d months',
y: 'a year',
yy: '%d years',
},
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
ordinal: function (e) {
var t = e % 10;
return (
e +
(1 == ~~((e % 100) / 10)
? 'th'
: 1 === t
? 'st'
: 2 === t
? 'nd'
: 3 === t
? 'rd'
: 'th')
);
},
});
})(i(30381));
},
44175: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('en-in', {
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
'_'
),
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
'_'
),
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
'_'
),
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
longDateFormat: {
LT: 'h:mm A',
LTS: 'h:mm:ss A',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY h:mm A',
LLLL: 'dddd, D MMMM YYYY h:mm A',
},
calendar: {
sameDay: '[Today at] LT',
nextDay: '[Tomorrow at] LT',
nextWeek: 'dddd [at] LT',
lastDay: '[Yesterday at] LT',
lastWeek: '[Last] dddd [at] LT',
sameElse: 'L',
},
relativeTime: {
future: 'in %s',
past: '%s ago',
s: 'a few seconds',
ss: '%d seconds',
m: 'a minute',
mm: '%d minutes',
h: 'an hour',
hh: '%d hours',
d: 'a day',
dd: '%d days',
M: 'a month',
MM: '%d months',
y: 'a year',
yy: '%d years',
},
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
ordinal: function (e) {
var t = e % 10;
return (
e +
(1 == ~~((e % 100) / 10)
? 'th'
: 1 === t
? 'st'
: 2 === t
? 'nd'
: 3 === t
? 'rd'
: 'th')
);
},
week: { dow: 0, doy: 6 },
});
})(i(30381));
},
76319: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('en-nz', {
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
'_'
),
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
'_'
),
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
'_'
),
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
longDateFormat: {
LT: 'h:mm A',
LTS: 'h:mm:ss A',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY h:mm A',
LLLL: 'dddd, D MMMM YYYY h:mm A',
},
calendar: {
sameDay: '[Today at] LT',
nextDay: '[Tomorrow at] LT',
nextWeek: 'dddd [at] LT',
lastDay: '[Yesterday at] LT',
lastWeek: '[Last] dddd [at] LT',
sameElse: 'L',
},
relativeTime: {
future: 'in %s',
past: '%s ago',
s: 'a few seconds',
ss: '%d seconds',
m: 'a minute',
mm: '%d minutes',
h: 'an hour',
hh: '%d hours',
d: 'a day',
dd: '%d days',
M: 'a month',
MM: '%d months',
y: 'a year',
yy: '%d years',
},
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
ordinal: function (e) {
var t = e % 10;
return (
e +
(1 == ~~((e % 100) / 10)
? 'th'
: 1 === t
? 'st'
: 2 === t
? 'nd'
: 3 === t
? 'rd'
: 'th')
);
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
31662: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('en-sg', {
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
'_'
),
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
'_'
),
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
'_'
),
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Today at] LT',
nextDay: '[Tomorrow at] LT',
nextWeek: 'dddd [at] LT',
lastDay: '[Yesterday at] LT',
lastWeek: '[Last] dddd [at] LT',
sameElse: 'L',
},
relativeTime: {
future: 'in %s',
past: '%s ago',
s: 'a few seconds',
ss: '%d seconds',
m: 'a minute',
mm: '%d minutes',
h: 'an hour',
hh: '%d hours',
d: 'a day',
dd: '%d days',
M: 'a month',
MM: '%d months',
y: 'a year',
yy: '%d years',
},
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
ordinal: function (e) {
var t = e % 10;
return (
e +
(1 == ~~((e % 100) / 10)
? 'th'
: 1 === t
? 'st'
: 2 === t
? 'nd'
: 3 === t
? 'rd'
: 'th')
);
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
92915: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('eo', {
months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(
'_'
),
monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split(
'_'
),
weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split(
'_'
),
weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'YYYY-MM-DD',
LL: '[la] D[-an de] MMMM, YYYY',
LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',
},
meridiemParse: /[ap]\.t\.m/i,
isPM: function (e) {
return 'p' === e.charAt(0).toLowerCase();
},
meridiem: function (e, t, i) {
return e > 11
? i
? 'p.t.m.'
: 'P.T.M.'
: i
? 'a.t.m.'
: 'A.T.M.';
},
calendar: {
sameDay: '[Hodiaŭ je] LT',
nextDay: '[Morgaŭ je] LT',
nextWeek: 'dddd[n je] LT',
lastDay: '[Hieraŭ je] LT',
lastWeek: '[pasintan] dddd[n je] LT',
sameElse: 'L',
},
relativeTime: {
future: 'post %s',
past: 'antaŭ %s',
s: 'kelkaj sekundoj',
ss: '%d sekundoj',
m: 'unu minuto',
mm: '%d minutoj',
h: 'unu horo',
hh: '%d horoj',
d: 'unu tago',
dd: '%d tagoj',
M: 'unu monato',
MM: '%d monatoj',
y: 'unu jaro',
yy: '%d jaroj',
},
dayOfMonthOrdinalParse: /\d{1,2}a/,
ordinal: '%da',
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
55251: function (e, t, i) {
!(function (e) {
'use strict';
var t = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
'_'
),
i = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
n = [
/^ene/i,
/^feb/i,
/^mar/i,
/^abr/i,
/^may/i,
/^jun/i,
/^jul/i,
/^ago/i,
/^sep/i,
/^oct/i,
/^nov/i,
/^dic/i,
],
r = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
e.defineLocale('es-do', {
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
'_'
),
monthsShort: function (e, n) {
return e ? (/-MMM-/.test(n) ? i[e.month()] : t[e.month()]) : t;
},
monthsRegex: r,
monthsShortRegex: r,
monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
monthsParse: n,
longMonthsParse: n,
shortMonthsParse: n,
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split(
'_'
),
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'h:mm A',
LTS: 'h:mm:ss A',
L: 'DD/MM/YYYY',
LL: 'D [de] MMMM [de] YYYY',
LLL: 'D [de] MMMM [de] YYYY h:mm A',
LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
},
calendar: {
sameDay: function () {
return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT';
},
nextDay: function () {
return (
'[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT'
);
},
nextWeek: function () {
return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT';
},
lastDay: function () {
return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT';
},
lastWeek: function () {
return (
'[el] dddd [pasado a la' +
(1 !== this.hours() ? 's' : '') +
'] LT'
);
},
sameElse: 'L',
},
relativeTime: {
future: 'en %s',
past: 'hace %s',
s: 'unos segundos',
ss: '%d segundos',
m: 'un minuto',
mm: '%d minutos',
h: 'una hora',
hh: '%d horas',
d: 'un día',
dd: '%d días',
w: 'una semana',
ww: '%d semanas',
M: 'un mes',
MM: '%d meses',
y: 'un año',
yy: '%d años',
},
dayOfMonthOrdinalParse: /\d{1,2}º/,
ordinal: '%dº',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
96112: function (e, t, i) {
!(function (e) {
'use strict';
var t = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
'_'
),
i = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
n = [
/^ene/i,
/^feb/i,
/^mar/i,
/^abr/i,
/^may/i,
/^jun/i,
/^jul/i,
/^ago/i,
/^sep/i,
/^oct/i,
/^nov/i,
/^dic/i,
],
r = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
e.defineLocale('es-mx', {
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
'_'
),
monthsShort: function (e, n) {
return e ? (/-MMM-/.test(n) ? i[e.month()] : t[e.month()]) : t;
},
monthsRegex: r,
monthsShortRegex: r,
monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
monthsParse: n,
longMonthsParse: n,
shortMonthsParse: n,
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split(
'_'
),
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D [de] MMMM [de] YYYY',
LLL: 'D [de] MMMM [de] YYYY H:mm',
LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
},
calendar: {
sameDay: function () {
return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT';
},
nextDay: function () {
return (
'[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT'
);
},
nextWeek: function () {
return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT';
},
lastDay: function () {
return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT';
},
lastWeek: function () {
return (
'[el] dddd [pasado a la' +
(1 !== this.hours() ? 's' : '') +
'] LT'
);
},
sameElse: 'L',
},
relativeTime: {
future: 'en %s',
past: 'hace %s',
s: 'unos segundos',
ss: '%d segundos',
m: 'un minuto',
mm: '%d minutos',
h: 'una hora',
hh: '%d horas',
d: 'un día',
dd: '%d días',
w: 'una semana',
ww: '%d semanas',
M: 'un mes',
MM: '%d meses',
y: 'un año',
yy: '%d años',
},
dayOfMonthOrdinalParse: /\d{1,2}º/,
ordinal: '%dº',
week: { dow: 0, doy: 4 },
invalidDate: 'Fecha inválida',
});
})(i(30381));
},
71146: function (e, t, i) {
!(function (e) {
'use strict';
var t = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
'_'
),
i = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
n = [
/^ene/i,
/^feb/i,
/^mar/i,
/^abr/i,
/^may/i,
/^jun/i,
/^jul/i,
/^ago/i,
/^sep/i,
/^oct/i,
/^nov/i,
/^dic/i,
],
r = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
e.defineLocale('es-us', {
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
'_'
),
monthsShort: function (e, n) {
return e ? (/-MMM-/.test(n) ? i[e.month()] : t[e.month()]) : t;
},
monthsRegex: r,
monthsShortRegex: r,
monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
monthsParse: n,
longMonthsParse: n,
shortMonthsParse: n,
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split(
'_'
),
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'h:mm A',
LTS: 'h:mm:ss A',
L: 'MM/DD/YYYY',
LL: 'D [de] MMMM [de] YYYY',
LLL: 'D [de] MMMM [de] YYYY h:mm A',
LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
},
calendar: {
sameDay: function () {
return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT';
},
nextDay: function () {
return (
'[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT'
);
},
nextWeek: function () {
return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT';
},
lastDay: function () {
return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT';
},
lastWeek: function () {
return (
'[el] dddd [pasado a la' +
(1 !== this.hours() ? 's' : '') +
'] LT'
);
},
sameElse: 'L',
},
relativeTime: {
future: 'en %s',
past: 'hace %s',
s: 'unos segundos',
ss: '%d segundos',
m: 'un minuto',
mm: '%d minutos',
h: 'una hora',
hh: '%d horas',
d: 'un día',
dd: '%d días',
w: 'una semana',
ww: '%d semanas',
M: 'un mes',
MM: '%d meses',
y: 'un año',
yy: '%d años',
},
dayOfMonthOrdinalParse: /\d{1,2}º/,
ordinal: '%dº',
week: { dow: 0, doy: 6 },
});
})(i(30381));
},
55655: function (e, t, i) {
!(function (e) {
'use strict';
var t = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
'_'
),
i = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
n = [
/^ene/i,
/^feb/i,
/^mar/i,
/^abr/i,
/^may/i,
/^jun/i,
/^jul/i,
/^ago/i,
/^sep/i,
/^oct/i,
/^nov/i,
/^dic/i,
],
r = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
e.defineLocale('es', {
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
'_'
),
monthsShort: function (e, n) {
return e ? (/-MMM-/.test(n) ? i[e.month()] : t[e.month()]) : t;
},
monthsRegex: r,
monthsShortRegex: r,
monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
monthsParse: n,
longMonthsParse: n,
shortMonthsParse: n,
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split(
'_'
),
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D [de] MMMM [de] YYYY',
LLL: 'D [de] MMMM [de] YYYY H:mm',
LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
},
calendar: {
sameDay: function () {
return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT';
},
nextDay: function () {
return (
'[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT'
);
},
nextWeek: function () {
return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT';
},
lastDay: function () {
return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT';
},
lastWeek: function () {
return (
'[el] dddd [pasado a la' +
(1 !== this.hours() ? 's' : '') +
'] LT'
);
},
sameElse: 'L',
},
relativeTime: {
future: 'en %s',
past: 'hace %s',
s: 'unos segundos',
ss: '%d segundos',
m: 'un minuto',
mm: '%d minutos',
h: 'una hora',
hh: '%d horas',
d: 'un día',
dd: '%d días',
w: 'una semana',
ww: '%d semanas',
M: 'un mes',
MM: '%d meses',
y: 'un año',
yy: '%d años',
},
dayOfMonthOrdinalParse: /\d{1,2}º/,
ordinal: '%dº',
week: { dow: 1, doy: 4 },
invalidDate: 'Fecha inválida',
});
})(i(30381));
},
5603: function (e, t, i) {
!(function (e) {
'use strict';
function t(e, t, i, n) {
var r = {
s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
ss: [e + 'sekundi', e + 'sekundit'],
m: ['ühe minuti', 'üks minut'],
mm: [e + ' minuti', e + ' minutit'],
h: ['ühe tunni', 'tund aega', 'üks tund'],
hh: [e + ' tunni', e + ' tundi'],
d: ['ühe päeva', 'üks päev'],
M: ['kuu aja', 'kuu aega', 'üks kuu'],
MM: [e + ' kuu', e + ' kuud'],
y: ['ühe aasta', 'aasta', 'üks aasta'],
yy: [e + ' aasta', e + ' aastat'],
};
return t ? (r[i][2] ? r[i][2] : r[i][1]) : n ? r[i][0] : r[i][1];
}
e.defineLocale('et', {
months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(
'_'
),
monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split(
'_'
),
weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(
'_'
),
weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D. MMMM YYYY',
LLL: 'D. MMMM YYYY H:mm',
LLLL: 'dddd, D. MMMM YYYY H:mm',
},
calendar: {
sameDay: '[Täna,] LT',
nextDay: '[Homme,] LT',
nextWeek: '[Järgmine] dddd LT',
lastDay: '[Eile,] LT',
lastWeek: '[Eelmine] dddd LT',
sameElse: 'L',
},
relativeTime: {
future: '%s pärast',
past: '%s tagasi',
s: t,
ss: t,
m: t,
mm: t,
h: t,
hh: t,
d: t,
dd: '%d päeva',
M: t,
MM: t,
y: t,
yy: t,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
77763: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('eu', {
months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(
'_'
),
monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(
'_'
),
weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'YYYY-MM-DD',
LL: 'YYYY[ko] MMMM[ren] D[a]',
LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
l: 'YYYY-M-D',
ll: 'YYYY[ko] MMM D[a]',
lll: 'YYYY[ko] MMM D[a] HH:mm',
llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',
},
calendar: {
sameDay: '[gaur] LT[etan]',
nextDay: '[bihar] LT[etan]',
nextWeek: 'dddd LT[etan]',
lastDay: '[atzo] LT[etan]',
lastWeek: '[aurreko] dddd LT[etan]',
sameElse: 'L',
},
relativeTime: {
future: '%s barru',
past: 'duela %s',
s: 'segundo batzuk',
ss: '%d segundo',
m: 'minutu bat',
mm: '%d minutu',
h: 'ordu bat',
hh: '%d ordu',
d: 'egun bat',
dd: '%d egun',
M: 'hilabete bat',
MM: '%d hilabete',
y: 'urte bat',
yy: '%d urte',
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
76959: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '۱',
2: '۲',
3: '۳',
4: '۴',
5: '۵',
6: '۶',
7: '۷',
8: '۸',
9: '۹',
0: '۰',
},
i = {
'۱': '1',
'۲': '2',
'۳': '3',
'۴': '4',
'۵': '5',
'۶': '6',
'۷': '7',
'۸': '8',
'۹': '9',
'۰': '0',
};
e.defineLocale('fa', {
months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
'_'
),
monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
'_'
),
weekdays: 'یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه'.split(
'_'
),
weekdaysShort: 'یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه'.split(
'_'
),
weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
meridiemParse: /قبل از ظهر|بعد از ظهر/,
isPM: function (e) {
return /بعد از ظهر/.test(e);
},
meridiem: function (e, t, i) {
return e < 12 ? 'قبل از ظهر' : 'بعد از ظهر';
},
calendar: {
sameDay: '[امروز ساعت] LT',
nextDay: '[فردا ساعت] LT',
nextWeek: 'dddd [ساعت] LT',
lastDay: '[دیروز ساعت] LT',
lastWeek: 'dddd [پیش] [ساعت] LT',
sameElse: 'L',
},
relativeTime: {
future: 'در %s',
past: '%s پیش',
s: 'چند ثانیه',
ss: '%d ثانیه',
m: 'یک دقیقه',
mm: '%d دقیقه',
h: 'یک ساعت',
hh: '%d ساعت',
d: 'یک روز',
dd: '%d روز',
M: 'یک ماه',
MM: '%d ماه',
y: 'یک سال',
yy: '%d سال',
},
preparse: function (e) {
return e
.replace(/[۰-۹]/g, function (e) {
return i[e];
})
.replace(/،/g, ',');
},
postformat: function (e) {
return e
.replace(/\d/g, function (e) {
return t[e];
})
.replace(/,/g, '،');
},
dayOfMonthOrdinalParse: /\d{1,2}م/,
ordinal: '%dم',
week: { dow: 6, doy: 12 },
});
})(i(30381));
},
11897: function (e, t, i) {
!(function (e) {
'use strict';
var t = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(
' '
),
i = [
'nolla',
'yhden',
'kahden',
'kolmen',
'neljän',
'viiden',
'kuuden',
t[7],
t[8],
t[9],
];
function n(e, n, r, s) {
var o = '';
switch (r) {
case 's':
return s ? 'muutaman sekunnin' : 'muutama sekunti';
case 'ss':
o = s ? 'sekunnin' : 'sekuntia';
break;
case 'm':
return s ? 'minuutin' : 'minuutti';
case 'mm':
o = s ? 'minuutin' : 'minuuttia';
break;
case 'h':
return s ? 'tunnin' : 'tunti';
case 'hh':
o = s ? 'tunnin' : 'tuntia';
break;
case 'd':
return s ? 'päivän' : 'päivä';
case 'dd':
o = s ? 'päivän' : 'päivää';
break;
case 'M':
return s ? 'kuukauden' : 'kuukausi';
case 'MM':
o = s ? 'kuukauden' : 'kuukautta';
break;
case 'y':
return s ? 'vuoden' : 'vuosi';
case 'yy':
o = s ? 'vuoden' : 'vuotta';
}
return (
(function (e, n) {
return e < 10 ? (n ? i[e] : t[e]) : e;
})(e, s) +
' ' +
o
);
}
e.defineLocale('fi', {
months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(
'_'
),
monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(
'_'
),
weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(
'_'
),
weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
longDateFormat: {
LT: 'HH.mm',
LTS: 'HH.mm.ss',
L: 'DD.MM.YYYY',
LL: 'Do MMMM[ta] YYYY',
LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
l: 'D.M.YYYY',
ll: 'Do MMM YYYY',
lll: 'Do MMM YYYY, [klo] HH.mm',
llll: 'ddd, Do MMM YYYY, [klo] HH.mm',
},
calendar: {
sameDay: '[tänään] [klo] LT',
nextDay: '[huomenna] [klo] LT',
nextWeek: 'dddd [klo] LT',
lastDay: '[eilen] [klo] LT',
lastWeek: '[viime] dddd[na] [klo] LT',
sameElse: 'L',
},
relativeTime: {
future: '%s päästä',
past: '%s sitten',
s: n,
ss: n,
m: n,
mm: n,
h: n,
hh: n,
d: n,
dd: n,
M: n,
MM: n,
y: n,
yy: n,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
42549: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('fil', {
months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
'_'
),
monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split(
'_'
),
weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
'_'
),
weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'MM/D/YYYY',
LL: 'MMMM D, YYYY',
LLL: 'MMMM D, YYYY HH:mm',
LLLL: 'dddd, MMMM DD, YYYY HH:mm',
},
calendar: {
sameDay: 'LT [ngayong araw]',
nextDay: '[Bukas ng] LT',
nextWeek: 'LT [sa susunod na] dddd',
lastDay: 'LT [kahapon]',
lastWeek: 'LT [noong nakaraang] dddd',
sameElse: 'L',
},
relativeTime: {
future: 'sa loob ng %s',
past: '%s ang nakalipas',
s: 'ilang segundo',
ss: '%d segundo',
m: 'isang minuto',
mm: '%d minuto',
h: 'isang oras',
hh: '%d oras',
d: 'isang araw',
dd: '%d araw',
M: 'isang buwan',
MM: '%d buwan',
y: 'isang taon',
yy: '%d taon',
},
dayOfMonthOrdinalParse: /\d{1,2}/,
ordinal: function (e) {
return e;
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
94694: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('fo', {
months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(
'_'
),
monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split(
'_'
),
weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(
'_'
),
weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D. MMMM, YYYY HH:mm',
},
calendar: {
sameDay: '[Í dag kl.] LT',
nextDay: '[Í morgin kl.] LT',
nextWeek: 'dddd [kl.] LT',
lastDay: '[Í gjár kl.] LT',
lastWeek: '[síðstu] dddd [kl] LT',
sameElse: 'L',
},
relativeTime: {
future: 'um %s',
past: '%s síðani',
s: 'fá sekund',
ss: '%d sekundir',
m: 'ein minuttur',
mm: '%d minuttir',
h: 'ein tími',
hh: '%d tímar',
d: 'ein dagur',
dd: '%d dagar',
M: 'ein mánaður',
MM: '%d mánaðir',
y: 'eitt ár',
yy: '%d ár',
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
63049: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('fr-ca', {
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
'_'
),
monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split(
'_'
),
weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'YYYY-MM-DD',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Aujourd’hui à] LT',
nextDay: '[Demain à] LT',
nextWeek: 'dddd [à] LT',
lastDay: '[Hier à] LT',
lastWeek: 'dddd [dernier à] LT',
sameElse: 'L',
},
relativeTime: {
future: 'dans %s',
past: 'il y a %s',
s: 'quelques secondes',
ss: '%d secondes',
m: 'une minute',
mm: '%d minutes',
h: 'une heure',
hh: '%d heures',
d: 'un jour',
dd: '%d jours',
M: 'un mois',
MM: '%d mois',
y: 'un an',
yy: '%d ans',
},
dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
ordinal: function (e, t) {
switch (t) {
default:
case 'M':
case 'Q':
case 'D':
case 'DDD':
case 'd':
return e + (1 === e ? 'er' : 'e');
case 'w':
case 'W':
return e + (1 === e ? 're' : 'e');
}
},
});
})(i(30381));
},
52330: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('fr-ch', {
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
'_'
),
monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split(
'_'
),
weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Aujourd’hui à] LT',
nextDay: '[Demain à] LT',
nextWeek: 'dddd [à] LT',
lastDay: '[Hier à] LT',
lastWeek: 'dddd [dernier à] LT',
sameElse: 'L',
},
relativeTime: {
future: 'dans %s',
past: 'il y a %s',
s: 'quelques secondes',
ss: '%d secondes',
m: 'une minute',
mm: '%d minutes',
h: 'une heure',
hh: '%d heures',
d: 'un jour',
dd: '%d jours',
M: 'un mois',
MM: '%d mois',
y: 'un an',
yy: '%d ans',
},
dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
ordinal: function (e, t) {
switch (t) {
default:
case 'M':
case 'Q':
case 'D':
case 'DDD':
case 'd':
return e + (1 === e ? 'er' : 'e');
case 'w':
case 'W':
return e + (1 === e ? 're' : 'e');
}
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
94470: function (e, t, i) {
!(function (e) {
'use strict';
var t = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
i = [
/^janv/i,
/^févr/i,
/^mars/i,
/^avr/i,
/^mai/i,
/^juin/i,
/^juil/i,
/^août/i,
/^sept/i,
/^oct/i,
/^nov/i,
/^déc/i,
];
e.defineLocale('fr', {
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
'_'
),
monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
'_'
),
monthsRegex: t,
monthsShortRegex: t,
monthsStrictRegex: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
monthsShortStrictRegex: /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
monthsParse: i,
longMonthsParse: i,
shortMonthsParse: i,
weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split(
'_'
),
weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Aujourd’hui à] LT',
nextDay: '[Demain à] LT',
nextWeek: 'dddd [à] LT',
lastDay: '[Hier à] LT',
lastWeek: 'dddd [dernier à] LT',
sameElse: 'L',
},
relativeTime: {
future: 'dans %s',
past: 'il y a %s',
s: 'quelques secondes',
ss: '%d secondes',
m: 'une minute',
mm: '%d minutes',
h: 'une heure',
hh: '%d heures',
d: 'un jour',
dd: '%d jours',
w: 'une semaine',
ww: '%d semaines',
M: 'un mois',
MM: '%d mois',
y: 'un an',
yy: '%d ans',
},
dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
ordinal: function (e, t) {
switch (t) {
case 'D':
return e + (1 === e ? 'er' : '');
default:
case 'M':
case 'Q':
case 'DDD':
case 'd':
return e + (1 === e ? 'er' : 'e');
case 'w':
case 'W':
return e + (1 === e ? 're' : 'e');
}
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
5044: function (e, t, i) {
!(function (e) {
'use strict';
var t = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split(
'_'
),
i = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
e.defineLocale('fy', {
months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
'_'
),
monthsShort: function (e, n) {
return e ? (/-MMM-/.test(n) ? i[e.month()] : t[e.month()]) : t;
},
monthsParseExact: !0,
weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
'_'
),
weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD-MM-YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[hjoed om] LT',
nextDay: '[moarn om] LT',
nextWeek: 'dddd [om] LT',
lastDay: '[juster om] LT',
lastWeek: '[ôfrûne] dddd [om] LT',
sameElse: 'L',
},
relativeTime: {
future: 'oer %s',
past: '%s lyn',
s: 'in pear sekonden',
ss: '%d sekonden',
m: 'ien minút',
mm: '%d minuten',
h: 'ien oere',
hh: '%d oeren',
d: 'ien dei',
dd: '%d dagen',
M: 'ien moanne',
MM: '%d moannen',
y: 'ien jier',
yy: '%d jierren',
},
dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
ordinal: function (e) {
return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de');
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
29295: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('ga', {
months: [
'Eanáir',
'Feabhra',
'Márta',
'Aibreán',
'Bealtaine',
'Meitheamh',
'Iúil',
'Lúnasa',
'Meán Fómhair',
'Deireadh Fómhair',
'Samhain',
'Nollaig',
],
monthsShort: [
'Ean',
'Feabh',
'Márt',
'Aib',
'Beal',
'Meith',
'Iúil',
'Lún',
'M.F.',
'D.F.',
'Samh',
'Noll',
],
monthsParseExact: !0,
weekdays: [
'Dé Domhnaigh',
'Dé Luain',
'Dé Máirt',
'Dé Céadaoin',
'Déardaoin',
'Dé hAoine',
'Dé Sathairn',
],
weekdaysShort: [
'Domh',
'Luan',
'Máirt',
'Céad',
'Déar',
'Aoine',
'Sath',
],
weekdaysMin: ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'],
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Inniu ag] LT',
nextDay: '[Amárach ag] LT',
nextWeek: 'dddd [ag] LT',
lastDay: '[Inné ag] LT',
lastWeek: 'dddd [seo caite] [ag] LT',
sameElse: 'L',
},
relativeTime: {
future: 'i %s',
past: '%s ó shin',
s: 'cúpla soicind',
ss: '%d soicind',
m: 'nóiméad',
mm: '%d nóiméad',
h: 'uair an chloig',
hh: '%d uair an chloig',
d: 'lá',
dd: '%d lá',
M: 'mí',
MM: '%d míonna',
y: 'bliain',
yy: '%d bliain',
},
dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
ordinal: function (e) {
return e + (1 === e ? 'd' : e % 10 == 2 ? 'na' : 'mh');
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
2101: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('gd', {
months: [
'Am Faoilleach',
'An Gearran',
'Am Màrt',
'An Giblean',
'An Cèitean',
'An t-Ògmhios',
'An t-Iuchar',
'An Lùnastal',
'An t-Sultain',
'An Dàmhair',
'An t-Samhain',
'An Dùbhlachd',
],
monthsShort: [
'Faoi',
'Gear',
'Màrt',
'Gibl',
'Cèit',
'Ògmh',
'Iuch',
'Lùn',
'Sult',
'Dàmh',
'Samh',
'Dùbh',
],
monthsParseExact: !0,
weekdays: [
'Didòmhnaich',
'Diluain',
'Dimàirt',
'Diciadain',
'Diardaoin',
'Dihaoine',
'Disathairne',
],
weekdaysShort: ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
weekdaysMin: ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'],
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[An-diugh aig] LT',
nextDay: '[A-màireach aig] LT',
nextWeek: 'dddd [aig] LT',
lastDay: '[An-dè aig] LT',
lastWeek: 'dddd [seo chaidh] [aig] LT',
sameElse: 'L',
},
relativeTime: {
future: 'ann an %s',
past: 'bho chionn %s',
s: 'beagan diogan',
ss: '%d diogan',
m: 'mionaid',
mm: '%d mionaidean',
h: 'uair',
hh: '%d uairean',
d: 'latha',
dd: '%d latha',
M: 'mìos',
MM: '%d mìosan',
y: 'bliadhna',
yy: '%d bliadhna',
},
dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
ordinal: function (e) {
return e + (1 === e ? 'd' : e % 10 == 2 ? 'na' : 'mh');
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
38794: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('gl', {
months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(
'_'
),
monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split(
'_'
),
weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D [de] MMMM [de] YYYY',
LLL: 'D [de] MMMM [de] YYYY H:mm',
LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
},
calendar: {
sameDay: function () {
return '[hoxe ' + (1 !== this.hours() ? 'ás' : 'á') + '] LT';
},
nextDay: function () {
return '[mañá ' + (1 !== this.hours() ? 'ás' : 'á') + '] LT';
},
nextWeek: function () {
return 'dddd [' + (1 !== this.hours() ? 'ás' : 'a') + '] LT';
},
lastDay: function () {
return '[onte ' + (1 !== this.hours() ? 'á' : 'a') + '] LT';
},
lastWeek: function () {
return (
'[o] dddd [pasado ' +
(1 !== this.hours() ? 'ás' : 'a') +
'] LT'
);
},
sameElse: 'L',
},
relativeTime: {
future: function (e) {
return 0 === e.indexOf('un') ? 'n' + e : 'en ' + e;
},
past: 'hai %s',
s: 'uns segundos',
ss: '%d segundos',
m: 'un minuto',
mm: '%d minutos',
h: 'unha hora',
hh: '%d horas',
d: 'un día',
dd: '%d días',
M: 'un mes',
MM: '%d meses',
y: 'un ano',
yy: '%d anos',
},
dayOfMonthOrdinalParse: /\d{1,2}º/,
ordinal: '%dº',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
27884: function (e, t, i) {
!(function (e) {
'use strict';
function t(e, t, i, n) {
var r = {
s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
ss: [e + ' सॅकंडांनी', e + ' सॅकंड'],
m: ['एका मिणटान', 'एक मिनूट'],
mm: [e + ' मिणटांनी', e + ' मिणटां'],
h: ['एका वरान', 'एक वर'],
hh: [e + ' वरांनी', e + ' वरां'],
d: ['एका दिसान', 'एक दीस'],
dd: [e + ' दिसांनी', e + ' दीस'],
M: ['एका म्हयन्यान', 'एक म्हयनो'],
MM: [e + ' म्हयन्यानी', e + ' म्हयने'],
y: ['एका वर्सान', 'एक वर्स'],
yy: [e + ' वर्सांनी', e + ' वर्सां'],
};
return n ? r[i][0] : r[i][1];
}
e.defineLocale('gom-deva', {
months: {
standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
'_'
),
format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(
'_'
),
isFormat: /MMMM(\s)+D[oD]?/,
},
monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split(
'_'
),
weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split(
'_'
),
weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'A h:mm [वाजतां]',
LTS: 'A h:mm:ss [वाजतां]',
L: 'DD-MM-YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY A h:mm [वाजतां]',
LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',
},
calendar: {
sameDay: '[आयज] LT',
nextDay: '[फाल्यां] LT',
nextWeek: '[फुडलो] dddd[,] LT',
lastDay: '[काल] LT',
lastWeek: '[फाटलो] dddd[,] LT',
sameElse: 'L',
},
relativeTime: {
future: '%s',
past: '%s आदीं',
s: t,
ss: t,
m: t,
mm: t,
h: t,
hh: t,
d: t,
dd: t,
M: t,
MM: t,
y: t,
yy: t,
},
dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
ordinal: function (e, t) {
switch (t) {
case 'D':
return e + 'वेर';
default:
case 'M':
case 'Q':
case 'DDD':
case 'd':
case 'w':
case 'W':
return e;
}
},
week: { dow: 0, doy: 3 },
meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'राती' === t
? e < 4
? e
: e + 12
: 'सकाळीं' === t
? e
: 'दनपारां' === t
? e > 12
? e
: e + 12
: 'सांजे' === t
? e + 12
: void 0
);
},
meridiem: function (e, t, i) {
return e < 4
? 'राती'
: e < 12
? 'सकाळीं'
: e < 16
? 'दनपारां'
: e < 20
? 'सांजे'
: 'राती';
},
});
})(i(30381));
},
23168: function (e, t, i) {
!(function (e) {
'use strict';
function t(e, t, i, n) {
var r = {
s: ['thoddea sekondamni', 'thodde sekond'],
ss: [e + ' sekondamni', e + ' sekond'],
m: ['eka mintan', 'ek minut'],
mm: [e + ' mintamni', e + ' mintam'],
h: ['eka voran', 'ek vor'],
hh: [e + ' voramni', e + ' voram'],
d: ['eka disan', 'ek dis'],
dd: [e + ' disamni', e + ' dis'],
M: ['eka mhoinean', 'ek mhoino'],
MM: [e + ' mhoineamni', e + ' mhoine'],
y: ['eka vorsan', 'ek voros'],
yy: [e + ' vorsamni', e + ' vorsam'],
};
return n ? r[i][0] : r[i][1];
}
e.defineLocale('gom-latn', {
months: {
standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(
'_'
),
format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(
'_'
),
isFormat: /MMMM(\s)+D[oD]?/,
},
monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split(
'_'
),
monthsParseExact: !0,
weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split(
'_'
),
weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'A h:mm [vazta]',
LTS: 'A h:mm:ss [vazta]',
L: 'DD-MM-YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY A h:mm [vazta]',
LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
llll: 'ddd, D MMM YYYY, A h:mm [vazta]',
},
calendar: {
sameDay: '[Aiz] LT',
nextDay: '[Faleam] LT',
nextWeek: '[Fuddlo] dddd[,] LT',
lastDay: '[Kal] LT',
lastWeek: '[Fattlo] dddd[,] LT',
sameElse: 'L',
},
relativeTime: {
future: '%s',
past: '%s adim',
s: t,
ss: t,
m: t,
mm: t,
h: t,
hh: t,
d: t,
dd: t,
M: t,
MM: t,
y: t,
yy: t,
},
dayOfMonthOrdinalParse: /\d{1,2}(er)/,
ordinal: function (e, t) {
switch (t) {
case 'D':
return e + 'er';
default:
case 'M':
case 'Q':
case 'DDD':
case 'd':
case 'w':
case 'W':
return e;
}
},
week: { dow: 0, doy: 3 },
meridiemParse: /rati|sokallim|donparam|sanje/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'rati' === t
? e < 4
? e
: e + 12
: 'sokallim' === t
? e
: 'donparam' === t
? e > 12
? e
: e + 12
: 'sanje' === t
? e + 12
: void 0
);
},
meridiem: function (e, t, i) {
return e < 4
? 'rati'
: e < 12
? 'sokallim'
: e < 16
? 'donparam'
: e < 20
? 'sanje'
: 'rati';
},
});
})(i(30381));
},
95349: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '૧',
2: '૨',
3: '૩',
4: '૪',
5: '૫',
6: '૬',
7: '૭',
8: '૮',
9: '૯',
0: '૦',
},
i = {
'૧': '1',
'૨': '2',
'૩': '3',
'૪': '4',
'૫': '5',
'૬': '6',
'૭': '7',
'૮': '8',
'૯': '9',
'૦': '0',
};
e.defineLocale('gu', {
months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(
'_'
),
monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(
'_'
),
weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
longDateFormat: {
LT: 'A h:mm વાગ્યે',
LTS: 'A h:mm:ss વાગ્યે',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',
},
calendar: {
sameDay: '[આજ] LT',
nextDay: '[કાલે] LT',
nextWeek: 'dddd, LT',
lastDay: '[ગઇકાલે] LT',
lastWeek: '[પાછલા] dddd, LT',
sameElse: 'L',
},
relativeTime: {
future: '%s મા',
past: '%s પહેલા',
s: 'અમુક પળો',
ss: '%d સેકંડ',
m: 'એક મિનિટ',
mm: '%d મિનિટ',
h: 'એક કલાક',
hh: '%d કલાક',
d: 'એક દિવસ',
dd: '%d દિવસ',
M: 'એક મહિનો',
MM: '%d મહિનો',
y: 'એક વર્ષ',
yy: '%d વર્ષ',
},
preparse: function (e) {
return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (e) {
return i[e];
});
},
postformat: function (e) {
return e.replace(/\d/g, function (e) {
return t[e];
});
},
meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'રાત' === t
? e < 4
? e
: e + 12
: 'સવાર' === t
? e
: 'બપોર' === t
? e >= 10
? e
: e + 12
: 'સાંજ' === t
? e + 12
: void 0
);
},
meridiem: function (e, t, i) {
return e < 4
? 'રાત'
: e < 10
? 'સવાર'
: e < 17
? 'બપોર'
: e < 20
? 'સાંજ'
: 'રાત';
},
week: { dow: 0, doy: 6 },
});
})(i(30381));
},
24206: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('he', {
months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
'_'
),
monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split(
'_'
),
weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D [ב]MMMM YYYY',
LLL: 'D [ב]MMMM YYYY HH:mm',
LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
l: 'D/M/YYYY',
ll: 'D MMM YYYY',
lll: 'D MMM YYYY HH:mm',
llll: 'ddd, D MMM YYYY HH:mm',
},
calendar: {
sameDay: '[היום ב־]LT',
nextDay: '[מחר ב־]LT',
nextWeek: 'dddd [בשעה] LT',
lastDay: '[אתמול ב־]LT',
lastWeek: '[ביום] dddd [האחרון בשעה] LT',
sameElse: 'L',
},
relativeTime: {
future: 'בעוד %s',
past: 'לפני %s',
s: 'מספר שניות',
ss: '%d שניות',
m: 'דקה',
mm: '%d דקות',
h: 'שעה',
hh: function (e) {
return 2 === e ? 'שעתיים' : e + ' שעות';
},
d: 'יום',
dd: function (e) {
return 2 === e ? 'יומיים' : e + ' ימים';
},
M: 'חודש',
MM: function (e) {
return 2 === e ? 'חודשיים' : e + ' חודשים';
},
y: 'שנה',
yy: function (e) {
return 2 === e
? 'שנתיים'
: e % 10 == 0 && 10 !== e
? e + ' שנה'
: e + ' שנים';
},
},
meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
isPM: function (e) {
return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(e);
},
meridiem: function (e, t, i) {
return e < 5
? 'לפנות בוקר'
: e < 10
? 'בבוקר'
: e < 12
? i
? 'לפנה"צ'
: 'לפני הצהריים'
: e < 18
? i
? 'אחה"צ'
: 'אחרי הצהריים'
: 'בערב';
},
});
})(i(30381));
},
30094: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '१',
2: '२',
3: '३',
4: '४',
5: '५',
6: '६',
7: '७',
8: '८',
9: '९',
0: '०',
},
i = {
'१': '1',
'२': '2',
'३': '3',
'४': '4',
'५': '5',
'६': '6',
'७': '7',
'८': '8',
'९': '9',
'०': '0',
},
n = [
/^जन/i,
/^फ़र|फर/i,
/^मार्च/i,
/^अप्रै/i,
/^मई/i,
/^जून/i,
/^जुल/i,
/^अग/i,
/^सितं|सित/i,
/^अक्टू/i,
/^नव|नवं/i,
/^दिसं|दिस/i,
];
e.defineLocale('hi', {
months: {
format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(
'_'
),
standalone: 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split(
'_'
),
},
monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split(
'_'
),
weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split(
'_'
),
weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
longDateFormat: {
LT: 'A h:mm बजे',
LTS: 'A h:mm:ss बजे',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, A h:mm बजे',
LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',
},
monthsParse: n,
longMonthsParse: n,
shortMonthsParse: [
/^जन/i,
/^फ़र/i,
/^मार्च/i,
/^अप्रै/i,
/^मई/i,
/^जून/i,
/^जुल/i,
/^अग/i,
/^सित/i,
/^अक्टू/i,
/^नव/i,
/^दिस/i,
],
monthsRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
monthsShortRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
monthsStrictRegex: /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,
monthsShortStrictRegex: /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,
calendar: {
sameDay: '[आज] LT',
nextDay: '[कल] LT',
nextWeek: 'dddd, LT',
lastDay: '[कल] LT',
lastWeek: '[पिछले] dddd, LT',
sameElse: 'L',
},
relativeTime: {
future: '%s में',
past: '%s पहले',
s: 'कुछ ही क्षण',
ss: '%d सेकंड',
m: 'एक मिनट',
mm: '%d मिनट',
h: 'एक घंटा',
hh: '%d घंटे',
d: 'एक दिन',
dd: '%d दिन',
M: 'एक महीने',
MM: '%d महीने',
y: 'एक वर्ष',
yy: '%d वर्ष',
},
preparse: function (e) {
return e.replace(/[१२३४५६७८९०]/g, function (e) {
return i[e];
});
},
postformat: function (e) {
return e.replace(/\d/g, function (e) {
return t[e];
});
},
meridiemParse: /रात|सुबह|दोपहर|शाम/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'रात' === t
? e < 4
? e
: e + 12
: 'सुबह' === t
? e
: 'दोपहर' === t
? e >= 10
? e
: e + 12
: 'शाम' === t
? e + 12
: void 0
);
},
meridiem: function (e, t, i) {
return e < 4
? 'रात'
: e < 10
? 'सुबह'
: e < 17
? 'दोपहर'
: e < 20
? 'शाम'
: 'रात';
},
week: { dow: 0, doy: 6 },
});
})(i(30381));
},
30316: function (e, t, i) {
!(function (e) {
'use strict';
function t(e, t, i) {
var n = e + ' ';
switch (i) {
case 'ss':
return (
n +
(1 === e
? 'sekunda'
: 2 === e || 3 === e || 4 === e
? 'sekunde'
: 'sekundi')
);
case 'm':
return t ? 'jedna minuta' : 'jedne minute';
case 'mm':
return (
n +
(1 === e
? 'minuta'
: 2 === e || 3 === e || 4 === e
? 'minute'
: 'minuta')
);
case 'h':
return t ? 'jedan sat' : 'jednog sata';
case 'hh':
return (
n +
(1 === e
? 'sat'
: 2 === e || 3 === e || 4 === e
? 'sata'
: 'sati')
);
case 'dd':
return n + (1 === e ? 'dan' : 'dana');
case 'MM':
return (
n +
(1 === e
? 'mjesec'
: 2 === e || 3 === e || 4 === e
? 'mjeseca'
: 'mjeseci')
);
case 'yy':
return (
n +
(1 === e
? 'godina'
: 2 === e || 3 === e || 4 === e
? 'godine'
: 'godina')
);
}
}
e.defineLocale('hr', {
months: {
format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
'_'
),
standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(
'_'
),
},
monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
'_'
),
weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD.MM.YYYY',
LL: 'Do MMMM YYYY',
LLL: 'Do MMMM YYYY H:mm',
LLLL: 'dddd, Do MMMM YYYY H:mm',
},
calendar: {
sameDay: '[danas u] LT',
nextDay: '[sutra u] LT',
nextWeek: function () {
switch (this.day()) {
case 0:
return '[u] [nedjelju] [u] LT';
case 3:
return '[u] [srijedu] [u] LT';
case 6:
return '[u] [subotu] [u] LT';
case 1:
case 2:
case 4:
case 5:
return '[u] dddd [u] LT';
}
},
lastDay: '[jučer u] LT',
lastWeek: function () {
switch (this.day()) {
case 0:
return '[prošlu] [nedjelju] [u] LT';
case 3:
return '[prošlu] [srijedu] [u] LT';
case 6:
return '[prošle] [subote] [u] LT';
case 1:
case 2:
case 4:
case 5:
return '[prošli] dddd [u] LT';
}
},
sameElse: 'L',
},
relativeTime: {
future: 'za %s',
past: 'prije %s',
s: 'par sekundi',
ss: t,
m: t,
mm: t,
h: t,
hh: t,
d: 'dan',
dd: t,
M: 'mjesec',
MM: t,
y: 'godinu',
yy: t,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
22138: function (e, t, i) {
!(function (e) {
'use strict';
var t = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(
' '
);
function i(e, t, i, n) {
var r = e;
switch (i) {
case 's':
return n || t ? 'néhány másodperc' : 'néhány másodperce';
case 'ss':
return r + (n || t) ? ' másodperc' : ' másodperce';
case 'm':
return 'egy' + (n || t ? ' perc' : ' perce');
case 'mm':
return r + (n || t ? ' perc' : ' perce');
case 'h':
return 'egy' + (n || t ? ' óra' : ' órája');
case 'hh':
return r + (n || t ? ' óra' : ' órája');
case 'd':
return 'egy' + (n || t ? ' nap' : ' napja');
case 'dd':
return r + (n || t ? ' nap' : ' napja');
case 'M':
return 'egy' + (n || t ? ' hónap' : ' hónapja');
case 'MM':
return r + (n || t ? ' hónap' : ' hónapja');
case 'y':
return 'egy' + (n || t ? ' év' : ' éve');
case 'yy':
return r + (n || t ? ' év' : ' éve');
}
return '';
}
function n(e) {
return (e ? '' : '[múlt] ') + '[' + t[this.day()] + '] LT[-kor]';
}
e.defineLocale('hu', {
months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
'_'
),
monthsShort: 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split(
'_'
),
weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'YYYY.MM.DD.',
LL: 'YYYY. MMMM D.',
LLL: 'YYYY. MMMM D. H:mm',
LLLL: 'YYYY. MMMM D., dddd H:mm',
},
meridiemParse: /de|du/i,
isPM: function (e) {
return 'u' === e.charAt(1).toLowerCase();
},
meridiem: function (e, t, i) {
return e < 12 ? (!0 === i ? 'de' : 'DE') : !0 === i ? 'du' : 'DU';
},
calendar: {
sameDay: '[ma] LT[-kor]',
nextDay: '[holnap] LT[-kor]',
nextWeek: function () {
return n.call(this, !0);
},
lastDay: '[tegnap] LT[-kor]',
lastWeek: function () {
return n.call(this, !1);
},
sameElse: 'L',
},
relativeTime: {
future: '%s múlva',
past: '%s',
s: i,
ss: i,
m: i,
mm: i,
h: i,
hh: i,
d: i,
dd: i,
M: i,
MM: i,
y: i,
yy: i,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
11423: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('hy-am', {
months: {
format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(
'_'
),
standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(
'_'
),
},
monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split(
'_'
),
weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(
'_'
),
weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY թ.',
LLL: 'D MMMM YYYY թ., HH:mm',
LLLL: 'dddd, D MMMM YYYY թ., HH:mm',
},
calendar: {
sameDay: '[այսօր] LT',
nextDay: '[վաղը] LT',
lastDay: '[երեկ] LT',
nextWeek: function () {
return 'dddd [օրը ժամը] LT';
},
lastWeek: function () {
return '[անցած] dddd [օրը ժամը] LT';
},
sameElse: 'L',
},
relativeTime: {
future: '%s հետո',
past: '%s առաջ',
s: 'մի քանի վայրկյան',
ss: '%d վայրկյան',
m: 'րոպե',
mm: '%d րոպե',
h: 'ժամ',
hh: '%d ժամ',
d: 'օր',
dd: '%d օր',
M: 'ամիս',
MM: '%d ամիս',
y: 'տարի',
yy: '%d տարի',
},
meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
isPM: function (e) {
return /^(ցերեկվա|երեկոյան)$/.test(e);
},
meridiem: function (e) {
return e < 4
? 'գիշերվա'
: e < 12
? 'առավոտվա'
: e < 17
? 'ցերեկվա'
: 'երեկոյան';
},
dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
ordinal: function (e, t) {
switch (t) {
case 'DDD':
case 'w':
case 'W':
case 'DDDo':
return 1 === e ? e + '-ին' : e + '-րդ';
default:
return e;
}
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
29218: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('id', {
months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
'_'
),
monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split(
'_'
),
weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
longDateFormat: {
LT: 'HH.mm',
LTS: 'HH.mm.ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY [pukul] HH.mm',
LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
},
meridiemParse: /pagi|siang|sore|malam/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'pagi' === t
? e
: 'siang' === t
? e >= 11
? e
: e + 12
: 'sore' === t || 'malam' === t
? e + 12
: void 0
);
},
meridiem: function (e, t, i) {
return e < 11
? 'pagi'
: e < 15
? 'siang'
: e < 19
? 'sore'
: 'malam';
},
calendar: {
sameDay: '[Hari ini pukul] LT',
nextDay: '[Besok pukul] LT',
nextWeek: 'dddd [pukul] LT',
lastDay: '[Kemarin pukul] LT',
lastWeek: 'dddd [lalu pukul] LT',
sameElse: 'L',
},
relativeTime: {
future: 'dalam %s',
past: '%s yang lalu',
s: 'beberapa detik',
ss: '%d detik',
m: 'semenit',
mm: '%d menit',
h: 'sejam',
hh: '%d jam',
d: 'sehari',
dd: '%d hari',
M: 'sebulan',
MM: '%d bulan',
y: 'setahun',
yy: '%d tahun',
},
week: { dow: 0, doy: 6 },
});
})(i(30381));
},
90135: function (e, t, i) {
!(function (e) {
'use strict';
function t(e) {
return e % 100 == 11 || e % 10 != 1;
}
function i(e, i, n, r) {
var s = e + ' ';
switch (n) {
case 's':
return i || r ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
case 'ss':
return t(e)
? s + (i || r ? 'sekúndur' : 'sekúndum')
: s + 'sekúnda';
case 'm':
return i ? 'mínúta' : 'mínútu';
case 'mm':
return t(e)
? s + (i || r ? 'mínútur' : 'mínútum')
: i
? s + 'mínúta'
: s + 'mínútu';
case 'hh':
return t(e)
? s + (i || r ? 'klukkustundir' : 'klukkustundum')
: s + 'klukkustund';
case 'd':
return i ? 'dagur' : r ? 'dag' : 'degi';
case 'dd':
return t(e)
? i
? s + 'dagar'
: s + (r ? 'daga' : 'dögum')
: i
? s + 'dagur'
: s + (r ? 'dag' : 'degi');
case 'M':
return i ? 'mánuður' : r ? 'mánuð' : 'mánuði';
case 'MM':
return t(e)
? i
? s + 'mánuðir'
: s + (r ? 'mánuði' : 'mánuðum')
: i
? s + 'mánuður'
: s + (r ? 'mánuð' : 'mánuði');
case 'y':
return i || r ? 'ár' : 'ári';
case 'yy':
return t(e)
? s + (i || r ? 'ár' : 'árum')
: s + (i || r ? 'ár' : 'ári');
}
}
e.defineLocale('is', {
months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(
'_'
),
monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split(
'_'
),
weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(
'_'
),
weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D. MMMM YYYY',
LLL: 'D. MMMM YYYY [kl.] H:mm',
LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm',
},
calendar: {
sameDay: '[í dag kl.] LT',
nextDay: '[á morgun kl.] LT',
nextWeek: 'dddd [kl.] LT',
lastDay: '[í gær kl.] LT',
lastWeek: '[síðasta] dddd [kl.] LT',
sameElse: 'L',
},
relativeTime: {
future: 'eftir %s',
past: 'fyrir %s síðan',
s: i,
ss: i,
m: i,
mm: i,
h: 'klukkustund',
hh: i,
d: i,
dd: i,
M: i,
MM: i,
y: i,
yy: i,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
10150: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('it-ch', {
months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
'_'
),
monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split(
'_'
),
weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
'_'
),
weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Oggi alle] LT',
nextDay: '[Domani alle] LT',
nextWeek: 'dddd [alle] LT',
lastDay: '[Ieri alle] LT',
lastWeek: function () {
switch (this.day()) {
case 0:
return '[la scorsa] dddd [alle] LT';
default:
return '[lo scorso] dddd [alle] LT';
}
},
sameElse: 'L',
},
relativeTime: {
future: function (e) {
return (/^[0-9].+$/.test(e) ? 'tra' : 'in') + ' ' + e;
},
past: '%s fa',
s: 'alcuni secondi',
ss: '%d secondi',
m: 'un minuto',
mm: '%d minuti',
h: "un'ora",
hh: '%d ore',
d: 'un giorno',
dd: '%d giorni',
M: 'un mese',
MM: '%d mesi',
y: 'un anno',
yy: '%d anni',
},
dayOfMonthOrdinalParse: /\d{1,2}º/,
ordinal: '%dº',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
90626: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('it', {
months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
'_'
),
monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split(
'_'
),
weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
'_'
),
weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
calendar: {
sameDay: function () {
return (
'[Oggi a' +
(this.hours() > 1
? 'lle '
: 0 === this.hours()
? ' '
: "ll'") +
']LT'
);
},
nextDay: function () {
return (
'[Domani a' +
(this.hours() > 1
? 'lle '
: 0 === this.hours()
? ' '
: "ll'") +
']LT'
);
},
nextWeek: function () {
return (
'dddd [a' +
(this.hours() > 1
? 'lle '
: 0 === this.hours()
? ' '
: "ll'") +
']LT'
);
},
lastDay: function () {
return (
'[Ieri a' +
(this.hours() > 1
? 'lle '
: 0 === this.hours()
? ' '
: "ll'") +
']LT'
);
},
lastWeek: function () {
switch (this.day()) {
case 0:
return (
'[La scorsa] dddd [a' +
(this.hours() > 1
? 'lle '
: 0 === this.hours()
? ' '
: "ll'") +
']LT'
);
default:
return (
'[Lo scorso] dddd [a' +
(this.hours() > 1
? 'lle '
: 0 === this.hours()
? ' '
: "ll'") +
']LT'
);
}
},
sameElse: 'L',
},
relativeTime: {
future: 'tra %s',
past: '%s fa',
s: 'alcuni secondi',
ss: '%d secondi',
m: 'un minuto',
mm: '%d minuti',
h: "un'ora",
hh: '%d ore',
d: 'un giorno',
dd: '%d giorni',
w: 'una settimana',
ww: '%d settimane',
M: 'un mese',
MM: '%d mesi',
y: 'un anno',
yy: '%d anni',
},
dayOfMonthOrdinalParse: /\d{1,2}º/,
ordinal: '%dº',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
39183: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('ja', {
eras: [
{
since: '2019-05-01',
offset: 1,
name: '令和',
narrow: '㋿',
abbr: 'R',
},
{
since: '1989-01-08',
until: '2019-04-30',
offset: 1,
name: '平成',
narrow: '㍻',
abbr: 'H',
},
{
since: '1926-12-25',
until: '1989-01-07',
offset: 1,
name: '昭和',
narrow: '㍼',
abbr: 'S',
},
{
since: '1912-07-30',
until: '1926-12-24',
offset: 1,
name: '大正',
narrow: '㍽',
abbr: 'T',
},
{
since: '1873-01-01',
until: '1912-07-29',
offset: 6,
name: '明治',
narrow: '㍾',
abbr: 'M',
},
{
since: '0001-01-01',
until: '1873-12-31',
offset: 1,
name: '西暦',
narrow: 'AD',
abbr: 'AD',
},
{
since: '0000-12-31',
until: -1 / 0,
offset: 1,
name: '紀元前',
narrow: 'BC',
abbr: 'BC',
},
],
eraYearOrdinalRegex: /(元|\d+)年/,
eraYearOrdinalParse: function (e, t) {
return '元' === t[1] ? 1 : parseInt(t[1] || e, 10);
},
months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
'_'
),
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
'_'
),
weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split(
'_'
),
weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'YYYY/MM/DD',
LL: 'YYYY年M月D日',
LLL: 'YYYY年M月D日 HH:mm',
LLLL: 'YYYY年M月D日 dddd HH:mm',
l: 'YYYY/MM/DD',
ll: 'YYYY年M月D日',
lll: 'YYYY年M月D日 HH:mm',
llll: 'YYYY年M月D日(ddd) HH:mm',
},
meridiemParse: /午前|午後/i,
isPM: function (e) {
return '午後' === e;
},
meridiem: function (e, t, i) {
return e < 12 ? '午前' : '午後';
},
calendar: {
sameDay: '[今日] LT',
nextDay: '[明日] LT',
nextWeek: function (e) {
return e.week() !== this.week() ? '[来週]dddd LT' : 'dddd LT';
},
lastDay: '[昨日] LT',
lastWeek: function (e) {
return this.week() !== e.week() ? '[先週]dddd LT' : 'dddd LT';
},
sameElse: 'L',
},
dayOfMonthOrdinalParse: /\d{1,2}日/,
ordinal: function (e, t) {
switch (t) {
case 'y':
return 1 === e ? '元年' : e + '年';
case 'd':
case 'D':
case 'DDD':
return e + '日';
default:
return e;
}
},
relativeTime: {
future: '%s後',
past: '%s前',
s: '数秒',
ss: '%d秒',
m: '1分',
mm: '%d分',
h: '1時間',
hh: '%d時間',
d: '1日',
dd: '%d日',
M: '1ヶ月',
MM: '%dヶ月',
y: '1年',
yy: '%d年',
},
});
})(i(30381));
},
24286: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('jv', {
months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
'_'
),
monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split(
'_'
),
weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
longDateFormat: {
LT: 'HH.mm',
LTS: 'HH.mm.ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY [pukul] HH.mm',
LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
},
meridiemParse: /enjing|siyang|sonten|ndalu/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'enjing' === t
? e
: 'siyang' === t
? e >= 11
? e
: e + 12
: 'sonten' === t || 'ndalu' === t
? e + 12
: void 0
);
},
meridiem: function (e, t, i) {
return e < 11
? 'enjing'
: e < 15
? 'siyang'
: e < 19
? 'sonten'
: 'ndalu';
},
calendar: {
sameDay: '[Dinten puniko pukul] LT',
nextDay: '[Mbenjang pukul] LT',
nextWeek: 'dddd [pukul] LT',
lastDay: '[Kala wingi pukul] LT',
lastWeek: 'dddd [kepengker pukul] LT',
sameElse: 'L',
},
relativeTime: {
future: 'wonten ing %s',
past: '%s ingkang kepengker',
s: 'sawetawis detik',
ss: '%d detik',
m: 'setunggal menit',
mm: '%d menit',
h: 'setunggal jam',
hh: '%d jam',
d: 'sedinten',
dd: '%d dinten',
M: 'sewulan',
MM: '%d wulan',
y: 'setaun',
yy: '%d taun',
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
12105: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('ka', {
months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(
'_'
),
monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split(
'_'
),
weekdays: {
standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(
'_'
),
format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(
'_'
),
isFormat: /(წინა|შემდეგ)/,
},
weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[დღეს] LT[-ზე]',
nextDay: '[ხვალ] LT[-ზე]',
lastDay: '[გუშინ] LT[-ზე]',
nextWeek: '[შემდეგ] dddd LT[-ზე]',
lastWeek: '[წინა] dddd LT-ზე',
sameElse: 'L',
},
relativeTime: {
future: function (e) {
return e.replace(
/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,
function (e, t, i) {
return 'ი' === i ? t + 'ში' : t + i + 'ში';
}
);
},
past: function (e) {
return /(წამი|წუთი|საათი|დღე|თვე)/.test(e)
? e.replace(/(ი|ე)$/, 'ის წინ')
: /წელი/.test(e)
? e.replace(/წელი$/, 'წლის წინ')
: e;
},
s: 'რამდენიმე წამი',
ss: '%d წამი',
m: 'წუთი',
mm: '%d წუთი',
h: 'საათი',
hh: '%d საათი',
d: 'დღე',
dd: '%d დღე',
M: 'თვე',
MM: '%d თვე',
y: 'წელი',
yy: '%d წელი',
},
dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
ordinal: function (e) {
return 0 === e
? e
: 1 === e
? e + '-ლი'
: e < 20 || (e <= 100 && e % 20 == 0) || e % 100 == 0
? 'მე-' + e
: e + '-ე';
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
47772: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
0: '-ші',
1: '-ші',
2: '-ші',
3: '-ші',
4: '-ші',
5: '-ші',
6: '-шы',
7: '-ші',
8: '-ші',
9: '-шы',
10: '-шы',
20: '-шы',
30: '-шы',
40: '-шы',
50: '-ші',
60: '-шы',
70: '-ші',
80: '-ші',
90: '-шы',
100: '-ші',
};
e.defineLocale('kk', {
months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(
'_'
),
monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split(
'_'
),
weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(
'_'
),
weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Бүгін сағат] LT',
nextDay: '[Ертең сағат] LT',
nextWeek: 'dddd [сағат] LT',
lastDay: '[Кеше сағат] LT',
lastWeek: '[Өткен аптаның] dddd [сағат] LT',
sameElse: 'L',
},
relativeTime: {
future: '%s ішінде',
past: '%s бұрын',
s: 'бірнеше секунд',
ss: '%d секунд',
m: 'бір минут',
mm: '%d минут',
h: 'бір сағат',
hh: '%d сағат',
d: 'бір күн',
dd: '%d күн',
M: 'бір ай',
MM: '%d ай',
y: 'бір жыл',
yy: '%d жыл',
},
dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
ordinal: function (e) {
return e + (t[e] || t[e % 10] || t[e >= 100 ? 100 : null]);
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
18758: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '១',
2: '២',
3: '៣',
4: '៤',
5: '៥',
6: '៦',
7: '៧',
8: '៨',
9: '៩',
0: '០',
},
i = {
'១': '1',
'២': '2',
'៣': '3',
'៤': '4',
'៥': '5',
'៦': '6',
'៧': '7',
'៨': '8',
'៩': '9',
'០': '0',
};
e.defineLocale('km', {
months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
'_'
),
monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
'_'
),
weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split(
'_'
),
weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
meridiemParse: /ព្រឹក|ល្ងាច/,
isPM: function (e) {
return 'ល្ងាច' === e;
},
meridiem: function (e, t, i) {
return e < 12 ? 'ព្រឹក' : 'ល្ងាច';
},
calendar: {
sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
nextDay: '[ស្អែក ម៉ោង] LT',
nextWeek: 'dddd [ម៉ោង] LT',
lastDay: '[ម្សិលមិញ ម៉ោង] LT',
lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
sameElse: 'L',
},
relativeTime: {
future: '%sទៀត',
past: '%sមុន',
s: 'ប៉ុន្មានវិនាទី',
ss: '%d វិនាទី',
m: 'មួយនាទី',
mm: '%d នាទី',
h: 'មួយម៉ោង',
hh: '%d ម៉ោង',
d: 'មួយថ្ងៃ',
dd: '%d ថ្ងៃ',
M: 'មួយខែ',
MM: '%d ខែ',
y: 'មួយឆ្នាំ',
yy: '%d ឆ្នាំ',
},
dayOfMonthOrdinalParse: /ទី\d{1,2}/,
ordinal: 'ទី%d',
preparse: function (e) {
return e.replace(/[១២៣៤៥៦៧៨៩០]/g, function (e) {
return i[e];
});
},
postformat: function (e) {
return e.replace(/\d/g, function (e) {
return t[e];
});
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
79282: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '೧',
2: '೨',
3: '೩',
4: '೪',
5: '೫',
6: '೬',
7: '೭',
8: '೮',
9: '೯',
0: '೦',
},
i = {
'೧': '1',
'೨': '2',
'೩': '3',
'೪': '4',
'೫': '5',
'೬': '6',
'೭': '7',
'೮': '8',
'೯': '9',
'೦': '0',
};
e.defineLocale('kn', {
months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
'_'
),
monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
'_'
),
weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
longDateFormat: {
LT: 'A h:mm',
LTS: 'A h:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, A h:mm',
LLLL: 'dddd, D MMMM YYYY, A h:mm',
},
calendar: {
sameDay: '[ಇಂದು] LT',
nextDay: '[ನಾಳೆ] LT',
nextWeek: 'dddd, LT',
lastDay: '[ನಿನ್ನೆ] LT',
lastWeek: '[ಕೊನೆಯ] dddd, LT',
sameElse: 'L',
},
relativeTime: {
future: '%s ನಂತರ',
past: '%s ಹಿಂದೆ',
s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
ss: '%d ಸೆಕೆಂಡುಗಳು',
m: 'ಒಂದು ನಿಮಿಷ',
mm: '%d ನಿಮಿಷ',
h: 'ಒಂದು ಗಂಟೆ',
hh: '%d ಗಂಟೆ',
d: 'ಒಂದು ದಿನ',
dd: '%d ದಿನ',
M: 'ಒಂದು ತಿಂಗಳು',
MM: '%d ತಿಂಗಳು',
y: 'ಒಂದು ವರ್ಷ',
yy: '%d ವರ್ಷ',
},
preparse: function (e) {
return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (e) {
return i[e];
});
},
postformat: function (e) {
return e.replace(/\d/g, function (e) {
return t[e];
});
},
meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'ರಾತ್ರಿ' === t
? e < 4
? e
: e + 12
: 'ಬೆಳಿಗ್ಗೆ' === t
? e
: 'ಮಧ್ಯಾಹ್ನ' === t
? e >= 10
? e
: e + 12
: 'ಸಂಜೆ' === t
? e + 12
: void 0
);
},
meridiem: function (e, t, i) {
return e < 4
? 'ರಾತ್ರಿ'
: e < 10
? 'ಬೆಳಿಗ್ಗೆ'
: e < 17
? 'ಮಧ್ಯಾಹ್ನ'
: e < 20
? 'ಸಂಜೆ'
: 'ರಾತ್ರಿ';
},
dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
ordinal: function (e) {
return e + 'ನೇ';
},
week: { dow: 0, doy: 6 },
});
})(i(30381));
},
33730: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('ko', {
months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
'_'
),
monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
'_'
),
weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split(
'_'
),
weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
longDateFormat: {
LT: 'A h:mm',
LTS: 'A h:mm:ss',
L: 'YYYY.MM.DD.',
LL: 'YYYY년 MMMM D일',
LLL: 'YYYY년 MMMM D일 A h:mm',
LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
l: 'YYYY.MM.DD.',
ll: 'YYYY년 MMMM D일',
lll: 'YYYY년 MMMM D일 A h:mm',
llll: 'YYYY년 MMMM D일 dddd A h:mm',
},
calendar: {
sameDay: '오늘 LT',
nextDay: '내일 LT',
nextWeek: 'dddd LT',
lastDay: '어제 LT',
lastWeek: '지난주 dddd LT',
sameElse: 'L',
},
relativeTime: {
future: '%s 후',
past: '%s 전',
s: '몇 초',
ss: '%d초',
m: '1분',
mm: '%d분',
h: '한 시간',
hh: '%d시간',
d: '하루',
dd: '%d일',
M: '한 달',
MM: '%d달',
y: '일 년',
yy: '%d년',
},
dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
ordinal: function (e, t) {
switch (t) {
case 'd':
case 'D':
case 'DDD':
return e + '일';
case 'M':
return e + '월';
case 'w':
case 'W':
return e + '주';
default:
return e;
}
},
meridiemParse: /오전|오후/,
isPM: function (e) {
return '오후' === e;
},
meridiem: function (e, t, i) {
return e < 12 ? '오전' : '오후';
},
});
})(i(30381));
},
1408: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '١',
2: '٢',
3: '٣',
4: '٤',
5: '٥',
6: '٦',
7: '٧',
8: '٨',
9: '٩',
0: '٠',
},
i = {
'١': '1',
'٢': '2',
'٣': '3',
'٤': '4',
'٥': '5',
'٦': '6',
'٧': '7',
'٨': '8',
'٩': '9',
'٠': '0',
},
n = [
'کانونی دووەم',
'شوبات',
'ئازار',
'نیسان',
'ئایار',
'حوزەیران',
'تەمموز',
'ئاب',
'ئەیلوول',
'تشرینی یەكەم',
'تشرینی دووەم',
'كانونی یەکەم',
];
e.defineLocale('ku', {
months: n,
monthsShort: n,
weekdays: 'یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه'.split(
'_'
),
weekdaysShort: 'یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه'.split(
'_'
),
weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
meridiemParse: /ئێواره|بهیانی/,
isPM: function (e) {
return /ئێواره/.test(e);
},
meridiem: function (e, t, i) {
return e < 12 ? 'بهیانی' : 'ئێواره';
},
calendar: {
sameDay: '[ئهمرۆ كاتژمێر] LT',
nextDay: '[بهیانی كاتژمێر] LT',
nextWeek: 'dddd [كاتژمێر] LT',
lastDay: '[دوێنێ كاتژمێر] LT',
lastWeek: 'dddd [كاتژمێر] LT',
sameElse: 'L',
},
relativeTime: {
future: 'له %s',
past: '%s',
s: 'چهند چركهیهك',
ss: 'چركه %d',
m: 'یهك خولهك',
mm: '%d خولهك',
h: 'یهك كاتژمێر',
hh: '%d كاتژمێر',
d: 'یهك ڕۆژ',
dd: '%d ڕۆژ',
M: 'یهك مانگ',
MM: '%d مانگ',
y: 'یهك ساڵ',
yy: '%d ساڵ',
},
preparse: function (e) {
return e
.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (e) {
return i[e];
})
.replace(/،/g, ',');
},
postformat: function (e) {
return e
.replace(/\d/g, function (e) {
return t[e];
})
.replace(/,/g, '،');
},
week: { dow: 6, doy: 12 },
});
})(i(30381));
},
33291: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
0: '-чү',
1: '-чи',
2: '-чи',
3: '-чү',
4: '-чү',
5: '-чи',
6: '-чы',
7: '-чи',
8: '-чи',
9: '-чу',
10: '-чу',
20: '-чы',
30: '-чу',
40: '-чы',
50: '-чү',
60: '-чы',
70: '-чи',
80: '-чи',
90: '-чу',
100: '-чү',
};
e.defineLocale('ky', {
months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
'_'
),
monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(
'_'
),
weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(
'_'
),
weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Бүгүн саат] LT',
nextDay: '[Эртең саат] LT',
nextWeek: 'dddd [саат] LT',
lastDay: '[Кечээ саат] LT',
lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
sameElse: 'L',
},
relativeTime: {
future: '%s ичинде',
past: '%s мурун',
s: 'бирнече секунд',
ss: '%d секунд',
m: 'бир мүнөт',
mm: '%d мүнөт',
h: 'бир саат',
hh: '%d саат',
d: 'бир күн',
dd: '%d күн',
M: 'бир ай',
MM: '%d ай',
y: 'бир жыл',
yy: '%d жыл',
},
dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
ordinal: function (e) {
return e + (t[e] || t[e % 10] || t[e >= 100 ? 100 : null]);
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
36841: function (e, t, i) {
!(function (e) {
'use strict';
function t(e, t, i, n) {
var r = {
m: ['eng Minutt', 'enger Minutt'],
h: ['eng Stonn', 'enger Stonn'],
d: ['een Dag', 'engem Dag'],
M: ['ee Mount', 'engem Mount'],
y: ['ee Joer', 'engem Joer'],
};
return t ? r[i][0] : r[i][1];
}
function i(e) {
if (((e = parseInt(e, 10)), isNaN(e))) return !1;
if (e < 0) return !0;
if (e < 10) return 4 <= e && e <= 7;
if (e < 100) {
var t = e % 10;
return i(0 === t ? e / 10 : t);
}
if (e < 1e4) {
for (; e >= 10; ) e /= 10;
return i(e);
}
return i((e /= 1e3));
}
e.defineLocale('lb', {
months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
'_'
),
monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
'_'
),
weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'H:mm [Auer]',
LTS: 'H:mm:ss [Auer]',
L: 'DD.MM.YYYY',
LL: 'D. MMMM YYYY',
LLL: 'D. MMMM YYYY H:mm [Auer]',
LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',
},
calendar: {
sameDay: '[Haut um] LT',
sameElse: 'L',
nextDay: '[Muer um] LT',
nextWeek: 'dddd [um] LT',
lastDay: '[Gëschter um] LT',
lastWeek: function () {
switch (this.day()) {
case 2:
case 4:
return '[Leschten] dddd [um] LT';
default:
return '[Leschte] dddd [um] LT';
}
},
},
relativeTime: {
future: function (e) {
return i(e.substr(0, e.indexOf(' '))) ? 'a ' + e : 'an ' + e;
},
past: function (e) {
return i(e.substr(0, e.indexOf(' ')))
? 'viru ' + e
: 'virun ' + e;
},
s: 'e puer Sekonnen',
ss: '%d Sekonnen',
m: t,
mm: '%d Minutten',
h: t,
hh: '%d Stonnen',
d: t,
dd: '%d Deeg',
M: t,
MM: '%d Méint',
y: t,
yy: '%d Joer',
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
55466: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('lo', {
months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
'_'
),
monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
'_'
),
weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'ວັນdddd D MMMM YYYY HH:mm',
},
meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
isPM: function (e) {
return 'ຕອນແລງ' === e;
},
meridiem: function (e, t, i) {
return e < 12 ? 'ຕອນເຊົ້າ' : 'ຕອນແລງ';
},
calendar: {
sameDay: '[ມື້ນີ້ເວລາ] LT',
nextDay: '[ມື້ອື່ນເວລາ] LT',
nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
lastDay: '[ມື້ວານນີ້ເວລາ] LT',
lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
sameElse: 'L',
},
relativeTime: {
future: 'ອີກ %s',
past: '%sຜ່ານມາ',
s: 'ບໍ່ເທົ່າໃດວິນາທີ',
ss: '%d ວິນາທີ',
m: '1 ນາທີ',
mm: '%d ນາທີ',
h: '1 ຊົ່ວໂມງ',
hh: '%d ຊົ່ວໂມງ',
d: '1 ມື້',
dd: '%d ມື້',
M: '1 ເດືອນ',
MM: '%d ເດືອນ',
y: '1 ປີ',
yy: '%d ປີ',
},
dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
ordinal: function (e) {
return 'ທີ່' + e;
},
});
})(i(30381));
},
57010: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
ss: 'sekundė_sekundžių_sekundes',
m: 'minutė_minutės_minutę',
mm: 'minutės_minučių_minutes',
h: 'valanda_valandos_valandą',
hh: 'valandos_valandų_valandas',
d: 'diena_dienos_dieną',
dd: 'dienos_dienų_dienas',
M: 'mėnuo_mėnesio_mėnesį',
MM: 'mėnesiai_mėnesių_mėnesius',
y: 'metai_metų_metus',
yy: 'metai_metų_metus',
};
function i(e, t, i, n) {
return t ? r(i)[0] : n ? r(i)[1] : r(i)[2];
}
function n(e) {
return e % 10 == 0 || (e > 10 && e < 20);
}
function r(e) {
return t[e].split('_');
}
function s(e, t, s, o) {
var a = e + ' ';
return 1 === e
? a + i(0, t, s[0], o)
: t
? a + (n(e) ? r(s)[1] : r(s)[0])
: o
? a + r(s)[1]
: a + (n(e) ? r(s)[1] : r(s)[2]);
}
e.defineLocale('lt', {
months: {
format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(
'_'
),
standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
'_'
),
isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,
},
monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split(
'_'
),
weekdays: {
format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
'_'
),
standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
'_'
),
isFormat: /dddd HH:mm/,
},
weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'YYYY-MM-DD',
LL: 'YYYY [m.] MMMM D [d.]',
LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
l: 'YYYY-MM-DD',
ll: 'YYYY [m.] MMMM D [d.]',
lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',
},
calendar: {
sameDay: '[Šiandien] LT',
nextDay: '[Rytoj] LT',
nextWeek: 'dddd LT',
lastDay: '[Vakar] LT',
lastWeek: '[Praėjusį] dddd LT',
sameElse: 'L',
},
relativeTime: {
future: 'po %s',
past: 'prieš %s',
s: function (e, t, i, n) {
return t
? 'kelios sekundės'
: n
? 'kelių sekundžių'
: 'kelias sekundes';
},
ss: s,
m: i,
mm: s,
h: i,
hh: s,
d: i,
dd: s,
M: i,
MM: s,
y: i,
yy: s,
},
dayOfMonthOrdinalParse: /\d{1,2}-oji/,
ordinal: function (e) {
return e + '-oji';
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
37595: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
h: 'stundas_stundām_stunda_stundas'.split('_'),
hh: 'stundas_stundām_stunda_stundas'.split('_'),
d: 'dienas_dienām_diena_dienas'.split('_'),
dd: 'dienas_dienām_diena_dienas'.split('_'),
M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
y: 'gada_gadiem_gads_gadi'.split('_'),
yy: 'gada_gadiem_gads_gadi'.split('_'),
};
function i(e, t, i) {
return i
? t % 10 == 1 && t % 100 != 11
? e[2]
: e[3]
: t % 10 == 1 && t % 100 != 11
? e[0]
: e[1];
}
function n(e, n, r) {
return e + ' ' + i(t[r], e, n);
}
function r(e, n, r) {
return i(t[r], e, n);
}
e.defineLocale('lv', {
months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(
'_'
),
monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split(
'_'
),
weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(
'_'
),
weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY.',
LL: 'YYYY. [gada] D. MMMM',
LLL: 'YYYY. [gada] D. MMMM, HH:mm',
LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',
},
calendar: {
sameDay: '[Šodien pulksten] LT',
nextDay: '[Rīt pulksten] LT',
nextWeek: 'dddd [pulksten] LT',
lastDay: '[Vakar pulksten] LT',
lastWeek: '[Pagājušā] dddd [pulksten] LT',
sameElse: 'L',
},
relativeTime: {
future: 'pēc %s',
past: 'pirms %s',
s: function (e, t) {
return t ? 'dažas sekundes' : 'dažām sekundēm';
},
ss: n,
m: r,
mm: n,
h: r,
hh: n,
d: r,
dd: n,
M: r,
MM: n,
y: r,
yy: n,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
39861: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
words: {
ss: ['sekund', 'sekunda', 'sekundi'],
m: ['jedan minut', 'jednog minuta'],
mm: ['minut', 'minuta', 'minuta'],
h: ['jedan sat', 'jednog sata'],
hh: ['sat', 'sata', 'sati'],
dd: ['dan', 'dana', 'dana'],
MM: ['mjesec', 'mjeseca', 'mjeseci'],
yy: ['godina', 'godine', 'godina'],
},
correctGrammaticalCase: function (e, t) {
return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2];
},
translate: function (e, i, n) {
var r = t.words[n];
return 1 === n.length
? i
? r[0]
: r[1]
: e + ' ' + t.correctGrammaticalCase(e, r);
},
};
e.defineLocale('me', {
months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
'_'
),
monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
'_'
),
weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D. MMMM YYYY',
LLL: 'D. MMMM YYYY H:mm',
LLLL: 'dddd, D. MMMM YYYY H:mm',
},
calendar: {
sameDay: '[danas u] LT',
nextDay: '[sjutra u] LT',
nextWeek: function () {
switch (this.day()) {
case 0:
return '[u] [nedjelju] [u] LT';
case 3:
return '[u] [srijedu] [u] LT';
case 6:
return '[u] [subotu] [u] LT';
case 1:
case 2:
case 4:
case 5:
return '[u] dddd [u] LT';
}
},
lastDay: '[juče u] LT',
lastWeek: function () {
return [
'[prošle] [nedjelje] [u] LT',
'[prošlog] [ponedjeljka] [u] LT',
'[prošlog] [utorka] [u] LT',
'[prošle] [srijede] [u] LT',
'[prošlog] [četvrtka] [u] LT',
'[prošlog] [petka] [u] LT',
'[prošle] [subote] [u] LT',
][this.day()];
},
sameElse: 'L',
},
relativeTime: {
future: 'za %s',
past: 'prije %s',
s: 'nekoliko sekundi',
ss: t.translate,
m: t.translate,
mm: t.translate,
h: t.translate,
hh: t.translate,
d: 'dan',
dd: t.translate,
M: 'mjesec',
MM: t.translate,
y: 'godinu',
yy: t.translate,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
35493: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('mi', {
months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split(
'_'
),
monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(
'_'
),
monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split(
'_'
),
weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY [i] HH:mm',
LLLL: 'dddd, D MMMM YYYY [i] HH:mm',
},
calendar: {
sameDay: '[i teie mahana, i] LT',
nextDay: '[apopo i] LT',
nextWeek: 'dddd [i] LT',
lastDay: '[inanahi i] LT',
lastWeek: 'dddd [whakamutunga i] LT',
sameElse: 'L',
},
relativeTime: {
future: 'i roto i %s',
past: '%s i mua',
s: 'te hēkona ruarua',
ss: '%d hēkona',
m: 'he meneti',
mm: '%d meneti',
h: 'te haora',
hh: '%d haora',
d: 'he ra',
dd: '%d ra',
M: 'he marama',
MM: '%d marama',
y: 'he tau',
yy: '%d tau',
},
dayOfMonthOrdinalParse: /\d{1,2}º/,
ordinal: '%dº',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
95966: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('mk', {
months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(
'_'
),
monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split(
'_'
),
weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(
'_'
),
weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'D.MM.YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY H:mm',
LLLL: 'dddd, D MMMM YYYY H:mm',
},
calendar: {
sameDay: '[Денес во] LT',
nextDay: '[Утре во] LT',
nextWeek: '[Во] dddd [во] LT',
lastDay: '[Вчера во] LT',
lastWeek: function () {
switch (this.day()) {
case 0:
case 3:
case 6:
return '[Изминатата] dddd [во] LT';
case 1:
case 2:
case 4:
case 5:
return '[Изминатиот] dddd [во] LT';
}
},
sameElse: 'L',
},
relativeTime: {
future: 'за %s',
past: 'пред %s',
s: 'неколку секунди',
ss: '%d секунди',
m: 'една минута',
mm: '%d минути',
h: 'еден час',
hh: '%d часа',
d: 'еден ден',
dd: '%d дена',
M: 'еден месец',
MM: '%d месеци',
y: 'една година',
yy: '%d години',
},
dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
ordinal: function (e) {
var t = e % 10,
i = e % 100;
return 0 === e
? e + '-ев'
: 0 === i
? e + '-ен'
: i > 10 && i < 20
? e + '-ти'
: 1 === t
? e + '-ви'
: 2 === t
? e + '-ри'
: 7 === t || 8 === t
? e + '-ми'
: e + '-ти';
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
87341: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('ml', {
months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(
'_'
),
monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(
'_'
),
weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split(
'_'
),
weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
longDateFormat: {
LT: 'A h:mm -നു',
LTS: 'A h:mm:ss -നു',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, A h:mm -നു',
LLLL: 'dddd, D MMMM YYYY, A h:mm -നു',
},
calendar: {
sameDay: '[ഇന്ന്] LT',
nextDay: '[നാളെ] LT',
nextWeek: 'dddd, LT',
lastDay: '[ഇന്നലെ] LT',
lastWeek: '[കഴിഞ്ഞ] dddd, LT',
sameElse: 'L',
},
relativeTime: {
future: '%s കഴിഞ്ഞ്',
past: '%s മുൻപ്',
s: 'അൽപ നിമിഷങ്ങൾ',
ss: '%d സെക്കൻഡ്',
m: 'ഒരു മിനിറ്റ്',
mm: '%d മിനിറ്റ്',
h: 'ഒരു മണിക്കൂർ',
hh: '%d മണിക്കൂർ',
d: 'ഒരു ദിവസം',
dd: '%d ദിവസം',
M: 'ഒരു മാസം',
MM: '%d മാസം',
y: 'ഒരു വർഷം',
yy: '%d വർഷം',
},
meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
('രാത്രി' === t && e >= 4) ||
'ഉച്ച കഴിഞ്ഞ്' === t ||
'വൈകുന്നേരം' === t
? e + 12
: e
);
},
meridiem: function (e, t, i) {
return e < 4
? 'രാത്രി'
: e < 12
? 'രാവിലെ'
: e < 17
? 'ഉച്ച കഴിഞ്ഞ്'
: e < 20
? 'വൈകുന്നേരം'
: 'രാത്രി';
},
});
})(i(30381));
},
5115: function (e, t, i) {
!(function (e) {
'use strict';
function t(e, t, i, n) {
switch (i) {
case 's':
return t ? 'хэдхэн секунд' : 'хэдхэн секундын';
case 'ss':
return e + (t ? ' секунд' : ' секундын');
case 'm':
case 'mm':
return e + (t ? ' минут' : ' минутын');
case 'h':
case 'hh':
return e + (t ? ' цаг' : ' цагийн');
case 'd':
case 'dd':
return e + (t ? ' өдөр' : ' өдрийн');
case 'M':
case 'MM':
return e + (t ? ' сар' : ' сарын');
case 'y':
case 'yy':
return e + (t ? ' жил' : ' жилийн');
default:
return e;
}
}
e.defineLocale('mn', {
months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(
'_'
),
monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'YYYY-MM-DD',
LL: 'YYYY оны MMMMын D',
LLL: 'YYYY оны MMMMын D HH:mm',
LLLL: 'dddd, YYYY оны MMMMын D HH:mm',
},
meridiemParse: /ҮӨ|ҮХ/i,
isPM: function (e) {
return 'ҮХ' === e;
},
meridiem: function (e, t, i) {
return e < 12 ? 'ҮӨ' : 'ҮХ';
},
calendar: {
sameDay: '[Өнөөдөр] LT',
nextDay: '[Маргааш] LT',
nextWeek: '[Ирэх] dddd LT',
lastDay: '[Өчигдөр] LT',
lastWeek: '[Өнгөрсөн] dddd LT',
sameElse: 'L',
},
relativeTime: {
future: '%s дараа',
past: '%s өмнө',
s: t,
ss: t,
m: t,
mm: t,
h: t,
hh: t,
d: t,
dd: t,
M: t,
MM: t,
y: t,
yy: t,
},
dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
ordinal: function (e, t) {
switch (t) {
case 'd':
case 'D':
case 'DDD':
return e + ' өдөр';
default:
return e;
}
},
});
})(i(30381));
},
10370: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '१',
2: '२',
3: '३',
4: '४',
5: '५',
6: '६',
7: '७',
8: '८',
9: '९',
0: '०',
},
i = {
'१': '1',
'२': '2',
'३': '3',
'४': '4',
'५': '5',
'६': '6',
'७': '7',
'८': '8',
'९': '9',
'०': '0',
};
function n(e, t, i, n) {
var r = '';
if (t)
switch (i) {
case 's':
r = 'काही सेकंद';
break;
case 'ss':
r = '%d सेकंद';
break;
case 'm':
r = 'एक मिनिट';
break;
case 'mm':
r = '%d मिनिटे';
break;
case 'h':
r = 'एक तास';
break;
case 'hh':
r = '%d तास';
break;
case 'd':
r = 'एक दिवस';
break;
case 'dd':
r = '%d दिवस';
break;
case 'M':
r = 'एक महिना';
break;
case 'MM':
r = '%d महिने';
break;
case 'y':
r = 'एक वर्ष';
break;
case 'yy':
r = '%d वर्षे';
}
else
switch (i) {
case 's':
r = 'काही सेकंदां';
break;
case 'ss':
r = '%d सेकंदां';
break;
case 'm':
r = 'एका मिनिटा';
break;
case 'mm':
r = '%d मिनिटां';
break;
case 'h':
r = 'एका तासा';
break;
case 'hh':
r = '%d तासां';
break;
case 'd':
r = 'एका दिवसा';
break;
case 'dd':
r = '%d दिवसां';
break;
case 'M':
r = 'एका महिन्या';
break;
case 'MM':
r = '%d महिन्यां';
break;
case 'y':
r = 'एका वर्षा';
break;
case 'yy':
r = '%d वर्षां';
}
return r.replace(/%d/i, e);
}
e.defineLocale('mr', {
months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
'_'
),
monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split(
'_'
),
weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
longDateFormat: {
LT: 'A h:mm वाजता',
LTS: 'A h:mm:ss वाजता',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, A h:mm वाजता',
LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',
},
calendar: {
sameDay: '[आज] LT',
nextDay: '[उद्या] LT',
nextWeek: 'dddd, LT',
lastDay: '[काल] LT',
lastWeek: '[मागील] dddd, LT',
sameElse: 'L',
},
relativeTime: {
future: '%sमध्ये',
past: '%sपूर्वी',
s: n,
ss: n,
m: n,
mm: n,
h: n,
hh: n,
d: n,
dd: n,
M: n,
MM: n,
y: n,
yy: n,
},
preparse: function (e) {
return e.replace(/[१२३४५६७८९०]/g, function (e) {
return i[e];
});
},
postformat: function (e) {
return e.replace(/\d/g, function (e) {
return t[e];
});
},
meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'पहाटे' === t || 'सकाळी' === t
? e
: 'दुपारी' === t || 'सायंकाळी' === t || 'रात्री' === t
? e >= 12
? e
: e + 12
: void 0
);
},
meridiem: function (e, t, i) {
return e >= 0 && e < 6
? 'पहाटे'
: e < 12
? 'सकाळी'
: e < 17
? 'दुपारी'
: e < 20
? 'सायंकाळी'
: 'रात्री';
},
week: { dow: 0, doy: 6 },
});
})(i(30381));
},
41237: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('ms-my', {
months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
'_'
),
monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split(
'_'
),
weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
longDateFormat: {
LT: 'HH.mm',
LTS: 'HH.mm.ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY [pukul] HH.mm',
LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
},
meridiemParse: /pagi|tengahari|petang|malam/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'pagi' === t
? e
: 'tengahari' === t
? e >= 11
? e
: e + 12
: 'petang' === t || 'malam' === t
? e + 12
: void 0
);
},
meridiem: function (e, t, i) {
return e < 11
? 'pagi'
: e < 15
? 'tengahari'
: e < 19
? 'petang'
: 'malam';
},
calendar: {
sameDay: '[Hari ini pukul] LT',
nextDay: '[Esok pukul] LT',
nextWeek: 'dddd [pukul] LT',
lastDay: '[Kelmarin pukul] LT',
lastWeek: 'dddd [lepas pukul] LT',
sameElse: 'L',
},
relativeTime: {
future: 'dalam %s',
past: '%s yang lepas',
s: 'beberapa saat',
ss: '%d saat',
m: 'seminit',
mm: '%d minit',
h: 'sejam',
hh: '%d jam',
d: 'sehari',
dd: '%d hari',
M: 'sebulan',
MM: '%d bulan',
y: 'setahun',
yy: '%d tahun',
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
9847: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('ms', {
months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
'_'
),
monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split(
'_'
),
weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
longDateFormat: {
LT: 'HH.mm',
LTS: 'HH.mm.ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY [pukul] HH.mm',
LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
},
meridiemParse: /pagi|tengahari|petang|malam/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'pagi' === t
? e
: 'tengahari' === t
? e >= 11
? e
: e + 12
: 'petang' === t || 'malam' === t
? e + 12
: void 0
);
},
meridiem: function (e, t, i) {
return e < 11
? 'pagi'
: e < 15
? 'tengahari'
: e < 19
? 'petang'
: 'malam';
},
calendar: {
sameDay: '[Hari ini pukul] LT',
nextDay: '[Esok pukul] LT',
nextWeek: 'dddd [pukul] LT',
lastDay: '[Kelmarin pukul] LT',
lastWeek: 'dddd [lepas pukul] LT',
sameElse: 'L',
},
relativeTime: {
future: 'dalam %s',
past: '%s yang lepas',
s: 'beberapa saat',
ss: '%d saat',
m: 'seminit',
mm: '%d minit',
h: 'sejam',
hh: '%d jam',
d: 'sehari',
dd: '%d hari',
M: 'sebulan',
MM: '%d bulan',
y: 'setahun',
yy: '%d tahun',
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
72126: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('mt', {
months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(
'_'
),
monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split(
'_'
),
weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(
'_'
),
weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Illum fil-]LT',
nextDay: '[Għada fil-]LT',
nextWeek: 'dddd [fil-]LT',
lastDay: '[Il-bieraħ fil-]LT',
lastWeek: 'dddd [li għadda] [fil-]LT',
sameElse: 'L',
},
relativeTime: {
future: 'f’ %s',
past: '%s ilu',
s: 'ftit sekondi',
ss: '%d sekondi',
m: 'minuta',
mm: '%d minuti',
h: 'siegħa',
hh: '%d siegħat',
d: 'ġurnata',
dd: '%d ġranet',
M: 'xahar',
MM: '%d xhur',
y: 'sena',
yy: '%d sni',
},
dayOfMonthOrdinalParse: /\d{1,2}º/,
ordinal: '%dº',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
56165: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '၁',
2: '၂',
3: '၃',
4: '၄',
5: '၅',
6: '၆',
7: '၇',
8: '၈',
9: '၉',
0: '၀',
},
i = {
'၁': '1',
'၂': '2',
'၃': '3',
'၄': '4',
'၅': '5',
'၆': '6',
'၇': '7',
'၈': '8',
'၉': '9',
'၀': '0',
};
e.defineLocale('my', {
months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(
'_'
),
monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split(
'_'
),
weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(
'_'
),
weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[ယနေ.] LT [မှာ]',
nextDay: '[မနက်ဖြန်] LT [မှာ]',
nextWeek: 'dddd LT [မှာ]',
lastDay: '[မနေ.က] LT [မှာ]',
lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
sameElse: 'L',
},
relativeTime: {
future: 'လာမည့် %s မှာ',
past: 'လွန်ခဲ့သော %s က',
s: 'စက္ကန်.အနည်းငယ်',
ss: '%d စက္ကန့်',
m: 'တစ်မိနစ်',
mm: '%d မိနစ်',
h: 'တစ်နာရီ',
hh: '%d နာရီ',
d: 'တစ်ရက်',
dd: '%d ရက်',
M: 'တစ်လ',
MM: '%d လ',
y: 'တစ်နှစ်',
yy: '%d နှစ်',
},
preparse: function (e) {
return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (e) {
return i[e];
});
},
postformat: function (e) {
return e.replace(/\d/g, function (e) {
return t[e];
});
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
64924: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('nb', {
months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
'_'
),
monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split(
'_'
),
weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D. MMMM YYYY',
LLL: 'D. MMMM YYYY [kl.] HH:mm',
LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
},
calendar: {
sameDay: '[i dag kl.] LT',
nextDay: '[i morgen kl.] LT',
nextWeek: 'dddd [kl.] LT',
lastDay: '[i går kl.] LT',
lastWeek: '[forrige] dddd [kl.] LT',
sameElse: 'L',
},
relativeTime: {
future: 'om %s',
past: '%s siden',
s: 'noen sekunder',
ss: '%d sekunder',
m: 'ett minutt',
mm: '%d minutter',
h: 'en time',
hh: '%d timer',
d: 'en dag',
dd: '%d dager',
w: 'en uke',
ww: '%d uker',
M: 'en måned',
MM: '%d måneder',
y: 'ett år',
yy: '%d år',
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
16744: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '१',
2: '२',
3: '३',
4: '४',
5: '५',
6: '६',
7: '७',
8: '८',
9: '९',
0: '०',
},
i = {
'१': '1',
'२': '2',
'३': '3',
'४': '4',
'५': '5',
'६': '6',
'७': '7',
'८': '8',
'९': '9',
'०': '0',
};
e.defineLocale('ne', {
months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(
'_'
),
monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(
'_'
),
weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'Aको h:mm बजे',
LTS: 'Aको h:mm:ss बजे',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, Aको h:mm बजे',
LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',
},
preparse: function (e) {
return e.replace(/[१२३४५६७८९०]/g, function (e) {
return i[e];
});
},
postformat: function (e) {
return e.replace(/\d/g, function (e) {
return t[e];
});
},
meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'राति' === t
? e < 4
? e
: e + 12
: 'बिहान' === t
? e
: 'दिउँसो' === t
? e >= 10
? e
: e + 12
: 'साँझ' === t
? e + 12
: void 0
);
},
meridiem: function (e, t, i) {
return e < 3
? 'राति'
: e < 12
? 'बिहान'
: e < 16
? 'दिउँसो'
: e < 20
? 'साँझ'
: 'राति';
},
calendar: {
sameDay: '[आज] LT',
nextDay: '[भोलि] LT',
nextWeek: '[आउँदो] dddd[,] LT',
lastDay: '[हिजो] LT',
lastWeek: '[गएको] dddd[,] LT',
sameElse: 'L',
},
relativeTime: {
future: '%sमा',
past: '%s अगाडि',
s: 'केही क्षण',
ss: '%d सेकेण्ड',
m: 'एक मिनेट',
mm: '%d मिनेट',
h: 'एक घण्टा',
hh: '%d घण्टा',
d: 'एक दिन',
dd: '%d दिन',
M: 'एक महिना',
MM: '%d महिना',
y: 'एक बर्ष',
yy: '%d बर्ष',
},
week: { dow: 0, doy: 6 },
});
})(i(30381));
},
59814: function (e, t, i) {
!(function (e) {
'use strict';
var t = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
'_'
),
i = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
n = [
/^jan/i,
/^feb/i,
/^maart|mrt.?$/i,
/^apr/i,
/^mei$/i,
/^jun[i.]?$/i,
/^jul[i.]?$/i,
/^aug/i,
/^sep/i,
/^okt/i,
/^nov/i,
/^dec/i,
],
r = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
e.defineLocale('nl-be', {
months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
'_'
),
monthsShort: function (e, n) {
return e ? (/-MMM-/.test(n) ? i[e.month()] : t[e.month()]) : t;
},
monthsRegex: r,
monthsShortRegex: r,
monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
monthsParse: n,
longMonthsParse: n,
shortMonthsParse: n,
weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
'_'
),
weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[vandaag om] LT',
nextDay: '[morgen om] LT',
nextWeek: 'dddd [om] LT',
lastDay: '[gisteren om] LT',
lastWeek: '[afgelopen] dddd [om] LT',
sameElse: 'L',
},
relativeTime: {
future: 'over %s',
past: '%s geleden',
s: 'een paar seconden',
ss: '%d seconden',
m: 'één minuut',
mm: '%d minuten',
h: 'één uur',
hh: '%d uur',
d: 'één dag',
dd: '%d dagen',
M: 'één maand',
MM: '%d maanden',
y: 'één jaar',
yy: '%d jaar',
},
dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
ordinal: function (e) {
return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de');
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
93901: function (e, t, i) {
!(function (e) {
'use strict';
var t = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
'_'
),
i = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
n = [
/^jan/i,
/^feb/i,
/^maart|mrt.?$/i,
/^apr/i,
/^mei$/i,
/^jun[i.]?$/i,
/^jul[i.]?$/i,
/^aug/i,
/^sep/i,
/^okt/i,
/^nov/i,
/^dec/i,
],
r = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
e.defineLocale('nl', {
months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
'_'
),
monthsShort: function (e, n) {
return e ? (/-MMM-/.test(n) ? i[e.month()] : t[e.month()]) : t;
},
monthsRegex: r,
monthsShortRegex: r,
monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
monthsParse: n,
longMonthsParse: n,
shortMonthsParse: n,
weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
'_'
),
weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD-MM-YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[vandaag om] LT',
nextDay: '[morgen om] LT',
nextWeek: 'dddd [om] LT',
lastDay: '[gisteren om] LT',
lastWeek: '[afgelopen] dddd [om] LT',
sameElse: 'L',
},
relativeTime: {
future: 'over %s',
past: '%s geleden',
s: 'een paar seconden',
ss: '%d seconden',
m: 'één minuut',
mm: '%d minuten',
h: 'één uur',
hh: '%d uur',
d: 'één dag',
dd: '%d dagen',
w: 'één week',
ww: '%d weken',
M: 'één maand',
MM: '%d maanden',
y: 'één jaar',
yy: '%d jaar',
},
dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
ordinal: function (e) {
return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de');
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
83877: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('nn', {
months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
'_'
),
monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split(
'_'
),
weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D. MMMM YYYY',
LLL: 'D. MMMM YYYY [kl.] H:mm',
LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
},
calendar: {
sameDay: '[I dag klokka] LT',
nextDay: '[I morgon klokka] LT',
nextWeek: 'dddd [klokka] LT',
lastDay: '[I går klokka] LT',
lastWeek: '[Føregåande] dddd [klokka] LT',
sameElse: 'L',
},
relativeTime: {
future: 'om %s',
past: '%s sidan',
s: 'nokre sekund',
ss: '%d sekund',
m: 'eit minutt',
mm: '%d minutt',
h: 'ein time',
hh: '%d timar',
d: 'ein dag',
dd: '%d dagar',
w: 'ei veke',
ww: '%d veker',
M: 'ein månad',
MM: '%d månader',
y: 'eit år',
yy: '%d år',
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
92135: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('oc-lnc', {
months: {
standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
'_'
),
format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split(
'_'
),
isFormat: /D[oD]?(\s)+MMMM/,
},
monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
'_'
),
weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM [de] YYYY',
ll: 'D MMM YYYY',
LLL: 'D MMMM [de] YYYY [a] H:mm',
lll: 'D MMM YYYY, H:mm',
LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
llll: 'ddd D MMM YYYY, H:mm',
},
calendar: {
sameDay: '[uèi a] LT',
nextDay: '[deman a] LT',
nextWeek: 'dddd [a] LT',
lastDay: '[ièr a] LT',
lastWeek: 'dddd [passat a] LT',
sameElse: 'L',
},
relativeTime: {
future: "d'aquí %s",
past: 'fa %s',
s: 'unas segondas',
ss: '%d segondas',
m: 'una minuta',
mm: '%d minutas',
h: 'una ora',
hh: '%d oras',
d: 'un jorn',
dd: '%d jorns',
M: 'un mes',
MM: '%d meses',
y: 'un an',
yy: '%d ans',
},
dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
ordinal: function (e, t) {
var i =
1 === e
? 'r'
: 2 === e
? 'n'
: 3 === e
? 'r'
: 4 === e
? 't'
: 'è';
return ('w' !== t && 'W' !== t) || (i = 'a'), e + i;
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
15858: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '੧',
2: '੨',
3: '੩',
4: '੪',
5: '੫',
6: '੬',
7: '੭',
8: '੮',
9: '੯',
0: '੦',
},
i = {
'੧': '1',
'੨': '2',
'੩': '3',
'੪': '4',
'੫': '5',
'੬': '6',
'੭': '7',
'੮': '8',
'੯': '9',
'੦': '0',
};
e.defineLocale('pa-in', {
months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
'_'
),
monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
'_'
),
weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(
'_'
),
weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
longDateFormat: {
LT: 'A h:mm ਵਜੇ',
LTS: 'A h:mm:ss ਵਜੇ',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',
},
calendar: {
sameDay: '[ਅਜ] LT',
nextDay: '[ਕਲ] LT',
nextWeek: '[ਅਗਲਾ] dddd, LT',
lastDay: '[ਕਲ] LT',
lastWeek: '[ਪਿਛਲੇ] dddd, LT',
sameElse: 'L',
},
relativeTime: {
future: '%s ਵਿੱਚ',
past: '%s ਪਿਛਲੇ',
s: 'ਕੁਝ ਸਕਿੰਟ',
ss: '%d ਸਕਿੰਟ',
m: 'ਇਕ ਮਿੰਟ',
mm: '%d ਮਿੰਟ',
h: 'ਇੱਕ ਘੰਟਾ',
hh: '%d ਘੰਟੇ',
d: 'ਇੱਕ ਦਿਨ',
dd: '%d ਦਿਨ',
M: 'ਇੱਕ ਮਹੀਨਾ',
MM: '%d ਮਹੀਨੇ',
y: 'ਇੱਕ ਸਾਲ',
yy: '%d ਸਾਲ',
},
preparse: function (e) {
return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (e) {
return i[e];
});
},
postformat: function (e) {
return e.replace(/\d/g, function (e) {
return t[e];
});
},
meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'ਰਾਤ' === t
? e < 4
? e
: e + 12
: 'ਸਵੇਰ' === t
? e
: 'ਦੁਪਹਿਰ' === t
? e >= 10
? e
: e + 12
: 'ਸ਼ਾਮ' === t
? e + 12
: void 0
);
},
meridiem: function (e, t, i) {
return e < 4
? 'ਰਾਤ'
: e < 10
? 'ਸਵੇਰ'
: e < 17
? 'ਦੁਪਹਿਰ'
: e < 20
? 'ਸ਼ਾਮ'
: 'ਰਾਤ';
},
week: { dow: 0, doy: 6 },
});
})(i(30381));
},
64495: function (e, t, i) {
!(function (e) {
'use strict';
var t = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(
'_'
),
i = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
'_'
),
n = [
/^sty/i,
/^lut/i,
/^mar/i,
/^kwi/i,
/^maj/i,
/^cze/i,
/^lip/i,
/^sie/i,
/^wrz/i,
/^paź/i,
/^lis/i,
/^gru/i,
];
function r(e) {
return e % 10 < 5 && e % 10 > 1 && ~~(e / 10) % 10 != 1;
}
function s(e, t, i) {
var n = e + ' ';
switch (i) {
case 'ss':
return n + (r(e) ? 'sekundy' : 'sekund');
case 'm':
return t ? 'minuta' : 'minutę';
case 'mm':
return n + (r(e) ? 'minuty' : 'minut');
case 'h':
return t ? 'godzina' : 'godzinę';
case 'hh':
return n + (r(e) ? 'godziny' : 'godzin');
case 'ww':
return n + (r(e) ? 'tygodnie' : 'tygodni');
case 'MM':
return n + (r(e) ? 'miesiące' : 'miesięcy');
case 'yy':
return n + (r(e) ? 'lata' : 'lat');
}
}
e.defineLocale('pl', {
months: function (e, n) {
return e ? (/D MMMM/.test(n) ? i[e.month()] : t[e.month()]) : t;
},
monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split(
'_'
),
monthsParse: n,
longMonthsParse: n,
shortMonthsParse: n,
weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split(
'_'
),
weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Dziś o] LT',
nextDay: '[Jutro o] LT',
nextWeek: function () {
switch (this.day()) {
case 0:
return '[W niedzielę o] LT';
case 2:
return '[We wtorek o] LT';
case 3:
return '[W środę o] LT';
case 6:
return '[W sobotę o] LT';
default:
return '[W] dddd [o] LT';
}
},
lastDay: '[Wczoraj o] LT',
lastWeek: function () {
switch (this.day()) {
case 0:
return '[W zeszłą niedzielę o] LT';
case 3:
return '[W zeszłą środę o] LT';
case 6:
return '[W zeszłą sobotę o] LT';
default:
return '[W zeszły] dddd [o] LT';
}
},
sameElse: 'L',
},
relativeTime: {
future: 'za %s',
past: '%s temu',
s: 'kilka sekund',
ss: s,
m: s,
mm: s,
h: s,
hh: s,
d: '1 dzień',
dd: '%d dni',
w: 'tydzień',
ww: s,
M: 'miesiąc',
MM: s,
y: 'rok',
yy: s,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
57971: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('pt-br', {
months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
'_'
),
monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split(
'_'
),
weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(
'_'
),
weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D [de] MMMM [de] YYYY',
LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
},
calendar: {
sameDay: '[Hoje às] LT',
nextDay: '[Amanhã às] LT',
nextWeek: 'dddd [às] LT',
lastDay: '[Ontem às] LT',
lastWeek: function () {
return 0 === this.day() || 6 === this.day()
? '[Último] dddd [às] LT'
: '[Última] dddd [às] LT';
},
sameElse: 'L',
},
relativeTime: {
future: 'em %s',
past: 'há %s',
s: 'poucos segundos',
ss: '%d segundos',
m: 'um minuto',
mm: '%d minutos',
h: 'uma hora',
hh: '%d horas',
d: 'um dia',
dd: '%d dias',
M: 'um mês',
MM: '%d meses',
y: 'um ano',
yy: '%d anos',
},
dayOfMonthOrdinalParse: /\d{1,2}º/,
ordinal: '%dº',
invalidDate: 'Data inválida',
});
})(i(30381));
},
89520: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('pt', {
months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
'_'
),
monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split(
'_'
),
weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
'_'
),
weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D [de] MMMM [de] YYYY',
LLL: 'D [de] MMMM [de] YYYY HH:mm',
LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',
},
calendar: {
sameDay: '[Hoje às] LT',
nextDay: '[Amanhã às] LT',
nextWeek: 'dddd [às] LT',
lastDay: '[Ontem às] LT',
lastWeek: function () {
return 0 === this.day() || 6 === this.day()
? '[Último] dddd [às] LT'
: '[Última] dddd [às] LT';
},
sameElse: 'L',
},
relativeTime: {
future: 'em %s',
past: 'há %s',
s: 'segundos',
ss: '%d segundos',
m: 'um minuto',
mm: '%d minutos',
h: 'uma hora',
hh: '%d horas',
d: 'um dia',
dd: '%d dias',
w: 'uma semana',
ww: '%d semanas',
M: 'um mês',
MM: '%d meses',
y: 'um ano',
yy: '%d anos',
},
dayOfMonthOrdinalParse: /\d{1,2}º/,
ordinal: '%dº',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
96459: function (e, t, i) {
!(function (e) {
'use strict';
function t(e, t, i) {
var n = ' ';
return (
(e % 100 >= 20 || (e >= 100 && e % 100 == 0)) && (n = ' de '),
e +
n +
{
ss: 'secunde',
mm: 'minute',
hh: 'ore',
dd: 'zile',
ww: 'săptămâni',
MM: 'luni',
yy: 'ani',
}[i]
);
}
e.defineLocale('ro', {
months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(
'_'
),
monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split(
'_'
),
weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY H:mm',
LLLL: 'dddd, D MMMM YYYY H:mm',
},
calendar: {
sameDay: '[azi la] LT',
nextDay: '[mâine la] LT',
nextWeek: 'dddd [la] LT',
lastDay: '[ieri la] LT',
lastWeek: '[fosta] dddd [la] LT',
sameElse: 'L',
},
relativeTime: {
future: 'peste %s',
past: '%s în urmă',
s: 'câteva secunde',
ss: t,
m: 'un minut',
mm: t,
h: 'o oră',
hh: t,
d: 'o zi',
dd: t,
w: 'o săptămână',
ww: t,
M: 'o lună',
MM: t,
y: 'un an',
yy: t,
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
21793: function (e, t, i) {
!(function (e) {
'use strict';
function t(e, t, i) {
return 'm' === i
? t
? 'минута'
: 'минуту'
: e +
' ' +
((n = +e),
(r = {
ss: t ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
mm: t ? 'минута_минуты_минут' : 'минуту_минуты_минут',
hh: 'час_часа_часов',
dd: 'день_дня_дней',
ww: 'неделя_недели_недель',
MM: 'месяц_месяца_месяцев',
yy: 'год_года_лет',
}[i].split('_')),
n % 10 == 1 && n % 100 != 11
? r[0]
: n % 10 >= 2 &&
n % 10 <= 4 &&
(n % 100 < 10 || n % 100 >= 20)
? r[1]
: r[2]);
var n, r;
}
var i = [
/^янв/i,
/^фев/i,
/^мар/i,
/^апр/i,
/^ма[йя]/i,
/^июн/i,
/^июл/i,
/^авг/i,
/^сен/i,
/^окт/i,
/^ноя/i,
/^дек/i,
];
e.defineLocale('ru', {
months: {
format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(
'_'
),
standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
'_'
),
},
monthsShort: {
format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(
'_'
),
standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(
'_'
),
},
weekdays: {
standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(
'_'
),
format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(
'_'
),
isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/,
},
weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
monthsParse: i,
longMonthsParse: i,
shortMonthsParse: i,
monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY г.',
LLL: 'D MMMM YYYY г., H:mm',
LLLL: 'dddd, D MMMM YYYY г., H:mm',
},
calendar: {
sameDay: '[Сегодня, в] LT',
nextDay: '[Завтра, в] LT',
lastDay: '[Вчера, в] LT',
nextWeek: function (e) {
if (e.week() === this.week())
return 2 === this.day()
? '[Во] dddd, [в] LT'
: '[В] dddd, [в] LT';
switch (this.day()) {
case 0:
return '[В следующее] dddd, [в] LT';
case 1:
case 2:
case 4:
return '[В следующий] dddd, [в] LT';
case 3:
case 5:
case 6:
return '[В следующую] dddd, [в] LT';
}
},
lastWeek: function (e) {
if (e.week() === this.week())
return 2 === this.day()
? '[Во] dddd, [в] LT'
: '[В] dddd, [в] LT';
switch (this.day()) {
case 0:
return '[В прошлое] dddd, [в] LT';
case 1:
case 2:
case 4:
return '[В прошлый] dddd, [в] LT';
case 3:
case 5:
case 6:
return '[В прошлую] dddd, [в] LT';
}
},
sameElse: 'L',
},
relativeTime: {
future: 'через %s',
past: '%s назад',
s: 'несколько секунд',
ss: t,
m: t,
mm: t,
h: 'час',
hh: t,
d: 'день',
dd: t,
w: 'неделя',
ww: t,
M: 'месяц',
MM: t,
y: 'год',
yy: t,
},
meridiemParse: /ночи|утра|дня|вечера/i,
isPM: function (e) {
return /^(дня|вечера)$/.test(e);
},
meridiem: function (e, t, i) {
return e < 4
? 'ночи'
: e < 12
? 'утра'
: e < 17
? 'дня'
: 'вечера';
},
dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
ordinal: function (e, t) {
switch (t) {
case 'M':
case 'd':
case 'DDD':
return e + '-й';
case 'D':
return e + '-го';
case 'w':
case 'W':
return e + '-я';
default:
return e;
}
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
40950: function (e, t, i) {
!(function (e) {
'use strict';
var t = [
'جنوري',
'فيبروري',
'مارچ',
'اپريل',
'مئي',
'جون',
'جولاءِ',
'آگسٽ',
'سيپٽمبر',
'آڪٽوبر',
'نومبر',
'ڊسمبر',
],
i = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
e.defineLocale('sd', {
months: t,
monthsShort: t,
weekdays: i,
weekdaysShort: i,
weekdaysMin: i,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd، D MMMM YYYY HH:mm',
},
meridiemParse: /صبح|شام/,
isPM: function (e) {
return 'شام' === e;
},
meridiem: function (e, t, i) {
return e < 12 ? 'صبح' : 'شام';
},
calendar: {
sameDay: '[اڄ] LT',
nextDay: '[سڀاڻي] LT',
nextWeek: 'dddd [اڳين هفتي تي] LT',
lastDay: '[ڪالهه] LT',
lastWeek: '[گزريل هفتي] dddd [تي] LT',
sameElse: 'L',
},
relativeTime: {
future: '%s پوء',
past: '%s اڳ',
s: 'چند سيڪنڊ',
ss: '%d سيڪنڊ',
m: 'هڪ منٽ',
mm: '%d منٽ',
h: 'هڪ ڪلاڪ',
hh: '%d ڪلاڪ',
d: 'هڪ ڏينهن',
dd: '%d ڏينهن',
M: 'هڪ مهينو',
MM: '%d مهينا',
y: 'هڪ سال',
yy: '%d سال',
},
preparse: function (e) {
return e.replace(/،/g, ',');
},
postformat: function (e) {
return e.replace(/,/g, '،');
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
10490: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('se', {
months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split(
'_'
),
monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split(
'_'
),
weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(
'_'
),
weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'MMMM D. [b.] YYYY',
LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',
},
calendar: {
sameDay: '[otne ti] LT',
nextDay: '[ihttin ti] LT',
nextWeek: 'dddd [ti] LT',
lastDay: '[ikte ti] LT',
lastWeek: '[ovddit] dddd [ti] LT',
sameElse: 'L',
},
relativeTime: {
future: '%s geažes',
past: 'maŋit %s',
s: 'moadde sekunddat',
ss: '%d sekunddat',
m: 'okta minuhta',
mm: '%d minuhtat',
h: 'okta diimmu',
hh: '%d diimmut',
d: 'okta beaivi',
dd: '%d beaivvit',
M: 'okta mánnu',
MM: '%d mánut',
y: 'okta jahki',
yy: '%d jagit',
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
90124: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('si', {
months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(
'_'
),
monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(
'_'
),
weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(
'_'
),
weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන'.split('_'),
weekdaysMin: 'ඉ_ස_අ_බ_බ්ර_සි_සෙ'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'a h:mm',
LTS: 'a h:mm:ss',
L: 'YYYY/MM/DD',
LL: 'YYYY MMMM D',
LLL: 'YYYY MMMM D, a h:mm',
LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',
},
calendar: {
sameDay: '[අද] LT[ට]',
nextDay: '[හෙට] LT[ට]',
nextWeek: 'dddd LT[ට]',
lastDay: '[ඊයේ] LT[ට]',
lastWeek: '[පසුගිය] dddd LT[ට]',
sameElse: 'L',
},
relativeTime: {
future: '%sකින්',
past: '%sකට පෙර',
s: 'තත්පර කිහිපය',
ss: 'තත්පර %d',
m: 'මිනිත්තුව',
mm: 'මිනිත්තු %d',
h: 'පැය',
hh: 'පැය %d',
d: 'දිනය',
dd: 'දින %d',
M: 'මාසය',
MM: 'මාස %d',
y: 'වසර',
yy: 'වසර %d',
},
dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
ordinal: function (e) {
return e + ' වැනි';
},
meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
isPM: function (e) {
return 'ප.ව.' === e || 'පස් වරු' === e;
},
meridiem: function (e, t, i) {
return e > 11
? i
? 'ප.ව.'
: 'පස් වරු'
: i
? 'පෙ.ව.'
: 'පෙර වරු';
},
});
})(i(30381));
},
64249: function (e, t, i) {
!(function (e) {
'use strict';
var t = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(
'_'
),
i = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
function n(e) {
return e > 1 && e < 5;
}
function r(e, t, i, r) {
var s = e + ' ';
switch (i) {
case 's':
return t || r ? 'pár sekúnd' : 'pár sekundami';
case 'ss':
return t || r
? s + (n(e) ? 'sekundy' : 'sekúnd')
: s + 'sekundami';
case 'm':
return t ? 'minúta' : r ? 'minútu' : 'minútou';
case 'mm':
return t || r
? s + (n(e) ? 'minúty' : 'minút')
: s + 'minútami';
case 'h':
return t ? 'hodina' : r ? 'hodinu' : 'hodinou';
case 'hh':
return t || r
? s + (n(e) ? 'hodiny' : 'hodín')
: s + 'hodinami';
case 'd':
return t || r ? 'deň' : 'dňom';
case 'dd':
return t || r ? s + (n(e) ? 'dni' : 'dní') : s + 'dňami';
case 'M':
return t || r ? 'mesiac' : 'mesiacom';
case 'MM':
return t || r
? s + (n(e) ? 'mesiace' : 'mesiacov')
: s + 'mesiacmi';
case 'y':
return t || r ? 'rok' : 'rokom';
case 'yy':
return t || r ? s + (n(e) ? 'roky' : 'rokov') : s + 'rokmi';
}
}
e.defineLocale('sk', {
months: t,
monthsShort: i,
weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split(
'_'
),
weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D. MMMM YYYY',
LLL: 'D. MMMM YYYY H:mm',
LLLL: 'dddd D. MMMM YYYY H:mm',
},
calendar: {
sameDay: '[dnes o] LT',
nextDay: '[zajtra o] LT',
nextWeek: function () {
switch (this.day()) {
case 0:
return '[v nedeľu o] LT';
case 1:
case 2:
return '[v] dddd [o] LT';
case 3:
return '[v stredu o] LT';
case 4:
return '[vo štvrtok o] LT';
case 5:
return '[v piatok o] LT';
case 6:
return '[v sobotu o] LT';
}
},
lastDay: '[včera o] LT',
lastWeek: function () {
switch (this.day()) {
case 0:
return '[minulú nedeľu o] LT';
case 1:
case 2:
return '[minulý] dddd [o] LT';
case 3:
return '[minulú stredu o] LT';
case 4:
case 5:
return '[minulý] dddd [o] LT';
case 6:
return '[minulú sobotu o] LT';
}
},
sameElse: 'L',
},
relativeTime: {
future: 'za %s',
past: 'pred %s',
s: r,
ss: r,
m: r,
mm: r,
h: r,
hh: r,
d: r,
dd: r,
M: r,
MM: r,
y: r,
yy: r,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
14985: function (e, t, i) {
!(function (e) {
'use strict';
function t(e, t, i, n) {
var r = e + ' ';
switch (i) {
case 's':
return t || n ? 'nekaj sekund' : 'nekaj sekundami';
case 'ss':
return (
r +
(1 === e
? t
? 'sekundo'
: 'sekundi'
: 2 === e
? t || n
? 'sekundi'
: 'sekundah'
: e < 5
? t || n
? 'sekunde'
: 'sekundah'
: 'sekund')
);
case 'm':
return t ? 'ena minuta' : 'eno minuto';
case 'mm':
return (
r +
(1 === e
? t
? 'minuta'
: 'minuto'
: 2 === e
? t || n
? 'minuti'
: 'minutama'
: e < 5
? t || n
? 'minute'
: 'minutami'
: t || n
? 'minut'
: 'minutami')
);
case 'h':
return t ? 'ena ura' : 'eno uro';
case 'hh':
return (
r +
(1 === e
? t
? 'ura'
: 'uro'
: 2 === e
? t || n
? 'uri'
: 'urama'
: e < 5
? t || n
? 'ure'
: 'urami'
: t || n
? 'ur'
: 'urami')
);
case 'd':
return t || n ? 'en dan' : 'enim dnem';
case 'dd':
return (
r +
(1 === e
? t || n
? 'dan'
: 'dnem'
: 2 === e
? t || n
? 'dni'
: 'dnevoma'
: t || n
? 'dni'
: 'dnevi')
);
case 'M':
return t || n ? 'en mesec' : 'enim mesecem';
case 'MM':
return (
r +
(1 === e
? t || n
? 'mesec'
: 'mesecem'
: 2 === e
? t || n
? 'meseca'
: 'mesecema'
: e < 5
? t || n
? 'mesece'
: 'meseci'
: t || n
? 'mesecev'
: 'meseci')
);
case 'y':
return t || n ? 'eno leto' : 'enim letom';
case 'yy':
return (
r +
(1 === e
? t || n
? 'leto'
: 'letom'
: 2 === e
? t || n
? 'leti'
: 'letoma'
: e < 5
? t || n
? 'leta'
: 'leti'
: t || n
? 'let'
: 'leti')
);
}
}
e.defineLocale('sl', {
months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(
'_'
),
monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split(
'_'
),
weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD. MM. YYYY',
LL: 'D. MMMM YYYY',
LLL: 'D. MMMM YYYY H:mm',
LLLL: 'dddd, D. MMMM YYYY H:mm',
},
calendar: {
sameDay: '[danes ob] LT',
nextDay: '[jutri ob] LT',
nextWeek: function () {
switch (this.day()) {
case 0:
return '[v] [nedeljo] [ob] LT';
case 3:
return '[v] [sredo] [ob] LT';
case 6:
return '[v] [soboto] [ob] LT';
case 1:
case 2:
case 4:
case 5:
return '[v] dddd [ob] LT';
}
},
lastDay: '[včeraj ob] LT',
lastWeek: function () {
switch (this.day()) {
case 0:
return '[prejšnjo] [nedeljo] [ob] LT';
case 3:
return '[prejšnjo] [sredo] [ob] LT';
case 6:
return '[prejšnjo] [soboto] [ob] LT';
case 1:
case 2:
case 4:
case 5:
return '[prejšnji] dddd [ob] LT';
}
},
sameElse: 'L',
},
relativeTime: {
future: 'čez %s',
past: 'pred %s',
s: t,
ss: t,
m: t,
mm: t,
h: t,
hh: t,
d: t,
dd: t,
M: t,
MM: t,
y: t,
yy: t,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
51104: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('sq', {
months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(
'_'
),
monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split(
'_'
),
weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(
'_'
),
weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
weekdaysParseExact: !0,
meridiemParse: /PD|MD/,
isPM: function (e) {
return 'M' === e.charAt(0);
},
meridiem: function (e, t, i) {
return e < 12 ? 'PD' : 'MD';
},
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Sot në] LT',
nextDay: '[Nesër në] LT',
nextWeek: 'dddd [në] LT',
lastDay: '[Dje në] LT',
lastWeek: 'dddd [e kaluar në] LT',
sameElse: 'L',
},
relativeTime: {
future: 'në %s',
past: '%s më parë',
s: 'disa sekonda',
ss: '%d sekonda',
m: 'një minutë',
mm: '%d minuta',
h: 'një orë',
hh: '%d orë',
d: 'një ditë',
dd: '%d ditë',
M: 'një muaj',
MM: '%d muaj',
y: 'një vit',
yy: '%d vite',
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
79915: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
words: {
ss: ['секунда', 'секунде', 'секунди'],
m: ['један минут', 'једне минуте'],
mm: ['минут', 'минуте', 'минута'],
h: ['један сат', 'једног сата'],
hh: ['сат', 'сата', 'сати'],
dd: ['дан', 'дана', 'дана'],
MM: ['месец', 'месеца', 'месеци'],
yy: ['година', 'године', 'година'],
},
correctGrammaticalCase: function (e, t) {
return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2];
},
translate: function (e, i, n) {
var r = t.words[n];
return 1 === n.length
? i
? r[0]
: r[1]
: e + ' ' + t.correctGrammaticalCase(e, r);
},
};
e.defineLocale('sr-cyrl', {
months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(
'_'
),
monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split(
'_'
),
weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'D. M. YYYY.',
LL: 'D. MMMM YYYY.',
LLL: 'D. MMMM YYYY. H:mm',
LLLL: 'dddd, D. MMMM YYYY. H:mm',
},
calendar: {
sameDay: '[данас у] LT',
nextDay: '[сутра у] LT',
nextWeek: function () {
switch (this.day()) {
case 0:
return '[у] [недељу] [у] LT';
case 3:
return '[у] [среду] [у] LT';
case 6:
return '[у] [суботу] [у] LT';
case 1:
case 2:
case 4:
case 5:
return '[у] dddd [у] LT';
}
},
lastDay: '[јуче у] LT',
lastWeek: function () {
return [
'[прошле] [недеље] [у] LT',
'[прошлог] [понедељка] [у] LT',
'[прошлог] [уторка] [у] LT',
'[прошле] [среде] [у] LT',
'[прошлог] [четвртка] [у] LT',
'[прошлог] [петка] [у] LT',
'[прошле] [суботе] [у] LT',
][this.day()];
},
sameElse: 'L',
},
relativeTime: {
future: 'за %s',
past: 'пре %s',
s: 'неколико секунди',
ss: t.translate,
m: t.translate,
mm: t.translate,
h: t.translate,
hh: t.translate,
d: 'дан',
dd: t.translate,
M: 'месец',
MM: t.translate,
y: 'годину',
yy: t.translate,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
49131: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
words: {
ss: ['sekunda', 'sekunde', 'sekundi'],
m: ['jedan minut', 'jedne minute'],
mm: ['minut', 'minute', 'minuta'],
h: ['jedan sat', 'jednog sata'],
hh: ['sat', 'sata', 'sati'],
dd: ['dan', 'dana', 'dana'],
MM: ['mesec', 'meseca', 'meseci'],
yy: ['godina', 'godine', 'godina'],
},
correctGrammaticalCase: function (e, t) {
return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2];
},
translate: function (e, i, n) {
var r = t.words[n];
return 1 === n.length
? i
? r[0]
: r[1]
: e + ' ' + t.correctGrammaticalCase(e, r);
},
};
e.defineLocale('sr', {
months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
'_'
),
monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
'_'
),
weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'D. M. YYYY.',
LL: 'D. MMMM YYYY.',
LLL: 'D. MMMM YYYY. H:mm',
LLLL: 'dddd, D. MMMM YYYY. H:mm',
},
calendar: {
sameDay: '[danas u] LT',
nextDay: '[sutra u] LT',
nextWeek: function () {
switch (this.day()) {
case 0:
return '[u] [nedelju] [u] LT';
case 3:
return '[u] [sredu] [u] LT';
case 6:
return '[u] [subotu] [u] LT';
case 1:
case 2:
case 4:
case 5:
return '[u] dddd [u] LT';
}
},
lastDay: '[juče u] LT',
lastWeek: function () {
return [
'[prošle] [nedelje] [u] LT',
'[prošlog] [ponedeljka] [u] LT',
'[prošlog] [utorka] [u] LT',
'[prošle] [srede] [u] LT',
'[prošlog] [četvrtka] [u] LT',
'[prošlog] [petka] [u] LT',
'[prošle] [subote] [u] LT',
][this.day()];
},
sameElse: 'L',
},
relativeTime: {
future: 'za %s',
past: 'pre %s',
s: 'nekoliko sekundi',
ss: t.translate,
m: t.translate,
mm: t.translate,
h: t.translate,
hh: t.translate,
d: 'dan',
dd: t.translate,
M: 'mesec',
MM: t.translate,
y: 'godinu',
yy: t.translate,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
85893: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('ss', {
months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
'_'
),
monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split(
'_'
),
weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
'_'
),
weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'h:mm A',
LTS: 'h:mm:ss A',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY h:mm A',
LLLL: 'dddd, D MMMM YYYY h:mm A',
},
calendar: {
sameDay: '[Namuhla nga] LT',
nextDay: '[Kusasa nga] LT',
nextWeek: 'dddd [nga] LT',
lastDay: '[Itolo nga] LT',
lastWeek: 'dddd [leliphelile] [nga] LT',
sameElse: 'L',
},
relativeTime: {
future: 'nga %s',
past: 'wenteka nga %s',
s: 'emizuzwana lomcane',
ss: '%d mzuzwana',
m: 'umzuzu',
mm: '%d emizuzu',
h: 'lihora',
hh: '%d emahora',
d: 'lilanga',
dd: '%d emalanga',
M: 'inyanga',
MM: '%d tinyanga',
y: 'umnyaka',
yy: '%d iminyaka',
},
meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
meridiem: function (e, t, i) {
return e < 11
? 'ekuseni'
: e < 15
? 'emini'
: e < 19
? 'entsambama'
: 'ebusuku';
},
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'ekuseni' === t
? e
: 'emini' === t
? e >= 11
? e
: e + 12
: 'entsambama' === t || 'ebusuku' === t
? 0 === e
? 0
: e + 12
: void 0
);
},
dayOfMonthOrdinalParse: /\d{1,2}/,
ordinal: '%d',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
98760: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('sv', {
months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
'_'
),
monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split(
'_'
),
weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split(
'_'
),
weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'YYYY-MM-DD',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY [kl.] HH:mm',
LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
lll: 'D MMM YYYY HH:mm',
llll: 'ddd D MMM YYYY HH:mm',
},
calendar: {
sameDay: '[Idag] LT',
nextDay: '[Imorgon] LT',
lastDay: '[Igår] LT',
nextWeek: '[På] dddd LT',
lastWeek: '[I] dddd[s] LT',
sameElse: 'L',
},
relativeTime: {
future: 'om %s',
past: 'för %s sedan',
s: 'några sekunder',
ss: '%d sekunder',
m: 'en minut',
mm: '%d minuter',
h: 'en timme',
hh: '%d timmar',
d: 'en dag',
dd: '%d dagar',
M: 'en månad',
MM: '%d månader',
y: 'ett år',
yy: '%d år',
},
dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
ordinal: function (e) {
var t = e % 10;
return (
e +
(1 == ~~((e % 100) / 10)
? ':e'
: 1 === t || 2 === t
? ':a'
: ':e')
);
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
91172: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('sw', {
months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
'_'
),
monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split(
'_'
),
weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(
'_'
),
weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'hh:mm A',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[leo saa] LT',
nextDay: '[kesho saa] LT',
nextWeek: '[wiki ijayo] dddd [saat] LT',
lastDay: '[jana] LT',
lastWeek: '[wiki iliyopita] dddd [saat] LT',
sameElse: 'L',
},
relativeTime: {
future: '%s baadaye',
past: 'tokea %s',
s: 'hivi punde',
ss: 'sekunde %d',
m: 'dakika moja',
mm: 'dakika %d',
h: 'saa limoja',
hh: 'masaa %d',
d: 'siku moja',
dd: 'siku %d',
M: 'mwezi mmoja',
MM: 'miezi %d',
y: 'mwaka mmoja',
yy: 'miaka %d',
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
27333: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: '௧',
2: '௨',
3: '௩',
4: '௪',
5: '௫',
6: '௬',
7: '௭',
8: '௮',
9: '௯',
0: '௦',
},
i = {
'௧': '1',
'௨': '2',
'௩': '3',
'௪': '4',
'௫': '5',
'௬': '6',
'௭': '7',
'௮': '8',
'௯': '9',
'௦': '0',
};
e.defineLocale('ta', {
months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
'_'
),
monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
'_'
),
weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(
'_'
),
weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(
'_'
),
weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, HH:mm',
LLLL: 'dddd, D MMMM YYYY, HH:mm',
},
calendar: {
sameDay: '[இன்று] LT',
nextDay: '[நாளை] LT',
nextWeek: 'dddd, LT',
lastDay: '[நேற்று] LT',
lastWeek: '[கடந்த வாரம்] dddd, LT',
sameElse: 'L',
},
relativeTime: {
future: '%s இல்',
past: '%s முன்',
s: 'ஒரு சில விநாடிகள்',
ss: '%d விநாடிகள்',
m: 'ஒரு நிமிடம்',
mm: '%d நிமிடங்கள்',
h: 'ஒரு மணி நேரம்',
hh: '%d மணி நேரம்',
d: 'ஒரு நாள்',
dd: '%d நாட்கள்',
M: 'ஒரு மாதம்',
MM: '%d மாதங்கள்',
y: 'ஒரு வருடம்',
yy: '%d ஆண்டுகள்',
},
dayOfMonthOrdinalParse: /\d{1,2}வது/,
ordinal: function (e) {
return e + 'வது';
},
preparse: function (e) {
return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (e) {
return i[e];
});
},
postformat: function (e) {
return e.replace(/\d/g, function (e) {
return t[e];
});
},
meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
meridiem: function (e, t, i) {
return e < 2
? ' யாமம்'
: e < 6
? ' வைகறை'
: e < 10
? ' காலை'
: e < 14
? ' நண்பகல்'
: e < 18
? ' எற்பாடு'
: e < 22
? ' மாலை'
: ' யாமம்';
},
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'யாமம்' === t
? e < 2
? e
: e + 12
: 'வைகறை' === t ||
'காலை' === t ||
('நண்பகல்' === t && e >= 10)
? e
: e + 12
);
},
week: { dow: 0, doy: 6 },
});
})(i(30381));
},
23110: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('te', {
months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(
'_'
),
monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(
'_'
),
weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
longDateFormat: {
LT: 'A h:mm',
LTS: 'A h:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, A h:mm',
LLLL: 'dddd, D MMMM YYYY, A h:mm',
},
calendar: {
sameDay: '[నేడు] LT',
nextDay: '[రేపు] LT',
nextWeek: 'dddd, LT',
lastDay: '[నిన్న] LT',
lastWeek: '[గత] dddd, LT',
sameElse: 'L',
},
relativeTime: {
future: '%s లో',
past: '%s క్రితం',
s: 'కొన్ని క్షణాలు',
ss: '%d సెకన్లు',
m: 'ఒక నిమిషం',
mm: '%d నిమిషాలు',
h: 'ఒక గంట',
hh: '%d గంటలు',
d: 'ఒక రోజు',
dd: '%d రోజులు',
M: 'ఒక నెల',
MM: '%d నెలలు',
y: 'ఒక సంవత్సరం',
yy: '%d సంవత్సరాలు',
},
dayOfMonthOrdinalParse: /\d{1,2}వ/,
ordinal: '%dవ',
meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'రాత్రి' === t
? e < 4
? e
: e + 12
: 'ఉదయం' === t
? e
: 'మధ్యాహ్నం' === t
? e >= 10
? e
: e + 12
: 'సాయంత్రం' === t
? e + 12
: void 0
);
},
meridiem: function (e, t, i) {
return e < 4
? 'రాత్రి'
: e < 10
? 'ఉదయం'
: e < 17
? 'మధ్యాహ్నం'
: e < 20
? 'సాయంత్రం'
: 'రాత్రి';
},
week: { dow: 0, doy: 6 },
});
})(i(30381));
},
52095: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('tet', {
months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(
'_'
),
monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split(
'_'
),
weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split(
'_'
),
weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Ohin iha] LT',
nextDay: '[Aban iha] LT',
nextWeek: 'dddd [iha] LT',
lastDay: '[Horiseik iha] LT',
lastWeek: 'dddd [semana kotuk] [iha] LT',
sameElse: 'L',
},
relativeTime: {
future: 'iha %s',
past: '%s liuba',
s: 'segundu balun',
ss: 'segundu %d',
m: 'minutu ida',
mm: 'minutu %d',
h: 'oras ida',
hh: 'oras %d',
d: 'loron ida',
dd: 'loron %d',
M: 'fulan ida',
MM: 'fulan %d',
y: 'tinan ida',
yy: 'tinan %d',
},
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
ordinal: function (e) {
var t = e % 10;
return (
e +
(1 == ~~((e % 100) / 10)
? 'th'
: 1 === t
? 'st'
: 2 === t
? 'nd'
: 3 === t
? 'rd'
: 'th')
);
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
27321: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
0: '-ум',
1: '-ум',
2: '-юм',
3: '-юм',
4: '-ум',
5: '-ум',
6: '-ум',
7: '-ум',
8: '-ум',
9: '-ум',
10: '-ум',
12: '-ум',
13: '-ум',
20: '-ум',
30: '-юм',
40: '-ум',
50: '-ум',
60: '-ум',
70: '-ум',
80: '-ум',
90: '-ум',
100: '-ум',
};
e.defineLocale('tg', {
months: {
format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split(
'_'
),
standalone: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
'_'
),
},
monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split(
'_'
),
weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
'_'
),
weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[Имрӯз соати] LT',
nextDay: '[Фардо соати] LT',
lastDay: '[Дирӯз соати] LT',
nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
sameElse: 'L',
},
relativeTime: {
future: 'баъди %s',
past: '%s пеш',
s: 'якчанд сония',
m: 'як дақиқа',
mm: '%d дақиқа',
h: 'як соат',
hh: '%d соат',
d: 'як рӯз',
dd: '%d рӯз',
M: 'як моҳ',
MM: '%d моҳ',
y: 'як сол',
yy: '%d сол',
},
meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'шаб' === t
? e < 4
? e
: e + 12
: 'субҳ' === t
? e
: 'рӯз' === t
? e >= 11
? e
: e + 12
: 'бегоҳ' === t
? e + 12
: void 0
);
},
meridiem: function (e, t, i) {
return e < 4
? 'шаб'
: e < 11
? 'субҳ'
: e < 16
? 'рӯз'
: e < 19
? 'бегоҳ'
: 'шаб';
},
dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
ordinal: function (e) {
return e + (t[e] || t[e % 10] || t[e >= 100 ? 100 : null]);
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
9041: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('th', {
months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(
'_'
),
monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split(
'_'
),
weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split(
'_'
),
weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY เวลา H:mm',
LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',
},
meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
isPM: function (e) {
return 'หลังเที่ยง' === e;
},
meridiem: function (e, t, i) {
return e < 12 ? 'ก่อนเที่ยง' : 'หลังเที่ยง';
},
calendar: {
sameDay: '[วันนี้ เวลา] LT',
nextDay: '[พรุ่งนี้ เวลา] LT',
nextWeek: 'dddd[หน้า เวลา] LT',
lastDay: '[เมื่อวานนี้ เวลา] LT',
lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
sameElse: 'L',
},
relativeTime: {
future: 'อีก %s',
past: '%sที่แล้ว',
s: 'ไม่กี่วินาที',
ss: '%d วินาที',
m: '1 นาที',
mm: '%d นาที',
h: '1 ชั่วโมง',
hh: '%d ชั่วโมง',
d: '1 วัน',
dd: '%d วัน',
w: '1 สัปดาห์',
ww: '%d สัปดาห์',
M: '1 เดือน',
MM: '%d เดือน',
y: '1 ปี',
yy: '%d ปี',
},
});
})(i(30381));
},
19005: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: "'inji",
5: "'inji",
8: "'inji",
70: "'inji",
80: "'inji",
2: "'nji",
7: "'nji",
20: "'nji",
50: "'nji",
3: "'ünji",
4: "'ünji",
100: "'ünji",
6: "'njy",
9: "'unjy",
10: "'unjy",
30: "'unjy",
60: "'ynjy",
90: "'ynjy",
};
e.defineLocale('tk', {
months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(
'_'
),
monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split(
'_'
),
weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(
'_'
),
weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[bugün sagat] LT',
nextDay: '[ertir sagat] LT',
nextWeek: '[indiki] dddd [sagat] LT',
lastDay: '[düýn] LT',
lastWeek: '[geçen] dddd [sagat] LT',
sameElse: 'L',
},
relativeTime: {
future: '%s soň',
past: '%s öň',
s: 'birnäçe sekunt',
m: 'bir minut',
mm: '%d minut',
h: 'bir sagat',
hh: '%d sagat',
d: 'bir gün',
dd: '%d gün',
M: 'bir aý',
MM: '%d aý',
y: 'bir ýyl',
yy: '%d ýyl',
},
ordinal: function (e, i) {
switch (i) {
case 'd':
case 'D':
case 'Do':
case 'DD':
return e;
default:
if (0 === e) return e + "'unjy";
var n = e % 10;
return (
e + (t[n] || t[(e % 100) - n] || t[e >= 100 ? 100 : null])
);
}
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
75768: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('tl-ph', {
months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
'_'
),
monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split(
'_'
),
weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
'_'
),
weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'MM/D/YYYY',
LL: 'MMMM D, YYYY',
LLL: 'MMMM D, YYYY HH:mm',
LLLL: 'dddd, MMMM DD, YYYY HH:mm',
},
calendar: {
sameDay: 'LT [ngayong araw]',
nextDay: '[Bukas ng] LT',
nextWeek: 'LT [sa susunod na] dddd',
lastDay: 'LT [kahapon]',
lastWeek: 'LT [noong nakaraang] dddd',
sameElse: 'L',
},
relativeTime: {
future: 'sa loob ng %s',
past: '%s ang nakalipas',
s: 'ilang segundo',
ss: '%d segundo',
m: 'isang minuto',
mm: '%d minuto',
h: 'isang oras',
hh: '%d oras',
d: 'isang araw',
dd: '%d araw',
M: 'isang buwan',
MM: '%d buwan',
y: 'isang taon',
yy: '%d taon',
},
dayOfMonthOrdinalParse: /\d{1,2}/,
ordinal: function (e) {
return e;
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
89444: function (e, t, i) {
!(function (e) {
'use strict';
var t = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
function i(e, i, n, r) {
var s = (function (e) {
var i = Math.floor((e % 1e3) / 100),
n = Math.floor((e % 100) / 10),
r = e % 10,
s = '';
return (
i > 0 && (s += t[i] + 'vatlh'),
n > 0 && (s += ('' !== s ? ' ' : '') + t[n] + 'maH'),
r > 0 && (s += ('' !== s ? ' ' : '') + t[r]),
'' === s ? 'pagh' : s
);
})(e);
switch (n) {
case 'ss':
return s + ' lup';
case 'mm':
return s + ' tup';
case 'hh':
return s + ' rep';
case 'dd':
return s + ' jaj';
case 'MM':
return s + ' jar';
case 'yy':
return s + ' DIS';
}
}
e.defineLocale('tlh', {
months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split(
'_'
),
monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
'_'
),
weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
'_'
),
weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
'_'
),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[DaHjaj] LT',
nextDay: '[wa’leS] LT',
nextWeek: 'LLL',
lastDay: '[wa’Hu’] LT',
lastWeek: 'LLL',
sameElse: 'L',
},
relativeTime: {
future: function (e) {
var t = e;
return -1 !== e.indexOf('jaj')
? t.slice(0, -3) + 'leS'
: -1 !== e.indexOf('jar')
? t.slice(0, -3) + 'waQ'
: -1 !== e.indexOf('DIS')
? t.slice(0, -3) + 'nem'
: t + ' pIq';
},
past: function (e) {
var t = e;
return -1 !== e.indexOf('jaj')
? t.slice(0, -3) + 'Hu’'
: -1 !== e.indexOf('jar')
? t.slice(0, -3) + 'wen'
: -1 !== e.indexOf('DIS')
? t.slice(0, -3) + 'ben'
: t + ' ret';
},
s: 'puS lup',
ss: i,
m: 'wa’ tup',
mm: i,
h: 'wa’ rep',
hh: i,
d: 'wa’ jaj',
dd: i,
M: 'wa’ jar',
MM: i,
y: 'wa’ DIS',
yy: i,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
72397: function (e, t, i) {
!(function (e) {
'use strict';
var t = {
1: "'inci",
5: "'inci",
8: "'inci",
70: "'inci",
80: "'inci",
2: "'nci",
7: "'nci",
20: "'nci",
50: "'nci",
3: "'üncü",
4: "'üncü",
100: "'üncü",
6: "'ncı",
9: "'uncu",
10: "'uncu",
30: "'uncu",
60: "'ıncı",
90: "'ıncı",
};
e.defineLocale('tr', {
months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(
'_'
),
monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split(
'_'
),
weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(
'_'
),
weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
meridiem: function (e, t, i) {
return e < 12 ? (i ? 'öö' : 'ÖÖ') : i ? 'ös' : 'ÖS';
},
meridiemParse: /öö|ÖÖ|ös|ÖS/,
isPM: function (e) {
return 'ös' === e || 'ÖS' === e;
},
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[bugün saat] LT',
nextDay: '[yarın saat] LT',
nextWeek: '[gelecek] dddd [saat] LT',
lastDay: '[dün] LT',
lastWeek: '[geçen] dddd [saat] LT',
sameElse: 'L',
},
relativeTime: {
future: '%s sonra',
past: '%s önce',
s: 'birkaç saniye',
ss: '%d saniye',
m: 'bir dakika',
mm: '%d dakika',
h: 'bir saat',
hh: '%d saat',
d: 'bir gün',
dd: '%d gün',
w: 'bir hafta',
ww: '%d hafta',
M: 'bir ay',
MM: '%d ay',
y: 'bir yıl',
yy: '%d yıl',
},
ordinal: function (e, i) {
switch (i) {
case 'd':
case 'D':
case 'Do':
case 'DD':
return e;
default:
if (0 === e) return e + "'ıncı";
var n = e % 10;
return (
e + (t[n] || t[(e % 100) - n] || t[e >= 100 ? 100 : null])
);
}
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
28254: function (e, t, i) {
!(function (e) {
'use strict';
function t(e, t, i, n) {
var r = {
s: ['viensas secunds', "'iensas secunds"],
ss: [e + ' secunds', e + ' secunds'],
m: ["'n míut", "'iens míut"],
mm: [e + ' míuts', e + ' míuts'],
h: ["'n þora", "'iensa þora"],
hh: [e + ' þoras', e + ' þoras'],
d: ["'n ziua", "'iensa ziua"],
dd: [e + ' ziuas', e + ' ziuas'],
M: ["'n mes", "'iens mes"],
MM: [e + ' mesen', e + ' mesen'],
y: ["'n ar", "'iens ar"],
yy: [e + ' ars', e + ' ars'],
};
return n || t ? r[i][0] : r[i][1];
}
e.defineLocale('tzl', {
months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(
'_'
),
monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split(
'_'
),
weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split(
'_'
),
weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
longDateFormat: {
LT: 'HH.mm',
LTS: 'HH.mm.ss',
L: 'DD.MM.YYYY',
LL: 'D. MMMM [dallas] YYYY',
LLL: 'D. MMMM [dallas] YYYY HH.mm',
LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',
},
meridiemParse: /d\'o|d\'a/i,
isPM: function (e) {
return "d'o" === e.toLowerCase();
},
meridiem: function (e, t, i) {
return e > 11 ? (i ? "d'o" : "D'O") : i ? "d'a" : "D'A";
},
calendar: {
sameDay: '[oxhi à] LT',
nextDay: '[demà à] LT',
nextWeek: 'dddd [à] LT',
lastDay: '[ieiri à] LT',
lastWeek: '[sür el] dddd [lasteu à] LT',
sameElse: 'L',
},
relativeTime: {
future: 'osprei %s',
past: 'ja%s',
s: t,
ss: t,
m: t,
mm: t,
h: t,
hh: t,
d: t,
dd: t,
M: t,
MM: t,
y: t,
yy: t,
},
dayOfMonthOrdinalParse: /\d{1,2}\./,
ordinal: '%d.',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
30699: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('tzm-latn', {
months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
'_'
),
monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
'_'
),
weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split(
'_'
),
weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split(
'_'
),
weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split(
'_'
),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[asdkh g] LT',
nextDay: '[aska g] LT',
nextWeek: 'dddd [g] LT',
lastDay: '[assant g] LT',
lastWeek: 'dddd [g] LT',
sameElse: 'L',
},
relativeTime: {
future: 'dadkh s yan %s',
past: 'yan %s',
s: 'imik',
ss: '%d imik',
m: 'minuḍ',
mm: '%d minuḍ',
h: 'saɛa',
hh: '%d tassaɛin',
d: 'ass',
dd: '%d ossan',
M: 'ayowr',
MM: '%d iyyirn',
y: 'asgas',
yy: '%d isgasn',
},
week: { dow: 6, doy: 12 },
});
})(i(30381));
},
51106: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('tzm', {
months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
'_'
),
monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
'_'
),
weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split(
'_'
),
weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split(
'_'
),
weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split(
'_'
),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
nextWeek: 'dddd [ⴴ] LT',
lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
lastWeek: 'dddd [ⴴ] LT',
sameElse: 'L',
},
relativeTime: {
future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
past: 'ⵢⴰⵏ %s',
s: 'ⵉⵎⵉⴽ',
ss: '%d ⵉⵎⵉⴽ',
m: 'ⵎⵉⵏⵓⴺ',
mm: '%d ⵎⵉⵏⵓⴺ',
h: 'ⵙⴰⵄⴰ',
hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
d: 'ⴰⵙⵙ',
dd: '%d oⵙⵙⴰⵏ',
M: 'ⴰⵢoⵓⵔ',
MM: '%d ⵉⵢⵢⵉⵔⵏ',
y: 'ⴰⵙⴳⴰⵙ',
yy: '%d ⵉⵙⴳⴰⵙⵏ',
},
week: { dow: 6, doy: 12 },
});
})(i(30381));
},
9288: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('ug-cn', {
months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
'_'
),
monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
'_'
),
weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
'_'
),
weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'YYYY-MM-DD',
LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
},
meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'يېرىم كېچە' === t || 'سەھەر' === t || 'چۈشتىن بۇرۇن' === t
? e
: 'چۈشتىن كېيىن' === t || 'كەچ' === t
? e + 12
: e >= 11
? e
: e + 12
);
},
meridiem: function (e, t, i) {
var n = 100 * e + t;
return n < 600
? 'يېرىم كېچە'
: n < 900
? 'سەھەر'
: n < 1130
? 'چۈشتىن بۇرۇن'
: n < 1230
? 'چۈش'
: n < 1800
? 'چۈشتىن كېيىن'
: 'كەچ';
},
calendar: {
sameDay: '[بۈگۈن سائەت] LT',
nextDay: '[ئەتە سائەت] LT',
nextWeek: '[كېلەركى] dddd [سائەت] LT',
lastDay: '[تۆنۈگۈن] LT',
lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
sameElse: 'L',
},
relativeTime: {
future: '%s كېيىن',
past: '%s بۇرۇن',
s: 'نەچچە سېكونت',
ss: '%d سېكونت',
m: 'بىر مىنۇت',
mm: '%d مىنۇت',
h: 'بىر سائەت',
hh: '%d سائەت',
d: 'بىر كۈن',
dd: '%d كۈن',
M: 'بىر ئاي',
MM: '%d ئاي',
y: 'بىر يىل',
yy: '%d يىل',
},
dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
ordinal: function (e, t) {
switch (t) {
case 'd':
case 'D':
case 'DDD':
return e + '-كۈنى';
case 'w':
case 'W':
return e + '-ھەپتە';
default:
return e;
}
},
preparse: function (e) {
return e.replace(/،/g, ',');
},
postformat: function (e) {
return e.replace(/,/g, '،');
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
67691: function (e, t, i) {
!(function (e) {
'use strict';
function t(e, t, i) {
return 'm' === i
? t
? 'хвилина'
: 'хвилину'
: 'h' === i
? t
? 'година'
: 'годину'
: e +
' ' +
((n = +e),
(r = {
ss: t ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
mm: t ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
hh: t ? 'година_години_годин' : 'годину_години_годин',
dd: 'день_дні_днів',
MM: 'місяць_місяці_місяців',
yy: 'рік_роки_років',
}[i].split('_')),
n % 10 == 1 && n % 100 != 11
? r[0]
: n % 10 >= 2 &&
n % 10 <= 4 &&
(n % 100 < 10 || n % 100 >= 20)
? r[1]
: r[2]);
var n, r;
}
function i(e) {
return function () {
return e + 'о' + (11 === this.hours() ? 'б' : '') + '] LT';
};
}
e.defineLocale('uk', {
months: {
format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(
'_'
),
standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
'_'
),
},
monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(
'_'
),
weekdays: function (e, t) {
var i = {
nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
'_'
),
accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
'_'
),
genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
'_'
),
};
return !0 === e
? i.nominative.slice(1, 7).concat(i.nominative.slice(0, 1))
: e
? i[
/(\[[ВвУу]\]) ?dddd/.test(t)
? 'accusative'
: /\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)
? 'genitive'
: 'nominative'
][e.day()]
: i.nominative;
},
weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD.MM.YYYY',
LL: 'D MMMM YYYY р.',
LLL: 'D MMMM YYYY р., HH:mm',
LLLL: 'dddd, D MMMM YYYY р., HH:mm',
},
calendar: {
sameDay: i('[Сьогодні '),
nextDay: i('[Завтра '),
lastDay: i('[Вчора '),
nextWeek: i('[У] dddd ['),
lastWeek: function () {
switch (this.day()) {
case 0:
case 3:
case 5:
case 6:
return i('[Минулої] dddd [').call(this);
case 1:
case 2:
case 4:
return i('[Минулого] dddd [').call(this);
}
},
sameElse: 'L',
},
relativeTime: {
future: 'за %s',
past: '%s тому',
s: 'декілька секунд',
ss: t,
m: t,
mm: t,
h: 'годину',
hh: t,
d: 'день',
dd: t,
M: 'місяць',
MM: t,
y: 'рік',
yy: t,
},
meridiemParse: /ночі|ранку|дня|вечора/,
isPM: function (e) {
return /^(дня|вечора)$/.test(e);
},
meridiem: function (e, t, i) {
return e < 4
? 'ночі'
: e < 12
? 'ранку'
: e < 17
? 'дня'
: 'вечора';
},
dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
ordinal: function (e, t) {
switch (t) {
case 'M':
case 'd':
case 'DDD':
case 'w':
case 'W':
return e + '-й';
case 'D':
return e + '-го';
default:
return e;
}
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
13795: function (e, t, i) {
!(function (e) {
'use strict';
var t = [
'جنوری',
'فروری',
'مارچ',
'اپریل',
'مئی',
'جون',
'جولائی',
'اگست',
'ستمبر',
'اکتوبر',
'نومبر',
'دسمبر',
],
i = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
e.defineLocale('ur', {
months: t,
monthsShort: t,
weekdays: i,
weekdaysShort: i,
weekdaysMin: i,
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd، D MMMM YYYY HH:mm',
},
meridiemParse: /صبح|شام/,
isPM: function (e) {
return 'شام' === e;
},
meridiem: function (e, t, i) {
return e < 12 ? 'صبح' : 'شام';
},
calendar: {
sameDay: '[آج بوقت] LT',
nextDay: '[کل بوقت] LT',
nextWeek: 'dddd [بوقت] LT',
lastDay: '[گذشتہ روز بوقت] LT',
lastWeek: '[گذشتہ] dddd [بوقت] LT',
sameElse: 'L',
},
relativeTime: {
future: '%s بعد',
past: '%s قبل',
s: 'چند سیکنڈ',
ss: '%d سیکنڈ',
m: 'ایک منٹ',
mm: '%d منٹ',
h: 'ایک گھنٹہ',
hh: '%d گھنٹے',
d: 'ایک دن',
dd: '%d دن',
M: 'ایک ماہ',
MM: '%d ماہ',
y: 'ایک سال',
yy: '%d سال',
},
preparse: function (e) {
return e.replace(/،/g, ',');
},
postformat: function (e) {
return e.replace(/,/g, '،');
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
60588: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('uz-latn', {
months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
'_'
),
monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split(
'_'
),
weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
'_'
),
weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'D MMMM YYYY, dddd HH:mm',
},
calendar: {
sameDay: '[Bugun soat] LT [da]',
nextDay: '[Ertaga] LT [da]',
nextWeek: 'dddd [kuni soat] LT [da]',
lastDay: '[Kecha soat] LT [da]',
lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
sameElse: 'L',
},
relativeTime: {
future: 'Yaqin %s ichida',
past: 'Bir necha %s oldin',
s: 'soniya',
ss: '%d soniya',
m: 'bir daqiqa',
mm: '%d daqiqa',
h: 'bir soat',
hh: '%d soat',
d: 'bir kun',
dd: '%d kun',
M: 'bir oy',
MM: '%d oy',
y: 'bir yil',
yy: '%d yil',
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
6791: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('uz', {
months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
'_'
),
monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split(
'_'
),
weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split(
'_'
),
weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'D MMMM YYYY, dddd HH:mm',
},
calendar: {
sameDay: '[Бугун соат] LT [да]',
nextDay: '[Эртага] LT [да]',
nextWeek: 'dddd [куни соат] LT [да]',
lastDay: '[Кеча соат] LT [да]',
lastWeek: '[Утган] dddd [куни соат] LT [да]',
sameElse: 'L',
},
relativeTime: {
future: 'Якин %s ичида',
past: 'Бир неча %s олдин',
s: 'фурсат',
ss: '%d фурсат',
m: 'бир дакика',
mm: '%d дакика',
h: 'бир соат',
hh: '%d соат',
d: 'бир кун',
dd: '%d кун',
M: 'бир ой',
MM: '%d ой',
y: 'бир йил',
yy: '%d йил',
},
week: { dow: 1, doy: 7 },
});
})(i(30381));
},
65666: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('vi', {
months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split(
'_'
),
monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(
'_'
),
weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
weekdaysParseExact: !0,
meridiemParse: /sa|ch/i,
isPM: function (e) {
return /^ch$/i.test(e);
},
meridiem: function (e, t, i) {
return e < 12 ? (i ? 'sa' : 'SA') : i ? 'ch' : 'CH';
},
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM [năm] YYYY',
LLL: 'D MMMM [năm] YYYY HH:mm',
LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
l: 'DD/M/YYYY',
ll: 'D MMM YYYY',
lll: 'D MMM YYYY HH:mm',
llll: 'ddd, D MMM YYYY HH:mm',
},
calendar: {
sameDay: '[Hôm nay lúc] LT',
nextDay: '[Ngày mai lúc] LT',
nextWeek: 'dddd [tuần tới lúc] LT',
lastDay: '[Hôm qua lúc] LT',
lastWeek: 'dddd [tuần trước lúc] LT',
sameElse: 'L',
},
relativeTime: {
future: '%s tới',
past: '%s trước',
s: 'vài giây',
ss: '%d giây',
m: 'một phút',
mm: '%d phút',
h: 'một giờ',
hh: '%d giờ',
d: 'một ngày',
dd: '%d ngày',
w: 'một tuần',
ww: '%d tuần',
M: 'một tháng',
MM: '%d tháng',
y: 'một năm',
yy: '%d năm',
},
dayOfMonthOrdinalParse: /\d{1,2}/,
ordinal: function (e) {
return e;
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
14378: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('x-pseudo', {
months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split(
'_'
),
monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(
'_'
),
monthsParseExact: !0,
weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(
'_'
),
weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
weekdaysParseExact: !0,
longDateFormat: {
LT: 'HH:mm',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd, D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[T~ódá~ý át] LT',
nextDay: '[T~ómó~rró~w át] LT',
nextWeek: 'dddd [át] LT',
lastDay: '[Ý~ést~érdá~ý át] LT',
lastWeek: '[L~ást] dddd [át] LT',
sameElse: 'L',
},
relativeTime: {
future: 'í~ñ %s',
past: '%s á~gó',
s: 'á ~féw ~sécó~ñds',
ss: '%d s~écóñ~ds',
m: 'á ~míñ~úté',
mm: '%d m~íñú~tés',
h: 'á~ñ hó~úr',
hh: '%d h~óúrs',
d: 'á ~dáý',
dd: '%d d~áýs',
M: 'á ~móñ~th',
MM: '%d m~óñt~hs',
y: 'á ~ýéár',
yy: '%d ý~éárs',
},
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
ordinal: function (e) {
var t = e % 10;
return (
e +
(1 == ~~((e % 100) / 10)
? 'th'
: 1 === t
? 'st'
: 2 === t
? 'nd'
: 3 === t
? 'rd'
: 'th')
);
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
7198: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('yo', {
months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(
'_'
),
monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split(
'_'
),
weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
longDateFormat: {
LT: 'h:mm A',
LTS: 'h:mm:ss A',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY h:mm A',
LLLL: 'dddd, D MMMM YYYY h:mm A',
},
calendar: {
sameDay: '[Ònì ni] LT',
nextDay: '[Ọ̀la ni] LT',
nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
lastDay: '[Àna ni] LT',
lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
sameElse: 'L',
},
relativeTime: {
future: 'ní %s',
past: '%s kọjá',
s: 'ìsẹjú aayá die',
ss: 'aayá %d',
m: 'ìsẹjú kan',
mm: 'ìsẹjú %d',
h: 'wákati kan',
hh: 'wákati %d',
d: 'ọjọ́ kan',
dd: 'ọjọ́ %d',
M: 'osù kan',
MM: 'osù %d',
y: 'ọdún kan',
yy: 'ọdún %d',
},
dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
ordinal: 'ọjọ́ %d',
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
83839: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('zh-cn', {
months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
'_'
),
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
'_'
),
weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split(
'_'
),
weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'YYYY/MM/DD',
LL: 'YYYY年M月D日',
LLL: 'YYYY年M月D日Ah点mm分',
LLLL: 'YYYY年M月D日ddddAh点mm分',
l: 'YYYY/M/D',
ll: 'YYYY年M月D日',
lll: 'YYYY年M月D日 HH:mm',
llll: 'YYYY年M月D日dddd HH:mm',
},
meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'凌晨' === t || '早上' === t || '上午' === t
? e
: '下午' === t || '晚上' === t
? e + 12
: e >= 11
? e
: e + 12
);
},
meridiem: function (e, t, i) {
var n = 100 * e + t;
return n < 600
? '凌晨'
: n < 900
? '早上'
: n < 1130
? '上午'
: n < 1230
? '中午'
: n < 1800
? '下午'
: '晚上';
},
calendar: {
sameDay: '[今天]LT',
nextDay: '[明天]LT',
nextWeek: function (e) {
return e.week() !== this.week() ? '[下]dddLT' : '[本]dddLT';
},
lastDay: '[昨天]LT',
lastWeek: function (e) {
return this.week() !== e.week() ? '[上]dddLT' : '[本]dddLT';
},
sameElse: 'L',
},
dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
ordinal: function (e, t) {
switch (t) {
case 'd':
case 'D':
case 'DDD':
return e + '日';
case 'M':
return e + '月';
case 'w':
case 'W':
return e + '周';
default:
return e;
}
},
relativeTime: {
future: '%s后',
past: '%s前',
s: '几秒',
ss: '%d 秒',
m: '1 分钟',
mm: '%d 分钟',
h: '1 小时',
hh: '%d 小时',
d: '1 天',
dd: '%d 天',
w: '1 周',
ww: '%d 周',
M: '1 个月',
MM: '%d 个月',
y: '1 年',
yy: '%d 年',
},
week: { dow: 1, doy: 4 },
});
})(i(30381));
},
55726: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('zh-hk', {
months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
'_'
),
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
'_'
),
weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split(
'_'
),
weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'YYYY/MM/DD',
LL: 'YYYY年M月D日',
LLL: 'YYYY年M月D日 HH:mm',
LLLL: 'YYYY年M月D日dddd HH:mm',
l: 'YYYY/M/D',
ll: 'YYYY年M月D日',
lll: 'YYYY年M月D日 HH:mm',
llll: 'YYYY年M月D日dddd HH:mm',
},
meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'凌晨' === t || '早上' === t || '上午' === t
? e
: '中午' === t
? e >= 11
? e
: e + 12
: '下午' === t || '晚上' === t
? e + 12
: void 0
);
},
meridiem: function (e, t, i) {
var n = 100 * e + t;
return n < 600
? '凌晨'
: n < 900
? '早上'
: n < 1200
? '上午'
: 1200 === n
? '中午'
: n < 1800
? '下午'
: '晚上';
},
calendar: {
sameDay: '[今天]LT',
nextDay: '[明天]LT',
nextWeek: '[下]ddddLT',
lastDay: '[昨天]LT',
lastWeek: '[上]ddddLT',
sameElse: 'L',
},
dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
ordinal: function (e, t) {
switch (t) {
case 'd':
case 'D':
case 'DDD':
return e + '日';
case 'M':
return e + '月';
case 'w':
case 'W':
return e + '週';
default:
return e;
}
},
relativeTime: {
future: '%s後',
past: '%s前',
s: '幾秒',
ss: '%d 秒',
m: '1 分鐘',
mm: '%d 分鐘',
h: '1 小時',
hh: '%d 小時',
d: '1 天',
dd: '%d 天',
M: '1 個月',
MM: '%d 個月',
y: '1 年',
yy: '%d 年',
},
});
})(i(30381));
},
99807: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('zh-mo', {
months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
'_'
),
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
'_'
),
weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split(
'_'
),
weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'YYYY年M月D日',
LLL: 'YYYY年M月D日 HH:mm',
LLLL: 'YYYY年M月D日dddd HH:mm',
l: 'D/M/YYYY',
ll: 'YYYY年M月D日',
lll: 'YYYY年M月D日 HH:mm',
llll: 'YYYY年M月D日dddd HH:mm',
},
meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'凌晨' === t || '早上' === t || '上午' === t
? e
: '中午' === t
? e >= 11
? e
: e + 12
: '下午' === t || '晚上' === t
? e + 12
: void 0
);
},
meridiem: function (e, t, i) {
var n = 100 * e + t;
return n < 600
? '凌晨'
: n < 900
? '早上'
: n < 1130
? '上午'
: n < 1230
? '中午'
: n < 1800
? '下午'
: '晚上';
},
calendar: {
sameDay: '[今天] LT',
nextDay: '[明天] LT',
nextWeek: '[下]dddd LT',
lastDay: '[昨天] LT',
lastWeek: '[上]dddd LT',
sameElse: 'L',
},
dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
ordinal: function (e, t) {
switch (t) {
case 'd':
case 'D':
case 'DDD':
return e + '日';
case 'M':
return e + '月';
case 'w':
case 'W':
return e + '週';
default:
return e;
}
},
relativeTime: {
future: '%s內',
past: '%s前',
s: '幾秒',
ss: '%d 秒',
m: '1 分鐘',
mm: '%d 分鐘',
h: '1 小時',
hh: '%d 小時',
d: '1 天',
dd: '%d 天',
M: '1 個月',
MM: '%d 個月',
y: '1 年',
yy: '%d 年',
},
});
})(i(30381));
},
74152: function (e, t, i) {
!(function (e) {
'use strict';
e.defineLocale('zh-tw', {
months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
'_'
),
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
'_'
),
weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split(
'_'
),
weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'YYYY/MM/DD',
LL: 'YYYY年M月D日',
LLL: 'YYYY年M月D日 HH:mm',
LLLL: 'YYYY年M月D日dddd HH:mm',
l: 'YYYY/M/D',
ll: 'YYYY年M月D日',
lll: 'YYYY年M月D日 HH:mm',
llll: 'YYYY年M月D日dddd HH:mm',
},
meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
meridiemHour: function (e, t) {
return (
12 === e && (e = 0),
'凌晨' === t || '早上' === t || '上午' === t
? e
: '中午' === t
? e >= 11
? e
: e + 12
: '下午' === t || '晚上' === t
? e + 12
: void 0
);
},
meridiem: function (e, t, i) {
var n = 100 * e + t;
return n < 600
? '凌晨'
: n < 900
? '早上'
: n < 1130
? '上午'
: n < 1230
? '中午'
: n < 1800
? '下午'
: '晚上';
},
calendar: {
sameDay: '[今天] LT',
nextDay: '[明天] LT',
nextWeek: '[下]dddd LT',
lastDay: '[昨天] LT',
lastWeek: '[上]dddd LT',
sameElse: 'L',
},
dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
ordinal: function (e, t) {
switch (t) {
case 'd':
case 'D':
case 'DDD':
return e + '日';
case 'M':
return e + '月';
case 'w':
case 'W':
return e + '週';
default:
return e;
}
},
relativeTime: {
future: '%s後',
past: '%s前',
s: '幾秒',
ss: '%d 秒',
m: '1 分鐘',
mm: '%d 分鐘',
h: '1 小時',
hh: '%d 小時',
d: '1 天',
dd: '%d 天',
M: '1 個月',
MM: '%d 個月',
y: '1 年',
yy: '%d 年',
},
});
})(i(30381));
},
46700: (e, t, i) => {
var n = {
'./af': 42786,
'./af.js': 42786,
'./ar': 30867,
'./ar-dz': 14130,
'./ar-dz.js': 14130,
'./ar-kw': 96135,
'./ar-kw.js': 96135,
'./ar-ly': 56440,
'./ar-ly.js': 56440,
'./ar-ma': 47702,
'./ar-ma.js': 47702,
'./ar-sa': 16040,
'./ar-sa.js': 16040,
'./ar-tn': 37100,
'./ar-tn.js': 37100,
'./ar.js': 30867,
'./az': 31083,
'./az.js': 31083,
'./be': 9808,
'./be.js': 9808,
'./bg': 68338,
'./bg.js': 68338,
'./bm': 67438,
'./bm.js': 67438,
'./bn': 8905,
'./bn-bd': 76225,
'./bn-bd.js': 76225,
'./bn.js': 8905,
'./bo': 11560,
'./bo.js': 11560,
'./br': 1278,
'./br.js': 1278,
'./bs': 80622,
'./bs.js': 80622,
'./ca': 2468,
'./ca.js': 2468,
'./cs': 5822,
'./cs.js': 5822,
'./cv': 50877,
'./cv.js': 50877,
'./cy': 47373,
'./cy.js': 47373,
'./da': 24780,
'./da.js': 24780,
'./de': 59740,
'./de-at': 60217,
'./de-at.js': 60217,
'./de-ch': 60894,
'./de-ch.js': 60894,
'./de.js': 59740,
'./dv': 5300,
'./dv.js': 5300,
'./el': 50837,
'./el.js': 50837,
'./en-au': 78348,
'./en-au.js': 78348,
'./en-ca': 77925,
'./en-ca.js': 77925,
'./en-gb': 22243,
'./en-gb.js': 22243,
'./en-ie': 46436,
'./en-ie.js': 46436,
'./en-il': 47207,
'./en-il.js': 47207,
'./en-in': 44175,
'./en-in.js': 44175,
'./en-nz': 76319,
'./en-nz.js': 76319,
'./en-sg': 31662,
'./en-sg.js': 31662,
'./eo': 92915,
'./eo.js': 92915,
'./es': 55655,
'./es-do': 55251,
'./es-do.js': 55251,
'./es-mx': 96112,
'./es-mx.js': 96112,
'./es-us': 71146,
'./es-us.js': 71146,
'./es.js': 55655,
'./et': 5603,
'./et.js': 5603,
'./eu': 77763,
'./eu.js': 77763,
'./fa': 76959,
'./fa.js': 76959,
'./fi': 11897,
'./fi.js': 11897,
'./fil': 42549,
'./fil.js': 42549,
'./fo': 94694,
'./fo.js': 94694,
'./fr': 94470,
'./fr-ca': 63049,
'./fr-ca.js': 63049,
'./fr-ch': 52330,
'./fr-ch.js': 52330,
'./fr.js': 94470,
'./fy': 5044,
'./fy.js': 5044,
'./ga': 29295,
'./ga.js': 29295,
'./gd': 2101,
'./gd.js': 2101,
'./gl': 38794,
'./gl.js': 38794,
'./gom-deva': 27884,
'./gom-deva.js': 27884,
'./gom-latn': 23168,
'./gom-latn.js': 23168,
'./gu': 95349,
'./gu.js': 95349,
'./he': 24206,
'./he.js': 24206,
'./hi': 30094,
'./hi.js': 30094,
'./hr': 30316,
'./hr.js': 30316,
'./hu': 22138,
'./hu.js': 22138,
'./hy-am': 11423,
'./hy-am.js': 11423,
'./id': 29218,
'./id.js': 29218,
'./is': 90135,
'./is.js': 90135,
'./it': 90626,
'./it-ch': 10150,
'./it-ch.js': 10150,
'./it.js': 90626,
'./ja': 39183,
'./ja.js': 39183,
'./jv': 24286,
'./jv.js': 24286,
'./ka': 12105,
'./ka.js': 12105,
'./kk': 47772,
'./kk.js': 47772,
'./km': 18758,
'./km.js': 18758,
'./kn': 79282,
'./kn.js': 79282,
'./ko': 33730,
'./ko.js': 33730,
'./ku': 1408,
'./ku.js': 1408,
'./ky': 33291,
'./ky.js': 33291,
'./lb': 36841,
'./lb.js': 36841,
'./lo': 55466,
'./lo.js': 55466,
'./lt': 57010,
'./lt.js': 57010,
'./lv': 37595,
'./lv.js': 37595,
'./me': 39861,
'./me.js': 39861,
'./mi': 35493,
'./mi.js': 35493,
'./mk': 95966,
'./mk.js': 95966,
'./ml': 87341,
'./ml.js': 87341,
'./mn': 5115,
'./mn.js': 5115,
'./mr': 10370,
'./mr.js': 10370,
'./ms': 9847,
'./ms-my': 41237,
'./ms-my.js': 41237,
'./ms.js': 9847,
'./mt': 72126,
'./mt.js': 72126,
'./my': 56165,
'./my.js': 56165,
'./nb': 64924,
'./nb.js': 64924,
'./ne': 16744,
'./ne.js': 16744,
'./nl': 93901,
'./nl-be': 59814,
'./nl-be.js': 59814,
'./nl.js': 93901,
'./nn': 83877,
'./nn.js': 83877,
'./oc-lnc': 92135,
'./oc-lnc.js': 92135,
'./pa-in': 15858,
'./pa-in.js': 15858,
'./pl': 64495,
'./pl.js': 64495,
'./pt': 89520,
'./pt-br': 57971,
'./pt-br.js': 57971,
'./pt.js': 89520,
'./ro': 96459,
'./ro.js': 96459,
'./ru': 21793,
'./ru.js': 21793,
'./sd': 40950,
'./sd.js': 40950,
'./se': 10490,
'./se.js': 10490,
'./si': 90124,
'./si.js': 90124,
'./sk': 64249,
'./sk.js': 64249,
'./sl': 14985,
'./sl.js': 14985,
'./sq': 51104,
'./sq.js': 51104,
'./sr': 49131,
'./sr-cyrl': 79915,
'./sr-cyrl.js': 79915,
'./sr.js': 49131,
'./ss': 85893,
'./ss.js': 85893,
'./sv': 98760,
'./sv.js': 98760,
'./sw': 91172,
'./sw.js': 91172,
'./ta': 27333,
'./ta.js': 27333,
'./te': 23110,
'./te.js': 23110,
'./tet': 52095,
'./tet.js': 52095,
'./tg': 27321,
'./tg.js': 27321,
'./th': 9041,
'./th.js': 9041,
'./tk': 19005,
'./tk.js': 19005,
'./tl-ph': 75768,
'./tl-ph.js': 75768,
'./tlh': 89444,
'./tlh.js': 89444,
'./tr': 72397,
'./tr.js': 72397,
'./tzl': 28254,
'./tzl.js': 28254,
'./tzm': 51106,
'./tzm-latn': 30699,
'./tzm-latn.js': 30699,
'./tzm.js': 51106,
'./ug-cn': 9288,
'./ug-cn.js': 9288,
'./uk': 67691,
'./uk.js': 67691,
'./ur': 13795,
'./ur.js': 13795,
'./uz': 6791,
'./uz-latn': 60588,
'./uz-latn.js': 60588,
'./uz.js': 6791,
'./vi': 65666,
'./vi.js': 65666,
'./x-pseudo': 14378,
'./x-pseudo.js': 14378,
'./yo': 7198,
'./yo.js': 7198,
'./zh-cn': 83839,
'./zh-cn.js': 83839,
'./zh-hk': 55726,
'./zh-hk.js': 55726,
'./zh-mo': 99807,
'./zh-mo.js': 99807,
'./zh-tw': 74152,
'./zh-tw.js': 74152,
};
function r(e) {
var t = s(e);
return i(t);
}
function s(e) {
if (!i.o(n, e)) {
var t = new Error("Cannot find module '" + e + "'");
throw ((t.code = 'MODULE_NOT_FOUND'), t);
}
return n[e];
}
(r.keys = function () {
return Object.keys(n);
}),
(r.resolve = s),
(e.exports = r),
(r.id = 46700);
},
30381: function (e, t, i) {
(e = i.nmd(e)).exports = (function () {
'use strict';
var t, n;
function r() {
return t.apply(null, arguments);
}
function s(e) {
return (
e instanceof Array ||
'[object Array]' === Object.prototype.toString.call(e)
);
}
function o(e) {
return (
null != e &&
'[object Object]' === Object.prototype.toString.call(e)
);
}
function a(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
function l(e) {
if (Object.getOwnPropertyNames)
return 0 === Object.getOwnPropertyNames(e).length;
var t;
for (t in e) if (a(e, t)) return !1;
return !0;
}
function c(e) {
return void 0 === e;
}
function d(e) {
return (
'number' == typeof e ||
'[object Number]' === Object.prototype.toString.call(e)
);
}
function h(e) {
return (
e instanceof Date ||
'[object Date]' === Object.prototype.toString.call(e)
);
}
function u(e, t) {
var i,
n = [];
for (i = 0; i < e.length; ++i) n.push(t(e[i], i));
return n;
}
function g(e, t) {
for (var i in t) a(t, i) && (e[i] = t[i]);
return (
a(t, 'toString') && (e.toString = t.toString),
a(t, 'valueOf') && (e.valueOf = t.valueOf),
e
);
}
function f(e, t, i, n) {
return xt(e, t, i, n, !0).utc();
}
function p(e) {
return (
null == e._pf &&
(e._pf = {
empty: !1,
unusedTokens: [],
unusedInput: [],
overflow: -2,
charsLeftOver: 0,
nullInput: !1,
invalidEra: null,
invalidMonth: null,
invalidFormat: !1,
userInvalidated: !1,
iso: !1,
parsedDateParts: [],
era: null,
meridiem: null,
rfc2822: !1,
weekdayMismatch: !1,
}),
e._pf
);
}
function m(e) {
if (null == e._isValid) {
var t = p(e),
i = n.call(t.parsedDateParts, function (e) {
return null != e;
}),
r =
!isNaN(e._d.getTime()) &&
t.overflow < 0 &&
!t.empty &&
!t.invalidEra &&
!t.invalidMonth &&
!t.invalidWeekday &&
!t.weekdayMismatch &&
!t.nullInput &&
!t.invalidFormat &&
!t.userInvalidated &&
(!t.meridiem || (t.meridiem && i));
if (
(e._strict &&
(r =
r &&
0 === t.charsLeftOver &&
0 === t.unusedTokens.length &&
void 0 === t.bigHour),
null != Object.isFrozen && Object.isFrozen(e))
)
return r;
e._isValid = r;
}
return e._isValid;
}
function _(e) {
var t = f(NaN);
return null != e ? g(p(t), e) : (p(t).userInvalidated = !0), t;
}
n = Array.prototype.some
? Array.prototype.some
: function (e) {
var t,
i = Object(this),
n = i.length >>> 0;
for (t = 0; t < n; t++)
if (t in i && e.call(this, i[t], t, i)) return !0;
return !1;
};
var b = (r.momentProperties = []),
v = !1;
function y(e, t) {
var i, n, r;
if (
(c(t._isAMomentObject) ||
(e._isAMomentObject = t._isAMomentObject),
c(t._i) || (e._i = t._i),
c(t._f) || (e._f = t._f),
c(t._l) || (e._l = t._l),
c(t._strict) || (e._strict = t._strict),
c(t._tzm) || (e._tzm = t._tzm),
c(t._isUTC) || (e._isUTC = t._isUTC),
c(t._offset) || (e._offset = t._offset),
c(t._pf) || (e._pf = p(t)),
c(t._locale) || (e._locale = t._locale),
b.length > 0)
)
for (i = 0; i < b.length; i++)
c((r = t[(n = b[i])])) || (e[n] = r);
return e;
}
function w(e) {
y(this, e),
(this._d = new Date(null != e._d ? e._d.getTime() : NaN)),
this.isValid() || (this._d = new Date(NaN)),
!1 === v && ((v = !0), r.updateOffset(this), (v = !1));
}
function C(e) {
return e instanceof w || (null != e && null != e._isAMomentObject);
}
function S(e) {
!1 === r.suppressDeprecationWarnings &&
'undefined' != typeof console &&
console.warn &&
console.warn('Deprecation warning: ' + e);
}
function k(e, t) {
var i = !0;
return g(function () {
if (
(null != r.deprecationHandler && r.deprecationHandler(null, e),
i)
) {
var n,
s,
o,
l = [];
for (s = 0; s < arguments.length; s++) {
if (((n = ''), 'object' == typeof arguments[s])) {
for (o in ((n += '\n[' + s + '] '), arguments[0]))
a(arguments[0], o) &&
(n += o + ': ' + arguments[0][o] + ', ');
n = n.slice(0, -2);
} else n = arguments[s];
l.push(n);
}
S(
e +
'\nArguments: ' +
Array.prototype.slice.call(l).join('') +
'\n' +
new Error().stack
),
(i = !1);
}
return t.apply(this, arguments);
}, t);
}
var x,
L = {};
function M(e, t) {
null != r.deprecationHandler && r.deprecationHandler(e, t),
L[e] || (S(t), (L[e] = !0));
}
function D(e) {
return (
('undefined' != typeof Function && e instanceof Function) ||
'[object Function]' === Object.prototype.toString.call(e)
);
}
function N(e, t) {
var i,
n = g({}, e);
for (i in t)
a(t, i) &&
(o(e[i]) && o(t[i])
? ((n[i] = {}), g(n[i], e[i]), g(n[i], t[i]))
: null != t[i]
? (n[i] = t[i])
: delete n[i]);
for (i in e) a(e, i) && !a(t, i) && o(e[i]) && (n[i] = g({}, n[i]));
return n;
}
function E(e) {
null != e && this.set(e);
}
(r.suppressDeprecationWarnings = !1),
(r.deprecationHandler = null),
(x = Object.keys
? Object.keys
: function (e) {
var t,
i = [];
for (t in e) a(e, t) && i.push(t);
return i;
});
function T(e, t, i) {
var n = '' + Math.abs(e),
r = t - n.length;
return (
(e >= 0 ? (i ? '+' : '') : '-') +
Math.pow(10, Math.max(0, r)).toString().substr(1) +
n
);
}
var I = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
O = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
A = {},
R = {};
function P(e, t, i, n) {
var r = n;
'string' == typeof n &&
(r = function () {
return this[n]();
}),
e && (R[e] = r),
t &&
(R[t[0]] = function () {
return T(r.apply(this, arguments), t[1], t[2]);
}),
i &&
(R[i] = function () {
return this.localeData().ordinal(r.apply(this, arguments), e);
});
}
function F(e, t) {
return e.isValid()
? ((t = B(t, e.localeData())),
(A[t] =
A[t] ||
(function (e) {
var t,
i,
n,
r = e.match(I);
for (t = 0, i = r.length; t < i; t++)
R[r[t]]
? (r[t] = R[r[t]])
: (r[t] = (n = r[t]).match(/\[[\s\S]/)
? n.replace(/^\[|\]$/g, '')
: n.replace(/\\/g, ''));
return function (t) {
var n,
s = '';
for (n = 0; n < i; n++)
s += D(r[n]) ? r[n].call(t, e) : r[n];
return s;
};
})(t)),
A[t](e))
: e.localeData().invalidDate();
}
function B(e, t) {
var i = 5;
function n(e) {
return t.longDateFormat(e) || e;
}
for (O.lastIndex = 0; i >= 0 && O.test(e); )
(e = e.replace(O, n)), (O.lastIndex = 0), (i -= 1);
return e;
}
var W = {};
function Y(e, t) {
var i = e.toLowerCase();
W[i] = W[i + 's'] = W[t] = e;
}
function H(e) {
return 'string' == typeof e ? W[e] || W[e.toLowerCase()] : void 0;
}
function j(e) {
var t,
i,
n = {};
for (i in e) a(e, i) && (t = H(i)) && (n[t] = e[i]);
return n;
}
var V = {};
function z(e, t) {
V[e] = t;
}
function U(e) {
return (e % 4 == 0 && e % 100 != 0) || e % 400 == 0;
}
function $(e) {
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
}
function K(e) {
var t = +e,
i = 0;
return 0 !== t && isFinite(t) && (i = $(t)), i;
}
function q(e, t) {
return function (i) {
return null != i
? (Z(this, e, i), r.updateOffset(this, t), this)
: G(this, e);
};
}
function G(e, t) {
return e.isValid()
? e._d['get' + (e._isUTC ? 'UTC' : '') + t]()
: NaN;
}
function Z(e, t, i) {
e.isValid() &&
!isNaN(i) &&
('FullYear' === t &&
U(e.year()) &&
1 === e.month() &&
29 === e.date()
? ((i = K(i)),
e._d['set' + (e._isUTC ? 'UTC' : '') + t](
i,
e.month(),
Ce(i, e.month())
))
: e._d['set' + (e._isUTC ? 'UTC' : '') + t](i));
}
var J,
Q = /\d/,
X = /\d\d/,
ee = /\d{3}/,
te = /\d{4}/,
ie = /[+-]?\d{6}/,
ne = /\d\d?/,
re = /\d\d\d\d?/,
se = /\d\d\d\d\d\d?/,
oe = /\d{1,3}/,
ae = /\d{1,4}/,
le = /[+-]?\d{1,6}/,
ce = /\d+/,
de = /[+-]?\d+/,
he = /Z|[+-]\d\d:?\d\d/gi,
ue = /Z|[+-]\d\d(?::?\d\d)?/gi,
ge = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;
function fe(e, t, i) {
J[e] = D(t)
? t
: function (e, n) {
return e && i ? i : t;
};
}
function pe(e, t) {
return a(J, e)
? J[e](t._strict, t._locale)
: new RegExp(
me(
e
.replace('\\', '')
.replace(
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
function (e, t, i, n, r) {
return t || i || n || r;
}
)
)
);
}
function me(e) {
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
}
J = {};
var _e = {};
function be(e, t) {
var i,
n = t;
for (
'string' == typeof e && (e = [e]),
d(t) &&
(n = function (e, i) {
i[t] = K(e);
}),
i = 0;
i < e.length;
i++
)
_e[e[i]] = n;
}
function ve(e, t) {
be(e, function (e, i, n, r) {
(n._w = n._w || {}), t(e, n._w, n, r);
});
}
function ye(e, t, i) {
null != t && a(_e, e) && _e[e](t, i._a, i, e);
}
var we;
function Ce(e, t) {
if (isNaN(e) || isNaN(t)) return NaN;
var i,
n = ((t % (i = 12)) + i) % i;
return (
(e += (t - n) / 12),
1 === n ? (U(e) ? 29 : 28) : 31 - ((n % 7) % 2)
);
}
(we = Array.prototype.indexOf
? Array.prototype.indexOf
: function (e) {
var t;
for (t = 0; t < this.length; ++t) if (this[t] === e) return t;
return -1;
}),
P('M', ['MM', 2], 'Mo', function () {
return this.month() + 1;
}),
P('MMM', 0, 0, function (e) {
return this.localeData().monthsShort(this, e);
}),
P('MMMM', 0, 0, function (e) {
return this.localeData().months(this, e);
}),
Y('month', 'M'),
z('month', 8),
fe('M', ne),
fe('MM', ne, X),
fe('MMM', function (e, t) {
return t.monthsShortRegex(e);
}),
fe('MMMM', function (e, t) {
return t.monthsRegex(e);
}),
be(['M', 'MM'], function (e, t) {
t[1] = K(e) - 1;
}),
be(['MMM', 'MMMM'], function (e, t, i, n) {
var r = i._locale.monthsParse(e, n, i._strict);
null != r ? (t[1] = r) : (p(i).invalidMonth = e);
});
var Se = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
'_'
),
ke = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
xe = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
Le = ge,
Me = ge;
function De(e, t, i) {
var n,
r,
s,
o = e.toLocaleLowerCase();
if (!this._monthsParse)
for (
this._monthsParse = [],
this._longMonthsParse = [],
this._shortMonthsParse = [],
n = 0;
n < 12;
++n
)
(s = f([2e3, n])),
(this._shortMonthsParse[n] = this.monthsShort(
s,
''
).toLocaleLowerCase()),
(this._longMonthsParse[n] = this.months(
s,
''
).toLocaleLowerCase());
return i
? 'MMM' === t
? -1 !== (r = we.call(this._shortMonthsParse, o))
? r
: null
: -1 !== (r = we.call(this._longMonthsParse, o))
? r
: null
: 'MMM' === t
? -1 !== (r = we.call(this._shortMonthsParse, o)) ||
-1 !== (r = we.call(this._longMonthsParse, o))
? r
: null
: -1 !== (r = we.call(this._longMonthsParse, o)) ||
-1 !== (r = we.call(this._shortMonthsParse, o))
? r
: null;
}
function Ne(e, t) {
var i;
if (!e.isValid()) return e;
if ('string' == typeof t)
if (/^\d+$/.test(t)) t = K(t);
else if (!d((t = e.localeData().monthsParse(t)))) return e;
return (
(i = Math.min(e.date(), Ce(e.year(), t))),
e._d['set' + (e._isUTC ? 'UTC' : '') + 'Month'](t, i),
e
);
}
function Ee(e) {
return null != e
? (Ne(this, e), r.updateOffset(this, !0), this)
: G(this, 'Month');
}
function Te() {
function e(e, t) {
return t.length - e.length;
}
var t,
i,
n = [],
r = [],
s = [];
for (t = 0; t < 12; t++)
(i = f([2e3, t])),
n.push(this.monthsShort(i, '')),
r.push(this.months(i, '')),
s.push(this.months(i, '')),
s.push(this.monthsShort(i, ''));
for (n.sort(e), r.sort(e), s.sort(e), t = 0; t < 12; t++)
(n[t] = me(n[t])), (r[t] = me(r[t]));
for (t = 0; t < 24; t++) s[t] = me(s[t]);
(this._monthsRegex = new RegExp('^(' + s.join('|') + ')', 'i')),
(this._monthsShortRegex = this._monthsRegex),
(this._monthsStrictRegex = new RegExp(
'^(' + r.join('|') + ')',
'i'
)),
(this._monthsShortStrictRegex = new RegExp(
'^(' + n.join('|') + ')',
'i'
));
}
function Ie(e) {
return U(e) ? 366 : 365;
}
P('Y', 0, 0, function () {
var e = this.year();
return e <= 9999 ? T(e, 4) : '+' + e;
}),
P(0, ['YY', 2], 0, function () {
return this.year() % 100;
}),
P(0, ['YYYY', 4], 0, 'year'),
P(0, ['YYYYY', 5], 0, 'year'),
P(0, ['YYYYYY', 6, !0], 0, 'year'),
Y('year', 'y'),
z('year', 1),
fe('Y', de),
fe('YY', ne, X),
fe('YYYY', ae, te),
fe('YYYYY', le, ie),
fe('YYYYYY', le, ie),
be(['YYYYY', 'YYYYYY'], 0),
be('YYYY', function (e, t) {
t[0] = 2 === e.length ? r.parseTwoDigitYear(e) : K(e);
}),
be('YY', function (e, t) {
t[0] = r.parseTwoDigitYear(e);
}),
be('Y', function (e, t) {
t[0] = parseInt(e, 10);
}),
(r.parseTwoDigitYear = function (e) {
return K(e) + (K(e) > 68 ? 1900 : 2e3);
});
var Oe = q('FullYear', !0);
function Ae(e, t, i, n, r, s, o) {
var a;
return (
e < 100 && e >= 0
? ((a = new Date(e + 400, t, i, n, r, s, o)),
isFinite(a.getFullYear()) && a.setFullYear(e))
: (a = new Date(e, t, i, n, r, s, o)),
a
);
}
function Re(e) {
var t, i;
return (
e < 100 && e >= 0
? (((i = Array.prototype.slice.call(arguments))[0] = e + 400),
(t = new Date(Date.UTC.apply(null, i))),
isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e))
: (t = new Date(Date.UTC.apply(null, arguments))),
t
);
}
function Pe(e, t, i) {
var n = 7 + t - i;
return (-(7 + Re(e, 0, n).getUTCDay() - t) % 7) + n - 1;
}
function Fe(e, t, i, n, r) {
var s,
o,
a = 1 + 7 * (t - 1) + ((7 + i - n) % 7) + Pe(e, n, r);
return (
a <= 0
? (o = Ie((s = e - 1)) + a)
: a > Ie(e)
? ((s = e + 1), (o = a - Ie(e)))
: ((s = e), (o = a)),
{ year: s, dayOfYear: o }
);
}
function Be(e, t, i) {
var n,
r,
s = Pe(e.year(), t, i),
o = Math.floor((e.dayOfYear() - s - 1) / 7) + 1;
return (
o < 1
? (n = o + We((r = e.year() - 1), t, i))
: o > We(e.year(), t, i)
? ((n = o - We(e.year(), t, i)), (r = e.year() + 1))
: ((r = e.year()), (n = o)),
{ week: n, year: r }
);
}
function We(e, t, i) {
var n = Pe(e, t, i),
r = Pe(e + 1, t, i);
return (Ie(e) - n + r) / 7;
}
P('w', ['ww', 2], 'wo', 'week'),
P('W', ['WW', 2], 'Wo', 'isoWeek'),
Y('week', 'w'),
Y('isoWeek', 'W'),
z('week', 5),
z('isoWeek', 5),
fe('w', ne),
fe('ww', ne, X),
fe('W', ne),
fe('WW', ne, X),
ve(['w', 'ww', 'W', 'WW'], function (e, t, i, n) {
t[n.substr(0, 1)] = K(e);
});
function Ye(e, t) {
return e.slice(t, 7).concat(e.slice(0, t));
}
P('d', 0, 'do', 'day'),
P('dd', 0, 0, function (e) {
return this.localeData().weekdaysMin(this, e);
}),
P('ddd', 0, 0, function (e) {
return this.localeData().weekdaysShort(this, e);
}),
P('dddd', 0, 0, function (e) {
return this.localeData().weekdays(this, e);
}),
P('e', 0, 0, 'weekday'),
P('E', 0, 0, 'isoWeekday'),
Y('day', 'd'),
Y('weekday', 'e'),
Y('isoWeekday', 'E'),
z('day', 11),
z('weekday', 11),
z('isoWeekday', 11),
fe('d', ne),
fe('e', ne),
fe('E', ne),
fe('dd', function (e, t) {
return t.weekdaysMinRegex(e);
}),
fe('ddd', function (e, t) {
return t.weekdaysShortRegex(e);
}),
fe('dddd', function (e, t) {
return t.weekdaysRegex(e);
}),
ve(['dd', 'ddd', 'dddd'], function (e, t, i, n) {
var r = i._locale.weekdaysParse(e, n, i._strict);
null != r ? (t.d = r) : (p(i).invalidWeekday = e);
}),
ve(['d', 'e', 'E'], function (e, t, i, n) {
t[n] = K(e);
});
var He = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
'_'
),
je = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
Ve = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
ze = ge,
Ue = ge,
$e = ge;
function Ke(e, t, i) {
var n,
r,
s,
o = e.toLocaleLowerCase();
if (!this._weekdaysParse)
for (
this._weekdaysParse = [],
this._shortWeekdaysParse = [],
this._minWeekdaysParse = [],
n = 0;
n < 7;
++n
)
(s = f([2e3, 1]).day(n)),
(this._minWeekdaysParse[n] = this.weekdaysMin(
s,
''
).toLocaleLowerCase()),
(this._shortWeekdaysParse[n] = this.weekdaysShort(
s,
''
).toLocaleLowerCase()),
(this._weekdaysParse[n] = this.weekdays(
s,
''
).toLocaleLowerCase());
return i
? 'dddd' === t
? -1 !== (r = we.call(this._weekdaysParse, o))
? r
: null
: 'ddd' === t
? -1 !== (r = we.call(this._shortWeekdaysParse, o))
? r
: null
: -1 !== (r = we.call(this._minWeekdaysParse, o))
? r
: null
: 'dddd' === t
? -1 !== (r = we.call(this._weekdaysParse, o)) ||
-1 !== (r = we.call(this._shortWeekdaysParse, o)) ||
-1 !== (r = we.call(this._minWeekdaysParse, o))
? r
: null
: 'ddd' === t
? -1 !== (r = we.call(this._shortWeekdaysParse, o)) ||
-1 !== (r = we.call(this._weekdaysParse, o)) ||
-1 !== (r = we.call(this._minWeekdaysParse, o))
? r
: null
: -1 !== (r = we.call(this._minWeekdaysParse, o)) ||
-1 !== (r = we.call(this._weekdaysParse, o)) ||
-1 !== (r = we.call(this._shortWeekdaysParse, o))
? r
: null;
}
function qe() {
function e(e, t) {
return t.length - e.length;
}
var t,
i,
n,
r,
s,
o = [],
a = [],
l = [],
c = [];
for (t = 0; t < 7; t++)
(i = f([2e3, 1]).day(t)),
(n = me(this.weekdaysMin(i, ''))),
(r = me(this.weekdaysShort(i, ''))),
(s = me(this.weekdays(i, ''))),
o.push(n),
a.push(r),
l.push(s),
c.push(n),
c.push(r),
c.push(s);
o.sort(e),
a.sort(e),
l.sort(e),
c.sort(e),
(this._weekdaysRegex = new RegExp('^(' + c.join('|') + ')', 'i')),
(this._weekdaysShortRegex = this._weekdaysRegex),
(this._weekdaysMinRegex = this._weekdaysRegex),
(this._weekdaysStrictRegex = new RegExp(
'^(' + l.join('|') + ')',
'i'
)),
(this._weekdaysShortStrictRegex = new RegExp(
'^(' + a.join('|') + ')',
'i'
)),
(this._weekdaysMinStrictRegex = new RegExp(
'^(' + o.join('|') + ')',
'i'
));
}
function Ge() {
return this.hours() % 12 || 12;
}
function Ze(e, t) {
P(e, 0, 0, function () {
return this.localeData().meridiem(
this.hours(),
this.minutes(),
t
);
});
}
function Je(e, t) {
return t._meridiemParse;
}
P('H', ['HH', 2], 0, 'hour'),
P('h', ['hh', 2], 0, Ge),
P('k', ['kk', 2], 0, function () {
return this.hours() || 24;
}),
P('hmm', 0, 0, function () {
return '' + Ge.apply(this) + T(this.minutes(), 2);
}),
P('hmmss', 0, 0, function () {
return (
'' +
Ge.apply(this) +
T(this.minutes(), 2) +
T(this.seconds(), 2)
);
}),
P('Hmm', 0, 0, function () {
return '' + this.hours() + T(this.minutes(), 2);
}),
P('Hmmss', 0, 0, function () {
return (
'' + this.hours() + T(this.minutes(), 2) + T(this.seconds(), 2)
);
}),
Ze('a', !0),
Ze('A', !1),
Y('hour', 'h'),
z('hour', 13),
fe('a', Je),
fe('A', Je),
fe('H', ne),
fe('h', ne),
fe('k', ne),
fe('HH', ne, X),
fe('hh', ne, X),
fe('kk', ne, X),
fe('hmm', re),
fe('hmmss', se),
fe('Hmm', re),
fe('Hmmss', se),
be(['H', 'HH'], 3),
be(['k', 'kk'], function (e, t, i) {
var n = K(e);
t[3] = 24 === n ? 0 : n;
}),
be(['a', 'A'], function (e, t, i) {
(i._isPm = i._locale.isPM(e)), (i._meridiem = e);
}),
be(['h', 'hh'], function (e, t, i) {
(t[3] = K(e)), (p(i).bigHour = !0);
}),
be('hmm', function (e, t, i) {
var n = e.length - 2;
(t[3] = K(e.substr(0, n))),
(t[4] = K(e.substr(n))),
(p(i).bigHour = !0);
}),
be('hmmss', function (e, t, i) {
var n = e.length - 4,
r = e.length - 2;
(t[3] = K(e.substr(0, n))),
(t[4] = K(e.substr(n, 2))),
(t[5] = K(e.substr(r))),
(p(i).bigHour = !0);
}),
be('Hmm', function (e, t, i) {
var n = e.length - 2;
(t[3] = K(e.substr(0, n))), (t[4] = K(e.substr(n)));
}),
be('Hmmss', function (e, t, i) {
var n = e.length - 4,
r = e.length - 2;
(t[3] = K(e.substr(0, n))),
(t[4] = K(e.substr(n, 2))),
(t[5] = K(e.substr(r)));
});
var Qe = q('Hours', !0);
var Xe,
et = {
calendar: {
sameDay: '[Today at] LT',
nextDay: '[Tomorrow at] LT',
nextWeek: 'dddd [at] LT',
lastDay: '[Yesterday at] LT',
lastWeek: '[Last] dddd [at] LT',
sameElse: 'L',
},
longDateFormat: {
LTS: 'h:mm:ss A',
LT: 'h:mm A',
L: 'MM/DD/YYYY',
LL: 'MMMM D, YYYY',
LLL: 'MMMM D, YYYY h:mm A',
LLLL: 'dddd, MMMM D, YYYY h:mm A',
},
invalidDate: 'Invalid date',
ordinal: '%d',
dayOfMonthOrdinalParse: /\d{1,2}/,
relativeTime: {
future: 'in %s',
past: '%s ago',
s: 'a few seconds',
ss: '%d seconds',
m: 'a minute',
mm: '%d minutes',
h: 'an hour',
hh: '%d hours',
d: 'a day',
dd: '%d days',
w: 'a week',
ww: '%d weeks',
M: 'a month',
MM: '%d months',
y: 'a year',
yy: '%d years',
},
months: Se,
monthsShort: ke,
week: { dow: 0, doy: 6 },
weekdays: He,
weekdaysMin: Ve,
weekdaysShort: je,
meridiemParse: /[ap]\.?m?\.?/i,
},
tt = {},
it = {};
function nt(e, t) {
var i,
n = Math.min(e.length, t.length);
for (i = 0; i < n; i += 1) if (e[i] !== t[i]) return i;
return n;
}
function rt(e) {
return e ? e.toLowerCase().replace('_', '-') : e;
}
function st(t) {
var n = null;
if (void 0 === tt[t] && e && e.exports)
try {
(n = Xe._abbr), i(46700)('./' + t), ot(n);
} catch (e) {
tt[t] = null;
}
return tt[t];
}
function ot(e, t) {
var i;
return (
e &&
((i = c(t) ? lt(e) : at(e, t))
? (Xe = i)
: 'undefined' != typeof console &&
console.warn &&
console.warn(
'Locale ' + e + ' not found. Did you forget to load it?'
)),
Xe._abbr
);
}
function at(e, t) {
if (null !== t) {
var i,
n = et;
if (((t.abbr = e), null != tt[e]))
M(
'defineLocaleOverride',
'use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'
),
(n = tt[e]._config);
else if (null != t.parentLocale)
if (null != tt[t.parentLocale]) n = tt[t.parentLocale]._config;
else {
if (null == (i = st(t.parentLocale)))
return (
it[t.parentLocale] || (it[t.parentLocale] = []),
it[t.parentLocale].push({ name: e, config: t }),
null
);
n = i._config;
}
return (
(tt[e] = new E(N(n, t))),
it[e] &&
it[e].forEach(function (e) {
at(e.name, e.config);
}),
ot(e),
tt[e]
);
}
return delete tt[e], null;
}
function lt(e) {
var t;
if (
(e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
)
return Xe;
if (!s(e)) {
if ((t = st(e))) return t;
e = [e];
}
return (function (e) {
for (var t, i, n, r, s = 0; s < e.length; ) {
for (
t = (r = rt(e[s]).split('-')).length,
i = (i = rt(e[s + 1])) ? i.split('-') : null;
t > 0;
) {
if ((n = st(r.slice(0, t).join('-')))) return n;
if (i && i.length >= t && nt(r, i) >= t - 1) break;
t--;
}
s++;
}
return Xe;
})(e);
}
function ct(e) {
var t,
i = e._a;
return (
i &&
-2 === p(e).overflow &&
((t =
i[1] < 0 || i[1] > 11
? 1
: i[2] < 1 || i[2] > Ce(i[0], i[1])
? 2
: i[3] < 0 ||
i[3] > 24 ||
(24 === i[3] && (0 !== i[4] || 0 !== i[5] || 0 !== i[6]))
? 3
: i[4] < 0 || i[4] > 59
? 4
: i[5] < 0 || i[5] > 59
? 5
: i[6] < 0 || i[6] > 999
? 6
: -1),
p(e)._overflowDayOfYear && (t < 0 || t > 2) && (t = 2),
p(e)._overflowWeeks && -1 === t && (t = 7),
p(e)._overflowWeekday && -1 === t && (t = 8),
(p(e).overflow = t)),
e
);
}
var dt = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
ht = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
ut = /Z|[+-]\d\d(?::?\d\d)?/,
gt = [
['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
['GGGG-[W]WW', /\d{4}-W\d\d/, !1],
['YYYY-DDD', /\d{4}-\d{3}/],
['YYYY-MM', /\d{4}-\d\d/, !1],
['YYYYYYMMDD', /[+-]\d{10}/],
['YYYYMMDD', /\d{8}/],
['GGGG[W]WWE', /\d{4}W\d{3}/],
['GGGG[W]WW', /\d{4}W\d{2}/, !1],
['YYYYDDD', /\d{7}/],
['YYYYMM', /\d{6}/, !1],
['YYYY', /\d{4}/, !1],
],
ft = [
['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
['HH:mm:ss', /\d\d:\d\d:\d\d/],
['HH:mm', /\d\d:\d\d/],
['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
['HHmmss', /\d\d\d\d\d\d/],
['HHmm', /\d\d\d\d/],
['HH', /\d\d/],
],
pt = /^\/?Date\((-?\d+)/i,
mt = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
_t = {
UT: 0,
GMT: 0,
EDT: -240,
EST: -300,
CDT: -300,
CST: -360,
MDT: -360,
MST: -420,
PDT: -420,
PST: -480,
};
function bt(e) {
var t,
i,
n,
r,
s,
o,
a = e._i,
l = dt.exec(a) || ht.exec(a);
if (l) {
for (p(e).iso = !0, t = 0, i = gt.length; t < i; t++)
if (gt[t][1].exec(l[1])) {
(r = gt[t][0]), (n = !1 !== gt[t][2]);
break;
}
if (null == r) return void (e._isValid = !1);
if (l[3]) {
for (t = 0, i = ft.length; t < i; t++)
if (ft[t][1].exec(l[3])) {
s = (l[2] || ' ') + ft[t][0];
break;
}
if (null == s) return void (e._isValid = !1);
}
if (!n && null != s) return void (e._isValid = !1);
if (l[4]) {
if (!ut.exec(l[4])) return void (e._isValid = !1);
o = 'Z';
}
(e._f = r + (s || '') + (o || '')), St(e);
} else e._isValid = !1;
}
function vt(e) {
var t = parseInt(e, 10);
return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
}
function yt(e) {
var t,
i,
n,
r,
s,
o,
a,
l,
c = mt.exec(
e._i
.replace(/\([^)]*\)|[\n\t]/g, ' ')
.replace(/(\s\s+)/g, ' ')
.replace(/^\s\s*/, '')
.replace(/\s\s*$/, '')
);
if (c) {
if (
((i = c[4]),
(n = c[3]),
(r = c[2]),
(s = c[5]),
(o = c[6]),
(a = c[7]),
(l = [
vt(i),
ke.indexOf(n),
parseInt(r, 10),
parseInt(s, 10),
parseInt(o, 10),
]),
a && l.push(parseInt(a, 10)),
(t = l),
!(function (e, t, i) {
return (
!e ||
je.indexOf(e) === new Date(t[0], t[1], t[2]).getDay() ||
((p(i).weekdayMismatch = !0), (i._isValid = !1), !1)
);
})(c[1], t, e))
)
return;
(e._a = t),
(e._tzm = (function (e, t, i) {
if (e) return _t[e];
if (t) return 0;
var n = parseInt(i, 10),
r = n % 100;
return ((n - r) / 100) * 60 + r;
})(c[8], c[9], c[10])),
(e._d = Re.apply(null, e._a)),
e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm),
(p(e).rfc2822 = !0);
} else e._isValid = !1;
}
function wt(e, t, i) {
return null != e ? e : null != t ? t : i;
}
function Ct(e) {
var t,
i,
n,
s,
o,
a = [];
if (!e._d) {
for (
n = (function (e) {
var t = new Date(r.now());
return e._useUTC
? [t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()]
: [t.getFullYear(), t.getMonth(), t.getDate()];
})(e),
e._w &&
null == e._a[2] &&
null == e._a[1] &&
(function (e) {
var t, i, n, r, s, o, a, l, c;
null != (t = e._w).GG || null != t.W || null != t.E
? ((s = 1),
(o = 4),
(i = wt(t.GG, e._a[0], Be(Lt(), 1, 4).year)),
(n = wt(t.W, 1)),
((r = wt(t.E, 1)) < 1 || r > 7) && (l = !0))
: ((s = e._locale._week.dow),
(o = e._locale._week.doy),
(c = Be(Lt(), s, o)),
(i = wt(t.gg, e._a[0], c.year)),
(n = wt(t.w, c.week)),
null != t.d
? ((r = t.d) < 0 || r > 6) && (l = !0)
: null != t.e
? ((r = t.e + s), (t.e < 0 || t.e > 6) && (l = !0))
: (r = s)),
n < 1 || n > We(i, s, o)
? (p(e)._overflowWeeks = !0)
: null != l
? (p(e)._overflowWeekday = !0)
: ((a = Fe(i, n, r, s, o)),
(e._a[0] = a.year),
(e._dayOfYear = a.dayOfYear));
})(e),
null != e._dayOfYear &&
((o = wt(e._a[0], n[0])),
(e._dayOfYear > Ie(o) || 0 === e._dayOfYear) &&
(p(e)._overflowDayOfYear = !0),
(i = Re(o, 0, e._dayOfYear)),
(e._a[1] = i.getUTCMonth()),
(e._a[2] = i.getUTCDate())),
t = 0;
t < 3 && null == e._a[t];
++t
)
e._a[t] = a[t] = n[t];
for (; t < 7; t++)
e._a[t] = a[t] = null == e._a[t] ? (2 === t ? 1 : 0) : e._a[t];
24 === e._a[3] &&
0 === e._a[4] &&
0 === e._a[5] &&
0 === e._a[6] &&
((e._nextDay = !0), (e._a[3] = 0)),
(e._d = (e._useUTC ? Re : Ae).apply(null, a)),
(s = e._useUTC ? e._d.getUTCDay() : e._d.getDay()),
null != e._tzm &&
e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm),
e._nextDay && (e._a[3] = 24),
e._w &&
void 0 !== e._w.d &&
e._w.d !== s &&
(p(e).weekdayMismatch = !0);
}
}
function St(e) {
if (e._f !== r.ISO_8601)
if (e._f !== r.RFC_2822) {
(e._a = []), (p(e).empty = !0);
var t,
i,
n,
s,
o,
a,
l = '' + e._i,
c = l.length,
d = 0;
for (
n = B(e._f, e._locale).match(I) || [], t = 0;
t < n.length;
t++
)
(s = n[t]),
(i = (l.match(pe(s, e)) || [])[0]) &&
((o = l.substr(0, l.indexOf(i))).length > 0 &&
p(e).unusedInput.push(o),
(l = l.slice(l.indexOf(i) + i.length)),
(d += i.length)),
R[s]
? (i ? (p(e).empty = !1) : p(e).unusedTokens.push(s),
ye(s, i, e))
: e._strict && !i && p(e).unusedTokens.push(s);
(p(e).charsLeftOver = c - d),
l.length > 0 && p(e).unusedInput.push(l),
e._a[3] <= 12 &&
!0 === p(e).bigHour &&
e._a[3] > 0 &&
(p(e).bigHour = void 0),
(p(e).parsedDateParts = e._a.slice(0)),
(p(e).meridiem = e._meridiem),
(e._a[3] = (function (e, t, i) {
var n;
return null == i
? t
: null != e.meridiemHour
? e.meridiemHour(t, i)
: null != e.isPM
? ((n = e.isPM(i)) && t < 12 && (t += 12),
n || 12 !== t || (t = 0),
t)
: t;
})(e._locale, e._a[3], e._meridiem)),
null !== (a = p(e).era) &&
(e._a[0] = e._locale.erasConvertYear(a, e._a[0])),
Ct(e),
ct(e);
} else yt(e);
else bt(e);
}
function kt(e) {
var t = e._i,
i = e._f;
return (
(e._locale = e._locale || lt(e._l)),
null === t || (void 0 === i && '' === t)
? _({ nullInput: !0 })
: ('string' == typeof t && (e._i = t = e._locale.preparse(t)),
C(t)
? new w(ct(t))
: (h(t)
? (e._d = t)
: s(i)
? (function (e) {
var t,
i,
n,
r,
s,
o,
a = !1;
if (0 === e._f.length)
return (
(p(e).invalidFormat = !0),
void (e._d = new Date(NaN))
);
for (r = 0; r < e._f.length; r++)
(s = 0),
(o = !1),
(t = y({}, e)),
null != e._useUTC && (t._useUTC = e._useUTC),
(t._f = e._f[r]),
St(t),
m(t) && (o = !0),
(s += p(t).charsLeftOver),
(s += 10 * p(t).unusedTokens.length),
(p(t).score = s),
a
? s < n && ((n = s), (i = t))
: (null == n || s < n || o) &&
((n = s), (i = t), o && (a = !0));
g(e, i || t);
})(e)
: i
? St(e)
: (function (e) {
var t = e._i;
c(t)
? (e._d = new Date(r.now()))
: h(t)
? (e._d = new Date(t.valueOf()))
: 'string' == typeof t
? (function (e) {
var t = pt.exec(e._i);
null === t
? (bt(e),
!1 === e._isValid &&
(delete e._isValid,
yt(e),
!1 === e._isValid &&
(delete e._isValid,
e._strict
? (e._isValid = !1)
: r.createFromInputFallback(e))))
: (e._d = new Date(+t[1]));
})(e)
: s(t)
? ((e._a = u(t.slice(0), function (e) {
return parseInt(e, 10);
})),
Ct(e))
: o(t)
? (function (e) {
if (!e._d) {
var t = j(e._i),
i = void 0 === t.day ? t.date : t.day;
(e._a = u(
[
t.year,
t.month,
i,
t.hour,
t.minute,
t.second,
t.millisecond,
],
function (e) {
return e && parseInt(e, 10);
}
)),
Ct(e);
}
})(e)
: d(t)
? (e._d = new Date(t))
: r.createFromInputFallback(e);
})(e),
m(e) || (e._d = null),
e))
);
}
function xt(e, t, i, n, r) {
var a,
c = {};
return (
(!0 !== t && !1 !== t) || ((n = t), (t = void 0)),
(!0 !== i && !1 !== i) || ((n = i), (i = void 0)),
((o(e) && l(e)) || (s(e) && 0 === e.length)) && (e = void 0),
(c._isAMomentObject = !0),
(c._useUTC = c._isUTC = r),
(c._l = i),
(c._i = e),
(c._f = t),
(c._strict = n),
(a = new w(ct(kt(c))))._nextDay &&
(a.add(1, 'd'), (a._nextDay = void 0)),
a
);
}
function Lt(e, t, i, n) {
return xt(e, t, i, n, !1);
}
(r.createFromInputFallback = k(
'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',
function (e) {
e._d = new Date(e._i + (e._useUTC ? ' UTC' : ''));
}
)),
(r.ISO_8601 = function () {}),
(r.RFC_2822 = function () {});
var Mt = k(
'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
function () {
var e = Lt.apply(null, arguments);
return this.isValid() && e.isValid()
? e < this
? this
: e
: _();
}
),
Dt = k(
'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
function () {
var e = Lt.apply(null, arguments);
return this.isValid() && e.isValid()
? e > this
? this
: e
: _();
}
);
function Nt(e, t) {
var i, n;
if ((1 === t.length && s(t[0]) && (t = t[0]), !t.length))
return Lt();
for (i = t[0], n = 1; n < t.length; ++n)
(t[n].isValid() && !t[n][e](i)) || (i = t[n]);
return i;
}
var Et = [
'year',
'quarter',
'month',
'week',
'day',
'hour',
'minute',
'second',
'millisecond',
];
function Tt(e) {
var t = j(e),
i = t.year || 0,
n = t.quarter || 0,
r = t.month || 0,
s = t.week || t.isoWeek || 0,
o = t.day || 0,
l = t.hour || 0,
c = t.minute || 0,
d = t.second || 0,
h = t.millisecond || 0;
(this._isValid = (function (e) {
var t,
i,
n = !1;
for (t in e)
if (
a(e, t) &&
(-1 === we.call(Et, t) || (null != e[t] && isNaN(e[t])))
)
return !1;
for (i = 0; i < Et.length; ++i)
if (e[Et[i]]) {
if (n) return !1;
parseFloat(e[Et[i]]) !== K(e[Et[i]]) && (n = !0);
}
return !0;
})(t)),
(this._milliseconds = +h + 1e3 * d + 6e4 * c + 1e3 * l * 60 * 60),
(this._days = +o + 7 * s),
(this._months = +r + 3 * n + 12 * i),
(this._data = {}),
(this._locale = lt()),
this._bubble();
}
function It(e) {
return e instanceof Tt;
}
function Ot(e) {
return e < 0 ? -1 * Math.round(-1 * e) : Math.round(e);
}
function At(e, t) {
P(e, 0, 0, function () {
var e = this.utcOffset(),
i = '+';
return (
e < 0 && ((e = -e), (i = '-')),
i + T(~~(e / 60), 2) + t + T(~~e % 60, 2)
);
});
}
At('Z', ':'),
At('ZZ', ''),
fe('Z', ue),
fe('ZZ', ue),
be(['Z', 'ZZ'], function (e, t, i) {
(i._useUTC = !0), (i._tzm = Pt(ue, e));
});
var Rt = /([\+\-]|\d\d)/gi;
function Pt(e, t) {
var i,
n,
r = (t || '').match(e);
return null === r
? null
: 0 ===
(n =
60 *
(i = ((r[r.length - 1] || []) + '').match(Rt) || [
'-',
0,
0,
])[1] +
K(i[2]))
? 0
: '+' === i[0]
? n
: -n;
}
function Ft(e, t) {
var i, n;
return t._isUTC
? ((i = t.clone()),
(n =
(C(e) || h(e) ? e.valueOf() : Lt(e).valueOf()) - i.valueOf()),
i._d.setTime(i._d.valueOf() + n),
r.updateOffset(i, !1),
i)
: Lt(e).local();
}
function Bt(e) {
return -Math.round(e._d.getTimezoneOffset());
}
function Wt() {
return !!this.isValid() && this._isUTC && 0 === this._offset;
}
r.updateOffset = function () {};
var Yt = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
Ht = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
function jt(e, t) {
var i,
n,
r,
s,
o,
l,
c = e,
h = null;
return (
It(e)
? (c = { ms: e._milliseconds, d: e._days, M: e._months })
: d(e) || !isNaN(+e)
? ((c = {}), t ? (c[t] = +e) : (c.milliseconds = +e))
: (h = Yt.exec(e))
? ((i = '-' === h[1] ? -1 : 1),
(c = {
y: 0,
d: K(h[2]) * i,
h: K(h[3]) * i,
m: K(h[4]) * i,
s: K(h[5]) * i,
ms: K(Ot(1e3 * h[6])) * i,
}))
: (h = Ht.exec(e))
? ((i = '-' === h[1] ? -1 : 1),
(c = {
y: Vt(h[2], i),
M: Vt(h[3], i),
w: Vt(h[4], i),
d: Vt(h[5], i),
h: Vt(h[6], i),
m: Vt(h[7], i),
s: Vt(h[8], i),
}))
: null == c
? (c = {})
: 'object' == typeof c &&
('from' in c || 'to' in c) &&
((s = Lt(c.from)),
(o = Lt(c.to)),
(r =
s.isValid() && o.isValid()
? ((o = Ft(o, s)),
s.isBefore(o)
? (l = zt(s, o))
: (((l = zt(o, s)).milliseconds = -l.milliseconds),
(l.months = -l.months)),
l)
: { milliseconds: 0, months: 0 }),
((c = {}).ms = r.milliseconds),
(c.M = r.months)),
(n = new Tt(c)),
It(e) && a(e, '_locale') && (n._locale = e._locale),
It(e) && a(e, '_isValid') && (n._isValid = e._isValid),
n
);
}
function Vt(e, t) {
var i = e && parseFloat(e.replace(',', '.'));
return (isNaN(i) ? 0 : i) * t;
}
function zt(e, t) {
var i = {};
return (
(i.months = t.month() - e.month() + 12 * (t.year() - e.year())),
e.clone().add(i.months, 'M').isAfter(t) && --i.months,
(i.milliseconds = +t - +e.clone().add(i.months, 'M')),
i
);
}
function Ut(e, t) {
return function (i, n) {
var r;
return (
null === n ||
isNaN(+n) ||
(M(
t,
'moment().' +
t +
'(period, number) is deprecated. Please use moment().' +
t +
'(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'
),
(r = i),
(i = n),
(n = r)),
$t(this, jt(i, n), e),
this
);
};
}
function $t(e, t, i, n) {
var s = t._milliseconds,
o = Ot(t._days),
a = Ot(t._months);
e.isValid() &&
((n = null == n || n),
a && Ne(e, G(e, 'Month') + a * i),
o && Z(e, 'Date', G(e, 'Date') + o * i),
s && e._d.setTime(e._d.valueOf() + s * i),
n && r.updateOffset(e, o || a));
}
(jt.fn = Tt.prototype),
(jt.invalid = function () {
return jt(NaN);
});
var Kt = Ut(1, 'add'),
qt = Ut(-1, 'subtract');
function Gt(e) {
return 'string' == typeof e || e instanceof String;
}
function Zt(e) {
return (
C(e) ||
h(e) ||
Gt(e) ||
d(e) ||
(function (e) {
var t = s(e),
i = !1;
return (
t &&
(i =
0 ===
e.filter(function (t) {
return !d(t) && Gt(e);
}).length),
t && i
);
})(e) ||
(function (e) {
var t,
i,
n = o(e) && !l(e),
r = !1,
s = [
'years',
'year',
'y',
'months',
'month',
'M',
'days',
'day',
'd',
'dates',
'date',
'D',
'hours',
'hour',
'h',
'minutes',
'minute',
'm',
'seconds',
'second',
's',
'milliseconds',
'millisecond',
'ms',
];
for (t = 0; t < s.length; t += 1)
(i = s[t]), (r = r || a(e, i));
return n && r;
})(e) ||
null == e
);
}
function Jt(e) {
var t,
i = o(e) && !l(e),
n = !1,
r = [
'sameDay',
'nextDay',
'lastDay',
'nextWeek',
'lastWeek',
'sameElse',
];
for (t = 0; t < r.length; t += 1) n = n || a(e, r[t]);
return i && n;
}
function Qt(e, t) {
if (e.date() < t.date()) return -Qt(t, e);
var i = 12 * (t.year() - e.year()) + (t.month() - e.month()),
n = e.clone().add(i, 'months');
return (
-(
i +
(t - n < 0
? (t - n) / (n - e.clone().add(i - 1, 'months'))
: (t - n) / (e.clone().add(i + 1, 'months') - n))
) || 0
);
}
function Xt(e) {
var t;
return void 0 === e
? this._locale._abbr
: (null != (t = lt(e)) && (this._locale = t), this);
}
(r.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'),
(r.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]');
var ei = k(
'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
function (e) {
return void 0 === e ? this.localeData() : this.locale(e);
}
);
function ti() {
return this._locale;
}
var ii = 1e3,
ni = 6e4,
ri = 36e5,
si = 126227808e5;
function oi(e, t) {
return ((e % t) + t) % t;
}
function ai(e, t, i) {
return e < 100 && e >= 0
? new Date(e + 400, t, i) - si
: new Date(e, t, i).valueOf();
}
function li(e, t, i) {
return e < 100 && e >= 0
? Date.UTC(e + 400, t, i) - si
: Date.UTC(e, t, i);
}
function ci(e, t) {
return t.erasAbbrRegex(e);
}
function di() {
var e,
t,
i = [],
n = [],
r = [],
s = [],
o = this.eras();
for (e = 0, t = o.length; e < t; ++e)
n.push(me(o[e].name)),
i.push(me(o[e].abbr)),
r.push(me(o[e].narrow)),
s.push(me(o[e].name)),
s.push(me(o[e].abbr)),
s.push(me(o[e].narrow));
(this._erasRegex = new RegExp('^(' + s.join('|') + ')', 'i')),
(this._erasNameRegex = new RegExp('^(' + n.join('|') + ')', 'i')),
(this._erasAbbrRegex = new RegExp('^(' + i.join('|') + ')', 'i')),
(this._erasNarrowRegex = new RegExp(
'^(' + r.join('|') + ')',
'i'
));
}
function hi(e, t) {
P(0, [e, e.length], 0, t);
}
function ui(e, t, i, n, r) {
var s;
return null == e
? Be(this, n, r).year
: (t > (s = We(e, n, r)) && (t = s),
gi.call(this, e, t, i, n, r));
}
function gi(e, t, i, n, r) {
var s = Fe(e, t, i, n, r),
o = Re(s.year, 0, s.dayOfYear);
return (
this.year(o.getUTCFullYear()),
this.month(o.getUTCMonth()),
this.date(o.getUTCDate()),
this
);
}
P('N', 0, 0, 'eraAbbr'),
P('NN', 0, 0, 'eraAbbr'),
P('NNN', 0, 0, 'eraAbbr'),
P('NNNN', 0, 0, 'eraName'),
P('NNNNN', 0, 0, 'eraNarrow'),
P('y', ['y', 1], 'yo', 'eraYear'),
P('y', ['yy', 2], 0, 'eraYear'),
P('y', ['yyy', 3], 0, 'eraYear'),
P('y', ['yyyy', 4], 0, 'eraYear'),
fe('N', ci),
fe('NN', ci),
fe('NNN', ci),
fe('NNNN', function (e, t) {
return t.erasNameRegex(e);
}),
fe('NNNNN', function (e, t) {
return t.erasNarrowRegex(e);
}),
be(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (e, t, i, n) {
var r = i._locale.erasParse(e, n, i._strict);
r ? (p(i).era = r) : (p(i).invalidEra = e);
}),
fe('y', ce),
fe('yy', ce),
fe('yyy', ce),
fe('yyyy', ce),
fe('yo', function (e, t) {
return t._eraYearOrdinalRegex || ce;
}),
be(['y', 'yy', 'yyy', 'yyyy'], 0),
be(['yo'], function (e, t, i, n) {
var r;
i._locale._eraYearOrdinalRegex &&
(r = e.match(i._locale._eraYearOrdinalRegex)),
i._locale.eraYearOrdinalParse
? (t[0] = i._locale.eraYearOrdinalParse(e, r))
: (t[0] = parseInt(e, 10));
}),
P(0, ['gg', 2], 0, function () {
return this.weekYear() % 100;
}),
P(0, ['GG', 2], 0, function () {
return this.isoWeekYear() % 100;
}),
hi('gggg', 'weekYear'),
hi('ggggg', 'weekYear'),
hi('GGGG', 'isoWeekYear'),
hi('GGGGG', 'isoWeekYear'),
Y('weekYear', 'gg'),
Y('isoWeekYear', 'GG'),
z('weekYear', 1),
z('isoWeekYear', 1),
fe('G', de),
fe('g', de),
fe('GG', ne, X),
fe('gg', ne, X),
fe('GGGG', ae, te),
fe('gggg', ae, te),
fe('GGGGG', le, ie),
fe('ggggg', le, ie),
ve(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (e, t, i, n) {
t[n.substr(0, 2)] = K(e);
}),
ve(['gg', 'GG'], function (e, t, i, n) {
t[n] = r.parseTwoDigitYear(e);
}),
P('Q', 0, 'Qo', 'quarter'),
Y('quarter', 'Q'),
z('quarter', 7),
fe('Q', Q),
be('Q', function (e, t) {
t[1] = 3 * (K(e) - 1);
}),
P('D', ['DD', 2], 'Do', 'date'),
Y('date', 'D'),
z('date', 9),
fe('D', ne),
fe('DD', ne, X),
fe('Do', function (e, t) {
return e
? t._dayOfMonthOrdinalParse || t._ordinalParse
: t._dayOfMonthOrdinalParseLenient;
}),
be(['D', 'DD'], 2),
be('Do', function (e, t) {
t[2] = K(e.match(ne)[0]);
});
var fi = q('Date', !0);
P('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'),
Y('dayOfYear', 'DDD'),
z('dayOfYear', 4),
fe('DDD', oe),
fe('DDDD', ee),
be(['DDD', 'DDDD'], function (e, t, i) {
i._dayOfYear = K(e);
}),
P('m', ['mm', 2], 0, 'minute'),
Y('minute', 'm'),
z('minute', 14),
fe('m', ne),
fe('mm', ne, X),
be(['m', 'mm'], 4);
var pi = q('Minutes', !1);
P('s', ['ss', 2], 0, 'second'),
Y('second', 's'),
z('second', 15),
fe('s', ne),
fe('ss', ne, X),
be(['s', 'ss'], 5);
var mi,
_i,
bi = q('Seconds', !1);
for (
P('S', 0, 0, function () {
return ~~(this.millisecond() / 100);
}),
P(0, ['SS', 2], 0, function () {
return ~~(this.millisecond() / 10);
}),
P(0, ['SSS', 3], 0, 'millisecond'),
P(0, ['SSSS', 4], 0, function () {
return 10 * this.millisecond();
}),
P(0, ['SSSSS', 5], 0, function () {
return 100 * this.millisecond();
}),
P(0, ['SSSSSS', 6], 0, function () {
return 1e3 * this.millisecond();
}),
P(0, ['SSSSSSS', 7], 0, function () {
return 1e4 * this.millisecond();
}),
P(0, ['SSSSSSSS', 8], 0, function () {
return 1e5 * this.millisecond();
}),
P(0, ['SSSSSSSSS', 9], 0, function () {
return 1e6 * this.millisecond();
}),
Y('millisecond', 'ms'),
z('millisecond', 16),
fe('S', oe, Q),
fe('SS', oe, X),
fe('SSS', oe, ee),
mi = 'SSSS';
mi.length <= 9;
mi += 'S'
)
fe(mi, ce);
function vi(e, t) {
t[6] = K(1e3 * ('0.' + e));
}
for (mi = 'S'; mi.length <= 9; mi += 'S') be(mi, vi);
(_i = q('Milliseconds', !1)),
P('z', 0, 0, 'zoneAbbr'),
P('zz', 0, 0, 'zoneName');
var yi = w.prototype;
function wi(e) {
return e;
}
(yi.add = Kt),
(yi.calendar = function (e, t) {
1 === arguments.length &&
(arguments[0]
? Zt(arguments[0])
? ((e = arguments[0]), (t = void 0))
: Jt(arguments[0]) && ((t = arguments[0]), (e = void 0))
: ((e = void 0), (t = void 0)));
var i = e || Lt(),
n = Ft(i, this).startOf('day'),
s = r.calendarFormat(this, n) || 'sameElse',
o = t && (D(t[s]) ? t[s].call(this, i) : t[s]);
return this.format(
o || this.localeData().calendar(s, this, Lt(i))
);
}),
(yi.clone = function () {
return new w(this);
}),
(yi.diff = function (e, t, i) {
var n, r, s;
if (!this.isValid()) return NaN;
if (!(n = Ft(e, this)).isValid()) return NaN;
switch (
((r = 6e4 * (n.utcOffset() - this.utcOffset())), (t = H(t)))
) {
case 'year':
s = Qt(this, n) / 12;
break;
case 'month':
s = Qt(this, n);
break;
case 'quarter':
s = Qt(this, n) / 3;
break;
case 'second':
s = (this - n) / 1e3;
break;
case 'minute':
s = (this - n) / 6e4;
break;
case 'hour':
s = (this - n) / 36e5;
break;
case 'day':
s = (this - n - r) / 864e5;
break;
case 'week':
s = (this - n - r) / 6048e5;
break;
default:
s = this - n;
}
return i ? s : $(s);
}),
(yi.endOf = function (e) {
var t, i;
if (
void 0 === (e = H(e)) ||
'millisecond' === e ||
!this.isValid()
)
return this;
switch (((i = this._isUTC ? li : ai), e)) {
case 'year':
t = i(this.year() + 1, 0, 1) - 1;
break;
case 'quarter':
t =
i(this.year(), this.month() - (this.month() % 3) + 3, 1) -
1;
break;
case 'month':
t = i(this.year(), this.month() + 1, 1) - 1;
break;
case 'week':
t =
i(
this.year(),
this.month(),
this.date() - this.weekday() + 7
) - 1;
break;
case 'isoWeek':
t =
i(
this.year(),
this.month(),
this.date() - (this.isoWeekday() - 1) + 7
) - 1;
break;
case 'day':
case 'date':
t = i(this.year(), this.month(), this.date() + 1) - 1;
break;
case 'hour':
(t = this._d.valueOf()),
(t +=
ri -
oi(t + (this._isUTC ? 0 : this.utcOffset() * ni), ri) -
1);
break;
case 'minute':
(t = this._d.valueOf()), (t += ni - oi(t, ni) - 1);
break;
case 'second':
(t = this._d.valueOf()), (t += ii - oi(t, ii) - 1);
}
return this._d.setTime(t), r.updateOffset(this, !0), this;
}),
(yi.format = function (e) {
e || (e = this.isUtc() ? r.defaultFormatUtc : r.defaultFormat);
var t = F(this, e);
return this.localeData().postformat(t);
}),
(yi.from = function (e, t) {
return this.isValid() &&
((C(e) && e.isValid()) || Lt(e).isValid())
? jt({ to: this, from: e }).locale(this.locale()).humanize(!t)
: this.localeData().invalidDate();
}),
(yi.fromNow = function (e) {
return this.from(Lt(), e);
}),
(yi.to = function (e, t) {
return this.isValid() &&
((C(e) && e.isValid()) || Lt(e).isValid())
? jt({ from: this, to: e }).locale(this.locale()).humanize(!t)
: this.localeData().invalidDate();
}),
(yi.toNow = function (e) {
return this.to(Lt(), e);
}),
(yi.get = function (e) {
return D(this[(e = H(e))]) ? this[e]() : this;
}),
(yi.invalidAt = function () {
return p(this).overflow;
}),
(yi.isAfter = function (e, t) {
var i = C(e) ? e : Lt(e);
return (
!(!this.isValid() || !i.isValid()) &&
('millisecond' === (t = H(t) || 'millisecond')
? this.valueOf() > i.valueOf()
: i.valueOf() < this.clone().startOf(t).valueOf())
);
}),
(yi.isBefore = function (e, t) {
var i = C(e) ? e : Lt(e);
return (
!(!this.isValid() || !i.isValid()) &&
('millisecond' === (t = H(t) || 'millisecond')
? this.valueOf() < i.valueOf()
: this.clone().endOf(t).valueOf() < i.valueOf())
);
}),
(yi.isBetween = function (e, t, i, n) {
var r = C(e) ? e : Lt(e),
s = C(t) ? t : Lt(t);
return (
!!(this.isValid() && r.isValid() && s.isValid()) &&
('(' === (n = n || '()')[0]
? this.isAfter(r, i)
: !this.isBefore(r, i)) &&
(')' === n[1] ? this.isBefore(s, i) : !this.isAfter(s, i))
);
}),
(yi.isSame = function (e, t) {
var i,
n = C(e) ? e : Lt(e);
return (
!(!this.isValid() || !n.isValid()) &&
('millisecond' === (t = H(t) || 'millisecond')
? this.valueOf() === n.valueOf()
: ((i = n.valueOf()),
this.clone().startOf(t).valueOf() <= i &&
i <= this.clone().endOf(t).valueOf()))
);
}),
(yi.isSameOrAfter = function (e, t) {
return this.isSame(e, t) || this.isAfter(e, t);
}),
(yi.isSameOrBefore = function (e, t) {
return this.isSame(e, t) || this.isBefore(e, t);
}),
(yi.isValid = function () {
return m(this);
}),
(yi.lang = ei),
(yi.locale = Xt),
(yi.localeData = ti),
(yi.max = Dt),
(yi.min = Mt),
(yi.parsingFlags = function () {
return g({}, p(this));
}),
(yi.set = function (e, t) {
if ('object' == typeof e) {
var i,
n = (function (e) {
var t,
i = [];
for (t in e) a(e, t) && i.push({ unit: t, priority: V[t] });
return (
i.sort(function (e, t) {
return e.priority - t.priority;
}),
i
);
})((e = j(e)));
for (i = 0; i < n.length; i++) this[n[i].unit](e[n[i].unit]);
} else if (D(this[(e = H(e))])) return this[e](t);
return this;
}),
(yi.startOf = function (e) {
var t, i;
if (
void 0 === (e = H(e)) ||
'millisecond' === e ||
!this.isValid()
)
return this;
switch (((i = this._isUTC ? li : ai), e)) {
case 'year':
t = i(this.year(), 0, 1);
break;
case 'quarter':
t = i(this.year(), this.month() - (this.month() % 3), 1);
break;
case 'month':
t = i(this.year(), this.month(), 1);
break;
case 'week':
t = i(
this.year(),
this.month(),
this.date() - this.weekday()
);
break;
case 'isoWeek':
t = i(
this.year(),
this.month(),
this.date() - (this.isoWeekday() - 1)
);
break;
case 'day':
case 'date':
t = i(this.year(), this.month(), this.date());
break;
case 'hour':
(t = this._d.valueOf()),
(t -= oi(
t + (this._isUTC ? 0 : this.utcOffset() * ni),
ri
));
break;
case 'minute':
(t = this._d.valueOf()), (t -= oi(t, ni));
break;
case 'second':
(t = this._d.valueOf()), (t -= oi(t, ii));
}
return this._d.setTime(t), r.updateOffset(this, !0), this;
}),
(yi.subtract = qt),
(yi.toArray = function () {
var e = this;
return [
e.year(),
e.month(),
e.date(),
e.hour(),
e.minute(),
e.second(),
e.millisecond(),
];
}),
(yi.toObject = function () {
var e = this;
return {
years: e.year(),
months: e.month(),
date: e.date(),
hours: e.hours(),
minutes: e.minutes(),
seconds: e.seconds(),
milliseconds: e.milliseconds(),
};
}),
(yi.toDate = function () {
return new Date(this.valueOf());
}),
(yi.toISOString = function (e) {
if (!this.isValid()) return null;
var t = !0 !== e,
i = t ? this.clone().utc() : this;
return i.year() < 0 || i.year() > 9999
? F(
i,
t
? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'
: 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'
)
: D(Date.prototype.toISOString)
? t
? this.toDate().toISOString()
: new Date(this.valueOf() + 60 * this.utcOffset() * 1e3)
.toISOString()
.replace('Z', F(i, 'Z'))
: F(
i,
t
? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]'
: 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'
);
}),
(yi.inspect = function () {
if (!this.isValid())
return 'moment.invalid(/* ' + this._i + ' */)';
var e,
t,
i,
n = 'moment',
r = '';
return (
this.isLocal() ||
((n =
0 === this.utcOffset() ? 'moment.utc' : 'moment.parseZone'),
(r = 'Z')),
(e = '[' + n + '("]'),
(t =
0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY'),
'-MM-DD[T]HH:mm:ss.SSS',
(i = r + '[")]'),
this.format(e + t + '-MM-DD[T]HH:mm:ss.SSS' + i)
);
}),
'undefined' != typeof Symbol &&
null != Symbol.for &&
(yi[Symbol.for('nodejs.util.inspect.custom')] = function () {
return 'Moment<' + this.format() + '>';
}),
(yi.toJSON = function () {
return this.isValid() ? this.toISOString() : null;
}),
(yi.toString = function () {
return this.clone()
.locale('en')
.format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
}),
(yi.unix = function () {
return Math.floor(this.valueOf() / 1e3);
}),
(yi.valueOf = function () {
return this._d.valueOf() - 6e4 * (this._offset || 0);
}),
(yi.creationData = function () {
return {
input: this._i,
format: this._f,
locale: this._locale,
isUTC: this._isUTC,
strict: this._strict,
};
}),
(yi.eraName = function () {
var e,
t,
i,
n = this.localeData().eras();
for (e = 0, t = n.length; e < t; ++e) {
if (
((i = this.clone().startOf('day').valueOf()),
n[e].since <= i && i <= n[e].until)
)
return n[e].name;
if (n[e].until <= i && i <= n[e].since) return n[e].name;
}
return '';
}),
(yi.eraNarrow = function () {
var e,
t,
i,
n = this.localeData().eras();
for (e = 0, t = n.length; e < t; ++e) {
if (
((i = this.clone().startOf('day').valueOf()),
n[e].since <= i && i <= n[e].until)
)
return n[e].narrow;
if (n[e].until <= i && i <= n[e].since) return n[e].narrow;
}
return '';
}),
(yi.eraAbbr = function () {
var e,
t,
i,
n = this.localeData().eras();
for (e = 0, t = n.length; e < t; ++e) {
if (
((i = this.clone().startOf('day').valueOf()),
n[e].since <= i && i <= n[e].until)
)
return n[e].abbr;
if (n[e].until <= i && i <= n[e].since) return n[e].abbr;
}
return '';
}),
(yi.eraYear = function () {
var e,
t,
i,
n,
s = this.localeData().eras();
for (e = 0, t = s.length; e < t; ++e)
if (
((i = s[e].since <= s[e].until ? 1 : -1),
(n = this.clone().startOf('day').valueOf()),
(s[e].since <= n && n <= s[e].until) ||
(s[e].until <= n && n <= s[e].since))
)
return (this.year() - r(s[e].since).year()) * i + s[e].offset;
return this.year();
}),
(yi.year = Oe),
(yi.isLeapYear = function () {
return U(this.year());
}),
(yi.weekYear = function (e) {
return ui.call(
this,
e,
this.week(),
this.weekday(),
this.localeData()._week.dow,
this.localeData()._week.doy
);
}),
(yi.isoWeekYear = function (e) {
return ui.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4);
}),
(yi.quarter = yi.quarters = function (e) {
return null == e
? Math.ceil((this.month() + 1) / 3)
: this.month(3 * (e - 1) + (this.month() % 3));
}),
(yi.month = Ee),
(yi.daysInMonth = function () {
return Ce(this.year(), this.month());
}),
(yi.week = yi.weeks = function (e) {
var t = this.localeData().week(this);
return null == e ? t : this.add(7 * (e - t), 'd');
}),
(yi.isoWeek = yi.isoWeeks = function (e) {
var t = Be(this, 1, 4).week;
return null == e ? t : this.add(7 * (e - t), 'd');
}),
(yi.weeksInYear = function () {
var e = this.localeData()._week;
return We(this.year(), e.dow, e.doy);
}),
(yi.weeksInWeekYear = function () {
var e = this.localeData()._week;
return We(this.weekYear(), e.dow, e.doy);
}),
(yi.isoWeeksInYear = function () {
return We(this.year(), 1, 4);
}),
(yi.isoWeeksInISOWeekYear = function () {
return We(this.isoWeekYear(), 1, 4);
}),
(yi.date = fi),
(yi.day = yi.days = function (e) {
if (!this.isValid()) return null != e ? this : NaN;
var t = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
return null != e
? ((e = (function (e, t) {
return 'string' != typeof e
? e
: isNaN(e)
? 'number' == typeof (e = t.weekdaysParse(e))
? e
: null
: parseInt(e, 10);
})(e, this.localeData())),
this.add(e - t, 'd'))
: t;
}),
(yi.weekday = function (e) {
if (!this.isValid()) return null != e ? this : NaN;
var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
return null == e ? t : this.add(e - t, 'd');
}),
(yi.isoWeekday = function (e) {
if (!this.isValid()) return null != e ? this : NaN;
if (null != e) {
var t = (function (e, t) {
return 'string' == typeof e
? t.weekdaysParse(e) % 7 || 7
: isNaN(e)
? null
: e;
})(e, this.localeData());
return this.day(this.day() % 7 ? t : t - 7);
}
return this.day() || 7;
}),
(yi.dayOfYear = function (e) {
var t =
Math.round(
(this.clone().startOf('day') - this.clone().startOf('year')) /
864e5
) + 1;
return null == e ? t : this.add(e - t, 'd');
}),
(yi.hour = yi.hours = Qe),
(yi.minute = yi.minutes = pi),
(yi.second = yi.seconds = bi),
(yi.millisecond = yi.milliseconds = _i),
(yi.utcOffset = function (e, t, i) {
var n,
s = this._offset || 0;
if (!this.isValid()) return null != e ? this : NaN;
if (null != e) {
if ('string' == typeof e) {
if (null === (e = Pt(ue, e))) return this;
} else Math.abs(e) < 16 && !i && (e *= 60);
return (
!this._isUTC && t && (n = Bt(this)),
(this._offset = e),
(this._isUTC = !0),
null != n && this.add(n, 'm'),
s !== e &&
(!t || this._changeInProgress
? $t(this, jt(e - s, 'm'), 1, !1)
: this._changeInProgress ||
((this._changeInProgress = !0),
r.updateOffset(this, !0),
(this._changeInProgress = null))),
this
);
}
return this._isUTC ? s : Bt(this);
}),
(yi.utc = function (e) {
return this.utcOffset(0, e);
}),
(yi.local = function (e) {
return (
this._isUTC &&
(this.utcOffset(0, e),
(this._isUTC = !1),
e && this.subtract(Bt(this), 'm')),
this
);
}),
(yi.parseZone = function () {
if (null != this._tzm) this.utcOffset(this._tzm, !1, !0);
else if ('string' == typeof this._i) {
var e = Pt(he, this._i);
null != e ? this.utcOffset(e) : this.utcOffset(0, !0);
}
return this;
}),
(yi.hasAlignedHourOffset = function (e) {
return (
!!this.isValid() &&
((e = e ? Lt(e).utcOffset() : 0),
(this.utcOffset() - e) % 60 == 0)
);
}),
(yi.isDST = function () {
return (
this.utcOffset() > this.clone().month(0).utcOffset() ||
this.utcOffset() > this.clone().month(5).utcOffset()
);
}),
(yi.isLocal = function () {
return !!this.isValid() && !this._isUTC;
}),
(yi.isUtcOffset = function () {
return !!this.isValid() && this._isUTC;
}),
(yi.isUtc = Wt),
(yi.isUTC = Wt),
(yi.zoneAbbr = function () {
return this._isUTC ? 'UTC' : '';
}),
(yi.zoneName = function () {
return this._isUTC ? 'Coordinated Universal Time' : '';
}),
(yi.dates = k(
'dates accessor is deprecated. Use date instead.',
fi
)),
(yi.months = k(
'months accessor is deprecated. Use month instead',
Ee
)),
(yi.years = k(
'years accessor is deprecated. Use year instead',
Oe
)),
(yi.zone = k(
'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
function (e, t) {
return null != e
? ('string' != typeof e && (e = -e),
this.utcOffset(e, t),
this)
: -this.utcOffset();
}
)),
(yi.isDSTShifted = k(
'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
function () {
if (!c(this._isDSTShifted)) return this._isDSTShifted;
var e,
t = {};
return (
y(t, this),
(t = kt(t))._a
? ((e = t._isUTC ? f(t._a) : Lt(t._a)),
(this._isDSTShifted =
this.isValid() &&
(function (e, t, i) {
var n,
r = Math.min(e.length, t.length),
s = Math.abs(e.length - t.length),
o = 0;
for (n = 0; n < r; n++)
((i && e[n] !== t[n]) ||
(!i && K(e[n]) !== K(t[n]))) &&
o++;
return o + s;
})(t._a, e.toArray()) > 0))
: (this._isDSTShifted = !1),
this._isDSTShifted
);
}
));
var Ci = E.prototype;
function Si(e, t, i, n) {
var r = lt(),
s = f().set(n, t);
return r[i](s, e);
}
function ki(e, t, i) {
if ((d(e) && ((t = e), (e = void 0)), (e = e || ''), null != t))
return Si(e, t, i, 'month');
var n,
r = [];
for (n = 0; n < 12; n++) r[n] = Si(e, n, i, 'month');
return r;
}
function xi(e, t, i, n) {
'boolean' == typeof e
? (d(t) && ((i = t), (t = void 0)), (t = t || ''))
: ((i = t = e),
(e = !1),
d(t) && ((i = t), (t = void 0)),
(t = t || ''));
var r,
s = lt(),
o = e ? s._week.dow : 0,
a = [];
if (null != i) return Si(t, (i + o) % 7, n, 'day');
for (r = 0; r < 7; r++) a[r] = Si(t, (r + o) % 7, n, 'day');
return a;
}
(Ci.calendar = function (e, t, i) {
var n = this._calendar[e] || this._calendar.sameElse;
return D(n) ? n.call(t, i) : n;
}),
(Ci.longDateFormat = function (e) {
var t = this._longDateFormat[e],
i = this._longDateFormat[e.toUpperCase()];
return t || !i
? t
: ((this._longDateFormat[e] = i
.match(I)
.map(function (e) {
return 'MMMM' === e ||
'MM' === e ||
'DD' === e ||
'dddd' === e
? e.slice(1)
: e;
})
.join('')),
this._longDateFormat[e]);
}),
(Ci.invalidDate = function () {
return this._invalidDate;
}),
(Ci.ordinal = function (e) {
return this._ordinal.replace('%d', e);
}),
(Ci.preparse = wi),
(Ci.postformat = wi),
(Ci.relativeTime = function (e, t, i, n) {
var r = this._relativeTime[i];
return D(r) ? r(e, t, i, n) : r.replace(/%d/i, e);
}),
(Ci.pastFuture = function (e, t) {
var i = this._relativeTime[e > 0 ? 'future' : 'past'];
return D(i) ? i(t) : i.replace(/%s/i, t);
}),
(Ci.set = function (e) {
var t, i;
for (i in e)
a(e, i) &&
(D((t = e[i])) ? (this[i] = t) : (this['_' + i] = t));
(this._config = e),
(this._dayOfMonthOrdinalParseLenient = new RegExp(
(this._dayOfMonthOrdinalParse.source ||
this._ordinalParse.source) +
'|' +
/\d{1,2}/.source
));
}),
(Ci.eras = function (e, t) {
var i,
n,
s,
o = this._eras || lt('en')._eras;
for (i = 0, n = o.length; i < n; ++i) {
switch (typeof o[i].since) {
case 'string':
(s = r(o[i].since).startOf('day')),
(o[i].since = s.valueOf());
}
switch (typeof o[i].until) {
case 'undefined':
o[i].until = 1 / 0;
break;
case 'string':
(s = r(o[i].until).startOf('day').valueOf()),
(o[i].until = s.valueOf());
}
}
return o;
}),
(Ci.erasParse = function (e, t, i) {
var n,
r,
s,
o,
a,
l = this.eras();
for (e = e.toUpperCase(), n = 0, r = l.length; n < r; ++n)
if (
((s = l[n].name.toUpperCase()),
(o = l[n].abbr.toUpperCase()),
(a = l[n].narrow.toUpperCase()),
i)
)
switch (t) {
case 'N':
case 'NN':
case 'NNN':
if (o === e) return l[n];
break;
case 'NNNN':
if (s === e) return l[n];
break;
case 'NNNNN':
if (a === e) return l[n];
}
else if ([s, o, a].indexOf(e) >= 0) return l[n];
}),
(Ci.erasConvertYear = function (e, t) {
var i = e.since <= e.until ? 1 : -1;
return void 0 === t
? r(e.since).year()
: r(e.since).year() + (t - e.offset) * i;
}),
(Ci.erasAbbrRegex = function (e) {
return (
a(this, '_erasAbbrRegex') || di.call(this),
e ? this._erasAbbrRegex : this._erasRegex
);
}),
(Ci.erasNameRegex = function (e) {
return (
a(this, '_erasNameRegex') || di.call(this),
e ? this._erasNameRegex : this._erasRegex
);
}),
(Ci.erasNarrowRegex = function (e) {
return (
a(this, '_erasNarrowRegex') || di.call(this),
e ? this._erasNarrowRegex : this._erasRegex
);
}),
(Ci.months = function (e, t) {
return e
? s(this._months)
? this._months[e.month()]
: this._months[
(this._months.isFormat || xe).test(t)
? 'format'
: 'standalone'
][e.month()]
: s(this._months)
? this._months
: this._months.standalone;
}),
(Ci.monthsShort = function (e, t) {
return e
? s(this._monthsShort)
? this._monthsShort[e.month()]
: this._monthsShort[xe.test(t) ? 'format' : 'standalone'][
e.month()
]
: s(this._monthsShort)
? this._monthsShort
: this._monthsShort.standalone;
}),
(Ci.monthsParse = function (e, t, i) {
var n, r, s;
if (this._monthsParseExact) return De.call(this, e, t, i);
for (
this._monthsParse ||
((this._monthsParse = []),
(this._longMonthsParse = []),
(this._shortMonthsParse = [])),
n = 0;
n < 12;
n++
) {
if (
((r = f([2e3, n])),
i &&
!this._longMonthsParse[n] &&
((this._longMonthsParse[n] = new RegExp(
'^' + this.months(r, '').replace('.', '') + '$',
'i'
)),
(this._shortMonthsParse[n] = new RegExp(
'^' + this.monthsShort(r, '').replace('.', '') + '$',
'i'
))),
i ||
this._monthsParse[n] ||
((s =
'^' +
this.months(r, '') +
'|^' +
this.monthsShort(r, '')),
(this._monthsParse[n] = new RegExp(
s.replace('.', ''),
'i'
))),
i && 'MMMM' === t && this._longMonthsParse[n].test(e))
)
return n;
if (i && 'MMM' === t && this._shortMonthsParse[n].test(e))
return n;
if (!i && this._monthsParse[n].test(e)) return n;
}
}),
(Ci.monthsRegex = function (e) {
return this._monthsParseExact
? (a(this, '_monthsRegex') || Te.call(this),
e ? this._monthsStrictRegex : this._monthsRegex)
: (a(this, '_monthsRegex') || (this._monthsRegex = Me),
this._monthsStrictRegex && e
? this._monthsStrictRegex
: this._monthsRegex);
}),
(Ci.monthsShortRegex = function (e) {
return this._monthsParseExact
? (a(this, '_monthsRegex') || Te.call(this),
e ? this._monthsShortStrictRegex : this._monthsShortRegex)
: (a(this, '_monthsShortRegex') ||
(this._monthsShortRegex = Le),
this._monthsShortStrictRegex && e
? this._monthsShortStrictRegex
: this._monthsShortRegex);
}),
(Ci.week = function (e) {
return Be(e, this._week.dow, this._week.doy).week;
}),
(Ci.firstDayOfYear = function () {
return this._week.doy;
}),
(Ci.firstDayOfWeek = function () {
return this._week.dow;
}),
(Ci.weekdays = function (e, t) {
var i = s(this._weekdays)
? this._weekdays
: this._weekdays[
e && !0 !== e && this._weekdays.isFormat.test(t)
? 'format'
: 'standalone'
];
return !0 === e ? Ye(i, this._week.dow) : e ? i[e.day()] : i;
}),
(Ci.weekdaysMin = function (e) {
return !0 === e
? Ye(this._weekdaysMin, this._week.dow)
: e
? this._weekdaysMin[e.day()]
: this._weekdaysMin;
}),
(Ci.weekdaysShort = function (e) {
return !0 === e
? Ye(this._weekdaysShort, this._week.dow)
: e
? this._weekdaysShort[e.day()]
: this._weekdaysShort;
}),
(Ci.weekdaysParse = function (e, t, i) {
var n, r, s;
if (this._weekdaysParseExact) return Ke.call(this, e, t, i);
for (
this._weekdaysParse ||
((this._weekdaysParse = []),
(this._minWeekdaysParse = []),
(this._shortWeekdaysParse = []),
(this._fullWeekdaysParse = [])),
n = 0;
n < 7;
n++
) {
if (
((r = f([2e3, 1]).day(n)),
i &&
!this._fullWeekdaysParse[n] &&
((this._fullWeekdaysParse[n] = new RegExp(
'^' + this.weekdays(r, '').replace('.', '\\.?') + '$',
'i'
)),
(this._shortWeekdaysParse[n] = new RegExp(
'^' +
this.weekdaysShort(r, '').replace('.', '\\.?') +
'$',
'i'
)),
(this._minWeekdaysParse[n] = new RegExp(
'^' + this.weekdaysMin(r, '').replace('.', '\\.?') + '$',
'i'
))),
this._weekdaysParse[n] ||
((s =
'^' +
this.weekdays(r, '') +
'|^' +
this.weekdaysShort(r, '') +
'|^' +
this.weekdaysMin(r, '')),
(this._weekdaysParse[n] = new RegExp(
s.replace('.', ''),
'i'
))),
i && 'dddd' === t && this._fullWeekdaysParse[n].test(e))
)
return n;
if (i && 'ddd' === t && this._shortWeekdaysParse[n].test(e))
return n;
if (i && 'dd' === t && this._minWeekdaysParse[n].test(e))
return n;
if (!i && this._weekdaysParse[n].test(e)) return n;
}
}),
(Ci.weekdaysRegex = function (e) {
return this._weekdaysParseExact
? (a(this, '_weekdaysRegex') || qe.call(this),
e ? this._weekdaysStrictRegex : this._weekdaysRegex)
: (a(this, '_weekdaysRegex') || (this._weekdaysRegex = ze),
this._weekdaysStrictRegex && e
? this._weekdaysStrictRegex
: this._weekdaysRegex);
}),
(Ci.weekdaysShortRegex = function (e) {
return this._weekdaysParseExact
? (a(this, '_weekdaysRegex') || qe.call(this),
e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex)
: (a(this, '_weekdaysShortRegex') ||
(this._weekdaysShortRegex = Ue),
this._weekdaysShortStrictRegex && e
? this._weekdaysShortStrictRegex
: this._weekdaysShortRegex);
}),
(Ci.weekdaysMinRegex = function (e) {
return this._weekdaysParseExact
? (a(this, '_weekdaysRegex') || qe.call(this),
e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex)
: (a(this, '_weekdaysMinRegex') ||
(this._weekdaysMinRegex = $e),
this._weekdaysMinStrictRegex && e
? this._weekdaysMinStrictRegex
: this._weekdaysMinRegex);
}),
(Ci.isPM = function (e) {
return 'p' === (e + '').toLowerCase().charAt(0);
}),
(Ci.meridiem = function (e, t, i) {
return e > 11 ? (i ? 'pm' : 'PM') : i ? 'am' : 'AM';
}),
ot('en', {
eras: [
{
since: '0001-01-01',
until: 1 / 0,
offset: 1,
name: 'Anno Domini',
narrow: 'AD',
abbr: 'AD',
},
{
since: '0000-12-31',
until: -1 / 0,
offset: 1,
name: 'Before Christ',
narrow: 'BC',
abbr: 'BC',
},
],
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
ordinal: function (e) {
var t = e % 10;
return (
e +
(1 === K((e % 100) / 10)
? 'th'
: 1 === t
? 'st'
: 2 === t
? 'nd'
: 3 === t
? 'rd'
: 'th')
);
},
}),
(r.lang = k(
'moment.lang is deprecated. Use moment.locale instead.',
ot
)),
(r.langData = k(
'moment.langData is deprecated. Use moment.localeData instead.',
lt
));
var Li = Math.abs;
function Mi(e, t, i, n) {
var r = jt(t, i);
return (
(e._milliseconds += n * r._milliseconds),
(e._days += n * r._days),
(e._months += n * r._months),
e._bubble()
);
}
function Di(e) {
return e < 0 ? Math.floor(e) : Math.ceil(e);
}
function Ni(e) {
return (4800 * e) / 146097;
}
function Ei(e) {
return (146097 * e) / 4800;
}
function Ti(e) {
return function () {
return this.as(e);
};
}
var Ii = Ti('ms'),
Oi = Ti('s'),
Ai = Ti('m'),
Ri = Ti('h'),
Pi = Ti('d'),
Fi = Ti('w'),
Bi = Ti('M'),
Wi = Ti('Q'),
Yi = Ti('y');
function Hi(e) {
return function () {
return this.isValid() ? this._data[e] : NaN;
};
}
var ji = Hi('milliseconds'),
Vi = Hi('seconds'),
zi = Hi('minutes'),
Ui = Hi('hours'),
$i = Hi('days'),
Ki = Hi('months'),
qi = Hi('years');
var Gi = Math.round,
Zi = { ss: 44, s: 45, m: 45, h: 22, d: 26, w: null, M: 11 };
function Ji(e, t, i, n, r) {
return r.relativeTime(t || 1, !!i, e, n);
}
var Qi = Math.abs;
function Xi(e) {
return (e > 0) - (e < 0) || +e;
}
function en() {
if (!this.isValid()) return this.localeData().invalidDate();
var e,
t,
i,
n,
r,
s,
o,
a,
l = Qi(this._milliseconds) / 1e3,
c = Qi(this._days),
d = Qi(this._months),
h = this.asSeconds();
return h
? ((e = $(l / 60)),
(t = $(e / 60)),
(l %= 60),
(e %= 60),
(i = $(d / 12)),
(d %= 12),
(n = l ? l.toFixed(3).replace(/\.?0+$/, '') : ''),
(r = h < 0 ? '-' : ''),
(s = Xi(this._months) !== Xi(h) ? '-' : ''),
(o = Xi(this._days) !== Xi(h) ? '-' : ''),
(a = Xi(this._milliseconds) !== Xi(h) ? '-' : ''),
r +
'P' +
(i ? s + i + 'Y' : '') +
(d ? s + d + 'M' : '') +
(c ? o + c + 'D' : '') +
(t || e || l ? 'T' : '') +
(t ? a + t + 'H' : '') +
(e ? a + e + 'M' : '') +
(l ? a + n + 'S' : ''))
: 'P0D';
}
var tn = Tt.prototype;
return (
(tn.isValid = function () {
return this._isValid;
}),
(tn.abs = function () {
var e = this._data;
return (
(this._milliseconds = Li(this._milliseconds)),
(this._days = Li(this._days)),
(this._months = Li(this._months)),
(e.milliseconds = Li(e.milliseconds)),
(e.seconds = Li(e.seconds)),
(e.minutes = Li(e.minutes)),
(e.hours = Li(e.hours)),
(e.months = Li(e.months)),
(e.years = Li(e.years)),
this
);
}),
(tn.add = function (e, t) {
return Mi(this, e, t, 1);
}),
(tn.subtract = function (e, t) {
return Mi(this, e, t, -1);
}),
(tn.as = function (e) {
if (!this.isValid()) return NaN;
var t,
i,
n = this._milliseconds;
if ('month' === (e = H(e)) || 'quarter' === e || 'year' === e)
switch (
((t = this._days + n / 864e5), (i = this._months + Ni(t)), e)
) {
case 'month':
return i;
case 'quarter':
return i / 3;
case 'year':
return i / 12;
}
else
switch (((t = this._days + Math.round(Ei(this._months))), e)) {
case 'week':
return t / 7 + n / 6048e5;
case 'day':
return t + n / 864e5;
case 'hour':
return 24 * t + n / 36e5;
case 'minute':
return 1440 * t + n / 6e4;
case 'second':
return 86400 * t + n / 1e3;
case 'millisecond':
return Math.floor(864e5 * t) + n;
default:
throw new Error('Unknown unit ' + e);
}
}),
(tn.asMilliseconds = Ii),
(tn.asSeconds = Oi),
(tn.asMinutes = Ai),
(tn.asHours = Ri),
(tn.asDays = Pi),
(tn.asWeeks = Fi),
(tn.asMonths = Bi),
(tn.asQuarters = Wi),
(tn.asYears = Yi),
(tn.valueOf = function () {
return this.isValid()
? this._milliseconds +
864e5 * this._days +
(this._months % 12) * 2592e6 +
31536e6 * K(this._months / 12)
: NaN;
}),
(tn._bubble = function () {
var e,
t,
i,
n,
r,
s = this._milliseconds,
o = this._days,
a = this._months,
l = this._data;
return (
(s >= 0 && o >= 0 && a >= 0) ||
(s <= 0 && o <= 0 && a <= 0) ||
((s += 864e5 * Di(Ei(a) + o)), (o = 0), (a = 0)),
(l.milliseconds = s % 1e3),
(e = $(s / 1e3)),
(l.seconds = e % 60),
(t = $(e / 60)),
(l.minutes = t % 60),
(i = $(t / 60)),
(l.hours = i % 24),
(o += $(i / 24)),
(a += r = $(Ni(o))),
(o -= Di(Ei(r))),
(n = $(a / 12)),
(a %= 12),
(l.days = o),
(l.months = a),
(l.years = n),
this
);
}),
(tn.clone = function () {
return jt(this);
}),
(tn.get = function (e) {
return (e = H(e)), this.isValid() ? this[e + 's']() : NaN;
}),
(tn.milliseconds = ji),
(tn.seconds = Vi),
(tn.minutes = zi),
(tn.hours = Ui),
(tn.days = $i),
(tn.weeks = function () {
return $(this.days() / 7);
}),
(tn.months = Ki),
(tn.years = qi),
(tn.humanize = function (e, t) {
if (!this.isValid()) return this.localeData().invalidDate();
var i,
n,
r = !1,
s = Zi;
return (
'object' == typeof e && ((t = e), (e = !1)),
'boolean' == typeof e && (r = e),
'object' == typeof t &&
((s = Object.assign({}, Zi, t)),
null != t.s && null == t.ss && (s.ss = t.s - 1)),
(n = (function (e, t, i, n) {
var r = jt(e).abs(),
s = Gi(r.as('s')),
o = Gi(r.as('m')),
a = Gi(r.as('h')),
l = Gi(r.as('d')),
c = Gi(r.as('M')),
d = Gi(r.as('w')),
h = Gi(r.as('y')),
u =
(s <= i.ss && ['s', s]) ||
(s < i.s && ['ss', s]) ||
(o <= 1 && ['m']) ||
(o < i.m && ['mm', o]) ||
(a <= 1 && ['h']) ||
(a < i.h && ['hh', a]) ||
(l <= 1 && ['d']) ||
(l < i.d && ['dd', l]);
return (
null != i.w &&
(u = u || (d <= 1 && ['w']) || (d < i.w && ['ww', d])),
((u = u ||
(c <= 1 && ['M']) ||
(c < i.M && ['MM', c]) ||
(h <= 1 && ['y']) || ['yy', h])[2] = t),
(u[3] = +e > 0),
(u[4] = n),
Ji.apply(null, u)
);
})(this, !r, s, (i = this.localeData()))),
r && (n = i.pastFuture(+this, n)),
i.postformat(n)
);
}),
(tn.toISOString = en),
(tn.toString = en),
(tn.toJSON = en),
(tn.locale = Xt),
(tn.localeData = ti),
(tn.toIsoString = k(
'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
en
)),
(tn.lang = ei),
P('X', 0, 0, 'unix'),
P('x', 0, 0, 'valueOf'),
fe('x', de),
fe('X', /[+-]?\d+(\.\d{1,3})?/),
be('X', function (e, t, i) {
i._d = new Date(1e3 * parseFloat(e));
}),
be('x', function (e, t, i) {
i._d = new Date(K(e));
}),
(r.version = '2.29.1'),
(t = Lt),
(r.fn = yi),
(r.min = function () {
return Nt('isBefore', [].slice.call(arguments, 0));
}),
(r.max = function () {
return Nt('isAfter', [].slice.call(arguments, 0));
}),
(r.now = function () {
return Date.now ? Date.now() : +new Date();
}),
(r.utc = f),
(r.unix = function (e) {
return Lt(1e3 * e);
}),
(r.months = function (e, t) {
return ki(e, t, 'months');
}),
(r.isDate = h),
(r.locale = ot),
(r.invalid = _),
(r.duration = jt),
(r.isMoment = C),
(r.weekdays = function (e, t, i) {
return xi(e, t, i, 'weekdays');
}),
(r.parseZone = function () {
return Lt.apply(null, arguments).parseZone();
}),
(r.localeData = lt),
(r.isDuration = It),
(r.monthsShort = function (e, t) {
return ki(e, t, 'monthsShort');
}),
(r.weekdaysMin = function (e, t, i) {
return xi(e, t, i, 'weekdaysMin');
}),
(r.defineLocale = at),
(r.updateLocale = function (e, t) {
if (null != t) {
var i,
n,
r = et;
null != tt[e] && null != tt[e].parentLocale
? tt[e].set(N(tt[e]._config, t))
: (null != (n = st(e)) && (r = n._config),
(t = N(r, t)),
null == n && (t.abbr = e),
((i = new E(t)).parentLocale = tt[e]),
(tt[e] = i)),
ot(e);
} else
null != tt[e] &&
(null != tt[e].parentLocale
? ((tt[e] = tt[e].parentLocale), e === ot() && ot(e))
: null != tt[e] && delete tt[e]);
return tt[e];
}),
(r.locales = function () {
return x(tt);
}),
(r.weekdaysShort = function (e, t, i) {
return xi(e, t, i, 'weekdaysShort');
}),
(r.normalizeUnits = H),
(r.relativeTimeRounding = function (e) {
return void 0 === e
? Gi
: 'function' == typeof e && ((Gi = e), !0);
}),
(r.relativeTimeThreshold = function (e, t) {
return (
void 0 !== Zi[e] &&
(void 0 === t
? Zi[e]
: ((Zi[e] = t), 's' === e && (Zi.ss = t - 1), !0))
);
}),
(r.calendarFormat = function (e, t) {
var i = e.diff(t, 'days', !0);
return i < -6
? 'sameElse'
: i < -1
? 'lastWeek'
: i < 0
? 'lastDay'
: i < 1
? 'sameDay'
: i < 2
? 'nextDay'
: i < 7
? 'nextWeek'
: 'sameElse';
}),
(r.prototype = yi),
(r.HTML5_FMT = {
DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm',
DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss',
DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS',
DATE: 'YYYY-MM-DD',
TIME: 'HH:mm',
TIME_SECONDS: 'HH:mm:ss',
TIME_MS: 'HH:mm:ss.SSS',
WEEK: 'GGGG-[W]WW',
MONTH: 'YYYY-MM',
}),
r
);
})();
},
50158: (e, t, i) => {
var n;
(self.MonacoEnvironment =
((n = {
editorWorkerService: 'editor.worker.js',
json: 'json.worker.js',
}),
{
getWorkerUrl: function (e, t) {
var r = i.p,
s = (r ? r.replace(/\/$/, '') + '/' : '') + n[t];
if (/^((http:)|(https:)|(file:)|(\/\/))/.test(s)) {
var o = String(window.location),
a = o.substr(
0,
o.length -
window.location.hash.length -
window.location.search.length -
window.location.pathname.length
);
if (s.substring(0, a.length) !== a) {
var l = new Blob(
['/*' + t + '*/importScripts("' + s + '");'],
{ type: 'application/javascript' }
);
return URL.createObjectURL(l);
}
}
return s;
},
})),
i(29477),
i(17355),
i(17084),
i(84594),
i(62015),
i(9093),
i(53832),
i(64494),
i(89098),
i(76522),
i(18728),
i(42834),
i(7441),
i(93391),
i(62943),
i(23111),
i(76798),
i(42698),
i(62097),
i(92729),
i(10365),
i(25217),
i(19646),
i(83554),
i(80638),
i(97830),
i(42408),
i(34800),
i(38486),
i(55027),
i(40517),
i(97720),
i(78944),
i(98936),
i(4454),
i(81955),
i(78694),
i(24993),
i(15662),
i(19720),
i(77847),
i(31725),
i(70185),
i(43497),
i(99453),
i(60661),
(e.exports = i(34935)),
i(72323);
},
36640: (e, t, i) => {
var n;
(self.MonacoEnvironment =
((n = {
editorWorkerService: 'editor.worker.js',
json: 'json.worker.js',
}),
{
getWorkerUrl: function (e, t) {
var r = i.p,
s = (r ? r.replace(/\/$/, '') + '/' : '') + n[t];
if (/^((http:)|(https:)|(file:)|(\/\/))/.test(s)) {
var o = String(window.location),
a = o.substr(
0,
o.length -
window.location.hash.length -
window.location.search.length -
window.location.pathname.length
);
if (s.substring(0, a.length) !== a) {
var l = new Blob(
['/*' + t + '*/importScripts("' + s + '");'],
{ type: 'application/javascript' }
);
return URL.createObjectURL(l);
}
}
return s;
},
})),
i(29477),
i(17355),
i(17084),
i(84594),
i(62015),
i(9093),
i(53832),
i(64494),
i(89098),
i(76522),
i(18728),
i(42834),
i(7441),
i(93391),
i(62943),
i(23111),
i(76798),
i(42698),
i(62097),
i(92729),
i(10365),
i(25217),
i(19646),
i(83554),
i(80638),
i(97830),
i(42408),
i(34800),
i(38486),
i(55027),
i(40517),
i(97720),
i(78944),
i(98936),
i(4454),
i(81955),
i(78694),
i(24993),
i(15662),
i(19720),
i(77847),
i(31725),
i(70185),
i(43497),
i(99453),
i(60661),
(e.exports = i(98368)),
i(72323);
},
16268: (e, t, i) => {
'use strict';
i.d(t, {
px: () => s,
WP: () => o,
fX: () => a,
ie: () => l,
mX: () => c,
un: () => h,
vU: () => u,
Pf: () => g,
i7: () => f,
G6: () => p,
MG: () => m,
zc: () => _,
X5: () => b,
$W: () => v,
});
var n = i(4669);
class r {
constructor() {
(this._zoomLevel = 0),
(this._lastZoomLevelChangeTime = 0),
(this._onDidChangeZoomLevel = new n.Q5()),
(this.onDidChangeZoomLevel = this._onDidChangeZoomLevel.event),
(this._zoomFactor = 1);
}
getZoomLevel() {
return this._zoomLevel;
}
getTimeSinceLastZoomLevelChanged() {
return Date.now() - this._lastZoomLevelChangeTime;
}
getZoomFactor() {
return this._zoomFactor;
}
getPixelRatio() {
let e = document.createElement('canvas').getContext('2d');
return (
(window.devicePixelRatio || 1) /
(e.webkitBackingStorePixelRatio ||
e.mozBackingStorePixelRatio ||
e.msBackingStorePixelRatio ||
e.oBackingStorePixelRatio ||
e.backingStorePixelRatio ||
1)
);
}
}
function s() {
return r.INSTANCE.getZoomLevel();
}
function o() {
return r.INSTANCE.getTimeSinceLastZoomLevelChanged();
}
function a(e) {
return r.INSTANCE.onDidChangeZoomLevel(e);
}
function l() {
return r.INSTANCE.getZoomFactor();
}
function c() {
return r.INSTANCE.getPixelRatio();
}
r.INSTANCE = new r();
const d = navigator.userAgent,
h = d.indexOf('Edge/') >= 0,
u = d.indexOf('Firefox') >= 0,
g = d.indexOf('AppleWebKit') >= 0,
f = d.indexOf('Chrome') >= 0,
p = !f && d.indexOf('Safari') >= 0,
m = !f && !p && g,
_ = d.indexOf('iPad') >= 0 || (p && navigator.maxTouchPoints > 0),
b = h && d.indexOf('WebView/') >= 0,
v =
window.matchMedia &&
window.matchMedia('(display-mode: standalone)').matches;
},
10161: (e, t, i) => {
'use strict';
i.d(t, { D: () => s });
var n = i(16268),
r = i(1432);
const s = {
clipboard: {
writeText:
r.tY ||
(document.queryCommandSupported &&
document.queryCommandSupported('copy')) ||
!!(
navigator &&
navigator.clipboard &&
navigator.clipboard.writeText
),
readText:
r.tY ||
!!(
navigator &&
navigator.clipboard &&
navigator.clipboard.readText
),
richText: (() => {
if (n.un) {
let e = navigator.userAgent.indexOf('Edge/'),
t = parseInt(
navigator.userAgent.substring(
e + 5,
navigator.userAgent.indexOf('.', e)
),
10
);
if (!t || (t >= 12 && t <= 16)) return !1;
}
return !0;
})(),
},
keyboard: r.tY || n.$W ? 0 : navigator.keyboard || n.G6 ? 1 : 2,
touch:
'ontouchstart' in window ||
navigator.maxTouchPoints > 0 ||
window.navigator.msMaxTouchPoints > 0,
pointerEvents:
window.PointerEvent &&
('ontouchstart' in window ||
window.navigator.maxTouchPoints > 0 ||
navigator.maxTouchPoints > 0 ||
window.navigator.msMaxTouchPoints > 0),
};
},
23547: (e, t, i) => {
'use strict';
i.d(t, { go: () => n, TN: () => r, P$: () => s });
const n = {
RESOURCES: 'ResourceURLs',
DOWNLOAD_URL: 'DownloadURL',
FILES: 'Files',
TEXT: 'text/plain',
};
class r {
constructor(e) {
this.data = e;
}
update() {}
getData() {
return this.data;
}
}
const s = { CurrentDragAndDropData: void 0 };
},
65321: (e, t, i) => {
'use strict';
i.d(t, {
PO: () => p,
ZF: () => m,
Uw: () => _,
pv: () => v,
cn: () => y,
PT: () => w,
IV: () => C,
GK: () => S,
og: () => k,
nm: () => L,
mu: () => D,
Gw: () => N,
Lo: () => E,
qV: () => T,
j_: () => I,
RE: () => O,
lI: () => A,
jL: () => R,
Y_: () => Y,
Dx: () => H,
D6: () => j,
xQ: () => U,
i: () => $,
DI: () => K,
w: () => q,
FK: () => G,
If: () => Z,
wn: () => J,
jg: () => Q,
Fx: () => X,
uU: () => ee,
OO: () => ie,
Ay: () => ne,
vY: () => re,
dS: () => se,
fk: () => le,
uN: () => ce,
Re: () => de,
tw: () => he,
zB: () => ue,
vL: () => ge,
_0: () => fe,
go: () => me,
R3: () => _e,
mc: () => ve,
$: () => Ce,
$Z: () => Se,
Cp: () => ke,
eJ: () => xe,
H$: () => Le,
Uh: () => Me,
V3: () => De,
jt: () => Ne,
uD: () => Ee,
wY: () => Te,
});
var n = i(16268),
r = i(4850),
s = i(59069),
o = i(23938),
a = i(15393),
l = i(17301),
c = i(4669),
d = i(5976),
h = i(1432),
u = i(9488),
g = i(66663),
f = i(10161);
function p(e) {
for (; e.firstChild; ) e.removeChild(e.firstChild);
}
function m(e) {
e.parentNode && e.parentNode.removeChild(e);
}
function _(e) {
for (; e; ) {
if (e === document.body) return !0;
e = e.parentNode || e.host;
}
return !1;
}
const b = new (class {
hasClass(e, t) {
return Boolean(t) && e.classList && e.classList.contains(t);
}
addClasses(e, ...t) {
t.forEach((t) =>
t.split(' ').forEach((t) => this.addClass(e, t))
);
}
addClass(e, t) {
t && e.classList && e.classList.add(t);
}
removeClass(e, t) {
t && e.classList && e.classList.remove(t);
}
removeClasses(e, ...t) {
t.forEach((t) =>
t.split(' ').forEach((t) => this.removeClass(e, t))
);
}
toggleClass(e, t, i) {
e.classList && e.classList.toggle(t, i);
}
})(),
v = b.hasClass.bind(b),
y = b.addClass.bind(b),
w = b.addClasses.bind(b),
C = b.removeClass.bind(b),
S = b.removeClasses.bind(b),
k = b.toggleClass.bind(b);
class x {
constructor(e, t, i, n) {
(this._node = e),
(this._type = t),
(this._handler = i),
(this._options = n || !1),
this._node.addEventListener(
this._type,
this._handler,
this._options
);
}
dispose() {
this._handler &&
(this._node.removeEventListener(
this._type,
this._handler,
this._options
),
(this._node = null),
(this._handler = null));
}
}
function L(e, t, i, n) {
return new x(e, t, i, n);
}
function M(e) {
return function (t) {
return e(new o.n(t));
};
}
let D = function (e, t, i, n) {
let r = i;
return (
'click' === t || 'mousedown' === t
? (r = M(i))
: ('keydown' !== t && 'keypress' !== t && 'keyup' !== t) ||
(r = (function (e) {
return function (t) {
return e(new s.y(t));
};
})(i)),
L(e, t, r, n)
);
},
N = function (e, t, i) {
return E(e, M(t), i);
};
function E(e, t, i) {
return L(
e,
h.gn && f.D.pointerEvents ? he.POINTER_DOWN : he.MOUSE_DOWN,
t,
i
);
}
function T(e, t, i) {
return L(
e,
h.gn && f.D.pointerEvents ? he.POINTER_UP : he.MOUSE_UP,
t,
i
);
}
function I(e, t) {
return L(e, 'mouseout', (i) => {
let n = i.relatedTarget;
for (; n && n !== e; ) n = n.parentNode;
n !== e && t(i);
});
}
function O(e, t) {
return L(e, 'pointerout', (i) => {
let n = i.relatedTarget;
for (; n && n !== e; ) n = n.parentNode;
n !== e && t(i);
});
}
let A,
R,
P = null;
class F {
constructor(e, t = 0) {
(this._runner = e), (this.priority = t), (this._canceled = !1);
}
dispose() {
this._canceled = !0;
}
execute() {
if (!this._canceled)
try {
this._runner();
} catch (e) {
(0, l.dL)(e);
}
}
static sort(e, t) {
return t.priority - e.priority;
}
}
!(function () {
let e = [],
t = null,
i = !1,
n = !1,
r = () => {
for (i = !1, t = e, e = [], n = !0; t.length > 0; )
t.sort(F.sort), t.shift().execute();
n = !1;
};
(R = (t, n = 0) => {
let s = new F(t, n);
return (
e.push(s),
i ||
((i = !0),
(function (e) {
if (!P) {
const e = (e) =>
setTimeout(() => e(new Date().getTime()), 0);
P =
self.requestAnimationFrame ||
self.msRequestAnimationFrame ||
self.webkitRequestAnimationFrame ||
self.mozRequestAnimationFrame ||
self.oRequestAnimationFrame ||
e;
}
P.call(self, e);
})(r)),
s
);
}),
(A = (e, i) => {
if (n) {
let n = new F(e, i);
return t.push(n), n;
}
return R(e, i);
});
})();
const B = function (e, t) {
return t;
};
class W extends d.JT {
constructor(e, t, i, n = B, r = 16) {
super();
let s = null,
o = 0,
l = this._register(new a._F()),
c = () => {
(o = new Date().getTime()), i(s), (s = null);
};
this._register(
L(e, t, (e) => {
s = n(s, e);
let t = new Date().getTime() - o;
t >= r ? (l.cancel(), c()) : l.setIfNotSet(c, r - t);
})
);
}
}
function Y(e, t, i, n, r) {
return new W(e, t, i, n, r);
}
function H(e) {
return document.defaultView.getComputedStyle(e, null);
}
function j(e) {
if (e !== document.body) return new z(e.clientWidth, e.clientHeight);
if (h.gn && window.visualViewport) {
const e = window.visualViewport.width,
t = window.visualViewport.height - (n.$W ? 24 : 0);
return new z(e, t);
}
if (window.innerWidth && window.innerHeight)
return new z(window.innerWidth, window.innerHeight);
if (
document.body &&
document.body.clientWidth &&
document.body.clientHeight
)
return new z(document.body.clientWidth, document.body.clientHeight);
if (
document.documentElement &&
document.documentElement.clientWidth &&
document.documentElement.clientHeight
)
return new z(
document.documentElement.clientWidth,
document.documentElement.clientHeight
);
throw new Error('Unable to figure out browser width and height');
}
class V {
static convertToPixels(e, t) {
return parseFloat(t) || 0;
}
static getDimension(e, t, i) {
let n = H(e),
r = '0';
return (
n &&
(r = n.getPropertyValue
? n.getPropertyValue(t)
: n.getAttribute(i)),
V.convertToPixels(e, r)
);
}
static getBorderLeftWidth(e) {
return V.getDimension(e, 'border-left-width', 'borderLeftWidth');
}
static getBorderRightWidth(e) {
return V.getDimension(e, 'border-right-width', 'borderRightWidth');
}
static getBorderTopWidth(e) {
return V.getDimension(e, 'border-top-width', 'borderTopWidth');
}
static getBorderBottomWidth(e) {
return V.getDimension(
e,
'border-bottom-width',
'borderBottomWidth'
);
}
static getPaddingLeft(e) {
return V.getDimension(e, 'padding-left', 'paddingLeft');
}
static getPaddingRight(e) {
return V.getDimension(e, 'padding-right', 'paddingRight');
}
static getPaddingTop(e) {
return V.getDimension(e, 'padding-top', 'paddingTop');
}
static getPaddingBottom(e) {
return V.getDimension(e, 'padding-bottom', 'paddingBottom');
}
static getMarginLeft(e) {
return V.getDimension(e, 'margin-left', 'marginLeft');
}
static getMarginTop(e) {
return V.getDimension(e, 'margin-top', 'marginTop');
}
static getMarginRight(e) {
return V.getDimension(e, 'margin-right', 'marginRight');
}
static getMarginBottom(e) {
return V.getDimension(e, 'margin-bottom', 'marginBottom');
}
}
class z {
constructor(e, t) {
(this.width = e), (this.height = t);
}
}
function U(e) {
let t = e.offsetParent,
i = e.offsetTop,
n = e.offsetLeft;
for (
;
null !== (e = e.parentNode) &&
e !== document.body &&
e !== document.documentElement;
) {
i -= e.scrollTop;
const r = te(e) ? null : H(e);
r && (n -= 'rtl' !== r.direction ? e.scrollLeft : -e.scrollLeft),
e === t &&
((n += V.getBorderLeftWidth(e)),
(i += V.getBorderTopWidth(e)),
(i += e.offsetTop),
(n += e.offsetLeft),
(t = e.offsetParent));
}
return { left: n, top: i };
}
function $(e) {
let t = e.getBoundingClientRect();
return {
left: t.left + K.scrollX,
top: t.top + K.scrollY,
width: t.width,
height: t.height,
};
}
const K = new (class {
get scrollX() {
return 'number' == typeof window.scrollX
? window.scrollX
: document.body.scrollLeft + document.documentElement.scrollLeft;
}
get scrollY() {
return 'number' == typeof window.scrollY
? window.scrollY
: document.body.scrollTop + document.documentElement.scrollTop;
}
})();
function q(e) {
let t = V.getMarginLeft(e) + V.getMarginRight(e);
return e.offsetWidth + t;
}
function G(e) {
let t = V.getBorderLeftWidth(e) + V.getBorderRightWidth(e),
i = V.getPaddingLeft(e) + V.getPaddingRight(e);
return e.offsetWidth - t - i;
}
function Z(e) {
let t = V.getBorderTopWidth(e) + V.getBorderBottomWidth(e),
i = V.getPaddingTop(e) + V.getPaddingBottom(e);
return e.offsetHeight - t - i;
}
function J(e) {
let t = V.getMarginTop(e) + V.getMarginBottom(e);
return e.offsetHeight + t;
}
function Q(e, t) {
for (; e; ) {
if (e === t) return !0;
e = e.parentNode;
}
return !1;
}
function X(e, t, i) {
for (; e && e.nodeType === e.ELEMENT_NODE; ) {
if (v(e, t)) return e;
if (i)
if ('string' == typeof i) {
if (v(e, i)) return null;
} else if (e === i) return null;
e = e.parentNode;
}
return null;
}
function ee(e, t, i) {
return !!X(e, t, i);
}
function te(e) {
return e && !!e.host && !!e.mode;
}
function ie(e) {
return !!ne(e);
}
function ne(e) {
for (; e.parentNode; ) {
if (e === document.body) return null;
e = e.parentNode;
}
return te(e) ? e : null;
}
function re() {
let e = document.activeElement;
for (; null == e ? void 0 : e.shadowRoot; )
e = e.shadowRoot.activeElement;
return e;
}
function se(e = document.getElementsByTagName('head')[0]) {
let t = document.createElement('style');
return (
(t.type = 'text/css'), (t.media = 'screen'), e.appendChild(t), t
);
}
let oe = null;
function ae() {
return oe || (oe = se()), oe;
}
function le(e, t, i = ae()) {
i && t && i.sheet.insertRule(e + '{' + t + '}', 0);
}
function ce(e, t = ae()) {
if (!t) return;
let i = (function (e) {
return e && e.sheet && e.sheet.rules
? e.sheet.rules
: e && e.sheet && e.sheet.cssRules
? e.sheet.cssRules
: [];
})(t),
n = [];
for (let t = 0; t < i.length; t++)
-1 !== i[t].selectorText.indexOf(e) && n.push(t);
for (let e = n.length - 1; e >= 0; e--) t.sheet.deleteRule(n[e]);
}
function de(e) {
return 'object' == typeof HTMLElement
? e instanceof HTMLElement
: e &&
'object' == typeof e &&
1 === e.nodeType &&
'string' == typeof e.nodeName;
}
const he = {
CLICK: 'click',
AUXCLICK: 'auxclick',
DBLCLICK: 'dblclick',
MOUSE_UP: 'mouseup',
MOUSE_DOWN: 'mousedown',
MOUSE_OVER: 'mouseover',
MOUSE_MOVE: 'mousemove',
MOUSE_OUT: 'mouseout',
MOUSE_ENTER: 'mouseenter',
MOUSE_LEAVE: 'mouseleave',
MOUSE_WHEEL: n.un ? 'mousewheel' : 'wheel',
POINTER_UP: 'pointerup',
POINTER_DOWN: 'pointerdown',
POINTER_MOVE: 'pointermove',
CONTEXT_MENU: 'contextmenu',
WHEEL: 'wheel',
KEY_DOWN: 'keydown',
KEY_PRESS: 'keypress',
KEY_UP: 'keyup',
LOAD: 'load',
BEFORE_UNLOAD: 'beforeunload',
UNLOAD: 'unload',
ABORT: 'abort',
ERROR: 'error',
RESIZE: 'resize',
SCROLL: 'scroll',
FULLSCREEN_CHANGE: 'fullscreenchange',
WK_FULLSCREEN_CHANGE: 'webkitfullscreenchange',
SELECT: 'select',
CHANGE: 'change',
SUBMIT: 'submit',
RESET: 'reset',
FOCUS: 'focus',
FOCUS_IN: 'focusin',
FOCUS_OUT: 'focusout',
BLUR: 'blur',
INPUT: 'input',
STORAGE: 'storage',
DRAG_START: 'dragstart',
DRAG: 'drag',
DRAG_ENTER: 'dragenter',
DRAG_LEAVE: 'dragleave',
DRAG_OVER: 'dragover',
DROP: 'drop',
DRAG_END: 'dragend',
ANIMATION_START: n.Pf ? 'webkitAnimationStart' : 'animationstart',
ANIMATION_END: n.Pf ? 'webkitAnimationEnd' : 'animationend',
ANIMATION_ITERATION: n.Pf
? 'webkitAnimationIteration'
: 'animationiteration',
},
ue = {
stop: function (e, t) {
e.preventDefault ? e.preventDefault() : (e.returnValue = !1),
t &&
(e.stopPropagation
? e.stopPropagation()
: (e.cancelBubble = !0));
},
};
function ge(e) {
let t = [];
for (let i = 0; e && e.nodeType === e.ELEMENT_NODE; i++)
(t[i] = e.scrollTop), (e = e.parentNode);
return t;
}
function fe(e, t) {
for (let i = 0; e && e.nodeType === e.ELEMENT_NODE; i++)
e.scrollTop !== t[i] && (e.scrollTop = t[i]), (e = e.parentNode);
}
class pe extends d.JT {
constructor(e) {
super(),
(this._onDidFocus = this._register(new c.Q5())),
(this.onDidFocus = this._onDidFocus.event),
(this._onDidBlur = this._register(new c.Q5())),
(this.onDidBlur = this._onDidBlur.event);
let t = Q(document.activeElement, e),
i = !1;
const n = () => {
(i = !1), t || ((t = !0), this._onDidFocus.fire());
},
s = () => {
t &&
((i = !0),
window.setTimeout(() => {
i && ((i = !1), (t = !1), this._onDidBlur.fire());
}, 0));
};
(this._refreshStateHandler = () => {
Q(document.activeElement, e) !== t && (t ? s() : n());
}),
this._register((0, r.j)(e, he.FOCUS, !0)(n)),
this._register((0, r.j)(e, he.BLUR, !0)(s));
}
}
function me(e) {
return new pe(e);
}
function _e(e, ...t) {
return t.forEach((t) => e.appendChild(t)), t[t.length - 1];
}
const be = /([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;
function ve(e, ...t) {
(e.innerText = ''),
(0, u.kX)(t).forEach((t) => {
t instanceof Node
? e.appendChild(t)
: e.appendChild(document.createTextNode(t));
});
}
var ye;
function we(e, t, i, ...n) {
let r = be.exec(t);
if (!r) throw new Error('Bad use of emmet');
i = Object.assign({}, i || {});
let s,
o = r[1] || 'div';
return (
(s =
e !== ye.HTML
? document.createElementNS(e, o)
: document.createElement(o)),
r[3] && (s.id = r[3]),
r[4] && (s.className = r[4].replace(/\./g, ' ').trim()),
Object.keys(i).forEach((e) => {
const t = i[e];
void 0 !== t &&
(/^on\w+$/.test(e)
? (s[e] = t)
: 'selected' === e
? t && s.setAttribute(e, 'true')
: s.setAttribute(e, t));
}),
(0, u.kX)(n).forEach((e) => {
e instanceof Node
? s.appendChild(e)
: s.appendChild(document.createTextNode(e));
}),
s
);
}
function Ce(e, t, ...i) {
return we(ye.HTML, e, t, ...i);
}
function Se(...e) {
for (let t of e)
(t.style.display = ''), t.removeAttribute('aria-hidden');
}
function ke(...e) {
for (let t of e)
(t.style.display = 'none'), t.setAttribute('aria-hidden', 'true');
}
function xe(e) {
if (e && e.hasAttribute('tabIndex')) {
if (document.activeElement === e) {
let t = (function (e, t) {
for (; e && e.nodeType === e.ELEMENT_NODE; ) {
if (e instanceof HTMLElement && e.hasAttribute('tabIndex'))
return e;
e = e.parentNode;
}
return null;
})(e.parentElement);
t && t.focus();
}
e.removeAttribute('tabindex');
}
}
function Le(e) {
return Array.prototype.slice.call(
document.getElementsByTagName(e),
0
);
}
function Me(e) {
const t = window.devicePixelRatio * e;
return Math.max(1, Math.floor(t)) / window.devicePixelRatio;
}
function De(e) {
if (h.tY || n.X5) window.open(e);
else {
let t = window.open();
t && ((t.opener = null), (t.location.href = e));
}
}
function Ne(e) {
const t = () => {
e(), (i = R(t));
};
let i = R(t);
return (0, d.OF)(() => i.dispose());
}
function Ee(e) {
return e && g.l.vscodeRemote === e.scheme ? g.W.rewrite(e) : e;
}
function Te(e) {
return e
? `url('${Ee(e).toString(!0).replace(/'/g, '%27')}')`
: "url('')";
}
!(function (e) {
(e.HTML = 'http://www.w3.org/1999/xhtml'),
(e.SVG = 'http://www.w3.org/2000/svg');
})(ye || (ye = {})),
(Ce.SVG = function (e, t, ...i) {
return we(ye.SVG, e, t, ...i);
}),
g.W.setPreferredWebSchema(
/^https:/.test(window.location.href) ? 'https' : 'http'
);
},
4850: (e, t, i) => {
'use strict';
i.d(t, { j: () => r, s: () => s });
var n = i(4669);
const r = (e, t, i) => {
const r = (e) => s.fire(e),
s = new n.Q5({
onFirstListenerAdd: () => {
e.addEventListener(t, r, i);
},
onLastListenerRemove: () => {
e.removeEventListener(t, r, i);
},
});
return s.event;
};
function s(e) {
return n.ju.map(
e,
(e) => (e.preventDefault(), e.stopPropagation(), e)
);
}
},
38626: (e, t, i) => {
'use strict';
i.d(t, { Z: () => r, X: () => s });
var n = i(65321);
class r {
constructor(e) {
(this.domNode = e),
(this._maxWidth = -1),
(this._width = -1),
(this._height = -1),
(this._top = -1),
(this._left = -1),
(this._bottom = -1),
(this._right = -1),
(this._fontFamily = ''),
(this._fontWeight = ''),
(this._fontSize = -1),
(this._fontFeatureSettings = ''),
(this._lineHeight = -1),
(this._letterSpacing = -100),
(this._className = ''),
(this._display = ''),
(this._position = ''),
(this._visibility = ''),
(this._backgroundColor = ''),
(this._layerHint = !1),
(this._contain = 'none'),
(this._boxShadow = '');
}
setMaxWidth(e) {
this._maxWidth !== e &&
((this._maxWidth = e),
(this.domNode.style.maxWidth = this._maxWidth + 'px'));
}
setWidth(e) {
this._width !== e &&
((this._width = e),
(this.domNode.style.width = this._width + 'px'));
}
setHeight(e) {
this._height !== e &&
((this._height = e),
(this.domNode.style.height = this._height + 'px'));
}
setTop(e) {
this._top !== e &&
((this._top = e), (this.domNode.style.top = this._top + 'px'));
}
unsetTop() {
-1 !== this._top &&
((this._top = -1), (this.domNode.style.top = ''));
}
setLeft(e) {
this._left !== e &&
((this._left = e), (this.domNode.style.left = this._left + 'px'));
}
setBottom(e) {
this._bottom !== e &&
((this._bottom = e),
(this.domNode.style.bottom = this._bottom + 'px'));
}
setRight(e) {
this._right !== e &&
((this._right = e),
(this.domNode.style.right = this._right + 'px'));
}
setFontFamily(e) {
this._fontFamily !== e &&
((this._fontFamily = e),
(this.domNode.style.fontFamily = this._fontFamily));
}
setFontWeight(e) {
this._fontWeight !== e &&
((this._fontWeight = e),
(this.domNode.style.fontWeight = this._fontWeight));
}
setFontSize(e) {
this._fontSize !== e &&
((this._fontSize = e),
(this.domNode.style.fontSize = this._fontSize + 'px'));
}
setFontFeatureSettings(e) {
this._fontFeatureSettings !== e &&
((this._fontFeatureSettings = e),
(this.domNode.style.fontFeatureSettings = this._fontFeatureSettings));
}
setLineHeight(e) {
this._lineHeight !== e &&
((this._lineHeight = e),
(this.domNode.style.lineHeight = this._lineHeight + 'px'));
}
setLetterSpacing(e) {
this._letterSpacing !== e &&
((this._letterSpacing = e),
(this.domNode.style.letterSpacing = this._letterSpacing + 'px'));
}
setClassName(e) {
this._className !== e &&
((this._className = e),
(this.domNode.className = this._className));
}
toggleClassName(e, t) {
n.og(this.domNode, e, t),
(this._className = this.domNode.className);
}
setDisplay(e) {
this._display !== e &&
((this._display = e),
(this.domNode.style.display = this._display));
}
setPosition(e) {
this._position !== e &&
((this._position = e),
(this.domNode.style.position = this._position));
}
setVisibility(e) {
this._visibility !== e &&
((this._visibility = e),
(this.domNode.style.visibility = this._visibility));
}
setBackgroundColor(e) {
this._backgroundColor !== e &&
((this._backgroundColor = e),
(this.domNode.style.backgroundColor = this._backgroundColor));
}
setLayerHinting(e) {
this._layerHint !== e &&
((this._layerHint = e),
(this.domNode.style.transform = this._layerHint
? 'translate3d(0px, 0px, 0px)'
: ''));
}
setBoxShadow(e) {
this._boxShadow !== e &&
((this._boxShadow = e), (this.domNode.style.boxShadow = e));
}
setContain(e) {
this._contain !== e &&
((this._contain = e),
(this.domNode.style.contain = this._contain));
}
setAttribute(e, t) {
this.domNode.setAttribute(e, t);
}
removeAttribute(e) {
this.domNode.removeAttribute(e);
}
appendChild(e) {
this.domNode.appendChild(e.domNode);
}
removeChild(e) {
this.domNode.removeChild(e.domNode);
}
}
function s(e) {
return new r(e);
}
},
48764: (e, t, i) => {
'use strict';
i.d(t, { IY: () => r, BO: () => s, az: () => o });
var n = i(65321);
function r(e, t = {}) {
const i = o(t);
return (i.textContent = e), i;
}
function s(e, t = {}) {
const i = o(t);
return (
l(
i,
(function (e) {
const t = { type: 1, children: [] };
let i = 0,
n = t;
const r = [],
s = new a(e);
for (; !s.eos(); ) {
let e = s.next();
const t = '\\' === e && 0 !== c(s.peek());
if ((t && (e = s.next()), t || 0 === c(e) || e !== s.peek()))
if ('\n' === e)
2 === n.type && (n = r.pop()),
n.children.push({ type: 7 });
else if (2 !== n.type) {
const t = { type: 2, content: e };
n.children.push(t), r.push(n), (n = t);
} else n.content += e;
else {
s.advance(), 2 === n.type && (n = r.pop());
const t = c(e);
if (n.type === t || (5 === n.type && 6 === t)) n = r.pop();
else {
const e = { type: t, children: [] };
5 === t && ((e.index = i), i++),
n.children.push(e),
r.push(n),
(n = e);
}
}
}
return 2 === n.type && (n = r.pop()), r.length, t;
})(e),
t.actionHandler
),
i
);
}
function o(e) {
const t = e.inline ? 'span' : 'div',
i = document.createElement(t);
return e.className && (i.className = e.className), i;
}
class a {
constructor(e) {
(this.source = e), (this.index = 0);
}
eos() {
return this.index >= this.source.length;
}
next() {
const e = this.peek();
return this.advance(), e;
}
peek() {
return this.source[this.index];
}
advance() {
this.index++;
}
}
function l(e, t, i) {
let r;
if (2 === t.type) r = document.createTextNode(t.content || '');
else if (3 === t.type) r = document.createElement('b');
else if (4 === t.type) r = document.createElement('i');
else if (5 === t.type && i) {
const e = document.createElement('a');
(e.href = '#'),
i.disposeables.add(
n.mu(e, 'click', (e) => {
i.callback(String(t.index), e);
})
),
(r = e);
} else
7 === t.type
? (r = document.createElement('br'))
: 1 === t.type && (r = e);
r && e !== r && e.appendChild(r),
r &&
Array.isArray(t.children) &&
t.children.forEach((e) => {
l(r, e, i);
});
}
function c(e) {
switch (e) {
case '*':
return 3;
case '_':
return 4;
case '[':
return 5;
case ']':
return 6;
default:
return 0;
}
}
},
57974: (e, t, i) => {
'use strict';
i.d(t, { e: () => c, Z: () => d });
var n = i(65321),
r = i(1432),
s = i(70262),
o = i(23938),
a = i(5976),
l = i(10161);
function c(e, t) {
let i = new o.n(t);
return (
i.preventDefault(),
{
leftButton: i.leftButton,
buttons: i.buttons,
posx: i.posx,
posy: i.posy,
}
);
}
class d {
constructor() {
(this._hooks = new a.SL()),
(this._mouseMoveEventMerger = null),
(this._mouseMoveCallback = null),
(this._onStopCallback = null);
}
dispose() {
this.stopMonitoring(!1), this._hooks.dispose();
}
stopMonitoring(e) {
if (!this.isMonitoring()) return;
this._hooks.clear(),
(this._mouseMoveEventMerger = null),
(this._mouseMoveCallback = null);
const t = this._onStopCallback;
(this._onStopCallback = null), e && t && t();
}
isMonitoring() {
return !!this._mouseMoveEventMerger;
}
startMonitoring(e, t, i, a, c) {
if (this.isMonitoring()) return;
(this._mouseMoveEventMerger = i),
(this._mouseMoveCallback = a),
(this._onStopCallback = c);
const d = s.E.getSameOriginWindowChain(),
h = r.gn && l.D.pointerEvents ? 'pointermove' : 'mousemove',
u = r.gn && l.D.pointerEvents ? 'pointerup' : 'mouseup',
g = d.map((e) => e.window.document),
f = n.Ay(e);
f && g.unshift(f);
for (const e of g)
this._hooks.add(
n.Y_(
e,
h,
(e) => {
e.buttons === t
? this._mouseMoveCallback(e)
: this.stopMonitoring(!0);
},
(e, t) => this._mouseMoveEventMerger(e, t)
)
),
this._hooks.add(n.nm(e, u, (e) => this.stopMonitoring(!0)));
if (s.E.hasDifferentOriginAncestor()) {
let e = d[d.length - 1];
this._hooks.add(
n.nm(e.window.document, 'mouseout', (e) => {
'html' === new o.n(e).target.tagName.toLowerCase() &&
this.stopMonitoring(!0);
})
),
this._hooks.add(
n.nm(e.window.document, 'mouseover', (e) => {
'html' === new o.n(e).target.tagName.toLowerCase() &&
this.stopMonitoring(!0);
})
),
this._hooks.add(
n.nm(e.window.document.body, 'mouseleave', (e) => {
this.stopMonitoring(!0);
})
);
}
}
}
},
70262: (e, t, i) => {
'use strict';
i.d(t, { E: () => o });
let n = !1,
r = null;
function s(e) {
if (!e.parent || e.parent === e) return null;
try {
let t = e.location,
i = e.parent.location;
if (
'null' !== t.origin &&
'null' !== i.origin &&
(t.protocol !== i.protocol ||
t.hostname !== i.hostname ||
t.port !== i.port)
)
return (n = !0), null;
} catch (e) {
return (n = !0), null;
}
return e.parent;
}
class o {
static getSameOriginWindowChain() {
if (!r) {
r = [];
let e,
t = window;
do {
(e = s(t)),
e
? r.push({
window: t,
iframeElement: t.frameElement || null,
})
: r.push({ window: t, iframeElement: null }),
(t = e);
} while (t);
}
return r.slice(0);
}
static hasDifferentOriginAncestor() {
return r || this.getSameOriginWindowChain(), n;
}
static getPositionOfChildWindowRelativeToAncestorWindow(e, t) {
if (!t || e === t) return { top: 0, left: 0 };
let i = 0,
n = 0,
r = this.getSameOriginWindowChain();
for (const e of r) {
if (
((i += e.window.scrollY),
(n += e.window.scrollX),
e.window === t)
)
break;
if (!e.iframeElement) break;
let r = e.iframeElement.getBoundingClientRect();
(i += r.top), (n += r.left);
}
return { top: i, left: n };
}
}
},
59069: (e, t, i) => {
'use strict';
i.d(t, { y: () => d });
var n = i(16268),
r = i(22258),
s = i(1432);
let o = new Array(230),
a = new Array(112);
!(function () {
for (let e = 0; e < a.length; e++) a[e] = -1;
function e(e, t) {
(o[e] = t), (a[t] = e);
}
e(3, 7),
e(8, 1),
e(9, 2),
e(13, 3),
e(16, 4),
e(17, 5),
e(18, 6),
e(19, 7),
e(20, 8),
e(27, 9),
e(32, 10),
e(33, 11),
e(34, 12),
e(35, 13),
e(36, 14),
e(37, 15),
e(38, 16),
e(39, 17),
e(40, 18),
e(45, 19),
e(46, 20),
e(48, 21),
e(49, 22),
e(50, 23),
e(51, 24),
e(52, 25),
e(53, 26),
e(54, 27),
e(55, 28),
e(56, 29),
e(57, 30),
e(65, 31),
e(66, 32),
e(67, 33),
e(68, 34),
e(69, 35),
e(70, 36),
e(71, 37),
e(72, 38),
e(73, 39),
e(74, 40),
e(75, 41),
e(76, 42),
e(77, 43),
e(78, 44),
e(79, 45),
e(80, 46),
e(81, 47),
e(82, 48),
e(83, 49),
e(84, 50),
e(85, 51),
e(86, 52),
e(87, 53),
e(88, 54),
e(89, 55),
e(90, 56),
e(93, 58),
e(96, 93),
e(97, 94),
e(98, 95),
e(99, 96),
e(100, 97),
e(101, 98),
e(102, 99),
e(103, 100),
e(104, 101),
e(105, 102),
e(106, 103),
e(107, 104),
e(108, 105),
e(109, 106),
e(110, 107),
e(111, 108),
e(112, 59),
e(113, 60),
e(114, 61),
e(115, 62),
e(116, 63),
e(117, 64),
e(118, 65),
e(119, 66),
e(120, 67),
e(121, 68),
e(122, 69),
e(123, 70),
e(124, 71),
e(125, 72),
e(126, 73),
e(127, 74),
e(128, 75),
e(129, 76),
e(130, 77),
e(144, 78),
e(145, 79),
e(186, 80),
e(187, 81),
e(188, 82),
e(189, 83),
e(190, 84),
e(191, 85),
e(192, 86),
e(193, 110),
e(194, 111),
e(219, 87),
e(220, 88),
e(221, 89),
e(222, 90),
e(223, 91),
e(226, 92),
e(229, 109),
n.vU
? (e(59, 80), e(107, 81), e(109, 83), s.dz && e(224, 57))
: n.Pf && (e(91, 57), s.dz ? e(93, 57) : e(92, 57));
})();
const l = s.dz ? 256 : 2048,
c = s.dz ? 2048 : 256;
class d {
constructor(e) {
this._standardKeyboardEventBrand = !0;
let t = e;
(this.browserEvent = t),
(this.target = t.target),
(this.ctrlKey = t.ctrlKey),
(this.shiftKey = t.shiftKey),
(this.altKey = t.altKey),
(this.metaKey = t.metaKey),
(this.keyCode = (function (e) {
if (e.charCode) {
let t = String.fromCharCode(e.charCode).toUpperCase();
return r.kL.fromString(t);
}
return o[e.keyCode] || 0;
})(t)),
(this.code = t.code),
(this.ctrlKey = this.ctrlKey || 5 === this.keyCode),
(this.altKey = this.altKey || 6 === this.keyCode),
(this.shiftKey = this.shiftKey || 4 === this.keyCode),
(this.metaKey = this.metaKey || 57 === this.keyCode),
(this._asKeybinding = this._computeKeybinding()),
(this._asRuntimeKeybinding = this._computeRuntimeKeybinding());
}
preventDefault() {
this.browserEvent &&
this.browserEvent.preventDefault &&
this.browserEvent.preventDefault();
}
stopPropagation() {
this.browserEvent &&
this.browserEvent.stopPropagation &&
this.browserEvent.stopPropagation();
}
toKeybinding() {
return this._asRuntimeKeybinding;
}
equals(e) {
return this._asKeybinding === e;
}
_computeKeybinding() {
let e = 0;
5 !== this.keyCode &&
4 !== this.keyCode &&
6 !== this.keyCode &&
57 !== this.keyCode &&
(e = this.keyCode);
let t = 0;
return (
this.ctrlKey && (t |= l),
this.altKey && (t |= 512),
this.shiftKey && (t |= 1024),
this.metaKey && (t |= c),
(t |= e),
t
);
}
_computeRuntimeKeybinding() {
let e = 0;
return (
5 !== this.keyCode &&
4 !== this.keyCode &&
6 !== this.keyCode &&
57 !== this.keyCode &&
(e = this.keyCode),
new r.QC(
this.ctrlKey,
this.shiftKey,
this.altKey,
this.metaKey,
e
)
);
}
}
},
23938: (e, t, i) => {
'use strict';
i.d(t, { n: () => o, q: () => a });
var n = i(16268),
r = i(70262),
s = i(1432);
class o {
constructor(e) {
(this.timestamp = Date.now()),
(this.browserEvent = e),
(this.leftButton = 0 === e.button),
(this.middleButton = 1 === e.button),
(this.rightButton = 2 === e.button),
(this.buttons = e.buttons),
(this.target = e.target),
(this.detail = e.detail || 1),
'dblclick' === e.type && (this.detail = 2),
(this.ctrlKey = e.ctrlKey),
(this.shiftKey = e.shiftKey),
(this.altKey = e.altKey),
(this.metaKey = e.metaKey),
'number' == typeof e.pageX
? ((this.posx = e.pageX), (this.posy = e.pageY))
: ((this.posx =
e.clientX +
document.body.scrollLeft +
document.documentElement.scrollLeft),
(this.posy =
e.clientY +
document.body.scrollTop +
document.documentElement.scrollTop));
let t = r.E.getPositionOfChildWindowRelativeToAncestorWindow(
self,
e.view
);
(this.posx -= t.left), (this.posy -= t.top);
}
preventDefault() {
this.browserEvent.preventDefault();
}
stopPropagation() {
this.browserEvent.stopPropagation();
}
}
class a {
constructor(e, t = 0, i = 0) {
if (
((this.browserEvent = e || null),
(this.target = e
? e.target || e.targetNode || e.srcElement
: null),
(this.deltaY = i),
(this.deltaX = t),
e)
) {
let t = e,
i = e;
if (void 0 !== t.wheelDeltaY) this.deltaY = t.wheelDeltaY / 120;
else if (void 0 !== i.VERTICAL_AXIS && i.axis === i.VERTICAL_AXIS)
this.deltaY = -i.detail / 3;
else if ('wheel' === e.type) {
const t = e;
t.deltaMode === t.DOM_DELTA_LINE
? n.vU && !s.dz
? (this.deltaY = -e.deltaY / 3)
: (this.deltaY = -e.deltaY)
: (this.deltaY = -e.deltaY / 40);
}
if (void 0 !== t.wheelDeltaX)
n.G6 && s.ED
? (this.deltaX = -t.wheelDeltaX / 120)
: (this.deltaX = t.wheelDeltaX / 120);
else if (
void 0 !== i.HORIZONTAL_AXIS &&
i.axis === i.HORIZONTAL_AXIS
)
this.deltaX = -e.detail / 3;
else if ('wheel' === e.type) {
const t = e;
t.deltaMode === t.DOM_DELTA_LINE
? n.vU && !s.dz
? (this.deltaX = -e.deltaX / 3)
: (this.deltaX = -e.deltaX)
: (this.deltaX = -e.deltaX / 40);
}
0 === this.deltaY &&
0 === this.deltaX &&
e.wheelDelta &&
(this.deltaY = e.wheelDelta / 120);
}
}
preventDefault() {
this.browserEvent && this.browserEvent.preventDefault();
}
stopPropagation() {
this.browserEvent && this.browserEvent.stopPropagation();
}
}
},
10553: (e, t, i) => {
'use strict';
i.d(t, { t: () => n, o: () => l });
var n,
r = i(9488),
s = i(5976),
o = i(65321),
a = i(49898);
!(function (e) {
(e.Tap = '-monaco-gesturetap'),
(e.Change = '-monaco-gesturechange'),
(e.Start = '-monaco-gesturestart'),
(e.End = '-monaco-gesturesend'),
(e.Contextmenu = '-monaco-gesturecontextmenu');
})(n || (n = {}));
class l extends s.JT {
constructor() {
super(),
(this.dispatched = !1),
(this.activeTouches = {}),
(this.handle = null),
(this.targets = []),
(this.ignoreTargets = []),
(this._lastSetTapCountTime = 0),
this._register(
o.nm(document, 'touchstart', (e) => this.onTouchStart(e), {
passive: !1,
})
),
this._register(
o.nm(document, 'touchend', (e) => this.onTouchEnd(e))
),
this._register(
o.nm(document, 'touchmove', (e) => this.onTouchMove(e), {
passive: !1,
})
);
}
static addTarget(e) {
return l.isTouchDevice()
? (l.INSTANCE || (l.INSTANCE = new l()),
l.INSTANCE.targets.push(e),
{
dispose: () => {
l.INSTANCE.targets = l.INSTANCE.targets.filter(
(t) => t !== e
);
},
})
: s.JT.None;
}
static ignoreTarget(e) {
return l.isTouchDevice()
? (l.INSTANCE || (l.INSTANCE = new l()),
l.INSTANCE.ignoreTargets.push(e),
{
dispose: () => {
l.INSTANCE.ignoreTargets = l.INSTANCE.ignoreTargets.filter(
(t) => t !== e
);
},
})
: s.JT.None;
}
static isTouchDevice() {
return (
'ontouchstart' in window ||
navigator.maxTouchPoints > 0 ||
window.navigator.msMaxTouchPoints > 0
);
}
dispose() {
this.handle && (this.handle.dispose(), (this.handle = null)),
super.dispose();
}
onTouchStart(e) {
let t = Date.now();
this.handle && (this.handle.dispose(), (this.handle = null));
for (let i = 0, r = e.targetTouches.length; i < r; i++) {
let r = e.targetTouches.item(i);
this.activeTouches[r.identifier] = {
id: r.identifier,
initialTarget: r.target,
initialTimeStamp: t,
initialPageX: r.pageX,
initialPageY: r.pageY,
rollingTimestamps: [t],
rollingPageX: [r.pageX],
rollingPageY: [r.pageY],
};
let s = this.newGestureEvent(n.Start, r.target);
(s.pageX = r.pageX), (s.pageY = r.pageY), this.dispatchEvent(s);
}
this.dispatched &&
(e.preventDefault(), e.stopPropagation(), (this.dispatched = !1));
}
onTouchEnd(e) {
let t = Date.now(),
i = Object.keys(this.activeTouches).length;
for (let s = 0, o = e.changedTouches.length; s < o; s++) {
let o = e.changedTouches.item(s);
if (!this.activeTouches.hasOwnProperty(String(o.identifier))) {
console.warn('move of an UNKNOWN touch', o);
continue;
}
let a = this.activeTouches[o.identifier],
c = Date.now() - a.initialTimeStamp;
if (
c < l.HOLD_DELAY &&
Math.abs(a.initialPageX - r.Gb(a.rollingPageX)) < 30 &&
Math.abs(a.initialPageY - r.Gb(a.rollingPageY)) < 30
) {
let e = this.newGestureEvent(n.Tap, a.initialTarget);
(e.pageX = r.Gb(a.rollingPageX)),
(e.pageY = r.Gb(a.rollingPageY)),
this.dispatchEvent(e);
} else if (
c >= l.HOLD_DELAY &&
Math.abs(a.initialPageX - r.Gb(a.rollingPageX)) < 30 &&
Math.abs(a.initialPageY - r.Gb(a.rollingPageY)) < 30
) {
let e = this.newGestureEvent(n.Contextmenu, a.initialTarget);
(e.pageX = r.Gb(a.rollingPageX)),
(e.pageY = r.Gb(a.rollingPageY)),
this.dispatchEvent(e);
} else if (1 === i) {
let e = r.Gb(a.rollingPageX),
i = r.Gb(a.rollingPageY),
n = r.Gb(a.rollingTimestamps) - a.rollingTimestamps[0],
s = e - a.rollingPageX[0],
o = i - a.rollingPageY[0];
const l = this.targets.filter(
(e) =>
a.initialTarget instanceof Node &&
e.contains(a.initialTarget)
);
this.inertia(
l,
t,
Math.abs(s) / n,
s > 0 ? 1 : -1,
e,
Math.abs(o) / n,
o > 0 ? 1 : -1,
i
);
}
this.dispatchEvent(this.newGestureEvent(n.End, a.initialTarget)),
delete this.activeTouches[o.identifier];
}
this.dispatched &&
(e.preventDefault(), e.stopPropagation(), (this.dispatched = !1));
}
newGestureEvent(e, t) {
let i = document.createEvent('CustomEvent');
return (
i.initEvent(e, !1, !0), (i.initialTarget = t), (i.tapCount = 0), i
);
}
dispatchEvent(e) {
if (e.type === n.Tap) {
const t = new Date().getTime();
let i = 0;
(i =
t - this._lastSetTapCountTime > l.CLEAR_TAP_COUNT_TIME ? 1 : 2),
(this._lastSetTapCountTime = t),
(e.tapCount = i);
} else
(e.type !== n.Change && e.type !== n.Contextmenu) ||
(this._lastSetTapCountTime = 0);
for (let t = 0; t < this.ignoreTargets.length; t++)
if (
e.initialTarget instanceof Node &&
this.ignoreTargets[t].contains(e.initialTarget)
)
return;
this.targets.forEach((t) => {
e.initialTarget instanceof Node &&
t.contains(e.initialTarget) &&
(t.dispatchEvent(e), (this.dispatched = !0));
});
}
inertia(e, t, i, r, s, a, c, d) {
this.handle = o.jL(() => {
let o = Date.now(),
h = o - t,
u = 0,
g = 0,
f = !0;
(i += l.SCROLL_FRICTION * h),
(a += l.SCROLL_FRICTION * h),
i > 0 && ((f = !1), (u = r * i * h)),
a > 0 && ((f = !1), (g = c * a * h));
let p = this.newGestureEvent(n.Change);
(p.translationX = u),
(p.translationY = g),
e.forEach((e) => e.dispatchEvent(p)),
f || this.inertia(e, o, i, r, s + u, a, c, d + g);
});
}
onTouchMove(e) {
let t = Date.now();
for (let i = 0, s = e.changedTouches.length; i < s; i++) {
let s = e.changedTouches.item(i);
if (!this.activeTouches.hasOwnProperty(String(s.identifier))) {
console.warn('end of an UNKNOWN touch', s);
continue;
}
let o = this.activeTouches[s.identifier],
a = this.newGestureEvent(n.Change, o.initialTarget);
(a.translationX = s.pageX - r.Gb(o.rollingPageX)),
(a.translationY = s.pageY - r.Gb(o.rollingPageY)),
(a.pageX = s.pageX),
(a.pageY = s.pageY),
this.dispatchEvent(a),
o.rollingPageX.length > 3 &&
(o.rollingPageX.shift(),
o.rollingPageY.shift(),
o.rollingTimestamps.shift()),
o.rollingPageX.push(s.pageX),
o.rollingPageY.push(s.pageY),
o.rollingTimestamps.push(t);
}
this.dispatched &&
(e.preventDefault(), e.stopPropagation(), (this.dispatched = !1));
}
}
(l.SCROLL_FRICTION = -0.005),
(l.HOLD_DELAY = 700),
(l.CLEAR_TAP_COUNT_TIME = 400),
(function (e, t, i, n) {
var r,
s = arguments.length,
o =
s < 3
? t
: null === n
? (n = Object.getOwnPropertyDescriptor(t, i))
: n;
if (
'object' == typeof Reflect &&
'function' == typeof Reflect.decorate
)
o = Reflect.decorate(e, t, i, n);
else
for (var a = e.length - 1; a >= 0; a--)
(r = e[a]) &&
(o = (s < 3 ? r(o) : s > 3 ? r(t, i, o) : r(t, i)) || o);
s > 3 && o && Object.defineProperty(t, i, o);
})([a.H], l, 'isTouchDevice', null);
},
76033: (e, t, i) => {
'use strict';
i.d(t, { Y: () => u, g: () => g });
var n = i(1432),
r = i(63580),
s = i(5976),
o = i(74741),
a = i(65321),
l = i(98401),
c = i(10553),
d = i(23547),
h = i(16268);
class u extends s.JT {
constructor(e, t, i = {}) {
super(),
(this.options = i),
(this._context = e || this),
(this._action = t),
t instanceof o.aU &&
this._register(
t.onDidChange((e) => {
this.element && this.handleActionChangeEvent(e);
})
);
}
handleActionChangeEvent(e) {
void 0 !== e.enabled && this.updateEnabled(),
void 0 !== e.checked && this.updateChecked(),
void 0 !== e.class && this.updateClass(),
void 0 !== e.label && (this.updateLabel(), this.updateTooltip()),
void 0 !== e.tooltip && this.updateTooltip();
}
get actionRunner() {
return (
this._actionRunner ||
(this._actionRunner = this._register(new o.Wi())),
this._actionRunner
);
}
set actionRunner(e) {
this._actionRunner = e;
}
getAction() {
return this._action;
}
isEnabled() {
return this._action.enabled;
}
setActionContext(e) {
this._context = e;
}
render(e) {
const t = (this.element = e);
this._register(c.o.addTarget(e));
const i = this.options && this.options.draggable;
i &&
((e.draggable = !0),
h.vU &&
this._register(
a.nm(e, a.tw.DRAG_START, (e) => {
var t;
return null === (t = e.dataTransfer) || void 0 === t
? void 0
: t.setData(d.go.TEXT, this._action.label);
})
)),
this._register(a.nm(t, c.t.Tap, (e) => this.onClick(e))),
this._register(
a.nm(t, a.tw.MOUSE_DOWN, (e) => {
i || a.zB.stop(e, !0),
this._action.enabled && 0 === e.button && a.cn(t, 'active');
})
),
n.dz &&
this._register(
a.nm(t, a.tw.CONTEXT_MENU, (e) => {
0 === e.button && !0 === e.ctrlKey && this.onClick(e);
})
),
this._register(
a.nm(t, a.tw.CLICK, (e) => {
a.zB.stop(e, !0),
(this.options && this.options.isMenu) ||
n.xS(() => this.onClick(e));
})
),
this._register(
a.nm(t, a.tw.DBLCLICK, (e) => {
a.zB.stop(e, !0);
})
),
[a.tw.MOUSE_UP, a.tw.MOUSE_OUT].forEach((e) => {
this._register(
a.nm(t, e, (e) => {
a.zB.stop(e), a.IV(t, 'active');
})
);
});
}
onClick(e) {
var t;
a.zB.stop(e, !0);
const i = l.Jp(this._context)
? (
null === (t = this.options) || void 0 === t
? void 0
: t.useEventAsContext
)
? e
: void 0
: this._context;
this.actionRunner.run(this._action, i);
}
focus() {
this.element &&
(this.element.focus(), a.cn(this.element, 'focused'));
}
blur() {
this.element &&
(this.element.blur(), a.IV(this.element, 'focused'));
}
updateEnabled() {}
updateLabel() {}
updateTooltip() {}
updateClass() {}
updateChecked() {}
dispose() {
this.element && (a.ZF(this.element), (this.element = void 0)),
super.dispose();
}
}
class g extends u {
constructor(e, t, i = {}) {
super(e, t, i),
(this.options = i),
(this.options.icon = void 0 !== i.icon && i.icon),
(this.options.label = void 0 === i.label || i.label),
(this.cssClass = '');
}
render(e) {
super.render(e),
this.element &&
(this.label = a.R3(this.element, a.$('a.action-label'))),
this.label &&
(this._action.id === o.Z0.ID
? this.label.setAttribute('role', 'presentation')
: this.options.isMenu
? this.label.setAttribute('role', 'menuitem')
: this.label.setAttribute('role', 'button')),
this.options.label &&
this.options.keybinding &&
this.element &&
(a.R3(
this.element,
a.$('span.keybinding')
).textContent = this.options.keybinding),
this.updateClass(),
this.updateLabel(),
this.updateTooltip(),
this.updateEnabled(),
this.updateChecked();
}
focus() {
super.focus(), this.label && this.label.focus();
}
updateLabel() {
this.options.label &&
this.label &&
(this.label.textContent = this.getAction().label);
}
updateTooltip() {
let e = null;
this.getAction().tooltip
? (e = this.getAction().tooltip)
: !this.options.label &&
this.getAction().label &&
this.options.icon &&
((e = this.getAction().label),
this.options.keybinding &&
(e = r.N(
{
key: 'titleLabel',
comment: ['action title', 'action keybinding'],
},
'{0} ({1})',
e,
this.options.keybinding
))),
e && this.label && (this.label.title = e);
}
updateClass() {
this.cssClass && this.label && a.GK(this.label, this.cssClass),
this.options.icon
? ((this.cssClass = this.getAction().class),
this.label &&
(a.cn(this.label, 'codicon'),
this.cssClass && a.PT(this.label, this.cssClass)),
this.updateEnabled())
: this.label && a.IV(this.label, 'codicon');
}
updateEnabled() {
this.getAction().enabled
? (this.label &&
(this.label.removeAttribute('aria-disabled'),
a.IV(this.label, 'disabled'),
(this.label.tabIndex = 0)),
this.element && a.IV(this.element, 'disabled'))
: (this.label &&
(this.label.setAttribute('aria-disabled', 'true'),
a.cn(this.label, 'disabled'),
a.eJ(this.label)),
this.element && a.cn(this.element, 'disabled'));
}
updateChecked() {
this.label &&
(this.getAction().checked
? a.cn(this.label, 'checked')
: a.IV(this.label, 'checked'));
}
}
},
90317: (e, t, i) => {
'use strict';
i.d(t, { o: () => d });
var n = i(5976),
r = i(74741),
s = i(65321),
o = i(98401),
a = i(59069),
l = i(4669),
c = i(76033);
class d extends n.JT {
constructor(e, t = {}) {
var i, n, o;
let c, d;
switch (
(super(),
(this._onDidBlur = this._register(new l.Q5())),
(this.onDidBlur = this._onDidBlur.event),
(this._onDidCancel = this._register(new l.Q5())),
(this.onDidCancel = this._onDidCancel.event),
(this._onDidRun = this._register(new l.Q5())),
(this.onDidRun = this._onDidRun.event),
(this._onDidBeforeRun = this._register(new l.Q5())),
(this.onDidBeforeRun = this._onDidBeforeRun.event),
(this.options = t),
(this._context =
null !== (i = t.context) && void 0 !== i ? i : null),
(this._orientation =
null !== (n = this.options.orientation) && void 0 !== n
? n
: 0),
(this._triggerKeys =
null !== (o = this.options.triggerKeys) && void 0 !== o
? o
: { keys: [3, 10], keyDown: !1 }),
this.options.actionRunner
? (this._actionRunner = this.options.actionRunner)
: ((this._actionRunner = new r.Wi()),
this._register(this._actionRunner)),
this._register(
this._actionRunner.onDidRun((e) => this._onDidRun.fire(e))
),
this._register(
this._actionRunner.onDidBeforeRun((e) =>
this._onDidBeforeRun.fire(e)
)
),
(this.viewItems = []),
(this.focusedItem = void 0),
(this.domNode = document.createElement('div')),
(this.domNode.className = 'monaco-action-bar'),
!1 !== t.animated && s.cn(this.domNode, 'animated'),
this._orientation)
) {
case 0:
(c = 15), (d = 17);
break;
case 1:
(c = 17), (d = 15), (this.domNode.className += ' reverse');
break;
case 2:
(c = 16), (d = 18), (this.domNode.className += ' vertical');
break;
case 3:
(c = 18),
(d = 16),
(this.domNode.className += ' vertical reverse');
}
this._register(
s.nm(this.domNode, s.tw.KEY_DOWN, (e) => {
const t = new a.y(e);
let i = !0;
t.equals(c)
? (i = this.focusPrevious())
: t.equals(d)
? (i = this.focusNext())
: t.equals(9)
? this._onDidCancel.fire()
: this.isTriggerKeyEvent(t)
? this._triggerKeys.keyDown && this.doTrigger(t)
: (i = !1),
i && (t.preventDefault(), t.stopPropagation());
})
),
this._register(
s.nm(this.domNode, s.tw.KEY_UP, (e) => {
const t = new a.y(e);
this.isTriggerKeyEvent(t)
? (this._triggerKeys.keyDown || this.doTrigger(t),
t.preventDefault(),
t.stopPropagation())
: (t.equals(2) || t.equals(1026)) &&
this.updateFocusedItem();
})
),
(this.focusTracker = this._register(s.go(this.domNode))),
this._register(
this.focusTracker.onDidBlur(() => {
(s.vY() !== this.domNode && s.jg(s.vY(), this.domNode)) ||
(this._onDidBlur.fire(), (this.focusedItem = void 0));
})
),
this._register(
this.focusTracker.onDidFocus(() => this.updateFocusedItem())
),
(this.actionsList = document.createElement('ul')),
(this.actionsList.className = 'actions-container'),
this.actionsList.setAttribute('role', 'toolbar'),
this.options.ariaLabel &&
this.actionsList.setAttribute(
'aria-label',
this.options.ariaLabel
),
this.domNode.appendChild(this.actionsList),
e.appendChild(this.domNode);
}
isTriggerKeyEvent(e) {
let t = !1;
return (
this._triggerKeys.keys.forEach((i) => {
t = t || e.equals(i);
}),
t
);
}
updateFocusedItem() {
for (let e = 0; e < this.actionsList.children.length; e++) {
const t = this.actionsList.children[e];
if (s.jg(s.vY(), t)) {
this.focusedItem = e;
break;
}
}
}
get context() {
return this._context;
}
set context(e) {
(this._context = e),
this.viewItems.forEach((t) => t.setActionContext(e));
}
get actionRunner() {
return this._actionRunner;
}
set actionRunner(e) {
e &&
((this._actionRunner = e),
this.viewItems.forEach((t) => (t.actionRunner = e)));
}
getContainer() {
return this.domNode;
}
push(e, t = {}) {
const i = Array.isArray(e) ? e : [e];
let n = o.hj(t.index) ? t.index : null;
i.forEach((e) => {
const i = document.createElement('li');
let r;
(i.className = 'action-item'),
i.setAttribute('role', 'presentation'),
this.options.allowContextMenu ||
this._register(
s.nm(i, s.tw.CONTEXT_MENU, (e) => {
s.zB.stop(e, !0);
})
),
this.options.actionViewItemProvider &&
(r = this.options.actionViewItemProvider(e)),
r || (r = new c.g(this.context, e, t)),
(r.actionRunner = this._actionRunner),
r.setActionContext(this.context),
r.render(i),
null === n || n < 0 || n >= this.actionsList.children.length
? (this.actionsList.appendChild(i), this.viewItems.push(r))
: (this.actionsList.insertBefore(
i,
this.actionsList.children[n]
),
this.viewItems.splice(n, 0, r),
n++);
}),
this.focusedItem && this.focus(this.focusedItem);
}
clear() {
(0, n.B9)(this.viewItems),
(this.viewItems = []),
s.PO(this.actionsList);
}
focus(e) {
let t,
i = !1;
void 0 === e
? (i = !0)
: 'number' == typeof e
? (t = e)
: 'boolean' == typeof e && (i = e),
i && void 0 === this.focusedItem
? ((this.focusedItem = -1), this.focusNext())
: (void 0 !== t && (this.focusedItem = t), this.updateFocus());
}
focusNext() {
void 0 === this.focusedItem &&
(this.focusedItem = this.viewItems.length - 1);
const e = this.focusedItem;
let t;
do {
if (
this.options.preventLoopNavigation &&
this.focusedItem + 1 >= this.viewItems.length
)
return (this.focusedItem = e), !1;
(this.focusedItem =
(this.focusedItem + 1) % this.viewItems.length),
(t = this.viewItems[this.focusedItem]);
} while (this.focusedItem !== e && !t.isEnabled());
return (
this.focusedItem !== e ||
t.isEnabled() ||
(this.focusedItem = void 0),
this.updateFocus(),
!0
);
}
focusPrevious() {
void 0 === this.focusedItem && (this.focusedItem = 0);
const e = this.focusedItem;
let t;
do {
if (
((this.focusedItem = this.focusedItem - 1),
this.focusedItem < 0)
) {
if (this.options.preventLoopNavigation)
return (this.focusedItem = e), !1;
this.focusedItem = this.viewItems.length - 1;
}
t = this.viewItems[this.focusedItem];
} while (this.focusedItem !== e && !t.isEnabled());
return (
this.focusedItem !== e ||
t.isEnabled() ||
(this.focusedItem = void 0),
this.updateFocus(!0),
!0
);
}
updateFocus(e, t) {
void 0 === this.focusedItem &&
this.actionsList.focus({ preventScroll: t });
for (let i = 0; i < this.viewItems.length; i++) {
const n = this.viewItems[i];
i === this.focusedItem
? o.mf(n.isEnabled) &&
(n.isEnabled() && o.mf(n.focus)
? n.focus(e)
: this.actionsList.focus({ preventScroll: t }))
: o.mf(n.blur) && n.blur();
}
}
doTrigger(e) {
if (void 0 === this.focusedItem) return;
const t = this.viewItems[this.focusedItem];
if (t instanceof c.Y) {
const i =
null === t._context || void 0 === t._context ? e : t._context;
this.run(t._action, i);
}
}
run(e, t) {
return this._actionRunner.run(e, t);
}
dispose() {
(0, n.B9)(this.viewItems),
(this.viewItems = []),
s.ZF(this.getContainer()),
super.dispose();
}
}
},
85152: (e, t, i) => {
'use strict';
i.d(t, { wW: () => d, Z9: () => h, i7: () => u });
var n = i(1432),
r = i(65321);
let s, o, a, l, c;
function d(e) {
(s = document.createElement('div')),
(s.className = 'monaco-aria-container');
const t = () => {
const e = document.createElement('div');
return (
(e.className = 'monaco-alert'),
e.setAttribute('role', 'alert'),
e.setAttribute('aria-atomic', 'true'),
s.appendChild(e),
e
);
};
(o = t()), (a = t());
const i = () => {
const e = document.createElement('div');
return (
(e.className = 'monaco-status'),
e.setAttribute('role', 'complementary'),
e.setAttribute('aria-live', 'polite'),
e.setAttribute('aria-atomic', 'true'),
s.appendChild(e),
e
);
};
(l = i()), (c = i()), e.appendChild(s);
}
function h(e) {
s && (o.textContent !== e ? (r.PO(a), g(o, e)) : (r.PO(o), g(a, e)));
}
function u(e) {
s &&
(n.dz
? h(e)
: l.textContent !== e
? (r.PO(c), g(l, e))
: (r.PO(l), g(c, e)));
}
function g(e, t) {
r.PO(e),
t.length > 2e4 && (t = t.substr(0, 2e4)),
(e.textContent = t),
(e.style.visibility = 'hidden'),
(e.style.visibility = 'visible');
}
},
28609: (e, t, i) => {
'use strict';
i.d(t, { D: () => r, a: () => s });
var n = i(73046);
const r = new (class {
constructor() {
this.onDidChange = n.fK.onDidRegister;
}
getCSS() {
const e = [];
for (let t of n.fK.all) e.push(s(t));
return e.join('\n');
}
})();
function s(e) {
let t = e.definition;
for (; t instanceof n.lA; ) t = t.definition;
return `.codicon-${e.id}:before { content: '${t.character}'; }`;
}
},
67488: (e, t, i) => {
'use strict';
i.d(t, { Z: () => l });
var n = i(65321),
r = i(97295),
s = i(41264),
o = i(36248);
const a = {
badgeBackground: s.Il.fromHex('#4D4D4D'),
badgeForeground: s.Il.fromHex('#FFFFFF'),
};
class l {
constructor(e, t) {
(this.count = 0),
(this.options = t || Object.create(null)),
(0, o.jB)(this.options, a, !1),
(this.badgeBackground = this.options.badgeBackground),
(this.badgeForeground = this.options.badgeForeground),
(this.badgeBorder = this.options.badgeBorder),
(this.element = (0, n.R3)(e, (0, n.$)('.monaco-count-badge'))),
(this.countFormat = this.options.countFormat || '{0}'),
(this.titleFormat = this.options.titleFormat || ''),
this.setCount(this.options.count || 0);
}
setCount(e) {
(this.count = e), this.render();
}
setTitleFormat(e) {
(this.titleFormat = e), this.render();
}
render() {
(this.element.textContent = (0, r.WU)(
this.countFormat,
this.count
)),
(this.element.title = (0, r.WU)(this.titleFormat, this.count)),
this.applyStyles();
}
style(e) {
(this.badgeBackground = e.badgeBackground),
(this.badgeForeground = e.badgeForeground),
(this.badgeBorder = e.badgeBorder),
this.applyStyles();
}
applyStyles() {
if (this.element) {
const e = this.badgeBackground
? this.badgeBackground.toString()
: '',
t = this.badgeForeground ? this.badgeForeground.toString() : '',
i = this.badgeBorder ? this.badgeBorder.toString() : '';
(this.element.style.backgroundColor = e),
(this.element.style.color = t),
(this.element.style.borderWidth = i ? '1px' : ''),
(this.element.style.borderStyle = i ? 'solid' : ''),
(this.element.style.borderColor = i);
}
}
}
},
34650: (e, t, i) => {
'use strict';
i.d(t, { q: () => o });
var n = i(36248),
r = i(73046),
s = i(97295);
class o {
constructor(e, t) {
(this.supportCodicons = t),
(this.text = ''),
(this.title = ''),
(this.highlights = []),
(this.didEverRender = !1),
(this.domNode = document.createElement('span')),
(this.domNode.className = 'monaco-highlighted-label'),
e.appendChild(this.domNode);
}
get element() {
return this.domNode;
}
set(e, t = [], i = '', r) {
e || (e = ''),
r && (e = o.escapeNewLines(e, t)),
(this.didEverRender &&
this.text === e &&
this.title === i &&
n.fS(this.highlights, t)) ||
(Array.isArray(t) || (t = []),
(this.text = e),
(this.title = i),
(this.highlights = t),
this.render());
}
render() {
let e = '',
t = 0;
for (const i of this.highlights) {
if (i.end === i.start) continue;
if (t < i.start) {
e += '';
const n = this.text.substring(t, i.start);
(e += this.supportCodicons
? (0, r.Mi)((0, s.YU)(n))
: (0, s.YU)(n)),
(e += ''),
(t = i.end);
}
i.extraClasses
? (e += `