diff --git a/MystEditor.js b/MystEditor.js index 361f96d..cdccab5 100644 --- a/MystEditor.js +++ b/MystEditor.js @@ -1,6 +1,6 @@ -var K2e = Object.defineProperty; -var J2e = (t, e, r) => e in t ? K2e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r; -var br = (t, e, r) => (J2e(t, typeof e != "symbol" ? e + "" : e, r), r), ebe = (t, e, r) => { +var J2e = Object.defineProperty; +var ebe = (t, e, r) => e in t ? J2e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r; +var fr = (t, e, r) => (ebe(t, typeof e != "symbol" ? e + "" : e, r), r), tbe = (t, e, r) => { if (!e.has(t)) throw TypeError("Cannot " + r); }; @@ -9,8 +9,8 @@ var Jw = (t, e, r) => { throw TypeError("Cannot add the same private member more than once"); e instanceof WeakSet ? e.add(t) : e.set(t, r); }; -var pv = (t, e, r) => (ebe(t, e, "access private method"), r); -var Px, Ut, Mj, Dj, Wd, NB, Pj, C7, Nj, l2 = {}, Ij = [], tbe = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, TT = Array.isArray; +var pv = (t, e, r) => (tbe(t, e, "access private method"), r); +var Px, Ut, Mj, Dj, Wd, NB, Pj, C7, Nj, l2 = {}, Ij = [], rbe = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, TT = Array.isArray; function qu(t, e) { for (var r in e) t[r] = e[r]; @@ -33,7 +33,7 @@ function Ly(t, e, r, n, i) { var s = { type: t, props: e, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: i == null ? ++Mj : i, __i: -1, __u: 0 }; return i == null && Ut.vnode != null && Ut.vnode(s), s; } -function rbe() { +function nbe() { return { current: null }; } function su(t) { @@ -72,14 +72,14 @@ function ck() { } function Fj(t, e, r, n, i, s, a, o, l, u, h) { var f, d, p, g, m, v = n && n.__k || Ij, y = e.length; - for (r.__d = l, nbe(r, e, v), l = r.__d, f = 0; f < y; f++) + for (r.__d = l, ibe(r, e, v), l = r.__d, f = 0; f < y; f++) (p = r.__k[f]) != null && typeof p != "boolean" && typeof p != "function" && (d = p.__i === -1 ? l2 : v[p.__i] || l2, p.__i = f, PM(t, p, d, i, s, a, o, l, u, h), g = p.__e, p.ref && d.ref != p.ref && (d.ref && NM(d.ref, null, p), h.push(p.ref, p.__c || g, p)), m == null && g != null && (m = g), 65536 & p.__u || d.__k === p.__k ? l = zj(p, l, t) : typeof p.type == "function" && p.__d !== void 0 ? l = p.__d : g && (l = g.nextSibling), p.__d = void 0, p.__u &= -196609); r.__d = l, r.__e = m; } -function nbe(t, e, r) { +function ibe(t, e, r) { var n, i, s, a, o, l = e.length, u = r.length, h = u, f = 0; for (t.__k = [], n = 0; n < l; n++) - (i = t.__k[n] = (i = e[n]) == null || typeof i == "boolean" || typeof i == "function" ? null : typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? Ly(null, i, null, null, i) : TT(i) ? Ly(su, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? Ly(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) != null ? (i.__ = t, i.__b = t.__b + 1, o = ibe(i, r, a = n + f, h), i.__i = o, s = null, o !== -1 && (h--, (s = r[o]) && (s.__u |= 131072)), s == null || s.__v === null ? (o == -1 && f--, typeof i.type != "function" && (i.__u |= 65536)) : o !== a && (o === a + 1 ? f++ : o > a ? h > l - a ? f += o - a : f-- : f = o < a && o == a - 1 ? o - a : 0, o !== n + f && (i.__u |= 65536))) : (s = r[n]) && s.key == null && s.__e && (s.__e == t.__d && (t.__d = im(s)), _7(s, s, !1), r[n] = null, h--); + (i = t.__k[n] = (i = e[n]) == null || typeof i == "boolean" || typeof i == "function" ? null : typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? Ly(null, i, null, null, i) : TT(i) ? Ly(su, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? Ly(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) != null ? (i.__ = t, i.__b = t.__b + 1, o = sbe(i, r, a = n + f, h), i.__i = o, s = null, o !== -1 && (h--, (s = r[o]) && (s.__u |= 131072)), s == null || s.__v === null ? (o == -1 && f--, typeof i.type != "function" && (i.__u |= 65536)) : o !== a && (o === a + 1 ? f++ : o > a ? h > l - a ? f += o - a : f-- : f = o < a && o == a - 1 ? o - a : 0, o !== n + f && (i.__u |= 65536))) : (s = r[n]) && s.key == null && s.__e && (s.__e == t.__d && (t.__d = im(s)), _7(s, s, !1), r[n] = null, h--); if (h) for (n = 0; n < u; n++) (s = r[n]) != null && (131072 & s.__u) == 0 && (s.__e == t.__d && (t.__d = im(s)), _7(s, s)); @@ -98,7 +98,7 @@ function Zu(t, e) { Zu(r, e); }) : e.push(t)), e; } -function ibe(t, e, r, n) { +function sbe(t, e, r, n) { var i = t.key, s = t.type, a = r - 1, o = r + 1, l = e[r]; if (l === null || l && i == l.key && s === l.type) return r; @@ -118,7 +118,7 @@ function ibe(t, e, r, n) { return -1; } function IB(t, e, r) { - e[0] === "-" ? t.setProperty(e, r == null ? "" : r) : t[e] = r == null ? "" : typeof r != "number" || tbe.test(e) ? r : r + "px"; + e[0] === "-" ? t.setProperty(e, r == null ? "" : r) : t[e] = r == null ? "" : typeof r != "number" || rbe.test(e) ? r : r + "px"; } function eO(t, e, r, n, i) { var s; @@ -168,7 +168,7 @@ function PM(t, e, r, n, i, s, a, o, l, u) { e: if (typeof E == "function") try { - if (y = e.props, b = (h = E.contextType) && n[h.__c], w = h ? b ? b.props.value : h.__ : n, r.__c ? v = (f = e.__c = r.__c).__ = f.__E : ("prototype" in E && E.prototype.render ? e.__c = f = new E(y, w) : (e.__c = f = new Ul(y, w), f.constructor = E, f.render = abe), b && b.sub(f), f.props = y, f.state || (f.state = {}), f.context = w, f.__n = n, d = f.__d = !0, f.__h = [], f._sb = []), f.__s == null && (f.__s = f.state), E.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = qu({}, f.__s)), qu(f.__s, E.getDerivedStateFromProps(y, f.__s))), p = f.props, g = f.state, f.__v = e, d) + if (y = e.props, b = (h = E.contextType) && n[h.__c], w = h ? b ? b.props.value : h.__ : n, r.__c ? v = (f = e.__c = r.__c).__ = f.__E : ("prototype" in E && E.prototype.render ? e.__c = f = new E(y, w) : (e.__c = f = new Ul(y, w), f.constructor = E, f.render = obe), b && b.sub(f), f.props = y, f.state || (f.state = {}), f.context = w, f.__n = n, d = f.__d = !0, f.__h = [], f._sb = []), f.__s == null && (f.__s = f.state), E.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = qu({}, f.__s)), qu(f.__s, E.getDerivedStateFromProps(y, f.__s))), p = f.props, g = f.state, f.__v = e, d) E.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), f.componentDidMount != null && f.__h.push(f.componentDidMount); else { if (E.getDerivedStateFromProps == null && y !== p && f.componentWillReceiveProps != null && f.componentWillReceiveProps(y, w), !f.__e && (f.shouldComponentUpdate != null && f.shouldComponentUpdate(y, f.__s, w) === !1 || e.__v === r.__v)) { @@ -196,7 +196,7 @@ function PM(t, e, r, n, i, s, a, o, l, u) { e.__v = null, l || s != null ? (e.__e = o, e.__u |= l ? 160 : 32, s[s.indexOf(o)] = null) : (e.__e = r.__e, e.__k = r.__k), Ut.__e(R, e, r); } else - s == null && e.__v === r.__v ? (e.__k = r.__k, e.__e = r.__e) : e.__e = sbe(r.__e, e, r, n, i, s, a, l, u); + s == null && e.__v === r.__v ? (e.__k = r.__k, e.__e = r.__e) : e.__e = abe(r.__e, e, r, n, i, s, a, l, u); (h = Ut.diffed) && h(e); } function Qj(t, e, r) { @@ -213,7 +213,7 @@ function Qj(t, e, r) { } }); } -function sbe(t, e, r, n, i, s, a, o, l) { +function abe(t, e, r, n, i, s, a, o, l) { var u, h, f, d, p, g, m, v = r.props, y = e.props, b = e.type; if (b === "svg" && (i = !0), s != null) { for (u = 0; u < s.length; u++) @@ -269,7 +269,7 @@ function _7(t, e, r) { n[i] && _7(n[i], e, r || typeof t.type != "function"); r || t.__e == null || $j(t.__e), t.__ = t.__e = t.__d = void 0; } -function abe(t, e, r) { +function obe(t, e, r) { return this.constructor(t, r); } function jc(t, e, r) { @@ -279,7 +279,7 @@ function jc(t, e, r) { function Uj(t, e) { jc(t, e, Uj); } -function obe(t, e, r) { +function lbe(t, e, r) { var n, i, s, a, o = qu({}, t.props); for (s in t.type && t.type.defaultProps && (a = t.type.defaultProps), e) s == "key" ? n = e[s] : s == "ref" ? i = e[s] : o[s] = e[s] === void 0 && a !== void 0 ? a[s] : e[s]; @@ -326,7 +326,7 @@ Px = Ij.slice, Ut = { __e: function(t, e, r, n) { }, Ul.prototype.render = su, Wd = [], Pj = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, C7 = function(t, e) { return t.__v.__b - e.__v.__b; }, ck.__r = 0, Nj = 0; -var Df, Mn, h_, FB, sm = 0, qj = [], Y4 = [], zB = Ut.__b, QB = Ut.__r, UB = Ut.diffed, VB = Ut.__c, qB = Ut.unmount; +var Pf, Mn, h_, FB, sm = 0, qj = [], Y4 = [], zB = Ut.__b, QB = Ut.__r, UB = Ut.diffed, VB = Ut.__c, qB = Ut.unmount; function v1(t, e) { Ut.__h && Ut.__h(Mn, t, sm || e), sm = 0; var r = Mn.__H || (Mn.__H = { __: [], __h: [] }); @@ -336,7 +336,7 @@ function fi(t) { return sm = 1, CT(Yj, t); } function CT(t, e, r) { - var n = v1(Df++, 2); + var n = v1(Pf++, 2); if (n.t = t, !n.__c && (n.__ = [r ? r(e) : Yj(void 0, e), function(o) { var l = n.__N ? n.__N[0] : n.__[0], u = n.t(l, o); l !== u && (n.__N = [u, n.__[1]], n.__c.setState({})); @@ -372,11 +372,11 @@ function CT(t, e, r) { return n.__N || n.__; } function ri(t, e) { - var r = v1(Df++, 3); + var r = v1(Pf++, 3); !Ut.__s && IM(r.__H, e) && (r.__ = t, r.i = e, Mn.__H.__h.push(r)); } function ET(t, e) { - var r = v1(Df++, 4); + var r = v1(Pf++, 4); !Ut.__s && IM(r.__H, e) && (r.__ = t, r.i = e, Mn.__h.push(r)); } function Ts(t) { @@ -384,7 +384,7 @@ function Ts(t) { return { current: t }; }, []); } -function lbe(t, e, r) { +function cbe(t, e, r) { sm = 6, ET(function() { return typeof t == "function" ? (t(e()), function() { return t(null); @@ -394,7 +394,7 @@ function lbe(t, e, r) { }, r == null ? r : r.concat(t)); } function vi(t, e) { - var r = v1(Df++, 7); + var r = v1(Pf++, 7); return IM(r.__H, e) ? (r.__V = t(), r.i = e, r.__h = t, r.__V) : r.__; } function uk(t, e) { @@ -403,14 +403,14 @@ function uk(t, e) { }, e); } function cc(t) { - var e = Mn.context[t.__c], r = v1(Df++, 9); + var e = Mn.context[t.__c], r = v1(Pf++, 9); return r.c = t, e ? (r.__ == null && (r.__ = !0, e.sub(Mn)), e.props.value) : t.__; } function A7(t, e) { Ut.useDebugValue && Ut.useDebugValue(e ? e(t) : t); } -function cbe() { - var t = v1(Df++, 11); +function ube() { + var t = v1(Pf++, 11); if (!t.__) { for (var e = Mn.__v; e !== null && !e.__m && e.__ !== null; ) e = e.__; @@ -419,7 +419,7 @@ function cbe() { } return t.__; } -function ube() { +function hbe() { for (var t; t = qj.shift(); ) if (t.__P && t.__H) try { @@ -431,15 +431,15 @@ function ube() { Ut.__b = function(t) { Mn = null, zB && zB(t); }, Ut.__r = function(t) { - QB && QB(t), Df = 0; + QB && QB(t), Pf = 0; var e = (Mn = t.__c).__H; e && (h_ === Mn ? (e.__h = [], Mn.__h = [], e.__.forEach(function(r) { r.__N && (r.__ = r.__N), r.__V = Y4, r.__N = r.i = void 0; - })) : (e.__h.forEach(W4), e.__h.forEach(L7), e.__h = [], Df = 0)), h_ = Mn; + })) : (e.__h.forEach(W4), e.__h.forEach(L7), e.__h = [], Pf = 0)), h_ = Mn; }, Ut.diffed = function(t) { UB && UB(t); var e = t.__c; - e && e.__H && (e.__H.__h.length && (qj.push(e) !== 1 && FB === Ut.requestAnimationFrame || ((FB = Ut.requestAnimationFrame) || hbe)(ube)), e.__H.__.forEach(function(r) { + e && e.__H && (e.__H.__h.length && (qj.push(e) !== 1 && FB === Ut.requestAnimationFrame || ((FB = Ut.requestAnimationFrame) || fbe)(hbe)), e.__H.__.forEach(function(r) { r.i && (r.__H = r.i), r.__V !== Y4 && (r.__ = r.__V), r.i = void 0, r.__V = Y4; })), h_ = Mn = null; }, Ut.__c = function(t, e) { @@ -466,7 +466,7 @@ Ut.__b = function(t) { }), r.__H = void 0, e && Ut.__e(e, r.__v)); }; var YB = typeof requestAnimationFrame == "function"; -function hbe(t) { +function fbe(t) { var e, r = function() { clearTimeout(n), YB && cancelAnimationFrame(e), setTimeout(t); }, n = setTimeout(r, 100); @@ -504,15 +504,15 @@ function am(t, e, r) { (s || !(n in e)) && (s || (s = Array.prototype.slice.call(e, 0, n)), s[n] = e[n]); return t.concat(s || Array.prototype.slice.call(e)); } -function fbe(t) { +function dbe(t) { var e = /* @__PURE__ */ Object.create(null); return function(r) { return e[r] === void 0 && (e[r] = t(r)), e[r]; }; } -var dbe = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, pbe = /* @__PURE__ */ fbe( +var pbe = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, gbe = /* @__PURE__ */ dbe( function(t) { - return dbe.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91; + return pbe.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91; } ); function Wj(t, e) { @@ -532,7 +532,7 @@ function R7(t, e) { function M7(t) { this.props = t; } -function gbe(t, e) { +function mbe(t, e) { function r(i) { var s = this.props.ref, a = s == i.ref; return !a && s && (s.call ? s(null) : s.current = null), e ? !e(this.props, i) || !a : R7(this.props, i); @@ -549,31 +549,31 @@ var WB = Ut.__b; Ut.__b = function(t) { t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), WB && WB(t); }; -var mbe = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911; -function vbe(t) { +var vbe = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911; +function ybe(t) { function e(r) { var n = Wj({}, r); return delete n.ref, t(n, r.ref || null); } - return e.$$typeof = mbe, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e; + return e.$$typeof = vbe, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e; } var GB = function(t, e) { return t == null ? null : Zu(Zu(t).map(e)); -}, ybe = { map: GB, forEach: GB, count: function(t) { +}, bbe = { map: GB, forEach: GB, count: function(t) { return t ? Zu(t).length : 0; }, only: function(t) { var e = Zu(t); if (e.length !== 1) throw "Children.only"; return e[0]; -}, toArray: Zu }, bbe = Ut.__e; +}, toArray: Zu }, xbe = Ut.__e; Ut.__e = function(t, e, r, n) { if (t.then) { for (var i, s = e; s = s.__; ) if ((i = s.__c) && i.__c) return e.__e == null && (e.__e = r.__e, e.__k = r.__k), i.__c(t, e); } - bbe(t, e, r, n); + xbe(t, e, r, n); }; var XB = Ut.unmount; function Gj(t, e, r) { @@ -595,7 +595,7 @@ function Hj(t) { var e = t.__.__c; return e && e.__a && e.__a(t); } -function xbe(t) { +function wbe(t) { var e, r, n; function i(s) { if (e || (e = t()).then(function(a) { @@ -658,12 +658,12 @@ var HB = function(t, e, r) { t.u = r = r[2]; } }; -function wbe(t) { +function Obe(t) { return this.getChildContext = function() { return t.context; }, t.children; } -function Obe(t) { +function kbe(t) { var e = this, r = t.i; e.componentWillUnmount = function() { jc(null, e.l), e.l = null, e.i = null; @@ -673,10 +673,10 @@ function Obe(t) { this.childNodes.push(n), e.i.appendChild(n); }, removeChild: function(n) { this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), e.i.removeChild(n); - } }), jc(iu(wbe, { context: e.context }, t.__v), e.l); + } }), jc(iu(Obe, { context: e.context }, t.__v), e.l); } -function kbe(t, e) { - var r = iu(Obe, { __v: t, i: e }); +function Sbe(t, e) { + var r = iu(kbe, { __v: t, i: e }); return r.containerInfo = e, r; } (Jv.prototype = new Ul()).__a = function(t) { @@ -700,13 +700,13 @@ function kbe(t, e) { HB(t, r, e); }); }; -var Zj = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Sbe = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Tbe = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Cbe = /[A-Z0-9]/g, Ebe = typeof document < "u", _be = function(t) { +var Zj = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Tbe = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Cbe = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Ebe = /[A-Z0-9]/g, _be = typeof document < "u", Abe = function(t) { return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t); }; -function Abe(t, e, r) { +function Lbe(t, e, r) { return e.__k == null && (e.textContent = ""), jc(t, e), typeof r == "function" && r(), t ? t.__c : null; } -function Lbe(t, e, r) { +function Rbe(t, e, r) { return Uj(t, e), typeof r == "function" && r(), t ? t.__c : null; } Ul.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) { @@ -717,18 +717,18 @@ Ul.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive } }); }); var ZB = Ut.event; -function Rbe() { -} function Mbe() { - return this.cancelBubble; } function Dbe() { + return this.cancelBubble; +} +function Pbe() { return this.defaultPrevented; } Ut.event = function(t) { - return ZB && (t = ZB(t)), t.persist = Rbe, t.isPropagationStopped = Mbe, t.isDefaultPrevented = Dbe, t.nativeEvent = t; + return ZB && (t = ZB(t)), t.persist = Mbe, t.isPropagationStopped = Dbe, t.isDefaultPrevented = Pbe, t.nativeEvent = t; }; -var $M, Pbe = { enumerable: !1, configurable: !0, get: function() { +var $M, Nbe = { enumerable: !1, configurable: !0, get: function() { return this.class; } }, jB = Ut.vnode; Ut.vnode = function(t) { @@ -736,16 +736,16 @@ Ut.vnode = function(t) { var r = e.props, n = e.type, i = {}; for (var s in r) { var a = r[s]; - if (!(s === "value" && "defaultValue" in r && a == null || Ebe && s === "children" && n === "noscript" || s === "class" || s === "className")) { + if (!(s === "value" && "defaultValue" in r && a == null || _be && s === "children" && n === "noscript" || s === "class" || s === "className")) { var o = s.toLowerCase(); - s === "defaultValue" && "value" in r && r.value == null ? s = "value" : s === "download" && a === !0 ? a = "" : o === "ondoubleclick" ? s = "ondblclick" : o !== "onchange" || n !== "input" && n !== "textarea" || _be(r.type) ? o === "onfocus" ? s = "onfocusin" : o === "onblur" ? s = "onfocusout" : Tbe.test(s) ? s = o : n.indexOf("-") === -1 && Sbe.test(s) ? s = s.replace(Cbe, "-$&").toLowerCase() : a === null && (a = void 0) : o = s = "oninput", o === "oninput" && i[s = o] && (s = "oninputCapture"), i[s] = a; + s === "defaultValue" && "value" in r && r.value == null ? s = "value" : s === "download" && a === !0 ? a = "" : o === "ondoubleclick" ? s = "ondblclick" : o !== "onchange" || n !== "input" && n !== "textarea" || Abe(r.type) ? o === "onfocus" ? s = "onfocusin" : o === "onblur" ? s = "onfocusout" : Cbe.test(s) ? s = o : n.indexOf("-") === -1 && Tbe.test(s) ? s = s.replace(Ebe, "-$&").toLowerCase() : a === null && (a = void 0) : o = s = "oninput", o === "oninput" && i[s = o] && (s = "oninputCapture"), i[s] = a; } } n == "select" && i.multiple && Array.isArray(i.value) && (i.value = Zu(r.children).forEach(function(l) { l.props.selected = i.value.indexOf(l.props.value) != -1; })), n == "select" && i.defaultValue != null && (i.value = Zu(r.children).forEach(function(l) { l.props.selected = i.multiple ? i.defaultValue.indexOf(l.props.value) != -1 : i.defaultValue == l.props.value; - })), r.class && !r.className ? (i.class = r.class, Object.defineProperty(i, "className", Pbe)) : (r.className && !r.class || r.class && r.className) && (i.class = i.className = r.className), e.props = i; + })), r.class && !r.className ? (i.class = r.class, Object.defineProperty(i, "className", Nbe)) : (r.className && !r.class || r.class && r.className) && (i.class = i.className = r.className), e.props = i; }(t), t.$$typeof = Zj, jB && jB(t); }; var KB = Ut.__r; @@ -758,43 +758,43 @@ Ut.diffed = function(t) { var e = t.props, r = t.__e; r != null && t.type === "textarea" && "value" in e && e.value !== r.value && (r.value = e.value == null ? "" : e.value), $M = null; }; -var Nbe = { ReactCurrentDispatcher: { current: { readContext: function(t) { +var Ibe = { ReactCurrentDispatcher: { current: { readContext: function(t) { return $M.__n[t.__c].props.value; } } } }; -function Ibe(t) { +function $be(t) { return iu.bind(null, t); } function _T(t) { return !!t && t.$$typeof === Zj; } -function $be(t) { - return _T(t) && t.type === su; -} function Bbe(t) { - return _T(t) ? obe.apply(null, arguments) : t; + return _T(t) && t.type === su; } function Fbe(t) { - return !!t.__k && (jc(null, t), !0); + return _T(t) ? lbe.apply(null, arguments) : t; } function zbe(t) { + return !!t.__k && (jc(null, t), !0); +} +function Qbe(t) { return t && (t.base || t.nodeType === 1 && t) || null; } -var Qbe = function(t, e) { +var Ube = function(t, e) { return t(e); -}, Ube = function(t, e) { +}, Vbe = function(t, e) { return t(e); -}, Vbe = su; +}, qbe = su; function jj(t) { t(); } -function qbe(t) { +function Ybe(t) { return t; } -function Ybe() { +function Wbe() { return [!1, jj]; } -var Wbe = ET, Gbe = _T; -function Xbe(t, e) { +var Gbe = ET, Xbe = _T; +function Hbe(t, e) { var r = e(), n = fi({ h: { __: r, v: e } }), i = n[0].h, s = n[1]; return ET(function() { i.__ = r, i.v = e, f_(i) && s({ h: i }); @@ -813,7 +813,7 @@ function f_(t) { return !0; } } -var L0 = { useState: fi, useId: cbe, useReducer: CT, useEffect: ri, useLayoutEffect: ET, useInsertionEffect: Wbe, useTransition: Ybe, useDeferredValue: qbe, useSyncExternalStore: Xbe, startTransition: jj, useRef: Ts, useImperativeHandle: lbe, useMemo: vi, useCallback: uk, useContext: cc, useDebugValue: A7, version: "17.0.2", Children: ybe, render: Abe, hydrate: Lbe, unmountComponentAtNode: Fbe, createPortal: kbe, createElement: iu, createContext: Vj, createFactory: Ibe, cloneElement: Bbe, createRef: rbe, Fragment: su, isValidElement: _T, isElement: Gbe, isFragment: $be, findDOMNode: zbe, Component: Ul, PureComponent: M7, memo: gbe, forwardRef: vbe, flushSync: Ube, unstable_batchedUpdates: Qbe, StrictMode: Vbe, Suspense: G4, SuspenseList: Jv, lazy: xbe, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Nbe }, wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; +var L0 = { useState: fi, useId: ube, useReducer: CT, useEffect: ri, useLayoutEffect: ET, useInsertionEffect: Gbe, useTransition: Wbe, useDeferredValue: Ybe, useSyncExternalStore: Hbe, startTransition: jj, useRef: Ts, useImperativeHandle: cbe, useMemo: vi, useCallback: uk, useContext: cc, useDebugValue: A7, version: "17.0.2", Children: bbe, render: Lbe, hydrate: Rbe, unmountComponentAtNode: zbe, createPortal: Sbe, createElement: iu, createContext: Vj, createFactory: $be, cloneElement: Fbe, createRef: nbe, Fragment: su, isValidElement: _T, isElement: Xbe, isFragment: Bbe, findDOMNode: Qbe, Component: Ul, PureComponent: M7, memo: mbe, forwardRef: ybe, flushSync: Vbe, unstable_batchedUpdates: Ube, StrictMode: qbe, Suspense: G4, SuspenseList: Jv, lazy: wbe, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ibe }, wa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function Kj(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } @@ -838,7 +838,7 @@ function Jj(t) { }); }), r; } -var Hbe = function(e, r, n, i) { +var Zbe = function(e, r, n, i) { var s = n ? n.call(i, e, r) : void 0; if (s !== void 0) return !!s; @@ -858,8 +858,8 @@ var Hbe = function(e, r, n, i) { return !1; } return !0; -}, An = "-ms-", Ry = "-moz-", jr = "-webkit-", eK = "comm", AT = "rule", BM = "decl", Zbe = "@import", tK = "@keyframes", jbe = "@layer", Kbe = Math.abs, FM = String.fromCharCode, D7 = Object.assign; -function Jbe(t, e) { +}, An = "-ms-", Ry = "-moz-", jr = "-webkit-", eK = "comm", AT = "rule", BM = "decl", jbe = "@import", tK = "@keyframes", Kbe = "@layer", Jbe = Math.abs, FM = String.fromCharCode, D7 = Object.assign; +function exe(t, e) { return ns(t, 0) ^ 45 ? (((e << 2 ^ ns(t, 0)) << 2 ^ ns(t, 1)) << 2 ^ ns(t, 2)) << 2 ^ ns(t, 3) : 0; } function rK(t) { @@ -889,7 +889,7 @@ function nK(t) { function ey(t, e) { return e.push(t), t; } -function exe(t, e) { +function txe(t, e) { return t.map(e).join(""); } function eF(t, e) { @@ -901,18 +901,18 @@ var LT = 1, lm = 1, iK = 0, cl = 0, ki = 0, y1 = ""; function RT(t, e, r, n, i, s, a, o) { return { value: t, root: e, parent: r, type: n, props: i, children: s, line: LT, column: lm, length: a, return: "", siblings: o }; } -function Xh(t, e) { +function Hh(t, e) { return D7(RT("", null, null, "", null, null, 0, t.siblings), t, { length: -t.length }, e); } function Yp(t) { for (; t.root; ) - t = Xh(t.root, { children: [t] }); + t = Hh(t.root, { children: [t] }); ey(t, t.siblings); } -function txe() { +function rxe() { return ki; } -function rxe() { +function nxe() { return ki = cl > 0 ? ns(y1, --cl) : 0, lm--, ki === 10 && (lm = 1, LT--), ki; } function Vl() { @@ -959,21 +959,21 @@ function P7(t) { } return 0; } -function nxe(t) { +function ixe(t) { return LT = lm = 1, iK = Mc(y1 = t), cl = 0, []; } -function ixe(t) { +function sxe(t) { return y1 = "", t; } function d_(t) { return rK(MT(cl - 1, N7(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); } -function sxe(t) { +function axe(t) { for (; (ki = w0()) && ki < 33; ) Vl(); return P7(t) > 2 || P7(ki) > 3 ? "" : " "; } -function axe(t, e) { +function oxe(t, e) { for (; --e && Vl() && !(ki < 48 || ki > 102 || ki > 57 && ki < 65 || ki > 70 && ki < 97); ) ; return MT(t, H4() + (e < 6 && w0() == 32 && Vl() == 32)); @@ -996,19 +996,19 @@ function N7(t) { } return cl; } -function oxe(t, e) { +function lxe(t, e) { for (; Vl() && t + ki !== 47 + 10; ) if (t + ki === 42 + 42 && w0() === 47) break; return "/*" + MT(e, cl - 1) + "*" + FM(t === 47 ? t : Vl()); } -function lxe(t) { +function cxe(t) { for (; !P7(w0()); ) Vl(); return MT(t, cl); } -function cxe(t) { - return ixe(Z4("", null, null, null, [""], t = nxe(t), 0, [0], t)); +function uxe(t) { + return sxe(Z4("", null, null, null, [""], t = ixe(t), 0, [0], t)); } function Z4(t, e, r, n, i, s, a, o, l) { for (var u = 0, h = 0, f = a, d = 0, p = 0, g = 0, m = 1, v = 1, y = 1, b = 0, w = "", O = i, S = s, C = n, T = w; v; ) @@ -1027,16 +1027,16 @@ function Z4(t, e, r, n, i, s, a, o, l) { case 10: case 13: case 32: - T += sxe(g); + T += axe(g); break; case 92: - T += axe(H4() - 1, 7); + T += oxe(H4() - 1, 7); continue; case 47: switch (w0()) { case 42: case 47: - ey(uxe(oxe(Vl(), H4()), e, r, l), l); + ey(hxe(lxe(Vl(), H4()), e, r, l), l); break; default: T += "/"; @@ -1080,7 +1080,7 @@ function Z4(t, e, r, n, i, s, a, o, l) { if (m < 1) { if (b == 123) --m; - else if (b == 125 && m++ == 0 && rxe() == 125) + else if (b == 125 && m++ == 0 && nxe() == 125) continue; } switch (T += FM(b), b * m) { @@ -1091,7 +1091,7 @@ function Z4(t, e, r, n, i, s, a, o, l) { o[u++] = (Mc(T) - 1) * y, y = 1; break; case 64: - w0() === 45 && (T += d_(Vl())), d = w0(), h = f = Mc(w = T += lxe(H4())), b++; + w0() === 45 && (T += d_(Vl())), d = w0(), h = f = Mc(w = T += cxe(H4())), b++; break; case 45: g === 45 && Mc(T) == 2 && (m = 0); @@ -1101,18 +1101,18 @@ function Z4(t, e, r, n, i, s, a, o, l) { } function tF(t, e, r, n, i, s, a, o, l, u, h, f) { for (var d = i - 1, p = i === 0 ? s : [""], g = nK(p), m = 0, v = 0, y = 0; m < n; ++m) - for (var b = 0, w = om(t, d + 1, d = Kbe(v = a[m])), O = t; b < g; ++b) + for (var b = 0, w = om(t, d + 1, d = Jbe(v = a[m])), O = t; b < g; ++b) (O = rK(v > 0 ? p[b] + " " + w : Rr(w, /&\f/g, p[b]))) && (l[y++] = O); return RT(t, e, r, i === 0 ? AT : o, l, u, h, f); } -function uxe(t, e, r, n) { - return RT(t, e, r, eK, FM(txe()), om(t, 2, -2), 0, n); +function hxe(t, e, r, n) { + return RT(t, e, r, eK, FM(rxe()), om(t, 2, -2), 0, n); } function rF(t, e, r, n, i) { return RT(t, e, r, BM, om(t, 0, n), om(t, n + 1, -1), n, i); } function sK(t, e, r) { - switch (Jbe(t, e)) { + switch (exe(t, e)) { case 5103: return jr + "print-" + t + t; case 5737: @@ -1261,12 +1261,12 @@ function hk(t, e) { r += e(t[n], n, t, e) || ""; return r; } -function hxe(t, e, r, n) { +function fxe(t, e, r, n) { switch (t.type) { - case jbe: + case Kbe: if (t.children.length) break; - case Zbe: + case jbe: case BM: return t.return = t.return || t.value; case eK: @@ -1279,7 +1279,7 @@ function hxe(t, e, r, n) { } return Mc(r = hk(t.children, n)) ? t.return = t.value + "{" + r + "}" : ""; } -function fxe(t) { +function dxe(t) { var e = nK(t); return function(r, n, i, s) { for (var a = "", o = 0; o < e; o++) @@ -1287,36 +1287,36 @@ function fxe(t) { return a; }; } -function dxe(t) { +function pxe(t) { return function(e) { e.root || (e = e.return) && t(e); }; } -function pxe(t, e, r, n) { +function gxe(t, e, r, n) { if (t.length > -1 && !t.return) switch (t.type) { case BM: t.return = sK(t.value, t.length, r); return; case tK: - return hk([Xh(t, { value: Rr(t.value, "@", "@" + jr) })], n); + return hk([Hh(t, { value: Rr(t.value, "@", "@" + jr) })], n); case AT: if (t.length) - return exe(r = t.props, function(i) { + return txe(r = t.props, function(i) { switch ($u(i, n = /(::plac\w+|:read-\w+)/)) { case ":read-only": case ":read-write": - Yp(Xh(t, { props: [Rr(i, /:(read-\w+)/, ":" + Ry + "$1")] })), Yp(Xh(t, { props: [i] })), D7(t, { props: eF(r, n) }); + Yp(Hh(t, { props: [Rr(i, /:(read-\w+)/, ":" + Ry + "$1")] })), Yp(Hh(t, { props: [i] })), D7(t, { props: eF(r, n) }); break; case "::placeholder": - Yp(Xh(t, { props: [Rr(i, /:(plac\w+)/, ":" + jr + "input-$1")] })), Yp(Xh(t, { props: [Rr(i, /:(plac\w+)/, ":" + Ry + "$1")] })), Yp(Xh(t, { props: [Rr(i, /:(plac\w+)/, An + "input-$1")] })), Yp(Xh(t, { props: [i] })), D7(t, { props: eF(r, n) }); + Yp(Hh(t, { props: [Rr(i, /:(plac\w+)/, ":" + jr + "input-$1")] })), Yp(Hh(t, { props: [Rr(i, /:(plac\w+)/, ":" + Ry + "$1")] })), Yp(Hh(t, { props: [Rr(i, /:(plac\w+)/, An + "input-$1")] })), Yp(Hh(t, { props: [i] })), D7(t, { props: eF(r, n) }); break; } return ""; }); } } -var gxe = { +var mxe = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, @@ -1364,7 +1364,7 @@ var gxe = { strokeOpacity: 1, strokeWidth: 1 }, R0 = typeof process < "u" && {} !== void 0 && ({}.REACT_APP_SC_ATTR || {}.SC_ATTR) || "data-styled", aK = "active", oK = "data-styled-version", DT = "6.1.2", zM = `/*!sc*/ -`, QM = typeof window < "u" && "HTMLElement" in window, mxe = Boolean(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && {} !== void 0 && {}.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && {}.REACT_APP_SC_DISABLE_SPEEDY !== "" ? {}.REACT_APP_SC_DISABLE_SPEEDY !== "false" && {}.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && {} !== void 0 && {}.SC_DISABLE_SPEEDY !== void 0 && {}.SC_DISABLE_SPEEDY !== "" ? {}.SC_DISABLE_SPEEDY !== "false" && {}.SC_DISABLE_SPEEDY : {}.NODE_ENV !== "production"), nF = /invalid hook call/i, tO = /* @__PURE__ */ new Set(), vxe = function(t, e) { +`, QM = typeof window < "u" && "HTMLElement" in window, vxe = Boolean(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && {} !== void 0 && {}.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && {}.REACT_APP_SC_DISABLE_SPEEDY !== "" ? {}.REACT_APP_SC_DISABLE_SPEEDY !== "false" && {}.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && {} !== void 0 && {}.SC_DISABLE_SPEEDY !== void 0 && {}.SC_DISABLE_SPEEDY !== "" ? {}.SC_DISABLE_SPEEDY !== "false" && {}.SC_DISABLE_SPEEDY : {}.NODE_ENV !== "production"), nF = /invalid hook call/i, tO = /* @__PURE__ */ new Set(), yxe = function(t, e) { if ({}.NODE_ENV !== "production") { var r = e ? ' with the id of "'.concat(e, '"') : "", n = "The component ".concat(t).concat(r, ` has been created dynamically. `) + `You may see this warning because you've called styled inside another component. @@ -1383,21 +1383,21 @@ To resolve this only create new StyledComponents outside of any render method an } } }, PT = Object.freeze([]), cm = Object.freeze({}); -function yxe(t, e, r) { +function bxe(t, e, r) { return r === void 0 && (r = cm), t.theme !== r.theme && t.theme || e || r.theme; } -var I7 = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), bxe = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, xxe = /(^-|-$)/g; +var I7 = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), xxe = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, wxe = /(^-|-$)/g; function iF(t) { - return t.replace(bxe, "-").replace(xxe, ""); + return t.replace(xxe, "-").replace(wxe, ""); } -var wxe = /(a)(d)/gi, rO = 52, sF = function(t) { +var Oxe = /(a)(d)/gi, rO = 52, sF = function(t) { return String.fromCharCode(t + (t > 25 ? 39 : 97)); }; function $7(t) { var e, r = ""; for (e = Math.abs(t); e > rO; e = e / rO | 0) r = sF(e % rO) + r; - return (sF(e % rO) + r).replace(wxe, "$1-$2"); + return (sF(e % rO) + r).replace(Oxe, "$1-$2"); } var p_, lK = 5381, Gd = function(t, e) { for (var r = e.length; r; ) @@ -1406,7 +1406,7 @@ var p_, lK = 5381, Gd = function(t, e) { }, cK = function(t) { return Gd(lK, t); }; -function Oxe(t) { +function kxe(t) { return $7(cK(t) >>> 0); } function uK(t) { @@ -1415,26 +1415,26 @@ function uK(t) { function g_(t) { return typeof t == "string" && ({}.NODE_ENV === "production" || t.charAt(0) === t.charAt(0).toLowerCase()); } -var hK = typeof Symbol == "function" && Symbol.for, fK = hK ? Symbol.for("react.memo") : 60115, kxe = hK ? Symbol.for("react.forward_ref") : 60112, Sxe = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Txe = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, dK = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Cxe = ((p_ = {})[kxe] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, p_[fK] = dK, p_); +var hK = typeof Symbol == "function" && Symbol.for, fK = hK ? Symbol.for("react.memo") : 60115, Sxe = hK ? Symbol.for("react.forward_ref") : 60112, Txe = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Cxe = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, dK = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Exe = ((p_ = {})[Sxe] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, p_[fK] = dK, p_); function aF(t) { - return ("type" in (e = t) && e.type.$$typeof) === fK ? dK : "$$typeof" in t ? Cxe[t.$$typeof] : Sxe; + return ("type" in (e = t) && e.type.$$typeof) === fK ? dK : "$$typeof" in t ? Exe[t.$$typeof] : Txe; var e; } -var Exe = Object.defineProperty, _xe = Object.getOwnPropertyNames, oF = Object.getOwnPropertySymbols, Axe = Object.getOwnPropertyDescriptor, Lxe = Object.getPrototypeOf, lF = Object.prototype; +var _xe = Object.defineProperty, Axe = Object.getOwnPropertyNames, oF = Object.getOwnPropertySymbols, Lxe = Object.getOwnPropertyDescriptor, Rxe = Object.getPrototypeOf, lF = Object.prototype; function pK(t, e, r) { if (typeof e != "string") { if (lF) { - var n = Lxe(e); + var n = Rxe(e); n && n !== lF && pK(t, n, r); } - var i = _xe(e); + var i = Axe(e); oF && (i = i.concat(oF(e))); for (var s = aF(t), a = aF(e), o = 0; o < i.length; ++o) { var l = i[o]; - if (!(l in Txe || r && r[l] || a && l in a || s && l in s)) { - var u = Axe(e, l); + if (!(l in Cxe || r && r[l] || a && l in a || s && l in s)) { + var u = Lxe(e, l); try { - Exe(t, l, u); + _xe(t, l, u); } catch { } } @@ -1475,7 +1475,7 @@ function B7(t, e, r) { function VM(t, e) { Object.defineProperty(t, "toString", { value: e }); } -var Rxe = {}.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s. +var Mxe = {}.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s. `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle. @@ -1517,7 +1517,7 @@ as for instance in your render method then you may be running into this limitati `, 17: `CSSStyleSheet could not be found on HTMLStyleElement. Has styled-components' style tag been unmounted or altered by another script? `, 18: "ThemeProvider: Please make sure your useTheme hook is within a ``" } : {}; -function Mxe() { +function Dxe() { for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; for (var r = t[0], n = [], i = 1, s = t.length; i < s; i += 1) @@ -1529,9 +1529,9 @@ function Mxe() { function b1(t) { for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r]; - return {}.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(e.length > 0 ? " Args: ".concat(e.join(", ")) : "")) : new Error(Mxe.apply(void 0, am([Rxe[t]], e, !1)).trim()); + return {}.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(e.length > 0 ? " Args: ".concat(e.join(", ")) : "")) : new Error(Dxe.apply(void 0, am([Mxe[t]], e, !1)).trim()); } -var Dxe = function() { +var Pxe = function() { function t(e) { this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e; } @@ -1574,25 +1574,25 @@ var Dxe = function() { if ({}.NODE_ENV !== "production" && ((0 | e) < 0 || e > 1073741824)) throw b1(16, "".concat(e)); return j4.set(t, e), fk.set(e, t), e; -}, Pxe = function(t, e) { +}, Nxe = function(t, e) { K4 = e + 1, j4.set(t, e), fk.set(e, t); -}, Nxe = "style[".concat(R0, "][").concat(oK, '="').concat(DT, '"]'), Ixe = new RegExp("^".concat(R0, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), $xe = function(t, e, r) { +}, Ixe = "style[".concat(R0, "][").concat(oK, '="').concat(DT, '"]'), $xe = new RegExp("^".concat(R0, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Bxe = function(t, e, r) { for (var n, i = r.split(","), s = 0, a = i.length; s < a; s++) (n = i[s]) && t.registerName(e, n); -}, Bxe = function(t, e) { +}, Fxe = function(t, e) { for (var r, n = ((r = e.textContent) !== null && r !== void 0 ? r : "").split(zM), i = [], s = 0, a = n.length; s < a; s++) { var o = n[s].trim(); if (o) { - var l = o.match(Ixe); + var l = o.match($xe); if (l) { var u = 0 | parseInt(l[1], 10), h = l[2]; - u !== 0 && (Pxe(h, u), $xe(t, h, l[3]), t.getTag().insertRules(u, i)), i.length = 0; + u !== 0 && (Nxe(h, u), Bxe(t, h, l[3]), t.getTag().insertRules(u, i)), i.length = 0; } else i.push(o); } } }; -function Fxe() { +function zxe() { return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null; } var gK = function(t) { @@ -1601,9 +1601,9 @@ var gK = function(t) { return l[l.length - 1]; }(r), s = i !== void 0 ? i.nextSibling : null; n.setAttribute(R0, aK), n.setAttribute(oK, DT); - var a = Fxe(); + var a = zxe(); return a && n.setAttribute("nonce", a), r.insertBefore(n, s), n; -}, zxe = function() { +}, Qxe = function() { function t(e) { this.element = gK(e), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) { if (r.sheet) @@ -1628,7 +1628,7 @@ var gK = function(t) { var r = this.sheet.cssRules[e]; return r && r.cssText ? r.cssText : ""; }, t; -}(), Qxe = function() { +}(), Uxe = function() { function t(e) { this.element = gK(e), this.nodes = this.element.childNodes, this.length = 0; } @@ -1643,7 +1643,7 @@ var gK = function(t) { }, t.prototype.getRule = function(e) { return e < this.length ? this.nodes[e].textContent : ""; }, t; -}(), Uxe = function() { +}(), Vxe = function() { function t(e) { this.rules = [], this.length = 0; } @@ -1654,14 +1654,14 @@ var gK = function(t) { }, t.prototype.getRule = function(e) { return e < this.length ? this.rules[e] : ""; }, t; -}(), uF = QM, Vxe = { isServer: !QM, useCSSOMInjection: !mxe }, mK = function() { +}(), uF = QM, qxe = { isServer: !QM, useCSSOMInjection: !vxe }, mK = function() { function t(e, r, n) { e === void 0 && (e = cm), r === void 0 && (r = {}); var i = this; - this.options = eo(eo({}, Vxe), e), this.gs = r, this.names = new Map(n), this.server = !!e.isServer, !this.server && QM && uF && (uF = !1, function(s) { - for (var a = document.querySelectorAll(Nxe), o = 0, l = a.length; o < l; o++) { + this.options = eo(eo({}, qxe), e), this.gs = r, this.names = new Map(n), this.server = !!e.isServer, !this.server && QM && uF && (uF = !1, function(s) { + for (var a = document.querySelectorAll(Ixe), o = 0, l = a.length; o < l; o++) { var u = a[o]; - u && u.getAttribute(R0) !== aK && (Bxe(s, u), u.parentNode && u.parentNode.removeChild(u)); + u && u.getAttribute(R0) !== aK && (Fxe(s, u), u.parentNode && u.parentNode.removeChild(u)); } }(this)), VM(this, function() { return function(s) { @@ -1693,8 +1693,8 @@ var gK = function(t) { }, t.prototype.getTag = function() { return this.tag || (this.tag = (e = function(r) { var n = r.useCSSOMInjection, i = r.target; - return r.isServer ? new Uxe(i) : n ? new zxe(i) : new Qxe(i); - }(this.options), new Dxe(e))); + return r.isServer ? new Vxe(i) : n ? new Qxe(i) : new Uxe(i); + }(this.options), new Pxe(e))); var e; }, t.prototype.hasNameForId = function(e, r) { return this.names.has(e) && this.names.get(e).has(r); @@ -1714,7 +1714,7 @@ var gK = function(t) { }, t.prototype.clearTag = function() { this.tag = void 0; }, t; -}(), qxe = /&/g, Yxe = /^\s*\/\/.*$/gm; +}(), Yxe = /&/g, Wxe = /^\s*\/\/.*$/gm; function vK(t, e) { return t.map(function(r) { return r.type === "rule" && (r.value = "".concat(e, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(e, " ")), r.props = r.props.map(function(n) { @@ -1727,14 +1727,14 @@ function yK(t) { return g === r || g.startsWith(r) && g.endsWith(r) && g.replaceAll(r, "").length > 0 ? ".".concat(e) : d; }, h = l.slice(); h.push(function(d) { - d.type === AT && d.value.includes("&") && (d.props[0] = d.props[0].replace(qxe, r).replace(n, u)); - }), a.prefix && h.push(pxe), h.push(hxe); + d.type === AT && d.value.includes("&") && (d.props[0] = d.props[0].replace(Yxe, r).replace(n, u)); + }), a.prefix && h.push(gxe), h.push(fxe); var f = function(d, p, g, m) { p === void 0 && (p = ""), g === void 0 && (g = ""), m === void 0 && (m = "&"), e = m, r = p, n = new RegExp("\\".concat(r, "\\b"), "g"); - var v = d.replace(Yxe, ""), y = cxe(g || p ? "".concat(g, " ").concat(p, " { ").concat(v, " }") : v); + var v = d.replace(Wxe, ""), y = uxe(g || p ? "".concat(g, " ").concat(p, " { ").concat(v, " }") : v); a.namespace && (y = vK(y, a.namespace)); var b = []; - return hk(y, fxe(h.concat(dxe(function(w) { + return hk(y, dxe(h.concat(pxe(function(w) { return b.push(w); })))), b; }; @@ -1742,9 +1742,9 @@ function yK(t) { return p.name || b1(15), Gd(d, p.name); }, lK).toString() : "", f; } -var Wxe = new mK(), F7 = yK(), qM = L0.createContext({ shouldForwardProp: void 0, styleSheet: Wxe, stylis: F7 }); +var Gxe = new mK(), F7 = yK(), qM = L0.createContext({ shouldForwardProp: void 0, styleSheet: Gxe, stylis: F7 }); qM.Consumer; -var Gxe = L0.createContext(void 0); +var Xxe = L0.createContext(void 0); function z7() { return cc(qM); } @@ -1756,12 +1756,12 @@ function bK(t) { return yK({ options: { namespace: t.namespace, prefix: t.enableVendorPrefixes }, plugins: r }); }, [t.enableVendorPrefixes, t.namespace, r]); ri(function() { - Hbe(r, t.stylisPlugins) || n(t.stylisPlugins); + Zbe(r, t.stylisPlugins) || n(t.stylisPlugins); }, [t.stylisPlugins]); var o = vi(function() { return { shouldForwardProp: t.shouldForwardProp, styleSheet: s, stylis: a }; }, [t.shouldForwardProp, s, a]); - return L0.createElement(qM.Provider, { value: o }, L0.createElement(Gxe.Provider, { value: a }, t.children)); + return L0.createElement(qM.Provider, { value: o }, L0.createElement(Xxe.Provider, { value: a }, t.children)); } var hF = function() { function t(e, r) { @@ -1777,7 +1777,7 @@ var hF = function() { return t.prototype.getName = function(e) { return e === void 0 && (e = F7), this.name + e.hash; }, t; -}(), Xxe = function(t) { +}(), Hxe = function(t) { return t >= "A" && t <= "Z"; }; function fF(t) { @@ -1785,7 +1785,7 @@ function fF(t) { var n = t[r]; if (r === 1 && n === "-" && t[0] === "-") return t; - Xxe(n) ? e += "-" + n.toLowerCase() : e += n; + Hxe(n) ? e += "-" + n.toLowerCase() : e += n; } return e.startsWith("ms-") ? "-" + e : e; } @@ -1795,7 +1795,7 @@ var xK = function(t) { var e, r, n = []; for (var i in t) { var s = t[i]; - t.hasOwnProperty(i) && !xK(s) && (Array.isArray(s) && s.isCss || um(s) ? n.push("".concat(fF(i), ":"), s, ";") : hm(s) ? n.push.apply(n, am(am(["".concat(i, " {")], wK(s), !1), ["}"], !1)) : n.push("".concat(fF(i), ": ").concat((e = i, (r = s) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || e in gxe || e.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";"))); + t.hasOwnProperty(i) && !xK(s) && (Array.isArray(s) && s.isCss || um(s) ? n.push("".concat(fF(i), ":"), s, ";") : hm(s) ? n.push.apply(n, am(am(["".concat(i, " {")], wK(s), !1), ["}"], !1)) : n.push("".concat(fF(i), ": ").concat((e = i, (r = s) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || e in mxe || e.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";"))); } return n; }; @@ -1815,7 +1815,7 @@ function O0(t, e, r, n) { return O0(a, e, r, n); })) : [t.toString()]; } -function Hxe(t) { +function Zxe(t) { for (var e = 0; e < t.length; e += 1) { var r = t[e]; if (um(r) && !UM(r)) @@ -1823,9 +1823,9 @@ function Hxe(t) { } return !0; } -var Zxe = cK(DT), jxe = function() { +var jxe = cK(DT), Kxe = function() { function t(e, r, n) { - this.rules = e, this.staticRulesId = "", this.isStatic = {}.NODE_ENV === "production" && (n === void 0 || n.isStatic) && Hxe(e), this.componentId = r, this.baseHash = Gd(Zxe, r), this.baseStyle = n, mK.registerId(r); + this.rules = e, this.staticRulesId = "", this.isStatic = {}.NODE_ENV === "production" && (n === void 0 || n.isStatic) && Zxe(e), this.componentId = r, this.baseHash = Gd(jxe, r), this.baseStyle = n, mK.registerId(r); } return t.prototype.generateAndInjectStyles = function(e, r, n) { var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, r, n) : ""; @@ -1860,11 +1860,11 @@ var Zxe = cK(DT), jxe = function() { }(), OK = L0.createContext(void 0); OK.Consumer; var m_ = {}, dF = /* @__PURE__ */ new Set(); -function Kxe(t, e, r) { +function Jxe(t, e, r) { var n = UM(t), i = t, s = !g_(t), a = e.attrs, o = a === void 0 ? PT : a, l = e.componentId, u = l === void 0 ? function(O, S) { var C = typeof O != "string" ? "sc" : iF(O); m_[C] = (m_[C] || 0) + 1; - var T = "".concat(C, "-").concat(Oxe(DT + C + m_[C])); + var T = "".concat(C, "-").concat(kxe(DT + C + m_[C])); return S ? "".concat(S, "-").concat(T) : T; }(e.displayName, e.parentComponentId) : l, h = e.displayName, f = h === void 0 ? function(O) { return g_(O) ? "styled.".concat(O) : "Styled(".concat(uK(O), ")"); @@ -1879,7 +1879,7 @@ function Kxe(t, e, r) { } else g = m; } - var y = new jxe(r, d, n ? i.componentStyle : void 0); + var y = new Kxe(r, d, n ? i.componentStyle : void 0); function b(O, S) { return function(C, T, A) { var E = C.attrs, R = C.componentStyle, _ = C.defaultProps, L = C.foldedComponentIds, $ = C.styledComponentId, k = C.target, P = L0.useContext(OK), M = z7(), N = C.shouldForwardProp || M.shouldForwardProp; @@ -1891,9 +1891,9 @@ function Kxe(t, e, r) { se[G] = G === "className" ? s0(se[G], Z[G]) : G === "style" ? eo(eo({}, se[G]), Z[G]) : Z[G]; } return K.className && (se.className = s0(se.className, K.className)), se; - }(E, T, yxe(T, P, _) || cm), I = D.as || k, F = {}; + }(E, T, bxe(T, P, _) || cm), I = D.as || k, F = {}; for (var B in D) - D[B] === void 0 || B[0] === "$" || B === "as" || B === "theme" || (B === "forwardedAs" ? F.as = D.forwardedAs : N && !N(B, I) || (F[B] = D[B], N || {}.NODE_ENV !== "development" || pbe(B) || dF.has(B) || !I7.has(I) || (dF.add(B), console.warn('styled-components: it looks like an unknown prop "'.concat(B, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)'))))); + D[B] === void 0 || B[0] === "$" || B === "as" || B === "theme" || (B === "forwardedAs" ? F.as = D.forwardedAs : N && !N(B, I) || (F[B] = D[B], N || {}.NODE_ENV !== "development" || gbe(B) || dF.has(B) || !I7.has(I) || (dF.add(B), console.warn('styled-components: it looks like an unknown prop "'.concat(B, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)'))))); var U = function(W, K) { var Y = z7(), te = W.generateAndInjectStyles(K, Y.styleSheet, Y.stylis); return {}.NODE_ENV !== "production" && A7(te), te; @@ -1915,7 +1915,7 @@ function Kxe(t, e, r) { B7(S, E[A], !0); return S; }({}, i.defaultProps, O) : O; - } }), {}.NODE_ENV !== "production" && (vxe(f, d), w.warnTooManyClasses = function(O, S) { + } }), {}.NODE_ENV !== "production" && (yxe(f, d), w.warnTooManyClasses = function(O, S) { var C = {}, T = !1; return function(A) { if (!T && (C[A] = !0, Object.keys(C).length >= 200)) { @@ -1967,7 +1967,7 @@ function Q7(t, e, r) { }, n; } var kK = function(t) { - return Q7(Kxe, t); + return Q7(Jxe, t); }, Ht = kK; I7.forEach(function(t) { Ht[t] = kK(t); @@ -2049,7 +2049,7 @@ class qr { } } class ui extends qr { - constructor(e, r = Jxe(e)) { + constructor(e, r = ewe(e)) { super(), this.text = e, this.length = r; } get lines() { @@ -2062,7 +2062,7 @@ class ui extends qr { for (let s = 0; ; s++) { let a = this.text[s], o = i + a.length; if ((r ? n : o) >= e) - return new ewe(i, o, n, a); + return new twe(i, o, n, a); i = o + 1, n++; } } @@ -2205,7 +2205,7 @@ class Nc extends qr { } } qr.empty = /* @__PURE__ */ new ui([""], 0); -function Jxe(t) { +function ewe(t) { let e = -1; for (let r of t) e += r.length + 1; @@ -2289,7 +2289,7 @@ typeof Symbol < "u" && (qr.prototype[Symbol.iterator] = function() { }, Dy.prototype[Symbol.iterator] = SK.prototype[Symbol.iterator] = TK.prototype[Symbol.iterator] = function() { return this; }); -class ewe { +class twe { constructor(e, r, n, i) { this.from = e, this.to = r, this.number = n, this.text = i; } @@ -2303,7 +2303,7 @@ function fm(t, e, r) { let Rg = /* @__PURE__ */ "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((t) => t ? parseInt(t, 36) : 1); for (let t = 1; t < Rg.length; t++) Rg[t] += Rg[t - 1]; -function twe(t) { +function rwe(t) { for (let e = 1; e < Rg.length; e += 2) if (Rg[e] > t) return Rg[e - 1] <= t; @@ -2314,7 +2314,7 @@ function vF(t) { } const yF = 8205; function ks(t, e, r = !0, n = !0) { - return (r ? CK : rwe)(t, e, n); + return (r ? CK : nwe)(t, e, n); } function CK(t, e, r) { if (e == t.length) @@ -2323,7 +2323,7 @@ function CK(t, e, r) { let n = xs(t, e); for (e += Ho(n); e < t.length; ) { let i = xs(t, e); - if (n == yF || i == yF || r && twe(i)) + if (n == yF || i == yF || r && rwe(i)) e += Ho(i), n = i; else if (vF(i)) { let s = 0, a = e - 2; @@ -2337,7 +2337,7 @@ function CK(t, e, r) { } return e; } -function rwe(t, e, r) { +function nwe(t, e, r) { for (; e > 0; ) { let n = CK(t, e - 2, r); if (n < e) @@ -2513,7 +2513,7 @@ class wi extends Kc { let h = Math.min(s.len, l - o); Gs(i, h, -1); let f = s.ins == -1 ? -1 : s.off == 0 ? s.ins : 0; - Gs(r, h, f), f > 0 && lf(n, r, s.text), s.forward(h), o += h; + Gs(r, h, f), f > 0 && cf(n, r, s.text), s.forward(h), o += h; } let u = e[a++]; for (; o < u; ) { @@ -2560,7 +2560,7 @@ class wi extends Kc { let g = p ? typeof p == "string" ? qr.of(p.split(n || U7)) : p : qr.empty, m = g.length; if (f == d && m == 0) return; - f < a && l(), f > a && Gs(i, f - a, -1), Gs(i, d - f, m), lf(s, i, g), a = d; + f < a && l(), f > a && Gs(i, f - a, -1), Gs(i, d - f, m), cf(s, i, g), a = d; } } return u(e), l(!o), o; @@ -2600,7 +2600,7 @@ function Gs(t, e, r, n = !1) { let i = t.length - 2; i >= 0 && r <= 0 && r == t[i + 1] ? t[i] += e : e == 0 && t[i] == 0 ? t[i + 1] += r : n ? (t[i] += e, t[i + 1] += r) : t.push(e, r); } -function lf(t, e, r) { +function cf(t, e, r) { if (r.length == 0) return; let n = e.length - 2 >> 1; @@ -2636,7 +2636,7 @@ function q7(t, e, r, n = !1) { let u = o.len; for (Gs(i, o.ins, -1); u; ) { let h = Math.min(a.len, u); - a.ins >= 0 && l < a.i && a.len <= h && (Gs(i, 0, a.ins), s && lf(s, i, a.text), l = a.i), a.forward(h), u -= h; + a.ins >= 0 && l < a.i && a.len <= h && (Gs(i, 0, a.ins), s && cf(s, i, a.text), l = a.i), a.forward(h), u -= h; } o.next(); } else if (a.ins >= 0) { @@ -2649,7 +2649,7 @@ function q7(t, e, r, n = !1) { h -= o.len, o.next(); else break; - Gs(i, u, l < a.i ? a.ins : 0), s && l < a.i && lf(s, i, a.text), l = a.i, a.forward(a.len - h); + Gs(i, u, l < a.i ? a.ins : 0), s && l < a.i && cf(s, i, a.text), l = a.i, a.forward(a.len - h); } else { if (a.done && o.done) return s ? wi.createSet(i, s) : Kc.create(i); @@ -2664,7 +2664,7 @@ function AK(t, e, r = !1) { if (s.ins == 0) Gs(n, s.len, 0, o), s.next(); else if (a.len == 0 && !a.done) - Gs(n, 0, a.ins, o), i && lf(i, n, a.text), a.next(); + Gs(n, 0, a.ins, o), i && cf(i, n, a.text), a.next(); else { if (s.done || a.done) throw new Error("Mismatched change set lengths"); @@ -2672,9 +2672,9 @@ function AK(t, e, r = !1) { let l = Math.min(s.len2, a.len), u = n.length; if (s.ins == -1) { let h = a.ins == -1 ? -1 : a.off ? 0 : a.ins; - Gs(n, l, h, o), i && h && lf(i, n, a.text); + Gs(n, l, h, o), i && h && cf(i, n, a.text); } else - a.ins == -1 ? (Gs(n, s.off ? 0 : s.len, l, o), i && lf(i, n, s.textBit(l))) : (Gs(n, s.off ? 0 : s.len, a.off ? 0 : a.ins, o), i && !a.off && lf(i, n, a.text)); + a.ins == -1 ? (Gs(n, s.off ? 0 : s.len, l, o), i && cf(i, n, s.textBit(l))) : (Gs(n, s.off ? 0 : s.len, a.off ? 0 : a.ins, o), i && !a.off && cf(i, n, a.text)); o = (s.ins > l || a.ins >= 0 && a.len > l) && (o || n.length > u), s.forward2(l), a.forward(l); } } @@ -2912,7 +2912,7 @@ function Y7(t, e) { Py(t, n) & 1 && (r = !0); return r; } -function nwe(t, e, r) { +function iwe(t, e, r) { let n = r.map((l) => t[l.id]), i = r.map((l) => l.type), s = n.filter((l) => !(l & 1)), a = t[e.id] >> 1; function o(l) { let u = []; @@ -3021,7 +3021,7 @@ class dk { } static resolve(e, r, n) { let i = [], s = /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ new Map(); - for (let d of iwe(e, r, a)) + for (let d of swe(e, r, a)) d instanceof Xn ? i.push(d) : (s[d.facet.id] || (s[d.facet.id] = [])).push(d); let o = /* @__PURE__ */ Object.create(null), l = [], u = []; for (let d of i) @@ -3039,14 +3039,14 @@ class dk { else { for (let v of p) v.type == 0 ? (o[v.id] = l.length << 1 | 1, l.push(v.value)) : (o[v.id] = u.length << 1, u.push((y) => v.dynamicSlot(y))); - o[g.id] = u.length << 1, u.push((v) => nwe(v, g, p)); + o[g.id] = u.length << 1, u.push((v) => iwe(v, g, p)); } } let f = u.map((d) => d(o)); return new dk(e, a, f, o, l, s); } } -function iwe(t, e, r) { +function swe(t, e, r) { let n = [[], [], [], [], []], i = /* @__PURE__ */ new Map(); function s(a, o) { let l = i.get(a); @@ -3108,15 +3108,15 @@ class co { this.type = e, this.value = r; } static define() { - return new swe(); + return new awe(); } } -class swe { +class awe { of(e) { return new co(this, e); } } -class awe { +class owe { constructor(e) { this.map = e; } @@ -3136,7 +3136,7 @@ class or { return this.type == e; } static define(e = {}) { - return new awe(e.map || ((r) => r)); + return new owe(e.map || ((r) => r)); } static mapEffects(e, r) { if (!e.length) @@ -3187,7 +3187,7 @@ Ei.time = /* @__PURE__ */ co.define(); Ei.userEvent = /* @__PURE__ */ co.define(); Ei.addToHistory = /* @__PURE__ */ co.define(); Ei.remote = /* @__PURE__ */ co.define(); -function owe(t, e) { +function lwe(t, e) { let r = []; for (let n = 0, i = 0; ; ) { let s, a; @@ -3230,9 +3230,9 @@ function FK(t, e, r) { n = BK(n, X7(t, e[s], a ? n.changes.newLength : t.doc.length), a); } let i = Ei.create(t, n.changes, n.selection, n.effects, n.annotations, n.scrollIntoView); - return cwe(r ? lwe(i) : i); + return uwe(r ? cwe(i) : i); } -function lwe(t) { +function cwe(t) { let e = t.startState, r = !0; for (let i of e.facet(PK)) { let s = i(t); @@ -3240,7 +3240,7 @@ function lwe(t) { r = !1; break; } - Array.isArray(s) && (r = r === !0 ? s : owe(r, s)); + Array.isArray(s) && (r = r === !0 ? s : lwe(r, s)); } if (r !== !0) { let i, s; @@ -3259,7 +3259,7 @@ function lwe(t) { } return t; } -function cwe(t) { +function uwe(t) { let e = t.startState, r = e.facet(IK), n = t; for (let i = r.length - 1; i >= 0; i--) { let s = r[i](t); @@ -3267,34 +3267,34 @@ function cwe(t) { } return n == t ? t : Ei.create(e, t.changes, t.selection, n.effects, n.annotations, n.scrollIntoView); } -const uwe = []; +const hwe = []; function Mg(t) { - return t == null ? uwe : Array.isArray(t) ? t : [t]; + return t == null ? hwe : Array.isArray(t) ? t : [t]; } var Fn = /* @__PURE__ */ function(t) { return t[t.Word = 0] = "Word", t[t.Space = 1] = "Space", t[t.Other = 2] = "Other", t; }(Fn || (Fn = {})); -const hwe = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; +const fwe = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; let H7; try { H7 = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u"); } catch { } -function fwe(t) { +function dwe(t) { if (H7) return H7.test(t); for (let e = 0; e < t.length; e++) { let r = t[e]; - if (/\w/.test(r) || r > "\x80" && (r.toUpperCase() != r.toLowerCase() || hwe.test(r))) + if (/\w/.test(r) || r > "\x80" && (r.toUpperCase() != r.toLowerCase() || fwe.test(r))) return !0; } return !1; } -function dwe(t) { +function pwe(t) { return (e) => { if (!/\S/.test(e)) return Fn.Space; - if (fwe(e)) + if (dwe(e)) return Fn.Word; for (let r = 0; r < t.length; r++) if (e.indexOf(t[r]) > -1) @@ -3428,7 +3428,7 @@ class Tr { return i; } charCategorizer(e) { - return dwe(this.languageDataAt("wordChars", e).join("")); + return pwe(this.languageDataAt("wordChars", e).join("")); } wordAt(e) { let { text: r, from: n, length: i } = this.doc.lineAt(e), s = this.charCategorizer(e), a = e - n, o = e - n; @@ -3649,13 +3649,13 @@ class $r { } static of(e, r = !1) { let n = new ls(); - for (let i of e instanceof u2 ? [e] : r ? pwe(e) : e) + for (let i of e instanceof u2 ? [e] : r ? gwe(e) : e) n.add(i.from, i.to, i.value); return n.finish(); } } $r.empty = /* @__PURE__ */ new $r([], [], null, -1); -function pwe(t) { +function gwe(t) { if (t.length > 1) for (let e = t[0], r = 1; r < t.length; r++) { let n = t[r]; @@ -3982,11 +3982,11 @@ class oh { } static mount(e, r, n) { let i = e[e8], s = n && n.nonce; - i ? s && i.setNonce(s) : i = new gwe(e, s), i.mount(Array.isArray(r) ? r : [r]); + i ? s && i.setNonce(s) : i = new mwe(e, s), i.mount(Array.isArray(r) ? r : [r]); } } let CF = /* @__PURE__ */ new Map(); -class gwe { +class mwe { constructor(e, r) { let n = e.ownerDocument || e, i = n.defaultView; if (!e.head && e.adoptedStyleSheets && i.CSSStyleSheet) { @@ -4027,7 +4027,7 @@ class gwe { this.styleTag && this.styleTag.getAttribute("nonce") != e && this.styleTag.setAttribute("nonce", e); } } -var Pf = { +var Nf = { 8: "Backspace", 9: "Tab", 10: "Enter", @@ -4105,17 +4105,17 @@ var Pf = { 220: "|", 221: "}", 222: '"' -}, mwe = typeof navigator < "u" && /Mac/.test(navigator.platform), vwe = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent); +}, vwe = typeof navigator < "u" && /Mac/.test(navigator.platform), ywe = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent); for (var ws = 0; ws < 10; ws++) - Pf[48 + ws] = Pf[96 + ws] = String(ws); + Nf[48 + ws] = Nf[96 + ws] = String(ws); for (var ws = 1; ws <= 24; ws++) - Pf[ws + 111] = "F" + ws; + Nf[ws + 111] = "F" + ws; for (var ws = 65; ws <= 90; ws++) - Pf[ws] = String.fromCharCode(ws + 32), f2[ws] = String.fromCharCode(ws); -for (var y_ in Pf) - f2.hasOwnProperty(y_) || (f2[y_] = Pf[y_]); -function ywe(t) { - var e = mwe && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || vwe && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", r = !e && t.key || (t.shiftKey ? f2 : Pf)[t.keyCode] || t.key || "Unidentified"; + Nf[ws] = String.fromCharCode(ws + 32), f2[ws] = String.fromCharCode(ws); +for (var y_ in Nf) + f2.hasOwnProperty(y_) || (f2[y_] = Nf[y_]); +function bwe(t) { + var e = vwe && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || ywe && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", r = !e && t.key || (t.shiftKey ? f2 : Nf)[t.keyCode] || t.key || "Unidentified"; return r == "Esc" && (r = "Escape"), r == "Del" && (r = "Delete"), r == "Left" && (r = "ArrowLeft"), r == "Up" && (r = "ArrowUp"), r == "Right" && (r = "ArrowRight"), r == "Down" && (r = "ArrowDown"), r; } function gk(t) { @@ -4125,7 +4125,7 @@ function gk(t) { function t8(t, e) { return e ? t == e || t.contains(e.nodeType != 1 ? e.parentNode : e) : !1; } -function bwe(t) { +function xwe(t) { let e = t.activeElement; for (; e && e.shadowRoot; ) e = e.shadowRoot.activeElement; @@ -4177,7 +4177,7 @@ function HM(t, e) { let r = e ? t.left : t.right; return { left: r, right: r, top: t.top, bottom: t.bottom }; } -function xwe(t) { +function wwe(t) { return { left: 0, right: t.innerWidth, @@ -4189,13 +4189,13 @@ function QK(t, e) { let r = e.width / t.offsetWidth, n = e.height / t.offsetHeight; return (r > 0.995 && r < 1.005 || !isFinite(r) || Math.abs(e.width - t.offsetWidth) < 1) && (r = 1), (n > 0.995 && n < 1.005 || !isFinite(n) || Math.abs(e.height - t.offsetHeight) < 1) && (n = 1), { scaleX: r, scaleY: n }; } -function wwe(t, e, r, n, i, s, a, o) { +function Owe(t, e, r, n, i, s, a, o) { let l = t.ownerDocument, u = l.defaultView || window; for (let h = t, f = !1; h && !f; ) if (h.nodeType == 1) { let d, p = h == l.body, g = 1, m = 1; if (p) - d = xwe(u); + d = wwe(u); else { if (/^(fixed|sticky)$/.test(getComputedStyle(h).position) && (f = !0), h.scrollHeight <= h.clientHeight && h.scrollWidth <= h.clientWidth) { h = h.assignedSlot || h.parentNode; @@ -4244,7 +4244,7 @@ function wwe(t, e, r, n, i, s, a, o) { else break; } -function Owe(t) { +function kwe(t) { let e = t.ownerDocument; for (let r = t.parentNode; r && r != e.body; ) if (r.nodeType == 1) { @@ -4257,7 +4257,7 @@ function Owe(t) { break; return null; } -class kwe { +class Swe { constructor() { this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0; } @@ -4304,7 +4304,7 @@ function Dg(t, e, r) { let s = new KeyboardEvent("keyup", n); return s.synthetic = !0, t.dispatchEvent(s), i.defaultPrevented || s.defaultPrevented; } -function Swe(t) { +function Twe(t) { for (; t; ) { if (t && (t.nodeType == 9 || t.nodeType == 11 && t.host)) return t; @@ -4316,7 +4316,7 @@ function VK(t) { for (; t.attributes.length; ) t.removeAttributeNode(t.attributes[0]); } -function Twe(t, e) { +function Cwe(t, e) { let r = e.focusNode, n = e.focusOffset; if (!r || e.anchorNode != r || e.anchorOffset != n) return !1; @@ -4584,7 +4584,7 @@ var Vt = { webkit_version: RF ? +(/* @__PURE__ */ /\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0, tabSize: r8.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size" }; -const Cwe = 256; +const Ewe = 256; class ch extends Dn { constructor(e) { super(), this.text = e; @@ -4602,7 +4602,7 @@ class ch extends Dn { e.nodeType == 3 && this.createDOM(e); } merge(e, r, n) { - return this.flags & 8 || n && (!(n instanceof ch) || this.length - (r - e) + n.length > Cwe || n.flags & 8) ? !1 : (this.text = this.text.slice(0, e) + (n ? n.text : "") + this.text.slice(r), this.markDirty(), !0); + return this.flags & 8 || n && (!(n instanceof ch) || this.length - (r - e) + n.length > Ewe || n.flags & 8) ? !1 : (this.text = this.text.slice(0, e) + (n ? n.text : "") + this.text.slice(r), this.markDirty(), !0); } split(e) { let r = new ch(this.text.slice(e)); @@ -4618,7 +4618,7 @@ class ch extends Dn { return { from: n, to: n + this.length, startDOM: this.dom, endDOM: this.dom.nextSibling }; } coordsAt(e, r) { - return Ewe(this.dom, e, r); + return _we(this.dom, e, r); } } class uh extends Dn { @@ -4661,7 +4661,7 @@ class uh extends Dn { return KK(this, e, r); } } -function Ewe(t, e, r) { +function _we(t, e, r) { let n = t.nodeValue.length; e > n && (e = n); let i = e, s = e, a = 0; @@ -4672,15 +4672,15 @@ function Ewe(t, e, r) { let l = o[(a ? a < 0 : r >= 0) ? 0 : o.length - 1]; return Vt.safari && !a && l.width == 0 && (l = Array.prototype.find.call(o, (u) => u.width) || l), a ? HM(l, a < 0) : l || null; } -class cf extends Dn { +class uf extends Dn { static create(e, r, n) { - return new cf(e, r, n); + return new uf(e, r, n); } constructor(e, r, n) { super(), this.widget = e, this.length = r, this.side = n, this.prevWidget = null; } split(e) { - let r = cf.create(this.widget, this.length - e, this.side); + let r = uf.create(this.widget, this.length - e, this.side); return this.length -= e, r; } sync(e) { @@ -4690,10 +4690,10 @@ class cf extends Dn { return this.side; } merge(e, r, n, i, s, a) { - return n && (!(n instanceof cf) || !this.widget.compare(n.widget) || e > 0 && s <= 0 || r < this.length && a <= 0) ? !1 : (this.length = e + (n ? n.length : 0) + (this.length - r), !0); + return n && (!(n instanceof uf) || !this.widget.compare(n.widget) || e > 0 && s <= 0 || r < this.length && a <= 0) ? !1 : (this.length = e + (n ? n.length : 0) + (this.length - r), !0); } become(e) { - return e instanceof cf && e.side == this.side && this.widget.constructor == e.widget.constructor ? (this.widget.compare(e.widget) || this.markDirty(!0), this.dom && !this.prevWidget && (this.prevWidget = this.widget), this.widget = e.widget, this.length = e.length, !0) : !1; + return e instanceof uf && e.side == this.side && this.widget.constructor == e.widget.constructor ? (this.widget.compare(e.widget) || this.markDirty(!0), this.dom && !this.prevWidget && (this.prevWidget = this.widget), this.widget = e.widget, this.length = e.length, !0) : !1; } ignoreMutation() { return !0; @@ -4785,7 +4785,7 @@ class dm extends Dn { return !0; } } -ch.prototype.children = cf.prototype.children = dm.prototype.children = ZM; +ch.prototype.children = uf.prototype.children = dm.prototype.children = ZM; function ZK(t, e) { let r = t.dom, { children: n } = t, i = 0; for (let s = 0; i < n.length; i++) { @@ -4824,9 +4824,9 @@ function KK(t, e, r) { } o(t, e); let l = (r < 0 ? n : s) || n || s; - return l ? l.coordsAt(Math.max(0, l == n ? i : a), r) : _we(t); + return l ? l.coordsAt(Math.max(0, l == n ? i : a), r) : Awe(t); } -function _we(t) { +function Awe(t) { let e = t.dom.lastChild; if (!e) return t.dom.getBoundingClientRect(); @@ -4861,7 +4861,7 @@ function a8(t, e, r) { e && e[i] == r[i] || (n = !0, i == "style" ? t.style.cssText = r[i] : t.setAttribute(i, r[i])); return n; } -function Awe(t) { +function Lwe(t) { let e = /* @__PURE__ */ Object.create(null); for (let r = 0; r < t.attributes.length; r++) { let n = t.attributes[r]; @@ -4972,12 +4972,12 @@ class Pi extends Dn { return null; } } -class xf extends Dn { +class wf extends Dn { constructor(e, r, n) { super(), this.widget = e, this.length = r, this.deco = n, this.breakAfter = 0, this.prevWidget = null; } merge(e, r, n, i, s, a) { - return n && (!(n instanceof xf) || !this.widget.compare(n.widget) || e > 0 && s <= 0 || r < this.length && a <= 0) ? !1 : (this.length = e + (n ? n.length : 0) + (this.length - r), !0); + return n && (!(n instanceof wf) || !this.widget.compare(n.widget) || e > 0 && s <= 0 || r < this.length && a <= 0) ? !1 : (this.length = e + (n ? n.length : 0) + (this.length - r), !0); } domAtPos(e) { return e == 0 ? Zs.before(this.dom) : Zs.after(this.dom, e == this.length); @@ -4985,7 +4985,7 @@ class xf extends Dn { split(e) { let r = this.length - e; this.length = e; - let n = new xf(this.widget, r, this.deco); + let n = new wf(this.widget, r, this.deco); return n.breakAfter = this.breakAfter, n; } get children() { @@ -5001,7 +5001,7 @@ class xf extends Dn { return null; } become(e) { - return e instanceof xf && e.widget.constructor == this.widget.constructor ? (e.widget.compare(this.widget) || this.markDirty(!0), this.dom && !this.prevWidget && (this.prevWidget = this.widget), this.widget = e.widget, this.length = e.length, this.deco = e.deco, this.breakAfter = e.breakAfter, !0) : !1; + return e instanceof wf && e.widget.constructor == this.widget.constructor ? (e.widget.compare(this.widget) || this.markDirty(!0), this.dom && !this.prevWidget && (this.prevWidget = this.widget), this.widget = e.widget, this.length = e.length, this.deco = e.deco, this.breakAfter = e.breakAfter, !0) : !1; } ignoreMutation() { return !0; @@ -5069,7 +5069,7 @@ class It extends M0 { } static widget(e) { let r = Math.max(-1e4, Math.min(1e4, e.side || 0)), n = !!e.block; - return r += n && !e.inlineOrder ? r > 0 ? 3e8 : -4e8 : r > 0 ? 1e8 : -1e8, new Nf(e, r, r, n, e.widget || null, !1); + return r += n && !e.inlineOrder ? r > 0 ? 3e8 : -4e8 : r > 0 ? 1e8 : -1e8, new If(e, r, r, n, e.widget || null, !1); } static replace(e) { let r = !!e.block, n, i; @@ -5079,7 +5079,7 @@ class It extends M0 { let { start: s, end: a } = JK(e, r); n = (s ? r ? -3e8 : -1 : 5e8) - 1, i = (a ? r ? 2e8 : 1 : -6e8) + 1; } - return new Nf(e, n, i, r, e.widget || null, !0); + return new If(e, n, i, r, e.widget || null, !0); } static line(e) { return new Ix(e); @@ -5123,7 +5123,7 @@ class Ix extends It { } Ix.prototype.mapMode = zi.TrackBefore; Ix.prototype.point = !0; -class Nf extends It { +class If extends It { constructor(e, r, n, i, s, a) { super(r, n, s, e), this.block = i, this.isReplace = a, this.mapMode = i ? r <= 0 ? zi.TrackBefore : zi.TrackAfter : zi.TrackDel; } @@ -5134,7 +5134,7 @@ class Nf extends It { return this.block || !!this.widget && (this.widget.estimatedHeight >= 5 || this.widget.lineBreaks > 0); } eq(e) { - return e instanceof Nf && Lwe(this.widget, e.widget) && this.block == e.block && this.startSide == e.startSide && this.endSide == e.endSide; + return e instanceof If && Rwe(this.widget, e.widget) && this.block == e.block && this.startSide == e.startSide && this.endSide == e.endSide; } range(e, r = e) { if (this.isReplace && (e > r || e == r && this.startSide > 0 && this.endSide <= 0)) @@ -5144,12 +5144,12 @@ class Nf extends It { return super.range(e, r); } } -Nf.prototype.point = !0; +If.prototype.point = !0; function JK(t, e = !1) { let { inclusiveStart: r, inclusiveEnd: n } = t; return r == null && (r = t.inclusive), n == null && (n = t.inclusive), { start: r != null ? r : e, end: n != null ? n : e }; } -function Lwe(t, e) { +function Rwe(t, e) { return t == e || !!(t && e && t.compare(e)); } function o8(t, e, r, n = 0) { @@ -5164,7 +5164,7 @@ class Ny { if (this.content.length == 0) return !this.breakAtStart && this.doc.lineAt(this.pos).from != this.pos; let e = this.content[this.content.length - 1]; - return !(e.breakAfter || e instanceof xf && e.deco.endSide < 0); + return !(e.breakAfter || e instanceof wf && e.deco.endSide < 0); } getLine() { return this.curLine || (this.content.push(this.curLine = new Pi()), this.atCursorPos = !0), this.curLine; @@ -5176,7 +5176,7 @@ class Ny { this.flushBuffer(), this.curLine = null, this.content.push(e); } finish(e) { - this.pendingBuffer && e <= this.bufferMarks.length ? this.flushBuffer() : this.pendingBuffer = 0, !this.posCovered() && !(e && this.content.length && this.content[this.content.length - 1] instanceof xf) && this.getLine(); + this.pendingBuffer && e <= this.bufferMarks.length ? this.flushBuffer() : this.pendingBuffer = 0, !this.posCovered() && !(e && this.content.length && this.content[this.content.length - 1] instanceof wf) && this.getLine(); } buildText(e, r, n) { for (; e > 0; ) { @@ -5198,18 +5198,18 @@ class Ny { this.buildText(r - e, n, i), this.pos = r, this.openStart < 0 && (this.openStart = i); } point(e, r, n, i, s, a) { - if (this.disallowBlockEffectsFor[a] && n instanceof Nf) { + if (this.disallowBlockEffectsFor[a] && n instanceof If) { if (n.block) throw new RangeError("Block decorations may not be specified via plugins"); if (r > this.doc.lineAt(this.pos).to) throw new RangeError("Decorations that replace line breaks may not be specified via plugins"); } let o = r - e; - if (n instanceof Nf) + if (n instanceof If) if (n.block) - n.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new xf(n.widget || new PF("div"), o, n)); + n.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new wf(n.widget || new PF("div"), o, n)); else { - let l = cf.create(n.widget || new PF("span"), o, o ? 0 : n.startSide), u = this.atCursorPos && !l.isEditable && s <= i.length && (e < r || n.startSide > 0), h = !l.isEditable && (e < r || s > i.length || n.startSide <= 0), f = this.getLine(); + let l = uf.create(n.widget || new PF("span"), o, o ? 0 : n.startSide), u = this.atCursorPos && !l.isEditable && s <= i.length && (e < r || n.startSide > 0), h = !l.isEditable && (e < r || s > i.length || n.startSide <= 0), f = this.getLine(); this.pendingBuffer == 2 && !u && !l.isEditable && (this.pendingBuffer = 0), this.flushBuffer(i), u && (f.append(oO(new dm(1), i), s), s = i.length + Math.max(0, s - i.length)), f.append(oO(l, i), s), this.atCursorPos = h, this.pendingBuffer = h ? e < r || s > i.length ? 1 : 2 : 0, this.pendingBuffer && (this.bufferMarks = i.slice()); } else @@ -5265,7 +5265,7 @@ function al(t, e, r) { n.length ? n[0](e) : window.onerror ? window.onerror(String(e), r, void 0, void 0, e) : r ? console.error(r + ":", e) : console.error(e); } const IT = /* @__PURE__ */ $t.define({ combine: (t) => t.length ? t[0] : !0 }); -let Rwe = 0; +let Mwe = 0; const ty = /* @__PURE__ */ $t.define(); class hn { constructor(e, r, n, i, s) { @@ -5273,7 +5273,7 @@ class hn { } static define(e, r) { const { eventHandlers: n, eventObservers: i, provide: s, decorations: a } = r || {}; - return new hn(Rwe++, e, n, i, (o) => { + return new hn(Mwe++, e, n, i, (o) => { let l = [ty.of(o)]; return a && l.push(g2.of((u) => { let h = u.plugin(o); @@ -5440,16 +5440,16 @@ function dJ(t) { e.push(1 << +t[r]); return e; } -const Mwe = /* @__PURE__ */ dJ("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Dwe = /* @__PURE__ */ dJ("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), c8 = /* @__PURE__ */ Object.create(null), wc = []; +const Dwe = /* @__PURE__ */ dJ("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), Pwe = /* @__PURE__ */ dJ("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), c8 = /* @__PURE__ */ Object.create(null), wc = []; for (let t of ["()", "[]", "{}"]) { let e = /* @__PURE__ */ t.charCodeAt(0), r = /* @__PURE__ */ t.charCodeAt(1); c8[e] = r, c8[r] = -e; } -function Pwe(t) { - return t <= 247 ? Mwe[t] : 1424 <= t && t <= 1524 ? 2 : 1536 <= t && t <= 1785 ? Dwe[t - 1536] : 1774 <= t && t <= 2220 ? 4 : 8192 <= t && t <= 8204 ? 256 : 64336 <= t && t <= 65023 ? 4 : 1; +function Nwe(t) { + return t <= 247 ? Dwe[t] : 1424 <= t && t <= 1524 ? 2 : 1536 <= t && t <= 1785 ? Pwe[t - 1536] : 1774 <= t && t <= 2220 ? 4 : 8192 <= t && t <= 8204 ? 256 : 64336 <= t && t <= 65023 ? 4 : 1; } -const Nwe = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/; -class uf { +const Iwe = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/; +class hf { get dir() { return this.level % 2 ? fJ : m2; } @@ -5485,11 +5485,11 @@ function pJ(t, e) { return !0; } const pn = []; -function Iwe(t, e, r, n, i) { +function $we(t, e, r, n, i) { for (let s = 0; s <= n.length; s++) { let a = s ? n[s - 1].to : e, o = s < n.length ? n[s].from : r, l = s ? 256 : i; for (let u = a, h = l, f = l; u < o; u++) { - let d = Pwe(t.charCodeAt(u)); + let d = Nwe(t.charCodeAt(u)); d == 512 ? d = h : d == 8 && f == 4 && (d = 16), pn[u] = d == 4 ? 2 : d, d & 7 && (f = d), h = d; } for (let u = a, h = l, f = l; u < o; u++) { @@ -5510,7 +5510,7 @@ function Iwe(t, e, r, n, i) { } } } -function $we(t, e, r, n, i) { +function Bwe(t, e, r, n, i) { let s = i == 1 ? 2 : 1; for (let a = 0, o = 0, l = 0; a <= n.length; a++) { let u = a ? n[a - 1].to : e, h = a < n.length ? n[a].from : r; @@ -5546,7 +5546,7 @@ function $we(t, e, r, n, i) { } } } -function Bwe(t, e, r, n) { +function Fwe(t, e, r, n) { for (let i = 0, s = n; i <= r.length; i++) { let a = i ? r[i - 1].to : t, o = i < r.length ? r[i].from : e; for (let l = a; l < o; ) { @@ -5602,7 +5602,7 @@ function u8(t, e, r, n, i, s, a) { if (u++, d) d.push(m); else { - m.from > l && a.push(new uf(l, m.from, p)); + m.from > l && a.push(new hf(l, m.from, p)); let v = m.direction == m2 != !(p % 2); h8(t, v ? n + 1 : n, i, m.inner, m.from, m.to, a), l = m.to; } @@ -5612,7 +5612,7 @@ function u8(t, e, r, n, i, s, a) { break; g++; } - d ? u8(t, l, g, n + 1, i, d, a) : l < g && a.push(new uf(l, g, p)), l = g; + d ? u8(t, l, g, n + 1, i, d, a) : l < g && a.push(new hf(l, g, p)), l = g; } else for (let l = r, u = s.length; l > e; ) { @@ -5643,7 +5643,7 @@ function u8(t, e, r, n, i, s, a) { if (d) d.push(m); else { - m.to < l && a.push(new uf(m.to, l, p)); + m.to < l && a.push(new hf(m.to, l, p)); let v = m.direction == m2 != !(p % 2); h8(t, v ? n + 1 : n, i, m.inner, m.from, m.to, a), l = m.from; } @@ -5653,17 +5653,17 @@ function u8(t, e, r, n, i, s, a) { break; g--; } - d ? u8(t, g, l, n + 1, i, d, a) : g < l && a.push(new uf(g, l, p)), l = g; + d ? u8(t, g, l, n + 1, i, d, a) : g < l && a.push(new hf(g, l, p)), l = g; } } function h8(t, e, r, n, i, s, a) { let o = e % 2 ? 2 : 1; - Iwe(t, i, s, n, o), $we(t, i, s, n, o), Bwe(i, s, n, o), u8(t, i, s, e, r, n, a); + $we(t, i, s, n, o), Bwe(t, i, s, n, o), Fwe(i, s, n, o), u8(t, i, s, e, r, n, a); } -function Fwe(t, e, r) { +function zwe(t, e, r) { if (!t) - return [new uf(0, 0, e == fJ ? 1 : 0)]; - if (e == m2 && !r.length && !Nwe.test(t)) + return [new hf(0, 0, e == fJ ? 1 : 0)]; + if (e == m2 && !r.length && !Iwe.test(t)) return gJ(t.length); if (r.length) for (; t.length > pn.length; ) @@ -5672,10 +5672,10 @@ function Fwe(t, e, r) { return h8(t, i, i, r, 0, t.length, n), n; } function gJ(t) { - return [new uf(0, t, 0)]; + return [new hf(0, t, 0)]; } let mJ = ""; -function zwe(t, e, r, n, i) { +function Qwe(t, e, r, n, i) { var s; let a = n.head - t.from, o = -1; if (a == 0) { @@ -5688,7 +5688,7 @@ function zwe(t, e, r, n, i) { let d = e[e.length - 1]; d.level != r && (a = d.side(!0, r), o = e.length - 1); } - o < 0 && (o = uf.find(e, a, (s = n.bidiLevel) !== null && s !== void 0 ? s : -1, n.assoc)); + o < 0 && (o = hf.find(e, a, (s = n.bidiLevel) !== null && s !== void 0 ? s : -1, n.assoc)); let l = e[o]; a == l.side(i, r) && (l = e[o += i ? 1 : -1], a = l.side(!i, r)); let u = i == (l.dir == r), h = ks(t.text, a, u); @@ -5709,15 +5709,15 @@ class IF extends Dn { let n = e.changedRanges; this.minWidth > 0 && n.length && (n.every(({ fromA: u, toA: h }) => h < this.minWidthFrom || u > this.minWidthTo) ? (this.minWidthFrom = e.changes.mapPos(this.minWidthFrom, 1), this.minWidthTo = e.changes.mapPos(this.minWidthTo, 1)) : this.minWidth = this.minWidthFrom = this.minWidthTo = 0); let i = -1; - this.view.inputState.composing >= 0 && (!((r = this.domChanged) === null || r === void 0) && r.newSel ? i = this.domChanged.newSel.head : !Gwe(e.changes, this.hasComposition) && !e.selectionSet && (i = e.state.selection.main.head)); - let s = i > -1 ? Uwe(this.view, e.changes, i) : null; + this.view.inputState.composing >= 0 && (!((r = this.domChanged) === null || r === void 0) && r.newSel ? i = this.domChanged.newSel.head : !Xwe(e.changes, this.hasComposition) && !e.selectionSet && (i = e.state.selection.main.head)); + let s = i > -1 ? Vwe(this.view, e.changes, i) : null; if (this.domChanged = null, this.hasComposition) { this.markedForComposition.clear(); let { from: u, to: h } = this.hasComposition; n = new ol(u, h, e.changes.mapPos(u, -1), e.changes.mapPos(h, 1)).addToSet(n.slice()); } this.hasComposition = s ? { from: s.range.fromB, to: s.range.toB } : null, (Vt.ie || Vt.chrome) && !s && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0); - let a = this.decorations, o = this.updateDeco(), l = Ywe(a, o, e.changes); + let a = this.decorations, o = this.updateDeco(), l = Wwe(a, o, e.changes); return n = ol.extendWithRanges(n, l), !(this.flags & 7) && n.length == 0 ? !1 : (this.updateInner(n, e.startState.doc.length, s), e.transactions.length && (this.lastUpdate = Date.now()), !0); } updateInner(e, r, n) { @@ -5731,7 +5731,7 @@ class IF extends Dn { let s = []; if (this.view.viewport.from || this.view.viewport.to < this.view.state.doc.length) for (let a of this.children) - a instanceof xf && a.widget instanceof $F && s.push(a.dom); + a instanceof wf && a.widget instanceof $F && s.push(a.dom); i.updateGaps(s); } updateChildren(e, r, n) { @@ -5779,18 +5779,18 @@ class IF extends Dn { let a = this.forceSelection; this.forceSelection = !1; let o = this.view.state.selection.main, l = this.moveToLine(this.domAtPos(o.anchor)), u = o.empty ? l : this.moveToLine(this.domAtPos(o.head)); - if (Vt.gecko && o.empty && !this.hasComposition && Qwe(l)) { + if (Vt.gecko && o.empty && !this.hasComposition && Uwe(l)) { let f = document.createTextNode(""); this.view.observer.ignore(() => l.node.insertBefore(f, l.node.childNodes[l.offset] || null)), l = u = new Zs(f, 0), a = !0; } let h = this.view.observer.selectionRange; (a || !h.focusNode || !mk(l.node, l.offset, h.anchorNode, h.anchorOffset) || !mk(u.node, u.offset, h.focusNode, h.focusOffset)) && (this.view.observer.ignore(() => { - Vt.android && Vt.chrome && this.dom.contains(h.focusNode) && Wwe(h.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 })); + Vt.android && Vt.chrome && this.dom.contains(h.focusNode) && Gwe(h.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 })); let f = gk(this.view.root); if (f) if (o.empty) { if (Vt.gecko) { - let d = Vwe(l.node, l.offset); + let d = qwe(l.node, l.offset); if (d && d != 3) { let p = yJ(l.node, l.offset, d == 1 ? 1 : -1); p && (l = new Zs(p.node, p.offset)); @@ -5998,10 +5998,10 @@ class IF extends Dn { right: n.right + s.right, bottom: n.bottom + s.bottom }, { offsetWidth: o, offsetHeight: l } = this.view.scrollDOM; - wwe(this.view.scrollDOM, a, r.head < r.anchor ? -1 : 1, e.x, e.y, Math.max(Math.min(e.xMargin, o), -o), Math.max(Math.min(e.yMargin, l), -l), this.view.textDirection == Wn.LTR); + Owe(this.view.scrollDOM, a, r.head < r.anchor ? -1 : 1, e.x, e.y, Math.max(Math.min(e.xMargin, o), -o), Math.max(Math.min(e.yMargin, l), -l), this.view.textDirection == Wn.LTR); } } -function Qwe(t) { +function Uwe(t) { return t.node.nodeType == 1 && t.node.firstChild && (t.offset == 0 || t.node.childNodes[t.offset - 1].contentEditable == "false") && (t.offset == t.node.childNodes.length || t.node.childNodes[t.offset].contentEditable == "false"); } class $F extends uo { @@ -6029,7 +6029,7 @@ function vJ(t, e) { let i = e - n.offset; return { from: i, to: i + n.node.nodeValue.length, node: n.node }; } -function Uwe(t, e, r) { +function Vwe(t, e, r) { let n = vJ(t, r); if (!n) return null; @@ -6047,7 +6047,7 @@ function Uwe(t, e, r) { if (f != t.contentDOM) h.push({ node: f, deco: new Nx({ inclusive: !0, - attributes: Awe(f), + attributes: Lwe(f), tagName: f.tagName.toLowerCase() }) }); else @@ -6076,10 +6076,10 @@ function yJ(t, e, r) { } return null; } -function Vwe(t, e) { +function qwe(t, e) { return t.nodeType != 1 ? 0 : (e && t.childNodes[e - 1].contentEditable == "false" ? 1 : 0) | (e < t.childNodes.length && t.childNodes[e].contentEditable == "false" ? 2 : 0); } -let qwe = class { +let Ywe = class { constructor() { this.changes = []; } @@ -6090,23 +6090,23 @@ let qwe = class { o8(e, r, this.changes); } }; -function Ywe(t, e, r) { - let n = new qwe(); +function Wwe(t, e, r) { + let n = new Ywe(); return $r.compare(t, e, r, n), n.changes; } -function Wwe(t, e) { +function Gwe(t, e) { for (let r = t; r && r != e; r = r.assignedSlot || r.parentNode) if (r.nodeType == 1 && r.contentEditable == "false") return !0; return !1; } -function Gwe(t, e) { +function Xwe(t, e) { let r = !1; return e && t.iterChangedRanges((n, i) => { n < e.to && i > e.from && (r = !0); }), r; } -function Xwe(t, e, r = 1) { +function Hwe(t, e, r = 1) { let n = t.charCategorizer(e), i = t.doc.lineAt(e), s = e - i.from; if (i.length == 0) return je.cursor(e); @@ -6128,10 +6128,10 @@ function Xwe(t, e, r = 1) { } return je.range(a + i.from, o + i.from); } -function Hwe(t, e) { +function Zwe(t, e) { return e.left > t ? e.left - t : Math.max(0, t - e.right); } -function Zwe(t, e) { +function jwe(t, e) { return e.top > t ? e.top - t : Math.max(0, t - e.bottom); } function w_(t, e) { @@ -6150,7 +6150,7 @@ function f8(t, e, r) { for (let v = 0; v < m.length; v++) { let y = m[v]; i && w_(i, y) && (y = BF(FF(y, i.bottom), i.top)); - let b = Hwe(e, y), w = Zwe(r, y); + let b = Zwe(e, y), w = jwe(r, y); if (b == 0 && w == 0) return g.nodeType == 3 ? zF(g, e, r) : f8(g, e, r); if (!n || a > w || a == w && s > b) { @@ -6219,7 +6219,7 @@ function bJ(t, e, r, n = -1) { O && ({ offsetNode: y, offset: b } = O); } else if (g.caretRangeFromPoint) { let O = g.caretRangeFromPoint(h, f); - O && ({ startContainer: y, startOffset: b } = O, (!t.contentDOM.contains(y) || Vt.safari && jwe(y, b, h) || Vt.chrome && Kwe(y, b, h)) && (y = void 0)); + O && ({ startContainer: y, startOffset: b } = O, (!t.contentDOM.contains(y) || Vt.safari && Kwe(y, b, h) || Vt.chrome && Jwe(y, b, h)) && (y = void 0)); } } if (!y || !t.docView.dom.contains(y)) { @@ -6246,7 +6246,7 @@ function QF(t, e, r, n, i) { let a = t.state.sliceDoc(r.from, r.to); return r.from + K7(a, s, t.state.tabSize); } -function jwe(t, e, r) { +function Kwe(t, e, r) { let n; if (t.nodeType != 3 || e != (n = t.nodeValue.length)) return !1; @@ -6255,7 +6255,7 @@ function jwe(t, e, r) { return !1; return D0(t, n - 1, n).getBoundingClientRect().left > r; } -function Kwe(t, e, r) { +function Jwe(t, e, r) { if (e != 0) return !1; for (let i = t; ; ) { @@ -6278,7 +6278,7 @@ function d8(t, e) { } return r; } -function Jwe(t, e, r, n) { +function eOe(t, e, r, n) { let i = d8(t, e.head), s = !n || i.type != Ca.Text || !(t.lineWrapping || i.widgetLineBreaks) ? null : t.coordsAtPos(e.assoc < 0 && e.head > i.from ? e.head - 1 : e.head); if (s) { let a = t.dom.getBoundingClientRect(), o = t.textDirectionAt(i.from), l = t.posAtCoords({ @@ -6293,7 +6293,7 @@ function Jwe(t, e, r, n) { function UF(t, e, r, n) { let i = t.state.doc.lineAt(e.head), s = t.bidiSpans(i), a = t.textDirectionAt(i.from); for (let o = e, l = null; ; ) { - let u = zwe(i, s, a, o, r), h = mJ; + let u = Qwe(i, s, a, o, r), h = mJ; if (!u) { if (i.number == (r ? t.state.doc.lines : 1)) return o; @@ -6311,14 +6311,14 @@ function UF(t, e, r, n) { o = u; } } -function eOe(t, e, r) { +function tOe(t, e, r) { let n = t.state.charCategorizer(e), i = n(r); return (s) => { let a = n(s); return i == Fn.Space && (i = a), i == a; }; } -function tOe(t, e, r, n) { +function rOe(t, e, r, n) { let i = e.head, s = r ? 1 : -1; if (i == (r ? t.state.doc.length : 0)) return je.cursor(i, e.assoc); @@ -6356,15 +6356,15 @@ function O_(t, e, r) { let n = r5(t.state.facet(JM).map((i) => i(t)), r.from, e.head > r.from ? -1 : 1); return n == r.from ? r : je.cursor(n, n < r.from ? 1 : -1); } -class rOe { +class nOe { setSelectionOrigin(e) { this.lastSelectionOrigin = e, this.lastSelectionTime = Date.now(); } constructor(e) { - this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastEscPress = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, Vt.safari && e.contentDOM.addEventListener("input", () => null), Vt.gecko && yOe(e.contentDOM.ownerDocument); + this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastEscPress = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, Vt.safari && e.contentDOM.addEventListener("input", () => null), Vt.gecko && bOe(e.contentDOM.ownerDocument); } handleEvent(e) { - !uOe(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || this.runHandlers(e.type, e); + !hOe(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || this.runHandlers(e.type, e); } runHandlers(e, r) { let n = this.handlers[e]; @@ -6382,7 +6382,7 @@ class rOe { } } ensureHandlers(e) { - let r = nOe(e), n = this.handlers, i = this.view.contentDOM; + let r = iOe(e), n = this.handlers, i = this.view.contentDOM; for (let s in r) if (s != "scroll") { let a = !r[s].handlers.length, o = n[s]; @@ -6398,7 +6398,7 @@ class rOe { if (e.keyCode != 27 && wJ.indexOf(e.keyCode) < 0 && (this.view.inputState.lastEscPress = 0), Vt.android && Vt.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8)) return this.view.observer.delayAndroidKey(e.key, e.keyCode), !0; let r; - return Vt.ios && !e.synthetic && !e.altKey && !e.metaKey && ((r = xJ.find((n) => n.keyCode == e.keyCode)) && !e.ctrlKey || iOe.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = r || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1); + return Vt.ios && !e.synthetic && !e.altKey && !e.metaKey && ((r = xJ.find((n) => n.keyCode == e.keyCode)) && !e.ctrlKey || sOe.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = r || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1); } flushIOSKey() { let e = this.pendingIOSKey; @@ -6426,7 +6426,7 @@ function VF(t, e) { } }; } -function nOe(t) { +function iOe(t) { let e = /* @__PURE__ */ Object.create(null); function r(n) { return e[n] || (e[n] = { observers: [], handlers: [] }); @@ -6455,18 +6455,18 @@ const xJ = [ { key: "Enter", keyCode: 13, inputType: "insertParagraph" }, { key: "Enter", keyCode: 13, inputType: "insertLineBreak" }, { key: "Delete", keyCode: 46, inputType: "deleteContentForward" } -], iOe = "dthko", wJ = [16, 17, 18, 20, 91, 92, 224, 225], cO = 6; +], sOe = "dthko", wJ = [16, 17, 18, 20, 91, 92, 224, 225], cO = 6; function uO(t) { return Math.max(0, t) * 0.7 + 8; } -function sOe(t, e) { +function aOe(t, e) { return Math.max(Math.abs(t.clientX - e.clientX), Math.abs(t.clientY - e.clientY)); } -class aOe { +class oOe { constructor(e, r, n, i) { - this.view = e, this.startEvent = r, this.style = n, this.mustSelect = i, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = r, this.scrollParent = Owe(e.contentDOM), this.atoms = e.state.facet(JM).map((a) => a(e)); + this.view = e, this.startEvent = r, this.style = n, this.mustSelect = i, this.scrollSpeed = { x: 0, y: 0 }, this.scrolling = -1, this.lastEvent = r, this.scrollParent = kwe(e.contentDOM), this.atoms = e.state.facet(JM).map((a) => a(e)); let s = e.contentDOM.ownerDocument; - s.addEventListener("mousemove", this.move = this.move.bind(this)), s.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = r.shiftKey, this.multiple = e.state.facet(Tr.allowMultipleSelections) && oOe(e, r), this.dragging = cOe(e, r) && TJ(r) == 1 ? null : !1; + s.addEventListener("mousemove", this.move = this.move.bind(this)), s.addEventListener("mouseup", this.up = this.up.bind(this)), this.extend = r.shiftKey, this.multiple = e.state.facet(Tr.allowMultipleSelections) && lOe(e, r), this.dragging = uOe(e, r) && TJ(r) == 1 ? null : !1; } start(e) { this.dragging === !1 && this.select(e); @@ -6475,7 +6475,7 @@ class aOe { var r; if (e.buttons == 0) return this.destroy(); - if (this.dragging || this.dragging == null && sOe(this.startEvent, e) < 10) + if (this.dragging || this.dragging == null && aOe(this.startEvent, e) < 10) return; this.select(this.lastEvent = e); let n = 0, i = 0, s = ((r = this.scrollParent) === null || r === void 0 ? void 0 : r.getBoundingClientRect()) || { left: 0, top: 0, right: this.view.win.innerWidth, bottom: this.view.win.innerHeight }, a = hJ(this.view); @@ -6521,15 +6521,15 @@ class aOe { this.style.update(e) && setTimeout(() => this.select(this.lastEvent), 20); } } -function oOe(t, e) { +function lOe(t, e) { let r = t.state.facet(eJ); return r.length ? r[0](e) : Vt.mac ? e.metaKey : e.ctrlKey; } -function lOe(t, e) { +function cOe(t, e) { let r = t.state.facet(tJ); return r.length ? r[0](e) : Vt.mac ? !e.altKey : !e.ctrlKey; } -function cOe(t, e) { +function uOe(t, e) { let { main: r } = t.state.selection; if (r.empty) return !1; @@ -6544,7 +6544,7 @@ function cOe(t, e) { } return !1; } -function uOe(t, e) { +function hOe(t, e) { if (!e.bubbles) return !0; if (e.defaultPrevented) @@ -6555,7 +6555,7 @@ function uOe(t, e) { return !0; } const rc = /* @__PURE__ */ Object.create(null), nc = /* @__PURE__ */ Object.create(null), OJ = Vt.ie && Vt.ie_version < 15 || Vt.ios && Vt.webkit_version < 604; -function hOe(t) { +function fOe(t) { let e = t.dom.parentNode; if (!e) return; @@ -6609,9 +6609,9 @@ rc.mousedown = (t, e) => { for (let n of t.state.facet(rJ)) if (r = n(t, e), r) break; - if (!r && e.button == 0 && (r = pOe(t, e)), r) { + if (!r && e.button == 0 && (r = gOe(t, e)), r) { let n = !t.hasFocus; - t.inputState.startMouseSelection(new aOe(t, e, r, n)), n && t.observer.ignore(() => UK(t.contentDOM)); + t.inputState.startMouseSelection(new oOe(t, e, r, n)), n && t.observer.ignore(() => UK(t.contentDOM)); let i = t.inputState.mouseSelection; if (i) return i.start(e), i.dragging === !1; @@ -6622,14 +6622,14 @@ function qF(t, e, r, n) { if (n == 1) return je.cursor(e, r); if (n == 2) - return Xwe(t.state, e, r); + return Hwe(t.state, e, r); { let i = Pi.find(t.docView, e), s = t.state.doc.lineAt(i ? i.posAtEnd : e), a = i ? i.posAtStart : s.from, o = i ? i.posAtEnd : s.to; return o < t.state.doc.length && o == s.to && o++, je.range(a, o); } } let SJ = (t, e) => t >= e.top && t <= e.bottom, YF = (t, e, r) => SJ(e, r) && t >= r.left && t <= r.right; -function fOe(t, e, r, n) { +function dOe(t, e, r, n) { let i = Pi.find(t.docView, e); if (!i) return 1; @@ -6646,17 +6646,17 @@ function fOe(t, e, r, n) { } function WF(t, e) { let r = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1); - return { pos: r, bias: fOe(t, r, e.clientX, e.clientY) }; + return { pos: r, bias: dOe(t, r, e.clientX, e.clientY) }; } -const dOe = Vt.ie && Vt.ie_version <= 11; +const pOe = Vt.ie && Vt.ie_version <= 11; let GF = null, XF = 0, HF = 0; function TJ(t) { - if (!dOe) + if (!pOe) return t.detail; let e = GF, r = HF; return GF = t, HF = Date.now(), XF = !e || r > Date.now() - 400 && Math.abs(e.clientX - t.clientX) < 2 && Math.abs(e.clientY - t.clientY) < 2 ? (XF + 1) % 3 : 1; } -function pOe(t, e) { +function gOe(t, e) { let r = WF(t, e), n = TJ(e), i = t.state.selection; return { update(s) { @@ -6668,11 +6668,11 @@ function pOe(t, e) { let f = qF(t, r.pos, r.bias, n), d = Math.min(f.from, h.from), p = Math.max(f.to, h.to); h = d < h.from ? je.range(d, p) : je.range(p, d); } - return a ? i.replaceRange(i.main.extend(h.from, h.to)) : o && n == 1 && i.ranges.length > 1 && (u = gOe(i, l.pos)) ? u : o ? i.addRange(h) : je.create([h]); + return a ? i.replaceRange(i.main.extend(h.from, h.to)) : o && n == 1 && i.ranges.length > 1 && (u = mOe(i, l.pos)) ? u : o ? i.addRange(h) : je.create([h]); } }; } -function gOe(t, e) { +function mOe(t, e) { for (let r = 0; r < t.ranges.length; r++) { let { from: n, to: i } = t.ranges[r]; if (n <= e && i >= e) @@ -6696,7 +6696,7 @@ rc.dragend = (t) => (t.inputState.draggedContent = null, !1); function ZF(t, e, r, n) { if (!r) return; - let i = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), { draggedContent: s } = t.inputState, a = n && s && lOe(t, e) ? { from: s.from, to: s.to } : null, o = { from: i, insert: r }, l = t.state.changes(a ? [a, o] : o); + let i = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), { draggedContent: s } = t.inputState, a = n && s && cOe(t, e) ? { from: s.from, to: s.to } : null, o = { from: i, insert: r }, l = t.state.changes(a ? [a, o] : o); t.focus(), t.dispatch({ changes: l, selection: { anchor: l.mapPos(i, -1), head: l.mapPos(i, 1) }, @@ -6732,9 +6732,9 @@ rc.paste = (t, e) => { return !0; t.observer.flush(); let r = OJ ? null : e.clipboardData; - return r ? (kJ(t, r.getData("text/plain") || r.getData("text/uri-text")), !0) : (hOe(t), !1); + return r ? (kJ(t, r.getData("text/plain") || r.getData("text/uri-text")), !0) : (fOe(t), !1); }; -function mOe(t, e) { +function vOe(t, e) { let r = t.dom.parentNode; if (!r) return; @@ -6743,7 +6743,7 @@ function mOe(t, e) { n.remove(), t.focus(); }, 50); } -function vOe(t) { +function yOe(t) { let e = [], r = [], n = !1; for (let i of t.selection.ranges) i.empty || (e.push(t.sliceDoc(i.from, i.to)), r.push(i)); @@ -6759,7 +6759,7 @@ function vOe(t) { } let p8 = null; rc.copy = rc.cut = (t, e) => { - let { text: r, ranges: n, linewise: i } = vOe(t.state); + let { text: r, ranges: n, linewise: i } = yOe(t.state); if (!r && !i) return !1; p8 = i ? r : null, e.type == "cut" && !t.state.readOnly && t.dispatch({ @@ -6768,7 +6768,7 @@ rc.copy = rc.cut = (t, e) => { userEvent: "delete.cut" }); let s = OJ ? null : e.clipboardData; - return s ? (s.clearData(), s.setData("text/plain", r), !0) : (mOe(t, r), !1); + return s ? (s.clearData(), s.setData("text/plain", r), !0) : (vOe(t, r), !1); }; const CJ = /* @__PURE__ */ co.define(); function EJ(t, e) { @@ -6818,13 +6818,13 @@ rc.beforeinput = (t, e) => { return !1; }; const jF = /* @__PURE__ */ new Set(); -function yOe(t) { +function bOe(t) { jF.has(t) || (jF.add(t), t.addEventListener("copy", () => { }), t.addEventListener("cut", () => { })); } const KF = ["pre-wrap", "normal", "pre-line", "break-spaces"]; -class bOe { +class xOe { constructor(e) { this.lineWrapping = e, this.doc = qr.empty, this.heightSamples = {}, this.lineHeight = 14, this.charWidth = 7, this.textHeight = 14, this.lineLength = 30, this.heightChanged = !1; } @@ -6861,7 +6861,7 @@ class bOe { return l; } } -class xOe { +class wOe { constructor(e, r) { this.from = e, this.heights = r, this.index = 0; } @@ -6883,7 +6883,7 @@ class Ic { return this.top + this.height; } get widget() { - return this._content instanceof Nf ? this._content.widget : null; + return this._content instanceof If ? this._content.widget : null; } get widgetLineBreaks() { return typeof this._content == "number" ? this._content : 0; @@ -6956,7 +6956,7 @@ class Ea { o && (s += o.size); } let a = 0; - return e[r - 1] == null ? (a = 1, r--) : e[r] == null && (a = 1, n++), new wOe(Ea.of(e.slice(0, r)), a, Ea.of(e.slice(n))); + return e[r - 1] == null ? (a = 1, r--) : e[r] == null && (a = 1, n++), new OOe(Ea.of(e.slice(0, r)), a, Ea.of(e.slice(n))); } } Ea.prototype.size = 1; @@ -7085,7 +7085,7 @@ class bs extends Ea { return `gap(${this.length})`; } } -class wOe extends Ea { +class OOe extends Ea { constructor(e, r, n) { super(e.length + r + n.length, e.height + n.height, r | (e.outdated || n.outdated ? 2 : 0)), this.left = e, this.right = n, this.size = e.size + n.size; } @@ -7156,7 +7156,7 @@ function JF(t, e) { let r, n; t[e] == null && (r = t[e - 1]) instanceof bs && (n = t[e + 1]) instanceof bs && t.splice(e - 1, 3, new bs(r.length + 1 + n.length)); } -const OOe = 5; +const kOe = 5; class eD { constructor(e, r) { this.pos = e, this.oracle = r, this.nodes = [], this.lineStart = -1, this.lineEnd = -1, this.covering = null, this.writtenTo = e; @@ -7176,7 +7176,7 @@ class eD { let i = n.widget ? n.widget.estimatedHeight : 0, s = n.widget ? n.widget.lineBreaks : 0; i < 0 && (i = this.oracle.lineHeight); let a = r - e; - n.block ? this.addBlock(new AJ(a, i, n)) : (a || s || i >= OOe) && this.addLineDeco(i, s, a); + n.block ? this.addBlock(new AJ(a, i, n)) : (a || s || i >= kOe) && this.addLineDeco(i, s, a); } else r > e && this.span(e, r); this.lineEnd > -1 && this.lineEnd < this.pos && (this.lineEnd = this.oracle.doc.lineAt(this.pos).to); @@ -7221,11 +7221,11 @@ class eD { return $r.spans(r, n, i, s, 0), s.finish(n); } } -function kOe(t, e, r) { - let n = new SOe(); +function SOe(t, e, r) { + let n = new TOe(); return $r.compare(t, e, r, n, 0), n.changes; } -class SOe { +class TOe { constructor() { this.changes = []; } @@ -7235,7 +7235,7 @@ class SOe { (e < r || n && n.heightRelevant || i && i.heightRelevant) && o8(e, r, this.changes, 5); } } -function TOe(t, e) { +function COe(t, e) { let r = t.getBoundingClientRect(), n = t.ownerDocument, i = n.defaultView || window, s = Math.max(0, r.left), a = Math.min(i.innerWidth, r.right), o = Math.max(0, r.top), l = Math.min(i.innerHeight, r.bottom); for (let u = t.parentNode; u && u != n.body; ) if (u.nodeType == 1) { @@ -7256,7 +7256,7 @@ function TOe(t, e) { bottom: Math.max(o, l) - (r.top + e) }; } -function COe(t, e) { +function EOe(t, e) { let r = t.getBoundingClientRect(); return { left: 0, @@ -7281,11 +7281,11 @@ class k_ { } draw(e, r) { return It.replace({ - widget: new EOe(this.size * (r ? e.scaleY : e.scaleX), r) + widget: new _Oe(this.size * (r ? e.scaleY : e.scaleX), r) }).range(this.from, this.to); } } -class EOe extends uo { +class _Oe extends uo { constructor(e, r) { super(), this.size = e, this.vertical = r; } @@ -7304,7 +7304,7 @@ class ez { constructor(e) { this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !0, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = tz, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = Wn.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1; let r = e.facet(KM).some((n) => typeof n != "function" && n.class == "cm-lineWrapping"); - this.heightOracle = new bOe(r), this.stateDeco = e.facet(g2).filter((n) => typeof n != "function"), this.heightMap = Ea.empty().applyChanges(this.stateDeco, qr.empty, this.heightOracle.setDoc(e.doc), [new ol(0, 0, 0, e.doc.length)]), this.viewport = this.getViewport(0, null), this.updateViewportLines(), this.updateForViewport(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = It.set(this.lineGaps.map((n) => n.draw(this, !1))), this.computeVisibleRanges(); + this.heightOracle = new xOe(r), this.stateDeco = e.facet(g2).filter((n) => typeof n != "function"), this.heightMap = Ea.empty().applyChanges(this.stateDeco, qr.empty, this.heightOracle.setDoc(e.doc), [new ol(0, 0, 0, e.doc.length)]), this.viewport = this.getViewport(0, null), this.updateViewportLines(), this.updateForViewport(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = It.set(this.lineGaps.map((n) => n.draw(this, !1))), this.computeVisibleRanges(); } updateForViewport() { let e = [this.viewport], { main: r } = this.state.selection; @@ -7315,7 +7315,7 @@ class ez { e.push(new hO(s, a)); } } - this.viewports = e.sort((n, i) => n.from - i.from), this.scaler = this.heightMap.height <= 7e6 ? tz : new LOe(this.heightOracle, this.heightMap, this.viewports); + this.viewports = e.sort((n, i) => n.from - i.from), this.scaler = this.heightMap.height <= 7e6 ? tz : new ROe(this.heightOracle, this.heightMap, this.viewports); } updateViewportLines() { this.viewportLines = [], this.heightMap.forEachLine(this.viewport.from, this.viewport.to, this.heightOracle.setDoc(this.state.doc), 0, 0, (e) => { @@ -7326,7 +7326,7 @@ class ez { this.state = e.state; let n = this.stateDeco; this.stateDeco = this.state.facet(g2).filter((h) => typeof h != "function"); - let i = e.changedRanges, s = ol.extendWithRanges(i, kOe(n, this.stateDeco, e ? e.changes : wi.empty(this.state.doc.length))), a = this.heightMap.height, o = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop); + let i = e.changedRanges, s = ol.extendWithRanges(i, SOe(n, this.stateDeco, e ? e.changes : wi.empty(this.state.doc.length))), a = this.heightMap.height, o = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop); this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), s), this.heightMap.height != a && (e.flags |= 2), o ? (this.scrollAnchorPos = e.changes.mapPos(o.from, -1), this.scrollAnchorHeight = o.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = this.heightMap.height); let l = s.length ? this.mapViewport(this.viewport, e.changes) : this.viewport; (r && (r.range.head < l.from || r.range.head > l.to) || !this.viewportIsAppropriate(l)) && (l = this.getViewport(0, r)); @@ -7347,7 +7347,7 @@ class ez { (this.paddingTop != f || this.paddingBottom != d) && (this.paddingTop = f, this.paddingBottom = d, u |= 10), this.editorWidth != e.scrollDOM.clientWidth && (i.lineWrapping && (l = !0), this.editorWidth = e.scrollDOM.clientWidth, u |= 8); let p = e.scrollDOM.scrollTop * this.scaleY; this.scrollTop != p && (this.scrollAnchorHeight = -1, this.scrollTop = p), this.scrolledToBottom = qK(e.scrollDOM); - let g = (this.printing ? COe : TOe)(r, this.paddingTop), m = g.top - this.pixelViewport.top, v = g.bottom - this.pixelViewport.bottom; + let g = (this.printing ? EOe : COe)(r, this.paddingTop), m = g.top - this.pixelViewport.top, v = g.bottom - this.pixelViewport.bottom; this.pixelViewport = g; let y = this.pixelViewport.bottom > this.pixelViewport.top && this.pixelViewport.right > this.pixelViewport.left; if (y != this.inView && (this.inView = y, y && (l = !0)), !this.inView && !this.scrollTarget) @@ -7362,7 +7362,7 @@ class ez { m > 0 && v > 0 ? h = Math.max(m, v) : m < 0 && v < 0 && (h = Math.min(m, v)), i.heightChanged = !1; for (let S of this.viewports) { let C = S.from == this.viewport.from ? O : e.docView.measureVisibleLineHeights(S); - this.heightMap = (a ? Ea.empty().applyChanges(this.stateDeco, qr.empty, this.heightOracle, [new ol(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(i, 0, a, new xOe(S.from, C)); + this.heightMap = (a ? Ea.empty().applyChanges(this.stateDeco, qr.empty, this.heightOracle, [new ol(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(i, 0, a, new wOe(S.from, C)); } i.heightChanged && (u |= 2); } @@ -7418,7 +7418,7 @@ class ez { l(u, v - 10, f, d), l(v + 10, h, f, d); return; } - let m = AOe(e, (v) => v.from >= f.from && v.to <= f.to && Math.abs(v.from - u) < s && Math.abs(v.to - h) < s && !g.some((y) => v.from < y && v.to > y)); + let m = LOe(e, (v) => v.from >= f.from && v.to <= f.to && Math.abs(v.from - u) < s && Math.abs(v.to - h) < s && !g.some((y) => v.from < y && v.to > y)); if (!m) { if (h < f.to && r && n && r.visibleRanges.some((v) => v.from <= h && v.to >= h)) { let v = r.moveToLineBoundary(je.cursor(h), !1, !0).head; @@ -7431,7 +7431,7 @@ class ez { for (let u of this.viewportLines) { if (u.length < a) continue; - let h = _Oe(u.from, u.to, this.stateDeco); + let h = AOe(u.from, u.to, this.stateDeco); if (h.total < a) continue; let f = this.scrollTarget ? this.scrollTarget.range.head : null, d, p; @@ -7502,7 +7502,7 @@ class hO { this.from = e, this.to = r; } } -function _Oe(t, e, r) { +function AOe(t, e, r) { let n = [], i = t, s = 0; return $r.spans(r, t, e, { span() { @@ -7536,7 +7536,7 @@ function dO(t, e) { } return r / t.total; } -function AOe(t, e) { +function LOe(t, e) { for (let r of t) if (e(r)) return r; @@ -7550,7 +7550,7 @@ const tz = { }, scale: 1 }; -class LOe { +class ROe { constructor(e, r, n) { let i = 0, s = 0, a = 0; this.viewports = n.map(({ from: o, to: l }) => { @@ -7601,7 +7601,7 @@ function v8(t, e, r) { } }); } -const ROe = /* @__PURE__ */ v8("." + m8, { +const MOe = /* @__PURE__ */ v8("." + m8, { "&": { position: "relative !important", boxSizing: "border-box", @@ -7833,7 +7833,7 @@ const ROe = /* @__PURE__ */ v8("." + m8, { backgroundColor: "inherit" } }, MJ), iy = "\uFFFF"; -class MOe { +class DOe { constructor(e, r) { this.points = e, this.text = "", this.lineSeparator = r.facet(Tr.lineSeparator); } @@ -7890,10 +7890,10 @@ class MOe { } findPointInside(e, r) { for (let n of this.points) - (e.nodeType == 3 ? n.node == e : e.contains(n.node)) && (n.pos = this.text.length + (DOe(e, n.node, n.offset) ? r : 0)); + (e.nodeType == 3 ? n.node == e : e.contains(n.node)) && (n.pos = this.text.length + (POe(e, n.node, n.offset) ? r : 0)); } } -function DOe(t, e, r) { +function POe(t, e, r) { for (; ; ) { if (!e || r < lh(e)) return !1; @@ -7910,15 +7910,15 @@ class nz { this.node = e, this.offset = r, this.pos = -1; } } -class POe { +class NOe { constructor(e, r, n, i) { this.typeOver = i, this.bounds = null, this.text = ""; let { impreciseHead: s, impreciseAnchor: a } = e.docView; if (e.state.readOnly && r > -1) this.newSel = null; else if (r > -1 && (this.bounds = e.docView.domBoundsAround(r, n, 0))) { - let o = s || a ? [] : $Oe(e), l = new MOe(o, e.state); - l.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = l.text, this.newSel = BOe(o, this.bounds.from); + let o = s || a ? [] : BOe(e), l = new DOe(o, e.state); + l.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = l.text, this.newSel = FOe(o, this.bounds.from); } else { let o = e.observer.selectionRange, l = s && s.node == o.focusNode && s.offset == o.focusOffset || !t8(e.contentDOM, o.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(o.focusNode, o.focusOffset), u = a && a.node == o.anchorNode && a.offset == o.anchorOffset || !t8(e.contentDOM, o.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(o.anchorNode, o.anchorOffset); this.newSel = je.single(u, l); @@ -7930,7 +7930,7 @@ function DJ(t, e) { if (e.bounds) { let { from: a, to: o } = e.bounds, l = i.from, u = null; (s === 8 || Vt.android && e.text.length < o - a) && (l = i.to, u = "end"); - let h = IOe(t.state.doc.sliceString(a, o, iy), e.text, l - a, u); + let h = $Oe(t.state.doc.sliceString(a, o, iy), e.text, l - a, u); h && (Vt.chrome && s == 13 && h.toB == h.from + 2 && e.text.slice(h.from, h.toB) == iy + iy && h.toB--, r = { from: a + h.from, to: a + h.toA, @@ -7950,7 +7950,7 @@ function DJ(t, e) { return !0; let a = r.insert.toString(); t.inputState.composing >= 0 && t.inputState.composing++; - let o, l = () => o || (o = NOe(t, r, n)); + let o, l = () => o || (o = IOe(t, r, n)); return t.state.facet(iJ).some((u) => u(t, r.from, r.to, a, l)) || t.dispatch(l()), !0; } else if (n && !n.main.eq(i)) { let a = !1, o = "select"; @@ -7958,7 +7958,7 @@ function DJ(t, e) { } else return !1; } -function NOe(t, e, r) { +function IOe(t, e, r) { let n, i = t.state, s = i.selection.main; if (e.from >= s.from && e.to <= s.to && e.to - e.from >= (s.to - s.from) / 3 && (!r || r.main.empty && r.main.from == e.from + e.insert.length) && t.inputState.composing < 0) { let o = s.from < e.from ? i.sliceDoc(s.from, e.from) : "", l = s.to > e.to ? i.sliceDoc(e.to, s.to) : ""; @@ -7994,7 +7994,7 @@ function NOe(t, e, r) { let a = "input.type"; return (t.composing || t.inputState.compositionPendingChange && t.inputState.compositionEndedAt > Date.now() - 50) && (t.inputState.compositionPendingChange = !1, a += ".compose", t.inputState.compositionFirstChange && (a += ".start", t.inputState.compositionFirstChange = !1)), i.update(n, { userEvent: a, scrollIntoView: !0 }); } -function IOe(t, e, r, n) { +function $Oe(t, e, r, n) { let i = Math.min(t.length, e.length), s = 0; for (; s < i && t.charCodeAt(s) == e.charCodeAt(s); ) s++; @@ -8016,29 +8016,29 @@ function IOe(t, e, r, n) { } return { from: s, toA: a, toB: o }; } -function $Oe(t) { +function BOe(t) { let e = []; if (t.root.activeElement != t.contentDOM) return e; let { anchorNode: r, anchorOffset: n, focusNode: i, focusOffset: s } = t.observer.selectionRange; return r && (e.push(new nz(r, n)), (i != r || s != n) && e.push(new nz(i, s))), e; } -function BOe(t, e) { +function FOe(t, e) { if (t.length == 0) return null; let r = t[0].pos, n = t.length == 2 ? t[1].pos : r; return r > -1 && n > -1 ? je.single(r + e, n + e) : null; } -const FOe = { +const zOe = { childList: !0, characterData: !0, subtree: !0, attributes: !0, characterDataOldValue: !0 }, S_ = Vt.ie && Vt.ie_version <= 11; -class zOe { +class QOe { constructor(e) { - this.view = e, this.active = !1, this.selectionRange = new kwe(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((r) => { + this.view = e, this.active = !1, this.selectionRange = new Swe(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((r) => { for (let n of r) this.queue.push(n); (Vt.ie && Vt.ie_version <= 11 || Vt.ios && e.composing) && r.some((n) => n.type == "childList" && n.removedNodes.length || n.type == "characterData" && n.oldValue.length > n.target.nodeValue.length) ? this.flushSoon() : this.flush(); @@ -8096,11 +8096,11 @@ class zOe { (Vt.ie && Vt.ie_version <= 11 || Vt.android && Vt.chrome) && !n.state.selection.main.empty && i.focusNode && mk(i.focusNode, i.focusOffset, i.anchorNode, i.anchorOffset) ? this.flushSoon() : this.flush(!1); } readSelectionRange() { - let { view: e } = this, r = Vt.safari && e.root.nodeType == 11 && bwe(this.dom.ownerDocument) == this.dom && QOe(this.view) || gk(e.root); + let { view: e } = this, r = Vt.safari && e.root.nodeType == 11 && xwe(this.dom.ownerDocument) == this.dom && UOe(this.view) || gk(e.root); if (!r || this.selectionRange.eq(r)) return !1; let n = t5(this.dom, r); - return n && !this.selectionChanged && e.inputState.lastFocusTime > Date.now() - 200 && e.inputState.lastTouchTime < Date.now() - 300 && Twe(this.dom, r) ? (this.view.inputState.lastFocusTime = 0, e.docView.updateSelection(), !1) : (this.selectionRange.setRange(r), n && (this.selectionChanged = !0), !0); + return n && !this.selectionChanged && e.inputState.lastFocusTime > Date.now() - 200 && e.inputState.lastTouchTime < Date.now() - 300 && Cwe(this.dom, r) ? (this.view.inputState.lastFocusTime = 0, e.docView.updateSelection(), !1) : (this.selectionRange.setRange(r), n && (this.selectionChanged = !0), !0); } setSelectionRange(e, r) { this.selectionRange.set(e.node, e.offset, r.node, r.offset), this.selectionChanged = !1; @@ -8135,7 +8135,7 @@ class zOe { } } start() { - this.active || (this.observer.observe(this.dom, FOe), S_ && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0); + this.active || (this.observer.observe(this.dom, zOe), S_ && this.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.active = !0); } stop() { !this.active || (this.active = !1, this.observer.disconnect(), S_ && this.dom.removeEventListener("DOMCharacterDataModified", this.onCharData)); @@ -8189,7 +8189,7 @@ class zOe { if (e < 0 && !i) return null; e > -1 && (this.lastChange = Date.now()), this.view.inputState.lastFocusTime = 0, this.selectionChanged = !1; - let s = new POe(this.view, e, r, n); + let s = new NOe(this.view, e, r, n); return this.view.docView.domChanged = { newSel: s.newSel ? s.newSel.main : null }, s; } flush(e = !0) { @@ -8243,7 +8243,7 @@ function iz(t, e, r) { } return null; } -function QOe(t) { +function UOe(t) { let e = null; function r(l) { l.preventDefault(), l.stopImmediatePropagation(), e = l.getTargetRanges()[0]; @@ -8281,10 +8281,10 @@ class kt { constructor(e = {}) { this.plugins = [], this.pluginMap = /* @__PURE__ */ new Map(), this.editorAttrs = {}, this.contentAttrs = {}, this.bidiCache = [], this.destroyed = !1, this.updateState = 2, this.measureScheduled = -1, this.measureRequests = [], this.contentDOM = document.createElement("div"), this.scrollDOM = document.createElement("div"), this.scrollDOM.tabIndex = -1, this.scrollDOM.className = "cm-scroller", this.scrollDOM.appendChild(this.contentDOM), this.announceDOM = document.createElement("div"), this.announceDOM.className = "cm-announced", this.announceDOM.setAttribute("aria-live", "polite"), this.dom = document.createElement("div"), this.dom.appendChild(this.announceDOM), this.dom.appendChild(this.scrollDOM), e.parent && e.parent.appendChild(this.dom); let { dispatch: r } = e; - this.dispatchTransactions = e.dispatchTransactions || r && ((n) => n.forEach((i) => r(i, this))) || ((n) => this.update(n)), this.dispatch = this.dispatch.bind(this), this._root = e.root || Swe(e.parent) || document, this.viewState = new ez(e.state || Tr.create(e)), e.scrollTo && e.scrollTo.is(lO) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(ty).map((n) => new x_(n)); + this.dispatchTransactions = e.dispatchTransactions || r && ((n) => n.forEach((i) => r(i, this))) || ((n) => this.update(n)), this.dispatch = this.dispatch.bind(this), this._root = e.root || Twe(e.parent) || document, this.viewState = new ez(e.state || Tr.create(e)), e.scrollTo && e.scrollTo.is(lO) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(ty).map((n) => new x_(n)); for (let n of this.plugins) n.update(this); - this.observer = new zOe(this), this.inputState = new rOe(this), this.inputState.ensureHandlers(this.plugins), this.docView = new IF(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(); + this.observer = new QOe(this), this.inputState = new nOe(this), this.inputState.ensureHandlers(this.plugins), this.docView = new IF(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(); } dispatch(...e) { let r = e.length == 1 && e[0] instanceof Ei ? e : e.length == 1 && Array.isArray(e[0]) ? e[0] : [this.state.update(...e)]; @@ -8483,7 +8483,7 @@ class kt { mountStyles() { this.styleModules = this.state.facet(ry); let e = this.state.facet(kt.cspNonce); - oh.mount(this.root, this.styleModules.concat(ROe).reverse(), e ? { nonce: e } : void 0); + oh.mount(this.root, this.styleModules.concat(MOe).reverse(), e ? { nonce: e } : void 0); } readMeasured() { if (this.updateState == 2) @@ -8539,13 +8539,13 @@ class kt { return O_(this, e, UF(this, e, r, n)); } moveByGroup(e, r) { - return O_(this, e, UF(this, e, r, (n) => eOe(this, e.head, n))); + return O_(this, e, UF(this, e, r, (n) => tOe(this, e.head, n))); } moveToLineBoundary(e, r, n = !0) { - return Jwe(this, e, r, n); + return eOe(this, e, r, n); } moveVertically(e, r, n) { - return O_(this, e, tOe(this, e, r, n)); + return O_(this, e, rOe(this, e, r, n)); } domAtPos(e) { return this.docView.domAtPos(e); @@ -8561,7 +8561,7 @@ class kt { let n = this.docView.coordsAt(e, r); if (!n || n.left == n.right) return n; - let i = this.state.doc.lineAt(e), s = this.bidiSpans(i), a = s[uf.find(s, e - i.from, -1, r)]; + let i = this.state.doc.lineAt(e), s = this.bidiSpans(i), a = s[hf.find(s, e - i.from, -1, r)]; return HM(n, a.dir == Wn.LTR == r > 0); } coordsForChar(e) { @@ -8583,14 +8583,14 @@ class kt { return this.viewState.heightOracle.lineWrapping; } bidiSpans(e) { - if (e.length > UOe) + if (e.length > VOe) return gJ(e.length); let r = this.textDirectionAt(e.from), n; for (let s of this.bidiCache) if (s.from == e.from && s.dir == r && (s.fresh || pJ(s.isolates, n = NF(this, e.from, e.to)))) return s.order; n || (n = NF(this, e.from, e.to)); - let i = Fwe(e.text, r, n); + let i = zwe(e.text, r, n); return this.bidiCache.push(new yk(e.from, e.to, r, n, !0, i)), i; } get hasFocus() { @@ -8656,7 +8656,7 @@ kt.contentAttributes = KM; kt.editorAttributes = lJ; kt.lineWrapping = /* @__PURE__ */ kt.contentAttributes.of({ class: "cm-lineWrapping" }); kt.announce = /* @__PURE__ */ or.define(); -const UOe = 4096, sz = {}; +const VOe = 4096, sz = {}; class yk { constructor(e, r, n, i, s, a) { this.from = e, this.to = r, this.dir = n, this.isolates = i, this.fresh = s, this.order = a; @@ -8679,8 +8679,8 @@ function az(t, e, r) { } return r; } -const VOe = Vt.mac ? "mac" : Vt.windows ? "win" : Vt.linux ? "linux" : "key"; -function qOe(t, e) { +const qOe = Vt.mac ? "mac" : Vt.windows ? "win" : Vt.linux ? "linux" : "key"; +function YOe(t, e) { const r = t.split(/-(?!$)/); let n = r[r.length - 1]; n == "Space" && (n = " "); @@ -8705,21 +8705,21 @@ function qOe(t, e) { function gO(t, e, r) { return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), r !== !1 && e.shiftKey && (t = "Shift-" + t), t; } -const YOe = /* @__PURE__ */ uc.default(/* @__PURE__ */ kt.domEventHandlers({ +const WOe = /* @__PURE__ */ uc.default(/* @__PURE__ */ kt.domEventHandlers({ keydown(t, e) { return NJ(PJ(e.state), t, e, "editor"); } -})), ju = /* @__PURE__ */ $t.define({ enables: YOe }), oz = /* @__PURE__ */ new WeakMap(); +})), ju = /* @__PURE__ */ $t.define({ enables: WOe }), oz = /* @__PURE__ */ new WeakMap(); function PJ(t) { let e = t.facet(ju), r = oz.get(e); - return r || oz.set(e, r = XOe(e.reduce((n, i) => n.concat(i), []))), r; + return r || oz.set(e, r = HOe(e.reduce((n, i) => n.concat(i), []))), r; } -function WOe(t, e, r) { +function GOe(t, e, r) { return NJ(PJ(t.state), e, t, r); } -let ef = null; -const GOe = 4e3; -function XOe(t, e = VOe) { +let tf = null; +const XOe = 4e3; +function HOe(t, e = qOe) { let r = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), i = (a, o) => { let l = n[a]; if (l == null) @@ -8728,17 +8728,17 @@ function XOe(t, e = VOe) { throw new Error("Key binding " + a + " is used both as a regular binding and as a multi-stroke prefix"); }, s = (a, o, l, u, h) => { var f, d; - let p = r[a] || (r[a] = /* @__PURE__ */ Object.create(null)), g = o.split(/ (?!$)/).map((y) => qOe(y, e)); + let p = r[a] || (r[a] = /* @__PURE__ */ Object.create(null)), g = o.split(/ (?!$)/).map((y) => YOe(y, e)); for (let y = 1; y < g.length; y++) { let b = g.slice(0, y).join(" "); i(b, !0), p[b] || (p[b] = { preventDefault: !0, stopPropagation: !1, run: [(w) => { - let O = ef = { view: w, prefix: b, scope: a }; + let O = tf = { view: w, prefix: b, scope: a }; return setTimeout(() => { - ef == O && (ef = null); - }, GOe), !0; + tf == O && (tf = null); + }, XOe), !0; }] }); } @@ -8768,8 +8768,8 @@ function XOe(t, e = VOe) { return r; } function NJ(t, e, r, n) { - let i = ywe(e), s = xs(i, 0), a = Ho(s) == i.length && i != " ", o = "", l = !1, u = !1, h = !1; - ef && ef.view == r && ef.scope == n && (o = ef.prefix + " ", wJ.indexOf(e.keyCode) < 0 && (u = !0, ef = null)); + let i = bwe(e), s = xs(i, 0), a = Ho(s) == i.length && i != " ", o = "", l = !1, u = !1, h = !1; + tf && tf.view == r && tf.scope == n && (o = tf.prefix + " ", wJ.indexOf(e.keyCode) < 0 && (u = !0, tf = null)); let f = /* @__PURE__ */ new Set(), d = (v) => { if (v) { for (let y of v.run) @@ -8779,7 +8779,7 @@ function NJ(t, e, r, n) { } return !1; }, p = t[n], g, m; - return p && (d(p[o + gO(i, e, !a)]) ? l = !0 : a && (e.altKey || e.metaKey || e.ctrlKey) && !(Vt.windows && e.ctrlKey && e.altKey) && (g = Pf[e.keyCode]) && g != i ? (d(p[o + gO(g, e, !0)]) || e.shiftKey && (m = f2[e.keyCode]) != i && m != g && d(p[o + gO(m, e, !1)])) && (l = !0) : a && e.shiftKey && d(p[o + gO(i, e, !0)]) && (l = !0), !l && d(p._any) && (l = !0)), u && (l = !0), l && h && e.stopPropagation(), l; + return p && (d(p[o + gO(i, e, !a)]) ? l = !0 : a && (e.altKey || e.metaKey || e.ctrlKey) && !(Vt.windows && e.ctrlKey && e.altKey) && (g = Nf[e.keyCode]) && g != i ? (d(p[o + gO(g, e, !0)]) || e.shiftKey && (m = f2[e.keyCode]) != i && m != g && d(p[o + gO(m, e, !1)])) && (l = !0) : a && e.shiftKey && d(p[o + gO(i, e, !0)]) && (l = !0), !l && d(p._any) && (l = !0)), u && (l = !0), l && h && e.stopPropagation(), l; } class $x { constructor(e, r, n, i, s) { @@ -8806,7 +8806,7 @@ class $x { let s = IJ(e); return [new $x(r, i.left - s.left, i.top - s.top, null, i.bottom - i.top)]; } else - return HOe(e, r, n); + return ZOe(e, r, n); } } function IJ(t) { @@ -8821,7 +8821,7 @@ function lz(t, e, r) { type: Ca.Text }; } -function HOe(t, e, r) { +function ZOe(t, e, r) { if (r.to <= t.viewport.from || r.from >= t.viewport.to) return []; let n = Math.max(r.from, t.viewport.from), i = Math.min(r.to, t.viewport.to), s = t.textDirection == Wn.LTR, a = t.contentDOM, o = a.getBoundingClientRect(), l = IJ(t), u = a.querySelector(".cm-line"), h = u && window.getComputedStyle(u), f = o.left + (h ? parseInt(h.paddingLeft) + Math.min(0, parseInt(h.textIndent)) : 0), d = o.right - (h ? parseInt(h.paddingRight) : 0), p = d8(t, n), g = d8(t, i), m = p.type == Ca.Text ? p : null, v = g.type == Ca.Text ? g : null; @@ -8867,10 +8867,10 @@ function HOe(t, e, r) { return { top: T, bottom: T, horizontal: [] }; } } -function ZOe(t, e) { +function jOe(t, e) { return t.constructor == e.constructor && t.eq(e); } -class jOe { +class KOe { constructor(e, r) { this.view = e, this.layer = r, this.drawn = [], this.scaleX = 1, this.scaleY = 1, this.measureReq = { read: this.measure.bind(this), write: this.draw.bind(this) }, this.dom = e.scrollDOM.appendChild(document.createElement("div")), this.dom.classList.add("cm-layer"), r.above && this.dom.classList.add("cm-layer-above"), r.class && this.dom.classList.add(r.class), this.scale(), this.dom.setAttribute("aria-hidden", "true"), this.setOrder(e.state), e.requestMeasure(this.measureReq), r.mount && r.mount(this.dom, e); } @@ -8891,7 +8891,7 @@ class jOe { (e != this.scaleX || r != this.scaleY) && (this.scaleX = e, this.scaleY = r, this.dom.style.transform = `scale(${1 / e}, ${1 / r})`); } draw(e) { - if (e.length != this.drawn.length || e.some((r, n) => !ZOe(r, this.drawn[n]))) { + if (e.length != this.drawn.length || e.some((r, n) => !jOe(r, this.drawn[n]))) { let r = this.dom.firstChild, n = 0; for (let i of e) i.update && r && i.constructor && this.drawn[n].constructor && i.update(r, this.drawn[n]) ? (r = r.nextSibling, n++) : this.dom.insertBefore(i.draw(), r); @@ -8909,7 +8909,7 @@ class jOe { const i5 = /* @__PURE__ */ $t.define(); function $J(t) { return [ - hn.define((e) => new jOe(e, t)), + hn.define((e) => new KOe(e, t)), i5.of(t) ]; } @@ -8927,16 +8927,16 @@ const BJ = !Vt.ios, v2 = /* @__PURE__ */ $t.define({ function FJ(t = {}) { return [ v2.of(t), - KOe, JOe, e4e, + t4e, oJ.of(!0) ]; } function zJ(t) { return t.startState.facet(v2) != t.state.facet(v2); } -const KOe = /* @__PURE__ */ $J({ +const JOe = /* @__PURE__ */ $J({ above: !0, markers(t) { let { state: e } = t, r = e.facet(v2), n = []; @@ -8963,7 +8963,7 @@ const KOe = /* @__PURE__ */ $J({ function cz(t, e) { e.style.animationDuration = t.facet(v2).cursorBlinkRate + "ms"; } -const JOe = /* @__PURE__ */ $J({ +const e4e = /* @__PURE__ */ $J({ above: !1, markers(t) { return t.state.selection.ranges.map((e) => e.empty ? [] : $x.forRange(t, "cm-selectionBackground", e)).reduce((e, r) => e.concat(r)); @@ -8979,7 +8979,7 @@ const JOe = /* @__PURE__ */ $J({ } }; BJ && (y8[".cm-line"].caretColor = "transparent !important", y8[".cm-content"] = { caretColor: "transparent !important" }); -const e4e = /* @__PURE__ */ uc.highest(/* @__PURE__ */ kt.theme(y8)), QJ = /* @__PURE__ */ or.define({ +const t4e = /* @__PURE__ */ uc.highest(/* @__PURE__ */ kt.theme(y8)), QJ = /* @__PURE__ */ or.define({ map(t, e) { return t == null ? null : e.mapPos(t); } @@ -8990,7 +8990,7 @@ const e4e = /* @__PURE__ */ uc.highest(/* @__PURE__ */ kt.theme(y8)), QJ = /* @_ update(t, e) { return t != null && (t = e.changes.mapPos(t)), e.effects.reduce((r, n) => n.is(QJ) ? n.value : r, t); } -}), t4e = /* @__PURE__ */ hn.fromClass(class { +}), r4e = /* @__PURE__ */ hn.fromClass(class { constructor(t) { this.view = t, this.cursor = null, this.measureReq = { read: this.readPos.bind(this), write: this.drawCursor.bind(this) }; } @@ -9038,8 +9038,8 @@ const e4e = /* @__PURE__ */ uc.highest(/* @__PURE__ */ kt.theme(y8)), QJ = /* @_ } } }); -function r4e() { - return [sy, t4e]; +function n4e() { + return [sy, r4e]; } function uz(t, e, r, n, i) { e.lastIndex = 0; @@ -9048,7 +9048,7 @@ function uz(t, e, r, n, i) { for (; o = e.exec(s.value); ) i(a + o.index, o); } -function n4e(t, e) { +function i4e(t, e) { let r = t.visibleRanges; if (r.length == 1 && r[0].from == t.viewport.from && r[0].to == t.viewport.to) return r; @@ -9057,7 +9057,7 @@ function n4e(t, e) { i = Math.max(t.state.doc.lineAt(i).from, i - e), s = Math.min(t.state.doc.lineAt(s).to, s + e), n.length && n[n.length - 1].to >= i ? n[n.length - 1].to = s : n.push({ from: i, to: s }); return n; } -class i4e { +class s4e { constructor(e) { const { regexp: r, decoration: n, decorate: i, boundary: s, maxLength: a = 1e3 } = e; if (!r.global) @@ -9077,7 +9077,7 @@ class i4e { } createDeco(e) { let r = new ls(), n = r.add.bind(r); - for (let { from: i, to: s } of n4e(e, this.maxLength)) + for (let { from: i, to: s } of i4e(e, this.maxLength)) uz(e.state.doc, this.regexp, i, s, (a, o) => this.addMatch(o, e, a, n)); return r.finish(); } @@ -9116,8 +9116,8 @@ class i4e { return r; } } -const b8 = /x/.unicode != null ? "gu" : "g", s4e = /* @__PURE__ */ new RegExp(`[\0-\b --\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`, b8), a4e = { +const b8 = /x/.unicode != null ? "gu" : "g", a4e = /* @__PURE__ */ new RegExp(`[\0-\b +-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`, b8), o4e = { 0: "null", 7: "bell", 8: "backspace", @@ -9141,7 +9141,7 @@ const b8 = /x/.unicode != null ? "gu" : "g", s4e = /* @__PURE__ */ new RegExp(`[ 65532: "object replacement" }; let T_ = null; -function o4e() { +function l4e() { var t; if (T_ == null && typeof document < "u" && document.body) { let e = document.body.style; @@ -9153,33 +9153,33 @@ const s5 = /* @__PURE__ */ $t.define({ combine(t) { let e = gu(t, { render: null, - specialChars: s4e, + specialChars: a4e, addSpecialChars: null }); - return (e.replaceTabs = !o4e()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, b8)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, b8)), e; + return (e.replaceTabs = !l4e()) && (e.specialChars = new RegExp(" |" + e.specialChars.source, b8)), e.addSpecialChars && (e.specialChars = new RegExp(e.specialChars.source + "|" + e.addSpecialChars.source, b8)), e; } }); function UJ(t = {}) { - return [s5.of(t), l4e()]; + return [s5.of(t), c4e()]; } let hz = null; -function l4e() { +function c4e() { return hz || (hz = hn.fromClass(class { constructor(t) { this.view = t, this.decorations = It.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(t.state.facet(s5)), this.decorations = this.decorator.createDeco(t); } makeDecorator(t) { - return new i4e({ + return new s4e({ regexp: t.specialChars, decoration: (e, r, n) => { let { doc: i } = r.state, s = xs(e[0], 0); if (s == 9) { let a = i.lineAt(n), o = r.state.tabSize, l = tc(a.text, o, n - a.from); return It.replace({ - widget: new f4e((o - l % o) * this.view.defaultCharacterWidth / this.view.scaleX) + widget: new d4e((o - l % o) * this.view.defaultCharacterWidth / this.view.scaleX) }); } - return this.decorationCache[s] || (this.decorationCache[s] = It.replace({ widget: new h4e(t, s) })); + return this.decorationCache[s] || (this.decorationCache[s] = It.replace({ widget: new f4e(t, s) })); }, boundary: t.replaceTabs ? void 0 : /[^]/ }); @@ -9192,11 +9192,11 @@ function l4e() { decorations: (t) => t.decorations })); } -const c4e = "\u2022"; -function u4e(t) { - return t >= 32 ? c4e : t == 10 ? "\u2424" : String.fromCharCode(9216 + t); +const u4e = "\u2022"; +function h4e(t) { + return t >= 32 ? u4e : t == 10 ? "\u2424" : String.fromCharCode(9216 + t); } -class h4e extends uo { +class f4e extends uo { constructor(e, r) { super(), this.options = e, this.code = r; } @@ -9204,7 +9204,7 @@ class h4e extends uo { return e.code == this.code; } toDOM(e) { - let r = u4e(this.code), n = e.state.phrase("Control character") + " " + (a4e[this.code] || "0x" + this.code.toString(16)), i = this.options.render && this.options.render(this.code, n, r); + let r = h4e(this.code), n = e.state.phrase("Control character") + " " + (o4e[this.code] || "0x" + this.code.toString(16)), i = this.options.render && this.options.render(this.code, n, r); if (i) return i; let s = document.createElement("span"); @@ -9214,7 +9214,7 @@ class h4e extends uo { return !1; } } -class f4e extends uo { +class d4e extends uo { constructor(e) { super(), this.width = e; } @@ -9230,9 +9230,9 @@ class f4e extends uo { } } function VJ() { - return p4e; + return g4e; } -const d4e = /* @__PURE__ */ It.line({ class: "cm-activeLine" }), p4e = /* @__PURE__ */ hn.fromClass(class { +const p4e = /* @__PURE__ */ It.line({ class: "cm-activeLine" }), g4e = /* @__PURE__ */ hn.fromClass(class { constructor(t) { this.decorations = this.getDeco(t); } @@ -9243,14 +9243,14 @@ const d4e = /* @__PURE__ */ It.line({ class: "cm-activeLine" }), p4e = /* @__PUR let e = -1, r = []; for (let n of t.state.selection.ranges) { let i = t.lineBlockAt(n.head); - i.from > e && (r.push(d4e.range(i.from)), e = i.from); + i.from > e && (r.push(p4e.range(i.from)), e = i.from); } return It.set(r); } }, { decorations: (t) => t.decorations }), x8 = 2e3; -function g4e(t, e, r) { +function m4e(t, e, r) { let n = Math.min(e.line, r.line), i = Math.max(e.line, r.line), s = []; if (e.off > x8 || r.off > x8 || e.col < 0 || r.col < 0) { let a = Math.min(e.off, r.off), o = Math.max(e.off, r.off); @@ -9272,15 +9272,15 @@ function g4e(t, e, r) { } return s; } -function m4e(t, e) { +function v4e(t, e) { let r = t.coordsAtPos(t.viewport.from); return r ? Math.round(Math.abs((r.left - e) / t.defaultCharacterWidth)) : -1; } function fz(t, e) { - let r = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), n = t.state.doc.lineAt(r), i = r - n.from, s = i > x8 ? -1 : i == n.length ? m4e(t, e.clientX) : tc(n.text, t.state.tabSize, r - n.from); + let r = t.posAtCoords({ x: e.clientX, y: e.clientY }, !1), n = t.state.doc.lineAt(r), i = r - n.from, s = i > x8 ? -1 : i == n.length ? v4e(t, e.clientX) : tc(n.text, t.state.tabSize, r - n.from); return { line: n.number, col: s, off: i }; } -function v4e(t, e) { +function y4e(t, e) { let r = fz(t, e), n = t.state.selection; return r ? { update(i) { @@ -9293,23 +9293,23 @@ function v4e(t, e) { let o = fz(t, i); if (!o) return n; - let l = g4e(t.state, r, o); + let l = m4e(t.state, r, o); return l.length ? a ? je.create(l.concat(n.ranges)) : je.create(l) : n; } } : null; } -function y4e(t) { +function b4e(t) { let e = (t == null ? void 0 : t.eventFilter) || ((r) => r.altKey && r.button == 0); - return kt.mouseSelectionStyle.of((r, n) => e(n) ? v4e(r, n) : null); + return kt.mouseSelectionStyle.of((r, n) => e(n) ? y4e(r, n) : null); } -const b4e = { +const x4e = { Alt: [18, (t) => !!t.altKey], Control: [17, (t) => !!t.ctrlKey], Shift: [16, (t) => !!t.shiftKey], Meta: [91, (t) => !!t.metaKey] -}, x4e = { style: "cursor: crosshair" }; -function w4e(t = {}) { - let [e, r] = b4e[t.key || "Alt"], n = hn.fromClass(class { +}, w4e = { style: "cursor: crosshair" }; +function O4e(t = {}) { + let [e, r] = x4e[t.key || "Alt"], n = hn.fromClass(class { constructor(i) { this.view = i, this.isDown = !1; } @@ -9333,7 +9333,7 @@ function w4e(t = {}) { n, kt.contentAttributes.of((i) => { var s; - return !((s = i.plugin(n)) === null || s === void 0) && s.isDown ? x4e : null; + return !((s = i.plugin(n)) === null || s === void 0) && s.isDown ? w4e : null; }) ]; } @@ -9371,7 +9371,7 @@ class qJ { return r && (o.forEach((l, u) => r[u] = l), r.length = o.length), this.input = i, this.tooltips = s, this.tooltipViews = a, !0; } } -function O4e(t) { +function k4e(t) { let { win: e } = t; return { top: 0, left: 0, bottom: e.innerHeight, right: e.innerWidth }; } @@ -9381,7 +9381,7 @@ const C_ = /* @__PURE__ */ $t.define({ return { position: Vt.ios ? "absolute" : ((e = t.find((i) => i.position)) === null || e === void 0 ? void 0 : e.position) || "fixed", parent: ((r = t.find((i) => i.parent)) === null || r === void 0 ? void 0 : r.parent) || null, - tooltipSpace: ((n = t.find((i) => i.tooltipSpace)) === null || n === void 0 ? void 0 : n.tooltipSpace) || O4e + tooltipSpace: ((n = t.find((i) => i.tooltipSpace)) === null || n === void 0 ? void 0 : n.tooltipSpace) || k4e }; } }), dz = /* @__PURE__ */ new WeakMap(), tD = /* @__PURE__ */ hn.fromClass(class { @@ -9487,7 +9487,7 @@ const C_ = /* @__PURE__ */ $t.define({ h.style.top = vv; continue; } - let p = l.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, g = p ? 7 : 0, m = d.right - d.left, v = (e = dz.get(u)) !== null && e !== void 0 ? e : d.bottom - d.top, y = u.offset || S4e, b = this.view.textDirection == Wn.LTR, w = d.width > n.right - n.left ? b ? n.left : n.right - d.width : b ? Math.min(f.left - (p ? 14 : 0) + y.x, n.right - m) : Math.max(n.left, f.left - m + (p ? 14 : 0) - y.x), O = this.above[o]; + let p = l.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, g = p ? 7 : 0, m = d.right - d.left, v = (e = dz.get(u)) !== null && e !== void 0 ? e : d.bottom - d.top, y = u.offset || T4e, b = this.view.textDirection == Wn.LTR, w = d.width > n.right - n.left ? b ? n.left : n.right - d.width : b ? Math.min(f.left - (p ? 14 : 0) + y.x, n.right - m) : Math.max(n.left, f.left - m + (p ? 14 : 0) - y.x), O = this.above[o]; !l.strictSide && (O ? f.top - (d.bottom - d.top) - y.y < n.top : f.bottom + (d.bottom - d.top) + y.y > n.bottom) && O == n.bottom - f.bottom > f.top - n.top && (O = this.above[o] = !O); let S = (O ? f.top - n.top : n.bottom - f.bottom) - g; if (S < v && u.resize !== !1) { @@ -9520,7 +9520,7 @@ const C_ = /* @__PURE__ */ $t.define({ this.maybeMeasure(); } } -}), k4e = /* @__PURE__ */ kt.baseTheme({ +}), S4e = /* @__PURE__ */ kt.baseTheme({ ".cm-tooltip": { zIndex: 100, boxSizing: "border-box" @@ -9581,8 +9581,8 @@ const C_ = /* @__PURE__ */ $t.define({ borderBottomColor: "transparent" } } -}), S4e = { x: 0, y: 0 }, rD = /* @__PURE__ */ $t.define({ - enables: [tD, k4e] +}), T4e = { x: 0, y: 0 }, rD = /* @__PURE__ */ $t.define({ + enables: [tD, S4e] }), bk = /* @__PURE__ */ $t.define(); class $T { static create(e) { @@ -9638,7 +9638,7 @@ class $T { return this.passProp("resize"); } } -const T4e = /* @__PURE__ */ rD.compute([bk], (t) => { +const C4e = /* @__PURE__ */ rD.compute([bk], (t) => { let e = t.facet(bk).filter((r) => r); return e.length === 0 ? null : { pos: Math.min(...e.map((r) => r.pos)), @@ -9651,7 +9651,7 @@ const T4e = /* @__PURE__ */ rD.compute([bk], (t) => { arrow: e.some((r) => r.arrow) }; }); -class C4e { +class E4e { constructor(e, r, n, i, s) { this.view = e, this.source = r, this.field = n, this.setHover = i, this.hoverTime = s, this.hoverTimeout = -1, this.restartTimeout = -1, this.pending = null, this.lastMove = { x: 0, y: 0, target: e.dom, time: 0 }, this.checkHover = this.checkHover.bind(this), e.dom.addEventListener("mouseleave", this.mouseleave = this.mouseleave.bind(this)), e.dom.addEventListener("mousemove", this.mousemove = this.mousemove.bind(this)); } @@ -9673,7 +9673,7 @@ class C4e { if (!n) return; let i, s = 1; - if (n instanceof cf) + if (n instanceof uf) i = n.posAtStart; else { if (i = e.posAtCoords(r), i == null) @@ -9701,9 +9701,9 @@ class C4e { var r; this.lastMove = { x: e.clientX, y: e.clientY, target: e.target, time: Date.now() }, this.hoverTimeout < 0 && (this.hoverTimeout = setTimeout(this.checkHover, this.hoverTime)); let { active: n, tooltip: i } = this; - if (n && i && !E4e(i.dom, e) || this.pending) { + if (n && i && !_4e(i.dom, e) || this.pending) { let { pos: s } = n || this.pending, a = (r = n == null ? void 0 : n.end) !== null && r !== void 0 ? r : s; - (s == a ? this.view.posAtCoords(this.lastMove) != s : !_4e(this.view, s, a, e.clientX, e.clientY)) && (this.view.dispatch({ effects: this.setHover.of(null) }), this.pending = null); + (s == a ? this.view.posAtCoords(this.lastMove) != s : !A4e(this.view, s, a, e.clientX, e.clientY)) && (this.view.dispatch({ effects: this.setHover.of(null) }), this.pending = null); } } mouseleave(e) { @@ -9725,18 +9725,18 @@ class C4e { } } const mO = 4; -function E4e(t, e) { +function _4e(t, e) { let r = t.getBoundingClientRect(); return e.clientX >= r.left - mO && e.clientX <= r.right + mO && e.clientY >= r.top - mO && e.clientY <= r.bottom + mO; } -function _4e(t, e, r, n, i, s) { +function A4e(t, e, r, n, i, s) { let a = t.scrollDOM.getBoundingClientRect(), o = t.documentTop + t.documentPadding.top + t.contentHeight; if (a.left > n || a.right < n || a.top > i || Math.min(a.bottom, o) < i) return !1; let l = t.posAtCoords({ x: n, y: i }, !1); return l >= e && l <= r; } -function A4e(t, e = {}) { +function L4e(t, e = {}) { let r = or.define(), n = Xn.define({ create() { return null; @@ -9752,15 +9752,15 @@ function A4e(t, e = {}) { o.pos = a, i.end != null && (o.end = s.changes.mapPos(i.end)), i = o; } for (let a of s.effects) - a.is(r) && (i = a.value), a.is(L4e) && (i = null); + a.is(r) && (i = a.value), a.is(R4e) && (i = null); return i; }, provide: (i) => bk.from(i) }); return [ n, - hn.define((i) => new C4e(i, t, n, r, e.hoverTime || 300)), - T4e + hn.define((i) => new E4e(i, t, n, r, e.hoverTime || 300)), + C4e ]; } function YJ(t, e) { @@ -9770,7 +9770,7 @@ function YJ(t, e) { let n = r.manager.tooltips.indexOf(e); return n < 0 ? null : r.manager.tooltipViews[n]; } -const L4e = /* @__PURE__ */ or.define(), pz = /* @__PURE__ */ $t.define({ +const R4e = /* @__PURE__ */ or.define(), pz = /* @__PURE__ */ $t.define({ combine(t) { let e, r; for (let n of t) @@ -9880,7 +9880,7 @@ ul.prototype.toDOM = void 0; ul.prototype.mapMode = zi.TrackBefore; ul.prototype.startSide = ul.prototype.endSide = -1; ul.prototype.point = !0; -const a5 = /* @__PURE__ */ $t.define(), R4e = { +const a5 = /* @__PURE__ */ $t.define(), M4e = { class: "", renderEmptyElements: !1, elementStyle: "", @@ -9893,18 +9893,18 @@ const a5 = /* @__PURE__ */ $t.define(), R4e = { domEventHandlers: {} }, Iy = /* @__PURE__ */ $t.define(); function BT(t) { - return [GJ(), Iy.of(Object.assign(Object.assign({}, R4e), t))]; + return [GJ(), Iy.of(Object.assign(Object.assign({}, M4e), t))]; } const w8 = /* @__PURE__ */ $t.define({ combine: (t) => t.some((e) => e) }); function GJ(t) { let e = [ - M4e + D4e ]; return t && t.fixed === !1 && e.push(w8.of(!0)), e; } -const M4e = /* @__PURE__ */ hn.fromClass(class { +const D4e = /* @__PURE__ */ hn.fromClass(class { constructor(t) { this.view = t, this.prevViewport = t.viewport, this.dom = document.createElement("div"), this.dom.className = "cm-gutters", this.dom.setAttribute("aria-hidden", "true"), this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px", this.gutters = t.state.facet(Iy).map((e) => new vz(t, e)); for (let e of this.gutters) @@ -9921,7 +9921,7 @@ const M4e = /* @__PURE__ */ hn.fromClass(class { syncGutters(t) { let e = this.dom.nextSibling; t && this.dom.remove(); - let r = $r.iter(this.view.state.facet(a5), this.view.viewport.from), n = [], i = this.gutters.map((s) => new D4e(s, this.view.viewport, -this.view.documentPadding.top)); + let r = $r.iter(this.view.state.facet(a5), this.view.viewport.from), n = [], i = this.gutters.map((s) => new P4e(s, this.view.viewport, -this.view.documentPadding.top)); for (let s of this.view.viewportLineBlocks) if (n.length && (n = []), Array.isArray(s.type)) { let a = !0; @@ -9983,7 +9983,7 @@ function O8(t, e, r) { for (; t.value && t.from <= r; ) t.from == r && e.push(t.value), t.next(); } -class D4e { +class P4e { constructor(e, r, n) { this.gutter = e, this.height = n, this.i = 0, this.cursor = $r.iter(e.markers, r.from); } @@ -10053,7 +10053,7 @@ class XJ { this.height = -1, this.above = 0, this.markers = [], this.dom = document.createElement("div"), this.dom.className = "cm-gutterElement", this.update(e, r, n, i); } update(e, r, n, i) { - this.height != r && (this.height = r, this.dom.style.height = r + "px"), this.above != n && (this.dom.style.marginTop = (this.above = n) ? n + "px" : ""), P4e(this.markers, i) || this.setMarkers(e, i); + this.height != r && (this.height = r, this.dom.style.height = r + "px"), this.above != n && (this.dom.style.marginTop = (this.above = n) ? n + "px" : ""), N4e(this.markers, i) || this.setMarkers(e, i); } setMarkers(e, r) { let n = "cm-gutterElement", i = this.dom.firstChild; @@ -10087,7 +10087,7 @@ class XJ { this.setMarkers(null, []); } } -function P4e(t, e) { +function N4e(t, e) { if (t.length != e.length) return !1; for (let r = 0; r < t.length; r++) @@ -10095,7 +10095,7 @@ function P4e(t, e) { return !1; return !0; } -const N4e = /* @__PURE__ */ $t.define(), mg = /* @__PURE__ */ $t.define({ +const I4e = /* @__PURE__ */ $t.define(), mg = /* @__PURE__ */ $t.define({ combine(t) { return gu(t, { formatNumber: String, domEventHandlers: {} }, { domEventHandlers(e, r) { @@ -10123,11 +10123,11 @@ class E_ extends ul { function __(t, e) { return t.state.facet(mg).formatNumber(e, t.state); } -const I4e = /* @__PURE__ */ Iy.compute([mg], (t) => ({ +const $4e = /* @__PURE__ */ Iy.compute([mg], (t) => ({ class: "cm-lineNumbers", renderEmptyElements: !1, markers(e) { - return e.state.facet(N4e); + return e.state.facet(I4e); }, lineMarker(e, r, n) { return n.some((i) => i.toDOM) ? null : new E_(__(e, e.state.doc.lineAt(r.from).number)); @@ -10143,11 +10143,11 @@ const I4e = /* @__PURE__ */ Iy.compute([mg], (t) => ({ }, domEventHandlers: t.facet(mg).domEventHandlers })); -function $4e(t = {}) { +function B4e(t = {}) { return [ mg.of(t), GJ(), - I4e + $4e ]; } function yz(t) { @@ -10156,31 +10156,31 @@ function yz(t) { e = e * 10 + 9; return e; } -const B4e = /* @__PURE__ */ new class extends ul { +const F4e = /* @__PURE__ */ new class extends ul { constructor() { super(...arguments), this.elementClass = "cm-activeLineGutter"; } -}(), F4e = /* @__PURE__ */ a5.compute(["selection"], (t) => { +}(), z4e = /* @__PURE__ */ a5.compute(["selection"], (t) => { let e = [], r = -1; for (let n of t.selection.ranges) { let i = t.doc.lineAt(n.head).from; - i > r && (r = i, e.push(B4e.range(i))); + i > r && (r = i, e.push(F4e.range(i))); } return $r.of(e); }); -function z4e() { - return F4e; +function Q4e() { + return z4e; } const HJ = 1024; -let Q4e = 0; +let U4e = 0; class Jo { constructor(e, r) { this.from = e, this.to = r; } } -class yr { +class br { constructor(e = {}) { - this.id = Q4e++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => { + this.id = U4e++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => { throw new Error("This node type doesn't define a deserialize function"); }); } @@ -10193,32 +10193,32 @@ class yr { }; } } -yr.closedBy = new yr({ deserialize: (t) => t.split(" ") }); -yr.openedBy = new yr({ deserialize: (t) => t.split(" ") }); -yr.group = new yr({ deserialize: (t) => t.split(" ") }); -yr.isolate = new yr({ deserialize: (t) => { +br.closedBy = new br({ deserialize: (t) => t.split(" ") }); +br.openedBy = new br({ deserialize: (t) => t.split(" ") }); +br.group = new br({ deserialize: (t) => t.split(" ") }); +br.isolate = new br({ deserialize: (t) => { if (t && t != "rtl" && t != "ltr" && t != "auto") throw new RangeError("Invalid value for isolate: " + t); return t || "auto"; } }); -yr.contextHash = new yr({ perNode: !0 }); -yr.lookAhead = new yr({ perNode: !0 }); -yr.mounted = new yr({ perNode: !0 }); +br.contextHash = new br({ perNode: !0 }); +br.lookAhead = new br({ perNode: !0 }); +br.mounted = new br({ perNode: !0 }); class x2 { constructor(e, r, n) { this.tree = e, this.overlay = r, this.parser = n; } static get(e) { - return e && e.props && e.props[yr.mounted.id]; + return e && e.props && e.props[br.mounted.id]; } } -const U4e = /* @__PURE__ */ Object.create(null); +const V4e = /* @__PURE__ */ Object.create(null); class Wi { constructor(e, r, n, i = 0) { this.name = e, this.props = r, this.id = n, this.flags = i; } static define(e) { - let r = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : U4e, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new Wi(e.name || "", r, e.id, n); + let r = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : V4e, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), i = new Wi(e.name || "", r, e.id, n); if (e.props) { for (let s of e.props) if (Array.isArray(s) || (s = s(i)), s) { @@ -10248,7 +10248,7 @@ class Wi { if (typeof e == "string") { if (this.name == e) return !0; - let r = this.prop(yr.group); + let r = this.prop(br.group); return r ? r.indexOf(e) > -1 : !1; } return this.id == e; @@ -10259,7 +10259,7 @@ class Wi { for (let i of n.split(" ")) r[i] = e[n]; return (n) => { - for (let i = n.prop(yr.group), s = -1; s < (i ? i.length : 0); s++) { + for (let i = n.prop(br.group), s = -1; s < (i ? i.length : 0); s++) { let a = r[s < 0 ? n.name : i[s]]; if (a) return a; @@ -10331,7 +10331,7 @@ class nn { return bz.set(this, n), n; } resolveStack(e, r = 0) { - return Y4e(this, e, r); + return W4e(this, e, r); } iterate(e) { let { enter: r, leave: n, from: i = 0, to: s = this.length } = e, a = e.mode || 0, o = (a & Sn.IncludeAnonymous) > 0; @@ -10363,7 +10363,7 @@ class nn { return this.children.length <= 8 ? this : sD(Wi.none, this.children, this.positions, 0, this.children.length, 0, this.length, (r, n, i) => new nn(this.type, r, n, i, this.propValues), e.makeTree || ((r, n, i) => new nn(Wi.none, r, n, i))); } static build(e) { - return W4e(e); + return G4e(e); } } nn.empty = new nn(Wi.none, [], [], 0); @@ -10393,7 +10393,7 @@ class nD { return new nD(this.buffer, this.index); } } -class If { +class $f { constructor(e, r, n) { this.buffer = e, this.length = r, this.set = n; } @@ -10428,7 +10428,7 @@ class If { let u = s[l++] = i[o++] - n; s[l++] = i[o++] - e, a = Math.max(a, u); } - return new If(s, a, this.set); + return new $f(s, a, this.set); } } function ZJ(t, e, r, n) { @@ -10520,12 +10520,12 @@ class ta extends jJ { for (let { children: o, positions: l } = a._tree, u = r > 0 ? o.length : -1; e != u; e += r) { let h = o[e], f = l[e] + a.from; if (!!ZJ(i, n, f, f + h.length)) { - if (h instanceof If) { + if (h instanceof $f) { if (s & Sn.ExcludeBuffers) continue; let d = h.findChild(0, h.buffer.length, r, n - f, i); if (d > -1) - return new Fc(new V4e(a, h, e, f), null, d); + return new Fc(new q4e(a, h, e, f), null, d); } else if (s & Sn.IncludeAnonymous || !h.type.isAnonymous || iD(h)) { let d; if (!(s & Sn.IgnoreMounts) && (d = x2.get(h)) && !d.overlay) @@ -10614,7 +10614,7 @@ function k8(t, e, r = e.length - 1) { } return !0; } -class V4e { +class q4e { constructor(e, r, n, i) { this.parent = e, this.buffer = r, this.index = n, this.start = i; } @@ -10692,9 +10692,9 @@ function KJ(t) { (a.from > r.from || a.to < r.to) && (r = a, e = s); } let n = r instanceof ta && r.index < 0 ? null : r.parent, i = t.slice(); - return n ? i[e] = n : i.splice(e, 1), new q4e(i, r); + return n ? i[e] = n : i.splice(e, 1), new Y4e(i, r); } -class q4e { +class Y4e { constructor(e, r) { this.heads = e, this.node = r; } @@ -10702,7 +10702,7 @@ class q4e { return KJ(this.heads); } } -function Y4e(t, e, r) { +function W4e(t, e, r) { let n = t.resolveInner(e, r), i = null; for (let s = n instanceof ta ? n : n.context.parent; s; s = s.parent) if (s.index < 0) { @@ -10812,7 +10812,7 @@ class xk { if (r > -1) for (let s = r + e, a = e < 0 ? -1 : n._tree.children.length; s != a; s += e) { let o = n._tree.children[s]; - if (this.mode & Sn.IncludeAnonymous || o instanceof If || !o.type.isAnonymous || iD(o)) + if (this.mode & Sn.IncludeAnonymous || o instanceof $f || !o.type.isAnonymous || iD(o)) return !1; } return !0; @@ -10901,9 +10901,9 @@ class xk { } } function iD(t) { - return t.children.some((e) => e instanceof If || !e.type.isAnonymous || iD(e)); + return t.children.some((e) => e instanceof $f || !e.type.isAnonymous || iD(e)); } -function W4e(t) { +function G4e(t) { var e; let { buffer: r, nodeSet: n, maxBufferLength: i = HJ, reused: s = [], minRepeatType: a = n.types.length } = t, o = Array.isArray(r) ? new nD(r, r.length) : r, l = n.types, u = 0, h = 0; function f(S, C, T, A, E, R) { @@ -10926,7 +10926,7 @@ function W4e(t) { let B = new Uint16Array(I.size - I.skip), U = o.pos - I.size, Q = B.length; for (; o.pos > U; ) Q = y(I.start, B, Q); - D = new If(B, $ - I.start, n), F = I.start - S; + D = new $f(B, $ - I.start, n), F = I.start - S; } else { let B = o.pos - k; o.next(); @@ -10957,7 +10957,7 @@ function W4e(t) { let L = new Uint16Array(R * 4), $ = E[E.length - 2]; for (let k = E.length - 3, P = 0; k >= 0; k -= 3) L[P++] = E[k], L[P++] = E[k + 1] - $, L[P++] = E[k + 2] - $, L[P++] = P; - T.push(new If(L, E[2] - $, n)), A.push($ - S); + T.push(new $f(L, E[2] - $, n)), A.push($ - S); } } function p(S, C) { @@ -10966,7 +10966,7 @@ function W4e(t) { if (_ >= 0 && (L = T[_]) instanceof nn) { if (!_ && L.type == S && L.length == E) return L; - ($ = L.prop(yr.lookAhead)) && (R = A[_] + L.length + $); + ($ = L.prop(br.lookAhead)) && (R = A[_] + L.length + $); } return m(S, T, A, E, R, C); }; @@ -10979,11 +10979,11 @@ function W4e(t) { } function m(S, C, T, A, E, R, _) { if (R) { - let L = [yr.contextHash, R]; + let L = [br.contextHash, R]; _ = _ ? [L].concat(_) : [L]; } if (E > 25) { - let L = [yr.lookAhead, E]; + let L = [br.lookAhead, E]; _ = _ ? [L].concat(_) : [L]; } return new nn(S, C, T, A, _); @@ -11037,7 +11037,7 @@ function W4e(t) { } const wz = /* @__PURE__ */ new WeakMap(); function o5(t, e) { - if (!t.isAnonymous || e instanceof If || e.type != t) + if (!t.isAnonymous || e instanceof $f || e.type != t) return 1; let r = wz.get(e); if (r == null) { @@ -11150,7 +11150,7 @@ class Ku { } class aD { startParse(e, r, n) { - return typeof e == "string" && (e = new G4e(e)), n = n ? n.length ? n.map((i) => new Jo(i.from, i.to)) : [new Jo(0, 0)] : [new Jo(0, e.length)], this.createParse(e, r || [], n); + return typeof e == "string" && (e = new X4e(e)), n = n ? n.length ? n.map((i) => new Jo(i.from, i.to)) : [new Jo(0, 0)] : [new Jo(0, e.length)], this.createParse(e, r || [], n); } parse(e, r, n) { let i = this.startParse(e, r, n); @@ -11161,7 +11161,7 @@ class aD { } } } -class G4e { +class X4e { constructor(e) { this.string = e; } @@ -11179,7 +11179,7 @@ class G4e { } } function eee(t) { - return (e, r, n, i) => new H4e(e, t, r, n, i); + return (e, r, n, i) => new Z4e(e, t, r, n, i); } class Oz { constructor(e, r, n, i, s) { @@ -11190,13 +11190,13 @@ function kz(t) { if (!t.length || t.some((e) => e.from >= e.to)) throw new RangeError("Invalid inner parse ranges given: " + JSON.stringify(t)); } -class X4e { +class H4e { constructor(e, r, n, i, s, a, o) { this.parser = e, this.predicate = r, this.mounts = n, this.index = i, this.start = s, this.target = a, this.prev = o, this.depth = 0, this.ranges = []; } } -const S8 = new yr({ perNode: !0 }); -class H4e { +const S8 = new br({ perNode: !0 }); +class Z4e { constructor(e, r, n, i, s) { this.nest = r, this.input = n, this.fragments = i, this.ranges = s, this.inner = [], this.innerDone = 0, this.baseTree = null, this.stoppedAt = null, this.baseParse = e; } @@ -11217,7 +11217,7 @@ class H4e { if (r) { this.innerDone++; let n = Object.assign(/* @__PURE__ */ Object.create(null), e.target.props); - n[yr.mounted.id] = new x2(r, e.overlay, e.parser), e.target.props = n; + n[br.mounted.id] = new x2(r, e.overlay, e.parser), e.target.props = n; } return null; } @@ -11237,7 +11237,7 @@ class H4e { this.inner[r].parse.stopAt(e); } startInner() { - let e = new K4e(this.fragments), r = null, n = null, i = new xk(new ta(this.baseTree, this.ranges[0].from, 0, null), Sn.IncludeAnonymous | Sn.IgnoreMounts); + let e = new J4e(this.fragments), r = null, n = null, i = new xk(new ta(this.baseTree, this.ranges[0].from, 0, null), Sn.IncludeAnonymous | Sn.IgnoreMounts); e: for (let s, a; ; ) { let o = !0, l; @@ -11253,13 +11253,13 @@ class H4e { } } o = !1; - } else if (n && (a = Z4e(n.ranges, i.from, i.to))) + } else if (n && (a = j4e(n.ranges, i.from, i.to))) o = a != 2; else if (!i.type.isAnonymous && (s = this.nest(i, this.input)) && (i.from < i.to || !s.overlay)) { - i.tree || j4e(i); + i.tree || K4e(i); let u = e.findMounts(i.from, s.parser); if (typeof s.overlay == "function") - r = new X4e(s.parser, s.overlay, u, this.inner.length, i.from, i.tree, r); + r = new H4e(s.parser, s.overlay, u, this.inner.length, i.from, i.tree, r); else { let h = Cz(this.ranges, s.overlay || (i.from < i.to ? [new Jo(i.from, i.to)] : [])); h.length && kz(h), (h.length || !s.overlay) && this.inner.push(new Oz(s.parser, h.length ? s.parser.startParse(this.input, Ez(u, h), h) : s.parser.startParse(""), s.overlay ? s.overlay.map((f) => new Jo(f.from - i.from, f.to - i.from)) : null, i.tree, h.length ? h[0].from : i.from)), s.overlay ? h.length && (n = { ranges: h, depth: 0, prev: n }) : o = !1; @@ -11283,7 +11283,7 @@ class H4e { } } } -function Z4e(t, e, r) { +function j4e(t, e, r) { for (let n of t) { if (n.from >= r) break; @@ -11298,7 +11298,7 @@ function Sz(t, e, r, n, i, s) { n.push(t.slice(e, r, a)), i.push(a - s); } } -function j4e(t) { +function K4e(t) { let { node: e } = t, r = [], n = e.context.buffer; do r.push(t.index), t.parent(); @@ -11340,7 +11340,7 @@ class Tz { return !1; } } -class K4e { +class J4e { constructor(e) { var r; if (this.fragments = e, this.curTo = 0, this.fragI = 0, e.length) { @@ -11369,7 +11369,7 @@ class K4e { if (this.inner) { this.inner.cursor.moveTo(e, 1); for (let s = this.inner.cursor.node; s; s = s.parent) { - let a = (n = s.tree) === null || n === void 0 ? void 0 : n.prop(yr.mounted); + let a = (n = s.tree) === null || n === void 0 ? void 0 : n.prop(br.mounted); if (a && a.parser == r) for (let o = this.fragI; o < this.fragments.length; o++) { let l = this.fragments[o]; @@ -11399,7 +11399,7 @@ function Cz(t, e) { } return n; } -function J4e(t, e, r, n) { +function e5e(t, e, r, n) { let i = 0, s = 0, a = !1, o = !1, l = -1e9, u = []; for (; ; ) { let h = i == t.length ? 1e9 : a ? t[i].to : t[i].from, f = s == e.length ? 1e9 : o ? e[s].to : e[s].from; @@ -11418,7 +11418,7 @@ function Ez(t, e) { for (let { pos: n, mount: i, frag: s } of t) { let a = n + (i.overlay ? i.overlay[0].from : 0), o = a + i.tree.length, l = Math.max(s.from, a), u = Math.min(s.to, o); if (i.overlay) { - let h = i.overlay.map((d) => new Jo(d.from + n, d.to + n)), f = J4e(e, h, l, u); + let h = i.overlay.map((d) => new Jo(d.from + n, d.to + n)), f = e5e(e, h, l, u); for (let d = 0, p = l; ; d++) { let g = d == f.length, m = g ? u : f[d].from; if (m > p && r.push(new Ku(p, m, i.tree, -a, s.from >= p || s.openStart, s.to <= m || s.openEnd)), g) @@ -11430,10 +11430,10 @@ function Ez(t, e) { } return r; } -let e5e = 0; +let t5e = 0; class Il { constructor(e, r, n) { - this.set = e, this.base = r, this.modified = n, this.id = e5e++; + this.set = e, this.base = r, this.modified = n, this.id = t5e++; } static define(e) { if (e != null && e.base) @@ -11449,21 +11449,21 @@ class Il { return (r) => r.modified.indexOf(e) > -1 ? r : wk.get(r.base || r, r.modified.concat(e).sort((n, i) => n.id - i.id)); } } -let t5e = 0; +let r5e = 0; class wk { constructor() { - this.instances = [], this.id = t5e++; + this.instances = [], this.id = r5e++; } static get(e, r) { if (!r.length) return e; - let n = r[0].instances.find((o) => o.base == e && r5e(r, o.modified)); + let n = r[0].instances.find((o) => o.base == e && n5e(r, o.modified)); if (n) return n; let i = [], s = new Il(i, e, r); for (let o of r) o.instances.push(s); - let a = n5e(r); + let a = i5e(r); for (let o of e.set) if (!o.modified.length) for (let l of a) @@ -11471,17 +11471,17 @@ class wk { return s; } } -function r5e(t, e) { +function n5e(t, e) { return t.length == e.length && t.every((r, n) => r == e[n]); } -function n5e(t) { +function i5e(t) { let e = [[]]; for (let r = 0; r < t.length; r++) for (let n = 0, i = e.length; n < i; n++) e.push(e[n].concat(t[r])); return e.sort((r, n) => n.length - r.length); } -function fd(t) { +function dd(t) { let e = /* @__PURE__ */ Object.create(null); for (let r in t) { let n = t[r]; @@ -11517,7 +11517,7 @@ function fd(t) { } return tee.add(e); } -const tee = new yr(); +const tee = new br(); class Ok { constructor(e, r, n, i) { this.tags = e, this.mode = r, this.context = n, this.next = i; @@ -11561,7 +11561,7 @@ function ree(t, e) { scope: n }; } -function i5e(t, e) { +function s5e(t, e) { let r = null; for (let n of t) { let i = n.style(e); @@ -11569,11 +11569,11 @@ function i5e(t, e) { } return r; } -function s5e(t, e, r, n = 0, i = t.length) { - let s = new a5e(n, Array.isArray(e) ? e : [e], r); +function a5e(t, e, r, n = 0, i = t.length) { + let s = new o5e(n, Array.isArray(e) ? e : [e], r); s.highlightRange(t.cursor(), n, i, "", s.highlighters), s.flush(i); } -class a5e { +class o5e { constructor(e, r, n) { this.at = e, this.highlighters = r, this.span = n, this.class = ""; } @@ -11588,10 +11588,10 @@ class a5e { if (o >= n || l <= r) return; a.isTop && (s = this.highlighters.filter((p) => !p.scope || p.scope(a))); - let u = i, h = o5e(e) || Ok.empty, f = i5e(s, h.tags); + let u = i, h = l5e(e) || Ok.empty, f = s5e(s, h.tags); if (f && (u && (u += " "), u += f, h.mode == 1 && (i += (i ? " " : "") + f)), this.startSpan(Math.max(r, o), u), h.opaque) return; - let d = e.tree && e.tree.prop(yr.mounted); + let d = e.tree && e.tree.prop(br.mounted); if (d && d.overlay) { let p = e.node.enter(d.overlay[0].from + o, 1), g = this.highlighters.filter((v) => !v.scope || v.scope(d.tree.type)), m = e.firstChild(); for (let v = 0, y = o; ; v++) { @@ -11617,28 +11617,28 @@ class a5e { } } } -function o5e(t) { +function l5e(t) { let e = t.type.prop(tee); for (; e && e.context && !t.matchContext(e.context); ) e = e.next; return e || null; } -const Rt = Il.define, bO = Rt(), Zh = Rt(), _z = Rt(Zh), Az = Rt(Zh), jh = Rt(), xO = Rt(jh), A_ = Rt(jh), Ec = Rt(), _d = Rt(Ec), Oc = Rt(), kc = Rt(), T8 = Rt(), yv = Rt(T8), wO = Rt(), Se = { +const Rt = Il.define, bO = Rt(), jh = Rt(), _z = Rt(jh), Az = Rt(jh), Kh = Rt(), xO = Rt(Kh), A_ = Rt(Kh), Ec = Rt(), _d = Rt(Ec), Oc = Rt(), kc = Rt(), T8 = Rt(), yv = Rt(T8), wO = Rt(), Se = { comment: bO, lineComment: Rt(bO), blockComment: Rt(bO), docComment: Rt(bO), - name: Zh, - variableName: Rt(Zh), + name: jh, + variableName: Rt(jh), typeName: _z, tagName: Rt(_z), propertyName: Az, attributeName: Rt(Az), - className: Rt(Zh), - labelName: Rt(Zh), - namespace: Rt(Zh), - macroName: Rt(Zh), - literal: jh, + className: Rt(jh), + labelName: Rt(jh), + namespace: Rt(jh), + macroName: Rt(jh), + literal: Kh, string: xO, docString: Rt(xO), character: Rt(xO), @@ -11646,11 +11646,11 @@ const Rt = Il.define, bO = Rt(), Zh = Rt(), _z = Rt(Zh), Az = Rt(Zh), jh = Rt(), number: A_, integer: Rt(A_), float: Rt(A_), - bool: Rt(jh), - regexp: Rt(jh), - escape: Rt(jh), - color: Rt(jh), - url: Rt(jh), + bool: Rt(Kh), + regexp: Rt(Kh), + escape: Rt(Kh), + color: Rt(Kh), + url: Rt(Kh), keyword: Oc, self: Rt(Oc), null: Rt(Oc), @@ -11742,19 +11742,19 @@ ree([ { tag: Se.punctuation, class: "tok-punctuation" } ]); var L_; -const o0 = /* @__PURE__ */ new yr(); +const o0 = /* @__PURE__ */ new br(); function oD(t) { return $t.define({ combine: t ? (e) => e.concat(t) : void 0 }); } -const lD = /* @__PURE__ */ new yr(); +const lD = /* @__PURE__ */ new br(); class el { constructor(e, r, n = [], i = "") { this.data = e, this.name = i, Tr.prototype.hasOwnProperty("tree") || Object.defineProperty(Tr.prototype, "tree", { get() { return Cn(this); } }), this.parser = r, this.extension = [ - Bf.of(this), + Ff.of(this), Tr.languageData.of((s, a, o) => { let l = Lz(s, a, o), u = l.type.prop(o0); if (!u) @@ -11776,7 +11776,7 @@ class el { return Lz(e, r, n).type.prop(o0) == this.data; } findRegions(e) { - let r = e.facet(Bf); + let r = e.facet(Ff); if ((r == null ? void 0 : r.data) == this.data) return [{ from: 0, to: e.doc.length }]; if (!r || !r.allowsNesting) @@ -11786,7 +11786,7 @@ class el { n.push({ from: a, to: a + s.length }); return; } - let o = s.prop(yr.mounted); + let o = s.prop(br.mounted); if (o) { if (o.tree.prop(o0) == this.data) { if (o.overlay) @@ -11814,24 +11814,24 @@ class el { } el.setState = /* @__PURE__ */ or.define(); function Lz(t, e, r) { - let n = t.facet(Bf), i = Cn(t).topNode; + let n = t.facet(Ff), i = Cn(t).topNode; if (!n || n.allowsNesting) for (let s = i; s; s = s.enter(e, r, Sn.ExcludeBuffers)) s.type.isTop && (i = s); return i; } -class $f extends el { +class Bf extends el { constructor(e, r, n) { super(e, r, [], n), this.parser = r; } static define(e) { let r = oD(e.languageData); - return new $f(r, e.parser.configure({ + return new Bf(r, e.parser.configure({ props: [o0.add((n) => n.isTop ? r : void 0)] }), e.name); } configure(e, r) { - return new $f(this.data, this.parser.configure(e), r || this.name); + return new Bf(this.data, this.parser.configure(e), r || this.name); } get allowsNesting() { return this.parser.hasWrappers(); @@ -11841,7 +11841,7 @@ function Cn(t) { let e = t.field(el.state, !1); return e ? e.tree : nn.empty; } -class l5e { +class c5e { constructor(e) { this.doc = e, this.cursorPos = 0, this.string = "", this.cursor = e.iter(); } @@ -11871,7 +11871,7 @@ class O2 { return new O2(e, r, [], nn.empty, 0, n, [], null); } startParse() { - return this.parser.startParse(new l5e(this.state.doc), this.fragments); + return this.parser.startParse(new c5e(this.state.doc), this.fragments); } work(e, r) { return r != null && r >= this.state.doc.length && (r = void 0), this.tree != nn.empty && this.isDone(r != null ? r : this.state.doc.length) ? (this.takeTree(), !0) : this.withContext(() => { @@ -11989,7 +11989,7 @@ class pm { return r.work(20, n) || r.takeTree(), new pm(r); } static init(e) { - let r = Math.min(3e3, e.doc.length), n = O2.create(e.facet(Bf).parser, e, { from: 0, to: r }); + let r = Math.min(3e3, e.doc.length), n = O2.create(e.facet(Ff).parser, e, { from: 0, to: r }); return n.work(20, r) || n.takeTree(), new pm(n); } } @@ -11999,7 +11999,7 @@ el.state = /* @__PURE__ */ Xn.define({ for (let r of e.effects) if (r.is(el.setState)) return r.value; - return e.startState.facet(Bf) != e.state.facet(Bf) ? pm.init(e.state) : t.apply(e); + return e.startState.facet(Ff) != e.state.facet(Ff) ? pm.init(e.state) : t.apply(e); } }); let nee = (t) => { @@ -12012,7 +12012,7 @@ typeof requestIdleCallback < "u" && (nee = (t) => { }, 100); return () => e < 0 ? clearTimeout(r) : cancelIdleCallback(e); }); -const R_ = typeof navigator < "u" && ((L_ = navigator.scheduling) === null || L_ === void 0 ? void 0 : L_.isInputPending) ? () => navigator.scheduling.isInputPending() : null, c5e = /* @__PURE__ */ hn.fromClass(class { +const R_ = typeof navigator < "u" && ((L_ = navigator.scheduling) === null || L_ === void 0 ? void 0 : L_.isInputPending) ? () => navigator.scheduling.isInputPending() : null, u5e = /* @__PURE__ */ hn.fromClass(class { constructor(e) { this.view = e, this.working = null, this.workScheduled = 0, this.chunkEnd = -1, this.chunkBudget = -1, this.work = this.work.bind(this), this.scheduleWork(); } @@ -12050,13 +12050,13 @@ const R_ = typeof navigator < "u" && ((L_ = navigator.scheduling) === null || L_ eventHandlers: { focus() { this.scheduleWork(); } } -}), Bf = /* @__PURE__ */ $t.define({ +}), Ff = /* @__PURE__ */ $t.define({ combine(t) { return t.length ? t[0] : null; }, enables: (t) => [ el.state, - c5e, + u5e, kt.contentAttributes.compute([t], (e) => { let r = e.facet(t); return r && r.name ? { "data-language": r.name } : {}; @@ -12113,7 +12113,7 @@ class kk { return null; } } -const u5e = /* @__PURE__ */ $t.define(), Fx = /* @__PURE__ */ $t.define({ +const h5e = /* @__PURE__ */ $t.define(), Fx = /* @__PURE__ */ $t.define({ combine: (t) => { if (!t.length) return " "; @@ -12140,13 +12140,13 @@ function k2(t, e) { } function cD(t, e) { t instanceof Tr && (t = new FT(t)); - for (let n of t.state.facet(u5e)) { + for (let n of t.state.facet(h5e)) { let i = n(t, e); if (i !== void 0) return i; } let r = Cn(t.state); - return r.length >= e ? h5e(t, r, e) : null; + return r.length >= e ? f5e(t, r, e) : null; } class FT { constructor(e, r = {}) { @@ -12182,8 +12182,8 @@ class FT { return this.options.simulateBreak || null; } } -const x1 = /* @__PURE__ */ new yr(); -function h5e(t, e, r) { +const x1 = /* @__PURE__ */ new br(); +function f5e(t, e, r) { let n = e.resolveStack(r), i = n.node.enterUnfinishedNodesBefore(r); if (i != n.node) { let s = []; @@ -12196,27 +12196,27 @@ function h5e(t, e, r) { } function iee(t, e, r) { for (let n = t; n; n = n.next) { - let i = d5e(n.node); + let i = p5e(n.node); if (i) return i(uD.create(e, r, n)); } return 0; } -function f5e(t) { +function d5e(t) { return t.pos == t.options.simulateBreak && t.options.simulateDoubleBreak; } -function d5e(t) { +function p5e(t) { let e = t.type.prop(x1); if (e) return e; let r = t.firstChild, n; - if (r && (n = r.type.prop(yr.closedBy))) { + if (r && (n = r.type.prop(br.closedBy))) { let i = t.lastChild, s = i && n.indexOf(i.name) > -1; - return (a) => see(a, !0, 1, void 0, s && !f5e(a) ? i.from : void 0); + return (a) => see(a, !0, 1, void 0, s && !d5e(a) ? i.from : void 0); } - return t.parent == null ? p5e : null; + return t.parent == null ? g5e : null; } -function p5e() { +function g5e() { return 0; } class uD extends FT { @@ -12241,7 +12241,7 @@ class uD extends FT { let n = e.resolve(r.from); for (; n.parent && n.parent.from == n.from; ) n = n.parent; - if (g5e(n, e)) + if (m5e(n, e)) break; r = this.state.doc.lineAt(n.from); } @@ -12251,13 +12251,13 @@ class uD extends FT { return iee(this.context.next, this.base, this.pos); } } -function g5e(t, e) { +function m5e(t, e) { for (let r = e; r; r = r.parent) if (t == r) return !0; return !1; } -function m5e(t) { +function v5e(t) { let e = t.node, r = e.childAfter(e.from), n = e.lastChild; if (!r) return null; @@ -12275,18 +12275,18 @@ function C8({ closing: t, align: e = !0, units: r = 1 }) { return (n) => see(n, e, r, t); } function see(t, e, r, n, i) { - let s = t.textAfter, a = s.match(/^\s*/)[0].length, o = n && s.slice(a, a + n.length) == n || i == t.pos + a, l = e ? m5e(t) : null; + let s = t.textAfter, a = s.match(/^\s*/)[0].length, o = n && s.slice(a, a + n.length) == n || i == t.pos + a, l = e ? v5e(t) : null; return l ? o ? t.column(l.from) : t.column(l.to) : t.baseIndent + (o ? 0 : t.unit * r); } -const v5e = (t) => t.baseIndent; +const y5e = (t) => t.baseIndent; function l5({ except: t, units: e = 1 } = {}) { return (r) => { let n = t && t.test(r.textAfter); return r.baseIndent + (n ? 0 : e * r.unit); }; } -const y5e = 200; -function b5e() { +const b5e = 200; +function x5e() { return Tr.transactionFilter.of((t) => { if (!t.docChanged || !t.isUserEvent("input.type") && !t.isUserEvent("input.complete")) return t; @@ -12294,7 +12294,7 @@ function b5e() { if (!e.length) return t; let r = t.newDoc, { head: n } = t.newSelection.main, i = r.lineAt(n); - if (n > i.from + y5e) + if (n > i.from + b5e) return t; let s = r.sliceString(i.from, n); if (!e.some((u) => u.test(s))) @@ -12314,12 +12314,12 @@ function b5e() { return l.length ? [t, { changes: l, sequential: !0 }] : t; }); } -const aee = /* @__PURE__ */ $t.define(), vp = /* @__PURE__ */ new yr(); +const aee = /* @__PURE__ */ $t.define(), vp = /* @__PURE__ */ new br(); function hD(t) { let e = t.firstChild, r = t.lastChild; return e && e.to < r.from ? { from: e.to, to: r.type.isError ? t.to : r.from } : null; } -function x5e(t, e, r) { +function w5e(t, e, r) { let n = Cn(t); if (n.length < r) return null; @@ -12331,14 +12331,14 @@ function x5e(t, e, r) { if (s && o.from < e) break; let l = o.type.prop(vp); - if (l && (o.to < n.length - 50 || n.length == t.doc.length || !w5e(o))) { + if (l && (o.to < n.length - 50 || n.length == t.doc.length || !O5e(o))) { let u = l(o, t); u && u.from <= r && u.from >= e && u.to > r && (s = u); } } return s; } -function w5e(t) { +function O5e(t) { let e = t.lastChild; return e && e.to == t.to && e.type.isError; } @@ -12348,7 +12348,7 @@ function S2(t, e, r) { if (i) return i; } - return x5e(t, e, r); + return w5e(t, e, r); } function oee(t, e) { let r = e.mapPos(t.from, 1), n = e.mapPos(t.to, -1); @@ -12361,15 +12361,15 @@ function lee(t) { e.some((n) => n.from <= r && n.to >= r) || e.push(t.lineBlockAt(r)); return e; } -const Ff = /* @__PURE__ */ Xn.define({ +const zf = /* @__PURE__ */ Xn.define({ create() { return It.none; }, update(t, e) { t = t.map(e.changes); for (let r of e.effects) - if (r.is(hh) && !k5e(t, r.value.from, r.value.to)) { - let { preparePlaceholder: n } = e.state.facet(fD), i = n ? It.replace({ widget: new L5e(n(e.state, r.value)) }) : Mz; + if (r.is(hh) && !S5e(t, r.value.from, r.value.to)) { + let { preparePlaceholder: n } = e.state.facet(fD), i = n ? It.replace({ widget: new R5e(n(e.state, r.value)) }) : Mz; t = t.update({ add: [i.range(r.value.from, r.value.to)] }); } else r.is(yp) && (t = t.update({ @@ -12409,34 +12409,34 @@ const Ff = /* @__PURE__ */ Xn.define({ return It.set(e, !0); } }); -function O5e(t) { - return t.field(Ff, !1) || $r.empty; +function k5e(t) { + return t.field(zf, !1) || $r.empty; } function Tk(t, e, r) { var n; let i = null; - return (n = t.field(Ff, !1)) === null || n === void 0 || n.between(e, r, (s, a) => { + return (n = t.field(zf, !1)) === null || n === void 0 || n.between(e, r, (s, a) => { (!i || i.from > s) && (i = { from: s, to: a }); }), i; } -function k5e(t, e, r) { +function S5e(t, e, r) { let n = !1; return t.between(e, e, (i, s) => { i == e && s == r && (n = !0); }), n; } function cee(t, e) { - return t.field(Ff, !1) ? e : e.concat(or.appendConfig.of(hee())); + return t.field(zf, !1) ? e : e.concat(or.appendConfig.of(hee())); } -const S5e = (t) => { +const T5e = (t) => { for (let e of lee(t)) { let r = S2(t.state, e.from, e.to); if (r) return t.dispatch({ effects: cee(t.state, [hh.of(r), uee(t, r)]) }), !0; } return !1; -}, T5e = (t) => { - if (!t.state.field(Ff, !1)) +}, C5e = (t) => { + if (!t.state.field(zf, !1)) return !1; let e = []; for (let r of lee(t)) { @@ -12449,37 +12449,37 @@ function uee(t, e, r = !0) { let n = t.state.doc.lineAt(e.from).number, i = t.state.doc.lineAt(e.to).number; return kt.announce.of(`${t.state.phrase(r ? "Folded lines" : "Unfolded lines")} ${n} ${t.state.phrase("to")} ${i}.`); } -const C5e = (t) => { +const E5e = (t) => { let { state: e } = t, r = []; for (let n = 0; n < e.doc.length; ) { let i = t.lineBlockAt(n), s = S2(e, i.from, i.to); s && r.push(hh.of(s)), n = (s ? t.lineBlockAt(s.to) : i).to + 1; } return r.length && t.dispatch({ effects: cee(t.state, r) }), !!r.length; -}, E5e = (t) => { - let e = t.state.field(Ff, !1); +}, _5e = (t) => { + let e = t.state.field(zf, !1); if (!e || !e.size) return !1; let r = []; return e.between(0, t.state.doc.length, (n, i) => { r.push(yp.of({ from: n, to: i })); }), t.dispatch({ effects: r }), !0; -}, _5e = [ - { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: S5e }, - { key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: T5e }, - { key: "Ctrl-Alt-[", run: C5e }, - { key: "Ctrl-Alt-]", run: E5e } -], A5e = { +}, A5e = [ + { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: T5e }, + { key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: C5e }, + { key: "Ctrl-Alt-[", run: E5e }, + { key: "Ctrl-Alt-]", run: _5e } +], L5e = { placeholderDOM: null, preparePlaceholder: null, placeholderText: "\u2026" }, fD = /* @__PURE__ */ $t.define({ combine(t) { - return gu(t, A5e); + return gu(t, L5e); } }); function hee(t) { - let e = [Ff, D5e]; + let e = [zf, P5e]; return t && e.push(fD.of(t)), e; } function fee(t, e) { @@ -12497,7 +12497,7 @@ const Mz = /* @__PURE__ */ It.replace({ widget: /* @__PURE__ */ new class extend return fee(t, null); } }() }); -class L5e extends uo { +class R5e extends uo { constructor(e) { super(), this.value = e; } @@ -12508,7 +12508,7 @@ class L5e extends uo { return fee(e, this.value); } } -const R5e = { +const M5e = { openText: "\u2304", closedText: "\u203A", markerDOM: null, @@ -12529,13 +12529,13 @@ class M_ extends ul { return r.textContent = this.open ? this.config.openText : this.config.closedText, r.title = e.state.phrase(this.open ? "Fold line" : "Unfold line"), r; } } -function M5e(t = {}) { - let e = Object.assign(Object.assign({}, R5e), t), r = new M_(e, !0), n = new M_(e, !1), i = hn.fromClass(class { +function D5e(t = {}) { + let e = Object.assign(Object.assign({}, M5e), t), r = new M_(e, !0), n = new M_(e, !1), i = hn.fromClass(class { constructor(a) { this.from = a.viewport.from, this.markers = this.buildMarkers(a); } update(a) { - (a.docChanged || a.viewportChanged || a.startState.facet(Bf) != a.state.facet(Bf) || a.startState.field(Ff, !1) != a.state.field(Ff, !1) || Cn(a.startState) != Cn(a.state) || e.foldingChanged(a)) && (this.markers = this.buildMarkers(a.view)); + (a.docChanged || a.viewportChanged || a.startState.facet(Ff) != a.state.facet(Ff) || a.startState.field(zf, !1) != a.state.field(zf, !1) || Cn(a.startState) != Cn(a.state) || e.foldingChanged(a)) && (this.markers = this.buildMarkers(a.view)); } buildMarkers(a) { let o = new ls(); @@ -12570,7 +12570,7 @@ function M5e(t = {}) { hee() ]; } -const D5e = /* @__PURE__ */ kt.baseTheme({ +const P5e = /* @__PURE__ */ kt.baseTheme({ ".cm-foldPlaceholder": { backgroundColor: "#eee", border: "1px solid #ddd", @@ -12615,10 +12615,10 @@ function D_(t) { return e.length ? e : t.facet(dee); } function pee(t, e) { - let r = [N5e], n; + let r = [I5e], n; return t instanceof zT && (t.module && r.push(kt.styleModule.of(t.module)), n = t.themeType), e != null && e.fallback ? r.push(dee.of(t)) : n ? r.push(E8.computeN([kt.darkTheme], (i) => i.facet(kt.darkTheme) == (n == "dark") ? [t] : [])) : r.push(E8.of(t)), r; } -class P5e { +class N5e { constructor(e) { this.markCache = /* @__PURE__ */ Object.create(null), this.tree = Cn(e.state), this.decorations = this.buildDeco(e, D_(e.state)); } @@ -12631,13 +12631,13 @@ class P5e { return It.none; let n = new ls(); for (let { from: i, to: s } of e.visibleRanges) - s5e(this.tree, r, (a, o, l) => { + a5e(this.tree, r, (a, o, l) => { n.add(a, o, this.markCache[l] || (this.markCache[l] = It.mark({ class: l }))); }, i, s); return n.finish(); } } -const N5e = /* @__PURE__ */ uc.high(/* @__PURE__ */ hn.fromClass(P5e, { +const I5e = /* @__PURE__ */ uc.high(/* @__PURE__ */ hn.fromClass(N5e, { decorations: (t) => t.decorations })), gee = /* @__PURE__ */ zT.define([ { @@ -12717,7 +12717,7 @@ const N5e = /* @__PURE__ */ uc.high(/* @__PURE__ */ hn.fromClass(P5e, { tag: Se.invalid, color: "#f00" } -]), I5e = /* @__PURE__ */ kt.baseTheme({ +]), $5e = /* @__PURE__ */ kt.baseTheme({ "&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" }, "&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" } }), mee = 1e4, vee = "()[]{}", yee = /* @__PURE__ */ $t.define({ @@ -12726,15 +12726,15 @@ const N5e = /* @__PURE__ */ uc.high(/* @__PURE__ */ hn.fromClass(P5e, { afterCursor: !0, brackets: vee, maxScanDistance: mee, - renderMatch: F5e + renderMatch: z5e }); } -}), $5e = /* @__PURE__ */ It.mark({ class: "cm-matchingBracket" }), B5e = /* @__PURE__ */ It.mark({ class: "cm-nonmatchingBracket" }); -function F5e(t) { - let e = [], r = t.matched ? $5e : B5e; +}), B5e = /* @__PURE__ */ It.mark({ class: "cm-matchingBracket" }), F5e = /* @__PURE__ */ It.mark({ class: "cm-nonmatchingBracket" }); +function z5e(t) { + let e = [], r = t.matched ? B5e : F5e; return e.push(r.range(t.start.from, t.start.to)), t.end && e.push(r.range(t.end.from, t.end.to)), e; } -const z5e = /* @__PURE__ */ Xn.define({ +const Q5e = /* @__PURE__ */ Xn.define({ create() { return It.none; }, @@ -12751,16 +12751,16 @@ const z5e = /* @__PURE__ */ Xn.define({ return It.set(r, !0); }, provide: (t) => kt.decorations.from(t) -}), Q5e = [ - z5e, - I5e +}), U5e = [ + Q5e, + $5e ]; -function U5e(t = {}) { - return [yee.of(t), Q5e]; +function V5e(t = {}) { + return [yee.of(t), U5e]; } -const bee = /* @__PURE__ */ new yr(); +const bee = /* @__PURE__ */ new br(); function _8(t, e, r) { - let n = t.prop(e < 0 ? yr.openedBy : yr.closedBy); + let n = t.prop(e < 0 ? br.openedBy : br.closedBy); if (n) return n; if (t.name.length == 1) { @@ -12781,12 +12781,12 @@ function zc(t, e, r, n = {}) { if (u && l.from < l.to) { let h = A8(l); if (h && (r > 0 ? e >= h.from && e < h.to : e > h.from && e <= h.to)) - return V5e(t, e, r, l, h, u, s); + return q5e(t, e, r, l, h, u, s); } } - return q5e(t, e, r, a, o.type, i, s); + return Y5e(t, e, r, a, o.type, i, s); } -function V5e(t, e, r, n, i, s, a) { +function q5e(t, e, r, n, i, s, a) { let o = n.parent, l = { from: i.from, to: i.to }, u = 0, h = o == null ? void 0 : o.cursor(); if (h && (r < 0 ? h.childBefore(n.from) : h.childAfter(n.to))) do @@ -12811,7 +12811,7 @@ function V5e(t, e, r, n, i, s, a) { while (r < 0 ? h.prevSibling() : h.nextSibling()); return { start: l, matched: !1 }; } -function q5e(t, e, r, n, i, s, a) { +function Y5e(t, e, r, n, i, s, a) { let o = r < 0 ? t.sliceDoc(e - 1, e) : t.sliceDoc(e, e + 1), l = a.indexOf(o); if (l < 0 || l % 2 == 0 != r > 0) return null; @@ -12835,7 +12835,7 @@ function q5e(t, e, r, n, i, s, a) { } return h.done ? { start: u, matched: !1 } : null; } -const Y5e = /* @__PURE__ */ Object.create(null), Dz = [Wi.none], Pz = [], Nz = /* @__PURE__ */ Object.create(null), W5e = /* @__PURE__ */ Object.create(null); +const W5e = /* @__PURE__ */ Object.create(null), Dz = [Wi.none], Pz = [], Nz = /* @__PURE__ */ Object.create(null), G5e = /* @__PURE__ */ Object.create(null); for (let [t, e] of [ ["variable", "variableName"], ["variable-2", "variableName.special"], @@ -12850,11 +12850,11 @@ for (let [t, e] of [ ["header", "heading"], ["property", "propertyName"] ]) - W5e[t] = /* @__PURE__ */ G5e(Y5e, e); + G5e[t] = /* @__PURE__ */ X5e(W5e, e); function P_(t, e) { Pz.indexOf(t) > -1 || (Pz.push(t), console.warn(e)); } -function G5e(t, e) { +function X5e(t, e) { let r = []; for (let o of e.split(" ")) { let l = []; @@ -12873,13 +12873,13 @@ function G5e(t, e) { let a = Nz[i] = Wi.define({ id: Dz.length, name: n, - props: [fd({ [n]: r })] + props: [dd({ [n]: r })] }); return Dz.push(a), a.id; } -const X5e = (t) => { +const H5e = (t) => { let { state: e } = t, r = e.doc.lineAt(e.selection.main.from), n = pD(t.state, r.from); - return n.line ? H5e(t) : n.block ? j5e(t) : !1; + return n.line ? Z5e(t) : n.block ? K5e(t) : !1; }; function dD(t, e) { return ({ state: r, dispatch: n }) => { @@ -12889,13 +12889,13 @@ function dD(t, e) { return i ? (n(r.update(i)), !0) : !1; }; } -const H5e = /* @__PURE__ */ dD(eke, 0), Z5e = /* @__PURE__ */ dD(xee, 0), j5e = /* @__PURE__ */ dD((t, e) => xee(t, e, J5e(e)), 0); +const Z5e = /* @__PURE__ */ dD(tke, 0), j5e = /* @__PURE__ */ dD(xee, 0), K5e = /* @__PURE__ */ dD((t, e) => xee(t, e, eke(e)), 0); function pD(t, e) { let r = t.languageDataAt("commentTokens", e); return r.length ? r[0] : {}; } const xv = 50; -function K5e(t, { open: e, close: r }, n, i) { +function J5e(t, { open: e, close: r }, n, i) { let s = t.sliceDoc(n - xv, n), a = t.sliceDoc(i, i + xv), o = /\s*$/.exec(s)[0].length, l = /^\s*/.exec(a)[0].length, u = s.length - o; if (s.slice(u - e.length, u) == e && a.slice(l, l + r.length) == r) return { @@ -12916,7 +12916,7 @@ function K5e(t, { open: e, close: r }, n, i) { } } : null; } -function J5e(t) { +function eke(t) { let e = []; for (let r of t.selection.ranges) { let n = t.doc.lineAt(r.from), i = r.to <= n.to ? n : t.doc.lineAt(r.to), s = e.length - 1; @@ -12928,7 +12928,7 @@ function xee(t, e, r = e.selection.ranges) { let n = r.map((s) => pD(e, s.from).block); if (!n.every((s) => s)) return null; - let i = r.map((s, a) => K5e(e, n[a], s.from, s.to)); + let i = r.map((s, a) => J5e(e, n[a], s.from, s.to)); if (t != 2 && !i.every((s) => s)) return { changes: e.changes(r.map((s, a) => i[a] ? [] : [{ from: s.from, insert: n[a].open + " " }, { from: s.to, insert: " " + n[a].close }])) }; if (t != 1 && i.some((s) => s)) { @@ -12942,7 +12942,7 @@ function xee(t, e, r = e.selection.ranges) { } return null; } -function eke(t, e, r = e.selection.ranges) { +function tke(t, e, r = e.selection.ranges) { let n = [], i = -1; for (let { from: s, to: a } of r) { let o = n.length, l = 1e9, u = pD(e, s).line; @@ -12979,7 +12979,7 @@ function eke(t, e, r = e.selection.ranges) { } return null; } -const L8 = /* @__PURE__ */ co.define(), tke = /* @__PURE__ */ co.define(), rke = /* @__PURE__ */ $t.define(), wee = /* @__PURE__ */ $t.define({ +const L8 = /* @__PURE__ */ co.define(), rke = /* @__PURE__ */ co.define(), nke = /* @__PURE__ */ $t.define(), wee = /* @__PURE__ */ $t.define({ combine(t) { return gu(t, { minDepth: 100, @@ -13001,7 +13001,7 @@ const L8 = /* @__PURE__ */ co.define(), tke = /* @__PURE__ */ co.define(), rke = let l = to.fromTransaction(e, n.selection), u = n.side, h = u == 0 ? t.undone : t.done; return l ? h = Ek(h, h.length, r.minDepth, l) : h = Tee(h, e.startState.selection), new Qc(u == 0 ? n.rest : h, u == 0 ? h : n.rest); } - let i = e.annotation(tke); + let i = e.annotation(rke); if ((i == "full" || i == "before") && (t = t.isolate()), e.annotation(Ei.addToHistory) === !1) return e.changes.empty ? t : t.addMapping(e.changes.desc); let s = to.fromTransaction(e), a = e.annotation(Ei.time), o = e.annotation(Ei.userEvent); @@ -13037,7 +13037,7 @@ function QT(t, e) { return s ? (n(s), !0) : !1; }; } -const kee = /* @__PURE__ */ QT(0, !1), Ck = /* @__PURE__ */ QT(1, !1), nke = /* @__PURE__ */ QT(0, !0), ike = /* @__PURE__ */ QT(1, !0); +const kee = /* @__PURE__ */ QT(0, !1), Ck = /* @__PURE__ */ QT(1, !1), ike = /* @__PURE__ */ QT(0, !0), ske = /* @__PURE__ */ QT(1, !0); class to { constructor(e, r, n, i, s) { this.changes = e, this.effects = r, this.mapped = n, this.startSelection = i, this.selectionsAfter = s; @@ -13059,7 +13059,7 @@ class to { } static fromTransaction(e, r) { let n = tl; - for (let i of e.startState.facet(rke)) { + for (let i of e.startState.facet(nke)) { let s = i(e); s.length && (n = n.concat(s)); } @@ -13073,7 +13073,7 @@ function Ek(t, e, r, n) { let i = e + 1 > r + 20 ? e - r - 1 : 0, s = t.slice(i, e); return s.push(n), s; } -function ske(t, e) { +function ake(t, e) { let r = [], n = !1; return t.iterChangedRanges((i, s) => r.push(i, s)), e.iterChangedRanges((i, s, a, o) => { for (let l = 0; l < r.length; ) { @@ -13082,21 +13082,21 @@ function ske(t, e) { } }), n; } -function ake(t, e) { +function oke(t, e) { return t.ranges.length == e.ranges.length && t.ranges.filter((r, n) => r.empty != e.ranges[n].empty).length === 0; } function See(t, e) { return t.length ? e.length ? t.concat(e) : t : e; } -const tl = [], oke = 200; +const tl = [], lke = 200; function Tee(t, e) { if (t.length) { - let r = t[t.length - 1], n = r.selectionsAfter.slice(Math.max(0, r.selectionsAfter.length - oke)); + let r = t[t.length - 1], n = r.selectionsAfter.slice(Math.max(0, r.selectionsAfter.length - lke)); return n.length && n[n.length - 1].eq(e) ? t : (n.push(e), Ek(t, t.length - 1, 1e9, r.setSelAfter(n))); } else return [to.selection([e])]; } -function lke(t) { +function cke(t) { let e = t[t.length - 1], r = t.slice(); return r[t.length - 1] = e.setSelAfter(e.selectionsAfter.slice(0, e.selectionsAfter.length - 1)), r; } @@ -13105,7 +13105,7 @@ function N_(t, e) { return t; let r = t.length, n = tl; for (; r; ) { - let i = cke(t[r - 1], e, n); + let i = uke(t[r - 1], e, n); if (i.changes && !i.changes.empty || i.effects.length) { let s = t.slice(0, r); return s[r - 1] = i, s; @@ -13114,14 +13114,14 @@ function N_(t, e) { } return n.length ? [to.selection(n)] : tl; } -function cke(t, e, r) { +function uke(t, e, r) { let n = See(t.selectionsAfter.length ? t.selectionsAfter.map((o) => o.map(e)) : tl, r); if (!t.changes) return to.selection(n); let i = t.changes.map(e), s = e.mapDesc(t.changes, !0), a = t.mapped ? t.mapped.composeDesc(s) : s; return new to(i, or.mapEffects(t.effects, e), a, t.startSelection.map(s), n); } -const uke = /^(input\.type|delete)($|\.)/; +const hke = /^(input\.type|delete)($|\.)/; class Qc { constructor(e, r, n = 0, i = void 0) { this.done = e, this.undone = r, this.prevTime = n, this.prevUserEvent = i; @@ -13131,11 +13131,11 @@ class Qc { } addChanges(e, r, n, i, s) { let a = this.done, o = a[a.length - 1]; - return o && o.changes && !o.changes.empty && e.changes && (!n || uke.test(n)) && (!o.selectionsAfter.length && r - this.prevTime < i.newGroupDelay && i.joinToEvent(s, ske(o.changes, e.changes)) || n == "input.type.compose") ? a = Ek(a, a.length - 1, i.minDepth, new to(e.changes.compose(o.changes), See(e.effects, o.effects), o.mapped, o.startSelection, tl)) : a = Ek(a, a.length, i.minDepth, e), new Qc(a, tl, r, n); + return o && o.changes && !o.changes.empty && e.changes && (!n || hke.test(n)) && (!o.selectionsAfter.length && r - this.prevTime < i.newGroupDelay && i.joinToEvent(s, ake(o.changes, e.changes)) || n == "input.type.compose") ? a = Ek(a, a.length - 1, i.minDepth, new to(e.changes.compose(o.changes), See(e.effects, o.effects), o.mapped, o.startSelection, tl)) : a = Ek(a, a.length, i.minDepth, e), new Qc(a, tl, r, n); } addSelection(e, r, n, i) { let s = this.done.length ? this.done[this.done.length - 1].selectionsAfter : tl; - return s.length > 0 && r - this.prevTime < i && n == this.prevUserEvent && n && /^select($|\.)/.test(n) && ake(s[s.length - 1], e) ? this : new Qc(Tee(this.done, e), this.undone, r, n); + return s.length > 0 && r - this.prevTime < i && n == this.prevUserEvent && n && /^select($|\.)/.test(n) && oke(s[s.length - 1], e) ? this : new Qc(Tee(this.done, e), this.undone, r, n); } addMapping(e) { return new Qc(N_(this.done, e), N_(this.undone, e), this.prevTime, this.prevUserEvent); @@ -13148,7 +13148,7 @@ class Qc { if (n && s.selectionsAfter.length) return r.update({ selection: s.selectionsAfter[s.selectionsAfter.length - 1], - annotations: L8.of({ side: e, rest: lke(i), selection: a }), + annotations: L8.of({ side: e, rest: cke(i), selection: a }), userEvent: e == 0 ? "select.undo" : "select.redo", scrollIntoView: !0 }); @@ -13172,8 +13172,8 @@ const Cee = [ { key: "Mod-z", run: kee, preventDefault: !0 }, { key: "Mod-y", mac: "Mod-Shift-z", run: Ck, preventDefault: !0 }, { linux: "Ctrl-Shift-z", run: Ck, preventDefault: !0 }, - { key: "Mod-u", run: nke, preventDefault: !0 }, - { key: "Alt-u", mac: "Mod-Shift-u", run: ike, preventDefault: !0 } + { key: "Mod-u", run: ike, preventDefault: !0 }, + { key: "Alt-u", mac: "Mod-Shift-u", run: ske, preventDefault: !0 } ]; function w1(t, e) { return je.create(t.ranges.map(e), t.mainIndex); @@ -13198,25 +13198,25 @@ const _ee = (t) => Eee(t, !aa(t)), Aee = (t) => Eee(t, aa(t)); function Lee(t, e) { return hc(t, (r) => r.empty ? t.moveByGroup(r, e) : UT(r, e)); } -const hke = (t) => Lee(t, !aa(t)), fke = (t) => Lee(t, aa(t)); -function dke(t, e, r) { +const fke = (t) => Lee(t, !aa(t)), dke = (t) => Lee(t, aa(t)); +function pke(t, e, r) { if (e.type.prop(r)) return !0; let n = e.to - e.from; return n && (n > 2 || /[^\s,.;:]/.test(t.sliceDoc(e.from, e.to))) || e.firstChild; } function VT(t, e, r) { - let n = Cn(t).resolveInner(e.head), i = r ? yr.closedBy : yr.openedBy; + let n = Cn(t).resolveInner(e.head), i = r ? br.closedBy : br.openedBy; for (let l = e.head; ; ) { let u = r ? n.childAfter(l) : n.childBefore(l); if (!u) break; - dke(t, u, i) ? n = u : l = r ? u.to : u.from; + pke(t, u, i) ? n = u : l = r ? u.to : u.from; } let s = n.type.prop(i), a, o; return s && (a = r ? zc(t, n.from, 1) : zc(t, n.to, -1)) && a.matched ? o = r ? a.end.to : a.end.from : o = r ? n.to : n.from, je.cursor(o, r ? -1 : 1); } -const pke = (t) => hc(t, (e) => VT(t.state, e, !aa(t))), gke = (t) => hc(t, (e) => VT(t.state, e, aa(t))); +const gke = (t) => hc(t, (e) => VT(t.state, e, !aa(t))), mke = (t) => hc(t, (e) => VT(t.state, e, aa(t))); function Ree(t, e) { return hc(t, (r) => { if (!r.empty) @@ -13255,7 +13255,7 @@ function Nee(t, e) { return t.dispatch(mu(n, i), { effects: s }), !0; } const Iz = (t) => Nee(t, !1), R8 = (t) => Nee(t, !0); -function dd(t, e, r) { +function pd(t, e, r) { let n = t.lineBlockAt(e.head), i = t.moveToLineBoundary(e, r); if (i.head == e.head && i.head != (r ? n.to : n.from) && (i = t.moveToLineBoundary(e, r, !1)), !r && i.head == n.from && n.length) { let s = /^\s*/.exec(t.state.sliceDoc(n.from, Math.min(n.from + 100, n.to)))[0].length; @@ -13263,8 +13263,8 @@ function dd(t, e, r) { } return i; } -const mke = (t) => hc(t, (e) => dd(t, e, !0)), vke = (t) => hc(t, (e) => dd(t, e, !1)), yke = (t) => hc(t, (e) => dd(t, e, !aa(t))), bke = (t) => hc(t, (e) => dd(t, e, aa(t))), xke = (t) => hc(t, (e) => je.cursor(t.lineBlockAt(e.head).from, 1)), wke = (t) => hc(t, (e) => je.cursor(t.lineBlockAt(e.head).to, -1)); -function Oke(t, e, r) { +const vke = (t) => hc(t, (e) => pd(t, e, !0)), yke = (t) => hc(t, (e) => pd(t, e, !1)), bke = (t) => hc(t, (e) => pd(t, e, !aa(t))), xke = (t) => hc(t, (e) => pd(t, e, aa(t))), wke = (t) => hc(t, (e) => je.cursor(t.lineBlockAt(e.head).from, 1)), Oke = (t) => hc(t, (e) => je.cursor(t.lineBlockAt(e.head).to, -1)); +function kke(t, e, r) { let n = !1, i = w1(t.selection, (s) => { let a = zc(t, s.head, -1) || zc(t, s.head, 1) || s.head > 0 && zc(t, s.head - 1, 1) || s.head < t.doc.length && zc(t, s.head + 1, -1); if (!a || !a.end) @@ -13275,7 +13275,7 @@ function Oke(t, e, r) { }); return n ? (e(mu(t, i)), !0) : !1; } -const kke = ({ state: t, dispatch: e }) => Oke(t, e, !1); +const Ske = ({ state: t, dispatch: e }) => kke(t, e, !1); function kl(t, e) { let r = w1(t.state.selection, (n) => { let i = e(n); @@ -13290,7 +13290,7 @@ const $ee = (t) => Iee(t, !aa(t)), Bee = (t) => Iee(t, aa(t)); function Fee(t, e) { return kl(t, (r) => t.moveByGroup(r, e)); } -const Ske = (t) => Fee(t, !aa(t)), Tke = (t) => Fee(t, aa(t)), Cke = (t) => kl(t, (e) => VT(t.state, e, !aa(t))), Eke = (t) => kl(t, (e) => VT(t.state, e, aa(t))); +const Tke = (t) => Fee(t, !aa(t)), Cke = (t) => Fee(t, aa(t)), Eke = (t) => kl(t, (e) => VT(t.state, e, !aa(t))), _ke = (t) => kl(t, (e) => VT(t.state, e, aa(t))); function zee(t, e) { return kl(t, (r) => t.moveVertically(r, e)); } @@ -13298,10 +13298,10 @@ const Qee = (t) => zee(t, !1), Uee = (t) => zee(t, !0); function Vee(t, e) { return kl(t, (r) => t.moveVertically(r, e, Pee(t).height)); } -const $z = (t) => Vee(t, !1), Bz = (t) => Vee(t, !0), _ke = (t) => kl(t, (e) => dd(t, e, !0)), Ake = (t) => kl(t, (e) => dd(t, e, !1)), Lke = (t) => kl(t, (e) => dd(t, e, !aa(t))), Rke = (t) => kl(t, (e) => dd(t, e, aa(t))), Mke = (t) => kl(t, (e) => je.cursor(t.lineBlockAt(e.head).from)), Dke = (t) => kl(t, (e) => je.cursor(t.lineBlockAt(e.head).to)), Fz = ({ state: t, dispatch: e }) => (e(mu(t, { anchor: 0 })), !0), zz = ({ state: t, dispatch: e }) => (e(mu(t, { anchor: t.doc.length })), !0), Qz = ({ state: t, dispatch: e }) => (e(mu(t, { anchor: t.selection.main.anchor, head: 0 })), !0), Uz = ({ state: t, dispatch: e }) => (e(mu(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), Pke = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), Nke = ({ state: t, dispatch: e }) => { +const $z = (t) => Vee(t, !1), Bz = (t) => Vee(t, !0), Ake = (t) => kl(t, (e) => pd(t, e, !0)), Lke = (t) => kl(t, (e) => pd(t, e, !1)), Rke = (t) => kl(t, (e) => pd(t, e, !aa(t))), Mke = (t) => kl(t, (e) => pd(t, e, aa(t))), Dke = (t) => kl(t, (e) => je.cursor(t.lineBlockAt(e.head).from)), Pke = (t) => kl(t, (e) => je.cursor(t.lineBlockAt(e.head).to)), Fz = ({ state: t, dispatch: e }) => (e(mu(t, { anchor: 0 })), !0), zz = ({ state: t, dispatch: e }) => (e(mu(t, { anchor: t.doc.length })), !0), Qz = ({ state: t, dispatch: e }) => (e(mu(t, { anchor: t.selection.main.anchor, head: 0 })), !0), Uz = ({ state: t, dispatch: e }) => (e(mu(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), Nke = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), Ike = ({ state: t, dispatch: e }) => { let r = qT(t).map(({ from: n, to: i }) => je.range(n, Math.min(i + 1, t.doc.length))); return e(t.update({ selection: je.create(r), userEvent: "select" })), !0; -}, Ike = ({ state: t, dispatch: e }) => { +}, $ke = ({ state: t, dispatch: e }) => { let r = w1(t.selection, (n) => { var i; let s = Cn(t).resolveStack(n.from, 1); @@ -13313,7 +13313,7 @@ const $z = (t) => Vee(t, !1), Bz = (t) => Vee(t, !0), _ke = (t) => kl(t, (e) => return n; }); return e(mu(t, r)), !0; -}, $ke = ({ state: t, dispatch: e }) => { +}, Bke = ({ state: t, dispatch: e }) => { let r = t.selection, n = null; return r.ranges.length > 1 ? n = je.create([r.main]) : r.main.empty || (n = je.create([je.cursor(r.main.head)])), n ? (e(mu(t, n)), !0) : !1; }; @@ -13368,16 +13368,16 @@ const qee = (t, e) => zx(t, (r) => { (u != " " || n != r.head) && (o = h), n = l; } return n; -}), Gee = (t) => Wee(t, !1), Bke = (t) => Wee(t, !0), Fke = (t) => zx(t, (e) => { +}), Gee = (t) => Wee(t, !1), Fke = (t) => Wee(t, !0), zke = (t) => zx(t, (e) => { let r = t.lineBlockAt(e.head).to; return e.head < r ? r : Math.min(t.state.doc.length, e.head + 1); -}), zke = (t) => zx(t, (e) => { +}), Qke = (t) => zx(t, (e) => { let r = t.moveToLineBoundary(e, !1).head; return e.head > r ? r : Math.max(0, e.head - 1); -}), Qke = (t) => zx(t, (e) => { +}), Uke = (t) => zx(t, (e) => { let r = t.moveToLineBoundary(e, !0).head; return e.head < r ? r : Math.min(t.state.doc.length, e.head + 1); -}), Uke = ({ state: t, dispatch: e }) => { +}), Vke = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; let r = t.changeByRange((n) => ({ @@ -13385,7 +13385,7 @@ const qee = (t, e) => zx(t, (r) => { range: je.cursor(n.from) })); return e(t.update(r, { scrollIntoView: !0, userEvent: "input" })), !0; -}, Vke = ({ state: t, dispatch: e }) => { +}, qke = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; let r = t.changeByRange((n) => { @@ -13437,7 +13437,7 @@ function Xee(t, e, r) { userEvent: "move.line" })), !0) : !1; } -const qke = ({ state: t, dispatch: e }) => Xee(t, e, !1), Yke = ({ state: t, dispatch: e }) => Xee(t, e, !0); +const Yke = ({ state: t, dispatch: e }) => Xee(t, e, !1), Wke = ({ state: t, dispatch: e }) => Xee(t, e, !0); function Hee(t, e, r) { if (t.readOnly) return !1; @@ -13446,25 +13446,25 @@ function Hee(t, e, r) { r ? n.push({ from: i.from, insert: t.doc.slice(i.from, i.to) + t.lineBreak }) : n.push({ from: i.to, insert: t.lineBreak + t.doc.slice(i.from, i.to) }); return e(t.update({ changes: n, scrollIntoView: !0, userEvent: "input.copyline" })), !0; } -const Wke = ({ state: t, dispatch: e }) => Hee(t, e, !1), Gke = ({ state: t, dispatch: e }) => Hee(t, e, !0), Xke = (t) => { +const Gke = ({ state: t, dispatch: e }) => Hee(t, e, !1), Xke = ({ state: t, dispatch: e }) => Hee(t, e, !0), Hke = (t) => { if (t.state.readOnly) return !1; let { state: e } = t, r = e.changes(qT(e).map(({ from: i, to: s }) => (i > 0 ? i-- : s < e.doc.length && s++, { from: i, to: s }))), n = w1(e.selection, (i) => t.moveVertically(i, !0)).map(r); return t.dispatch({ changes: r, selection: n, scrollIntoView: !0, userEvent: "delete.line" }), !0; }; -function Hke(t, e) { +function Zke(t, e) { if (/\(\)|\[\]|\{\}/.test(t.sliceDoc(e - 1, e + 1))) return { from: e, to: e }; let r = Cn(t).resolveInner(e), n = r.childBefore(e), i = r.childAfter(e), s; - return n && i && n.to <= e && i.from >= e && (s = n.type.prop(yr.closedBy)) && s.indexOf(i.name) > -1 && t.doc.lineAt(n.to).from == t.doc.lineAt(i.from).from && !/\S/.test(t.sliceDoc(n.to, i.from)) ? { from: n.to, to: i.from } : null; + return n && i && n.to <= e && i.from >= e && (s = n.type.prop(br.closedBy)) && s.indexOf(i.name) > -1 && t.doc.lineAt(n.to).from == t.doc.lineAt(i.from).from && !/\S/.test(t.sliceDoc(n.to, i.from)) ? { from: n.to, to: i.from } : null; } -const Zke = /* @__PURE__ */ Zee(!1), jke = /* @__PURE__ */ Zee(!0); +const jke = /* @__PURE__ */ Zee(!1), Kke = /* @__PURE__ */ Zee(!0); function Zee(t) { return ({ state: e, dispatch: r }) => { if (e.readOnly) return !1; let n = e.changeByRange((i) => { - let { from: s, to: a } = i, o = e.doc.lineAt(s), l = !t && s == a && Hke(e, s); + let { from: s, to: a } = i, o = e.doc.lineAt(s), l = !t && s == a && Zke(e, s); t && (s = a = (a <= o.to ? o : e.doc.lineAt(a)).to); let u = new FT(e, { simulateBreak: s, simulateDoubleBreak: !!l }), h = cD(u, s); for (h == null && (h = tc(/^\s*/.exec(e.doc.lineAt(s).text)[0], e.tabSize)); a < o.to && /\s/.test(o.text[a - o.from]); ) @@ -13494,7 +13494,7 @@ function mD(t, e) { }; }); } -const Kke = ({ state: t, dispatch: e }) => { +const Jke = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; let r = /* @__PURE__ */ Object.create(null), n = new FT(t, { overrideIndentation: (s) => { @@ -13519,27 +13519,27 @@ const Kke = ({ state: t, dispatch: e }) => { for (; a < i.length && a < o.length && i.charCodeAt(a) == o.charCodeAt(a); ) a++; n.push({ from: r.from + a, to: r.from + i.length, insert: o.slice(a) }); -}), { userEvent: "delete.dedent" })), !0), Jke = [ +}), { userEvent: "delete.dedent" })), !0), e3e = [ { key: "Ctrl-b", run: _ee, shift: $ee, preventDefault: !0 }, { key: "Ctrl-f", run: Aee, shift: Bee }, { key: "Ctrl-p", run: Mee, shift: Qee }, { key: "Ctrl-n", run: Dee, shift: Uee }, - { key: "Ctrl-a", run: xke, shift: Mke }, - { key: "Ctrl-e", run: wke, shift: Dke }, + { key: "Ctrl-a", run: wke, shift: Dke }, + { key: "Ctrl-e", run: Oke, shift: Pke }, { key: "Ctrl-d", run: Yee }, { key: "Ctrl-h", run: M8 }, - { key: "Ctrl-k", run: Fke }, + { key: "Ctrl-k", run: zke }, { key: "Ctrl-Alt-h", run: Gee }, - { key: "Ctrl-o", run: Uke }, - { key: "Ctrl-t", run: Vke }, + { key: "Ctrl-o", run: Vke }, + { key: "Ctrl-t", run: qke }, { key: "Ctrl-v", run: R8 } -], e3e = /* @__PURE__ */ [ +], t3e = /* @__PURE__ */ [ { key: "ArrowLeft", run: _ee, shift: $ee, preventDefault: !0 }, - { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: hke, shift: Ske, preventDefault: !0 }, - { mac: "Cmd-ArrowLeft", run: yke, shift: Lke, preventDefault: !0 }, + { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: fke, shift: Tke, preventDefault: !0 }, + { mac: "Cmd-ArrowLeft", run: bke, shift: Rke, preventDefault: !0 }, { key: "ArrowRight", run: Aee, shift: Bee, preventDefault: !0 }, - { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: fke, shift: Tke, preventDefault: !0 }, - { mac: "Cmd-ArrowRight", run: bke, shift: Rke, preventDefault: !0 }, + { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: dke, shift: Cke, preventDefault: !0 }, + { mac: "Cmd-ArrowRight", run: xke, shift: Mke, preventDefault: !0 }, { key: "ArrowUp", run: Mee, shift: Qee, preventDefault: !0 }, { mac: "Cmd-ArrowUp", run: Fz, shift: Qz }, { mac: "Ctrl-ArrowUp", run: Iz, shift: $z }, @@ -13548,37 +13548,37 @@ const Kke = ({ state: t, dispatch: e }) => { { mac: "Ctrl-ArrowDown", run: R8, shift: Bz }, { key: "PageUp", run: Iz, shift: $z }, { key: "PageDown", run: R8, shift: Bz }, - { key: "Home", run: vke, shift: Ake, preventDefault: !0 }, + { key: "Home", run: yke, shift: Lke, preventDefault: !0 }, { key: "Mod-Home", run: Fz, shift: Qz }, - { key: "End", run: mke, shift: _ke, preventDefault: !0 }, + { key: "End", run: vke, shift: Ake, preventDefault: !0 }, { key: "Mod-End", run: zz, shift: Uz }, - { key: "Enter", run: Zke }, - { key: "Mod-a", run: Pke }, + { key: "Enter", run: jke }, + { key: "Mod-a", run: Nke }, { key: "Backspace", run: M8, shift: M8 }, { key: "Delete", run: Yee }, { key: "Mod-Backspace", mac: "Alt-Backspace", run: Gee }, - { key: "Mod-Delete", mac: "Alt-Delete", run: Bke }, - { mac: "Mod-Backspace", run: zke }, - { mac: "Mod-Delete", run: Qke } -].concat(/* @__PURE__ */ Jke.map((t) => ({ mac: t.key, run: t.run, shift: t.shift }))), Jee = /* @__PURE__ */ [ - { key: "Alt-ArrowLeft", mac: "Ctrl-ArrowLeft", run: pke, shift: Cke }, - { key: "Alt-ArrowRight", mac: "Ctrl-ArrowRight", run: gke, shift: Eke }, - { key: "Alt-ArrowUp", run: qke }, - { key: "Shift-Alt-ArrowUp", run: Wke }, - { key: "Alt-ArrowDown", run: Yke }, - { key: "Shift-Alt-ArrowDown", run: Gke }, - { key: "Escape", run: $ke }, - { key: "Mod-Enter", run: jke }, - { key: "Alt-l", mac: "Ctrl-l", run: Nke }, - { key: "Mod-i", run: Ike, preventDefault: !0 }, + { key: "Mod-Delete", mac: "Alt-Delete", run: Fke }, + { mac: "Mod-Backspace", run: Qke }, + { mac: "Mod-Delete", run: Uke } +].concat(/* @__PURE__ */ e3e.map((t) => ({ mac: t.key, run: t.run, shift: t.shift }))), Jee = /* @__PURE__ */ [ + { key: "Alt-ArrowLeft", mac: "Ctrl-ArrowLeft", run: gke, shift: Eke }, + { key: "Alt-ArrowRight", mac: "Ctrl-ArrowRight", run: mke, shift: _ke }, + { key: "Alt-ArrowUp", run: Yke }, + { key: "Shift-Alt-ArrowUp", run: Gke }, + { key: "Alt-ArrowDown", run: Wke }, + { key: "Shift-Alt-ArrowDown", run: Xke }, + { key: "Escape", run: Bke }, + { key: "Mod-Enter", run: Kke }, + { key: "Alt-l", mac: "Ctrl-l", run: Ike }, + { key: "Mod-i", run: $ke, preventDefault: !0 }, { key: "Mod-[", run: Kee }, { key: "Mod-]", run: jee }, - { key: "Mod-Alt-\\", run: Kke }, - { key: "Shift-Mod-k", run: Xke }, - { key: "Shift-Mod-\\", run: kke }, - { key: "Mod-/", run: X5e }, - { key: "Alt-A", run: Z5e } -].concat(e3e), t3e = { key: "Tab", run: jee, shift: Kee }; + { key: "Mod-Alt-\\", run: Jke }, + { key: "Shift-Mod-k", run: Hke }, + { key: "Shift-Mod-\\", run: Ske }, + { key: "Mod-/", run: H5e }, + { key: "Alt-A", run: j5e } +].concat(t3e), r3e = { key: "Tab", run: jee, shift: Kee }; function kn() { var t = arguments[0]; typeof t == "string" && (t = document.createElement(t)); @@ -13731,7 +13731,7 @@ class nte { typeof Symbol < "u" && (rte.prototype[Symbol.iterator] = nte.prototype[Symbol.iterator] = function() { return this; }); -function r3e(t) { +function n3e(t) { try { return new RegExp(t, vD), !0; } catch { @@ -13784,44 +13784,44 @@ const Ak = /* @__PURE__ */ or.define(), qz = /* @__PURE__ */ Xn.define({ return t; }, provide: (t) => b2.from(t, (e) => e ? D8 : null) -}), n3e = (t) => { +}), i3e = (t) => { let e = y2(t, D8); if (!e) { let r = [Ak.of(!0)]; - t.state.field(qz, !1) == null && r.push(or.appendConfig.of([qz, i3e])), t.dispatch({ effects: r }), e = y2(t, D8); + t.state.field(qz, !1) == null && r.push(or.appendConfig.of([qz, s3e])), t.dispatch({ effects: r }), e = y2(t, D8); } return e && e.dom.querySelector("input").select(), !0; -}, i3e = /* @__PURE__ */ kt.baseTheme({ +}, s3e = /* @__PURE__ */ kt.baseTheme({ ".cm-panel.cm-gotoLine": { padding: "2px 6px 4px", "& label": { fontSize: "80%" } } -}), s3e = { +}), a3e = { highlightWordAroundCursor: !1, minSelectionLength: 1, maxMatches: 100, wholeWords: !1 }, ite = /* @__PURE__ */ $t.define({ combine(t) { - return gu(t, s3e, { + return gu(t, a3e, { highlightWordAroundCursor: (e, r) => e || r, minSelectionLength: Math.min, maxMatches: Math.min }); } }); -function a3e(t) { - let e = [h3e, u3e]; +function o3e(t) { + let e = [f3e, h3e]; return t && e.push(ite.of(t)), e; } -const o3e = /* @__PURE__ */ It.mark({ class: "cm-selectionMatch" }), l3e = /* @__PURE__ */ It.mark({ class: "cm-selectionMatch cm-selectionMatch-main" }); +const l3e = /* @__PURE__ */ It.mark({ class: "cm-selectionMatch" }), c3e = /* @__PURE__ */ It.mark({ class: "cm-selectionMatch cm-selectionMatch-main" }); function Yz(t, e, r, n) { return (r == 0 || t(e.sliceDoc(r - 1, r)) != Fn.Word) && (n == e.doc.length || t(e.sliceDoc(n, n + 1)) != Fn.Word); } -function c3e(t, e, r, n) { +function u3e(t, e, r, n) { return t(e.sliceDoc(r, r + 1)) == Fn.Word && t(e.sliceDoc(n - 1, n)) == Fn.Word; } -const u3e = /* @__PURE__ */ hn.fromClass(class { +const h3e = /* @__PURE__ */ hn.fromClass(class { constructor(t) { this.decorations = this.getDeco(t); } @@ -13845,7 +13845,7 @@ const u3e = /* @__PURE__ */ hn.fromClass(class { if (l < e.minSelectionLength || l > 200) return It.none; if (e.wholeWords) { - if (s = r.sliceDoc(i.from, i.to), a = r.charCategorizer(i.head), !(Yz(a, r, i.from, i.to) && c3e(a, r, i.from, i.to))) + if (s = r.sliceDoc(i.from, i.to), a = r.charCategorizer(i.head), !(Yz(a, r, i.from, i.to) && u3e(a, r, i.from, i.to))) return It.none; } else if (s = r.sliceDoc(i.from, i.to).trim(), !s) return It.none; @@ -13855,7 +13855,7 @@ const u3e = /* @__PURE__ */ hn.fromClass(class { let u = new mm(r.doc, s, l.from, l.to); for (; !u.next().done; ) { let { from: h, to: f } = u.value; - if ((!a || Yz(a, r, h, f)) && (i.empty && h <= i.from && f >= i.to ? o.push(l3e.range(h, f)) : (h >= i.to || f <= i.from) && o.push(o3e.range(h, f)), o.length > e.maxMatches)) + if ((!a || Yz(a, r, h, f)) && (i.empty && h <= i.from && f >= i.to ? o.push(c3e.range(h, f)) : (h >= i.to || f <= i.from) && o.push(l3e.range(h, f)), o.length > e.maxMatches)) return It.none; } } @@ -13863,14 +13863,14 @@ const u3e = /* @__PURE__ */ hn.fromClass(class { } }, { decorations: (t) => t.decorations -}), h3e = /* @__PURE__ */ kt.baseTheme({ +}), f3e = /* @__PURE__ */ kt.baseTheme({ ".cm-selectionMatch": { backgroundColor: "#99ff7780" }, ".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" } -}), f3e = ({ state: t, dispatch: e }) => { +}), d3e = ({ state: t, dispatch: e }) => { let { selection: r } = t, n = je.create(r.ranges.map((i) => t.wordAt(i.head) || je.cursor(i.head)), r.mainIndex); return n.eq(r) ? !1 : (e(t.update({ selection: n })), !0); }; -function d3e(t, e) { +function p3e(t, e) { let { main: r, ranges: n } = t.selection, i = t.wordAt(r.head), s = i && i.from == r.from && i.to == r.to; for (let a = !1, o = new mm(t.doc, e, n[n.length - 1].to); ; ) if (o.next(), o.done) { @@ -13888,14 +13888,14 @@ function d3e(t, e) { return o.value; } } -const p3e = ({ state: t, dispatch: e }) => { +const g3e = ({ state: t, dispatch: e }) => { let { ranges: r } = t.selection; if (r.some((s) => s.from === s.to)) - return f3e({ state: t, dispatch: e }); + return d3e({ state: t, dispatch: e }); let n = t.sliceDoc(r[0].from, r[0].to); if (t.selection.ranges.some((s) => t.sliceDoc(s.from, s.to) != n)) return !1; - let i = d3e(t, n); + let i = p3e(t, n); return i ? (e(t.update({ selection: t.selection.addRange(je.range(i.from, i.to), !1), effects: kt.scrollIntoView(i.to) @@ -13908,14 +13908,14 @@ const p3e = ({ state: t, dispatch: e }) => { literal: !1, regexp: !1, wholeWord: !1, - createPanel: (e) => new C3e(e), + createPanel: (e) => new E3e(e), scrollToMatch: (e) => kt.scrollIntoView(e) }); } }); class ste { constructor(e) { - this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && (!this.regexp || r3e(this.search)), this.unquoted = this.unquote(this.search), this.wholeWord = !!e.wholeWord; + this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && (!this.regexp || n3e(this.search)), this.unquoted = this.unquote(this.search), this.wholeWord = !!e.wholeWord; } unquote(e) { return this.literal ? e : e.replace(/\\([nrt\\])/g, (r, n) => n == "n" ? ` @@ -13925,7 +13925,7 @@ class ste { return this.search == e.search && this.replace == e.replace && this.caseSensitive == e.caseSensitive && this.regexp == e.regexp && this.wholeWord == e.wholeWord; } create() { - return this.regexp ? new y3e(this) : new m3e(this); + return this.regexp ? new b3e(this) : new v3e(this); } getCursor(e, r = 0, n) { let i = e.doc ? e : Tr.create({ doc: e }); @@ -13938,12 +13938,12 @@ class ate { } } function ag(t, e, r, n) { - return new mm(e.doc, t.unquoted, r, n, t.caseSensitive ? void 0 : (i) => i.toLowerCase(), t.wholeWord ? g3e(e.doc, e.charCategorizer(e.selection.main.head)) : void 0); + return new mm(e.doc, t.unquoted, r, n, t.caseSensitive ? void 0 : (i) => i.toLowerCase(), t.wholeWord ? m3e(e.doc, e.charCategorizer(e.selection.main.head)) : void 0); } -function g3e(t, e) { +function m3e(t, e) { return (r, n, i, s) => ((s > r || s + i.length < n) && (s = Math.max(0, r - 2), i = t.sliceString(s, Math.min(t.length, n + 2))), (e(Lk(i, r - s)) != Fn.Word || e(Rk(i, r - s)) != Fn.Word) && (e(Rk(i, n - s)) != Fn.Word || e(Lk(i, n - s)) != Fn.Word)); } -class m3e extends ate { +class v3e extends ate { constructor(e) { super(e); } @@ -13987,7 +13987,7 @@ class m3e extends ate { function og(t, e, r, n) { return new rte(e.doc, t.search, { ignoreCase: !t.caseSensitive, - test: t.wholeWord ? v3e(e.charCategorizer(e.selection.main.head)) : void 0 + test: t.wholeWord ? y3e(e.charCategorizer(e.selection.main.head)) : void 0 }, r, n); } function Lk(t, e) { @@ -13996,10 +13996,10 @@ function Lk(t, e) { function Rk(t, e) { return t.slice(e, ks(t, e)); } -function v3e(t) { +function y3e(t) { return (e, r, n) => !n[0].length || (t(Lk(n.input, n.index)) != Fn.Word || t(Rk(n.input, n.index)) != Fn.Word) && (t(Rk(n.input, n.index + n[0].length)) != Fn.Word || t(Lk(n.input, n.index + n[0].length)) != Fn.Word); } -class y3e extends ate { +class b3e extends ate { nextMatch(e, r, n) { let i = og(this.spec, e, n, e.doc.length).next(); return i.done && (i = og(this.spec, e, 0, r).next()), i.done ? null : i.value; @@ -14036,7 +14036,7 @@ class y3e extends ate { i(s.value.from, s.value.to); } } -const T2 = /* @__PURE__ */ or.define(), yD = /* @__PURE__ */ or.define(), wf = /* @__PURE__ */ Xn.define({ +const T2 = /* @__PURE__ */ or.define(), yD = /* @__PURE__ */ or.define(), Of = /* @__PURE__ */ Xn.define({ create(t) { return new $_(P8(t).create(), null); }, @@ -14052,13 +14052,13 @@ class $_ { this.query = e, this.panel = r; } } -const b3e = /* @__PURE__ */ It.mark({ class: "cm-searchMatch" }), x3e = /* @__PURE__ */ It.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), w3e = /* @__PURE__ */ hn.fromClass(class { +const x3e = /* @__PURE__ */ It.mark({ class: "cm-searchMatch" }), w3e = /* @__PURE__ */ It.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), O3e = /* @__PURE__ */ hn.fromClass(class { constructor(t) { - this.view = t, this.decorations = this.highlight(t.state.field(wf)); + this.view = t, this.decorations = this.highlight(t.state.field(Of)); } update(t) { - let e = t.state.field(wf); - (e != t.startState.field(wf) || t.docChanged || t.selectionSet || t.viewportChanged) && (this.decorations = this.highlight(e)); + let e = t.state.field(Of); + (e != t.startState.field(Of) || t.docChanged || t.selectionSet || t.viewportChanged) && (this.decorations = this.highlight(e)); } highlight({ query: t, panel: e }) { if (!e || !t.spec.valid) @@ -14070,7 +14070,7 @@ const b3e = /* @__PURE__ */ It.mark({ class: "cm-searchMatch" }), x3e = /* @__PU l = s[++i].to; t.highlight(r.state, o, l, (u, h) => { let f = r.state.selection.ranges.some((d) => d.from == u && d.to == h); - n.add(u, h, f ? x3e : b3e); + n.add(u, h, f ? w3e : x3e); }); } return n.finish(); @@ -14080,7 +14080,7 @@ const b3e = /* @__PURE__ */ It.mark({ class: "cm-searchMatch" }), x3e = /* @__PU }); function Qx(t) { return (e) => { - let r = e.state.field(wf, !1); + let r = e.state.field(Of, !1); return r && r.query.spec.valid ? t(e, r) : cte(e); }; } @@ -14104,13 +14104,13 @@ const Mk = /* @__PURE__ */ Qx((t, { query: e }) => { effects: [xD(t, i), a.scrollToMatch(s.main, t)], userEvent: "select.search" }), lte(t), !0; -}), O3e = /* @__PURE__ */ Qx((t, { query: e }) => { +}), k3e = /* @__PURE__ */ Qx((t, { query: e }) => { let r = e.matchAll(t.state, 1e3); return !r || !r.length ? !1 : (t.dispatch({ selection: je.create(r.map((n) => je.range(n.from, n.to))), userEvent: "select.search.matches" }), !0); -}), k3e = ({ state: t, dispatch: e }) => { +}), S3e = ({ state: t, dispatch: e }) => { let r = t.selection; if (r.ranges.length > 1 || r.main.empty) return !1; @@ -14142,7 +14142,7 @@ const Mk = /* @__PURE__ */ Qx((t, { query: e }) => { effects: u, userEvent: "input.replace" }), !0; -}), S3e = /* @__PURE__ */ Qx((t, { query: e }) => { +}), T3e = /* @__PURE__ */ Qx((t, { query: e }) => { if (t.state.readOnly) return !1; let r = e.matchAll(t.state, 1e9).map((i) => { @@ -14184,7 +14184,7 @@ function lte(t) { e && e == t.root.activeElement && e.select(); } const cte = (t) => { - let e = t.state.field(wf, !1); + let e = t.state.field(Of, !1); if (e && e.panel) { let r = ote(t); if (r && r != t.root.activeElement) { @@ -14194,28 +14194,28 @@ const cte = (t) => { } else t.dispatch({ effects: [ yD.of(!0), - e ? T2.of(P8(t.state, e.query.spec)) : or.appendConfig.of(_3e) + e ? T2.of(P8(t.state, e.query.spec)) : or.appendConfig.of(A3e) ] }); return !0; }, ute = (t) => { - let e = t.state.field(wf, !1); + let e = t.state.field(Of, !1); if (!e || !e.panel) return !1; let r = y2(t, bD); return r && r.dom.contains(t.root.activeElement) && t.focus(), t.dispatch({ effects: yD.of(!1) }), !0; -}, T3e = [ +}, C3e = [ { key: "Mod-f", run: cte, scope: "editor search-panel" }, { key: "F3", run: Mk, shift: Dk, scope: "editor search-panel", preventDefault: !0 }, { key: "Mod-g", run: Mk, shift: Dk, scope: "editor search-panel", preventDefault: !0 }, { key: "Escape", run: ute, scope: "editor search-panel" }, - { key: "Mod-Shift-l", run: k3e }, - { key: "Mod-Alt-g", run: n3e }, - { key: "Mod-d", run: p3e, preventDefault: !0 } + { key: "Mod-Shift-l", run: S3e }, + { key: "Mod-Alt-g", run: i3e }, + { key: "Mod-d", run: g3e, preventDefault: !0 } ]; -class C3e { +class E3e { constructor(e) { this.view = e; - let r = this.query = e.state.field(wf).query.spec; + let r = this.query = e.state.field(Of).query.spec; this.commit = this.commit.bind(this), this.searchField = kn("input", { value: r.search, placeholder: mo(e, "Find"), @@ -14261,7 +14261,7 @@ class C3e { this.searchField, n("next", () => Mk(e), [mo(e, "next")]), n("prev", () => Dk(e), [mo(e, "previous")]), - n("select", () => O3e(e), [mo(e, "all")]), + n("select", () => k3e(e), [mo(e, "all")]), kn("label", null, [this.caseField, mo(e, "match case")]), kn("label", null, [this.reField, mo(e, "regexp")]), kn("label", null, [this.wordField, mo(e, "by word")]), @@ -14269,7 +14269,7 @@ class C3e { kn("br"), this.replaceField, n("replace", () => Wz(e), [mo(e, "replace")]), - n("replaceAll", () => S3e(e), [mo(e, "replace all")]) + n("replaceAll", () => T3e(e), [mo(e, "replace all")]) ], kn("button", { name: "close", @@ -14290,7 +14290,7 @@ class C3e { e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: T2.of(e) })); } keydown(e) { - WOe(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? Dk : Mk)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), Wz(this.view)); + GOe(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? Dk : Mk)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), Wz(this.view)); } update(e) { for (let r of e.transactions) @@ -14332,7 +14332,7 @@ function xD(t, { from: e, to: r }) { } return kt.announce.of(`${t.state.phrase("current match")}. ${o} ${t.state.phrase("on line")} ${n.number}.`); } -const E3e = /* @__PURE__ */ kt.baseTheme({ +const _3e = /* @__PURE__ */ kt.baseTheme({ ".cm-panel.cm-search": { padding: "2px 6px 4px", position: "relative", @@ -14361,10 +14361,10 @@ const E3e = /* @__PURE__ */ kt.baseTheme({ "&dark .cm-searchMatch": { backgroundColor: "#00ffff8a" }, "&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" }, "&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" } -}), _3e = [ - wf, - /* @__PURE__ */ uc.low(w3e), - E3e +}), A3e = [ + Of, + /* @__PURE__ */ uc.low(O3e), + _3e ]; class wD { constructor(e, r, n) { @@ -14396,7 +14396,7 @@ function Gz(t) { let e = Object.keys(t).join(""), r = /\w/.test(e); return r && (e = e.replace(/\w/g, "")), `[${r ? "\\w" : ""}${e.replace(/[^\w\s]/g, "\\$&")}]`; } -function A3e(t) { +function L3e(t) { let e = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null); for (let { label: i } of t) { e[i[0]] = !0; @@ -14407,13 +14407,13 @@ function A3e(t) { return [new RegExp("^" + n), new RegExp(n)]; } function hte(t) { - let e = t.map((i) => typeof i == "string" ? { label: i } : i), [r, n] = e.every((i) => /^\w+$/.test(i.label)) ? [/\w*$/, /\w+$/] : A3e(e); + let e = t.map((i) => typeof i == "string" ? { label: i } : i), [r, n] = e.every((i) => /^\w+$/.test(i.label)) ? [/\w*$/, /\w+$/] : L3e(e); return (i) => { let s = i.matchBefore(n); return s || i.explicit ? { from: s ? s.from : i.pos, options: e, validFor: r } : null; }; } -function L3e(t, e) { +function R3e(t, e) { return (r) => { for (let n = Cn(r.state).resolveInner(r.pos, -1); n; n = n.parent) { if (t.indexOf(n.name) > -1) @@ -14429,7 +14429,7 @@ class Xz { this.completion = e, this.source = r, this.match = n, this.score = i; } } -function Of(t) { +function kf(t) { return t.selection.main.from; } function fte(t, e) { @@ -14438,7 +14438,7 @@ function fte(t, e) { return !i && !s ? t : new RegExp(`${i ? "^" : ""}(?:${n})${s ? "$" : ""}`, (r = t.flags) !== null && r !== void 0 ? r : t.ignoreCase ? "i" : ""); } const dte = /* @__PURE__ */ co.define(); -function R3e(t, e, r, n) { +function M3e(t, e, r, n) { let { main: i } = t.selection, s = r - i.from, a = n - i.from; return Object.assign(Object.assign({}, t.changeByRange((o) => o != i && r != n && t.sliceDoc(o.from + s, o.from + a) != t.sliceDoc(r, n) ? { range: o } : { changes: { from: o.from + s, to: n == i.from ? o.to : o.from + a, insert: e }, @@ -14446,14 +14446,14 @@ function R3e(t, e, r, n) { })), { scrollIntoView: !0, userEvent: "input.complete" }); } const Hz = /* @__PURE__ */ new WeakMap(); -function M3e(t) { +function D3e(t) { if (!Array.isArray(t)) return t; let e = Hz.get(t); return e || Hz.set(t, e = hte(t)), e; } const OD = /* @__PURE__ */ or.define(), C2 = /* @__PURE__ */ or.define(); -class D3e { +class P3e { constructor(e) { this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = []; for (let r = 0; r < e.length; ) { @@ -14526,7 +14526,7 @@ const js = /* @__PURE__ */ $t.define({ aboveCursor: !1, icons: !0, addToOptions: [], - positionInfo: P3e, + positionInfo: N3e, compareCompletions: (e, r) => e.label.localeCompare(r.label), interactionDelay: 75, updateSyncTime: 100 @@ -14543,7 +14543,7 @@ const js = /* @__PURE__ */ $t.define({ function Zz(t, e) { return t ? e ? t + " " + e : t : e; } -function P3e(t, e, r, n, i, s) { +function N3e(t, e, r, n, i, s) { let a = t.textDirection == Wn.RTL, o = a, l = !1, u = "top", h, f, d = e.left - i.left, p = i.right - e.right, g = n.right - n.left, m = n.bottom - n.top; if (o && d < Math.min(g, p) ? o = !1 : !o && p < Math.min(g, d) && (o = !0), g <= (o ? d : p)) h = Math.max(i.top, Math.min(r.top, i.bottom - m)) - e.top, f = Math.min(400, o ? d : p); @@ -14558,7 +14558,7 @@ function P3e(t, e, r, n, i, s) { class: "cm-completionInfo-" + (l ? a ? "left-narrow" : "right-narrow" : o ? "left" : "right") }; } -function N3e(t) { +function I3e(t) { let e = t.addToOptions.slice(); return t.icons && e.push({ render(r) { @@ -14600,7 +14600,7 @@ function B_(t, e, r) { let n = Math.floor((t - e) / r); return { from: t - (n + 1) * r, to: t - n * r }; } -class I3e { +class $3e { constructor(e, r, n) { this.view = e, this.stateField = r, this.applyCompletion = n, this.info = null, this.infoDestroy = null, this.placeInfoReq = { read: () => this.measureInfo(), @@ -14608,7 +14608,7 @@ class I3e { key: this }, this.space = null, this.currentClass = ""; let i = e.state.field(r), { options: s, selected: a } = i.open, o = e.state.facet(js); - this.optionContent = N3e(o), this.optionClass = o.optionClass, this.tooltipClass = o.tooltipClass, this.range = B_(s.length, a, o.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (l) => { + this.optionContent = I3e(o), this.optionClass = o.optionClass, this.tooltipClass = o.tooltipClass, this.range = B_(s.length, a, o.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (l) => { let { options: u } = e.state.field(r).open; for (let h = l.target, f; h && h != this.dom; h = h.parentNode) if (h.nodeName == "LI" && (f = /-(\d+)$/.exec(h.id)) && +f[1] < u.length) { @@ -14679,7 +14679,7 @@ class I3e { let r = null; for (let n = this.list.firstChild, i = this.range.from; n; n = n.nextSibling, i++) n.nodeName != "LI" || !n.id ? i-- : i == e ? n.hasAttribute("aria-selected") || (n.setAttribute("aria-selected", "true"), r = n) : n.hasAttribute("aria-selected") && n.removeAttribute("aria-selected"); - return r && B3e(this.list, r), r; + return r && F3e(this.list, r), r; } measureInfo() { let e = this.dom.querySelector("[aria-selected]"); @@ -14729,17 +14729,17 @@ class I3e { this.destroyInfo(); } } -function $3e(t, e) { - return (r) => new I3e(r, t, e); -} function B3e(t, e) { + return (r) => new $3e(r, t, e); +} +function F3e(t, e) { let r = t.getBoundingClientRect(), n = e.getBoundingClientRect(), i = r.height / t.offsetHeight; n.top < r.top ? t.scrollTop -= (r.top - n.top) / i : n.bottom > r.bottom && (t.scrollTop += (n.bottom - r.bottom) / i); } function jz(t) { return (t.boost || 0) * 100 + (t.apply ? 10 : 0) + (t.info ? 5 : 0) + (t.type ? 1 : 0); } -function F3e(t, e) { +function z3e(t, e) { let r = [], n = null, i = (l) => { r.push(l); let { section: u } = l.completion; @@ -14756,7 +14756,7 @@ function F3e(t, e) { for (let h of l.result.options) i(new Xz(h, l.source, u ? u(h) : [], 1e9 - r.length)); else { - let h = new D3e(e.sliceDoc(l.from, l.to)); + let h = new P3e(e.sliceDoc(l.from, l.to)); for (let f of l.result.options) if (h.match(f.label)) { let d = f.displayLabel ? u ? u(f, h.matched) : [] : h.matched; @@ -14791,7 +14791,7 @@ class vg { return e == this.selected || e >= this.options.length ? this : new vg(this.options, Kz(r, e), this.tooltip, this.timestamp, e, this.disabled); } static build(e, r, n, i, s) { - let a = F3e(e, r); + let a = z3e(e, r); if (!a.length) return i && e.some((l) => l.state == 1) ? new vg(i.options, i.attrs, i.tooltip, i.timestamp, i.selected, !0) : null; let o = r.facet(js).selectOnOpen ? 0 : -1; @@ -14805,7 +14805,7 @@ class vg { } return new vg(a, Kz(n, o), { pos: e.reduce((l, u) => u.hasResult() ? Math.min(l, u.from) : l, 1e8), - create: q3e, + create: Y3e, above: s.aboveCursor }, i ? i.timestamp : Date.now(), o, !1); } @@ -14818,13 +14818,13 @@ class Pk { this.active = e, this.id = r, this.open = n; } static start() { - return new Pk(U3e, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null); + return new Pk(V3e, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null); } update(e) { - let { state: r } = e, n = r.facet(js), s = (n.override || r.languageDataAt("autocomplete", Of(r)).map(M3e)).map((o) => (this.active.find((u) => u.source == o) || new Wa(o, this.active.some((u) => u.state != 0) ? 1 : 0)).update(e, n)); + let { state: r } = e, n = r.facet(js), s = (n.override || r.languageDataAt("autocomplete", kf(r)).map(D3e)).map((o) => (this.active.find((u) => u.source == o) || new Wa(o, this.active.some((u) => u.state != 0) ? 1 : 0)).update(e, n)); s.length == this.active.length && s.every((o, l) => o == this.active[l]) && (s = this.active); let a = this.open; - a && e.docChanged && (a = a.map(e.changes)), e.selection || s.some((o) => o.hasResult() && e.changes.touchesRange(o.from, o.to)) || !z3e(s, this.active) ? a = vg.build(s, r, this.id, a, n) : a && a.disabled && !s.some((o) => o.state == 1) && (a = null), !a && s.every((o) => o.state != 1) && s.some((o) => o.hasResult()) && (s = s.map((o) => o.hasResult() ? new Wa(o.source, 0) : o)); + a && e.docChanged && (a = a.map(e.changes)), e.selection || s.some((o) => o.hasResult() && e.changes.touchesRange(o.from, o.to)) || !Q3e(s, this.active) ? a = vg.build(s, r, this.id, a, n) : a && a.disabled && !s.some((o) => o.state == 1) && (a = null), !a && s.every((o) => o.state != 1) && s.some((o) => o.hasResult()) && (s = s.map((o) => o.hasResult() ? new Wa(o.source, 0) : o)); for (let o of e.effects) o.is(gte) && (a = a && a.setSelected(o.value, this.id)); return s == this.active && a == this.open ? this : new Pk(s, this.id, a); @@ -14833,10 +14833,10 @@ class Pk { return this.open ? this.open.tooltip : null; } get attrs() { - return this.open ? this.open.attrs : Q3e; + return this.open ? this.open.attrs : U3e; } } -function z3e(t, e) { +function Q3e(t, e) { if (t == e) return !0; for (let r = 0, n = 0; ; ) { @@ -14851,7 +14851,7 @@ function z3e(t, e) { return !1; } } -const Q3e = { +const U3e = { "aria-autocomplete": "list" }; function Kz(t, e) { @@ -14862,7 +14862,7 @@ function Kz(t, e) { }; return e > -1 && (r["aria-activedescendant"] = t + "-" + e), r; } -const U3e = []; +const V3e = []; function N8(t) { return t.isUserEvent("input.type") ? "input" : t.isUserEvent("delete.backward") ? "delete" : null; } @@ -14878,7 +14878,7 @@ class Wa { n ? i = i.handleUserEvent(e, n, r) : e.docChanged ? i = i.handleChange(e) : e.selection && i.state != 0 && (i = new Wa(i.source, 0)); for (let s of e.effects) if (s.is(OD)) - i = new Wa(i.source, 1, s.value ? Of(e.state) : -1); + i = new Wa(i.source, 1, s.value ? kf(e.state) : -1); else if (s.is(C2)) i = new Wa(i.source, 0); else if (s.is(pte)) @@ -14890,7 +14890,7 @@ class Wa { return r == "delete" || !n.activateOnTyping ? this.map(e.changes) : new Wa(this.source, 1); } handleChange(e) { - return e.changes.touchesRange(Of(e.startState)) ? new Wa(this.source, 0) : this.map(e.changes); + return e.changes.touchesRange(kf(e.startState)) ? new Wa(this.source, 0) : this.map(e.changes); } map(e) { return e.empty || this.explicitPos < 0 ? this : new Wa(this.source, this.state, e.mapPos(this.explicitPos)); @@ -14905,11 +14905,11 @@ class Ig extends Wa { } handleUserEvent(e, r, n) { var i; - let s = e.changes.mapPos(this.from), a = e.changes.mapPos(this.to, 1), o = Of(e.state); - if ((this.explicitPos < 0 ? o <= s : o < this.from) || o > a || r == "delete" && Of(e.startState) == this.from) + let s = e.changes.mapPos(this.from), a = e.changes.mapPos(this.to, 1), o = kf(e.state); + if ((this.explicitPos < 0 ? o <= s : o < this.from) || o > a || r == "delete" && kf(e.startState) == this.from) return new Wa(this.source, r == "input" && n.activateOnTyping ? 1 : 0); let l = this.explicitPos < 0 ? -1 : e.changes.mapPos(this.explicitPos), u; - return V3e(this.result.validFor, e.state, s, a) ? new Ig(this.source, l, this.result, s, a) : this.result.update && (u = this.result.update(this.result, s, a, new wD(e.state, o, l >= 0))) ? new Ig(this.source, l, u, u.from, (i = u.to) !== null && i !== void 0 ? i : Of(e.state)) : new Wa(this.source, 1, l); + return q3e(this.result.validFor, e.state, s, a) ? new Ig(this.source, l, this.result, s, a) : this.result.update && (u = this.result.update(this.result, s, a, new wD(e.state, o, l >= 0))) ? new Ig(this.source, l, u, u.from, (i = u.to) !== null && i !== void 0 ? i : kf(e.state)) : new Wa(this.source, 1, l); } handleChange(e) { return e.changes.touchesRange(this.from, this.to) ? new Wa(this.source, 0) : this.map(e.changes); @@ -14918,7 +14918,7 @@ class Ig extends Wa { return e.empty ? this : new Ig(this.source, this.explicitPos < 0 ? -1 : e.mapPos(this.explicitPos), this.result, e.mapPos(this.from), e.mapPos(this.to, 1)); } } -function V3e(t, e, r, n) { +function q3e(t, e, r, n) { if (!t) return !1; let i = e.sliceDoc(r, n); @@ -14943,9 +14943,9 @@ const pte = /* @__PURE__ */ or.define({ function mte(t, e) { const r = e.completion.apply || e.completion.label; let n = t.state.field(To).active.find((i) => i.source == e.source); - return n instanceof Ig ? (typeof r == "string" ? t.dispatch(Object.assign(Object.assign({}, R3e(t.state, r, n.from, n.to)), { annotations: dte.of(e.completion) })) : r(t, e.completion, n.from, n.to), !0) : !1; + return n instanceof Ig ? (typeof r == "string" ? t.dispatch(Object.assign(Object.assign({}, M3e(t.state, r, n.from, n.to)), { annotations: dte.of(e.completion) })) : r(t, e.completion, n.from, n.to), !0) : !1; } -const q3e = /* @__PURE__ */ $3e(To, mte); +const Y3e = /* @__PURE__ */ B3e(To, mte); function TO(t, e = "option") { return (r) => { let n = r.state.field(To, !1); @@ -14957,19 +14957,19 @@ function TO(t, e = "option") { return o < 0 ? o = e == "page" ? 0 : a - 1 : o >= a && (o = e == "page" ? a - 1 : 0), r.dispatch({ effects: gte.of(o) }), !0; }; } -const Y3e = (t) => { +const W3e = (t) => { let e = t.state.field(To, !1); return t.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < t.state.facet(js).interactionDelay ? !1 : mte(t, e.open.options[e.open.selected]); -}, W3e = (t) => t.state.field(To, !1) ? (t.dispatch({ effects: OD.of(!0) }), !0) : !1, G3e = (t) => { +}, G3e = (t) => t.state.field(To, !1) ? (t.dispatch({ effects: OD.of(!0) }), !0) : !1, X3e = (t) => { let e = t.state.field(To, !1); return !e || !e.active.some((r) => r.state != 0) ? !1 : (t.dispatch({ effects: C2.of(null) }), !0); }; -class X3e { +class H3e { constructor(e, r) { this.active = e, this.context = r, this.time = Date.now(), this.updates = [], this.done = void 0; } } -const H3e = 50, Z3e = 1e3, j3e = /* @__PURE__ */ hn.fromClass(class { +const Z3e = 50, j3e = 1e3, K3e = /* @__PURE__ */ hn.fromClass(class { constructor(t) { this.view = t, this.debounceUpdate = -1, this.running = [], this.debounceAccept = -1, this.composing = 0; for (let e of t.state.field(To).active) @@ -14982,7 +14982,7 @@ const H3e = 50, Z3e = 1e3, j3e = /* @__PURE__ */ hn.fromClass(class { let r = t.transactions.some((n) => (n.selection || n.docChanged) && !N8(n)); for (let n = 0; n < this.running.length; n++) { let i = this.running[n]; - if (r || i.updates.length + t.transactions.length > H3e && Date.now() - i.time > Z3e) { + if (r || i.updates.length + t.transactions.length > Z3e && Date.now() - i.time > j3e) { for (let s of i.context.abortListeners) try { s(); @@ -15004,7 +15004,7 @@ const H3e = 50, Z3e = 1e3, j3e = /* @__PURE__ */ hn.fromClass(class { r.state == 1 && !this.running.some((n) => n.active.source == r.source) && this.startQuery(r); } startQuery(t) { - let { state: e } = this.view, r = Of(e), n = new wD(e, r, t.explicitPos == r), i = new X3e(t, n); + let { state: e } = this.view, r = kf(e), n = new wD(e, r, t.explicitPos == r), i = new H3e(t, n); this.running.push(i), Promise.resolve(t.source(n)).then((s) => { i.context.aborted || (i.done = s || null, this.scheduleAccept()); }, (s) => { @@ -15023,7 +15023,7 @@ const H3e = 50, Z3e = 1e3, j3e = /* @__PURE__ */ hn.fromClass(class { if (i.done === void 0) continue; if (this.running.splice(n--, 1), i.done) { - let a = new Ig(i.active.source, i.active.explicitPos, i.done, i.done.from, (t = i.done.to) !== null && t !== void 0 ? t : Of(i.updates.length ? i.updates[0].startState : this.view.state)); + let a = new Ig(i.active.source, i.active.explicitPos, i.done, i.done.from, (t = i.done.to) !== null && t !== void 0 ? t : kf(i.updates.length ? i.updates[0].startState : this.view.state)); for (let o of i.updates) a = a.update(o, r); if (a.hasResult()) { @@ -15181,7 +15181,7 @@ const H3e = 50, Z3e = 1e3, j3e = /* @__PURE__ */ hn.fromClass(class { "&:after": { content: "'abc'", fontSize: "50%", verticalAlign: "middle" } } }); -class K3e { +class J3e { constructor(e, r, n, i) { this.field = e, this.line = r, this.from = n, this.to = i; } @@ -15228,7 +15228,7 @@ class SD { for (let f of i) f.field >= u && f.field++; } - i.push(new K3e(u, n.length, s.index, s.index + l.length)), a = a.slice(0, s.index) + l + a.slice(s.index + s[0].length); + i.push(new J3e(u, n.length, s.index, s.index + l.length)), a = a.slice(0, s.index) + l + a.slice(s.index + s[0].length); } for (let o; o = /\\([{}])/.exec(a); ) { a = a.slice(0, o.index) + o[1] + a.slice(o.index + o[0].length); @@ -15240,7 +15240,7 @@ class SD { return new SD(n, i); } } -let J3e = /* @__PURE__ */ It.widget({ widget: /* @__PURE__ */ new class extends uo { +let eSe = /* @__PURE__ */ It.widget({ widget: /* @__PURE__ */ new class extends uo { toDOM() { let t = document.createElement("span"); return t.className = "cm-snippetFieldPosition", t; @@ -15248,10 +15248,10 @@ let J3e = /* @__PURE__ */ It.widget({ widget: /* @__PURE__ */ new class extends ignoreEvent() { return !1; } -}() }), eSe = /* @__PURE__ */ It.mark({ class: "cm-snippetField" }); +}() }), tSe = /* @__PURE__ */ It.mark({ class: "cm-snippetField" }); class k1 { constructor(e, r) { - this.ranges = e, this.active = r, this.deco = It.set(e.map((n) => (n.from == n.to ? J3e : eSe).range(n.from, n.to))); + this.ranges = e, this.active = r, this.deco = It.set(e.map((n) => (n.from == n.to ? eSe : tSe).range(n.from, n.to))); } map(e) { let r = []; @@ -15271,7 +15271,7 @@ const Ux = /* @__PURE__ */ or.define({ map(t, e) { return t && t.map(e); } -}), tSe = /* @__PURE__ */ or.define(), E2 = /* @__PURE__ */ Xn.define({ +}), rSe = /* @__PURE__ */ or.define(), E2 = /* @__PURE__ */ Xn.define({ create() { return null; }, @@ -15279,7 +15279,7 @@ const Ux = /* @__PURE__ */ or.define({ for (let r of e.effects) { if (r.is(Ux)) return r.value; - if (r.is(tSe) && t) + if (r.is(rSe) && t) return new k1(t.ranges, r.value); } return t && e.docChanged && (t = t.map(e.changes)), t && e.selection && !t.selectionInsideField(e.selection) && (t = null), t; @@ -15289,7 +15289,7 @@ const Ux = /* @__PURE__ */ or.define({ function TD(t, e) { return je.create(t.filter((r) => r.field == e).map((r) => je.range(r.from, r.to))); } -function rSe(t) { +function nSe(t) { let e = SD.parse(t); return (r, n, i, s) => { let { text: a, ranges: o } = e.instantiate(r.state, i), l = { @@ -15299,7 +15299,7 @@ function rSe(t) { }; if (o.length && (l.selection = TD(o, 0)), o.length > 1) { let u = new k1(o, 0), h = l.effects = [Ux.of(u)]; - r.state.field(E2, !1) === void 0 && h.push(or.appendConfig.of([E2, oSe, lSe, vte])); + r.state.field(E2, !1) === void 0 && h.push(or.appendConfig.of([E2, lSe, cSe, vte])); } r.dispatch(r.state.update(l)); }; @@ -15317,18 +15317,18 @@ function yte(t) { })), !0; }; } -const nSe = ({ state: t, dispatch: e }) => t.field(E2, !1) ? (e(t.update({ effects: Ux.of(null) })), !0) : !1, iSe = /* @__PURE__ */ yte(1), sSe = /* @__PURE__ */ yte(-1), aSe = [ - { key: "Tab", run: iSe, shift: sSe }, - { key: "Escape", run: nSe } +const iSe = ({ state: t, dispatch: e }) => t.field(E2, !1) ? (e(t.update({ effects: Ux.of(null) })), !0) : !1, sSe = /* @__PURE__ */ yte(1), aSe = /* @__PURE__ */ yte(-1), oSe = [ + { key: "Tab", run: sSe, shift: aSe }, + { key: "Escape", run: iSe } ], Jz = /* @__PURE__ */ $t.define({ combine(t) { - return t.length ? t[0] : aSe; + return t.length ? t[0] : oSe; } -}), oSe = /* @__PURE__ */ uc.highest(/* @__PURE__ */ ju.compute([Jz], (t) => t.facet(Jz))); +}), lSe = /* @__PURE__ */ uc.highest(/* @__PURE__ */ ju.compute([Jz], (t) => t.facet(Jz))); function Qa(t, e) { - return Object.assign(Object.assign({}, e), { apply: rSe(t) }); + return Object.assign(Object.assign({}, e), { apply: nSe(t) }); } -const lSe = /* @__PURE__ */ kt.domEventHandlers({ +const cSe = /* @__PURE__ */ kt.domEventHandlers({ mousedown(t, e) { let r = e.state.field(E2, !1), n; if (!r || (n = e.posAtCoords({ x: t.clientX, y: t.clientY })) == null) @@ -15367,8 +15367,8 @@ const bte = /* @__PURE__ */ Xn.define({ return t; } }); -function cSe() { - return [hSe, bte]; +function uSe() { + return [fSe, bte]; } const F_ = "()[]{}<>"; function xte(t) { @@ -15380,20 +15380,20 @@ function xte(t) { function wte(t, e) { return t.languageDataAt("closeBrackets", e)[0] || _2; } -const uSe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), hSe = /* @__PURE__ */ kt.inputHandler.of((t, e, r, n) => { - if ((uSe ? t.composing : t.compositionStarted) || t.state.readOnly) +const hSe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), fSe = /* @__PURE__ */ kt.inputHandler.of((t, e, r, n) => { + if ((hSe ? t.composing : t.compositionStarted) || t.state.readOnly) return !1; let i = t.state.selection.main; if (n.length > 2 || n.length == 2 && Ho(xs(n, 0)) == 1 || e != i.from || r != i.to) return !1; - let s = pSe(t.state, n); + let s = gSe(t.state, n); return s ? (t.dispatch(s), !0) : !1; -}), fSe = ({ state: t, dispatch: e }) => { +}), dSe = ({ state: t, dispatch: e }) => { if (t.readOnly) return !1; let n = wte(t, t.selection.main.head).brackets || _2.brackets, i = null, s = t.changeByRange((a) => { if (a.empty) { - let o = gSe(t.doc, a.head); + let o = mSe(t.doc, a.head); for (let l of n) if (l == o && YT(t.doc, a.head) == xte(xs(l, 0))) return { @@ -15404,17 +15404,17 @@ const uSe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(nav return { range: i = a }; }); return i || e(t.update(s, { scrollIntoView: !0, userEvent: "delete.backward" })), !i; -}, dSe = [ - { key: "Backspace", run: fSe } +}, pSe = [ + { key: "Backspace", run: dSe } ]; -function pSe(t, e) { +function gSe(t, e) { let r = wte(t, t.selection.main.head), n = r.brackets || _2.brackets; for (let i of n) { let s = xte(xs(i, 0)); if (e == i) - return s == i ? ySe(t, i, n.indexOf(i + i + i) > -1, r) : mSe(t, i, s, r.before || _2.before); + return s == i ? bSe(t, i, n.indexOf(i + i + i) > -1, r) : vSe(t, i, s, r.before || _2.before); if (e == s && Ote(t, t.selection.main.from)) - return vSe(t, i, s); + return ySe(t, i, s); } return null; } @@ -15428,11 +15428,11 @@ function YT(t, e) { let r = t.sliceString(e, e + 2); return r.slice(0, Ho(xs(r, 0))); } -function gSe(t, e) { +function mSe(t, e) { let r = t.sliceString(e - 2, e); return Ho(xs(r, 0)) == r.length ? r : r.slice(1); } -function mSe(t, e, r, n) { +function vSe(t, e, r, n) { let i = null, s = t.changeByRange((a) => { if (!a.empty) return { @@ -15452,7 +15452,7 @@ function mSe(t, e, r, n) { userEvent: "input.type" }); } -function vSe(t, e, r) { +function ySe(t, e, r) { let n = null, i = t.changeByRange((s) => s.empty && YT(t.doc, s.head) == r ? { changes: { from: s.head, to: s.head + r.length, insert: r }, range: je.cursor(s.head + r.length) @@ -15462,7 +15462,7 @@ function vSe(t, e, r) { userEvent: "input.type" }); } -function ySe(t, e, r, n) { +function bSe(t, e, r, n) { let i = n.stringPrefixes || _2.stringPrefixes, s = null, a = t.changeByRange((o) => { if (!o.empty) return { @@ -15492,7 +15492,7 @@ function ySe(t, e, r, n) { effects: l0.of(l + e.length), range: je.cursor(l + e.length) }; - if (t.charCategorizer(l)(u) != Fn.Word && tQ(t, l, i) > -1 && !bSe(t, l, e, i)) + if (t.charCategorizer(l)(u) != Fn.Word && tQ(t, l, i) > -1 && !xSe(t, l, e, i)) return { changes: { insert: e + e, from: l }, effects: l0.of(l + e.length), @@ -15510,7 +15510,7 @@ function eQ(t, e) { let r = Cn(t).resolveInner(e + 1); return r.parent && r.from == e; } -function bSe(t, e, r, n) { +function xSe(t, e, r, n) { let i = Cn(t).resolveInner(e, -1), s = n.reduce((a, o) => Math.max(a, o.length), 0); for (let a = 0; a < 5; a++) { let o = t.sliceDoc(i.from, Math.min(i.to, i.from + r.length + s)), l = o.indexOf(r); @@ -15541,25 +15541,25 @@ function tQ(t, e, r) { } return -1; } -function xSe(t = {}) { +function wSe(t = {}) { return [ To, js.of(t), - j3e, - wSe, + K3e, + OSe, vte ]; } const kte = [ - { key: "Ctrl-Space", run: W3e }, - { key: "Escape", run: G3e }, + { key: "Ctrl-Space", run: G3e }, + { key: "Escape", run: X3e }, { key: "ArrowDown", run: /* @__PURE__ */ TO(!0) }, { key: "ArrowUp", run: /* @__PURE__ */ TO(!1) }, { key: "PageDown", run: /* @__PURE__ */ TO(!0, "page") }, { key: "PageUp", run: /* @__PURE__ */ TO(!1, "page") }, - { key: "Enter", run: Y3e } -], wSe = /* @__PURE__ */ uc.highest(/* @__PURE__ */ ju.computeN([js], (t) => t.facet(js).defaultKeymap ? [kte] : [])); -class OSe { + { key: "Enter", run: W3e } +], OSe = /* @__PURE__ */ uc.highest(/* @__PURE__ */ ju.computeN([js], (t) => t.facet(js).defaultKeymap ? [kte] : [])); +class kSe { constructor(e, r, n) { this.from = e, this.to = r, this.diagnostic = n; } @@ -15572,7 +15572,7 @@ class Hd { let i = e, s = n.facet(Cte).markerFilter; s && (i = s(i)); let a = It.set(i.map((o) => o.from == o.to || o.from == o.to - 1 && n.doc.lineAt(o.from).to == o.from ? It.widget({ - widget: new RSe(o), + widget: new MSe(o), diagnostic: o }).range(o.from) : It.mark({ attributes: { class: "cm-lintRange cm-lintRange-" + o.severity + (o.markClass ? " " + o.markClass : "") }, @@ -15585,15 +15585,15 @@ function vm(t, e = null, r = 0) { let n = null; return t.between(r, 1e9, (i, s, { spec: a }) => { if (!(e && a.diagnostic != e)) - return n = new OSe(i, s, a.diagnostic), !1; + return n = new kSe(i, s, a.diagnostic), !1; }), n; } -function kSe(t, e) { +function SSe(t, e) { let r = t.startState.doc.lineAt(e.pos); return !!(t.effects.some((n) => n.is(Ste)) || t.changes.touchesRange(r.from, r.to)); } -function SSe(t, e) { - return t.field(Eo, !1) ? e : e.concat(or.appendConfig.of(PSe)); +function TSe(t, e) { + return t.field(Eo, !1) ? e : e.concat(or.appendConfig.of(NSe)); } const Ste = /* @__PURE__ */ or.define(), ED = /* @__PURE__ */ or.define(), Tte = /* @__PURE__ */ or.define(), Eo = /* @__PURE__ */ Xn.define({ create() { @@ -15616,8 +15616,8 @@ const Ste = /* @__PURE__ */ or.define(), ED = /* @__PURE__ */ or.define(), Tte = b2.from(t, (e) => e.panel), kt.decorations.from(t, (e) => e.diagnostics) ] -}), TSe = /* @__PURE__ */ It.mark({ class: "cm-lintRange cm-lintRange-active" }); -function CSe(t, e, r) { +}), CSe = /* @__PURE__ */ It.mark({ class: "cm-lintRange cm-lintRange-active" }); +function ESe(t, e, r) { let { diagnostics: n } = t.state.field(Eo), i = [], s = 2e8, a = 0; n.between(e - (r < 0 ? 1 : 0), e + (r > 0 ? 1 : 0), (l, u, { spec: h }) => { e >= l && e <= u && (l == u || (e > l || r > 0) && (e < u || r < 0)) && (i.push(h.diagnostic), s = Math.min(l, s), a = Math.max(u, a)); @@ -15628,30 +15628,30 @@ function CSe(t, e, r) { end: a, above: t.state.doc.lineAt(s).to < a, create() { - return { dom: ESe(t, i) }; + return { dom: _Se(t, i) }; } } : null; } -function ESe(t, e) { +function _Se(t, e) { return kn("ul", { class: "cm-tooltip-lint" }, e.map((r) => _te(t, r, !1))); } -const _Se = (t) => { +const ASe = (t) => { let e = t.state.field(Eo, !1); - (!e || !e.panel) && t.dispatch({ effects: SSe(t.state, [ED.of(!0)]) }); + (!e || !e.panel) && t.dispatch({ effects: TSe(t.state, [ED.of(!0)]) }); let r = y2(t, WT.open); return r && r.dom.querySelector(".cm-panel-lint ul").focus(), !0; }, rQ = (t) => { let e = t.state.field(Eo, !1); return !e || !e.panel ? !1 : (t.dispatch({ effects: ED.of(!1) }), !0); -}, ASe = (t) => { +}, LSe = (t) => { let e = t.state.field(Eo, !1); if (!e) return !1; let r = t.state.selection.main, n = e.diagnostics.iter(r.to + 1); return !n.value && (n = e.diagnostics.iter(0), !n.value || n.from == r.from && n.to == r.to) ? !1 : (t.dispatch({ selection: { anchor: n.from, head: n.to }, scrollIntoView: !0 }), !0); -}, LSe = [ - { key: "Mod-Shift-m", run: _Se, preventDefault: !0 }, - { key: "F8", run: ASe } +}, RSe = [ + { key: "Mod-Shift-m", run: ASe, preventDefault: !0 }, + { key: "F8", run: LSe } ], Cte = /* @__PURE__ */ $t.define({ combine(t) { return Object.assign({ sources: t.map((e) => e.source) }, gu(t.map((e) => e.config), { @@ -15704,7 +15704,7 @@ function _te(t, e, r) { }, f); }), e.source && kn("div", { class: "cm-diagnosticSource" }, e.source)); } -class RSe extends uo { +class MSe extends uo { constructor(e) { super(), this.diagnostic = e; } @@ -15828,13 +15828,13 @@ class WT { return new WT(e); } } -function MSe(t, e = 'viewBox="0 0 40 40"') { +function DSe(t, e = 'viewBox="0 0 40 40"') { return `url('data:image/svg+xml,${encodeURIComponent(t)}')`; } function CO(t) { - return MSe(``, 'width="6" height="3"'); + return DSe(``, 'width="6" height="3"'); } -const DSe = /* @__PURE__ */ kt.baseTheme({ +const PSe = /* @__PURE__ */ kt.baseTheme({ ".cm-diagnostic": { padding: "3px 6px 3px 8px", marginLeft: "-1px", @@ -15924,44 +15924,44 @@ const DSe = /* @__PURE__ */ kt.baseTheme({ margin: 0 } } -}), PSe = [ +}), NSe = [ Eo, /* @__PURE__ */ kt.decorations.compute([Eo], (t) => { let { selected: e, panel: r } = t.field(Eo); return !e || !r || e.from == e.to ? It.none : It.set([ - TSe.range(e.from, e.to) + CSe.range(e.from, e.to) ]); }), - /* @__PURE__ */ A4e(CSe, { hideOn: kSe }), - DSe -], NSe = /* @__PURE__ */ (() => [ - $4e(), - z4e(), + /* @__PURE__ */ L4e(ESe, { hideOn: SSe }), + PSe +], ISe = /* @__PURE__ */ (() => [ + B4e(), + Q4e(), UJ(), gD(), - M5e(), + D5e(), FJ(), - r4e(), + n4e(), Tr.allowMultipleSelections.of(!0), - b5e(), + x5e(), pee(gee, { fallback: !0 }), - U5e(), - cSe(), - xSe(), - y4e(), - w4e(), + V5e(), + uSe(), + wSe(), + b4e(), + O4e(), VJ(), - a3e(), + o3e(), ju.of([ - ...dSe, + ...pSe, ...Jee, - ...T3e, + ...C3e, ...Cee, - ..._5e, + ...A5e, ...kte, - ...LSe + ...RSe ]) -])(), ISe = /* @__PURE__ */ (() => [ +])(), $Se = /* @__PURE__ */ (() => [ UJ(), gD(), FJ(), @@ -15978,20 +15978,20 @@ const DSe = /* @__PURE__ */ kt.baseTheme({ }, Lh = (t, e, r) => { let n = t.get(e); return n === void 0 && t.set(e, n = r()), n; -}, $Se = (t, e) => { +}, BSe = (t, e) => { const r = []; for (const [n, i] of t) r.push(e(i, n)); return r; -}, BSe = (t, e) => { +}, FSe = (t, e) => { for (const [r, n] of t) if (e(n, r)) return !0; return !1; -}, P0 = () => /* @__PURE__ */ new Set(), z_ = (t) => t[t.length - 1], FSe = (t, e) => { +}, P0 = () => /* @__PURE__ */ new Set(), z_ = (t) => t[t.length - 1], zSe = (t, e) => { for (let r = 0; r < e.length; r++) t.push(e[r]); -}, zf = Array.from, zSe = (t, e) => { +}, Qf = Array.from, QSe = (t, e) => { for (let r = 0; r < t.length; r++) if (e(t[r], r, t)) return !0; @@ -16015,18 +16015,18 @@ class GT { n !== void 0 && (n.delete(r), n.size === 0 && this._observers.delete(e)); } emit(e, r) { - return zf((this._observers.get(e) || ql()).values()).forEach((n) => n(...r)); + return Qf((this._observers.get(e) || ql()).values()).forEach((n) => n(...r)); } destroy() { this._observers = ql(); } } -const fh = Math.floor, c5 = Math.abs, XT = (t, e) => t < e ? t : e, pd = (t, e) => t > e ? t : e, QSe = Math.pow, Ate = (t) => t !== 0 ? t < 0 : 1 / t < 0, iQ = 1, sQ = 2, Q_ = 4, U_ = 8, A2 = 32, Ju = 64, _o = 128, HT = 31, B8 = 63, k0 = 127, USe = 2147483647, Lte = Number.MAX_SAFE_INTEGER, VSe = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && fh(t) === t), qSe = String.fromCharCode, YSe = (t) => t.toLowerCase(), WSe = /^\s*/g, GSe = (t) => t.replace(WSe, ""), XSe = /([A-Z])/g, aQ = (t, e) => GSe(t.replace(XSe, (r) => `${e}${YSe(r)}`)), HSe = (t) => { +const fh = Math.floor, c5 = Math.abs, XT = (t, e) => t < e ? t : e, gd = (t, e) => t > e ? t : e, USe = Math.pow, Ate = (t) => t !== 0 ? t < 0 : 1 / t < 0, iQ = 1, sQ = 2, Q_ = 4, U_ = 8, A2 = 32, Ju = 64, _o = 128, HT = 31, B8 = 63, k0 = 127, VSe = 2147483647, Lte = Number.MAX_SAFE_INTEGER, qSe = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && fh(t) === t), YSe = String.fromCharCode, WSe = (t) => t.toLowerCase(), GSe = /^\s*/g, XSe = (t) => t.replace(GSe, ""), HSe = /([A-Z])/g, aQ = (t, e) => XSe(t.replace(HSe, (r) => `${e}${WSe(r)}`)), ZSe = (t) => { const e = unescape(encodeURIComponent(t)), r = e.length, n = new Uint8Array(r); for (let i = 0; i < r; i++) n[i] = e.codePointAt(i); return n; -}, L2 = typeof TextEncoder < "u" ? new TextEncoder() : null, ZSe = (t) => L2.encode(t), jSe = L2 ? ZSe : HSe; +}, L2 = typeof TextEncoder < "u" ? new TextEncoder() : null, jSe = (t) => L2.encode(t), KSe = L2 ? jSe : ZSe; let $y = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8", { fatal: !0, ignoreBOM: !0 }); $y && $y.decode(new Uint8Array()).length === 1 && ($y = null); class Vx { @@ -16047,9 +16047,9 @@ const Ws = () => new Vx(), _D = (t) => { e.set(i, r), r += i.length; } return e.set(new Uint8Array(t.cbuf.buffer, 0, t.cpos), r), e; -}, KSe = (t, e) => { +}, JSe = (t, e) => { const r = t.cbuf.length; - r - t.cpos < e && (t.bufs.push(new Uint8Array(t.cbuf.buffer, 0, t.cpos)), t.cbuf = new Uint8Array(pd(r, e) * 2), t.cpos = 0); + r - t.cpos < e && (t.bufs.push(new Uint8Array(t.cbuf.buffer, 0, t.cpos)), t.cbuf = new Uint8Array(gd(r, e) * 2), t.cpos = 0); }, rs = (t, e) => { const r = t.cbuf.length; t.cpos === r && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(r * 2), t.cpos = 0), t.cbuf[t.cpos++] = e; @@ -16061,38 +16061,38 @@ const Ws = () => new Vx(), _D = (t) => { const r = Ate(e); for (r && (e = -e), rs(t, (e > B8 ? _o : 0) | (r ? Ju : 0) | B8 & e), e = fh(e / 64); e > 0; ) rs(t, (e > k0 ? _o : 0) | k0 & e), e = fh(e / 128); -}, z8 = new Uint8Array(3e4), JSe = z8.length / 3, eTe = (t, e) => { - if (e.length < JSe) { +}, z8 = new Uint8Array(3e4), eTe = z8.length / 3, tTe = (t, e) => { + if (e.length < eTe) { const r = L2.encodeInto(e, z8).written || 0; rr(t, r); for (let n = 0; n < r; n++) rs(t, z8[n]); } else - ci(t, jSe(e)); -}, tTe = (t, e) => { + ci(t, KSe(e)); +}, rTe = (t, e) => { const r = unescape(encodeURIComponent(e)), n = r.length; rr(t, n); for (let i = 0; i < n; i++) rs(t, r.codePointAt(i)); -}, S0 = L2 && L2.encodeInto ? eTe : tTe, ZT = (t, e) => { +}, S0 = L2 && L2.encodeInto ? tTe : rTe, ZT = (t, e) => { const r = t.cbuf.length, n = t.cpos, i = XT(r - n, e.length), s = e.length - i; - t.cbuf.set(e.subarray(0, i), n), t.cpos += i, s > 0 && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(pd(r * 2, s)), t.cbuf.set(e.subarray(i)), t.cpos = s); + t.cbuf.set(e.subarray(0, i), n), t.cpos += i, s > 0 && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(gd(r * 2, s)), t.cbuf.set(e.subarray(i)), t.cpos = s); }, ci = (t, e) => { rr(t, e.byteLength), ZT(t, e); }, LD = (t, e) => { - KSe(t, e); + JSe(t, e); const r = new DataView(t.cbuf.buffer, t.cpos, e); return t.cpos += e, r; -}, rTe = (t, e) => LD(t, 4).setFloat32(0, e, !1), nTe = (t, e) => LD(t, 8).setFloat64(0, e, !1), iTe = (t, e) => LD(t, 8).setBigInt64(0, e, !1), oQ = new DataView(new ArrayBuffer(4)), sTe = (t) => (oQ.setFloat32(0, t), oQ.getFloat32(0) === t), R2 = (t, e) => { +}, nTe = (t, e) => LD(t, 4).setFloat32(0, e, !1), iTe = (t, e) => LD(t, 8).setFloat64(0, e, !1), sTe = (t, e) => LD(t, 8).setBigInt64(0, e, !1), oQ = new DataView(new ArrayBuffer(4)), aTe = (t) => (oQ.setFloat32(0, t), oQ.getFloat32(0) === t), R2 = (t, e) => { switch (typeof e) { case "string": rs(t, 119), S0(t, e); break; case "number": - VSe(e) && c5(e) <= USe ? (rs(t, 125), AD(t, e)) : sTe(e) ? (rs(t, 124), rTe(t, e)) : (rs(t, 123), nTe(t, e)); + qSe(e) && c5(e) <= VSe ? (rs(t, 125), AD(t, e)) : aTe(e) ? (rs(t, 124), nTe(t, e)) : (rs(t, 123), iTe(t, e)); break; case "bigint": - rs(t, 122), iTe(t, e); + rs(t, 122), sTe(t, e); break; case "object": if (e === null) @@ -16159,7 +16159,7 @@ class V_ { return uQ(this), Vn(this.encoder); } } -class aTe { +class oTe { constructor() { this.sarr = [], this.s = "", this.lensE = new u5(); } @@ -16171,20 +16171,20 @@ class aTe { return this.sarr.push(this.s), this.s = "", S0(e, this.sarr.join("")), ZT(e, this.lensE.toUint8Array()), Vn(e); } } -const Qf = (t) => new Error(t), Jc = () => { - throw Qf("Method unimplemented"); +const Uf = (t) => new Error(t), Jc = () => { + throw Uf("Method unimplemented"); }, ic = () => { - throw Qf("Unexpected case"); -}, Rte = Qf("Unexpected end of array"), Mte = Qf("Integer out of Range"); + throw Uf("Unexpected case"); +}, Rte = Uf("Unexpected end of array"), Mte = Uf("Integer out of Range"); class jT { constructor(e) { this.arr = e, this.pos = 0; } } -const gd = (t) => new jT(t), oTe = (t) => t.pos !== t.arr.length, lTe = (t, e) => { +const md = (t) => new jT(t), lTe = (t) => t.pos !== t.arr.length, cTe = (t, e) => { const r = new Uint8Array(t.arr.buffer, t.pos + t.arr.byteOffset, e); return t.pos += e, r; -}, Ys = (t) => lTe(t, wr(t)), ym = (t) => t.arr[t.pos++], wr = (t) => { +}, Ys = (t) => cTe(t, wr(t)), ym = (t) => t.arr[t.pos++], wr = (t) => { let e = 0, r = 1; const n = t.arr.length; for (; t.pos < n; ) { @@ -16208,7 +16208,7 @@ const gd = (t) => new jT(t), oTe = (t) => t.pos !== t.arr.length, lTe = (t, e) = throw Mte; } throw Rte; -}, cTe = (t) => { +}, uTe = (t) => { let e = wr(t); if (e === 0) return ""; @@ -16224,24 +16224,24 @@ const gd = (t) => new jT(t), oTe = (t) => t.pos !== t.arr.length, lTe = (t, e) = } return decodeURIComponent(escape(r)); } -}, uTe = (t) => $y.decode(Ys(t)), kf = $y ? uTe : cTe, MD = (t, e) => { +}, hTe = (t) => $y.decode(Ys(t)), Sf = $y ? hTe : uTe, MD = (t, e) => { const r = new DataView(t.arr.buffer, t.arr.byteOffset + t.pos, e); return t.pos += e, r; -}, hTe = (t) => MD(t, 4).getFloat32(0, !1), fTe = (t) => MD(t, 8).getFloat64(0, !1), dTe = (t) => MD(t, 8).getBigInt64(0, !1), pTe = [ +}, fTe = (t) => MD(t, 4).getFloat32(0, !1), dTe = (t) => MD(t, 8).getFloat64(0, !1), pTe = (t) => MD(t, 8).getBigInt64(0, !1), gTe = [ (t) => { }, (t) => null, RD, - hTe, fTe, dTe, + pTe, (t) => !1, (t) => !0, - kf, + Sf, (t) => { const e = wr(t), r = {}; for (let n = 0; n < e; n++) { - const i = kf(t); + const i = Sf(t); r[i] = M2(t); } return r; @@ -16253,13 +16253,13 @@ const gd = (t) => new jT(t), oTe = (t) => t.pos !== t.arr.length, lTe = (t, e) = return r; }, Ys -], M2 = (t) => pTe[127 - ym(t)](t); +], M2 = (t) => gTe[127 - ym(t)](t); class hQ extends jT { constructor(e, r) { super(e), this.reader = r, this.s = null, this.count = 0; } read() { - return this.count === 0 && (this.s = this.reader(this), oTe(this) ? this.count = wr(this) + 1 : this.count = -1), this.count--, this.s; + return this.count === 0 && (this.s = this.reader(this), lTe(this) ? this.count = wr(this) + 1 : this.count = -1), this.count--, this.s; } } class h5 extends jT { @@ -16287,22 +16287,22 @@ class q_ extends jT { return this.s += this.diff, this.count--, this.s; } } -class gTe { +class mTe { constructor(e) { - this.decoder = new h5(e), this.str = kf(this.decoder), this.spos = 0; + this.decoder = new h5(e), this.str = Sf(this.decoder), this.spos = 0; } read() { const e = this.spos + this.decoder.read(), r = this.str.slice(this.spos, e); return this.spos = e, r; } } -const mTe = crypto.getRandomValues.bind(crypto), Dte = () => mTe(new Uint32Array(1))[0], vTe = [1e7] + -1e3 + -4e3 + -8e3 + -1e11, yTe = () => vTe.replace( +const vTe = crypto.getRandomValues.bind(crypto), Dte = () => vTe(new Uint32Array(1))[0], yTe = [1e7] + -1e3 + -4e3 + -8e3 + -1e11, bTe = () => yTe.replace( /[018]/g, (t) => (t ^ Dte() & 15 >> t / 4).toString(16) -), Uf = Date.now, fQ = (t) => new Promise(t); +), Vf = Date.now, fQ = (t) => new Promise(t); Promise.all.bind(Promise); const dQ = (t) => t === void 0 ? null : t; -class bTe { +class xTe { constructor() { this.map = /* @__PURE__ */ new Map(); } @@ -16313,38 +16313,38 @@ class bTe { return this.map.get(e); } } -let Pte = new bTe(), DD = !0; +let Pte = new xTe(), DD = !0; try { typeof localStorage < "u" && localStorage && (Pte = localStorage, DD = !1); } catch { } -const Nte = Pte, xTe = (t) => DD || addEventListener("storage", t), wTe = (t) => DD || removeEventListener("storage", t), OTe = Object.assign, kTe = Object.keys, STe = (t, e) => { +const Nte = Pte, wTe = (t) => DD || addEventListener("storage", t), OTe = (t) => DD || removeEventListener("storage", t), kTe = Object.assign, STe = Object.keys, TTe = (t, e) => { for (const r in t) e(t[r], r); -}, TTe = (t, e) => { +}, CTe = (t, e) => { const r = []; for (const n in t) r.push(e(t[n], n)); return r; -}, Nk = (t) => kTe(t).length, CTe = (t) => { +}, Nk = (t) => STe(t).length, ETe = (t) => { for (const e in t) return !1; return !0; -}, ETe = (t, e) => { +}, _Te = (t, e) => { for (const r in t) if (!e(t[r], r)) return !1; return !0; -}, Ite = (t, e) => Object.prototype.hasOwnProperty.call(t, e), _Te = (t, e) => t === e || Nk(t) === Nk(e) && ETe(t, (r, n) => (r !== void 0 || Ite(e, n)) && e[n] === r), PD = (t, e, r = 0) => { +}, Ite = (t, e) => Object.prototype.hasOwnProperty.call(t, e), ATe = (t, e) => t === e || Nk(t) === Nk(e) && _Te(t, (r, n) => (r !== void 0 || Ite(e, n)) && e[n] === r), PD = (t, e, r = 0) => { try { for (; r < t.length; r++) t[r](...e); } finally { r < t.length && PD(t, e, r + 1); } -}, ATe = (t) => t, LTe = (t, e) => t === e, By = (t, e) => { +}, LTe = (t) => t, RTe = (t, e) => t === e, By = (t, e) => { if (t == null || e == null) - return LTe(t, e); + return RTe(t, e); if (t.constructor !== e.constructor) return !1; if (t === e) @@ -16394,10 +16394,10 @@ const Nte = Pte, xTe = (t) => DD || addEventListener("storage", t), wTe = (t) => return !1; } return !0; -}, RTe = (t, e) => e.includes(t), bm = typeof process < "u" && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]", $te = typeof window < "u" && typeof document < "u" && !bm; +}, MTe = (t, e) => e.includes(t), bm = typeof process < "u" && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]", $te = typeof window < "u" && typeof document < "u" && !bm; typeof navigator < "u" && /Mac/.test(navigator.platform); let Sc; -const MTe = () => { +const DTe = () => { if (Sc === void 0) if (bm) { Sc = ql(); @@ -16416,40 +16416,40 @@ const MTe = () => { } })) : Sc = ql(); return Sc; -}, Q8 = (t) => MTe().has(t), U8 = (t) => dQ(bm ? {}[t.toUpperCase()] : Nte.getItem(t)), DTe = (t) => Q8("--" + t) || U8(t) !== null; -DTe("production"); -const pQ = bm && RTe({}.FORCE_COLOR, ["true", "1", "2"]), PTe = !Q8("no-colors") && (!bm || process.stdout.isTTY || pQ) && (!bm || Q8("color") || pQ || U8("COLORTERM") !== null || (U8("TERM") || "").includes("color")), Bte = (t) => new Uint8Array(t), NTe = (t, e, r) => new Uint8Array(t, e, r), ITe = (t) => new Uint8Array(t), $Te = (t) => { +}, Q8 = (t) => DTe().has(t), U8 = (t) => dQ(bm ? {}[t.toUpperCase()] : Nte.getItem(t)), PTe = (t) => Q8("--" + t) || U8(t) !== null; +PTe("production"); +const pQ = bm && MTe({}.FORCE_COLOR, ["true", "1", "2"]), NTe = !Q8("no-colors") && (!bm || process.stdout.isTTY || pQ) && (!bm || Q8("color") || pQ || U8("COLORTERM") !== null || (U8("TERM") || "").includes("color")), Bte = (t) => new Uint8Array(t), ITe = (t, e, r) => new Uint8Array(t, e, r), $Te = (t) => new Uint8Array(t), BTe = (t) => { let e = ""; for (let r = 0; r < t.byteLength; r++) - e += qSe(t[r]); + e += YSe(t[r]); return btoa(e); -}, BTe = (t) => Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), FTe = (t) => { +}, FTe = (t) => Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), zTe = (t) => { const e = atob(t), r = Bte(e.length); for (let n = 0; n < e.length; n++) r[n] = e.charCodeAt(n); return r; -}, zTe = (t) => { +}, QTe = (t) => { const e = Buffer.from(t, "base64"); - return NTe(e.buffer, e.byteOffset, e.byteLength); -}, QTe = $te ? $Te : BTe, UTe = $te ? FTe : zTe, VTe = (t) => { + return ITe(e.buffer, e.byteOffset, e.byteLength); +}, UTe = $te ? BTe : FTe, VTe = $te ? zTe : QTe, qTe = (t) => { const e = Bte(t.byteLength); return e.set(t), e; }; -class qTe { +class YTe { constructor(e, r) { this.left = e, this.right = r; } } -const xo = (t, e) => new qTe(t, e), YTe = (t, e) => t.forEach((r) => e(r.left, r.right)), vu = typeof document < "u" ? document : {}, WTe = (t) => vu.createElement(t), GTe = () => vu.createDocumentFragment(), XTe = (t) => vu.createTextNode(t); +const xo = (t, e) => new YTe(t, e), WTe = (t, e) => t.forEach((r) => e(r.left, r.right)), vu = typeof document < "u" ? document : {}, GTe = (t) => vu.createElement(t), XTe = () => vu.createDocumentFragment(), HTe = (t) => vu.createTextNode(t); typeof DOMParser < "u" && new DOMParser(); -const HTe = (t, e) => (YTe(e, (r, n) => { +const ZTe = (t, e) => (WTe(e, (r, n) => { n === !1 ? t.removeAttribute(r) : n === !0 ? t.setAttribute(r, "") : t.setAttribute(r, n); -}), t), ZTe = (t) => { - const e = GTe(); +}), t), jTe = (t) => { + const e = XTe(); for (let r = 0; r < t.length; r++) Fte(e, t[r]); return e; -}, jTe = (t, e) => (Fte(t, ZTe(e)), t), Y_ = (t, e = [], r = []) => jTe(HTe(WTe(t), e), r), EO = XTe, KTe = (t) => $Se(t, (e, r) => `${r}:${e};`).join(""), Fte = (t, e) => t.appendChild(e); +}, KTe = (t, e) => (Fte(t, jTe(e)), t), Y_ = (t, e = [], r = []) => KTe(ZTe(GTe(t), e), r), EO = HTe, JTe = (t) => BSe(t, (e, r) => `${r}:${e};`).join(""), Fte = (t, e) => t.appendChild(e); vu.ELEMENT_NODE; vu.TEXT_NODE; vu.CDATA_SECTION_NODE; @@ -16457,7 +16457,7 @@ vu.COMMENT_NODE; vu.DOCUMENT_NODE; vu.DOCUMENT_TYPE_NODE; vu.DOCUMENT_FRAGMENT_NODE; -const Rh = Symbol, zte = Rh(), Qte = Rh(), JTe = Rh(), eCe = Rh(), tCe = Rh(), Ute = Rh(), rCe = Rh(), ND = Rh(), nCe = Rh(), iCe = (t) => { +const Rh = Symbol, zte = Rh(), Qte = Rh(), eCe = Rh(), tCe = Rh(), rCe = Rh(), Ute = Rh(), nCe = Rh(), ND = Rh(), iCe = Rh(), sCe = (t) => { const e = []; let r = 0; for (; r < t.length; r++) { @@ -16465,25 +16465,25 @@ const Rh = Symbol, zte = Rh(), Qte = Rh(), JTe = Rh(), eCe = Rh(), tCe = Rh(), U n.constructor === String || n.constructor === Number || n.constructor === Object && e.push(JSON.stringify(n)); } return e; -}, sCe = { +}, aCe = { [zte]: xo("font-weight", "bold"), [Qte]: xo("font-weight", "normal"), - [JTe]: xo("color", "blue"), - [tCe]: xo("color", "green"), - [eCe]: xo("color", "grey"), + [eCe]: xo("color", "blue"), + [rCe]: xo("color", "green"), + [tCe]: xo("color", "grey"), [Ute]: xo("color", "red"), - [rCe]: xo("color", "purple"), + [nCe]: xo("color", "purple"), [ND]: xo("color", "orange"), - [nCe]: xo("color", "black") -}, aCe = (t) => { + [iCe]: xo("color", "black") +}, oCe = (t) => { const e = [], r = [], n = ql(); let i = [], s = 0; for (; s < t.length; s++) { - const a = t[s], o = sCe[a]; + const a = t[s], o = aCe[a]; if (o !== void 0) n.set(o.left, o.right); else if (a.constructor === String || a.constructor === Number) { - const l = KTe(n); + const l = JTe(n); s > 0 || l.length > 0 ? (e.push("%c" + a), r.push(l)) : e.push(a); } else break; @@ -16493,16 +16493,16 @@ const Rh = Symbol, zte = Rh(), Qte = Rh(), JTe = Rh(), eCe = Rh(), tCe = Rh(), U a instanceof Symbol || i.push(a); } return i; -}, Vte = PTe ? aCe : iCe, oCe = (...t) => { +}, Vte = NTe ? oCe : sCe, lCe = (...t) => { console.log(...Vte(t)), qte.forEach((e) => e.print(t)); -}, lCe = (...t) => { +}, cCe = (...t) => { console.warn(...Vte(t)), t.unshift(ND), qte.forEach((e) => e.print(t)); }, qte = P0(), Yte = (t) => ({ [Symbol.iterator]() { return this; }, next: t -}), cCe = (t, e) => Yte(() => { +}), uCe = (t, e) => Yte(() => { let r; do r = t.next(); @@ -16528,7 +16528,7 @@ const xm = (t, e, r) => e.clients.forEach((n, i) => { const o = n[a]; are(t, s, o.clock, o.len, r); } -}), uCe = (t, e) => { +}), hCe = (t, e) => { let r = 0, n = t.length - 1; for (; r <= n; ) { const i = fh((r + n) / 2), s = t[i], a = s.clock; @@ -16542,14 +16542,14 @@ const xm = (t, e, r) => e.clients.forEach((n, i) => { return null; }, qx = (t, e) => { const r = t.clients.get(e.client); - return r !== void 0 && uCe(r, e.clock) !== null; + return r !== void 0 && hCe(r, e.clock) !== null; }, $D = (t) => { t.clients.forEach((e) => { e.sort((i, s) => i.clock - s.clock); let r, n; for (r = 1, n = 1; r < e.length; r++) { const i = e[n - 1], s = e[r]; - i.clock + i.len >= s.clock ? i.len = pd(i.len, s.clock + s.len - i.clock) : (n < r && (e[n] = s), n++); + i.clock + i.len >= s.clock ? i.len = gd(i.len, s.clock + s.len - i.clock) : (n < r && (e[n] = s), n++); } e.length = n; }); @@ -16560,14 +16560,14 @@ const xm = (t, e, r) => e.clients.forEach((n, i) => { if (!e.clients.has(i)) { const s = n.slice(); for (let a = r + 1; a < t.length; a++) - FSe(s, t[a].clients.get(i) || []); + zSe(s, t[a].clients.get(i) || []); e.clients.set(i, s); } }); return $D(e), e; }, D2 = (t, e, r, n) => { Lh(t.clients, e, () => []).push(new ID(r, n)); -}, Wte = () => new S1(), hCe = (t) => { +}, Wte = () => new S1(), fCe = (t) => { const e = Wte(); return t.clients.forEach((r, n) => { const i = []; @@ -16585,7 +16585,7 @@ const xm = (t, e, r) => e.clients.forEach((n, i) => { i.length > 0 && e.clients.set(n, i); }), e; }, T1 = (t, e) => { - rr(t.restEncoder, e.clients.size), zf(e.clients.entries()).sort((r, n) => n[0] - r[0]).forEach(([r, n]) => { + rr(t.restEncoder, e.clients.size), Qf(e.clients.entries()).sort((r, n) => n[0] - r[0]).forEach(([r, n]) => { t.resetDsCurVal(), rr(t.restEncoder, r); const i = n.length; rr(t.restEncoder, i); @@ -16629,7 +16629,7 @@ const xm = (t, e, r) => e.clients.forEach((n, i) => { return null; }, Gte = Dte; class C1 extends GT { - constructor({ guid: e = yTe(), collectionid: r = null, gc: n = !0, gcFilter: i = () => !0, meta: s = null, autoLoad: a = !1, shouldLoad: o = !0 } = {}) { + constructor({ guid: e = bTe(), collectionid: r = null, gc: n = !0, gcFilter: i = () => !0, meta: s = null, autoLoad: a = !1, shouldLoad: o = !0 } = {}) { super(), this.gc = n, this.gcFilter = i, this.clientID = Gte(), this.guid = e, this.collectionid = r, this.share = /* @__PURE__ */ new Map(), this.store = new ire(), this._transaction = null, this._transactionCleanups = [], this.subdocs = /* @__PURE__ */ new Set(), this._item = null, this.shouldLoad = o, this.autoLoad = a, this.meta = s, this.isLoaded = !1, this.isSynced = !1, this.whenLoaded = fQ((u) => { this.on("load", () => { this.isLoaded = !0, u(this); @@ -16655,7 +16655,7 @@ class C1 extends GT { return this.subdocs; } getSubdocGuids() { - return new Set(zf(this.subdocs).map((e) => e.guid)); + return new Set(Qf(this.subdocs).map((e) => e.guid)); } transact(e, r = null) { return gn(this, e, r); @@ -16698,7 +16698,7 @@ class C1 extends GT { }), e; } destroy() { - zf(this.subdocs).forEach((r) => r.destroy()); + Qf(this.subdocs).forEach((r) => r.destroy()); const e = this._item; if (e !== null) { this._item = null; @@ -16744,7 +16744,7 @@ class Hte extends Xte { return ym(this.restDecoder); } readString() { - return kf(this.restDecoder); + return Sf(this.restDecoder); } readParentInfo() { return wr(this.restDecoder) === 1; @@ -16759,16 +16759,16 @@ class Hte extends Xte { return M2(this.restDecoder); } readBuf() { - return VTe(Ys(this.restDecoder)); + return qTe(Ys(this.restDecoder)); } readJSON() { - return JSON.parse(kf(this.restDecoder)); + return JSON.parse(Sf(this.restDecoder)); } readKey() { - return kf(this.restDecoder); + return Sf(this.restDecoder); } } -class fCe { +class dCe { constructor(e) { this.dsCurrVal = 0, this.restDecoder = e; } @@ -16783,9 +16783,9 @@ class fCe { return this.dsCurrVal += e, e; } } -class wm extends fCe { +class wm extends dCe { constructor(e) { - super(e), this.keys = [], wr(e), this.keyClockDecoder = new q_(Ys(e)), this.clientDecoder = new h5(Ys(e)), this.leftClockDecoder = new q_(Ys(e)), this.rightClockDecoder = new q_(Ys(e)), this.infoDecoder = new hQ(Ys(e), ym), this.stringDecoder = new gTe(Ys(e)), this.parentInfoDecoder = new hQ(Ys(e), ym), this.typeRefDecoder = new h5(Ys(e)), this.lenDecoder = new h5(Ys(e)); + super(e), this.keys = [], wr(e), this.keyClockDecoder = new q_(Ys(e)), this.clientDecoder = new h5(Ys(e)), this.leftClockDecoder = new q_(Ys(e)), this.rightClockDecoder = new q_(Ys(e)), this.infoDecoder = new hQ(Ys(e), ym), this.stringDecoder = new mTe(Ys(e)), this.parentInfoDecoder = new hQ(Ys(e), ym), this.typeRefDecoder = new h5(Ys(e)), this.lenDecoder = new h5(Ys(e)); } readLeftID() { return new $g(this.clientDecoder.read(), this.leftClockDecoder.read()); @@ -16904,7 +16904,7 @@ class jte { } class N0 extends jte { constructor() { - super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new V_(), this.clientEncoder = new u5(), this.leftClockEncoder = new V_(), this.rightClockEncoder = new V_(), this.infoEncoder = new lQ(F8), this.stringEncoder = new aTe(), this.parentInfoEncoder = new lQ(F8), this.typeRefEncoder = new u5(), this.lenEncoder = new u5(); + super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new V_(), this.clientEncoder = new u5(), this.leftClockEncoder = new V_(), this.rightClockEncoder = new V_(), this.infoEncoder = new lQ(F8), this.stringEncoder = new oTe(), this.parentInfoEncoder = new lQ(F8), this.typeRefEncoder = new u5(), this.lenEncoder = new u5(); } toUint8Array() { const e = Ws(); @@ -16948,8 +16948,8 @@ class N0 extends jte { r === void 0 ? (this.keyClockEncoder.write(this.keyClock++), this.stringEncoder.write(e)) : this.keyClockEncoder.write(r); } } -const dCe = (t, e, r, n) => { - n = pd(n, e[0].id.clock); +const pCe = (t, e, r, n) => { + n = gd(n, e[0].id.clock); const i = au(e, n); rr(t.restEncoder, e.length - i), t.writeClient(r), rr(t.restEncoder, n); const s = e[i]; @@ -16962,10 +16962,10 @@ const dCe = (t, e, r, n) => { gi(e, s) > i && n.set(s, i); }), KT(e).forEach((i, s) => { r.has(s) || n.set(s, 0); - }), rr(t.restEncoder, n.size), zf(n.entries()).sort((i, s) => s[0] - i[0]).forEach(([i, s]) => { - dCe(t, e.clients.get(i), i, s); + }), rr(t.restEncoder, n.size), Qf(n.entries()).sort((i, s) => s[0] - i[0]).forEach(([i, s]) => { + pCe(t, e.clients.get(i), i, s); }); -}, pCe = (t, e) => { +}, gCe = (t, e) => { const r = ql(), n = wr(t.restDecoder); for (let i = 0; i < n; i++) { const s = wr(t.restDecoder), a = new Array(s), o = t.readClient(); @@ -17001,9 +17001,9 @@ const dCe = (t, e, r, n) => { } } return r; -}, gCe = (t, e, r) => { +}, mCe = (t, e, r) => { const n = []; - let i = zf(r.keys()).sort((p, g) => p - g); + let i = Qf(r.keys()).sort((p, g) => p - g); if (i.length === 0) return null; const s = () => { @@ -17067,10 +17067,10 @@ const dCe = (t, e, r, n) => { return FD(p, o, /* @__PURE__ */ new Map()), rr(p.restEncoder, 0), { missing: l, update: p.toUint8Array() }; } return null; -}, mCe = (t, e) => FD(t, e.doc.store, e.beforeState), vCe = (t, e, r, n = new wm(t)) => gn(e, (i) => { +}, vCe = (t, e) => FD(t, e.doc.store, e.beforeState), yCe = (t, e, r, n = new wm(t)) => gn(e, (i) => { i.local = !1; let s = !1; - const a = i.doc, o = a.store, l = pCe(n, a), u = gCe(i, o, l), h = o.pendingStructs; + const a = i.doc, o = a.store, l = gCe(n, a), u = mCe(i, o, l), h = o.pendingStructs; if (h) { for (const [d, p] of h.missing) if (p < gi(o, d)) { @@ -17088,7 +17088,7 @@ const dCe = (t, e, r, n) => { o.pendingStructs = u; const f = gQ(n, i, o); if (o.pendingDs) { - const d = new wm(gd(o.pendingDs)); + const d = new wm(md(o.pendingDs)); wr(d.restDecoder); const p = gQ(d, i, o); f && p ? o.pendingDs = $k([f, p]) : o.pendingDs = f || p; @@ -17099,37 +17099,37 @@ const dCe = (t, e, r, n) => { o.pendingStructs = null, Kte(i.doc, d); } }, r, !1), Kte = (t, e, r, n = wm) => { - const i = gd(e); - vCe(i, t, r, new n(i)); -}, yCe = (t, e, r) => Kte(t, e, r, Hte), bCe = (t, e, r = /* @__PURE__ */ new Map()) => { - FD(t, e.store, r), T1(t, hCe(e.store)); -}, xCe = (t, e = new Uint8Array([0]), r = new N0()) => { + const i = md(e); + yCe(i, t, r, new n(i)); +}, bCe = (t, e, r) => Kte(t, e, r, Hte), xCe = (t, e, r = /* @__PURE__ */ new Map()) => { + FD(t, e.store, r), T1(t, fCe(e.store)); +}, wCe = (t, e = new Uint8Array([0]), r = new N0()) => { const n = Jte(e); - bCe(r, t, n); + xCe(r, t, n); const i = [r.toUint8Array()]; - if (t.store.pendingDs && i.push(t.store.pendingDs), t.store.pendingStructs && i.push(zCe(t.store.pendingStructs.update, e)), i.length > 1) { + if (t.store.pendingDs && i.push(t.store.pendingDs), t.store.pendingStructs && i.push(QCe(t.store.pendingStructs.update, e)), i.length > 1) { if (r.constructor === Yx) - return BCe(i.map((s, a) => a === 0 ? s : UCe(s))); + return FCe(i.map((s, a) => a === 0 ? s : VCe(s))); if (r.constructor === N0) return $k(i); } return i[0]; -}, wCe = (t, e) => xCe(t, e, new Yx()), OCe = (t) => { +}, OCe = (t, e) => wCe(t, e, new Yx()), kCe = (t) => { const e = /* @__PURE__ */ new Map(), r = wr(t.restDecoder); for (let n = 0; n < r; n++) { const i = wr(t.restDecoder), s = wr(t.restDecoder); e.set(i, s); } return e; -}, Jte = (t) => OCe(new Xte(gd(t))), ere = (t, e) => (rr(t.restEncoder, e.size), zf(e.entries()).sort((r, n) => n[0] - r[0]).forEach(([r, n]) => { +}, Jte = (t) => kCe(new Xte(md(t))), ere = (t, e) => (rr(t.restEncoder, e.size), Qf(e.entries()).sort((r, n) => n[0] - r[0]).forEach(([r, n]) => { rr(t.restEncoder, r), rr(t.restEncoder, n); -}), t), kCe = (t, e) => ere(t, KT(e.store)), SCe = (t, e = new jte()) => (t instanceof Map ? ere(e, t) : kCe(e, t), e.toUint8Array()), TCe = (t) => SCe(t, new Zte()); -class CCe { +}), t), SCe = (t, e) => ere(t, KT(e.store)), TCe = (t, e = new jte()) => (t instanceof Map ? ere(e, t) : SCe(e, t), e.toUint8Array()), CCe = (t) => TCe(t, new Zte()); +class ECe { constructor() { this.l = []; } } -const mQ = () => new CCe(), vQ = (t, e) => t.l.push(e), yQ = (t, e) => { +const mQ = () => new ECe(), vQ = (t, e) => t.l.push(e), yQ = (t, e) => { const r = t.l, n = r.length; t.l = r.filter((i) => e !== i), n === t.l.length && console.error("[yjs] Tried to remove event handler that doesn't exist."); }, tre = (t, e, r) => PD(t.l, [e, r]); @@ -17160,12 +17160,12 @@ const bQ = (t) => { const e = {}; return t.type && (e.type = t.type), t.tname && (e.tname = t.tname), t.item && (e.item = t.item), t.assoc != null && (e.assoc = t.assoc), e; }, P2 = (t) => new nre(t.type == null ? null : Cr(t.type.client, t.type.clock), t.tname || null, t.item == null ? null : Cr(t.item.client, t.item.clock), t.assoc == null ? 0 : t.assoc); -class ECe { +class _Ce { constructor(e, r, n = 0) { this.type = e, this.index = r, this.assoc = n; } } -const _Ce = (t, e, r = 0) => new ECe(t, e, r), _O = (t, e, r) => { +const ACe = (t, e, r = 0) => new _Ce(t, e, r), _O = (t, e, r) => { let n = null, i = null; return t._item === null ? i = rre(t) : n = Cr(t._item.id.client, t._item.id.clock), new nre(n, i, e, r); }, q8 = (t, e, r = 0) => { @@ -17216,15 +17216,15 @@ const _Ce = (t, e, r = 0) => new ECe(t, e, r), _O = (t, e, r) => { throw ic(); a >= 0 ? l = o._length : l = 0; } - return _Ce(o, l, t.assoc); + return ACe(o, l, t.assoc); }, xQ = (t, e) => t === e || t !== null && e !== null && t.tname === e.tname && yg(t.item, e.item) && yg(t.type, e.type) && t.assoc === e.assoc; -class ACe { +class LCe { constructor(e, r) { this.ds = e, this.sv = r; } } -const LCe = (t, e) => new ACe(t, e); -LCe(Wte(), /* @__PURE__ */ new Map()); +const RCe = (t, e) => new LCe(t, e); +RCe(Wte(), /* @__PURE__ */ new Map()); const lg = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && (e.sv.get(t.id.client) || 0) > t.id.clock && !qx(e.ds, t.id), W8 = (t, e) => { const r = Lh(t.meta, W8, P0), n = t.doc.store; r.has(e) || (e.sv.forEach((i, s) => { @@ -17274,10 +17274,10 @@ const KT = (t) => { a = fh((r + n) / 2); } throw ic(); -}, RCe = (t, e) => { +}, MCe = (t, e) => { const r = t.clients.get(e.client); return r[au(r, e.clock)]; -}, f5 = RCe, G8 = (t, e, r) => { +}, f5 = MCe, G8 = (t, e, r) => { const n = au(e, r), i = e[n]; return i.id.clock < r && i instanceof mn ? (e.splice(n + 1, 0, Vk(t, i, r - i.id.clock)), n + 1) : n; }, Ha = (t, e) => { @@ -17286,7 +17286,7 @@ const KT = (t) => { }, wQ = (t, e, r) => { const n = e.clients.get(r.client), i = au(n, r.clock), s = n[i]; return r.clock !== s.id.clock + s.length - 1 && s.constructor !== Zo && n.splice(i + 1, 0, Vk(t, s, r.clock - s.id.clock + 1)), s; -}, MCe = (t, e, r) => { +}, DCe = (t, e, r) => { const n = t.clients.get(e.id.client); n[au(n, e.id.clock)] = r; }, are = (t, e, r, n, i) => { @@ -17298,12 +17298,12 @@ const KT = (t) => { o = e[a++], s < o.id.clock + o.length && G8(t, e, s), i(o); while (a < e.length && e[a].id.clock < s); }; -class DCe { +class PCe { constructor(e, r, n) { this.doc = e, this.deleteSet = new S1(), this.beforeState = KT(e.store), this.afterState = /* @__PURE__ */ new Map(), this.changed = /* @__PURE__ */ new Map(), this.changedParentTypes = /* @__PURE__ */ new Map(), this._mergeStructs = [], this.origin = r, this.meta = /* @__PURE__ */ new Map(), this.local = n, this.subdocsAdded = /* @__PURE__ */ new Set(), this.subdocsRemoved = /* @__PURE__ */ new Set(), this.subdocsLoaded = /* @__PURE__ */ new Set(), this._needFormattingCleanup = !1; } } -const OQ = (t, e) => e.deleteSet.clients.size === 0 && !BSe(e.afterState, (r, n) => e.beforeState.get(n) !== r) ? !1 : ($D(e.deleteSet), mCe(t, e), T1(t, e.deleteSet), !0), kQ = (t, e, r) => { +const OQ = (t, e) => e.deleteSet.clients.size === 0 && !FSe(e.afterState, (r, n) => e.beforeState.get(n) !== r) ? !1 : ($D(e.deleteSet), vCe(t, e), T1(t, e.deleteSet), !0), kQ = (t, e, r) => { const n = e._item; (n === null || n.id.clock < (t.beforeState.get(n.id.client) || 0) && !n.deleted) && Lh(t.changed, e, P0).add(r); }, d5 = (t, e) => { @@ -17317,7 +17317,7 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !BSe(e.afterState, (r, n) } const s = e - i; return s && t.splice(e + 1 - s, s), s; -}, PCe = (t, e, r) => { +}, NCe = (t, e, r) => { for (const [n, i] of t.clients.entries()) { const s = e.clients.get(n); for (let a = i.length - 1; a >= 0; a--) { @@ -17330,7 +17330,7 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !BSe(e.afterState, (r, n) } } } -}, NCe = (t, e) => { +}, ICe = (t, e) => { t.clients.forEach((r, n) => { const i = e.clients.get(n); for (let s = r.length - 1; s >= 0; s--) { @@ -17357,12 +17357,12 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !BSe(e.afterState, (r, n) h.currentTarget = u, h._path = null; }), l.sort((h, f) => h.path.length - f.path.length), tre(u._dEH, l, r)); }); - }), o.push(() => n.emit("afterTransaction", [r, n])), PD(o, []), r._needFormattingCleanup && rEe(r); + }), o.push(() => n.emit("afterTransaction", [r, n])), PD(o, []), r._needFormattingCleanup && nEe(r); } finally { - n.gc && PCe(s, i, n.gcFilter), NCe(s, i), r.afterState.forEach((h, f) => { + n.gc && NCe(s, i, n.gcFilter), ICe(s, i), r.afterState.forEach((h, f) => { const d = r.beforeState.get(f) || 0; if (d !== h) { - const p = i.clients.get(f), g = pd(au(p, d), 1); + const p = i.clients.get(f), g = gd(au(p, d), 1); for (let m = p.length - 1; m >= g; ) m -= 1 + d5(p, m); } @@ -17371,7 +17371,7 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !BSe(e.afterState, (r, n) const { client: f, clock: d } = a[h].id, p = i.clients.get(f), g = au(p, d); g + 1 < p.length && d5(p, g + 1) > 1 || g > 0 && d5(p, g); } - if (!r.local && r.afterState.get(n.clientID) !== r.beforeState.get(n.clientID) && (oCe(ND, zte, "[yjs] ", Qte, Ute, "Changed the client-id because another client seems to be using it."), n.clientID = Gte()), n.emit("afterTransactionCleanup", [r, n]), n._observers.has("update")) { + if (!r.local && r.afterState.get(n.clientID) !== r.beforeState.get(n.clientID) && (lCe(ND, zte, "[yjs] ", Qte, Ute, "Changed the client-id because another client seems to be using it."), n.clientID = Gte()), n.emit("afterTransactionCleanup", [r, n]), n._observers.has("update")) { const h = new Yx(); OQ(h, r) && n.emit("update", [h.toUint8Array(), r.origin, n, r]); } @@ -17388,7 +17388,7 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !BSe(e.afterState, (r, n) }, gn = (t, e, r = null, n = !0) => { const i = t._transactionCleanups; let s = !1, a = null; - t._transaction === null && (s = !0, t._transaction = new DCe(t, r, n), i.push(t._transaction), i.length === 1 && t.emit("beforeAllTransactions", [t]), t.emit("beforeTransaction", [t._transaction, t])); + t._transaction === null && (s = !0, t._transaction = new PCe(t, r, n), i.push(t._transaction), i.length === 1 && t.emit("beforeAllTransactions", [t]), t.emit("beforeTransaction", [t._transaction, t])); try { a = e(t._transaction); } finally { @@ -17399,7 +17399,7 @@ const OQ = (t, e) => e.deleteSet.clients.size === 0 && !BSe(e.afterState, (r, n) } return a; }; -class ICe { +class $Ce { constructor(e, r) { this.insertions = r, this.deletions = e, this.meta = /* @__PURE__ */ new Map(); } @@ -17462,13 +17462,13 @@ class zD extends GT { const b = l.beforeState.get(y) || 0, w = v - b; w > 0 && D2(d, y, b, w); }); - const p = Uf(); + const p = Vf(); let g = !1; if (this.lastChange > 0 && p - this.lastChange < this.captureTimeout && f.length > 0 && !u && !h) { const v = f[f.length - 1]; v.deletions = V8([v.deletions, l.deleteSet]), v.insertions = V8([v.insertions, d]); } else - f.push(new ICe(l.deleteSet, d)), g = !0; + f.push(new $Ce(l.deleteSet, d)), g = !0; !u && !h && (this.lastChange = p), xm(l, l.deleteSet, (v) => { v instanceof mn && this.scope.some((y) => Ik(y, v)) && XD(v, !0); }); @@ -17480,7 +17480,7 @@ class zD extends GT { } addToScope(e) { e = $8(e) ? e : [e], e.forEach((r) => { - this.scope.every((n) => n !== r) && (r.doc !== this.doc && lCe("[yjs#509] Not same Y.Doc"), this.scope.push(r)); + this.scope.every((n) => n !== r) && (r.doc !== this.doc && cCe("[yjs#509] Not same Y.Doc"), this.scope.push(r)); }); } addTrackedOrigin(e) { @@ -17527,7 +17527,7 @@ class zD extends GT { this.trackedOrigins.delete(this), this.doc.off("afterTransaction", this.afterTransactionHandler), super.destroy(); } } -function* $Ce(t) { +function* BCe(t) { const e = wr(t.restDecoder); for (let r = 0; r < e; r++) { const n = wr(t.restDecoder), i = t.readClient(); @@ -17558,7 +17558,7 @@ function* $Ce(t) { } class QD { constructor(e, r) { - this.gen = $Ce(e), this.curr = null, this.done = !1, this.filterSkips = r, this.next(); + this.gen = BCe(e), this.curr = null, this.done = !1, this.filterSkips = r, this.next(); } next() { do @@ -17572,7 +17572,7 @@ class UD { this.currClient = 0, this.startClock = 0, this.written = 0, this.encoder = e, this.clientStructs = []; } } -const BCe = (t) => $k(t, Hte, Yx), FCe = (t, e) => { +const FCe = (t) => $k(t, Hte, Yx), zCe = (t, e) => { if (t.constructor === Zo) { const { client: r, clock: n } = t.id; return new Zo(Cr(r, n + e), t.length - e); @@ -17595,7 +17595,7 @@ const BCe = (t) => $k(t, Hte, Yx), FCe = (t, e) => { }, $k = (t, e = wm, r = N0) => { if (t.length === 1) return t[0]; - const n = t.map((h) => new e(gd(h))); + const n = t.map((h) => new e(md(h))); let i = n.map((h) => new QD(h, !0)), s = null; const a = new r(), o = new UD(a); for (; i = i.filter((d) => d.curr !== null), i.sort( @@ -17615,29 +17615,29 @@ const BCe = (t) => $k(t, Hte, Yx), FCe = (t, e) => { if (d === null || d.id.client !== f || p && d.id.clock > s.struct.id.clock + s.struct.length) continue; if (f !== s.struct.id.client) - tf(o, s.struct, s.offset), s = { struct: d, offset: 0 }, h.next(); + rf(o, s.struct, s.offset), s = { struct: d, offset: 0 }, h.next(); else if (s.struct.id.clock + s.struct.length < d.id.clock) if (s.struct.constructor === jo) s.struct.length = d.id.clock + d.length - s.struct.id.clock; else { - tf(o, s.struct, s.offset); + rf(o, s.struct, s.offset); const g = d.id.clock - s.struct.id.clock - s.struct.length; s = { struct: new jo(Cr(f, s.struct.id.clock + s.struct.length), g), offset: 0 }; } else { const g = s.struct.id.clock + s.struct.length - d.id.clock; - g > 0 && (s.struct.constructor === jo ? s.struct.length -= g : d = FCe(d, g)), s.struct.mergeWith(d) || (tf(o, s.struct, s.offset), s = { struct: d, offset: 0 }, h.next()); + g > 0 && (s.struct.constructor === jo ? s.struct.length -= g : d = zCe(d, g)), s.struct.mergeWith(d) || (rf(o, s.struct, s.offset), s = { struct: d, offset: 0 }, h.next()); } } else s = { struct: h.curr, offset: 0 }, h.next(); for (let d = h.curr; d !== null && d.id.client === f && d.id.clock === s.struct.id.clock + s.struct.length && d.constructor !== jo; d = h.next()) - tf(o, s.struct, s.offset), s = { struct: d, offset: 0 }; + rf(o, s.struct, s.offset), s = { struct: d, offset: 0 }; } - s !== null && (tf(o, s.struct, s.offset), s = null), VD(o); + s !== null && (rf(o, s.struct, s.offset), s = null), VD(o); const l = n.map((h) => BD(h)), u = V8(l); return T1(a, u), a.toUint8Array(); -}, zCe = (t, e, r = wm, n = N0) => { - const i = Jte(e), s = new n(), a = new UD(s), o = new r(gd(t)), l = new QD(o, !1); +}, QCe = (t, e, r = wm, n = N0) => { + const i = Jte(e), s = new n(), a = new UD(s), o = new r(md(t)), l = new QD(o, !1); for (; l.curr; ) { const h = l.curr, f = h.id.client, d = i.get(f) || 0; if (l.curr.constructor === jo) { @@ -17645,8 +17645,8 @@ const BCe = (t) => $k(t, Hte, Yx), FCe = (t, e) => { continue; } if (h.id.clock + h.length > d) - for (tf(a, h, pd(d - h.id.clock, 0)), l.next(); l.curr && l.curr.id.client === f; ) - tf(a, l.curr, 0), l.next(); + for (rf(a, h, gd(d - h.id.clock, 0)), l.next(); l.curr && l.curr.id.client === f; ) + rf(a, l.curr, 0), l.next(); else for (; l.curr && l.curr.id.client === f && l.curr.id.clock + l.curr.length <= d; ) l.next(); @@ -17656,7 +17656,7 @@ const BCe = (t) => $k(t, Hte, Yx), FCe = (t, e) => { return T1(s, u), s.toUint8Array(); }, lre = (t) => { t.written > 0 && (t.clientStructs.push({ written: t.written, restEncoder: Vn(t.encoder.restEncoder) }), t.encoder.restEncoder = Ws(), t.written = 0); -}, tf = (t, e, r) => { +}, rf = (t, e, r) => { t.written > 0 && t.currClient !== e.id.client && lre(t), t.written === 0 && (t.currClient = e.id.client, t.encoder.writeClient(e.id.client), rr(t.encoder.restEncoder, e.id.clock + r)), e.write(t.encoder, r), t.written++; }, VD = (t) => { lre(t); @@ -17666,20 +17666,20 @@ const BCe = (t) => $k(t, Hte, Yx), FCe = (t, e) => { const n = t.clientStructs[r]; rr(e, n.written), ZT(e, n.restEncoder); } -}, QCe = (t, e, r, n) => { - const i = new r(gd(t)), s = new QD(i, !1), a = new n(), o = new UD(a); +}, UCe = (t, e, r, n) => { + const i = new r(md(t)), s = new QD(i, !1), a = new n(), o = new UD(a); for (let u = s.curr; u !== null; u = s.next()) - tf(o, e(u), 0); + rf(o, e(u), 0); VD(o); const l = BD(i); return T1(a, l), a.toUint8Array(); -}, UCe = (t) => QCe(t, ATe, wm, Yx), CQ = "You must not compute changes after the event-handler fired."; +}, VCe = (t) => UCe(t, LTe, wm, Yx), CQ = "You must not compute changes after the event-handler fired."; class JT { constructor(e, r) { this.target = e, this.currentTarget = e, this.transaction = r, this._changes = null, this._keys = null, this._delta = null, this._path = null; } get path() { - return this._path || (this._path = VCe(this.currentTarget, this.target)); + return this._path || (this._path = qCe(this.currentTarget, this.target)); } deletes(e) { return qx(this.transaction.deleteSet, e.id); @@ -17687,7 +17687,7 @@ class JT { get keys() { if (this._keys === null) { if (this.transaction.doc._transactionCleanups.length === 0) - throw Qf(CQ); + throw Uf(CQ); const e = /* @__PURE__ */ new Map(), r = this.target; this.transaction.changed.get(r).forEach((i) => { if (i !== null) { @@ -17724,7 +17724,7 @@ class JT { let e = this._changes; if (e === null) { if (this.transaction.doc._transactionCleanups.length === 0) - throw Qf(CQ); + throw Uf(CQ); const r = this.target, n = P0(), i = P0(), s = []; if (e = { added: n, @@ -17745,7 +17745,7 @@ class JT { return e; } } -const VCe = (t, e) => { +const qCe = (t, e) => { const r = []; for (; e._item !== null && e !== t; ) { if (e._item.parentSub !== null) @@ -17761,21 +17761,21 @@ const VCe = (t, e) => { return r; }, cre = 80; let qD = 0; -class qCe { +class YCe { constructor(e, r) { e.marker = !0, this.p = e, this.index = r, this.timestamp = qD++; } } -const YCe = (t) => { +const WCe = (t) => { t.timestamp = qD++; }, ure = (t, e, r) => { t.p.marker = !1, t.p = e, e.marker = !0, t.index = r, t.timestamp = qD++; -}, WCe = (t, e, r) => { +}, GCe = (t, e, r) => { if (t.length >= cre) { const n = t.reduce((i, s) => i.timestamp < s.timestamp ? i : s); return ure(n, e, r), n; } else { - const n = new qCe(e, r); + const n = new YCe(e, r); return t.push(n), n; } }, eC = (t, e) => { @@ -17783,7 +17783,7 @@ const YCe = (t) => { return null; const r = t._searchMarker.length === 0 ? null : t._searchMarker.reduce((s, a) => c5(e - s.index) < c5(e - a.index) ? s : a); let n = t._start, i = 0; - for (r !== null && (n = r.p, i = r.index, YCe(r)); n.right !== null && i < e; ) { + for (r !== null && (n = r.p, i = r.index, WCe(r)); n.right !== null && i < e; ) { if (!n.deleted && n.countable) { if (e < i + n.length) break; @@ -17795,7 +17795,7 @@ const YCe = (t) => { n = n.left, !n.deleted && n.countable && (i -= n.length); for (; n.left !== null && n.left.id.client === n.id.client && n.left.id.clock + n.left.length === n.id.clock; ) n = n.left, !n.deleted && n.countable && (i -= n.length); - return r !== null && c5(r.index - i) < n.parent.length / cre ? (ure(r, n, i), r) : WCe(t._searchMarker, n, i); + return r !== null && c5(r.index - i) < n.parent.length / cre ? (ure(r, n, i), r) : GCe(t._searchMarker, n, i); }, N2 = (t, e, r) => { for (let n = t.length - 1; n >= 0; n--) { const i = t[n]; @@ -17809,7 +17809,7 @@ const YCe = (t) => { } i.p = s, s.marker = !0; } - (e < i.index || r > 0 && e === i.index) && (i.index = pd(e, i.index + r)); + (e < i.index || r > 0 && e === i.index) && (i.index = gd(e, i.index + r)); } }, tC = (t, e, r) => { const n = t, i = e.changedParentTypes; @@ -17905,7 +17905,7 @@ const hre = (t, e, r) => { return I2(t, (n, i) => { r.push(e(n, i, t)); }), r; -}, GCe = (t) => { +}, XCe = (t) => { let e = t._start, r = null, n = 0; return { [Symbol.iterator]() { @@ -17974,7 +17974,7 @@ const hre = (t, e, r) => { } } }), h(); -}, gre = () => Qf("Length exceeded!"), mre = (t, e, r, n) => { +}, gre = () => Uf("Length exceeded!"), mre = (t, e, r, n) => { if (r > e._length) throw gre(); if (r === 0) @@ -17990,7 +17990,7 @@ const hre = (t, e, r) => { r -= a.length; } return e._searchMarker && N2(e._searchMarker, i, n.length), Bk(t, e, a, n); -}, XCe = (t, e, r) => { +}, HCe = (t, e, r) => { let i = (e._searchMarker || []).reduce((s, a) => a.index > s.index ? a : s, { index: 0, p: e._start }).p; if (i) for (; i.right; ) @@ -18049,7 +18049,7 @@ const hre = (t, e, r) => { }, bre = (t, e) => { const r = t._map.get(e); return r !== void 0 && !r.deleted; -}, HCe = (t, e) => { +}, ZCe = (t, e) => { const r = {}; return t._map.forEach((n, i) => { let s = n; @@ -18057,8 +18057,8 @@ const hre = (t, e, r) => { s = s.left; s !== null && lg(s, e) && (r[i] = s.content.getContent()[s.length - 1]); }), r; -}, AO = (t) => cCe(t.entries(), (e) => !e[1].deleted); -class ZCe extends JT { +}, AO = (t) => uCe(t.entries(), (e) => !e[1].deleted); +class jCe extends JT { constructor(e, r) { super(e, r), this._transaction = r; } @@ -18087,7 +18087,7 @@ class Bg extends Cs { return this._prelimContent === null ? this._length : this._prelimContent.length; } _callObserver(e, r) { - super._callObserver(e, r), tC(this, e, new ZCe(this, e)); + super._callObserver(e, r), tC(this, e, new jCe(this, e)); } insert(e, r) { this.doc !== null ? gn(this.doc, (n) => { @@ -18096,7 +18096,7 @@ class Bg extends Cs { } push(e) { this.doc !== null ? gn(this.doc, (r) => { - XCe(r, this, e); + HCe(r, this, e); }) : this._prelimContent.push(...e); } unshift(e) { @@ -18126,14 +18126,14 @@ class Bg extends Cs { I2(this, e); } [Symbol.iterator]() { - return GCe(this); + return XCe(this); } _write(e) { - e.writeTypeRef(xEe); + e.writeTypeRef(wEe); } } -const jCe = (t) => new Bg(); -class KCe extends JT { +const KCe = (t) => new Bg(); +class JCe extends JT { constructor(e, r, n) { super(e, r), this.keysChanged = n; } @@ -18157,7 +18157,7 @@ class eh extends Cs { }), e; } _callObserver(e, r) { - tC(this, e, new KCe(this, e, r)); + tC(this, e, new JCe(this, e, r)); } toJSON() { const e = {}; @@ -18212,10 +18212,10 @@ class eh extends Cs { }) : this._prelimContent.clear(); } _write(e) { - e.writeTypeRef(wEe); + e.writeTypeRef(OEe); } } -const JCe = (t) => new eh(), hf = (t, e) => t === e || typeof t == "object" && typeof e == "object" && t && e && _Te(t, e); +const eEe = (t) => new eh(), ff = (t, e) => t === e || typeof t == "object" && typeof e == "object" && t && e && ATe(t, e); class X8 { constructor(e, r, n, i) { this.left = e, this.right = r, this.index = n, this.currentAttributes = i; @@ -18255,7 +18255,7 @@ const EQ = (t, e, r) => { return EQ(t, s, r); } }, xre = (t, e, r, n) => { - for (; r.right !== null && (r.right.deleted === !0 || r.right.content.constructor === Gi && hf(n.get(r.right.content.key), r.right.content.value)); ) + for (; r.right !== null && (r.right.deleted === !0 || r.right.content.constructor === Gi && ff(n.get(r.right.content.key), r.right.content.value)); ) r.right.deleted || n.delete(r.right.content.key), r.forward(); const i = t.doc, s = i.clientID; n.forEach((a, o) => { @@ -18267,7 +18267,7 @@ const EQ = (t, e, r) => { n === null ? t.delete(r) : t.set(r, n); }, wre = (t, e) => { for (; t.right !== null; ) { - if (!(t.right.deleted || t.right.content.constructor === Gi && hf(e[t.right.content.key] || null, t.right.content.value))) + if (!(t.right.deleted || t.right.content.constructor === Gi && ff(e[t.right.content.key] || null, t.right.content.value))) break; t.forward(); } @@ -18275,7 +18275,7 @@ const EQ = (t, e, r) => { const i = t.doc, s = i.clientID, a = /* @__PURE__ */ new Map(); for (const o in n) { const l = n[o], u = r.currentAttributes.get(o) || null; - if (!hf(u, l)) { + if (!ff(u, l)) { a.set(o, u); const { left: h, right: f } = r; r.right = new mn(Cr(s, gi(i.store, s)), h, h && h.lastId, f, f && f.id, e, null, new Gi(o, l)), r.right.integrate(t, 0), r.forward(); @@ -18302,7 +18302,7 @@ const EQ = (t, e, r) => { case Gi: { const { key: l, value: u } = r.right.content, h = i[l]; if (h !== void 0) { - if (hf(h, u)) + if (ff(h, u)) o.delete(l); else { if (n === 0) @@ -18353,7 +18353,7 @@ const EQ = (t, e, r) => { e = e.right; } return o; -}, eEe = (t, e) => { +}, tEe = (t, e) => { for (; e && e.right && (e.right.deleted || !e.right.countable); ) e = e.right; const r = /* @__PURE__ */ new Set(); @@ -18364,7 +18364,7 @@ const EQ = (t, e, r) => { } e = e.left; } -}, tEe = (t) => { +}, rEe = (t) => { let e = 0; return gn(t.doc, (r) => { let n = t._start, i = t._start, s = ql(); @@ -18382,7 +18382,7 @@ const EQ = (t, e, r) => { i = i.right; } }), e; -}, rEe = (t) => { +}, nEe = (t) => { const e = /* @__PURE__ */ new Set(), r = t.doc; for (const [n, i] of t.afterState.entries()) { const s = t.beforeState.get(n) || 0; @@ -18395,10 +18395,10 @@ const EQ = (t, e, r) => { if (i instanceof Zo || !i.parent._hasFormatting || e.has(i.parent)) return; const s = i.parent; - i.content.constructor === Gi ? e.add(s) : eEe(n, i); + i.content.constructor === Gi ? e.add(s) : tEe(n, i); }); for (const i of e) - tEe(i); + rEe(i); }); }, AQ = (t, e, r) => { const n = r, i = I8(e.currentAttributes), s = e.right; @@ -18417,7 +18417,7 @@ const EQ = (t, e, r) => { const a = (e.left || e.right).parent; return a._searchMarker && N2(a._searchMarker, e.index, -n + r), e; }; -class nEe extends JT { +class iEe extends JT { constructor(e, r, n) { super(e, r), this.childListChanged = !1, this.keysChanged = /* @__PURE__ */ new Set(), n.forEach((i) => { i === null ? this.childListChanged = !0 : this.keysChanged.add(i); @@ -18456,7 +18456,7 @@ class nEe extends JT { }))), u = ""; break; case "retain": - h > 0 && (p = { retain: h }, CTe(l) || (p.attributes = OTe({}, l))), h = 0; + h > 0 && (p = { retain: h }, ETe(l) || (p.attributes = kTe({}, l))), h = 0; break; } p && r.push(p), o = null; @@ -18476,16 +18476,16 @@ class nEe extends JT { if (this.adds(a)) { if (!this.deletes(a)) { const m = i.get(p) || null; - hf(m, g) ? g !== null && a.delete(n) : (o === "retain" && d(), hf(g, s.get(p) || null) ? delete l[p] : l[p] = g); + ff(m, g) ? g !== null && a.delete(n) : (o === "retain" && d(), ff(g, s.get(p) || null) ? delete l[p] : l[p] = g); } } else if (this.deletes(a)) { s.set(p, g); const m = i.get(p) || null; - hf(m, g) || (o === "retain" && d(), l[p] = m); + ff(m, g) || (o === "retain" && d(), l[p] = m); } else if (!a.deleted) { s.set(p, g); const m = l[p]; - m !== void 0 && (hf(m, g) ? m !== null && a.delete(n) : (o === "retain" && d(), g === null ? delete l[p] : l[p] = g)); + m !== void 0 && (ff(m, g) ? m !== null && a.delete(n) : (o === "retain" && d(), g === null ? delete l[p] : l[p] = g)); } a.deleted || (o === "insert" && d(), E1(i, a.content)); break; @@ -18530,7 +18530,7 @@ class Om extends Cs { } _callObserver(e, r) { super._callObserver(e, r); - const n = new nEe(this, e, r); + const n = new iEe(this, e, r); tC(this, e, n), !e.local && this._hasFormatting && (e._needFormattingCleanup = !0); } toString() { @@ -18658,10 +18658,10 @@ class Om extends Cs { return yre(this); } _write(e) { - e.writeTypeRef(OEe); + e.writeTypeRef(kEe); } } -const iEe = (t) => new Om(); +const sEe = (t) => new Om(); class X_ { constructor(e, r = () => !0) { this._filter = r, this._root = e, this._currentNode = e._start, this._firstCall = !0; @@ -18716,10 +18716,10 @@ class I0 extends Cs { return n.done ? null : n.value; } querySelectorAll(e) { - return e = e.toUpperCase(), zf(new X_(this, (r) => r.nodeName && r.nodeName.toUpperCase() === e)); + return e = e.toUpperCase(), Qf(new X_(this, (r) => r.nodeName && r.nodeName.toUpperCase() === e)); } _callObserver(e, r) { - tC(this, e, new oEe(this, r, e)); + tC(this, e, new lEe(this, r, e)); } toString() { return dre(this, (e) => e.toString()).join(""); @@ -18747,7 +18747,7 @@ class I0 extends Cs { else { const n = this._prelimContent, i = e === null ? 0 : n.findIndex((s) => s === e) + 1; if (i === 0 && e !== null) - throw Qf("Reference item not found"); + throw Uf("Reference item not found"); n.splice(i, 0, ...r); } } @@ -18775,10 +18775,10 @@ class I0 extends Cs { I2(this, e); } _write(e) { - e.writeTypeRef(SEe); + e.writeTypeRef(TEe); } } -const sEe = (t) => new I0(); +const aEe = (t) => new I0(); class $2 extends I0 { constructor(e = "UNDEFINED") { super(), this.nodeName = e, this._prelimAttrs = /* @__PURE__ */ new Map(); @@ -18801,7 +18801,7 @@ class $2 extends I0 { } clone() { const e = new $2(this.nodeName), r = this.getAttributes(); - return STe(r, (n, i) => { + return TTe(r, (n, i) => { typeof n == "string" && e.setAttribute(i, n); }), e.insert(0, this.toArray().map((n) => n instanceof Cs ? n.clone() : n)), e; } @@ -18835,7 +18835,7 @@ class $2 extends I0 { return bre(this, e); } getAttributes(e) { - return e ? HCe(this, e) : yre(this); + return e ? ZCe(this, e) : yre(this); } toDOM(e = document, r = {}, n) { const i = e.createElement(this.nodeName), s = this.getAttributes(); @@ -18848,11 +18848,11 @@ class $2 extends I0 { }), n !== void 0 && n._createAssociation(i, this), i; } _write(e) { - e.writeTypeRef(kEe), e.writeKey(this.nodeName); + e.writeTypeRef(SEe), e.writeKey(this.nodeName); } } -const aEe = (t) => new $2(t.readKey()); -class oEe extends JT { +const oEe = (t) => new $2(t.readKey()); +class lEe extends JT { constructor(e, r, n) { super(e, n), this.childListChanged = !1, this.attributesChanged = /* @__PURE__ */ new Set(), r.forEach((i) => { i === null ? this.childListChanged = !0 : this.attributesChanged.add(i); @@ -18878,10 +18878,10 @@ class zk extends eh { return i !== void 0 ? s = i.createDom(this) : s = document.createElement(this.hookName), s.setAttribute("data-yjs-hook", this.hookName), n !== void 0 && n._createAssociation(s, this), s; } _write(e) { - e.writeTypeRef(TEe), e.writeKey(this.hookName); + e.writeTypeRef(CEe), e.writeKey(this.hookName); } } -const lEe = (t) => new zk(t.readKey()); +const cEe = (t) => new zk(t.readKey()); class Qk extends Om { get nextSibling() { const e = this._item ? this._item.next : null; @@ -18932,10 +18932,10 @@ class Qk extends Om { return this.toString(); } _write(e) { - e.writeTypeRef(CEe); + e.writeTypeRef(EEe); } } -const cEe = (t) => new Qk(); +const uEe = (t) => new Qk(); class GD { constructor(e, r) { this.id = e, this.length = r; @@ -18953,7 +18953,7 @@ class GD { throw Jc(); } } -const uEe = 0; +const hEe = 0; class Zo extends GD { get deleted() { return !0; @@ -18967,7 +18967,7 @@ class Zo extends GD { r > 0 && (this.id.clock += r, this.length -= r), sre(e.doc.store, this); } write(e, r) { - e.writeInfo(uEe), e.writeLen(this.length - r); + e.writeInfo(hEe), e.writeLen(this.length - r); } getMissing(e, r) { return null; @@ -19008,7 +19008,7 @@ class Wx { return 3; } } -const hEe = (t) => new Wx(t.readBuf()); +const fEe = (t) => new Wx(t.readBuf()); class B2 { constructor(e) { this.len = e; @@ -19046,7 +19046,7 @@ class B2 { return 1; } } -const fEe = (t) => new B2(t.readLen()), Sre = (t, e) => new C1({ guid: t, ...e, shouldLoad: e.shouldLoad || e.autoLoad || !1 }); +const dEe = (t) => new B2(t.readLen()), Sre = (t, e) => new C1({ guid: t, ...e, shouldLoad: e.shouldLoad || e.autoLoad || !1 }); class Gx { constructor(e) { e._item && console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."), this.doc = e; @@ -19086,7 +19086,7 @@ class Gx { return 9; } } -const dEe = (t) => new Gx(Sre(t.readString(), t.readAny())); +const pEe = (t) => new Gx(Sre(t.readString(), t.readAny())); class bp { constructor(e) { this.embed = e; @@ -19122,7 +19122,7 @@ class bp { return 5; } } -const pEe = (t) => new bp(t.readJSON()); +const gEe = (t) => new bp(t.readJSON()); class Gi { constructor(e, r) { this.key = e, this.value = r; @@ -19160,7 +19160,7 @@ class Gi { return 6; } } -const gEe = (t) => new Gi(t.readKey(), t.readJSON()); +const mEe = (t) => new Gi(t.readKey(), t.readJSON()); class Uk { constructor(e) { this.arr = e; @@ -19202,7 +19202,7 @@ class Uk { return 2; } } -const mEe = (t) => { +const vEe = (t) => { const e = t.readLen(), r = []; for (let n = 0; n < e; n++) { const i = t.readString(); @@ -19251,7 +19251,7 @@ class $0 { return 8; } } -const vEe = (t) => { +const yEe = (t) => { const e = t.readLen(), r = []; for (let n = 0; n < e; n++) r.push(t.readAny()); @@ -19295,15 +19295,15 @@ class ou { return 4; } } -const yEe = (t) => new ou(t.readString()), bEe = [ - jCe, - JCe, - iEe, - aEe, +const bEe = (t) => new ou(t.readString()), xEe = [ + KCe, + eEe, sEe, - lEe, - cEe -], xEe = 0, wEe = 1, OEe = 2, kEe = 3, SEe = 4, TEe = 5, CEe = 6; + oEe, + aEe, + cEe, + uEe +], wEe = 0, OEe = 1, kEe = 2, SEe = 3, TEe = 4, CEe = 5, EEe = 6; class yu { constructor(e) { this.type = e; @@ -19353,7 +19353,7 @@ class yu { return 7; } } -const EEe = (t) => new yu(bEe[t.readTypeRef()](t)), H8 = (t, e) => { +const _Ee = (t) => new yu(xEe[t.readTypeRef()](t)), H8 = (t, e) => { let r = e, n = 0, i; do n > 0 && (r = Cr(r.client, r.clock + n)), i = f5(t, r), n = r.clock - i.id.clock, r = i.redone; @@ -19377,7 +19377,7 @@ const EEe = (t) => new yu(bEe[t.readTypeRef()](t)), H8 = (t, e) => { e.content.splice(r) ); return e.deleted && s.markDeleted(), e.keep && (s.keep = !0), e.redone !== null && (s.redone = Cr(e.redone.client, e.redone.clock + r)), e.right = s, s.right !== null && (s.right.left = s), t._mergeStructs.push(s), s.parentSub !== null && s.right === null && s.parent._map.set(s.parentSub, s), e.length = r, s; -}, LQ = (t, e) => zSe(t, (r) => qx(r.deletions, e)), Tre = (t, e, r, n, i, s) => { +}, LQ = (t, e) => QSe(t, (r) => qx(r.deletions, e)), Tre = (t, e, r, n, i, s) => { const a = t.doc, o = a.store, l = a.clientID, u = e.redone; if (u !== null) return Ha(t, u); @@ -19550,7 +19550,7 @@ class mn extends GD { gc(e, r) { if (!this.deleted) throw ic(); - this.content.gc(e), r ? MCe(e, this, new Zo(this.id, this.length)) : this.content = new B2(this.length); + this.content.gc(e), r ? DCe(e, this, new Zo(this.id, this.length)) : this.content = new B2(this.length); } write(e, r) { const n = r > 0 ? Cr(this.id.client, this.id.clock + r - 1) : this.origin, i = this.rightOrigin, s = this.parentSub, a = this.content.getRef() & HT | (n === null ? 0 : _o) | (i === null ? 0 : Ju) | (s === null ? 0 : A2); @@ -19570,23 +19570,23 @@ class mn extends GD { this.content.write(e, r); } } -const Cre = (t, e) => _Ee[e & HT](t), _Ee = [ +const Cre = (t, e) => AEe[e & HT](t), AEe = [ () => { ic(); }, + dEe, + vEe, fEe, + bEe, + gEe, mEe, - hEe, + _Ee, yEe, pEe, - gEe, - EEe, - vEe, - dEe, () => { ic(); } -], AEe = 10; +], LEe = 10; class jo extends GD { get deleted() { return !0; @@ -19600,7 +19600,7 @@ class jo extends GD { ic(); } write(e, r) { - e.writeInfo(AEe), rr(e.restEncoder, this.length - r); + e.writeInfo(LEe), rr(e.restEncoder, this.length - r); } getMissing(e, r) { return null; @@ -19623,7 +19623,7 @@ class HD { return new HD(P2(e.yanchor), P2(e.yhead)); } } -class LEe { +class REe { constructor(e, r) { this.ytext = e, this.awareness = r, this.undoManager = new zD(e); } @@ -19653,7 +19653,7 @@ const Xx = $t.define({ return t[t.length - 1]; } }), Z8 = co.define(); -class REe { +class MEe { constructor(e) { this.view = e, this.conf = e.state.facet(Xx), this._observer = (r, n) => { if (n.origin !== this.conf) { @@ -19684,7 +19684,7 @@ class REe { this._ytext.unobserve(this._observer); } } -const MEe = hn.fromClass(REe), DEe = kt.baseTheme({ +const DEe = hn.fromClass(MEe), PEe = kt.baseTheme({ ".cm-ySelection": {}, ".cm-yLineSelection": { padding: 0, @@ -19738,8 +19738,8 @@ const MEe = hn.fromClass(REe), DEe = kt.baseTheme({ opacity: 1, transitionDelay: "0s" } -}), PEe = co.define(); -class NEe extends uo { +}), NEe = co.define(); +class IEe extends uo { constructor(e, r) { super(), this.color = e, this.name = r; } @@ -19774,10 +19774,10 @@ class NEe extends uo { return !0; } } -class IEe { +class $Ee { constructor(e) { this.conf = e.state.facet(Xx), this._listener = ({ added: r, updated: n, removed: i }, s, a) => { - r.concat(n).concat(i).findIndex((l) => l !== this.conf.awareness.doc.clientID) >= 0 && e.dispatch({ annotations: [PEe.of([])] }); + r.concat(n).concat(i).findIndex((l) => l !== this.conf.awareness.doc.clientID) >= 0 && e.dispatch({ annotations: [NEe.of([])] }); }, this._awareness = this.conf.awareness, this._awareness.on("change", this._listener), this.decorations = $r.of([]); } destroy() { @@ -19805,7 +19805,7 @@ class IEe { const h = Y8(u.anchor, n), f = Y8(u.head, n); if (h == null || f == null || h.type !== r || f.type !== r) return; - const { color: d = "#30bced", name: p = "Anonymous" } = o.user || {}, g = o.user && o.user.colorLight || d + "33", m = XT(h.index, f.index), v = pd(h.index, f.index), y = e.view.state.doc.lineAt(m), b = e.view.state.doc.lineAt(v); + const { color: d = "#30bced", name: p = "Anonymous" } = o.user || {}, g = o.user && o.user.colorLight || d + "33", m = XT(h.index, f.index), v = gd(h.index, f.index), y = e.view.state.doc.lineAt(m), b = e.view.state.doc.lineAt(v); if (y.number === b.number) s.push({ from: m, @@ -19848,15 +19848,15 @@ class IEe { value: It.widget({ side: f.index - h.index > 0 ? -1 : 1, block: !1, - widget: new NEe(d, p) + widget: new IEe(d, p) }) }); }), this.decorations = It.set(s, !0); } } -const $Ee = hn.fromClass(IEe, { +const BEe = hn.fromClass($Ee, { decorations: (t) => t.decorations -}), BEe = () => { +}), FEe = () => { let t = !0; return (e, r) => { if (t) { @@ -19870,7 +19870,7 @@ const $Ee = hn.fromClass(IEe, { r !== void 0 && r(); }; }; -class FEe { +class zEe { constructor(e) { this.undoManager = e; } @@ -19892,9 +19892,9 @@ const rC = $t.define({ return t[t.length - 1]; } }); -class zEe { +class QEe { constructor(e) { - this.view = e, this.conf = e.state.facet(rC), this._undoManager = this.conf.undoManager, this.syncConf = e.state.facet(Xx), this._beforeChangeSelection = null, this._mux = BEe(), this._onStackItemAdded = ({ stackItem: r, changedParentTypes: n }) => { + this.view = e, this.conf = e.state.facet(rC), this._undoManager = this.conf.undoManager, this.syncConf = e.state.facet(Xx), this._beforeChangeSelection = null, this._mux = FEe(), this._onStackItemAdded = ({ stackItem: r, changedParentTypes: n }) => { n.has(this.syncConf.ytext) && this._beforeChangeSelection && !r.meta.has(this) && r.meta.set(this, this._beforeChangeSelection); }, this._onStackItemPopped = ({ stackItem: r }) => { const n = r.meta.get(this); @@ -19913,20 +19913,20 @@ class zEe { this._undoManager.off("stack-item-added", this._onStackItemAdded), this._undoManager.off("stack-item-popped", this._onStackItemPopped), this._undoManager.removeTrackedOrigin(this.syncConf); } } -const QEe = hn.fromClass(zEe), UEe = ({ state: t, dispatch: e }) => t.facet(rC).undo() || !0, VEe = ({ state: t, dispatch: e }) => t.facet(rC).redo() || !0, qEe = (t, e, { undoManager: r = new zD(t) } = {}) => { - const n = new LEe(t, e), i = [ +const UEe = hn.fromClass(QEe), VEe = ({ state: t, dispatch: e }) => t.facet(rC).undo() || !0, qEe = ({ state: t, dispatch: e }) => t.facet(rC).redo() || !0, YEe = (t, e, { undoManager: r = new zD(t) } = {}) => { + const n = new REe(t, e), i = [ Xx.of(n), - MEe + DEe ]; return e && i.push( - DEe, - $Ee + PEe, + BEe ), r !== !1 && i.push( - rC.of(new FEe(r)), - QEe, + rC.of(new zEe(r)), + UEe, kt.domEventHandlers({ beforeinput(s, a) { - return s.inputType === "historyUndo" ? UEe(a) : s.inputType === "historyRedo" ? VEe(a) : !1; + return s.inputType === "historyUndo" ? VEe(a) : s.inputType === "historyRedo" ? qEe(a) : !1; } }) ), i; @@ -19937,10 +19937,10 @@ class qk { return new qk(e, r, n, a, s, [], []); } constructor(e, r, n, i, s, a, o) { - this.type = e, this.value = r, this.from = n, this.hash = i, this.end = s, this.children = a, this.positions = o, this.hashProp = [[yr.contextHash, i]]; + this.type = e, this.value = r, this.from = n, this.hash = i, this.end = s, this.children = a, this.positions = o, this.hashProp = [[br.contextHash, i]]; } addChild(e, r) { - e.prop(yr.contextHash) != this.hash && (e = new nn(e.type, e.children, e.positions, e.length, this.hashProp)), this.children.push(e), this.positions.push(r); + e.prop(br.contextHash) != this.hash && (e = new nn(e.type, e.children, e.positions, e.length, this.hashProp)), this.children.push(e), this.positions.push(r); } toTree(e, r = this.end) { let n = this.children.length - 1; @@ -19953,12 +19953,12 @@ var Tt; (function(t) { t[t.Document = 1] = "Document", t[t.CodeBlock = 2] = "CodeBlock", t[t.FencedCode = 3] = "FencedCode", t[t.Blockquote = 4] = "Blockquote", t[t.HorizontalRule = 5] = "HorizontalRule", t[t.BulletList = 6] = "BulletList", t[t.OrderedList = 7] = "OrderedList", t[t.ListItem = 8] = "ListItem", t[t.ATXHeading1 = 9] = "ATXHeading1", t[t.ATXHeading2 = 10] = "ATXHeading2", t[t.ATXHeading3 = 11] = "ATXHeading3", t[t.ATXHeading4 = 12] = "ATXHeading4", t[t.ATXHeading5 = 13] = "ATXHeading5", t[t.ATXHeading6 = 14] = "ATXHeading6", t[t.SetextHeading1 = 15] = "SetextHeading1", t[t.SetextHeading2 = 16] = "SetextHeading2", t[t.HTMLBlock = 17] = "HTMLBlock", t[t.LinkReference = 18] = "LinkReference", t[t.Paragraph = 19] = "Paragraph", t[t.CommentBlock = 20] = "CommentBlock", t[t.ProcessingInstructionBlock = 21] = "ProcessingInstructionBlock", t[t.Escape = 22] = "Escape", t[t.Entity = 23] = "Entity", t[t.HardBreak = 24] = "HardBreak", t[t.Emphasis = 25] = "Emphasis", t[t.StrongEmphasis = 26] = "StrongEmphasis", t[t.Link = 27] = "Link", t[t.Image = 28] = "Image", t[t.InlineCode = 29] = "InlineCode", t[t.HTMLTag = 30] = "HTMLTag", t[t.Comment = 31] = "Comment", t[t.ProcessingInstruction = 32] = "ProcessingInstruction", t[t.URL = 33] = "URL", t[t.HeaderMark = 34] = "HeaderMark", t[t.QuoteMark = 35] = "QuoteMark", t[t.ListMark = 36] = "ListMark", t[t.LinkMark = 37] = "LinkMark", t[t.EmphasisMark = 38] = "EmphasisMark", t[t.CodeMark = 39] = "CodeMark", t[t.CodeText = 40] = "CodeText", t[t.CodeInfo = 41] = "CodeInfo", t[t.LinkTitle = 42] = "LinkTitle", t[t.LinkLabel = 43] = "LinkLabel"; })(Tt || (Tt = {})); -class YEe { +class WEe { constructor(e, r) { this.start = e, this.content = r, this.marks = [], this.parsers = []; } } -class WEe { +class GEe { constructor() { this.text = "", this.baseIndent = 0, this.basePos = 0, this.depth = 0, this.markers = [], this.pos = 0, this.indent = 0, this.next = -1; } @@ -20252,7 +20252,7 @@ const RO = { }, SetextHeading: void 0 }; -class GEe { +class XEe { constructor(e) { this.stage = 0, this.elts = [], this.pos = 0, this.start = e.start, this.advance(e.content); } @@ -20310,7 +20310,7 @@ function H_(t, e) { } return e; } -class XEe { +class HEe { nextLine(e, r, n) { let i = r.depth < e.stack.length ? -1 : Pre(r), s = r.next; if (i < 0) @@ -20325,14 +20325,14 @@ class XEe { return !1; } } -const HEe = { +const ZEe = { LinkReference(t, e) { - return e.content.charCodeAt(0) == 91 ? new GEe(e) : null; + return e.content.charCodeAt(0) == 91 ? new XEe(e) : null; }, SetextHeading() { - return new XEe(); + return new HEe(); } -}, ZEe = [ +}, jEe = [ (t, e) => Dre(e) >= 0, (t, e) => Lre(e) >= 0, (t, e) => Rre(e) >= 0, @@ -20340,10 +20340,10 @@ const HEe = { (t, e) => KD(e, t, !0) >= 0, (t, e) => ZD(e, t, !0) >= 0, (t, e) => $re(e, t, !0) >= 0 -], jEe = { text: "", end: 0 }; -class KEe { +], KEe = { text: "", end: 0 }; +class JEe { constructor(e, r, n, i) { - this.parser = e, this.input = r, this.ranges = i, this.line = new WEe(), this.atEnd = !1, this.reusePlaceholders = /* @__PURE__ */ new Map(), this.stoppedAt = null, this.rangeI = 0, this.to = i[i.length - 1].to, this.lineStart = this.absoluteLineStart = this.absoluteLineEnd = i[0].from, this.block = qk.create(Tt.Document, 0, this.lineStart, 0, 0), this.stack = [this.block], this.fragments = n.length ? new r_e(n, r) : null, this.readLine(); + this.parser = e, this.input = r, this.ranges = i, this.line = new GEe(), this.atEnd = !1, this.reusePlaceholders = /* @__PURE__ */ new Map(), this.stoppedAt = null, this.rangeI = 0, this.to = i[i.length - 1].to, this.lineStart = this.absoluteLineStart = this.absoluteLineEnd = i[0].from, this.block = qk.create(Tt.Document, 0, this.lineStart, 0, 0), this.stack = [this.block], this.fragments = n.length ? new n_e(n, r) : null, this.readLine(); } get parsedPos() { return this.absoluteLineStart; @@ -20384,7 +20384,7 @@ class KEe { } break; } - let r = new YEe(this.lineStart + e.pos, e.text.slice(e.pos)); + let r = new WEe(this.lineStart + e.pos, e.text.slice(e.pos)); for (let n of this.parser.leafBlockParsers) if (n) { let i = n(this, r); @@ -20432,7 +20432,7 @@ class KEe { this.rangeI++, this.absoluteLineStart = Math.max(this.absoluteLineStart, this.ranges[this.rangeI].from); } scanLine(e) { - let r = jEe; + let r = KEe; if (r.end = e, e >= this.to) r.text = ""; else if (r.text = this.lineChunkAt(e), r.end += r.text.length, this.ranges.length > 1) { @@ -20534,7 +20534,7 @@ class nC extends aD { this.nodeTypes[h.name] = h.id; } createParse(e, r, n) { - let i = new KEe(this, e, r, n); + let i = new JEe(this, e, r, n); for (let s of this.wrappers) i = s(i, e, r, n); return i; @@ -20556,10 +20556,10 @@ class nC extends aD { d.push(Wi.define({ id: w, name: m, - props: O && [[yr.group, O]] + props: O && [[br.group, O]] })), b && (p || (p = {}), Array.isArray(b) || b instanceof Il ? p[m] = b : Object.assign(p, b)); } - n = new Bx(d), p && (n = n.extend(fd(p))); + n = new Bx(d), p && (n = n.extend(dd(p))); } if (wv(r.props) && (n = n.extend(...r.props)), wv(r.remove)) for (let d of r.remove) { @@ -20596,7 +20596,7 @@ class nC extends aD { return r; } parseInline(e, r) { - let n = new e_e(this, e, r); + let n = new t_e(this, e, r); e: for (let i = r; i < n.end; ) { let s = n.char(i); @@ -20648,7 +20648,7 @@ for (let t = 1, e; e = Tt[t]; t++) Fre[t] = Wi.define({ id: t, name: e, - props: t >= Tt.Escape ? [] : [[yr.group, t in Are ? ["Block", "BlockContext"] : ["Block", "LeafBlock"]]], + props: t >= Tt.Escape ? [] : [[br.group, t in Are ? ["Block", "BlockContext"] : ["Block", "LeafBlock"]]], top: e == "Document" }); const km = []; @@ -20805,7 +20805,7 @@ const Z_ = { if (i instanceof $l && (i.type == Ov || i.type == PQ)) { if (!i.side || t.skipSpace(i.to) == r && !/[(\[]/.test(t.slice(r + 1, r + 2))) return t.parts[n] = null, -1; - let s = t.takeContent(n), a = t.parts[n] = JEe(t, s, i.type == Ov ? Tt.Link : Tt.Image, i.from, r + 1); + let s = t.takeContent(n), a = t.parts[n] = e_e(t, s, i.type == Ov ? Tt.Link : Tt.Image, i.from, r + 1); if (i.type == Ov) for (let o = 0; o < n; o++) { let l = t.parts[o]; @@ -20817,7 +20817,7 @@ const Z_ = { return -1; } }; -function JEe(t, e, r, n, i) { +function e_e(t, e, r, n, i) { let { text: s } = t, a = t.char(i), o = i; if (e.unshift(Xr(Tt.LinkMark, n, n + (r == Tt.Image ? 2 : 1))), e.push(Xr(Tt.LinkMark, i - 1, i)), a == 40) { let l = t.skipSpace(i + 1), u = qre(s, l - t.offset, t.offset), h; @@ -20890,7 +20890,7 @@ function Wre(t, e, r, n) { } return null; } -class e_e { +class t_e { constructor(e, r, n) { this.parser = e, this.text = r, this.offset = n, this.parts = []; } @@ -20982,8 +20982,8 @@ function e9(t, e) { } return r; } -const t_e = [Tt.CodeBlock, Tt.ListItem, Tt.OrderedList, Tt.BulletList]; -class r_e { +const r_e = [Tt.CodeBlock, Tt.ListItem, Tt.OrderedList, Tt.BulletList]; +class n_e { constructor(e, r) { this.fragments = e, this.input = r, this.i = 0, this.fragment = null, this.fragmentEnd = -1, this.cursor = null, e.length && (this.fragment = e[this.i++]); } @@ -21017,7 +21017,7 @@ class r_e { } matches(e) { let r = this.cursor.tree; - return r && r.prop(yr.contextHash) == e; + return r && r.prop(br.contextHash) == e; } takeNodes(e) { let r = this.cursor, n = this.fragment.offset, i = this.fragmentEnd - (this.fragment.openEnd ? 1 : 0), s = e.absoluteLineStart, a = s, o = e.block.children.length, l = a, u = o; @@ -21034,7 +21034,7 @@ class r_e { let f = new nn(e.parser.nodeSet.types[Tt.Paragraph], [], [], 0, e.block.hashProp); e.reusePlaceholders.set(f, r.tree), e.addNode(f, h); } - if (r.type.is("Block") && (t_e.indexOf(r.type.id) < 0 ? (a = r.to - n, o = e.block.children.length) : (a = l, o = u, l = r.to - n, u = e.block.children.length)), !r.nextSibling()) + if (r.type.is("Block") && (r_e.indexOf(r.type.id) < 0 ? (a = r.to - n, o = e.block.children.length) : (a = l, o = u, l = r.to - n, u = e.block.children.length)), !r.nextSibling()) break; } for (; e.block.children.length > o; ) @@ -21050,7 +21050,7 @@ function Gre(t, e) { } return r; } -const n_e = fd({ +const i_e = dd({ "Blockquote/...": Se.quote, HorizontalRule: Se.contentSeparator, "ATXHeading1/... SetextHeading1/...": Se.heading1, @@ -21073,8 +21073,8 @@ const n_e = fd({ "CodeInfo LinkLabel": Se.labelName, LinkTitle: Se.string, Paragraph: Se.content -}), i_e = new nC(new Bx(Fre).extend(n_e), Object.keys(RO).map((t) => RO[t]), Object.keys(RO).map((t) => HEe[t]), Object.keys(RO), ZEe, Are, Object.keys(Z_).map((t) => Z_[t]), Object.keys(Z_), []); -function s_e(t, e, r) { +}), s_e = new nC(new Bx(Fre).extend(i_e), Object.keys(RO).map((t) => RO[t]), Object.keys(RO).map((t) => ZEe[t]), Object.keys(RO), jEe, Are, Object.keys(Z_).map((t) => Z_[t]), Object.keys(Z_), []); +function a_e(t, e, r) { let n = []; for (let i = t.firstChild, s = e; ; i = i.nextSibling) { let a = i ? i.from : r; @@ -21084,7 +21084,7 @@ function s_e(t, e, r) { } return n; } -function a_e(t) { +function o_e(t) { let { codeParser: e, htmlParser: r } = t; return { wrap: eee((i, s) => { let a = i.type.id; @@ -21098,11 +21098,11 @@ function a_e(t) { if (l) return { parser: l, overlay: (u) => u.type.id == Tt.CodeText }; } else if (r && (a == Tt.HTMLBlock || a == Tt.HTMLTag)) - return { parser: r, overlay: s_e(i.node, i.from, i.to) }; + return { parser: r, overlay: a_e(i.node, i.from, i.to) }; return null; }) }; } -const o_e = { resolve: "Strikethrough", mark: "StrikethroughMark" }, l_e = { +const l_e = { resolve: "Strikethrough", mark: "StrikethroughMark" }, c_e = { defineNodes: [{ name: "Strikethrough", style: { "Strikethrough/...": Se.strikethrough } @@ -21116,7 +21116,7 @@ const o_e = { resolve: "Strikethrough", mark: "StrikethroughMark" }, l_e = { if (e != 126 || t.char(r + 1) != 126 || t.char(r + 2) == 126) return -1; let n = t.slice(r - 1, r), i = t.slice(r + 2, r + 3), s = /\s|^$/.test(n), a = /\s|^$/.test(i), o = z2.test(n), l = z2.test(i); - return t.addDelimiter(o_e, r, r + 2, !a && (!l || s || o), !s && (!o || a || l)); + return t.addDelimiter(l_e, r, r + 2, !a && (!l || s || o), !s && (!o || a || l)); }, after: "Emphasis" }] @@ -21166,7 +21166,7 @@ class $Q { return this.rows ? (e.addLeafElement(r, e.elt("Table", r.start, r.start + r.content.length, this.rows)), !0) : !1; } } -const c_e = { +const u_e = { defineNodes: [ { name: "Table", block: !0 }, { name: "TableHeader", style: { "TableHeader/...": Se.heading } }, @@ -21188,7 +21188,7 @@ const c_e = { before: "SetextHeading" }] }; -class u_e { +class h_e { nextLine() { return !1; } @@ -21199,7 +21199,7 @@ class u_e { ])), !0; } } -const h_e = { +const f_e = { defineNodes: [ { name: "Task", block: !0, style: Se.list }, { name: "TaskMarker", style: Se.atom } @@ -21207,21 +21207,21 @@ const h_e = { parseBlock: [{ name: "TaskList", leaf(t, e) { - return /^\[[ xX]\][ \t]/.test(e.content) && t.parentType().name == "ListItem" ? new u_e() : null; + return /^\[[ xX]\][ \t]/.test(e.content) && t.parentType().name == "ListItem" ? new h_e() : null; }, after: "SetextHeading" }] -}, BQ = /(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy, FQ = /[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy, f_e = /[\w-]+\.[\w-]+($|\/)/, zQ = /[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy, QQ = /\/[a-zA-Z\d@.]+/gy; +}, BQ = /(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy, FQ = /[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy, d_e = /[\w-]+\.[\w-]+($|\/)/, zQ = /[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy, QQ = /\/[a-zA-Z\d@.]+/gy; function UQ(t, e, r, n) { let i = 0; for (let s = e; s < r; s++) t[s] == n && i++; return i; } -function d_e(t, e) { +function p_e(t, e) { FQ.lastIndex = e; let r = FQ.exec(t); - if (!r || f_e.exec(r[0])[0].indexOf("_") > -1) + if (!r || d_e.exec(r[0])[0].indexOf("_") > -1) return -1; let n = e + r[0].length; for (; ; ) { @@ -21243,17 +21243,17 @@ function VQ(t, e) { let n = r[0][r[0].length - 1]; return n == "_" || n == "-" ? -1 : e + r[0].length - (n == "." ? 1 : 0); } -const p_e = { +const g_e = { parseInline: [{ name: "Autolink", parse(t, e, r) { let n = r - t.offset; BQ.lastIndex = n; let i = BQ.exec(t.text), s = -1; - return !i || (i[1] || i[2] ? s = d_e(t.text, n + i[0].length) : i[3] ? s = VQ(t.text, n) : (s = VQ(t.text, n + i[0].length), s > -1 && i[0] == "xmpp:" && (QQ.lastIndex = s, i = QQ.exec(t.text), i && (s = i.index + i[0].length))), s < 0) ? -1 : (t.addElement(t.elt("URL", r, s + t.offset)), s + t.offset); + return !i || (i[1] || i[2] ? s = p_e(t.text, n + i[0].length) : i[3] ? s = VQ(t.text, n) : (s = VQ(t.text, n + i[0].length), s > -1 && i[0] == "xmpp:" && (QQ.lastIndex = s, i = QQ.exec(t.text), i && (s = i.index + i[0].length))), s < 0) ? -1 : (t.addElement(t.elt("URL", r, s + t.offset)), s + t.offset); } }] -}, g_e = [c_e, h_e, l_e, p_e]; +}, m_e = [u_e, f_e, c_e, g_e]; function Hre(t, e, r) { return (n, i, s) => { if (i != t || n.char(s + 1) == t) @@ -21269,7 +21269,7 @@ function Hre(t, e, r) { return -1; }; } -const m_e = { +const v_e = { defineNodes: [ { name: "Superscript", style: Se.special(Se.content) }, { name: "SuperscriptMark", style: Se.processingInstruction } @@ -21278,7 +21278,7 @@ const m_e = { name: "Superscript", parse: Hre(94, "Superscript", "SuperscriptMark") }] -}, v_e = { +}, y_e = { defineNodes: [ { name: "Subscript", style: Se.special(Se.content) }, { name: "SubscriptMark", style: Se.processingInstruction } @@ -21287,7 +21287,7 @@ const m_e = { name: "Subscript", parse: Hre(126, "Subscript", "SubscriptMark") }] -}, y_e = { +}, b_e = { defineNodes: [{ name: "Emoji", style: Se.character }], parseInline: [{ name: "Emoji", @@ -21402,7 +21402,7 @@ class Yk { n && this.storeNode(e, this.pos, r, 4), this.storeNode(0, this.pos, r, n ? 8 : 4), this.pos = this.reducePos = r, this.score -= 190; } canShift(e) { - for (let r = new b_e(this); ; ) { + for (let r = new x_e(this); ; ) { let n = this.p.parser.stateSlot(r.state, 4) || this.p.parser.hasAction(r.state, e); if (n == 0) return !1; @@ -21536,7 +21536,7 @@ class qQ { this.tracker = e, this.context = r, this.hash = e.strict ? e.hash(r) : 0; } } -class b_e { +class x_e { constructor(e) { this.start = e, this.state = e.state, this.stack = e.stack, this.base = this.stack.length; } @@ -21605,7 +21605,7 @@ class p5 { } } const YQ = new p5(); -class x_e { +class w_e { constructor(e, r) { this.input = e, this.ranges = r, this.chunk = "", this.chunkOff = 0, this.chunk2 = "", this.chunk2Pos = 0, this.next = -1, this.token = YQ, this.rangeIndex = 0, this.pos = this.chunkPos = r[0].from, this.range = r[0], this.end = r[r.length - 1].to, this.readNext(); } @@ -21756,7 +21756,7 @@ function Zre(t, e, r, n, i, s) { for (let p = a + 3; p < u; p += 2) if ((t[p + 1] & o) > 0) { let g = t[p]; - if (l.allows(g) && (e.token.value == -1 || e.token.value == g || w_e(g, e.token.value, i, s))) { + if (l.allows(g) && (e.token.value == -1 || e.token.value == g || O_e(g, e.token.value, i, s))) { e.acceptToken(g); break; } @@ -21786,7 +21786,7 @@ function WQ(t, e, r) { return n - e; return -1; } -function w_e(t, e, r, n) { +function O_e(t, e, r, n) { let i = WQ(r, n, e); return i < 0 || WQ(r, n, t) < i; } @@ -21805,7 +21805,7 @@ function GQ(t, e, r) { return r < 0 ? 0 : t.length; } } -class O_e { +class k_e { constructor(e, r) { this.fragments = e, this.nodeSet = r, this.i = 0, this.fragment = null, this.safeFrom = -1, this.safeTo = -1, this.trees = [], this.start = [], this.index = [], this.nextFragment(); } @@ -21843,7 +21843,7 @@ class O_e { return null; let o = a + s.length; if (o <= this.safeTo) { - let l = s.prop(yr.lookAhead); + let l = s.prop(br.lookAhead); if (!l || o + l < this.fragment.to) return s; } @@ -21854,7 +21854,7 @@ class O_e { } } } -class k_e { +class S_e { constructor(e, r) { this.stream = r, this.tokens = [], this.mainToken = null, this.actions = [], this.tokens = e.tokenizers.map((n) => new p5()); } @@ -21917,11 +21917,11 @@ class k_e { return i; } } -class S_e { +class T_e { constructor(e, r, n, i) { - this.parser = e, this.input = r, this.ranges = i, this.recovering = 0, this.nextStackID = 9812, this.minStackPos = 0, this.reused = [], this.stoppedAt = null, this.lastBigReductionStart = -1, this.lastBigReductionSize = 0, this.bigReductionCount = 0, this.stream = new x_e(r, i), this.tokens = new k_e(e, this.stream), this.topTerm = e.top[1]; + this.parser = e, this.input = r, this.ranges = i, this.recovering = 0, this.nextStackID = 9812, this.minStackPos = 0, this.reused = [], this.stoppedAt = null, this.lastBigReductionStart = -1, this.lastBigReductionSize = 0, this.bigReductionCount = 0, this.stream = new w_e(r, i), this.tokens = new S_e(e, this.stream), this.topTerm = e.top[1]; let { from: s } = i[0]; - this.stacks = [Yk.start(this, e.top[0], s)], this.fragments = n.length && this.stream.end - s > e.bufferLength * 4 ? new O_e(n, e.nodeSet) : null; + this.stacks = [Yk.start(this, e.top[0], s)], this.fragments = n.length && this.stream.end - s > e.bufferLength * 4 ? new k_e(n, e.nodeSet) : null; } get parsedPos() { return this.minStackPos; @@ -21952,7 +21952,7 @@ class S_e { } } if (!n.length) { - let a = i && C_e(i); + let a = i && E_e(i); if (a) return vo && console.log("Finish with " + this.stackID(a)), this.stackToTree(a); if (this.parser.strict) @@ -22005,7 +22005,7 @@ class S_e { let u = e.curContext && e.curContext.tracker.strict, h = u ? e.curContext.hash : 0; for (let f = this.fragments.nodeAt(i); f; ) { let d = this.parser.nodeSet.types[f.type.id] == f.type ? s.getGoto(e.state, f.type.id) : -1; - if (d > -1 && f.length && (!u || (f.prop(yr.contextHash) || 0) == h)) + if (d > -1 && f.length && (!u || (f.prop(br.contextHash) || 0) == h)) return e.useNode(f, d), vo && console.log(a + this.stackID(e) + ` (via reuse of ${s.getName(f.type.id)})`), !0; if (!(f instanceof nn) || f.children.length == 0 || f.positions[0] > 0) break; @@ -22082,7 +22082,7 @@ function XQ(t, e) { } e.push(t); } -class T_e { +class C_e { constructor(e, r, n) { this.source = e, this.flags = r, this.disabled = n; } @@ -22096,7 +22096,7 @@ class JD { this.start = e.start, this.shift = e.shift || K_, this.reduce = e.reduce || K_, this.reuse = e.reuse || K_, this.hash = e.hash || (() => 0), this.strict = e.strict !== !1; } } -class Vf extends aD { +class qf extends aD { constructor(e) { if (super(), this.wrappers = [], e.version != 14) throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (${14})`); @@ -22113,7 +22113,7 @@ class Vf extends aD { if (e.nodeProps) for (let o of e.nodeProps) { let l = o[0]; - typeof l == "string" && (l = yr[l]); + typeof l == "string" && (l = br[l]); for (let u = 1; u < o.length; ) { let h = o[u++]; if (h >= 0) @@ -22141,7 +22141,7 @@ class Vf extends aD { this.specializers = this.specializerSpecs.map(HQ), this.states = ay(e.states, Uint32Array), this.data = ay(e.stateData), this.goto = ay(e.goto), this.maxTerm = e.maxTerm, this.tokenizers = e.tokenizers.map((o) => typeof o == "number" ? new Fg(a, o) : o), this.topRules = e.topRules, this.dialects = e.dialects || {}, this.dynamicPrecedences = e.dynamicPrecedences || null, this.tokenPrecTable = e.tokenPrec, this.termNames = e.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]]; } createParse(e, r, n) { - let i = new S_e(this, e, r, n); + let i = new T_e(this, e, r, n); for (let s of this.wrappers) i = s(i, e, r, n); return i; @@ -22215,7 +22215,7 @@ class Vf extends aD { return r; } configure(e) { - let r = Object.assign(Object.create(Vf.prototype), this); + let r = Object.assign(Object.create(qf.prototype), this); if (e.props && (r.nodeSet = this.nodeSet.extend(...e.props)), e.top) { let n = this.topRules[e.top]; if (!n) @@ -22261,16 +22261,16 @@ class Vf extends aD { if (!n[s]) for (let a = this.dialects[r[s]], o; (o = this.data[a++]) != 65535; ) (i || (i = new Uint8Array(this.maxTerm + 1)))[o] = 1; - return new T_e(e, n, i); + return new C_e(e, n, i); } static deserialize(e) { - return new Vf(e); + return new qf(e); } } function Fu(t, e) { return t[e] | t[e + 1] << 16; } -function C_e(t) { +function E_e(t) { let e = null; for (let r of t) { let n = r.p.stoppedAt; @@ -22285,7 +22285,7 @@ function HQ(t) { } return t.get; } -const E_e = 54, __e = 1, A_e = 55, L_e = 2, R_e = 56, M_e = 3, ZQ = 4, D_e = 5, Xk = 6, jre = 7, Kre = 8, Jre = 9, ene = 10, P_e = 11, N_e = 12, I_e = 13, J_ = 57, $_e = 14, jQ = 58, tne = 20, B_e = 22, rne = 23, F_e = 24, t9 = 26, nne = 27, z_e = 28, Q_e = 31, U_e = 34, V_e = 36, q_e = 37, Y_e = 0, W_e = 1, G_e = { +const __e = 54, A_e = 1, L_e = 55, R_e = 2, M_e = 56, D_e = 3, ZQ = 4, P_e = 5, Xk = 6, jre = 7, Kre = 8, Jre = 9, ene = 10, N_e = 11, I_e = 12, $_e = 13, J_ = 57, B_e = 14, jQ = 58, tne = 20, F_e = 22, rne = 23, z_e = 24, t9 = 26, nne = 27, Q_e = 28, U_e = 31, V_e = 34, q_e = 36, Y_e = 37, W_e = 0, G_e = 1, X_e = { area: !0, base: !0, br: !0, @@ -22304,7 +22304,7 @@ const E_e = 54, __e = 1, A_e = 55, L_e = 2, R_e = 56, M_e = 3, ZQ = 4, D_e = 5, track: !0, wbr: !0, menuitem: !0 -}, X_e = { +}, H_e = { dd: !0, li: !0, optgroup: !0, @@ -22361,7 +22361,7 @@ const E_e = 54, __e = 1, A_e = 55, L_e = 2, R_e = 56, M_e = 3, ZQ = 4, D_e = 5, thead: { tbody: !0, tfoot: !0 }, tr: { tr: !0 } }; -function H_e(t) { +function Z_e(t) { return t == 45 || t == 46 || t == 58 || t >= 65 && t <= 90 || t == 95 || t >= 97 && t <= 122 || t >= 161; } function ine(t) { @@ -22376,33 +22376,33 @@ function r9(t, e) { for (; ine(n); ) n = t.peek(++e); let i = ""; - for (; H_e(n); ) + for (; Z_e(n); ) i += String.fromCharCode(n), n = t.peek(++e); - return eU = t, tU = r, JQ = i ? i.toLowerCase() : n == Z_e || n == j_e ? void 0 : null; + return eU = t, tU = r, JQ = i ? i.toLowerCase() : n == j_e || n == K_e ? void 0 : null; } -const sne = 60, Hk = 62, eP = 47, Z_e = 63, j_e = 33, K_e = 45; +const sne = 60, Hk = 62, eP = 47, j_e = 63, K_e = 33, J_e = 45; function rU(t, e) { this.name = t, this.parent = e, this.hash = e ? e.hash : 0; for (let r = 0; r < t.length; r++) this.hash += (this.hash << 4) + t.charCodeAt(r) + (t.charCodeAt(r) << 8); } -const J_e = [Xk, ene, jre, Kre, Jre], e6e = new JD({ +const e6e = [Xk, ene, jre, Kre, Jre], t6e = new JD({ start: null, shift(t, e, r, n) { - return J_e.indexOf(e) > -1 ? new rU(r9(n, 1) || "", t) : t; + return e6e.indexOf(e) > -1 ? new rU(r9(n, 1) || "", t) : t; }, reduce(t, e) { return e == tne && t ? t.parent : t; }, reuse(t, e, r, n) { let i = e.type.id; - return i == Xk || i == V_e ? new rU(r9(n, 1) || "", t) : t; + return i == Xk || i == q_e ? new rU(r9(n, 1) || "", t) : t; }, hash(t) { return t ? t.hash : 0; }, strict: !1 -}), t6e = new Pa((t, e) => { +}), r6e = new Pa((t, e) => { if (t.next != sne) { t.next < 0 && e.context && t.acceptToken(J_); return; @@ -22414,19 +22414,19 @@ const J_e = [Xk, ene, jre, Kre, Jre], e6e = new JD({ if (n === void 0) return; if (!n) - return t.acceptToken(r ? $_e : Xk); + return t.acceptToken(r ? B_e : Xk); let i = e.context ? e.context.name : null; if (r) { if (n == i) - return t.acceptToken(P_e); - if (i && X_e[i]) - return t.acceptToken(J_, -2); - if (e.dialectEnabled(Y_e)) return t.acceptToken(N_e); + if (i && H_e[i]) + return t.acceptToken(J_, -2); + if (e.dialectEnabled(W_e)) + return t.acceptToken(I_e); for (let s = e.context; s; s = s.parent) if (s.name == n) return; - t.acceptToken(I_e); + t.acceptToken($_e); } else { if (n == "script") return t.acceptToken(jre); @@ -22434,17 +22434,17 @@ const J_e = [Xk, ene, jre, Kre, Jre], e6e = new JD({ return t.acceptToken(Kre); if (n == "textarea") return t.acceptToken(Jre); - if (G_e.hasOwnProperty(n)) + if (X_e.hasOwnProperty(n)) return t.acceptToken(ene); i && KQ[i] && KQ[i][n] ? t.acceptToken(J_, -1) : t.acceptToken(Xk); } -}, { contextual: !0 }), r6e = new Pa((t) => { +}, { contextual: !0 }), n6e = new Pa((t) => { for (let e = 0, r = 0; ; r++) { if (t.next < 0) { r && t.acceptToken(jQ); break; } - if (t.next == K_e) + if (t.next == J_e) e++; else if (t.next == Hk && e >= 2) { r >= 3 && t.acceptToken(jQ, -2); @@ -22454,16 +22454,16 @@ const J_e = [Xk, ene, jre, Kre, Jre], e6e = new JD({ t.advance(); } }); -function n6e(t) { +function i6e(t) { for (; t; t = t.parent) if (t.name == "svg" || t.name == "math") return !0; return !1; } -const i6e = new Pa((t, e) => { +const s6e = new Pa((t, e) => { if (t.next == eP && t.peek(1) == Hk) { - let r = e.dialectEnabled(W_e) || n6e(e.context); - t.acceptToken(r ? D_e : ZQ, 2); + let r = e.dialectEnabled(G_e) || i6e(e.context); + t.acceptToken(r ? P_e : ZQ, 2); } else t.next == Hk && t.acceptToken(ZQ, 1); }); @@ -22491,7 +22491,7 @@ function tP(t, e, r) { } }); } -const s6e = tP("script", E_e, __e), a6e = tP("style", A_e, L_e), o6e = tP("textarea", R_e, M_e), l6e = fd({ +const a6e = tP("script", __e, A_e), o6e = tP("style", L_e, R_e), l6e = tP("textarea", M_e, D_e), c6e = dd({ "Text RawText": Se.content, "StartTag StartCloseTag SelfClosingEndTag EndTag": Se.angleBracket, TagName: Se.tagName, @@ -22503,24 +22503,24 @@ const s6e = tP("script", E_e, __e), a6e = tP("style", A_e, L_e), o6e = tP("texta Comment: Se.blockComment, ProcessingInst: Se.processingInstruction, DoctypeDecl: Se.documentMeta -}), c6e = Vf.deserialize({ +}), u6e = qf.deserialize({ version: 14, states: ",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z", stateData: "+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~", goto: "%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp", nodeNames: "\u26A0 StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl", maxTerm: 67, - context: e6e, + context: t6e, nodeProps: [ ["closedBy", -10, 1, 2, 3, 7, 8, 9, 10, 11, 12, 13, "EndTag", 6, "EndTag SelfClosingEndTag", -4, 21, 30, 33, 36, "CloseTag"], ["openedBy", 4, "StartTag StartCloseTag", 5, "StartTag", -4, 29, 32, 35, 37, "OpenTag"], ["group", -9, 14, 17, 18, 19, 20, 39, 40, 41, 42, "Entity", 16, "Entity TextContent", -3, 28, 31, 34, "TextContent Entity"] ], - propSources: [l6e], + propSources: [c6e], skippedNodes: [0], repeatNodeCount: 9, tokenData: "!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V! { let u = o.type.id; - if (u == z_e) - return e6(o, l, r); if (u == Q_e) - return e6(o, l, n); + return e6(o, l, r); if (u == U_e) + return e6(o, l, n); + if (u == V_e) return e6(o, l, i); if (u == tne && s.length) { let h = o.node, f = h.firstChild, d = f && nU(f, l), p; if (d) { for (let g of s) if (g.tag == d && (!g.attrs || g.attrs(p || (p = ane(h, l))))) { - let m = h.lastChild, v = m.type.id == q_e ? m.from : h.to; + let m = h.lastChild, v = m.type.id == Y_e ? m.from : h.to; if (v > f.to) return { parser: g.parser, overlay: [{ from: f.to, to: v }] }; } @@ -22591,7 +22591,7 @@ function one(t = [], e = []) { return null; }); } -const u6e = 96, iU = 1, h6e = 97, f6e = 98, sU = 2, lne = [ +const h6e = 96, iU = 1, f6e = 97, d6e = 98, sU = 2, lne = [ 9, 10, 11, @@ -22617,41 +22617,41 @@ const u6e = 96, iU = 1, h6e = 97, f6e = 98, sU = 2, lne = [ 8239, 8287, 12288 -], d6e = 58, p6e = 40, cne = 95, g6e = 91, g5 = 45, m6e = 46, v6e = 35, y6e = 37, b6e = 38, x6e = 92, w6e = 10; +], p6e = 58, g6e = 40, cne = 95, m6e = 91, g5 = 45, v6e = 46, y6e = 35, b6e = 37, x6e = 38, w6e = 92, O6e = 10; function Zk(t) { return t >= 65 && t <= 90 || t >= 97 && t <= 122 || t >= 161; } -function O6e(t) { +function k6e(t) { return t >= 48 && t <= 57; } -const k6e = new Pa((t, e) => { +const S6e = new Pa((t, e) => { for (let r = !1, n = 0, i = 0; ; i++) { let { next: s } = t; - if (Zk(s) || s == g5 || s == cne || r && O6e(s)) + if (Zk(s) || s == g5 || s == cne || r && k6e(s)) !r && (s != g5 || i > 0) && (r = !0), n === i && s == g5 && n++, t.advance(); - else if (s == x6e && t.peek(1) != w6e) + else if (s == w6e && t.peek(1) != O6e) t.advance(), t.next > -1 && t.advance(), r = !0; else { - r && t.acceptToken(s == p6e ? h6e : n == 2 && e.canShift(sU) ? sU : f6e); + r && t.acceptToken(s == g6e ? f6e : n == 2 && e.canShift(sU) ? sU : d6e); break; } } -}), S6e = new Pa((t) => { +}), T6e = new Pa((t) => { if (lne.includes(t.peek(-1))) { let { next: e } = t; - (Zk(e) || e == cne || e == v6e || e == m6e || e == g6e || e == d6e || e == g5 || e == b6e) && t.acceptToken(u6e); + (Zk(e) || e == cne || e == y6e || e == v6e || e == m6e || e == p6e || e == g5 || e == x6e) && t.acceptToken(h6e); } -}), T6e = new Pa((t) => { +}), C6e = new Pa((t) => { if (!lne.includes(t.peek(-1))) { let { next: e } = t; - if (e == y6e && (t.advance(), t.acceptToken(iU)), Zk(e)) { + if (e == b6e && (t.advance(), t.acceptToken(iU)), Zk(e)) { do t.advance(); while (Zk(t.next)); t.acceptToken(iU); } } -}), C6e = fd({ +}), E6e = dd({ "AtKeyword import charset namespace keyframes media supports": Se.definitionKeyword, "from to selector": Se.keyword, NamespaceName: Se.namespace, @@ -22684,7 +22684,7 @@ const k6e = new Pa((t, e) => { "( )": Se.paren, "[ ]": Se.squareBracket, "{ }": Se.brace -}), E6e = { __proto__: null, lang: 32, "nth-child": 32, "nth-last-child": 32, "nth-of-type": 32, "nth-last-of-type": 32, dir: 32, "host-context": 32, url: 60, "url-prefix": 60, domain: 60, regexp: 60, selector: 134 }, _6e = { __proto__: null, "@import": 114, "@media": 138, "@charset": 142, "@namespace": 146, "@keyframes": 152, "@supports": 164 }, A6e = { __proto__: null, not: 128, only: 128 }, L6e = Vf.deserialize({ +}), _6e = { __proto__: null, lang: 32, "nth-child": 32, "nth-last-child": 32, "nth-of-type": 32, "nth-last-of-type": 32, dir: 32, "host-context": 32, url: 60, "url-prefix": 60, domain: 60, regexp: 60, selector: 134 }, A6e = { __proto__: null, "@import": 114, "@media": 138, "@charset": 142, "@namespace": 146, "@keyframes": 152, "@supports": 164 }, L6e = { __proto__: null, not: 128, only: 128 }, R6e = qf.deserialize({ version: 14, states: "9bQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DPO$vQ[O'#DTOOQP'#Ej'#EjO${QdO'#DeO%gQ[O'#DrO${QdO'#DtO%xQ[O'#DvO&TQ[O'#DyO&]Q[O'#EPO&kQ[O'#EROOQS'#Ei'#EiOOQS'#EU'#EUQYQ[OOO&rQXO'#CdO'gQWO'#DaO'lQWO'#EpO'wQ[O'#EpQOQWOOP(RO#tO'#C_POOO)C@X)C@XOOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(^Q[O'#EXO(xQWO,58{O)QQ[O,59SO$qQ[O,59kO$vQ[O,59oO(^Q[O,59sO(^Q[O,59uO(^Q[O,59vO)]Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)dQWO,59SO)iQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)nQ`O,59oOOQS'#Cp'#CpO${QdO'#CqO)vQvO'#CsO+TQtO,5:POOQO'#Cx'#CxO)iQWO'#CwO+iQWO'#CyOOQS'#Em'#EmOOQO'#Dh'#DhO+nQ[O'#DoO+|QWO'#EqO&]Q[O'#DmO,[QWO'#DpOOQO'#Er'#ErO({QWO,5:^O,aQpO,5:`OOQS'#Dx'#DxO,iQWO,5:bO,nQ[O,5:bOOQO'#D{'#D{O,vQWO,5:eO,{QWO,5:kO-TQWO,5:mOOQS-E8S-E8SO${QdO,59{O-]Q[O'#EZO-jQWO,5;[O-jQWO,5;[POOO'#ET'#ETP-uO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.lQXO,5:sOOQO-E8V-E8VOOQS1G.g1G.gOOQP1G.n1G.nO)dQWO1G.nO)iQWO1G.nOOQP1G/V1G/VO.yQ`O1G/ZO/dQXO1G/_O/zQXO1G/aO0bQXO1G/bO0xQWO,59zO0}Q[O'#DOO1UQdO'#CoOOQP1G/Z1G/ZO${QdO1G/ZO1]QpO,59]OOQS,59_,59_O${QdO,59aO1eQWO1G/kOOQS,59c,59cO1jQ!bO,59eO1rQWO'#DhO1}QWO,5:TO2SQWO,5:ZO&]Q[O,5:VO&]Q[O'#E[O2[QWO,5;]O2gQWO,5:XO(^Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O2xQWO1G/|O2}QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XO3YQtO1G/gOOQO,5:u,5:uO3pQ[O,5:uOOQO-E8X-E8XO3}QWO1G0vPOOO-E8R-E8RPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$u7+$uO${QdO7+$uOOQS1G/f1G/fO4YQXO'#EoO4aQWO,59jO4fQtO'#EVO5ZQdO'#ElO5eQWO,59ZO5jQpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO5rQWO1G/PO${QdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO5wQWO,5:vOOQO-E8Y-E8YO6VQXO1G/vOOQS7+%h7+%hO6^QYO'#CsOOQO'#EO'#EOO6iQ`O'#D}OOQO'#D}'#D}O6tQWO'#E]O6|QdO,5:hOOQS,5:h,5:hO7XQtO'#EYO${QdO'#EYO8VQdO7+%ROOQO7+%R7+%ROOQO1G0a1G0aO8jQpO< { ["openedBy", 17, "(", 48, "{"], ["closedBy", 18, ")", 49, "}"] ], - propSources: [C6e], + propSources: [E6e], skippedNodes: [0, 3, 85], repeatNodeCount: 10, tokenData: "J^~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Ab![!]B]!]!^CX!^!_$}!_!`Cj!`!aC{!a!b$}!b!cDw!c!}$}!}#OFa#O#P$}#P#QFr#Q#R6d#R#T$}#T#UGT#U#c$}#c#dHf#d#o$}#o#pH{#p#q6d#q#rI^#r#sIo#s#y$}#y#z%u#z$f$}$f$g%u$g#BY$}#BY#BZ%u#BZ$IS$}$IS$I_%u$I_$I|$}$I|$JO%u$JO$JT$}$JT$JU%u$JU$KV$}$KV$KW%u$KW&FU$}&FU&FV%u&FV;'S$};'S;=`JW<%lO$}`%QSOy%^z;'S%^;'S;=`%o<%lO%^`%cSo`Oy%^z;'S%^;'S;=`%o<%lO%^`%rP;=`<%l%^~%zh#W~OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^~'mh#W~o`OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^l)[UOy%^z#]%^#]#^)n#^;'S%^;'S;=`%o<%lO%^l)sUo`Oy%^z#a%^#a#b*V#b;'S%^;'S;=`%o<%lO%^l*[Uo`Oy%^z#d%^#d#e*n#e;'S%^;'S;=`%o<%lO%^l*sUo`Oy%^z#c%^#c#d+V#d;'S%^;'S;=`%o<%lO%^l+[Uo`Oy%^z#f%^#f#g+n#g;'S%^;'S;=`%o<%lO%^l+sUo`Oy%^z#h%^#h#i,V#i;'S%^;'S;=`%o<%lO%^l,[Uo`Oy%^z#T%^#T#U,n#U;'S%^;'S;=`%o<%lO%^l,sUo`Oy%^z#b%^#b#c-V#c;'S%^;'S;=`%o<%lO%^l-[Uo`Oy%^z#h%^#h#i-n#i;'S%^;'S;=`%o<%lO%^l-uS!V[o`Oy%^z;'S%^;'S;=`%o<%lO%^~.UWOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o<%lO.R~.sOh~~.vRO;'S.R;'S;=`/P;=`O.R~/SXOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o;=`<%l.R<%lO.R~/rP;=`<%l.Rn/zYtQOy%^z!Q%^!Q![0j![!c%^!c!i0j!i#T%^#T#Z0j#Z;'S%^;'S;=`%o<%lO%^l0oYo`Oy%^z!Q%^!Q![1_![!c%^!c!i1_!i#T%^#T#Z1_#Z;'S%^;'S;=`%o<%lO%^l1dYo`Oy%^z!Q%^!Q![2S![!c%^!c!i2S!i#T%^#T#Z2S#Z;'S%^;'S;=`%o<%lO%^l2ZYf[o`Oy%^z!Q%^!Q![2y![!c%^!c!i2y!i#T%^#T#Z2y#Z;'S%^;'S;=`%o<%lO%^l3QYf[o`Oy%^z!Q%^!Q![3p![!c%^!c!i3p!i#T%^#T#Z3p#Z;'S%^;'S;=`%o<%lO%^l3uYo`Oy%^z!Q%^!Q![4e![!c%^!c!i4e!i#T%^#T#Z4e#Z;'S%^;'S;=`%o<%lO%^l4lYf[o`Oy%^z!Q%^!Q![5[![!c%^!c!i5[!i#T%^#T#Z5[#Z;'S%^;'S;=`%o<%lO%^l5aYo`Oy%^z!Q%^!Q![6P![!c%^!c!i6P!i#T%^#T#Z6P#Z;'S%^;'S;=`%o<%lO%^l6WSf[o`Oy%^z;'S%^;'S;=`%o<%lO%^d6gUOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^d7QSzSo`Oy%^z;'S%^;'S;=`%o<%lO%^b7cSXQOy%^z;'S%^;'S;=`%o<%lO%^~7rWOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W<%lO7o~8_RO;'S7o;'S;=`8h;=`O7o~8kXOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W;=`<%l7o<%lO7o~9ZP;=`<%l7on9cSb^Oy%^z;'S%^;'S;=`%o<%lO%^~9tOa~n9{UUQjWOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^n:fWjW!PQOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#b[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSp^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#_QOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#X~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!W^Oy%^z;'S%^;'S;=`%o<%lO%^dCoSzSOy%^z;'S%^;'S;=`%o<%lO%^bDQU|QOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS|Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!YQo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bFfSxQOy%^z;'S%^;'S;=`%o<%lO%^lFwSv[Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!`Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!RUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!Q^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!PQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}", - tokenizers: [S6e, T6e, k6e, 1, 2, 3, 4, new Gk("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~", 28, 102)], + tokenizers: [T6e, C6e, S6e, 1, 2, 3, 4, new Gk("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~", 28, 102)], topRules: { StyleSheet: [0, 4], Styles: [1, 84] }, - specialized: [{ term: 97, get: (t) => E6e[t] || -1 }, { term: 56, get: (t) => _6e[t] || -1 }, { term: 98, get: (t) => A6e[t] || -1 }], + specialized: [{ term: 97, get: (t) => _6e[t] || -1 }, { term: 56, get: (t) => A6e[t] || -1 }, { term: 98, get: (t) => L6e[t] || -1 }], tokenPrec: 1169 }); let t6 = null; @@ -23341,7 +23341,7 @@ const aU = /* @__PURE__ */ [ "whitesmoke", "yellow", "yellowgreen" -].map((t) => ({ type: "constant", label: t }))), R6e = /* @__PURE__ */ [ +].map((t) => ({ type: "constant", label: t }))), M6e = /* @__PURE__ */ [ "a", "abbr", "address", @@ -23420,16 +23420,16 @@ const aU = /* @__PURE__ */ [ "tr", "u", "ul" -].map((t) => ({ type: "type", label: t })), Qh = /^(\w[\w-]*|-\w[\w-]*|)$/, M6e = /^-(-[\w-]*)?$/; -function D6e(t, e) { +].map((t) => ({ type: "type", label: t })), Uh = /^(\w[\w-]*|-\w[\w-]*|)$/, D6e = /^-(-[\w-]*)?$/; +function P6e(t, e) { var r; if ((t.name == "(" || t.type.isError) && (t = t.parent || t), t.name != "ArgList") return !1; let n = (r = t.parent) === null || r === void 0 ? void 0 : r.firstChild; return (n == null ? void 0 : n.name) != "Callee" ? !1 : e.sliceString(n.from, n.to) == "var"; } -const lU = /* @__PURE__ */ new JJ(), P6e = ["Declaration"]; -function N6e(t) { +const lU = /* @__PURE__ */ new JJ(), N6e = ["Declaration"]; +function I6e(t) { for (let e = t; ; ) { if (e.type.isTop) return e; @@ -23453,40 +23453,40 @@ function une(t, e, r) { let n = [], i = /* @__PURE__ */ new Set(); return e.cursor().iterate((s) => { var a; - if (r(s) && s.matchContext(P6e) && ((a = s.node.nextSibling) === null || a === void 0 ? void 0 : a.name) == ":") { + if (r(s) && s.matchContext(N6e) && ((a = s.node.nextSibling) === null || a === void 0 ? void 0 : a.name) == ":") { let o = t.sliceString(s.from, s.to); i.has(o) || (i.add(o), n.push({ label: o, type: "variable" })); } }), n; } } -const I6e = (t) => (e) => { +const $6e = (t) => (e) => { let { state: r, pos: n } = e, i = Cn(r).resolveInner(n, -1), s = i.type.isError && i.from == i.to - 1 && r.doc.sliceString(i.from, i.to) == "-"; if (i.name == "PropertyName" || (s || i.name == "TagName") && /^(Block|Styles)$/.test(i.resolve(i.to).name)) - return { from: i.from, options: r6(), validFor: Qh }; + return { from: i.from, options: r6(), validFor: Uh }; if (i.name == "ValueName") - return { from: i.from, options: oU, validFor: Qh }; + return { from: i.from, options: oU, validFor: Uh }; if (i.name == "PseudoClassName") - return { from: i.from, options: aU, validFor: Qh }; - if (t(i) || (e.explicit || s) && D6e(i, r.doc)) + return { from: i.from, options: aU, validFor: Uh }; + if (t(i) || (e.explicit || s) && P6e(i, r.doc)) return { from: t(i) || s ? i.from : n, - options: une(r.doc, N6e(i), t), - validFor: M6e + options: une(r.doc, I6e(i), t), + validFor: D6e }; if (i.name == "TagName") { for (let { parent: l } = i; l; l = l.parent) if (l.name == "Block") - return { from: i.from, options: r6(), validFor: Qh }; - return { from: i.from, options: R6e, validFor: Qh }; + return { from: i.from, options: r6(), validFor: Uh }; + return { from: i.from, options: M6e, validFor: Uh }; } if (!e.explicit) return null; let a = i.resolve(n), o = a.childBefore(n); - return o && o.name == ":" && a.name == "PseudoClassSelector" ? { from: n, options: aU, validFor: Qh } : o && o.name == ":" && a.name == "Declaration" || a.name == "ArgList" ? { from: n, options: oU, validFor: Qh } : a.name == "Block" || a.name == "Styles" ? { from: n, options: r6(), validFor: Qh } : null; -}, $6e = /* @__PURE__ */ I6e((t) => t.name == "VariableName"), jk = /* @__PURE__ */ $f.define({ + return o && o.name == ":" && a.name == "PseudoClassSelector" ? { from: n, options: aU, validFor: Uh } : o && o.name == ":" && a.name == "Declaration" || a.name == "ArgList" ? { from: n, options: oU, validFor: Uh } : a.name == "Block" || a.name == "Styles" ? { from: n, options: r6(), validFor: Uh } : null; +}, B6e = /* @__PURE__ */ $6e((t) => t.name == "VariableName"), jk = /* @__PURE__ */ Bf.define({ name: "css", - parser: /* @__PURE__ */ L6e.configure({ + parser: /* @__PURE__ */ R6e.configure({ props: [ /* @__PURE__ */ x1.add({ Declaration: /* @__PURE__ */ l5() @@ -23502,10 +23502,10 @@ const I6e = (t) => (e) => { wordChars: "-" } }); -function B6e() { - return new gm(jk, jk.data.of({ autocomplete: $6e })); +function F6e() { + return new gm(jk, jk.data.of({ autocomplete: B6e })); } -const F6e = 309, cU = 1, z6e = 2, Q6e = 3, U6e = 310, V6e = 312, q6e = 313, Y6e = 4, W6e = 5, G6e = 0, n9 = [ +const z6e = 309, cU = 1, Q6e = 2, U6e = 3, V6e = 310, q6e = 312, Y6e = 313, W6e = 4, G6e = 5, X6e = 0, n9 = [ 9, 10, 11, @@ -23531,31 +23531,31 @@ const F6e = 309, cU = 1, z6e = 2, Q6e = 3, U6e = 310, V6e = 312, q6e = 313, Y6e 8239, 8287, 12288 -], hne = 125, X6e = 59, i9 = 47, H6e = 42, Z6e = 43, j6e = 45, K6e = 60, J6e = 44, eAe = new JD({ +], hne = 125, H6e = 59, i9 = 47, Z6e = 42, j6e = 43, K6e = 45, J6e = 60, eAe = 44, tAe = new JD({ start: !1, shift(t, e) { - return e == Y6e || e == W6e || e == V6e ? t : e == q6e; + return e == W6e || e == G6e || e == q6e ? t : e == Y6e; }, strict: !1 -}), tAe = new Pa((t, e) => { +}), rAe = new Pa((t, e) => { let { next: r } = t; - (r == hne || r == -1 || e.context) && t.acceptToken(U6e); -}, { contextual: !0, fallback: !0 }), rAe = new Pa((t, e) => { + (r == hne || r == -1 || e.context) && t.acceptToken(V6e); +}, { contextual: !0, fallback: !0 }), nAe = new Pa((t, e) => { let { next: r } = t, n; - n9.indexOf(r) > -1 || r == i9 && ((n = t.peek(1)) == i9 || n == H6e) || r != hne && r != X6e && r != -1 && !e.context && t.acceptToken(F6e); -}, { contextual: !0 }), nAe = new Pa((t, e) => { + n9.indexOf(r) > -1 || r == i9 && ((n = t.peek(1)) == i9 || n == Z6e) || r != hne && r != H6e && r != -1 && !e.context && t.acceptToken(z6e); +}, { contextual: !0 }), iAe = new Pa((t, e) => { let { next: r } = t; - if ((r == Z6e || r == j6e) && (t.advance(), r == t.next)) { + if ((r == j6e || r == K6e) && (t.advance(), r == t.next)) { t.advance(); let n = !e.context && e.canShift(cU); - t.acceptToken(n ? cU : z6e); + t.acceptToken(n ? cU : Q6e); } }, { contextual: !0 }); function n6(t, e) { return t >= 65 && t <= 90 || t >= 97 && t <= 122 || t == 95 || t >= 192 || !e && t >= 48 && t <= 57; } -const iAe = new Pa((t, e) => { - if (t.next != K6e || !e.dialectEnabled(G6e) || (t.advance(), t.next == i9)) +const sAe = new Pa((t, e) => { + if (t.next != J6e || !e.dialectEnabled(X6e) || (t.advance(), t.next == i9)) return; let r = 0; for (; n9.indexOf(t.next) > -1; ) @@ -23565,7 +23565,7 @@ const iAe = new Pa((t, e) => { t.advance(), r++; for (; n9.indexOf(t.next) > -1; ) t.advance(), r++; - if (t.next == J6e) + if (t.next == eAe) return; for (let n = 0; ; n++) { if (n == 7) { @@ -23578,8 +23578,8 @@ const iAe = new Pa((t, e) => { t.advance(), r++; } } - t.acceptToken(Q6e, -r); -}), sAe = fd({ + t.acceptToken(U6e, -r); +}), aAe = dd({ "get set async static": Se.modifier, "for while do if else switch try catch finally return throw break continue default case": Se.controlKeyword, "in of await yield void typeof delete instanceof": Se.operatorKeyword, @@ -23635,28 +23635,28 @@ const iAe = new Pa((t, e) => { "JSXIdentifier JSXNameSpacedName": Se.tagName, "JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName": Se.attributeName, "JSXBuiltin/JSXIdentifier": Se.standard(Se.tagName) -}), aAe = { __proto__: null, export: 18, as: 23, from: 31, default: 34, async: 39, function: 40, extends: 52, this: 56, true: 64, false: 64, null: 76, void: 80, typeof: 84, super: 102, new: 136, delete: 152, yield: 161, await: 165, class: 170, public: 227, private: 227, protected: 227, readonly: 229, instanceof: 248, satisfies: 251, in: 252, const: 254, import: 286, keyof: 339, unique: 343, infer: 349, is: 385, abstract: 405, implements: 407, type: 409, let: 412, var: 414, using: 417, interface: 423, enum: 427, namespace: 433, module: 435, declare: 439, global: 443, for: 462, of: 471, while: 474, with: 478, do: 482, if: 486, else: 488, switch: 492, case: 498, try: 504, catch: 508, finally: 512, return: 516, throw: 520, break: 524, continue: 528, debugger: 532 }, oAe = { __proto__: null, async: 123, get: 125, set: 127, declare: 187, public: 189, private: 189, protected: 189, static: 191, abstract: 193, override: 195, readonly: 201, accessor: 203, new: 389 }, lAe = { __proto__: null, "<": 143 }, cAe = Vf.deserialize({ +}), oAe = { __proto__: null, export: 18, as: 23, from: 31, default: 34, async: 39, function: 40, extends: 52, this: 56, true: 64, false: 64, null: 76, void: 80, typeof: 84, super: 102, new: 136, delete: 152, yield: 161, await: 165, class: 170, public: 227, private: 227, protected: 227, readonly: 229, instanceof: 248, satisfies: 251, in: 252, const: 254, import: 286, keyof: 339, unique: 343, infer: 349, is: 385, abstract: 405, implements: 407, type: 409, let: 412, var: 414, using: 417, interface: 423, enum: 427, namespace: 433, module: 435, declare: 439, global: 443, for: 462, of: 471, while: 474, with: 478, do: 482, if: 486, else: 488, switch: 492, case: 498, try: 504, catch: 508, finally: 512, return: 516, throw: 520, break: 524, continue: 528, debugger: 532 }, lAe = { __proto__: null, async: 123, get: 125, set: 127, declare: 187, public: 189, private: 189, protected: 189, static: 191, abstract: 193, override: 195, readonly: 201, accessor: 203, new: 389 }, cAe = { __proto__: null, "<": 143 }, uAe = qf.deserialize({ version: 14, states: "$RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJkQWO,5;YOJpQWO'#JwOOQ07f,5:Z,5:ZOJwQ^O,5:ZOLxQ08SO,5:eOMiQWO,5:mONSQ07hO'#JvONZQWO'#JuO9ZQWO'#JuONoQWO'#JuONwQWO,5;XON|QWO'#JuO!#UQrO'#JjOOQ07b'#Ch'#ChO%[Q^O'#ERO!#tQpO,5:rOOQO'#Jr'#JrOOQO-EmOOQU'#J`'#J`OOQU,5>n,5>nOOQU-EpQWO'#HQO9aQWO'#HSO!CgQWO'#HSO:RQ7[O'#HUO!ClQWO'#HUOOQU,5=j,5=jO!CqQWO'#HVO!DSQWO'#CnO!DXQWO,59OO!DcQWO,59OO!FhQ^O,59OOOQU,59O,59OO!FxQ07hO,59OO%[Q^O,59OO!ITQ^O'#H^OOQU'#H_'#H_OOQU'#H`'#H`O`Q^O,5=vO!IkQWO,5=vO`Q^O,5=|O`Q^O,5>OO!IpQWO,5>QO`Q^O,5>SO!IuQWO,5>VO!IzQ^O,5>]OOQU,5>c,5>cO%[Q^O,5>cO9kQ07hO,5>eOOQU,5>g,5>gO!NUQWO,5>gOOQU,5>i,5>iO!NUQWO,5>iOOQU,5>k,5>kO!NZQ`O'#D[O%[Q^O'#JmO!NxQ`O'#JmO# gQ`O'#DjO# xQ`O'#DjO#$ZQ^O'#DjO#$bQWO'#JlO#$jQWO,5:TO#$oQWO'#EpO#$}QWO'#JzO#%VQWO,5;ZO#%[Q`O'#DjO#%iQ`O'#EUOOQ07b,5:n,5:nO%[Q^O,5:nO#%pQWO,5:nO>pQWO,5;UO!@}Q`O,5;UO!AVQ7[O,5;UO:RQ7[O,5;UO#%xQWO,5@XO#%}Q$ISO,5:rOOQO-E<`-E<`O#'TQ07pO,5:}OCnQ`O,5:qO#'_Q`O,5:qOCnQ`O,5:}O!@rQ07hO,5:qOOQ07`'#Ef'#EfOOQO,5:},5:}O%[Q^O,5:}O#'lQ07hO,5:}O#'wQ07hO,5:}O!@}Q`O,5:qOOQO,5;T,5;TO#(VQ07hO,5:}POOO'#IV'#IVP#(kO!0LbO,58{POOO,58{,58{OOOO-EwO+}Q^O,5>wOOQO,5>},5>}O#)VQ^O'#I]OOQO-EpQ08SO1G0{O#>wQ08SO1G0{O#@oQ08SO1G0{O#CoQ(CYO'#ChO#EmQ(CYO1G1^O#EtQ(CYO'#JjO!,lQWO1G1dO#FUQ08SO,5?TOOQ07`-EkQWO1G3lO$2^Q^O1G3nO$6bQ^O'#HmOOQU1G3q1G3qO$6oQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6wQ^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;OQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;TQ(CYO,5:UOOQO,5;[,5;[O$;_Q`O'#I^O$;uQWO,5@WOOQ07b1G/o1G/oO$;}Q`O'#IdO$pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$wO$>TQWO1G5qO$>]QWO1G6OO$>eQrO1G6PO9ZQWO,5>}O$>oQ08SO1G5|O%[Q^O1G5|O$?PQ07hO1G5|O$?bQWO1G5{O$?bQWO1G5{O9ZQWO1G5{O$?jQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@OQWO,5?QO$'TQWO,5?QOOQO-EXOOQU,5>X,5>XO%[Q^O'#HnO%7^QWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7cQ`O1G5sO%7wQ(CYO1G0vO%8RQWO1G0vOOQO1G/p1G/pO%8^Q(CYO1G/pO>pQWO1G/pO!*fQ^O'#DjOOQO,5>x,5>xOOQO-E<[-E<[OOQO,5?O,5?OOOQO-EpQWO7+&[O!@}Q`O7+&[OOQO7+%w7+%wO$=gQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8hQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8sQ07hO7+&TO%9RQ08SO7++hO%[Q^O7++hO%9cQWO7++gO%9cQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9kQWO1G4lOOQO7+%|7+%|O#%sQWO<tQ08SO1G2ZO%AVQ08SO1G2mO%CbQ08SO1G2oO%EmQ7[O,5>yOOQO-E<]-E<]O%EwQrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FRQWO1G5uOOQ07b<YOOQU,5>[,5>[O&5cQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5hQ(CYO1G6PO>pQWO7+%[OOQ07b<pQWO<pQWO7+)eO'&gQWO<}AN>}O%[Q^OAN?ZOOQO<eQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@ZQrO'#JiO!*fQ^O'#DqO'@bQ^O'#D}O'@iQrO'#ChO'CPQrO'#ChO!*fQ^O'#EPO'CaQ^O,5;VO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O'#IiO'EdQWO,5a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#Ip#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem", maxTerm: 371, - context: eAe, + context: tAe, nodeProps: [ ["group", -26, 8, 16, 18, 65, 201, 205, 209, 210, 212, 215, 218, 228, 230, 236, 238, 240, 242, 245, 251, 257, 259, 261, 263, 265, 267, 268, "Statement", -32, 12, 13, 28, 31, 32, 38, 48, 51, 52, 54, 59, 67, 75, 79, 81, 83, 84, 106, 107, 116, 117, 134, 137, 139, 140, 141, 142, 144, 145, 164, 165, 167, "Expression", -23, 27, 29, 33, 37, 39, 41, 168, 170, 172, 173, 175, 176, 177, 179, 180, 181, 183, 184, 185, 195, 197, 199, 200, "Type", -3, 87, 99, 105, "ClassItem"], ["openedBy", 22, "<", 34, "InterpolationStart", 53, "[", 57, "{", 72, "(", 157, "JSXStartCloseTag"], ["closedBy", 23, ">", 36, "InterpolationEnd", 47, "]", 58, "}", 73, ")", 162, "JSXEndTag"] ], - propSources: [sAe], + propSources: [aAe], skippedNodes: [0, 4, 5, 271], repeatNodeCount: 37, tokenData: "$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$f&j(Op(R!b't(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST(P#S$f&j'u(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$f&j(Op(R!b'u(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$f&j!o$Ip(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|3l_'}$(n$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$f&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$a`$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$a``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$a`$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(R!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$a`(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k#%|:hh$f&j(Op(R!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$f&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(R!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$f&j(OpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(OpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Op(R!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$f&j!USOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$f&j!USO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!USOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!US#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$f&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$f&j(R!b!USOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(R!b!USOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(R!b!USOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(R!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$f&j(R!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c# aAe[t] || -1 }, { term: 334, get: (t) => oAe[t] || -1 }, { term: 70, get: (t) => lAe[t] || -1 }], + specialized: [{ term: 319, get: (t) => oAe[t] || -1 }, { term: 334, get: (t) => lAe[t] || -1 }, { term: 70, get: (t) => cAe[t] || -1 }], tokenPrec: 14626 }), fne = [ /* @__PURE__ */ Qa("function ${name}(${params}) {\n ${}\n}", { @@ -23726,7 +23726,7 @@ const iAe = new Pa((t, e) => { detail: "default", type: "keyword" }) -], uAe = /* @__PURE__ */ fne.concat([ +], hAe = /* @__PURE__ */ fne.concat([ /* @__PURE__ */ Qa("interface ${name} {\n ${}\n}", { label: "interface", detail: "definition", @@ -23757,7 +23757,7 @@ function kv(t) { return n && r(n, t), !0; }; } -const hAe = ["FunctionDeclaration"], fAe = { +const fAe = ["FunctionDeclaration"], dAe = { FunctionDeclaration: /* @__PURE__ */ kv("function"), ClassDeclaration: /* @__PURE__ */ kv("class"), ClassExpression: () => !0, @@ -23765,7 +23765,7 @@ const hAe = ["FunctionDeclaration"], fAe = { TypeAliasDeclaration: /* @__PURE__ */ kv("type"), NamespaceDeclaration: /* @__PURE__ */ kv("namespace"), VariableDefinition(t, e) { - t.matchContext(hAe) || e(t, "variable"); + t.matchContext(fAe) || e(t, "variable"); }, TypeDefinition(t, e) { e(t, "type"); @@ -23785,7 +23785,7 @@ function pne(t, e) { if (i) i = !1; else if (a.name) { - let o = fAe[a.name]; + let o = dAe[a.name]; if (o && o(a, s) || dne.has(a.name)) return !1; } else if (a.to - a.from > 8192) { @@ -23811,7 +23811,7 @@ const hU = /^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/, gne = [ ".", "?." ]; -function dAe(t) { +function pAe(t) { let e = Cn(t.state).resolveInner(t.pos, -1); if (gne.indexOf(e.name) > -1) return null; @@ -23827,14 +23827,14 @@ function dAe(t) { validFor: hU }; } -const eu = /* @__PURE__ */ $f.define({ +const eu = /* @__PURE__ */ Bf.define({ name: "javascript", - parser: /* @__PURE__ */ cAe.configure({ + parser: /* @__PURE__ */ uAe.configure({ props: [ /* @__PURE__ */ x1.add({ IfStatement: /* @__PURE__ */ l5({ except: /^\s*({|else\b)/ }), TryStatement: /* @__PURE__ */ l5({ except: /^\s*({|catch\b|finally\b)/ }), - LabeledStatement: v5e, + LabeledStatement: y5e, SwitchBody: (t) => { let e = t.textAfter, r = /^\s*\}/.test(e), n = /^\s*(case|default)\b/.test(e); return t.baseIndent + (r ? 0 : n ? 1 : 2) * t.unit; @@ -23880,20 +23880,20 @@ const eu = /* @__PURE__ */ $f.define({ props: [/* @__PURE__ */ lD.add((t) => t.isTop ? [mne] : void 0)] }, "typescript"); let xne = (t) => ({ label: t, type: "keyword" }); -const wne = /* @__PURE__ */ "break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(xne), pAe = /* @__PURE__ */ wne.concat(/* @__PURE__ */ ["declare", "implements", "private", "protected", "public"].map(xne)); -function gAe(t = {}) { - let e = t.jsx ? t.typescript ? bne : yne : t.typescript ? vne : eu, r = t.typescript ? uAe.concat(pAe) : fne.concat(wne); +const wne = /* @__PURE__ */ "break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(xne), gAe = /* @__PURE__ */ wne.concat(/* @__PURE__ */ ["declare", "implements", "private", "protected", "public"].map(xne)); +function mAe(t = {}) { + let e = t.jsx ? t.typescript ? bne : yne : t.typescript ? vne : eu, r = t.typescript ? hAe.concat(gAe) : fne.concat(wne); return new gm(e, [ eu.data.of({ - autocomplete: L3e(gne, hte(r)) + autocomplete: R3e(gne, hte(r)) }), eu.data.of({ - autocomplete: dAe + autocomplete: pAe }), - t.jsx ? yAe : [] + t.jsx ? bAe : [] ]); } -function mAe(t) { +function vAe(t) { for (; ; ) { if (t.name == "JSXOpenTag" || t.name == "JSXSelfClosingTag" || t.name == "JSXFragmentTag") return t; @@ -23908,8 +23908,8 @@ function fU(t, e, r = t.length) { return t.sliceString(n.from, Math.min(n.to, r)); return ""; } -const vAe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), yAe = /* @__PURE__ */ kt.inputHandler.of((t, e, r, n, i) => { - if ((vAe ? t.composing : t.compositionStarted) || t.state.readOnly || e != r || n != ">" && n != "/" || !eu.isActiveAt(t.state, e, -1)) +const yAe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), bAe = /* @__PURE__ */ kt.inputHandler.of((t, e, r, n, i) => { + if ((yAe ? t.composing : t.compositionStarted) || t.state.readOnly || e != r || n != ">" && n != "/" || !eu.isActiveAt(t.state, e, -1)) return !1; let s = i(), { state: a } = s, o = a.changeByRange((l) => { var u; @@ -23924,7 +23924,7 @@ const vAe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(nav return { range: je.cursor(h + m.length, -1), changes: { from: h, insert: m } }; } } else if (n == ">") { - let p = mAe(f); + let p = vAe(f); if (p && !/^\/?>|^<\//.test(a.doc.sliceString(h, h + 2)) && (d = fU(a.doc, p, h))) return { range: l, changes: { from: h, insert: `` } }; } @@ -23935,7 +23935,7 @@ const vAe = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(nav s, a.update(o, { userEvent: "input.complete", scrollIntoView: !0 }) ]), !0); -}), Sv = ["_blank", "_self", "_top", "_parent"], i6 = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], s6 = ["get", "post", "put", "delete"], a6 = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], yo = ["true", "false"], Xt = {}, bAe = { +}), Sv = ["_blank", "_self", "_top", "_parent"], i6 = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], s6 = ["get", "post", "put", "delete"], a6 = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], yo = ["true", "false"], Xt = {}, xAe = { a: { attrs: { href: null, @@ -24358,7 +24358,7 @@ for (let t of kne) One[t] = null; class Q2 { constructor(e, r) { - this.tags = Object.assign(Object.assign({}, bAe), e), this.globalAttrs = Object.assign(Object.assign({}, One), r), this.allTags = Object.keys(this.tags), this.globalAttrNames = Object.keys(this.globalAttrs); + this.tags = Object.assign(Object.assign({}, xAe), e), this.globalAttrs = Object.assign(Object.assign({}, One), r), this.allTags = Object.keys(this.tags), this.globalAttrNames = Object.keys(this.globalAttrs); } } Q2.default = /* @__PURE__ */ new Q2(); @@ -24415,7 +24415,7 @@ function pU(t, e, r, n) { validFor: Tne }; } -function xAe(t, e, r, n) { +function wAe(t, e, r, n) { let i = [], s = 0; for (let a of Sne(t.doc, r, e)) i.push({ label: "<" + a, type: "type" }); @@ -24423,7 +24423,7 @@ function xAe(t, e, r, n) { i.push({ label: "", type: "type", boost: 99 - s++ }); return { from: n, to: n, options: i, validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/ }; } -function wAe(t, e, r, n, i) { +function OAe(t, e, r, n, i) { let s = Tm(r), a = s ? e.tags[Sm(t.doc, s)] : null, o = a && a.attrs ? Object.keys(a.attrs) : [], l = a && a.globalAttrs === !1 ? o : o.length ? o.concat(e.globalAttrNames) : e.globalAttrNames; return { from: n, @@ -24432,7 +24432,7 @@ function wAe(t, e, r, n, i) { validFor: Tne }; } -function OAe(t, e, r, n, i) { +function kAe(t, e, r, n, i) { var s; let a = (s = r.parent) === null || s === void 0 ? void 0 : s.getChild("AttributeName"), o = [], l; if (a) { @@ -24458,16 +24458,16 @@ function Cne(t, e) { break; s = i = o, a = l.from; } - return i.name == "TagName" ? i.parent && /CloseTag$/.test(i.parent.name) ? pU(r, i, i.from, n) : dU(r, t, i, i.from, n) : i.name == "StartTag" ? dU(r, t, i, n, n) : i.name == "StartCloseTag" || i.name == "IncompleteCloseTag" ? pU(r, i, n, n) : e.explicit && (i.name == "OpenTag" || i.name == "SelfClosingTag") || i.name == "AttributeName" ? wAe(r, t, i, i.name == "AttributeName" ? i.from : n, n) : i.name == "Is" || i.name == "AttributeValue" || i.name == "UnquotedAttributeValue" ? OAe(r, t, i, i.name == "Is" ? n : i.from, n) : e.explicit && (s.name == "Element" || s.name == "Text" || s.name == "Document") ? xAe(r, t, i, n) : null; + return i.name == "TagName" ? i.parent && /CloseTag$/.test(i.parent.name) ? pU(r, i, i.from, n) : dU(r, t, i, i.from, n) : i.name == "StartTag" ? dU(r, t, i, n, n) : i.name == "StartCloseTag" || i.name == "IncompleteCloseTag" ? pU(r, i, n, n) : e.explicit && (i.name == "OpenTag" || i.name == "SelfClosingTag") || i.name == "AttributeName" ? OAe(r, t, i, i.name == "AttributeName" ? i.from : n, n) : i.name == "Is" || i.name == "AttributeValue" || i.name == "UnquotedAttributeValue" ? kAe(r, t, i, i.name == "Is" ? n : i.from, n) : e.explicit && (s.name == "Element" || s.name == "Text" || s.name == "Document") ? wAe(r, t, i, n) : null; } -function kAe(t) { +function SAe(t) { return Cne(Q2.default, t); } -function SAe(t) { +function TAe(t) { let { extraTags: e, extraGlobalAttributes: r } = t, n = r || e ? new Q2(e, r) : Q2.default; return (i) => Cne(n, i); } -const TAe = /* @__PURE__ */ eu.parser.configure({ top: "SingleExpression" }), Ene = [ +const CAe = /* @__PURE__ */ eu.parser.configure({ top: "SingleExpression" }), Ene = [ { tag: "script", attrs: (t) => t.type == "text/typescript" || t.lang == "ts", @@ -24488,7 +24488,7 @@ const TAe = /* @__PURE__ */ eu.parser.configure({ top: "SingleExpression" }), En attrs(t) { return /^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type); }, - parser: TAe + parser: CAe }, { tag: "script", @@ -24509,9 +24509,9 @@ const TAe = /* @__PURE__ */ eu.parser.configure({ top: "SingleExpression" }), En name: "style", parser: /* @__PURE__ */ jk.parser.configure({ top: "Styles" }) } -].concat(/* @__PURE__ */ kne.map((t) => ({ name: t, parser: eu.parser }))), Ane = /* @__PURE__ */ $f.define({ +].concat(/* @__PURE__ */ kne.map((t) => ({ name: t, parser: eu.parser }))), Ane = /* @__PURE__ */ Bf.define({ name: "html", - parser: /* @__PURE__ */ c6e.configure({ + parser: /* @__PURE__ */ u6e.configure({ props: [ /* @__PURE__ */ x1.add({ Element(t) { @@ -24553,18 +24553,18 @@ const TAe = /* @__PURE__ */ eu.parser.configure({ top: "SingleExpression" }), En }), m5 = /* @__PURE__ */ Ane.configure({ wrap: /* @__PURE__ */ one(Ene, _ne) }); -function CAe(t = {}) { +function EAe(t = {}) { let e = "", r; t.matchClosingTags === !1 && (e = "noMatch"), t.selfClosingTags === !0 && (e = (e ? e + " " : "") + "selfClosing"), (t.nestedLanguages && t.nestedLanguages.length || t.nestedAttributes && t.nestedAttributes.length) && (r = one((t.nestedLanguages || []).concat(Ene), (t.nestedAttributes || []).concat(_ne))); let n = r ? Ane.configure({ wrap: r, dialect: e }) : e ? m5.configure({ dialect: e }) : m5; return new gm(n, [ - m5.data.of({ autocomplete: SAe(t) }), - t.autoCloseTags !== !1 ? EAe : [], - gAe().support, - B6e().support + m5.data.of({ autocomplete: TAe(t) }), + t.autoCloseTags !== !1 ? _Ae : [], + mAe().support, + F6e().support ]); } -const gU = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), EAe = /* @__PURE__ */ kt.inputHandler.of((t, e, r, n, i) => { +const gU = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), _Ae = /* @__PURE__ */ kt.inputHandler.of((t, e, r, n, i) => { if (t.composing || t.state.readOnly || e != r || n != ">" && n != "/" || !m5.isActiveAt(t.state, e, -1)) return !1; let s = i(), { state: a } = s, o = a.changeByRange((l) => { @@ -24594,7 +24594,7 @@ const gU = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command emb scrollIntoView: !0 }) ]), !0); -}), Lne = /* @__PURE__ */ oD({ commentTokens: { block: { open: "" } } }), Rne = /* @__PURE__ */ new yr(), Mne = /* @__PURE__ */ i_e.configure({ +}), Lne = /* @__PURE__ */ oD({ commentTokens: { block: { open: "" } } }), Rne = /* @__PURE__ */ new br(), Mne = /* @__PURE__ */ s_e.configure({ props: [ /* @__PURE__ */ vp.add((t) => !t.is("Block") || t.is("Document") || s9(t) != null ? void 0 : (e, r) => ({ from: r.doc.lineAt(e.from).to, to: e.to })), /* @__PURE__ */ Rne.add(s9), @@ -24610,7 +24610,7 @@ function s9(t) { let e = /^(?:ATX|Setext)Heading(\d)$/.exec(t.name); return e ? +e[1] : void 0; } -function _Ae(t, e) { +function AAe(t, e) { let r = t; for (; ; ) { let n = r.nextSibling, i; @@ -24620,28 +24620,28 @@ function _Ae(t, e) { } return r.to; } -const AAe = /* @__PURE__ */ aee.of((t, e, r) => { +const LAe = /* @__PURE__ */ aee.of((t, e, r) => { for (let n = Cn(t).resolveInner(r, -1); n && !(n.from < e); n = n.parent) { let i = n.type.prop(Rne); if (i == null) continue; - let s = _Ae(n, i); + let s = AAe(n, i); if (s > r) return { from: r, to: s }; } return null; }); function nP(t) { - return new el(Lne, t, [AAe], "markdown"); + return new el(Lne, t, [LAe], "markdown"); } -const LAe = /* @__PURE__ */ nP(Mne), RAe = /* @__PURE__ */ Mne.configure([g_e, v_e, m_e, y_e, { +const RAe = /* @__PURE__ */ nP(Mne), MAe = /* @__PURE__ */ Mne.configure([m_e, y_e, v_e, b_e, { props: [ /* @__PURE__ */ vp.add({ Table: (t, e) => ({ from: e.doc.lineAt(t.from).to, to: t.to }) }) ] -}]), Dne = /* @__PURE__ */ nP(RAe); -function MAe(t, e) { +}]), Dne = /* @__PURE__ */ nP(MAe); +function DAe(t, e) { return (r) => { if (r && t) { let n = null; @@ -24726,7 +24726,7 @@ function a9(t, e) { s >= 4 ? (i += " ", s -= 4) : (i += " ", s--); return i + t.slice(r); } -const DAe = ({ state: t, dispatch: e }) => { +const PAe = ({ state: t, dispatch: e }) => { let r = Cn(t), { doc: n } = t, i = null, s = t.changeByRange((a) => { if (!a.empty || !Dne.isActiveAt(t, a.from)) return i = { range: a }; @@ -24780,7 +24780,7 @@ const DAe = ({ state: t, dispatch: e }) => { function mU(t) { return t.name == "QuoteMark" || t.name == "ListMark"; } -function PAe(t, e) { +function NAe(t, e) { let r = t.resolveInner(e, -1), n = e; mU(r) && (n = r.from, r = r.parent); for (let i; i = r.childBefore(n); ) @@ -24792,11 +24792,11 @@ function PAe(t, e) { break; return r; } -const NAe = ({ state: t, dispatch: e }) => { +const IAe = ({ state: t, dispatch: e }) => { let r = Cn(t), n = null, i = t.changeByRange((s) => { let a = s.from, { doc: o } = t; if (s.empty && Dne.isActiveAt(t, s.from)) { - let l = o.lineAt(a), u = Pne(PAe(r, a), o); + let l = o.lineAt(a), u = Pne(NAe(r, a), o); if (u.length) { let h = u[u.length - 1], f = h.to - h.spaceAfter.length + (h.spaceAfter ? 1 : 0); if (a - l.from > f && !/\S/.test(l.text.slice(f, a - l.from))) @@ -24821,22 +24821,22 @@ const NAe = ({ state: t, dispatch: e }) => { return n = { range: s }; }); return n ? !1 : (e(t.update(i, { scrollIntoView: !0, userEvent: "delete" })), !0); -}, IAe = [ - { key: "Enter", run: DAe }, - { key: "Backspace", run: NAe } -], o9 = /* @__PURE__ */ CAe({ matchClosingTags: !1 }); -function $Ae(t = {}) { - let { codeLanguages: e, defaultCodeLanguage: r, addKeymap: n = !0, base: { parser: i } = LAe, completeHTMLTags: s = !0 } = t; +}, $Ae = [ + { key: "Enter", run: PAe }, + { key: "Backspace", run: IAe } +], o9 = /* @__PURE__ */ EAe({ matchClosingTags: !1 }); +function BAe(t = {}) { + let { codeLanguages: e, defaultCodeLanguage: r, addKeymap: n = !0, base: { parser: i } = RAe, completeHTMLTags: s = !0 } = t; if (!(i instanceof nC)) throw new RangeError("Base parser provided to `markdown` should be a Markdown parser"); let a = t.extensions ? [t.extensions] : [], o = [o9.support], l; r instanceof gm ? (o.push(r.support), l = r.language) : r && (l = r); - let u = e || l ? MAe(e, l) : void 0; - a.push(a_e({ codeParser: u, htmlParser: o9.language.parser })), n && o.push(uc.high(ju.of(IAe))); + let u = e || l ? DAe(e, l) : void 0; + a.push(o_e({ codeParser: u, htmlParser: o9.language.parser })), n && o.push(uc.high(ju.of($Ae))); let h = nP(i.configure(a)); - return s && o.push(h.data.of({ autocomplete: BAe })), new gm(h, o); + return s && o.push(h.data.of({ autocomplete: FAe })), new gm(h, o); } -function BAe(t) { +function FAe(t) { let { state: e, pos: r } = t, n = /<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(r - 25, r)); if (!n) return null; @@ -24849,25 +24849,25 @@ function BAe(t) { return { from: r - n[0].length, to: r, - options: FAe(), + options: zAe(), validFor: /^<[:\-\.\w\u00b7-\uffff]*$/ }; } let l6 = null; -function FAe() { +function zAe() { if (l6) return l6; - let t = kAe(new wD(Tr.create({ extensions: o9 }), 0, !0)); + let t = SAe(new wD(Tr.create({ extensions: o9 }), 0, !0)); return l6 = t ? t.options : []; } -function zAe(t) { +function QAe(t) { throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); } var Ine = { exports: {} }; -const QAe = {}, UAe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const UAe = {}, VAe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: QAe -}, Symbol.toStringTag, { value: "Module" })), VAe = /* @__PURE__ */ Jj(UAe); + default: UAe +}, Symbol.toStringTag, { value: "Module" })), qAe = /* @__PURE__ */ Jj(VAe); (function(t) { var e; (function() { @@ -24923,8 +24923,8 @@ const QAe = {}, UAe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin u(a.statusText); }; })), a.overrideMimeType && a.overrideMimeType("text/plain; charset=" + n), a.send(null), i ? s : a.responseText; - } else if (typeof zAe < "u") { - var o = VAe; + } else if (typeof QAe < "u") { + var o = qAe; try { if (o.existsSync(r)) return o.readFileSync(r, n); @@ -25159,18 +25159,18 @@ const QAe = {}, UAe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin }; })(), t.exports = e; })(Ine); -const qAe = Ine.exports, $ne = $t.define({ +const YAe = Ine.exports, $ne = $t.define({ combine: (t) => t[t.length - 1] -}), YAe = It.mark({ +}), WAe = It.mark({ class: "cm-error" -}), WAe = (t) => Object.keys(t.rules).length > 0; +}), GAe = (t) => Object.keys(t.rules).length > 0; function vU(t) { var s, a; let e = ((s = t.visibleRanges[0]) == null ? void 0 : s.from) || 0, r = ((a = t.visibleRanges[0]) == null ? void 0 : a.to) || void 0; const n = new ls(), i = t.state.facet($ne); - return WAe(i) && t.state.doc.sliceString(e, r).replaceAll(/\w+/g, (o, l) => !i.check(o) && n.add(e + l, e + l + o.length, YAe)), n.finish(); + return GAe(i) && t.state.doc.sliceString(e, r).replaceAll(/\w+/g, (o, l) => !i.check(o) && n.add(e + l, e + l + o.length, WAe)), n.finish(); } -const GAe = hn.fromClass(class { +const XAe = hn.fromClass(class { constructor(t) { this.decorations = vU(t); } @@ -25180,18 +25180,18 @@ const GAe = hn.fromClass(class { }, { decorations: (t) => t.decorations }); -function XAe(t) { +function HAe(t) { if (!t) return []; let { dict: e = "en_US", dictionaryPath: r = "/dictionaries" } = t; - return [$ne.of(new qAe(e, null, null, { + return [$ne.of(new YAe(e, null, null, { dictionaryPath: r - })), GAe]; + })), XAe]; } -const HAe = "cm-link", ZAe = [{ +const ZAe = "cm-link", jAe = [{ target: /`[^`\n]+`/g, cssClass: "cm-mono" }]; @@ -25213,7 +25213,7 @@ function yU(t, e, r, n) { match: f }) => { let d = { - class: HAe + class: ZAe }; h.cssClass && (d.class = h.cssClass); let p; @@ -25229,7 +25229,7 @@ function yU(t, e, r, n) { } const iP = (t, e, r) => { t || (t = []); - const n = t.concat(ZAe); + const n = t.concat(jAe); return hn.fromClass(class { constructor(i) { this.decorations = yU(i, n, e, r); @@ -25241,24 +25241,24 @@ const iP = (t, e, r) => { decorations: (i) => i.decorations }); }, Bne = /* @__PURE__ */ new Map(); -class jAe { +class KAe { constructor(e) { - this.room = e, this.onmessage = null, this._onChange = (r) => r.key === e && this.onmessage !== null && this.onmessage({ data: UTe(r.newValue || "") }), xTe(this._onChange); + this.room = e, this.onmessage = null, this._onChange = (r) => r.key === e && this.onmessage !== null && this.onmessage({ data: VTe(r.newValue || "") }), wTe(this._onChange); } postMessage(e) { - Nte.setItem(this.room, QTe(ITe(e))); + Nte.setItem(this.room, UTe($Te(e))); } close() { - wTe(this._onChange); + OTe(this._onChange); } } -const KAe = typeof BroadcastChannel > "u" ? jAe : BroadcastChannel, sP = (t) => Lh(Bne, t, () => { - const e = P0(), r = new KAe(t); +const JAe = typeof BroadcastChannel > "u" ? KAe : BroadcastChannel, sP = (t) => Lh(Bne, t, () => { + const e = P0(), r = new JAe(t); return r.onmessage = (n) => e.forEach((i) => i(n.data, "broadcastchannel")), { bc: r, subs: e }; -}), JAe = (t, e) => (sP(t).subs.add(e), e), e7e = (t, e) => { +}), e7e = (t, e) => (sP(t).subs.add(e), e), t7e = (t, e) => { const r = sP(t), n = r.subs.delete(e); return n && r.subs.size === 0 && (r.bc.close(), Bne.delete(t)), n; }, cg = (t, e, r = null) => { @@ -25266,44 +25266,44 @@ const KAe = typeof BroadcastChannel > "u" ? jAe : BroadcastChannel, sP = (t) => n.bc.postMessage(e), n.subs.forEach((i) => i(e, r)); }, Fne = 0, aP = 1, zne = 2, l9 = (t, e) => { rr(t, Fne); - const r = TCe(e); + const r = CCe(e); ci(t, r); }, Qne = (t, e, r) => { - rr(t, aP), ci(t, wCe(e, r)); -}, t7e = (t, e, r) => Qne(e, r, Ys(t)), Une = (t, e, r) => { + rr(t, aP), ci(t, OCe(e, r)); +}, r7e = (t, e, r) => Qne(e, r, Ys(t)), Une = (t, e, r) => { try { - yCe(e, Ys(t), r); + bCe(e, Ys(t), r); } catch (n) { console.error("Caught error while handling a Yjs update", n); } -}, r7e = (t, e) => { +}, n7e = (t, e) => { rr(t, zne), ci(t, e); -}, n7e = Une, i7e = (t, e, r, n) => { +}, i7e = Une, s7e = (t, e, r, n) => { const i = wr(t); switch (i) { case Fne: - t7e(t, e, r); + r7e(t, e, r); break; case aP: Une(t, r, n); break; case zne: - n7e(t, r, n); + i7e(t, r, n); break; default: throw new Error("Unknown message type"); } return i; -}, s7e = 0, a7e = (t, e, r) => { +}, a7e = 0, o7e = (t, e, r) => { switch (wr(t)) { - case s7e: - r(e, kf(t)); + case a7e: + r(e, Sf(t)); } }, c6 = 3e4; class Vne extends GT { constructor(e) { super(), this.doc = e, this.clientID = e.clientID, this.states = /* @__PURE__ */ new Map(), this.meta = /* @__PURE__ */ new Map(), this._checkInterval = setInterval(() => { - const r = Uf(); + const r = Vf(); this.getLocalState() !== null && c6 / 2 <= r - this.meta.get(this.clientID).lastUpdated && this.setLocalState(this.getLocalState()); const n = []; this.meta.forEach((i, s) => { @@ -25323,7 +25323,7 @@ class Vne extends GT { const r = this.clientID, n = this.meta.get(r), i = n === void 0 ? 0 : n.clock + 1, s = this.states.get(r); e === null ? this.states.delete(r) : this.states.set(r, e), this.meta.set(r, { clock: i, - lastUpdated: Uf() + lastUpdated: Vf() }); const a = [], o = [], l = [], u = []; e === null ? u.push(r) : s == null ? e != null && a.push(r) : (o.push(r), By(s, e) || l.push(r)), (a.length > 0 || l.length > 0 || u.length > 0) && this.emit("change", [{ added: a, updated: l, removed: u }, "local"]), this.emit("update", [{ added: a, updated: o, removed: u }, "local"]); @@ -25348,7 +25348,7 @@ const oP = (t, e, r) => { const a = t.meta.get(s); t.meta.set(s, { clock: a.clock + 1, - lastUpdated: Uf() + lastUpdated: Vf() }); } n.push(s); @@ -25363,12 +25363,12 @@ const oP = (t, e, r) => { rr(i, a), rr(i, l), S0(i, JSON.stringify(o)); } return Vn(i); -}, o7e = (t, e, r) => { - const n = gd(e), i = Uf(), s = [], a = [], o = [], l = [], u = wr(n); +}, l7e = (t, e, r) => { + const n = md(e), i = Vf(), s = [], a = [], o = [], l = [], u = wr(n); for (let h = 0; h < u; h++) { const f = wr(n); let d = wr(n); - const p = JSON.parse(kf(n)), g = t.meta.get(f), m = t.states.get(f), v = g === void 0 ? 0 : g.clock; + const p = JSON.parse(Sf(n)), g = t.meta.get(f), m = t.states.get(f), v = g === void 0 ? 0 : g.clock; (v < d || v === d && p === null && t.states.has(f)) && (p === null ? f === t.clientID && t.getLocalState() != null ? d++ : t.states.delete(f) : t.states.set(f, p), t.meta.set(f, { clock: d, lastUpdated: i @@ -25383,10 +25383,10 @@ const oP = (t, e, r) => { updated: a, removed: l }, r]); -}, l7e = (t) => TTe(t, (e, r) => `${encodeURIComponent(r)}=${encodeURIComponent(e)}`).join("&"), c0 = 0, qne = 3, zg = 1, c7e = 2, Hx = []; +}, c7e = (t) => CTe(t, (e, r) => `${encodeURIComponent(r)}=${encodeURIComponent(e)}`).join("&"), c0 = 0, qne = 3, zg = 1, u7e = 2, Hx = []; Hx[c0] = (t, e, r, n, i) => { rr(t, c0); - const s = i7e( + const s = s7e( e, t, r.doc, @@ -25404,28 +25404,28 @@ Hx[qne] = (t, e, r, n, i) => { ); }; Hx[zg] = (t, e, r, n, i) => { - o7e( + l7e( r.awareness, Ys(e), r ); }; -Hx[c7e] = (t, e, r, n, i) => { - a7e( +Hx[u7e] = (t, e, r, n, i) => { + o7e( e, r.doc, - (s, a) => u7e(r, a) + (s, a) => h7e(r, a) ); }; -const bU = 3e4, u7e = (t, e) => console.warn(`Permission denied to access ${t.url}. +const bU = 3e4, h7e = (t, e) => console.warn(`Permission denied to access ${t.url}. ${e}`), Yne = (t, e, r) => { - const n = gd(e), i = Ws(), s = wr(n), a = t.messageHandlers[s]; + const n = md(e), i = Ws(), s = wr(n), a = t.messageHandlers[s]; return a ? a(i, n, t, r, s) : console.error("Unable to compute message"), i; }, Wne = (t) => { if (t.shouldConnect && t.ws === null) { const e = new t._WS(t.url); e.binaryType = "arraybuffer", t.ws = e, t.wsconnecting = !0, t.wsconnected = !1, t.synced = !1, e.onmessage = (r) => { - t.wsLastMessageReceived = Uf(); + t.wsLastMessageReceived = Vf(); const n = Yne(t, new Uint8Array(r.data), !0); _D(n) > 1 && e.send(Vn(n)); }, e.onerror = (r) => { @@ -25442,13 +25442,13 @@ ${e}`), Yne = (t, e, r) => { }])) : t.wsUnsuccessfulReconnects++, setTimeout( Wne, XT( - QSe(2, t.wsUnsuccessfulReconnects) * 100, + USe(2, t.wsUnsuccessfulReconnects) * 100, t.maxBackoffTime ), t ); }, e.onopen = () => { - t.wsLastMessageReceived = Uf(), t.wsconnecting = !1, t.wsconnected = !0, t.wsUnsuccessfulReconnects = 0, t.emit("status", [{ + t.wsLastMessageReceived = Vf(), t.wsconnecting = !1, t.wsconnected = !0, t.wsUnsuccessfulReconnects = 0, t.emit("status", [{ status: "connected" }]); const r = Ws(); @@ -25481,7 +25481,7 @@ class Gne extends GT { } = {}) { for (super(); e[e.length - 1] === "/"; ) e = e.slice(0, e.length - 1); - const f = l7e(a); + const f = c7e(a); this.maxBackoffTime = u, this.bcChannel = e + "/" + r, this.url = e + "/" + r + (f.length === 0 ? "" : "?" + f), this.roomname = r, this.doc = n, this._WS = o, this.awareness = s, this.wsconnected = !1, this.wsconnecting = !1, this.bcconnected = !1, this.disableBc = h, this.wsUnsuccessfulReconnects = 0, this.messageHandlers = Hx.slice(), this._synced = !1, this.ws = null, this.wsLastMessageReceived = 0, this.shouldConnect = i, this._resyncInterval = 0, l > 0 && (this._resyncInterval = setInterval(() => { if (this.ws && this.ws.readyState === WebSocket.OPEN) { const d = Ws(); @@ -25495,7 +25495,7 @@ class Gne extends GT { }, this._updateHandler = (d, p) => { if (p !== this) { const g = Ws(); - rr(g, c0), r7e(g, d), u6(this, Vn(g)); + rr(g, c0), n7e(g, d), u6(this, Vn(g)); } }, this.doc.on("update", this._updateHandler), this._awarenessUpdateHandler = ({ added: d, updated: p, removed: g }, m) => { const v = d.concat(p).concat(g), y = Ws(); @@ -25510,7 +25510,7 @@ class Gne extends GT { "window unload" ); }, typeof window < "u" ? window.addEventListener("unload", this._unloadHandler) : typeof process < "u" && process.on("exit", this._unloadHandler), s.on("update", this._awarenessUpdateHandler), this._checkInterval = setInterval(() => { - this.wsconnected && bU < Uf() - this.wsLastMessageReceived && this.ws.close(); + this.wsconnected && bU < Vf() - this.wsLastMessageReceived && this.ws.close(); }, bU / 10), i && this.connect(); } get synced() { @@ -25525,7 +25525,7 @@ class Gne extends GT { connectBc() { if (this.disableBc) return; - this.bcconnected || (JAe(this.bcChannel, this._bcSubscriber), this.bcconnected = !0); + this.bcconnected || (e7e(this.bcChannel, this._bcSubscriber), this.bcconnected = !0); const e = Ws(); rr(e, c0), l9(e, this.doc), cg(this.bcChannel, Vn(e), this); const r = Ws(); @@ -25555,7 +25555,7 @@ class Gne extends GT { Qy(this.awareness, [ this.doc.clientID ], /* @__PURE__ */ new Map()) - ), u6(this, Vn(e)), this.bcconnected && (e7e(this.bcChannel, this._bcSubscriber), this.bcconnected = !1); + ), u6(this, Vn(e)), this.bcconnected && (t7e(this.bcChannel, this._bcSubscriber), this.bcconnected = !1); } disconnect() { this.shouldConnect = !1, this.disconnectBc(), this.ws !== null && this.ws.close(); @@ -25564,10 +25564,10 @@ class Gne extends GT { this.shouldConnect = !0, !this.wsconnected && this.ws === null && (Wne(this), this.connectBc()); } } -const h7e = (t) => ["input", "delete", "undo", "redo"].some((e) => t.isUserEvent(e)), U2 = $t.define({ +const f7e = (t) => ["input", "delete", "undo", "redo"].some((e) => t.isUserEvent(e)), U2 = $t.define({ combine: (t) => t[t.length - 1], static: !0 -}), Xne = or.define(), f7e = hn.fromClass(class { +}), Xne = or.define(), d7e = hn.fromClass(class { constructor(t) { this.decorations = this.colorEditorLines(t); } @@ -25604,7 +25604,7 @@ const h7e = (t) => ["input", "delete", "undo", "redo"].some((e) => t.isUserEvent }); } update(t) { - (t.docChanged || t.viewportChanged || t.transactions.some((e) => e.effects.some((r) => r.is(Xne)))) && (t.transactions.filter(h7e).forEach((e) => this.markLinesEditedInTransaction(e)), this.decorations = this.colorEditorLines(t.view)), t.view.dom.onmouseleave = () => t.view.dispatch({ + (t.docChanged || t.viewportChanged || t.transactions.some((e) => e.effects.some((r) => r.is(Xne)))) && (t.transactions.filter(f7e).forEach((e) => this.markLinesEditedInTransaction(e)), this.decorations = this.colorEditorLines(t.view)), t.view.dom.onmouseleave = () => t.view.dispatch({ effects: c9.of(null) }), t.view.dom.querySelectorAll(".cm-line").forEach((e) => { e.onmouseenter = (r) => t.view.dispatch({ @@ -25639,11 +25639,11 @@ class xU extends ul { return this.selectedLine && this.selectedLine == this.lineNumber ? this.authorAvatar() : document.createElement("div"); } } -const d7e = BT({ +const p7e = BT({ lineMarker: (t, e) => new xU(e, t), lineMarkerChange: (t) => t.startState.field(Kk) != t.state.field(Kk), initialSpacer: () => new xU(null, null) -}), p7e = (t) => [U2.of(t), Kk.init(null), d7e, f7e], xp = Ht.button` +}), g7e = (t) => [U2.of(t), Kk.init(null), p7e, d7e], xp = Ht.button` &:focus { outline: 0 !important; } @@ -25673,10 +25673,10 @@ const d7e = BT({ `; or.define(); const Hne = new mp(); -function g7e(t) { +function m7e(t) { return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } -function m7e({ +function v7e({ commentId: t, text: e, color: r @@ -25689,7 +25689,7 @@ function m7e({ break; let s = e.slice(0, i), a = ""; s.includes("->") && (a = s.slice(s.indexOf("->") + 2).trimStart(), s = s.slice(0, s.indexOf("->")).trimEnd()), s.length !== 0 && n.push({ - targetRegexSrc: `(?<=^|[ \\t\\r\\.]|\\W)${g7e(s)}(?=$|[\\s\\.]|\\W)`, + targetRegexSrc: `(?<=^|[ \\t\\r\\.]|\\W)${m7e(s)}(?=$|[\\s\\.]|\\W)`, targetRegexFlags: "gm", id: t, cssClass: "cm-suggestion", @@ -25699,7 +25699,7 @@ function m7e({ } return n; } -function v7e({ +function y7e({ builder: t, from: e, match: r, @@ -25712,7 +25712,7 @@ function v7e({ }), n.replacement) return i.class += " replaced", () => { t.add(e + r.index + r[0].length, e + r.index + r[0].length, It.widget({ - widget: new y7e({ + widget: new b7e({ text: n.replacement, color: n.color, from: e + r.index, @@ -25722,7 +25722,7 @@ function v7e({ })); }; } -class y7e extends uo { +class b7e extends uo { constructor({ text: e, color: r, @@ -25745,7 +25745,7 @@ class y7e extends uo { }), e; } } -function b7e(t, e, r) { +function x7e(t, e, r) { const n = r.current.querySelector(".myst-add-suggestion"), i = t.state.selection.main, s = i.head === i.anchor, a = t.state.doc.lineAt(i.head).number !== t.state.doc.lineAt(i.anchor).number; if (!t.selectionSet || s || a) { n.style.display = "none"; @@ -25783,7 +25783,7 @@ function b7e(t, e, r) { }); }; } -const x7e = Ht(xp)` +const w7e = Ht(xp)` position: absolute; z-index: 10; display: none; @@ -25812,10 +25812,10 @@ const x7e = Ht(xp)` border-top: 10px solid var(--icon-border); } `; -var w7e = Symbol.for("preact-signals"); +var O7e = Symbol.for("preact-signals"); function iC() { - if (Sf > 1) - Sf--; + if (Tf > 1) + Tf--; else { for (var t, e = !1; Uy !== void 0; ) { var r = Uy; @@ -25830,21 +25830,21 @@ function iC() { r = n; } } - if (u9 = 0, Sf--, e) + if (u9 = 0, Tf--, e) throw t; } } function Tv(t) { - if (Sf > 0) + if (Tf > 0) return t(); - Sf++; + Tf++; try { return t(); } finally { iC(); } } -var dn = void 0, Uy = void 0, Sf = 0, u9 = 0, Jk = 0; +var dn = void 0, Uy = void 0, Tf = 0, u9 = 0, Jk = 0; function Zne(t) { if (dn !== void 0) { var e = t.n; @@ -25857,7 +25857,7 @@ function Zne(t) { function Ms(t) { this.v = t, this.i = 0, this.n = void 0, this.t = void 0; } -Ms.prototype.brand = w7e; +Ms.prototype.brand = O7e; Ms.prototype.h = function() { return !0; }; @@ -25907,7 +25907,7 @@ Object.defineProperty(Ms.prototype, "value", { get: function() { if (t !== this.v) { if (u9 > 100) throw new Error("Cycle detected"); - this.v = t, this.i++, Jk++, Sf++; + this.v = t, this.i++, Jk++, Tf++; try { for (var e = this.t; e !== void 0; e = e.x) e.t.N(); @@ -25997,7 +25997,7 @@ function lP(t) { function eie(t) { var e = t.u; if (t.u = void 0, typeof e == "function") { - Sf++; + Tf++; var r = dn; dn = void 0; try { @@ -26014,7 +26014,7 @@ function cP(t) { e.S.U(e); t.x = void 0, t.s = void 0, eie(t); } -function O7e(t) { +function k7e(t) { if (dn !== this) throw new Error("Out-of-order effect"); Jne(this), dn = t, this.f &= -2, 8 & this.f && cP(this), iC(); @@ -26036,9 +26036,9 @@ Zx.prototype.c = function() { Zx.prototype.S = function() { if (1 & this.f) throw new Error("Cycle detected"); - this.f |= 1, this.f &= -9, eie(this), Kne(this), Sf++; + this.f |= 1, this.f &= -9, eie(this), Kne(this), Tf++; var t = dn; - return dn = this, O7e.bind(this, t); + return dn = this, k7e.bind(this, t); }; Zx.prototype.N = function() { 2 & this.f || (this.f |= 2, this.o = Uy, Uy = this); @@ -26128,13 +26128,13 @@ A1("diffed", function(t, e) { r.U = s = {}; for (var l in n) { var u = s[l], h = n[l]; - u === void 0 ? (u = k7e(r, l, h, i), s[l] = u) : u.o(h, i); + u === void 0 ? (u = S7e(r, l, h, i), s[l] = u) : u.o(h, i); } } } t(e); }); -function k7e(t, e, r, n) { +function S7e(t, e, r, n) { var i = e in t && t.ownerSVGElement === void 0, s = th(r); return { o: function(a, o) { s.value = a, n = o; @@ -26204,7 +26204,7 @@ function u0(t) { }, []); } const wU = co.define(), rie = co.define(), nie = co.define(); -class S7e { +class T7e { constructor(e) { this.view = e, this.conf = e.state.facet(Xx), this._observer = (r, n) => { if (n.origin !== this.conf) { @@ -26248,8 +26248,8 @@ class S7e { this._ytext.unobserve(this._observer); } } -const T7e = hn.fromClass(S7e), C7e = () => "comment-" + Math.random().toString().replace(".", ""); -class E7e { +const C7e = hn.fromClass(T7e), E7e = () => "comment-" + Math.random().toString().replace(".", ""); +class _7e { constructor(e, r, n, i, s) { this.user = r.awareness.getLocalState().user, this.lineAuthors = e.getArray(s + "/commentLineAuthors"), this.ydoc = e, this.getAvatar = n, this.getUserUrl = i, this.commentId = s; } @@ -26292,7 +26292,7 @@ class E7e { ); } } -class _7e { +class A7e { constructor(e, r) { this.syncedPositions = e.getMap(Vy.dataPath), this.positions = th([]), this.syncedPositions.observe(() => { this.positions.value = [...this.syncedPositions.entries()].map(([n, i]) => ({ @@ -26319,7 +26319,7 @@ class _7e { this.ydoc.transact(() => this.syncedPositions.delete(e), "comments"); } } -class A7e { +class L7e { constructor() { this.comments = th({}); } @@ -26359,7 +26359,7 @@ class A7e { }; } } -class L7e { +class R7e { constructor(e, r) { this.user = e.awareness.getLocalState().user, this.resolvedComments = r.getMap("resolved-comments"), this.ydoc = r; } @@ -26393,7 +26393,7 @@ class L7e { } const CB = class { constructor(e, r, n, i) { - this.ydoc = e, this.provider = r, this.getAvatar = n, this.getUserUrl = i, this.mainCodeMirror = null, this.newLocalComment = !1, this.positionManager = new _7e(e, this), this.displayManager = new A7e(r), this.commentResolver = new L7e(r, e), this.draggedComment = th(null), this.commentWithPopup = th(null), this.comments = lP(() => this.positions().positions.value.map(({ + this.ydoc = e, this.provider = r, this.getAvatar = n, this.getUserUrl = i, this.mainCodeMirror = null, this.newLocalComment = !1, this.positionManager = new A7e(e, this), this.displayManager = new L7e(r), this.commentResolver = new R7e(r, e), this.draggedComment = th(null), this.commentWithPopup = th(null), this.comments = lP(() => this.positions().positions.value.map(({ commentId: s, lineNumber: a }) => ({ @@ -26408,13 +26408,13 @@ const CB = class { target: new RegExp(a.targetRegexSrc, a.targetRegexFlags) })); this.mainCodeMirror.dispatch({ - effects: Hne.reconfigure(iP(s, v7e, this.positions())), + effects: Hne.reconfigure(iP(s, y7e, this.positions())), annotations: Ei.userEvent.of("suggestion") }); }), this.positionManager.syncedPositions.observeDeep(() => this.updateMainCodeMirror()); } lineAuthors(e) { - return new E7e(this.ydoc, this.provider, this.getAvatar, this.getUserUrl, e); + return new _7e(this.ydoc, this.provider, this.getAvatar, this.getUserUrl, e); } positions() { return this.positionManager; @@ -26439,7 +26439,7 @@ const CB = class { r != null && r.parent && r.delete(); } newComment(e) { - const r = C7e(); + const r = E7e(); return this.positions().set(r, e.toString()), this.display().new(r), this.lineAuthors(r).mark(1), this.newLocalComment = !0, r; } deleteComment(e) { @@ -26495,7 +26495,7 @@ const CB = class { const r = e.transactions[0].effects[0].is(hh), { from: n, to: i - } = e.transactions[0].effects[0].value, s = e.state.doc.lineAt(n).number, a = e.state.doc.lineAt(i).number, o = O5e(e.state).iter(0), l = []; + } = e.transactions[0].effects[0].value, s = e.state.doc.lineAt(n).number, a = e.state.doc.lineAt(i).number, o = k5e(e.state).iter(0), l = []; for (let u = o; u.value != null; o.next()) (u.from != n || u.to != i) && l.push({ fromLine: e.state.doc.lineAt(u.from).number, @@ -26526,7 +26526,7 @@ const CB = class { color: (h = (u = s.get(l + 1)) == null ? void 0 : u.color) != null ? h : "#111" }; }); - r[n] = a.flatMap(m7e); + r[n] = a.flatMap(v7e); } this.suggestions.doc.transact(() => { for (const [n, i] of Object.entries(r)) @@ -26624,12 +26624,12 @@ const CB = class { } }; let Vy = CB; -br(Vy, "commentsPrefix", "comments/"); +fr(Vy, "commentsPrefix", "comments/"); const oC = $t.define({ combine: (t) => t[t.length - 1], static: !0 }), V2 = or.define(); -class R7e extends uo { +class M7e extends uo { constructor(e, r, n) { super(), this.height = e, this.commentId = r, this.isShown = n; } @@ -26641,12 +26641,12 @@ class R7e extends uo { return e.id = this.commentId, e.classList = "comment-box", this.isShown || (e.classList += " comment-box-hidden"), e.style.height = this.height + "px", e; } } -const M7e = (t, e, r) => It.widget({ - widget: new R7e(t, e, r), +const D7e = (t, e, r) => It.widget({ + widget: new M7e(t, e, r), side: 1e4, inlineOrder: !1, block: r -}), D7e = (t, e) => t.lineNumber - e.lineNumber, P7e = (t) => t.docChanged || t.effects.some((e) => e.is(V2)), N7e = (t) => [(e, { +}), P7e = (t, e) => t.lineNumber - e.lineNumber, N7e = (t) => t.docChanged || t.effects.some((e) => e.is(V2)), I7e = (t) => [(e, { commentId: r, lineNumber: n, height: i, @@ -26654,12 +26654,12 @@ const M7e = (t, e, r) => It.widget({ }) => { try { const a = t.newDoc.line(n).to; - e.add(a, a, M7e(i, r, s)); + e.add(a, a, D7e(i, r, s)); } catch (a) { console.warn(a), console.warn(`An error occured when rendering comment ${r}. Comment will not be shown.`); } return e; -}, new ls()], I7e = (t, e) => { +}, new ls()], $7e = (t, e) => { if ((t.isUserEvent("input") || t.isUserEvent("delete") || t.annotation(nie)) && t.startState.doc.lines != t.state.doc.lines) { const r = []; e.positions().positions.value.forEach((n) => { @@ -26672,14 +26672,14 @@ const M7e = (t, e, r) => It.widget({ i ? e.deleteComment(n.commentId) : s != a && (r.push(n.commentId), e.positions().move(n.commentId, o, !1)); }), e.syncSuggestions(...r); } -}, $7e = Xn.define({ +}, B7e = Xn.define({ create() { return new ls().finish(); }, update(t, e) { - if (P7e(e)) { + if (N7e(e)) { const r = e.state.facet(oC); - return I7e(e, r), r.comments.value.sort(D7e).reduce(...N7e(e)).finish(); + return $7e(e, r), r.comments.value.sort(P7e).reduce(...I7e(e)).finish(); } return t; }, @@ -26710,12 +26710,12 @@ const M7e = (t, e, r) => It.widget({ } }; let Zd = i0; -br(Zd, "MAIN_CLASS", "comment-gutter"), br(Zd, "ICON_CLASS", "comment-gutter-icon"), br(Zd, "COMMENT_IMAGE_CLASS", "comment-image"); -const B7e = (t, e, r) => { +fr(Zd, "MAIN_CLASS", "comment-gutter"), fr(Zd, "ICON_CLASS", "comment-gutter-icon"), fr(Zd, "COMMENT_IMAGE_CLASS", "comment-image"); +const F7e = (t, e, r) => { var s; const n = t.state.doc.lineAt(e.to).number, i = (s = r.findCommentOn(n)) == null ? void 0 : s.commentId; return i || r.newComment(n); -}, F7e = BT({ +}, z7e = BT({ lineMarker(t, e) { return new Zd(e, t); }, @@ -26723,13 +26723,13 @@ const B7e = (t, e, r) => { initialSpacer: () => new Zd(null, null), domEventHandlers: { click(t, e) { - let r = t.state.facet(oC.reader), n = B7e(t, e, r); + let r = t.state.facet(oC.reader), n = F7e(t, e, r); r.display().switchVisibility(n), t.dispatch({ effects: V2.of(null) }); } } -}), z7e = (t) => [oC.of(t), $7e, F7e, kt.updateListener.of((e) => t.syncComments(e))]; +}), Q7e = (t) => [oC.of(t), B7e, z7e, kt.updateListener.of((e) => t.syncComments(e))]; class Mh { constructor(e) { this.state = e; @@ -26738,22 +26738,22 @@ class Mh { return []; } } -class Q7e extends Mh { +class U7e extends Mh { run(e) { const r = new this.state.Token("code_inline", "code", 0); return r.content = e.content, [r]; } } -const U7e = { - raw: Q7e +const V7e = { + raw: U7e }, h9 = "math_inline"; -class V7e extends Mh { +class q7e extends Mh { run(e) { const r = new this.state.Token(h9, "span", 0); return r.attrSet("class", "math inline"), r.markup = "$", r.content = e.content, [r]; } } -function q7e(t, e) { +function Y7e(t, e) { var r; !(!((r = e == null ? void 0 : e.roles) === null || r === void 0) && r.math) || t.renderer.rules[h9] || (t.renderer.rules[h9] = (n, i) => { var s, a, o; @@ -26761,19 +26761,19 @@ function q7e(t, e) { return `${f}`; }); } -const Y7e = { - math: V7e +const W7e = { + math: q7e }; function iie(t, e) { - e.parseRoles && t.inline.ruler.before("backticks", "parse_roles", W7e), t.core.ruler.after(e.rolesAfter || "inline", "run_roles", X7e(e.roles || {})), t.renderer.rules.role = (r, n) => { + e.parseRoles && t.inline.ruler.before("backticks", "parse_roles", G7e), t.core.ruler.after(e.rolesAfter || "inline", "run_roles", H7e(e.roles || {})), t.renderer.rules.role = (r, n) => { const i = r[n]; return `${i.meta.name}${i.content}`; - }, q7e(t, e); + }, Y7e(t, e); } -function W7e(t, e) { +function G7e(t, e) { if (t.src.charCodeAt(t.pos - 1) === 92) return !1; - const r = G7e.exec(t.src.slice(t.pos)); + const r = X7e.exec(t.src.slice(t.pos)); if (r == null) return !1; const [n, i, , s] = r; @@ -26789,8 +26789,8 @@ try { } catch { f9 = /^\{([a-zA-Z_\-+:]{1,36})\}(`+)(?!`)(.+?)\2(?!`)/; } -const G7e = f9; -function X7e(t) { +const X7e = f9; +function H7e(t) { function e(r) { var n; for (const i of r.tokens) @@ -26840,11 +26840,11 @@ class kU extends Mh { return i.markup = "~", [r, n, i]; } } -const H7e = /^(.+?)\(([^()]+)\)$/; +const Z7e = /^(.+?)\(([^()]+)\)$/; class SU extends Mh { run(e) { var r, n, i, s; - const a = H7e.exec(e.content), o = (n = (r = a == null ? void 0 : a[1]) === null || r === void 0 ? void 0 : r.trim()) !== null && n !== void 0 ? n : e.content.trim(), l = (s = (i = a == null ? void 0 : a[2]) === null || i === void 0 ? void 0 : i.trim()) !== null && s !== void 0 ? s : null, u = new this.state.Token("abbr_open", "abbr", 1); + const a = Z7e.exec(e.content), o = (n = (r = a == null ? void 0 : a[1]) === null || r === void 0 ? void 0 : r.trim()) !== null && n !== void 0 ? n : e.content.trim(), l = (s = (i = a == null ? void 0 : a[2]) === null || i === void 0 ? void 0 : i.trim()) !== null && s !== void 0 ? s : null, u = new this.state.Token("abbr_open", "abbr", 1); l && u.attrSet("title", l); const h = new this.state.Token("text", "", 0); h.content = o; @@ -26852,7 +26852,7 @@ class SU extends Mh { return [u, h, f]; } } -const Z7e = { +const j7e = { subscript: OU, sub: OU, superscript: kU, @@ -26869,24 +26869,24 @@ function lC(t) { const n = (r = (e = t.env) === null || e === void 0 ? void 0 : e.docutils) !== null && r !== void 0 ? r : {}; return n.targets || (n.targets = {}), n.references || (n.references = []), n.numbering || (n.numbering = {}), t.env.docutils || (t.env.docutils = n), n; } -function j7e(t) { +function K7e(t) { var e, r; const n = (r = (e = t.meta) === null || e === void 0 ? void 0 : e.docutils) !== null && r !== void 0 ? r : {}; return t.meta || (t.meta = {}), t.meta.docutils || (t.meta.docutils = n), n; } -function K7e(t, e) { +function J7e(t, e) { const r = lC(t); return r.numbering[e] == null ? r.numbering[e] = 1 : r.numbering[e] += 1, r.numbering[e]; } function sie(t, e, r, n, i, s = !1) { - const a = lC(t), o = K7e(t, r), l = { + const a = lC(t), o = J7e(t, r), l = { label: n, kind: r, number: o, title: i }; if (!s) { - const u = j7e(e); + const u = K7e(e); u.target = l, e.attrSet("id", n), a.targets[n] = l; } return l; @@ -26896,7 +26896,7 @@ function uP(t, e, r, n) { e.open.meta = (i = e.open.meta) !== null && i !== void 0 ? i : {}, e.open.meta.kind = r.kind, e.open.meta.label = r.label, e.open.meta.value = r.value, lC(t).references.push(Object.assign({ label: r.label, tokens: e }, n)); } const aie = /^(.+?)<([^<>]+)>$/; -class J7e extends Mh { +class e8e extends Mh { run(e) { const r = new this.state.Token("ref_open", "a", 1), n = new this.state.Token("text", "", 0), i = new this.state.Token("ref_close", "a", -1); return uP(this.state, { open: r, content: n, close: i }, { kind: "eq", label: e.content }, { @@ -26905,7 +26905,7 @@ class J7e extends Mh { }), [r, n, i]; } } -class e8e extends Mh { +class t8e extends Mh { run(e) { const r = aie.exec(e.content), [, n, i] = r != null ? r : [], s = n == null ? void 0 : n.trim(), a = new this.state.Token("ref_open", "a", 1), o = new this.state.Token("text", "", 0), l = new this.state.Token("ref_close", "a", -1); return uP(this.state, { open: a, content: o, close: l }, { kind: "numref", label: i || e.content, value: s }, { @@ -26913,7 +26913,7 @@ class e8e extends Mh { }), [a, o, l]; } } -class t8e extends Mh { +class r8e extends Mh { run(e) { const r = aie.exec(e.content), [, n, i] = r != null ? r : [], s = n == null ? void 0 : n.trim(), a = new this.state.Token("ref_open", "a", 1), o = new this.state.Token("text", "", 0), l = new this.state.Token("ref_close", "a", -1); return uP(this.state, { open: a, content: o, close: l }, { kind: "ref", label: i || e.content, value: s }, { @@ -26921,44 +26921,44 @@ class t8e extends Mh { }), [a, o, l]; } } -const r8e = { - eq: J7e, - ref: t8e, - numref: e8e -}, n8e = Object.assign(Object.assign(Object.assign(Object.assign({}, U7e), Z7e), Y7e), r8e); +const n8e = { + eq: e8e, + ref: r8e, + numref: t8e +}, i8e = Object.assign(Object.assign(Object.assign(Object.assign({}, V7e), j7e), W7e), n8e); /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ function oie(t) { return typeof t > "u" || t === null; } -function i8e(t) { +function s8e(t) { return typeof t == "object" && t !== null; } -function s8e(t) { +function a8e(t) { return Array.isArray(t) ? t : oie(t) ? [] : [t]; } -function a8e(t, e) { +function o8e(t, e) { var r, n, i, s; if (e) for (s = Object.keys(e), r = 0, n = s.length; r < n; r += 1) i = s[r], t[i] = e[i]; return t; } -function o8e(t, e) { +function l8e(t, e) { var r = "", n; for (n = 0; n < e; n += 1) r += t; return r; } -function l8e(t) { +function c8e(t) { return t === 0 && Number.NEGATIVE_INFINITY === 1 / t; } -var c8e = oie, u8e = i8e, h8e = s8e, f8e = o8e, d8e = l8e, p8e = a8e, Qi = { - isNothing: c8e, - isObject: u8e, - toArray: h8e, - repeat: f8e, - isNegativeZero: d8e, - extend: p8e +var u8e = oie, h8e = s8e, f8e = a8e, d8e = l8e, p8e = c8e, g8e = o8e, Qi = { + isNothing: u8e, + isObject: h8e, + toArray: f8e, + repeat: d8e, + isNegativeZero: p8e, + extend: g8e }; function lie(t, e) { var r = "", n = t.reason || "(unknown reason)"; @@ -26985,7 +26985,7 @@ function f6(t, e, r, n, i) { function d6(t, e) { return Qi.repeat(" ", e - t.length) + t; } -function g8e(t, e) { +function m8e(t, e) { if (e = Object.create(e || null), !t.buffer) return null; e.maxLength || (e.maxLength = 79), typeof e.indent != "number" && (e.indent = 1), typeof e.linesBefore != "number" && (e.linesBefore = 3), typeof e.linesAfter != "number" && (e.linesAfter = 2); @@ -27015,7 +27015,7 @@ function g8e(t, e) { `; return o.replace(/\n$/, ""); } -var m8e = g8e, v8e = [ +var v8e = m8e, y8e = [ "kind", "multi", "resolve", @@ -27026,12 +27026,12 @@ var m8e = g8e, v8e = [ "representName", "defaultStyle", "styleAliases" -], y8e = [ +], b8e = [ "scalar", "sequence", "mapping" ]; -function b8e(t) { +function x8e(t) { var e = {}; return t !== null && Object.keys(t).forEach(function(r) { t[r].forEach(function(n) { @@ -27039,18 +27039,18 @@ function b8e(t) { }); }), e; } -function x8e(t, e) { +function w8e(t, e) { if (e = e || {}, Object.keys(e).forEach(function(r) { - if (v8e.indexOf(r) === -1) + if (y8e.indexOf(r) === -1) throw new Oa('Unknown option "' + r + '" is met in definition of "' + t + '" YAML type.'); }), this.options = e, this.tag = t, this.kind = e.kind || null, this.resolve = e.resolve || function() { return !0; }, this.construct = e.construct || function(r) { return r; - }, this.instanceOf = e.instanceOf || null, this.predicate = e.predicate || null, this.represent = e.represent || null, this.representName = e.representName || null, this.defaultStyle = e.defaultStyle || null, this.multi = e.multi || !1, this.styleAliases = b8e(e.styleAliases || null), y8e.indexOf(this.kind) === -1) + }, this.instanceOf = e.instanceOf || null, this.predicate = e.predicate || null, this.represent = e.represent || null, this.representName = e.representName || null, this.defaultStyle = e.defaultStyle || null, this.multi = e.multi || !1, this.styleAliases = x8e(e.styleAliases || null), b8e.indexOf(this.kind) === -1) throw new Oa('Unknown kind "' + this.kind + '" is specified for "' + t + '" YAML type.'); } -var Es = x8e; +var Es = w8e; function TU(t, e) { var r = []; return t[e].forEach(function(n) { @@ -27060,7 +27060,7 @@ function TU(t, e) { }), r[i] = n; }), r; } -function w8e() { +function O8e() { var t = { scalar: {}, sequence: {}, @@ -27105,7 +27105,7 @@ d9.prototype.extend = function(e) { throw new Oa("Specified list of YAML types (or a single Type object) contains a non-Type object."); }); var i = Object.create(d9.prototype); - return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = TU(i, "implicit"), i.compiledExplicit = TU(i, "explicit"), i.compiledTypeMap = w8e(i.compiledImplicit, i.compiledExplicit), i; + return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = TU(i, "implicit"), i.compiledExplicit = TU(i, "explicit"), i.compiledTypeMap = O8e(i.compiledImplicit, i.compiledExplicit), i; }; var cie = d9, uie = new Es("tag:yaml.org,2002:str", { kind: "scalar", @@ -27129,23 +27129,23 @@ var cie = d9, uie = new Es("tag:yaml.org,2002:str", { fie ] }); -function O8e(t) { +function k8e(t) { if (t === null) return !0; var e = t.length; return e === 1 && t === "~" || e === 4 && (t === "null" || t === "Null" || t === "NULL"); } -function k8e() { +function S8e() { return null; } -function S8e(t) { +function T8e(t) { return t === null; } var pie = new Es("tag:yaml.org,2002:null", { kind: "scalar", - resolve: O8e, - construct: k8e, - predicate: S8e, + resolve: k8e, + construct: S8e, + predicate: T8e, represent: { canonical: function() { return "~"; @@ -27165,23 +27165,23 @@ var pie = new Es("tag:yaml.org,2002:null", { }, defaultStyle: "lowercase" }); -function T8e(t) { +function C8e(t) { if (t === null) return !1; var e = t.length; return e === 4 && (t === "true" || t === "True" || t === "TRUE") || e === 5 && (t === "false" || t === "False" || t === "FALSE"); } -function C8e(t) { +function E8e(t) { return t === "true" || t === "True" || t === "TRUE"; } -function E8e(t) { +function _8e(t) { return Object.prototype.toString.call(t) === "[object Boolean]"; } var gie = new Es("tag:yaml.org,2002:bool", { kind: "scalar", - resolve: T8e, - construct: C8e, - predicate: E8e, + resolve: C8e, + construct: E8e, + predicate: _8e, represent: { lowercase: function(t) { return t ? "true" : "false"; @@ -27195,16 +27195,16 @@ var gie = new Es("tag:yaml.org,2002:bool", { }, defaultStyle: "lowercase" }); -function _8e(t) { +function A8e(t) { return 48 <= t && t <= 57 || 65 <= t && t <= 70 || 97 <= t && t <= 102; } -function A8e(t) { +function L8e(t) { return 48 <= t && t <= 55; } -function L8e(t) { +function R8e(t) { return 48 <= t && t <= 57; } -function R8e(t) { +function M8e(t) { if (t === null) return !1; var e = t.length, r = 0, n = !1, i; @@ -27225,7 +27225,7 @@ function R8e(t) { if (i === "x") { for (r++; r < e; r++) if (i = t[r], i !== "_") { - if (!_8e(t.charCodeAt(r))) + if (!A8e(t.charCodeAt(r))) return !1; n = !0; } @@ -27234,7 +27234,7 @@ function R8e(t) { if (i === "o") { for (r++; r < e; r++) if (i = t[r], i !== "_") { - if (!A8e(t.charCodeAt(r))) + if (!L8e(t.charCodeAt(r))) return !1; n = !0; } @@ -27245,13 +27245,13 @@ function R8e(t) { return !1; for (; r < e; r++) if (i = t[r], i !== "_") { - if (!L8e(t.charCodeAt(r))) + if (!R8e(t.charCodeAt(r))) return !1; n = !0; } return !(!n || i === "_"); } -function M8e(t) { +function D8e(t) { var e = t, r = 1, n; if (e.indexOf("_") !== -1 && (e = e.replace(/_/g, "")), n = e[0], (n === "-" || n === "+") && (n === "-" && (r = -1), e = e.slice(1), n = e[0]), e === "0") return 0; @@ -27265,14 +27265,14 @@ function M8e(t) { } return r * parseInt(e, 10); } -function D8e(t) { +function P8e(t) { return Object.prototype.toString.call(t) === "[object Number]" && t % 1 === 0 && !Qi.isNegativeZero(t); } var mie = new Es("tag:yaml.org,2002:int", { kind: "scalar", - resolve: R8e, - construct: M8e, - predicate: D8e, + resolve: M8e, + construct: D8e, + predicate: P8e, represent: { binary: function(t) { return t >= 0 ? "0b" + t.toString(2) : "-0b" + t.toString(2).slice(1); @@ -27294,18 +27294,18 @@ var mie = new Es("tag:yaml.org,2002:int", { decimal: [10, "dec"], hexadecimal: [16, "hex"] } -}), P8e = new RegExp( +}), N8e = new RegExp( "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$" ); -function N8e(t) { - return !(t === null || !P8e.test(t) || t[t.length - 1] === "_"); -} function I8e(t) { + return !(t === null || !N8e.test(t) || t[t.length - 1] === "_"); +} +function $8e(t) { var e, r; return e = t.replace(/_/g, "").toLowerCase(), r = e[0] === "-" ? -1 : 1, "+-".indexOf(e[0]) >= 0 && (e = e.slice(1)), e === ".inf" ? r === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : e === ".nan" ? NaN : r * parseFloat(e, 10); } -var $8e = /^[-+]?[0-9]+e/; -function B8e(t, e) { +var B8e = /^[-+]?[0-9]+e/; +function F8e(t, e) { var r; if (isNaN(t)) switch (e) { @@ -27336,17 +27336,17 @@ function B8e(t, e) { } else if (Qi.isNegativeZero(t)) return "-0.0"; - return r = t.toString(10), $8e.test(r) ? r.replace("e", ".e") : r; + return r = t.toString(10), B8e.test(r) ? r.replace("e", ".e") : r; } -function F8e(t) { +function z8e(t) { return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 !== 0 || Qi.isNegativeZero(t)); } var vie = new Es("tag:yaml.org,2002:float", { kind: "scalar", - resolve: N8e, - construct: I8e, - predicate: F8e, - represent: B8e, + resolve: I8e, + construct: $8e, + predicate: z8e, + represent: F8e, defaultStyle: "lowercase" }), yie = die.extend({ implicit: [ @@ -27360,10 +27360,10 @@ var vie = new Es("tag:yaml.org,2002:float", { ), wie = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$" ); -function z8e(t) { +function Q8e(t) { return t === null ? !1 : xie.exec(t) !== null || wie.exec(t) !== null; } -function Q8e(t) { +function U8e(t) { var e, r, n, i, s, a, o, l = 0, u = null, h, f, d; if (e = xie.exec(t), e === null && (e = wie.exec(t)), e === null) throw new Error("Date resolve error"); @@ -27376,25 +27376,25 @@ function Q8e(t) { } return e[9] && (h = +e[10], f = +(e[11] || 0), u = (h * 60 + f) * 6e4, e[9] === "-" && (u = -u)), d = new Date(Date.UTC(r, n, i, s, a, o, l)), u && d.setTime(d.getTime() - u), d; } -function U8e(t) { +function V8e(t) { return t.toISOString(); } var Oie = new Es("tag:yaml.org,2002:timestamp", { kind: "scalar", - resolve: z8e, - construct: Q8e, + resolve: Q8e, + construct: U8e, instanceOf: Date, - represent: U8e + represent: V8e }); -function V8e(t) { +function q8e(t) { return t === "<<" || t === null; } var kie = new Es("tag:yaml.org,2002:merge", { kind: "scalar", - resolve: V8e + resolve: q8e }), hP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`; -function q8e(t) { +function Y8e(t) { if (t === null) return !1; var e, r, n = 0, i = t.length, s = hP; @@ -27406,37 +27406,37 @@ function q8e(t) { } return n % 8 === 0; } -function Y8e(t) { +function W8e(t) { var e, r, n = t.replace(/[\r\n=]/g, ""), i = n.length, s = hP, a = 0, o = []; for (e = 0; e < i; e++) e % 4 === 0 && e && (o.push(a >> 16 & 255), o.push(a >> 8 & 255), o.push(a & 255)), a = a << 6 | s.indexOf(n.charAt(e)); return r = i % 4 * 6, r === 0 ? (o.push(a >> 16 & 255), o.push(a >> 8 & 255), o.push(a & 255)) : r === 18 ? (o.push(a >> 10 & 255), o.push(a >> 2 & 255)) : r === 12 && o.push(a >> 4 & 255), new Uint8Array(o); } -function W8e(t) { +function G8e(t) { var e = "", r = 0, n, i, s = t.length, a = hP; for (n = 0; n < s; n++) n % 3 === 0 && n && (e += a[r >> 18 & 63], e += a[r >> 12 & 63], e += a[r >> 6 & 63], e += a[r & 63]), r = (r << 8) + t[n]; return i = s % 3, i === 0 ? (e += a[r >> 18 & 63], e += a[r >> 12 & 63], e += a[r >> 6 & 63], e += a[r & 63]) : i === 2 ? (e += a[r >> 10 & 63], e += a[r >> 4 & 63], e += a[r << 2 & 63], e += a[64]) : i === 1 && (e += a[r >> 2 & 63], e += a[r << 4 & 63], e += a[64], e += a[64]), e; } -function G8e(t) { +function X8e(t) { return Object.prototype.toString.call(t) === "[object Uint8Array]"; } var Sie = new Es("tag:yaml.org,2002:binary", { kind: "scalar", - resolve: q8e, - construct: Y8e, - predicate: G8e, - represent: W8e -}), X8e = Object.prototype.hasOwnProperty, H8e = Object.prototype.toString; -function Z8e(t) { + resolve: Y8e, + construct: W8e, + predicate: X8e, + represent: G8e +}), H8e = Object.prototype.hasOwnProperty, Z8e = Object.prototype.toString; +function j8e(t) { if (t === null) return !0; var e = [], r, n, i, s, a, o = t; for (r = 0, n = o.length; r < n; r += 1) { - if (i = o[r], a = !1, H8e.call(i) !== "[object Object]") + if (i = o[r], a = !1, Z8e.call(i) !== "[object Object]") return !1; for (s in i) - if (X8e.call(i, s)) + if (H8e.call(i, s)) if (!a) a = !0; else @@ -27450,26 +27450,26 @@ function Z8e(t) { } return !0; } -function j8e(t) { +function K8e(t) { return t !== null ? t : []; } var Tie = new Es("tag:yaml.org,2002:omap", { kind: "sequence", - resolve: Z8e, - construct: j8e -}), K8e = Object.prototype.toString; -function J8e(t) { + resolve: j8e, + construct: K8e +}), J8e = Object.prototype.toString; +function e9e(t) { if (t === null) return !0; var e, r, n, i, s, a = t; for (s = new Array(a.length), e = 0, r = a.length; e < r; e += 1) { - if (n = a[e], K8e.call(n) !== "[object Object]" || (i = Object.keys(n), i.length !== 1)) + if (n = a[e], J8e.call(n) !== "[object Object]" || (i = Object.keys(n), i.length !== 1)) return !1; s[e] = [i[0], n[i[0]]]; } return !0; } -function e9e(t) { +function t9e(t) { if (t === null) return []; var e, r, n, i, s, a = t; @@ -27479,25 +27479,25 @@ function e9e(t) { } var Cie = new Es("tag:yaml.org,2002:pairs", { kind: "sequence", - resolve: J8e, - construct: e9e -}), t9e = Object.prototype.hasOwnProperty; -function r9e(t) { + resolve: e9e, + construct: t9e +}), r9e = Object.prototype.hasOwnProperty; +function n9e(t) { if (t === null) return !0; var e, r = t; for (e in r) - if (t9e.call(r, e) && r[e] !== null) + if (r9e.call(r, e) && r[e] !== null) return !1; return !0; } -function n9e(t) { +function i9e(t) { return t !== null ? t : {}; } var Eie = new Es("tag:yaml.org,2002:set", { kind: "mapping", - resolve: r9e, - construct: n9e + resolve: n9e, + construct: i9e }), fP = bie.extend({ implicit: [ Oie, @@ -27509,7 +27509,7 @@ var Eie = new Es("tag:yaml.org,2002:set", { Cie, Eie ] -}), qf = Object.prototype.hasOwnProperty, t3 = 1, _ie = 2, Aie = 3, r3 = 4, p6 = 1, i9e = 2, CU = 3, s9e = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, a9e = /[\x85\u2028\u2029]/, o9e = /[,\[\]\{\}]/, Lie = /^(?:!|!!|![a-z\-]+!)$/i, Rie = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; +}), Yf = Object.prototype.hasOwnProperty, t3 = 1, _ie = 2, Aie = 3, r3 = 4, p6 = 1, s9e = 2, CU = 3, a9e = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, o9e = /[\x85\u2028\u2029]/, l9e = /[,\[\]\{\}]/, Lie = /^(?:!|!!|![a-z\-]+!)$/i, Rie = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; function EU(t) { return Object.prototype.toString.call(t); } @@ -27525,21 +27525,21 @@ function ro(t) { function bg(t) { return t === 44 || t === 91 || t === 93 || t === 123 || t === 125; } -function l9e(t) { +function c9e(t) { var e; return 48 <= t && t <= 57 ? t - 48 : (e = t | 32, 97 <= e && e <= 102 ? e - 97 + 10 : -1); } -function c9e(t) { +function u9e(t) { return t === 120 ? 2 : t === 117 ? 4 : t === 85 ? 8 : 0; } -function u9e(t) { +function h9e(t) { return 48 <= t && t <= 57 ? t - 48 : -1; } function _U(t) { return t === 48 ? "\0" : t === 97 ? "\x07" : t === 98 ? "\b" : t === 116 || t === 9 ? " " : t === 110 ? ` ` : t === 118 ? "\v" : t === 102 ? "\f" : t === 114 ? "\r" : t === 101 ? "\x1B" : t === 32 ? " " : t === 34 ? '"' : t === 47 ? "/" : t === 92 ? "\\" : t === 78 ? "\x85" : t === 95 ? "\xA0" : t === 76 ? "\u2028" : t === 80 ? "\u2029" : ""; } -function h9e(t) { +function f9e(t) { return t <= 65535 ? String.fromCharCode(t) : String.fromCharCode( (t - 65536 >> 10) + 55296, (t - 65536 & 1023) + 56320 @@ -27548,7 +27548,7 @@ function h9e(t) { var Mie = new Array(256), Die = new Array(256); for (var Gp = 0; Gp < 256; Gp++) Mie[Gp] = _U(Gp) ? 1 : 0, Die[Gp] = _U(Gp); -function f9e(t, e) { +function d9e(t, e) { this.input = t, this.filename = e.filename || null, this.schema = e.schema || fP, this.onWarning = e.onWarning || null, this.legacy = e.legacy || !1, this.json = e.json || !1, this.listener = e.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = t.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = []; } function Pie(t, e) { @@ -27559,7 +27559,7 @@ function Pie(t, e) { line: t.line, column: t.position - t.lineStart }; - return r.snippet = m8e(r), new Oa(e, r); + return r.snippet = v8e(r), new Oa(e, r); } function Kt(t, e) { throw Pie(t, e); @@ -27574,7 +27574,7 @@ var AU = { }, TAG: function(e, r, n) { var i, s; - n.length !== 2 && Kt(e, "TAG directive accepts exactly two arguments"), i = n[0], s = n[1], Lie.test(i) || Kt(e, "ill-formed tag handle (first argument) of the TAG directive"), qf.call(e.tagMap, i) && Kt(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Rie.test(s) || Kt(e, "ill-formed tag prefix (second argument) of the TAG directive"); + n.length !== 2 && Kt(e, "TAG directive accepts exactly two arguments"), i = n[0], s = n[1], Lie.test(i) || Kt(e, "ill-formed tag handle (first argument) of the TAG directive"), Yf.call(e.tagMap, i) && Kt(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Rie.test(s) || Kt(e, "ill-formed tag prefix (second argument) of the TAG directive"); try { s = decodeURIComponent(s); } catch { @@ -27583,21 +27583,21 @@ var AU = { e.tagMap[i] = s; } }; -function Tf(t, e, r, n) { +function Cf(t, e, r, n) { var i, s, a, o; if (e < r) { if (o = t.input.slice(e, r), n) for (i = 0, s = o.length; i < s; i += 1) a = o.charCodeAt(i), a === 9 || 32 <= a && a <= 1114111 || Kt(t, "expected valid JSON character"); else - s9e.test(o) && Kt(t, "the stream contains non-printable characters"); + a9e.test(o) && Kt(t, "the stream contains non-printable characters"); t.result += o; } } function LU(t, e, r, n) { var i, s, a, o; for (Qi.isObject(r) || Kt(t, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(r), a = 0, o = i.length; a < o; a += 1) - s = i[a], qf.call(e, s) || (e[s] = r[s], n[s] = !0); + s = i[a], Yf.call(e, s) || (e[s] = r[s], n[s] = !0); } function xg(t, e, r, n, i, s, a, o, l) { var u, h; @@ -27611,7 +27611,7 @@ function xg(t, e, r, n, i, s, a, o, l) { else LU(t, e, s, r); else - !t.json && !qf.call(r, i) && qf.call(e, i) && (t.line = a || t.line, t.lineStart = o || t.lineStart, t.position = l || t.position, Kt(t, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(e, i, { + !t.json && !Yf.call(r, i) && Yf.call(e, i) && (t.line = a || t.line, t.lineStart = o || t.lineStart, t.position = l || t.position, Kt(t, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(e, i, { configurable: !0, enumerable: !0, writable: !0, @@ -27647,7 +27647,7 @@ function pP(t, e) { e === 1 ? t.result += " " : e > 1 && (t.result += Qi.repeat(` `, e - 1)); } -function d9e(t, e, r) { +function p9e(t, e, r) { var n, i, s, a, o, l, u, h, f = t.kind, d = t.result, p; if (p = t.input.charCodeAt(t.position), ro(p) || bg(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = t.input.charCodeAt(t.position + 1), ro(i) || r && bg(i))) return !1; @@ -27670,49 +27670,49 @@ function d9e(t, e, r) { break; } } - o && (Tf(t, s, a, !1), pP(t, t.line - l), s = a = t.position, o = !1), C0(p) || (a = t.position + 1), p = t.input.charCodeAt(++t.position); + o && (Cf(t, s, a, !1), pP(t, t.line - l), s = a = t.position, o = !1), C0(p) || (a = t.position + 1), p = t.input.charCodeAt(++t.position); } - return Tf(t, s, a, !1), t.result ? !0 : (t.kind = f, t.result = d, !1); + return Cf(t, s, a, !1), t.result ? !0 : (t.kind = f, t.result = d, !1); } -function p9e(t, e) { +function g9e(t, e) { var r, n, i; if (r = t.input.charCodeAt(t.position), r !== 39) return !1; for (t.kind = "scalar", t.result = "", t.position++, n = i = t.position; (r = t.input.charCodeAt(t.position)) !== 0; ) if (r === 39) - if (Tf(t, n, t.position, !0), r = t.input.charCodeAt(++t.position), r === 39) + if (Cf(t, n, t.position, !0), r = t.input.charCodeAt(++t.position), r === 39) n = t.position, t.position++, i = t.position; else return !0; else - tu(r) ? (Tf(t, n, i, !0), pP(t, Ci(t, !1, e)), n = i = t.position) : t.position === t.lineStart && cC(t) ? Kt(t, "unexpected end of the document within a single quoted scalar") : (t.position++, i = t.position); + tu(r) ? (Cf(t, n, i, !0), pP(t, Ci(t, !1, e)), n = i = t.position) : t.position === t.lineStart && cC(t) ? Kt(t, "unexpected end of the document within a single quoted scalar") : (t.position++, i = t.position); Kt(t, "unexpected end of the stream within a single quoted scalar"); } -function g9e(t, e) { +function m9e(t, e) { var r, n, i, s, a, o; if (o = t.input.charCodeAt(t.position), o !== 34) return !1; for (t.kind = "scalar", t.result = "", t.position++, r = n = t.position; (o = t.input.charCodeAt(t.position)) !== 0; ) { if (o === 34) - return Tf(t, r, t.position, !0), t.position++, !0; + return Cf(t, r, t.position, !0), t.position++, !0; if (o === 92) { - if (Tf(t, r, t.position, !0), o = t.input.charCodeAt(++t.position), tu(o)) + if (Cf(t, r, t.position, !0), o = t.input.charCodeAt(++t.position), tu(o)) Ci(t, !1, e); else if (o < 256 && Mie[o]) t.result += Die[o], t.position++; - else if ((a = c9e(o)) > 0) { + else if ((a = u9e(o)) > 0) { for (i = a, s = 0; i > 0; i--) - o = t.input.charCodeAt(++t.position), (a = l9e(o)) >= 0 ? s = (s << 4) + a : Kt(t, "expected hexadecimal character"); - t.result += h9e(s), t.position++; + o = t.input.charCodeAt(++t.position), (a = c9e(o)) >= 0 ? s = (s << 4) + a : Kt(t, "expected hexadecimal character"); + t.result += f9e(s), t.position++; } else Kt(t, "unknown escape sequence"); r = n = t.position; } else - tu(o) ? (Tf(t, r, n, !0), pP(t, Ci(t, !1, e)), r = n = t.position) : t.position === t.lineStart && cC(t) ? Kt(t, "unexpected end of the document within a double quoted scalar") : (t.position++, n = t.position); + tu(o) ? (Cf(t, r, n, !0), pP(t, Ci(t, !1, e)), r = n = t.position) : t.position === t.lineStart && cC(t) ? Kt(t, "unexpected end of the document within a double quoted scalar") : (t.position++, n = t.position); } Kt(t, "unexpected end of the stream within a double quoted scalar"); } -function m9e(t, e) { +function v9e(t, e) { var r = !0, n, i, s, a = t.tag, o, l = t.anchor, u, h, f, d, p, g = /* @__PURE__ */ Object.create(null), m, v, y, b; if (b = t.input.charCodeAt(t.position), b === 91) h = 93, p = !1, o = []; @@ -27727,7 +27727,7 @@ function m9e(t, e) { } Kt(t, "unexpected end of the stream within a flow collection"); } -function v9e(t, e) { +function y9e(t, e) { var r, n, i = p6, s = !1, a = !1, o = e, l = 0, u = !1, h, f; if (f = t.input.charCodeAt(t.position), f === 124) n = !1; @@ -27737,8 +27737,8 @@ function v9e(t, e) { return !1; for (t.kind = "scalar", t.result = ""; f !== 0; ) if (f = t.input.charCodeAt(++t.position), f === 43 || f === 45) - p6 === i ? i = f === 43 ? CU : i9e : Kt(t, "repeat of a chomping mode identifier"); - else if ((h = u9e(f)) >= 0) + p6 === i ? i = f === 43 ? CU : s9e : Kt(t, "repeat of a chomping mode identifier"); + else if ((h = h9e(f)) >= 0) h === 0 ? Kt(t, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? Kt(t, "repeat of an indentation width identifier") : (o = e + h - 1, a = !0); else break; @@ -27770,7 +27770,7 @@ function v9e(t, e) { `, l) : t.result += Qi.repeat(` `, s ? 1 + l : l), s = !0, a = !0, l = 0, r = t.position; !tu(f) && f !== 0; ) f = t.input.charCodeAt(++t.position); - Tf(t, r, t.position, !1); + Cf(t, r, t.position, !1); } return !0; } @@ -27790,7 +27790,7 @@ function RU(t, e) { } return o ? (t.tag = n, t.anchor = i, t.kind = "sequence", t.result = s, !0) : !1; } -function y9e(t, e, r) { +function b9e(t, e, r) { var n, i, s, a, o, l, u = t.tag, h = t.anchor, f = {}, d = /* @__PURE__ */ Object.create(null), p = null, g = null, m = null, v = !1, y = !1, b; if (t.firstTabInLine !== -1) return !1; @@ -27821,7 +27821,7 @@ function y9e(t, e, r) { } return v && xg(t, f, d, p, g, null, a, o, l), y && (t.tag = u, t.anchor = h, t.kind = "mapping", t.result = f), y; } -function b9e(t) { +function x9e(t) { var e, r = !1, n = !1, i, s, a; if (a = t.input.charCodeAt(t.position), a !== 33) return !1; @@ -27833,7 +27833,7 @@ function b9e(t) { } else { for (; a !== 0 && !ro(a); ) a === 33 && (n ? Kt(t, "tag suffix cannot contain exclamation marks") : (i = t.input.slice(e - 1, t.position + 1), Lie.test(i) || Kt(t, "named tag handle cannot contain such characters"), n = !0, e = t.position + 1)), a = t.input.charCodeAt(++t.position); - s = t.input.slice(e, t.position), o9e.test(s) && Kt(t, "tag suffix cannot contain flow indicator characters"); + s = t.input.slice(e, t.position), l9e.test(s) && Kt(t, "tag suffix cannot contain flow indicator characters"); } s && !Rie.test(s) && Kt(t, "tag name cannot contain such characters: " + s); try { @@ -27841,9 +27841,9 @@ function b9e(t) { } catch { Kt(t, "tag name is malformed: " + s); } - return r ? t.tag = s : qf.call(t.tagMap, i) ? t.tag = t.tagMap[i] + s : i === "!" ? t.tag = "!" + s : i === "!!" ? t.tag = "tag:yaml.org,2002:" + s : Kt(t, 'undeclared tag handle "' + i + '"'), !0; + return r ? t.tag = s : Yf.call(t.tagMap, i) ? t.tag = t.tagMap[i] + s : i === "!" ? t.tag = "!" + s : i === "!!" ? t.tag = "tag:yaml.org,2002:" + s : Kt(t, 'undeclared tag handle "' + i + '"'), !0; } -function x9e(t) { +function w9e(t) { var e, r; if (r = t.input.charCodeAt(t.position), r !== 38) return !1; @@ -27851,20 +27851,20 @@ function x9e(t) { r = t.input.charCodeAt(++t.position); return t.position === e && Kt(t, "name of an anchor node must contain at least one character"), t.anchor = t.input.slice(e, t.position), !0; } -function w9e(t) { +function O9e(t) { var e, r, n; if (n = t.input.charCodeAt(t.position), n !== 42) return !1; for (n = t.input.charCodeAt(++t.position), e = t.position; n !== 0 && !ro(n) && !bg(n); ) n = t.input.charCodeAt(++t.position); - return t.position === e && Kt(t, "name of an alias node must contain at least one character"), r = t.input.slice(e, t.position), qf.call(t.anchorMap, r) || Kt(t, 'unidentified alias "' + r + '"'), t.result = t.anchorMap[r], Ci(t, !0, -1), !0; + return t.position === e && Kt(t, "name of an alias node must contain at least one character"), r = t.input.slice(e, t.position), Yf.call(t.anchorMap, r) || Kt(t, 'unidentified alias "' + r + '"'), t.result = t.anchorMap[r], Ci(t, !0, -1), !0; } function Cm(t, e, r, n, i) { var s, a, o, l = 1, u = !1, h = !1, f, d, p, g, m, v; if (t.listener !== null && t.listener("open", t), t.tag = null, t.anchor = null, t.kind = null, t.result = null, s = a = o = r3 === r || Aie === r, n && Ci(t, !0, -1) && (u = !0, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)), l === 1) - for (; b9e(t) || x9e(t); ) + for (; x9e(t) || w9e(t); ) Ci(t, !0, -1) ? (u = !0, o = s, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)) : o = !1; - if (o && (o = u || i), (l === 1 || r3 === r) && (t3 === r || _ie === r ? m = e : m = e + 1, v = t.position - t.lineStart, l === 1 ? o && (RU(t, v) || y9e(t, v, m)) || m9e(t, m) ? h = !0 : (a && v9e(t, m) || p9e(t, m) || g9e(t, m) ? h = !0 : w9e(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && Kt(t, "alias node should not have any properties")) : d9e(t, m, t3 === r) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (h = o && RU(t, v))), t.tag === null) + if (o && (o = u || i), (l === 1 || r3 === r) && (t3 === r || _ie === r ? m = e : m = e + 1, v = t.position - t.lineStart, l === 1 ? o && (RU(t, v) || b9e(t, v, m)) || v9e(t, m) ? h = !0 : (a && y9e(t, m) || g9e(t, m) || m9e(t, m) ? h = !0 : O9e(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && Kt(t, "alias node should not have any properties")) : p9e(t, m, t3 === r) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (h = o && RU(t, v))), t.tag === null) t.anchor !== null && (t.anchorMap[t.anchor] = t.result); else if (t.tag === "?") { for (t.result !== null && t.kind !== "scalar" && Kt(t, 'unacceptable node kind for ! tag; it should be "scalar", not "' + t.kind + '"'), f = 0, d = t.implicitTypes.length; f < d; f += 1) @@ -27873,7 +27873,7 @@ function Cm(t, e, r, n, i) { break; } } else if (t.tag !== "!") { - if (qf.call(t.typeMap[t.kind || "fallback"], t.tag)) + if (Yf.call(t.typeMap[t.kind || "fallback"], t.tag)) g = t.typeMap[t.kind || "fallback"][t.tag]; else for (g = null, p = t.typeMap.multi[t.kind || "fallback"], f = 0, d = p.length; f < d; f += 1) @@ -27885,7 +27885,7 @@ function Cm(t, e, r, n, i) { } return t.listener !== null && t.listener("close", t), t.tag !== null || t.anchor !== null || h; } -function O9e(t) { +function k9e(t) { var e = t.position, r, n, i, s = !1, a; for (t.version = null, t.checkLineBreaks = t.legacy, t.tagMap = /* @__PURE__ */ Object.create(null), t.anchorMap = /* @__PURE__ */ Object.create(null); (a = t.input.charCodeAt(t.position)) !== 0 && (Ci(t, !0, -1), a = t.input.charCodeAt(t.position), !(t.lineIndent > 0 || a !== 37)); ) { for (s = !0, a = t.input.charCodeAt(++t.position), r = t.position; a !== 0 && !ro(a); ) @@ -27905,9 +27905,9 @@ function O9e(t) { a = t.input.charCodeAt(++t.position); i.push(t.input.slice(r, t.position)); } - a !== 0 && dP(t), qf.call(AU, n) ? AU[n](t, n, i) : n3(t, 'unknown document directive "' + n + '"'); + a !== 0 && dP(t), Yf.call(AU, n) ? AU[n](t, n, i) : n3(t, 'unknown document directive "' + n + '"'); } - if (Ci(t, !0, -1), t.lineIndent === 0 && t.input.charCodeAt(t.position) === 45 && t.input.charCodeAt(t.position + 1) === 45 && t.input.charCodeAt(t.position + 2) === 45 ? (t.position += 3, Ci(t, !0, -1)) : s && Kt(t, "directives end mark is expected"), Cm(t, t.lineIndent - 1, r3, !1, !0), Ci(t, !0, -1), t.checkLineBreaks && a9e.test(t.input.slice(e, t.position)) && n3(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && cC(t)) { + if (Ci(t, !0, -1), t.lineIndent === 0 && t.input.charCodeAt(t.position) === 45 && t.input.charCodeAt(t.position + 1) === 45 && t.input.charCodeAt(t.position + 2) === 45 ? (t.position += 3, Ci(t, !0, -1)) : s && Kt(t, "directives end mark is expected"), Cm(t, t.lineIndent - 1, r3, !1, !0), Ci(t, !0, -1), t.checkLineBreaks && o9e.test(t.input.slice(e, t.position)) && n3(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && cC(t)) { t.input.charCodeAt(t.position) === 46 && (t.position += 3, Ci(t, !0, -1)); return; } @@ -27919,14 +27919,14 @@ function O9e(t) { function Nie(t, e) { t = String(t), e = e || {}, t.length !== 0 && (t.charCodeAt(t.length - 1) !== 10 && t.charCodeAt(t.length - 1) !== 13 && (t += ` `), t.charCodeAt(0) === 65279 && (t = t.slice(1))); - var r = new f9e(t, e), n = t.indexOf("\0"); + var r = new d9e(t, e), n = t.indexOf("\0"); for (n !== -1 && (r.position = n, Kt(r, "null byte is not allowed in input")), r.input += "\0"; r.input.charCodeAt(r.position) === 32; ) r.lineIndent += 1, r.position += 1; for (; r.position < r.length - 1; ) - O9e(r); + k9e(r); return r.documents; } -function k9e(t, e, r) { +function S9e(t, e, r) { e !== null && typeof e == "object" && typeof r > "u" && (r = e, e = null); var n = Nie(t, r); if (typeof e != "function") @@ -27934,7 +27934,7 @@ function k9e(t, e, r) { for (var i = 0, s = n.length; i < s; i += 1) e(n[i]); } -function S9e(t, e) { +function T9e(t, e) { var r = Nie(t, e); if (r.length !== 0) { if (r.length === 1) @@ -27942,10 +27942,10 @@ function S9e(t, e) { throw new Oa("expected a single document in the stream, but found more"); } } -var T9e = k9e, C9e = S9e, Iie = { - loadAll: T9e, - load: C9e -}, $ie = Object.prototype.toString, Bie = Object.prototype.hasOwnProperty, gP = 65279, E9e = 9, W2 = 10, _9e = 13, A9e = 32, L9e = 33, R9e = 34, p9 = 35, M9e = 37, D9e = 38, P9e = 39, N9e = 42, Fie = 44, I9e = 45, i3 = 58, $9e = 61, B9e = 62, F9e = 63, z9e = 64, zie = 91, Qie = 93, Q9e = 96, Uie = 123, U9e = 124, Vie = 125, oa = {}; +var C9e = S9e, E9e = T9e, Iie = { + loadAll: C9e, + load: E9e +}, $ie = Object.prototype.toString, Bie = Object.prototype.hasOwnProperty, gP = 65279, _9e = 9, W2 = 10, A9e = 13, L9e = 32, R9e = 33, M9e = 34, p9 = 35, D9e = 37, P9e = 38, N9e = 39, I9e = 42, Fie = 44, $9e = 45, i3 = 58, B9e = 61, F9e = 62, z9e = 63, Q9e = 64, zie = 91, Qie = 93, U9e = 96, Uie = 123, V9e = 124, Vie = 125, oa = {}; oa[0] = "\\0"; oa[7] = "\\a"; oa[8] = "\\b"; @@ -27961,7 +27961,7 @@ oa[133] = "\\N"; oa[160] = "\\_"; oa[8232] = "\\L"; oa[8233] = "\\P"; -var V9e = [ +var q9e = [ "y", "Y", "yes", @@ -27978,8 +27978,8 @@ var V9e = [ "off", "Off", "OFF" -], q9e = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; -function Y9e(t, e) { +], Y9e = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; +function W9e(t, e) { var r, n, i, s, a, o, l; if (e === null) return {}; @@ -27987,7 +27987,7 @@ function Y9e(t, e) { a = n[i], o = String(e[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = t.compiledTypeMap.fallback[a], l && Bie.call(l.styleAliases, o) && (o = l.styleAliases[o]), r[a] = o; return r; } -function W9e(t) { +function G9e(t) { var e, r, n; if (e = t.toString(16).toUpperCase(), t <= 255) r = "x", n = 2; @@ -27999,9 +27999,9 @@ function W9e(t) { throw new Oa("code point within a string may not be greater than 0xFFFFFFFF"); return "\\" + r + Qi.repeat("0", n - e.length) + e; } -var G9e = 1, G2 = 2; -function X9e(t) { - this.schema = t.schema || fP, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Qi.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = Y9e(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === '"' ? G2 : G9e, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; +var X9e = 1, G2 = 2; +function H9e(t) { + this.schema = t.schema || fP, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Qi.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = W9e(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === '"' ? G2 : X9e, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; } function MU(t, e) { for (var r = Qi.repeat(" ", e), n = 0, i = -1, s = "", a, o = t.length; n < o; ) @@ -28014,7 +28014,7 @@ function g9(t, e) { return ` ` + Qi.repeat(" ", t.indent * e); } -function H9e(t, e) { +function Z9e(t, e) { var r, n, i; for (r = 0, n = t.implicitTypes.length; r < n; r += 1) if (i = t.implicitTypes[r], i.resolve(e)) @@ -28022,22 +28022,22 @@ function H9e(t, e) { return !1; } function s3(t) { - return t === A9e || t === E9e; + return t === L9e || t === _9e; } function X2(t) { return 32 <= t && t <= 126 || 161 <= t && t <= 55295 && t !== 8232 && t !== 8233 || 57344 <= t && t <= 65533 && t !== gP || 65536 <= t && t <= 1114111; } function DU(t) { - return X2(t) && t !== gP && t !== _9e && t !== W2; + return X2(t) && t !== gP && t !== A9e && t !== W2; } function PU(t, e, r) { var n = DU(t), i = n && !s3(t); return (r ? n : n && t !== Fie && t !== zie && t !== Qie && t !== Uie && t !== Vie) && t !== p9 && !(e === i3 && !i) || DU(e) && !s3(e) && t === p9 || e === i3 && i; } -function Z9e(t) { - return X2(t) && t !== gP && !s3(t) && t !== I9e && t !== F9e && t !== i3 && t !== Fie && t !== zie && t !== Qie && t !== Uie && t !== Vie && t !== p9 && t !== D9e && t !== N9e && t !== L9e && t !== U9e && t !== $9e && t !== B9e && t !== P9e && t !== R9e && t !== M9e && t !== z9e && t !== Q9e; -} function j9e(t) { + return X2(t) && t !== gP && !s3(t) && t !== $9e && t !== z9e && t !== i3 && t !== Fie && t !== zie && t !== Qie && t !== Uie && t !== Vie && t !== p9 && t !== P9e && t !== I9e && t !== R9e && t !== V9e && t !== B9e && t !== F9e && t !== N9e && t !== M9e && t !== D9e && t !== Q9e && t !== U9e; +} +function K9e(t) { return !s3(t) && t !== i3; } function oy(t, e) { @@ -28049,8 +28049,8 @@ function qie(t) { return e.test(t); } var Yie = 1, m9 = 2, Wie = 3, Gie = 4, ug = 5; -function K9e(t, e, r, n, i, s, a, o) { - var l, u = 0, h = null, f = !1, d = !1, p = n !== -1, g = -1, m = Z9e(oy(t, 0)) && j9e(oy(t, t.length - 1)); +function J9e(t, e, r, n, i, s, a, o) { + var l, u = 0, h = null, f = !1, d = !1, p = n !== -1, g = -1, m = j9e(oy(t, 0)) && K9e(oy(t, t.length - 1)); if (e || a) for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) { if (u = oy(t, l), !X2(u)) @@ -28069,17 +28069,17 @@ function K9e(t, e, r, n, i, s, a, o) { } return !f && !d ? m && !a && !i(t) ? Yie : s === G2 ? ug : m9 : r > 9 && qie(t) ? ug : a ? s === G2 ? ug : m9 : d ? Gie : Wie; } -function J9e(t, e, r, n, i) { +function eLe(t, e, r, n, i) { t.dump = function() { if (e.length === 0) return t.quotingType === G2 ? '""' : "''"; - if (!t.noCompatMode && (V9e.indexOf(e) !== -1 || q9e.test(e))) + if (!t.noCompatMode && (q9e.indexOf(e) !== -1 || Y9e.test(e))) return t.quotingType === G2 ? '"' + e + '"' : "'" + e + "'"; var s = t.indent * Math.max(1, r), a = t.lineWidth === -1 ? -1 : Math.max(Math.min(t.lineWidth, 40), t.lineWidth - s), o = n || t.flowLevel > -1 && r >= t.flowLevel; function l(u) { - return H9e(t, u); + return Z9e(t, u); } - switch (K9e( + switch (J9e( e, o, t.indent, @@ -28096,9 +28096,9 @@ function J9e(t, e, r, n, i) { case Wie: return "|" + NU(e, t.indent) + IU(MU(e, s)); case Gie: - return ">" + NU(e, t.indent) + IU(MU(eLe(e, a), s)); + return ">" + NU(e, t.indent) + IU(MU(tLe(e, a), s)); case ug: - return '"' + tLe(e) + '"'; + return '"' + rLe(e) + '"'; default: throw new Oa("impossible error: invalid scalar style"); } @@ -28116,7 +28116,7 @@ function IU(t) { return t[t.length - 1] === ` ` ? t.slice(0, -1) : t; } -function eLe(t, e) { +function tLe(t, e) { for (var r = /(\n+)([^\n]*)/g, n = function() { var u = t.indexOf(` `); @@ -28139,12 +28139,12 @@ function $U(t, e) { `, t.length - i > e && a > i ? l += t.slice(i, a) + ` ` + t.slice(a + 1) : l += t.slice(i), l.slice(1); } -function tLe(t) { +function rLe(t) { for (var e = "", r = 0, n, i = 0; i < t.length; r >= 65536 ? i += 2 : i++) - r = oy(t, i), n = oa[r], !n && X2(r) ? (e += t[i], r >= 65536 && (e += t[i + 1])) : e += n || W9e(r); + r = oy(t, i), n = oa[r], !n && X2(r) ? (e += t[i], r >= 65536 && (e += t[i + 1])) : e += n || G9e(r); return e; } -function rLe(t, e, r) { +function nLe(t, e, r) { var n = "", i = t.tag, s, a, o; for (s = 0, a = r.length; s < a; s += 1) o = r[s], t.replacer && (o = t.replacer.call(r, String(s), o)), (dh(t, e, o, !1, !1) || typeof o > "u" && dh(t, e, null, !1, !1)) && (n !== "" && (n += "," + (t.condenseFlow ? "" : " ")), n += t.dump); @@ -28156,13 +28156,13 @@ function BU(t, e, r, n) { l = r[a], t.replacer && (l = t.replacer.call(r, String(a), l)), (dh(t, e + 1, l, !0, !0, !1, !0) || typeof l > "u" && dh(t, e + 1, null, !0, !0, !1, !0)) && ((!n || i !== "") && (i += g9(t, e)), t.dump && W2 === t.dump.charCodeAt(0) ? i += "-" : i += "- ", i += t.dump); t.tag = s, t.dump = i || "[]"; } -function nLe(t, e, r) { +function iLe(t, e, r) { var n = "", i = t.tag, s = Object.keys(r), a, o, l, u, h; for (a = 0, o = s.length; a < o; a += 1) h = "", n !== "" && (h += ", "), t.condenseFlow && (h += '"'), l = s[a], u = r[l], t.replacer && (u = t.replacer.call(r, l, u)), dh(t, e, l, !1, !1) && (t.dump.length > 1024 && (h += "? "), h += t.dump + (t.condenseFlow ? '"' : "") + ":" + (t.condenseFlow ? "" : " "), dh(t, e, u, !1, !1) && (h += t.dump, n += h)); t.tag = i, t.dump = "{" + n + "}"; } -function iLe(t, e, r, n) { +function sLe(t, e, r, n) { var i = "", s = t.tag, a = Object.keys(r), o, l, u, h, f, d; if (t.sortKeys === !0) a.sort(); @@ -28200,11 +28200,11 @@ function dh(t, e, r, n, i, s, a) { t.dump = "*ref_" + f; else { if (h && d && !t.usedDuplicates[f] && (t.usedDuplicates[f] = !0), o === "[object Object]") - n && Object.keys(t.dump).length !== 0 ? (iLe(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (nLe(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); + n && Object.keys(t.dump).length !== 0 ? (sLe(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (iLe(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); else if (o === "[object Array]") - n && t.dump.length !== 0 ? (t.noArrayIndent && !a && e > 0 ? BU(t, e - 1, t.dump, i) : BU(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (rLe(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); + n && t.dump.length !== 0 ? (t.noArrayIndent && !a && e > 0 ? BU(t, e - 1, t.dump, i) : BU(t, e, t.dump, i), d && (t.dump = "&ref_" + f + t.dump)) : (nLe(t, e, t.dump), d && (t.dump = "&ref_" + f + " " + t.dump)); else if (o === "[object String]") - t.tag !== "?" && J9e(t, t.dump, e, s, l); + t.tag !== "?" && eLe(t, t.dump, e, s, l); else { if (o === "[object Undefined]") return !1; @@ -28218,7 +28218,7 @@ function dh(t, e, r, n, i, s, a) { } return !0; } -function sLe(t, e) { +function aLe(t, e) { var r = [], n = [], i, s; for (v9(t, r, n), i = 0, s = n.length; i < s; i += 1) e.duplicates.push(r[n[i]]); @@ -28236,23 +28236,23 @@ function v9(t, e, r) { for (n = Object.keys(t), i = 0, s = n.length; i < s; i += 1) v9(t[n[i]], e, r); } -function aLe(t, e) { +function oLe(t, e) { e = e || {}; - var r = new X9e(e); - r.noRefs || sLe(t, r); + var r = new H9e(e); + r.noRefs || aLe(t, r); var n = t; return r.replacer && (n = r.replacer.call({ "": n }, "", n)), dh(r, 0, n, !0, !0) ? r.dump + ` ` : ""; } -var oLe = aLe, lLe = { - dump: oLe +var lLe = oLe, cLe = { + dump: lLe }; function mP(t, e) { return function() { throw new Error("Function yaml." + t + " is removed in js-yaml 4. Use yaml." + e + " instead, which is now safe by default."); }; } -var cLe = Es, uLe = cie, hLe = die, fLe = yie, dLe = bie, pLe = fP, gLe = Iie.load, mLe = Iie.loadAll, vLe = lLe.dump, yLe = Oa, bLe = { +var uLe = Es, hLe = cie, fLe = die, dLe = yie, pLe = bie, gLe = fP, mLe = Iie.load, vLe = Iie.loadAll, yLe = cLe.dump, bLe = Oa, xLe = { binary: Sie, float: vie, map: fie, @@ -28266,23 +28266,23 @@ var cLe = Es, uLe = cie, hLe = die, fLe = yie, dLe = bie, pLe = fP, gLe = Iie.lo omap: Tie, seq: hie, str: uie -}, xLe = mP("safeLoad", "load"), wLe = mP("safeLoadAll", "loadAll"), OLe = mP("safeDump", "dump"), kLe = { - Type: cLe, - Schema: uLe, - FAILSAFE_SCHEMA: hLe, - JSON_SCHEMA: fLe, - CORE_SCHEMA: dLe, - DEFAULT_SCHEMA: pLe, - load: gLe, - loadAll: mLe, - dump: vLe, - YAMLException: yLe, - types: bLe, - safeLoad: xLe, - safeLoadAll: wLe, - safeDump: OLe -}; -function SLe(t, e, r, n, i, s = !0) { +}, wLe = mP("safeLoad", "load"), OLe = mP("safeLoadAll", "loadAll"), kLe = mP("safeDump", "dump"), SLe = { + Type: uLe, + Schema: hLe, + FAILSAFE_SCHEMA: fLe, + JSON_SCHEMA: dLe, + CORE_SCHEMA: pLe, + DEFAULT_SCHEMA: gLe, + load: mLe, + loadAll: vLe, + dump: yLe, + YAMLException: bLe, + types: xLe, + safeLoad: wLe, + safeLoadAll: OLe, + safeDump: kLe +}; +function TLe(t, e, r, n, i, s = !0) { const a = []; for (const l of [...t.core.ruler.__rules__].reverse()) { if (l.name === e) { @@ -28302,7 +28302,7 @@ function SLe(t, e, r, n, i, s = !0) { l.map = l.map !== null ? [l.map[0] + i, l.map[1] + i] : l.map; return o; } -class md { +class Dh { constructor(e) { this.required_arguments = 0, this.optional_arguments = 0, this.final_argument_whitespace = !1, this.has_content = !1, this.option_spec = {}, this.rawOptions = !1, this.state = e; } @@ -28322,21 +28322,21 @@ class md { return (i == null ? void 0 : i.content) !== void 0 && (s.content = i.content), (i == null ? void 0 : i.level) !== void 0 && (s.level = i.level), (i == null ? void 0 : i.map) !== void 0 && (s.map = i.map), (i == null ? void 0 : i.block) !== void 0 && (s.block = i.block), (i == null ? void 0 : i.info) !== void 0 && (s.info = i.info), (i == null ? void 0 : i.meta) !== void 0 && (s.meta = i.meta), (i == null ? void 0 : i.children) !== void 0 && (s.children = i.children), s; } nestedParse(e, r) { - return SLe(this.state.md, "run_directives", e, this.state.env, r, !0); + return TLe(this.state.md, "run_directives", e, this.state.env, r, !0); } } -class ff extends Error { +class df extends Error { constructor() { super(...arguments), this.name = "DirectiveParsingError"; } } -function TLe(t, e) { +function CLe(t, e) { const r = t.meta.arg || "", n = t.content; let i = n.trim() ? n.split(/\r?\n/) : [], s = 0, a = {}; (Object.keys(e.option_spec || {}) || e.rawOptions) && ([i, a, s] = Xie(i, e)); let o = []; - if (!e.required_arguments && !e.optional_arguments ? r && (s = 0, i = [r].concat(i)) : o = CLe(r, e), i.length && !i[0].trim() && (i.shift(), s++), i.length && !e.has_content) - throw new ff("Has content but content not allowed"); + if (!e.required_arguments && !e.optional_arguments ? r && (s = 0, i = [r].concat(i)) : o = ELe(r, e), i.length && !i[0].trim() && (i.shift(), s++), i.length && !e.has_content) + throw new df("Has content but content not allowed"); return { map: t.map ? t.map : [0, 0], args: o, @@ -28379,51 +28379,51 @@ function Xie(t, e) { } if (i !== null) try { - const s = kLe.load(i.join(` + const s = SLe.load(i.join(` `)); if (s !== null && typeof s == "object") n = s; else - throw new ff(`not dict: ${s}`); + throw new df(`not dict: ${s}`); } catch (s) { - throw new ff(`Invalid options YAML: ${s}`); + throw new df(`Invalid options YAML: ${s}`); } if (e.rawOptions) return [t, n, r]; for (const [s, a] of Object.entries(n)) { const o = e.option_spec ? e.option_spec[s] : null; if (!o) - throw new ff(`Unknown option: ${s}`); + throw new df(`Unknown option: ${s}`); let l = a; (a === null || a === !1) && (l = ""); try { l = o(`${l || ""}`); } catch (u) { - throw new ff(`Invalid option value: (option: '${s}'; value: ${a}) + throw new df(`Invalid option value: (option: '${s}'; value: ${a}) ${u}`); } n[s] = l; } return [t, n, r]; } -function CLe(t, e) { +function ELe(t, e) { var r; let n = t.trim() ? (r = t.trim()) === null || r === void 0 ? void 0 : r.split(/\s+/) : []; const i = (e.required_arguments || 0) + (e.optional_arguments || 0); if (n.length < (e.required_arguments || 0)) - throw new ff(`${e.required_arguments} argument(s) required, ${n.length} supplied`); + throw new df(`${e.required_arguments} argument(s) required, ${n.length} supplied`); if (n.length > i) if (e.final_argument_whitespace) { const s = t.split(/\s+/); n = s.splice(0, i - 1), n.push(s.join(" ")); } else - throw new ff(`maximum ${i} argument(s) allowed, ${n.length} supplied`); + throw new df(`maximum ${i} argument(s) allowed, ${n.length} supplied`); return n; } function Hie(t, e) { var r; let n = e.directivesAfter || "block"; - (!((r = e.replaceFences) !== null && r !== void 0) || r) && (t.core.ruler.after(n, "fence_to_directive", ELe), n = "fence_to_directive"), t.core.ruler.after(n, "run_directives", _Le(e.directives || {})), t.renderer.rules.directive = (i, s) => { + (!((r = e.replaceFences) !== null && r !== void 0) || r) && (t.core.ruler.after(n, "fence_to_directive", _Le), n = "fence_to_directive"), t.core.ruler.after(n, "run_directives", ALe(e.directives || {})), t.renderer.rules.directive = (i, s) => { const a = i[s]; return ` `; }; } -function ELe(t) { +function _Le(t) { for (const e of t.tokens) if (e.type === "fence" || e.type === "colon_fence") { const r = e.info.match(/^\{([^\s}]+)\}\s*(.*)$/); @@ -28450,13 +28450,13 @@ function ELe(t) { } return !0; } -function _Le(t) { +function ALe(t) { function e(r) { const n = []; for (const i of r.tokens) if (i.type === "directive" && i.info in t) try { - const s = new t[i.info](r), a = TLe(i, s), [o, l] = Xie(i.content.trim() ? i.content.split(/\r?\n/) : [], s), u = new r.Token("parsed_directive_open", "", 1); + const s = new t[i.info](r), a = CLe(i, s), [o, l] = Xie(i.content.trim() ? i.content.split(/\r?\n/) : [], s), u = new r.Token("parsed_directive_open", "", 1); u.info = i.info, u.hidden = !0, u.content = o.join(` `).trim(), u.meta = { arg: i.meta.arg, @@ -28476,7 +28476,7 @@ function _Le(t) { } return e; } -function ALe(t) { +function LLe(t) { return t.toLowerCase().split(/\s+/).join("-").replace(/[^a-z0-9]+/, "-").replace(/^[-0-9]+|-+$/, ""); } class B0 extends Error { @@ -28492,7 +28492,7 @@ const lu = (t) => t, a3 = (t) => { if (t.trim()) throw new B0(`No argument is allowed: "${t}" supplied`); return null; -}, vd = (t) => `${t || ""}`.split(/\s+/).map((e) => ALe(e)); +}, vd = (t) => `${t || ""}`.split(/\s+/).map((e) => LLe(e)); function Zie(t) { if (!t) throw new B0("Value is not set"); @@ -28528,8 +28528,8 @@ function hC(t) { throw new B0(`must be in: ${t.join("|")}`); }; } -const LLe = (t) => t; -class fc extends md { +const RLe = (t) => t; +class fc extends Dh { constructor() { super(...arguments), this.final_argument_whitespace = !0, this.has_content = !0, this.option_spec = { class: vd, @@ -28556,75 +28556,75 @@ class fc extends md { return n.push(...o), n.push(this.createToken("admonition_close", "aside", -1, { block: !0 })), n; } } -class RLe extends fc { +class MLe extends fc { constructor() { super(...arguments), this.required_arguments = 1; } } -class MLe extends fc { +class DLe extends fc { constructor() { super(...arguments), this.title = "Attention", this.kind = "attention"; } } -class DLe extends fc { +class PLe extends fc { constructor() { super(...arguments), this.title = "Caution", this.kind = "caution"; } } -class PLe extends fc { +class NLe extends fc { constructor() { super(...arguments), this.title = "Danger", this.kind = "danger"; } } -class NLe extends fc { +class ILe extends fc { constructor() { super(...arguments), this.title = "Error", this.kind = "error"; } } -class ILe extends fc { +class $Le extends fc { constructor() { super(...arguments), this.title = "Important", this.kind = "important"; } } -class $Le extends fc { +class BLe extends fc { constructor() { super(...arguments), this.title = "Hint", this.kind = "hint"; } } -class BLe extends fc { +class FLe extends fc { constructor() { super(...arguments), this.title = "Note", this.kind = "note"; } } -class FLe extends fc { +class zLe extends fc { constructor() { super(...arguments), this.title = "See Also", this.kind = "seealso"; } } -class zLe extends fc { +class QLe extends fc { constructor() { super(...arguments), this.title = "Tip", this.kind = "tip"; } } -class QLe extends fc { +class ULe extends fc { constructor() { super(...arguments), this.title = "Warning", this.kind = "warning"; } } -const ULe = { - admonition: RLe, - attention: MLe, - caution: DLe, - danger: PLe, - error: NLe, - important: ILe, - hint: $Le, - note: BLe, - seealso: FLe, - tip: zLe, - warning: QLe -}; -class VLe extends md { +const VLe = { + admonition: MLe, + attention: DLe, + caution: PLe, + danger: NLe, + error: ILe, + important: $Le, + hint: BLe, + note: FLe, + seealso: zLe, + tip: QLe, + warning: ULe +}; +class qLe extends Dh { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !1, this.has_content = !0, this.option_spec = { "number-lines": jie, @@ -28641,7 +28641,7 @@ class VLe extends md { })]; } } -class qLe extends md { +class YLe extends Dh { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !1, this.has_content = !0, this.option_spec = { linenos: y9, @@ -28662,7 +28662,7 @@ class qLe extends md { })]; } } -class YLe extends md { +class WLe extends Dh { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !1, this.has_content = !0, this.rawOptions = !0; } @@ -28674,10 +28674,10 @@ class YLe extends md { })]; } } -const WLe = { - code: VLe, - "code-block": qLe, - "code-cell": YLe +const GLe = { + code: qLe, + "code-block": YLe, + "code-cell": WLe }, rse = { alt: lu, height: vP, @@ -28687,12 +28687,12 @@ const WLe = { class: vd, name: lu }; -class nse extends md { +class nse extends Dh { constructor() { super(...arguments), this.required_arguments = 1, this.optional_arguments = 0, this.final_argument_whitespace = !0, this.option_spec = Object.assign(Object.assign({}, rse), { align: hC(["left", "center", "right", "top", "middle", "bottom"]) }); } create_image(e) { - const r = LLe(e.args[0] || ""), n = this.createToken("image", "img", 0, { map: e.map, block: !0 }); + const r = RLe(e.args[0] || ""), n = this.createToken("image", "img", 0, { map: e.map, block: !0 }); n.attrSet("src", r), n.attrSet("alt", e.options.alt || ""); const i = []; return e.options.alt && this.state.md.inline.parse(e.options.alt, this.state.md, this.state.env, i), n.children = i, e.options.height && n.attrSet("height", e.options.height), e.options.width && n.attrSet("width", e.options.width), e.options.align && n.attrJoin("class", `align-${e.options.align}`), e.options.class && n.attrJoin("class", e.options.class.join(" ")), n; @@ -28701,7 +28701,7 @@ class nse extends md { return [this.create_image(e)]; } } -class GLe extends nse { +class XLe extends nse { constructor() { super(...arguments), this.option_spec = Object.assign(Object.assign({}, rse), { align: hC(["left", "center", "right"]), figwidth: tse, figclass: vd }), this.has_content = !0; } @@ -28748,9 +28748,9 @@ class GLe extends nse { return [r, i, ...s, ...a, o]; } } -const XLe = { +const HLe = { image: nse, - figure: GLe + figure: XLe }; class yP { constructor(e, r = !0) { @@ -28874,7 +28874,7 @@ class yP { return this.attribute_token().attrs; } } -class HLe extends md { +class ZLe extends Dh { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 1, this.final_argument_whitespace = !0, this.has_content = !0, this.option_spec = { "header-rows": o3, @@ -28890,7 +28890,7 @@ class HLe extends md { this.assert_has_content(e); const r = e.options["header-rows"] || 0, n = this.nestedParse(e.body, e.bodyMap[0]); if (n.length < 2 || n[0].type !== "bullet_list_open" || n[n.length - 1].type !== "bullet_list_close") - throw new ff("Content is not a single bullet list"); + throw new df("Content is not a single bullet list"); const i = [], s = this.createToken("table_open", "table", 1, { map: e.bodyMap }); e.options.align && s.attrJoin("class", `align-${e.options.align}`), e.options.class && s.attrJoin("class", e.options.class.join(" ")), i.push(s), e.args.length && e.args[0] && (i.push(this.createToken("table_caption_open", "caption", 1)), i.push(this.createToken("inline", "", 0, { map: [e.map[0], e.map[0]], @@ -28913,10 +28913,10 @@ class HLe extends md { return a === "td" ? i.push(this.createToken("tbody_close", "tbody", -1, { level: 1 })) : i.push(this.createToken("thead_close", "thead", -1, { level: 1 })), i.push(this.createToken("table_close", "table", -1)), i; } } -const ZLe = { - "list-table": HLe +const jLe = { + "list-table": ZLe }; -class jLe extends md { +class KLe extends Dh { constructor() { super(...arguments), this.required_arguments = 0, this.optional_arguments = 0, this.final_argument_whitespace = !1, this.has_content = !0, this.option_spec = { label: lu @@ -28937,10 +28937,10 @@ class jLe extends md { return [r]; } } -const KLe = { - math: jLe -}, bP = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ULe), XLe), WLe), ZLe), KLe); -function JLe(t) { +const JLe = { + math: KLe +}, bP = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, VLe), HLe), GLe), jLe), JLe); +function eRe(t) { return (e) => { const r = lC(e); return r.references.forEach((n) => { @@ -28958,35 +28958,35 @@ function JLe(t) { }), !0; }; } -function eRe(t, e) { - t.core.ruler.push("docutils_number", JLe()); +function tRe(t, e) { + t.core.ruler.push("docutils_number", eRe()); } -const tRe = { +const rRe = { parseRoles: !0, replaceFences: !0, rolesAfter: "inline", directivesAfter: "block", directives: bP, - roles: n8e + roles: i8e }; -function rRe(t, e) { - const r = Object.assign(Object.assign({}, tRe), e); - t.use(iie, r), t.use(Hie, r), t.use(eRe, r); +function nRe(t, e) { + const r = Object.assign(Object.assign({}, rRe), e); + t.use(iie, r), t.use(Hie, r), t.use(tRe, r); } /*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */ -function rf(t) { - return rf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { +function nf(t) { + return nf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; } : function(e) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; - }, rf(t); + }, nf(t); } function b9(t, e) { return b9 = Object.setPrototypeOf || function(n, i) { return n.__proto__ = i, n; }, b9(t, e); } -function nRe() { +function iRe() { if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1; if (typeof Proxy == "function") @@ -28999,7 +28999,7 @@ function nRe() { } } function v5(t, e, r) { - return nRe() ? v5 = Reflect.construct : v5 = function(i, s, a) { + return iRe() ? v5 = Reflect.construct : v5 = function(i, s, a) { var o = [null]; o.push.apply(o, s); var l = Function.bind.apply(i, o), u = new l(); @@ -29007,17 +29007,17 @@ function v5(t, e, r) { }, v5.apply(null, arguments); } function _l(t) { - return iRe(t) || sRe(t) || aRe(t) || oRe(); + return sRe(t) || aRe(t) || oRe(t) || lRe(); } -function iRe(t) { +function sRe(t) { if (Array.isArray(t)) return x9(t); } -function sRe(t) { +function aRe(t) { if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t); } -function aRe(t, e) { +function oRe(t, e) { if (!!t) { if (typeof t == "string") return x9(t, e); @@ -29034,11 +29034,11 @@ function x9(t, e) { n[r] = t[r]; return n; } -function oRe() { +function lRe() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } -var lRe = Object.hasOwnProperty, zU = Object.setPrototypeOf, cRe = Object.isFrozen, uRe = Object.getPrototypeOf, hRe = Object.getOwnPropertyDescriptor, Aa = Object.freeze, sc = Object.seal, fRe = Object.create, ise = typeof Reflect < "u" && Reflect, l3 = ise.apply, w9 = ise.construct; +var cRe = Object.hasOwnProperty, zU = Object.setPrototypeOf, uRe = Object.isFrozen, hRe = Object.getPrototypeOf, fRe = Object.getOwnPropertyDescriptor, Aa = Object.freeze, sc = Object.seal, dRe = Object.create, ise = typeof Reflect < "u" && Reflect, l3 = ise.apply, w9 = ise.construct; l3 || (l3 = function(e, r, n) { return e.apply(r, n); }); @@ -29051,7 +29051,7 @@ sc || (sc = function(e) { w9 || (w9 = function(e, r) { return v5(e, _l(r)); }); -var dRe = hl(Array.prototype.forEach), QU = hl(Array.prototype.pop), Cv = hl(Array.prototype.push), y5 = hl(String.prototype.toLowerCase), g6 = hl(String.prototype.toString), pRe = hl(String.prototype.match), El = hl(String.prototype.replace), gRe = hl(String.prototype.indexOf), mRe = hl(String.prototype.trim), ma = hl(RegExp.prototype.test), m6 = vRe(TypeError); +var pRe = hl(Array.prototype.forEach), QU = hl(Array.prototype.pop), Cv = hl(Array.prototype.push), y5 = hl(String.prototype.toLowerCase), g6 = hl(String.prototype.toString), gRe = hl(String.prototype.match), El = hl(String.prototype.replace), mRe = hl(String.prototype.indexOf), vRe = hl(String.prototype.trim), ma = hl(RegExp.prototype.test), m6 = yRe(TypeError); function hl(t) { return function(e) { for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) @@ -29059,7 +29059,7 @@ function hl(t) { return l3(t, e, n); }; } -function vRe(t) { +function yRe(t) { return function() { for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n]; @@ -29073,42 +29073,42 @@ function Lr(t, e, r) { var s = e[i]; if (typeof s == "string") { var a = r(s); - a !== s && (cRe(e) || (e[i] = a), s = a); + a !== s && (uRe(e) || (e[i] = a), s = a); } t[s] = !0; } return t; } function Ld(t) { - var e = fRe(null), r; + var e = dRe(null), r; for (r in t) - l3(lRe, t, [r]) === !0 && (e[r] = t[r]); + l3(cRe, t, [r]) === !0 && (e[r] = t[r]); return e; } function PO(t, e) { for (; t !== null; ) { - var r = hRe(t, e); + var r = fRe(t, e); if (r) { if (r.get) return hl(r.get); if (typeof r.value == "function") return hl(r.value); } - t = uRe(t); + t = hRe(t); } function n(i) { return console.warn("fallback value for", i), null; } return n; } -var UU = Aa(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), v6 = Aa(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), y6 = Aa(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), yRe = Aa(["animate", "color-profile", "cursor", "discard", "fedropshadow", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), b6 = Aa(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover"]), bRe = Aa(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), VU = Aa(["#text"]), qU = Aa(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), x6 = Aa(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), YU = Aa(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), NO = Aa(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), xRe = sc(/\{\{[\w\W]*|[\w\W]*\}\}/gm), wRe = sc(/<%[\w\W]*|[\w\W]*%>/gm), ORe = sc(/\${[\w\W]*}/gm), kRe = sc(/^data-[\-\w.\u00B7-\uFFFF]/), SRe = sc(/^aria-[\-\w]+$/), TRe = sc( +var UU = Aa(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), v6 = Aa(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), y6 = Aa(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), bRe = Aa(["animate", "color-profile", "cursor", "discard", "fedropshadow", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), b6 = Aa(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover"]), xRe = Aa(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), VU = Aa(["#text"]), qU = Aa(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), x6 = Aa(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), YU = Aa(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), NO = Aa(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), wRe = sc(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ORe = sc(/<%[\w\W]*|[\w\W]*%>/gm), kRe = sc(/\${[\w\W]*}/gm), SRe = sc(/^data-[\-\w.\u00B7-\uFFFF]/), TRe = sc(/^aria-[\-\w]+$/), CRe = sc( /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i -), CRe = sc(/^(?:\w+script|data):/i), ERe = sc( +), ERe = sc(/^(?:\w+script|data):/i), _Re = sc( /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g -), _Re = sc(/^html$/i), ARe = function() { +), ARe = sc(/^html$/i), LRe = function() { return typeof window > "u" ? null : window; -}, LRe = function(e, r) { - if (rf(e) !== "object" || typeof e.createPolicy != "function") +}, RRe = function(e, r) { + if (nf(e) !== "object" || typeof e.createPolicy != "function") return null; var n = null, i = "data-tt-policy-suffix"; r.currentScript && r.currentScript.hasAttribute(i) && (n = r.currentScript.getAttribute(i)); @@ -29127,7 +29127,7 @@ var UU = Aa(["a", "abbr", "acronym", "address", "area", "article", "aside", "aud } }; function sse() { - var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ARe(), e = function(ne) { + var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : LRe(), e = function(ne) { return sse(ne); }; if (e.version = "2.4.7", e.removed = [], !t || !t.document || t.document.nodeType !== 9) @@ -29137,14 +29137,14 @@ function sse() { var w = n.createElement("template"); w.content && w.content.ownerDocument && (n = w.content.ownerDocument); } - var O = LRe(p, r), S = O ? O.createHTML("") : "", C = n, T = C.implementation, A = C.createNodeIterator, E = C.createDocumentFragment, R = C.getElementsByTagName, _ = r.importNode, L = {}; + var O = RRe(p, r), S = O ? O.createHTML("") : "", C = n, T = C.implementation, A = C.createNodeIterator, E = C.createDocumentFragment, R = C.getElementsByTagName, _ = r.importNode, L = {}; try { L = Ld(n).documentMode ? n.documentMode : {}; } catch { } var $ = {}; e.isSupported = typeof b == "function" && T && T.createHTMLDocument !== void 0 && L !== 9; - var k = xRe, P = wRe, M = ORe, N = kRe, D = SRe, I = CRe, F = ERe, B = TRe, U = null, Q = Lr({}, [].concat(_l(UU), _l(v6), _l(y6), _l(b6), _l(VU))), W = null, K = Lr({}, [].concat(_l(qU), _l(x6), _l(YU), _l(NO))), Y = Object.seal(Object.create(null, { + var k = wRe, P = ORe, M = kRe, N = SRe, D = TRe, I = ERe, F = _Re, B = CRe, U = null, Q = Lr({}, [].concat(_l(UU), _l(v6), _l(y6), _l(b6), _l(VU))), W = null, K = Lr({}, [].concat(_l(qU), _l(x6), _l(YU), _l(NO))), Y = Object.seal(Object.create(null, { tagNameCheck: { writable: !0, configurable: !1, @@ -29166,7 +29166,7 @@ function sse() { })), te = null, se = null, V = !0, Z = !0, G = !1, J = !0, oe = !1, ae = !1, ee = !1, De = !1, he = !1, _e = !1, Pe = !1, He = !0, nt = !1, Ge = "user-content-", Ie = !0, de = !1, X = {}, le = null, ye = Lr({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), ie = null, fe = Lr({}, ["audio", "video", "img", "source", "image", "track"]), pe = null, ge = Lr({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ve = "http://www.w3.org/1998/Math/MathML", we = "http://www.w3.org/2000/svg", Ee = "http://www.w3.org/1999/xhtml", Re = Ee, Ce = !1, $e = null, Le = Lr({}, [ve, we, Ee], g6), tt, Fe = ["application/xhtml+xml", "text/html"], ot = "text/html", at, bt = null, xt = n.createElement("form"), gt = function(ne) { return ne instanceof RegExp || ne instanceof Function; }, et = function(ne) { - bt && bt === ne || ((!ne || rf(ne) !== "object") && (ne = {}), ne = Ld(ne), tt = Fe.indexOf(ne.PARSER_MEDIA_TYPE) === -1 ? tt = ot : tt = ne.PARSER_MEDIA_TYPE, at = tt === "application/xhtml+xml" ? g6 : y5, U = "ALLOWED_TAGS" in ne ? Lr({}, ne.ALLOWED_TAGS, at) : Q, W = "ALLOWED_ATTR" in ne ? Lr({}, ne.ALLOWED_ATTR, at) : K, $e = "ALLOWED_NAMESPACES" in ne ? Lr({}, ne.ALLOWED_NAMESPACES, g6) : Le, pe = "ADD_URI_SAFE_ATTR" in ne ? Lr( + bt && bt === ne || ((!ne || nf(ne) !== "object") && (ne = {}), ne = Ld(ne), tt = Fe.indexOf(ne.PARSER_MEDIA_TYPE) === -1 ? tt = ot : tt = ne.PARSER_MEDIA_TYPE, at = tt === "application/xhtml+xml" ? g6 : y5, U = "ALLOWED_TAGS" in ne ? Lr({}, ne.ALLOWED_TAGS, at) : Q, W = "ALLOWED_ATTR" in ne ? Lr({}, ne.ALLOWED_ATTR, at) : K, $e = "ALLOWED_NAMESPACES" in ne ? Lr({}, ne.ALLOWED_NAMESPACES, g6) : Le, pe = "ADD_URI_SAFE_ATTR" in ne ? Lr( Ld(ge), ne.ADD_URI_SAFE_ATTR, at @@ -29176,9 +29176,9 @@ function sse() { at ) : fe, le = "FORBID_CONTENTS" in ne ? Lr({}, ne.FORBID_CONTENTS, at) : ye, te = "FORBID_TAGS" in ne ? Lr({}, ne.FORBID_TAGS, at) : {}, se = "FORBID_ATTR" in ne ? Lr({}, ne.FORBID_ATTR, at) : {}, X = "USE_PROFILES" in ne ? ne.USE_PROFILES : !1, V = ne.ALLOW_ARIA_ATTR !== !1, Z = ne.ALLOW_DATA_ATTR !== !1, G = ne.ALLOW_UNKNOWN_PROTOCOLS || !1, J = ne.ALLOW_SELF_CLOSE_IN_ATTR !== !1, oe = ne.SAFE_FOR_TEMPLATES || !1, ae = ne.WHOLE_DOCUMENT || !1, he = ne.RETURN_DOM || !1, _e = ne.RETURN_DOM_FRAGMENT || !1, Pe = ne.RETURN_TRUSTED_TYPE || !1, De = ne.FORCE_BODY || !1, He = ne.SANITIZE_DOM !== !1, nt = ne.SANITIZE_NAMED_PROPS || !1, Ie = ne.KEEP_CONTENT !== !1, de = ne.IN_PLACE || !1, B = ne.ALLOWED_URI_REGEXP || B, Re = ne.NAMESPACE || Ee, Y = ne.CUSTOM_ELEMENT_HANDLING || {}, ne.CUSTOM_ELEMENT_HANDLING && gt(ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Y.tagNameCheck = ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ne.CUSTOM_ELEMENT_HANDLING && gt(ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Y.attributeNameCheck = ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ne.CUSTOM_ELEMENT_HANDLING && typeof ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Y.allowCustomizedBuiltInElements = ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), oe && (Z = !1), _e && (he = !0), X && (U = Lr({}, _l(VU)), W = [], X.html === !0 && (Lr(U, UU), Lr(W, qU)), X.svg === !0 && (Lr(U, v6), Lr(W, x6), Lr(W, NO)), X.svgFilters === !0 && (Lr(U, y6), Lr(W, x6), Lr(W, NO)), X.mathMl === !0 && (Lr(U, b6), Lr(W, YU), Lr(W, NO))), ne.ADD_TAGS && (U === Q && (U = Ld(U)), Lr(U, ne.ADD_TAGS, at)), ne.ADD_ATTR && (W === K && (W = Ld(W)), Lr(W, ne.ADD_ATTR, at)), ne.ADD_URI_SAFE_ATTR && Lr(pe, ne.ADD_URI_SAFE_ATTR, at), ne.FORBID_CONTENTS && (le === ye && (le = Ld(le)), Lr(le, ne.FORBID_CONTENTS, at)), Ie && (U["#text"] = !0), ae && Lr(U, ["html", "head", "body"]), U.table && (Lr(U, ["tbody"]), delete te.tbody), Aa && Aa(ne), bt = ne); }, Ke = Lr({}, ["mi", "mo", "mn", "ms", "mtext"]), wt = Lr({}, ["foreignobject", "desc", "title", "annotation-xml"]), ct = Lr({}, ["title", "style", "font", "a", "script"]), it = Lr({}, v6); - Lr(it, y6), Lr(it, yRe); + Lr(it, y6), Lr(it, bRe); var At = Lr({}, b6); - Lr(At, bRe); + Lr(At, xRe); var ft = function(ne) { var Ne = b(ne); (!Ne || !Ne.tagName) && (Ne = { @@ -29228,7 +29228,7 @@ function sse() { if (De) ne = "" + ne; else { - var Ft = pRe(ne, /^[\r\n\t ]+/); + var Ft = gRe(ne, /^[\r\n\t ]+/); Xe = Ft && Ft[0]; } tt === "application/xhtml+xml" && Re === Ee && (ne = '' + ne + ""); @@ -29258,9 +29258,9 @@ function sse() { }, Bt = function(ne) { return ne instanceof f && (typeof ne.nodeName != "string" || typeof ne.textContent != "string" || typeof ne.removeChild != "function" || !(ne.attributes instanceof h) || typeof ne.removeAttribute != "function" || typeof ne.setAttribute != "function" || typeof ne.namespaceURI != "string" || typeof ne.insertBefore != "function" || typeof ne.hasChildNodes != "function"); }, _r = function(ne) { - return rf(a) === "object" ? ne instanceof a : ne && rf(ne) === "object" && typeof ne.nodeType == "number" && typeof ne.nodeName == "string"; + return nf(a) === "object" ? ne instanceof a : ne && nf(ne) === "object" && typeof ne.nodeType == "number" && typeof ne.nodeName == "string"; }, ir = function(ne, Ne, Xe) { - !$[ne] || dRe($[ne], function(Ft) { + !$[ne] || pRe($[ne], function(Ft) { Ft.call(e, Ne, Xe, bt); }); }, Zr = function(ne) { @@ -29297,7 +29297,7 @@ function sse() { return !1; } else if (!pe[Ne]) { if (!ma(B, El(Xe, F, ""))) { - if (!((Ne === "src" || Ne === "xlink:href" || Ne === "href") && ne !== "script" && gRe(Xe, "data:") === 0 && ie[ne])) { + if (!((Ne === "src" || Ne === "xlink:href" || Ne === "href") && ne !== "script" && mRe(Xe, "data:") === 0 && ie[ne])) { if (!(G && !ma(I, El(Xe, F, "")))) { if (Xe) return !1; @@ -29324,7 +29324,7 @@ function sse() { for (xr = lr.length; xr--; ) { Ne = lr[xr]; var Et = Ne, Pt = Et.name, rt = Et.namespaceURI; - if (Xe = Pt === "value" ? Ne.value : mRe(Ne.value), Ft = at(Pt), ut.attrName = Ft, ut.attrValue = Xe, ut.keepAttr = !0, ut.forceKeepAttr = void 0, ir("uponSanitizeAttribute", ne, ut), Xe = ut.attrValue, !ut.forceKeepAttr && (yt(Pt, ne), !!ut.keepAttr)) { + if (Xe = Pt === "value" ? Ne.value : vRe(Ne.value), Ft = at(Pt), ut.attrName = Ft, ut.attrValue = Xe, ut.keepAttr = !0, ut.forceKeepAttr = void 0, ir("uponSanitizeAttribute", ne, ut), Xe = ut.attrValue, !ut.forceKeepAttr && (yt(Pt, ne), !!ut.keepAttr)) { if (!J && ma(/\/>/i, Xe)) { yt(Pt, ne); continue; @@ -29332,7 +29332,7 @@ function sse() { oe && (Xe = El(Xe, k, " "), Xe = El(Xe, P, " "), Xe = El(Xe, M, " ")); var er = at(ne.nodeName); if (!!Br(er, Ft, Xe)) { - if (nt && (Ft === "id" || Ft === "name") && (yt(Pt, ne), Xe = Ge + Xe), O && rf(p) === "object" && typeof p.getAttributeType == "function" && !rt) + if (nt && (Ft === "id" || Ft === "name") && (yt(Pt, ne), Xe = Ge + Xe), O && nf(p) === "object" && typeof p.getAttributeType == "function" && !rt) switch (p.getAttributeType(er, Ft)) { case "TrustedHTML": { Xe = O.createHTML(Xe); @@ -29367,7 +29367,7 @@ function sse() { } else throw m6("toString is not a function"); if (!e.isSupported) { - if (rf(t.toStaticHTML) === "object" || typeof t.toStaticHTML == "function") { + if (nf(t.toStaticHTML) === "object" || typeof t.toStaticHTML == "function") { if (typeof Je == "string") return t.toStaticHTML(Je); if (_r(Je)) @@ -29403,7 +29403,7 @@ function sse() { return (W.shadowroot || W.shadowrootmod) && (lr = _.call(r, lr, !0)), lr; } var Pt = ae ? Ne.outerHTML : Ne.innerHTML; - return ae && U["!doctype"] && Ne.ownerDocument && Ne.ownerDocument.doctype && Ne.ownerDocument.doctype.name && ma(_Re, Ne.ownerDocument.doctype.name) && (Pt = " + return ae && U["!doctype"] && Ne.ownerDocument && Ne.ownerDocument.doctype && Ne.ownerDocument.doctype.name && ma(ARe, Ne.ownerDocument.doctype.name) && (Pt = " ` + Pt), oe && (Pt = El(Pt, k, " "), Pt = El(Pt, P, " "), Pt = El(Pt, M, " ")), O && Pe ? O.createHTML(Pt) : Pt; }, e.setConfig = function(Je) { et(Je), ee = !0; @@ -29425,2139 +29425,2139 @@ function sse() { }, e; } var ase = sse(), ose = { exports: {} }, Wr = {}, xP = { exports: {} }; -const RRe = "\xC1", MRe = "\xE1", DRe = "\u0102", PRe = "\u0103", NRe = "\u223E", IRe = "\u223F", $Re = "\u223E\u0333", BRe = "\xC2", FRe = "\xE2", zRe = "\xB4", QRe = "\u0410", URe = "\u0430", VRe = "\xC6", qRe = "\xE6", YRe = "\u2061", WRe = "\u{1D504}", GRe = "\u{1D51E}", XRe = "\xC0", HRe = "\xE0", ZRe = "\u2135", jRe = "\u2135", KRe = "\u0391", JRe = "\u03B1", eMe = "\u0100", tMe = "\u0101", rMe = "\u2A3F", nMe = "&", iMe = "&", sMe = "\u2A55", aMe = "\u2A53", oMe = "\u2227", lMe = "\u2A5C", cMe = "\u2A58", uMe = "\u2A5A", hMe = "\u2220", fMe = "\u29A4", dMe = "\u2220", pMe = "\u29A8", gMe = "\u29A9", mMe = "\u29AA", vMe = "\u29AB", yMe = "\u29AC", bMe = "\u29AD", xMe = "\u29AE", wMe = "\u29AF", OMe = "\u2221", kMe = "\u221F", SMe = "\u22BE", TMe = "\u299D", CMe = "\u2222", EMe = "\xC5", _Me = "\u237C", AMe = "\u0104", LMe = "\u0105", RMe = "\u{1D538}", MMe = "\u{1D552}", DMe = "\u2A6F", PMe = "\u2248", NMe = "\u2A70", IMe = "\u224A", $Me = "\u224B", BMe = "'", FMe = "\u2061", zMe = "\u2248", QMe = "\u224A", UMe = "\xC5", VMe = "\xE5", qMe = "\u{1D49C}", YMe = "\u{1D4B6}", WMe = "\u2254", GMe = "*", XMe = "\u2248", HMe = "\u224D", ZMe = "\xC3", jMe = "\xE3", KMe = "\xC4", JMe = "\xE4", eDe = "\u2233", tDe = "\u2A11", rDe = "\u224C", nDe = "\u03F6", iDe = "\u2035", sDe = "\u223D", aDe = "\u22CD", oDe = "\u2216", lDe = "\u2AE7", cDe = "\u22BD", uDe = "\u2305", hDe = "\u2306", fDe = "\u2305", dDe = "\u23B5", pDe = "\u23B6", gDe = "\u224C", mDe = "\u0411", vDe = "\u0431", yDe = "\u201E", bDe = "\u2235", xDe = "\u2235", wDe = "\u2235", ODe = "\u29B0", kDe = "\u03F6", SDe = "\u212C", TDe = "\u212C", CDe = "\u0392", EDe = "\u03B2", _De = "\u2136", ADe = "\u226C", LDe = "\u{1D505}", RDe = "\u{1D51F}", MDe = "\u22C2", DDe = "\u25EF", PDe = "\u22C3", NDe = "\u2A00", IDe = "\u2A01", $De = "\u2A02", BDe = "\u2A06", FDe = "\u2605", zDe = "\u25BD", QDe = "\u25B3", UDe = "\u2A04", VDe = "\u22C1", qDe = "\u22C0", YDe = "\u290D", WDe = "\u29EB", GDe = "\u25AA", XDe = "\u25B4", HDe = "\u25BE", ZDe = "\u25C2", jDe = "\u25B8", KDe = "\u2423", JDe = "\u2592", ePe = "\u2591", tPe = "\u2593", rPe = "\u2588", nPe = "=\u20E5", iPe = "\u2261\u20E5", sPe = "\u2AED", aPe = "\u2310", oPe = "\u{1D539}", lPe = "\u{1D553}", cPe = "\u22A5", uPe = "\u22A5", hPe = "\u22C8", fPe = "\u29C9", dPe = "\u2510", pPe = "\u2555", gPe = "\u2556", mPe = "\u2557", vPe = "\u250C", yPe = "\u2552", bPe = "\u2553", xPe = "\u2554", wPe = "\u2500", OPe = "\u2550", kPe = "\u252C", SPe = "\u2564", TPe = "\u2565", CPe = "\u2566", EPe = "\u2534", _Pe = "\u2567", APe = "\u2568", LPe = "\u2569", RPe = "\u229F", MPe = "\u229E", DPe = "\u22A0", PPe = "\u2518", NPe = "\u255B", IPe = "\u255C", $Pe = "\u255D", BPe = "\u2514", FPe = "\u2558", zPe = "\u2559", QPe = "\u255A", UPe = "\u2502", VPe = "\u2551", qPe = "\u253C", YPe = "\u256A", WPe = "\u256B", GPe = "\u256C", XPe = "\u2524", HPe = "\u2561", ZPe = "\u2562", jPe = "\u2563", KPe = "\u251C", JPe = "\u255E", eNe = "\u255F", tNe = "\u2560", rNe = "\u2035", nNe = "\u02D8", iNe = "\u02D8", sNe = "\xA6", aNe = "\u{1D4B7}", oNe = "\u212C", lNe = "\u204F", cNe = "\u223D", uNe = "\u22CD", hNe = "\u29C5", fNe = "\\", dNe = "\u27C8", pNe = "\u2022", gNe = "\u2022", mNe = "\u224E", vNe = "\u2AAE", yNe = "\u224F", bNe = "\u224E", xNe = "\u224F", wNe = "\u0106", ONe = "\u0107", kNe = "\u2A44", SNe = "\u2A49", TNe = "\u2A4B", CNe = "\u2229", ENe = "\u22D2", _Ne = "\u2A47", ANe = "\u2A40", LNe = "\u2145", RNe = "\u2229\uFE00", MNe = "\u2041", DNe = "\u02C7", PNe = "\u212D", NNe = "\u2A4D", INe = "\u010C", $Ne = "\u010D", BNe = "\xC7", FNe = "\xE7", zNe = "\u0108", QNe = "\u0109", UNe = "\u2230", VNe = "\u2A4C", qNe = "\u2A50", YNe = "\u010A", WNe = "\u010B", GNe = "\xB8", XNe = "\xB8", HNe = "\u29B2", ZNe = "\xA2", jNe = "\xB7", KNe = "\xB7", JNe = "\u{1D520}", eIe = "\u212D", tIe = "\u0427", rIe = "\u0447", nIe = "\u2713", iIe = "\u2713", sIe = "\u03A7", aIe = "\u03C7", oIe = "\u02C6", lIe = "\u2257", cIe = "\u21BA", uIe = "\u21BB", hIe = "\u229B", fIe = "\u229A", dIe = "\u229D", pIe = "\u2299", gIe = "\xAE", mIe = "\u24C8", vIe = "\u2296", yIe = "\u2295", bIe = "\u2297", xIe = "\u25CB", wIe = "\u29C3", OIe = "\u2257", kIe = "\u2A10", SIe = "\u2AEF", TIe = "\u29C2", CIe = "\u2232", EIe = "\u201D", _Ie = "\u2019", AIe = "\u2663", LIe = "\u2663", RIe = ":", MIe = "\u2237", DIe = "\u2A74", PIe = "\u2254", NIe = "\u2254", IIe = ",", $Ie = "@", BIe = "\u2201", FIe = "\u2218", zIe = "\u2201", QIe = "\u2102", UIe = "\u2245", VIe = "\u2A6D", qIe = "\u2261", YIe = "\u222E", WIe = "\u222F", GIe = "\u222E", XIe = "\u{1D554}", HIe = "\u2102", ZIe = "\u2210", jIe = "\u2210", KIe = "\xA9", JIe = "\xA9", e$e = "\u2117", t$e = "\u2233", r$e = "\u21B5", n$e = "\u2717", i$e = "\u2A2F", s$e = "\u{1D49E}", a$e = "\u{1D4B8}", o$e = "\u2ACF", l$e = "\u2AD1", c$e = "\u2AD0", u$e = "\u2AD2", h$e = "\u22EF", f$e = "\u2938", d$e = "\u2935", p$e = "\u22DE", g$e = "\u22DF", m$e = "\u21B6", v$e = "\u293D", y$e = "\u2A48", b$e = "\u2A46", x$e = "\u224D", w$e = "\u222A", O$e = "\u22D3", k$e = "\u2A4A", S$e = "\u228D", T$e = "\u2A45", C$e = "\u222A\uFE00", E$e = "\u21B7", _$e = "\u293C", A$e = "\u22DE", L$e = "\u22DF", R$e = "\u22CE", M$e = "\u22CF", D$e = "\xA4", P$e = "\u21B6", N$e = "\u21B7", I$e = "\u22CE", $$e = "\u22CF", B$e = "\u2232", F$e = "\u2231", z$e = "\u232D", Q$e = "\u2020", U$e = "\u2021", V$e = "\u2138", q$e = "\u2193", Y$e = "\u21A1", W$e = "\u21D3", G$e = "\u2010", X$e = "\u2AE4", H$e = "\u22A3", Z$e = "\u290F", j$e = "\u02DD", K$e = "\u010E", J$e = "\u010F", eBe = "\u0414", tBe = "\u0434", rBe = "\u2021", nBe = "\u21CA", iBe = "\u2145", sBe = "\u2146", aBe = "\u2911", oBe = "\u2A77", lBe = "\xB0", cBe = "\u2207", uBe = "\u0394", hBe = "\u03B4", fBe = "\u29B1", dBe = "\u297F", pBe = "\u{1D507}", gBe = "\u{1D521}", mBe = "\u2965", vBe = "\u21C3", yBe = "\u21C2", bBe = "\xB4", xBe = "\u02D9", wBe = "\u02DD", OBe = "`", kBe = "\u02DC", SBe = "\u22C4", TBe = "\u22C4", CBe = "\u22C4", EBe = "\u2666", _Be = "\u2666", ABe = "\xA8", LBe = "\u2146", RBe = "\u03DD", MBe = "\u22F2", DBe = "\xF7", PBe = "\xF7", NBe = "\u22C7", IBe = "\u22C7", $Be = "\u0402", BBe = "\u0452", FBe = "\u231E", zBe = "\u230D", QBe = "$", UBe = "\u{1D53B}", VBe = "\u{1D555}", qBe = "\xA8", YBe = "\u02D9", WBe = "\u20DC", GBe = "\u2250", XBe = "\u2251", HBe = "\u2250", ZBe = "\u2238", jBe = "\u2214", KBe = "\u22A1", JBe = "\u2306", eFe = "\u222F", tFe = "\xA8", rFe = "\u21D3", nFe = "\u21D0", iFe = "\u21D4", sFe = "\u2AE4", aFe = "\u27F8", oFe = "\u27FA", lFe = "\u27F9", cFe = "\u21D2", uFe = "\u22A8", hFe = "\u21D1", fFe = "\u21D5", dFe = "\u2225", pFe = "\u2913", gFe = "\u2193", mFe = "\u2193", vFe = "\u21D3", yFe = "\u21F5", bFe = "\u0311", xFe = "\u21CA", wFe = "\u21C3", OFe = "\u21C2", kFe = "\u2950", SFe = "\u295E", TFe = "\u2956", CFe = "\u21BD", EFe = "\u295F", _Fe = "\u2957", AFe = "\u21C1", LFe = "\u21A7", RFe = "\u22A4", MFe = "\u2910", DFe = "\u231F", PFe = "\u230C", NFe = "\u{1D49F}", IFe = "\u{1D4B9}", $Fe = "\u0405", BFe = "\u0455", FFe = "\u29F6", zFe = "\u0110", QFe = "\u0111", UFe = "\u22F1", VFe = "\u25BF", qFe = "\u25BE", YFe = "\u21F5", WFe = "\u296F", GFe = "\u29A6", XFe = "\u040F", HFe = "\u045F", ZFe = "\u27FF", jFe = "\xC9", KFe = "\xE9", JFe = "\u2A6E", eze = "\u011A", tze = "\u011B", rze = "\xCA", nze = "\xEA", ize = "\u2256", sze = "\u2255", aze = "\u042D", oze = "\u044D", lze = "\u2A77", cze = "\u0116", uze = "\u0117", hze = "\u2251", fze = "\u2147", dze = "\u2252", pze = "\u{1D508}", gze = "\u{1D522}", mze = "\u2A9A", vze = "\xC8", yze = "\xE8", bze = "\u2A96", xze = "\u2A98", wze = "\u2A99", Oze = "\u2208", kze = "\u23E7", Sze = "\u2113", Tze = "\u2A95", Cze = "\u2A97", Eze = "\u0112", _ze = "\u0113", Aze = "\u2205", Lze = "\u2205", Rze = "\u25FB", Mze = "\u2205", Dze = "\u25AB", Pze = "\u2004", Nze = "\u2005", Ize = "\u2003", $ze = "\u014A", Bze = "\u014B", Fze = "\u2002", zze = "\u0118", Qze = "\u0119", Uze = "\u{1D53C}", Vze = "\u{1D556}", qze = "\u22D5", Yze = "\u29E3", Wze = "\u2A71", Gze = "\u03B5", Xze = "\u0395", Hze = "\u03B5", Zze = "\u03F5", jze = "\u2256", Kze = "\u2255", Jze = "\u2242", eQe = "\u2A96", tQe = "\u2A95", rQe = "\u2A75", nQe = "=", iQe = "\u2242", sQe = "\u225F", aQe = "\u21CC", oQe = "\u2261", lQe = "\u2A78", cQe = "\u29E5", uQe = "\u2971", hQe = "\u2253", fQe = "\u212F", dQe = "\u2130", pQe = "\u2250", gQe = "\u2A73", mQe = "\u2242", vQe = "\u0397", yQe = "\u03B7", bQe = "\xD0", xQe = "\xF0", wQe = "\xCB", OQe = "\xEB", kQe = "\u20AC", SQe = "!", TQe = "\u2203", CQe = "\u2203", EQe = "\u2130", _Qe = "\u2147", AQe = "\u2147", LQe = "\u2252", RQe = "\u0424", MQe = "\u0444", DQe = "\u2640", PQe = "\uFB03", NQe = "\uFB00", IQe = "\uFB04", $Qe = "\u{1D509}", BQe = "\u{1D523}", FQe = "\uFB01", zQe = "\u25FC", QQe = "\u25AA", UQe = "fj", VQe = "\u266D", qQe = "\uFB02", YQe = "\u25B1", WQe = "\u0192", GQe = "\u{1D53D}", XQe = "\u{1D557}", HQe = "\u2200", ZQe = "\u2200", jQe = "\u22D4", KQe = "\u2AD9", JQe = "\u2131", eUe = "\u2A0D", tUe = "\xBD", rUe = "\u2153", nUe = "\xBC", iUe = "\u2155", sUe = "\u2159", aUe = "\u215B", oUe = "\u2154", lUe = "\u2156", cUe = "\xBE", uUe = "\u2157", hUe = "\u215C", fUe = "\u2158", dUe = "\u215A", pUe = "\u215D", gUe = "\u215E", mUe = "\u2044", vUe = "\u2322", yUe = "\u{1D4BB}", bUe = "\u2131", xUe = "\u01F5", wUe = "\u0393", OUe = "\u03B3", kUe = "\u03DC", SUe = "\u03DD", TUe = "\u2A86", CUe = "\u011E", EUe = "\u011F", _Ue = "\u0122", AUe = "\u011C", LUe = "\u011D", RUe = "\u0413", MUe = "\u0433", DUe = "\u0120", PUe = "\u0121", NUe = "\u2265", IUe = "\u2267", $Ue = "\u2A8C", BUe = "\u22DB", FUe = "\u2265", zUe = "\u2267", QUe = "\u2A7E", UUe = "\u2AA9", VUe = "\u2A7E", qUe = "\u2A80", YUe = "\u2A82", WUe = "\u2A84", GUe = "\u22DB\uFE00", XUe = "\u2A94", HUe = "\u{1D50A}", ZUe = "\u{1D524}", jUe = "\u226B", KUe = "\u22D9", JUe = "\u22D9", eVe = "\u2137", tVe = "\u0403", rVe = "\u0453", nVe = "\u2AA5", iVe = "\u2277", sVe = "\u2A92", aVe = "\u2AA4", oVe = "\u2A8A", lVe = "\u2A8A", cVe = "\u2A88", uVe = "\u2269", hVe = "\u2A88", fVe = "\u2269", dVe = "\u22E7", pVe = "\u{1D53E}", gVe = "\u{1D558}", mVe = "`", vVe = "\u2265", yVe = "\u22DB", bVe = "\u2267", xVe = "\u2AA2", wVe = "\u2277", OVe = "\u2A7E", kVe = "\u2273", SVe = "\u{1D4A2}", TVe = "\u210A", CVe = "\u2273", EVe = "\u2A8E", _Ve = "\u2A90", AVe = "\u2AA7", LVe = "\u2A7A", RVe = ">", MVe = ">", DVe = "\u226B", PVe = "\u22D7", NVe = "\u2995", IVe = "\u2A7C", $Ve = "\u2A86", BVe = "\u2978", FVe = "\u22D7", zVe = "\u22DB", QVe = "\u2A8C", UVe = "\u2277", VVe = "\u2273", qVe = "\u2269\uFE00", YVe = "\u2269\uFE00", WVe = "\u02C7", GVe = "\u200A", XVe = "\xBD", HVe = "\u210B", ZVe = "\u042A", jVe = "\u044A", KVe = "\u2948", JVe = "\u2194", eqe = "\u21D4", tqe = "\u21AD", rqe = "^", nqe = "\u210F", iqe = "\u0124", sqe = "\u0125", aqe = "\u2665", oqe = "\u2665", lqe = "\u2026", cqe = "\u22B9", uqe = "\u{1D525}", hqe = "\u210C", fqe = "\u210B", dqe = "\u2925", pqe = "\u2926", gqe = "\u21FF", mqe = "\u223B", vqe = "\u21A9", yqe = "\u21AA", bqe = "\u{1D559}", xqe = "\u210D", wqe = "\u2015", Oqe = "\u2500", kqe = "\u{1D4BD}", Sqe = "\u210B", Tqe = "\u210F", Cqe = "\u0126", Eqe = "\u0127", _qe = "\u224E", Aqe = "\u224F", Lqe = "\u2043", Rqe = "\u2010", Mqe = "\xCD", Dqe = "\xED", Pqe = "\u2063", Nqe = "\xCE", Iqe = "\xEE", $qe = "\u0418", Bqe = "\u0438", Fqe = "\u0130", zqe = "\u0415", Qqe = "\u0435", Uqe = "\xA1", Vqe = "\u21D4", qqe = "\u{1D526}", Yqe = "\u2111", Wqe = "\xCC", Gqe = "\xEC", Xqe = "\u2148", Hqe = "\u2A0C", Zqe = "\u222D", jqe = "\u29DC", Kqe = "\u2129", Jqe = "\u0132", eYe = "\u0133", tYe = "\u012A", rYe = "\u012B", nYe = "\u2111", iYe = "\u2148", sYe = "\u2110", aYe = "\u2111", oYe = "\u0131", lYe = "\u2111", cYe = "\u22B7", uYe = "\u01B5", hYe = "\u21D2", fYe = "\u2105", dYe = "\u221E", pYe = "\u29DD", gYe = "\u0131", mYe = "\u22BA", vYe = "\u222B", yYe = "\u222C", bYe = "\u2124", xYe = "\u222B", wYe = "\u22BA", OYe = "\u22C2", kYe = "\u2A17", SYe = "\u2A3C", TYe = "\u2063", CYe = "\u2062", EYe = "\u0401", _Ye = "\u0451", AYe = "\u012E", LYe = "\u012F", RYe = "\u{1D540}", MYe = "\u{1D55A}", DYe = "\u0399", PYe = "\u03B9", NYe = "\u2A3C", IYe = "\xBF", $Ye = "\u{1D4BE}", BYe = "\u2110", FYe = "\u2208", zYe = "\u22F5", QYe = "\u22F9", UYe = "\u22F4", VYe = "\u22F3", qYe = "\u2208", YYe = "\u2062", WYe = "\u0128", GYe = "\u0129", XYe = "\u0406", HYe = "\u0456", ZYe = "\xCF", jYe = "\xEF", KYe = "\u0134", JYe = "\u0135", eWe = "\u0419", tWe = "\u0439", rWe = "\u{1D50D}", nWe = "\u{1D527}", iWe = "\u0237", sWe = "\u{1D541}", aWe = "\u{1D55B}", oWe = "\u{1D4A5}", lWe = "\u{1D4BF}", cWe = "\u0408", uWe = "\u0458", hWe = "\u0404", fWe = "\u0454", dWe = "\u039A", pWe = "\u03BA", gWe = "\u03F0", mWe = "\u0136", vWe = "\u0137", yWe = "\u041A", bWe = "\u043A", xWe = "\u{1D50E}", wWe = "\u{1D528}", OWe = "\u0138", kWe = "\u0425", SWe = "\u0445", TWe = "\u040C", CWe = "\u045C", EWe = "\u{1D542}", _We = "\u{1D55C}", AWe = "\u{1D4A6}", LWe = "\u{1D4C0}", RWe = "\u21DA", MWe = "\u0139", DWe = "\u013A", PWe = "\u29B4", NWe = "\u2112", IWe = "\u039B", $We = "\u03BB", BWe = "\u27E8", FWe = "\u27EA", zWe = "\u2991", QWe = "\u27E8", UWe = "\u2A85", VWe = "\u2112", qWe = "\xAB", YWe = "\u21E4", WWe = "\u291F", GWe = "\u2190", XWe = "\u219E", HWe = "\u21D0", ZWe = "\u291D", jWe = "\u21A9", KWe = "\u21AB", JWe = "\u2939", eGe = "\u2973", tGe = "\u21A2", rGe = "\u2919", nGe = "\u291B", iGe = "\u2AAB", sGe = "\u2AAD", aGe = "\u2AAD\uFE00", oGe = "\u290C", lGe = "\u290E", cGe = "\u2772", uGe = "{", hGe = "[", fGe = "\u298B", dGe = "\u298F", pGe = "\u298D", gGe = "\u013D", mGe = "\u013E", vGe = "\u013B", yGe = "\u013C", bGe = "\u2308", xGe = "{", wGe = "\u041B", OGe = "\u043B", kGe = "\u2936", SGe = "\u201C", TGe = "\u201E", CGe = "\u2967", EGe = "\u294B", _Ge = "\u21B2", AGe = "\u2264", LGe = "\u2266", RGe = "\u27E8", MGe = "\u21E4", DGe = "\u2190", PGe = "\u2190", NGe = "\u21D0", IGe = "\u21C6", $Ge = "\u21A2", BGe = "\u2308", FGe = "\u27E6", zGe = "\u2961", QGe = "\u2959", UGe = "\u21C3", VGe = "\u230A", qGe = "\u21BD", YGe = "\u21BC", WGe = "\u21C7", GGe = "\u2194", XGe = "\u2194", HGe = "\u21D4", ZGe = "\u21C6", jGe = "\u21CB", KGe = "\u21AD", JGe = "\u294E", eXe = "\u21A4", tXe = "\u22A3", rXe = "\u295A", nXe = "\u22CB", iXe = "\u29CF", sXe = "\u22B2", aXe = "\u22B4", oXe = "\u2951", lXe = "\u2960", cXe = "\u2958", uXe = "\u21BF", hXe = "\u2952", fXe = "\u21BC", dXe = "\u2A8B", pXe = "\u22DA", gXe = "\u2264", mXe = "\u2266", vXe = "\u2A7D", yXe = "\u2AA8", bXe = "\u2A7D", xXe = "\u2A7F", wXe = "\u2A81", OXe = "\u2A83", kXe = "\u22DA\uFE00", SXe = "\u2A93", TXe = "\u2A85", CXe = "\u22D6", EXe = "\u22DA", _Xe = "\u2A8B", AXe = "\u22DA", LXe = "\u2266", RXe = "\u2276", MXe = "\u2276", DXe = "\u2AA1", PXe = "\u2272", NXe = "\u2A7D", IXe = "\u2272", $Xe = "\u297C", BXe = "\u230A", FXe = "\u{1D50F}", zXe = "\u{1D529}", QXe = "\u2276", UXe = "\u2A91", VXe = "\u2962", qXe = "\u21BD", YXe = "\u21BC", WXe = "\u296A", GXe = "\u2584", XXe = "\u0409", HXe = "\u0459", ZXe = "\u21C7", jXe = "\u226A", KXe = "\u22D8", JXe = "\u231E", eHe = "\u21DA", tHe = "\u296B", rHe = "\u25FA", nHe = "\u013F", iHe = "\u0140", sHe = "\u23B0", aHe = "\u23B0", oHe = "\u2A89", lHe = "\u2A89", cHe = "\u2A87", uHe = "\u2268", hHe = "\u2A87", fHe = "\u2268", dHe = "\u22E6", pHe = "\u27EC", gHe = "\u21FD", mHe = "\u27E6", vHe = "\u27F5", yHe = "\u27F5", bHe = "\u27F8", xHe = "\u27F7", wHe = "\u27F7", OHe = "\u27FA", kHe = "\u27FC", SHe = "\u27F6", THe = "\u27F6", CHe = "\u27F9", EHe = "\u21AB", _He = "\u21AC", AHe = "\u2985", LHe = "\u{1D543}", RHe = "\u{1D55D}", MHe = "\u2A2D", DHe = "\u2A34", PHe = "\u2217", NHe = "_", IHe = "\u2199", $He = "\u2198", BHe = "\u25CA", FHe = "\u25CA", zHe = "\u29EB", QHe = "(", UHe = "\u2993", VHe = "\u21C6", qHe = "\u231F", YHe = "\u21CB", WHe = "\u296D", GHe = "\u200E", XHe = "\u22BF", HHe = "\u2039", ZHe = "\u{1D4C1}", jHe = "\u2112", KHe = "\u21B0", JHe = "\u21B0", eZe = "\u2272", tZe = "\u2A8D", rZe = "\u2A8F", nZe = "[", iZe = "\u2018", sZe = "\u201A", aZe = "\u0141", oZe = "\u0142", lZe = "\u2AA6", cZe = "\u2A79", uZe = "<", hZe = "<", fZe = "\u226A", dZe = "\u22D6", pZe = "\u22CB", gZe = "\u22C9", mZe = "\u2976", vZe = "\u2A7B", yZe = "\u25C3", bZe = "\u22B4", xZe = "\u25C2", wZe = "\u2996", OZe = "\u294A", kZe = "\u2966", SZe = "\u2268\uFE00", TZe = "\u2268\uFE00", CZe = "\xAF", EZe = "\u2642", _Ze = "\u2720", AZe = "\u2720", LZe = "\u21A6", RZe = "\u21A6", MZe = "\u21A7", DZe = "\u21A4", PZe = "\u21A5", NZe = "\u25AE", IZe = "\u2A29", $Ze = "\u041C", BZe = "\u043C", FZe = "\u2014", zZe = "\u223A", QZe = "\u2221", UZe = "\u205F", VZe = "\u2133", qZe = "\u{1D510}", YZe = "\u{1D52A}", WZe = "\u2127", GZe = "\xB5", XZe = "*", HZe = "\u2AF0", ZZe = "\u2223", jZe = "\xB7", KZe = "\u229F", JZe = "\u2212", eje = "\u2238", tje = "\u2A2A", rje = "\u2213", nje = "\u2ADB", ije = "\u2026", sje = "\u2213", aje = "\u22A7", oje = "\u{1D544}", lje = "\u{1D55E}", cje = "\u2213", uje = "\u{1D4C2}", hje = "\u2133", fje = "\u223E", dje = "\u039C", pje = "\u03BC", gje = "\u22B8", mje = "\u22B8", vje = "\u2207", yje = "\u0143", bje = "\u0144", xje = "\u2220\u20D2", wje = "\u2249", Oje = "\u2A70\u0338", kje = "\u224B\u0338", Sje = "\u0149", Tje = "\u2249", Cje = "\u266E", Eje = "\u2115", _je = "\u266E", Aje = "\xA0", Lje = "\u224E\u0338", Rje = "\u224F\u0338", Mje = "\u2A43", Dje = "\u0147", Pje = "\u0148", Nje = "\u0145", Ije = "\u0146", $je = "\u2247", Bje = "\u2A6D\u0338", Fje = "\u2A42", zje = "\u041D", Qje = "\u043D", Uje = "\u2013", Vje = "\u2924", qje = "\u2197", Yje = "\u21D7", Wje = "\u2197", Gje = "\u2260", Xje = "\u2250\u0338", Hje = "\u200B", Zje = "\u200B", jje = "\u200B", Kje = "\u200B", Jje = "\u2262", eKe = "\u2928", tKe = "\u2242\u0338", rKe = "\u226B", nKe = "\u226A", iKe = ` -`, sKe = "\u2204", aKe = "\u2204", oKe = "\u{1D511}", lKe = "\u{1D52B}", cKe = "\u2267\u0338", uKe = "\u2271", hKe = "\u2271", fKe = "\u2267\u0338", dKe = "\u2A7E\u0338", pKe = "\u2A7E\u0338", gKe = "\u22D9\u0338", mKe = "\u2275", vKe = "\u226B\u20D2", yKe = "\u226F", bKe = "\u226F", xKe = "\u226B\u0338", wKe = "\u21AE", OKe = "\u21CE", kKe = "\u2AF2", SKe = "\u220B", TKe = "\u22FC", CKe = "\u22FA", EKe = "\u220B", _Ke = "\u040A", AKe = "\u045A", LKe = "\u219A", RKe = "\u21CD", MKe = "\u2025", DKe = "\u2266\u0338", PKe = "\u2270", NKe = "\u219A", IKe = "\u21CD", $Ke = "\u21AE", BKe = "\u21CE", FKe = "\u2270", zKe = "\u2266\u0338", QKe = "\u2A7D\u0338", UKe = "\u2A7D\u0338", VKe = "\u226E", qKe = "\u22D8\u0338", YKe = "\u2274", WKe = "\u226A\u20D2", GKe = "\u226E", XKe = "\u22EA", HKe = "\u22EC", ZKe = "\u226A\u0338", jKe = "\u2224", KKe = "\u2060", JKe = "\xA0", eJe = "\u{1D55F}", tJe = "\u2115", rJe = "\u2AEC", nJe = "\xAC", iJe = "\u2262", sJe = "\u226D", aJe = "\u2226", oJe = "\u2209", lJe = "\u2260", cJe = "\u2242\u0338", uJe = "\u2204", hJe = "\u226F", fJe = "\u2271", dJe = "\u2267\u0338", pJe = "\u226B\u0338", gJe = "\u2279", mJe = "\u2A7E\u0338", vJe = "\u2275", yJe = "\u224E\u0338", bJe = "\u224F\u0338", xJe = "\u2209", wJe = "\u22F5\u0338", OJe = "\u22F9\u0338", kJe = "\u2209", SJe = "\u22F7", TJe = "\u22F6", CJe = "\u29CF\u0338", EJe = "\u22EA", _Je = "\u22EC", AJe = "\u226E", LJe = "\u2270", RJe = "\u2278", MJe = "\u226A\u0338", DJe = "\u2A7D\u0338", PJe = "\u2274", NJe = "\u2AA2\u0338", IJe = "\u2AA1\u0338", $Je = "\u220C", BJe = "\u220C", FJe = "\u22FE", zJe = "\u22FD", QJe = "\u2280", UJe = "\u2AAF\u0338", VJe = "\u22E0", qJe = "\u220C", YJe = "\u29D0\u0338", WJe = "\u22EB", GJe = "\u22ED", XJe = "\u228F\u0338", HJe = "\u22E2", ZJe = "\u2290\u0338", jJe = "\u22E3", KJe = "\u2282\u20D2", JJe = "\u2288", eet = "\u2281", tet = "\u2AB0\u0338", ret = "\u22E1", net = "\u227F\u0338", iet = "\u2283\u20D2", set = "\u2289", aet = "\u2241", oet = "\u2244", cet = "\u2247", uet = "\u2249", het = "\u2224", fet = "\u2226", det = "\u2226", pet = "\u2AFD\u20E5", get = "\u2202\u0338", met = "\u2A14", vet = "\u2280", yet = "\u22E0", bet = "\u2280", xet = "\u2AAF\u0338", wet = "\u2AAF\u0338", Oet = "\u2933\u0338", ket = "\u219B", Tet = "\u21CF", Cet = "\u219D\u0338", Eet = "\u219B", _et = "\u21CF", Aet = "\u22EB", Let = "\u22ED", Ret = "\u2281", Met = "\u22E1", Det = "\u2AB0\u0338", Pet = "\u{1D4A9}", Net = "\u{1D4C3}", Iet = "\u2224", $et = "\u2226", Bet = "\u2241", Fet = "\u2244", zet = "\u2244", Qet = "\u2224", Uet = "\u2226", Vet = "\u22E2", qet = "\u22E3", Yet = "\u2284", Wet = "\u2AC5\u0338", Get = "\u2288", Xet = "\u2282\u20D2", Het = "\u2288", Zet = "\u2AC5\u0338", jet = "\u2281", Ket = "\u2AB0\u0338", Jet = "\u2285", ett = "\u2AC6\u0338", ttt = "\u2289", rtt = "\u2283\u20D2", ntt = "\u2289", itt = "\u2AC6\u0338", stt = "\u2279", att = "\xD1", ott = "\xF1", ltt = "\u2278", ctt = "\u22EA", utt = "\u22EC", htt = "\u22EB", ftt = "\u22ED", dtt = "\u039D", ptt = "\u03BD", gtt = "#", mtt = "\u2116", vtt = "\u2007", ytt = "\u224D\u20D2", btt = "\u22AC", xtt = "\u22AD", wtt = "\u22AE", Ott = "\u22AF", ktt = "\u2265\u20D2", Stt = ">\u20D2", Ttt = "\u2904", Ctt = "\u29DE", Ett = "\u2902", _tt = "\u2264\u20D2", Att = "<\u20D2", Ltt = "\u22B4\u20D2", Rtt = "\u2903", Mtt = "\u22B5\u20D2", Dtt = "\u223C\u20D2", Ptt = "\u2923", Ntt = "\u2196", Itt = "\u21D6", $tt = "\u2196", Btt = "\u2927", Ftt = "\xD3", ztt = "\xF3", Qtt = "\u229B", Utt = "\xD4", Vtt = "\xF4", qtt = "\u229A", Ytt = "\u041E", Wtt = "\u043E", Gtt = "\u229D", Xtt = "\u0150", Htt = "\u0151", Ztt = "\u2A38", jtt = "\u2299", Ktt = "\u29BC", Jtt = "\u0152", ert = "\u0153", trt = "\u29BF", rrt = "\u{1D512}", nrt = "\u{1D52C}", irt = "\u02DB", srt = "\xD2", art = "\xF2", ort = "\u29C1", lrt = "\u29B5", crt = "\u03A9", urt = "\u222E", hrt = "\u21BA", frt = "\u29BE", drt = "\u29BB", prt = "\u203E", grt = "\u29C0", mrt = "\u014C", vrt = "\u014D", yrt = "\u03A9", brt = "\u03C9", xrt = "\u039F", wrt = "\u03BF", Ort = "\u29B6", krt = "\u2296", Srt = "\u{1D546}", Trt = "\u{1D560}", Crt = "\u29B7", Ert = "\u201C", _rt = "\u2018", Art = "\u29B9", Lrt = "\u2295", Rrt = "\u21BB", Mrt = "\u2A54", Drt = "\u2228", Prt = "\u2A5D", Nrt = "\u2134", Irt = "\u2134", $rt = "\xAA", Brt = "\xBA", Frt = "\u22B6", zrt = "\u2A56", Qrt = "\u2A57", Urt = "\u2A5B", Vrt = "\u24C8", qrt = "\u{1D4AA}", Yrt = "\u2134", Wrt = "\xD8", Grt = "\xF8", Xrt = "\u2298", Hrt = "\xD5", Zrt = "\xF5", jrt = "\u2A36", Krt = "\u2A37", Jrt = "\u2297", ent = "\xD6", tnt = "\xF6", rnt = "\u233D", nnt = "\u203E", int = "\u23DE", snt = "\u23B4", ant = "\u23DC", ont = "\xB6", lnt = "\u2225", cnt = "\u2225", unt = "\u2AF3", hnt = "\u2AFD", fnt = "\u2202", dnt = "\u2202", pnt = "\u041F", gnt = "\u043F", mnt = "%", vnt = ".", ynt = "\u2030", bnt = "\u22A5", xnt = "\u2031", wnt = "\u{1D513}", Ont = "\u{1D52D}", knt = "\u03A6", Snt = "\u03C6", Tnt = "\u03D5", Cnt = "\u2133", Ent = "\u260E", _nt = "\u03A0", Ant = "\u03C0", Lnt = "\u22D4", Rnt = "\u03D6", Mnt = "\u210F", Dnt = "\u210E", Pnt = "\u210F", Nnt = "\u2A23", Int = "\u229E", $nt = "\u2A22", Bnt = "+", Fnt = "\u2214", znt = "\u2A25", Qnt = "\u2A72", Unt = "\xB1", Vnt = "\xB1", qnt = "\u2A26", Ynt = "\u2A27", Wnt = "\xB1", Gnt = "\u210C", Xnt = "\u2A15", Hnt = "\u{1D561}", Znt = "\u2119", jnt = "\xA3", Knt = "\u2AB7", Jnt = "\u2ABB", eit = "\u227A", tit = "\u227C", rit = "\u2AB7", nit = "\u227A", iit = "\u227C", sit = "\u227A", ait = "\u2AAF", oit = "\u227C", lit = "\u227E", cit = "\u2AAF", uit = "\u2AB9", hit = "\u2AB5", fit = "\u22E8", dit = "\u2AAF", pit = "\u2AB3", git = "\u227E", mit = "\u2032", vit = "\u2033", yit = "\u2119", bit = "\u2AB9", xit = "\u2AB5", wit = "\u22E8", Oit = "\u220F", kit = "\u220F", Sit = "\u232E", Tit = "\u2312", Cit = "\u2313", Eit = "\u221D", _it = "\u221D", Ait = "\u2237", Lit = "\u221D", Rit = "\u227E", Mit = "\u22B0", Dit = "\u{1D4AB}", Pit = "\u{1D4C5}", Nit = "\u03A8", Iit = "\u03C8", $it = "\u2008", Bit = "\u{1D514}", Fit = "\u{1D52E}", zit = "\u2A0C", Qit = "\u{1D562}", Uit = "\u211A", Vit = "\u2057", qit = "\u{1D4AC}", Yit = "\u{1D4C6}", Wit = "\u210D", Git = "\u2A16", Xit = "?", Hit = "\u225F", Zit = '"', jit = '"', Kit = "\u21DB", Jit = "\u223D\u0331", est = "\u0154", tst = "\u0155", rst = "\u221A", nst = "\u29B3", ist = "\u27E9", sst = "\u27EB", ast = "\u2992", ost = "\u29A5", lst = "\u27E9", cst = "\xBB", ust = "\u2975", hst = "\u21E5", fst = "\u2920", dst = "\u2933", pst = "\u2192", gst = "\u21A0", mst = "\u21D2", vst = "\u291E", yst = "\u21AA", bst = "\u21AC", xst = "\u2945", wst = "\u2974", Ost = "\u2916", kst = "\u21A3", Sst = "\u219D", Tst = "\u291A", Cst = "\u291C", Est = "\u2236", _st = "\u211A", Ast = "\u290D", Lst = "\u290F", Rst = "\u2910", Mst = "\u2773", Dst = "}", Pst = "]", Nst = "\u298C", Ist = "\u298E", $st = "\u2990", Bst = "\u0158", Fst = "\u0159", zst = "\u0156", Qst = "\u0157", Ust = "\u2309", Vst = "}", qst = "\u0420", Yst = "\u0440", Wst = "\u2937", Gst = "\u2969", Xst = "\u201D", Hst = "\u201D", Zst = "\u21B3", jst = "\u211C", Kst = "\u211B", Jst = "\u211C", eat = "\u211D", tat = "\u211C", rat = "\u25AD", nat = "\xAE", iat = "\xAE", sat = "\u220B", aat = "\u21CB", oat = "\u296F", lat = "\u297D", cat = "\u230B", uat = "\u{1D52F}", hat = "\u211C", fat = "\u2964", dat = "\u21C1", pat = "\u21C0", gat = "\u296C", mat = "\u03A1", vat = "\u03C1", yat = "\u03F1", bat = "\u27E9", xat = "\u21E5", wat = "\u2192", Oat = "\u2192", kat = "\u21D2", Sat = "\u21C4", Tat = "\u21A3", Cat = "\u2309", Eat = "\u27E7", _at = "\u295D", Aat = "\u2955", Lat = "\u21C2", Rat = "\u230B", Mat = "\u21C1", Dat = "\u21C0", Pat = "\u21C4", Nat = "\u21CC", Iat = "\u21C9", $at = "\u219D", Bat = "\u21A6", Fat = "\u22A2", zat = "\u295B", Qat = "\u22CC", Uat = "\u29D0", Vat = "\u22B3", qat = "\u22B5", Yat = "\u294F", Wat = "\u295C", Gat = "\u2954", Xat = "\u21BE", Hat = "\u2953", Zat = "\u21C0", jat = "\u02DA", Kat = "\u2253", Jat = "\u21C4", eot = "\u21CC", tot = "\u200F", rot = "\u23B1", not = "\u23B1", iot = "\u2AEE", sot = "\u27ED", aot = "\u21FE", oot = "\u27E7", lot = "\u2986", cot = "\u{1D563}", uot = "\u211D", hot = "\u2A2E", fot = "\u2A35", dot = "\u2970", pot = ")", got = "\u2994", mot = "\u2A12", vot = "\u21C9", yot = "\u21DB", bot = "\u203A", xot = "\u{1D4C7}", wot = "\u211B", Oot = "\u21B1", kot = "\u21B1", Sot = "]", Tot = "\u2019", Cot = "\u2019", Eot = "\u22CC", _ot = "\u22CA", Aot = "\u25B9", Lot = "\u22B5", Rot = "\u25B8", Mot = "\u29CE", Dot = "\u29F4", Pot = "\u2968", Not = "\u211E", Iot = "\u015A", $ot = "\u015B", Bot = "\u201A", Fot = "\u2AB8", zot = "\u0160", Qot = "\u0161", Uot = "\u2ABC", Vot = "\u227B", qot = "\u227D", Yot = "\u2AB0", Wot = "\u2AB4", Got = "\u015E", Xot = "\u015F", Hot = "\u015C", Zot = "\u015D", jot = "\u2ABA", Kot = "\u2AB6", Jot = "\u22E9", elt = "\u2A13", tlt = "\u227F", rlt = "\u0421", nlt = "\u0441", ilt = "\u22A1", slt = "\u22C5", alt = "\u2A66", olt = "\u2925", llt = "\u2198", clt = "\u21D8", ult = "\u2198", hlt = "\xA7", flt = ";", dlt = "\u2929", plt = "\u2216", glt = "\u2216", mlt = "\u2736", vlt = "\u{1D516}", ylt = "\u{1D530}", blt = "\u2322", xlt = "\u266F", wlt = "\u0429", Olt = "\u0449", klt = "\u0428", Slt = "\u0448", Tlt = "\u2193", Clt = "\u2190", Elt = "\u2223", _lt = "\u2225", Alt = "\u2192", Llt = "\u2191", Rlt = "\xAD", Mlt = "\u03A3", Dlt = "\u03C3", Plt = "\u03C2", Nlt = "\u03C2", Ilt = "\u223C", $lt = "\u2A6A", Blt = "\u2243", Flt = "\u2243", zlt = "\u2A9E", Qlt = "\u2AA0", Ult = "\u2A9D", Vlt = "\u2A9F", qlt = "\u2246", Ylt = "\u2A24", Wlt = "\u2972", Glt = "\u2190", Xlt = "\u2218", Hlt = "\u2216", Zlt = "\u2A33", jlt = "\u29E4", Klt = "\u2223", Jlt = "\u2323", ect = "\u2AAA", tct = "\u2AAC", rct = "\u2AAC\uFE00", nct = "\u042C", ict = "\u044C", sct = "\u233F", act = "\u29C4", oct = "/", lct = "\u{1D54A}", cct = "\u{1D564}", uct = "\u2660", hct = "\u2660", fct = "\u2225", dct = "\u2293", pct = "\u2293\uFE00", gct = "\u2294", mct = "\u2294\uFE00", vct = "\u221A", yct = "\u228F", bct = "\u2291", xct = "\u228F", wct = "\u2291", Oct = "\u2290", kct = "\u2292", Sct = "\u2290", Tct = "\u2292", Cct = "\u25A1", Ect = "\u25A1", _ct = "\u2293", Act = "\u228F", Lct = "\u2291", Rct = "\u2290", Mct = "\u2292", Dct = "\u2294", Pct = "\u25AA", Nct = "\u25A1", Ict = "\u25AA", $ct = "\u2192", Bct = "\u{1D4AE}", Fct = "\u{1D4C8}", zct = "\u2216", Qct = "\u2323", Uct = "\u22C6", Vct = "\u22C6", qct = "\u2606", Yct = "\u2605", Wct = "\u03F5", Gct = "\u03D5", Xct = "\xAF", Hct = "\u2282", Zct = "\u22D0", jct = "\u2ABD", Kct = "\u2AC5", Jct = "\u2286", eut = "\u2AC3", tut = "\u2AC1", rut = "\u2ACB", nut = "\u228A", iut = "\u2ABF", sut = "\u2979", aut = "\u2282", out = "\u22D0", lut = "\u2286", cut = "\u2AC5", uut = "\u2286", hut = "\u228A", fut = "\u2ACB", dut = "\u2AC7", put = "\u2AD5", gut = "\u2AD3", mut = "\u2AB8", vut = "\u227B", yut = "\u227D", but = "\u227B", xut = "\u2AB0", wut = "\u227D", Out = "\u227F", kut = "\u2AB0", Sut = "\u2ABA", Tut = "\u2AB6", Cut = "\u22E9", Eut = "\u227F", _ut = "\u220B", Aut = "\u2211", Lut = "\u2211", Rut = "\u266A", Mut = "\xB9", Dut = "\xB2", Put = "\xB3", Nut = "\u2283", Iut = "\u22D1", $ut = "\u2ABE", But = "\u2AD8", Fut = "\u2AC6", zut = "\u2287", Qut = "\u2AC4", Uut = "\u2283", Vut = "\u2287", qut = "\u27C9", Yut = "\u2AD7", Wut = "\u297B", Gut = "\u2AC2", Xut = "\u2ACC", Hut = "\u228B", Zut = "\u2AC0", jut = "\u2283", Kut = "\u22D1", Jut = "\u2287", eht = "\u2AC6", tht = "\u228B", rht = "\u2ACC", nht = "\u2AC8", iht = "\u2AD4", sht = "\u2AD6", aht = "\u2926", oht = "\u2199", lht = "\u21D9", cht = "\u2199", uht = "\u292A", hht = "\xDF", fht = " ", dht = "\u2316", pht = "\u03A4", ght = "\u03C4", mht = "\u23B4", vht = "\u0164", yht = "\u0165", bht = "\u0162", xht = "\u0163", wht = "\u0422", Oht = "\u0442", kht = "\u20DB", Sht = "\u2315", Tht = "\u{1D517}", Cht = "\u{1D531}", Eht = "\u2234", _ht = "\u2234", Aht = "\u2234", Lht = "\u0398", Rht = "\u03B8", Mht = "\u03D1", Dht = "\u03D1", Pht = "\u2248", Nht = "\u223C", Iht = "\u205F\u200A", $ht = "\u2009", Bht = "\u2009", Fht = "\u2248", zht = "\u223C", Qht = "\xDE", Uht = "\xFE", Vht = "\u02DC", qht = "\u223C", Yht = "\u2243", Wht = "\u2245", Ght = "\u2248", Xht = "\u2A31", Hht = "\u22A0", Zht = "\xD7", jht = "\u2A30", Kht = "\u222D", Jht = "\u2928", eft = "\u2336", tft = "\u2AF1", rft = "\u22A4", nft = "\u{1D54B}", ift = "\u{1D565}", sft = "\u2ADA", aft = "\u2929", oft = "\u2034", lft = "\u2122", cft = "\u2122", uft = "\u25B5", hft = "\u25BF", fft = "\u25C3", dft = "\u22B4", pft = "\u225C", gft = "\u25B9", mft = "\u22B5", vft = "\u25EC", yft = "\u225C", bft = "\u2A3A", xft = "\u20DB", wft = "\u2A39", Oft = "\u29CD", kft = "\u2A3B", Sft = "\u23E2", Tft = "\u{1D4AF}", Cft = "\u{1D4C9}", Eft = "\u0426", _ft = "\u0446", Aft = "\u040B", Lft = "\u045B", Rft = "\u0166", Mft = "\u0167", Dft = "\u226C", Pft = "\u219E", Nft = "\u21A0", Ift = "\xDA", $ft = "\xFA", Bft = "\u2191", Fft = "\u219F", zft = "\u21D1", Qft = "\u2949", Uft = "\u040E", Vft = "\u045E", qft = "\u016C", Yft = "\u016D", Wft = "\xDB", Gft = "\xFB", Xft = "\u0423", Hft = "\u0443", Zft = "\u21C5", jft = "\u0170", Kft = "\u0171", Jft = "\u296E", edt = "\u297E", tdt = "\u{1D518}", rdt = "\u{1D532}", ndt = "\xD9", idt = "\xF9", sdt = "\u2963", adt = "\u21BF", odt = "\u21BE", ldt = "\u2580", cdt = "\u231C", udt = "\u231C", hdt = "\u230F", fdt = "\u25F8", ddt = "\u016A", pdt = "\u016B", gdt = "\xA8", mdt = "_", vdt = "\u23DF", ydt = "\u23B5", bdt = "\u23DD", xdt = "\u22C3", wdt = "\u228E", Odt = "\u0172", kdt = "\u0173", Sdt = "\u{1D54C}", Tdt = "\u{1D566}", Cdt = "\u2912", Edt = "\u2191", _dt = "\u2191", Adt = "\u21D1", Ldt = "\u21C5", Rdt = "\u2195", Mdt = "\u2195", Ddt = "\u21D5", Pdt = "\u296E", Ndt = "\u21BF", Idt = "\u21BE", $dt = "\u228E", Bdt = "\u2196", Fdt = "\u2197", zdt = "\u03C5", Qdt = "\u03D2", Udt = "\u03D2", Vdt = "\u03A5", qdt = "\u03C5", Ydt = "\u21A5", Wdt = "\u22A5", Gdt = "\u21C8", Xdt = "\u231D", Hdt = "\u231D", Zdt = "\u230E", jdt = "\u016E", Kdt = "\u016F", Jdt = "\u25F9", e0t = "\u{1D4B0}", t0t = "\u{1D4CA}", r0t = "\u22F0", n0t = "\u0168", i0t = "\u0169", s0t = "\u25B5", a0t = "\u25B4", o0t = "\u21C8", l0t = "\xDC", c0t = "\xFC", u0t = "\u29A7", h0t = "\u299C", f0t = "\u03F5", d0t = "\u03F0", p0t = "\u2205", g0t = "\u03D5", m0t = "\u03D6", v0t = "\u221D", y0t = "\u2195", b0t = "\u21D5", x0t = "\u03F1", w0t = "\u03C2", O0t = "\u228A\uFE00", k0t = "\u2ACB\uFE00", S0t = "\u228B\uFE00", T0t = "\u2ACC\uFE00", C0t = "\u03D1", E0t = "\u22B2", _0t = "\u22B3", A0t = "\u2AE8", L0t = "\u2AEB", R0t = "\u2AE9", M0t = "\u0412", D0t = "\u0432", P0t = "\u22A2", N0t = "\u22A8", I0t = "\u22A9", $0t = "\u22AB", B0t = "\u2AE6", F0t = "\u22BB", z0t = "\u2228", Q0t = "\u22C1", U0t = "\u225A", V0t = "\u22EE", q0t = "|", Y0t = "\u2016", W0t = "|", G0t = "\u2016", X0t = "\u2223", H0t = "|", Z0t = "\u2758", j0t = "\u2240", K0t = "\u200A", J0t = "\u{1D519}", ept = "\u{1D533}", tpt = "\u22B2", rpt = "\u2282\u20D2", npt = "\u2283\u20D2", ipt = "\u{1D54D}", spt = "\u{1D567}", apt = "\u221D", opt = "\u22B3", lpt = "\u{1D4B1}", cpt = "\u{1D4CB}", upt = "\u2ACB\uFE00", hpt = "\u228A\uFE00", fpt = "\u2ACC\uFE00", dpt = "\u228B\uFE00", ppt = "\u22AA", gpt = "\u299A", mpt = "\u0174", vpt = "\u0175", ypt = "\u2A5F", bpt = "\u2227", xpt = "\u22C0", wpt = "\u2259", Opt = "\u2118", kpt = "\u{1D51A}", Spt = "\u{1D534}", Tpt = "\u{1D54E}", Cpt = "\u{1D568}", Ept = "\u2118", _pt = "\u2240", Apt = "\u2240", Lpt = "\u{1D4B2}", Rpt = "\u{1D4CC}", Mpt = "\u22C2", Dpt = "\u25EF", Ppt = "\u22C3", Npt = "\u25BD", Ipt = "\u{1D51B}", $pt = "\u{1D535}", Bpt = "\u27F7", Fpt = "\u27FA", zpt = "\u039E", Qpt = "\u03BE", Upt = "\u27F5", Vpt = "\u27F8", qpt = "\u27FC", Ypt = "\u22FB", Wpt = "\u2A00", Gpt = "\u{1D54F}", Xpt = "\u{1D569}", Hpt = "\u2A01", Zpt = "\u2A02", jpt = "\u27F6", Kpt = "\u27F9", Jpt = "\u{1D4B3}", egt = "\u{1D4CD}", tgt = "\u2A06", rgt = "\u2A04", ngt = "\u25B3", igt = "\u22C1", sgt = "\u22C0", agt = "\xDD", ogt = "\xFD", lgt = "\u042F", cgt = "\u044F", ugt = "\u0176", hgt = "\u0177", fgt = "\u042B", dgt = "\u044B", pgt = "\xA5", ggt = "\u{1D51C}", mgt = "\u{1D536}", vgt = "\u0407", ygt = "\u0457", bgt = "\u{1D550}", xgt = "\u{1D56A}", wgt = "\u{1D4B4}", Ogt = "\u{1D4CE}", kgt = "\u042E", Sgt = "\u044E", Tgt = "\xFF", Cgt = "\u0178", Egt = "\u0179", _gt = "\u017A", Agt = "\u017D", Lgt = "\u017E", Rgt = "\u0417", Mgt = "\u0437", Dgt = "\u017B", Pgt = "\u017C", Ngt = "\u2128", Igt = "\u200B", $gt = "\u0396", Bgt = "\u03B6", Fgt = "\u{1D537}", zgt = "\u2128", Qgt = "\u0416", Ugt = "\u0436", Vgt = "\u21DD", qgt = "\u{1D56B}", Ygt = "\u2124", Wgt = "\u{1D4B5}", Ggt = "\u{1D4CF}", Xgt = "\u200D", Hgt = "\u200C", Zgt = { - Aacute: RRe, - aacute: MRe, - Abreve: DRe, - abreve: PRe, - ac: NRe, - acd: IRe, - acE: $Re, - Acirc: BRe, - acirc: FRe, - acute: zRe, - Acy: QRe, - acy: URe, - AElig: VRe, - aelig: qRe, - af: YRe, - Afr: WRe, - afr: GRe, - Agrave: XRe, - agrave: HRe, - alefsym: ZRe, - aleph: jRe, - Alpha: KRe, - alpha: JRe, - Amacr: eMe, - amacr: tMe, - amalg: rMe, - amp: nMe, - AMP: iMe, - andand: sMe, - And: aMe, - and: oMe, - andd: lMe, - andslope: cMe, - andv: uMe, - ang: hMe, - ange: fMe, - angle: dMe, - angmsdaa: pMe, - angmsdab: gMe, - angmsdac: mMe, - angmsdad: vMe, - angmsdae: yMe, - angmsdaf: bMe, - angmsdag: xMe, - angmsdah: wMe, - angmsd: OMe, - angrt: kMe, - angrtvb: SMe, - angrtvbd: TMe, - angsph: CMe, - angst: EMe, - angzarr: _Me, - Aogon: AMe, - aogon: LMe, - Aopf: RMe, - aopf: MMe, - apacir: DMe, - ap: PMe, - apE: NMe, - ape: IMe, - apid: $Me, - apos: BMe, - ApplyFunction: FMe, - approx: zMe, - approxeq: QMe, - Aring: UMe, - aring: VMe, - Ascr: qMe, - ascr: YMe, - Assign: WMe, - ast: GMe, - asymp: XMe, - asympeq: HMe, - Atilde: ZMe, - atilde: jMe, - Auml: KMe, - auml: JMe, - awconint: eDe, - awint: tDe, - backcong: rDe, - backepsilon: nDe, - backprime: iDe, - backsim: sDe, - backsimeq: aDe, - Backslash: oDe, - Barv: lDe, - barvee: cDe, - barwed: uDe, - Barwed: hDe, - barwedge: fDe, - bbrk: dDe, - bbrktbrk: pDe, - bcong: gDe, - Bcy: mDe, - bcy: vDe, - bdquo: yDe, - becaus: bDe, - because: xDe, - Because: wDe, - bemptyv: ODe, - bepsi: kDe, - bernou: SDe, - Bernoullis: TDe, - Beta: CDe, - beta: EDe, - beth: _De, - between: ADe, - Bfr: LDe, - bfr: RDe, - bigcap: MDe, - bigcirc: DDe, - bigcup: PDe, - bigodot: NDe, - bigoplus: IDe, - bigotimes: $De, - bigsqcup: BDe, - bigstar: FDe, - bigtriangledown: zDe, - bigtriangleup: QDe, - biguplus: UDe, - bigvee: VDe, - bigwedge: qDe, - bkarow: YDe, - blacklozenge: WDe, - blacksquare: GDe, - blacktriangle: XDe, - blacktriangledown: HDe, - blacktriangleleft: ZDe, - blacktriangleright: jDe, - blank: KDe, - blk12: JDe, - blk14: ePe, - blk34: tPe, - block: rPe, - bne: nPe, - bnequiv: iPe, - bNot: sPe, - bnot: aPe, - Bopf: oPe, - bopf: lPe, - bot: cPe, - bottom: uPe, - bowtie: hPe, - boxbox: fPe, - boxdl: dPe, - boxdL: pPe, - boxDl: gPe, - boxDL: mPe, - boxdr: vPe, - boxdR: yPe, - boxDr: bPe, - boxDR: xPe, - boxh: wPe, - boxH: OPe, - boxhd: kPe, - boxHd: SPe, - boxhD: TPe, - boxHD: CPe, - boxhu: EPe, - boxHu: _Pe, - boxhU: APe, - boxHU: LPe, - boxminus: RPe, - boxplus: MPe, - boxtimes: DPe, - boxul: PPe, - boxuL: NPe, - boxUl: IPe, - boxUL: $Pe, - boxur: BPe, - boxuR: FPe, - boxUr: zPe, - boxUR: QPe, - boxv: UPe, - boxV: VPe, - boxvh: qPe, - boxvH: YPe, - boxVh: WPe, - boxVH: GPe, - boxvl: XPe, - boxvL: HPe, - boxVl: ZPe, - boxVL: jPe, - boxvr: KPe, - boxvR: JPe, - boxVr: eNe, - boxVR: tNe, - bprime: rNe, - breve: nNe, - Breve: iNe, - brvbar: sNe, - bscr: aNe, - Bscr: oNe, - bsemi: lNe, - bsim: cNe, - bsime: uNe, - bsolb: hNe, - bsol: fNe, - bsolhsub: dNe, - bull: pNe, - bullet: gNe, - bump: mNe, - bumpE: vNe, - bumpe: yNe, - Bumpeq: bNe, - bumpeq: xNe, - Cacute: wNe, - cacute: ONe, - capand: kNe, - capbrcup: SNe, - capcap: TNe, - cap: CNe, - Cap: ENe, - capcup: _Ne, - capdot: ANe, - CapitalDifferentialD: LNe, - caps: RNe, - caret: MNe, - caron: DNe, - Cayleys: PNe, - ccaps: NNe, - Ccaron: INe, - ccaron: $Ne, - Ccedil: BNe, - ccedil: FNe, - Ccirc: zNe, - ccirc: QNe, - Cconint: UNe, - ccups: VNe, - ccupssm: qNe, - Cdot: YNe, - cdot: WNe, - cedil: GNe, - Cedilla: XNe, - cemptyv: HNe, - cent: ZNe, - centerdot: jNe, - CenterDot: KNe, - cfr: JNe, - Cfr: eIe, - CHcy: tIe, - chcy: rIe, - check: nIe, - checkmark: iIe, - Chi: sIe, - chi: aIe, - circ: oIe, - circeq: lIe, - circlearrowleft: cIe, - circlearrowright: uIe, - circledast: hIe, - circledcirc: fIe, - circleddash: dIe, - CircleDot: pIe, - circledR: gIe, - circledS: mIe, - CircleMinus: vIe, - CirclePlus: yIe, - CircleTimes: bIe, - cir: xIe, - cirE: wIe, - cire: OIe, - cirfnint: kIe, - cirmid: SIe, - cirscir: TIe, - ClockwiseContourIntegral: CIe, - CloseCurlyDoubleQuote: EIe, - CloseCurlyQuote: _Ie, - clubs: AIe, - clubsuit: LIe, - colon: RIe, - Colon: MIe, - Colone: DIe, - colone: PIe, - coloneq: NIe, - comma: IIe, - commat: $Ie, - comp: BIe, - compfn: FIe, - complement: zIe, - complexes: QIe, - cong: UIe, - congdot: VIe, - Congruent: qIe, - conint: YIe, - Conint: WIe, - ContourIntegral: GIe, - copf: XIe, - Copf: HIe, - coprod: ZIe, - Coproduct: jIe, - copy: KIe, - COPY: JIe, - copysr: e$e, - CounterClockwiseContourIntegral: t$e, - crarr: r$e, - cross: n$e, - Cross: i$e, - Cscr: s$e, - cscr: a$e, - csub: o$e, - csube: l$e, - csup: c$e, - csupe: u$e, - ctdot: h$e, - cudarrl: f$e, - cudarrr: d$e, - cuepr: p$e, - cuesc: g$e, - cularr: m$e, - cularrp: v$e, - cupbrcap: y$e, - cupcap: b$e, - CupCap: x$e, - cup: w$e, - Cup: O$e, - cupcup: k$e, - cupdot: S$e, - cupor: T$e, - cups: C$e, - curarr: E$e, - curarrm: _$e, - curlyeqprec: A$e, - curlyeqsucc: L$e, - curlyvee: R$e, - curlywedge: M$e, - curren: D$e, - curvearrowleft: P$e, - curvearrowright: N$e, - cuvee: I$e, - cuwed: $$e, - cwconint: B$e, - cwint: F$e, - cylcty: z$e, - dagger: Q$e, - Dagger: U$e, - daleth: V$e, - darr: q$e, - Darr: Y$e, - dArr: W$e, - dash: G$e, - Dashv: X$e, - dashv: H$e, - dbkarow: Z$e, - dblac: j$e, - Dcaron: K$e, - dcaron: J$e, - Dcy: eBe, - dcy: tBe, - ddagger: rBe, - ddarr: nBe, - DD: iBe, - dd: sBe, - DDotrahd: aBe, - ddotseq: oBe, - deg: lBe, - Del: cBe, - Delta: uBe, - delta: hBe, - demptyv: fBe, - dfisht: dBe, - Dfr: pBe, - dfr: gBe, - dHar: mBe, - dharl: vBe, - dharr: yBe, - DiacriticalAcute: bBe, - DiacriticalDot: xBe, - DiacriticalDoubleAcute: wBe, - DiacriticalGrave: OBe, - DiacriticalTilde: kBe, - diam: SBe, - diamond: TBe, - Diamond: CBe, - diamondsuit: EBe, - diams: _Be, - die: ABe, - DifferentialD: LBe, - digamma: RBe, - disin: MBe, - div: DBe, - divide: PBe, - divideontimes: NBe, - divonx: IBe, - DJcy: $Be, - djcy: BBe, - dlcorn: FBe, - dlcrop: zBe, - dollar: QBe, - Dopf: UBe, - dopf: VBe, - Dot: qBe, - dot: YBe, - DotDot: WBe, - doteq: GBe, - doteqdot: XBe, - DotEqual: HBe, - dotminus: ZBe, - dotplus: jBe, - dotsquare: KBe, - doublebarwedge: JBe, - DoubleContourIntegral: eFe, - DoubleDot: tFe, - DoubleDownArrow: rFe, - DoubleLeftArrow: nFe, - DoubleLeftRightArrow: iFe, - DoubleLeftTee: sFe, - DoubleLongLeftArrow: aFe, - DoubleLongLeftRightArrow: oFe, - DoubleLongRightArrow: lFe, - DoubleRightArrow: cFe, - DoubleRightTee: uFe, - DoubleUpArrow: hFe, - DoubleUpDownArrow: fFe, - DoubleVerticalBar: dFe, - DownArrowBar: pFe, - downarrow: gFe, - DownArrow: mFe, - Downarrow: vFe, - DownArrowUpArrow: yFe, - DownBreve: bFe, - downdownarrows: xFe, - downharpoonleft: wFe, - downharpoonright: OFe, - DownLeftRightVector: kFe, - DownLeftTeeVector: SFe, - DownLeftVectorBar: TFe, - DownLeftVector: CFe, - DownRightTeeVector: EFe, - DownRightVectorBar: _Fe, - DownRightVector: AFe, - DownTeeArrow: LFe, - DownTee: RFe, - drbkarow: MFe, - drcorn: DFe, - drcrop: PFe, - Dscr: NFe, - dscr: IFe, - DScy: $Fe, - dscy: BFe, - dsol: FFe, - Dstrok: zFe, - dstrok: QFe, - dtdot: UFe, - dtri: VFe, - dtrif: qFe, - duarr: YFe, - duhar: WFe, - dwangle: GFe, - DZcy: XFe, - dzcy: HFe, - dzigrarr: ZFe, - Eacute: jFe, - eacute: KFe, - easter: JFe, - Ecaron: eze, - ecaron: tze, - Ecirc: rze, - ecirc: nze, - ecir: ize, - ecolon: sze, - Ecy: aze, - ecy: oze, - eDDot: lze, - Edot: cze, - edot: uze, - eDot: hze, - ee: fze, - efDot: dze, - Efr: pze, - efr: gze, - eg: mze, - Egrave: vze, - egrave: yze, - egs: bze, - egsdot: xze, - el: wze, - Element: Oze, - elinters: kze, - ell: Sze, - els: Tze, - elsdot: Cze, - Emacr: Eze, - emacr: _ze, - empty: Aze, - emptyset: Lze, - EmptySmallSquare: Rze, - emptyv: Mze, - EmptyVerySmallSquare: Dze, - emsp13: Pze, - emsp14: Nze, - emsp: Ize, - ENG: $ze, - eng: Bze, - ensp: Fze, - Eogon: zze, - eogon: Qze, - Eopf: Uze, - eopf: Vze, - epar: qze, - eparsl: Yze, - eplus: Wze, - epsi: Gze, - Epsilon: Xze, - epsilon: Hze, - epsiv: Zze, - eqcirc: jze, - eqcolon: Kze, - eqsim: Jze, - eqslantgtr: eQe, - eqslantless: tQe, - Equal: rQe, - equals: nQe, - EqualTilde: iQe, - equest: sQe, - Equilibrium: aQe, - equiv: oQe, - equivDD: lQe, - eqvparsl: cQe, - erarr: uQe, - erDot: hQe, - escr: fQe, - Escr: dQe, - esdot: pQe, - Esim: gQe, - esim: mQe, - Eta: vQe, - eta: yQe, - ETH: bQe, - eth: xQe, - Euml: wQe, - euml: OQe, - euro: kQe, - excl: SQe, - exist: TQe, - Exists: CQe, - expectation: EQe, - exponentiale: _Qe, - ExponentialE: AQe, - fallingdotseq: LQe, - Fcy: RQe, - fcy: MQe, - female: DQe, - ffilig: PQe, - fflig: NQe, - ffllig: IQe, - Ffr: $Qe, - ffr: BQe, - filig: FQe, - FilledSmallSquare: zQe, - FilledVerySmallSquare: QQe, - fjlig: UQe, - flat: VQe, - fllig: qQe, - fltns: YQe, - fnof: WQe, - Fopf: GQe, - fopf: XQe, - forall: HQe, - ForAll: ZQe, - fork: jQe, - forkv: KQe, - Fouriertrf: JQe, - fpartint: eUe, - frac12: tUe, - frac13: rUe, - frac14: nUe, - frac15: iUe, - frac16: sUe, - frac18: aUe, - frac23: oUe, - frac25: lUe, - frac34: cUe, - frac35: uUe, - frac38: hUe, - frac45: fUe, - frac56: dUe, - frac58: pUe, - frac78: gUe, - frasl: mUe, - frown: vUe, - fscr: yUe, - Fscr: bUe, - gacute: xUe, - Gamma: wUe, - gamma: OUe, - Gammad: kUe, - gammad: SUe, - gap: TUe, - Gbreve: CUe, - gbreve: EUe, - Gcedil: _Ue, - Gcirc: AUe, - gcirc: LUe, - Gcy: RUe, - gcy: MUe, - Gdot: DUe, - gdot: PUe, - ge: NUe, - gE: IUe, - gEl: $Ue, - gel: BUe, - geq: FUe, - geqq: zUe, - geqslant: QUe, - gescc: UUe, - ges: VUe, - gesdot: qUe, - gesdoto: YUe, - gesdotol: WUe, - gesl: GUe, - gesles: XUe, - Gfr: HUe, - gfr: ZUe, - gg: jUe, - Gg: KUe, - ggg: JUe, - gimel: eVe, - GJcy: tVe, - gjcy: rVe, - gla: nVe, - gl: iVe, - glE: sVe, - glj: aVe, - gnap: oVe, - gnapprox: lVe, - gne: cVe, - gnE: uVe, - gneq: hVe, - gneqq: fVe, - gnsim: dVe, - Gopf: pVe, - gopf: gVe, - grave: mVe, - GreaterEqual: vVe, - GreaterEqualLess: yVe, - GreaterFullEqual: bVe, - GreaterGreater: xVe, - GreaterLess: wVe, - GreaterSlantEqual: OVe, - GreaterTilde: kVe, - Gscr: SVe, - gscr: TVe, - gsim: CVe, - gsime: EVe, - gsiml: _Ve, - gtcc: AVe, - gtcir: LVe, - gt: RVe, - GT: MVe, - Gt: DVe, - gtdot: PVe, - gtlPar: NVe, - gtquest: IVe, - gtrapprox: $Ve, - gtrarr: BVe, - gtrdot: FVe, - gtreqless: zVe, - gtreqqless: QVe, - gtrless: UVe, - gtrsim: VVe, - gvertneqq: qVe, - gvnE: YVe, - Hacek: WVe, - hairsp: GVe, - half: XVe, - hamilt: HVe, - HARDcy: ZVe, - hardcy: jVe, - harrcir: KVe, - harr: JVe, - hArr: eqe, - harrw: tqe, - Hat: rqe, - hbar: nqe, - Hcirc: iqe, - hcirc: sqe, - hearts: aqe, - heartsuit: oqe, - hellip: lqe, - hercon: cqe, - hfr: uqe, - Hfr: hqe, - HilbertSpace: fqe, - hksearow: dqe, - hkswarow: pqe, - hoarr: gqe, - homtht: mqe, - hookleftarrow: vqe, - hookrightarrow: yqe, - hopf: bqe, - Hopf: xqe, - horbar: wqe, - HorizontalLine: Oqe, - hscr: kqe, - Hscr: Sqe, - hslash: Tqe, - Hstrok: Cqe, - hstrok: Eqe, - HumpDownHump: _qe, - HumpEqual: Aqe, - hybull: Lqe, - hyphen: Rqe, - Iacute: Mqe, - iacute: Dqe, - ic: Pqe, - Icirc: Nqe, - icirc: Iqe, - Icy: $qe, - icy: Bqe, - Idot: Fqe, - IEcy: zqe, - iecy: Qqe, - iexcl: Uqe, - iff: Vqe, - ifr: qqe, - Ifr: Yqe, - Igrave: Wqe, - igrave: Gqe, - ii: Xqe, - iiiint: Hqe, - iiint: Zqe, - iinfin: jqe, - iiota: Kqe, - IJlig: Jqe, - ijlig: eYe, - Imacr: tYe, - imacr: rYe, - image: nYe, - ImaginaryI: iYe, - imagline: sYe, - imagpart: aYe, - imath: oYe, - Im: lYe, - imof: cYe, - imped: uYe, - Implies: hYe, - incare: fYe, +const MRe = "\xC1", DRe = "\xE1", PRe = "\u0102", NRe = "\u0103", IRe = "\u223E", $Re = "\u223F", BRe = "\u223E\u0333", FRe = "\xC2", zRe = "\xE2", QRe = "\xB4", URe = "\u0410", VRe = "\u0430", qRe = "\xC6", YRe = "\xE6", WRe = "\u2061", GRe = "\u{1D504}", XRe = "\u{1D51E}", HRe = "\xC0", ZRe = "\xE0", jRe = "\u2135", KRe = "\u2135", JRe = "\u0391", eMe = "\u03B1", tMe = "\u0100", rMe = "\u0101", nMe = "\u2A3F", iMe = "&", sMe = "&", aMe = "\u2A55", oMe = "\u2A53", lMe = "\u2227", cMe = "\u2A5C", uMe = "\u2A58", hMe = "\u2A5A", fMe = "\u2220", dMe = "\u29A4", pMe = "\u2220", gMe = "\u29A8", mMe = "\u29A9", vMe = "\u29AA", yMe = "\u29AB", bMe = "\u29AC", xMe = "\u29AD", wMe = "\u29AE", OMe = "\u29AF", kMe = "\u2221", SMe = "\u221F", TMe = "\u22BE", CMe = "\u299D", EMe = "\u2222", _Me = "\xC5", AMe = "\u237C", LMe = "\u0104", RMe = "\u0105", MMe = "\u{1D538}", DMe = "\u{1D552}", PMe = "\u2A6F", NMe = "\u2248", IMe = "\u2A70", $Me = "\u224A", BMe = "\u224B", FMe = "'", zMe = "\u2061", QMe = "\u2248", UMe = "\u224A", VMe = "\xC5", qMe = "\xE5", YMe = "\u{1D49C}", WMe = "\u{1D4B6}", GMe = "\u2254", XMe = "*", HMe = "\u2248", ZMe = "\u224D", jMe = "\xC3", KMe = "\xE3", JMe = "\xC4", eDe = "\xE4", tDe = "\u2233", rDe = "\u2A11", nDe = "\u224C", iDe = "\u03F6", sDe = "\u2035", aDe = "\u223D", oDe = "\u22CD", lDe = "\u2216", cDe = "\u2AE7", uDe = "\u22BD", hDe = "\u2305", fDe = "\u2306", dDe = "\u2305", pDe = "\u23B5", gDe = "\u23B6", mDe = "\u224C", vDe = "\u0411", yDe = "\u0431", bDe = "\u201E", xDe = "\u2235", wDe = "\u2235", ODe = "\u2235", kDe = "\u29B0", SDe = "\u03F6", TDe = "\u212C", CDe = "\u212C", EDe = "\u0392", _De = "\u03B2", ADe = "\u2136", LDe = "\u226C", RDe = "\u{1D505}", MDe = "\u{1D51F}", DDe = "\u22C2", PDe = "\u25EF", NDe = "\u22C3", IDe = "\u2A00", $De = "\u2A01", BDe = "\u2A02", FDe = "\u2A06", zDe = "\u2605", QDe = "\u25BD", UDe = "\u25B3", VDe = "\u2A04", qDe = "\u22C1", YDe = "\u22C0", WDe = "\u290D", GDe = "\u29EB", XDe = "\u25AA", HDe = "\u25B4", ZDe = "\u25BE", jDe = "\u25C2", KDe = "\u25B8", JDe = "\u2423", ePe = "\u2592", tPe = "\u2591", rPe = "\u2593", nPe = "\u2588", iPe = "=\u20E5", sPe = "\u2261\u20E5", aPe = "\u2AED", oPe = "\u2310", lPe = "\u{1D539}", cPe = "\u{1D553}", uPe = "\u22A5", hPe = "\u22A5", fPe = "\u22C8", dPe = "\u29C9", pPe = "\u2510", gPe = "\u2555", mPe = "\u2556", vPe = "\u2557", yPe = "\u250C", bPe = "\u2552", xPe = "\u2553", wPe = "\u2554", OPe = "\u2500", kPe = "\u2550", SPe = "\u252C", TPe = "\u2564", CPe = "\u2565", EPe = "\u2566", _Pe = "\u2534", APe = "\u2567", LPe = "\u2568", RPe = "\u2569", MPe = "\u229F", DPe = "\u229E", PPe = "\u22A0", NPe = "\u2518", IPe = "\u255B", $Pe = "\u255C", BPe = "\u255D", FPe = "\u2514", zPe = "\u2558", QPe = "\u2559", UPe = "\u255A", VPe = "\u2502", qPe = "\u2551", YPe = "\u253C", WPe = "\u256A", GPe = "\u256B", XPe = "\u256C", HPe = "\u2524", ZPe = "\u2561", jPe = "\u2562", KPe = "\u2563", JPe = "\u251C", eNe = "\u255E", tNe = "\u255F", rNe = "\u2560", nNe = "\u2035", iNe = "\u02D8", sNe = "\u02D8", aNe = "\xA6", oNe = "\u{1D4B7}", lNe = "\u212C", cNe = "\u204F", uNe = "\u223D", hNe = "\u22CD", fNe = "\u29C5", dNe = "\\", pNe = "\u27C8", gNe = "\u2022", mNe = "\u2022", vNe = "\u224E", yNe = "\u2AAE", bNe = "\u224F", xNe = "\u224E", wNe = "\u224F", ONe = "\u0106", kNe = "\u0107", SNe = "\u2A44", TNe = "\u2A49", CNe = "\u2A4B", ENe = "\u2229", _Ne = "\u22D2", ANe = "\u2A47", LNe = "\u2A40", RNe = "\u2145", MNe = "\u2229\uFE00", DNe = "\u2041", PNe = "\u02C7", NNe = "\u212D", INe = "\u2A4D", $Ne = "\u010C", BNe = "\u010D", FNe = "\xC7", zNe = "\xE7", QNe = "\u0108", UNe = "\u0109", VNe = "\u2230", qNe = "\u2A4C", YNe = "\u2A50", WNe = "\u010A", GNe = "\u010B", XNe = "\xB8", HNe = "\xB8", ZNe = "\u29B2", jNe = "\xA2", KNe = "\xB7", JNe = "\xB7", eIe = "\u{1D520}", tIe = "\u212D", rIe = "\u0427", nIe = "\u0447", iIe = "\u2713", sIe = "\u2713", aIe = "\u03A7", oIe = "\u03C7", lIe = "\u02C6", cIe = "\u2257", uIe = "\u21BA", hIe = "\u21BB", fIe = "\u229B", dIe = "\u229A", pIe = "\u229D", gIe = "\u2299", mIe = "\xAE", vIe = "\u24C8", yIe = "\u2296", bIe = "\u2295", xIe = "\u2297", wIe = "\u25CB", OIe = "\u29C3", kIe = "\u2257", SIe = "\u2A10", TIe = "\u2AEF", CIe = "\u29C2", EIe = "\u2232", _Ie = "\u201D", AIe = "\u2019", LIe = "\u2663", RIe = "\u2663", MIe = ":", DIe = "\u2237", PIe = "\u2A74", NIe = "\u2254", IIe = "\u2254", $Ie = ",", BIe = "@", FIe = "\u2201", zIe = "\u2218", QIe = "\u2201", UIe = "\u2102", VIe = "\u2245", qIe = "\u2A6D", YIe = "\u2261", WIe = "\u222E", GIe = "\u222F", XIe = "\u222E", HIe = "\u{1D554}", ZIe = "\u2102", jIe = "\u2210", KIe = "\u2210", JIe = "\xA9", e$e = "\xA9", t$e = "\u2117", r$e = "\u2233", n$e = "\u21B5", i$e = "\u2717", s$e = "\u2A2F", a$e = "\u{1D49E}", o$e = "\u{1D4B8}", l$e = "\u2ACF", c$e = "\u2AD1", u$e = "\u2AD0", h$e = "\u2AD2", f$e = "\u22EF", d$e = "\u2938", p$e = "\u2935", g$e = "\u22DE", m$e = "\u22DF", v$e = "\u21B6", y$e = "\u293D", b$e = "\u2A48", x$e = "\u2A46", w$e = "\u224D", O$e = "\u222A", k$e = "\u22D3", S$e = "\u2A4A", T$e = "\u228D", C$e = "\u2A45", E$e = "\u222A\uFE00", _$e = "\u21B7", A$e = "\u293C", L$e = "\u22DE", R$e = "\u22DF", M$e = "\u22CE", D$e = "\u22CF", P$e = "\xA4", N$e = "\u21B6", I$e = "\u21B7", $$e = "\u22CE", B$e = "\u22CF", F$e = "\u2232", z$e = "\u2231", Q$e = "\u232D", U$e = "\u2020", V$e = "\u2021", q$e = "\u2138", Y$e = "\u2193", W$e = "\u21A1", G$e = "\u21D3", X$e = "\u2010", H$e = "\u2AE4", Z$e = "\u22A3", j$e = "\u290F", K$e = "\u02DD", J$e = "\u010E", eBe = "\u010F", tBe = "\u0414", rBe = "\u0434", nBe = "\u2021", iBe = "\u21CA", sBe = "\u2145", aBe = "\u2146", oBe = "\u2911", lBe = "\u2A77", cBe = "\xB0", uBe = "\u2207", hBe = "\u0394", fBe = "\u03B4", dBe = "\u29B1", pBe = "\u297F", gBe = "\u{1D507}", mBe = "\u{1D521}", vBe = "\u2965", yBe = "\u21C3", bBe = "\u21C2", xBe = "\xB4", wBe = "\u02D9", OBe = "\u02DD", kBe = "`", SBe = "\u02DC", TBe = "\u22C4", CBe = "\u22C4", EBe = "\u22C4", _Be = "\u2666", ABe = "\u2666", LBe = "\xA8", RBe = "\u2146", MBe = "\u03DD", DBe = "\u22F2", PBe = "\xF7", NBe = "\xF7", IBe = "\u22C7", $Be = "\u22C7", BBe = "\u0402", FBe = "\u0452", zBe = "\u231E", QBe = "\u230D", UBe = "$", VBe = "\u{1D53B}", qBe = "\u{1D555}", YBe = "\xA8", WBe = "\u02D9", GBe = "\u20DC", XBe = "\u2250", HBe = "\u2251", ZBe = "\u2250", jBe = "\u2238", KBe = "\u2214", JBe = "\u22A1", eFe = "\u2306", tFe = "\u222F", rFe = "\xA8", nFe = "\u21D3", iFe = "\u21D0", sFe = "\u21D4", aFe = "\u2AE4", oFe = "\u27F8", lFe = "\u27FA", cFe = "\u27F9", uFe = "\u21D2", hFe = "\u22A8", fFe = "\u21D1", dFe = "\u21D5", pFe = "\u2225", gFe = "\u2913", mFe = "\u2193", vFe = "\u2193", yFe = "\u21D3", bFe = "\u21F5", xFe = "\u0311", wFe = "\u21CA", OFe = "\u21C3", kFe = "\u21C2", SFe = "\u2950", TFe = "\u295E", CFe = "\u2956", EFe = "\u21BD", _Fe = "\u295F", AFe = "\u2957", LFe = "\u21C1", RFe = "\u21A7", MFe = "\u22A4", DFe = "\u2910", PFe = "\u231F", NFe = "\u230C", IFe = "\u{1D49F}", $Fe = "\u{1D4B9}", BFe = "\u0405", FFe = "\u0455", zFe = "\u29F6", QFe = "\u0110", UFe = "\u0111", VFe = "\u22F1", qFe = "\u25BF", YFe = "\u25BE", WFe = "\u21F5", GFe = "\u296F", XFe = "\u29A6", HFe = "\u040F", ZFe = "\u045F", jFe = "\u27FF", KFe = "\xC9", JFe = "\xE9", eze = "\u2A6E", tze = "\u011A", rze = "\u011B", nze = "\xCA", ize = "\xEA", sze = "\u2256", aze = "\u2255", oze = "\u042D", lze = "\u044D", cze = "\u2A77", uze = "\u0116", hze = "\u0117", fze = "\u2251", dze = "\u2147", pze = "\u2252", gze = "\u{1D508}", mze = "\u{1D522}", vze = "\u2A9A", yze = "\xC8", bze = "\xE8", xze = "\u2A96", wze = "\u2A98", Oze = "\u2A99", kze = "\u2208", Sze = "\u23E7", Tze = "\u2113", Cze = "\u2A95", Eze = "\u2A97", _ze = "\u0112", Aze = "\u0113", Lze = "\u2205", Rze = "\u2205", Mze = "\u25FB", Dze = "\u2205", Pze = "\u25AB", Nze = "\u2004", Ize = "\u2005", $ze = "\u2003", Bze = "\u014A", Fze = "\u014B", zze = "\u2002", Qze = "\u0118", Uze = "\u0119", Vze = "\u{1D53C}", qze = "\u{1D556}", Yze = "\u22D5", Wze = "\u29E3", Gze = "\u2A71", Xze = "\u03B5", Hze = "\u0395", Zze = "\u03B5", jze = "\u03F5", Kze = "\u2256", Jze = "\u2255", eQe = "\u2242", tQe = "\u2A96", rQe = "\u2A95", nQe = "\u2A75", iQe = "=", sQe = "\u2242", aQe = "\u225F", oQe = "\u21CC", lQe = "\u2261", cQe = "\u2A78", uQe = "\u29E5", hQe = "\u2971", fQe = "\u2253", dQe = "\u212F", pQe = "\u2130", gQe = "\u2250", mQe = "\u2A73", vQe = "\u2242", yQe = "\u0397", bQe = "\u03B7", xQe = "\xD0", wQe = "\xF0", OQe = "\xCB", kQe = "\xEB", SQe = "\u20AC", TQe = "!", CQe = "\u2203", EQe = "\u2203", _Qe = "\u2130", AQe = "\u2147", LQe = "\u2147", RQe = "\u2252", MQe = "\u0424", DQe = "\u0444", PQe = "\u2640", NQe = "\uFB03", IQe = "\uFB00", $Qe = "\uFB04", BQe = "\u{1D509}", FQe = "\u{1D523}", zQe = "\uFB01", QQe = "\u25FC", UQe = "\u25AA", VQe = "fj", qQe = "\u266D", YQe = "\uFB02", WQe = "\u25B1", GQe = "\u0192", XQe = "\u{1D53D}", HQe = "\u{1D557}", ZQe = "\u2200", jQe = "\u2200", KQe = "\u22D4", JQe = "\u2AD9", eUe = "\u2131", tUe = "\u2A0D", rUe = "\xBD", nUe = "\u2153", iUe = "\xBC", sUe = "\u2155", aUe = "\u2159", oUe = "\u215B", lUe = "\u2154", cUe = "\u2156", uUe = "\xBE", hUe = "\u2157", fUe = "\u215C", dUe = "\u2158", pUe = "\u215A", gUe = "\u215D", mUe = "\u215E", vUe = "\u2044", yUe = "\u2322", bUe = "\u{1D4BB}", xUe = "\u2131", wUe = "\u01F5", OUe = "\u0393", kUe = "\u03B3", SUe = "\u03DC", TUe = "\u03DD", CUe = "\u2A86", EUe = "\u011E", _Ue = "\u011F", AUe = "\u0122", LUe = "\u011C", RUe = "\u011D", MUe = "\u0413", DUe = "\u0433", PUe = "\u0120", NUe = "\u0121", IUe = "\u2265", $Ue = "\u2267", BUe = "\u2A8C", FUe = "\u22DB", zUe = "\u2265", QUe = "\u2267", UUe = "\u2A7E", VUe = "\u2AA9", qUe = "\u2A7E", YUe = "\u2A80", WUe = "\u2A82", GUe = "\u2A84", XUe = "\u22DB\uFE00", HUe = "\u2A94", ZUe = "\u{1D50A}", jUe = "\u{1D524}", KUe = "\u226B", JUe = "\u22D9", eVe = "\u22D9", tVe = "\u2137", rVe = "\u0403", nVe = "\u0453", iVe = "\u2AA5", sVe = "\u2277", aVe = "\u2A92", oVe = "\u2AA4", lVe = "\u2A8A", cVe = "\u2A8A", uVe = "\u2A88", hVe = "\u2269", fVe = "\u2A88", dVe = "\u2269", pVe = "\u22E7", gVe = "\u{1D53E}", mVe = "\u{1D558}", vVe = "`", yVe = "\u2265", bVe = "\u22DB", xVe = "\u2267", wVe = "\u2AA2", OVe = "\u2277", kVe = "\u2A7E", SVe = "\u2273", TVe = "\u{1D4A2}", CVe = "\u210A", EVe = "\u2273", _Ve = "\u2A8E", AVe = "\u2A90", LVe = "\u2AA7", RVe = "\u2A7A", MVe = ">", DVe = ">", PVe = "\u226B", NVe = "\u22D7", IVe = "\u2995", $Ve = "\u2A7C", BVe = "\u2A86", FVe = "\u2978", zVe = "\u22D7", QVe = "\u22DB", UVe = "\u2A8C", VVe = "\u2277", qVe = "\u2273", YVe = "\u2269\uFE00", WVe = "\u2269\uFE00", GVe = "\u02C7", XVe = "\u200A", HVe = "\xBD", ZVe = "\u210B", jVe = "\u042A", KVe = "\u044A", JVe = "\u2948", eqe = "\u2194", tqe = "\u21D4", rqe = "\u21AD", nqe = "^", iqe = "\u210F", sqe = "\u0124", aqe = "\u0125", oqe = "\u2665", lqe = "\u2665", cqe = "\u2026", uqe = "\u22B9", hqe = "\u{1D525}", fqe = "\u210C", dqe = "\u210B", pqe = "\u2925", gqe = "\u2926", mqe = "\u21FF", vqe = "\u223B", yqe = "\u21A9", bqe = "\u21AA", xqe = "\u{1D559}", wqe = "\u210D", Oqe = "\u2015", kqe = "\u2500", Sqe = "\u{1D4BD}", Tqe = "\u210B", Cqe = "\u210F", Eqe = "\u0126", _qe = "\u0127", Aqe = "\u224E", Lqe = "\u224F", Rqe = "\u2043", Mqe = "\u2010", Dqe = "\xCD", Pqe = "\xED", Nqe = "\u2063", Iqe = "\xCE", $qe = "\xEE", Bqe = "\u0418", Fqe = "\u0438", zqe = "\u0130", Qqe = "\u0415", Uqe = "\u0435", Vqe = "\xA1", qqe = "\u21D4", Yqe = "\u{1D526}", Wqe = "\u2111", Gqe = "\xCC", Xqe = "\xEC", Hqe = "\u2148", Zqe = "\u2A0C", jqe = "\u222D", Kqe = "\u29DC", Jqe = "\u2129", eYe = "\u0132", tYe = "\u0133", rYe = "\u012A", nYe = "\u012B", iYe = "\u2111", sYe = "\u2148", aYe = "\u2110", oYe = "\u2111", lYe = "\u0131", cYe = "\u2111", uYe = "\u22B7", hYe = "\u01B5", fYe = "\u21D2", dYe = "\u2105", pYe = "\u221E", gYe = "\u29DD", mYe = "\u0131", vYe = "\u22BA", yYe = "\u222B", bYe = "\u222C", xYe = "\u2124", wYe = "\u222B", OYe = "\u22BA", kYe = "\u22C2", SYe = "\u2A17", TYe = "\u2A3C", CYe = "\u2063", EYe = "\u2062", _Ye = "\u0401", AYe = "\u0451", LYe = "\u012E", RYe = "\u012F", MYe = "\u{1D540}", DYe = "\u{1D55A}", PYe = "\u0399", NYe = "\u03B9", IYe = "\u2A3C", $Ye = "\xBF", BYe = "\u{1D4BE}", FYe = "\u2110", zYe = "\u2208", QYe = "\u22F5", UYe = "\u22F9", VYe = "\u22F4", qYe = "\u22F3", YYe = "\u2208", WYe = "\u2062", GYe = "\u0128", XYe = "\u0129", HYe = "\u0406", ZYe = "\u0456", jYe = "\xCF", KYe = "\xEF", JYe = "\u0134", eWe = "\u0135", tWe = "\u0419", rWe = "\u0439", nWe = "\u{1D50D}", iWe = "\u{1D527}", sWe = "\u0237", aWe = "\u{1D541}", oWe = "\u{1D55B}", lWe = "\u{1D4A5}", cWe = "\u{1D4BF}", uWe = "\u0408", hWe = "\u0458", fWe = "\u0404", dWe = "\u0454", pWe = "\u039A", gWe = "\u03BA", mWe = "\u03F0", vWe = "\u0136", yWe = "\u0137", bWe = "\u041A", xWe = "\u043A", wWe = "\u{1D50E}", OWe = "\u{1D528}", kWe = "\u0138", SWe = "\u0425", TWe = "\u0445", CWe = "\u040C", EWe = "\u045C", _We = "\u{1D542}", AWe = "\u{1D55C}", LWe = "\u{1D4A6}", RWe = "\u{1D4C0}", MWe = "\u21DA", DWe = "\u0139", PWe = "\u013A", NWe = "\u29B4", IWe = "\u2112", $We = "\u039B", BWe = "\u03BB", FWe = "\u27E8", zWe = "\u27EA", QWe = "\u2991", UWe = "\u27E8", VWe = "\u2A85", qWe = "\u2112", YWe = "\xAB", WWe = "\u21E4", GWe = "\u291F", XWe = "\u2190", HWe = "\u219E", ZWe = "\u21D0", jWe = "\u291D", KWe = "\u21A9", JWe = "\u21AB", eGe = "\u2939", tGe = "\u2973", rGe = "\u21A2", nGe = "\u2919", iGe = "\u291B", sGe = "\u2AAB", aGe = "\u2AAD", oGe = "\u2AAD\uFE00", lGe = "\u290C", cGe = "\u290E", uGe = "\u2772", hGe = "{", fGe = "[", dGe = "\u298B", pGe = "\u298F", gGe = "\u298D", mGe = "\u013D", vGe = "\u013E", yGe = "\u013B", bGe = "\u013C", xGe = "\u2308", wGe = "{", OGe = "\u041B", kGe = "\u043B", SGe = "\u2936", TGe = "\u201C", CGe = "\u201E", EGe = "\u2967", _Ge = "\u294B", AGe = "\u21B2", LGe = "\u2264", RGe = "\u2266", MGe = "\u27E8", DGe = "\u21E4", PGe = "\u2190", NGe = "\u2190", IGe = "\u21D0", $Ge = "\u21C6", BGe = "\u21A2", FGe = "\u2308", zGe = "\u27E6", QGe = "\u2961", UGe = "\u2959", VGe = "\u21C3", qGe = "\u230A", YGe = "\u21BD", WGe = "\u21BC", GGe = "\u21C7", XGe = "\u2194", HGe = "\u2194", ZGe = "\u21D4", jGe = "\u21C6", KGe = "\u21CB", JGe = "\u21AD", eXe = "\u294E", tXe = "\u21A4", rXe = "\u22A3", nXe = "\u295A", iXe = "\u22CB", sXe = "\u29CF", aXe = "\u22B2", oXe = "\u22B4", lXe = "\u2951", cXe = "\u2960", uXe = "\u2958", hXe = "\u21BF", fXe = "\u2952", dXe = "\u21BC", pXe = "\u2A8B", gXe = "\u22DA", mXe = "\u2264", vXe = "\u2266", yXe = "\u2A7D", bXe = "\u2AA8", xXe = "\u2A7D", wXe = "\u2A7F", OXe = "\u2A81", kXe = "\u2A83", SXe = "\u22DA\uFE00", TXe = "\u2A93", CXe = "\u2A85", EXe = "\u22D6", _Xe = "\u22DA", AXe = "\u2A8B", LXe = "\u22DA", RXe = "\u2266", MXe = "\u2276", DXe = "\u2276", PXe = "\u2AA1", NXe = "\u2272", IXe = "\u2A7D", $Xe = "\u2272", BXe = "\u297C", FXe = "\u230A", zXe = "\u{1D50F}", QXe = "\u{1D529}", UXe = "\u2276", VXe = "\u2A91", qXe = "\u2962", YXe = "\u21BD", WXe = "\u21BC", GXe = "\u296A", XXe = "\u2584", HXe = "\u0409", ZXe = "\u0459", jXe = "\u21C7", KXe = "\u226A", JXe = "\u22D8", eHe = "\u231E", tHe = "\u21DA", rHe = "\u296B", nHe = "\u25FA", iHe = "\u013F", sHe = "\u0140", aHe = "\u23B0", oHe = "\u23B0", lHe = "\u2A89", cHe = "\u2A89", uHe = "\u2A87", hHe = "\u2268", fHe = "\u2A87", dHe = "\u2268", pHe = "\u22E6", gHe = "\u27EC", mHe = "\u21FD", vHe = "\u27E6", yHe = "\u27F5", bHe = "\u27F5", xHe = "\u27F8", wHe = "\u27F7", OHe = "\u27F7", kHe = "\u27FA", SHe = "\u27FC", THe = "\u27F6", CHe = "\u27F6", EHe = "\u27F9", _He = "\u21AB", AHe = "\u21AC", LHe = "\u2985", RHe = "\u{1D543}", MHe = "\u{1D55D}", DHe = "\u2A2D", PHe = "\u2A34", NHe = "\u2217", IHe = "_", $He = "\u2199", BHe = "\u2198", FHe = "\u25CA", zHe = "\u25CA", QHe = "\u29EB", UHe = "(", VHe = "\u2993", qHe = "\u21C6", YHe = "\u231F", WHe = "\u21CB", GHe = "\u296D", XHe = "\u200E", HHe = "\u22BF", ZHe = "\u2039", jHe = "\u{1D4C1}", KHe = "\u2112", JHe = "\u21B0", eZe = "\u21B0", tZe = "\u2272", rZe = "\u2A8D", nZe = "\u2A8F", iZe = "[", sZe = "\u2018", aZe = "\u201A", oZe = "\u0141", lZe = "\u0142", cZe = "\u2AA6", uZe = "\u2A79", hZe = "<", fZe = "<", dZe = "\u226A", pZe = "\u22D6", gZe = "\u22CB", mZe = "\u22C9", vZe = "\u2976", yZe = "\u2A7B", bZe = "\u25C3", xZe = "\u22B4", wZe = "\u25C2", OZe = "\u2996", kZe = "\u294A", SZe = "\u2966", TZe = "\u2268\uFE00", CZe = "\u2268\uFE00", EZe = "\xAF", _Ze = "\u2642", AZe = "\u2720", LZe = "\u2720", RZe = "\u21A6", MZe = "\u21A6", DZe = "\u21A7", PZe = "\u21A4", NZe = "\u21A5", IZe = "\u25AE", $Ze = "\u2A29", BZe = "\u041C", FZe = "\u043C", zZe = "\u2014", QZe = "\u223A", UZe = "\u2221", VZe = "\u205F", qZe = "\u2133", YZe = "\u{1D510}", WZe = "\u{1D52A}", GZe = "\u2127", XZe = "\xB5", HZe = "*", ZZe = "\u2AF0", jZe = "\u2223", KZe = "\xB7", JZe = "\u229F", eje = "\u2212", tje = "\u2238", rje = "\u2A2A", nje = "\u2213", ije = "\u2ADB", sje = "\u2026", aje = "\u2213", oje = "\u22A7", lje = "\u{1D544}", cje = "\u{1D55E}", uje = "\u2213", hje = "\u{1D4C2}", fje = "\u2133", dje = "\u223E", pje = "\u039C", gje = "\u03BC", mje = "\u22B8", vje = "\u22B8", yje = "\u2207", bje = "\u0143", xje = "\u0144", wje = "\u2220\u20D2", Oje = "\u2249", kje = "\u2A70\u0338", Sje = "\u224B\u0338", Tje = "\u0149", Cje = "\u2249", Eje = "\u266E", _je = "\u2115", Aje = "\u266E", Lje = "\xA0", Rje = "\u224E\u0338", Mje = "\u224F\u0338", Dje = "\u2A43", Pje = "\u0147", Nje = "\u0148", Ije = "\u0145", $je = "\u0146", Bje = "\u2247", Fje = "\u2A6D\u0338", zje = "\u2A42", Qje = "\u041D", Uje = "\u043D", Vje = "\u2013", qje = "\u2924", Yje = "\u2197", Wje = "\u21D7", Gje = "\u2197", Xje = "\u2260", Hje = "\u2250\u0338", Zje = "\u200B", jje = "\u200B", Kje = "\u200B", Jje = "\u200B", eKe = "\u2262", tKe = "\u2928", rKe = "\u2242\u0338", nKe = "\u226B", iKe = "\u226A", sKe = ` +`, aKe = "\u2204", oKe = "\u2204", lKe = "\u{1D511}", cKe = "\u{1D52B}", uKe = "\u2267\u0338", hKe = "\u2271", fKe = "\u2271", dKe = "\u2267\u0338", pKe = "\u2A7E\u0338", gKe = "\u2A7E\u0338", mKe = "\u22D9\u0338", vKe = "\u2275", yKe = "\u226B\u20D2", bKe = "\u226F", xKe = "\u226F", wKe = "\u226B\u0338", OKe = "\u21AE", kKe = "\u21CE", SKe = "\u2AF2", TKe = "\u220B", CKe = "\u22FC", EKe = "\u22FA", _Ke = "\u220B", AKe = "\u040A", LKe = "\u045A", RKe = "\u219A", MKe = "\u21CD", DKe = "\u2025", PKe = "\u2266\u0338", NKe = "\u2270", IKe = "\u219A", $Ke = "\u21CD", BKe = "\u21AE", FKe = "\u21CE", zKe = "\u2270", QKe = "\u2266\u0338", UKe = "\u2A7D\u0338", VKe = "\u2A7D\u0338", qKe = "\u226E", YKe = "\u22D8\u0338", WKe = "\u2274", GKe = "\u226A\u20D2", XKe = "\u226E", HKe = "\u22EA", ZKe = "\u22EC", jKe = "\u226A\u0338", KKe = "\u2224", JKe = "\u2060", eJe = "\xA0", tJe = "\u{1D55F}", rJe = "\u2115", nJe = "\u2AEC", iJe = "\xAC", sJe = "\u2262", aJe = "\u226D", oJe = "\u2226", lJe = "\u2209", cJe = "\u2260", uJe = "\u2242\u0338", hJe = "\u2204", fJe = "\u226F", dJe = "\u2271", pJe = "\u2267\u0338", gJe = "\u226B\u0338", mJe = "\u2279", vJe = "\u2A7E\u0338", yJe = "\u2275", bJe = "\u224E\u0338", xJe = "\u224F\u0338", wJe = "\u2209", OJe = "\u22F5\u0338", kJe = "\u22F9\u0338", SJe = "\u2209", TJe = "\u22F7", CJe = "\u22F6", EJe = "\u29CF\u0338", _Je = "\u22EA", AJe = "\u22EC", LJe = "\u226E", RJe = "\u2270", MJe = "\u2278", DJe = "\u226A\u0338", PJe = "\u2A7D\u0338", NJe = "\u2274", IJe = "\u2AA2\u0338", $Je = "\u2AA1\u0338", BJe = "\u220C", FJe = "\u220C", zJe = "\u22FE", QJe = "\u22FD", UJe = "\u2280", VJe = "\u2AAF\u0338", qJe = "\u22E0", YJe = "\u220C", WJe = "\u29D0\u0338", GJe = "\u22EB", XJe = "\u22ED", HJe = "\u228F\u0338", ZJe = "\u22E2", jJe = "\u2290\u0338", KJe = "\u22E3", JJe = "\u2282\u20D2", eet = "\u2288", tet = "\u2281", ret = "\u2AB0\u0338", net = "\u22E1", iet = "\u227F\u0338", set = "\u2283\u20D2", aet = "\u2289", oet = "\u2241", cet = "\u2244", uet = "\u2247", het = "\u2249", fet = "\u2224", det = "\u2226", pet = "\u2226", get = "\u2AFD\u20E5", met = "\u2202\u0338", vet = "\u2A14", yet = "\u2280", bet = "\u22E0", xet = "\u2280", wet = "\u2AAF\u0338", Oet = "\u2AAF\u0338", ket = "\u2933\u0338", Tet = "\u219B", Cet = "\u21CF", Eet = "\u219D\u0338", _et = "\u219B", Aet = "\u21CF", Let = "\u22EB", Ret = "\u22ED", Met = "\u2281", Det = "\u22E1", Pet = "\u2AB0\u0338", Net = "\u{1D4A9}", Iet = "\u{1D4C3}", $et = "\u2224", Bet = "\u2226", Fet = "\u2241", zet = "\u2244", Qet = "\u2244", Uet = "\u2224", Vet = "\u2226", qet = "\u22E2", Yet = "\u22E3", Wet = "\u2284", Get = "\u2AC5\u0338", Xet = "\u2288", Het = "\u2282\u20D2", Zet = "\u2288", jet = "\u2AC5\u0338", Ket = "\u2281", Jet = "\u2AB0\u0338", ett = "\u2285", ttt = "\u2AC6\u0338", rtt = "\u2289", ntt = "\u2283\u20D2", itt = "\u2289", stt = "\u2AC6\u0338", att = "\u2279", ott = "\xD1", ltt = "\xF1", ctt = "\u2278", utt = "\u22EA", htt = "\u22EC", ftt = "\u22EB", dtt = "\u22ED", ptt = "\u039D", gtt = "\u03BD", mtt = "#", vtt = "\u2116", ytt = "\u2007", btt = "\u224D\u20D2", xtt = "\u22AC", wtt = "\u22AD", Ott = "\u22AE", ktt = "\u22AF", Stt = "\u2265\u20D2", Ttt = ">\u20D2", Ctt = "\u2904", Ett = "\u29DE", _tt = "\u2902", Att = "\u2264\u20D2", Ltt = "<\u20D2", Rtt = "\u22B4\u20D2", Mtt = "\u2903", Dtt = "\u22B5\u20D2", Ptt = "\u223C\u20D2", Ntt = "\u2923", Itt = "\u2196", $tt = "\u21D6", Btt = "\u2196", Ftt = "\u2927", ztt = "\xD3", Qtt = "\xF3", Utt = "\u229B", Vtt = "\xD4", qtt = "\xF4", Ytt = "\u229A", Wtt = "\u041E", Gtt = "\u043E", Xtt = "\u229D", Htt = "\u0150", Ztt = "\u0151", jtt = "\u2A38", Ktt = "\u2299", Jtt = "\u29BC", ert = "\u0152", trt = "\u0153", rrt = "\u29BF", nrt = "\u{1D512}", irt = "\u{1D52C}", srt = "\u02DB", art = "\xD2", ort = "\xF2", lrt = "\u29C1", crt = "\u29B5", urt = "\u03A9", hrt = "\u222E", frt = "\u21BA", drt = "\u29BE", prt = "\u29BB", grt = "\u203E", mrt = "\u29C0", vrt = "\u014C", yrt = "\u014D", brt = "\u03A9", xrt = "\u03C9", wrt = "\u039F", Ort = "\u03BF", krt = "\u29B6", Srt = "\u2296", Trt = "\u{1D546}", Crt = "\u{1D560}", Ert = "\u29B7", _rt = "\u201C", Art = "\u2018", Lrt = "\u29B9", Rrt = "\u2295", Mrt = "\u21BB", Drt = "\u2A54", Prt = "\u2228", Nrt = "\u2A5D", Irt = "\u2134", $rt = "\u2134", Brt = "\xAA", Frt = "\xBA", zrt = "\u22B6", Qrt = "\u2A56", Urt = "\u2A57", Vrt = "\u2A5B", qrt = "\u24C8", Yrt = "\u{1D4AA}", Wrt = "\u2134", Grt = "\xD8", Xrt = "\xF8", Hrt = "\u2298", Zrt = "\xD5", jrt = "\xF5", Krt = "\u2A36", Jrt = "\u2A37", ent = "\u2297", tnt = "\xD6", rnt = "\xF6", nnt = "\u233D", int = "\u203E", snt = "\u23DE", ant = "\u23B4", ont = "\u23DC", lnt = "\xB6", cnt = "\u2225", unt = "\u2225", hnt = "\u2AF3", fnt = "\u2AFD", dnt = "\u2202", pnt = "\u2202", gnt = "\u041F", mnt = "\u043F", vnt = "%", ynt = ".", bnt = "\u2030", xnt = "\u22A5", wnt = "\u2031", Ont = "\u{1D513}", knt = "\u{1D52D}", Snt = "\u03A6", Tnt = "\u03C6", Cnt = "\u03D5", Ent = "\u2133", _nt = "\u260E", Ant = "\u03A0", Lnt = "\u03C0", Rnt = "\u22D4", Mnt = "\u03D6", Dnt = "\u210F", Pnt = "\u210E", Nnt = "\u210F", Int = "\u2A23", $nt = "\u229E", Bnt = "\u2A22", Fnt = "+", znt = "\u2214", Qnt = "\u2A25", Unt = "\u2A72", Vnt = "\xB1", qnt = "\xB1", Ynt = "\u2A26", Wnt = "\u2A27", Gnt = "\xB1", Xnt = "\u210C", Hnt = "\u2A15", Znt = "\u{1D561}", jnt = "\u2119", Knt = "\xA3", Jnt = "\u2AB7", eit = "\u2ABB", tit = "\u227A", rit = "\u227C", nit = "\u2AB7", iit = "\u227A", sit = "\u227C", ait = "\u227A", oit = "\u2AAF", lit = "\u227C", cit = "\u227E", uit = "\u2AAF", hit = "\u2AB9", fit = "\u2AB5", dit = "\u22E8", pit = "\u2AAF", git = "\u2AB3", mit = "\u227E", vit = "\u2032", yit = "\u2033", bit = "\u2119", xit = "\u2AB9", wit = "\u2AB5", Oit = "\u22E8", kit = "\u220F", Sit = "\u220F", Tit = "\u232E", Cit = "\u2312", Eit = "\u2313", _it = "\u221D", Ait = "\u221D", Lit = "\u2237", Rit = "\u221D", Mit = "\u227E", Dit = "\u22B0", Pit = "\u{1D4AB}", Nit = "\u{1D4C5}", Iit = "\u03A8", $it = "\u03C8", Bit = "\u2008", Fit = "\u{1D514}", zit = "\u{1D52E}", Qit = "\u2A0C", Uit = "\u{1D562}", Vit = "\u211A", qit = "\u2057", Yit = "\u{1D4AC}", Wit = "\u{1D4C6}", Git = "\u210D", Xit = "\u2A16", Hit = "?", Zit = "\u225F", jit = '"', Kit = '"', Jit = "\u21DB", est = "\u223D\u0331", tst = "\u0154", rst = "\u0155", nst = "\u221A", ist = "\u29B3", sst = "\u27E9", ast = "\u27EB", ost = "\u2992", lst = "\u29A5", cst = "\u27E9", ust = "\xBB", hst = "\u2975", fst = "\u21E5", dst = "\u2920", pst = "\u2933", gst = "\u2192", mst = "\u21A0", vst = "\u21D2", yst = "\u291E", bst = "\u21AA", xst = "\u21AC", wst = "\u2945", Ost = "\u2974", kst = "\u2916", Sst = "\u21A3", Tst = "\u219D", Cst = "\u291A", Est = "\u291C", _st = "\u2236", Ast = "\u211A", Lst = "\u290D", Rst = "\u290F", Mst = "\u2910", Dst = "\u2773", Pst = "}", Nst = "]", Ist = "\u298C", $st = "\u298E", Bst = "\u2990", Fst = "\u0158", zst = "\u0159", Qst = "\u0156", Ust = "\u0157", Vst = "\u2309", qst = "}", Yst = "\u0420", Wst = "\u0440", Gst = "\u2937", Xst = "\u2969", Hst = "\u201D", Zst = "\u201D", jst = "\u21B3", Kst = "\u211C", Jst = "\u211B", eat = "\u211C", tat = "\u211D", rat = "\u211C", nat = "\u25AD", iat = "\xAE", sat = "\xAE", aat = "\u220B", oat = "\u21CB", lat = "\u296F", cat = "\u297D", uat = "\u230B", hat = "\u{1D52F}", fat = "\u211C", dat = "\u2964", pat = "\u21C1", gat = "\u21C0", mat = "\u296C", vat = "\u03A1", yat = "\u03C1", bat = "\u03F1", xat = "\u27E9", wat = "\u21E5", Oat = "\u2192", kat = "\u2192", Sat = "\u21D2", Tat = "\u21C4", Cat = "\u21A3", Eat = "\u2309", _at = "\u27E7", Aat = "\u295D", Lat = "\u2955", Rat = "\u21C2", Mat = "\u230B", Dat = "\u21C1", Pat = "\u21C0", Nat = "\u21C4", Iat = "\u21CC", $at = "\u21C9", Bat = "\u219D", Fat = "\u21A6", zat = "\u22A2", Qat = "\u295B", Uat = "\u22CC", Vat = "\u29D0", qat = "\u22B3", Yat = "\u22B5", Wat = "\u294F", Gat = "\u295C", Xat = "\u2954", Hat = "\u21BE", Zat = "\u2953", jat = "\u21C0", Kat = "\u02DA", Jat = "\u2253", eot = "\u21C4", tot = "\u21CC", rot = "\u200F", not = "\u23B1", iot = "\u23B1", sot = "\u2AEE", aot = "\u27ED", oot = "\u21FE", lot = "\u27E7", cot = "\u2986", uot = "\u{1D563}", hot = "\u211D", fot = "\u2A2E", dot = "\u2A35", pot = "\u2970", got = ")", mot = "\u2994", vot = "\u2A12", yot = "\u21C9", bot = "\u21DB", xot = "\u203A", wot = "\u{1D4C7}", Oot = "\u211B", kot = "\u21B1", Sot = "\u21B1", Tot = "]", Cot = "\u2019", Eot = "\u2019", _ot = "\u22CC", Aot = "\u22CA", Lot = "\u25B9", Rot = "\u22B5", Mot = "\u25B8", Dot = "\u29CE", Pot = "\u29F4", Not = "\u2968", Iot = "\u211E", $ot = "\u015A", Bot = "\u015B", Fot = "\u201A", zot = "\u2AB8", Qot = "\u0160", Uot = "\u0161", Vot = "\u2ABC", qot = "\u227B", Yot = "\u227D", Wot = "\u2AB0", Got = "\u2AB4", Xot = "\u015E", Hot = "\u015F", Zot = "\u015C", jot = "\u015D", Kot = "\u2ABA", Jot = "\u2AB6", elt = "\u22E9", tlt = "\u2A13", rlt = "\u227F", nlt = "\u0421", ilt = "\u0441", slt = "\u22A1", alt = "\u22C5", olt = "\u2A66", llt = "\u2925", clt = "\u2198", ult = "\u21D8", hlt = "\u2198", flt = "\xA7", dlt = ";", plt = "\u2929", glt = "\u2216", mlt = "\u2216", vlt = "\u2736", ylt = "\u{1D516}", blt = "\u{1D530}", xlt = "\u2322", wlt = "\u266F", Olt = "\u0429", klt = "\u0449", Slt = "\u0428", Tlt = "\u0448", Clt = "\u2193", Elt = "\u2190", _lt = "\u2223", Alt = "\u2225", Llt = "\u2192", Rlt = "\u2191", Mlt = "\xAD", Dlt = "\u03A3", Plt = "\u03C3", Nlt = "\u03C2", Ilt = "\u03C2", $lt = "\u223C", Blt = "\u2A6A", Flt = "\u2243", zlt = "\u2243", Qlt = "\u2A9E", Ult = "\u2AA0", Vlt = "\u2A9D", qlt = "\u2A9F", Ylt = "\u2246", Wlt = "\u2A24", Glt = "\u2972", Xlt = "\u2190", Hlt = "\u2218", Zlt = "\u2216", jlt = "\u2A33", Klt = "\u29E4", Jlt = "\u2223", ect = "\u2323", tct = "\u2AAA", rct = "\u2AAC", nct = "\u2AAC\uFE00", ict = "\u042C", sct = "\u044C", act = "\u233F", oct = "\u29C4", lct = "/", cct = "\u{1D54A}", uct = "\u{1D564}", hct = "\u2660", fct = "\u2660", dct = "\u2225", pct = "\u2293", gct = "\u2293\uFE00", mct = "\u2294", vct = "\u2294\uFE00", yct = "\u221A", bct = "\u228F", xct = "\u2291", wct = "\u228F", Oct = "\u2291", kct = "\u2290", Sct = "\u2292", Tct = "\u2290", Cct = "\u2292", Ect = "\u25A1", _ct = "\u25A1", Act = "\u2293", Lct = "\u228F", Rct = "\u2291", Mct = "\u2290", Dct = "\u2292", Pct = "\u2294", Nct = "\u25AA", Ict = "\u25A1", $ct = "\u25AA", Bct = "\u2192", Fct = "\u{1D4AE}", zct = "\u{1D4C8}", Qct = "\u2216", Uct = "\u2323", Vct = "\u22C6", qct = "\u22C6", Yct = "\u2606", Wct = "\u2605", Gct = "\u03F5", Xct = "\u03D5", Hct = "\xAF", Zct = "\u2282", jct = "\u22D0", Kct = "\u2ABD", Jct = "\u2AC5", eut = "\u2286", tut = "\u2AC3", rut = "\u2AC1", nut = "\u2ACB", iut = "\u228A", sut = "\u2ABF", aut = "\u2979", out = "\u2282", lut = "\u22D0", cut = "\u2286", uut = "\u2AC5", hut = "\u2286", fut = "\u228A", dut = "\u2ACB", put = "\u2AC7", gut = "\u2AD5", mut = "\u2AD3", vut = "\u2AB8", yut = "\u227B", but = "\u227D", xut = "\u227B", wut = "\u2AB0", Out = "\u227D", kut = "\u227F", Sut = "\u2AB0", Tut = "\u2ABA", Cut = "\u2AB6", Eut = "\u22E9", _ut = "\u227F", Aut = "\u220B", Lut = "\u2211", Rut = "\u2211", Mut = "\u266A", Dut = "\xB9", Put = "\xB2", Nut = "\xB3", Iut = "\u2283", $ut = "\u22D1", But = "\u2ABE", Fut = "\u2AD8", zut = "\u2AC6", Qut = "\u2287", Uut = "\u2AC4", Vut = "\u2283", qut = "\u2287", Yut = "\u27C9", Wut = "\u2AD7", Gut = "\u297B", Xut = "\u2AC2", Hut = "\u2ACC", Zut = "\u228B", jut = "\u2AC0", Kut = "\u2283", Jut = "\u22D1", eht = "\u2287", tht = "\u2AC6", rht = "\u228B", nht = "\u2ACC", iht = "\u2AC8", sht = "\u2AD4", aht = "\u2AD6", oht = "\u2926", lht = "\u2199", cht = "\u21D9", uht = "\u2199", hht = "\u292A", fht = "\xDF", dht = " ", pht = "\u2316", ght = "\u03A4", mht = "\u03C4", vht = "\u23B4", yht = "\u0164", bht = "\u0165", xht = "\u0162", wht = "\u0163", Oht = "\u0422", kht = "\u0442", Sht = "\u20DB", Tht = "\u2315", Cht = "\u{1D517}", Eht = "\u{1D531}", _ht = "\u2234", Aht = "\u2234", Lht = "\u2234", Rht = "\u0398", Mht = "\u03B8", Dht = "\u03D1", Pht = "\u03D1", Nht = "\u2248", Iht = "\u223C", $ht = "\u205F\u200A", Bht = "\u2009", Fht = "\u2009", zht = "\u2248", Qht = "\u223C", Uht = "\xDE", Vht = "\xFE", qht = "\u02DC", Yht = "\u223C", Wht = "\u2243", Ght = "\u2245", Xht = "\u2248", Hht = "\u2A31", Zht = "\u22A0", jht = "\xD7", Kht = "\u2A30", Jht = "\u222D", eft = "\u2928", tft = "\u2336", rft = "\u2AF1", nft = "\u22A4", ift = "\u{1D54B}", sft = "\u{1D565}", aft = "\u2ADA", oft = "\u2929", lft = "\u2034", cft = "\u2122", uft = "\u2122", hft = "\u25B5", fft = "\u25BF", dft = "\u25C3", pft = "\u22B4", gft = "\u225C", mft = "\u25B9", vft = "\u22B5", yft = "\u25EC", bft = "\u225C", xft = "\u2A3A", wft = "\u20DB", Oft = "\u2A39", kft = "\u29CD", Sft = "\u2A3B", Tft = "\u23E2", Cft = "\u{1D4AF}", Eft = "\u{1D4C9}", _ft = "\u0426", Aft = "\u0446", Lft = "\u040B", Rft = "\u045B", Mft = "\u0166", Dft = "\u0167", Pft = "\u226C", Nft = "\u219E", Ift = "\u21A0", $ft = "\xDA", Bft = "\xFA", Fft = "\u2191", zft = "\u219F", Qft = "\u21D1", Uft = "\u2949", Vft = "\u040E", qft = "\u045E", Yft = "\u016C", Wft = "\u016D", Gft = "\xDB", Xft = "\xFB", Hft = "\u0423", Zft = "\u0443", jft = "\u21C5", Kft = "\u0170", Jft = "\u0171", edt = "\u296E", tdt = "\u297E", rdt = "\u{1D518}", ndt = "\u{1D532}", idt = "\xD9", sdt = "\xF9", adt = "\u2963", odt = "\u21BF", ldt = "\u21BE", cdt = "\u2580", udt = "\u231C", hdt = "\u231C", fdt = "\u230F", ddt = "\u25F8", pdt = "\u016A", gdt = "\u016B", mdt = "\xA8", vdt = "_", ydt = "\u23DF", bdt = "\u23B5", xdt = "\u23DD", wdt = "\u22C3", Odt = "\u228E", kdt = "\u0172", Sdt = "\u0173", Tdt = "\u{1D54C}", Cdt = "\u{1D566}", Edt = "\u2912", _dt = "\u2191", Adt = "\u2191", Ldt = "\u21D1", Rdt = "\u21C5", Mdt = "\u2195", Ddt = "\u2195", Pdt = "\u21D5", Ndt = "\u296E", Idt = "\u21BF", $dt = "\u21BE", Bdt = "\u228E", Fdt = "\u2196", zdt = "\u2197", Qdt = "\u03C5", Udt = "\u03D2", Vdt = "\u03D2", qdt = "\u03A5", Ydt = "\u03C5", Wdt = "\u21A5", Gdt = "\u22A5", Xdt = "\u21C8", Hdt = "\u231D", Zdt = "\u231D", jdt = "\u230E", Kdt = "\u016E", Jdt = "\u016F", e0t = "\u25F9", t0t = "\u{1D4B0}", r0t = "\u{1D4CA}", n0t = "\u22F0", i0t = "\u0168", s0t = "\u0169", a0t = "\u25B5", o0t = "\u25B4", l0t = "\u21C8", c0t = "\xDC", u0t = "\xFC", h0t = "\u29A7", f0t = "\u299C", d0t = "\u03F5", p0t = "\u03F0", g0t = "\u2205", m0t = "\u03D5", v0t = "\u03D6", y0t = "\u221D", b0t = "\u2195", x0t = "\u21D5", w0t = "\u03F1", O0t = "\u03C2", k0t = "\u228A\uFE00", S0t = "\u2ACB\uFE00", T0t = "\u228B\uFE00", C0t = "\u2ACC\uFE00", E0t = "\u03D1", _0t = "\u22B2", A0t = "\u22B3", L0t = "\u2AE8", R0t = "\u2AEB", M0t = "\u2AE9", D0t = "\u0412", P0t = "\u0432", N0t = "\u22A2", I0t = "\u22A8", $0t = "\u22A9", B0t = "\u22AB", F0t = "\u2AE6", z0t = "\u22BB", Q0t = "\u2228", U0t = "\u22C1", V0t = "\u225A", q0t = "\u22EE", Y0t = "|", W0t = "\u2016", G0t = "|", X0t = "\u2016", H0t = "\u2223", Z0t = "|", j0t = "\u2758", K0t = "\u2240", J0t = "\u200A", ept = "\u{1D519}", tpt = "\u{1D533}", rpt = "\u22B2", npt = "\u2282\u20D2", ipt = "\u2283\u20D2", spt = "\u{1D54D}", apt = "\u{1D567}", opt = "\u221D", lpt = "\u22B3", cpt = "\u{1D4B1}", upt = "\u{1D4CB}", hpt = "\u2ACB\uFE00", fpt = "\u228A\uFE00", dpt = "\u2ACC\uFE00", ppt = "\u228B\uFE00", gpt = "\u22AA", mpt = "\u299A", vpt = "\u0174", ypt = "\u0175", bpt = "\u2A5F", xpt = "\u2227", wpt = "\u22C0", Opt = "\u2259", kpt = "\u2118", Spt = "\u{1D51A}", Tpt = "\u{1D534}", Cpt = "\u{1D54E}", Ept = "\u{1D568}", _pt = "\u2118", Apt = "\u2240", Lpt = "\u2240", Rpt = "\u{1D4B2}", Mpt = "\u{1D4CC}", Dpt = "\u22C2", Ppt = "\u25EF", Npt = "\u22C3", Ipt = "\u25BD", $pt = "\u{1D51B}", Bpt = "\u{1D535}", Fpt = "\u27F7", zpt = "\u27FA", Qpt = "\u039E", Upt = "\u03BE", Vpt = "\u27F5", qpt = "\u27F8", Ypt = "\u27FC", Wpt = "\u22FB", Gpt = "\u2A00", Xpt = "\u{1D54F}", Hpt = "\u{1D569}", Zpt = "\u2A01", jpt = "\u2A02", Kpt = "\u27F6", Jpt = "\u27F9", egt = "\u{1D4B3}", tgt = "\u{1D4CD}", rgt = "\u2A06", ngt = "\u2A04", igt = "\u25B3", sgt = "\u22C1", agt = "\u22C0", ogt = "\xDD", lgt = "\xFD", cgt = "\u042F", ugt = "\u044F", hgt = "\u0176", fgt = "\u0177", dgt = "\u042B", pgt = "\u044B", ggt = "\xA5", mgt = "\u{1D51C}", vgt = "\u{1D536}", ygt = "\u0407", bgt = "\u0457", xgt = "\u{1D550}", wgt = "\u{1D56A}", Ogt = "\u{1D4B4}", kgt = "\u{1D4CE}", Sgt = "\u042E", Tgt = "\u044E", Cgt = "\xFF", Egt = "\u0178", _gt = "\u0179", Agt = "\u017A", Lgt = "\u017D", Rgt = "\u017E", Mgt = "\u0417", Dgt = "\u0437", Pgt = "\u017B", Ngt = "\u017C", Igt = "\u2128", $gt = "\u200B", Bgt = "\u0396", Fgt = "\u03B6", zgt = "\u{1D537}", Qgt = "\u2128", Ugt = "\u0416", Vgt = "\u0436", qgt = "\u21DD", Ygt = "\u{1D56B}", Wgt = "\u2124", Ggt = "\u{1D4B5}", Xgt = "\u{1D4CF}", Hgt = "\u200D", Zgt = "\u200C", jgt = { + Aacute: MRe, + aacute: DRe, + Abreve: PRe, + abreve: NRe, + ac: IRe, + acd: $Re, + acE: BRe, + Acirc: FRe, + acirc: zRe, + acute: QRe, + Acy: URe, + acy: VRe, + AElig: qRe, + aelig: YRe, + af: WRe, + Afr: GRe, + afr: XRe, + Agrave: HRe, + agrave: ZRe, + alefsym: jRe, + aleph: KRe, + Alpha: JRe, + alpha: eMe, + Amacr: tMe, + amacr: rMe, + amalg: nMe, + amp: iMe, + AMP: sMe, + andand: aMe, + And: oMe, + and: lMe, + andd: cMe, + andslope: uMe, + andv: hMe, + ang: fMe, + ange: dMe, + angle: pMe, + angmsdaa: gMe, + angmsdab: mMe, + angmsdac: vMe, + angmsdad: yMe, + angmsdae: bMe, + angmsdaf: xMe, + angmsdag: wMe, + angmsdah: OMe, + angmsd: kMe, + angrt: SMe, + angrtvb: TMe, + angrtvbd: CMe, + angsph: EMe, + angst: _Me, + angzarr: AMe, + Aogon: LMe, + aogon: RMe, + Aopf: MMe, + aopf: DMe, + apacir: PMe, + ap: NMe, + apE: IMe, + ape: $Me, + apid: BMe, + apos: FMe, + ApplyFunction: zMe, + approx: QMe, + approxeq: UMe, + Aring: VMe, + aring: qMe, + Ascr: YMe, + ascr: WMe, + Assign: GMe, + ast: XMe, + asymp: HMe, + asympeq: ZMe, + Atilde: jMe, + atilde: KMe, + Auml: JMe, + auml: eDe, + awconint: tDe, + awint: rDe, + backcong: nDe, + backepsilon: iDe, + backprime: sDe, + backsim: aDe, + backsimeq: oDe, + Backslash: lDe, + Barv: cDe, + barvee: uDe, + barwed: hDe, + Barwed: fDe, + barwedge: dDe, + bbrk: pDe, + bbrktbrk: gDe, + bcong: mDe, + Bcy: vDe, + bcy: yDe, + bdquo: bDe, + becaus: xDe, + because: wDe, + Because: ODe, + bemptyv: kDe, + bepsi: SDe, + bernou: TDe, + Bernoullis: CDe, + Beta: EDe, + beta: _De, + beth: ADe, + between: LDe, + Bfr: RDe, + bfr: MDe, + bigcap: DDe, + bigcirc: PDe, + bigcup: NDe, + bigodot: IDe, + bigoplus: $De, + bigotimes: BDe, + bigsqcup: FDe, + bigstar: zDe, + bigtriangledown: QDe, + bigtriangleup: UDe, + biguplus: VDe, + bigvee: qDe, + bigwedge: YDe, + bkarow: WDe, + blacklozenge: GDe, + blacksquare: XDe, + blacktriangle: HDe, + blacktriangledown: ZDe, + blacktriangleleft: jDe, + blacktriangleright: KDe, + blank: JDe, + blk12: ePe, + blk14: tPe, + blk34: rPe, + block: nPe, + bne: iPe, + bnequiv: sPe, + bNot: aPe, + bnot: oPe, + Bopf: lPe, + bopf: cPe, + bot: uPe, + bottom: hPe, + bowtie: fPe, + boxbox: dPe, + boxdl: pPe, + boxdL: gPe, + boxDl: mPe, + boxDL: vPe, + boxdr: yPe, + boxdR: bPe, + boxDr: xPe, + boxDR: wPe, + boxh: OPe, + boxH: kPe, + boxhd: SPe, + boxHd: TPe, + boxhD: CPe, + boxHD: EPe, + boxhu: _Pe, + boxHu: APe, + boxhU: LPe, + boxHU: RPe, + boxminus: MPe, + boxplus: DPe, + boxtimes: PPe, + boxul: NPe, + boxuL: IPe, + boxUl: $Pe, + boxUL: BPe, + boxur: FPe, + boxuR: zPe, + boxUr: QPe, + boxUR: UPe, + boxv: VPe, + boxV: qPe, + boxvh: YPe, + boxvH: WPe, + boxVh: GPe, + boxVH: XPe, + boxvl: HPe, + boxvL: ZPe, + boxVl: jPe, + boxVL: KPe, + boxvr: JPe, + boxvR: eNe, + boxVr: tNe, + boxVR: rNe, + bprime: nNe, + breve: iNe, + Breve: sNe, + brvbar: aNe, + bscr: oNe, + Bscr: lNe, + bsemi: cNe, + bsim: uNe, + bsime: hNe, + bsolb: fNe, + bsol: dNe, + bsolhsub: pNe, + bull: gNe, + bullet: mNe, + bump: vNe, + bumpE: yNe, + bumpe: bNe, + Bumpeq: xNe, + bumpeq: wNe, + Cacute: ONe, + cacute: kNe, + capand: SNe, + capbrcup: TNe, + capcap: CNe, + cap: ENe, + Cap: _Ne, + capcup: ANe, + capdot: LNe, + CapitalDifferentialD: RNe, + caps: MNe, + caret: DNe, + caron: PNe, + Cayleys: NNe, + ccaps: INe, + Ccaron: $Ne, + ccaron: BNe, + Ccedil: FNe, + ccedil: zNe, + Ccirc: QNe, + ccirc: UNe, + Cconint: VNe, + ccups: qNe, + ccupssm: YNe, + Cdot: WNe, + cdot: GNe, + cedil: XNe, + Cedilla: HNe, + cemptyv: ZNe, + cent: jNe, + centerdot: KNe, + CenterDot: JNe, + cfr: eIe, + Cfr: tIe, + CHcy: rIe, + chcy: nIe, + check: iIe, + checkmark: sIe, + Chi: aIe, + chi: oIe, + circ: lIe, + circeq: cIe, + circlearrowleft: uIe, + circlearrowright: hIe, + circledast: fIe, + circledcirc: dIe, + circleddash: pIe, + CircleDot: gIe, + circledR: mIe, + circledS: vIe, + CircleMinus: yIe, + CirclePlus: bIe, + CircleTimes: xIe, + cir: wIe, + cirE: OIe, + cire: kIe, + cirfnint: SIe, + cirmid: TIe, + cirscir: CIe, + ClockwiseContourIntegral: EIe, + CloseCurlyDoubleQuote: _Ie, + CloseCurlyQuote: AIe, + clubs: LIe, + clubsuit: RIe, + colon: MIe, + Colon: DIe, + Colone: PIe, + colone: NIe, + coloneq: IIe, + comma: $Ie, + commat: BIe, + comp: FIe, + compfn: zIe, + complement: QIe, + complexes: UIe, + cong: VIe, + congdot: qIe, + Congruent: YIe, + conint: WIe, + Conint: GIe, + ContourIntegral: XIe, + copf: HIe, + Copf: ZIe, + coprod: jIe, + Coproduct: KIe, + copy: JIe, + COPY: e$e, + copysr: t$e, + CounterClockwiseContourIntegral: r$e, + crarr: n$e, + cross: i$e, + Cross: s$e, + Cscr: a$e, + cscr: o$e, + csub: l$e, + csube: c$e, + csup: u$e, + csupe: h$e, + ctdot: f$e, + cudarrl: d$e, + cudarrr: p$e, + cuepr: g$e, + cuesc: m$e, + cularr: v$e, + cularrp: y$e, + cupbrcap: b$e, + cupcap: x$e, + CupCap: w$e, + cup: O$e, + Cup: k$e, + cupcup: S$e, + cupdot: T$e, + cupor: C$e, + cups: E$e, + curarr: _$e, + curarrm: A$e, + curlyeqprec: L$e, + curlyeqsucc: R$e, + curlyvee: M$e, + curlywedge: D$e, + curren: P$e, + curvearrowleft: N$e, + curvearrowright: I$e, + cuvee: $$e, + cuwed: B$e, + cwconint: F$e, + cwint: z$e, + cylcty: Q$e, + dagger: U$e, + Dagger: V$e, + daleth: q$e, + darr: Y$e, + Darr: W$e, + dArr: G$e, + dash: X$e, + Dashv: H$e, + dashv: Z$e, + dbkarow: j$e, + dblac: K$e, + Dcaron: J$e, + dcaron: eBe, + Dcy: tBe, + dcy: rBe, + ddagger: nBe, + ddarr: iBe, + DD: sBe, + dd: aBe, + DDotrahd: oBe, + ddotseq: lBe, + deg: cBe, + Del: uBe, + Delta: hBe, + delta: fBe, + demptyv: dBe, + dfisht: pBe, + Dfr: gBe, + dfr: mBe, + dHar: vBe, + dharl: yBe, + dharr: bBe, + DiacriticalAcute: xBe, + DiacriticalDot: wBe, + DiacriticalDoubleAcute: OBe, + DiacriticalGrave: kBe, + DiacriticalTilde: SBe, + diam: TBe, + diamond: CBe, + Diamond: EBe, + diamondsuit: _Be, + diams: ABe, + die: LBe, + DifferentialD: RBe, + digamma: MBe, + disin: DBe, + div: PBe, + divide: NBe, + divideontimes: IBe, + divonx: $Be, + DJcy: BBe, + djcy: FBe, + dlcorn: zBe, + dlcrop: QBe, + dollar: UBe, + Dopf: VBe, + dopf: qBe, + Dot: YBe, + dot: WBe, + DotDot: GBe, + doteq: XBe, + doteqdot: HBe, + DotEqual: ZBe, + dotminus: jBe, + dotplus: KBe, + dotsquare: JBe, + doublebarwedge: eFe, + DoubleContourIntegral: tFe, + DoubleDot: rFe, + DoubleDownArrow: nFe, + DoubleLeftArrow: iFe, + DoubleLeftRightArrow: sFe, + DoubleLeftTee: aFe, + DoubleLongLeftArrow: oFe, + DoubleLongLeftRightArrow: lFe, + DoubleLongRightArrow: cFe, + DoubleRightArrow: uFe, + DoubleRightTee: hFe, + DoubleUpArrow: fFe, + DoubleUpDownArrow: dFe, + DoubleVerticalBar: pFe, + DownArrowBar: gFe, + downarrow: mFe, + DownArrow: vFe, + Downarrow: yFe, + DownArrowUpArrow: bFe, + DownBreve: xFe, + downdownarrows: wFe, + downharpoonleft: OFe, + downharpoonright: kFe, + DownLeftRightVector: SFe, + DownLeftTeeVector: TFe, + DownLeftVectorBar: CFe, + DownLeftVector: EFe, + DownRightTeeVector: _Fe, + DownRightVectorBar: AFe, + DownRightVector: LFe, + DownTeeArrow: RFe, + DownTee: MFe, + drbkarow: DFe, + drcorn: PFe, + drcrop: NFe, + Dscr: IFe, + dscr: $Fe, + DScy: BFe, + dscy: FFe, + dsol: zFe, + Dstrok: QFe, + dstrok: UFe, + dtdot: VFe, + dtri: qFe, + dtrif: YFe, + duarr: WFe, + duhar: GFe, + dwangle: XFe, + DZcy: HFe, + dzcy: ZFe, + dzigrarr: jFe, + Eacute: KFe, + eacute: JFe, + easter: eze, + Ecaron: tze, + ecaron: rze, + Ecirc: nze, + ecirc: ize, + ecir: sze, + ecolon: aze, + Ecy: oze, + ecy: lze, + eDDot: cze, + Edot: uze, + edot: hze, + eDot: fze, + ee: dze, + efDot: pze, + Efr: gze, + efr: mze, + eg: vze, + Egrave: yze, + egrave: bze, + egs: xze, + egsdot: wze, + el: Oze, + Element: kze, + elinters: Sze, + ell: Tze, + els: Cze, + elsdot: Eze, + Emacr: _ze, + emacr: Aze, + empty: Lze, + emptyset: Rze, + EmptySmallSquare: Mze, + emptyv: Dze, + EmptyVerySmallSquare: Pze, + emsp13: Nze, + emsp14: Ize, + emsp: $ze, + ENG: Bze, + eng: Fze, + ensp: zze, + Eogon: Qze, + eogon: Uze, + Eopf: Vze, + eopf: qze, + epar: Yze, + eparsl: Wze, + eplus: Gze, + epsi: Xze, + Epsilon: Hze, + epsilon: Zze, + epsiv: jze, + eqcirc: Kze, + eqcolon: Jze, + eqsim: eQe, + eqslantgtr: tQe, + eqslantless: rQe, + Equal: nQe, + equals: iQe, + EqualTilde: sQe, + equest: aQe, + Equilibrium: oQe, + equiv: lQe, + equivDD: cQe, + eqvparsl: uQe, + erarr: hQe, + erDot: fQe, + escr: dQe, + Escr: pQe, + esdot: gQe, + Esim: mQe, + esim: vQe, + Eta: yQe, + eta: bQe, + ETH: xQe, + eth: wQe, + Euml: OQe, + euml: kQe, + euro: SQe, + excl: TQe, + exist: CQe, + Exists: EQe, + expectation: _Qe, + exponentiale: AQe, + ExponentialE: LQe, + fallingdotseq: RQe, + Fcy: MQe, + fcy: DQe, + female: PQe, + ffilig: NQe, + fflig: IQe, + ffllig: $Qe, + Ffr: BQe, + ffr: FQe, + filig: zQe, + FilledSmallSquare: QQe, + FilledVerySmallSquare: UQe, + fjlig: VQe, + flat: qQe, + fllig: YQe, + fltns: WQe, + fnof: GQe, + Fopf: XQe, + fopf: HQe, + forall: ZQe, + ForAll: jQe, + fork: KQe, + forkv: JQe, + Fouriertrf: eUe, + fpartint: tUe, + frac12: rUe, + frac13: nUe, + frac14: iUe, + frac15: sUe, + frac16: aUe, + frac18: oUe, + frac23: lUe, + frac25: cUe, + frac34: uUe, + frac35: hUe, + frac38: fUe, + frac45: dUe, + frac56: pUe, + frac58: gUe, + frac78: mUe, + frasl: vUe, + frown: yUe, + fscr: bUe, + Fscr: xUe, + gacute: wUe, + Gamma: OUe, + gamma: kUe, + Gammad: SUe, + gammad: TUe, + gap: CUe, + Gbreve: EUe, + gbreve: _Ue, + Gcedil: AUe, + Gcirc: LUe, + gcirc: RUe, + Gcy: MUe, + gcy: DUe, + Gdot: PUe, + gdot: NUe, + ge: IUe, + gE: $Ue, + gEl: BUe, + gel: FUe, + geq: zUe, + geqq: QUe, + geqslant: UUe, + gescc: VUe, + ges: qUe, + gesdot: YUe, + gesdoto: WUe, + gesdotol: GUe, + gesl: XUe, + gesles: HUe, + Gfr: ZUe, + gfr: jUe, + gg: KUe, + Gg: JUe, + ggg: eVe, + gimel: tVe, + GJcy: rVe, + gjcy: nVe, + gla: iVe, + gl: sVe, + glE: aVe, + glj: oVe, + gnap: lVe, + gnapprox: cVe, + gne: uVe, + gnE: hVe, + gneq: fVe, + gneqq: dVe, + gnsim: pVe, + Gopf: gVe, + gopf: mVe, + grave: vVe, + GreaterEqual: yVe, + GreaterEqualLess: bVe, + GreaterFullEqual: xVe, + GreaterGreater: wVe, + GreaterLess: OVe, + GreaterSlantEqual: kVe, + GreaterTilde: SVe, + Gscr: TVe, + gscr: CVe, + gsim: EVe, + gsime: _Ve, + gsiml: AVe, + gtcc: LVe, + gtcir: RVe, + gt: MVe, + GT: DVe, + Gt: PVe, + gtdot: NVe, + gtlPar: IVe, + gtquest: $Ve, + gtrapprox: BVe, + gtrarr: FVe, + gtrdot: zVe, + gtreqless: QVe, + gtreqqless: UVe, + gtrless: VVe, + gtrsim: qVe, + gvertneqq: YVe, + gvnE: WVe, + Hacek: GVe, + hairsp: XVe, + half: HVe, + hamilt: ZVe, + HARDcy: jVe, + hardcy: KVe, + harrcir: JVe, + harr: eqe, + hArr: tqe, + harrw: rqe, + Hat: nqe, + hbar: iqe, + Hcirc: sqe, + hcirc: aqe, + hearts: oqe, + heartsuit: lqe, + hellip: cqe, + hercon: uqe, + hfr: hqe, + Hfr: fqe, + HilbertSpace: dqe, + hksearow: pqe, + hkswarow: gqe, + hoarr: mqe, + homtht: vqe, + hookleftarrow: yqe, + hookrightarrow: bqe, + hopf: xqe, + Hopf: wqe, + horbar: Oqe, + HorizontalLine: kqe, + hscr: Sqe, + Hscr: Tqe, + hslash: Cqe, + Hstrok: Eqe, + hstrok: _qe, + HumpDownHump: Aqe, + HumpEqual: Lqe, + hybull: Rqe, + hyphen: Mqe, + Iacute: Dqe, + iacute: Pqe, + ic: Nqe, + Icirc: Iqe, + icirc: $qe, + Icy: Bqe, + icy: Fqe, + Idot: zqe, + IEcy: Qqe, + iecy: Uqe, + iexcl: Vqe, + iff: qqe, + ifr: Yqe, + Ifr: Wqe, + Igrave: Gqe, + igrave: Xqe, + ii: Hqe, + iiiint: Zqe, + iiint: jqe, + iinfin: Kqe, + iiota: Jqe, + IJlig: eYe, + ijlig: tYe, + Imacr: rYe, + imacr: nYe, + image: iYe, + ImaginaryI: sYe, + imagline: aYe, + imagpart: oYe, + imath: lYe, + Im: cYe, + imof: uYe, + imped: hYe, + Implies: fYe, + incare: dYe, in: "\u2208", - infin: dYe, - infintie: pYe, - inodot: gYe, - intcal: mYe, - int: vYe, - Int: yYe, - integers: bYe, - Integral: xYe, - intercal: wYe, - Intersection: OYe, - intlarhk: kYe, - intprod: SYe, - InvisibleComma: TYe, - InvisibleTimes: CYe, - IOcy: EYe, - iocy: _Ye, - Iogon: AYe, - iogon: LYe, - Iopf: RYe, - iopf: MYe, - Iota: DYe, - iota: PYe, - iprod: NYe, - iquest: IYe, - iscr: $Ye, - Iscr: BYe, - isin: FYe, - isindot: zYe, - isinE: QYe, - isins: UYe, - isinsv: VYe, - isinv: qYe, - it: YYe, - Itilde: WYe, - itilde: GYe, - Iukcy: XYe, - iukcy: HYe, - Iuml: ZYe, - iuml: jYe, - Jcirc: KYe, - jcirc: JYe, - Jcy: eWe, - jcy: tWe, - Jfr: rWe, - jfr: nWe, - jmath: iWe, - Jopf: sWe, - jopf: aWe, - Jscr: oWe, - jscr: lWe, - Jsercy: cWe, - jsercy: uWe, - Jukcy: hWe, - jukcy: fWe, - Kappa: dWe, - kappa: pWe, - kappav: gWe, - Kcedil: mWe, - kcedil: vWe, - Kcy: yWe, - kcy: bWe, - Kfr: xWe, - kfr: wWe, - kgreen: OWe, - KHcy: kWe, - khcy: SWe, - KJcy: TWe, - kjcy: CWe, - Kopf: EWe, - kopf: _We, - Kscr: AWe, - kscr: LWe, - lAarr: RWe, - Lacute: MWe, - lacute: DWe, - laemptyv: PWe, - lagran: NWe, - Lambda: IWe, - lambda: $We, - lang: BWe, - Lang: FWe, - langd: zWe, - langle: QWe, - lap: UWe, - Laplacetrf: VWe, - laquo: qWe, - larrb: YWe, - larrbfs: WWe, - larr: GWe, - Larr: XWe, - lArr: HWe, - larrfs: ZWe, - larrhk: jWe, - larrlp: KWe, - larrpl: JWe, - larrsim: eGe, - larrtl: tGe, - latail: rGe, - lAtail: nGe, - lat: iGe, - late: sGe, - lates: aGe, - lbarr: oGe, - lBarr: lGe, - lbbrk: cGe, - lbrace: uGe, - lbrack: hGe, - lbrke: fGe, - lbrksld: dGe, - lbrkslu: pGe, - Lcaron: gGe, - lcaron: mGe, - Lcedil: vGe, - lcedil: yGe, - lceil: bGe, - lcub: xGe, - Lcy: wGe, - lcy: OGe, - ldca: kGe, - ldquo: SGe, - ldquor: TGe, - ldrdhar: CGe, - ldrushar: EGe, - ldsh: _Ge, - le: AGe, - lE: LGe, - LeftAngleBracket: RGe, - LeftArrowBar: MGe, - leftarrow: DGe, - LeftArrow: PGe, - Leftarrow: NGe, - LeftArrowRightArrow: IGe, - leftarrowtail: $Ge, - LeftCeiling: BGe, - LeftDoubleBracket: FGe, - LeftDownTeeVector: zGe, - LeftDownVectorBar: QGe, - LeftDownVector: UGe, - LeftFloor: VGe, - leftharpoondown: qGe, - leftharpoonup: YGe, - leftleftarrows: WGe, - leftrightarrow: GGe, - LeftRightArrow: XGe, - Leftrightarrow: HGe, - leftrightarrows: ZGe, - leftrightharpoons: jGe, - leftrightsquigarrow: KGe, - LeftRightVector: JGe, - LeftTeeArrow: eXe, - LeftTee: tXe, - LeftTeeVector: rXe, - leftthreetimes: nXe, - LeftTriangleBar: iXe, - LeftTriangle: sXe, - LeftTriangleEqual: aXe, - LeftUpDownVector: oXe, - LeftUpTeeVector: lXe, - LeftUpVectorBar: cXe, - LeftUpVector: uXe, - LeftVectorBar: hXe, - LeftVector: fXe, - lEg: dXe, - leg: pXe, - leq: gXe, - leqq: mXe, - leqslant: vXe, - lescc: yXe, - les: bXe, - lesdot: xXe, - lesdoto: wXe, - lesdotor: OXe, - lesg: kXe, - lesges: SXe, - lessapprox: TXe, - lessdot: CXe, - lesseqgtr: EXe, - lesseqqgtr: _Xe, - LessEqualGreater: AXe, - LessFullEqual: LXe, - LessGreater: RXe, - lessgtr: MXe, - LessLess: DXe, - lesssim: PXe, - LessSlantEqual: NXe, - LessTilde: IXe, - lfisht: $Xe, - lfloor: BXe, - Lfr: FXe, - lfr: zXe, - lg: QXe, - lgE: UXe, - lHar: VXe, - lhard: qXe, - lharu: YXe, - lharul: WXe, - lhblk: GXe, - LJcy: XXe, - ljcy: HXe, - llarr: ZXe, - ll: jXe, - Ll: KXe, - llcorner: JXe, - Lleftarrow: eHe, - llhard: tHe, - lltri: rHe, - Lmidot: nHe, - lmidot: iHe, - lmoustache: sHe, - lmoust: aHe, - lnap: oHe, - lnapprox: lHe, - lne: cHe, - lnE: uHe, - lneq: hHe, - lneqq: fHe, - lnsim: dHe, - loang: pHe, - loarr: gHe, - lobrk: mHe, - longleftarrow: vHe, - LongLeftArrow: yHe, - Longleftarrow: bHe, - longleftrightarrow: xHe, - LongLeftRightArrow: wHe, - Longleftrightarrow: OHe, - longmapsto: kHe, - longrightarrow: SHe, - LongRightArrow: THe, - Longrightarrow: CHe, - looparrowleft: EHe, - looparrowright: _He, - lopar: AHe, - Lopf: LHe, - lopf: RHe, - loplus: MHe, - lotimes: DHe, - lowast: PHe, - lowbar: NHe, - LowerLeftArrow: IHe, - LowerRightArrow: $He, - loz: BHe, - lozenge: FHe, - lozf: zHe, - lpar: QHe, - lparlt: UHe, - lrarr: VHe, - lrcorner: qHe, - lrhar: YHe, - lrhard: WHe, - lrm: GHe, - lrtri: XHe, - lsaquo: HHe, - lscr: ZHe, - Lscr: jHe, - lsh: KHe, - Lsh: JHe, - lsim: eZe, - lsime: tZe, - lsimg: rZe, - lsqb: nZe, - lsquo: iZe, - lsquor: sZe, - Lstrok: aZe, - lstrok: oZe, - ltcc: lZe, - ltcir: cZe, - lt: uZe, - LT: hZe, - Lt: fZe, - ltdot: dZe, - lthree: pZe, - ltimes: gZe, - ltlarr: mZe, - ltquest: vZe, - ltri: yZe, - ltrie: bZe, - ltrif: xZe, - ltrPar: wZe, - lurdshar: OZe, - luruhar: kZe, - lvertneqq: SZe, - lvnE: TZe, - macr: CZe, - male: EZe, - malt: _Ze, - maltese: AZe, + infin: pYe, + infintie: gYe, + inodot: mYe, + intcal: vYe, + int: yYe, + Int: bYe, + integers: xYe, + Integral: wYe, + intercal: OYe, + Intersection: kYe, + intlarhk: SYe, + intprod: TYe, + InvisibleComma: CYe, + InvisibleTimes: EYe, + IOcy: _Ye, + iocy: AYe, + Iogon: LYe, + iogon: RYe, + Iopf: MYe, + iopf: DYe, + Iota: PYe, + iota: NYe, + iprod: IYe, + iquest: $Ye, + iscr: BYe, + Iscr: FYe, + isin: zYe, + isindot: QYe, + isinE: UYe, + isins: VYe, + isinsv: qYe, + isinv: YYe, + it: WYe, + Itilde: GYe, + itilde: XYe, + Iukcy: HYe, + iukcy: ZYe, + Iuml: jYe, + iuml: KYe, + Jcirc: JYe, + jcirc: eWe, + Jcy: tWe, + jcy: rWe, + Jfr: nWe, + jfr: iWe, + jmath: sWe, + Jopf: aWe, + jopf: oWe, + Jscr: lWe, + jscr: cWe, + Jsercy: uWe, + jsercy: hWe, + Jukcy: fWe, + jukcy: dWe, + Kappa: pWe, + kappa: gWe, + kappav: mWe, + Kcedil: vWe, + kcedil: yWe, + Kcy: bWe, + kcy: xWe, + Kfr: wWe, + kfr: OWe, + kgreen: kWe, + KHcy: SWe, + khcy: TWe, + KJcy: CWe, + kjcy: EWe, + Kopf: _We, + kopf: AWe, + Kscr: LWe, + kscr: RWe, + lAarr: MWe, + Lacute: DWe, + lacute: PWe, + laemptyv: NWe, + lagran: IWe, + Lambda: $We, + lambda: BWe, + lang: FWe, + Lang: zWe, + langd: QWe, + langle: UWe, + lap: VWe, + Laplacetrf: qWe, + laquo: YWe, + larrb: WWe, + larrbfs: GWe, + larr: XWe, + Larr: HWe, + lArr: ZWe, + larrfs: jWe, + larrhk: KWe, + larrlp: JWe, + larrpl: eGe, + larrsim: tGe, + larrtl: rGe, + latail: nGe, + lAtail: iGe, + lat: sGe, + late: aGe, + lates: oGe, + lbarr: lGe, + lBarr: cGe, + lbbrk: uGe, + lbrace: hGe, + lbrack: fGe, + lbrke: dGe, + lbrksld: pGe, + lbrkslu: gGe, + Lcaron: mGe, + lcaron: vGe, + Lcedil: yGe, + lcedil: bGe, + lceil: xGe, + lcub: wGe, + Lcy: OGe, + lcy: kGe, + ldca: SGe, + ldquo: TGe, + ldquor: CGe, + ldrdhar: EGe, + ldrushar: _Ge, + ldsh: AGe, + le: LGe, + lE: RGe, + LeftAngleBracket: MGe, + LeftArrowBar: DGe, + leftarrow: PGe, + LeftArrow: NGe, + Leftarrow: IGe, + LeftArrowRightArrow: $Ge, + leftarrowtail: BGe, + LeftCeiling: FGe, + LeftDoubleBracket: zGe, + LeftDownTeeVector: QGe, + LeftDownVectorBar: UGe, + LeftDownVector: VGe, + LeftFloor: qGe, + leftharpoondown: YGe, + leftharpoonup: WGe, + leftleftarrows: GGe, + leftrightarrow: XGe, + LeftRightArrow: HGe, + Leftrightarrow: ZGe, + leftrightarrows: jGe, + leftrightharpoons: KGe, + leftrightsquigarrow: JGe, + LeftRightVector: eXe, + LeftTeeArrow: tXe, + LeftTee: rXe, + LeftTeeVector: nXe, + leftthreetimes: iXe, + LeftTriangleBar: sXe, + LeftTriangle: aXe, + LeftTriangleEqual: oXe, + LeftUpDownVector: lXe, + LeftUpTeeVector: cXe, + LeftUpVectorBar: uXe, + LeftUpVector: hXe, + LeftVectorBar: fXe, + LeftVector: dXe, + lEg: pXe, + leg: gXe, + leq: mXe, + leqq: vXe, + leqslant: yXe, + lescc: bXe, + les: xXe, + lesdot: wXe, + lesdoto: OXe, + lesdotor: kXe, + lesg: SXe, + lesges: TXe, + lessapprox: CXe, + lessdot: EXe, + lesseqgtr: _Xe, + lesseqqgtr: AXe, + LessEqualGreater: LXe, + LessFullEqual: RXe, + LessGreater: MXe, + lessgtr: DXe, + LessLess: PXe, + lesssim: NXe, + LessSlantEqual: IXe, + LessTilde: $Xe, + lfisht: BXe, + lfloor: FXe, + Lfr: zXe, + lfr: QXe, + lg: UXe, + lgE: VXe, + lHar: qXe, + lhard: YXe, + lharu: WXe, + lharul: GXe, + lhblk: XXe, + LJcy: HXe, + ljcy: ZXe, + llarr: jXe, + ll: KXe, + Ll: JXe, + llcorner: eHe, + Lleftarrow: tHe, + llhard: rHe, + lltri: nHe, + Lmidot: iHe, + lmidot: sHe, + lmoustache: aHe, + lmoust: oHe, + lnap: lHe, + lnapprox: cHe, + lne: uHe, + lnE: hHe, + lneq: fHe, + lneqq: dHe, + lnsim: pHe, + loang: gHe, + loarr: mHe, + lobrk: vHe, + longleftarrow: yHe, + LongLeftArrow: bHe, + Longleftarrow: xHe, + longleftrightarrow: wHe, + LongLeftRightArrow: OHe, + Longleftrightarrow: kHe, + longmapsto: SHe, + longrightarrow: THe, + LongRightArrow: CHe, + Longrightarrow: EHe, + looparrowleft: _He, + looparrowright: AHe, + lopar: LHe, + Lopf: RHe, + lopf: MHe, + loplus: DHe, + lotimes: PHe, + lowast: NHe, + lowbar: IHe, + LowerLeftArrow: $He, + LowerRightArrow: BHe, + loz: FHe, + lozenge: zHe, + lozf: QHe, + lpar: UHe, + lparlt: VHe, + lrarr: qHe, + lrcorner: YHe, + lrhar: WHe, + lrhard: GHe, + lrm: XHe, + lrtri: HHe, + lsaquo: ZHe, + lscr: jHe, + Lscr: KHe, + lsh: JHe, + Lsh: eZe, + lsim: tZe, + lsime: rZe, + lsimg: nZe, + lsqb: iZe, + lsquo: sZe, + lsquor: aZe, + Lstrok: oZe, + lstrok: lZe, + ltcc: cZe, + ltcir: uZe, + lt: hZe, + LT: fZe, + Lt: dZe, + ltdot: pZe, + lthree: gZe, + ltimes: mZe, + ltlarr: vZe, + ltquest: yZe, + ltri: bZe, + ltrie: xZe, + ltrif: wZe, + ltrPar: OZe, + lurdshar: kZe, + luruhar: SZe, + lvertneqq: TZe, + lvnE: CZe, + macr: EZe, + male: _Ze, + malt: AZe, + maltese: LZe, Map: "\u2905", - map: LZe, - mapsto: RZe, - mapstodown: MZe, - mapstoleft: DZe, - mapstoup: PZe, - marker: NZe, - mcomma: IZe, - Mcy: $Ze, - mcy: BZe, - mdash: FZe, - mDDot: zZe, - measuredangle: QZe, - MediumSpace: UZe, - Mellintrf: VZe, - Mfr: qZe, - mfr: YZe, - mho: WZe, - micro: GZe, - midast: XZe, - midcir: HZe, - mid: ZZe, - middot: jZe, - minusb: KZe, - minus: JZe, - minusd: eje, - minusdu: tje, - MinusPlus: rje, - mlcp: nje, - mldr: ije, - mnplus: sje, - models: aje, - Mopf: oje, - mopf: lje, - mp: cje, - mscr: uje, - Mscr: hje, - mstpos: fje, - Mu: dje, - mu: pje, - multimap: gje, - mumap: mje, - nabla: vje, - Nacute: yje, - nacute: bje, - nang: xje, - nap: wje, - napE: Oje, - napid: kje, - napos: Sje, - napprox: Tje, - natural: Cje, - naturals: Eje, - natur: _je, - nbsp: Aje, - nbump: Lje, - nbumpe: Rje, - ncap: Mje, - Ncaron: Dje, - ncaron: Pje, - Ncedil: Nje, - ncedil: Ije, - ncong: $je, - ncongdot: Bje, - ncup: Fje, - Ncy: zje, - ncy: Qje, - ndash: Uje, - nearhk: Vje, - nearr: qje, - neArr: Yje, - nearrow: Wje, - ne: Gje, - nedot: Xje, - NegativeMediumSpace: Hje, - NegativeThickSpace: Zje, - NegativeThinSpace: jje, - NegativeVeryThinSpace: Kje, - nequiv: Jje, - nesear: eKe, - nesim: tKe, - NestedGreaterGreater: rKe, - NestedLessLess: nKe, - NewLine: iKe, - nexist: sKe, - nexists: aKe, - Nfr: oKe, - nfr: lKe, - ngE: cKe, - nge: uKe, - ngeq: hKe, - ngeqq: fKe, - ngeqslant: dKe, - nges: pKe, - nGg: gKe, - ngsim: mKe, - nGt: vKe, - ngt: yKe, - ngtr: bKe, - nGtv: xKe, - nharr: wKe, - nhArr: OKe, - nhpar: kKe, - ni: SKe, - nis: TKe, - nisd: CKe, - niv: EKe, - NJcy: _Ke, - njcy: AKe, - nlarr: LKe, - nlArr: RKe, - nldr: MKe, - nlE: DKe, - nle: PKe, - nleftarrow: NKe, - nLeftarrow: IKe, - nleftrightarrow: $Ke, - nLeftrightarrow: BKe, - nleq: FKe, - nleqq: zKe, - nleqslant: QKe, - nles: UKe, - nless: VKe, - nLl: qKe, - nlsim: YKe, - nLt: WKe, - nlt: GKe, - nltri: XKe, - nltrie: HKe, - nLtv: ZKe, - nmid: jKe, - NoBreak: KKe, - NonBreakingSpace: JKe, - nopf: eJe, - Nopf: tJe, - Not: rJe, - not: nJe, - NotCongruent: iJe, - NotCupCap: sJe, - NotDoubleVerticalBar: aJe, - NotElement: oJe, - NotEqual: lJe, - NotEqualTilde: cJe, - NotExists: uJe, - NotGreater: hJe, - NotGreaterEqual: fJe, - NotGreaterFullEqual: dJe, - NotGreaterGreater: pJe, - NotGreaterLess: gJe, - NotGreaterSlantEqual: mJe, - NotGreaterTilde: vJe, - NotHumpDownHump: yJe, - NotHumpEqual: bJe, - notin: xJe, - notindot: wJe, - notinE: OJe, - notinva: kJe, - notinvb: SJe, - notinvc: TJe, - NotLeftTriangleBar: CJe, - NotLeftTriangle: EJe, - NotLeftTriangleEqual: _Je, - NotLess: AJe, - NotLessEqual: LJe, - NotLessGreater: RJe, - NotLessLess: MJe, - NotLessSlantEqual: DJe, - NotLessTilde: PJe, - NotNestedGreaterGreater: NJe, - NotNestedLessLess: IJe, - notni: $Je, - notniva: BJe, - notnivb: FJe, - notnivc: zJe, - NotPrecedes: QJe, - NotPrecedesEqual: UJe, - NotPrecedesSlantEqual: VJe, - NotReverseElement: qJe, - NotRightTriangleBar: YJe, - NotRightTriangle: WJe, - NotRightTriangleEqual: GJe, - NotSquareSubset: XJe, - NotSquareSubsetEqual: HJe, - NotSquareSuperset: ZJe, - NotSquareSupersetEqual: jJe, - NotSubset: KJe, - NotSubsetEqual: JJe, - NotSucceeds: eet, - NotSucceedsEqual: tet, - NotSucceedsSlantEqual: ret, - NotSucceedsTilde: net, - NotSuperset: iet, - NotSupersetEqual: set, - NotTilde: aet, - NotTildeEqual: oet, - NotTildeFullEqual: cet, - NotTildeTilde: uet, - NotVerticalBar: het, - nparallel: fet, - npar: det, - nparsl: pet, - npart: get, - npolint: met, - npr: vet, - nprcue: yet, - nprec: bet, - npreceq: xet, - npre: wet, - nrarrc: Oet, - nrarr: ket, - nrArr: Tet, - nrarrw: Cet, - nrightarrow: Eet, - nRightarrow: _et, - nrtri: Aet, - nrtrie: Let, - nsc: Ret, - nsccue: Met, - nsce: Det, - Nscr: Pet, - nscr: Net, - nshortmid: Iet, - nshortparallel: $et, - nsim: Bet, - nsime: Fet, - nsimeq: zet, - nsmid: Qet, - nspar: Uet, - nsqsube: Vet, - nsqsupe: qet, - nsub: Yet, - nsubE: Wet, - nsube: Get, - nsubset: Xet, - nsubseteq: Het, - nsubseteqq: Zet, - nsucc: jet, - nsucceq: Ket, - nsup: Jet, - nsupE: ett, - nsupe: ttt, - nsupset: rtt, - nsupseteq: ntt, - nsupseteqq: itt, - ntgl: stt, - Ntilde: att, - ntilde: ott, - ntlg: ltt, - ntriangleleft: ctt, - ntrianglelefteq: utt, - ntriangleright: htt, - ntrianglerighteq: ftt, - Nu: dtt, - nu: ptt, - num: gtt, - numero: mtt, - numsp: vtt, - nvap: ytt, - nvdash: btt, - nvDash: xtt, - nVdash: wtt, - nVDash: Ott, - nvge: ktt, - nvgt: Stt, - nvHarr: Ttt, - nvinfin: Ctt, - nvlArr: Ett, - nvle: _tt, - nvlt: Att, - nvltrie: Ltt, - nvrArr: Rtt, - nvrtrie: Mtt, - nvsim: Dtt, - nwarhk: Ptt, - nwarr: Ntt, - nwArr: Itt, - nwarrow: $tt, - nwnear: Btt, - Oacute: Ftt, - oacute: ztt, - oast: Qtt, - Ocirc: Utt, - ocirc: Vtt, - ocir: qtt, - Ocy: Ytt, - ocy: Wtt, - odash: Gtt, - Odblac: Xtt, - odblac: Htt, - odiv: Ztt, - odot: jtt, - odsold: Ktt, - OElig: Jtt, - oelig: ert, - ofcir: trt, - Ofr: rrt, - ofr: nrt, - ogon: irt, - Ograve: srt, - ograve: art, - ogt: ort, - ohbar: lrt, - ohm: crt, - oint: urt, - olarr: hrt, - olcir: frt, - olcross: drt, - oline: prt, - olt: grt, - Omacr: mrt, - omacr: vrt, - Omega: yrt, - omega: brt, - Omicron: xrt, - omicron: wrt, - omid: Ort, - ominus: krt, - Oopf: Srt, - oopf: Trt, - opar: Crt, - OpenCurlyDoubleQuote: Ert, - OpenCurlyQuote: _rt, - operp: Art, - oplus: Lrt, - orarr: Rrt, - Or: Mrt, - or: Drt, - ord: Prt, - order: Nrt, - orderof: Irt, - ordf: $rt, - ordm: Brt, - origof: Frt, - oror: zrt, - orslope: Qrt, - orv: Urt, - oS: Vrt, - Oscr: qrt, - oscr: Yrt, - Oslash: Wrt, - oslash: Grt, - osol: Xrt, - Otilde: Hrt, - otilde: Zrt, - otimesas: jrt, - Otimes: Krt, - otimes: Jrt, - Ouml: ent, - ouml: tnt, - ovbar: rnt, - OverBar: nnt, - OverBrace: int, - OverBracket: snt, - OverParenthesis: ant, - para: ont, - parallel: lnt, - par: cnt, - parsim: unt, - parsl: hnt, - part: fnt, - PartialD: dnt, - Pcy: pnt, - pcy: gnt, - percnt: mnt, - period: vnt, - permil: ynt, - perp: bnt, - pertenk: xnt, - Pfr: wnt, - pfr: Ont, - Phi: knt, - phi: Snt, - phiv: Tnt, - phmmat: Cnt, - phone: Ent, - Pi: _nt, - pi: Ant, - pitchfork: Lnt, - piv: Rnt, - planck: Mnt, - planckh: Dnt, - plankv: Pnt, - plusacir: Nnt, - plusb: Int, - pluscir: $nt, - plus: Bnt, - plusdo: Fnt, - plusdu: znt, - pluse: Qnt, - PlusMinus: Unt, - plusmn: Vnt, - plussim: qnt, - plustwo: Ynt, - pm: Wnt, - Poincareplane: Gnt, - pointint: Xnt, - popf: Hnt, - Popf: Znt, - pound: jnt, - prap: Knt, - Pr: Jnt, - pr: eit, - prcue: tit, - precapprox: rit, - prec: nit, - preccurlyeq: iit, - Precedes: sit, - PrecedesEqual: ait, - PrecedesSlantEqual: oit, - PrecedesTilde: lit, - preceq: cit, - precnapprox: uit, - precneqq: hit, - precnsim: fit, - pre: dit, - prE: pit, - precsim: git, - prime: mit, - Prime: vit, - primes: yit, - prnap: bit, - prnE: xit, - prnsim: wit, - prod: Oit, - Product: kit, - profalar: Sit, - profline: Tit, - profsurf: Cit, - prop: Eit, - Proportional: _it, - Proportion: Ait, - propto: Lit, - prsim: Rit, - prurel: Mit, - Pscr: Dit, - pscr: Pit, - Psi: Nit, - psi: Iit, - puncsp: $it, - Qfr: Bit, - qfr: Fit, - qint: zit, - qopf: Qit, - Qopf: Uit, - qprime: Vit, - Qscr: qit, - qscr: Yit, - quaternions: Wit, - quatint: Git, - quest: Xit, - questeq: Hit, - quot: Zit, - QUOT: jit, - rAarr: Kit, - race: Jit, - Racute: est, - racute: tst, - radic: rst, - raemptyv: nst, - rang: ist, - Rang: sst, - rangd: ast, - range: ost, - rangle: lst, - raquo: cst, - rarrap: ust, - rarrb: hst, - rarrbfs: fst, - rarrc: dst, - rarr: pst, - Rarr: gst, - rArr: mst, - rarrfs: vst, - rarrhk: yst, - rarrlp: bst, - rarrpl: xst, - rarrsim: wst, - Rarrtl: Ost, - rarrtl: kst, - rarrw: Sst, - ratail: Tst, - rAtail: Cst, - ratio: Est, - rationals: _st, - rbarr: Ast, - rBarr: Lst, - RBarr: Rst, - rbbrk: Mst, - rbrace: Dst, - rbrack: Pst, - rbrke: Nst, - rbrksld: Ist, - rbrkslu: $st, - Rcaron: Bst, - rcaron: Fst, - Rcedil: zst, - rcedil: Qst, - rceil: Ust, - rcub: Vst, - Rcy: qst, - rcy: Yst, - rdca: Wst, - rdldhar: Gst, - rdquo: Xst, - rdquor: Hst, - rdsh: Zst, - real: jst, - realine: Kst, - realpart: Jst, - reals: eat, - Re: tat, - rect: rat, - reg: nat, - REG: iat, - ReverseElement: sat, - ReverseEquilibrium: aat, - ReverseUpEquilibrium: oat, - rfisht: lat, - rfloor: cat, - rfr: uat, - Rfr: hat, - rHar: fat, - rhard: dat, - rharu: pat, - rharul: gat, - Rho: mat, - rho: vat, - rhov: yat, - RightAngleBracket: bat, - RightArrowBar: xat, - rightarrow: wat, - RightArrow: Oat, - Rightarrow: kat, - RightArrowLeftArrow: Sat, - rightarrowtail: Tat, - RightCeiling: Cat, - RightDoubleBracket: Eat, - RightDownTeeVector: _at, - RightDownVectorBar: Aat, - RightDownVector: Lat, - RightFloor: Rat, - rightharpoondown: Mat, - rightharpoonup: Dat, - rightleftarrows: Pat, - rightleftharpoons: Nat, - rightrightarrows: Iat, - rightsquigarrow: $at, - RightTeeArrow: Bat, - RightTee: Fat, - RightTeeVector: zat, - rightthreetimes: Qat, - RightTriangleBar: Uat, - RightTriangle: Vat, - RightTriangleEqual: qat, - RightUpDownVector: Yat, - RightUpTeeVector: Wat, - RightUpVectorBar: Gat, - RightUpVector: Xat, - RightVectorBar: Hat, - RightVector: Zat, - ring: jat, - risingdotseq: Kat, - rlarr: Jat, - rlhar: eot, - rlm: tot, - rmoustache: rot, - rmoust: not, - rnmid: iot, - roang: sot, - roarr: aot, - robrk: oot, - ropar: lot, - ropf: cot, - Ropf: uot, - roplus: hot, - rotimes: fot, - RoundImplies: dot, - rpar: pot, - rpargt: got, - rppolint: mot, - rrarr: vot, - Rrightarrow: yot, - rsaquo: bot, - rscr: xot, - Rscr: wot, - rsh: Oot, - Rsh: kot, - rsqb: Sot, - rsquo: Tot, - rsquor: Cot, - rthree: Eot, - rtimes: _ot, - rtri: Aot, - rtrie: Lot, - rtrif: Rot, - rtriltri: Mot, - RuleDelayed: Dot, - ruluhar: Pot, - rx: Not, - Sacute: Iot, - sacute: $ot, - sbquo: Bot, - scap: Fot, - Scaron: zot, - scaron: Qot, - Sc: Uot, - sc: Vot, - sccue: qot, - sce: Yot, - scE: Wot, - Scedil: Got, - scedil: Xot, - Scirc: Hot, - scirc: Zot, - scnap: jot, - scnE: Kot, - scnsim: Jot, - scpolint: elt, - scsim: tlt, - Scy: rlt, - scy: nlt, - sdotb: ilt, - sdot: slt, - sdote: alt, - searhk: olt, - searr: llt, - seArr: clt, - searrow: ult, - sect: hlt, - semi: flt, - seswar: dlt, - setminus: plt, - setmn: glt, - sext: mlt, - Sfr: vlt, - sfr: ylt, - sfrown: blt, - sharp: xlt, - SHCHcy: wlt, - shchcy: Olt, - SHcy: klt, - shcy: Slt, - ShortDownArrow: Tlt, - ShortLeftArrow: Clt, - shortmid: Elt, - shortparallel: _lt, - ShortRightArrow: Alt, - ShortUpArrow: Llt, - shy: Rlt, - Sigma: Mlt, - sigma: Dlt, - sigmaf: Plt, - sigmav: Nlt, - sim: Ilt, - simdot: $lt, - sime: Blt, - simeq: Flt, - simg: zlt, - simgE: Qlt, - siml: Ult, - simlE: Vlt, - simne: qlt, - simplus: Ylt, - simrarr: Wlt, - slarr: Glt, - SmallCircle: Xlt, - smallsetminus: Hlt, - smashp: Zlt, - smeparsl: jlt, - smid: Klt, - smile: Jlt, - smt: ect, - smte: tct, - smtes: rct, - SOFTcy: nct, - softcy: ict, - solbar: sct, - solb: act, - sol: oct, - Sopf: lct, - sopf: cct, - spades: uct, - spadesuit: hct, - spar: fct, - sqcap: dct, - sqcaps: pct, - sqcup: gct, - sqcups: mct, - Sqrt: vct, - sqsub: yct, - sqsube: bct, - sqsubset: xct, - sqsubseteq: wct, - sqsup: Oct, - sqsupe: kct, - sqsupset: Sct, - sqsupseteq: Tct, - square: Cct, - Square: Ect, - SquareIntersection: _ct, - SquareSubset: Act, - SquareSubsetEqual: Lct, - SquareSuperset: Rct, - SquareSupersetEqual: Mct, - SquareUnion: Dct, - squarf: Pct, - squ: Nct, - squf: Ict, - srarr: $ct, - Sscr: Bct, - sscr: Fct, - ssetmn: zct, - ssmile: Qct, - sstarf: Uct, - Star: Vct, - star: qct, - starf: Yct, - straightepsilon: Wct, - straightphi: Gct, - strns: Xct, - sub: Hct, - Sub: Zct, - subdot: jct, - subE: Kct, - sube: Jct, - subedot: eut, - submult: tut, - subnE: rut, - subne: nut, - subplus: iut, - subrarr: sut, - subset: aut, - Subset: out, - subseteq: lut, - subseteqq: cut, - SubsetEqual: uut, - subsetneq: hut, - subsetneqq: fut, - subsim: dut, - subsub: put, - subsup: gut, - succapprox: mut, - succ: vut, - succcurlyeq: yut, - Succeeds: but, - SucceedsEqual: xut, - SucceedsSlantEqual: wut, - SucceedsTilde: Out, - succeq: kut, - succnapprox: Sut, - succneqq: Tut, - succnsim: Cut, - succsim: Eut, - SuchThat: _ut, - sum: Aut, - Sum: Lut, - sung: Rut, - sup1: Mut, - sup2: Dut, - sup3: Put, - sup: Nut, - Sup: Iut, - supdot: $ut, - supdsub: But, - supE: Fut, - supe: zut, - supedot: Qut, - Superset: Uut, - SupersetEqual: Vut, - suphsol: qut, - suphsub: Yut, - suplarr: Wut, - supmult: Gut, - supnE: Xut, - supne: Hut, - supplus: Zut, - supset: jut, - Supset: Kut, - supseteq: Jut, - supseteqq: eht, - supsetneq: tht, - supsetneqq: rht, - supsim: nht, - supsub: iht, - supsup: sht, - swarhk: aht, - swarr: oht, - swArr: lht, - swarrow: cht, - swnwar: uht, - szlig: hht, - Tab: fht, - target: dht, - Tau: pht, - tau: ght, - tbrk: mht, - Tcaron: vht, - tcaron: yht, - Tcedil: bht, - tcedil: xht, - Tcy: wht, - tcy: Oht, - tdot: kht, - telrec: Sht, - Tfr: Tht, - tfr: Cht, - there4: Eht, - therefore: _ht, - Therefore: Aht, - Theta: Lht, - theta: Rht, - thetasym: Mht, - thetav: Dht, - thickapprox: Pht, - thicksim: Nht, - ThickSpace: Iht, - ThinSpace: $ht, - thinsp: Bht, - thkap: Fht, - thksim: zht, - THORN: Qht, - thorn: Uht, - tilde: Vht, - Tilde: qht, - TildeEqual: Yht, - TildeFullEqual: Wht, - TildeTilde: Ght, - timesbar: Xht, - timesb: Hht, - times: Zht, - timesd: jht, - tint: Kht, - toea: Jht, - topbot: eft, - topcir: tft, - top: rft, - Topf: nft, - topf: ift, - topfork: sft, - tosa: aft, - tprime: oft, - trade: lft, - TRADE: cft, - triangle: uft, - triangledown: hft, - triangleleft: fft, - trianglelefteq: dft, - triangleq: pft, - triangleright: gft, - trianglerighteq: mft, - tridot: vft, - trie: yft, - triminus: bft, - TripleDot: xft, - triplus: wft, - trisb: Oft, - tritime: kft, - trpezium: Sft, - Tscr: Tft, - tscr: Cft, - TScy: Eft, - tscy: _ft, - TSHcy: Aft, - tshcy: Lft, - Tstrok: Rft, - tstrok: Mft, - twixt: Dft, - twoheadleftarrow: Pft, - twoheadrightarrow: Nft, - Uacute: Ift, - uacute: $ft, - uarr: Bft, - Uarr: Fft, - uArr: zft, - Uarrocir: Qft, - Ubrcy: Uft, - ubrcy: Vft, - Ubreve: qft, - ubreve: Yft, - Ucirc: Wft, - ucirc: Gft, - Ucy: Xft, - ucy: Hft, - udarr: Zft, - Udblac: jft, - udblac: Kft, - udhar: Jft, - ufisht: edt, - Ufr: tdt, - ufr: rdt, - Ugrave: ndt, - ugrave: idt, - uHar: sdt, - uharl: adt, - uharr: odt, - uhblk: ldt, - ulcorn: cdt, - ulcorner: udt, - ulcrop: hdt, - ultri: fdt, - Umacr: ddt, - umacr: pdt, - uml: gdt, - UnderBar: mdt, - UnderBrace: vdt, - UnderBracket: ydt, - UnderParenthesis: bdt, - Union: xdt, - UnionPlus: wdt, - Uogon: Odt, - uogon: kdt, - Uopf: Sdt, - uopf: Tdt, - UpArrowBar: Cdt, - uparrow: Edt, - UpArrow: _dt, - Uparrow: Adt, - UpArrowDownArrow: Ldt, - updownarrow: Rdt, - UpDownArrow: Mdt, - Updownarrow: Ddt, - UpEquilibrium: Pdt, - upharpoonleft: Ndt, - upharpoonright: Idt, - uplus: $dt, - UpperLeftArrow: Bdt, - UpperRightArrow: Fdt, - upsi: zdt, - Upsi: Qdt, - upsih: Udt, - Upsilon: Vdt, - upsilon: qdt, - UpTeeArrow: Ydt, - UpTee: Wdt, - upuparrows: Gdt, - urcorn: Xdt, - urcorner: Hdt, - urcrop: Zdt, - Uring: jdt, - uring: Kdt, - urtri: Jdt, - Uscr: e0t, - uscr: t0t, - utdot: r0t, - Utilde: n0t, - utilde: i0t, - utri: s0t, - utrif: a0t, - uuarr: o0t, - Uuml: l0t, - uuml: c0t, - uwangle: u0t, - vangrt: h0t, - varepsilon: f0t, - varkappa: d0t, - varnothing: p0t, - varphi: g0t, - varpi: m0t, - varpropto: v0t, - varr: y0t, - vArr: b0t, - varrho: x0t, - varsigma: w0t, - varsubsetneq: O0t, - varsubsetneqq: k0t, - varsupsetneq: S0t, - varsupsetneqq: T0t, - vartheta: C0t, - vartriangleleft: E0t, - vartriangleright: _0t, - vBar: A0t, - Vbar: L0t, - vBarv: R0t, - Vcy: M0t, - vcy: D0t, - vdash: P0t, - vDash: N0t, - Vdash: I0t, - VDash: $0t, - Vdashl: B0t, - veebar: F0t, - vee: z0t, - Vee: Q0t, - veeeq: U0t, - vellip: V0t, - verbar: q0t, - Verbar: Y0t, - vert: W0t, - Vert: G0t, - VerticalBar: X0t, - VerticalLine: H0t, - VerticalSeparator: Z0t, - VerticalTilde: j0t, - VeryThinSpace: K0t, - Vfr: J0t, - vfr: ept, - vltri: tpt, - vnsub: rpt, - vnsup: npt, - Vopf: ipt, - vopf: spt, - vprop: apt, - vrtri: opt, - Vscr: lpt, - vscr: cpt, - vsubnE: upt, - vsubne: hpt, - vsupnE: fpt, - vsupne: dpt, - Vvdash: ppt, - vzigzag: gpt, - Wcirc: mpt, - wcirc: vpt, - wedbar: ypt, - wedge: bpt, - Wedge: xpt, - wedgeq: wpt, - weierp: Opt, - Wfr: kpt, - wfr: Spt, - Wopf: Tpt, - wopf: Cpt, - wp: Ept, - wr: _pt, - wreath: Apt, - Wscr: Lpt, - wscr: Rpt, - xcap: Mpt, - xcirc: Dpt, - xcup: Ppt, - xdtri: Npt, - Xfr: Ipt, - xfr: $pt, - xharr: Bpt, - xhArr: Fpt, - Xi: zpt, - xi: Qpt, - xlarr: Upt, - xlArr: Vpt, - xmap: qpt, - xnis: Ypt, - xodot: Wpt, - Xopf: Gpt, - xopf: Xpt, - xoplus: Hpt, - xotime: Zpt, - xrarr: jpt, - xrArr: Kpt, - Xscr: Jpt, - xscr: egt, - xsqcup: tgt, - xuplus: rgt, - xutri: ngt, - xvee: igt, - xwedge: sgt, - Yacute: agt, - yacute: ogt, - YAcy: lgt, - yacy: cgt, - Ycirc: ugt, - ycirc: hgt, - Ycy: fgt, - ycy: dgt, - yen: pgt, - Yfr: ggt, - yfr: mgt, - YIcy: vgt, - yicy: ygt, - Yopf: bgt, - yopf: xgt, - Yscr: wgt, - yscr: Ogt, - YUcy: kgt, - yucy: Sgt, - yuml: Tgt, - Yuml: Cgt, - Zacute: Egt, - zacute: _gt, - Zcaron: Agt, - zcaron: Lgt, - Zcy: Rgt, - zcy: Mgt, - Zdot: Dgt, - zdot: Pgt, - zeetrf: Ngt, - ZeroWidthSpace: Igt, - Zeta: $gt, - zeta: Bgt, - zfr: Fgt, - Zfr: zgt, - ZHcy: Qgt, - zhcy: Ugt, - zigrarr: Vgt, - zopf: qgt, - Zopf: Ygt, - Zscr: Wgt, - zscr: Ggt, - zwj: Xgt, - zwnj: Hgt + map: RZe, + mapsto: MZe, + mapstodown: DZe, + mapstoleft: PZe, + mapstoup: NZe, + marker: IZe, + mcomma: $Ze, + Mcy: BZe, + mcy: FZe, + mdash: zZe, + mDDot: QZe, + measuredangle: UZe, + MediumSpace: VZe, + Mellintrf: qZe, + Mfr: YZe, + mfr: WZe, + mho: GZe, + micro: XZe, + midast: HZe, + midcir: ZZe, + mid: jZe, + middot: KZe, + minusb: JZe, + minus: eje, + minusd: tje, + minusdu: rje, + MinusPlus: nje, + mlcp: ije, + mldr: sje, + mnplus: aje, + models: oje, + Mopf: lje, + mopf: cje, + mp: uje, + mscr: hje, + Mscr: fje, + mstpos: dje, + Mu: pje, + mu: gje, + multimap: mje, + mumap: vje, + nabla: yje, + Nacute: bje, + nacute: xje, + nang: wje, + nap: Oje, + napE: kje, + napid: Sje, + napos: Tje, + napprox: Cje, + natural: Eje, + naturals: _je, + natur: Aje, + nbsp: Lje, + nbump: Rje, + nbumpe: Mje, + ncap: Dje, + Ncaron: Pje, + ncaron: Nje, + Ncedil: Ije, + ncedil: $je, + ncong: Bje, + ncongdot: Fje, + ncup: zje, + Ncy: Qje, + ncy: Uje, + ndash: Vje, + nearhk: qje, + nearr: Yje, + neArr: Wje, + nearrow: Gje, + ne: Xje, + nedot: Hje, + NegativeMediumSpace: Zje, + NegativeThickSpace: jje, + NegativeThinSpace: Kje, + NegativeVeryThinSpace: Jje, + nequiv: eKe, + nesear: tKe, + nesim: rKe, + NestedGreaterGreater: nKe, + NestedLessLess: iKe, + NewLine: sKe, + nexist: aKe, + nexists: oKe, + Nfr: lKe, + nfr: cKe, + ngE: uKe, + nge: hKe, + ngeq: fKe, + ngeqq: dKe, + ngeqslant: pKe, + nges: gKe, + nGg: mKe, + ngsim: vKe, + nGt: yKe, + ngt: bKe, + ngtr: xKe, + nGtv: wKe, + nharr: OKe, + nhArr: kKe, + nhpar: SKe, + ni: TKe, + nis: CKe, + nisd: EKe, + niv: _Ke, + NJcy: AKe, + njcy: LKe, + nlarr: RKe, + nlArr: MKe, + nldr: DKe, + nlE: PKe, + nle: NKe, + nleftarrow: IKe, + nLeftarrow: $Ke, + nleftrightarrow: BKe, + nLeftrightarrow: FKe, + nleq: zKe, + nleqq: QKe, + nleqslant: UKe, + nles: VKe, + nless: qKe, + nLl: YKe, + nlsim: WKe, + nLt: GKe, + nlt: XKe, + nltri: HKe, + nltrie: ZKe, + nLtv: jKe, + nmid: KKe, + NoBreak: JKe, + NonBreakingSpace: eJe, + nopf: tJe, + Nopf: rJe, + Not: nJe, + not: iJe, + NotCongruent: sJe, + NotCupCap: aJe, + NotDoubleVerticalBar: oJe, + NotElement: lJe, + NotEqual: cJe, + NotEqualTilde: uJe, + NotExists: hJe, + NotGreater: fJe, + NotGreaterEqual: dJe, + NotGreaterFullEqual: pJe, + NotGreaterGreater: gJe, + NotGreaterLess: mJe, + NotGreaterSlantEqual: vJe, + NotGreaterTilde: yJe, + NotHumpDownHump: bJe, + NotHumpEqual: xJe, + notin: wJe, + notindot: OJe, + notinE: kJe, + notinva: SJe, + notinvb: TJe, + notinvc: CJe, + NotLeftTriangleBar: EJe, + NotLeftTriangle: _Je, + NotLeftTriangleEqual: AJe, + NotLess: LJe, + NotLessEqual: RJe, + NotLessGreater: MJe, + NotLessLess: DJe, + NotLessSlantEqual: PJe, + NotLessTilde: NJe, + NotNestedGreaterGreater: IJe, + NotNestedLessLess: $Je, + notni: BJe, + notniva: FJe, + notnivb: zJe, + notnivc: QJe, + NotPrecedes: UJe, + NotPrecedesEqual: VJe, + NotPrecedesSlantEqual: qJe, + NotReverseElement: YJe, + NotRightTriangleBar: WJe, + NotRightTriangle: GJe, + NotRightTriangleEqual: XJe, + NotSquareSubset: HJe, + NotSquareSubsetEqual: ZJe, + NotSquareSuperset: jJe, + NotSquareSupersetEqual: KJe, + NotSubset: JJe, + NotSubsetEqual: eet, + NotSucceeds: tet, + NotSucceedsEqual: ret, + NotSucceedsSlantEqual: net, + NotSucceedsTilde: iet, + NotSuperset: set, + NotSupersetEqual: aet, + NotTilde: oet, + NotTildeEqual: cet, + NotTildeFullEqual: uet, + NotTildeTilde: het, + NotVerticalBar: fet, + nparallel: det, + npar: pet, + nparsl: get, + npart: met, + npolint: vet, + npr: yet, + nprcue: bet, + nprec: xet, + npreceq: wet, + npre: Oet, + nrarrc: ket, + nrarr: Tet, + nrArr: Cet, + nrarrw: Eet, + nrightarrow: _et, + nRightarrow: Aet, + nrtri: Let, + nrtrie: Ret, + nsc: Met, + nsccue: Det, + nsce: Pet, + Nscr: Net, + nscr: Iet, + nshortmid: $et, + nshortparallel: Bet, + nsim: Fet, + nsime: zet, + nsimeq: Qet, + nsmid: Uet, + nspar: Vet, + nsqsube: qet, + nsqsupe: Yet, + nsub: Wet, + nsubE: Get, + nsube: Xet, + nsubset: Het, + nsubseteq: Zet, + nsubseteqq: jet, + nsucc: Ket, + nsucceq: Jet, + nsup: ett, + nsupE: ttt, + nsupe: rtt, + nsupset: ntt, + nsupseteq: itt, + nsupseteqq: stt, + ntgl: att, + Ntilde: ott, + ntilde: ltt, + ntlg: ctt, + ntriangleleft: utt, + ntrianglelefteq: htt, + ntriangleright: ftt, + ntrianglerighteq: dtt, + Nu: ptt, + nu: gtt, + num: mtt, + numero: vtt, + numsp: ytt, + nvap: btt, + nvdash: xtt, + nvDash: wtt, + nVdash: Ott, + nVDash: ktt, + nvge: Stt, + nvgt: Ttt, + nvHarr: Ctt, + nvinfin: Ett, + nvlArr: _tt, + nvle: Att, + nvlt: Ltt, + nvltrie: Rtt, + nvrArr: Mtt, + nvrtrie: Dtt, + nvsim: Ptt, + nwarhk: Ntt, + nwarr: Itt, + nwArr: $tt, + nwarrow: Btt, + nwnear: Ftt, + Oacute: ztt, + oacute: Qtt, + oast: Utt, + Ocirc: Vtt, + ocirc: qtt, + ocir: Ytt, + Ocy: Wtt, + ocy: Gtt, + odash: Xtt, + Odblac: Htt, + odblac: Ztt, + odiv: jtt, + odot: Ktt, + odsold: Jtt, + OElig: ert, + oelig: trt, + ofcir: rrt, + Ofr: nrt, + ofr: irt, + ogon: srt, + Ograve: art, + ograve: ort, + ogt: lrt, + ohbar: crt, + ohm: urt, + oint: hrt, + olarr: frt, + olcir: drt, + olcross: prt, + oline: grt, + olt: mrt, + Omacr: vrt, + omacr: yrt, + Omega: brt, + omega: xrt, + Omicron: wrt, + omicron: Ort, + omid: krt, + ominus: Srt, + Oopf: Trt, + oopf: Crt, + opar: Ert, + OpenCurlyDoubleQuote: _rt, + OpenCurlyQuote: Art, + operp: Lrt, + oplus: Rrt, + orarr: Mrt, + Or: Drt, + or: Prt, + ord: Nrt, + order: Irt, + orderof: $rt, + ordf: Brt, + ordm: Frt, + origof: zrt, + oror: Qrt, + orslope: Urt, + orv: Vrt, + oS: qrt, + Oscr: Yrt, + oscr: Wrt, + Oslash: Grt, + oslash: Xrt, + osol: Hrt, + Otilde: Zrt, + otilde: jrt, + otimesas: Krt, + Otimes: Jrt, + otimes: ent, + Ouml: tnt, + ouml: rnt, + ovbar: nnt, + OverBar: int, + OverBrace: snt, + OverBracket: ant, + OverParenthesis: ont, + para: lnt, + parallel: cnt, + par: unt, + parsim: hnt, + parsl: fnt, + part: dnt, + PartialD: pnt, + Pcy: gnt, + pcy: mnt, + percnt: vnt, + period: ynt, + permil: bnt, + perp: xnt, + pertenk: wnt, + Pfr: Ont, + pfr: knt, + Phi: Snt, + phi: Tnt, + phiv: Cnt, + phmmat: Ent, + phone: _nt, + Pi: Ant, + pi: Lnt, + pitchfork: Rnt, + piv: Mnt, + planck: Dnt, + planckh: Pnt, + plankv: Nnt, + plusacir: Int, + plusb: $nt, + pluscir: Bnt, + plus: Fnt, + plusdo: znt, + plusdu: Qnt, + pluse: Unt, + PlusMinus: Vnt, + plusmn: qnt, + plussim: Ynt, + plustwo: Wnt, + pm: Gnt, + Poincareplane: Xnt, + pointint: Hnt, + popf: Znt, + Popf: jnt, + pound: Knt, + prap: Jnt, + Pr: eit, + pr: tit, + prcue: rit, + precapprox: nit, + prec: iit, + preccurlyeq: sit, + Precedes: ait, + PrecedesEqual: oit, + PrecedesSlantEqual: lit, + PrecedesTilde: cit, + preceq: uit, + precnapprox: hit, + precneqq: fit, + precnsim: dit, + pre: pit, + prE: git, + precsim: mit, + prime: vit, + Prime: yit, + primes: bit, + prnap: xit, + prnE: wit, + prnsim: Oit, + prod: kit, + Product: Sit, + profalar: Tit, + profline: Cit, + profsurf: Eit, + prop: _it, + Proportional: Ait, + Proportion: Lit, + propto: Rit, + prsim: Mit, + prurel: Dit, + Pscr: Pit, + pscr: Nit, + Psi: Iit, + psi: $it, + puncsp: Bit, + Qfr: Fit, + qfr: zit, + qint: Qit, + qopf: Uit, + Qopf: Vit, + qprime: qit, + Qscr: Yit, + qscr: Wit, + quaternions: Git, + quatint: Xit, + quest: Hit, + questeq: Zit, + quot: jit, + QUOT: Kit, + rAarr: Jit, + race: est, + Racute: tst, + racute: rst, + radic: nst, + raemptyv: ist, + rang: sst, + Rang: ast, + rangd: ost, + range: lst, + rangle: cst, + raquo: ust, + rarrap: hst, + rarrb: fst, + rarrbfs: dst, + rarrc: pst, + rarr: gst, + Rarr: mst, + rArr: vst, + rarrfs: yst, + rarrhk: bst, + rarrlp: xst, + rarrpl: wst, + rarrsim: Ost, + Rarrtl: kst, + rarrtl: Sst, + rarrw: Tst, + ratail: Cst, + rAtail: Est, + ratio: _st, + rationals: Ast, + rbarr: Lst, + rBarr: Rst, + RBarr: Mst, + rbbrk: Dst, + rbrace: Pst, + rbrack: Nst, + rbrke: Ist, + rbrksld: $st, + rbrkslu: Bst, + Rcaron: Fst, + rcaron: zst, + Rcedil: Qst, + rcedil: Ust, + rceil: Vst, + rcub: qst, + Rcy: Yst, + rcy: Wst, + rdca: Gst, + rdldhar: Xst, + rdquo: Hst, + rdquor: Zst, + rdsh: jst, + real: Kst, + realine: Jst, + realpart: eat, + reals: tat, + Re: rat, + rect: nat, + reg: iat, + REG: sat, + ReverseElement: aat, + ReverseEquilibrium: oat, + ReverseUpEquilibrium: lat, + rfisht: cat, + rfloor: uat, + rfr: hat, + Rfr: fat, + rHar: dat, + rhard: pat, + rharu: gat, + rharul: mat, + Rho: vat, + rho: yat, + rhov: bat, + RightAngleBracket: xat, + RightArrowBar: wat, + rightarrow: Oat, + RightArrow: kat, + Rightarrow: Sat, + RightArrowLeftArrow: Tat, + rightarrowtail: Cat, + RightCeiling: Eat, + RightDoubleBracket: _at, + RightDownTeeVector: Aat, + RightDownVectorBar: Lat, + RightDownVector: Rat, + RightFloor: Mat, + rightharpoondown: Dat, + rightharpoonup: Pat, + rightleftarrows: Nat, + rightleftharpoons: Iat, + rightrightarrows: $at, + rightsquigarrow: Bat, + RightTeeArrow: Fat, + RightTee: zat, + RightTeeVector: Qat, + rightthreetimes: Uat, + RightTriangleBar: Vat, + RightTriangle: qat, + RightTriangleEqual: Yat, + RightUpDownVector: Wat, + RightUpTeeVector: Gat, + RightUpVectorBar: Xat, + RightUpVector: Hat, + RightVectorBar: Zat, + RightVector: jat, + ring: Kat, + risingdotseq: Jat, + rlarr: eot, + rlhar: tot, + rlm: rot, + rmoustache: not, + rmoust: iot, + rnmid: sot, + roang: aot, + roarr: oot, + robrk: lot, + ropar: cot, + ropf: uot, + Ropf: hot, + roplus: fot, + rotimes: dot, + RoundImplies: pot, + rpar: got, + rpargt: mot, + rppolint: vot, + rrarr: yot, + Rrightarrow: bot, + rsaquo: xot, + rscr: wot, + Rscr: Oot, + rsh: kot, + Rsh: Sot, + rsqb: Tot, + rsquo: Cot, + rsquor: Eot, + rthree: _ot, + rtimes: Aot, + rtri: Lot, + rtrie: Rot, + rtrif: Mot, + rtriltri: Dot, + RuleDelayed: Pot, + ruluhar: Not, + rx: Iot, + Sacute: $ot, + sacute: Bot, + sbquo: Fot, + scap: zot, + Scaron: Qot, + scaron: Uot, + Sc: Vot, + sc: qot, + sccue: Yot, + sce: Wot, + scE: Got, + Scedil: Xot, + scedil: Hot, + Scirc: Zot, + scirc: jot, + scnap: Kot, + scnE: Jot, + scnsim: elt, + scpolint: tlt, + scsim: rlt, + Scy: nlt, + scy: ilt, + sdotb: slt, + sdot: alt, + sdote: olt, + searhk: llt, + searr: clt, + seArr: ult, + searrow: hlt, + sect: flt, + semi: dlt, + seswar: plt, + setminus: glt, + setmn: mlt, + sext: vlt, + Sfr: ylt, + sfr: blt, + sfrown: xlt, + sharp: wlt, + SHCHcy: Olt, + shchcy: klt, + SHcy: Slt, + shcy: Tlt, + ShortDownArrow: Clt, + ShortLeftArrow: Elt, + shortmid: _lt, + shortparallel: Alt, + ShortRightArrow: Llt, + ShortUpArrow: Rlt, + shy: Mlt, + Sigma: Dlt, + sigma: Plt, + sigmaf: Nlt, + sigmav: Ilt, + sim: $lt, + simdot: Blt, + sime: Flt, + simeq: zlt, + simg: Qlt, + simgE: Ult, + siml: Vlt, + simlE: qlt, + simne: Ylt, + simplus: Wlt, + simrarr: Glt, + slarr: Xlt, + SmallCircle: Hlt, + smallsetminus: Zlt, + smashp: jlt, + smeparsl: Klt, + smid: Jlt, + smile: ect, + smt: tct, + smte: rct, + smtes: nct, + SOFTcy: ict, + softcy: sct, + solbar: act, + solb: oct, + sol: lct, + Sopf: cct, + sopf: uct, + spades: hct, + spadesuit: fct, + spar: dct, + sqcap: pct, + sqcaps: gct, + sqcup: mct, + sqcups: vct, + Sqrt: yct, + sqsub: bct, + sqsube: xct, + sqsubset: wct, + sqsubseteq: Oct, + sqsup: kct, + sqsupe: Sct, + sqsupset: Tct, + sqsupseteq: Cct, + square: Ect, + Square: _ct, + SquareIntersection: Act, + SquareSubset: Lct, + SquareSubsetEqual: Rct, + SquareSuperset: Mct, + SquareSupersetEqual: Dct, + SquareUnion: Pct, + squarf: Nct, + squ: Ict, + squf: $ct, + srarr: Bct, + Sscr: Fct, + sscr: zct, + ssetmn: Qct, + ssmile: Uct, + sstarf: Vct, + Star: qct, + star: Yct, + starf: Wct, + straightepsilon: Gct, + straightphi: Xct, + strns: Hct, + sub: Zct, + Sub: jct, + subdot: Kct, + subE: Jct, + sube: eut, + subedot: tut, + submult: rut, + subnE: nut, + subne: iut, + subplus: sut, + subrarr: aut, + subset: out, + Subset: lut, + subseteq: cut, + subseteqq: uut, + SubsetEqual: hut, + subsetneq: fut, + subsetneqq: dut, + subsim: put, + subsub: gut, + subsup: mut, + succapprox: vut, + succ: yut, + succcurlyeq: but, + Succeeds: xut, + SucceedsEqual: wut, + SucceedsSlantEqual: Out, + SucceedsTilde: kut, + succeq: Sut, + succnapprox: Tut, + succneqq: Cut, + succnsim: Eut, + succsim: _ut, + SuchThat: Aut, + sum: Lut, + Sum: Rut, + sung: Mut, + sup1: Dut, + sup2: Put, + sup3: Nut, + sup: Iut, + Sup: $ut, + supdot: But, + supdsub: Fut, + supE: zut, + supe: Qut, + supedot: Uut, + Superset: Vut, + SupersetEqual: qut, + suphsol: Yut, + suphsub: Wut, + suplarr: Gut, + supmult: Xut, + supnE: Hut, + supne: Zut, + supplus: jut, + supset: Kut, + Supset: Jut, + supseteq: eht, + supseteqq: tht, + supsetneq: rht, + supsetneqq: nht, + supsim: iht, + supsub: sht, + supsup: aht, + swarhk: oht, + swarr: lht, + swArr: cht, + swarrow: uht, + swnwar: hht, + szlig: fht, + Tab: dht, + target: pht, + Tau: ght, + tau: mht, + tbrk: vht, + Tcaron: yht, + tcaron: bht, + Tcedil: xht, + tcedil: wht, + Tcy: Oht, + tcy: kht, + tdot: Sht, + telrec: Tht, + Tfr: Cht, + tfr: Eht, + there4: _ht, + therefore: Aht, + Therefore: Lht, + Theta: Rht, + theta: Mht, + thetasym: Dht, + thetav: Pht, + thickapprox: Nht, + thicksim: Iht, + ThickSpace: $ht, + ThinSpace: Bht, + thinsp: Fht, + thkap: zht, + thksim: Qht, + THORN: Uht, + thorn: Vht, + tilde: qht, + Tilde: Yht, + TildeEqual: Wht, + TildeFullEqual: Ght, + TildeTilde: Xht, + timesbar: Hht, + timesb: Zht, + times: jht, + timesd: Kht, + tint: Jht, + toea: eft, + topbot: tft, + topcir: rft, + top: nft, + Topf: ift, + topf: sft, + topfork: aft, + tosa: oft, + tprime: lft, + trade: cft, + TRADE: uft, + triangle: hft, + triangledown: fft, + triangleleft: dft, + trianglelefteq: pft, + triangleq: gft, + triangleright: mft, + trianglerighteq: vft, + tridot: yft, + trie: bft, + triminus: xft, + TripleDot: wft, + triplus: Oft, + trisb: kft, + tritime: Sft, + trpezium: Tft, + Tscr: Cft, + tscr: Eft, + TScy: _ft, + tscy: Aft, + TSHcy: Lft, + tshcy: Rft, + Tstrok: Mft, + tstrok: Dft, + twixt: Pft, + twoheadleftarrow: Nft, + twoheadrightarrow: Ift, + Uacute: $ft, + uacute: Bft, + uarr: Fft, + Uarr: zft, + uArr: Qft, + Uarrocir: Uft, + Ubrcy: Vft, + ubrcy: qft, + Ubreve: Yft, + ubreve: Wft, + Ucirc: Gft, + ucirc: Xft, + Ucy: Hft, + ucy: Zft, + udarr: jft, + Udblac: Kft, + udblac: Jft, + udhar: edt, + ufisht: tdt, + Ufr: rdt, + ufr: ndt, + Ugrave: idt, + ugrave: sdt, + uHar: adt, + uharl: odt, + uharr: ldt, + uhblk: cdt, + ulcorn: udt, + ulcorner: hdt, + ulcrop: fdt, + ultri: ddt, + Umacr: pdt, + umacr: gdt, + uml: mdt, + UnderBar: vdt, + UnderBrace: ydt, + UnderBracket: bdt, + UnderParenthesis: xdt, + Union: wdt, + UnionPlus: Odt, + Uogon: kdt, + uogon: Sdt, + Uopf: Tdt, + uopf: Cdt, + UpArrowBar: Edt, + uparrow: _dt, + UpArrow: Adt, + Uparrow: Ldt, + UpArrowDownArrow: Rdt, + updownarrow: Mdt, + UpDownArrow: Ddt, + Updownarrow: Pdt, + UpEquilibrium: Ndt, + upharpoonleft: Idt, + upharpoonright: $dt, + uplus: Bdt, + UpperLeftArrow: Fdt, + UpperRightArrow: zdt, + upsi: Qdt, + Upsi: Udt, + upsih: Vdt, + Upsilon: qdt, + upsilon: Ydt, + UpTeeArrow: Wdt, + UpTee: Gdt, + upuparrows: Xdt, + urcorn: Hdt, + urcorner: Zdt, + urcrop: jdt, + Uring: Kdt, + uring: Jdt, + urtri: e0t, + Uscr: t0t, + uscr: r0t, + utdot: n0t, + Utilde: i0t, + utilde: s0t, + utri: a0t, + utrif: o0t, + uuarr: l0t, + Uuml: c0t, + uuml: u0t, + uwangle: h0t, + vangrt: f0t, + varepsilon: d0t, + varkappa: p0t, + varnothing: g0t, + varphi: m0t, + varpi: v0t, + varpropto: y0t, + varr: b0t, + vArr: x0t, + varrho: w0t, + varsigma: O0t, + varsubsetneq: k0t, + varsubsetneqq: S0t, + varsupsetneq: T0t, + varsupsetneqq: C0t, + vartheta: E0t, + vartriangleleft: _0t, + vartriangleright: A0t, + vBar: L0t, + Vbar: R0t, + vBarv: M0t, + Vcy: D0t, + vcy: P0t, + vdash: N0t, + vDash: I0t, + Vdash: $0t, + VDash: B0t, + Vdashl: F0t, + veebar: z0t, + vee: Q0t, + Vee: U0t, + veeeq: V0t, + vellip: q0t, + verbar: Y0t, + Verbar: W0t, + vert: G0t, + Vert: X0t, + VerticalBar: H0t, + VerticalLine: Z0t, + VerticalSeparator: j0t, + VerticalTilde: K0t, + VeryThinSpace: J0t, + Vfr: ept, + vfr: tpt, + vltri: rpt, + vnsub: npt, + vnsup: ipt, + Vopf: spt, + vopf: apt, + vprop: opt, + vrtri: lpt, + Vscr: cpt, + vscr: upt, + vsubnE: hpt, + vsubne: fpt, + vsupnE: dpt, + vsupne: ppt, + Vvdash: gpt, + vzigzag: mpt, + Wcirc: vpt, + wcirc: ypt, + wedbar: bpt, + wedge: xpt, + Wedge: wpt, + wedgeq: Opt, + weierp: kpt, + Wfr: Spt, + wfr: Tpt, + Wopf: Cpt, + wopf: Ept, + wp: _pt, + wr: Apt, + wreath: Lpt, + Wscr: Rpt, + wscr: Mpt, + xcap: Dpt, + xcirc: Ppt, + xcup: Npt, + xdtri: Ipt, + Xfr: $pt, + xfr: Bpt, + xharr: Fpt, + xhArr: zpt, + Xi: Qpt, + xi: Upt, + xlarr: Vpt, + xlArr: qpt, + xmap: Ypt, + xnis: Wpt, + xodot: Gpt, + Xopf: Xpt, + xopf: Hpt, + xoplus: Zpt, + xotime: jpt, + xrarr: Kpt, + xrArr: Jpt, + Xscr: egt, + xscr: tgt, + xsqcup: rgt, + xuplus: ngt, + xutri: igt, + xvee: sgt, + xwedge: agt, + Yacute: ogt, + yacute: lgt, + YAcy: cgt, + yacy: ugt, + Ycirc: hgt, + ycirc: fgt, + Ycy: dgt, + ycy: pgt, + yen: ggt, + Yfr: mgt, + yfr: vgt, + YIcy: ygt, + yicy: bgt, + Yopf: xgt, + yopf: wgt, + Yscr: Ogt, + yscr: kgt, + YUcy: Sgt, + yucy: Tgt, + yuml: Cgt, + Yuml: Egt, + Zacute: _gt, + zacute: Agt, + Zcaron: Lgt, + zcaron: Rgt, + Zcy: Mgt, + zcy: Dgt, + Zdot: Pgt, + zdot: Ngt, + zeetrf: Igt, + ZeroWidthSpace: $gt, + Zeta: Bgt, + zeta: Fgt, + zfr: zgt, + Zfr: Qgt, + ZHcy: Ugt, + zhcy: Vgt, + zigrarr: qgt, + zopf: Ygt, + Zopf: Wgt, + Zscr: Ggt, + zscr: Xgt, + zwj: Hgt, + zwnj: Zgt }; (function(t) { - t.exports = Zgt; + t.exports = jgt; })(xP); var wP = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, L1 = {}, WU = {}; -function jgt(t) { +function Kgt(t) { var e, r, n = WU[t]; if (n) return n; @@ -31569,7 +31569,7 @@ function jgt(t) { } function fC(t, e, r) { var n, i, s, a, o, l = ""; - for (typeof e != "string" && (r = e, e = fC.defaultChars), typeof r > "u" && (r = !0), o = jgt(e), n = 0, i = t.length; n < i; n++) { + for (typeof e != "string" && (r = e, e = fC.defaultChars), typeof r > "u" && (r = !0), o = Kgt(e), n = 0, i = t.length; n < i; n++) { if (s = t.charCodeAt(n), r && s === 37 && n + 2 < i && /^[0-9a-f]{2}$/i.test(t.slice(n + 1, n + 3))) { l += t.slice(n, n + 3), n += 2; continue; @@ -31592,8 +31592,8 @@ function fC(t, e, r) { } fC.defaultChars = ";/?:@&=+$,-_.!~*'()#"; fC.componentChars = "-_.!~*'()"; -var Kgt = fC, GU = {}; -function Jgt(t) { +var Jgt = fC, GU = {}; +function emt(t) { var e, r, n = GU[t]; if (n) return n; @@ -31605,7 +31605,7 @@ function Jgt(t) { } function dC(t, e) { var r; - return typeof e != "string" && (e = dC.defaultChars), r = Jgt(e), t.replace(/(%[a-f0-9]{2})+/gi, function(n) { + return typeof e != "string" && (e = dC.defaultChars), r = emt(e), t.replace(/(%[a-f0-9]{2})+/gi, function(n) { var i, s, a, o, l, u, h, f = ""; for (i = 0, s = n.length; i < s; i += 3) { if (a = parseInt(n.slice(i + 1, i + 3), 16), a < 128) { @@ -31631,15 +31631,15 @@ function dC(t, e) { } dC.defaultChars = ";/?:@&=+$,#"; dC.componentChars = ""; -var emt = dC, tmt = function(e) { +var tmt = dC, rmt = function(e) { var r = ""; return r += e.protocol || "", r += e.slashes ? "//" : "", r += e.auth ? e.auth + "@" : "", e.hostname && e.hostname.indexOf(":") !== -1 ? r += "[" + e.hostname + "]" : r += e.hostname || "", r += e.port ? ":" + e.port : "", r += e.pathname || "", r += e.search || "", r += e.hash || "", r; }; function c3() { this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null; } -var rmt = /^([a-z0-9.+-]+:)/i, nmt = /:[0-9]*$/, imt = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, smt = ["<", ">", '"', "`", " ", "\r", ` -`, " "], amt = ["{", "}", "|", "\\", "^", "`"].concat(smt), omt = ["'"].concat(amt), XU = ["%", "/", "?", ";", "#"].concat(omt), HU = ["/", "?", "#"], lmt = 255, ZU = /^[+a-z0-9A-Z_-]{0,63}$/, cmt = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, jU = { +var nmt = /^([a-z0-9.+-]+:)/i, imt = /:[0-9]*$/, smt = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, amt = ["<", ">", '"', "`", " ", "\r", ` +`, " "], omt = ["{", "}", "|", "\\", "^", "`"].concat(amt), lmt = ["'"].concat(omt), XU = ["%", "/", "?", ";", "#"].concat(lmt), HU = ["/", "?", "#"], cmt = 255, ZU = /^[+a-z0-9A-Z_-]{0,63}$/, umt = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, jU = { javascript: !0, "javascript:": !0 }, KU = { @@ -31654,7 +31654,7 @@ var rmt = /^([a-z0-9.+-]+:)/i, nmt = /:[0-9]*$/, imt = /^(\/\/?(?!\/)[^\?\s]*)(\ "gopher:": !0, "file:": !0 }; -function umt(t, e) { +function hmt(t, e) { if (t && t instanceof c3) return t; var r = new c3(); @@ -31663,11 +31663,11 @@ function umt(t, e) { c3.prototype.parse = function(t, e) { var r, n, i, s, a, o = t; if (o = o.trim(), !e && t.split("#").length === 1) { - var l = imt.exec(o); + var l = smt.exec(o); if (l) return this.pathname = l[1], l[2] && (this.search = l[2]), this; } - var u = rmt.exec(o); + var u = nmt.exec(o); if (u && (u = u[0], i = u.toLowerCase(), this.protocol = u, o = o.substr(u.length)), (e || u || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (a = o.substr(0, 2) === "//", a && !(u && jU[u]) && (o = o.substr(2), this.slashes = !0)), !jU[u] && (a || u && !KU[u])) { var h = -1; for (r = 0; r < HU.length; r++) @@ -31687,14 +31687,14 @@ c3.prototype.parse = function(t, e) { for (var y = "", b = 0, w = v.length; b < w; b++) v.charCodeAt(b) > 127 ? y += "x" : y += v[b]; if (!y.match(ZU)) { - var O = m.slice(0, r), S = m.slice(r + 1), C = v.match(cmt); + var O = m.slice(0, r), S = m.slice(r + 1), C = v.match(umt); C && (O.push(C[1]), S.unshift(C[2])), S.length && (o = S.join(".") + o), this.hostname = O.join("."); break; } } } } - this.hostname.length > lmt && (this.hostname = ""), g && (this.hostname = this.hostname.substr(1, this.hostname.length - 2)); + this.hostname.length > cmt && (this.hostname = ""), g && (this.hostname = this.hostname.substr(1, this.hostname.length - 2)); } var T = o.indexOf("#"); T !== -1 && (this.hash = o.substr(T), o = o.slice(0, T)); @@ -31702,14 +31702,14 @@ c3.prototype.parse = function(t, e) { return A !== -1 && (this.search = o.substr(A), o = o.slice(0, A)), o && (this.pathname = o), KU[i] && this.hostname && !this.pathname && (this.pathname = ""), this; }; c3.prototype.parseHost = function(t) { - var e = nmt.exec(t); + var e = imt.exec(t); e && (e = e[0], e !== ":" && (this.port = e.substr(1)), t = t.substr(0, t.length - e.length)), t && (this.hostname = t); }; -var hmt = umt; -L1.encode = Kgt; -L1.decode = emt; -L1.format = tmt; -L1.parse = hmt; +var fmt = hmt; +L1.encode = Jgt; +L1.decode = tmt; +L1.format = rmt; +L1.parse = fmt; var Rd = {}, w6, JU; function lse() { return JU || (JU = 1, w6 = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/), w6; @@ -31719,7 +31719,7 @@ function cse() { return eV || (eV = 1, O6 = /[\0-\x1F\x7F-\x9F]/), O6; } var k6, tV; -function fmt() { +function dmt() { return tV || (tV = 1, k6 = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/), k6; } var S6, rV; @@ -31727,8 +31727,8 @@ function use() { return rV || (rV = 1, S6 = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/), S6; } var nV; -function dmt() { - return nV || (nV = 1, Rd.Any = lse(), Rd.Cc = cse(), Rd.Cf = fmt(), Rd.P = wP, Rd.Z = use()), Rd; +function pmt() { + return nV || (nV = 1, Rd.Any = lse(), Rd.Cc = cse(), Rd.Cf = dmt(), Rd.P = wP, Rd.Z = use()), Rd; } (function(t) { function e(k) { @@ -31869,9 +31869,9 @@ function dmt() { function $(k) { return k = k.trim().replace(/\s+/g, " "), "\u1E9E".toLowerCase() === "\u1E7E" && (k = k.replace(/ẞ/g, "\xDF")), k.toLowerCase().toUpperCase(); } - t.lib = {}, t.lib.mdurl = L1, t.lib.ucmicro = dmt(), t.assign = s, t.isString = r, t.has = i, t.unescapeMd = m, t.unescapeAll = v, t.isValidEntityCode = o, t.fromCodePoint = l, t.escapeHtml = S, t.arrayReplaceAt = a, t.isSpace = A, t.isWhiteSpace = E, t.isMdAsciiPunct = L, t.isPunctChar = _, t.escapeRE = T, t.normalizeReference = $; + t.lib = {}, t.lib.mdurl = L1, t.lib.ucmicro = pmt(), t.assign = s, t.isString = r, t.has = i, t.unescapeMd = m, t.unescapeAll = v, t.isValidEntityCode = o, t.fromCodePoint = l, t.escapeHtml = S, t.arrayReplaceAt = a, t.isSpace = A, t.isWhiteSpace = E, t.isMdAsciiPunct = L, t.isPunctChar = _, t.escapeRE = T, t.normalizeReference = $; })(Wr); -var pC = {}, pmt = function(e, r, n) { +var pC = {}, gmt = function(e, r, n) { var i, s, a, o, l = -1, u = e.posMax, h = e.pos; for (e.pos = r + 1, i = 1; e.pos < u; ) { if (a = e.src.charCodeAt(e.pos), a === 93 && (i--, i === 0)) { @@ -31886,7 +31886,7 @@ var pC = {}, pmt = function(e, r, n) { } } return s && (l = e.pos), e.pos = h, l; -}, iV = Wr.unescapeAll, gmt = function(e, r, n) { +}, iV = Wr.unescapeAll, mmt = function(e, r, n) { var i, s, a = 0, o = r, l = { ok: !1, pos: 0, @@ -31924,7 +31924,7 @@ var pC = {}, pmt = function(e, r, n) { r++; } return o === r || s !== 0 || (l.str = iV(e.slice(o, r)), l.lines = a, l.pos = r, l.ok = !0), l; -}, mmt = Wr.unescapeAll, vmt = function(e, r, n) { +}, vmt = Wr.unescapeAll, ymt = function(e, r, n) { var i, s, a = 0, o = r, l = { ok: !1, pos: 0, @@ -31935,17 +31935,17 @@ var pC = {}, pmt = function(e, r, n) { return l; for (r++, s === 40 && (s = 41); r < n; ) { if (i = e.charCodeAt(r), i === s) - return l.pos = r + 1, l.lines = a, l.str = mmt(e.slice(o + 1, r)), l.ok = !0, l; + return l.pos = r + 1, l.lines = a, l.str = vmt(e.slice(o + 1, r)), l.ok = !0, l; if (i === 40 && s === 41) return l; i === 10 ? a++ : i === 92 && r + 1 < n && (r++, e.charCodeAt(r) === 10 && a++), r++; } return l; }; -pC.parseLinkLabel = pmt; -pC.parseLinkDestination = gmt; -pC.parseLinkTitle = vmt; -var ymt = Wr.assign, bmt = Wr.unescapeAll, F0 = Wr.escapeHtml, bu = {}; +pC.parseLinkLabel = gmt; +pC.parseLinkDestination = mmt; +pC.parseLinkTitle = ymt; +var bmt = Wr.assign, xmt = Wr.unescapeAll, F0 = Wr.escapeHtml, bu = {}; bu.code_inline = function(t, e, r, n, i) { var s = t[e]; return "" + F0(t[e].content) + ""; @@ -31956,7 +31956,7 @@ bu.code_block = function(t, e, r, n, i) { `; }; bu.fence = function(t, e, r, n, i) { - var s = t[e], a = s.info ? bmt(s.info).trim() : "", o = "", l = "", u, h, f, d, p; + var s = t[e], a = s.info ? xmt(s.info).trim() : "", o = "", l = "", u, h, f, d, p; return a && (f = a.split(/(\s+)/g), o = f[0], l = f.slice(2).join("")), r.highlight ? u = r.highlight(s.content, o, l) || F0(s.content) : u = F0(s.content), u.indexOf("\s]/i.test(t); } -function _mt(t) { +function Amt(t) { return /^<\/a\s*>/i.test(t); } -var Amt = function(e) { +var Lmt = function(e) { var r, n, i, s, a, o, l, u, h, f, d, p, g, m, v, y, b = e.tokens, w; if (!!e.md.options.linkify) { for (n = 0, i = b.length; n < i; n++) @@ -32144,42 +32144,42 @@ var Amt = function(e) { r--; continue; } - if (o.type === "html_inline" && (Emt(o.content) && g > 0 && g--, _mt(o.content) && g++), !(g > 0) && o.type === "text" && e.md.linkify.test(o.content)) { + if (o.type === "html_inline" && (_mt(o.content) && g > 0 && g--, Amt(o.content) && g++), !(g > 0) && o.type === "text" && e.md.linkify.test(o.content)) { for (h = o.content, w = e.md.linkify.match(h), l = [], p = o.level, d = 0, u = 0; u < w.length; u++) m = w[u].url, v = e.md.normalizeLink(m), e.md.validateLink(v) && (y = w[u].text, w[u].schema ? w[u].schema === "mailto:" && !/^mailto:/i.test(y) ? y = e.md.normalizeLinkText("mailto:" + y).replace(/^mailto:/, "") : y = e.md.normalizeLinkText(y) : y = e.md.normalizeLinkText("http://" + y).replace(/^http:\/\//, ""), f = w[u].index, f > d && (a = new e.Token("text", "", 0), a.content = h.slice(d, f), a.level = p, l.push(a)), a = new e.Token("link_open", "a", 1), a.attrs = [["href", v]], a.level = p++, a.markup = "linkify", a.info = "auto", l.push(a), a = new e.Token("text", "", 0), a.content = y, a.level = p, l.push(a), a = new e.Token("link_close", "a", -1), a.level = --p, a.markup = "linkify", a.info = "auto", l.push(a), d = w[u].lastIndex); - d < h.length && (a = new e.Token("text", "", 0), a.content = h.slice(d), a.level = p, l.push(a)), b[n].children = s = Cmt(s, r, l); + d < h.length && (a = new e.Token("text", "", 0), a.content = h.slice(d), a.level = p, l.push(a)), b[n].children = s = Emt(s, r, l); } } } -}, hse = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Lmt = /\((c|tm|r|p)\)/i, Rmt = /\((c|tm|r|p)\)/ig, Mmt = { +}, hse = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Rmt = /\((c|tm|r|p)\)/i, Mmt = /\((c|tm|r|p)\)/ig, Dmt = { c: "\xA9", r: "\xAE", p: "\xA7", tm: "\u2122" }; -function Dmt(t, e) { - return Mmt[e.toLowerCase()]; +function Pmt(t, e) { + return Dmt[e.toLowerCase()]; } -function Pmt(t) { +function Nmt(t) { var e, r, n = 0; for (e = t.length - 1; e >= 0; e--) - r = t[e], r.type === "text" && !n && (r.content = r.content.replace(Rmt, Dmt)), r.type === "link_open" && r.info === "auto" && n--, r.type === "link_close" && r.info === "auto" && n++; + r = t[e], r.type === "text" && !n && (r.content = r.content.replace(Mmt, Pmt)), r.type === "link_open" && r.info === "auto" && n--, r.type === "link_close" && r.info === "auto" && n++; } -function Nmt(t) { +function Imt(t) { var e, r, n = 0; for (e = t.length - 1; e >= 0; e--) r = t[e], r.type === "text" && !n && hse.test(r.content) && (r.content = r.content.replace(/\+-/g, "\xB1").replace(/\.{2,}/g, "\u2026").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1\u2014").replace(/(^|\s)--(?=\s|$)/mg, "$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1\u2013")), r.type === "link_open" && r.info === "auto" && n--, r.type === "link_close" && r.info === "auto" && n++; } -var Imt = function(e) { +var $mt = function(e) { var r; if (!!e.md.options.typographer) for (r = e.tokens.length - 1; r >= 0; r--) - e.tokens[r].type === "inline" && (Lmt.test(e.tokens[r].content) && Pmt(e.tokens[r].children), hse.test(e.tokens[r].content) && Nmt(e.tokens[r].children)); -}, sV = Wr.isWhiteSpace, aV = Wr.isPunctChar, oV = Wr.isMdAsciiPunct, $mt = /['"]/, lV = /['"]/g, cV = "\u2019"; + e.tokens[r].type === "inline" && (Rmt.test(e.tokens[r].content) && Nmt(e.tokens[r].children), hse.test(e.tokens[r].content) && Imt(e.tokens[r].children)); +}, sV = Wr.isWhiteSpace, aV = Wr.isPunctChar, oV = Wr.isMdAsciiPunct, Bmt = /['"]/, lV = /['"]/g, cV = "\u2019"; function IO(t, e, r) { return t.substr(0, e) + r + t.substr(e + 1); } -function Bmt(t, e) { +function Fmt(t, e) { var r, n, i, s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S, C; for (O = [], r = 0; r < t.length; r++) { for (n = t[r], l = t[r].level, b = O.length - 1; b >= 0 && !(O[b].level <= l); b--) @@ -32229,11 +32229,11 @@ function Bmt(t, e) { } } } -var Fmt = function(e) { +var zmt = function(e) { var r; if (!!e.md.options.typographer) for (r = e.tokens.length - 1; r >= 0; r--) - e.tokens[r].type !== "inline" || !$mt.test(e.tokens[r].content) || Bmt(e.tokens[r].children, e); + e.tokens[r].type !== "inline" || !Bmt.test(e.tokens[r].content) || Fmt(e.tokens[r].children, e); }; function M1(t, e, r) { this.type = t, this.tag = e, this.attrs = null, this.map = null, this.nesting = r, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1; @@ -32262,21 +32262,21 @@ M1.prototype.attrJoin = function(e, r) { var n = this.attrIndex(e); n < 0 ? this.attrPush([e, r]) : this.attrs[n][1] = this.attrs[n][1] + " " + r; }; -var kP = M1, zmt = kP; +var kP = M1, Qmt = kP; function fse(t, e, r) { this.src = t, this.env = r, this.tokens = [], this.inlineMode = !1, this.md = e; } -fse.prototype.Token = zmt; -var Qmt = fse, Umt = OP, T6 = [ - ["normalize", kmt], - ["block", Smt], - ["inline", Tmt], - ["linkify", Amt], - ["replacements", Imt], - ["smartquotes", Fmt] +fse.prototype.Token = Qmt; +var Umt = fse, Vmt = OP, T6 = [ + ["normalize", Smt], + ["block", Tmt], + ["inline", Cmt], + ["linkify", Lmt], + ["replacements", $mt], + ["smartquotes", zmt] ]; function SP() { - this.ruler = new Umt(); + this.ruler = new Vmt(); for (var t = 0; t < T6.length; t++) this.ruler.push(T6[t][0], T6[t][1]); } @@ -32285,8 +32285,8 @@ SP.prototype.process = function(t) { for (n = this.ruler.getRules(""), e = 0, r = n.length; e < r; e++) n[e](t); }; -SP.prototype.State = Qmt; -var Vmt = SP, C6 = Wr.isSpace; +SP.prototype.State = Umt; +var qmt = SP, C6 = Wr.isSpace; function E6(t, e) { var r = t.bMarks[e] + t.tShift[e], n = t.eMarks[e]; return t.src.substr(r, n - r); @@ -32297,7 +32297,7 @@ function uV(t) { i === 124 && (s ? (o += t.substring(a, r - 1), a = r) : (e.push(o + t.substring(a, r)), o = "", a = r + 1)), s = i === 92, r++, i = t.charCodeAt(r); return e.push(o + t.substring(a)), e; } -var qmt = function(e, r, n, i) { +var Ymt = function(e, r, n, i) { var s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S, C; if (r + 2 > n || (h = r + 1, e.sCount[h] < e.blkIndent) || e.sCount[h] - e.blkIndent >= 4 || (o = e.bMarks[h] + e.tShift[h], o >= e.eMarks[h]) || (S = e.src.charCodeAt(o++), S !== 124 && S !== 45 && S !== 58) || o >= e.eMarks[h] || (C = e.src.charCodeAt(o++), C !== 124 && C !== 45 && C !== 58 && !C6(C)) || S === 45 && C6(C)) return !1; @@ -32335,7 +32335,7 @@ var qmt = function(e, r, n, i) { p = e.push("tr_close", "tr", -1); } return y && (p = e.push("tbody_close", "tbody", -1), y[1] = h), p = e.push("table_close", "table", -1), v[1] = h, e.parentType = b, e.line = h, !0; -}, Ymt = function(e, r, n) { +}, Wmt = function(e, r, n) { var i, s, a; if (e.sCount[r] - e.blkIndent < 4) return !1; @@ -32352,7 +32352,7 @@ var qmt = function(e, r, n, i) { } return e.line = s, a = e.push("code_block", "code", 0), a.content = e.getLines(r, s, 4 + e.blkIndent, !1) + ` `, a.map = [r, e.line], !0; -}, Wmt = function(e, r, n, i) { +}, Gmt = function(e, r, n, i) { var s, a, o, l, u, h, f, d = !1, p = e.bMarks[r] + e.tShift[r], g = e.eMarks[r]; if (e.sCount[r] - e.blkIndent >= 4 || p + 3 > g || (s = e.src.charCodeAt(p), s !== 126 && s !== 96) || (u = p, p = e.skipChars(p, s), a = p - u, a < 3) || (f = e.src.slice(u, p), o = e.src.slice(p, g), s === 96 && o.indexOf(String.fromCharCode(s)) >= 0)) return !1; @@ -32364,7 +32364,7 @@ var qmt = function(e, r, n, i) { break; } return a = e.sCount[r], e.line = l + (d ? 1 : 0), h = e.push("fence", "code", 0), h.info = o, h.content = e.getLines(r + 1, l, a, !0), h.markup = f, h.map = [r, e.line], !0; -}, hV = Wr.isSpace, Gmt = function(e, r, n, i) { +}, hV = Wr.isSpace, Xmt = function(e, r, n, i) { var s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S, C, T, A, E = e.lineMax, R = e.bMarks[r] + e.tShift[r], _ = e.eMarks[r]; if (e.sCount[r] - e.blkIndent >= 4 || e.src.charCodeAt(R++) !== 62) return !1; @@ -32399,12 +32399,12 @@ var qmt = function(e, r, n, i) { for (v = e.blkIndent, e.blkIndent = 0, T = e.push("blockquote_open", "blockquote", 1), T.markup = ">", T.map = f = [r, 0], e.md.block.tokenize(e, r, d), T = e.push("blockquote_close", "blockquote", -1), T.markup = ">", e.lineMax = E, e.parentType = y, f[1] = e.line, o = 0; o < w.length; o++) e.bMarks[o + r] = g[o], e.tShift[o + r] = w[o], e.sCount[o + r] = b[o], e.bsCount[o + r] = m[o]; return e.blkIndent = v, !0; -}, Xmt = Wr.isSpace, Hmt = function(e, r, n, i) { +}, Hmt = Wr.isSpace, Zmt = function(e, r, n, i) { var s, a, o, l, u = e.bMarks[r] + e.tShift[r], h = e.eMarks[r]; if (e.sCount[r] - e.blkIndent >= 4 || (s = e.src.charCodeAt(u++), s !== 42 && s !== 45 && s !== 95)) return !1; for (a = 1; u < h; ) { - if (o = e.src.charCodeAt(u++), o !== s && !Xmt(o)) + if (o = e.src.charCodeAt(u++), o !== s && !Hmt(o)) return !1; o === s && a++; } @@ -32432,12 +32432,12 @@ function dV(t, e) { } return i < s && (r = t.src.charCodeAt(i), !dse(r)) ? -1 : i; } -function Zmt(t, e) { +function jmt(t, e) { var r, n, i = t.level + 2; for (r = e + 2, n = t.tokens.length - 2; r < n; r++) t.tokens[r].level === i && t.tokens[r].type === "paragraph_open" && (t.tokens[r + 2].hidden = !0, t.tokens[r].hidden = !0, r += 2); } -var jmt = function(e, r, n, i) { +var Kmt = function(e, r, n, i) { var s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S, C, T, A, E, R, _, L, $, k, P, M, N = !1, D = !0; if (e.sCount[r] - e.blkIndent >= 4 || e.listIndent >= 0 && e.sCount[r] - e.listIndent >= 4 && e.sCount[r] < e.blkIndent) return !1; @@ -32480,8 +32480,8 @@ var jmt = function(e, r, n, i) { if (v !== e.src.charCodeAt(_ - 1)) break; } - return f ? M = e.push("ordered_list_close", "ol", -1) : M = e.push("bullet_list_close", "ul", -1), M.markup = String.fromCharCode(v), g[1] = w, e.line = w, e.parentType = C, D && Zmt(e, m), !0; -}, Kmt = Wr.normalizeReference, $O = Wr.isSpace, Jmt = function(e, r, n, i) { + return f ? M = e.push("ordered_list_close", "ol", -1) : M = e.push("bullet_list_close", "ul", -1), M.markup = String.fromCharCode(v), g[1] = w, e.line = w, e.parentType = C, D && jmt(e, m), !0; +}, Jmt = Wr.normalizeReference, $O = Wr.isSpace, e1t = function(e, r, n, i) { var s, a, o, l, u, h, f, d, p, g, m, v, y, b, w, O, S = 0, C = e.bMarks[r] + e.tShift[r], T = e.eMarks[r], A = r + 1; if (e.sCount[r] - e.blkIndent >= 4 || e.src.charCodeAt(C) !== 91) return !1; @@ -32529,8 +32529,8 @@ var jmt = function(e, r, n, i) { if (C < T && y.charCodeAt(C) !== 10 && O) for (O = "", C = a, S = o; C < T && (s = y.charCodeAt(C), !!$O(s)); ) C++; - return C < T && y.charCodeAt(C) !== 10 || (d = Kmt(y.slice(1, p)), !d) ? !1 : (i || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[d] > "u" && (e.env.references[d] = { title: O, href: u }), e.parentType = g, e.line = r + S + 1), !0); -}, e1t = [ + return C < T && y.charCodeAt(C) !== 10 || (d = Jmt(y.slice(1, p)), !d) ? !1 : (i || (typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[d] > "u" && (e.env.references[d] = { title: O, href: u }), e.parentType = g, e.line = r + S + 1), !0); +}, t1t = [ "address", "article", "aside", @@ -32593,18 +32593,18 @@ var jmt = function(e, r, n, i) { "tr", "track", "ul" -], gC = {}, t1t = "[a-zA-Z_:][a-zA-Z0-9:._-]*", r1t = "[^\"'=<>`\\x00-\\x20]+", n1t = "'[^']*'", i1t = '"[^"]*"', s1t = "(?:" + r1t + "|" + n1t + "|" + i1t + ")", a1t = "(?:\\s+" + t1t + "(?:\\s*=\\s*" + s1t + ")?)", pse = "<[A-Za-z][A-Za-z0-9\\-]*" + a1t + "*\\s*\\/?>", gse = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", o1t = "|", l1t = "<[?][\\s\\S]*?[?]>", c1t = "]*>", u1t = "", h1t = new RegExp("^(?:" + pse + "|" + gse + "|" + o1t + "|" + l1t + "|" + c1t + "|" + u1t + ")"), f1t = new RegExp("^(?:" + pse + "|" + gse + ")"); -gC.HTML_TAG_RE = h1t; -gC.HTML_OPEN_CLOSE_TAG_RE = f1t; -var d1t = e1t, p1t = gC.HTML_OPEN_CLOSE_TAG_RE, Xp = [ +], gC = {}, r1t = "[a-zA-Z_:][a-zA-Z0-9:._-]*", n1t = "[^\"'=<>`\\x00-\\x20]+", i1t = "'[^']*'", s1t = '"[^"]*"', a1t = "(?:" + n1t + "|" + i1t + "|" + s1t + ")", o1t = "(?:\\s+" + r1t + "(?:\\s*=\\s*" + a1t + ")?)", pse = "<[A-Za-z][A-Za-z0-9\\-]*" + o1t + "*\\s*\\/?>", gse = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", l1t = "|", c1t = "<[?][\\s\\S]*?[?]>", u1t = "]*>", h1t = "", f1t = new RegExp("^(?:" + pse + "|" + gse + "|" + l1t + "|" + c1t + "|" + u1t + "|" + h1t + ")"), d1t = new RegExp("^(?:" + pse + "|" + gse + ")"); +gC.HTML_TAG_RE = f1t; +gC.HTML_OPEN_CLOSE_TAG_RE = d1t; +var p1t = t1t, g1t = gC.HTML_OPEN_CLOSE_TAG_RE, Xp = [ [/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0], [/^/, !0], [/^<\?/, /\?>/, !0], [/^/, !0], [/^/, !0], - [new RegExp("^|$))", "i"), /^$/, !0], - [new RegExp(p1t.source + "\\s*$"), /^$/, !1] -], g1t = function(e, r, n, i) { + [new RegExp("^|$))", "i"), /^$/, !0], + [new RegExp(g1t.source + "\\s*$"), /^$/, !1] +], m1t = function(e, r, n, i) { var s, a, o, l, u = e.bMarks[r] + e.tShift[r], h = e.eMarks[r]; if (e.sCount[r] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(u) !== 60) return !1; @@ -32622,14 +32622,14 @@ var d1t = e1t, p1t = gC.HTML_OPEN_CLOSE_TAG_RE, Xp = [ } } return e.line = a, o = e.push("html_block", "", 0), o.map = [r, a], o.content = e.getLines(r, a, e.blkIndent, !0), !0; -}, pV = Wr.isSpace, m1t = function(e, r, n, i) { +}, pV = Wr.isSpace, v1t = function(e, r, n, i) { var s, a, o, l, u = e.bMarks[r] + e.tShift[r], h = e.eMarks[r]; if (e.sCount[r] - e.blkIndent >= 4 || (s = e.src.charCodeAt(u), s !== 35 || u >= h)) return !1; for (a = 1, s = e.src.charCodeAt(++u); s === 35 && u < h && a <= 6; ) a++, s = e.src.charCodeAt(++u); return a > 6 || u < h && !pV(s) ? !1 : (i || (h = e.skipSpacesBack(h, u), o = e.skipCharsBack(h, 35, u), o > u && pV(e.src.charCodeAt(o - 1)) && (h = o), e.line = r + 1, l = e.push("heading_open", "h" + String(a), 1), l.markup = "########".slice(0, a), l.map = [r, e.line], l = e.push("inline", "", 0), l.content = e.src.slice(u, h).trim(), l.map = [r, e.line], l.children = [], l = e.push("heading_close", "h" + String(a), -1), l.markup = "########".slice(0, a)), !0); -}, v1t = function(e, r, n) { +}, y1t = function(e, r, n) { var i, s, a, o, l, u, h, f, d, p = r + 1, g, m = e.md.block.ruler.getRules("paragraph"); if (e.sCount[r] - e.blkIndent >= 4) return !1; @@ -32650,7 +32650,7 @@ var d1t = e1t, p1t = gC.HTML_OPEN_CLOSE_TAG_RE, Xp = [ } } return f ? (i = e.getLines(r, p, e.blkIndent, !1).trim(), e.line = p + 1, l = e.push("heading_open", "h" + String(f), 1), l.markup = String.fromCharCode(d), l.map = [r, e.line], l = e.push("inline", "", 0), l.content = i, l.map = [r, e.line - 1], l.children = [], l = e.push("heading_close", "h" + String(f), -1), l.markup = String.fromCharCode(d), e.parentType = g, !0) : !1; -}, y1t = function(e, r) { +}, b1t = function(e, r) { var n, i, s, a, o, l, u = r + 1, h = e.md.block.ruler.getRules("paragraph"), f = e.lineMax; for (l = e.parentType, e.parentType = "paragraph"; u < f && !e.isEmpty(u); u++) if (!(e.sCount[u] - e.blkIndent > 3) && !(e.sCount[u] < 0)) { @@ -32734,21 +32734,21 @@ xu.prototype.getLines = function(e, r, n, i) { return h.join(""); }; xu.prototype.Token = mse; -var b1t = xu, x1t = OP, BO = [ - ["table", qmt, ["paragraph", "reference"]], - ["code", Ymt], - ["fence", Wmt, ["paragraph", "reference", "blockquote", "list"]], - ["blockquote", Gmt, ["paragraph", "reference", "blockquote", "list"]], - ["hr", Hmt, ["paragraph", "reference", "blockquote", "list"]], - ["list", jmt, ["paragraph", "reference", "blockquote"]], - ["reference", Jmt], - ["html_block", g1t, ["paragraph", "reference", "blockquote"]], - ["heading", m1t, ["paragraph", "reference", "blockquote"]], - ["lheading", v1t], - ["paragraph", y1t] +var x1t = xu, w1t = OP, BO = [ + ["table", Ymt, ["paragraph", "reference"]], + ["code", Wmt], + ["fence", Gmt, ["paragraph", "reference", "blockquote", "list"]], + ["blockquote", Xmt, ["paragraph", "reference", "blockquote", "list"]], + ["hr", Zmt, ["paragraph", "reference", "blockquote", "list"]], + ["list", Kmt, ["paragraph", "reference", "blockquote"]], + ["reference", e1t], + ["html_block", m1t, ["paragraph", "reference", "blockquote"]], + ["heading", v1t, ["paragraph", "reference", "blockquote"]], + ["lheading", y1t], + ["paragraph", b1t] ]; function vC() { - this.ruler = new x1t(); + this.ruler = new w1t(); for (var t = 0; t < BO.length; t++) this.ruler.push(BO[t][0], BO[t][1], { alt: (BO[t][2] || []).slice() }); } @@ -32767,9 +32767,9 @@ vC.prototype.parse = function(t, e, r, n) { var i; !t || (i = new this.State(t, e, r, n), this.tokenize(i, i.line, i.lineMax)); }; -vC.prototype.State = b1t; -var w1t = vC; -function O1t(t) { +vC.prototype.State = x1t; +var O1t = vC; +function k1t(t) { switch (t) { case 10: case 33: @@ -32799,11 +32799,11 @@ function O1t(t) { return !1; } } -var k1t = function(e, r) { - for (var n = e.pos; n < e.posMax && !O1t(e.src.charCodeAt(n)); ) +var S1t = function(e, r) { + for (var n = e.pos; n < e.posMax && !k1t(e.src.charCodeAt(n)); ) n++; return n === e.pos ? !1 : (r || (e.pending += e.src.slice(e.pos, n)), e.pos = n, !0); -}, S1t = Wr.isSpace, T1t = function(e, r) { +}, T1t = Wr.isSpace, C1t = function(e, r) { var n, i, s, a = e.pos; if (e.src.charCodeAt(a) !== 10) return !1; @@ -32817,16 +32817,16 @@ var k1t = function(e, r) { e.pending = e.pending.slice(0, -1), e.push("softbreak", "br", 0); else e.push("softbreak", "br", 0); - for (a++; a < i && S1t(e.src.charCodeAt(a)); ) + for (a++; a < i && T1t(e.src.charCodeAt(a)); ) a++; return e.pos = a, !0; -}, C1t = Wr.isSpace, TP = []; +}, E1t = Wr.isSpace, TP = []; for (var gV = 0; gV < 256; gV++) TP.push(0); "\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t) { TP[t.charCodeAt(0)] = 1; }); -var E1t = function(e, r) { +var _1t = function(e, r) { var n, i = e.pos, s = e.posMax; if (e.src.charCodeAt(i) !== 92) return !1; @@ -32834,13 +32834,13 @@ var E1t = function(e, r) { if (n = e.src.charCodeAt(i), n < 256 && TP[n] !== 0) return r || (e.pending += e.src[i]), e.pos += 2, !0; if (n === 10) { - for (r || e.push("hardbreak", "br", 0), i++; i < s && (n = e.src.charCodeAt(i), !!C1t(n)); ) + for (r || e.push("hardbreak", "br", 0), i++; i < s && (n = e.src.charCodeAt(i), !!E1t(n)); ) i++; return e.pos = i, !0; } } return r || (e.pending += "\\"), e.pos++, !0; -}, _1t = function(e, r) { +}, A1t = function(e, r) { var n, i, s, a, o, l, u, h, f = e.pos, d = e.src.charCodeAt(f); if (d !== 96) return !1; @@ -32913,7 +32913,7 @@ bC.postProcess = function(e) { for (vV(e, e.delimiters), r = 0; r < i; r++) n[r] && n[r].delimiters && vV(e, n[r].delimiters); }; -var A1t = Wr.normalizeReference, _6 = Wr.isSpace, L1t = function(e, r) { +var L1t = Wr.normalizeReference, _6 = Wr.isSpace, R1t = function(e, r) { var n, i, s, a, o, l, u, h, f, d = "", p = "", g = e.pos, m = e.posMax, v = e.pos, y = !0; if (e.src.charCodeAt(e.pos) !== 91 || (o = e.pos + 1, a = e.md.helpers.parseLinkLabel(e, e.pos, !0), a < 0)) return !1; @@ -32934,12 +32934,12 @@ var A1t = Wr.normalizeReference, _6 = Wr.isSpace, L1t = function(e, r) { if (y) { if (typeof e.env.references > "u") return !1; - if (l < m && e.src.charCodeAt(l) === 91 ? (v = l + 1, l = e.md.helpers.parseLinkLabel(e, l), l >= 0 ? s = e.src.slice(v, l++) : l = a + 1) : l = a + 1, s || (s = e.src.slice(o, a)), h = e.env.references[A1t(s)], !h) + if (l < m && e.src.charCodeAt(l) === 91 ? (v = l + 1, l = e.md.helpers.parseLinkLabel(e, l), l >= 0 ? s = e.src.slice(v, l++) : l = a + 1) : l = a + 1, s || (s = e.src.slice(o, a)), h = e.env.references[L1t(s)], !h) return e.pos = g, !1; d = h.href, p = h.title; } return r || (e.pos = o, e.posMax = a, f = e.push("link_open", "a", 1), f.attrs = n = [["href", d]], p && n.push(["title", p]), e.md.inline.tokenize(e), f = e.push("link_close", "a", -1)), e.pos = l, e.posMax = m, !0; -}, R1t = Wr.normalizeReference, A6 = Wr.isSpace, M1t = function(e, r) { +}, M1t = Wr.normalizeReference, A6 = Wr.isSpace, D1t = function(e, r) { var n, i, s, a, o, l, u, h, f, d, p, g, m, v = "", y = e.pos, b = e.posMax; if (e.src.charCodeAt(e.pos) !== 33 || e.src.charCodeAt(e.pos + 1) !== 91 || (l = e.pos + 2, o = e.md.helpers.parseLinkLabel(e, e.pos + 1, !1), o < 0)) return !1; @@ -32961,7 +32961,7 @@ var A1t = Wr.normalizeReference, _6 = Wr.isSpace, L1t = function(e, r) { } else { if (typeof e.env.references > "u") return !1; - if (u < b && e.src.charCodeAt(u) === 91 ? (m = u + 1, u = e.md.helpers.parseLinkLabel(e, u), u >= 0 ? a = e.src.slice(m, u++) : u = o + 1) : u = o + 1, a || (a = e.src.slice(l, o)), h = e.env.references[R1t(a)], !h) + if (u < b && e.src.charCodeAt(u) === 91 ? (m = u + 1, u = e.md.helpers.parseLinkLabel(e, u), u >= 0 ? a = e.src.slice(m, u++) : u = o + 1) : u = o + 1, a || (a = e.src.slice(l, o)), h = e.env.references[M1t(a)], !h) return e.pos = y, !1; v = h.href, d = h.title; } @@ -32971,7 +32971,7 @@ var A1t = Wr.normalizeReference, _6 = Wr.isSpace, L1t = function(e, r) { e.env, g = [] ), p = e.push("image", "img", 0), p.attrs = n = [["src", v], ["alt", ""]], p.children = g, p.content = s, d && n.push(["title", d])), e.pos = u, e.posMax = b, !0; -}, D1t = /^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, P1t = /^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/, N1t = function(e, r) { +}, P1t = /^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, N1t = /^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/, I1t = function(e, r) { var n, i, s, a, o, l, u = e.pos; if (e.src.charCodeAt(u) !== 60) return !1; @@ -32981,24 +32981,24 @@ var A1t = Wr.normalizeReference, _6 = Wr.isSpace, L1t = function(e, r) { if (a === 62) break; } - return n = e.src.slice(o + 1, u), P1t.test(n) ? (i = e.md.normalizeLink(n), e.md.validateLink(i) ? (r || (s = e.push("link_open", "a", 1), s.attrs = [["href", i]], s.markup = "autolink", s.info = "auto", s = e.push("text", "", 0), s.content = e.md.normalizeLinkText(n), s = e.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), e.pos += n.length + 2, !0) : !1) : D1t.test(n) ? (i = e.md.normalizeLink("mailto:" + n), e.md.validateLink(i) ? (r || (s = e.push("link_open", "a", 1), s.attrs = [["href", i]], s.markup = "autolink", s.info = "auto", s = e.push("text", "", 0), s.content = e.md.normalizeLinkText(n), s = e.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), e.pos += n.length + 2, !0) : !1) : !1; -}, I1t = gC.HTML_TAG_RE; -function $1t(t) { + return n = e.src.slice(o + 1, u), N1t.test(n) ? (i = e.md.normalizeLink(n), e.md.validateLink(i) ? (r || (s = e.push("link_open", "a", 1), s.attrs = [["href", i]], s.markup = "autolink", s.info = "auto", s = e.push("text", "", 0), s.content = e.md.normalizeLinkText(n), s = e.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), e.pos += n.length + 2, !0) : !1) : P1t.test(n) ? (i = e.md.normalizeLink("mailto:" + n), e.md.validateLink(i) ? (r || (s = e.push("link_open", "a", 1), s.attrs = [["href", i]], s.markup = "autolink", s.info = "auto", s = e.push("text", "", 0), s.content = e.md.normalizeLinkText(n), s = e.push("link_close", "a", -1), s.markup = "autolink", s.info = "auto"), e.pos += n.length + 2, !0) : !1) : !1; +}, $1t = gC.HTML_TAG_RE; +function B1t(t) { var e = t | 32; return e >= 97 && e <= 122; } -var B1t = function(e, r) { +var F1t = function(e, r) { var n, i, s, a, o = e.pos; - return !e.md.options.html || (s = e.posMax, e.src.charCodeAt(o) !== 60 || o + 2 >= s) || (n = e.src.charCodeAt(o + 1), n !== 33 && n !== 63 && n !== 47 && !$1t(n)) || (i = e.src.slice(o).match(I1t), !i) ? !1 : (r || (a = e.push("html_inline", "", 0), a.content = e.src.slice(o, o + i[0].length)), e.pos += i[0].length, !0); -}, yV = xP.exports, F1t = Wr.has, z1t = Wr.isValidEntityCode, bV = Wr.fromCodePoint, Q1t = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, U1t = /^&([a-z][a-z0-9]{1,31});/i, V1t = function(e, r) { + return !e.md.options.html || (s = e.posMax, e.src.charCodeAt(o) !== 60 || o + 2 >= s) || (n = e.src.charCodeAt(o + 1), n !== 33 && n !== 63 && n !== 47 && !B1t(n)) || (i = e.src.slice(o).match($1t), !i) ? !1 : (r || (a = e.push("html_inline", "", 0), a.content = e.src.slice(o, o + i[0].length)), e.pos += i[0].length, !0); +}, yV = xP.exports, z1t = Wr.has, Q1t = Wr.isValidEntityCode, bV = Wr.fromCodePoint, U1t = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, V1t = /^&([a-z][a-z0-9]{1,31});/i, q1t = function(e, r) { var n, i, s, a = e.pos, o = e.posMax; if (e.src.charCodeAt(a) !== 38) return !1; if (a + 1 < o) { if (n = e.src.charCodeAt(a + 1), n === 35) { - if (s = e.src.slice(a).match(Q1t), s) - return r || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), e.pending += z1t(i) ? bV(i) : bV(65533)), e.pos += s[0].length, !0; - } else if (s = e.src.slice(a).match(U1t), s && F1t(yV, s[1])) + if (s = e.src.slice(a).match(U1t), s) + return r || (i = s[1][0].toLowerCase() === "x" ? parseInt(s[1].slice(1), 16) : parseInt(s[1], 10), e.pending += Q1t(i) ? bV(i) : bV(65533)), e.pos += s[0].length, !0; + } else if (s = e.src.slice(a).match(V1t), s && z1t(yV, s[1])) return r || (e.pending += yV[s[1]]), e.pos += s[0].length, !0; } return r || (e.pending += "&"), e.pos++, !0; @@ -33018,11 +33018,11 @@ function xV(t, e) { } } } -var q1t = function(e) { +var Y1t = function(e) { var r, n = e.tokens_meta, i = e.tokens_meta.length; for (xV(e, e.delimiters), r = 0; r < i; r++) n[r] && n[r].delimiters && xV(e, n[r].delimiters); -}, Y1t = function(e) { +}, W1t = function(e) { var r, n, i = 0, s = e.tokens, a = e.tokens.length; for (r = n = 0; r < a; r++) s[r].nesting < 0 && i--, s[r].level = i, s[r].nesting > 0 && i++, s[r].type === "text" && r + 1 < a && s[r + 1].type === "text" ? s[r + 1].content = s[r].content + s[r + 1].content : (r !== n && (s[n] = s[r]), n++); @@ -33051,23 +33051,23 @@ jx.prototype.scanDelims = function(t, e) { }; }; jx.prototype.Token = CP; -var W1t = jx, SV = OP, L6 = [ - ["text", k1t], - ["newline", T1t], - ["escape", E1t], - ["backticks", _1t], +var G1t = jx, SV = OP, L6 = [ + ["text", S1t], + ["newline", C1t], + ["escape", _1t], + ["backticks", A1t], ["strikethrough", yC.tokenize], ["emphasis", bC.tokenize], - ["link", L1t], - ["image", M1t], - ["autolink", N1t], - ["html_inline", B1t], - ["entity", V1t] + ["link", R1t], + ["image", D1t], + ["autolink", I1t], + ["html_inline", F1t], + ["entity", q1t] ], R6 = [ - ["balance_pairs", q1t], + ["balance_pairs", Y1t], ["strikethrough", yC.postProcess], ["emphasis", bC.postProcess], - ["text_collapse", Y1t] + ["text_collapse", W1t] ]; function Kx() { var t; @@ -33108,9 +33108,9 @@ Kx.prototype.parse = function(t, e, r, n) { for (this.tokenize(o), s = this.ruler2.getRules(""), a = s.length, i = 0; i < a; i++) s[i](o); }; -Kx.prototype.State = W1t; -var G1t = Kx, M6, TV; -function X1t() { +Kx.prototype.State = G1t; +var X1t = Kx, M6, TV; +function H1t() { return TV || (TV = 1, M6 = function(t) { var e = {}; e.src_Any = lse().source, e.src_Cc = cse().source, e.src_Z = use().source, e.src_P = wP.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|"); @@ -33129,19 +33129,19 @@ function O9(t) { function xC(t) { return Object.prototype.toString.call(t); } -function H1t(t) { +function Z1t(t) { return xC(t) === "[object String]"; } -function Z1t(t) { +function j1t(t) { return xC(t) === "[object Object]"; } -function j1t(t) { +function K1t(t) { return xC(t) === "[object RegExp]"; } function CV(t) { return xC(t) === "[object Function]"; } -function K1t(t) { +function J1t(t) { return t.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&"); } var vse = { @@ -33149,12 +33149,12 @@ var vse = { fuzzyEmail: !0, fuzzyIP: !1 }; -function J1t(t) { +function evt(t) { return Object.keys(t || {}).reduce(function(e, r) { return e || vse.hasOwnProperty(r); }, !1); } -var evt = { +var tvt = { "http:": { validate: function(t, e, r) { var n = t.slice(e); @@ -33184,11 +33184,11 @@ var evt = { )), r.re.mailto.test(n) ? n.match(r.re.mailto)[0].length : 0; } } -}, tvt = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", rvt = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|"); -function nvt(t) { +}, rvt = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", nvt = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|"); +function ivt(t) { t.__index__ = -1, t.__text_cache__ = ""; } -function ivt(t) { +function svt(t) { return function(e, r) { var n = e.slice(r); return t.test(n) ? n.match(t)[0].length : 0; @@ -33200,8 +33200,8 @@ function EV() { }; } function u3(t) { - var e = t.re = X1t()(t.__opts__), r = t.__tlds__.slice(); - t.onCompile(), t.__tlds_replaced__ || r.push(tvt), r.push(e.src_xn), e.src_tlds = r.join("|"); + var e = t.re = H1t()(t.__opts__), r = t.__tlds__.slice(); + t.onCompile(), t.__tlds_replaced__ || r.push(rvt), r.push(e.src_xn), e.src_tlds = r.join("|"); function n(o) { return o.replace("%TLDS%", e.src_tlds); } @@ -33215,11 +33215,11 @@ function u3(t) { var l = t.__schemas__[o]; if (l !== null) { var u = { validate: null, link: null }; - if (t.__compiled__[o] = u, Z1t(l)) { - j1t(l.validate) ? u.validate = ivt(l.validate) : CV(l.validate) ? u.validate = l.validate : s(o, l), CV(l.normalize) ? u.normalize = l.normalize : l.normalize ? s(o, l) : u.normalize = EV(); + if (t.__compiled__[o] = u, j1t(l)) { + K1t(l.validate) ? u.validate = svt(l.validate) : CV(l.validate) ? u.validate = l.validate : s(o, l), CV(l.normalize) ? u.normalize = l.normalize : l.normalize ? s(o, l) : u.normalize = EV(); return; } - if (H1t(l)) { + if (Z1t(l)) { i.push(o); return; } @@ -33230,24 +33230,24 @@ function u3(t) { }), t.__compiled__[""] = { validate: null, normalize: EV() }; var a = Object.keys(t.__compiled__).filter(function(o) { return o.length > 0 && t.__compiled__[o]; - }).map(K1t).join("|"); + }).map(J1t).join("|"); t.re.schema_test = RegExp("(^|(?!_)(?:[><\uFF5C]|" + e.src_ZPCc + "))(" + a + ")", "i"), t.re.schema_search = RegExp("(^|(?!_)(?:[><\uFF5C]|" + e.src_ZPCc + "))(" + a + ")", "ig"), t.re.pretest = RegExp( "(" + t.re.schema_test.source + ")|(" + t.re.host_fuzzy_test.source + ")|@", "i" - ), nvt(t); + ), ivt(t); } -function svt(t, e) { +function avt(t, e) { var r = t.__index__, n = t.__last_index__, i = t.__text_cache__.slice(r, n); this.schema = t.__schema__.toLowerCase(), this.index = r + e, this.lastIndex = n + e, this.raw = i, this.text = i, this.url = i; } function _V(t, e) { - var r = new svt(t, e); + var r = new avt(t, e); return t.__compiled__[r.schema].normalize(r, t), r; } function fl(t, e) { if (!(this instanceof fl)) return new fl(t, e); - e || J1t(t) && (e = t, t = {}), this.__opts__ = O9({}, vse, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = O9({}, evt, t), this.__compiled__ = {}, this.__tlds__ = rvt, this.__tlds_replaced__ = !1, this.re = {}, u3(this); + e || evt(t) && (e = t, t = {}), this.__opts__ = O9({}, vse, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = O9({}, tvt, t), this.__compiled__ = {}, this.__tlds__ = nvt, this.__tlds_replaced__ = !1, this.re = {}, u3(this); } fl.prototype.add = function(e, r) { return this.__schemas__[e] = r, u3(this), this; @@ -33291,16 +33291,16 @@ fl.prototype.normalize = function(e) { }; fl.prototype.onCompile = function() { }; -var avt = fl; -const Qg = 2147483647, Uc = 36, EP = 1, H2 = 26, ovt = 38, lvt = 700, yse = 72, bse = 128, xse = "-", cvt = /^xn--/, uvt = /[^\0-\x7F]/, hvt = /[\x2E\u3002\uFF0E\uFF61]/g, fvt = { +var ovt = fl; +const Qg = 2147483647, Uc = 36, EP = 1, H2 = 26, lvt = 38, cvt = 700, yse = 72, bse = 128, xse = "-", uvt = /^xn--/, hvt = /[^\0-\x7F]/, fvt = /[\x2E\u3002\uFF0E\uFF61]/g, dvt = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, D6 = Uc - EP, Vc = Math.floor, P6 = String.fromCharCode; -function Kh(t) { - throw new RangeError(fvt[t]); +function Jh(t) { + throw new RangeError(dvt[t]); } -function dvt(t, e) { +function pvt(t, e) { const r = []; let n = t.length; for (; n--; ) @@ -33310,8 +33310,8 @@ function dvt(t, e) { function wse(t, e) { const r = t.split("@"); let n = ""; - r.length > 1 && (n = r[0] + "@", t = r[1]), t = t.replace(hvt, "."); - const i = t.split("."), s = dvt(i, e).join("."); + r.length > 1 && (n = r[0] + "@", t = r[1]), t = t.replace(fvt, "."); + const i = t.split("."), s = pvt(i, e).join("."); return n + s; } function _P(t) { @@ -33328,35 +33328,35 @@ function _P(t) { } return e; } -const Ose = (t) => String.fromCodePoint(...t), pvt = function(t) { +const Ose = (t) => String.fromCodePoint(...t), gvt = function(t) { return t >= 48 && t < 58 ? 26 + (t - 48) : t >= 65 && t < 91 ? t - 65 : t >= 97 && t < 123 ? t - 97 : Uc; }, AV = function(t, e) { return t + 22 + 75 * (t < 26) - ((e != 0) << 5); }, kse = function(t, e, r) { let n = 0; - for (t = r ? Vc(t / lvt) : t >> 1, t += Vc(t / e); t > D6 * H2 >> 1; n += Uc) + for (t = r ? Vc(t / cvt) : t >> 1, t += Vc(t / e); t > D6 * H2 >> 1; n += Uc) t = Vc(t / D6); - return Vc(n + (D6 + 1) * t / (t + ovt)); + return Vc(n + (D6 + 1) * t / (t + lvt)); }, AP = function(t) { const e = [], r = t.length; let n = 0, i = bse, s = yse, a = t.lastIndexOf(xse); a < 0 && (a = 0); for (let o = 0; o < a; ++o) - t.charCodeAt(o) >= 128 && Kh("not-basic"), e.push(t.charCodeAt(o)); + t.charCodeAt(o) >= 128 && Jh("not-basic"), e.push(t.charCodeAt(o)); for (let o = a > 0 ? a + 1 : 0; o < r; ) { const l = n; for (let h = 1, f = Uc; ; f += Uc) { - o >= r && Kh("invalid-input"); - const d = pvt(t.charCodeAt(o++)); - d >= Uc && Kh("invalid-input"), d > Vc((Qg - n) / h) && Kh("overflow"), n += d * h; + o >= r && Jh("invalid-input"); + const d = gvt(t.charCodeAt(o++)); + d >= Uc && Jh("invalid-input"), d > Vc((Qg - n) / h) && Jh("overflow"), n += d * h; const p = f <= s ? EP : f >= s + H2 ? H2 : f - s; if (d < p) break; const g = Uc - p; - h > Vc(Qg / g) && Kh("overflow"), h *= g; + h > Vc(Qg / g) && Jh("overflow"), h *= g; } const u = e.length + 1; - s = kse(n - l, u, l == 0), Vc(n / u) > Qg - i && Kh("overflow"), i += Vc(n / u), n %= u, e.splice(n++, 0, i); + s = kse(n - l, u, l == 0), Vc(n / u) > Qg - i && Jh("overflow"), i += Vc(n / u), n %= u, e.splice(n++, 0, i); } return String.fromCodePoint(...e); }, LP = function(t) { @@ -33373,9 +33373,9 @@ const Ose = (t) => String.fromCodePoint(...t), pvt = function(t) { for (const h of t) h >= n && h < l && (l = h); const u = o + 1; - l - n > Vc((Qg - i) / u) && Kh("overflow"), i += (l - n) * u, n = l; + l - n > Vc((Qg - i) / u) && Jh("overflow"), i += (l - n) * u, n = l; for (const h of t) - if (h < n && ++i > Qg && Kh("overflow"), h === n) { + if (h < n && ++i > Qg && Jh("overflow"), h === n) { let f = i; for (let d = Uc; ; d += Uc) { const p = d <= s ? EP : d >= s + H2 ? H2 : d - s; @@ -33393,13 +33393,13 @@ const Ose = (t) => String.fromCodePoint(...t), pvt = function(t) { return e.join(""); }, Sse = function(t) { return wse(t, function(e) { - return cvt.test(e) ? AP(e.slice(4).toLowerCase()) : e; + return uvt.test(e) ? AP(e.slice(4).toLowerCase()) : e; }); }, Tse = function(t) { return wse(t, function(e) { - return uvt.test(e) ? "xn--" + LP(e) : e; + return hvt.test(e) ? "xn--" + LP(e) : e; }); -}, gvt = { +}, mvt = { version: "2.3.1", ucs2: { decode: _P, @@ -33409,7 +33409,7 @@ const Ose = (t) => String.fromCodePoint(...t), pvt = function(t) { encode: LP, toASCII: Tse, toUnicode: Sse -}, mvt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, vvt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ucs2decode: _P, ucs2encode: Ose, @@ -33417,9 +33417,9 @@ const Ose = (t) => String.fromCodePoint(...t), pvt = function(t) { encode: LP, toASCII: Tse, toUnicode: Sse, - default: gvt -}, Symbol.toStringTag, { value: "Module" })), vvt = /* @__PURE__ */ Jj(mvt); -var yvt = { + default: mvt +}, Symbol.toStringTag, { value: "Module" })), yvt = /* @__PURE__ */ Jj(vvt); +var bvt = { options: { html: !1, xhtmlOut: !1, @@ -33436,7 +33436,7 @@ var yvt = { block: {}, inline: {} } -}, bvt = { +}, xvt = { options: { html: !1, xhtmlOut: !1, @@ -33471,7 +33471,7 @@ var yvt = { ] } } -}, xvt = { +}, wvt = { options: { html: !0, xhtmlOut: !0, @@ -33525,17 +33525,17 @@ var yvt = { ] } } -}, qy = Wr, wvt = pC, Ovt = xmt, kvt = Vmt, Svt = w1t, Tvt = G1t, Cvt = avt, h0 = L1, Cse = vvt, Evt = { - default: yvt, - zero: bvt, - commonmark: xvt -}, _vt = /^(vbscript|javascript|file|data):/, Avt = /^data:image\/(gif|png|jpeg|webp);/; -function Lvt(t) { +}, qy = Wr, Ovt = pC, kvt = wmt, Svt = qmt, Tvt = O1t, Cvt = X1t, Evt = ovt, h0 = L1, Cse = yvt, _vt = { + default: bvt, + zero: xvt, + commonmark: wvt +}, Avt = /^(vbscript|javascript|file|data):/, Lvt = /^data:image\/(gif|png|jpeg|webp);/; +function Rvt(t) { var e = t.trim().toLowerCase(); - return _vt.test(e) ? !!Avt.test(e) : !0; + return Avt.test(e) ? !!Lvt.test(e) : !0; } var Ese = ["http:", "https:", "mailto:"]; -function Rvt(t) { +function Mvt(t) { var e = h0.parse(t, !0); if (e.hostname && (!e.protocol || Ese.indexOf(e.protocol) >= 0)) try { @@ -33544,7 +33544,7 @@ function Rvt(t) { } return h0.encode(h0.format(e)); } -function Mvt(t) { +function Dvt(t) { var e = h0.parse(t, !0); if (e.hostname && (!e.protocol || Ese.indexOf(e.protocol) >= 0)) try { @@ -33556,14 +33556,14 @@ function Mvt(t) { function dl(t, e) { if (!(this instanceof dl)) return new dl(t, e); - e || qy.isString(t) || (e = t || {}, t = "default"), this.inline = new Tvt(), this.block = new Svt(), this.core = new kvt(), this.renderer = new Ovt(), this.linkify = new Cvt(), this.validateLink = Lvt, this.normalizeLink = Rvt, this.normalizeLinkText = Mvt, this.utils = qy, this.helpers = qy.assign({}, wvt), this.options = {}, this.configure(t), e && this.set(e); + e || qy.isString(t) || (e = t || {}, t = "default"), this.inline = new Cvt(), this.block = new Tvt(), this.core = new Svt(), this.renderer = new kvt(), this.linkify = new Evt(), this.validateLink = Rvt, this.normalizeLink = Mvt, this.normalizeLinkText = Dvt, this.utils = qy, this.helpers = qy.assign({}, Ovt), this.options = {}, this.configure(t), e && this.set(e); } dl.prototype.set = function(t) { return qy.assign(this.options, t), this; }; dl.prototype.configure = function(t) { var e = this, r; - if (qy.isString(t) && (r = t, t = Evt[r], !t)) + if (qy.isString(t) && (r = t, t = _vt[r], !t)) throw new Error('Wrong `markdown-it` preset "' + r + '", check name'); if (!t) throw new Error("Wrong `markdown-it` preset, can't be empty"); @@ -33615,11 +33615,11 @@ dl.prototype.parseInline = function(t, e) { dl.prototype.renderInline = function(t, e) { return e = e || {}, this.renderer.render(this.parseInline(t, e), this.options, e); }; -var Dvt = dl; +var Pvt = dl; (function(t) { - t.exports = Dvt; + t.exports = Pvt; })(ose); -const Pvt = /* @__PURE__ */ Kj(ose.exports); +const Nvt = /* @__PURE__ */ Kj(ose.exports); async function _se(t, e) { return new Promise((r) => { const n = t.getElementById(e); @@ -33675,16 +33675,16 @@ class RP { }; } } -const Nvt = (t, { +const Ivt = (t, { transform: e, target: r -}) => t.replaceAll(r, e), Ivt = (t, e, r) => (n) => { +}) => t.replaceAll(r, e), $vt = (t, e, r) => (n) => { const i = new RP(e, r), s = n.renderer.rules.text; n.renderer.rules.text = function(...a) { const o = s(...a); - return t.map((l) => i.overloadTransform(l, e)).reduce(Nvt, o); + return t.map((l) => i.overloadTransform(l, e)).reduce(Ivt, o); }; -}, Ase = "custom_role", $vt = ({ +}, Ase = "custom_role", Bvt = ({ target: t, transform: e }) => ({ @@ -33697,15 +33697,15 @@ const Nvt = (t, { return i.content = e(n), [i]; } } -}), Bvt = (t, e, r) => (n) => { - const i = new RP(e, r), s = t.map((a) => i.overloadTransform(a)).map($vt).reduce((a, { +}), Fvt = (t, e, r) => (n) => { + const i = new RP(e, r), s = t.map((a) => i.overloadTransform(a)).map(Bvt).reduce((a, { name: o, role: l }) => (a[o] = l, a), {}); n.renderer.rules[Ase] = (a, o, l, u, h) => `${a[o].content}`, n.use(iie, { roles: s }); -}, Lse = "custom_directive", Fvt = ({ +}, Lse = "custom_directive", zvt = ({ target: t, transform: e, required_arguments: r = 0, @@ -33713,13 +33713,13 @@ const Nvt = (t, { option_spec: i = {} }) => ({ name: t, - directive: class extends md { + directive: class extends Dh { constructor() { super(...arguments); - br(this, "has_content", !0); - br(this, "required_arguments", r); - br(this, "optional_arguments", n); - br(this, "option_spec", i); + fr(this, "has_content", !0); + fr(this, "required_arguments", r); + fr(this, "optional_arguments", n); + fr(this, "option_spec", i); } run(o) { const l = this.createToken(Lse, "div", 1, { @@ -33729,8 +33729,8 @@ const Nvt = (t, { return l.content = e(o.body + JSON.stringify(o.args) + JSON.stringify(o.options), o), [l]; } } -}), zvt = (t, e, r) => (n) => { - const i = new RP(e, r), s = t.map((a) => i.overloadTransform(a)).map(Fvt).reduce((a, { +}), Qvt = (t, e, r) => (n) => { + const i = new RP(e, r), s = t.map((a) => i.overloadTransform(a)).map(zvt).reduce((a, { name: o, directive: l }) => (a[o] = l, a), {}); @@ -33793,20 +33793,20 @@ var Rse = { exports: {} }; })(); })(Rse); const Mse = Rse.exports; -function Qvt(t) { +function Uvt(t) { const e = t.renderer.rules.text; t.renderer.rules.text = (r, n, i, s, a) => r[n].content === "\\" ? "
" : e(r, n, i, s, a); } const Dse = "data-line-id", Pse = () => Math.random().toString().replace(".", ""); -function Uvt(t) { - t.use(qvt), t.use(Yvt), t.use(Wvt), t.use(Gvt), t.use(Xvt); +function Vvt(t) { + t.use(Yvt), t.use(Wvt), t.use(Gvt), t.use(Xvt), t.use(Hvt); const e = ["softbreak"], r = [...Object.keys(t.renderer.rules).filter((n) => !e.includes(n)), "paragraph_open", "heading_open", "admonition_open", "link_open", "list_item_open", "checkbox_input", "html_block", "html_inline"]; for (const n of r) { const i = t.renderer.rules[n]; - t.renderer.rules[n] = Vvt(i); + t.renderer.rules[n] = qvt(i); } } -function Vvt(t) { +function qvt(t) { return (e, r, n, i, s) => { const a = t != null ? t : s.renderToken.bind(s); if (e[r].type === "list_item_open" && e[r + 1].type !== "list_item_close") @@ -33828,7 +33828,7 @@ function Vvt(t) { return a(e, r, n, i, s); }; } -function qvt(t) { +function Yvt(t) { function e(r) { return (n, i, s, a, o) => { const l = n[i]; @@ -33839,7 +33839,7 @@ function qvt(t) { } t.renderer.rules.directive = e(t.renderer.rules.directive), t.renderer.rules.directive_error = e(t.renderer.rules.directive_error); } -function Yvt(t) { +function Wvt(t) { const e = t.renderer.rules.role; t.renderer.rules.role = (r, n, i, s, a) => { let o = e(r, n, i, s, a); @@ -33847,7 +33847,7 @@ function Yvt(t) { return o = o.slice(0, l) + a.renderAttrs(r[n]) + o.slice(l), o; }; } -function Wvt(t) { +function Gvt(t) { const e = (r) => (n, i, s, a, o) => { let l = r(n, i, s, a, o); const u = l.indexOf(">"); @@ -33855,14 +33855,14 @@ function Wvt(t) { }; t.renderer.rules.html_block = e(t.renderer.rules.html_block), t.renderer.rules.html_inline = e(t.renderer.rules.html_inline); } -function Gvt(t) { +function Xvt(t) { const e = t.renderer.rules.text; t.renderer.rules.text = (r, n, i, s, a) => { const o = r[n], l = e(r, n, i, s, a); return `${l}`; }; } -function Xvt(t) { +function Hvt(t) { const e = t.renderer.rules.fence; t.renderer.rules.fence = (r, n, i, s, a) => { const o = e(r, n, i, s, a), l = r[n]; @@ -34247,27 +34247,27 @@ const Ks = Ise.exports, b5 = { return -1; } } -}, Hvt = b5, Zvt = { +}, Zvt = b5, jvt = { clamp: (t, e, r) => e > r ? Math.min(e, Math.max(r, t)) : Math.min(r, Math.max(e, t)), round: (t) => Math.round(t * 1e10) / 1e10 -}, jvt = Zvt, Kvt = { +}, Kvt = jvt, Jvt = { dec2hex: (t) => { const e = Math.round(t).toString(16); return e.length > 1 ? e : `0${e}`; } -}, Jvt = Kvt, eyt = { - channel: Hvt, - lang: jvt, - unit: Jvt -}, pr = eyt, Hh = {}; +}, eyt = Jvt, tyt = { + channel: Zvt, + lang: Kvt, + unit: eyt +}, gr = tyt, Zh = {}; for (let t = 0; t <= 255; t++) - Hh[t] = pr.unit.dec2hex(t); + Zh[t] = gr.unit.dec2hex(t); const Us = { ALL: 0, RGB: 1, HSL: 2 }; -class tyt { +class ryt { constructor() { this.type = Us.ALL; } @@ -34286,45 +34286,45 @@ class tyt { return this.type === e; } } -const ryt = tyt; -class nyt { +const nyt = ryt; +class iyt { constructor(e, r) { - this.color = r, this.changed = !1, this.data = e, this.type = new ryt(); + this.color = r, this.changed = !1, this.data = e, this.type = new nyt(); } set(e, r) { return this.color = r, this.changed = !1, this.data = e, this.type.type = Us.ALL, this; } _ensureHSL() { const e = this.data, { h: r, s: n, l: i } = e; - r === void 0 && (e.h = pr.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = pr.channel.rgb2hsl(e, "s")), i === void 0 && (e.l = pr.channel.rgb2hsl(e, "l")); + r === void 0 && (e.h = gr.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = gr.channel.rgb2hsl(e, "s")), i === void 0 && (e.l = gr.channel.rgb2hsl(e, "l")); } _ensureRGB() { const e = this.data, { r, g: n, b: i } = e; - r === void 0 && (e.r = pr.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = pr.channel.hsl2rgb(e, "g")), i === void 0 && (e.b = pr.channel.hsl2rgb(e, "b")); + r === void 0 && (e.r = gr.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = gr.channel.hsl2rgb(e, "g")), i === void 0 && (e.b = gr.channel.hsl2rgb(e, "b")); } get r() { const e = this.data, r = e.r; - return !this.type.is(Us.HSL) && r !== void 0 ? r : (this._ensureHSL(), pr.channel.hsl2rgb(e, "r")); + return !this.type.is(Us.HSL) && r !== void 0 ? r : (this._ensureHSL(), gr.channel.hsl2rgb(e, "r")); } get g() { const e = this.data, r = e.g; - return !this.type.is(Us.HSL) && r !== void 0 ? r : (this._ensureHSL(), pr.channel.hsl2rgb(e, "g")); + return !this.type.is(Us.HSL) && r !== void 0 ? r : (this._ensureHSL(), gr.channel.hsl2rgb(e, "g")); } get b() { const e = this.data, r = e.b; - return !this.type.is(Us.HSL) && r !== void 0 ? r : (this._ensureHSL(), pr.channel.hsl2rgb(e, "b")); + return !this.type.is(Us.HSL) && r !== void 0 ? r : (this._ensureHSL(), gr.channel.hsl2rgb(e, "b")); } get h() { const e = this.data, r = e.h; - return !this.type.is(Us.RGB) && r !== void 0 ? r : (this._ensureRGB(), pr.channel.rgb2hsl(e, "h")); + return !this.type.is(Us.RGB) && r !== void 0 ? r : (this._ensureRGB(), gr.channel.rgb2hsl(e, "h")); } get s() { const e = this.data, r = e.s; - return !this.type.is(Us.RGB) && r !== void 0 ? r : (this._ensureRGB(), pr.channel.rgb2hsl(e, "s")); + return !this.type.is(Us.RGB) && r !== void 0 ? r : (this._ensureRGB(), gr.channel.rgb2hsl(e, "s")); } get l() { const e = this.data, r = e.l; - return !this.type.is(Us.RGB) && r !== void 0 ? r : (this._ensureRGB(), pr.channel.rgb2hsl(e, "l")); + return !this.type.is(Us.RGB) && r !== void 0 ? r : (this._ensureRGB(), gr.channel.rgb2hsl(e, "l")); } get a() { return this.data.a; @@ -34351,7 +34351,7 @@ class nyt { this.changed = !0, this.data.a = e; } } -const iyt = nyt, syt = new iyt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), wC = syt, $se = { +const syt = iyt, ayt = new syt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), wC = ayt, $se = { re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i, parse: (t) => { if (t.charCodeAt(0) !== 35) @@ -34369,7 +34369,7 @@ const iyt = nyt, syt = new iyt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), wC = }, stringify: (t) => { const { r: e, g: r, b: n, a: i } = t; - return i < 1 ? `#${Hh[Math.round(e)]}${Hh[Math.round(r)]}${Hh[Math.round(n)]}${Hh[Math.round(i * 255)]}` : `#${Hh[Math.round(e)]}${Hh[Math.round(r)]}${Hh[Math.round(n)]}`; + return i < 1 ? `#${Zh[Math.round(e)]}${Zh[Math.round(r)]}${Zh[Math.round(n)]}${Zh[Math.round(i * 255)]}` : `#${Zh[Math.round(e)]}${Zh[Math.round(r)]}${Zh[Math.round(n)]}`; } }, Yy = $se, x5 = { 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, @@ -34380,14 +34380,14 @@ const iyt = nyt, syt = new iyt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), wC = const [, r, n] = e; switch (n) { case "grad": - return pr.channel.clamp.h(parseFloat(r) * 0.9); + return gr.channel.clamp.h(parseFloat(r) * 0.9); case "rad": - return pr.channel.clamp.h(parseFloat(r) * 180 / Math.PI); + return gr.channel.clamp.h(parseFloat(r) * 180 / Math.PI); case "turn": - return pr.channel.clamp.h(parseFloat(r) * 360); + return gr.channel.clamp.h(parseFloat(r) * 360); } } - return pr.channel.clamp.h(parseFloat(t)); + return gr.channel.clamp.h(parseFloat(t)); }, parse: (t) => { const e = t.charCodeAt(0); @@ -34399,14 +34399,14 @@ const iyt = nyt, syt = new iyt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), wC = const [, n, i, s, a, o] = r; return wC.set({ h: x5._hue2deg(n), - s: pr.channel.clamp.s(parseFloat(i)), - l: pr.channel.clamp.l(parseFloat(s)), - a: a ? pr.channel.clamp.a(o ? parseFloat(a) / 100 : parseFloat(a)) : 1 + s: gr.channel.clamp.s(parseFloat(i)), + l: gr.channel.clamp.l(parseFloat(s)), + a: a ? gr.channel.clamp.a(o ? parseFloat(a) / 100 : parseFloat(a)) : 1 }, t); }, stringify: (t) => { const { h: e, s: r, l: n, a: i } = t; - return i < 1 ? `hsla(${pr.lang.round(e)}, ${pr.lang.round(r)}%, ${pr.lang.round(n)}%, ${i})` : `hsl(${pr.lang.round(e)}, ${pr.lang.round(r)}%, ${pr.lang.round(n)}%)`; + return i < 1 ? `hsla(${gr.lang.round(e)}, ${gr.lang.round(r)}%, ${gr.lang.round(n)}%, ${i})` : `hsl(${gr.lang.round(e)}, ${gr.lang.round(r)}%, ${gr.lang.round(n)}%)`; } }, FO = x5, w5 = { colors: { @@ -34581,17 +34581,17 @@ const iyt = nyt, syt = new iyt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), wC = return; const [, n, i, s, a, o, l, u, h] = r; return wC.set({ - r: pr.channel.clamp.r(i ? parseFloat(n) * 2.55 : parseFloat(n)), - g: pr.channel.clamp.g(a ? parseFloat(s) * 2.55 : parseFloat(s)), - b: pr.channel.clamp.b(l ? parseFloat(o) * 2.55 : parseFloat(o)), - a: u ? pr.channel.clamp.a(h ? parseFloat(u) / 100 : parseFloat(u)) : 1 + r: gr.channel.clamp.r(i ? parseFloat(n) * 2.55 : parseFloat(n)), + g: gr.channel.clamp.g(a ? parseFloat(s) * 2.55 : parseFloat(s)), + b: gr.channel.clamp.b(l ? parseFloat(o) * 2.55 : parseFloat(o)), + a: u ? gr.channel.clamp.a(h ? parseFloat(u) / 100 : parseFloat(u)) : 1 }, t); }, stringify: (t) => { const { r: e, g: r, b: n, a: i } = t; - return i < 1 ? `rgba(${pr.lang.round(e)}, ${pr.lang.round(r)}, ${pr.lang.round(n)}, ${pr.lang.round(i)})` : `rgb(${pr.lang.round(e)}, ${pr.lang.round(r)}, ${pr.lang.round(n)})`; + return i < 1 ? `rgba(${gr.lang.round(e)}, ${gr.lang.round(r)}, ${gr.lang.round(n)}, ${gr.lang.round(i)})` : `rgb(${gr.lang.round(e)}, ${gr.lang.round(r)}, ${gr.lang.round(n)})`; } -}, zO = Bse, ayt = { +}, zO = Bse, oyt = { format: { keyword: LV, hex: Yy, @@ -34609,46 +34609,46 @@ const iyt = nyt, syt = new iyt({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), wC = throw new Error(`Unsupported color format: "${t}"`); }, stringify: (t) => !t.changed && t.color ? t.color : t.type.is(Us.HSL) || t.data.r === void 0 ? FO.stringify(t) : t.a < 1 || !Number.isInteger(t.r) || !Number.isInteger(t.g) || !Number.isInteger(t.b) ? zO.stringify(t) : Yy.stringify(t) -}, ac = ayt, oyt = (t, e) => { +}, ac = oyt, lyt = (t, e) => { const r = ac.parse(t); for (const n in e) - r[n] = pr.channel.clamp[n](e[n]); + r[n] = gr.channel.clamp[n](e[n]); return ac.stringify(r); -}, Fse = oyt, lyt = (t, e, r = 0, n = 1) => { +}, Fse = lyt, cyt = (t, e, r = 0, n = 1) => { if (typeof t != "number") return Fse(t, { a: e }); const i = wC.set({ - r: pr.channel.clamp.r(t), - g: pr.channel.clamp.g(e), - b: pr.channel.clamp.b(r), - a: pr.channel.clamp.a(n) + r: gr.channel.clamp.r(t), + g: gr.channel.clamp.g(e), + b: gr.channel.clamp.b(r), + a: gr.channel.clamp.a(n) }); return ac.stringify(i); -}, E0 = lyt, cyt = (t, e) => pr.lang.round(ac.parse(t)[e]), zse = cyt, uyt = (t) => { - const { r: e, g: r, b: n } = ac.parse(t), i = 0.2126 * pr.channel.toLinear(e) + 0.7152 * pr.channel.toLinear(r) + 0.0722 * pr.channel.toLinear(n); - return pr.lang.round(i); -}, hyt = uyt, fyt = (t) => hyt(t) >= 0.5, dyt = fyt, pyt = (t) => !dyt(t), wp = pyt, gyt = (t, e, r) => { - const n = ac.parse(t), i = n[e], s = pr.channel.clamp[e](i + r); +}, E0 = cyt, uyt = (t, e) => gr.lang.round(ac.parse(t)[e]), zse = uyt, hyt = (t) => { + const { r: e, g: r, b: n } = ac.parse(t), i = 0.2126 * gr.channel.toLinear(e) + 0.7152 * gr.channel.toLinear(r) + 0.0722 * gr.channel.toLinear(n); + return gr.lang.round(i); +}, fyt = hyt, dyt = (t) => fyt(t) >= 0.5, pyt = dyt, gyt = (t) => !pyt(t), wp = gyt, myt = (t, e, r) => { + const n = ac.parse(t), i = n[e], s = gr.channel.clamp[e](i + r); return i !== s && (n[e] = s), ac.stringify(n); -}, Qse = gyt, myt = (t, e) => Qse(t, "l", e), Zt = myt, vyt = (t, e) => Qse(t, "l", -e), tr = vyt, yyt = (t, e) => { +}, Qse = myt, vyt = (t, e) => Qse(t, "l", e), Zt = vyt, yyt = (t, e) => Qse(t, "l", -e), tr = yyt, byt = (t, e) => { const r = ac.parse(t), n = {}; for (const i in e) !e[i] || (n[i] = r[i] + e[i]); return Fse(t, n); -}, Ue = yyt, byt = (t, e, r = 50) => { +}, Ue = byt, xyt = (t, e, r = 50) => { const { r: n, g: i, b: s, a } = ac.parse(t), { r: o, g: l, b: u, a: h } = ac.parse(e), f = r / 100, d = f * 2 - 1, p = a - h, m = ((d * p === -1 ? d : (d + p) / (1 + d * p)) + 1) / 2, v = 1 - m, y = n * m + o * v, b = i * m + l * v, w = s * m + u * v, O = a * f + h * (1 - f); return E0(y, b, w, O); -}, xyt = byt, wyt = (t, e = 100) => { +}, wyt = xyt, Oyt = (t, e = 100) => { const r = ac.parse(t); - return r.r = 255 - r.r, r.g = 255 - r.g, r.b = 255 - r.b, xyt(r, t, e); -}, Dt = wyt; + return r.r = 255 - r.r, r.g = 255 - r.g, r.b = 255 - r.b, wyt(r, t, e); +}, Dt = Oyt; /*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */ const { entries: Use, setPrototypeOf: RV, - isFrozen: Oyt, - getPrototypeOf: kyt, - getOwnPropertyDescriptor: Syt + isFrozen: kyt, + getPrototypeOf: Syt, + getOwnPropertyDescriptor: Tyt } = Object; let { freeze: La, @@ -34670,7 +34670,7 @@ k9 || (k9 = function(e, r, n) { S9 || (S9 = function(e, r) { return new e(...r); }); -const QO = Mo(Array.prototype.forEach), MV = Mo(Array.prototype.pop), Ev = Mo(Array.prototype.push), O5 = Mo(String.prototype.toLowerCase), N6 = Mo(String.prototype.toString), DV = Mo(String.prototype.match), _v = Mo(String.prototype.replace), Tyt = Mo(String.prototype.indexOf), Cyt = Mo(String.prototype.trim), Ml = Mo(Object.prototype.hasOwnProperty), va = Mo(RegExp.prototype.test), Av = Eyt(TypeError); +const QO = Mo(Array.prototype.forEach), MV = Mo(Array.prototype.pop), Ev = Mo(Array.prototype.push), O5 = Mo(String.prototype.toLowerCase), N6 = Mo(String.prototype.toString), DV = Mo(String.prototype.match), _v = Mo(String.prototype.replace), Cyt = Mo(String.prototype.indexOf), Eyt = Mo(String.prototype.trim), Ml = Mo(Object.prototype.hasOwnProperty), va = Mo(RegExp.prototype.test), Av = _yt(TypeError); function Mo(t) { return function(e) { for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) @@ -34678,7 +34678,7 @@ function Mo(t) { return k9(t, e, n); }; } -function Eyt(t) { +function _yt(t) { return function() { for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n]; @@ -34693,13 +34693,13 @@ function Dr(t, e) { let i = e[n]; if (typeof i == "string") { const s = r(i); - s !== i && (Oyt(e) || (e[n] = s), i = s); + s !== i && (kyt(e) || (e[n] = s), i = s); } t[i] = !0; } return t; } -function _yt(t) { +function Ayt(t) { for (let e = 0; e < t.length; e++) Ml(t, e) || (t[e] = null); return t; @@ -34707,42 +34707,42 @@ function _yt(t) { function Bd(t) { const e = Vse(null); for (const [r, n] of Use(t)) - Ml(t, r) && (Array.isArray(n) ? e[r] = _yt(n) : n && typeof n == "object" && n.constructor === Object ? e[r] = Bd(n) : e[r] = n); + Ml(t, r) && (Array.isArray(n) ? e[r] = Ayt(n) : n && typeof n == "object" && n.constructor === Object ? e[r] = Bd(n) : e[r] = n); return e; } function Lv(t, e) { for (; t !== null; ) { - const n = Syt(t, e); + const n = Tyt(t, e); if (n) { if (n.get) return Mo(n.get); if (typeof n.value == "function") return Mo(n.value); } - t = kyt(t); + t = Syt(t); } function r() { return null; } return r; } -const PV = La(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), I6 = La(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), $6 = La(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Ayt = La(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), B6 = La(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Lyt = La(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), NV = La(["#text"]), IV = La(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), F6 = La(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), $V = La(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), UO = La(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ryt = pl(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Myt = pl(/<%[\w\W]*|[\w\W]*%>/gm), Dyt = pl(/\${[\w\W]*}/gm), Pyt = pl(/^data-[\-\w.\u00B7-\uFFFF]/), Nyt = pl(/^aria-[\-\w]+$/), qse = pl( +const PV = La(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), I6 = La(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), $6 = La(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Lyt = La(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), B6 = La(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ryt = La(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), NV = La(["#text"]), IV = La(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), F6 = La(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), $V = La(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), UO = La(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Myt = pl(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Dyt = pl(/<%[\w\W]*|[\w\W]*%>/gm), Pyt = pl(/\${[\w\W]*}/gm), Nyt = pl(/^data-[\-\w.\u00B7-\uFFFF]/), Iyt = pl(/^aria-[\-\w]+$/), qse = pl( /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i -), Iyt = pl(/^(?:\w+script|data):/i), $yt = pl( +), $yt = pl(/^(?:\w+script|data):/i), Byt = pl( /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g -), Yse = pl(/^html$/i), Byt = pl(/^[a-z][.\w]*(-[.\w]+)+$/i); +), Yse = pl(/^html$/i), Fyt = pl(/^[a-z][.\w]*(-[.\w]+)+$/i); var BV = /* @__PURE__ */ Object.freeze({ __proto__: null, - MUSTACHE_EXPR: Ryt, - ERB_EXPR: Myt, - TMPLIT_EXPR: Dyt, - DATA_ATTR: Pyt, - ARIA_ATTR: Nyt, + MUSTACHE_EXPR: Myt, + ERB_EXPR: Dyt, + TMPLIT_EXPR: Pyt, + DATA_ATTR: Nyt, + ARIA_ATTR: Iyt, IS_ALLOWED_URI: qse, - IS_SCRIPT_OR_DATA: Iyt, - ATTR_WHITESPACE: $yt, + IS_SCRIPT_OR_DATA: $yt, + ATTR_WHITESPACE: Byt, DOCTYPE_NAME: Yse, - CUSTOM_ELEMENT: Byt + CUSTOM_ELEMENT: Fyt }); const Rv = { element: 1, @@ -34757,9 +34757,9 @@ const Rv = { documentType: 10, documentFragment: 11, notation: 12 -}, Fyt = function() { +}, zyt = function() { return typeof window > "u" ? null : window; -}, zyt = function(e, r) { +}, Qyt = function(e, r) { if (typeof e != "object" || typeof e.createPolicy != "function") return null; let n = null; @@ -34780,7 +34780,7 @@ const Rv = { } }; function Wse() { - let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Fyt(); + let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : zyt(); const e = (Je) => Wse(Je); if (e.version = "3.1.6", e.removed = [], !t || !t.document || t.document.nodeType !== Rv.document) return e.isSupported = !1, e; @@ -34881,10 +34881,10 @@ function Wse() { throw Av('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.'); O = ne.TRUSTED_TYPES_POLICY, S = O.createHTML(""); } else - O === void 0 && (O = zyt(p, i)), O !== null && typeof S == "string" && (S = O.createHTML("")); + O === void 0 && (O = Qyt(p, i)), O !== null && typeof S == "string" && (S = O.createHTML("")); La && La(ne), bt = ne; } - }, Ke = Dr({}, ["mi", "mo", "mn", "ms", "mtext"]), wt = Dr({}, ["foreignobject", "annotation-xml"]), ct = Dr({}, ["title", "style", "font", "a", "script"]), it = Dr({}, [...I6, ...$6, ...Ayt]), At = Dr({}, [...B6, ...Lyt]), ft = function(ne) { + }, Ke = Dr({}, ["mi", "mo", "mn", "ms", "mtext"]), wt = Dr({}, ["foreignobject", "annotation-xml"]), ct = Dr({}, ["title", "style", "font", "a", "script"]), it = Dr({}, [...I6, ...$6, ...Lyt]), At = Dr({}, [...B6, ...Ryt]), ft = function(ne) { let Ne = w(ne); (!Ne || !Ne.tagName) && (Ne = { namespaceURI: Re, @@ -35003,7 +35003,7 @@ function Wse() { return !1; } else if (!pe[Ne]) { if (!va(F, _v(Xe, D, ""))) { - if (!((Ne === "src" || Ne === "xlink:href" || Ne === "href") && ne !== "script" && Tyt(Xe, "data:") === 0 && ie[ne])) { + if (!((Ne === "src" || Ne === "xlink:href" || Ne === "href") && ne !== "script" && Cyt(Xe, "data:") === 0 && ie[ne])) { if (!(Z && !va(N, _v(Xe, D, "")))) { if (Xe) return !1; @@ -35036,7 +35036,7 @@ function Wse() { namespaceURI: ut, value: Et } = xr, Pt = at(lr); - let rt = lr === "value" ? Et : Cyt(Et); + let rt = lr === "value" ? Et : Eyt(Et); if (Xe.attrName = Pt, Xe.attrValue = rt, Xe.keepAttr = !0, Xe.forceKeepAttr = void 0, ir("uponSanitizeAttribute", ne, Xe), rt = Xe.attrValue, oe && va(/((--!?|])>)|<\/(style|title)/i, rt)) { yt(lr, ne); continue; @@ -35172,14 +35172,14 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu }, H.error = () => { }, H.fatal = () => { }, e <= Mu.fatal && (H.fatal = console.error ? console.error.bind(console, Uo("FATAL"), "color: orange") : console.log.bind(console, "\x1B[35m", Uo("FATAL"))), e <= Mu.error && (H.error = console.error ? console.error.bind(console, Uo("ERROR"), "color: orange") : console.log.bind(console, "\x1B[31m", Uo("ERROR"))), e <= Mu.warn && (H.warn = console.warn ? console.warn.bind(console, Uo("WARN"), "color: orange") : console.log.bind(console, "\x1B[33m", Uo("WARN"))), e <= Mu.info && (H.info = console.info ? console.info.bind(console, Uo("INFO"), "color: lightblue") : console.log.bind(console, "\x1B[34m", Uo("INFO"))), e <= Mu.debug && (H.debug = console.debug ? console.debug.bind(console, Uo("DEBUG"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", Uo("DEBUG"))), e <= Mu.trace && (H.trace = console.debug ? console.debug.bind(console, Uo("TRACE"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", Uo("TRACE"))); -}, "setLogLevel"), Uo = /* @__PURE__ */ x((t) => `%c${Ks().format("ss.SSS")} : ${t} : `, "format"), Hse = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Wy = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Qyt = /\s*%%.*\n/gm, Xb, Zse = (Xb = class extends Error { +}, "setLogLevel"), Uo = /* @__PURE__ */ x((t) => `%c${Ks().format("ss.SSS")} : ${t} : `, "format"), Hse = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, Wy = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Uyt = /\s*%%.*\n/gm, Xb, Zse = (Xb = class extends Error { constructor(e) { super(e), this.name = "UnknownDiagramError"; } }, (() => { x(Xb, "UnknownDiagramError"); })(), Xb), _m = {}, PP = /* @__PURE__ */ x(function(t, e) { - t = t.replace(Hse, "").replace(Wy, "").replace(Qyt, ` + t = t.replace(Hse, "").replace(Wy, "").replace(Uyt, ` `); for (const [r, { detector: n }] of Object.entries(_m)) if (n(t, e)) @@ -35192,14 +35192,14 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu Kse(e, r, n); }, "registerLazyLoadedDiagrams"), Kse = /* @__PURE__ */ x((t, e, r) => { _m[t] && H.warn(`Detector with key ${t} already exists. Overwriting.`), _m[t] = { detector: e, loader: r }, H.debug(`Detector with key ${t} added${r ? " with loader" : ""}`); -}, "addDetector"), Uyt = /* @__PURE__ */ x((t) => _m[t].loader, "getDiagramLoader"), T9 = /* @__PURE__ */ x((t, e, { depth: r = 2, clobber: n = !1 } = {}) => { +}, "addDetector"), Vyt = /* @__PURE__ */ x((t) => _m[t].loader, "getDiagramLoader"), T9 = /* @__PURE__ */ x((t, e, { depth: r = 2, clobber: n = !1 } = {}) => { const i = { depth: r, clobber: n }; return Array.isArray(e) && !Array.isArray(t) ? (e.forEach((s) => T9(t, s, i)), t) : Array.isArray(e) && Array.isArray(t) ? (e.forEach((s) => { t.includes(s) || t.push(s); }), t) : t === void 0 || r <= 0 ? t != null && typeof t == "object" && typeof e == "object" ? Object.assign(t, e) : e : (e !== void 0 && typeof t == "object" && typeof e == "object" && Object.keys(e).forEach((s) => { typeof e[s] == "object" && (t[s] === void 0 || typeof t[s] == "object") ? (t[s] === void 0 && (t[s] = Array.isArray(e[s]) ? [] : {}), t[s] = T9(t[s], e[s], { depth: r - 1, clobber: n })) : (n || typeof t[s] != "object" && typeof e[s] != "object") && (t[s] = e[s]); }), t); -}, "assignWithDepth"), Ui = T9, OC = "#ffffff", kC = "#f2f2f2", ka = /* @__PURE__ */ x((t, e) => e ? Ue(t, { s: -40, l: 10 }) : Ue(t, { s: -40, l: -10 }), "mkBorder"), Hb, Vyt = (Hb = class { +}, "assignWithDepth"), Ui = T9, OC = "#ffffff", kC = "#f2f2f2", ka = /* @__PURE__ */ x((t, e) => e ? Ue(t, { s: -40, l: 10 }) : Ue(t, { s: -40, l: -10 }), "mkBorder"), Hb, qyt = (Hb = class { constructor() { this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px"; } @@ -35249,10 +35249,10 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu } }, (() => { x(Hb, "Theme"); -})(), Hb), qyt = /* @__PURE__ */ x((t) => { - const e = new Vyt(); +})(), Hb), Yyt = /* @__PURE__ */ x((t) => { + const e = new qyt(); return e.calculate(t), e; -}, "getThemeVariables"), Zb, Yyt = (Zb = class { +}, "getThemeVariables"), Zb, Wyt = (Zb = class { constructor() { this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = Zt(this.primaryColor, 16), this.tertiaryColor = Ue(this.primaryColor, { h: -160 }), this.primaryBorderColor = Dt(this.background), this.secondaryBorderColor = ka(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ka(this.tertiaryColor, this.darkMode), this.primaryTextColor = Dt(this.primaryColor), this.secondaryTextColor = Dt(this.secondaryColor), this.tertiaryTextColor = Dt(this.tertiaryColor), this.lineColor = Dt(this.background), this.textColor = Dt(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = Zt(Dt("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = E0(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.THEME_COLOR_LIMIT = 12, 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 = tr("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = tr(this.sectionBkgColor, 10), this.taskBorderColor = E0(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = E0(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.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd"; } @@ -35305,10 +35305,10 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu } }, (() => { x(Zb, "Theme"); -})(), Zb), Wyt = /* @__PURE__ */ x((t) => { - const e = new Yyt(); +})(), Zb), Gyt = /* @__PURE__ */ x((t) => { + const e = new Wyt(); return e.calculate(t), e; -}, "getThemeVariables"), jb, Gyt = (jb = class { +}, "getThemeVariables"), jb, Xyt = (jb = class { constructor() { this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = Ue(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = Ue(this.primaryColor, { h: -160 }), this.primaryBorderColor = ka(this.primaryColor, this.darkMode), this.secondaryBorderColor = ka(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ka(this.tertiaryColor, this.darkMode), this.primaryTextColor = Dt(this.primaryColor), this.secondaryTextColor = Dt(this.secondaryColor), this.tertiaryTextColor = Dt(this.tertiaryColor), this.lineColor = Dt(this.background), this.textColor = Dt(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 = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, 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 = "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 = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", 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 = E0(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.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.updateColors(); } @@ -35355,9 +35355,9 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu }, (() => { x(jb, "Theme"); })(), jb), NP = /* @__PURE__ */ x((t) => { - const e = new Gyt(); + const e = new Xyt(); return e.calculate(t), e; -}, "getThemeVariables"), Kb, Xyt = (Kb = class { +}, "getThemeVariables"), Kb, Hyt = (Kb = class { constructor() { 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 = Zt("#cde498", 10), this.primaryBorderColor = ka(this.primaryColor, this.darkMode), this.secondaryBorderColor = ka(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ka(this.tertiaryColor, this.darkMode), this.primaryTextColor = Dt(this.primaryColor), this.secondaryTextColor = Dt(this.secondaryColor), this.tertiaryTextColor = Dt(this.primaryColor), this.lineColor = Dt(this.background), this.textColor = Dt(this.background), this.THEME_COLOR_LIMIT = 12, 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 = "calculated", 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.excludeBkgColor = "#eeeeee", 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.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222"; } @@ -35408,10 +35408,10 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu } }, (() => { x(Kb, "Theme"); -})(), Kb), Hyt = /* @__PURE__ */ x((t) => { - const e = new Xyt(); +})(), Kb), Zyt = /* @__PURE__ */ x((t) => { + const e = new Hyt(); return e.calculate(t), e; -}, "getThemeVariables"), Jb, Zyt = (Jb = class { +}, "getThemeVariables"), Jb, jyt = (Jb = class { constructor() { this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = Zt(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = Ue(this.primaryColor, { h: -160 }), this.primaryBorderColor = ka(this.primaryColor, this.darkMode), this.secondaryBorderColor = ka(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ka(this.tertiaryColor, this.darkMode), this.primaryTextColor = Dt(this.primaryColor), this.secondaryTextColor = Dt(this.secondaryColor), this.tertiaryTextColor = Dt(this.tertiaryColor), this.lineColor = Dt(this.background), this.textColor = Dt(this.background), 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.THEME_COLOR_LIMIT = 12, 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 = this.actorBorder, 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.excludeBkgColor = "#eeeeee", 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.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222"; } @@ -35458,26 +35458,26 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu } }, (() => { x(Jb, "Theme"); -})(), Jb), jyt = /* @__PURE__ */ x((t) => { - const e = new Zyt(); +})(), Jb), Kyt = /* @__PURE__ */ x((t) => { + const e = new jyt(); return e.calculate(t), e; }, "getThemeVariables"), rh = { base: { - getThemeVariables: qyt + getThemeVariables: Yyt }, dark: { - getThemeVariables: Wyt + getThemeVariables: Gyt }, default: { getThemeVariables: NP }, forest: { - getThemeVariables: Hyt + getThemeVariables: Zyt }, neutral: { - getThemeVariables: jyt + getThemeVariables: Kyt } -}, Uh = { +}, Vh = { flowchart: { useMaxWidth: !0, titleTopMargin: 25, @@ -35943,7 +35943,7 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu markdownAutoWrap: !0, suppressErrorRendering: !1 }, Jse = { - ...Uh, + ...Vh, deterministicIDSeed: void 0, elk: { mergeEdges: !1, @@ -35952,7 +35952,7 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu themeCSS: void 0, themeVariables: rh.default.getThemeVariables(), sequence: { - ...Uh.sequence, + ...Vh.sequence, messageFont: /* @__PURE__ */ x(function() { return { fontFamily: this.messageFontFamily, @@ -35976,12 +35976,12 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu }, "actorFont") }, gantt: { - ...Uh.gantt, + ...Vh.gantt, tickInterval: void 0, useWidth: void 0 }, c4: { - ...Uh.c4, + ...Vh.c4, useWidth: void 0, personFont: /* @__PURE__ */ x(function() { return { @@ -36139,28 +36139,28 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu }, "messageFont") }, pie: { - ...Uh.pie, + ...Vh.pie, useWidth: 984 }, xyChart: { - ...Uh.xyChart, + ...Vh.xyChart, useWidth: void 0 }, requirement: { - ...Uh.requirement, + ...Vh.requirement, useWidth: void 0 }, packet: { - ...Uh.packet + ...Vh.packet } -}, eae = /* @__PURE__ */ x((t, e = "") => Object.keys(t).reduce((r, n) => Array.isArray(t[n]) ? r : typeof t[n] == "object" && t[n] !== null ? [...r, e + n, ...eae(t[n], "")] : [...r, e + n], []), "keyify"), Kyt = new Set(eae(Jse, "")), cn = Jse, h3 = /* @__PURE__ */ x((t) => { +}, eae = /* @__PURE__ */ x((t, e = "") => Object.keys(t).reduce((r, n) => Array.isArray(t[n]) ? r : typeof t[n] == "object" && t[n] !== null ? [...r, e + n, ...eae(t[n], "")] : [...r, e + n], []), "keyify"), Jyt = new Set(eae(Jse, "")), cn = Jse, h3 = /* @__PURE__ */ x((t) => { if (H.debug("sanitizeDirective called with", t), !(typeof t != "object" || t == null)) { if (Array.isArray(t)) { t.forEach((e) => h3(e)); return; } for (const e of Object.keys(t)) { - if (H.debug("Checking key", e), e.startsWith("__") || e.includes("proto") || e.includes("constr") || !Kyt.has(e) || t[e] == null) { + if (H.debug("Checking key", e), e.startsWith("__") || e.includes("proto") || e.includes("constr") || !Jyt.has(e) || t[e] == null) { H.debug("sanitize deleting key: ", e), delete t[e]; continue; } @@ -36170,7 +36170,7 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu } const r = ["themeCSS", "fontFamily", "altFontFamily"]; for (const n of r) - e.includes(n) && (H.debug("sanitizing css option", e), t[e] = Jyt(t[e])); + e.includes(n) && (H.debug("sanitizing css option", e), t[e] = e2t(t[e])); } if (t.themeVariables) for (const e of Object.keys(t.themeVariables)) { @@ -36179,7 +36179,7 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu } H.debug("After sanitization", t); } -}, "sanitizeDirective"), Jyt = /* @__PURE__ */ x((t) => { +}, "sanitizeDirective"), e2t = /* @__PURE__ */ x((t) => { let e = 0, r = 0; for (const n of t) { if (e < r) @@ -36199,9 +36199,9 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu r.theme && r.theme in rh && (r.themeVariables = rh[r.theme].getThemeVariables(s)); } return Gy = r, sae(Gy), Gy; -}, "updateCurrentConfig"), e2t = /* @__PURE__ */ x((t) => (Ga = Ui({}, Am), Ga = Ui(Ga, t), t.theme && rh[t.theme] && (Ga.themeVariables = rh[t.theme].getThemeVariables(t.themeVariables)), SC(Ga, Lm), Ga), "setSiteConfig"), t2t = /* @__PURE__ */ x((t) => { +}, "updateCurrentConfig"), t2t = /* @__PURE__ */ x((t) => (Ga = Ui({}, Am), Ga = Ui(Ga, t), t.theme && rh[t.theme] && (Ga.themeVariables = rh[t.theme].getThemeVariables(t.themeVariables)), SC(Ga, Lm), Ga), "setSiteConfig"), r2t = /* @__PURE__ */ x((t) => { tae = Ui({}, t); -}, "saveConfigFromInitialize"), r2t = /* @__PURE__ */ x((t) => (Ga = Ui(Ga, t), SC(Ga, Lm), Ga), "updateSiteConfig"), rae = /* @__PURE__ */ x(() => Ui({}, Ga), "getSiteConfig"), nae = /* @__PURE__ */ x((t) => (sae(t), Ui(Gy, t), Ai()), "setConfig"), Ai = /* @__PURE__ */ x(() => Ui({}, Gy), "getConfig"), iae = /* @__PURE__ */ x((t) => { +}, "saveConfigFromInitialize"), n2t = /* @__PURE__ */ x((t) => (Ga = Ui(Ga, t), SC(Ga, Lm), Ga), "updateSiteConfig"), rae = /* @__PURE__ */ x(() => Ui({}, Ga), "getSiteConfig"), nae = /* @__PURE__ */ x((t) => (sae(t), Ui(Gy, t), Ai()), "setConfig"), Ai = /* @__PURE__ */ x(() => Ui({}, Gy), "getConfig"), iae = /* @__PURE__ */ x((t) => { var e; !t || (["secure", ...(e = Ga.secure) != null ? e : []].forEach((r) => { Object.hasOwn(t, r) && (H.debug(`Denied attempt to modify a secure key ${r}`, t[r]), delete t[r]); @@ -36210,7 +36210,7 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu }), Object.keys(t).forEach((r) => { typeof t[r] == "string" && (t[r].includes("<") || t[r].includes(">") || t[r].includes("url(data:")) && delete t[r], typeof t[r] == "object" && iae(t[r]); })); -}, "sanitize"), n2t = /* @__PURE__ */ x((t) => { +}, "sanitize"), i2t = /* @__PURE__ */ x((t) => { var e; h3(t), t.fontFamily && !((e = t.themeVariables) != null && e.fontFamily) && (t.themeVariables = { ...t.themeVariables, @@ -36218,13 +36218,13 @@ var Em = Wse(), Gse = Object.defineProperty, x = (t, e) => Gse(t, "name", { valu }), Lm.push(t), SC(Ga, Lm); }, "addDirective"), f3 = /* @__PURE__ */ x((t = Ga) => { Lm = [], SC(t, Lm); -}, "reset"), i2t = { +}, "reset"), s2t = { LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead." -}, FV = {}, s2t = /* @__PURE__ */ x((t) => { - FV[t] || (H.warn(i2t[t]), FV[t] = !0); +}, FV = {}, a2t = /* @__PURE__ */ x((t) => { + FV[t] || (H.warn(s2t[t]), FV[t] = !0); }, "issueWarning"), sae = /* @__PURE__ */ x((t) => { - !t || (t.lazyLoadedDiagrams || t.loadExternalDiagramsAtStartup) && s2t("LAZY_LOAD_DEPRECATED"); -}, "checkConfig"), D1 = //gi, a2t = /* @__PURE__ */ x((t) => t ? lae(t).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), o2t = /* @__PURE__ */ (() => { + !t || (t.lazyLoadedDiagrams || t.loadExternalDiagramsAtStartup) && a2t("LAZY_LOAD_DEPRECATED"); +}, "checkConfig"), D1 = //gi, o2t = /* @__PURE__ */ x((t) => t ? lae(t).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), l2t = /* @__PURE__ */ (() => { let t = !1; return () => { t || (aae(), t = !0); @@ -36241,22 +36241,22 @@ function aae() { }); } x(aae, "setupDompurifyHooks"); -var oae = /* @__PURE__ */ x((t) => (o2t(), Em.sanitize(t)), "removeScript"), zV = /* @__PURE__ */ x((t, e) => { +var oae = /* @__PURE__ */ x((t) => (l2t(), Em.sanitize(t)), "removeScript"), zV = /* @__PURE__ */ x((t, e) => { var r; if (((r = e.flowchart) == null ? void 0 : r.htmlLabels) !== !1) { const n = e.securityLevel; - n === "antiscript" || n === "strict" ? t = oae(t) : n !== "loose" && (t = lae(t), t = t.replace(//g, ">"), t = t.replace(/=/g, "="), t = h2t(t)); + n === "antiscript" || n === "strict" ? t = oae(t) : n !== "loose" && (t = lae(t), t = t.replace(//g, ">"), t = t.replace(/=/g, "="), t = f2t(t)); } return t; }, "sanitizeMore"), yi = /* @__PURE__ */ x((t, e) => t && (e.dompurifyConfig ? t = Em.sanitize(zV(t, e), e.dompurifyConfig).toString() : t = Em.sanitize(zV(t, e), { FORBID_TAGS: ["style"] -}).toString(), t), "sanitizeText"), l2t = /* @__PURE__ */ x((t, e) => typeof t == "string" ? yi(t, e) : t.flat().map((r) => yi(r, e)), "sanitizeTextOrArray"), c2t = /* @__PURE__ */ x((t) => D1.test(t), "hasBreaks"), u2t = /* @__PURE__ */ x((t) => t.split(D1), "splitBreaks"), h2t = /* @__PURE__ */ x((t) => t.replace(/#br#/g, "
"), "placeholderToBreak"), lae = /* @__PURE__ */ x((t) => t.replace(D1, "#br#"), "breakToPlaceholder"), f2t = /* @__PURE__ */ x((t) => { +}).toString(), t), "sanitizeText"), c2t = /* @__PURE__ */ x((t, e) => typeof t == "string" ? yi(t, e) : t.flat().map((r) => yi(r, e)), "sanitizeTextOrArray"), u2t = /* @__PURE__ */ x((t) => D1.test(t), "hasBreaks"), h2t = /* @__PURE__ */ x((t) => t.split(D1), "splitBreaks"), f2t = /* @__PURE__ */ x((t) => t.replace(/#br#/g, "
"), "placeholderToBreak"), lae = /* @__PURE__ */ x((t) => t.replace(D1, "#br#"), "breakToPlaceholder"), d2t = /* @__PURE__ */ x((t) => { let e = ""; return t && (e = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, e = e.replaceAll(/\(/g, "\\("), e = e.replaceAll(/\)/g, "\\)")), e; -}, "getUrl"), Pn = /* @__PURE__ */ x((t) => !(t === !1 || ["false", "null", "0"].includes(String(t).trim().toLowerCase())), "evaluate"), d2t = /* @__PURE__ */ x(function(...t) { +}, "getUrl"), Pn = /* @__PURE__ */ x((t) => !(t === !1 || ["false", "null", "0"].includes(String(t).trim().toLowerCase())), "evaluate"), p2t = /* @__PURE__ */ x(function(...t) { const e = t.filter((r) => !isNaN(r)); return Math.max(...e); -}, "getMax"), p2t = /* @__PURE__ */ x(function(...t) { +}, "getMax"), g2t = /* @__PURE__ */ x(function(...t) { const e = t.filter((r) => !isNaN(r)); return Math.min(...e); }, "getMin"), Xy = /* @__PURE__ */ x(function(t) { @@ -36265,15 +36265,15 @@ var oae = /* @__PURE__ */ x((t) => (o2t(), Em.sanitize(t)), "removeScript"), zV let i = e[n]; if (i === "," && n > 0 && n + 1 < e.length) { const s = e[n - 1], a = e[n + 1]; - g2t(s, a) && (i = s + "," + a, n++, r.pop()); + m2t(s, a) && (i = s + "," + a, n++, r.pop()); } - r.push(m2t(i)); + r.push(v2t(i)); } return r.join(""); -}, "parseGenericTypes"), C9 = /* @__PURE__ */ x((t, e) => Math.max(0, t.split(e).length - 1), "countOccurrence"), g2t = /* @__PURE__ */ x((t, e) => { +}, "parseGenericTypes"), C9 = /* @__PURE__ */ x((t, e) => Math.max(0, t.split(e).length - 1), "countOccurrence"), m2t = /* @__PURE__ */ x((t, e) => { const r = C9(t, "~"), n = C9(e, "~"); return r === 1 && n === 1; -}, "shouldCombineSets"), m2t = /* @__PURE__ */ x((t) => { +}, "shouldCombineSets"), v2t = /* @__PURE__ */ x((t) => { const e = C9(t, "~"); let r = !1; if (e <= 1) @@ -36300,7 +36300,7 @@ var oae = /* @__PURE__ */ x((t) => (o2t(), Em.sanitize(t)), "removeScript"), zV return t; if (!(QV() || e.legacyMathML || e.forceLegacyMathML)) return t.replace(E9, "MathML is unsupported in this environment."); - const { default: r } = await Promise.resolve().then(() => gMt), n = e.forceLegacyMathML || !QV() && e.legacyMathML ? "htmlAndMathml" : "mathml"; + const { default: r } = await Promise.resolve().then(() => vMt), n = e.forceLegacyMathML || !QV() && e.legacyMathML ? "htmlAndMathml" : "mathml"; return t.split(D1).map( (i) => Ra(i) ? `
${i}
` : `
${i}
` ).join("").replace( @@ -36312,26 +36312,26 @@ var oae = /* @__PURE__ */ x((t) => (o2t(), Em.sanitize(t)), "removeScript"), zV }).replace(/\n/g, " ").replace(//g, "") ); }, "renderKatex"), mt = { - getRows: a2t, + getRows: o2t, sanitizeText: yi, - sanitizeTextOrArray: l2t, - hasBreaks: c2t, - splitBreaks: u2t, + sanitizeTextOrArray: c2t, + hasBreaks: u2t, + splitBreaks: h2t, lineBreakRegex: D1, removeScript: oae, - getUrl: f2t, + getUrl: d2t, evaluate: Pn, - getMax: d2t, - getMin: p2t -}, v2t = /* @__PURE__ */ x(function(t, e) { + getMax: p2t, + getMin: g2t +}, y2t = /* @__PURE__ */ x(function(t, e) { for (let r of e) t.attr(r[0], r[1]); -}, "d3Attrs"), y2t = /* @__PURE__ */ x(function(t, e, r) { +}, "d3Attrs"), b2t = /* @__PURE__ */ x(function(t, e, r) { let n = /* @__PURE__ */ new Map(); return r ? (n.set("width", "100%"), n.set("style", `max-width: ${e}px;`)) : (n.set("height", t), n.set("width", e)), n; }, "calculateSvgSizeAttrs"), Ds = /* @__PURE__ */ x(function(t, e, r, n) { - const i = y2t(e, r, n); - v2t(t, i); + const i = b2t(e, r, n); + y2t(t, i); }, "configureSvgSize"), P1 = /* @__PURE__ */ x(function(t, e, r, n) { const i = e.node().getBBox(), s = i.width, a = i.height; H.info(`SVG bounds: ${s}x${a}`, i); @@ -36339,7 +36339,7 @@ var oae = /* @__PURE__ */ x((t) => (o2t(), Em.sanitize(t)), "removeScript"), zV H.info(`Graph bounds: ${o}x${l}`, t), o = s + r * 2, l = a + r * 2, H.info(`Calculated bounds: ${o}x${l}`), Ds(e, l, o, n); const u = `${i.x - r} ${i.y - r} ${i.width + 2 * r} ${i.height + 2 * r}`; e.attr("viewBox", u); -}, "setupGraphViewbox"), k5 = {}, b2t = /* @__PURE__ */ x((t, e, r) => { +}, "setupGraphViewbox"), k5 = {}, x2t = /* @__PURE__ */ x((t, e, r) => { let n = ""; return t in k5 && k5[t] ? n = k5[t](r) : H.warn(`No theme found for ${t}`), ` & { font-family: ${r.fontFamily}; @@ -36397,9 +36397,9 @@ var oae = /* @__PURE__ */ x((t) => (o2t(), Em.sanitize(t)), "removeScript"), zV ${e} `; -}, "getStyles"), x2t = /* @__PURE__ */ x((t, e) => { +}, "getStyles"), w2t = /* @__PURE__ */ x((t, e) => { e !== void 0 && (k5[t] = e); -}, "addStylesForDiagram"), w2t = b2t, IP = {}; +}, "addStylesForDiagram"), O2t = x2t, IP = {}; Xse(IP, { clear: () => cs, getAccDescription: () => Is, @@ -36418,31 +36418,31 @@ var $P = "", BP = "", FP = "", zP = /* @__PURE__ */ x((t) => yi(t, Ai()), "sanit `); }, "setAccDescription"), Is = /* @__PURE__ */ x(() => FP, "getAccDescription"), Na = /* @__PURE__ */ x((t) => { BP = zP(t); -}, "setDiagramTitle"), $s = /* @__PURE__ */ x(() => BP, "getDiagramTitle"), UV = H, O2t = DP, ke = Ai, VV = nae, cae = Am, k2t = /* @__PURE__ */ x((t) => yi(t, ke()), "sanitizeText"), uae = P1, S2t = /* @__PURE__ */ x(() => IP, "getCommonDb"), d3 = {}, p3 = /* @__PURE__ */ x((t, e, r) => { +}, "setDiagramTitle"), $s = /* @__PURE__ */ x(() => BP, "getDiagramTitle"), UV = H, k2t = DP, ke = Ai, VV = nae, cae = Am, S2t = /* @__PURE__ */ x((t) => yi(t, ke()), "sanitizeText"), uae = P1, T2t = /* @__PURE__ */ x(() => IP, "getCommonDb"), d3 = {}, p3 = /* @__PURE__ */ x((t, e, r) => { var n; - d3[t] && UV.warn(`Diagram with id ${t} already registered. Overwriting.`), d3[t] = e, r && Kse(t, r), x2t(t, e.styles), (n = e.injectUtils) == null || n.call( + d3[t] && UV.warn(`Diagram with id ${t} already registered. Overwriting.`), d3[t] = e, r && Kse(t, r), w2t(t, e.styles), (n = e.injectUtils) == null || n.call( e, UV, - O2t, - ke, k2t, + ke, + S2t, uae, - S2t(), + T2t(), () => { } ); }, "registerDiagram"), _9 = /* @__PURE__ */ x((t) => { if (t in d3) return d3[t]; - throw new T2t(t); -}, "getDiagram"), ex, T2t = (ex = class extends Error { + throw new C2t(t); +}, "getDiagram"), ex, C2t = (ex = class extends Error { constructor(e) { super(`Diagram ${e} not found.`); } }, (() => { x(ex, "DiagramNotFoundError"); })(), ex); -const C2t = Object.freeze( +const E2t = Object.freeze( { left: 0, top: 0, @@ -36454,19 +36454,19 @@ const C2t = Object.freeze( vFlip: !1, hFlip: !1 }), hae = Object.freeze({ - ...C2t, + ...E2t, ...g3 -}), E2t = Object.freeze({ +}), _2t = Object.freeze({ ...hae, body: "", hidden: !1 -}), _2t = Object.freeze({ +}), A2t = Object.freeze({ width: null, height: null -}), A2t = Object.freeze({ - ..._2t, +}), L2t = Object.freeze({ + ...A2t, ...g3 -}), z6 = /^[a-z0-9]+(-[a-z0-9]+)*$/, L2t = (t, e, r, n = "") => { +}), z6 = /^[a-z0-9]+(-[a-z0-9]+)*$/, R2t = (t, e, r, n = "") => { const i = t.split(":"); if (t.slice(0, 1) === "@") { if (i.length < 2 || i.length > 3) @@ -36502,19 +36502,19 @@ const C2t = Object.freeze( } return null; }, Q6 = (t, e) => t ? !!((t.provider === "" || t.provider.match(z6)) && (e && t.prefix === "" || t.prefix.match(z6)) && t.name.match(z6)) : !1; -function R2t(t, e) { +function M2t(t, e) { const r = {}; !t.hFlip != !e.hFlip && (r.hFlip = !0), !t.vFlip != !e.vFlip && (r.vFlip = !0); const n = ((t.rotate || 0) + (e.rotate || 0)) % 4; return n && (r.rotate = n), r; } function qV(t, e) { - const r = R2t(t, e); - for (const n in E2t) + const r = M2t(t, e); + for (const n in _2t) n in g3 ? n in t && !(n in r) && (r[n] = g3[n]) : n in e ? r[n] = e[n] : n in t && (r[n] = t[n]); return r; } -function M2t(t, e) { +function D2t(t, e) { const r = t.icons, n = t.aliases || /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null); function s(a) { if (r[a]) @@ -36539,13 +36539,13 @@ function YV(t, e, r) { } return a(e), r.forEach(a), qV(t, s); } -function D2t(t, e) { +function P2t(t, e) { if (t.icons[e]) return YV(t, e, []); - const r = M2t(t, [e])[e]; + const r = D2t(t, [e])[e]; return r ? YV(t, e, r) : null; } -const P2t = /(-?[0-9.]*[0-9]+[0-9.]*)/g, N2t = /^-?[0-9.]*[0-9]+[0-9.]*$/g; +const N2t = /(-?[0-9.]*[0-9]+[0-9.]*)/g, I2t = /^-?[0-9.]*[0-9]+[0-9.]*$/g; function WV(t, e, r) { if (e === 1) return t; @@ -36553,11 +36553,11 @@ function WV(t, e, r) { return Math.ceil(t * e * r) / r; if (typeof t != "string") return t; - const n = t.split(P2t); + const n = t.split(N2t); if (n === null || !n.length) return t; const i = []; - let s = n.shift(), a = N2t.test(s); + let s = n.shift(), a = I2t.test(s); for (; ; ) { if (a) { const o = parseFloat(s); @@ -36569,7 +36569,7 @@ function WV(t, e, r) { a = !a; } } -function I2t(t, e = "defs") { +function $2t(t, e = "defs") { let r = ""; const n = t.indexOf("<" + e); for (; n >= 0; ) { @@ -36586,20 +36586,20 @@ function I2t(t, e = "defs") { content: t }; } -function $2t(t, e) { +function B2t(t, e) { return t ? "" + t + "" + e : e; } -function B2t(t, e, r) { - const n = I2t(t); - return $2t(n.defs, e + n.content + r); +function F2t(t, e, r) { + const n = $2t(t); + return B2t(n.defs, e + n.content + r); } -const F2t = (t) => t === "unset" || t === "undefined" || t === "none"; -function z2t(t, e) { +const z2t = (t) => t === "unset" || t === "undefined" || t === "none"; +function Q2t(t, e) { const r = { ...hae, ...t }, n = { - ...A2t, + ...L2t, ...e }, i = { left: r.left, @@ -36634,7 +36634,7 @@ function z2t(t, e) { ); break; } - w % 2 === 1 && (i.left !== i.top && (O = i.left, i.left = i.top, i.top = O), i.width !== i.height && (O = i.width, i.width = i.height, i.height = O)), v.length && (s = B2t( + w % 2 === 1 && (i.left !== i.top && (O = i.left, i.left = i.top, i.top = O), i.width !== i.height && (O = i.width, i.width = i.height, i.height = O)), v.length && (s = F2t( s, '', "" @@ -36644,7 +36644,7 @@ function z2t(t, e) { let h, f; a === null ? (f = o === null ? "1em" : o === "auto" ? u : o, h = WV(f, l / u)) : (h = a === "auto" ? l : a, f = o === null ? WV(h, u / l) : o === "auto" ? u : o); const d = {}, p = (m, v) => { - F2t(v) || (d[m] = v.toString()); + z2t(v) || (d[m] = v.toString()); }; p("width", h), p("height", f); const g = [i.left, i.top, l, u]; @@ -36654,25 +36654,25 @@ function z2t(t, e) { body: s }; } -const Q2t = /\sid="(\S+)"/g, U2t = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16); -let V2t = 0; -function q2t(t, e = U2t) { +const U2t = /\sid="(\S+)"/g, V2t = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16); +let q2t = 0; +function Y2t(t, e = V2t) { const r = []; let n; - for (; n = Q2t.exec(t); ) + for (; n = U2t.exec(t); ) r.push(n[1]); if (!r.length) return t; const i = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16); return r.forEach((s) => { - const a = typeof e == "function" ? e(s) : e + (V2t++).toString(), o = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); + const a = typeof e == "function" ? e(s) : e + (q2t++).toString(), o = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); t = t.replace( new RegExp('([#;"])(' + o + ')([")]|\\.[a-z])', "g"), "$1" + a + i + "$3" ); }), t = t.replace(new RegExp(i, "g"), ""), t; } -function Y2t(t, e) { +function W2t(t, e) { let r = t.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"'; for (const n in e) r += " " + n + '="' + e[n] + '"'; @@ -36695,8 +36695,8 @@ var fae = { else throw H.error("Invalid icon loader:", e), new Error('Invalid icon loader. Must have either "icons" or "loader" property.'); } -}, "registerIconPacks"), W2t = /* @__PURE__ */ x(async (t, e) => { - const r = L2t(t, !0, e !== void 0); +}, "registerIconPacks"), G2t = /* @__PURE__ */ x(async (t, e) => { + const r = R2t(t, !0, e !== void 0); if (!r) throw new Error(`Invalid icon name: ${t}`); const n = r.prefix || e; @@ -36713,19 +36713,19 @@ var fae = { throw H.error(o), new Error(`Failed to load icon set: ${r.prefix}`); } } - const s = D2t(i, r.name); + const s = P2t(i, r.name); if (!s) throw new Error(`Icon not found: ${t}`); return s; }, "getRegisteredIconData"), L9 = /* @__PURE__ */ x(async (t, e) => { let r; try { - r = await W2t(t, e == null ? void 0 : e.fallbackPrefix); + r = await G2t(t, e == null ? void 0 : e.fallbackPrefix); } catch (s) { H.error(s), r = fae; } - const n = z2t(r, e); - return Y2t(q2t(n.body), n.attributes); + const n = Q2t(r, e); + return W2t(Y2t(n.body), n.attributes); }, "getIconSVG"), Op = /* @__PURE__ */ x(({ flowchart: t }) => { @@ -36736,7 +36736,7 @@ var fae = { subGraphTitleBottomMargin: r, subGraphTitleTotalMargin: n }; -}, "getSubGraphTitleMargins"), Vh = { +}, "getSubGraphTitleMargins"), qh = { aggregation: 18, extension: 18, composition: 18, @@ -36755,29 +36755,29 @@ x(ly, "calculateDeltaAndAngle"); var m3 = /* @__PURE__ */ x((t) => Array.isArray(t) ? { x: t[0], y: t[1] } : t, "pointTransformer"), gae = /* @__PURE__ */ x((t) => ({ x: /* @__PURE__ */ x(function(e, r, n) { let i = 0; - if (r === 0 && Object.hasOwn(Vh, t.arrowTypeStart)) { + if (r === 0 && Object.hasOwn(qh, t.arrowTypeStart)) { const { angle: s, deltaX: a } = ly(n[0], n[1]); - i = Vh[t.arrowTypeStart] * Math.cos(s) * (a >= 0 ? 1 : -1); - } else if (r === n.length - 1 && Object.hasOwn(Vh, t.arrowTypeEnd)) { + i = qh[t.arrowTypeStart] * Math.cos(s) * (a >= 0 ? 1 : -1); + } else if (r === n.length - 1 && Object.hasOwn(qh, t.arrowTypeEnd)) { const { angle: s, deltaX: a } = ly( n[n.length - 1], n[n.length - 2] ); - i = Vh[t.arrowTypeEnd] * Math.cos(s) * (a >= 0 ? 1 : -1); + i = qh[t.arrowTypeEnd] * Math.cos(s) * (a >= 0 ? 1 : -1); } return m3(e).x + i; }, "x"), y: /* @__PURE__ */ x(function(e, r, n) { let i = 0; - if (r === 0 && Object.hasOwn(Vh, t.arrowTypeStart)) { + if (r === 0 && Object.hasOwn(qh, t.arrowTypeStart)) { const { angle: s, deltaY: a } = ly(n[0], n[1]); - i = Vh[t.arrowTypeStart] * Math.abs(Math.sin(s)) * (a >= 0 ? 1 : -1); - } else if (r === n.length - 1 && Object.hasOwn(Vh, t.arrowTypeEnd)) { + i = qh[t.arrowTypeStart] * Math.abs(Math.sin(s)) * (a >= 0 ? 1 : -1); + } else if (r === n.length - 1 && Object.hasOwn(qh, t.arrowTypeEnd)) { const { angle: s, deltaY: a } = ly( n[n.length - 1], n[n.length - 2] ); - i = Vh[t.arrowTypeEnd] * Math.abs(Math.sin(s)) * (a >= 0 ? 1 : -1); + i = qh[t.arrowTypeEnd] * Math.abs(Math.sin(s)) * (a >= 0 ? 1 : -1); } return m3(e).y + i; }, "y") @@ -36794,16 +36794,16 @@ is.relativeFirstCharacters = [".", "/"]; is.BLANK_URL = "about:blank"; Object.defineProperty(QP, "__esModule", { value: !0 }); var yd = QP.sanitizeUrl = void 0, Vs = is; -function G2t(t) { +function X2t(t) { return Vs.relativeFirstCharacters.indexOf(t[0]) > -1; } -function X2t(t) { +function H2t(t) { var e = t.replace(Vs.ctrlCharactersRegex, ""); return e.replace(Vs.htmlEntitiesRegex, function(r, n) { return String.fromCharCode(n); }); } -function H2t(t) { +function Z2t(t) { return URL.canParse(t); } function GV(t) { @@ -36813,17 +36813,17 @@ function GV(t) { return t; } } -function Z2t(t) { +function j2t(t) { if (!t) return Vs.BLANK_URL; var e, r = GV(t.trim()); do - r = X2t(r).replace(Vs.htmlCtrlEntityRegex, "").replace(Vs.ctrlCharactersRegex, "").replace(Vs.whitespaceEscapeCharsRegex, "").trim(), r = GV(r), e = r.match(Vs.ctrlCharactersRegex) || r.match(Vs.htmlEntitiesRegex) || r.match(Vs.htmlCtrlEntityRegex) || r.match(Vs.whitespaceEscapeCharsRegex); + r = H2t(r).replace(Vs.htmlCtrlEntityRegex, "").replace(Vs.ctrlCharactersRegex, "").replace(Vs.whitespaceEscapeCharsRegex, "").trim(), r = GV(r), e = r.match(Vs.ctrlCharactersRegex) || r.match(Vs.htmlEntitiesRegex) || r.match(Vs.htmlCtrlEntityRegex) || r.match(Vs.whitespaceEscapeCharsRegex); while (e && e.length > 0); var n = r; if (!n) return Vs.BLANK_URL; - if (G2t(n)) + if (X2t(n)) return n; var i = n.trimStart(), s = i.match(Vs.urlSchemeRegex); if (!s) @@ -36835,23 +36835,23 @@ function Z2t(t) { if (a === "mailto:" || a.includes("://")) return o; if (a === "http:" || a === "https:") { - if (!H2t(o)) + if (!Z2t(o)) return Vs.BLANK_URL; var l = new URL(o); return l.protocol = l.protocol.toLowerCase(), l.hostname = l.hostname.toLowerCase(), l.toString(); } return o; } -yd = QP.sanitizeUrl = Z2t; +yd = QP.sanitizeUrl = j2t; function S5(t, e) { return t == null || e == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; } -function j2t(t, e) { +function K2t(t, e) { return t == null || e == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; } function UP(t) { let e, r, n; - t.length !== 2 ? (e = S5, r = (o, l) => S5(t(o), l), n = (o, l) => t(o) - l) : (e = t === S5 || t === j2t ? t : K2t, r = t, n = t); + t.length !== 2 ? (e = S5, r = (o, l) => S5(t(o), l), n = (o, l) => t(o) - l) : (e = t === S5 || t === K2t ? t : J2t, r = t, n = t); function i(o, l, u = 0, h = o.length) { if (u < h) { if (e(l, l) !== 0) @@ -36880,17 +36880,17 @@ function UP(t) { } return { left: i, center: a, right: s }; } -function K2t() { +function J2t() { return 0; } -function J2t(t) { +function ebt(t) { return t === null ? NaN : +t; } -const ebt = UP(S5), tbt = ebt.right; -UP(J2t).center; -const rbt = tbt; +const tbt = UP(S5), rbt = tbt.right; +UP(ebt).center; +const nbt = rbt; class XV extends Map { - constructor(e, r = sbt) { + constructor(e, r = abt) { if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: r } }), e != null) for (const [n, i] of e) this.set(n, i); @@ -36902,34 +36902,34 @@ class XV extends Map { return super.has(HV(this, e)); } set(e, r) { - return super.set(nbt(this, e), r); + return super.set(ibt(this, e), r); } delete(e) { - return super.delete(ibt(this, e)); + return super.delete(sbt(this, e)); } } function HV({ _intern: t, _key: e }, r) { const n = e(r); return t.has(n) ? t.get(n) : r; } -function nbt({ _intern: t, _key: e }, r) { +function ibt({ _intern: t, _key: e }, r) { const n = e(r); return t.has(n) ? t.get(n) : (t.set(n, r), r); } -function ibt({ _intern: t, _key: e }, r) { +function sbt({ _intern: t, _key: e }, r) { const n = e(r); return t.has(n) && (r = t.get(n), t.delete(n)), r; } -function sbt(t) { +function abt(t) { return t !== null && typeof t == "object" ? t.valueOf() : t; } -const abt = Math.sqrt(50), obt = Math.sqrt(10), lbt = Math.sqrt(2); +const obt = Math.sqrt(50), lbt = Math.sqrt(10), cbt = Math.sqrt(2); function v3(t, e, r) { - const n = (e - t) / Math.max(0, r), i = Math.floor(Math.log10(n)), s = n / Math.pow(10, i), a = s >= abt ? 10 : s >= obt ? 5 : s >= lbt ? 2 : 1; + const n = (e - t) / Math.max(0, r), i = Math.floor(Math.log10(n)), s = n / Math.pow(10, i), a = s >= obt ? 10 : s >= lbt ? 5 : s >= cbt ? 2 : 1; let o, l, u; return i < 0 ? (u = Math.pow(10, -i) / a, o = Math.round(t * u), l = Math.round(e * u), o / u < t && ++o, l / u > e && --l, u = -u) : (u = Math.pow(10, i) * a, o = Math.round(t / u), l = Math.round(e / u), o * u < t && ++o, l * u > e && --l), l < o && 0.5 <= r && r < 2 ? v3(t, e, r * 2) : [o, l, u]; } -function cbt(t, e, r) { +function ubt(t, e, r) { if (e = +e, t = +t, r = +r, !(r > 0)) return []; if (t === e) @@ -36961,7 +36961,7 @@ function M9(t, e, r) { const n = e < t, i = n ? R9(e, t, r) : R9(t, e, r); return (n ? -1 : 1) * (i < 0 ? 1 / -i : i); } -function ubt(t, e) { +function hbt(t, e) { let r; if (e === void 0) for (const n of t) @@ -36973,7 +36973,7 @@ function ubt(t, e) { } return r; } -function hbt(t, e) { +function fbt(t, e) { let r; if (e === void 0) for (const n of t) @@ -36985,35 +36985,35 @@ function hbt(t, e) { } return r; } -function fbt(t, e, r) { +function dbt(t, e, r) { t = +t, e = +e, r = (i = arguments.length) < 2 ? (e = t, t = 0, 1) : i < 3 ? 1 : +r; for (var n = -1, i = Math.max(0, Math.ceil((e - t) / r)) | 0, s = new Array(i); ++n < i; ) s[n] = t + n * r; return s; } -function dbt(t) { +function pbt(t) { return t; } var T5 = 1, U6 = 2, D9 = 3, VO = 4, ZV = 1e-6; -function pbt(t) { +function gbt(t) { return "translate(" + t + ",0)"; } -function gbt(t) { +function mbt(t) { return "translate(0," + t + ")"; } -function mbt(t) { +function vbt(t) { return (e) => +t(e); } -function vbt(t, e) { +function ybt(t, e) { return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (r) => +t(r) + e; } -function ybt() { +function bbt() { return !this.__axis; } function mae(t, e) { - var r = [], n = null, i = null, s = 6, a = 6, o = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, u = t === T5 || t === VO ? -1 : 1, h = t === VO || t === U6 ? "x" : "y", f = t === T5 || t === D9 ? pbt : gbt; + var r = [], n = null, i = null, s = 6, a = 6, o = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, u = t === T5 || t === VO ? -1 : 1, h = t === VO || t === U6 ? "x" : "y", f = t === T5 || t === D9 ? gbt : mbt; function d(p) { - var g = n == null ? e.ticks ? e.ticks.apply(e, r) : e.domain() : n, m = i == null ? e.tickFormat ? e.tickFormat.apply(e, r) : dbt : i, v = Math.max(s, 0) + o, y = e.range(), b = +y[0] + l, w = +y[y.length - 1] + l, O = (e.bandwidth ? vbt : mbt)(e.copy(), l), S = p.selection ? p.selection() : p, C = S.selectAll(".domain").data([null]), T = S.selectAll(".tick").data(g, e).order(), A = T.exit(), E = T.enter().append("g").attr("class", "tick"), R = T.select("line"), _ = T.select("text"); + var g = n == null ? e.ticks ? e.ticks.apply(e, r) : e.domain() : n, m = i == null ? e.tickFormat ? e.tickFormat.apply(e, r) : pbt : i, v = Math.max(s, 0) + o, y = e.range(), b = +y[0] + l, w = +y[y.length - 1] + l, O = (e.bandwidth ? ybt : vbt)(e.copy(), l), S = p.selection ? p.selection() : p, C = S.selectAll(".domain").data([null]), T = S.selectAll(".tick").data(g, e).order(), A = T.exit(), E = T.enter().append("g").attr("class", "tick"), R = T.select("line"), _ = T.select("text"); C = C.merge(C.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), T = T.merge(E), R = R.merge(E.append("line").attr("stroke", "currentColor").attr(h + "2", u * s)), _ = _.merge(E.append("text").attr("fill", "currentColor").attr(h, u * v).attr("dy", t === T5 ? "0em" : t === D9 ? "0.71em" : "0.32em")), p !== S && (C = C.transition(p), T = T.transition(p), R = R.transition(p), _ = _.transition(p), A = A.transition(p).attr("opacity", ZV).attr("transform", function(L) { return isFinite(L = O(L)) ? f(L + l) : this.getAttribute("transform"); }), E.attr("opacity", ZV).attr("transform", function(L) { @@ -37021,7 +37021,7 @@ function mae(t, e) { return f(($ && isFinite($ = $(L)) ? $ : O(L)) + l); })), A.remove(), C.attr("d", t === VO || t === U6 ? a ? "M" + u * a + "," + b + "H" + l + "V" + w + "H" + u * a : "M" + l + "," + b + "V" + w : a ? "M" + b + "," + u * a + "V" + l + "H" + w + "V" + u * a : "M" + b + "," + l + "H" + w), T.attr("opacity", 1).attr("transform", function(L) { return f(O(L) + l); - }), R.attr(h + "2", u * s), _.attr(h, u * v).text(m), S.filter(ybt).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === U6 ? "start" : t === VO ? "end" : "middle"), S.each(function() { + }), R.attr(h + "2", u * s), _.attr(h, u * v).text(m), S.filter(bbt).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === U6 ? "start" : t === VO ? "end" : "middle"), S.each(function() { this.__axis = O; }); } @@ -37047,13 +37047,13 @@ function mae(t, e) { return arguments.length ? (l = +p, d) : l; }, d; } -function bbt(t) { +function xbt(t) { return mae(T5, t); } -function xbt(t) { +function wbt(t) { return mae(D9, t); } -var wbt = { value: () => { +var Obt = { value: () => { } }; function vae() { for (var t = 0, e = arguments.length, r = {}, n; t < e; ++t) { @@ -37066,7 +37066,7 @@ function vae() { function C5(t) { this._ = t; } -function Obt(t, e) { +function kbt(t, e) { return t.trim().split(/^|\s+/).map(function(r) { var n = "", i = r.indexOf("."); if (i >= 0 && (n = r.slice(i + 1), r = r.slice(0, i)), r && !e.hasOwnProperty(r)) @@ -37077,10 +37077,10 @@ function Obt(t, e) { C5.prototype = vae.prototype = { constructor: C5, on: function(t, e) { - var r = this._, n = Obt(t + "", r), i, s = -1, a = n.length; + var r = this._, n = kbt(t + "", r), i, s = -1, a = n.length; if (arguments.length < 2) { for (; ++s < a; ) - if ((i = (t = n[s]).type) && (i = kbt(r[i], t.name))) + if ((i = (t = n[s]).type) && (i = Sbt(r[i], t.name))) return i; return; } @@ -37116,7 +37116,7 @@ C5.prototype = vae.prototype = { n[i].value.apply(e, r); } }; -function kbt(t, e) { +function Sbt(t, e) { for (var r = 0, n = t.length, i; r < n; ++r) if ((i = t[r]).name === e) return i.value; @@ -37124,7 +37124,7 @@ function kbt(t, e) { function jV(t, e, r) { for (var n = 0, i = t.length; n < i; ++n) if (t[n].name === e) { - t[n] = wbt, t = t.slice(0, n).concat(t.slice(n + 1)); + t[n] = Obt, t = t.slice(0, n).concat(t.slice(n + 1)); break; } return r != null && t.push({ name: e, value: r }), t; @@ -37141,53 +37141,53 @@ function TC(t) { var e = t += "", r = e.indexOf(":"); return r >= 0 && (e = t.slice(0, r)) !== "xmlns" && (t = t.slice(r + 1)), KV.hasOwnProperty(e) ? { space: KV[e], local: t } : t; } -function Sbt(t) { +function Tbt(t) { return function() { var e = this.ownerDocument, r = this.namespaceURI; return r === P9 && e.documentElement.namespaceURI === P9 ? e.createElement(t) : e.createElementNS(r, t); }; } -function Tbt(t) { +function Cbt(t) { return function() { return this.ownerDocument.createElementNS(t.space, t.local); }; } function yae(t) { var e = TC(t); - return (e.local ? Tbt : Sbt)(e); + return (e.local ? Cbt : Tbt)(e); } -function Cbt() { +function Ebt() { } function VP(t) { - return t == null ? Cbt : function() { + return t == null ? Ebt : function() { return this.querySelector(t); }; } -function Ebt(t) { +function _bt(t) { typeof t != "function" && (t = VP(t)); for (var e = this._groups, r = e.length, n = new Array(r), i = 0; i < r; ++i) for (var s = e[i], a = s.length, o = n[i] = new Array(a), l, u, h = 0; h < a; ++h) (l = s[h]) && (u = t.call(l, l.__data__, h, s)) && ("__data__" in l && (u.__data__ = l.__data__), o[h] = u); return new Do(n, this._parents); } -function _bt(t) { +function Abt(t) { return t == null ? [] : Array.isArray(t) ? t : Array.from(t); } -function Abt() { +function Lbt() { return []; } function bae(t) { - return t == null ? Abt : function() { + return t == null ? Lbt : function() { return this.querySelectorAll(t); }; } -function Lbt(t) { +function Rbt(t) { return function() { - return _bt(t.apply(this, arguments)); + return Abt(t.apply(this, arguments)); }; } -function Rbt(t) { - typeof t == "function" ? t = Lbt(t) : t = bae(t); +function Mbt(t) { + typeof t == "function" ? t = Rbt(t) : t = bae(t); for (var e = this._groups, r = e.length, n = [], i = [], s = 0; s < r; ++s) for (var a = e[s], o = a.length, l, u = 0; u < o; ++u) (l = a[u]) && (n.push(t.call(l, l.__data__, u, a)), i.push(l)); @@ -37203,31 +37203,31 @@ function wae(t) { return e.matches(t); }; } -var Mbt = Array.prototype.find; -function Dbt(t) { +var Dbt = Array.prototype.find; +function Pbt(t) { return function() { - return Mbt.call(this.children, t); + return Dbt.call(this.children, t); }; } -function Pbt() { +function Nbt() { return this.firstElementChild; } -function Nbt(t) { - return this.select(t == null ? Pbt : Dbt(typeof t == "function" ? t : wae(t))); +function Ibt(t) { + return this.select(t == null ? Nbt : Pbt(typeof t == "function" ? t : wae(t))); } -var Ibt = Array.prototype.filter; -function $bt() { +var $bt = Array.prototype.filter; +function Bbt() { return Array.from(this.children); } -function Bbt(t) { +function Fbt(t) { return function() { - return Ibt.call(this.children, t); + return $bt.call(this.children, t); }; } -function Fbt(t) { - return this.selectAll(t == null ? $bt : Bbt(typeof t == "function" ? t : wae(t))); -} function zbt(t) { + return this.selectAll(t == null ? Bbt : Fbt(typeof t == "function" ? t : wae(t))); +} +function Qbt(t) { typeof t != "function" && (t = xae(t)); for (var e = this._groups, r = e.length, n = new Array(r), i = 0; i < r; ++i) for (var s = e[i], a = s.length, o = n[i] = [], l, u = 0; u < a; ++u) @@ -37237,7 +37237,7 @@ function zbt(t) { function Oae(t) { return new Array(t.length); } -function Qbt() { +function Ubt() { return new Do(this._enter || this._groups.map(Oae), this._parents); } function y3(t, e) { @@ -37258,18 +37258,18 @@ y3.prototype = { return this._parent.querySelectorAll(t); } }; -function Ubt(t) { +function Vbt(t) { return function() { return t; }; } -function Vbt(t, e, r, n, i, s) { +function qbt(t, e, r, n, i, s) { for (var a = 0, o, l = e.length, u = s.length; a < u; ++a) (o = e[a]) ? (o.__data__ = s[a], n[a] = o) : r[a] = new y3(t, s[a]); for (; a < l; ++a) (o = e[a]) && (i[a] = o); } -function qbt(t, e, r, n, i, s, a) { +function Ybt(t, e, r, n, i, s, a) { var o, l, u = /* @__PURE__ */ new Map(), h = e.length, f = s.length, d = new Array(h), p; for (o = 0; o < h; ++o) (l = e[o]) && (d[o] = p = a.call(l, l.__data__, o, e) + "", u.has(p) ? i[o] = l : u.set(p, l)); @@ -37278,16 +37278,16 @@ function qbt(t, e, r, n, i, s, a) { for (o = 0; o < h; ++o) (l = e[o]) && u.get(d[o]) === l && (i[o] = l); } -function Ybt(t) { +function Wbt(t) { return t.__data__; } -function Wbt(t, e) { +function Gbt(t, e) { if (!arguments.length) - return Array.from(this, Ybt); - var r = e ? qbt : Vbt, n = this._parents, i = this._groups; - typeof t != "function" && (t = Ubt(t)); + return Array.from(this, Wbt); + var r = e ? Ybt : qbt, n = this._parents, i = this._groups; + typeof t != "function" && (t = Vbt(t)); for (var s = i.length, a = new Array(s), o = new Array(s), l = new Array(s), u = 0; u < s; ++u) { - var h = n[u], f = i[u], d = f.length, p = Gbt(t.call(h, h && h.__data__, u, n)), g = p.length, m = o[u] = new Array(g), v = a[u] = new Array(g), y = l[u] = new Array(d); + var h = n[u], f = i[u], d = f.length, p = Xbt(t.call(h, h && h.__data__, u, n)), g = p.length, m = o[u] = new Array(g), v = a[u] = new Array(g), y = l[u] = new Array(d); r(h, f, m, v, y, p, e); for (var b = 0, w = 0, O, S; b < g; ++b) if (O = m[b]) { @@ -37298,17 +37298,17 @@ function Wbt(t, e) { } return a = new Do(a, n), a._enter = o, a._exit = l, a; } -function Gbt(t) { +function Xbt(t) { return typeof t == "object" && "length" in t ? t : Array.from(t); } -function Xbt() { +function Hbt() { return new Do(this._exit || this._groups.map(Oae), this._parents); } -function Hbt(t, e, r) { +function Zbt(t, e, r) { var n = this.enter(), i = this, s = this.exit(); return typeof t == "function" ? (n = t(n), n && (n = n.selection())) : n = n.append(t + ""), e != null && (i = e(i), i && (i = i.selection())), r == null ? s.remove() : r(s), n && i ? n.merge(i).order() : i; } -function Zbt(t) { +function jbt(t) { for (var e = t.selection ? t.selection() : t, r = this._groups, n = e._groups, i = r.length, s = n.length, a = Math.min(i, s), o = new Array(i), l = 0; l < a; ++l) for (var u = r[l], h = n[l], f = u.length, d = o[l] = new Array(f), p, g = 0; g < f; ++g) (p = u[g] || h[g]) && (d[g] = p); @@ -37316,14 +37316,14 @@ function Zbt(t) { o[l] = r[l]; return new Do(o, this._parents); } -function jbt() { +function Kbt() { for (var t = this._groups, e = -1, r = t.length; ++e < r; ) for (var n = t[e], i = n.length - 1, s = n[i], a; --i >= 0; ) (a = n[i]) && (s && a.compareDocumentPosition(s) ^ 4 && s.parentNode.insertBefore(a, s), s = a); return this; } -function Kbt(t) { - t || (t = Jbt); +function Jbt(t) { + t || (t = ext); function e(f, d) { return f && d ? t(f.__data__, d.__data__) : !f - !d; } @@ -37334,17 +37334,17 @@ function Kbt(t) { } return new Do(i, this._parents).order(); } -function Jbt(t, e) { +function ext(t, e) { return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; } -function ext() { +function txt() { var t = arguments[0]; return arguments[0] = this, t.apply(null, arguments), this; } -function txt() { +function rxt() { return Array.from(this); } -function rxt() { +function nxt() { for (var t = this._groups, e = 0, r = t.length; e < r; ++e) for (var n = t[e], i = 0, s = n.length; i < s; ++i) { var a = n[i]; @@ -37353,104 +37353,104 @@ function rxt() { } return null; } -function nxt() { +function ixt() { let t = 0; for (const e of this) ++t; return t; } -function ixt() { +function sxt() { return !this.node(); } -function sxt(t) { +function axt(t) { for (var e = this._groups, r = 0, n = e.length; r < n; ++r) for (var i = e[r], s = 0, a = i.length, o; s < a; ++s) (o = i[s]) && t.call(o, o.__data__, s, i); return this; } -function axt(t) { +function oxt(t) { return function() { this.removeAttribute(t); }; } -function oxt(t) { +function lxt(t) { return function() { this.removeAttributeNS(t.space, t.local); }; } -function lxt(t, e) { +function cxt(t, e) { return function() { this.setAttribute(t, e); }; } -function cxt(t, e) { +function uxt(t, e) { return function() { this.setAttributeNS(t.space, t.local, e); }; } -function uxt(t, e) { +function hxt(t, e) { return function() { var r = e.apply(this, arguments); r == null ? this.removeAttribute(t) : this.setAttribute(t, r); }; } -function hxt(t, e) { +function fxt(t, e) { return function() { var r = e.apply(this, arguments); r == null ? this.removeAttributeNS(t.space, t.local) : this.setAttributeNS(t.space, t.local, r); }; } -function fxt(t, e) { +function dxt(t, e) { var r = TC(t); if (arguments.length < 2) { var n = this.node(); return r.local ? n.getAttributeNS(r.space, r.local) : n.getAttribute(r); } - return this.each((e == null ? r.local ? oxt : axt : typeof e == "function" ? r.local ? hxt : uxt : r.local ? cxt : lxt)(r, e)); + return this.each((e == null ? r.local ? lxt : oxt : typeof e == "function" ? r.local ? fxt : hxt : r.local ? uxt : cxt)(r, e)); } function kae(t) { return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView; } -function dxt(t) { +function pxt(t) { return function() { this.style.removeProperty(t); }; } -function pxt(t, e, r) { +function gxt(t, e, r) { return function() { this.style.setProperty(t, e, r); }; } -function gxt(t, e, r) { +function mxt(t, e, r) { return function() { var n = e.apply(this, arguments); n == null ? this.style.removeProperty(t) : this.style.setProperty(t, n, r); }; } -function mxt(t, e, r) { - return arguments.length > 1 ? this.each((e == null ? dxt : typeof e == "function" ? gxt : pxt)(t, e, r == null ? "" : r)) : Rm(this.node(), t); +function vxt(t, e, r) { + return arguments.length > 1 ? this.each((e == null ? pxt : typeof e == "function" ? mxt : gxt)(t, e, r == null ? "" : r)) : Rm(this.node(), t); } function Rm(t, e) { return t.style.getPropertyValue(e) || kae(t).getComputedStyle(t, null).getPropertyValue(e); } -function vxt(t) { +function yxt(t) { return function() { delete this[t]; }; } -function yxt(t, e) { +function bxt(t, e) { return function() { this[t] = e; }; } -function bxt(t, e) { +function xxt(t, e) { return function() { var r = e.apply(this, arguments); r == null ? delete this[t] : this[t] = r; }; } -function xxt(t, e) { - return arguments.length > 1 ? this.each((e == null ? vxt : typeof e == "function" ? bxt : yxt)(t, e)) : this.node()[t]; +function wxt(t, e) { + return arguments.length > 1 ? this.each((e == null ? yxt : typeof e == "function" ? xxt : bxt)(t, e)) : this.node()[t]; } function Sae(t) { return t.trim().split(/^|\s+/); @@ -37482,22 +37482,22 @@ function Eae(t, e) { for (var r = qP(t), n = -1, i = e.length; ++n < i; ) r.remove(e[n]); } -function wxt(t) { +function Oxt(t) { return function() { Cae(this, t); }; } -function Oxt(t) { +function kxt(t) { return function() { Eae(this, t); }; } -function kxt(t, e) { +function Sxt(t, e) { return function() { (e.apply(this, arguments) ? Cae : Eae)(this, t); }; } -function Sxt(t, e) { +function Txt(t, e) { var r = Sae(t + ""); if (arguments.length < 2) { for (var n = qP(this.node()), i = -1, s = r.length; ++i < s; ) @@ -37505,102 +37505,102 @@ function Sxt(t, e) { return !1; return !0; } - return this.each((typeof e == "function" ? kxt : e ? wxt : Oxt)(r, e)); + return this.each((typeof e == "function" ? Sxt : e ? Oxt : kxt)(r, e)); } -function Txt() { +function Cxt() { this.textContent = ""; } -function Cxt(t) { +function Ext(t) { return function() { this.textContent = t; }; } -function Ext(t) { +function _xt(t) { return function() { var e = t.apply(this, arguments); this.textContent = e == null ? "" : e; }; } -function _xt(t) { - return arguments.length ? this.each(t == null ? Txt : (typeof t == "function" ? Ext : Cxt)(t)) : this.node().textContent; +function Axt(t) { + return arguments.length ? this.each(t == null ? Cxt : (typeof t == "function" ? _xt : Ext)(t)) : this.node().textContent; } -function Axt() { +function Lxt() { this.innerHTML = ""; } -function Lxt(t) { +function Rxt(t) { return function() { this.innerHTML = t; }; } -function Rxt(t) { +function Mxt(t) { return function() { var e = t.apply(this, arguments); this.innerHTML = e == null ? "" : e; }; } -function Mxt(t) { - return arguments.length ? this.each(t == null ? Axt : (typeof t == "function" ? Rxt : Lxt)(t)) : this.node().innerHTML; -} -function Dxt() { - this.nextSibling && this.parentNode.appendChild(this); +function Dxt(t) { + return arguments.length ? this.each(t == null ? Lxt : (typeof t == "function" ? Mxt : Rxt)(t)) : this.node().innerHTML; } function Pxt() { - return this.each(Dxt); + this.nextSibling && this.parentNode.appendChild(this); } function Nxt() { - this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild); + return this.each(Pxt); } function Ixt() { - return this.each(Nxt); + this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild); } -function $xt(t) { +function $xt() { + return this.each(Ixt); +} +function Bxt(t) { var e = typeof t == "function" ? t : yae(t); return this.select(function() { return this.appendChild(e.apply(this, arguments)); }); } -function Bxt() { +function Fxt() { return null; } -function Fxt(t, e) { - var r = typeof t == "function" ? t : yae(t), n = e == null ? Bxt : typeof e == "function" ? e : VP(e); +function zxt(t, e) { + var r = typeof t == "function" ? t : yae(t), n = e == null ? Fxt : typeof e == "function" ? e : VP(e); return this.select(function() { return this.insertBefore(r.apply(this, arguments), n.apply(this, arguments) || null); }); } -function zxt() { +function Qxt() { var t = this.parentNode; t && t.removeChild(this); } -function Qxt() { - return this.each(zxt); -} function Uxt() { + return this.each(Qxt); +} +function Vxt() { var t = this.cloneNode(!1), e = this.parentNode; return e ? e.insertBefore(t, this.nextSibling) : t; } -function Vxt() { +function qxt() { var t = this.cloneNode(!0), e = this.parentNode; return e ? e.insertBefore(t, this.nextSibling) : t; } -function qxt(t) { - return this.select(t ? Vxt : Uxt); -} function Yxt(t) { - return arguments.length ? this.property("__data__", t) : this.node().__data__; + return this.select(t ? qxt : Vxt); } function Wxt(t) { + return arguments.length ? this.property("__data__", t) : this.node().__data__; +} +function Gxt(t) { return function(e) { t.call(this, e, this.__data__); }; } -function Gxt(t) { +function Xxt(t) { return t.trim().split(/^|\s+/).map(function(e) { var r = "", n = e.indexOf("."); return n >= 0 && (r = e.slice(n + 1), e = e.slice(0, n)), { type: e, name: r }; }); } -function Xxt(t) { +function Hxt(t) { return function() { var e = this.__on; if (!!e) { @@ -37610,9 +37610,9 @@ function Xxt(t) { } }; } -function Hxt(t, e, r) { +function Zxt(t, e, r) { return function() { - var n = this.__on, i, s = Wxt(e); + var n = this.__on, i, s = Gxt(e); if (n) { for (var a = 0, o = n.length; a < o; ++a) if ((i = n[a]).type === t.type && i.name === t.name) { @@ -37623,8 +37623,8 @@ function Hxt(t, e, r) { this.addEventListener(t.type, s, r), i = { type: t.type, name: t.name, value: e, listener: s, options: r }, n ? n.push(i) : this.__on = [i]; }; } -function Zxt(t, e, r) { - var n = Gxt(t + ""), i, s = n.length, a; +function jxt(t, e, r) { + var n = Xxt(t + ""), i, s = n.length, a; if (arguments.length < 2) { var o = this.node().__on; if (o) { @@ -37635,7 +37635,7 @@ function Zxt(t, e, r) { } return; } - for (o = e ? Hxt : Xxt, i = 0; i < s; ++i) + for (o = e ? Zxt : Hxt, i = 0; i < s; ++i) this.each(o(n[i], e, r)); return this; } @@ -37643,20 +37643,20 @@ function _ae(t, e, r) { var n = kae(t), i = n.CustomEvent; typeof i == "function" ? i = new i(e, r) : (i = n.document.createEvent("Event"), r ? (i.initEvent(e, r.bubbles, r.cancelable), i.detail = r.detail) : i.initEvent(e, !1, !1)), t.dispatchEvent(i); } -function jxt(t, e) { +function Kxt(t, e) { return function() { return _ae(this, t, e); }; } -function Kxt(t, e) { +function Jxt(t, e) { return function() { return _ae(this, t, e.apply(this, arguments)); }; } -function Jxt(t, e) { - return this.each((typeof e == "function" ? Kxt : jxt)(t, e)); +function ewt(t, e) { + return this.each((typeof e == "function" ? Jxt : Kxt)(t, e)); } -function* ewt() { +function* twt() { for (var t = this._groups, e = 0, r = t.length; e < r; ++e) for (var n = t[e], i = 0, s = n.length, a; i < s; ++i) (a = n[i]) && (yield a); @@ -37668,46 +37668,46 @@ function Do(t, e) { function tw() { return new Do([[document.documentElement]], Aae); } -function twt() { +function rwt() { return this; } Do.prototype = tw.prototype = { constructor: Do, - select: Ebt, - selectAll: Rbt, - selectChild: Nbt, - selectChildren: Fbt, - filter: zbt, - data: Wbt, - enter: Qbt, - exit: Xbt, - join: Hbt, - merge: Zbt, - selection: twt, - order: jbt, - sort: Kbt, - call: ext, - nodes: txt, - node: rxt, - size: nxt, - empty: ixt, - each: sxt, - attr: fxt, - style: mxt, - property: xxt, - classed: Sxt, - text: _xt, - html: Mxt, - raise: Pxt, - lower: Ixt, - append: $xt, - insert: Fxt, - remove: Qxt, - clone: qxt, - datum: Yxt, - on: Zxt, - dispatch: Jxt, - [Symbol.iterator]: ewt + select: _bt, + selectAll: Mbt, + selectChild: Ibt, + selectChildren: zbt, + filter: Qbt, + data: Gbt, + enter: Ubt, + exit: Hbt, + join: Zbt, + merge: jbt, + selection: rwt, + order: Kbt, + sort: Jbt, + call: txt, + nodes: rxt, + node: nxt, + size: ixt, + empty: sxt, + each: axt, + attr: dxt, + style: vxt, + property: wxt, + classed: Txt, + text: Axt, + html: Dxt, + raise: Nxt, + lower: $xt, + append: Bxt, + insert: zxt, + remove: Uxt, + clone: Yxt, + datum: Wxt, + on: jxt, + dispatch: ewt, + [Symbol.iterator]: twt }; function ht(t) { return typeof t == "string" ? new Do([[document.querySelector(t)]], [document.documentElement]) : new Do([[t]], Aae); @@ -37723,7 +37723,7 @@ function CC(t, e) { } function kp() { } -var Z2 = 0.7, b3 = 1 / Z2, Ug = "\\s*([+-]?\\d+)\\s*", j2 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", ru = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", rwt = /^#([0-9a-f]{3,8})$/, nwt = new RegExp(`^rgb\\(${Ug},${Ug},${Ug}\\)$`), iwt = new RegExp(`^rgb\\(${ru},${ru},${ru}\\)$`), swt = new RegExp(`^rgba\\(${Ug},${Ug},${Ug},${j2}\\)$`), awt = new RegExp(`^rgba\\(${ru},${ru},${ru},${j2}\\)$`), owt = new RegExp(`^hsl\\(${j2},${ru},${ru}\\)$`), lwt = new RegExp(`^hsla\\(${j2},${ru},${ru},${j2}\\)$`), JV = { +var Z2 = 0.7, b3 = 1 / Z2, Ug = "\\s*([+-]?\\d+)\\s*", j2 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", ru = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", nwt = /^#([0-9a-f]{3,8})$/, iwt = new RegExp(`^rgb\\(${Ug},${Ug},${Ug}\\)$`), swt = new RegExp(`^rgb\\(${ru},${ru},${ru}\\)$`), awt = new RegExp(`^rgba\\(${Ug},${Ug},${Ug},${j2}\\)$`), owt = new RegExp(`^rgba\\(${ru},${ru},${ru},${j2}\\)$`), lwt = new RegExp(`^hsl\\(${j2},${ru},${ru}\\)$`), cwt = new RegExp(`^hsla\\(${j2},${ru},${ru},${j2}\\)$`), JV = { aliceblue: 15792383, antiquewhite: 16444375, aqua: 65535, @@ -37882,18 +37882,18 @@ rw(kp, z0, { }, hex: eq, formatHex: eq, - formatHex8: cwt, - formatHsl: uwt, + formatHex8: uwt, + formatHsl: hwt, formatRgb: tq, toString: tq }); function eq() { return this.rgb().formatHex(); } -function cwt() { +function uwt() { return this.rgb().formatHex8(); } -function uwt() { +function hwt() { return Rae(this).formatHsl(); } function tq() { @@ -37901,7 +37901,7 @@ function tq() { } function z0(t) { var e, r; - return t = (t + "").trim().toLowerCase(), (e = rwt.exec(t)) ? (r = e[1].length, e = parseInt(e[1], 16), r === 6 ? rq(e) : r === 3 ? new Js(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : r === 8 ? qO(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : r === 4 ? qO(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = nwt.exec(t)) ? new Js(e[1], e[2], e[3], 1) : (e = iwt.exec(t)) ? new Js(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = swt.exec(t)) ? qO(e[1], e[2], e[3], e[4]) : (e = awt.exec(t)) ? qO(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = owt.exec(t)) ? sq(e[1], e[2] / 100, e[3] / 100, 1) : (e = lwt.exec(t)) ? sq(e[1], e[2] / 100, e[3] / 100, e[4]) : JV.hasOwnProperty(t) ? rq(JV[t]) : t === "transparent" ? new Js(NaN, NaN, NaN, 0) : null; + return t = (t + "").trim().toLowerCase(), (e = nwt.exec(t)) ? (r = e[1].length, e = parseInt(e[1], 16), r === 6 ? rq(e) : r === 3 ? new Js(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : r === 8 ? qO(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : r === 4 ? qO(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = iwt.exec(t)) ? new Js(e[1], e[2], e[3], 1) : (e = swt.exec(t)) ? new Js(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = awt.exec(t)) ? qO(e[1], e[2], e[3], e[4]) : (e = owt.exec(t)) ? qO(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = lwt.exec(t)) ? sq(e[1], e[2] / 100, e[3] / 100, 1) : (e = cwt.exec(t)) ? sq(e[1], e[2] / 100, e[3] / 100, e[4]) : JV.hasOwnProperty(t) ? rq(JV[t]) : t === "transparent" ? new Js(NaN, NaN, NaN, 0) : null; } function rq(t) { return new Js(t >> 16 & 255, t >> 8 & 255, t & 255, 1); @@ -37936,14 +37936,14 @@ rw(Js, N9, CC(kp, { }, hex: nq, formatHex: nq, - formatHex8: hwt, + formatHex8: fwt, formatRgb: iq, toString: iq })); function nq() { return `#${f0(this.r)}${f0(this.g)}${f0(this.b)}`; } -function hwt() { +function fwt() { return `#${f0(this.r)}${f0(this.g)}${f0(this.b)}${f0((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`; } function iq() { @@ -37973,13 +37973,13 @@ function Rae(t) { var e = t.r / 255, r = t.g / 255, n = t.b / 255, i = Math.min(e, r, n), s = Math.max(e, r, n), a = NaN, o = s - i, l = (s + i) / 2; return o ? (e === s ? a = (r - n) / o + (r < n) * 6 : r === s ? a = (n - e) / o + 2 : a = (e - r) / o + 4, o /= l < 0.5 ? s + i : 2 - s - i, a *= 60) : o = l > 0 && l < 1 ? 0 : a, new zl(a, o, l, t.opacity); } -function fwt(t, e, r, n) { +function dwt(t, e, r, n) { return arguments.length === 1 ? Rae(t) : new zl(t, e, r, n == null ? 1 : n); } function zl(t, e, r, n) { this.h = +t, this.s = +e, this.l = +r, this.opacity = +n; } -rw(zl, fwt, CC(kp, { +rw(zl, dwt, CC(kp, { brighter(t) { return t = t == null ? b3 : Math.pow(b3, t), new zl(this.h, this.s, this.l * t, this.opacity); }, @@ -38015,7 +38015,7 @@ function YO(t) { function V6(t, e, r) { return (t < 60 ? e + (r - e) * t / 60 : t < 180 ? r : t < 240 ? e + (r - e) * (240 - t) / 60 : e) * 255; } -const dwt = Math.PI / 180, pwt = 180 / Math.PI, w3 = 18, Mae = 0.96422, Dae = 1, Pae = 0.82521, Nae = 4 / 29, Vg = 6 / 29, Iae = 3 * Vg * Vg, gwt = Vg * Vg * Vg; +const pwt = Math.PI / 180, gwt = 180 / Math.PI, w3 = 18, Mae = 0.96422, Dae = 1, Pae = 0.82521, Nae = 4 / 29, Vg = 6 / 29, Iae = 3 * Vg * Vg, mwt = Vg * Vg * Vg; function $ae(t) { if (t instanceof nu) return new nu(t.l, t.a, t.b, t.opacity); @@ -38025,13 +38025,13 @@ function $ae(t) { var e = G6(t.r), r = G6(t.g), n = G6(t.b), i = q6((0.2225045 * e + 0.7168786 * r + 0.0606169 * n) / Dae), s, a; return e === r && r === n ? s = a = i : (s = q6((0.4360747 * e + 0.3850649 * r + 0.1430804 * n) / Mae), a = q6((0.0139322 * e + 0.0971045 * r + 0.7141733 * n) / Pae)), new nu(116 * i - 16, 500 * (s - i), 200 * (i - a), t.opacity); } -function mwt(t, e, r, n) { +function vwt(t, e, r, n) { return arguments.length === 1 ? $ae(t) : new nu(t, e, r, n == null ? 1 : n); } function nu(t, e, r, n) { this.l = +t, this.a = +e, this.b = +r, this.opacity = +n; } -rw(nu, mwt, CC(kp, { +rw(nu, vwt, CC(kp, { brighter(t) { return new nu(this.l + w3 * (t == null ? 1 : t), this.a, this.b, this.opacity); }, @@ -38049,7 +38049,7 @@ rw(nu, mwt, CC(kp, { } })); function q6(t) { - return t > gwt ? Math.pow(t, 1 / 3) : t / Iae + Nae; + return t > mwt ? Math.pow(t, 1 / 3) : t / Iae + Nae; } function Y6(t) { return t > Vg ? t * t * t : Iae * (t - Nae); @@ -38060,16 +38060,16 @@ function W6(t) { function G6(t) { return (t /= 255) <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4); } -function vwt(t) { +function ywt(t) { if (t instanceof Yu) return new Yu(t.h, t.c, t.l, t.opacity); if (t instanceof nu || (t = $ae(t)), t.a === 0 && t.b === 0) return new Yu(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity); - var e = Math.atan2(t.b, t.a) * pwt; + var e = Math.atan2(t.b, t.a) * gwt; return new Yu(e < 0 ? e + 360 : e, Math.sqrt(t.a * t.a + t.b * t.b), t.l, t.opacity); } function I9(t, e, r, n) { - return arguments.length === 1 ? vwt(t) : new Yu(t, e, r, n == null ? 1 : n); + return arguments.length === 1 ? ywt(t) : new Yu(t, e, r, n == null ? 1 : n); } function Yu(t, e, r, n) { this.h = +t, this.c = +e, this.l = +r, this.opacity = +n; @@ -38077,7 +38077,7 @@ function Yu(t, e, r, n) { function Bae(t) { if (isNaN(t.h)) return new nu(t.l, 0, 0, t.opacity); - var e = t.h * dwt; + var e = t.h * pwt; return new nu(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity); } rw(Yu, I9, CC(kp, { @@ -38097,18 +38097,18 @@ function Fae(t, e) { return t + r * e; }; } -function ywt(t, e, r) { +function bwt(t, e, r) { return t = Math.pow(t, r), e = Math.pow(e, r) - t, r = 1 / r, function(n) { return Math.pow(t + n * e, r); }; } -function bwt(t, e) { +function xwt(t, e) { var r = e - t; return r ? Fae(t, r > 180 || r < -180 ? r - 360 * Math.round(r / 360) : r) : EC(isNaN(t) ? e : t); } -function xwt(t) { +function wwt(t) { return (t = +t) == 1 ? Hy : function(e, r) { - return r - e ? ywt(e, r, t) : EC(isNaN(e) ? r : e); + return r - e ? bwt(e, r, t) : EC(isNaN(e) ? r : e); }; } function Hy(t, e) { @@ -38116,7 +38116,7 @@ function Hy(t, e) { return r ? Fae(t, r) : EC(isNaN(t) ? e : t); } const O3 = function t(e) { - var r = xwt(e); + var r = wwt(e); function n(i, s) { var a = r((i = N9(i)).r, (s = N9(s)).r), o = r(i.g, s.g), l = r(i.b, s.b), u = Hy(i.opacity, s.opacity); return function(h) { @@ -38125,7 +38125,7 @@ const O3 = function t(e) { } return n.gamma = t, n; }(1); -function wwt(t, e) { +function Owt(t, e) { e || (e = []); var r = t ? Math.min(e.length, t.length) : 0, n = e.slice(), i; return function(s) { @@ -38134,10 +38134,10 @@ function wwt(t, e) { return n; }; } -function Owt(t) { +function kwt(t) { return ArrayBuffer.isView(t) && !(t instanceof DataView); } -function kwt(t, e) { +function Swt(t, e) { var r = e ? e.length : 0, n = t ? Math.min(r, t.length) : 0, i = new Array(n), s = new Array(r), a; for (a = 0; a < n; ++a) i[a] = YP(t[a], e[a]); @@ -38149,7 +38149,7 @@ function kwt(t, e) { return s; }; } -function Swt(t, e) { +function Twt(t, e) { var r = new Date(); return t = +t, e = +e, function(n) { return r.setTime(t * (1 - n) + e * n), r; @@ -38160,7 +38160,7 @@ function Bl(t, e) { return t * (1 - r) + e * r; }; } -function Twt(t, e) { +function Cwt(t, e) { var r = {}, n = {}, i; (t === null || typeof t != "object") && (t = {}), (e === null || typeof e != "object") && (e = {}); for (i in e) @@ -38172,12 +38172,12 @@ function Twt(t, e) { }; } var $9 = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, X6 = new RegExp($9.source, "g"); -function Cwt(t) { +function Ewt(t) { return function() { return t; }; } -function Ewt(t) { +function _wt(t) { return function(e) { return t(e) + ""; }; @@ -38186,7 +38186,7 @@ function zae(t, e) { var r = $9.lastIndex = X6.lastIndex = 0, n, i, s, a = -1, o = [], l = []; for (t = t + "", e = e + ""; (n = $9.exec(t)) && (i = X6.exec(e)); ) (s = i.index) > r && (s = e.slice(r, s), o[a] ? o[a] += s : o[++a] = s), (n = n[0]) === (i = i[0]) ? o[a] ? o[a] += i : o[++a] = i : (o[++a] = null, l.push({ i: a, x: Bl(n, i) })), r = X6.lastIndex; - return r < e.length && (s = e.slice(r), o[a] ? o[a] += s : o[++a] = s), o.length < 2 ? l[0] ? Ewt(l[0].x) : Cwt(e) : (e = l.length, function(u) { + return r < e.length && (s = e.slice(r), o[a] ? o[a] += s : o[++a] = s), o.length < 2 ? l[0] ? _wt(l[0].x) : Ewt(e) : (e = l.length, function(u) { for (var h = 0, f; h < e; ++h) o[(f = l[h]).i] = f.x(u); return o.join(""); @@ -38194,9 +38194,9 @@ function zae(t, e) { } function YP(t, e) { var r = typeof e, n; - return e == null || r === "boolean" ? EC(e) : (r === "number" ? Bl : r === "string" ? (n = z0(e)) ? (e = n, O3) : zae : e instanceof z0 ? O3 : e instanceof Date ? Swt : Owt(e) ? wwt : Array.isArray(e) ? kwt : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? Twt : Bl)(t, e); + return e == null || r === "boolean" ? EC(e) : (r === "number" ? Bl : r === "string" ? (n = z0(e)) ? (e = n, O3) : zae : e instanceof z0 ? O3 : e instanceof Date ? Twt : kwt(e) ? Owt : Array.isArray(e) ? Swt : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? Cwt : Bl)(t, e); } -function _wt(t, e) { +function Awt(t, e) { return t = +t, e = +e, function(r) { return Math.round(t * (1 - r) + e * r); }; @@ -38221,11 +38221,11 @@ function Qae(t, e, r, n, i, s) { }; } var WO; -function Awt(t) { +function Lwt(t) { const e = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t + ""); return e.isIdentity ? B9 : Qae(e.a, e.b, e.c, e.d, e.e, e.f); } -function Lwt(t) { +function Rwt(t) { return t == null || (WO || (WO = document.createElementNS("http://www.w3.org/2000/svg", "g")), WO.setAttribute("transform", t), !(t = WO.transform.baseVal.consolidate())) ? B9 : (t = t.matrix, Qae(t.a, t.b, t.c, t.d, t.e, t.f)); } function Uae(t, e, r, n) { @@ -38261,8 +38261,8 @@ function Uae(t, e, r, n) { }; }; } -var Rwt = Uae(Awt, "px, ", "px)", "deg)"), Mwt = Uae(Lwt, ", ", ")", ")"); -function Dwt(t) { +var Mwt = Uae(Lwt, "px, ", "px)", "deg)"), Dwt = Uae(Rwt, ", ", ")", ")"); +function Pwt(t) { return function(e, r) { var n = t((e = I9(e)).h, (r = I9(r)).h), i = Hy(e.c, r.c), s = Hy(e.l, r.l), a = Hy(e.opacity, r.opacity); return function(o) { @@ -38270,14 +38270,14 @@ function Dwt(t) { }; }; } -const Pwt = Dwt(bwt); +const Nwt = Pwt(xwt); var Mm = 0, cy = 0, Mv = 0, Vae = 1e3, k3, uy, S3 = 0, Q0 = 0, _C = 0, K2 = typeof performance == "object" && performance.now ? performance : Date, qae = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) { setTimeout(t, 17); }; function WP() { - return Q0 || (qae(Nwt), Q0 = K2.now() + _C); + return Q0 || (qae(Iwt), Q0 = K2.now() + _C); } -function Nwt() { +function Iwt() { Q0 = 0; } function T3() { @@ -38298,7 +38298,7 @@ function Yae(t, e, r) { var n = new T3(); return n.restart(t, e, r), n; } -function Iwt() { +function $wt() { WP(), ++Mm; for (var t = k3, e; t; ) (e = Q0 - t._time) >= 0 && t._call.call(void 0, e), t = t._next; @@ -38307,16 +38307,16 @@ function Iwt() { function lq() { Q0 = (S3 = K2.now()) + _C, Mm = cy = 0; try { - Iwt(); + $wt(); } finally { - Mm = 0, Bwt(), Q0 = 0; + Mm = 0, Fwt(), Q0 = 0; } } -function $wt() { +function Bwt() { var t = K2.now(), e = t - S3; e > Vae && (_C -= e, S3 = t); } -function Bwt() { +function Fwt() { for (var t, e = k3, r, n = 1 / 0; e; ) e._call ? (n > e._time && (n = e._time), t = e, e = e._next) : (r = e._next, e._next = null, e = t ? t._next = r : k3 = r); uy = t, F9(n); @@ -38325,7 +38325,7 @@ function F9(t) { if (!Mm) { cy && (cy = clearTimeout(cy)); var e = t - Q0; - e > 24 ? (t < 1 / 0 && (cy = setTimeout(lq, t - K2.now() - _C)), Mv && (Mv = clearInterval(Mv))) : (Mv || (S3 = K2.now(), Mv = setInterval($wt, Vae)), Mm = 1, qae(lq)); + e > 24 ? (t < 1 / 0 && (cy = setTimeout(lq, t - K2.now() - _C)), Mv && (Mv = clearInterval(Mv))) : (Mv || (S3 = K2.now(), Mv = setInterval(Bwt, Vae)), Mm = 1, qae(lq)); } } function cq(t, e, r) { @@ -38334,19 +38334,19 @@ function cq(t, e, r) { n.stop(), t(i + e); }, e, r), n; } -var Fwt = vae("start", "end", "cancel", "interrupt"), zwt = [], Wae = 0, uq = 1, z9 = 2, E5 = 3, hq = 4, Q9 = 5, _5 = 6; +var zwt = vae("start", "end", "cancel", "interrupt"), Qwt = [], Wae = 0, uq = 1, z9 = 2, E5 = 3, hq = 4, Q9 = 5, _5 = 6; function AC(t, e, r, n, i, s) { var a = t.__transition; if (!a) t.__transition = {}; else if (r in a) return; - Qwt(t, r, { + Uwt(t, r, { name: e, index: n, group: i, - on: Fwt, - tween: zwt, + on: zwt, + tween: Qwt, time: s.time, delay: s.delay, duration: s.duration, @@ -38373,7 +38373,7 @@ function pc(t, e) { throw new Error("transition not found"); return r; } -function Qwt(t, e, r) { +function Uwt(t, e, r) { var n = t.__transition, i; n[e] = r, r.timer = Yae(s, 0, r.time); function s(u) { @@ -38409,7 +38409,7 @@ function Qwt(t, e, r) { delete t.__transition; } } -function Uwt(t, e) { +function Vwt(t, e) { var r = t.__transition, n, i, s = !0, a; if (!!r) { e = e == null ? null : e + ""; @@ -38423,12 +38423,12 @@ function Uwt(t, e) { s && delete t.__transition; } } -function Vwt(t) { +function qwt(t) { return this.each(function() { - Uwt(this, t); + Vwt(this, t); }); } -function qwt(t, e) { +function Ywt(t, e) { var r, n; return function() { var i = wu(this, t), s = i.tween; @@ -38443,7 +38443,7 @@ function qwt(t, e) { i.tween = n; }; } -function Ywt(t, e, r) { +function Wwt(t, e, r) { var n, i; if (typeof r != "function") throw new Error(); @@ -38461,7 +38461,7 @@ function Ywt(t, e, r) { s.tween = i; }; } -function Wwt(t, e) { +function Gwt(t, e) { var r = this._id; if (t += "", arguments.length < 2) { for (var n = pc(this.node(), r).tween, i = 0, s = n.length, a; i < s; ++i) @@ -38469,7 +38469,7 @@ function Wwt(t, e) { return a.value; return null; } - return this.each((e == null ? qwt : Ywt)(r, t, e)); + return this.each((e == null ? Ywt : Wwt)(r, t, e)); } function XP(t, e, r) { var n = t._id; @@ -38484,75 +38484,75 @@ function Gae(t, e) { var r; return (typeof e == "number" ? Bl : e instanceof z0 ? O3 : (r = z0(e)) ? (e = r, O3) : zae)(t, e); } -function Gwt(t) { +function Xwt(t) { return function() { this.removeAttribute(t); }; } -function Xwt(t) { +function Hwt(t) { return function() { this.removeAttributeNS(t.space, t.local); }; } -function Hwt(t, e, r) { +function Zwt(t, e, r) { var n, i = r + "", s; return function() { var a = this.getAttribute(t); return a === i ? null : a === n ? s : s = e(n = a, r); }; } -function Zwt(t, e, r) { +function jwt(t, e, r) { var n, i = r + "", s; return function() { var a = this.getAttributeNS(t.space, t.local); return a === i ? null : a === n ? s : s = e(n = a, r); }; } -function jwt(t, e, r) { +function Kwt(t, e, r) { var n, i, s; return function() { var a, o = r(this), l; return o == null ? void this.removeAttribute(t) : (a = this.getAttribute(t), l = o + "", a === l ? null : a === n && l === i ? s : (i = l, s = e(n = a, o))); }; } -function Kwt(t, e, r) { +function Jwt(t, e, r) { var n, i, s; return function() { var a, o = r(this), l; return o == null ? void this.removeAttributeNS(t.space, t.local) : (a = this.getAttributeNS(t.space, t.local), l = o + "", a === l ? null : a === n && l === i ? s : (i = l, s = e(n = a, o))); }; } -function Jwt(t, e) { - var r = TC(t), n = r === "transform" ? Mwt : Gae; - return this.attrTween(t, typeof e == "function" ? (r.local ? Kwt : jwt)(r, n, XP(this, "attr." + t, e)) : e == null ? (r.local ? Xwt : Gwt)(r) : (r.local ? Zwt : Hwt)(r, n, e)); -} function eOt(t, e) { + var r = TC(t), n = r === "transform" ? Dwt : Gae; + return this.attrTween(t, typeof e == "function" ? (r.local ? Jwt : Kwt)(r, n, XP(this, "attr." + t, e)) : e == null ? (r.local ? Hwt : Xwt)(r) : (r.local ? jwt : Zwt)(r, n, e)); +} +function tOt(t, e) { return function(r) { this.setAttribute(t, e.call(this, r)); }; } -function tOt(t, e) { +function rOt(t, e) { return function(r) { this.setAttributeNS(t.space, t.local, e.call(this, r)); }; } -function rOt(t, e) { +function nOt(t, e) { var r, n; function i() { var s = e.apply(this, arguments); - return s !== n && (r = (n = s) && tOt(t, s)), r; + return s !== n && (r = (n = s) && rOt(t, s)), r; } return i._value = e, i; } -function nOt(t, e) { +function iOt(t, e) { var r, n; function i() { var s = e.apply(this, arguments); - return s !== n && (r = (n = s) && eOt(t, s)), r; + return s !== n && (r = (n = s) && tOt(t, s)), r; } return i._value = e, i; } -function iOt(t, e) { +function sOt(t, e) { var r = "attr." + t; if (arguments.length < 2) return (r = this.tween(r)) && r._value; @@ -38561,48 +38561,48 @@ function iOt(t, e) { if (typeof e != "function") throw new Error(); var n = TC(t); - return this.tween(r, (n.local ? rOt : nOt)(n, e)); + return this.tween(r, (n.local ? nOt : iOt)(n, e)); } -function sOt(t, e) { +function aOt(t, e) { return function() { GP(this, t).delay = +e.apply(this, arguments); }; } -function aOt(t, e) { +function oOt(t, e) { return e = +e, function() { GP(this, t).delay = e; }; } -function oOt(t) { +function lOt(t) { var e = this._id; - return arguments.length ? this.each((typeof t == "function" ? sOt : aOt)(e, t)) : pc(this.node(), e).delay; + return arguments.length ? this.each((typeof t == "function" ? aOt : oOt)(e, t)) : pc(this.node(), e).delay; } -function lOt(t, e) { +function cOt(t, e) { return function() { wu(this, t).duration = +e.apply(this, arguments); }; } -function cOt(t, e) { +function uOt(t, e) { return e = +e, function() { wu(this, t).duration = e; }; } -function uOt(t) { +function hOt(t) { var e = this._id; - return arguments.length ? this.each((typeof t == "function" ? lOt : cOt)(e, t)) : pc(this.node(), e).duration; + return arguments.length ? this.each((typeof t == "function" ? cOt : uOt)(e, t)) : pc(this.node(), e).duration; } -function hOt(t, e) { +function fOt(t, e) { if (typeof e != "function") throw new Error(); return function() { wu(this, t).ease = e; }; } -function fOt(t) { +function dOt(t) { var e = this._id; - return arguments.length ? this.each(hOt(e, t)) : pc(this.node(), e).ease; + return arguments.length ? this.each(fOt(e, t)) : pc(this.node(), e).ease; } -function dOt(t, e) { +function pOt(t, e) { return function() { var r = e.apply(this, arguments); if (typeof r != "function") @@ -38610,19 +38610,19 @@ function dOt(t, e) { wu(this, t).ease = r; }; } -function pOt(t) { +function gOt(t) { if (typeof t != "function") throw new Error(); - return this.each(dOt(this._id, t)); + return this.each(pOt(this._id, t)); } -function gOt(t) { +function mOt(t) { typeof t != "function" && (t = xae(t)); for (var e = this._groups, r = e.length, n = new Array(r), i = 0; i < r; ++i) for (var s = e[i], a = s.length, o = n[i] = [], l, u = 0; u < a; ++u) (l = s[u]) && t.call(l, l.__data__, u, s) && o.push(l); return new ph(n, this._parents, this._name, this._id); } -function mOt(t) { +function vOt(t) { if (t._id !== this._id) throw new Error(); for (var e = this._groups, r = t._groups, n = e.length, i = r.length, s = Math.min(n, i), a = new Array(n), o = 0; o < s; ++o) @@ -38632,24 +38632,24 @@ function mOt(t) { a[o] = e[o]; return new ph(a, this._parents, this._name, this._id); } -function vOt(t) { +function yOt(t) { return (t + "").trim().split(/^|\s+/).every(function(e) { var r = e.indexOf("."); return r >= 0 && (e = e.slice(0, r)), !e || e === "start"; }); } -function yOt(t, e, r) { - var n, i, s = vOt(e) ? GP : wu; +function bOt(t, e, r) { + var n, i, s = yOt(e) ? GP : wu; return function() { var a = s(this, t), o = a.on; o !== n && (i = (n = o).copy()).on(e, r), a.on = i; }; } -function bOt(t, e) { +function xOt(t, e) { var r = this._id; - return arguments.length < 2 ? pc(this.node(), r).on.on(t) : this.each(yOt(r, t, e)); + return arguments.length < 2 ? pc(this.node(), r).on.on(t) : this.each(bOt(r, t, e)); } -function xOt(t) { +function wOt(t) { return function() { var e = this.parentNode; for (var r in this.__transition) @@ -38658,10 +38658,10 @@ function xOt(t) { e && e.removeChild(this); }; } -function wOt() { - return this.on("end.remove", xOt(this._id)); +function OOt() { + return this.on("end.remove", wOt(this._id)); } -function OOt(t) { +function kOt(t) { var e = this._name, r = this._id; typeof t != "function" && (t = VP(t)); for (var n = this._groups, i = n.length, s = new Array(i), a = 0; a < i; ++a) @@ -38669,7 +38669,7 @@ function OOt(t) { (h = o[d]) && (f = t.call(h, h.__data__, d, o)) && ("__data__" in h && (f.__data__ = h.__data__), u[d] = f, AC(u[d], e, r, d, u, pc(h, r))); return new ph(s, this._parents, e, r); } -function kOt(t) { +function SOt(t) { var e = this._name, r = this._id; typeof t != "function" && (t = bae(t)); for (var n = this._groups, i = n.length, s = [], a = [], o = 0; o < i; ++o) @@ -38681,11 +38681,11 @@ function kOt(t) { } return new ph(s, a, e, r); } -var SOt = tw.prototype.constructor; -function TOt() { - return new SOt(this._groups, this._parents); +var TOt = tw.prototype.constructor; +function COt() { + return new TOt(this._groups, this._parents); } -function COt(t, e) { +function EOt(t, e) { var r, n, i; return function() { var s = Rm(this, t), a = (this.style.removeProperty(t), Rm(this, t)); @@ -38697,45 +38697,45 @@ function Xae(t) { this.style.removeProperty(t); }; } -function EOt(t, e, r) { +function _Ot(t, e, r) { var n, i = r + "", s; return function() { var a = Rm(this, t); return a === i ? null : a === n ? s : s = e(n = a, r); }; } -function _Ot(t, e, r) { +function AOt(t, e, r) { var n, i, s; return function() { var a = Rm(this, t), o = r(this), l = o + ""; return o == null && (l = o = (this.style.removeProperty(t), Rm(this, t))), a === l ? null : a === n && l === i ? s : (i = l, s = e(n = a, o)); }; } -function AOt(t, e) { +function LOt(t, e) { var r, n, i, s = "style." + e, a = "end." + s, o; return function() { var l = wu(this, t), u = l.on, h = l.value[s] == null ? o || (o = Xae(e)) : void 0; (u !== r || i !== h) && (n = (r = u).copy()).on(a, i = h), l.on = n; }; } -function LOt(t, e, r) { - var n = (t += "") == "transform" ? Rwt : Gae; - return e == null ? this.styleTween(t, COt(t, n)).on("end.style." + t, Xae(t)) : typeof e == "function" ? this.styleTween(t, _Ot(t, n, XP(this, "style." + t, e))).each(AOt(this._id, t)) : this.styleTween(t, EOt(t, n, e), r).on("end.style." + t, null); -} function ROt(t, e, r) { + var n = (t += "") == "transform" ? Mwt : Gae; + return e == null ? this.styleTween(t, EOt(t, n)).on("end.style." + t, Xae(t)) : typeof e == "function" ? this.styleTween(t, AOt(t, n, XP(this, "style." + t, e))).each(LOt(this._id, t)) : this.styleTween(t, _Ot(t, n, e), r).on("end.style." + t, null); +} +function MOt(t, e, r) { return function(n) { this.style.setProperty(t, e.call(this, n), r); }; } -function MOt(t, e, r) { +function DOt(t, e, r) { var n, i; function s() { var a = e.apply(this, arguments); - return a !== i && (n = (i = a) && ROt(t, a, r)), n; + return a !== i && (n = (i = a) && MOt(t, a, r)), n; } return s._value = e, s; } -function DOt(t, e, r) { +function POt(t, e, r) { var n = "style." + (t += ""); if (arguments.length < 2) return (n = this.tween(n)) && n._value; @@ -38743,36 +38743,36 @@ function DOt(t, e, r) { return this.tween(n, null); if (typeof e != "function") throw new Error(); - return this.tween(n, MOt(t, e, r == null ? "" : r)); + return this.tween(n, DOt(t, e, r == null ? "" : r)); } -function POt(t) { +function NOt(t) { return function() { this.textContent = t; }; } -function NOt(t) { +function IOt(t) { return function() { var e = t(this); this.textContent = e == null ? "" : e; }; } -function IOt(t) { - return this.tween("text", typeof t == "function" ? NOt(XP(this, "text", t)) : POt(t == null ? "" : t + "")); -} function $Ot(t) { + return this.tween("text", typeof t == "function" ? IOt(XP(this, "text", t)) : NOt(t == null ? "" : t + "")); +} +function BOt(t) { return function(e) { this.textContent = t.call(this, e); }; } -function BOt(t) { +function FOt(t) { var e, r; function n() { var i = t.apply(this, arguments); - return i !== r && (e = (r = i) && $Ot(i)), e; + return i !== r && (e = (r = i) && BOt(i)), e; } return n._value = t, n; } -function FOt(t) { +function zOt(t) { var e = "text"; if (arguments.length < 1) return (e = this.tween(e)) && e._value; @@ -38780,9 +38780,9 @@ function FOt(t) { return this.tween(e, null); if (typeof t != "function") throw new Error(); - return this.tween(e, BOt(t)); + return this.tween(e, FOt(t)); } -function zOt() { +function QOt() { for (var t = this._name, e = this._id, r = Hae(), n = this._groups, i = n.length, s = 0; s < i; ++s) for (var a = n[s], o = a.length, l, u = 0; u < o; ++u) if (l = a[u]) { @@ -38796,7 +38796,7 @@ function zOt() { } return new ph(n, this._parents, t, r); } -function QOt() { +function UOt() { var t, e, r = this, n = r._id, i = r.size(); return new Promise(function(s, a) { var o = { value: a }, l = { value: function() { @@ -38808,78 +38808,78 @@ function QOt() { }), i === 0 && s(); }); } -var UOt = 0; +var VOt = 0; function ph(t, e, r, n) { this._groups = t, this._parents = e, this._name = r, this._id = n; } function Hae() { - return ++UOt; + return ++VOt; } var Du = tw.prototype; ph.prototype = { constructor: ph, - select: OOt, - selectAll: kOt, + select: kOt, + selectAll: SOt, selectChild: Du.selectChild, selectChildren: Du.selectChildren, - filter: gOt, - merge: mOt, - selection: TOt, - transition: zOt, + filter: mOt, + merge: vOt, + selection: COt, + transition: QOt, call: Du.call, nodes: Du.nodes, node: Du.node, size: Du.size, empty: Du.empty, each: Du.each, - on: bOt, - attr: Jwt, - attrTween: iOt, - style: LOt, - styleTween: DOt, - text: IOt, - textTween: FOt, - remove: wOt, - tween: Wwt, - delay: oOt, - duration: uOt, - ease: fOt, - easeVarying: pOt, - end: QOt, + on: xOt, + attr: eOt, + attrTween: sOt, + style: ROt, + styleTween: POt, + text: $Ot, + textTween: zOt, + remove: OOt, + tween: Gwt, + delay: lOt, + duration: hOt, + ease: dOt, + easeVarying: gOt, + end: UOt, [Symbol.iterator]: Du[Symbol.iterator] }; -function VOt(t) { +function qOt(t) { return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2; } -var qOt = { +var YOt = { time: null, delay: 0, duration: 250, - ease: VOt + ease: qOt }; -function YOt(t, e) { +function WOt(t, e) { for (var r; !(r = t.__transition) || !(r = r[e]); ) if (!(t = t.parentNode)) throw new Error(`transition ${e} not found`); return r; } -function WOt(t) { +function GOt(t) { var e, r; - t instanceof ph ? (e = t._id, t = t._name) : (e = Hae(), (r = qOt).time = WP(), t = t == null ? null : t + ""); + t instanceof ph ? (e = t._id, t = t._name) : (e = Hae(), (r = YOt).time = WP(), t = t == null ? null : t + ""); for (var n = this._groups, i = n.length, s = 0; s < i; ++s) for (var a = n[s], o = a.length, l, u = 0; u < o; ++u) - (l = a[u]) && AC(l, t, e, u, a, r || YOt(l, e)); + (l = a[u]) && AC(l, t, e, u, a, r || WOt(l, e)); return new ph(n, this._parents, t, e); } -tw.prototype.interrupt = Vwt; -tw.prototype.transition = WOt; -const U9 = Math.PI, V9 = 2 * U9, Fd = 1e-6, GOt = V9 - Fd; +tw.prototype.interrupt = qwt; +tw.prototype.transition = GOt; +const U9 = Math.PI, V9 = 2 * U9, Fd = 1e-6, XOt = V9 - Fd; function Zae(t) { this._ += t[0]; for (let e = 1, r = t.length; e < r; ++e) this._ += arguments[e] + t[e]; } -function XOt(t) { +function HOt(t) { let e = Math.floor(t); if (!(e >= 0)) throw new Error(`invalid digits: ${t}`); @@ -38892,9 +38892,9 @@ function XOt(t) { this._ += Math.round(arguments[i] * r) / r + n[i]; }; } -class HOt { +class ZOt { constructor(e) { - this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? Zae : XOt(e); + this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? Zae : HOt(e); } moveTo(e, r) { this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +r}`; @@ -38929,7 +38929,7 @@ class HOt { if (e = +e, r = +r, n = +n, a = !!a, n < 0) throw new Error(`negative radius: ${n}`); let o = n * Math.cos(i), l = n * Math.sin(i), u = e + o, h = r + l, f = 1 ^ a, d = a ? i - s : s - i; - this._x1 === null ? this._append`M${u},${h}` : (Math.abs(this._x1 - u) > Fd || Math.abs(this._y1 - h) > Fd) && this._append`L${u},${h}`, n && (d < 0 && (d = d % V9 + V9), d > GOt ? this._append`A${n},${n},0,1,${f},${e - o},${r - l}A${n},${n},0,1,${f},${this._x1 = u},${this._y1 = h}` : d > Fd && this._append`A${n},${n},0,${+(d >= U9)},${f},${this._x1 = e + n * Math.cos(s)},${this._y1 = r + n * Math.sin(s)}`); + this._x1 === null ? this._append`M${u},${h}` : (Math.abs(this._x1 - u) > Fd || Math.abs(this._y1 - h) > Fd) && this._append`L${u},${h}`, n && (d < 0 && (d = d % V9 + V9), d > XOt ? this._append`A${n},${n},0,1,${f},${e - o},${r - l}A${n},${n},0,1,${f},${this._x1 = u},${this._y1 = h}` : d > Fd && this._append`A${n},${n},0,${+(d >= U9)},${f},${this._x1 = e + n * Math.cos(s)},${this._y1 = r + n * Math.sin(s)}`); } rect(e, r, n, i) { this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +r}h${n = +n}v${+i}h${-n}Z`; @@ -38938,7 +38938,7 @@ class HOt { return this._; } } -function ZOt(t) { +function jOt(t) { return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10); } function C3(t, e) { @@ -38953,23 +38953,23 @@ function C3(t, e) { function Dm(t) { return t = C3(Math.abs(t)), t ? t[1] : NaN; } -function jOt(t, e) { +function KOt(t, e) { return function(r, n) { for (var i = r.length, s = [], a = 0, o = t[0], l = 0; i > 0 && o > 0 && (l + o + 1 > n && (o = Math.max(1, n - l)), s.push(r.substring(i -= o, i + o)), !((l += o + 1) > n)); ) o = t[a = (a + 1) % t.length]; return s.reverse().join(e); }; } -function KOt(t) { +function JOt(t) { return function(e) { return e.replace(/[0-9]/g, function(r) { return t[+r]; }); }; } -var JOt = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; +var e4t = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; function E3(t) { - if (!(e = JOt.exec(t))) + if (!(e = e4t.exec(t))) throw new Error("invalid format: " + t); var e; return new HP({ @@ -38992,7 +38992,7 @@ function HP(t) { HP.prototype.toString = function() { return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type; }; -function e4t(t) { +function t4t(t) { e: for (var e = t.length, r = 1, n = -1, i; r < e; ++r) switch (t[r]) { @@ -39011,7 +39011,7 @@ function e4t(t) { return n > 0 ? t.slice(0, n) + t.slice(i + 1) : t; } var jae; -function t4t(t, e) { +function r4t(t, e) { var r = C3(t, e); if (!r) return t + ""; @@ -39029,14 +39029,14 @@ const dq = { "%": (t, e) => (t * 100).toFixed(e), b: (t) => Math.round(t).toString(2), c: (t) => t + "", - d: ZOt, + d: jOt, e: (t, e) => t.toExponential(e), f: (t, e) => t.toFixed(e), g: (t, e) => t.toPrecision(e), o: (t) => Math.round(t).toString(8), p: (t, e) => fq(t * 100, e), r: fq, - s: t4t, + s: r4t, X: (t) => Math.round(t).toString(16).toUpperCase(), x: (t) => Math.round(t).toString(16) }; @@ -39044,8 +39044,8 @@ function pq(t) { return t; } var gq = Array.prototype.map, mq = ["y", "z", "a", "f", "p", "n", "\xB5", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"]; -function r4t(t) { - var e = t.grouping === void 0 || t.thousands === void 0 ? pq : jOt(gq.call(t.grouping, Number), t.thousands + ""), r = t.currency === void 0 ? "" : t.currency[0] + "", n = t.currency === void 0 ? "" : t.currency[1] + "", i = t.decimal === void 0 ? "." : t.decimal + "", s = t.numerals === void 0 ? pq : KOt(gq.call(t.numerals, String)), a = t.percent === void 0 ? "%" : t.percent + "", o = t.minus === void 0 ? "\u2212" : t.minus + "", l = t.nan === void 0 ? "NaN" : t.nan + ""; +function n4t(t) { + var e = t.grouping === void 0 || t.thousands === void 0 ? pq : KOt(gq.call(t.grouping, Number), t.thousands + ""), r = t.currency === void 0 ? "" : t.currency[0] + "", n = t.currency === void 0 ? "" : t.currency[1] + "", i = t.decimal === void 0 ? "." : t.decimal + "", s = t.numerals === void 0 ? pq : JOt(gq.call(t.numerals, String)), a = t.percent === void 0 ? "%" : t.percent + "", o = t.minus === void 0 ? "\u2212" : t.minus + "", l = t.nan === void 0 ? "NaN" : t.nan + ""; function u(f) { f = E3(f); var d = f.fill, p = f.align, g = f.sign, m = f.symbol, v = f.zero, y = f.width, b = f.comma, w = f.precision, O = f.trim, S = f.type; @@ -39059,7 +39059,7 @@ function r4t(t) { else { _ = +_; var N = _ < 0 || 1 / _ < 0; - if (_ = isNaN(_) ? l : A(Math.abs(_), w), O && (_ = e4t(_)), N && +_ == 0 && g !== "+" && (N = !1), L = (N ? g === "(" ? g : o : g === "-" || g === "(" ? "" : g) + L, $ = (S === "s" ? mq[8 + jae / 3] : "") + $ + (N && g === "(" ? ")" : ""), E) { + if (_ = isNaN(_) ? l : A(Math.abs(_), w), O && (_ = t4t(_)), N && +_ == 0 && g !== "+" && (N = !1), L = (N ? g === "(" ? g : o : g === "-" || g === "(" ? "" : g) + L, $ = (S === "s" ? mq[8 + jae / 3] : "") + $ + (N && g === "(" ? ")" : ""), E) { for (k = -1, P = _.length; ++k < P; ) if (M = _.charCodeAt(k), 48 > M || M > 57) { $ = (M === 46 ? i + _.slice(k + 1) : _.slice(k)) + $, _ = _.slice(0, k); @@ -39101,21 +39101,21 @@ function r4t(t) { }; } var GO, Kae, Jae; -n4t({ +i4t({ thousands: ",", grouping: [3], currency: ["$", ""] }); -function n4t(t) { - return GO = r4t(t), Kae = GO.format, Jae = GO.formatPrefix, GO; -} function i4t(t) { + return GO = n4t(t), Kae = GO.format, Jae = GO.formatPrefix, GO; +} +function s4t(t) { return Math.max(0, -Dm(Math.abs(t))); } -function s4t(t, e) { +function a4t(t, e) { return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Dm(e) / 3))) * 3 - Dm(Math.abs(t))); } -function a4t(t, e) { +function o4t(t, e) { return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, Dm(e) - Dm(t)) + 1; } function LC(t, e) { @@ -39164,7 +39164,7 @@ function q9() { function f() { var d = e().length, p = i < n, g = p ? i : n, m = p ? n : i; s = (m - g) / Math.max(1, d - l + u * 2), o && (s = Math.floor(s)), g += (m - g - s * (d - l)) * h, a = s * (1 - l), o && (g = Math.round(g), a = Math.round(a)); - var v = fbt(d).map(function(y) { + var v = dbt(d).map(function(y) { return g + s * y; }); return r(p ? v.reverse() : v); @@ -39193,12 +39193,12 @@ function q9() { return q9(e(), [n, i]).round(o).paddingInner(l).paddingOuter(u).align(h); }, LC.apply(f(), arguments); } -function o4t(t) { +function l4t(t) { return function() { return t; }; } -function l4t(t) { +function c4t(t) { return +t; } var yq = [0, 1]; @@ -39208,37 +39208,37 @@ function wg(t) { function Y9(t, e) { return (e -= t = +t) ? function(r) { return (r - t) / e; - } : o4t(isNaN(e) ? NaN : 0.5); + } : l4t(isNaN(e) ? NaN : 0.5); } -function c4t(t, e) { +function u4t(t, e) { var r; return t > e && (r = t, t = e, e = r), function(n) { return Math.max(t, Math.min(e, n)); }; } -function u4t(t, e, r) { +function h4t(t, e, r) { var n = t[0], i = t[1], s = e[0], a = e[1]; return i < n ? (n = Y9(i, n), s = r(a, s)) : (n = Y9(n, i), s = r(s, a)), function(o) { return s(n(o)); }; } -function h4t(t, e, r) { +function f4t(t, e, r) { var n = Math.min(t.length, e.length) - 1, i = new Array(n), s = new Array(n), a = -1; for (t[n] < t[0] && (t = t.slice().reverse(), e = e.slice().reverse()); ++a < n; ) i[a] = Y9(t[a], t[a + 1]), s[a] = r(e[a], e[a + 1]); return function(o) { - var l = rbt(t, o, 1, n) - 1; + var l = nbt(t, o, 1, n) - 1; return s[l](i[l](o)); }; } function eoe(t, e) { return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown()); } -function f4t() { +function d4t() { var t = yq, e = yq, r = YP, n, i, s, a = wg, o, l, u; function h() { var d = Math.min(t.length, e.length); - return a !== wg && (a = c4t(t[0], t[d - 1])), o = d > 2 ? h4t : u4t, l = u = null, f; + return a !== wg && (a = u4t(t[0], t[d - 1])), o = d > 2 ? f4t : h4t, l = u = null, f; } function f(d) { return d == null || isNaN(d = +d) ? s : (l || (l = o(t.map(n), e, r)))(n(a(d))); @@ -39246,11 +39246,11 @@ function f4t() { return f.invert = function(d) { return a(i((u || (u = o(e, t.map(n), Bl)))(d))); }, f.domain = function(d) { - return arguments.length ? (t = Array.from(d, l4t), h()) : t.slice(); + return arguments.length ? (t = Array.from(d, c4t), h()) : t.slice(); }, f.range = function(d) { return arguments.length ? (e = Array.from(d), h()) : e.slice(); }, f.rangeRound = function(d) { - return e = Array.from(d), r = _wt, h(); + return e = Array.from(d), r = Awt, h(); }, f.clamp = function(d) { return arguments.length ? (a = d ? !0 : wg, h()) : a !== wg; }, f.interpolate = function(d) { @@ -39262,39 +39262,39 @@ function f4t() { }; } function toe() { - return f4t()(wg, wg); + return d4t()(wg, wg); } -function d4t(t, e, r, n) { +function p4t(t, e, r, n) { var i = M9(t, e, r), s; switch (n = E3(n == null ? ",f" : n), n.type) { case "s": { var a = Math.max(Math.abs(t), Math.abs(e)); - return n.precision == null && !isNaN(s = s4t(i, a)) && (n.precision = s), Jae(n, a); + return n.precision == null && !isNaN(s = a4t(i, a)) && (n.precision = s), Jae(n, a); } case "": case "e": case "g": case "p": case "r": { - n.precision == null && !isNaN(s = a4t(i, Math.max(Math.abs(t), Math.abs(e)))) && (n.precision = s - (n.type === "e")); + n.precision == null && !isNaN(s = o4t(i, Math.max(Math.abs(t), Math.abs(e)))) && (n.precision = s - (n.type === "e")); break; } case "f": case "%": { - n.precision == null && !isNaN(s = i4t(i)) && (n.precision = s - (n.type === "%") * 2); + n.precision == null && !isNaN(s = s4t(i)) && (n.precision = s - (n.type === "%") * 2); break; } } return Kae(n); } -function p4t(t) { +function g4t(t) { var e = t.domain; return t.ticks = function(r) { var n = e(); - return cbt(n[0], n[n.length - 1], r == null ? 10 : r); + return ubt(n[0], n[n.length - 1], r == null ? 10 : r); }, t.tickFormat = function(r, n) { var i = e(); - return d4t(i[0], i[i.length - 1], r == null ? 10 : r, n); + return p4t(i[0], i[i.length - 1], r == null ? 10 : r, n); }, t.nice = function(r) { r == null && (r = 10); var n = e(), i = 0, s = n.length - 1, a = n[i], o = n[s], l, u, h = 10; @@ -39316,9 +39316,9 @@ function Pm() { var t = toe(); return t.copy = function() { return eoe(t, Pm()); - }, LC.apply(t, arguments), p4t(t); + }, LC.apply(t, arguments), g4t(t); } -function g4t(t, e) { +function m4t(t, e) { t = t.slice(); var r = 0, n = t.length - 1, i = t[r], s = t[n], a; return s < i && (a = r, r = n, n = a, a = i, i = s, s = a), t[r] = e.floor(i), t[n] = e.ceil(s), t; @@ -39366,12 +39366,12 @@ Nm.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? e.setTime(+e + r * t); }, (e, r) => (r - e) / t) : Nm); Nm.range; -const Wu = 1e3, rl = Wu * 60, Gu = rl * 60, gh = Gu * 24, ZP = gh * 7, bq = gh * 30, j6 = gh * 365, df = Ki((t) => { +const Wu = 1e3, rl = Wu * 60, Gu = rl * 60, gh = Gu * 24, ZP = gh * 7, bq = gh * 30, j6 = gh * 365, pf = Ki((t) => { t.setTime(t - t.getMilliseconds()); }, (t, e) => { t.setTime(+t + e * Wu); }, (t, e) => (e - t) / Wu, (t) => t.getUTCSeconds()); -df.range; +pf.range; const J2 = Ki((t) => { t.setTime(t - t.getMilliseconds() - t.getSeconds() * Wu); }, (t, e) => { @@ -39437,14 +39437,14 @@ function Tp(t) { e.setUTCDate(e.getUTCDate() + r * 7); }, (e, r) => (r - e) / ZP); } -const KP = Tp(0), _3 = Tp(1), m4t = Tp(2), v4t = Tp(3), Im = Tp(4), y4t = Tp(5), b4t = Tp(6); +const KP = Tp(0), _3 = Tp(1), v4t = Tp(2), y4t = Tp(3), Im = Tp(4), b4t = Tp(5), x4t = Tp(6); KP.range; _3.range; -m4t.range; v4t.range; -Im.range; y4t.range; +Im.range; b4t.range; +x4t.range; const rb = Ki((t) => { t.setDate(1), t.setHours(0, 0, 0, 0); }, (t, e) => { @@ -39468,23 +39468,23 @@ mh.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : Ki((e) => { e.setFullYear(e.getFullYear() + r * t); }); mh.range; -const Yf = Ki((t) => { +const Wf = Ki((t) => { t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0); }, (t, e) => { t.setUTCFullYear(t.getUTCFullYear() + e); }, (t, e) => e.getUTCFullYear() - t.getUTCFullYear(), (t) => t.getUTCFullYear()); -Yf.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : Ki((e) => { +Wf.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : Ki((e) => { e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0); }, (e, r) => { e.setUTCFullYear(e.getUTCFullYear() + r * t); }); -Yf.range; +Wf.range; function uoe(t, e, r, n, i, s) { const a = [ - [df, 1, Wu], - [df, 5, 5 * Wu], - [df, 15, 15 * Wu], - [df, 30, 30 * Wu], + [pf, 1, Wu], + [pf, 5, 5 * Wu], + [pf, 15, 15 * Wu], + [pf, 30, 30 * Wu], [s, 1, rl], [s, 5, 5 * rl], [s, 15, 15 * rl], @@ -39517,8 +39517,8 @@ function uoe(t, e, r, n, i, s) { } return [o, l]; } -uoe(Yf, coe, KP, ioe, noe, roe); -const [x4t, w4t] = uoe(mh, rb, nw, U0, eb, J2); +uoe(Wf, coe, KP, ioe, noe, roe); +const [w4t, O4t] = uoe(mh, rb, nw, U0, eb, J2); function K6(t) { if (0 <= t.y && t.y < 100) { var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L); @@ -39536,7 +39536,7 @@ function J6(t) { function Dv(t, e, r) { return { y: t, m: e, d: r, H: 0, M: 0, S: 0, L: 0 }; } -function O4t(t) { +function k4t(t) { var e = t.dateTime, r = t.date, n = t.time, i = t.periods, s = t.days, a = t.shortDays, o = t.months, l = t.shortMonths, u = Pv(i), h = Nv(i), f = Pv(s), d = Nv(s), p = Pv(a), g = Nv(a), m = Pv(o), v = Nv(o), y = Pv(l), b = Nv(l), w = { a: N, A: D, @@ -39545,30 +39545,30 @@ function O4t(t) { c: null, d: Tq, e: Tq, - f: Y4t, - g: t5t, - G: n5t, - H: U4t, - I: V4t, - j: q4t, + f: W4t, + g: r5t, + G: i5t, + H: V4t, + I: q4t, + j: Y4t, L: hoe, - m: W4t, - M: G4t, + m: G4t, + M: X4t, p: B, q: U, Q: _q, s: Aq, - S: X4t, - u: H4t, - U: Z4t, - V: j4t, - w: K4t, - W: J4t, + S: H4t, + u: Z4t, + U: j4t, + V: K4t, + w: J4t, + W: e5t, x: null, X: null, - y: e5t, - Y: r5t, - Z: i5t, + y: t5t, + Y: n5t, + Z: s5t, "%": Eq }, O = { a: Q, @@ -39578,30 +39578,30 @@ function O4t(t) { c: null, d: Cq, e: Cq, - f: l5t, - g: y5t, - G: x5t, - H: s5t, - I: a5t, - j: o5t, + f: c5t, + g: b5t, + G: w5t, + H: a5t, + I: o5t, + j: l5t, L: doe, - m: c5t, - M: u5t, + m: u5t, + M: h5t, p: te, q: se, Q: _q, s: Aq, - S: h5t, - u: f5t, - U: d5t, - V: p5t, - w: g5t, - W: m5t, + S: f5t, + u: d5t, + U: p5t, + V: g5t, + w: m5t, + W: v5t, x: null, X: null, - y: v5t, - Y: b5t, - Z: w5t, + y: y5t, + Y: x5t, + Z: O5t, "%": Eq }, S = { a: R, @@ -39611,31 +39611,31 @@ function O4t(t) { c: k, d: kq, e: kq, - f: B4t, + f: F4t, g: Oq, G: wq, H: Sq, I: Sq, - j: P4t, - L: $4t, - m: D4t, - M: N4t, + j: N4t, + L: B4t, + m: P4t, + M: I4t, p: E, - q: M4t, - Q: z4t, - s: Q4t, - S: I4t, - u: E4t, - U: _4t, - V: A4t, - w: C4t, - W: L4t, + q: D4t, + Q: Q4t, + s: U4t, + S: $4t, + u: _4t, + U: A4t, + V: L4t, + w: E4t, + W: R4t, x: P, X: M, y: Oq, Y: wq, - Z: R4t, - "%": F4t + Z: M4t, + "%": z4t }; w.x = C(r, w), w.X = C(n, w), w.c = C(e, w), O.x = C(r, O), O.X = C(n, O), O.c = C(e, O); function C(V, Z) { @@ -39768,37 +39768,37 @@ function O4t(t) { } }; } -var xq = { "-": "", _: " ", 0: "0" }, hs = /^\s*\d+/, k4t = /^%/, S4t = /[\\^$*+?|[\]().{}]/g; +var xq = { "-": "", _: " ", 0: "0" }, hs = /^\s*\d+/, S4t = /^%/, T4t = /[\\^$*+?|[\]().{}]/g; function Yr(t, e, r) { var n = t < 0 ? "-" : "", i = (n ? -t : t) + "", s = i.length; return n + (s < r ? new Array(r - s + 1).join(e) + i : i); } -function T4t(t) { - return t.replace(S4t, "\\$&"); +function C4t(t) { + return t.replace(T4t, "\\$&"); } function Pv(t) { - return new RegExp("^(?:" + t.map(T4t).join("|") + ")", "i"); + return new RegExp("^(?:" + t.map(C4t).join("|") + ")", "i"); } function Nv(t) { return new Map(t.map((e, r) => [e.toLowerCase(), r])); } -function C4t(t, e, r) { +function E4t(t, e, r) { var n = hs.exec(e.slice(r, r + 1)); return n ? (t.w = +n[0], r + n[0].length) : -1; } -function E4t(t, e, r) { +function _4t(t, e, r) { var n = hs.exec(e.slice(r, r + 1)); return n ? (t.u = +n[0], r + n[0].length) : -1; } -function _4t(t, e, r) { +function A4t(t, e, r) { var n = hs.exec(e.slice(r, r + 2)); return n ? (t.U = +n[0], r + n[0].length) : -1; } -function A4t(t, e, r) { +function L4t(t, e, r) { var n = hs.exec(e.slice(r, r + 2)); return n ? (t.V = +n[0], r + n[0].length) : -1; } -function L4t(t, e, r) { +function R4t(t, e, r) { var n = hs.exec(e.slice(r, r + 2)); return n ? (t.W = +n[0], r + n[0].length) : -1; } @@ -39810,15 +39810,15 @@ function Oq(t, e, r) { var n = hs.exec(e.slice(r, r + 2)); return n ? (t.y = +n[0] + (+n[0] > 68 ? 1900 : 2e3), r + n[0].length) : -1; } -function R4t(t, e, r) { +function M4t(t, e, r) { var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r, r + 6)); return n ? (t.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), r + n[0].length) : -1; } -function M4t(t, e, r) { +function D4t(t, e, r) { var n = hs.exec(e.slice(r, r + 1)); return n ? (t.q = n[0] * 3 - 3, r + n[0].length) : -1; } -function D4t(t, e, r) { +function P4t(t, e, r) { var n = hs.exec(e.slice(r, r + 2)); return n ? (t.m = n[0] - 1, r + n[0].length) : -1; } @@ -39826,7 +39826,7 @@ function kq(t, e, r) { var n = hs.exec(e.slice(r, r + 2)); return n ? (t.d = +n[0], r + n[0].length) : -1; } -function P4t(t, e, r) { +function N4t(t, e, r) { var n = hs.exec(e.slice(r, r + 3)); return n ? (t.m = 0, t.d = +n[0], r + n[0].length) : -1; } @@ -39834,159 +39834,159 @@ function Sq(t, e, r) { var n = hs.exec(e.slice(r, r + 2)); return n ? (t.H = +n[0], r + n[0].length) : -1; } -function N4t(t, e, r) { +function I4t(t, e, r) { var n = hs.exec(e.slice(r, r + 2)); return n ? (t.M = +n[0], r + n[0].length) : -1; } -function I4t(t, e, r) { +function $4t(t, e, r) { var n = hs.exec(e.slice(r, r + 2)); return n ? (t.S = +n[0], r + n[0].length) : -1; } -function $4t(t, e, r) { +function B4t(t, e, r) { var n = hs.exec(e.slice(r, r + 3)); return n ? (t.L = +n[0], r + n[0].length) : -1; } -function B4t(t, e, r) { +function F4t(t, e, r) { var n = hs.exec(e.slice(r, r + 6)); return n ? (t.L = Math.floor(n[0] / 1e3), r + n[0].length) : -1; } -function F4t(t, e, r) { - var n = k4t.exec(e.slice(r, r + 1)); +function z4t(t, e, r) { + var n = S4t.exec(e.slice(r, r + 1)); return n ? r + n[0].length : -1; } -function z4t(t, e, r) { +function Q4t(t, e, r) { var n = hs.exec(e.slice(r)); return n ? (t.Q = +n[0], r + n[0].length) : -1; } -function Q4t(t, e, r) { +function U4t(t, e, r) { var n = hs.exec(e.slice(r)); return n ? (t.s = +n[0], r + n[0].length) : -1; } function Tq(t, e) { return Yr(t.getDate(), e, 2); } -function U4t(t, e) { +function V4t(t, e) { return Yr(t.getHours(), e, 2); } -function V4t(t, e) { +function q4t(t, e) { return Yr(t.getHours() % 12 || 12, e, 2); } -function q4t(t, e) { +function Y4t(t, e) { return Yr(1 + U0.count(mh(t), t), e, 3); } function hoe(t, e) { return Yr(t.getMilliseconds(), e, 3); } -function Y4t(t, e) { +function W4t(t, e) { return hoe(t, e) + "000"; } -function W4t(t, e) { +function G4t(t, e) { return Yr(t.getMonth() + 1, e, 2); } -function G4t(t, e) { +function X4t(t, e) { return Yr(t.getMinutes(), e, 2); } -function X4t(t, e) { +function H4t(t, e) { return Yr(t.getSeconds(), e, 2); } -function H4t(t) { +function Z4t(t) { var e = t.getDay(); return e === 0 ? 7 : e; } -function Z4t(t, e) { +function j4t(t, e) { return Yr(nw.count(mh(t) - 1, t), e, 2); } function foe(t) { var e = t.getDay(); return e >= 4 || e === 0 ? V0(t) : V0.ceil(t); } -function j4t(t, e) { +function K4t(t, e) { return t = foe(t), Yr(V0.count(mh(t), t) + (mh(t).getDay() === 4), e, 2); } -function K4t(t) { +function J4t(t) { return t.getDay(); } -function J4t(t, e) { +function e5t(t, e) { return Yr(tb.count(mh(t) - 1, t), e, 2); } -function e5t(t, e) { +function t5t(t, e) { return Yr(t.getFullYear() % 100, e, 2); } -function t5t(t, e) { +function r5t(t, e) { return t = foe(t), Yr(t.getFullYear() % 100, e, 2); } -function r5t(t, e) { +function n5t(t, e) { return Yr(t.getFullYear() % 1e4, e, 4); } -function n5t(t, e) { +function i5t(t, e) { var r = t.getDay(); return t = r >= 4 || r === 0 ? V0(t) : V0.ceil(t), Yr(t.getFullYear() % 1e4, e, 4); } -function i5t(t) { +function s5t(t) { var e = t.getTimezoneOffset(); return (e > 0 ? "-" : (e *= -1, "+")) + Yr(e / 60 | 0, "0", 2) + Yr(e % 60, "0", 2); } function Cq(t, e) { return Yr(t.getUTCDate(), e, 2); } -function s5t(t, e) { +function a5t(t, e) { return Yr(t.getUTCHours(), e, 2); } -function a5t(t, e) { +function o5t(t, e) { return Yr(t.getUTCHours() % 12 || 12, e, 2); } -function o5t(t, e) { - return Yr(1 + jP.count(Yf(t), t), e, 3); +function l5t(t, e) { + return Yr(1 + jP.count(Wf(t), t), e, 3); } function doe(t, e) { return Yr(t.getUTCMilliseconds(), e, 3); } -function l5t(t, e) { +function c5t(t, e) { return doe(t, e) + "000"; } -function c5t(t, e) { +function u5t(t, e) { return Yr(t.getUTCMonth() + 1, e, 2); } -function u5t(t, e) { +function h5t(t, e) { return Yr(t.getUTCMinutes(), e, 2); } -function h5t(t, e) { +function f5t(t, e) { return Yr(t.getUTCSeconds(), e, 2); } -function f5t(t) { +function d5t(t) { var e = t.getUTCDay(); return e === 0 ? 7 : e; } -function d5t(t, e) { - return Yr(KP.count(Yf(t) - 1, t), e, 2); +function p5t(t, e) { + return Yr(KP.count(Wf(t) - 1, t), e, 2); } function poe(t) { var e = t.getUTCDay(); return e >= 4 || e === 0 ? Im(t) : Im.ceil(t); } -function p5t(t, e) { - return t = poe(t), Yr(Im.count(Yf(t), t) + (Yf(t).getUTCDay() === 4), e, 2); +function g5t(t, e) { + return t = poe(t), Yr(Im.count(Wf(t), t) + (Wf(t).getUTCDay() === 4), e, 2); } -function g5t(t) { +function m5t(t) { return t.getUTCDay(); } -function m5t(t, e) { - return Yr(_3.count(Yf(t) - 1, t), e, 2); -} function v5t(t, e) { - return Yr(t.getUTCFullYear() % 100, e, 2); + return Yr(_3.count(Wf(t) - 1, t), e, 2); } function y5t(t, e) { - return t = poe(t), Yr(t.getUTCFullYear() % 100, e, 2); + return Yr(t.getUTCFullYear() % 100, e, 2); } function b5t(t, e) { - return Yr(t.getUTCFullYear() % 1e4, e, 4); + return t = poe(t), Yr(t.getUTCFullYear() % 100, e, 2); } function x5t(t, e) { + return Yr(t.getUTCFullYear() % 1e4, e, 4); +} +function w5t(t, e) { var r = t.getUTCDay(); return t = r >= 4 || r === 0 ? Im(t) : Im.ceil(t), Yr(t.getUTCFullYear() % 1e4, e, 4); } -function w5t() { +function O5t() { return "+0000"; } function Eq() { @@ -39999,7 +39999,7 @@ function Aq(t) { return Math.floor(+t / 1e3); } var Hp, A3; -O5t({ +k5t({ dateTime: "%x, %X", date: "%-m/%-d/%Y", time: "%-I:%M:%S %p", @@ -40009,13 +40009,13 @@ O5t({ months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] }); -function O5t(t) { - return Hp = O4t(t), A3 = Hp.format, Hp.parse, Hp.utcFormat, Hp.utcParse, Hp; -} function k5t(t) { - return new Date(t); + return Hp = k4t(t), A3 = Hp.format, Hp.parse, Hp.utcFormat, Hp.utcParse, Hp; } function S5t(t) { + return new Date(t); +} +function T5t(t) { return t instanceof Date ? +t : +new Date(+t); } function goe(t, e, r, n, i, s, a, o, l, u) { @@ -40026,7 +40026,7 @@ function goe(t, e, r, n, i, s, a, o, l, u) { return h.invert = function(C) { return new Date(f(C)); }, h.domain = function(C) { - return arguments.length ? d(Array.from(C, S5t)) : d().map(k5t); + return arguments.length ? d(Array.from(C, T5t)) : d().map(S5t); }, h.ticks = function(C) { var T = d(); return t(T[0], T[T.length - 1], C == null ? 10 : C); @@ -40034,27 +40034,27 @@ function goe(t, e, r, n, i, s, a, o, l, u) { return T == null ? S : u(T); }, h.nice = function(C) { var T = d(); - return (!C || typeof C.range != "function") && (C = e(T[0], T[T.length - 1], C == null ? 10 : C)), C ? d(g4t(T, C)) : h; + return (!C || typeof C.range != "function") && (C = e(T[0], T[T.length - 1], C == null ? 10 : C)), C ? d(m4t(T, C)) : h; }, h.copy = function() { return eoe(h, goe(t, e, r, n, i, s, a, o, l, u)); }, h; } -function T5t() { - return LC.apply(goe(x4t, w4t, mh, rb, nw, U0, eb, J2, df, A3).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments); +function C5t() { + return LC.apply(goe(w4t, O4t, mh, rb, nw, U0, eb, J2, pf, A3).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments); } -function C5t(t) { +function E5t(t) { for (var e = t.length / 6 | 0, r = new Array(e), n = 0; n < e; ) r[n] = "#" + t.slice(n * 6, ++n * 6); return r; } -const E5t = C5t("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"); +const _5t = E5t("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"); function hi(t) { return function() { return t; }; } -const Lq = Math.abs, Qs = Math.atan2, Md = Math.cos, _5t = Math.max, eA = Math.min, Tc = Math.sin, Og = Math.sqrt, qs = 1e-12, nb = Math.PI, L3 = nb / 2, A5 = 2 * nb; -function A5t(t) { +const Lq = Math.abs, Qs = Math.atan2, Md = Math.cos, A5t = Math.max, eA = Math.min, Tc = Math.sin, Og = Math.sqrt, qs = 1e-12, nb = Math.PI, L3 = nb / 2, A5 = 2 * nb; +function L5t(t) { return t > 1 ? 0 : t < -1 ? nb : Math.acos(t); } function Rq(t) { @@ -40074,30 +40074,30 @@ function moe(t) { e = n; } return t; - }, () => new HOt(e); + }, () => new ZOt(e); } -function L5t(t) { +function R5t(t) { return t.innerRadius; } -function R5t(t) { +function M5t(t) { return t.outerRadius; } -function M5t(t) { +function D5t(t) { return t.startAngle; } -function D5t(t) { +function P5t(t) { return t.endAngle; } -function P5t(t) { +function N5t(t) { return t && t.padAngle; } -function N5t(t, e, r, n, i, s, a, o) { +function I5t(t, e, r, n, i, s, a, o) { var l = r - t, u = n - e, h = a - i, f = o - s, d = f * l - h * u; if (!(d * d < qs)) return d = (h * (e - s) - f * (t - i)) / d, [t + d * l, e + d * u]; } function XO(t, e, r, n, i, s, a) { - var o = t - r, l = e - n, u = (a ? s : -s) / Og(o * o + l * l), h = u * l, f = -u * o, d = t + h, p = e + f, g = r + h, m = n + f, v = (d + g) / 2, y = (p + m) / 2, b = g - d, w = m - p, O = b * b + w * w, S = i - s, C = d * m - g * p, T = (w < 0 ? -1 : 1) * Og(_5t(0, S * S * O - C * C)), A = (C * w - b * T) / O, E = (-C * b - w * T) / O, R = (C * w + b * T) / O, _ = (-C * b + w * T) / O, L = A - v, $ = E - y, k = R - v, P = _ - y; + var o = t - r, l = e - n, u = (a ? s : -s) / Og(o * o + l * l), h = u * l, f = -u * o, d = t + h, p = e + f, g = r + h, m = n + f, v = (d + g) / 2, y = (p + m) / 2, b = g - d, w = m - p, O = b * b + w * w, S = i - s, C = d * m - g * p, T = (w < 0 ? -1 : 1) * Og(A5t(0, S * S * O - C * C)), A = (C * w - b * T) / O, E = (-C * b - w * T) / O, R = (C * w + b * T) / O, _ = (-C * b + w * T) / O, L = A - v, $ = E - y, k = R - v, P = _ - y; return L * L + $ * $ > k * k + P * P && (A = R, E = _), { cx: A, cy: E, @@ -40108,7 +40108,7 @@ function XO(t, e, r, n, i, s, a) { }; } function $m() { - var t = L5t, e = R5t, r = hi(0), n = null, i = M5t, s = D5t, a = P5t, o = null, l = moe(u); + var t = R5t, e = M5t, r = hi(0), n = null, i = D5t, s = P5t, a = N5t, o = null, l = moe(u); function u() { var h, f, d = +t.apply(this, arguments), p = +e.apply(this, arguments), g = i.apply(this, arguments) - L3, m = s.apply(this, arguments) - L3, v = Lq(m - g), y = m > g; if (o || (o = h = l()), p < d && (f = p, p = d, d = f), !(p > qs)) @@ -40125,8 +40125,8 @@ function $m() { if (R > qs) { var B = p * Md(w), U = p * Tc(w), Q = d * Md(O), W = d * Tc(O), K; if (v < nb) - if (K = N5t(N, D, Q, W, B, U, I, F)) { - var Y = N - K[0], te = D - K[1], se = B - K[0], V = U - K[1], Z = 1 / Tc(A5t((Y * se + te * V) / (Og(Y * Y + te * te) * Og(se * se + V * V))) / 2), G = Og(K[0] * K[0] + K[1] * K[1]); + if (K = I5t(N, D, Q, W, B, U, I, F)) { + var Y = N - K[0], te = D - K[1], se = B - K[0], V = U - K[1], Z = 1 / Tc(L5t((Y * se + te * V) / (Og(Y * Y + te * te) * Og(se * se + V * V))) / 2), G = Og(K[0] * K[0] + K[1] * K[1]); _ = eA(R, (d - G) / (Z - 1)), L = eA(R, (p - G) / (Z + 1)); } else _ = L = 0; @@ -40192,15 +40192,15 @@ yoe.prototype = { function MC(t) { return new yoe(t); } -function I5t(t) { +function $5t(t) { return t[0]; } -function $5t(t) { +function B5t(t) { return t[1]; } -function Wf(t, e) { +function Gf(t, e) { var r = hi(!0), n = null, i = MC, s = null, a = moe(o); - t = typeof t == "function" ? t : t === void 0 ? I5t : hi(t), e = typeof e == "function" ? e : e === void 0 ? $5t : hi(e); + t = typeof t == "function" ? t : t === void 0 ? $5t : hi(t), e = typeof e == "function" ? e : e === void 0 ? B5t : hi(e); function o(l) { var u, h = (l = voe(l)).length, f, d = !1, p; for (n == null && (s = i(p = a())), u = 0; u <= h; ++u) @@ -40220,14 +40220,14 @@ function Wf(t, e) { return arguments.length ? (l == null ? n = s = null : s = i(n = l), o) : n; }, o; } -function B5t(t, e) { +function F5t(t, e) { return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; } -function F5t(t) { +function z5t(t) { return t; } -function z5t() { - var t = F5t, e = B5t, r = null, n = hi(0), i = hi(A5), s = hi(0); +function Q5t() { + var t = z5t, e = F5t, r = null, n = hi(0), i = hi(A5), s = hi(0); function a(o) { var l, u = (o = voe(o)).length, h, f, d = 0, p = new Array(u), g = new Array(u), m = +n.apply(this, arguments), v = Math.min(A5, Math.max(-A5, i.apply(this, arguments) - m)), y, b = Math.min(Math.abs(v) / u, s.apply(this, arguments)), w = b * (v < 0 ? -1 : 1), O; for (l = 0; l < u; ++l) @@ -40293,13 +40293,13 @@ class boe { this._x0 = e, this._y0 = r; } } -function Q5t(t) { +function U5t(t) { return new boe(t, !0); } -function U5t(t) { +function V5t(t) { return new boe(t, !1); } -function Gf() { +function Xf() { } function R3(t, e, r) { t._context.bezierCurveTo( @@ -40358,8 +40358,8 @@ function xoe(t) { this._context = t; } xoe.prototype = { - areaStart: Gf, - areaEnd: Gf, + areaStart: Xf, + areaEnd: Xf, 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; }, @@ -40397,7 +40397,7 @@ xoe.prototype = { this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e; } }; -function V5t(t) { +function q5t(t) { return new xoe(t); } function woe(t) { @@ -40438,7 +40438,7 @@ woe.prototype = { this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e; } }; -function q5t(t) { +function Y5t(t) { return new woe(t); } function Ooe(t, e) { @@ -40462,7 +40462,7 @@ Ooe.prototype = { this._x.push(+t), this._y.push(+e); } }; -const Y5t = function t(e) { +const W5t = function t(e) { function r(n) { return e === 1 ? new DC(n) : new Ooe(n, e); } @@ -40521,7 +40521,7 @@ JP.prototype = { this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const W5t = function t(e) { +const G5t = function t(e) { function r(n) { return new JP(n, e); } @@ -40533,8 +40533,8 @@ function eN(t, e) { this._context = t, this._k = (1 - e) / 6; } eN.prototype = { - areaStart: Gf, - areaEnd: Gf, + areaStart: Xf, + areaEnd: Xf, 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; }, @@ -40572,7 +40572,7 @@ eN.prototype = { this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const G5t = function t(e) { +const X5t = function t(e) { function r(n) { return new eN(n, e); } @@ -40616,7 +40616,7 @@ tN.prototype = { this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const X5t = function t(e) { +const H5t = function t(e) { function r(n) { return new tN(n, e); } @@ -40681,7 +40681,7 @@ koe.prototype = { 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 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const H5t = function t(e) { +const Z5t = function t(e) { function r(n) { return e ? new koe(n, e) : new JP(n, 0); } @@ -40693,8 +40693,8 @@ function Soe(t, e) { this._context = t, this._alpha = e; } Soe.prototype = { - areaStart: Gf, - areaEnd: Gf, + areaStart: Xf, + areaEnd: Xf, 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; }, @@ -40736,7 +40736,7 @@ Soe.prototype = { 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 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const Z5t = function t(e) { +const j5t = function t(e) { function r(n) { return e ? new Soe(n, e) : new eN(n, 0); } @@ -40784,7 +40784,7 @@ Toe.prototype = { 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 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e; } }; -const j5t = function t(e) { +const K5t = function t(e) { function r(n) { return e ? new Toe(n, e) : new tN(n, 0); } @@ -40796,8 +40796,8 @@ function Coe(t) { this._context = t; } Coe.prototype = { - areaStart: Gf, - areaEnd: Gf, + areaStart: Xf, + areaEnd: Xf, lineStart: function() { this._point = 0; }, @@ -40808,7 +40808,7 @@ Coe.prototype = { t = +t, e = +e, this._point ? this._context.lineTo(t, e) : (this._point = 1, this._context.moveTo(t, e)); } }; -function K5t(t) { +function J5t(t) { return new Coe(t); } function Mq(t) { @@ -40894,10 +40894,10 @@ _oe.prototype = { this._context.bezierCurveTo(e, t, n, r, s, i); } }; -function J5t(t) { +function ekt(t) { return new D3(t); } -function ekt(t) { +function tkt(t) { return new Eoe(t); } function Aoe(t) { @@ -40939,7 +40939,7 @@ function Nq(t) { s[e] = 2 * t[e + 1] - i[e + 1]; return [i, s]; } -function tkt(t) { +function rkt(t) { return new Aoe(t); } function PC(t, e) { @@ -40978,13 +40978,13 @@ PC.prototype = { this._x = t, this._y = e; } }; -function rkt(t) { +function nkt(t) { return new PC(t, 0.5); } -function nkt(t) { +function ikt(t) { return new PC(t, 0); } -function ikt(t) { +function skt(t) { return new PC(t, 1); } function kg(t, e, r) { @@ -41028,56 +41028,56 @@ kg.prototype = { }; new kg(1, 0, 0); kg.prototype; -var skt = typeof global == "object" && global && global.Object === Object && global; -const Loe = skt; -var akt = typeof self == "object" && self && self.Object === Object && self, okt = Loe || akt || Function("return this")(); -const gc = okt; -var lkt = gc.Symbol; -const gl = lkt; -var Roe = Object.prototype, ckt = Roe.hasOwnProperty, ukt = Roe.toString, Iv = gl ? gl.toStringTag : void 0; -function hkt(t) { - var e = ckt.call(t, Iv), r = t[Iv]; +var akt = typeof global == "object" && global && global.Object === Object && global; +const Loe = akt; +var okt = typeof self == "object" && self && self.Object === Object && self, lkt = Loe || okt || Function("return this")(); +const gc = lkt; +var ckt = gc.Symbol; +const gl = ckt; +var Roe = Object.prototype, ukt = Roe.hasOwnProperty, hkt = Roe.toString, Iv = gl ? gl.toStringTag : void 0; +function fkt(t) { + var e = ukt.call(t, Iv), r = t[Iv]; try { t[Iv] = void 0; var n = !0; } catch { } - var i = ukt.call(t); + var i = hkt.call(t); return n && (e ? t[Iv] = r : delete t[Iv]), i; } -var fkt = Object.prototype, dkt = fkt.toString; -function pkt(t) { - return dkt.call(t); +var dkt = Object.prototype, pkt = dkt.toString; +function gkt(t) { + return pkt.call(t); } -var gkt = "[object Null]", mkt = "[object Undefined]", Iq = gl ? gl.toStringTag : void 0; -function Dh(t) { - return t == null ? t === void 0 ? mkt : gkt : Iq && Iq in Object(t) ? hkt(t) : pkt(t); +var mkt = "[object Null]", vkt = "[object Undefined]", Iq = gl ? gl.toStringTag : void 0; +function Ph(t) { + return t == null ? t === void 0 ? vkt : mkt : Iq && Iq in Object(t) ? fkt(t) : gkt(t); } function so(t) { var e = typeof t; return t != null && (e == "object" || e == "function"); } -var vkt = "[object AsyncFunction]", ykt = "[object Function]", bkt = "[object GeneratorFunction]", xkt = "[object Proxy]"; +var ykt = "[object AsyncFunction]", bkt = "[object Function]", xkt = "[object GeneratorFunction]", wkt = "[object Proxy]"; function ml(t) { if (!so(t)) return !1; - var e = Dh(t); - return e == ykt || e == bkt || e == vkt || e == xkt; + var e = Ph(t); + return e == bkt || e == xkt || e == ykt || e == wkt; } -var wkt = gc["__core-js_shared__"]; -const rA = wkt; +var Okt = gc["__core-js_shared__"]; +const rA = Okt; var $q = function() { var t = /[^.]+$/.exec(rA && rA.keys && rA.keys.IE_PROTO || ""); return t ? "Symbol(src)_1." + t : ""; }(); -function Okt(t) { +function kkt(t) { return !!$q && $q in t; } -var kkt = Function.prototype, Skt = kkt.toString; +var Skt = Function.prototype, Tkt = Skt.toString; function Cp(t) { if (t != null) { try { - return Skt.call(t); + return Tkt.call(t); } catch { } try { @@ -41087,49 +41087,49 @@ function Cp(t) { } return ""; } -var Tkt = /[\\^$.*+?()[\]{}|]/g, Ckt = /^\[object .+?Constructor\]$/, Ekt = Function.prototype, _kt = Object.prototype, Akt = Ekt.toString, Lkt = _kt.hasOwnProperty, Rkt = RegExp( - "^" + Akt.call(Lkt).replace(Tkt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" +var Ckt = /[\\^$.*+?()[\]{}|]/g, Ekt = /^\[object .+?Constructor\]$/, _kt = Function.prototype, Akt = Object.prototype, Lkt = _kt.toString, Rkt = Akt.hasOwnProperty, Mkt = RegExp( + "^" + Lkt.call(Rkt).replace(Ckt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); -function Mkt(t) { - if (!so(t) || Okt(t)) +function Dkt(t) { + if (!so(t) || kkt(t)) return !1; - var e = ml(t) ? Rkt : Ckt; + var e = ml(t) ? Mkt : Ekt; return e.test(Cp(t)); } -function Dkt(t, e) { +function Pkt(t, e) { return t == null ? void 0 : t[e]; } function Ep(t, e) { - var r = Dkt(t, e); - return Mkt(r) ? r : void 0; + var r = Pkt(t, e); + return Dkt(r) ? r : void 0; } -var Pkt = Ep(Object, "create"); -const ib = Pkt; -function Nkt() { +var Nkt = Ep(Object, "create"); +const ib = Nkt; +function Ikt() { this.__data__ = ib ? ib(null) : {}, this.size = 0; } -function Ikt(t) { +function $kt(t) { var e = this.has(t) && delete this.__data__[t]; return this.size -= e ? 1 : 0, e; } -var $kt = "__lodash_hash_undefined__", Bkt = Object.prototype, Fkt = Bkt.hasOwnProperty; -function zkt(t) { +var Bkt = "__lodash_hash_undefined__", Fkt = Object.prototype, zkt = Fkt.hasOwnProperty; +function Qkt(t) { var e = this.__data__; if (ib) { var r = e[t]; - return r === $kt ? void 0 : r; + return r === Bkt ? void 0 : r; } - return Fkt.call(e, t) ? e[t] : void 0; + return zkt.call(e, t) ? e[t] : void 0; } -var Qkt = Object.prototype, Ukt = Qkt.hasOwnProperty; -function Vkt(t) { +var Ukt = Object.prototype, Vkt = Ukt.hasOwnProperty; +function qkt(t) { var e = this.__data__; - return ib ? e[t] !== void 0 : Ukt.call(e, t); + return ib ? e[t] !== void 0 : Vkt.call(e, t); } -var qkt = "__lodash_hash_undefined__"; -function Ykt(t, e) { +var Ykt = "__lodash_hash_undefined__"; +function Wkt(t, e) { var r = this.__data__; - return this.size += this.has(t) ? 0 : 1, r[t] = ib && e === void 0 ? qkt : e, this; + return this.size += this.has(t) ? 0 : 1, r[t] = ib && e === void 0 ? Ykt : e, this; } function q0(t) { var e = -1, r = t == null ? 0 : t.length; @@ -41138,12 +41138,12 @@ function q0(t) { this.set(n[0], n[1]); } } -q0.prototype.clear = Nkt; -q0.prototype.delete = Ikt; -q0.prototype.get = zkt; -q0.prototype.has = Vkt; -q0.prototype.set = Ykt; -function Wkt() { +q0.prototype.clear = Ikt; +q0.prototype.delete = $kt; +q0.prototype.get = Qkt; +q0.prototype.has = qkt; +q0.prototype.set = Wkt; +function Gkt() { this.__data__ = [], this.size = 0; } function I1(t, e) { @@ -41155,84 +41155,84 @@ function NC(t, e) { return r; return -1; } -var Gkt = Array.prototype, Xkt = Gkt.splice; -function Hkt(t) { +var Xkt = Array.prototype, Hkt = Xkt.splice; +function Zkt(t) { var e = this.__data__, r = NC(e, t); if (r < 0) return !1; var n = e.length - 1; - return r == n ? e.pop() : Xkt.call(e, r, 1), --this.size, !0; + return r == n ? e.pop() : Hkt.call(e, r, 1), --this.size, !0; } -function Zkt(t) { +function jkt(t) { var e = this.__data__, r = NC(e, t); return r < 0 ? void 0 : e[r][1]; } -function jkt(t) { +function Kkt(t) { return NC(this.__data__, t) > -1; } -function Kkt(t, e) { +function Jkt(t, e) { var r = this.__data__, n = NC(r, t); return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this; } -function Ph(t) { +function Nh(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { var n = t[e]; this.set(n[0], n[1]); } } -Ph.prototype.clear = Wkt; -Ph.prototype.delete = Hkt; -Ph.prototype.get = Zkt; -Ph.prototype.has = jkt; -Ph.prototype.set = Kkt; -var Jkt = Ep(gc, "Map"); -const sb = Jkt; -function e3t() { +Nh.prototype.clear = Gkt; +Nh.prototype.delete = Zkt; +Nh.prototype.get = jkt; +Nh.prototype.has = Kkt; +Nh.prototype.set = Jkt; +var e3t = Ep(gc, "Map"); +const sb = e3t; +function t3t() { this.size = 0, this.__data__ = { hash: new q0(), - map: new (sb || Ph)(), + map: new (sb || Nh)(), string: new q0() }; } -function t3t(t) { +function r3t(t) { var e = typeof t; return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null; } function IC(t, e) { var r = t.__data__; - return t3t(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; + return r3t(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; } -function r3t(t) { +function n3t(t) { var e = IC(this, t).delete(t); return this.size -= e ? 1 : 0, e; } -function n3t(t) { +function i3t(t) { return IC(this, t).get(t); } -function i3t(t) { +function s3t(t) { return IC(this, t).has(t); } -function s3t(t, e) { +function a3t(t, e) { var r = IC(this, t), n = r.size; return r.set(t, e), this.size += r.size == n ? 0 : 1, this; } -function Nh(t) { +function Ih(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { var n = t[e]; this.set(n[0], n[1]); } } -Nh.prototype.clear = e3t; -Nh.prototype.delete = r3t; -Nh.prototype.get = n3t; -Nh.prototype.has = i3t; -Nh.prototype.set = s3t; -var a3t = "Expected a function"; +Ih.prototype.clear = t3t; +Ih.prototype.delete = n3t; +Ih.prototype.get = i3t; +Ih.prototype.has = s3t; +Ih.prototype.set = a3t; +var o3t = "Expected a function"; function $1(t, e) { if (typeof t != "function" || e != null && typeof e != "function") - throw new TypeError(a3t); + throw new TypeError(o3t); var r = function() { var n = arguments, i = e ? e.apply(this, n) : n[0], s = r.cache; if (s.has(i)) @@ -41240,50 +41240,50 @@ function $1(t, e) { var a = t.apply(this, n); return r.cache = s.set(i, a) || s, a; }; - return r.cache = new ($1.Cache || Nh)(), r; + return r.cache = new ($1.Cache || Ih)(), r; } -$1.Cache = Nh; -function o3t() { - this.__data__ = new Ph(), this.size = 0; +$1.Cache = Ih; +function l3t() { + this.__data__ = new Nh(), this.size = 0; } -function l3t(t) { +function c3t(t) { var e = this.__data__, r = e.delete(t); return this.size = e.size, r; } -function c3t(t) { +function u3t(t) { return this.__data__.get(t); } -function u3t(t) { +function h3t(t) { return this.__data__.has(t); } -var h3t = 200; -function f3t(t, e) { +var f3t = 200; +function d3t(t, e) { var r = this.__data__; - if (r instanceof Ph) { + if (r instanceof Nh) { var n = r.__data__; - if (!sb || n.length < h3t - 1) + if (!sb || n.length < f3t - 1) return n.push([t, e]), this.size = ++r.size, this; - r = this.__data__ = new Nh(n); + r = this.__data__ = new Ih(n); } return r.set(t, e), this.size = r.size, this; } function Yl(t) { - var e = this.__data__ = new Ph(t); + var e = this.__data__ = new Nh(t); this.size = e.size; } -Yl.prototype.clear = o3t; -Yl.prototype.delete = l3t; -Yl.prototype.get = c3t; -Yl.prototype.has = u3t; -Yl.prototype.set = f3t; -var d3t = function() { +Yl.prototype.clear = l3t; +Yl.prototype.delete = c3t; +Yl.prototype.get = u3t; +Yl.prototype.has = h3t; +Yl.prototype.set = d3t; +var p3t = function() { try { var t = Ep(Object, "defineProperty"); return t({}, "", {}), t; } catch { } }(); -const P3 = d3t; +const P3 = p3t; function iw(t, e, r) { e == "__proto__" && P3 ? P3(t, e, { configurable: !0, @@ -41295,7 +41295,7 @@ function iw(t, e, r) { function W9(t, e, r) { (r !== void 0 && !I1(t[e], r) || r === void 0 && !(e in t)) && iw(t, e, r); } -function p3t(t) { +function g3t(t) { return function(e, r, n) { for (var i = -1, s = Object(e), a = n(e), o = a.length; o--; ) { var l = a[t ? o : ++i]; @@ -41305,17 +41305,17 @@ function p3t(t) { return e; }; } -var g3t = p3t(); -const nN = g3t; -var Moe = typeof exports == "object" && exports && !exports.nodeType && exports, Bq = Moe && typeof module == "object" && module && !module.nodeType && module, m3t = Bq && Bq.exports === Moe, Fq = m3t ? gc.Buffer : void 0, zq = Fq ? Fq.allocUnsafe : void 0; +var m3t = g3t(); +const nN = m3t; +var Moe = typeof exports == "object" && exports && !exports.nodeType && exports, Bq = Moe && typeof module == "object" && module && !module.nodeType && module, v3t = Bq && Bq.exports === Moe, Fq = v3t ? gc.Buffer : void 0, zq = Fq ? Fq.allocUnsafe : void 0; function Doe(t, e) { if (e) return t.slice(); var r = t.length, n = zq ? zq(r) : new t.constructor(r); return t.copy(n), n; } -var v3t = gc.Uint8Array; -const N3 = v3t; +var y3t = gc.Uint8Array; +const N3 = y3t; function iN(t) { var e = new t.constructor(t.byteLength); return new N3(e).set(new N3(t)), e; @@ -41330,7 +41330,7 @@ function Noe(t, e) { e[r] = t[r]; return e; } -var Qq = Object.create, y3t = function() { +var Qq = Object.create, b3t = function() { function t() { } return function(e) { @@ -41343,40 +41343,40 @@ var Qq = Object.create, y3t = function() { return t.prototype = void 0, r; }; }(); -const b3t = y3t; +const x3t = b3t; function Ioe(t, e) { return function(r) { return t(e(r)); }; } -var x3t = Ioe(Object.getPrototypeOf, Object); -const sN = x3t; -var w3t = Object.prototype; +var w3t = Ioe(Object.getPrototypeOf, Object); +const sN = w3t; +var O3t = Object.prototype; function sw(t) { - var e = t && t.constructor, r = typeof e == "function" && e.prototype || w3t; + var e = t && t.constructor, r = typeof e == "function" && e.prototype || O3t; return t === r; } function $oe(t) { - return typeof t.constructor == "function" && !sw(t) ? b3t(sN(t)) : {}; + return typeof t.constructor == "function" && !sw(t) ? x3t(sN(t)) : {}; } function vl(t) { return t != null && typeof t == "object"; } -var O3t = "[object Arguments]"; +var k3t = "[object Arguments]"; function Uq(t) { - return vl(t) && Dh(t) == O3t; + return vl(t) && Ph(t) == k3t; } -var Boe = Object.prototype, k3t = Boe.hasOwnProperty, S3t = Boe.propertyIsEnumerable, T3t = Uq(function() { +var Boe = Object.prototype, S3t = Boe.hasOwnProperty, T3t = Boe.propertyIsEnumerable, C3t = Uq(function() { return arguments; }()) ? Uq : function(t) { - return vl(t) && k3t.call(t, "callee") && !S3t.call(t, "callee"); + return vl(t) && S3t.call(t, "callee") && !T3t.call(t, "callee"); }; -const Bm = T3t; -var C3t = Array.isArray; -const Pr = C3t; -var E3t = 9007199254740991; +const Bm = C3t; +var E3t = Array.isArray; +const Pr = E3t; +var _3t = 9007199254740991; function aN(t) { - return typeof t == "number" && t > -1 && t % 1 == 0 && t <= E3t; + return typeof t == "number" && t > -1 && t % 1 == 0 && t <= _3t; } function Ou(t) { return t != null && aN(t.length) && !ml(t); @@ -41384,50 +41384,50 @@ function Ou(t) { function I3(t) { return vl(t) && Ou(t); } -function _3t() { +function A3t() { return !1; } -var Foe = typeof exports == "object" && exports && !exports.nodeType && exports, Vq = Foe && typeof module == "object" && module && !module.nodeType && module, A3t = Vq && Vq.exports === Foe, qq = A3t ? gc.Buffer : void 0, L3t = qq ? qq.isBuffer : void 0, R3t = L3t || _3t; -const Fm = R3t; -var M3t = "[object Object]", D3t = Function.prototype, P3t = Object.prototype, zoe = D3t.toString, N3t = P3t.hasOwnProperty, I3t = zoe.call(Object); -function $3t(t) { - if (!vl(t) || Dh(t) != M3t) +var Foe = typeof exports == "object" && exports && !exports.nodeType && exports, Vq = Foe && typeof module == "object" && module && !module.nodeType && module, L3t = Vq && Vq.exports === Foe, qq = L3t ? gc.Buffer : void 0, R3t = qq ? qq.isBuffer : void 0, M3t = R3t || A3t; +const Fm = M3t; +var D3t = "[object Object]", P3t = Function.prototype, N3t = Object.prototype, zoe = P3t.toString, I3t = N3t.hasOwnProperty, $3t = zoe.call(Object); +function B3t(t) { + if (!vl(t) || Ph(t) != D3t) return !1; var e = sN(t); if (e === null) return !0; - var r = N3t.call(e, "constructor") && e.constructor; - return typeof r == "function" && r instanceof r && zoe.call(r) == I3t; + var r = I3t.call(e, "constructor") && e.constructor; + return typeof r == "function" && r instanceof r && zoe.call(r) == $3t; } -var B3t = "[object Arguments]", F3t = "[object Array]", z3t = "[object Boolean]", Q3t = "[object Date]", U3t = "[object Error]", V3t = "[object Function]", q3t = "[object Map]", Y3t = "[object Number]", W3t = "[object Object]", G3t = "[object RegExp]", X3t = "[object Set]", H3t = "[object String]", Z3t = "[object WeakMap]", j3t = "[object ArrayBuffer]", K3t = "[object DataView]", J3t = "[object Float32Array]", eSt = "[object Float64Array]", tSt = "[object Int8Array]", rSt = "[object Int16Array]", nSt = "[object Int32Array]", iSt = "[object Uint8Array]", sSt = "[object Uint8ClampedArray]", aSt = "[object Uint16Array]", oSt = "[object Uint32Array]", Ln = {}; -Ln[J3t] = Ln[eSt] = Ln[tSt] = Ln[rSt] = Ln[nSt] = Ln[iSt] = Ln[sSt] = Ln[aSt] = Ln[oSt] = !0; -Ln[B3t] = Ln[F3t] = Ln[j3t] = Ln[z3t] = Ln[K3t] = Ln[Q3t] = Ln[U3t] = Ln[V3t] = Ln[q3t] = Ln[Y3t] = Ln[W3t] = Ln[G3t] = Ln[X3t] = Ln[H3t] = Ln[Z3t] = !1; -function lSt(t) { - return vl(t) && aN(t.length) && !!Ln[Dh(t)]; +var F3t = "[object Arguments]", z3t = "[object Array]", Q3t = "[object Boolean]", U3t = "[object Date]", V3t = "[object Error]", q3t = "[object Function]", Y3t = "[object Map]", W3t = "[object Number]", G3t = "[object Object]", X3t = "[object RegExp]", H3t = "[object Set]", Z3t = "[object String]", j3t = "[object WeakMap]", K3t = "[object ArrayBuffer]", J3t = "[object DataView]", eSt = "[object Float32Array]", tSt = "[object Float64Array]", rSt = "[object Int8Array]", nSt = "[object Int16Array]", iSt = "[object Int32Array]", sSt = "[object Uint8Array]", aSt = "[object Uint8ClampedArray]", oSt = "[object Uint16Array]", lSt = "[object Uint32Array]", Ln = {}; +Ln[eSt] = Ln[tSt] = Ln[rSt] = Ln[nSt] = Ln[iSt] = Ln[sSt] = Ln[aSt] = Ln[oSt] = Ln[lSt] = !0; +Ln[F3t] = Ln[z3t] = Ln[K3t] = Ln[Q3t] = Ln[J3t] = Ln[U3t] = Ln[V3t] = Ln[q3t] = Ln[Y3t] = Ln[W3t] = Ln[G3t] = Ln[X3t] = Ln[H3t] = Ln[Z3t] = Ln[j3t] = !1; +function cSt(t) { + return vl(t) && aN(t.length) && !!Ln[Ph(t)]; } function B1(t) { return function(e) { return t(e); }; } -var Qoe = typeof exports == "object" && exports && !exports.nodeType && exports, Zy = Qoe && typeof module == "object" && module && !module.nodeType && module, cSt = Zy && Zy.exports === Qoe, nA = cSt && Loe.process, uSt = function() { +var Qoe = typeof exports == "object" && exports && !exports.nodeType && exports, Zy = Qoe && typeof module == "object" && module && !module.nodeType && module, uSt = Zy && Zy.exports === Qoe, nA = uSt && Loe.process, hSt = function() { try { var t = Zy && Zy.require && Zy.require("util").types; return t || nA && nA.binding && nA.binding("util"); } catch { } }(); -const Xf = uSt; -var Yq = Xf && Xf.isTypedArray, hSt = Yq ? B1(Yq) : lSt; -const $C = hSt; +const Hf = hSt; +var Yq = Hf && Hf.isTypedArray, fSt = Yq ? B1(Yq) : cSt; +const $C = fSt; function G9(t, e) { if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__") return t[e]; } -var fSt = Object.prototype, dSt = fSt.hasOwnProperty; +var dSt = Object.prototype, pSt = dSt.hasOwnProperty; function aw(t, e, r) { var n = t[e]; - (!(dSt.call(t, e) && I1(n, r)) || r === void 0 && !(e in t)) && iw(t, e, r); + (!(pSt.call(t, e) && I1(n, r)) || r === void 0 && !(e in t)) && iw(t, e, r); } function F1(t, e, r, n) { var i = !r; @@ -41438,46 +41438,46 @@ function F1(t, e, r, n) { } return r; } -function pSt(t, e) { +function gSt(t, e) { for (var r = -1, n = Array(t); ++r < t; ) n[r] = e(r); return n; } -var gSt = 9007199254740991, mSt = /^(?:0|[1-9]\d*)$/; +var mSt = 9007199254740991, vSt = /^(?:0|[1-9]\d*)$/; function BC(t, e) { var r = typeof t; - return e = e == null ? gSt : e, !!e && (r == "number" || r != "symbol" && mSt.test(t)) && t > -1 && t % 1 == 0 && t < e; + return e = e == null ? mSt : e, !!e && (r == "number" || r != "symbol" && vSt.test(t)) && t > -1 && t % 1 == 0 && t < e; } -var vSt = Object.prototype, ySt = vSt.hasOwnProperty; +var ySt = Object.prototype, bSt = ySt.hasOwnProperty; function Uoe(t, e) { - var r = Pr(t), n = !r && Bm(t), i = !r && !n && Fm(t), s = !r && !n && !i && $C(t), a = r || n || i || s, o = a ? pSt(t.length, String) : [], l = o.length; + var r = Pr(t), n = !r && Bm(t), i = !r && !n && Fm(t), s = !r && !n && !i && $C(t), a = r || n || i || s, o = a ? gSt(t.length, String) : [], l = o.length; for (var u in t) - (e || ySt.call(t, u)) && !(a && (u == "length" || i && (u == "offset" || u == "parent") || s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || BC(u, l))) && o.push(u); + (e || bSt.call(t, u)) && !(a && (u == "length" || i && (u == "offset" || u == "parent") || s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || BC(u, l))) && o.push(u); return o; } -function bSt(t) { +function xSt(t) { var e = []; if (t != null) for (var r in Object(t)) e.push(r); return e; } -var xSt = Object.prototype, wSt = xSt.hasOwnProperty; -function OSt(t) { +var wSt = Object.prototype, OSt = wSt.hasOwnProperty; +function kSt(t) { if (!so(t)) - return bSt(t); + return xSt(t); var e = sw(t), r = []; for (var n in t) - n == "constructor" && (e || !wSt.call(t, n)) || r.push(n); + n == "constructor" && (e || !OSt.call(t, n)) || r.push(n); return r; } function _p(t) { - return Ou(t) ? Uoe(t, !0) : OSt(t); + return Ou(t) ? Uoe(t, !0) : kSt(t); } -function kSt(t) { +function SSt(t) { return F1(t, _p(t)); } -function SSt(t, e, r, n, i, s, a) { +function TSt(t, e, r, n, i, s, a) { var o = G9(t, r), l = G9(e, r), u = a.get(l); if (u) { W9(t, r, u); @@ -41486,14 +41486,14 @@ function SSt(t, e, r, n, i, s, a) { var h = s ? s(o, l, r + "", t, e, a) : void 0, f = h === void 0; if (f) { var d = Pr(l), p = !d && Fm(l), g = !d && !p && $C(l); - h = l, d || p || g ? Pr(o) ? h = o : I3(o) ? h = Noe(o) : p ? (f = !1, h = Doe(l, !0)) : g ? (f = !1, h = Poe(l, !0)) : h = [] : $3t(l) || Bm(l) ? (h = o, Bm(o) ? h = kSt(o) : (!so(o) || ml(o)) && (h = $oe(l))) : f = !1; + h = l, d || p || g ? Pr(o) ? h = o : I3(o) ? h = Noe(o) : p ? (f = !1, h = Doe(l, !0)) : g ? (f = !1, h = Poe(l, !0)) : h = [] : B3t(l) || Bm(l) ? (h = o, Bm(o) ? h = SSt(o) : (!so(o) || ml(o)) && (h = $oe(l))) : f = !1; } f && (a.set(l, h), i(h, l, n, s, a), a.delete(l)), W9(t, r, h); } function Voe(t, e, r, n, i) { t !== e && nN(e, function(s, a) { if (i || (i = new Yl()), so(s)) - SSt(t, e, a, r, Voe, n, i); + TSt(t, e, a, r, Voe, n, i); else { var o = n ? n(G9(t, a), s, a + "", t, e, i) : void 0; o === void 0 && (o = s), W9(t, a, o); @@ -41503,7 +41503,7 @@ function Voe(t, e, r, n, i) { function vh(t) { return t; } -function TSt(t, e, r) { +function CSt(t, e, r) { switch (r.length) { case 0: return t.call(e); @@ -41524,7 +41524,7 @@ function qoe(t, e, r) { i = -1; for (var o = Array(e + 1); ++i < e; ) o[i] = n[i]; - return o[e] = r(a), TSt(t, this, o); + return o[e] = r(a), CSt(t, this, o); }; } function Sg(t) { @@ -41532,7 +41532,7 @@ function Sg(t) { return t; }; } -var CSt = P3 ? function(t, e) { +var ESt = P3 ? function(t, e) { return P3(t, "toString", { configurable: !0, enumerable: !1, @@ -41540,22 +41540,22 @@ var CSt = P3 ? function(t, e) { writable: !0 }); } : vh; -const ESt = CSt; -var _St = 800, ASt = 16, LSt = Date.now; -function RSt(t) { +const _St = ESt; +var ASt = 800, LSt = 16, RSt = Date.now; +function MSt(t) { var e = 0, r = 0; return function() { - var n = LSt(), i = ASt - (n - r); + var n = RSt(), i = LSt - (n - r); if (r = n, i > 0) { - if (++e >= _St) + if (++e >= ASt) return arguments[0]; } else e = 0; return t.apply(void 0, arguments); }; } -var MSt = RSt(ESt); -const Yoe = MSt; +var DSt = MSt(_St); +const Yoe = DSt; function ow(t, e) { return Yoe(qoe(t, e, vh), t + ""); } @@ -41575,32 +41575,32 @@ function Woe(t) { return e; }); } -var DSt = Woe(function(t, e, r) { +var PSt = Woe(function(t, e, r) { Voe(t, e, r); }); -const $3 = DSt; -var Goe = "\u200B", PSt = { +const $3 = PSt; +var Goe = "\u200B", NSt = { curveBasis: N1, - curveBasisClosed: V5t, - curveBasisOpen: q5t, - curveBumpX: Q5t, - curveBumpY: U5t, - curveBundle: Y5t, - curveCardinalClosed: G5t, - curveCardinalOpen: X5t, - curveCardinal: W5t, - curveCatmullRomClosed: Z5t, - curveCatmullRomOpen: j5t, - curveCatmullRom: H5t, + curveBasisClosed: q5t, + curveBasisOpen: Y5t, + curveBumpX: U5t, + curveBumpY: V5t, + curveBundle: W5t, + curveCardinalClosed: X5t, + curveCardinalOpen: H5t, + curveCardinal: G5t, + curveCatmullRomClosed: j5t, + curveCatmullRomOpen: K5t, + curveCatmullRom: Z5t, curveLinear: MC, - curveLinearClosed: K5t, - curveMonotoneX: J5t, - curveMonotoneY: ekt, - curveNatural: tkt, - curveStep: rkt, - curveStepAfter: ikt, - curveStepBefore: nkt -}, NSt = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, ISt = /* @__PURE__ */ x(function(t, e) { + curveLinearClosed: J5t, + curveMonotoneX: ekt, + curveMonotoneY: tkt, + curveNatural: rkt, + curveStep: nkt, + curveStepAfter: skt, + curveStepBefore: ikt +}, ISt = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, $St = /* @__PURE__ */ x(function(t, e) { const r = Xoe(t, /(?:init\b)|(?:initialize\b)/); let n = {}; if (Array.isArray(r)) { @@ -41617,7 +41617,7 @@ var Goe = "\u200B", PSt = { var r, n; try { const i = new RegExp( - `[%]{2}(?![{]${NSt.source})(?=[}][%]{2}).* + `[%]{2}(?![{]${ISt.source})(?=[}][%]{2}).* `, "ig" ); @@ -41637,9 +41637,9 @@ var Goe = "\u200B", PSt = { `ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'` ), { type: void 0, args: null }; } -}, "detectDirective"), $St = /* @__PURE__ */ x(function(t) { +}, "detectDirective"), BSt = /* @__PURE__ */ x(function(t) { return t.replace(Wy, ""); -}, "removeDirectives"), BSt = /* @__PURE__ */ x(function(t, e) { +}, "removeDirectives"), FSt = /* @__PURE__ */ x(function(t, e) { for (const [r, n] of e.entries()) if (n.match(t)) return r; @@ -41650,7 +41650,7 @@ function lw(t, e) { if (!t) return e; const r = `curve${t.charAt(0).toUpperCase() + t.slice(1)}`; - return (n = PSt[r]) != null ? n : e; + return (n = NSt[r]) != null ? n : e; } x(lw, "interpolateToCurve"); function Hoe(t, e) { @@ -41659,7 +41659,7 @@ function Hoe(t, e) { return e.securityLevel !== "loose" ? yd(r) : r; } x(Hoe, "formatUrl"); -var FSt = /* @__PURE__ */ x((t, ...e) => { +var zSt = /* @__PURE__ */ x((t, ...e) => { const r = t.split("."), n = r.length - 1, i = r[n]; let s = window; for (let a = 0; a < n; a++) @@ -41712,7 +41712,7 @@ var Gq = /* @__PURE__ */ x((t, e = 2) => { r = i; } throw new Error("Could not find a suitable point for the given distance"); -}, "calculatePoint"), zSt = /* @__PURE__ */ x((t, e, r) => { +}, "calculatePoint"), QSt = /* @__PURE__ */ x((t, e, r) => { H.info(`our points ${JSON.stringify(e)}`), e[0] !== r && (e = e.reverse()); const i = lN(e, 25), s = t ? 10 : 5, a = Math.atan2(e[0].y - i.y, e[0].x - i.x), o = { x: 0, y: 0 }; return o.x = Math.sin(a) * s + (e[0].x + i.x) / 2, o.y = -Math.cos(a) * s + (e[0].y + i.y) / 2, o; @@ -41740,7 +41740,7 @@ function ele(t) { return e; } x(ele, "makeRandomHex"); -var tle = /* @__PURE__ */ x((t) => ele(t.length), "random"), QSt = /* @__PURE__ */ x(function() { +var tle = /* @__PURE__ */ x((t) => ele(t.length), "random"), USt = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -41755,7 +41755,7 @@ var tle = /* @__PURE__ */ x((t) => ele(t.length), "random"), QSt = /* @__PURE__ valign: void 0, text: "" }; -}, "getTextObj"), USt = /* @__PURE__ */ x(function(t, e) { +}, "getTextObj"), VSt = /* @__PURE__ */ x(function(t, e) { const r = e.text.replace(mt.lineBreakRegex, " "), [, n] = Ap(e.fontSize), i = t.append("text"); i.attr("x", e.x), i.attr("y", e.y), i.style("text-anchor", e.anchor), i.style("font-family", e.fontFamily), i.style("font-size", n), i.style("font-weight", e.fontWeight), i.attr("fill", e.fill), e.class !== void 0 && i.attr("class", e.class); const s = i.append("tspan"); @@ -41772,7 +41772,7 @@ var tle = /* @__PURE__ */ x((t) => ele(t.length), "random"), QSt = /* @__PURE__ return n.forEach((a, o) => { const l = Wl(`${a} `, r), u = Wl(s, r); if (l > e) { - const { hyphenatedStrings: d, remainingWord: p } = VSt(a, e, "-", r); + const { hyphenatedStrings: d, remainingWord: p } = qSt(a, e, "-", r); i.push(s, ...d), s = p; } else u + l >= e ? (i.push(s), s = a) : s = [s, a].filter(Boolean).join(" "); @@ -41780,7 +41780,7 @@ var tle = /* @__PURE__ */ x((t) => ele(t.length), "random"), QSt = /* @__PURE__ }), i.filter((a) => a !== "").join(r.joinWith); }, (t, e, r) => `${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}` -), VSt = $1( +), qSt = $1( (t, e, r = "-", n) => { n = Object.assign( { fontSize: 12, fontWeight: 400, fontFamily: "Arial", margin: 0 }, @@ -41820,9 +41820,9 @@ var cN = $1( let p = 0; const g = { width: 0, height: 0, lineHeight: 0 }; for (const m of o) { - const v = QSt(); + const v = USt(); v.text = m || Goe; - const y = USt(h, v).style("font-size", s).style("font-weight", i).style("font-family", d), b = (y._groups || y)[0][0].getBBox(); + const y = VSt(h, v).style("font-size", s).style("font-weight", i).style("font-family", d), b = (y._groups || y)[0][0].getBBox(); if (b.width === 0 && b.height === 0) throw new Error("svg element not in render tree"); g.width = Math.round(Math.max(g.width, b.width)), p = Math.round(b.height), g.height += p, g.lineHeight = Math.round(Math.max(g.lineHeight, p)); @@ -41834,20 +41834,20 @@ var cN = $1( return l[f]; }, (t, e) => `${t}${e.fontSize}${e.fontWeight}${e.fontFamily}` -), tx, qSt = (tx = class { +), tx, YSt = (tx = class { constructor(e = !1, r) { this.count = 0, this.count = r ? r.length : 0, this.next = e ? () => this.count++ : () => Date.now(); } }, (() => { x(tx, "InitIDGenerator"); -})(), tx), HO, YSt = /* @__PURE__ */ x(function(t) { +})(), tx), HO, WSt = /* @__PURE__ */ x(function(t) { return HO = HO || document.createElement("div"), t = escape(t).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), HO.innerHTML = t, unescape(HO.textContent); }, "entityDecode"); function uN(t) { return "str" in t; } x(uN, "isDetailedError"); -var WSt = /* @__PURE__ */ x((t, e, r, n) => { +var GSt = /* @__PURE__ */ x((t, e, r, n) => { var s; if (!n) return; @@ -41859,34 +41859,34 @@ var WSt = /* @__PURE__ */ x((t, e, r, n) => { const e = parseInt(t != null ? t : "", 10); return Number.isNaN(e) ? [void 0, void 0] : t === String(e) ? [e, t + "px"] : [e, t]; }, "parseFontSize"); -function Ih(t, e) { +function $h(t, e) { return $3({}, t, e); } -x(Ih, "cleanAndMerge"); -var gr = { +x($h, "cleanAndMerge"); +var mr = { assignWithDepth: Ui, wrapLabel: rle, calculateTextHeight: B3, calculateTextWidth: Wl, calculateTextDimensions: cN, - cleanAndMerge: Ih, - detectInit: ISt, + cleanAndMerge: $h, + detectInit: $St, detectDirective: Xoe, - isSubstringInArray: BSt, + isSubstringInArray: FSt, interpolateToCurve: lw, calcLabelPosition: joe, - calcCardinalityPosition: zSt, + calcCardinalityPosition: QSt, calcTerminalLabelPosition: Koe, formatUrl: Hoe, getStylesFromArray: cw, generateId: Joe, random: tle, - runFunc: FSt, - entityDecode: YSt, - insertTitle: WSt, + runFunc: zSt, + entityDecode: WSt, + insertTitle: GSt, parseFontSize: Ap, - InitIDGenerator: qSt -}, GSt = /* @__PURE__ */ x(function(t) { + InitIDGenerator: YSt +}, XSt = /* @__PURE__ */ x(function(t) { let e = t; return e = e.replace(/style.*:\S*#.*;/g, function(r) { return r.substring(0, r.length - 1); @@ -41921,33 +41921,33 @@ let Lp = hN(); function ile(t) { Lp = t; } -const sle = /[&<>"']/, XSt = new RegExp(sle.source, "g"), ale = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, HSt = new RegExp(ale.source, "g"), ZSt = { +const sle = /[&<>"']/, HSt = new RegExp(sle.source, "g"), ale = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, ZSt = new RegExp(ale.source, "g"), jSt = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" -}, Hq = (t) => ZSt[t]; +}, Hq = (t) => jSt[t]; function Oo(t, e) { if (e) { if (sle.test(t)) - return t.replace(XSt, Hq); + return t.replace(HSt, Hq); } else if (ale.test(t)) - return t.replace(HSt, Hq); + return t.replace(ZSt, Hq); return t; } -const jSt = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig; -function KSt(t) { - return t.replace(jSt, (e, r) => (r = r.toLowerCase(), r === "colon" ? ":" : r.charAt(0) === "#" ? r.charAt(1) === "x" ? String.fromCharCode(parseInt(r.substring(2), 16)) : String.fromCharCode(+r.substring(1)) : "")); +const KSt = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig; +function JSt(t) { + return t.replace(KSt, (e, r) => (r = r.toLowerCase(), r === "colon" ? ":" : r.charAt(0) === "#" ? r.charAt(1) === "x" ? String.fromCharCode(parseInt(r.substring(2), 16)) : String.fromCharCode(+r.substring(1)) : "")); } -const JSt = /(^|[^\[])\^/g; +const eTt = /(^|[^\[])\^/g; function fn(t, e) { let r = typeof t == "string" ? t : t.source; e = e || ""; const n = { replace: (i, s) => { let a = typeof s == "string" ? s : s.source; - return a = a.replace(JSt, "$1"), r = r.replace(i, a), n; + return a = a.replace(eTt, "$1"), r = r.replace(i, a), n; }, getRegex: () => new RegExp(r, e) }; @@ -41996,7 +41996,7 @@ function $v(t, e, r) { } return t.slice(0, n - i); } -function eTt(t, e) { +function tTt(t, e) { if (t.indexOf(e[1]) === -1) return -1; let r = 0; @@ -42031,7 +42031,7 @@ function Kq(t, e, r, n) { text: Oo(a) }; } -function tTt(t, e) { +function rTt(t, e) { const r = t.match(/^(\s+)(?:```)/); if (r === null) return e; @@ -42048,9 +42048,9 @@ function tTt(t, e) { } class F3 { constructor(e) { - br(this, "options"); - br(this, "rules"); - br(this, "lexer"); + fr(this, "options"); + fr(this, "rules"); + fr(this, "lexer"); this.options = e || Lp; } space(e) { @@ -42077,7 +42077,7 @@ class F3 { fences(e) { const r = this.rules.block.fences.exec(e); if (r) { - const n = r[0], i = tTt(n, r[3] || ""); + const n = r[0], i = rTt(n, r[3] || ""); return { type: "code", raw: n, @@ -42356,7 +42356,7 @@ ${f}` : f; if ((n.length - a.length) % 2 === 0) return; } else { - const a = eTt(r[2], "()"); + const a = tTt(r[2], "()"); if (a > -1) { const l = (r[0].indexOf("!") === 0 ? 5 : 4) + r[1].length + a; r[2] = r[2].substring(0, a), r[0] = r[0].substring(0, l).trim(), r[3] = ""; @@ -42520,25 +42520,25 @@ ${f}` : f; } } } -const rTt = /^(?: *(?:\n|$))+/, nTt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, iTt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, uw = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, sTt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ole = /(?:[*+-]|\d{1,9}[.)])/, lle = fn(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, ole).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), fN = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, aTt = /^[^\n]+/, dN = /(?!\s*\])(?:\\.|[^\[\]\\])+/, oTt = fn(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", dN).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), lTt = fn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ole).getRegex(), FC = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", pN = /|$))/, cTt = fn("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", pN).replace("tag", FC).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), cle = fn(fN).replace("hr", uw).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", FC).getRegex(), uTt = fn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", cle).getRegex(), gN = { - blockquote: uTt, - code: nTt, - def: oTt, - fences: iTt, - heading: sTt, +const nTt = /^(?: *(?:\n|$))+/, iTt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, sTt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, uw = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, aTt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ole = /(?:[*+-]|\d{1,9}[.)])/, lle = fn(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, ole).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), fN = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, oTt = /^[^\n]+/, dN = /(?!\s*\])(?:\\.|[^\[\]\\])+/, lTt = fn(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", dN).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), cTt = fn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ole).getRegex(), FC = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", pN = /|$))/, uTt = fn("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", pN).replace("tag", FC).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), cle = fn(fN).replace("hr", uw).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", FC).getRegex(), hTt = fn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", cle).getRegex(), gN = { + blockquote: hTt, + code: iTt, + def: lTt, + fences: sTt, + heading: aTt, hr: uw, - html: cTt, + html: uTt, lheading: lle, - list: lTt, - newline: rTt, + list: cTt, + newline: nTt, paragraph: cle, table: jy, - text: aTt -}, Jq = fn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", uw).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", FC).getRegex(), hTt = { + text: oTt +}, Jq = fn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", uw).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", FC).getRegex(), fTt = { ...gN, table: Jq, paragraph: fn(fN).replace("hr", uw).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Jq).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", ")|<(?:script|pre|style|textarea|!--)").replace("tag", FC).getRegex() -}, fTt = { +}, dTt = { ...gN, html: fn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", pN).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, @@ -42547,27 +42547,27 @@ const rTt = /^(?: *(?:\n|$))+/, nTt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, iT lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: fn(fN).replace("hr", uw).replace("heading", ` *#{1,6} *[^ ]`).replace("lheading", lle).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() -}, ule = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, dTt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, hle = /^( {2,}|\\)\n(?!\s*$)/, pTt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, vTt = fn(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, hw).getRegex(), yTt = fn("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, hw).getRegex(), bTt = fn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, hw).getRegex(), xTt = fn(/\\([punct])/, "gu").replace(/punct/g, hw).getRegex(), wTt = fn(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), OTt = fn(pN).replace("(?:-->|$)", "-->").getRegex(), kTt = fn("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", OTt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), z3 = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, STt = fn(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", z3).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), fle = fn(/^!?\[(label)\]\[(ref)\]/).replace("label", z3).replace("ref", dN).getRegex(), dle = fn(/^!?\[(ref)\](?:\[\])?/).replace("ref", dN).getRegex(), TTt = fn("reflink|nolink(?!\\()", "g").replace("reflink", fle).replace("nolink", dle).getRegex(), mN = { +}, ule = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, pTt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, hle = /^( {2,}|\\)\n(?!\s*$)/, gTt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g, yTt = fn(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, hw).getRegex(), bTt = fn("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, hw).getRegex(), xTt = fn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, hw).getRegex(), wTt = fn(/\\([punct])/, "gu").replace(/punct/g, hw).getRegex(), OTt = fn(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), kTt = fn(pN).replace("(?:-->|$)", "-->").getRegex(), STt = fn("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment", kTt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), z3 = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, TTt = fn(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", z3).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), fle = fn(/^!?\[(label)\]\[(ref)\]/).replace("label", z3).replace("ref", dN).getRegex(), dle = fn(/^!?\[(ref)\](?:\[\])?/).replace("ref", dN).getRegex(), CTt = fn("reflink|nolink(?!\\()", "g").replace("reflink", fle).replace("nolink", dle).getRegex(), mN = { _backpedal: jy, - anyPunctuation: xTt, - autolink: wTt, - blockSkip: mTt, + anyPunctuation: wTt, + autolink: OTt, + blockSkip: vTt, br: hle, - code: dTt, + code: pTt, del: jy, - emStrongLDelim: vTt, - emStrongRDelimAst: yTt, - emStrongRDelimUnd: bTt, + emStrongLDelim: yTt, + emStrongRDelimAst: bTt, + emStrongRDelimUnd: xTt, escape: ule, - link: STt, + link: TTt, nolink: dle, - punctuation: gTt, + punctuation: mTt, reflink: fle, - reflinkSearch: TTt, - tag: kTt, - text: pTt, + reflinkSearch: CTt, + tag: STt, + text: gTt, url: jy -}, CTt = { +}, ETt = { ...mN, link: fn(/^!?\[(label)\]\((.*?)\)/).replace("label", z3).getRegex(), reflink: fn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", z3).getRegex() @@ -42578,27 +42578,27 @@ const rTt = /^(?: *(?:\n|$))+/, nTt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, iT _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\ 2 && d.push(w); + LTt(w[0], w[w.length - 1]) || w.push([w[0][0], w[0][1]]), w.length > 2 && d.push(w); } const p = []; h = Math.max(h, 0.1); @@ -43752,7 +43752,7 @@ function fw(t, e) { let i = e.hachureGap; i < 0 && (i = 4 * e.strokeWidth), i = Math.round(Math.max(i, 0.1)); let s = 1; - return e.roughness >= 1 && (((r = e.randomizer) === null || r === void 0 ? void 0 : r.next()) || Math.random()) > 0.7 && (s = i), LTt(t, i, n, s || 1); + return e.roughness >= 1 && (((r = e.randomizer) === null || r === void 0 ? void 0 : r.next()) || Math.random()) > 0.7 && (s = i), RTt(t, i, n, s || 1); } class xN { constructor(e) { @@ -43776,7 +43776,7 @@ function UC(t) { const e = t[0], r = t[1]; return Math.sqrt(Math.pow(e[0] - r[0], 2) + Math.pow(e[1] - r[1], 2)); } -class RTt extends xN { +class MTt extends xN { fillPolygons(e, r) { let n = r.hachureGap; n < 0 && (n = 4 * r.strokeWidth), n = Math.max(n, 0.1); @@ -43786,13 +43786,13 @@ class RTt extends xN { return { type: "fillSketch", ops: this.renderLines(a, r) }; } } -class MTt extends xN { +class DTt extends xN { fillPolygons(e, r) { const n = this._fillPolygons(e, r), i = Object.assign({}, r, { hachureAngle: r.hachureAngle + 90 }), s = this._fillPolygons(e, i); return n.ops = n.ops.concat(s.ops), n; } } -class DTt { +class PTt { constructor(e) { this.helper = e; } @@ -43817,7 +43817,7 @@ class DTt { return { type: "fillSketch", ops: n }; } } -class PTt { +class NTt { constructor(e) { this.helper = e; } @@ -43839,7 +43839,7 @@ class PTt { }), s; } } -class NTt { +class ITt { constructor(e) { this.helper = e; } @@ -43862,7 +43862,7 @@ class NTt { } } const za = {}; -class ITt { +class $Tt { constructor(e) { this.seed = e; } @@ -43870,7 +43870,7 @@ class ITt { return this.seed ? (2 ** 31 - 1 & (this.seed = Math.imul(48271, this.seed))) / 2 ** 31 : Math.random(); } } -const $Tt = 0, sA = 1, eY = 2, jO = { A: 7, a: 7, C: 6, c: 6, H: 1, h: 1, L: 2, l: 2, M: 2, m: 2, Q: 4, q: 4, S: 4, s: 4, T: 2, t: 2, V: 1, v: 1, Z: 0, z: 0 }; +const BTt = 0, sA = 1, eY = 2, jO = { A: 7, a: 7, C: 6, c: 6, H: 1, h: 1, L: 2, l: 2, M: 2, m: 2, Q: 4, q: 4, S: 4, s: 4, T: 2, t: 2, V: 1, v: 1, Z: 0, z: 0 }; function aA(t, e) { return t.type === e; } @@ -43881,7 +43881,7 @@ function wN(t) { if (a.match(/^([ \t\r\n,]+)/)) a = a.substr(RegExp.$1.length); else if (a.match(/^([aAcChHlLmMqQsStTvVzZ])/)) - o[o.length] = { type: $Tt, text: RegExp.$1 }, a = a.substr(RegExp.$1.length); + o[o.length] = { type: BTt, text: RegExp.$1 }, a = a.substr(RegExp.$1.length); else { if (!a.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/)) return []; @@ -44075,7 +44075,7 @@ function Ale(t, e, r, n, i, s, a, o, l, u) { return $; } } -const BTt = { randOffset: function(t, e) { +const FTt = { randOffset: function(t, e) { return cr(t, e); }, randOffsetWithRange: function(t, e, r) { return V3(t, e, r); @@ -44083,22 +44083,22 @@ const BTt = { randOffset: function(t, e) { const s = Rle(r, n, i); return j9(t, e, i, s).opset; }, doubleLineOps: function(t, e, r, n, i) { - return Hf(t, e, r, n, i, !0); + return Zf(t, e, r, n, i, !0); } }; function Lle(t, e, r, n, i) { - return { type: "path", ops: Hf(t, e, r, n, i) }; + return { type: "path", ops: Zf(t, e, r, n, i) }; } function L5(t, e, r) { const n = (t || []).length; if (n > 2) { const i = []; for (let s = 0; s < n - 1; s++) - i.push(...Hf(t[s][0], t[s][1], t[s + 1][0], t[s + 1][1], r)); - return e && i.push(...Hf(t[n - 1][0], t[n - 1][1], t[0][0], t[0][1], r)), { type: "path", ops: i }; + i.push(...Zf(t[s][0], t[s][1], t[s + 1][0], t[s + 1][1], r)); + return e && i.push(...Zf(t[n - 1][0], t[n - 1][1], t[0][0], t[0][1], r)), { type: "path", ops: i }; } return n === 2 ? Lle(t[0][0], t[0][1], t[1][0], t[1][1], r) : { type: "path", ops: [] }; } -function FTt(t, e, r, n, i) { +function zTt(t, e, r, n, i) { return function(s, a) { return L5(s, !0, a); }([[t, e], [t + r, e], [t + r, e + n], [t, e + n]], i); @@ -44148,7 +44148,7 @@ function rY(t, e, r, n, i, s, a, o, l) { const b = aY(v, u, h, f, d, p, g, 1.5, l); y.push(...b); } - return a && (o ? y.push(...Hf(u, h, u + f * Math.cos(p), h + d * Math.sin(p), l), ...Hf(u, h, u + f * Math.cos(g), h + d * Math.sin(g), l)) : y.push({ op: "lineTo", data: [u, h] }, { op: "lineTo", data: [u + f * Math.cos(p), h + d * Math.sin(p)] })), { type: "path", ops: y }; + return a && (o ? y.push(...Zf(u, h, u + f * Math.cos(p), h + d * Math.sin(p), l), ...Zf(u, h, u + f * Math.cos(g), h + d * Math.sin(g), l)) : y.push({ op: "lineTo", data: [u, h] }, { op: "lineTo", data: [u + f * Math.cos(p), h + d * Math.sin(p)] })), { type: "path", ops: y }; } function nY(t, e) { const r = _le(Ele(wN(t))), n = []; @@ -44159,15 +44159,15 @@ function nY(t, e) { s = [o[0], o[1]], i = [o[0], o[1]]; break; case "L": - n.push(...Hf(s[0], s[1], o[0], o[1], e)), s = [o[0], o[1]]; + n.push(...Zf(s[0], s[1], o[0], o[1], e)), s = [o[0], o[1]]; break; case "C": { const [l, u, h, f, d, p] = o; - n.push(...zTt(l, u, h, f, d, p, s, e)), s = [d, p]; + n.push(...QTt(l, u, h, f, d, p, s, e)), s = [d, p]; break; } case "Z": - n.push(...Hf(s[0], s[1], i[0], i[1], e)), s = [i[0], i[1]]; + n.push(...Zf(s[0], s[1], i[0], i[1], e)), s = [i[0], i[1]]; } return { type: "path", ops: n }; } @@ -44190,32 +44190,32 @@ function Zp(t, e) { if (!za[i]) switch (i) { case "zigzag": - za[i] || (za[i] = new RTt(n)); + za[i] || (za[i] = new MTt(n)); break; case "cross-hatch": - za[i] || (za[i] = new MTt(n)); + za[i] || (za[i] = new DTt(n)); break; case "dots": - za[i] || (za[i] = new DTt(n)); + za[i] || (za[i] = new PTt(n)); break; case "dashed": - za[i] || (za[i] = new PTt(n)); + za[i] || (za[i] = new NTt(n)); break; case "zigzag-line": - za[i] || (za[i] = new NTt(n)); + za[i] || (za[i] = new ITt(n)); break; default: i = "hachure", za[i] || (za[i] = new xN(n)); } return za[i]; - }(e, BTt).fillPolygons(t, e); + }(e, FTt).fillPolygons(t, e); } function iY(t) { const e = Object.assign({}, t); return e.randomizer = void 0, t.seed && (e.seed = t.seed + 1), e; } function Mle(t) { - return t.randomizer || (t.randomizer = new ITt(t.seed || 0)), t.randomizer.next(); + return t.randomizer || (t.randomizer = new $Tt(t.seed || 0)), t.randomizer.next(); } function V3(t, e, r, n = 1) { return r.roughness * n * (Mle(r) * (e - t) + t); @@ -44223,7 +44223,7 @@ function V3(t, e, r, n = 1) { function cr(t, e, r = 1) { return V3(-t, t, e, r); } -function Hf(t, e, r, n, i, s = !1) { +function Zf(t, e, r, n, i, s = !1) { const a = s ? i.disableMultiStrokeFill : i.disableMultiStroke, o = K9(t, e, r, n, i, !0, !1); if (a) return o; @@ -44296,7 +44296,7 @@ function aY(t, e, r, n, i, s, a, o, l) { h.push([cr(o, l) + e + n * Math.cos(f), cr(o, l) + r + i * Math.sin(f)]); return h.push([e + n * Math.cos(a), r + i * Math.sin(a)]), h.push([e + n * Math.cos(a), r + i * Math.sin(a)]), q3(h, null, l); } -function zTt(t, e, r, n, i, s, a, o) { +function QTt(t, e, r, n, i, s, a, o) { const l = [], u = [o.maxRandomnessOffset || 1, (o.maxRandomnessOffset || 1) + 0.3]; let h = [0, 0]; const f = o.disableMultiStroke ? 1 : 2, d = o.preserveVertices; @@ -44331,7 +44331,7 @@ function oY(t, e = 0) { function R5(t, e) { return Math.pow(t[0] - e[0], 2) + Math.pow(t[1] - e[1], 2); } -function QTt(t, e, r) { +function UTt(t, e, r) { const n = R5(e, r); if (n === 0) return R5(t, e); @@ -44363,14 +44363,14 @@ function J9(t, e, r, n) { var s, a; return i; } -function UTt(t, e) { +function VTt(t, e) { return Y3(t, 0, t.length, e); } function Y3(t, e, r, n, i) { const s = i || [], a = t[e], o = t[r - 1]; let l = 0, u = 1; for (let h = e + 1; h < r - 1; ++h) { - const f = QTt(t[h], a, o); + const f = UTt(t[h], a, o); f > l && (l = f, u = h); } return Math.sqrt(l) > n ? (Y3(t, e, u + 1, n, s), Y3(t, u, r, n, s)) : (s.length || s.push(a), s.push(o)), s; @@ -44400,7 +44400,7 @@ class W3 { return this._d("line", [Lle(e, r, n, i, a)], a); } rectangle(e, r, n, i, s) { - const a = this._o(s), o = [], l = FTt(e, r, n, i, a); + const a = this._o(s), o = [], l = zTt(e, r, n, i, a); if (a.fill) { const u = [[e, r], [e + n, r], [e + n, r + i], [e, r + i]]; a.fillStyle === "solid" ? o.push(oA([u], a)) : o.push(Zp([u], a)); @@ -44505,7 +44505,7 @@ class W3 { return g; const O = []; for (const S of g) { - const C = UTt(S, d); + const C = VTt(S, d); C.length && O.push(C); } return O; @@ -44566,7 +44566,7 @@ class W3 { return e.filter((r, n) => n === 0 || r.op !== "move"); } } -class VTt { +class qTt { constructor(e, r) { this.canvas = e, this.ctx = this.canvas.getContext("2d"), this.gen = new W3(r); } @@ -44652,7 +44652,7 @@ class VTt { } } const JO = "http://www.w3.org/2000/svg"; -class qTt { +class YTt { constructor(e, r) { this.svg = e, this.gen = new W3(r); } @@ -44726,10 +44726,10 @@ class qTt { return this.draw(n); } } -var Hn = { canvas: (t, e) => new VTt(t, e), svg: (t, e) => new qTt(t, e), generator: (t) => new W3(t), newSeed: () => W3.newSeed() }, YTt = /* @__PURE__ */ x((t, e) => { +var Hn = { canvas: (t, e) => new qTt(t, e), svg: (t, e) => new YTt(t, e), generator: (t) => new W3(t), newSeed: () => W3.newSeed() }, WTt = /* @__PURE__ */ x((t, e) => { var r = t.x, n = t.y, i = e.x - r, s = e.y - n, a = t.width / 2, o = t.height / 2, l, u; return Math.abs(s) * a > Math.abs(i) * o ? (s < 0 && (o = -o), l = s === 0 ? 0 : o * i / s, u = o) : (i < 0 && (a = -a), l = a, u = i === 0 ? 0 : a * s / i), { x: r + l, y: n + u }; -}, "intersectRect"), dw = YTt; +}, "intersectRect"), dw = WTt; function Dle(t, e) { e && t.attr("style", e); } @@ -44745,7 +44745,7 @@ async function Ple(t) { ), Dle(r, t.labelStyle), r.style("display", "inline-block"), r.style("padding-right", "1px"), r.style("white-space", "nowrap"), r.attr("xmlns", "http://www.w3.org/1999/xhtml"), e.node(); } x(Ple, "addHtmlLabel"); -var WTt = /* @__PURE__ */ x(async (t, e, r, n) => { +var GTt = /* @__PURE__ */ x(async (t, e, r, n) => { let i = t || ""; if (typeof i == "object" && (i = i[0]), Pn(ke().flowchart.htmlLabels)) { i = i.replace(/\\n|\n/g, "
"), H.info("vertexText" + i); @@ -44769,7 +44769,7 @@ var WTt = /* @__PURE__ */ x(async (t, e, r, n) => { } return s; } -}, "createLabel"), d0 = WTt, pw = /* @__PURE__ */ x((t, e, r, n, i) => [ +}, "createLabel"), d0 = GTt, pw = /* @__PURE__ */ x((t, e, r, n, i) => [ "M", t + i, e, @@ -44826,9 +44826,9 @@ var WTt = /* @__PURE__ */ x(async (t, e, r, n) => { seed: e }; }, "solidStateFill"), Nle = /* @__PURE__ */ x((t) => { - const e = GTt([...t.cssCompiledStyles || [], ...t.cssStyles || []]); + const e = XTt([...t.cssCompiledStyles || [], ...t.cssStyles || []]); return { stylesMap: e, stylesArray: [...e] }; -}, "compileStyles"), GTt = /* @__PURE__ */ x((t) => { +}, "compileStyles"), XTt = /* @__PURE__ */ x((t) => { const e = /* @__PURE__ */ new Map(); return t.forEach((r) => { const [n, i] = r.split(":"); @@ -44900,14 +44900,14 @@ var WTt = /* @__PURE__ */ x(async (t, e, r, n) => { return e.offsetX = 0, e.width = C.width, e.height = C.height, e.offsetY = m.height - e.padding / 2, e.intersect = function(T) { return dw(e, T); }, { cluster: f, labelBBox: m }; -}, "rect"), XTt = /* @__PURE__ */ x((t, e) => { +}, "rect"), HTt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "note-cluster").attr("id", e.id), n = r.insert("rect", ":first-child"), i = 0 * e.padding, s = i / 2; n.attr("rx", e.rx).attr("ry", e.ry).attr("x", e.x - e.width / 2 - s).attr("y", e.y - e.height / 2 - s).attr("width", e.width + i).attr("height", e.height + i).attr("fill", "none"); const a = n.node().getBBox(); return e.width = a.width, e.height = a.height, e.intersect = function(o) { return dw(e, o); }, { cluster: r, labelBBox: { width: 0, height: 0 } }; -}, "noteGroup"), HTt = /* @__PURE__ */ x(async (t, e) => { +}, "noteGroup"), ZTt = /* @__PURE__ */ x(async (t, e) => { const r = ke(), { themeVariables: n, handDrawnSeed: i } = r, { altBackground: s, compositeBackground: a, compositeTitleBackground: o, nodeBorder: l } = n, u = t.insert("g").attr("class", e.cssClasses).attr("id", e.id).attr("data-id", e.id).attr("data-look", e.look), h = u.insert("g", ":first-child"), f = u.insert("g").attr("class", "cluster-label"); let d = u.append("rect"); const p = f.node().appendChild(await d0(e.label, e.labelStyle, void 0, !0)); @@ -44951,7 +44951,7 @@ var WTt = /* @__PURE__ */ x(async (t, e, r, n) => { return e.height = A.height, e.offsetX = 0, e.offsetY = g.height - e.padding / 2, e.labelBBox = g, e.intersect = function(E) { return dw(e, E); }, { cluster: u, labelBBox: g }; -}, "roundedWithTitle"), ZTt = /* @__PURE__ */ x((t, e) => { +}, "roundedWithTitle"), jTt = /* @__PURE__ */ x((t, e) => { const r = ke(), { themeVariables: n, handDrawnSeed: i } = r, { nodeBorder: s } = n, a = t.insert("g").attr("class", e.cssClasses).attr("id", e.id).attr("data-look", e.look), o = a.insert("g", ":first-child"), l = 0 * e.padding, u = e.width + l; e.diff = -e.padding; const h = e.height + l, f = e.x - u / 2, d = e.y - h / 2; @@ -44975,20 +44975,20 @@ var WTt = /* @__PURE__ */ x(async (t, e, r, n) => { return e.height = g.height, e.offsetX = 0, e.offsetY = 0, e.intersect = function(m) { return dw(e, m); }, { cluster: a, labelBBox: {} }; -}, "divider"), jTt = Ile, KTt = { +}, "divider"), KTt = Ile, JTt = { rect: Ile, - squareRect: jTt, - roundedWithTitle: HTt, - noteGroup: XTt, - divider: ZTt + squareRect: KTt, + roundedWithTitle: ZTt, + noteGroup: HTt, + divider: jTt }, $le = /* @__PURE__ */ new Map(), Ble = /* @__PURE__ */ x(async (t, e) => { - const r = e.shape || "rect", n = await KTt[r](t, e); + const r = e.shape || "rect", n = await JTt[r](t, e); return $le.set(e.id, n), n; -}, "insertCluster"), JTt = /* @__PURE__ */ x(() => { +}, "insertCluster"), eCt = /* @__PURE__ */ x(() => { $le = /* @__PURE__ */ new Map(); -}, "clear"), eCt = /* @__PURE__ */ x((t, e, r, n, i) => { +}, "clear"), tCt = /* @__PURE__ */ x((t, e, r, n, i) => { e.arrowTypeStart && lY(t, "start", e.arrowTypeStart, r, n, i), e.arrowTypeEnd && lY(t, "end", e.arrowTypeEnd, r, n, i); -}, "addEdgeMarkers"), tCt = { +}, "addEdgeMarkers"), rCt = { arrow_cross: "cross", arrow_point: "point", arrow_barb: "barb", @@ -44999,14 +44999,14 @@ var WTt = /* @__PURE__ */ x(async (t, e, r, n) => { dependency: "dependency", lollipop: "lollipop" }, lY = /* @__PURE__ */ x((t, e, r, n, i, s) => { - const a = tCt[r]; + const a = rCt[r]; if (!a) { H.warn(`Unknown arrow type: ${r}`); return; } const o = e === "start" ? "Start" : "End"; t.attr(`marker-${e}`, `url(${n}#${i}_${s}-${a}${o})`); -}, "addEdgeMarker"), G3 = /* @__PURE__ */ new Map(), ms = /* @__PURE__ */ new Map(), rCt = /* @__PURE__ */ x(() => { +}, "addEdgeMarker"), G3 = /* @__PURE__ */ new Map(), ms = /* @__PURE__ */ new Map(), nCt = /* @__PURE__ */ x(() => { G3.clear(), ms.clear(); }, "clear"), Qv = /* @__PURE__ */ x((t) => t ? t.reduce((r, n) => r + ";" + n, "") : "", "getLabelStyles"), Fle = /* @__PURE__ */ x(async (t, e) => { let r = Pn(ke().flowchart.htmlLabels); @@ -45070,7 +45070,7 @@ var zle = /* @__PURE__ */ x((t, e) => { const s = G3.get(t.id); let a = t.x, o = t.y; if (r) { - const l = gr.calcLabelPosition(r); + const l = mr.calcLabelPosition(r); H.debug( "Moving label " + t.label + " from (", a, @@ -45089,7 +45089,7 @@ var zle = /* @__PURE__ */ x((t, e) => { const s = ms.get(t.id).startLeft; let a = t.x, o = t.y; if (r) { - const l = gr.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_left", r); + const l = mr.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_left", r); a = l.x, o = l.y; } s.attr("transform", `translate(${a}, ${o})`); @@ -45098,7 +45098,7 @@ var zle = /* @__PURE__ */ x((t, e) => { const s = ms.get(t.id).startRight; let a = t.x, o = t.y; if (r) { - const l = gr.calcTerminalLabelPosition( + const l = mr.calcTerminalLabelPosition( t.arrowTypeStart ? 10 : 0, "start_right", r @@ -45111,7 +45111,7 @@ var zle = /* @__PURE__ */ x((t, e) => { const s = ms.get(t.id).endLeft; let a = t.x, o = t.y; if (r) { - const l = gr.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_left", r); + const l = mr.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_left", r); a = l.x, o = l.y; } s.attr("transform", `translate(${a}, ${o})`); @@ -45120,15 +45120,15 @@ var zle = /* @__PURE__ */ x((t, e) => { const s = ms.get(t.id).endRight; let a = t.x, o = t.y; if (r) { - const l = gr.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_right", r); + const l = mr.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_right", r); a = l.x, o = l.y; } s.attr("transform", `translate(${a}, ${o})`); } -}, "positionEdgeLabel"), nCt = /* @__PURE__ */ x((t, e) => { +}, "positionEdgeLabel"), iCt = /* @__PURE__ */ x((t, e) => { const r = t.x, n = t.y, i = Math.abs(e.x - r), s = Math.abs(e.y - n), a = t.width / 2, o = t.height / 2; return i >= a || s >= o; -}, "outsideNode"), iCt = /* @__PURE__ */ x((t, e, r) => { +}, "outsideNode"), sCt = /* @__PURE__ */ x((t, e, r) => { H.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(e)} insidePoint : ${JSON.stringify(r)} @@ -45153,8 +45153,8 @@ var zle = /* @__PURE__ */ x((t, e) => { H.warn("abc88 cutPathAtIntersect", t, e); let r = [], n = t[0], i = !1; return t.forEach((s) => { - if (H.info("abc88 checking point", s, e), !nCt(e, s) && !i) { - const a = iCt(e, n, s); + if (H.info("abc88 checking point", s, e), !iCt(e, s) && !i) { + const a = sCt(e, n, s); H.debug("abc88 inside", s, n, a), H.debug("abc88 intersection", a, e); let o = !1; r.forEach((l) => { @@ -45176,7 +45176,7 @@ x(Qle, "extractCornerPoints"); var uY = /* @__PURE__ */ x(function(t, e, r) { const n = e.x - t.x, i = e.y - t.y, s = Math.sqrt(n * n + i * i), a = r / s; return { x: e.x - a * n, y: e.y - a * i }; -}, "findAdjacentPoint"), sCt = /* @__PURE__ */ x(function(t) { +}, "findAdjacentPoint"), aCt = /* @__PURE__ */ x(function(t) { const { cornerPointPositions: e } = Qle(t), r = []; for (let n = 0; n < t.length; n++) if (e.includes(n)) { @@ -45227,7 +45227,7 @@ var uY = /* @__PURE__ */ x(function(t, e, r) { JSON.stringify(l, null, 2) ), l = cY(l.reverse(), r.get(e.fromCluster).node).reverse(), u = !0); let d = l.filter((A) => !Number.isNaN(A.y)); - d = sCt(d); + d = aCt(d); let p = d[d.length - 1]; if (d.length > 1) { p = d[d.length - 1]; @@ -45236,7 +45236,7 @@ var uY = /* @__PURE__ */ x(function(t, e, r) { } let g = N1; e.curve && (g = e.curve); - const { x: m, y: v } = gae(e), y = Wf().x(m).y(v).curve(g); + const { x: m, y: v } = gae(e), y = Gf().x(m).y(v).curve(g); let b; switch (e.thickness) { case "normal": @@ -45279,42 +45279,42 @@ var uY = /* @__PURE__ */ x(function(t, e, r) { } else w = t.append("path").attr("d", O).attr("id", e.id).attr("class", " " + b + (e.classes ? " " + e.classes : "")).attr("style", S ? S.reduce((A, E) => A + ";" + E, "") : ""); let C = ""; - (ke().flowchart.arrowMarkerAbsolute || ke().state.arrowMarkerAbsolute) && (C = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, C = C.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), H.info("arrowTypeStart", e.arrowTypeStart), H.info("arrowTypeEnd", e.arrowTypeEnd), eCt(w, e, C, a, n); + (ke().flowchart.arrowMarkerAbsolute || ke().state.arrowMarkerAbsolute) && (C = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, C = C.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), H.info("arrowTypeStart", e.arrowTypeStart), H.info("arrowTypeEnd", e.arrowTypeEnd), tCt(w, e, C, a, n); let T = {}; return u && (T.updatedPath = l), T.originalPath = e.points, T; -}, "insertEdge"), aCt = /* @__PURE__ */ x((t, e, r, n) => { +}, "insertEdge"), oCt = /* @__PURE__ */ x((t, e, r, n) => { e.forEach((i) => { - mCt[i](t, r, n); + vCt[i](t, r, n); }); -}, "insertMarkers"), oCt = /* @__PURE__ */ x((t, e, r) => { +}, "insertMarkers"), lCt = /* @__PURE__ */ x((t, e, r) => { H.trace("Making markers for ", r), t.append("defs").append("marker").attr("id", r + "_" + e + "-extensionStart").attr("class", "marker extension " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-extensionEnd").attr("class", "marker extension " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"); -}, "extension"), lCt = /* @__PURE__ */ x((t, e, r) => { +}, "extension"), cCt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-compositionStart").attr("class", "marker composition " + e).attr("refX", 18).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"), t.append("defs").append("marker").attr("id", r + "_" + e + "-compositionEnd").attr("class", "marker composition " + e).attr("refX", 1).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"); -}, "composition"), cCt = /* @__PURE__ */ x((t, e, r) => { +}, "composition"), uCt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-aggregationStart").attr("class", "marker aggregation " + e).attr("refX", 18).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"), t.append("defs").append("marker").attr("id", r + "_" + e + "-aggregationEnd").attr("class", "marker aggregation " + e).attr("refX", 1).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"), uCt = /* @__PURE__ */ x((t, e, r) => { +}, "aggregation"), hCt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-dependencyStart").attr("class", "marker dependency " + e).attr("refX", 6).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"), t.append("defs").append("marker").attr("id", r + "_" + e + "-dependencyEnd").attr("class", "marker dependency " + e).attr("refX", 13).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"); -}, "dependency"), hCt = /* @__PURE__ */ x((t, e, r) => { +}, "dependency"), fCt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-lollipopStart").attr("class", "marker lollipop " + e).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), t.append("defs").append("marker").attr("id", r + "_" + e + "-lollipopEnd").attr("class", "marker lollipop " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6); -}, "lollipop"), fCt = /* @__PURE__ */ x((t, e, r) => { +}, "lollipop"), dCt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-pointEnd").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).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"), t.append("marker").attr("id", r + "_" + e + "-pointStart").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).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"); -}, "point"), dCt = /* @__PURE__ */ x((t, e, r) => { +}, "point"), pCt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-circleEnd").attr("class", "marker " + e).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"), t.append("marker").attr("id", r + "_" + e + "-circleStart").attr("class", "marker " + e).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"); -}, "circle"), pCt = /* @__PURE__ */ x((t, e, r) => { +}, "circle"), gCt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-crossEnd").attr("class", "marker cross " + e).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"), t.append("marker").attr("id", r + "_" + e + "-crossStart").attr("class", "marker cross " + e).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"); -}, "cross"), gCt = /* @__PURE__ */ x((t, e, r) => { +}, "cross"), mCt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z"); -}, "barb"), mCt = { - extension: oCt, - composition: lCt, - aggregation: cCt, - dependency: uCt, - lollipop: hCt, - point: fCt, - circle: dCt, - cross: pCt, - barb: gCt -}, Vle = aCt, ca = /* @__PURE__ */ x(async (t, e, r) => { +}, "barb"), vCt = { + extension: lCt, + composition: cCt, + aggregation: uCt, + dependency: hCt, + lollipop: fCt, + point: dCt, + circle: pCt, + cross: gCt, + barb: mCt +}, Vle = oCt, ca = /* @__PURE__ */ x(async (t, e, r) => { let n; const i = e.useHtmlLabels || Pn(ke().flowchart.htmlLabels); r ? n = r : n = "node default"; @@ -45363,7 +45363,7 @@ function qle(t, e) { return t.intersect(e); } x(qle, "intersectNode"); -var vCt = qle; +var yCt = qle; function Yle(t, e, r, n) { var i = t.x, s = t.y, a = i - n.x, o = s - n.y, l = Math.sqrt(e * e * o * o + r * r * a * a), u = Math.abs(e * r * a / l); n.x < i && (u = -u); @@ -45376,7 +45376,7 @@ function Gle(t, e, r) { return Wle(t, e, e, r); } x(Gle, "intersectCircle"); -var yCt = Gle; +var bCt = Gle; function Xle(t, e, r, n) { var i, s, a, o, l, u, h, f, d, p, g, m, v, y, b; if (i = e.y - t.y, a = t.x - e.x, l = e.x * t.y - t.x * e.y, d = i * r.x + a * r.y + l, p = i * n.x + a * n.y + l, !(d !== 0 && p !== 0 && eL(d, p)) && (s = n.y - r.y, o = r.x - n.x, u = n.x * r.y - r.x * n.y, h = s * t.x + o * t.y + u, f = s * e.x + o * e.y + u, !(h !== 0 && f !== 0 && eL(h, f)) && (g = i * o - s * a, g !== 0))) @@ -45387,7 +45387,7 @@ function eL(t, e) { return t * e > 0; } x(eL, "sameSign"); -var bCt = Xle; +var xCt = Xle; function Hle(t, e, r) { let n = t.x, i = t.y, s = [], a = Number.POSITIVE_INFINITY, o = Number.POSITIVE_INFINITY; typeof e.forEach == "function" ? e.forEach(function(h) { @@ -45395,7 +45395,7 @@ function Hle(t, e, r) { }) : (a = Math.min(a, e.x), o = Math.min(o, e.y)); let l = n - t.width / 2 - a, u = i - t.height / 2 - o; for (let h = 0; h < e.length; h++) { - let f = e[h], d = e[h < e.length - 1 ? h + 1 : 0], p = bCt( + let f = e[h], d = e[h < e.length - 1 ? h + 1 : 0], p = xCt( t, r, { x: l + f.x, y: u + f.y }, @@ -45409,11 +45409,11 @@ function Hle(t, e, r) { }), s[0]) : t; } x(Hle, "intersectPolygon"); -var xCt = Hle, xi = { - node: vCt, - circle: yCt, +var wCt = Hle, xi = { + node: yCt, + circle: bCt, ellipse: Wle, - polygon: xCt, + polygon: wCt, rect: dw }, ON = /* @__PURE__ */ x(async (t, e, r) => { const { labelStyles: n, nodeStyles: i } = la(e); @@ -45429,11 +45429,11 @@ var xCt = Hle, xi = { return bi(e, f), e.intersect = function(m) { return xi.rect(e, m); }, s; -}, "drawRect"), wCt = /* @__PURE__ */ x(async (t, e) => ON(t, e, { +}, "drawRect"), OCt = /* @__PURE__ */ x(async (t, e) => ON(t, e, { rx: 5, ry: 5, classes: "flowchart-node" -}), "state"), OCt = /* @__PURE__ */ x(async (t, e) => { +}), "state"), kCt = /* @__PURE__ */ x(async (t, e) => { const r = { rx: 5, ry: 5, @@ -45442,7 +45442,7 @@ var xCt = Hle, xi = { labelPaddingY: ((e == null ? void 0 : e.padding) || 0) * 1 }; return ON(t, e, r); -}, "roundedRect"), kCt = /* @__PURE__ */ x(async (t, e) => { +}, "roundedRect"), SCt = /* @__PURE__ */ x(async (t, e) => { const r = { rx: 0, ry: 0, @@ -45451,7 +45451,7 @@ var xCt = Hle, xi = { labelPaddingY: ((e == null ? void 0 : e.padding) || 0) * 1 }; return ON(t, e, r); -}, "squareRect"), SCt = /* @__PURE__ */ x((t, e) => { +}, "squareRect"), TCt = /* @__PURE__ */ x((t, e) => { const { themeVariables: r } = ke(), { lineColor: n } = r, i = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id); let s; if (e.look === "handDrawn") { @@ -45462,7 +45462,7 @@ var xCt = Hle, xi = { return s.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), bi(e, s), e.intersect = function(a) { return xi.circle(e, 7, a); }, i; -}, "stateStart"), TCt = /* @__PURE__ */ x((t, e) => { +}, "stateStart"), CCt = /* @__PURE__ */ x((t, e) => { const { themeVariables: r } = ke(), { lineColor: n } = r, i = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id); let s, a; if (e.look === "handDrawn") { @@ -45489,7 +45489,7 @@ var xCt = Hle, xi = { return e.height && (f = e.height), e.width && (d = e.width), e.padding && (p = e.padding), e.height = f + p / 2, e.width = d + p / 2, e.intersect = function(g) { return xi.rect(e, g); }, s; -}, "forkJoin"), CCt = /* @__PURE__ */ x((t, e) => { +}, "forkJoin"), ECt = /* @__PURE__ */ x((t, e) => { const { labelStyles: r, nodeStyles: n } = la(e); e.labelStyle = r; const { themeVariables: i } = ke(), { lineColor: s } = i, a = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), o = 28, l = [ @@ -45514,7 +45514,7 @@ var xCt = Hle, xi = { return u.attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28).attr("style", n), e.width = 28, e.height = 28, e.intersect = function(h) { return xi.circle(e, 14, h); }, a; -}, "choice"), ECt = /* @__PURE__ */ x(async (t, e) => { +}, "choice"), _Ct = /* @__PURE__ */ x(async (t, e) => { const { themeVariables: r, handDrawnSeed: n } = ke(), { noteBorderColor: i, noteBkgColor: s } = r; e.useHtmlLabels || (e.centerLabel = !0); const { shapeSvg: o, bbox: l } = await ca(t, e, "node " + e.cssClasses); @@ -45536,7 +45536,7 @@ var xCt = Hle, xi = { return bi(e, h), e.intersect = function(m) { return xi.rect(e, m); }, o; -}, "note"), _Ct = /* @__PURE__ */ x(async (t, e) => { +}, "note"), ACt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = la(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await ca(t, e, No(e)), a = s.height + e.padding, o = s.width + a / 4 + e.padding; @@ -45550,7 +45550,7 @@ var xCt = Hle, xi = { return bi(e, l), e.intersect = function(h) { return xi.rect(e, h); }, i; -}, "stadium"), ACt = /* @__PURE__ */ x(async (t, e) => { +}, "stadium"), LCt = /* @__PURE__ */ x(async (t, e) => { var A, E; const { labelStyles: r, nodeStyles: n } = la(e); e.labelStyle = r; @@ -45603,7 +45603,7 @@ var xCt = Hle, xi = { return xi.rect(e, R); }, s; }, "rectWithTitle"); -function $h(t, e, r, n) { +function Bh(t, e, r, n) { return t.insert("polygon", ":first-child").attr( "points", n.map(function(i) { @@ -45611,8 +45611,8 @@ function $h(t, e, r, n) { }).join(" ") ).attr("class", "label-container").attr("transform", "translate(" + -e / 2 + "," + r / 2 + ")"); } -x($h, "insertPolygonShape"); -var LCt = /* @__PURE__ */ x(async (t, e) => { +x(Bh, "insertPolygonShape"); +var RCt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = la(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await ca(t, e, No(e)), a = ((e == null ? void 0 : e.padding) || 0) / 2, o = s.width + e.padding, l = s.height + e.padding, u = -s.width / 2 - a, h = -s.height / 2 - a, f = [ @@ -45633,37 +45633,37 @@ var LCt = /* @__PURE__ */ x(async (t, e) => { const y = i.insert(() => g, ":first-child"), { cssStyles: b } = e; y.attr("class", "basic label-container").attr("style", b), bi(e, y); } else { - const d = $h(i, o, l, f); + const d = Bh(i, o, l, f); n && d.attr("style", n), bi(e, d); } return e.intersect = function(d) { return xi.polygon(e, f, d); }, i; -}, "subroutine"), RCt = /* @__PURE__ */ x((t, e, r, n, i, s) => [ +}, "subroutine"), MCt = /* @__PURE__ */ x((t, e, r, n, i, s) => [ `M${t},${e + s}`, `a${i},${s} 0,0,0 ${r},0`, `a${i},${s} 0,0,0 ${-r},0`, `l0,${n}`, `a${i},${s} 0,0,0 ${r},0`, `l0,${-n}` -].join(" "), "createCylinderPathD"), MCt = /* @__PURE__ */ x((t, e, r, n, i, s) => [ +].join(" "), "createCylinderPathD"), DCt = /* @__PURE__ */ x((t, e, r, n, i, s) => [ `M${t},${e + s}`, `M${t + r},${e + s}`, `a${i},${s} 0,0,0 ${-r},0`, `l0,${n}`, `a${i},${s} 0,0,0 ${r},0`, `l0,${-n}` -].join(" "), "createOuterCylinderPathD"), DCt = /* @__PURE__ */ x((t, e, r, n, i, s) => [`M${t - r / 2},${-n / 2}`, `a${i},${s} 0,0,0 ${r},0`].join(" "), "createInnerCylinderPathD"), PCt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createOuterCylinderPathD"), PCt = /* @__PURE__ */ x((t, e, r, n, i, s) => [`M${t - r / 2},${-n / 2}`, `a${i},${s} 0,0,0 ${r},0`].join(" "), "createInnerCylinderPathD"), NCt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = la(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await ca(t, e, No(e)), a = s.width + e.padding, o = a / 2, l = o / (2.5 + a / 50), u = s.height + l + e.padding; let h; const { cssStyles: f } = e; if (e.look === "handDrawn") { - const d = Hn.svg(i), p = MCt(0, 0, a, u, o, l), g = DCt(0, l, a, u, o, l), m = d.path(p, Rs(e, {})), v = d.path(g, Rs(e, { fill: "none" })); + const d = Hn.svg(i), p = DCt(0, 0, a, u, o, l), g = PCt(0, l, a, u, o, l), m = d.path(p, Rs(e, {})), v = d.path(g, Rs(e, { fill: "none" })); h = i.insert(() => v, ":first-child"), h = i.insert(() => m, ":first-child"), h.attr("class", "basic label-container"), f && h.attr("style", f); } else { - const d = RCt(0, 0, a, u, o, l); + const d = MCt(0, 0, a, u, o, l); h = i.insert("path", ":first-child").attr("d", d).attr("class", "basic label-container").attr("style", f).attr("style", n); } return h.attr("label-offset-y", l), h.attr("transform", `translate(${-a / 2}, ${-(u / 2 + l)})`), bi(e, h), e.intersect = function(d) { @@ -45675,7 +45675,7 @@ var LCt = /* @__PURE__ */ x(async (t, e) => { } return p; }, i; -}, "cylinder"), NCt = /* @__PURE__ */ x(async (t, e) => { +}, "cylinder"), ICt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = la(e); e.labelStyle = r; const { shapeSvg: i, bbox: s, halfPadding: a } = await ca(t, e, No(e)), o = s.width / 2 + a; @@ -45689,7 +45689,7 @@ var LCt = /* @__PURE__ */ x(async (t, e) => { return bi(e, l), e.intersect = function(h) { return H.info("Circle intersect", e, o, h), xi.circle(e, o, h); }, i; -}, "circle"), ICt = /* @__PURE__ */ x(async (t, e) => { +}, "circle"), $Ct = /* @__PURE__ */ x(async (t, e) => { var d, p; const { labelStyles: r, nodeStyles: n } = la(e); e.labelStyle = r; @@ -45707,14 +45707,14 @@ var LCt = /* @__PURE__ */ x(async (t, e) => { return bi(e, h), e.intersect = function(g) { return H.info("DoubleCircle intersect", e, l, g), xi.circle(e, l, g); }, i; -}, "doublecircle"), $Ct = /* @__PURE__ */ x((t, e, r, n) => [ +}, "doublecircle"), BCt = /* @__PURE__ */ x((t, e, r, n) => [ `M${t - n / 2},${e}`, `L${t + r},${e}`, `L${t + r},${e - n}`, `L${t - n / 2},${e - n}`, `L${t},${e - n / 2}`, "Z" -].join(" "), "createPolygonPathD"), BCt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createPolygonPathD"), FCt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = la(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await ca(t, e, No(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45727,20 +45727,20 @@ var LCt = /* @__PURE__ */ x(async (t, e) => { let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Hn.svg(i), d = Rs(e, {}), p = $Ct(0, 0, a, o), g = f.path(p, d); + const f = Hn.svg(i), d = Rs(e, {}), p = BCt(0, 0, a, o), g = f.path(p, d); u = i.insert(() => g, ":first-child").attr("transform", `translate(${-a / 2}, ${o / 2})`), h && u.attr("style", h); } else - u = $h(i, a, o, l); + u = Bh(i, a, o, l); return n && u.attr("style", n), e.width = a + o, e.height = o, bi(e, u), e.intersect = function(f) { return xi.polygon(e, l, f); }, i; -}, "rect_left_inv_arrow"), FCt = /* @__PURE__ */ x((t, e, r) => [ +}, "rect_left_inv_arrow"), zCt = /* @__PURE__ */ x((t, e, r) => [ `M${t + r / 2},${e}`, `L${t + r},${e - r / 2}`, `L${t + r / 2},${e - r}`, `L${t},${e - r / 2}`, "Z" -].join(" "), "createDecisionBoxPathD"), zCt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createDecisionBoxPathD"), QCt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = la(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await ca(t, e, No(e)), a = s.width + e.padding, o = s.height + e.padding, l = a + o, u = [ @@ -45752,10 +45752,10 @@ var LCt = /* @__PURE__ */ x(async (t, e) => { let h; const { cssStyles: f } = e; if (e.look === "handDrawn") { - const d = Hn.svg(i), p = Rs(e, {}), g = FCt(0, 0, l), m = d.path(g, p); + const d = Hn.svg(i), p = Rs(e, {}), g = zCt(0, 0, l), m = d.path(g, p); h = i.insert(() => m, ":first-child").attr("transform", `translate(${-l / 2}, ${l / 2})`), f && h.attr("style", f); } else - h = $h(i, l, l, u); + h = Bh(i, l, l, u); return n && h.attr("style", n), bi(e, h), e.intersect = function(d) { return H.debug( `APA12 Intersect called SPLIT @@ -45770,7 +45770,7 @@ res:`, xi.polygon(e, u, d) ), xi.polygon(e, u, d); }, i; -}, "question"), QCt = /* @__PURE__ */ x((t, e, r, n, i) => [ +}, "question"), UCt = /* @__PURE__ */ x((t, e, r, n, i) => [ `M${t + i},${e}`, `L${t + r - i},${e}`, `L${t + r},${e - n / 2}`, @@ -45778,7 +45778,7 @@ res:`, `L${t + i},${e - n}`, `L${t},${e - n / 2}`, "Z" -].join(" "), "createHexagonPathD"), UCt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createHexagonPathD"), VCt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = la(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await ca(t, e, No(e)), a = 4, o = s.height + e.padding, l = o / a, u = s.width + 2 * l + e.padding, h = [ @@ -45792,20 +45792,20 @@ res:`, let f; const { cssStyles: d } = e; if (e.look === "handDrawn") { - const p = Hn.svg(i), g = Rs(e, {}), m = QCt(0, 0, u, o, l), v = p.path(m, g); + const p = Hn.svg(i), g = Rs(e, {}), m = UCt(0, 0, u, o, l), v = p.path(m, g); f = i.insert(() => v, ":first-child").attr("transform", `translate(${-u / 2}, ${o / 2})`), d && f.attr("style", d); } else - f = $h(i, u, o, h); + f = Bh(i, u, o, h); return n && f.attr("style", n), e.width = u, e.height = o, bi(e, f), e.intersect = function(p) { return xi.polygon(e, h, p); }, i; -}, "hexagon"), VCt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "hexagon"), qCt = /* @__PURE__ */ x((t, e, r, n) => [ `M${t - 2 * n / 6},${e}`, `L${t + r - n / 6},${e}`, `L${t + r + 2 * n / 6},${e - n}`, `L${t + n / 6},${e - n}`, "Z" -].join(" "), "createLeanRightPathD"), qCt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createLeanRightPathD"), YCt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = la(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await ca(t, e, No(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45817,20 +45817,20 @@ res:`, let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Hn.svg(i), d = Rs(e, {}), p = VCt(0, 0, a, o), g = f.path(p, d); + const f = Hn.svg(i), d = Rs(e, {}), p = qCt(0, 0, a, o), g = f.path(p, d); u = i.insert(() => g, ":first-child").attr("transform", `translate(${-a / 2}, ${o / 2})`), h && u.attr("style", h); } else - u = $h(i, a, o, l); + u = Bh(i, a, o, l); return n && u.attr("style", n), e.width = a, e.height = o, bi(e, u), e.intersect = function(f) { return xi.polygon(e, l, f); }, i; -}, "lean_right"), YCt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "lean_right"), WCt = /* @__PURE__ */ x((t, e, r, n) => [ `M${t + 2 * n / 6},${e}`, `L${t + r + n / 6},${e}`, `L${t + r - 2 * n / 6},${e - n}`, `L${t - n / 6},${e - n}`, "Z" -].join(" "), "createLeanLeftPathD"), WCt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createLeanLeftPathD"), GCt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = la(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await ca(t, e, No(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45842,20 +45842,20 @@ res:`, let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Hn.svg(i), d = Rs(e, {}), p = YCt(0, 0, a, o), g = f.path(p, d); + const f = Hn.svg(i), d = Rs(e, {}), p = WCt(0, 0, a, o), g = f.path(p, d); u = i.insert(() => g, ":first-child").attr("transform", `translate(${-a / 2}, ${o / 2})`), h && u.attr("style", h); } else - u = $h(i, a, o, l); + u = Bh(i, a, o, l); return n && u.attr("style", n), e.width = a, e.height = o, bi(e, u), e.intersect = function(f) { return xi.polygon(e, l, f); }, i; -}, "lean_left"), GCt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "lean_left"), XCt = /* @__PURE__ */ x((t, e, r, n) => [ `M${t - 2 * n / 6},${e}`, `L${t + r + 2 * n / 6},${e}`, `L${t + r - n / 6},${e - n}`, `L${t + n / 6},${e - n}`, "Z" -].join(" "), "createTrapezoidPathD"), XCt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createTrapezoidPathD"), HCt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = la(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await ca(t, e, No(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45867,20 +45867,20 @@ res:`, let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Hn.svg(i), d = Rs(e, {}), p = GCt(0, 0, a, o), g = f.path(p, d); + const f = Hn.svg(i), d = Rs(e, {}), p = XCt(0, 0, a, o), g = f.path(p, d); u = i.insert(() => g, ":first-child").attr("transform", `translate(${-a / 2}, ${o / 2})`), h && u.attr("style", h); } else - u = $h(i, a, o, l); + u = Bh(i, a, o, l); return n && u.attr("style", n), e.width = a, e.height = o, bi(e, u), e.intersect = function(f) { return xi.polygon(e, l, f); }, i; -}, "trapezoid"), HCt = /* @__PURE__ */ x((t, e, r, n) => [ +}, "trapezoid"), ZCt = /* @__PURE__ */ x((t, e, r, n) => [ `M${t + n / 6},${e}`, `L${t + r - n / 6},${e}`, `L${t + r + 2 * n / 6},${e - n}`, `L${t - 2 * n / 6},${e - n}`, "Z" -].join(" "), "createInvertedTrapezoidPathD"), ZCt = /* @__PURE__ */ x(async (t, e) => { +].join(" "), "createInvertedTrapezoidPathD"), jCt = /* @__PURE__ */ x(async (t, e) => { const { labelStyles: r, nodeStyles: n } = la(e); e.labelStyle = r; const { shapeSvg: i, bbox: s } = await ca(t, e, No(e)), a = s.width + e.padding, o = s.height + e.padding, l = [ @@ -45892,42 +45892,42 @@ res:`, let u; const { cssStyles: h } = e; if (e.look === "handDrawn") { - const f = Hn.svg(i), d = Rs(e, {}), p = HCt(0, 0, a, o), g = f.path(p, d); + const f = Hn.svg(i), d = Rs(e, {}), p = ZCt(0, 0, a, o), g = f.path(p, d); u = i.insert(() => g, ":first-child").attr("transform", `translate(${-a / 2}, ${o / 2})`), h && u.attr("style", h); } else - u = $h(i, a, o, l); + u = Bh(i, a, o, l); return n && u.attr("style", n), e.width = a, e.height = o, bi(e, u), e.intersect = function(f) { return xi.polygon(e, l, f); }, i; -}, "inv_trapezoid"), jCt = /* @__PURE__ */ x(async (t, e) => { +}, "inv_trapezoid"), KCt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r } = await ca(t, e, "label"), n = r.insert("rect", ":first-child"), i = 0.1, s = 0.1; return n.attr("width", i).attr("height", s), r.attr("class", "label edgeLabel"), bi(e, n), e.intersect = function(a) { return xi.rect(e, a); }, r; }, "labelRect"), fY = { - state: wCt, - stateStart: SCt, - stateEnd: TCt, + state: OCt, + stateStart: TCt, + stateEnd: CCt, fork: hY, join: hY, - choice: CCt, - note: ECt, - roundedRect: OCt, - rectWithTitle: ACt, - squareRect: kCt, - stadium: _Ct, - subroutine: LCt, - cylinder: PCt, - circle: NCt, - doublecircle: ICt, - odd: BCt, - diamond: zCt, - hexagon: UCt, - lean_right: qCt, - lean_left: WCt, - trapezoid: XCt, - inv_trapezoid: ZCt, - labelRect: jCt + choice: ECt, + note: _Ct, + roundedRect: kCt, + rectWithTitle: LCt, + squareRect: SCt, + stadium: ACt, + subroutine: RCt, + cylinder: NCt, + circle: ICt, + doublecircle: $Ct, + odd: FCt, + diamond: QCt, + hexagon: VCt, + lean_right: YCt, + lean_left: GCt, + trapezoid: HCt, + inv_trapezoid: jCt, + labelRect: KCt }, qg = /* @__PURE__ */ new Map(), Zle = /* @__PURE__ */ x(async (t, e, r) => { let n, i; if (e.shape === "rect" && (e.rx && e.ry ? e.shape = "roundedRect" : e.shape = "squareRect"), e.link) { @@ -45936,9 +45936,9 @@ res:`, } else i = await fY[e.shape](t, e, r), n = i; return e.tooltip && i.attr("title", e.tooltip), qg.set(e.id, n), e.haveCallback && qg.get(e.id).attr("class", qg.get(e.id).attr("class") + " clickable"), n; -}, "insertNode"), KCt = /* @__PURE__ */ x((t, e) => { +}, "insertNode"), JCt = /* @__PURE__ */ x((t, e) => { qg.set(e.id, t); -}, "setNodeElem"), JCt = /* @__PURE__ */ x(() => { +}, "setNodeElem"), eEt = /* @__PURE__ */ x(() => { qg.clear(); }, "clear"), dY = /* @__PURE__ */ x((t) => { const e = qg.get(t.id); @@ -45953,7 +45953,7 @@ res:`, "transform", "translate(" + (t.x + n - t.width / 2) + ", " + (t.y - t.height / 2 - r) + ")" ) : e.attr("transform", "translate(" + t.x + ", " + t.y + ")"), n; -}, "positionNode"), eEt = { +}, "positionNode"), tEt = { common: mt, getConfig: Ai, insertCluster: Ble, @@ -45968,23 +45968,23 @@ res:`, }, ob = {}, jle = /* @__PURE__ */ x((t) => { for (const e of t) ob[e.name] = e; -}, "registerLayoutLoaders"), tEt = /* @__PURE__ */ x(() => { +}, "registerLayoutLoaders"), rEt = /* @__PURE__ */ x(() => { jle([ { name: "dagre", - loader: /* @__PURE__ */ x(async () => await Promise.resolve().then(() => rBt), "loader") + loader: /* @__PURE__ */ x(async () => await Promise.resolve().then(() => iBt), "loader") } ]); }, "registerDefaultLayoutLoaders"); -tEt(); +rEt(); var Kle = /* @__PURE__ */ x(async (t, e) => { if (!(t.layoutAlgorithm in ob)) throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`); const r = ob[t.layoutAlgorithm]; - return (await r.loader()).render(t, e, eEt, { + return (await r.loader()).render(t, e, tEt, { algorithm: r.algorithm }); -}, "render"), rEt = /* @__PURE__ */ x((t = "", { fallback: e = "dagre" } = {}) => { +}, "render"), nEt = /* @__PURE__ */ x((t = "", { fallback: e = "dagre" } = {}) => { if (t in ob) return t; if (e in ob) @@ -45999,14 +45999,14 @@ var Kle = /* @__PURE__ */ x(async (t, e) => { r = ht(o.body); } return r.select(`#${t}`); -}, "selectSvgElement"), Jle = "comm", ece = "rule", tce = "decl", nEt = "@import", iEt = "@keyframes", sEt = "@layer", rce = Math.abs, kN = String.fromCharCode; +}, "selectSvgElement"), Jle = "comm", ece = "rule", tce = "decl", iEt = "@import", sEt = "@keyframes", aEt = "@layer", rce = Math.abs, kN = String.fromCharCode; function nce(t) { return t.trim(); } function M5(t, e, r) { return t.replace(e, r); } -function aEt(t, e, r) { +function oEt(t, e, r) { return t.indexOf(e, r); } function lb(t, e) { @@ -46018,7 +46018,7 @@ function zm(t, e, r) { function Lc(t) { return t.length; } -function oEt(t) { +function lEt(t) { return t.length; } function e4(t, e) { @@ -46028,16 +46028,16 @@ var VC = 1, Qm = 1, ice = 0, yl = 0, Si = 0, z1 = ""; function SN(t, e, r, n, i, s, a, o) { return { value: t, root: e, parent: r, type: n, props: i, children: s, line: VC, column: Qm, length: a, return: "", siblings: o }; } -function lEt() { +function cEt() { return Si; } -function cEt() { +function uEt() { return Si = yl > 0 ? lb(z1, --yl) : 0, Qm--, Si === 10 && (Qm = 1, VC--), Si; } function Gl() { return Si = yl < ice ? lb(z1, yl++) : 0, Qm++, Si === 10 && (Qm = 1, VC++), Si; } -function pf() { +function gf() { return lb(z1, yl); } function D5() { @@ -46078,24 +46078,24 @@ function cb(t) { } return 0; } -function uEt(t) { +function hEt(t) { return VC = Qm = 1, ice = Lc(z1 = t), yl = 0, []; } -function hEt(t) { +function fEt(t) { return z1 = "", t; } function cA(t) { return nce(qC(yl - 1, rL(t === 91 ? t + 2 : t === 40 ? t + 1 : t))); } -function fEt(t) { - for (; (Si = pf()) && Si < 33; ) +function dEt(t) { + for (; (Si = gf()) && Si < 33; ) Gl(); return cb(t) > 2 || cb(Si) > 3 ? "" : " "; } -function dEt(t, e) { +function pEt(t, e) { for (; --e && Gl() && !(Si < 48 || Si > 102 || Si > 57 && Si < 65 || Si > 70 && Si < 97); ) ; - return qC(t, D5() + (e < 6 && pf() == 32 && Gl() == 32)); + return qC(t, D5() + (e < 6 && gf() == 32 && Gl() == 32)); } function rL(t) { for (; Gl(); ) @@ -46115,26 +46115,26 @@ function rL(t) { } return yl; } -function pEt(t, e) { +function gEt(t, e) { for (; Gl() && t + Si !== 47 + 10; ) - if (t + Si === 42 + 42 && pf() === 47) + if (t + Si === 42 + 42 && gf() === 47) break; return "/*" + qC(e, yl - 1) + "*" + kN(t === 47 ? t : Gl()); } -function gEt(t) { - for (; !cb(pf()); ) +function mEt(t) { + for (; !cb(gf()); ) Gl(); return qC(t, yl); } -function mEt(t) { - return hEt(P5("", null, null, null, [""], t = uEt(t), 0, [0], t)); +function vEt(t) { + return fEt(P5("", null, null, null, [""], t = hEt(t), 0, [0], t)); } function P5(t, e, r, n, i, s, a, o, l) { for (var u = 0, h = 0, f = a, d = 0, p = 0, g = 0, m = 1, v = 1, y = 1, b = 0, w = "", O = i, S = s, C = n, T = w; v; ) switch (g = b, b = Gl()) { case 40: if (g != 108 && lb(T, f - 1) == 58) { - aEt(T += M5(cA(b), "&", "&\f"), "&\f", rce(u ? o[u - 1] : 0)) != -1 && (y = -1); + oEt(T += M5(cA(b), "&", "&\f"), "&\f", rce(u ? o[u - 1] : 0)) != -1 && (y = -1); break; } case 34: @@ -46146,16 +46146,16 @@ function P5(t, e, r, n, i, s, a, o, l) { case 10: case 13: case 32: - T += fEt(g); + T += dEt(g); break; case 92: - T += dEt(D5() - 1, 7); + T += pEt(D5() - 1, 7); continue; case 47: - switch (pf()) { + switch (gf()) { case 42: case 47: - e4(vEt(pEt(Gl(), D5()), e, r, l), l), (cb(g || 1) == 5 || cb(pf() || 1) == 5) && Lc(T) && zm(T, -1, void 0) !== " " && (T += " "); + e4(yEt(gEt(Gl(), D5()), e, r, l), l), (cb(g || 1) == 5 || cb(gf() || 1) == 5) && Lc(T) && zm(T, -1, void 0) !== " " && (T += " "); break; default: T += "/"; @@ -46199,7 +46199,7 @@ function P5(t, e, r, n, i, s, a, o, l) { if (m < 1) { if (b == 123) --m; - else if (b == 125 && m++ == 0 && cEt() == 125) + else if (b == 125 && m++ == 0 && uEt() == 125) continue; } switch (T += kN(b), b * m) { @@ -46210,7 +46210,7 @@ function P5(t, e, r, n, i, s, a, o, l) { o[u++] = (Lc(T) - 1) * y, y = 1; break; case 64: - pf() === 45 && (T += cA(Gl())), d = pf(), h = f = Lc(w = T += gEt(D5())), b++; + gf() === 45 && (T += cA(Gl())), d = gf(), h = f = Lc(w = T += mEt(D5())), b++; break; case 45: g === 45 && Lc(T) == 2 && (m = 0); @@ -46219,13 +46219,13 @@ function P5(t, e, r, n, i, s, a, o, l) { return s; } function pY(t, e, r, n, i, s, a, o, l, u, h, f) { - for (var d = i - 1, p = i === 0 ? s : [""], g = oEt(p), m = 0, v = 0, y = 0; m < n; ++m) + for (var d = i - 1, p = i === 0 ? s : [""], g = lEt(p), m = 0, v = 0, y = 0; m < n; ++m) for (var b = 0, w = zm(t, d + 1, d = rce(v = a[m])), O = t; b < g; ++b) (O = nce(v > 0 ? p[b] + " " + w : M5(w, /&\f/g, p[b]))) && (l[y++] = O); return SN(t, e, r, i === 0 ? ece : o, l, u, h, f); } -function vEt(t, e, r, n) { - return SN(t, e, r, Jle, kN(lEt()), zm(t, 2, -2), 0, n); +function yEt(t, e, r, n) { + return SN(t, e, r, Jle, kN(cEt()), zm(t, 2, -2), 0, n); } function gY(t, e, r, n, i) { return SN(t, e, r, tce, zm(t, 0, n), zm(t, n + 1, -1), n, i); @@ -46235,17 +46235,17 @@ function nL(t, e) { r += e(t[n], n, t, e) || ""; return r; } -function yEt(t, e, r, n) { +function bEt(t, e, r, n) { switch (t.type) { - case sEt: + case aEt: if (t.children.length) break; - case nEt: + case iEt: case tce: return t.return = t.return || t.value; case Jle: return ""; - case iEt: + case sEt: return t.return = t.value + "{" + nL(t.children, n) + "}"; case ece: if (!Lc(t.value = t.props.join(","))) @@ -46253,198 +46253,198 @@ function yEt(t, e, r, n) { } return Lc(r = nL(t.children, n)) ? t.return = t.value + "{" + r + "}" : ""; } -var bEt = Ioe(Object.keys, Object); -const xEt = bEt; -var wEt = Object.prototype, OEt = wEt.hasOwnProperty; +var xEt = Ioe(Object.keys, Object); +const wEt = xEt; +var OEt = Object.prototype, kEt = OEt.hasOwnProperty; function sce(t) { if (!sw(t)) - return xEt(t); + return wEt(t); var e = []; for (var r in Object(t)) - OEt.call(t, r) && r != "constructor" && e.push(r); + kEt.call(t, r) && r != "constructor" && e.push(r); return e; } -var kEt = Ep(gc, "DataView"); -const iL = kEt; -var SEt = Ep(gc, "Promise"); -const sL = SEt; -var TEt = Ep(gc, "Set"); -const Yg = TEt; -var CEt = Ep(gc, "WeakMap"); -const aL = CEt; -var mY = "[object Map]", EEt = "[object Object]", vY = "[object Promise]", yY = "[object Set]", bY = "[object WeakMap]", xY = "[object DataView]", _Et = Cp(iL), AEt = Cp(sb), LEt = Cp(sL), REt = Cp(Yg), MEt = Cp(aL), Qd = Dh; +var SEt = Ep(gc, "DataView"); +const iL = SEt; +var TEt = Ep(gc, "Promise"); +const sL = TEt; +var CEt = Ep(gc, "Set"); +const Yg = CEt; +var EEt = Ep(gc, "WeakMap"); +const aL = EEt; +var mY = "[object Map]", _Et = "[object Object]", vY = "[object Promise]", yY = "[object Set]", bY = "[object WeakMap]", xY = "[object DataView]", AEt = Cp(iL), LEt = Cp(sb), REt = Cp(sL), MEt = Cp(Yg), DEt = Cp(aL), Qd = Ph; (iL && Qd(new iL(new ArrayBuffer(1))) != xY || sb && Qd(new sb()) != mY || sL && Qd(sL.resolve()) != vY || Yg && Qd(new Yg()) != yY || aL && Qd(new aL()) != bY) && (Qd = function(t) { - var e = Dh(t), r = e == EEt ? t.constructor : void 0, n = r ? Cp(r) : ""; + var e = Ph(t), r = e == _Et ? t.constructor : void 0, n = r ? Cp(r) : ""; if (n) switch (n) { - case _Et: - return xY; case AEt: - return mY; + return xY; case LEt: - return vY; + return mY; case REt: - return yY; + return vY; case MEt: + return yY; + case DEt: return bY; } return e; }); const Um = Qd; -var DEt = "[object Map]", PEt = "[object Set]", NEt = Object.prototype, IEt = NEt.hasOwnProperty; +var PEt = "[object Map]", NEt = "[object Set]", IEt = Object.prototype, $Et = IEt.hasOwnProperty; function Hr(t) { if (t == null) return !0; if (Ou(t) && (Pr(t) || typeof t == "string" || typeof t.splice == "function" || Fm(t) || $C(t) || Bm(t))) return !t.length; var e = Um(t); - if (e == DEt || e == PEt) + if (e == PEt || e == NEt) return !t.size; if (sw(t)) return !sce(t).length; for (var r in t) - if (IEt.call(t, r)) + if ($Et.call(t, r)) return !1; return !0; } -var ace = "c4", $Et = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t), "detector"), BEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => eFt); +var ace = "c4", BEt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t), "detector"), FEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => rFt); return { id: ace, diagram: t }; -}, "loader"), FEt = { +}, "loader"), zEt = { id: ace, - detector: $Et, - loader: BEt -}, zEt = FEt, oce = "flowchart", QEt = /* @__PURE__ */ x((t, e) => { + detector: BEt, + loader: FEt +}, QEt = zEt, oce = "flowchart", UEt = /* @__PURE__ */ x((t, e) => { var r, n; return ((r = e == null ? void 0 : e.flowchart) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" || ((n = e == null ? void 0 : e.flowchart) == null ? void 0 : n.defaultRenderer) === "elk" ? !1 : /^\s*graph/.test(t); -}, "detector"), UEt = /* @__PURE__ */ x(async () => { +}, "detector"), VEt = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => RI); return { id: oce, diagram: t }; -}, "loader"), VEt = { +}, "loader"), qEt = { id: oce, - detector: QEt, - loader: UEt -}, qEt = VEt, lce = "flowchart-v2", YEt = /* @__PURE__ */ x((t, e) => { + detector: UEt, + loader: VEt +}, YEt = qEt, lce = "flowchart-v2", WEt = /* @__PURE__ */ x((t, e) => { var r, n, i; return ((r = e == null ? void 0 : e.flowchart) == null ? void 0 : r.defaultRenderer) === "dagre-d3" ? !1 : (((n = e == null ? void 0 : e.flowchart) == null ? void 0 : n.defaultRenderer) === "elk" && (e.layout = "elk"), /^\s*graph/.test(t) && ((i = e == null ? void 0 : e.flowchart) == null ? void 0 : i.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(t)); -}, "detector"), WEt = /* @__PURE__ */ x(async () => { +}, "detector"), GEt = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => RI); return { id: lce, diagram: t }; -}, "loader"), GEt = { +}, "loader"), XEt = { id: lce, - detector: YEt, - loader: WEt -}, XEt = GEt, cce = "er", HEt = /* @__PURE__ */ x((t) => /^\s*erDiagram/.test(t), "detector"), ZEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => nQt); + detector: WEt, + loader: GEt +}, HEt = XEt, cce = "er", ZEt = /* @__PURE__ */ x((t) => /^\s*erDiagram/.test(t), "detector"), jEt = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => sQt); return { id: cce, diagram: t }; -}, "loader"), jEt = { +}, "loader"), KEt = { id: cce, - detector: HEt, - loader: ZEt -}, KEt = jEt, uce = "gitGraph", JEt = /* @__PURE__ */ x((t) => /^\s*gitGraph/.test(t), "detector"), e_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => kXt); + detector: ZEt, + loader: jEt +}, JEt = KEt, uce = "gitGraph", e_t = /* @__PURE__ */ x((t) => /^\s*gitGraph/.test(t), "detector"), t_t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => TXt); return { id: uce, diagram: t }; -}, "loader"), t_t = { +}, "loader"), r_t = { id: uce, - detector: JEt, - loader: e_t -}, r_t = t_t, hce = "gantt", n_t = /* @__PURE__ */ x((t) => /^\s*gantt/.test(t), "detector"), i_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => vHt); + detector: e_t, + loader: t_t +}, n_t = r_t, hce = "gantt", i_t = /* @__PURE__ */ x((t) => /^\s*gantt/.test(t), "detector"), s_t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => bHt); return { id: hce, diagram: t }; -}, "loader"), s_t = { +}, "loader"), a_t = { id: hce, - detector: n_t, - loader: i_t -}, a_t = s_t, fce = "info", o_t = /* @__PURE__ */ x((t) => /^\s*info/.test(t), "detector"), l_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => THt); + detector: i_t, + loader: s_t +}, o_t = a_t, fce = "info", l_t = /* @__PURE__ */ x((t) => /^\s*info/.test(t), "detector"), c_t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => EHt); return { id: fce, diagram: t }; -}, "loader"), c_t = { +}, "loader"), u_t = { id: fce, - detector: o_t, - loader: l_t -}, dce = "pie", u_t = /* @__PURE__ */ x((t) => /^\s*pie/.test(t), "detector"), h_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => QHt); + detector: l_t, + loader: c_t +}, dce = "pie", h_t = /* @__PURE__ */ x((t) => /^\s*pie/.test(t), "detector"), f_t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => VHt); return { id: dce, diagram: t }; -}, "loader"), f_t = { +}, "loader"), d_t = { id: dce, - detector: u_t, - loader: h_t -}, pce = "quadrantChart", d_t = /* @__PURE__ */ x((t) => /^\s*quadrantChart/.test(t), "detector"), p_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => ZHt); + detector: h_t, + loader: f_t +}, pce = "quadrantChart", p_t = /* @__PURE__ */ x((t) => /^\s*quadrantChart/.test(t), "detector"), g_t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => KHt); return { id: pce, diagram: t }; -}, "loader"), g_t = { +}, "loader"), m_t = { id: pce, - detector: d_t, - loader: p_t -}, m_t = g_t, gce = "xychart", v_t = /* @__PURE__ */ x((t) => /^\s*xychart-beta/.test(t), "detector"), y_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => hZt); + detector: p_t, + loader: g_t +}, v_t = m_t, gce = "xychart", y_t = /* @__PURE__ */ x((t) => /^\s*xychart-beta/.test(t), "detector"), b_t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => dZt); return { id: gce, diagram: t }; -}, "loader"), b_t = { +}, "loader"), x_t = { id: gce, - detector: v_t, - loader: y_t -}, x_t = b_t, mce = "requirement", w_t = /* @__PURE__ */ x((t) => /^\s*requirement(Diagram)?/.test(t), "detector"), O_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => VZt); + detector: y_t, + loader: b_t +}, w_t = x_t, mce = "requirement", O_t = /* @__PURE__ */ x((t) => /^\s*requirement(Diagram)?/.test(t), "detector"), k_t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => YZt); return { id: mce, diagram: t }; -}, "loader"), k_t = { +}, "loader"), S_t = { id: mce, - detector: w_t, - loader: O_t -}, S_t = k_t, vce = "sequence", T_t = /* @__PURE__ */ x((t) => /^\s*sequenceDiagram/.test(t), "detector"), C_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => qjt); + detector: O_t, + loader: k_t +}, T_t = S_t, vce = "sequence", C_t = /* @__PURE__ */ x((t) => /^\s*sequenceDiagram/.test(t), "detector"), E_t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => Wjt); return { id: vce, diagram: t }; -}, "loader"), E_t = { +}, "loader"), __t = { id: vce, - detector: T_t, - loader: C_t -}, __t = E_t, yce = "class", A_t = /* @__PURE__ */ x((t, e) => { + detector: C_t, + loader: E_t +}, A_t = __t, yce = "class", L_t = /* @__PURE__ */ x((t, e) => { var r; return ((r = e == null ? void 0 : e.class) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(t); -}, "detector"), L_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => TKt); +}, "detector"), R_t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => EKt); return { id: yce, diagram: t }; -}, "loader"), R_t = { +}, "loader"), M_t = { id: yce, - detector: A_t, - loader: L_t -}, M_t = R_t, bce = "classDiagram", D_t = /* @__PURE__ */ x((t, e) => { + detector: L_t, + loader: R_t +}, D_t = M_t, bce = "classDiagram", P_t = /* @__PURE__ */ x((t, e) => { var r; return /^\s*classDiagram/.test(t) && ((r = e == null ? void 0 : e.class) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(t); -}, "detector"), P_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => oJt); +}, "detector"), N_t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => cJt); return { id: bce, diagram: t }; -}, "loader"), N_t = { +}, "loader"), I_t = { id: bce, - detector: D_t, - loader: P_t -}, I_t = N_t, xce = "state", $_t = /* @__PURE__ */ x((t, e) => { + detector: P_t, + loader: N_t +}, $_t = I_t, xce = "state", B_t = /* @__PURE__ */ x((t, e) => { var r; return ((r = e == null ? void 0 : e.state) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(t); -}, "detector"), B_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => yer); +}, "detector"), F_t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => xer); return { id: xce, diagram: t }; -}, "loader"), F_t = { +}, "loader"), z_t = { id: xce, - detector: $_t, - loader: B_t -}, z_t = F_t, wce = "stateDiagram", Q_t = /* @__PURE__ */ x((t, e) => { + detector: B_t, + loader: F_t +}, Q_t = z_t, wce = "stateDiagram", U_t = /* @__PURE__ */ x((t, e) => { var r; return !!(/^\s*stateDiagram-v2/.test(t) || /^\s*stateDiagram/.test(t) && ((r = e == null ? void 0 : e.state) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper"); -}, "detector"), U_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => xer); +}, "detector"), V_t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => Oer); return { id: wce, diagram: t }; -}, "loader"), V_t = { +}, "loader"), q_t = { id: wce, - detector: Q_t, - loader: U_t -}, q_t = V_t, Oce = "journey", Y_t = /* @__PURE__ */ x((t) => /^\s*journey/.test(t), "detector"), W_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Uer); + detector: U_t, + loader: V_t +}, Y_t = q_t, Oce = "journey", W_t = /* @__PURE__ */ x((t) => /^\s*journey/.test(t), "detector"), G_t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => qer); return { id: Oce, diagram: t }; -}, "loader"), G_t = { +}, "loader"), X_t = { id: Oce, - detector: Y_t, - loader: W_t -}, X_t = G_t, H_t = /* @__PURE__ */ x((t, e, r) => { + detector: W_t, + loader: G_t +}, H_t = X_t, Z_t = /* @__PURE__ */ x((t, e, r) => { H.debug(`rendering svg for syntax error `); const n = Rp(e), i = n.append("g"); @@ -46467,67 +46467,67 @@ var ace = "c4", $Et = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp "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" ), i.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 250).attr("font-size", "150px").style("text-anchor", "middle").text("Syntax error in text"), i.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${r}`); -}, "draw"), kce = { draw: H_t }, Z_t = kce, j_t = { +}, "draw"), kce = { draw: Z_t }, j_t = kce, K_t = { db: {}, renderer: kce, parser: { parse: /* @__PURE__ */ x(() => { }, "parse") } -}, K_t = j_t, Sce = "flowchart-elk", J_t = /* @__PURE__ */ x((t, e = {}) => { +}, J_t = K_t, Sce = "flowchart-elk", e6t = /* @__PURE__ */ x((t, e = {}) => { var r; return /^\s*flowchart-elk/.test(t) || /^\s*flowchart|graph/.test(t) && ((r = e == null ? void 0 : e.flowchart) == null ? void 0 : r.defaultRenderer) === "elk" ? (e.layout = "elk", !0) : !1; -}, "detector"), e6t = /* @__PURE__ */ x(async () => { +}, "detector"), t6t = /* @__PURE__ */ x(async () => { const { diagram: t } = await Promise.resolve().then(() => RI); return { id: Sce, diagram: t }; -}, "loader"), t6t = { +}, "loader"), r6t = { id: Sce, - detector: J_t, - loader: e6t -}, r6t = t6t, Tce = "timeline", n6t = /* @__PURE__ */ x((t) => /^\s*timeline/.test(t), "detector"), i6t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => utr); + detector: e6t, + loader: t6t +}, n6t = r6t, Tce = "timeline", i6t = /* @__PURE__ */ x((t) => /^\s*timeline/.test(t), "detector"), s6t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => ftr); return { id: Tce, diagram: t }; -}, "loader"), s6t = { +}, "loader"), a6t = { id: Tce, - detector: n6t, - loader: i6t -}, a6t = s6t, Cce = "mindmap", o6t = /* @__PURE__ */ x((t) => /^\s*mindmap/.test(t), "detector"), l6t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => kcr); + detector: i6t, + loader: s6t +}, o6t = a6t, Cce = "mindmap", l6t = /* @__PURE__ */ x((t) => /^\s*mindmap/.test(t), "detector"), c6t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => Tcr); return { id: Cce, diagram: t }; -}, "loader"), c6t = { +}, "loader"), u6t = { id: Cce, - detector: o6t, - loader: l6t -}, u6t = c6t, Ece = "sankey", h6t = /* @__PURE__ */ x((t) => /^\s*sankey-beta/.test(t), "detector"), f6t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => sur); + detector: l6t, + loader: c6t +}, h6t = u6t, Ece = "sankey", f6t = /* @__PURE__ */ x((t) => /^\s*sankey-beta/.test(t), "detector"), d6t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => our); return { id: Ece, diagram: t }; -}, "loader"), d6t = { +}, "loader"), p6t = { id: Ece, - detector: h6t, - loader: f6t -}, p6t = d6t, _ce = "packet", g6t = /* @__PURE__ */ x((t) => /^\s*packet-beta/.test(t), "detector"), m6t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => wur); + detector: f6t, + loader: d6t +}, g6t = p6t, _ce = "packet", m6t = /* @__PURE__ */ x((t) => /^\s*packet-beta/.test(t), "detector"), v6t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => kur); return { id: _ce, diagram: t }; -}, "loader"), v6t = { +}, "loader"), y6t = { id: _ce, - detector: g6t, - loader: m6t -}, Ace = "block", y6t = /* @__PURE__ */ x((t) => /^\s*block-beta/.test(t), "detector"), b6t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Hur); + detector: m6t, + loader: v6t +}, Ace = "block", b6t = /* @__PURE__ */ x((t) => /^\s*block-beta/.test(t), "detector"), x6t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => jur); return { id: Ace, diagram: t }; -}, "loader"), x6t = { +}, "loader"), w6t = { id: Ace, - detector: y6t, - loader: b6t -}, w6t = x6t, Lce = "architecture", O6t = /* @__PURE__ */ x((t) => /^\s*architecture/.test(t), "detector"), k6t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Rhr); + detector: b6t, + loader: x6t +}, O6t = w6t, Lce = "architecture", k6t = /* @__PURE__ */ x((t) => /^\s*architecture/.test(t), "detector"), S6t = /* @__PURE__ */ x(async () => { + const { diagram: t } = await Promise.resolve().then(() => Dhr); return { id: Lce, diagram: t }; -}, "loader"), S6t = { +}, "loader"), T6t = { id: Lce, - detector: O6t, - loader: k6t -}, T6t = S6t, wY = !1, YC = /* @__PURE__ */ x(() => { - wY || (wY = !0, p3("error", K_t, (t) => t.toLowerCase().trim() === "error"), p3( + detector: k6t, + loader: S6t +}, C6t = T6t, wY = !1, YC = /* @__PURE__ */ x(() => { + wY || (wY = !0, p3("error", J_t, (t) => t.toLowerCase().trim() === "error"), p3( "---", { db: { @@ -46550,32 +46550,32 @@ var ace = "c4", $Et = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp }, (t) => t.toLowerCase().trimStart().startsWith("---") ), jse( - zEt, - I_t, - M_t, - KEt, - a_t, - c_t, - f_t, - S_t, - __t, - r6t, - XEt, - qEt, - u6t, - a6t, - r_t, - q_t, - z_t, - X_t, - m_t, - p6t, - v6t, - x_t, - w6t, - T6t + QEt, + $_t, + D_t, + JEt, + o_t, + u_t, + d_t, + T_t, + A_t, + n6t, + HEt, + YEt, + h6t, + o6t, + n_t, + Y_t, + Q_t, + H_t, + v_t, + g6t, + y6t, + w_t, + O6t, + C6t )); -}, "addDiagrams"), C6t = /* @__PURE__ */ x(async () => { +}, "addDiagrams"), E6t = /* @__PURE__ */ x(async () => { H.debug("Loading registered diagrams"); const e = (await Promise.allSettled( Object.entries(_m).map(async ([r, { detector: n, loader: i }]) => { @@ -46598,9 +46598,9 @@ var ace = "c4", $Et = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp H.error(r); throw new Error(`Failed to load ${e.length} external diagrams`); } -}, "loadRegisteredDiagrams"), E6t = "graphics-document document"; +}, "loadRegisteredDiagrams"), _6t = "graphics-document document"; function Rce(t, e) { - t.attr("role", E6t), e !== "" && t.attr("aria-roledescription", e); + t.attr("role", _6t), e !== "" && t.attr("aria-roledescription", e); } x(Rce, "setA11yDiagramInfo"); function Mce(t, e, r, n) { @@ -46623,12 +46623,12 @@ var m1, oL = (m1 = class { static async fromText(e, r = {}) { var u, h; const n = Ai(), i = PP(e, n); - e = GSt(e) + ` + e = XSt(e) + ` `; try { _9(i); } catch { - const f = Uyt(i); + const f = Vyt(i); if (!f) throw new Zse(`Diagram ${i} not found.`); const { id: d, diagram: p } = await f(); @@ -46648,11 +46648,11 @@ var m1, oL = (m1 = class { } }, (() => { x(m1, "Diagram"); -})(), m1), OY = [], _6t = /* @__PURE__ */ x(() => { +})(), m1), OY = [], A6t = /* @__PURE__ */ x(() => { OY.forEach((t) => { t(); }), OY = []; -}, "attachFunctions"), A6t = /* @__PURE__ */ x((t) => t.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments"); +}, "attachFunctions"), L6t = /* @__PURE__ */ x((t) => t.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments"); function TN(t) { return typeof t > "u" || t === null; } @@ -46684,13 +46684,13 @@ function $ce(t) { return t === 0 && Number.NEGATIVE_INFINITY === 1 / t; } x($ce, "isNegativeZero"); -var L6t = TN, R6t = Dce, M6t = Pce, D6t = Ice, P6t = $ce, N6t = Nce, Vi = { - isNothing: L6t, - isObject: R6t, - toArray: M6t, - repeat: D6t, - isNegativeZero: P6t, - extend: N6t +var R6t = TN, M6t = Dce, D6t = Pce, P6t = Ice, N6t = $ce, I6t = Nce, Vi = { + isNothing: R6t, + isObject: M6t, + toArray: D6t, + repeat: P6t, + isNegativeZero: N6t, + extend: I6t }; function CN(t, e) { var r = "", n = t.reason || "(unknown reason)"; @@ -46752,7 +46752,7 @@ function Bce(t, e) { return o.replace(/\n$/, ""); } x(Bce, "makeSnippet"); -var I6t = Bce, $6t = [ +var $6t = Bce, B6t = [ "kind", "multi", "resolve", @@ -46763,7 +46763,7 @@ var I6t = Bce, $6t = [ "representName", "defaultStyle", "styleAliases" -], B6t = [ +], F6t = [ "scalar", "sequence", "mapping" @@ -46779,13 +46779,13 @@ function Fce(t) { x(Fce, "compileStyleAliases"); function zce(t, e) { if (e = e || {}, Object.keys(e).forEach(function(r) { - if ($6t.indexOf(r) === -1) + if (B6t.indexOf(r) === -1) throw new Za('Unknown option "' + r + '" is met in definition of "' + t + '" YAML type.'); }), this.options = e, this.tag = t, this.kind = e.kind || null, this.resolve = e.resolve || function() { return !0; }, this.construct = e.construct || function(r) { return r; - }, this.instanceOf = e.instanceOf || null, this.predicate = e.predicate || null, this.represent = e.represent || null, this.representName = e.representName || null, this.defaultStyle = e.defaultStyle || null, this.multi = e.multi || !1, this.styleAliases = Fce(e.styleAliases || null), B6t.indexOf(this.kind) === -1) + }, this.instanceOf = e.instanceOf || null, this.predicate = e.predicate || null, this.represent = e.represent || null, this.representName = e.representName || null, this.defaultStyle = e.defaultStyle || null, this.multi = e.multi || !1, this.styleAliases = Fce(e.styleAliases || null), F6t.indexOf(this.kind) === -1) throw new Za('Unknown kind "' + this.kind + '" is specified for "' + t + '" YAML type.'); } x(zce, "Type$1"); @@ -46849,26 +46849,26 @@ X3.prototype.extend = /* @__PURE__ */ x(function(e) { var i = Object.create(X3.prototype); return i.implicit = (this.implicit || []).concat(r), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = lL(i, "implicit"), i.compiledExplicit = lL(i, "explicit"), i.compiledTypeMap = Qce(i.compiledImplicit, i.compiledExplicit), i; }, "extend"); -var F6t = X3, z6t = new ra("tag:yaml.org,2002:str", { +var z6t = X3, Q6t = new ra("tag:yaml.org,2002:str", { kind: "scalar", construct: /* @__PURE__ */ x(function(t) { return t !== null ? t : ""; }, "construct") -}), Q6t = new ra("tag:yaml.org,2002:seq", { +}), U6t = new ra("tag:yaml.org,2002:seq", { kind: "sequence", construct: /* @__PURE__ */ x(function(t) { return t !== null ? t : []; }, "construct") -}), U6t = new ra("tag:yaml.org,2002:map", { +}), V6t = new ra("tag:yaml.org,2002:map", { kind: "mapping", construct: /* @__PURE__ */ x(function(t) { return t !== null ? t : {}; }, "construct") -}), V6t = new F6t({ +}), q6t = new z6t({ explicit: [ - z6t, Q6t, - U6t + U6t, + V6t ] }); function Uce(t) { @@ -46886,7 +46886,7 @@ function qce(t) { return t === null; } x(qce, "isNull"); -var q6t = new ra("tag:yaml.org,2002:null", { +var Y6t = new ra("tag:yaml.org,2002:null", { kind: "scalar", resolve: Uce, construct: Vce, @@ -46925,7 +46925,7 @@ function Gce(t) { return Object.prototype.toString.call(t) === "[object Boolean]"; } x(Gce, "isBoolean"); -var Y6t = new ra("tag:yaml.org,2002:bool", { +var W6t = new ra("tag:yaml.org,2002:bool", { kind: "scalar", resolve: Yce, construct: Wce, @@ -47022,7 +47022,7 @@ function Jce(t) { return Object.prototype.toString.call(t) === "[object Number]" && t % 1 === 0 && !Vi.isNegativeZero(t); } x(Jce, "isInteger"); -var W6t = new ra("tag:yaml.org,2002:int", { +var G6t = new ra("tag:yaml.org,2002:int", { kind: "scalar", resolve: jce, construct: Kce, @@ -47048,11 +47048,11 @@ var W6t = new ra("tag:yaml.org,2002:int", { decimal: [10, "dec"], hexadecimal: [16, "hex"] } -}), G6t = new RegExp( +}), X6t = new RegExp( "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$" ); function eue(t) { - return !(t === null || !G6t.test(t) || t[t.length - 1] === "_"); + return !(t === null || !X6t.test(t) || t[t.length - 1] === "_"); } x(eue, "resolveYamlFloat"); function tue(t) { @@ -47060,7 +47060,7 @@ function tue(t) { return e = t.replace(/_/g, "").toLowerCase(), r = e[0] === "-" ? -1 : 1, "+-".indexOf(e[0]) >= 0 && (e = e.slice(1)), e === ".inf" ? r === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : e === ".nan" ? NaN : r * parseFloat(e, 10); } x(tue, "constructYamlFloat"); -var X6t = /^[-+]?[0-9]+e/; +var H6t = /^[-+]?[0-9]+e/; function rue(t, e) { var r; if (isNaN(t)) @@ -47092,28 +47092,28 @@ function rue(t, e) { } else if (Vi.isNegativeZero(t)) return "-0.0"; - return r = t.toString(10), X6t.test(r) ? r.replace("e", ".e") : r; + return r = t.toString(10), H6t.test(r) ? r.replace("e", ".e") : r; } x(rue, "representYamlFloat"); function nue(t) { return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 !== 0 || Vi.isNegativeZero(t)); } x(nue, "isFloat"); -var H6t = new ra("tag:yaml.org,2002:float", { +var Z6t = new ra("tag:yaml.org,2002:float", { kind: "scalar", resolve: eue, construct: tue, predicate: nue, represent: rue, defaultStyle: "lowercase" -}), iue = V6t.extend({ +}), iue = q6t.extend({ implicit: [ - q6t, Y6t, W6t, - H6t + G6t, + Z6t ] -}), Z6t = iue, sue = new RegExp( +}), j6t = iue, sue = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$" ), aue = new RegExp( "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$" @@ -47140,7 +47140,7 @@ function cue(t) { return t.toISOString(); } x(cue, "representYamlTimestamp"); -var j6t = new ra("tag:yaml.org,2002:timestamp", { +var K6t = new ra("tag:yaml.org,2002:timestamp", { kind: "scalar", resolve: oue, construct: lue, @@ -47151,7 +47151,7 @@ function uue(t) { return t === "<<" || t === null; } x(uue, "resolveYamlMerge"); -var K6t = new ra("tag:yaml.org,2002:merge", { +var J6t = new ra("tag:yaml.org,2002:merge", { kind: "scalar", resolve: uue }), EN = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= @@ -47187,22 +47187,22 @@ function pue(t) { return Object.prototype.toString.call(t) === "[object Uint8Array]"; } x(pue, "isBinary"); -var J6t = new ra("tag:yaml.org,2002:binary", { +var eAt = new ra("tag:yaml.org,2002:binary", { kind: "scalar", resolve: hue, construct: fue, predicate: pue, represent: due -}), eAt = Object.prototype.hasOwnProperty, tAt = Object.prototype.toString; +}), tAt = Object.prototype.hasOwnProperty, rAt = Object.prototype.toString; function gue(t) { if (t === null) return !0; var e = [], r, n, i, s, a, o = t; for (r = 0, n = o.length; r < n; r += 1) { - if (i = o[r], a = !1, tAt.call(i) !== "[object Object]") + if (i = o[r], a = !1, rAt.call(i) !== "[object Object]") return !1; for (s in i) - if (eAt.call(i, s)) + if (tAt.call(i, s)) if (!a) a = !0; else @@ -47221,17 +47221,17 @@ function mue(t) { return t !== null ? t : []; } x(mue, "constructYamlOmap"); -var rAt = new ra("tag:yaml.org,2002:omap", { +var nAt = new ra("tag:yaml.org,2002:omap", { kind: "sequence", resolve: gue, construct: mue -}), nAt = Object.prototype.toString; +}), iAt = Object.prototype.toString; function vue(t) { if (t === null) return !0; var e, r, n, i, s, a = t; for (s = new Array(a.length), e = 0, r = a.length; e < r; e += 1) { - if (n = a[e], nAt.call(n) !== "[object Object]" || (i = Object.keys(n), i.length !== 1)) + if (n = a[e], iAt.call(n) !== "[object Object]" || (i = Object.keys(n), i.length !== 1)) return !1; s[e] = [i[0], n[i[0]]]; } @@ -47247,17 +47247,17 @@ function yue(t) { return s; } x(yue, "constructYamlPairs"); -var iAt = new ra("tag:yaml.org,2002:pairs", { +var sAt = new ra("tag:yaml.org,2002:pairs", { kind: "sequence", resolve: vue, construct: yue -}), sAt = Object.prototype.hasOwnProperty; +}), aAt = Object.prototype.hasOwnProperty; function bue(t) { if (t === null) return !0; var e, r = t; for (e in r) - if (sAt.call(r, e) && r[e] !== null) + if (aAt.call(r, e) && r[e] !== null) return !1; return !0; } @@ -47266,22 +47266,22 @@ function xue(t) { return t !== null ? t : {}; } x(xue, "constructYamlSet"); -var aAt = new ra("tag:yaml.org,2002:set", { +var oAt = new ra("tag:yaml.org,2002:set", { kind: "mapping", resolve: bue, construct: xue -}), wue = Z6t.extend({ +}), wue = j6t.extend({ implicit: [ - j6t, - K6t + K6t, + J6t ], explicit: [ - J6t, - rAt, - iAt, - aAt + eAt, + nAt, + sAt, + oAt ] -}), Zf = Object.prototype.hasOwnProperty, H3 = 1, Oue = 2, kue = 3, Z3 = 4, uA = 1, oAt = 2, kY = 3, lAt = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, cAt = /[\x85\u2028\u2029]/, uAt = /[,\[\]\{\}]/, Sue = /^(?:!|!!|![a-z\-]+!)$/i, Tue = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; +}), jf = Object.prototype.hasOwnProperty, H3 = 1, Oue = 2, kue = 3, Z3 = 4, uA = 1, lAt = 2, kY = 3, cAt = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, uAt = /[\x85\u2028\u2029]/, hAt = /[,\[\]\{\}]/, Sue = /^(?:!|!!|![a-z\-]+!)$/i, Tue = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; function cL(t) { return Object.prototype.toString.call(t); } @@ -47290,10 +47290,10 @@ function Xl(t) { return t === 10 || t === 13; } x(Xl, "is_EOL"); -function Cf(t) { +function Ef(t) { return t === 9 || t === 32; } -x(Cf, "is_WHITE_SPACE"); +x(Ef, "is_WHITE_SPACE"); function Sa(t) { return t === 9 || t === 32 || t === 10 || t === 13; } @@ -47343,7 +47343,7 @@ function _N(t, e) { line: t.line, column: t.position - t.lineStart }; - return r.snippet = I6t(r), new Za(e, r); + return r.snippet = $6t(r), new Za(e, r); } x(_N, "generateError"); function jt(t, e) { @@ -47361,7 +47361,7 @@ var SY = { }, "handleYamlDirective"), TAG: /* @__PURE__ */ x(function(e, r, n) { var i, s; - n.length !== 2 && jt(e, "TAG directive accepts exactly two arguments"), i = n[0], s = n[1], Sue.test(i) || jt(e, "ill-formed tag handle (first argument) of the TAG directive"), Zf.call(e.tagMap, i) && jt(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Tue.test(s) || jt(e, "ill-formed tag prefix (second argument) of the TAG directive"); + n.length !== 2 && jt(e, "TAG directive accepts exactly two arguments"), i = n[0], s = n[1], Sue.test(i) || jt(e, "ill-formed tag handle (first argument) of the TAG directive"), jf.call(e.tagMap, i) && jt(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Tue.test(s) || jt(e, "ill-formed tag prefix (second argument) of the TAG directive"); try { s = decodeURIComponent(s); } catch { @@ -47377,7 +47377,7 @@ function nh(t, e, r, n) { for (i = 0, s = o.length; i < s; i += 1) a = o.charCodeAt(i), a === 9 || 32 <= a && a <= 1114111 || jt(t, "expected valid JSON character"); else - lAt.test(o) && jt(t, "the stream contains non-printable characters"); + cAt.test(o) && jt(t, "the stream contains non-printable characters"); t.result += o; } } @@ -47385,7 +47385,7 @@ x(nh, "captureSegment"); function hL(t, e, r, n) { var i, s, a, o; for (Vi.isObject(r) || jt(t, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(r), a = 0, o = i.length; a < o; a += 1) - s = i[a], Zf.call(e, s) || (e[s] = r[s], n[s] = !0); + s = i[a], jf.call(e, s) || (e[s] = r[s], n[s] = !0); } x(hL, "mergeMappings"); function g0(t, e, r, n, i, s, a, o, l) { @@ -47400,7 +47400,7 @@ function g0(t, e, r, n, i, s, a, o, l) { else hL(t, e, s, r); else - !t.json && !Zf.call(r, i) && Zf.call(e, i) && (t.line = a || t.line, t.lineStart = o || t.lineStart, t.position = l || t.position, jt(t, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(e, i, { + !t.json && !jf.call(r, i) && jf.call(e, i) && (t.line = a || t.line, t.lineStart = o || t.lineStart, t.position = l || t.position, jt(t, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(e, i, { configurable: !0, enumerable: !0, writable: !0, @@ -47416,7 +47416,7 @@ function WC(t) { x(WC, "readLineBreak"); function pi(t, e, r) { for (var n = 0, i = t.input.charCodeAt(t.position); i !== 0; ) { - for (; Cf(i); ) + for (; Ef(i); ) i === 9 && t.firstTabInLine === -1 && (t.firstTabInLine = t.position), i = t.input.charCodeAt(++t.position); if (e && i === 35) do @@ -47464,7 +47464,7 @@ function Due(t, e, r) { break; } } - o && (nh(t, s, a, !1), GC(t, t.line - l), s = a = t.position, o = !1), Cf(p) || (a = t.position + 1), p = t.input.charCodeAt(++t.position); + o && (nh(t, s, a, !1), GC(t, t.line - l), s = a = t.position, o = !1), Ef(p) || (a = t.position + 1), p = t.input.charCodeAt(++t.position); } return nh(t, s, a, !1), t.result ? !0 : (t.kind = f, t.result = d, !1); } @@ -47535,15 +47535,15 @@ function $ue(t, e) { return !1; for (t.kind = "scalar", t.result = ""; f !== 0; ) if (f = t.input.charCodeAt(++t.position), f === 43 || f === 45) - uA === i ? i = f === 43 ? kY : oAt : jt(t, "repeat of a chomping mode identifier"); + uA === i ? i = f === 43 ? kY : lAt : jt(t, "repeat of a chomping mode identifier"); else if ((h = _ue(f)) >= 0) h === 0 ? jt(t, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? jt(t, "repeat of an indentation width identifier") : (o = e + h - 1, a = !0); else break; - if (Cf(f)) { + if (Ef(f)) { do f = t.input.charCodeAt(++t.position); - while (Cf(f)); + while (Ef(f)); if (f === 35) do f = t.input.charCodeAt(++t.position); @@ -47562,7 +47562,7 @@ function $ue(t, e) { `); break; } - for (n ? Cf(f) ? (u = !0, t.result += Vi.repeat(` + for (n ? Ef(f) ? (u = !0, t.result += Vi.repeat(` `, s ? 1 + l : l)) : u ? (u = !1, t.result += Vi.repeat(` `, l + 1)) : l === 0 ? s && (t.result += " ") : t.result += Vi.repeat(` `, l) : t.result += Vi.repeat(` @@ -47601,7 +47601,7 @@ function Bue(t, e, r) { if (a = t.line, o = t.lineStart, l = t.position, !X0(t, r, Oue, !1, !0)) break; if (t.line === s) { - for (b = t.input.charCodeAt(t.position); Cf(b); ) + for (b = t.input.charCodeAt(t.position); Ef(b); ) b = t.input.charCodeAt(++t.position); if (b === 58) b = t.input.charCodeAt(++t.position), Sa(b) || jt(t, "a whitespace character is expected after the key-value separator within a block mapping"), v && (g0(t, f, d, p, g, null, a, o, l), p = g = m = null), y = !0, v = !1, i = !1, p = t.tag, g = t.result; @@ -47634,7 +47634,7 @@ function Fue(t) { } else { for (; a !== 0 && !Sa(a); ) a === 33 && (n ? jt(t, "tag suffix cannot contain exclamation marks") : (i = t.input.slice(e - 1, t.position + 1), Sue.test(i) || jt(t, "named tag handle cannot contain such characters"), n = !0, e = t.position + 1)), a = t.input.charCodeAt(++t.position); - s = t.input.slice(e, t.position), uAt.test(s) && jt(t, "tag suffix cannot contain flow indicator characters"); + s = t.input.slice(e, t.position), hAt.test(s) && jt(t, "tag suffix cannot contain flow indicator characters"); } s && !Tue.test(s) && jt(t, "tag name cannot contain such characters: " + s); try { @@ -47642,7 +47642,7 @@ function Fue(t) { } catch { jt(t, "tag name is malformed: " + s); } - return r ? t.tag = s : Zf.call(t.tagMap, i) ? t.tag = t.tagMap[i] + s : i === "!" ? t.tag = "!" + s : i === "!!" ? t.tag = "tag:yaml.org,2002:" + s : jt(t, 'undeclared tag handle "' + i + '"'), !0; + return r ? t.tag = s : jf.call(t.tagMap, i) ? t.tag = t.tagMap[i] + s : i === "!" ? t.tag = "!" + s : i === "!!" ? t.tag = "tag:yaml.org,2002:" + s : jt(t, 'undeclared tag handle "' + i + '"'), !0; } x(Fue, "readTagProperty"); function zue(t) { @@ -47660,7 +47660,7 @@ function Que(t) { return !1; for (n = t.input.charCodeAt(++t.position), e = t.position; n !== 0 && !Sa(n) && !p0(n); ) n = t.input.charCodeAt(++t.position); - return t.position === e && jt(t, "name of an alias node must contain at least one character"), r = t.input.slice(e, t.position), Zf.call(t.anchorMap, r) || jt(t, 'unidentified alias "' + r + '"'), t.result = t.anchorMap[r], pi(t, !0, -1), !0; + return t.position === e && jt(t, "name of an alias node must contain at least one character"), r = t.input.slice(e, t.position), jf.call(t.anchorMap, r) || jt(t, 'unidentified alias "' + r + '"'), t.result = t.anchorMap[r], pi(t, !0, -1), !0; } x(Que, "readAlias"); function X0(t, e, r, n, i) { @@ -47677,7 +47677,7 @@ function X0(t, e, r, n, i) { break; } } else if (t.tag !== "!") { - if (Zf.call(t.typeMap[t.kind || "fallback"], t.tag)) + if (jf.call(t.typeMap[t.kind || "fallback"], t.tag)) g = t.typeMap[t.kind || "fallback"][t.tag]; else for (g = null, p = t.typeMap.multi[t.kind || "fallback"], f = 0, d = p.length; f < d; f += 1) @@ -47696,7 +47696,7 @@ function Uue(t) { for (s = !0, a = t.input.charCodeAt(++t.position), r = t.position; a !== 0 && !Sa(a); ) a = t.input.charCodeAt(++t.position); for (n = t.input.slice(r, t.position), i = [], n.length < 1 && jt(t, "directive name must not be less than one character in length"); a !== 0; ) { - for (; Cf(a); ) + for (; Ef(a); ) a = t.input.charCodeAt(++t.position); if (a === 35) { do @@ -47710,9 +47710,9 @@ function Uue(t) { a = t.input.charCodeAt(++t.position); i.push(t.input.slice(r, t.position)); } - a !== 0 && WC(t), Zf.call(SY, n) ? SY[n](t, n, i) : ub(t, 'unknown document directive "' + n + '"'); + a !== 0 && WC(t), jf.call(SY, n) ? SY[n](t, n, i) : ub(t, 'unknown document directive "' + n + '"'); } - if (pi(t, !0, -1), t.lineIndent === 0 && t.input.charCodeAt(t.position) === 45 && t.input.charCodeAt(t.position + 1) === 45 && t.input.charCodeAt(t.position + 2) === 45 ? (t.position += 3, pi(t, !0, -1)) : s && jt(t, "directives end mark is expected"), X0(t, t.lineIndent - 1, Z3, !1, !0), pi(t, !0, -1), t.checkLineBreaks && cAt.test(t.input.slice(e, t.position)) && ub(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && gw(t)) { + if (pi(t, !0, -1), t.lineIndent === 0 && t.input.charCodeAt(t.position) === 45 && t.input.charCodeAt(t.position + 1) === 45 && t.input.charCodeAt(t.position + 2) === 45 ? (t.position += 3, pi(t, !0, -1)) : s && jt(t, "directives end mark is expected"), X0(t, t.lineIndent - 1, Z3, !1, !0), pi(t, !0, -1), t.checkLineBreaks && uAt.test(t.input.slice(e, t.position)) && ub(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && gw(t)) { t.input.charCodeAt(t.position) === 46 && (t.position += 3, pi(t, !0, -1)); return; } @@ -47751,10 +47751,10 @@ function que(t, e) { } } x(que, "load$1"); -var hAt = Vue, fAt = que, dAt = { - loadAll: hAt, - load: fAt -}, Yue = Object.prototype.toString, Wue = Object.prototype.hasOwnProperty, LN = 65279, pAt = 9, hb = 10, gAt = 13, mAt = 32, vAt = 33, yAt = 34, dL = 35, bAt = 37, xAt = 38, wAt = 39, OAt = 42, Gue = 44, kAt = 45, j3 = 58, SAt = 61, TAt = 62, CAt = 63, EAt = 64, Xue = 91, Hue = 93, _At = 96, Zue = 123, AAt = 124, jue = 125, ua = {}; +var fAt = Vue, dAt = que, pAt = { + loadAll: fAt, + load: dAt +}, Yue = Object.prototype.toString, Wue = Object.prototype.hasOwnProperty, LN = 65279, gAt = 9, hb = 10, mAt = 13, vAt = 32, yAt = 33, bAt = 34, dL = 35, xAt = 37, wAt = 38, OAt = 39, kAt = 42, Gue = 44, SAt = 45, j3 = 58, TAt = 61, CAt = 62, EAt = 63, _At = 64, Xue = 91, Hue = 93, AAt = 96, Zue = 123, LAt = 124, jue = 125, ua = {}; ua[0] = "\\0"; ua[7] = "\\a"; ua[8] = "\\b"; @@ -47770,7 +47770,7 @@ ua[133] = "\\N"; ua[160] = "\\_"; ua[8232] = "\\L"; ua[8233] = "\\P"; -var LAt = [ +var RAt = [ "y", "Y", "yes", @@ -47787,7 +47787,7 @@ var LAt = [ "off", "Off", "OFF" -], RAt = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; +], MAt = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; function Kue(t, e) { var r, n, i, s, a, o, l; if (e === null) @@ -47810,9 +47810,9 @@ function Jue(t) { return "\\" + r + Vi.repeat("0", n - e.length) + e; } x(Jue, "encodeHex"); -var MAt = 1, fb = 2; +var DAt = 1, fb = 2; function ehe(t) { - this.schema = t.schema || wue, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Vi.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = Kue(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === '"' ? fb : MAt, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; + this.schema = t.schema || wue, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = Vi.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = Kue(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === '"' ? fb : DAt, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null; } x(ehe, "State"); function pL(t, e) { @@ -47837,7 +47837,7 @@ function the(t, e) { } x(the, "testImplicitResolving"); function db(t) { - return t === mAt || t === pAt; + return t === vAt || t === gAt; } x(db, "isWhitespace"); function qm(t) { @@ -47845,7 +47845,7 @@ function qm(t) { } x(qm, "isPrintable"); function gL(t) { - return qm(t) && t !== LN && t !== gAt && t !== hb; + return qm(t) && t !== LN && t !== mAt && t !== hb; } x(gL, "isNsCharOrWhitespace"); function mL(t, e, r) { @@ -47854,7 +47854,7 @@ function mL(t, e, r) { } x(mL, "isPlainSafe"); function rhe(t) { - return qm(t) && t !== LN && !db(t) && t !== kAt && t !== CAt && t !== j3 && t !== Gue && t !== Xue && t !== Hue && t !== Zue && t !== jue && t !== dL && t !== xAt && t !== OAt && t !== vAt && t !== AAt && t !== SAt && t !== TAt && t !== wAt && t !== yAt && t !== bAt && t !== EAt && t !== _At; + return qm(t) && t !== LN && !db(t) && t !== SAt && t !== EAt && t !== j3 && t !== Gue && t !== Xue && t !== Hue && t !== Zue && t !== jue && t !== dL && t !== wAt && t !== kAt && t !== yAt && t !== LAt && t !== TAt && t !== CAt && t !== OAt && t !== bAt && t !== xAt && t !== _At && t !== AAt; } x(rhe, "isPlainSafeFirst"); function nhe(t) { @@ -47897,7 +47897,7 @@ function lhe(t, e, r, n, i) { t.dump = function() { if (e.length === 0) return t.quotingType === fb ? '""' : "''"; - if (!t.noCompatMode && (LAt.indexOf(e) !== -1 || RAt.test(e))) + if (!t.noCompatMode && (RAt.indexOf(e) !== -1 || MAt.test(e))) return t.quotingType === fb ? '"' + e + '"' : "'" + e + "'"; var s = t.indent * Math.max(1, r), a = t.lineWidth === -1 ? -1 : Math.max(Math.min(t.lineWidth, 40), t.lineWidth - s), o = n || t.flowLevel > -1 && r >= t.flowLevel; function l(u) { @@ -48074,7 +48074,7 @@ function J3(t, e, r) { J3(t[n[i]], e, r); } x(J3, "inspectNode"); -function DAt(t, e) { +function PAt(t, e) { e = e || {}; var r = new ehe(e); r.noRefs || phe(t, r); @@ -48082,14 +48082,14 @@ function DAt(t, e) { return r.replacer && (n = r.replacer.call({ "": n }, "", n)), cu(r, 0, n, !0, !0) ? r.dump + ` ` : ""; } -x(DAt, "dump$1"); -function PAt(t, e) { +x(PAt, "dump$1"); +function NAt(t, e) { return function() { throw new Error("Function yaml." + t + " is removed in js-yaml 4. Use yaml." + e + " instead, which is now safe by default."); }; } -x(PAt, "renamed"); -var NAt = iue, IAt = dAt.load; +x(NAt, "renamed"); +var IAt = iue, $At = pAt.load; function ghe(t) { var i; const e = t.match(Hse); @@ -48098,8 +48098,8 @@ function ghe(t) { text: t, metadata: {} }; - let r = (i = IAt(e[1], { - schema: NAt + let r = (i = $At(e[1], { + schema: IAt })) != null ? i : {}; r = typeof r == "object" && !Array.isArray(r) ? r : {}; const n = {}; @@ -48109,24 +48109,24 @@ function ghe(t) { }; } x(ghe, "extractFrontMatter"); -var $At = /* @__PURE__ */ x((t) => t.replace(/\r\n?/g, ` +var BAt = /* @__PURE__ */ x((t) => t.replace(/\r\n?/g, ` `).replace( /<(\w+)([^>]*)>/g, (e, r, n) => "<" + r + n.replace(/="([^"]*)"/g, "='$1'") + ">" -), "cleanupText"), BAt = /* @__PURE__ */ x((t) => { +), "cleanupText"), FAt = /* @__PURE__ */ x((t) => { const { text: e, metadata: r } = ghe(t), { displayMode: n, title: i, config: s = {} } = r; return n && (s.gantt || (s.gantt = {}), s.gantt.displayMode = n), { title: i, config: s, text: e }; -}, "processFrontmatter"), FAt = /* @__PURE__ */ x((t) => { +}, "processFrontmatter"), zAt = /* @__PURE__ */ x((t) => { var n; - const e = (n = gr.detectInit(t)) != null ? n : {}, r = gr.detectDirective(t, "wrap"); + const e = (n = mr.detectInit(t)) != null ? n : {}, r = mr.detectDirective(t, "wrap"); return Array.isArray(r) ? e.wrap = r.some(({ type: i }) => i === "wrap") : (r == null ? void 0 : r.type) === "wrap" && (e.wrap = !0), { - text: $St(t), + text: BSt(t), directive: e }; }, "processDirectives"); function MN(t) { - const e = $At(t), r = BAt(e), n = FAt(r.text), i = Ih(r.config, n.directive); - return t = A6t(n.text), { + const e = BAt(t), r = FAt(e), n = zAt(r.text), i = $h(r.config, n.directive); + return t = L6t(n.text), { code: t, title: r.title, config: i @@ -48138,11 +48138,11 @@ function mhe(t) { return btoa(r); } x(mhe, "toBase64"); -var zAt = 5e4, QAt = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", UAt = "sandbox", VAt = "loose", qAt = "http://www.w3.org/2000/svg", YAt = "http://www.w3.org/1999/xlink", WAt = "http://www.w3.org/1999/xhtml", GAt = "100%", XAt = "100%", HAt = "border:0;margin:0;", ZAt = "margin:0", jAt = "allow-top-navigation-by-user-activation allow-popups", KAt = 'The "iframe" tag is not supported by your browser.', JAt = ["foreignobject"], e7t = ["dominant-baseline"]; +var QAt = 5e4, UAt = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", VAt = "sandbox", qAt = "loose", YAt = "http://www.w3.org/2000/svg", WAt = "http://www.w3.org/1999/xlink", GAt = "http://www.w3.org/1999/xhtml", XAt = "100%", HAt = "100%", ZAt = "border:0;margin:0;", jAt = "margin:0", KAt = "allow-top-navigation-by-user-activation allow-popups", JAt = 'The "iframe" tag is not supported by your browser.', e7t = ["foreignobject"], t7t = ["dominant-baseline"]; function DN(t) { var r; const e = MN(t); - return f3(), n2t((r = e.config) != null ? r : {}), e; + return f3(), i2t((r = e.config) != null ? r : {}), e; } x(DN, "processAndSetConfigs"); async function vhe(t, e) { @@ -48158,7 +48158,7 @@ async function vhe(t, e) { } x(vhe, "parse"); var TY = /* @__PURE__ */ x((t, e, r = []) => ` -.${t} ${e} { ${r.join(" !important; ")} !important; }`, "cssImportantStyles"), t7t = /* @__PURE__ */ x((t, e = /* @__PURE__ */ new Map()) => { +.${t} ${e} { ${r.join(" !important; ")} !important; }`, "cssImportantStyles"), r7t = /* @__PURE__ */ x((t, e = /* @__PURE__ */ new Map()) => { var n, i; let r = ""; if (t.themeCSS !== void 0 && (r += ` @@ -48177,56 +48177,56 @@ ${t.themeCSS}`), t.fontFamily !== void 0 && (r += ` }); } return r; -}, "createCssStyles"), r7t = /* @__PURE__ */ x((t, e, r, n) => { - const i = t7t(t, r), s = w2t(e, i, t.themeVariables); - return nL(mEt(`${n}{${s}}`), yEt); -}, "createUserStyles"), n7t = /* @__PURE__ */ x((t = "", e, r) => { +}, "createCssStyles"), n7t = /* @__PURE__ */ x((t, e, r, n) => { + const i = r7t(t, r), s = O2t(e, i, t.themeVariables); + return nL(vEt(`${n}{${s}}`), bEt); +}, "createUserStyles"), i7t = /* @__PURE__ */ x((t = "", e, r) => { let n = t; return !r && !e && (n = n.replace( /marker-end="url\([\d+./:=?A-Za-z-]*?#/g, 'marker-end="url(#' )), n = W0(n), n = n.replace(/
/g, "
"), n; -}, "cleanUpSvgCode"), i7t = /* @__PURE__ */ x((t = "", e) => { +}, "cleanUpSvgCode"), s7t = /* @__PURE__ */ x((t = "", e) => { var i, s; - const r = (s = (i = e == null ? void 0 : e.viewBox) == null ? void 0 : i.baseVal) != null && s.height ? e.viewBox.baseVal.height + "px" : XAt, n = mhe(`${t}`); - return ``; }, "putIntoIFrame"), CY = /* @__PURE__ */ x((t, e, r, n, i) => { const s = t.append("div"); s.attr("id", r), n && s.attr("style", n); - const a = s.append("svg").attr("id", e).attr("width", "100%").attr("xmlns", qAt); + const a = s.append("svg").attr("id", e).attr("width", "100%").attr("xmlns", YAt); return i && a.attr("xmlns:xlink", i), a.append("g"), t; }, "appendDivSvgG"); function kL(t, e) { return t.append("iframe").attr("id", e).attr("style", "width: 100%; height: 100%;").attr("sandbox", ""); } x(kL, "sandboxedIframe"); -var s7t = /* @__PURE__ */ x((t, e, r, n) => { +var a7t = /* @__PURE__ */ x((t, e, r, n) => { var i, s, a; (i = t.getElementById(e)) == null || i.remove(), (s = t.getElementById(r)) == null || s.remove(), (a = t.getElementById(n)) == null || a.remove(); -}, "removeExistingElements"), a7t = /* @__PURE__ */ x(async function(t, e, r) { +}, "removeExistingElements"), o7t = /* @__PURE__ */ x(async function(t, e, r) { var L, $, k, P, M, N, D; YC(); const n = DN(e); e = n.code; const i = Ai(); - H.debug(i), e.length > ((L = i == null ? void 0 : i.maxTextSize) != null ? L : zAt) && (e = QAt); + H.debug(i), e.length > ((L = i == null ? void 0 : i.maxTextSize) != null ? L : QAt) && (e = UAt); const s = "#" + t, a = "i" + t, o = "#" + a, l = "d" + t, u = "#" + l, h = /* @__PURE__ */ x(() => { const F = ht(d ? o : u).node(); F && "remove" in F && F.remove(); }, "removeTempElements"); let f = ht("body"); - const d = i.securityLevel === UAt, p = i.securityLevel === VAt, g = i.fontFamily; + const d = i.securityLevel === VAt, p = i.securityLevel === qAt, g = i.fontFamily; if (r !== void 0) { if (r && (r.innerHTML = ""), d) { const I = kL(ht(r), a); f = ht(I.nodes()[0].contentDocument.body), f.node().style.margin = 0; } else f = ht(r); - CY(f, t, l, `font-family: ${g}`, YAt); + CY(f, t, l, `font-family: ${g}`, WAt); } else { - if (s7t(document, t, l, a), d) { + if (a7t(document, t, l, a), d) { const I = kL(ht("body"), a); f = ht(I.nodes()[0].contentDocument.body), f.node().style.margin = 0; } else @@ -48241,25 +48241,25 @@ var s7t = /* @__PURE__ */ x((t, e, r, n) => { throw h(), I; m = await oL.fromText("error"), v = I; } - const y = f.select(u).node(), b = m.type, w = y.firstChild, O = w.firstChild, S = (k = ($ = m.renderer).getClasses) == null ? void 0 : k.call($, e, m), C = r7t(i, b, S, s), T = document.createElement("style"); + const y = f.select(u).node(), b = m.type, w = y.firstChild, O = w.firstChild, S = (k = ($ = m.renderer).getClasses) == null ? void 0 : k.call($, e, m), C = n7t(i, b, S, s), T = document.createElement("style"); T.innerHTML = C, w.insertBefore(T, O); try { await m.renderer.draw(e, t, tL, m); } catch (I) { - throw i.suppressErrorRendering ? h() : Z_t.draw(e, t, tL), I; + throw i.suppressErrorRendering ? h() : j_t.draw(e, t, tL), I; } const A = f.select(`${u} svg`), E = (M = (P = m.db).getAccTitle) == null ? void 0 : M.call(P), R = (D = (N = m.db).getAccDescription) == null ? void 0 : D.call(N); - xhe(b, A, E, R), f.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns", WAt); + xhe(b, A, E, R), f.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns", GAt); let _ = f.select(u).node().innerHTML; - if (H.debug("config.arrowMarkerAbsolute", i.arrowMarkerAbsolute), _ = n7t(_, d, Pn(i.arrowMarkerAbsolute)), d) { + if (H.debug("config.arrowMarkerAbsolute", i.arrowMarkerAbsolute), _ = i7t(_, d, Pn(i.arrowMarkerAbsolute)), d) { const I = f.select(u + " svg").node(); - _ = i7t(_, I); + _ = s7t(_, I); } else p || (_ = Em.sanitize(_, { - ADD_TAGS: JAt, - ADD_ATTR: e7t + ADD_TAGS: e7t, + ADD_ATTR: t7t })); - if (_6t(), v) + if (A6t(), v) throw v; return h(), { diagramType: b, @@ -48270,10 +48270,10 @@ var s7t = /* @__PURE__ */ x((t, e, r, n) => { function yhe(t = {}) { var n; const e = Ui({}, t); - (e == null ? void 0 : e.fontFamily) && !((n = e.themeVariables) != null && n.fontFamily) && (e.themeVariables || (e.themeVariables = {}), e.themeVariables.fontFamily = e.fontFamily), t2t(e), (e == null ? void 0 : e.theme) && e.theme in rh ? e.themeVariables = rh[e.theme].getThemeVariables( + (e == null ? void 0 : e.fontFamily) && !((n = e.themeVariables) != null && n.fontFamily) && (e.themeVariables || (e.themeVariables = {}), e.themeVariables.fontFamily = e.fontFamily), r2t(e), (e == null ? void 0 : e.theme) && e.theme in rh ? e.themeVariables = rh[e.theme].getThemeVariables( e.themeVariables ) : e && (e.themeVariables = rh.default.getThemeVariables(e.themeVariables)); - const r = typeof e == "object" ? e2t(e) : rae(); + const r = typeof e == "object" ? t2t(e) : rae(); DP(r.logLevel), YC(); } x(yhe, "initialize"); @@ -48286,14 +48286,14 @@ function xhe(t, e, r, n) { } x(xhe, "addA11yInfo"); var H0 = Object.freeze({ - render: a7t, + render: o7t, parse: vhe, getDiagramFromText: bhe, initialize: yhe, getConfig: Ai, setConfig: nae, getSiteConfig: rae, - updateSiteConfig: r2t, + updateSiteConfig: n2t, reset: /* @__PURE__ */ x(() => { f3(); }, "reset"), @@ -48304,7 +48304,7 @@ var H0 = Object.freeze({ }); DP(Ai().logLevel); f3(Ai()); -var o7t = /* @__PURE__ */ x((t, e, r) => { +var l7t = /* @__PURE__ */ x((t, e, r) => { H.warn(t), uN(t) ? (r && r(t.str, t.hash), e.push({ ...t, message: t.str, error: t })) : (r && r(t), t instanceof Error && e.push({ str: t.message, message: t.message, @@ -48315,12 +48315,12 @@ var o7t = /* @__PURE__ */ x((t, e, r) => { querySelector: ".mermaid" }) { try { - await l7t(t); + await c7t(t); } catch (e) { if (uN(e) && H.error(e.str), Ao.parseError && Ao.parseError(e), !t.suppressErrors) throw H.error("Use the suppressErrors option to suppress these errors"), e; } -}, "run"), l7t = /* @__PURE__ */ x(async function({ postRenderCallback: t, querySelector: e, nodes: r } = { +}, "run"), c7t = /* @__PURE__ */ x(async function({ postRenderCallback: t, querySelector: e, nodes: r } = { querySelector: ".mermaid" }) { const n = H0.getConfig(); @@ -48333,7 +48333,7 @@ var o7t = /* @__PURE__ */ x((t, e, r) => { else throw new Error("Nodes and querySelector are both undefined"); H.debug(`Found ${i.length} diagrams`), (n == null ? void 0 : n.startOnLoad) !== void 0 && (H.debug("Start On Load: " + (n == null ? void 0 : n.startOnLoad)), H0.updateSiteConfig({ startOnLoad: n == null ? void 0 : n.startOnLoad })); - const s = new gr.InitIDGenerator(n.deterministicIds, n.deterministicIDSeed); + const s = new mr.InitIDGenerator(n.deterministicIds, n.deterministicIDSeed); let a; const o = []; for (const l of Array.from(i)) { @@ -48341,28 +48341,28 @@ var o7t = /* @__PURE__ */ x((t, e, r) => { continue; l.setAttribute("data-processed", "true"); const u = `mermaid-${s.next()}`; - a = l.innerHTML, a = mle(gr.entityDecode(a)).trim().replace(//gi, "
"); - const h = gr.detectInit(a); + a = l.innerHTML, a = mle(mr.entityDecode(a)).trim().replace(//gi, "
"); + const h = mr.detectInit(a); h && H.debug("Detected early reinit: ", h); try { const { svg: f, bindFunctions: d } = await The(u, a, l); l.innerHTML = f, t && await t(u), d && d(l); } catch (f) { - o7t(f, o, Ao.parseError); + l7t(f, o, Ao.parseError); } } if (o.length > 0) throw o[0]; }, "runThrowsErrors"), Ohe = /* @__PURE__ */ x(function(t) { H0.initialize(t); -}, "initialize"), c7t = /* @__PURE__ */ x(async function(t, e, r) { +}, "initialize"), u7t = /* @__PURE__ */ x(async function(t, e, r) { H.warn("mermaid.init is deprecated. Please use run instead."), t && Ohe(t); const n = { postRenderCallback: r, querySelector: ".mermaid" }; typeof e == "string" ? n.querySelector = e : e && (e instanceof HTMLElement ? n.nodes = [e] : n.nodes = e), await whe(n); -}, "init"), u7t = /* @__PURE__ */ x(async (t, { +}, "init"), h7t = /* @__PURE__ */ x(async (t, { lazyLoad: e = !0 } = {}) => { - YC(), jse(...t), e === !1 && await C6t(); + YC(), jse(...t), e === !1 && await E6t(); }, "registerExternalDiagrams"), khe = /* @__PURE__ */ x(function() { if (Ao.startOnLoad) { const { startOnLoad: t } = H0.getConfig(); @@ -48370,7 +48370,7 @@ var o7t = /* @__PURE__ */ x((t, e, r) => { } }, "contentLoaded"); typeof document < "u" && window.addEventListener("load", khe, !1); -var h7t = /* @__PURE__ */ x(function(t) { +var f7t = /* @__PURE__ */ x(function(t) { Ao.parseError = t; }, "setParseErrorHandler"), eS = [], hA = !1, She = /* @__PURE__ */ x(async () => { if (!hA) { @@ -48385,7 +48385,7 @@ var h7t = /* @__PURE__ */ x(function(t) { } hA = !1; } -}, "executeQueue"), f7t = /* @__PURE__ */ x(async (t, e) => new Promise((r, n) => { +}, "executeQueue"), d7t = /* @__PURE__ */ x(async (t, e) => new Promise((r, n) => { const i = /* @__PURE__ */ x(() => new Promise((s, a) => { H0.parse(t, e).then( (o) => { @@ -48414,16 +48414,16 @@ var h7t = /* @__PURE__ */ x(function(t) { }), "render"), Ao = { startOnLoad: !0, mermaidAPI: H0, - parse: f7t, + parse: d7t, render: The, - init: c7t, + init: u7t, run: whe, - registerExternalDiagrams: u7t, + registerExternalDiagrams: h7t, registerLayoutLoaders: jle, initialize: Ohe, parseError: void 0, contentLoaded: khe, - setParseErrorHandler: h7t, + setParseErrorHandler: f7t, detectType: PP, registerIconPacks: pae }, EY = Ao; @@ -48436,7 +48436,7 @@ var h7t = /* @__PURE__ */ x(function(t) { js-yaml/dist/js-yaml.mjs: (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *) */ -const d7t = (t, { +const p7t = (t, { lineMap: e, parent: r }) => { @@ -48501,7 +48501,7 @@ ${C}`, S.classList.remove("mermaid"); id: "refresh", tooltip: "Refresh issue links" } -}, fg = [Uv.fullscreen, Uv.copyHtml, Uv.refresh, Uv.printToPdf, Uv.templateManager], p7t = { +}, fg = [Uv.fullscreen, Uv.copyHtml, Uv.refresh, Uv.printToPdf, Uv.templateManager], g7t = { id: "", title: "", mode: "Both", @@ -48536,7 +48536,7 @@ ${C}`, S.classList.remove("mermaid"); }; function Che(t) { const e = { - ...p7t, + ...g7t, ...t }, r = { parent: e.parent, @@ -48637,8 +48637,8 @@ var Ehe = { exports: {} }; } : G(!1), _e = oe("length"); function Pe(j, ce) { ce = function(Ze) { - for (var lt = {}, hr = Ze.length, vr = 0; vr < hr; ++vr) - lt[Ze[vr]] = !0; + for (var lt = {}, hr = Ze.length, yr = 0; yr < hr; ++yr) + lt[Ze[yr]] = !0; return { contains: function(xn) { return lt[xn] === !0; }, push: function(xn) { @@ -48690,7 +48690,7 @@ var Ehe = { exports: {} }; if (j != j) return ce != ce; var qe = typeof j; - return (qe === "function" || qe === "object" || typeof ce == "object") && function ze(Ze, lt, hr, vr) { + return (qe === "function" || qe === "object" || typeof ce == "object") && function ze(Ze, lt, hr, yr) { Ze instanceof Ge && (Ze = Ze._wrapped), lt instanceof Ge && (lt = lt._wrapped); var xn = u.call(Ze); if (xn !== u.call(lt)) @@ -48713,7 +48713,7 @@ var Ehe = { exports: {} }; return a.valueOf.call(Ze) === a.valueOf.call(lt); case "[object ArrayBuffer]": case de: - return ze(Ie(Ze), Ie(lt), hr, vr); + return ze(Ie(Ze), Ie(lt), hr, yr); } var ga = xn === "[object Array]"; if (!ga && he(Ze)) { @@ -48730,25 +48730,25 @@ var Ehe = { exports: {} }; if (Cd !== Ed && !(F(Cd) && Cd instanceof Cd && F(Ed) && Ed instanceof Ed) && "constructor" in Ze && "constructor" in lt) return !1; } - vr = vr || []; + yr = yr || []; for (var Cl = (hr = hr || []).length; Cl--; ) if (hr[Cl] === Ze) - return vr[Cl] === lt; - if (hr.push(Ze), vr.push(lt), ga) { + return yr[Cl] === lt; + if (hr.push(Ze), yr.push(lt), ga) { if ((Cl = Ze.length) !== lt.length) return !1; for (; Cl--; ) - if (!X(Ze[Cl], lt[Cl], hr, vr)) + if (!X(Ze[Cl], lt[Cl], hr, yr)) return !1; } else { var Kw, PB = He(Ze); if (Cl = PB.length, He(lt).length !== Cl) return !1; for (; Cl--; ) - if (Kw = PB[Cl], !te(lt, Kw) || !X(Ze[Kw], lt[Kw], hr, vr)) + if (Kw = PB[Cl], !te(lt, Kw) || !X(Ze[Kw], lt[Kw], hr, yr)) return !1; } - return hr.pop(), vr.pop(), !0; + return hr.pop(), yr.pop(), !0; }(j, ce, Oe, Ae); } function le(j) { @@ -48797,8 +48797,8 @@ var Ehe = { exports: {} }; return Oe; for (var qe = 1; qe < Ae; qe++) for (var ze = arguments[qe], Ze = j(ze), lt = Ze.length, hr = 0; hr < lt; hr++) { - var vr = Ze[hr]; - ce && Oe[vr] !== void 0 || (Oe[vr] = ze[vr]); + var yr = Ze[hr]; + ce && Oe[yr] !== void 0 || (Oe[yr] = ze[yr]); } return Oe; }; @@ -48935,7 +48935,7 @@ var Ehe = { exports: {} }; if (ce > 1) er(lt, ce - 1, Oe, Ae), qe = Ae.length; else - for (var hr = 0, vr = lt.length; hr < vr; ) + for (var hr = 0, yr = lt.length; hr < yr; ) Ae[qe++] = lt[hr++]; else Oe || (Ae[qe++] = lt); @@ -48956,7 +48956,7 @@ var Ehe = { exports: {} }; return j.apply(null, Oe); }, ce); }), me = Et(bn, Ge, 1); - function mr(j) { + function vr(j) { return function() { return !j.apply(this, arguments); }; @@ -49036,8 +49036,8 @@ var Ehe = { exports: {} }; var ce = function(Oe, Ae, qe, ze) { var Ze = !rt(Oe) && He(Oe), lt = (Ze || Oe).length, hr = j > 0 ? 0 : lt - 1; for (ze || (qe = Oe[Ze ? Ze[hr] : hr], hr += j); hr >= 0 && hr < lt; hr += j) { - var vr = Ze ? Ze[hr] : hr; - qe = Ae(qe, Oe[vr], vr, Oe); + var yr = Ze ? Ze[hr] : hr; + qe = Ae(qe, Oe[yr], yr, Oe); } return qe; }; @@ -49095,14 +49095,14 @@ var Ehe = { exports: {} }; for (var lt = 0, hr = (j = rt(j) ? j : tt(j)).length; lt < hr; lt++) (Ae = j[lt]) != null && Ae > ze && (ze = Ae); else - ce = Bt(ce, Oe), $n(j, function(vr, xn, ga) { - ((qe = ce(vr, xn, ga)) > Ze || qe === -1 / 0 && ze === -1 / 0) && (ze = vr, Ze = qe); + ce = Bt(ce, Oe), $n(j, function(yr, xn, ga) { + ((qe = ce(yr, xn, ga)) > Ze || qe === -1 / 0 && ze === -1 / 0) && (ze = yr, Ze = qe); }); return ze; } - var U2e = /[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g; + var V2e = /[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g; function _B(j) { - return j ? Y(j) ? l.call(j) : _(j) ? j.match(U2e) : rt(j) ? da(j, At) : tt(j) : []; + return j ? Y(j) ? l.call(j) : _(j) ? j.match(V2e) : rt(j) ? da(j, At) : tt(j) : []; } function AB(j, ce, Oe) { if (ce == null || Oe) @@ -49124,31 +49124,31 @@ var Ehe = { exports: {} }; }), ze; }; } - var V2e = Zw(function(j, ce, Oe) { + var q2e = Zw(function(j, ce, Oe) { te(j, Oe) ? j[Oe].push(ce) : j[Oe] = [ce]; - }), q2e = Zw(function(j, ce, Oe) { - j[Oe] = ce; }), Y2e = Zw(function(j, ce, Oe) { - te(j, Oe) ? j[Oe]++ : j[Oe] = 1; + j[Oe] = ce; }), W2e = Zw(function(j, ce, Oe) { + te(j, Oe) ? j[Oe]++ : j[Oe] = 1; + }), G2e = Zw(function(j, ce, Oe) { j[Oe ? 0 : 1].push(ce); }, !0); - function G2e(j, ce, Oe) { + function X2e(j, ce, Oe) { return ce in Oe; } var LB = C(function(j, ce) { var Oe = {}, Ae = ce[0]; if (j == null) return Oe; - F(Ae) ? (ce.length > 1 && (Ae = yt(Ae, ce[1])), ce = le(j)) : (Ae = G2e, ce = er(ce, !1, !1), j = Object(j)); + F(Ae) ? (ce.length > 1 && (Ae = yt(Ae, ce[1])), ce = le(j)) : (Ae = X2e, ce = er(ce, !1, !1), j = Object(j)); for (var qe = 0, ze = ce.length; qe < ze; qe++) { var Ze = ce[qe], lt = j[Ze]; Ae(lt, Ze, j) && (Oe[Ze] = lt); } return Oe; - }), X2e = C(function(j, ce) { + }), H2e = C(function(j, ce) { var Oe, Ae = ce[0]; - return F(Ae) ? (Ae = mr(Ae), ce.length > 1 && (Oe = ce[1])) : (ce = da(er(ce, !1, !1), String), Ae = function(qe, ze) { + return F(Ae) ? (Ae = vr(Ae), ce.length > 1 && (Oe = ce[1])) : (ce = da(er(ce, !1, !1), String), Ae = function(qe, ze) { return !Fa(ce, ze); }), LB(j, Ae, Oe); }); @@ -49165,18 +49165,18 @@ var Ehe = { exports: {} }; return ce = er(ce, !0, !0), Tl(j, function(Oe) { return !Fa(ce, Oe); }); - }), H2e = C(function(j, ce) { + }), Z2e = C(function(j, ce) { return MB(j, ce); }); function o_(j, ce, Oe, Ae) { E(ce) || (Ae = Oe, Oe = ce, ce = !1), Oe != null && (Oe = Bt(Oe, Ae)); for (var qe = [], ze = [], Ze = 0, lt = _e(j); Ze < lt; Ze++) { - var hr = j[Ze], vr = Oe ? Oe(hr, Ze, j) : hr; - ce && !Oe ? (Ze && ze === vr || qe.push(hr), ze = vr) : Oe ? Fa(ze, vr) || (ze.push(vr), qe.push(hr)) : Fa(qe, hr) || qe.push(hr); + var hr = j[Ze], yr = Oe ? Oe(hr, Ze, j) : hr; + ce && !Oe ? (Ze && ze === yr || qe.push(hr), ze = yr) : Oe ? Fa(ze, yr) || (ze.push(yr), qe.push(hr)) : Fa(qe, hr) || qe.push(hr); } return qe; } - var Z2e = C(function(j) { + var j2e = C(function(j) { return o_(er(j, !0, !0)); }); function l_(j) { @@ -49184,7 +49184,7 @@ var Ehe = { exports: {} }; Oe[Ae] = ds(j, Ae); return Oe; } - var j2e = C(l_); + var K2e = C(l_); function c_(j, ce) { return j._chain ? Ge(ce).chain() : ce; } @@ -49262,14 +49262,14 @@ var Ehe = { exports: {} }; }, random: ir, now: Zr, escape: Ar, unescape: _n, templateSettings: Je, template: function(j, ce, Oe) { !ce && Oe && (ce = Oe), ce = gt({}, ce, Ge.templateSettings); var Ae = RegExp([(ce.escape || ne).source, (ce.interpolate || ne).source, (ce.evaluate || ne).source].join("|") + "|$", "g"), qe = 0, ze = "__p+='"; - j.replace(Ae, function(vr, xn, ga, Cd, Ed) { - return ze += j.slice(qe, Ed).replace(Xe, Ft), qe = Ed + vr.length, xn ? ze += `'+ + j.replace(Ae, function(yr, xn, ga, Cd, Ed) { + return ze += j.slice(qe, Ed).replace(Xe, Ft), qe = Ed + yr.length, xn ? ze += `'+ ((__t=(` + xn + `))==null?'':_.escape(__t))+ '` : ga ? ze += `'+ ((__t=(` + ga + `))==null?'':__t)+ '` : Cd && (ze += `'; ` + Cd + ` -__p+='`), vr; +__p+='`), yr; }), ze += `'; `; var Ze, lt = ce.variable; @@ -49285,11 +49285,11 @@ __p+='`), vr; `; try { Ze = new Function(lt, "_", ze); - } catch (vr) { - throw vr.source = ze, vr; + } catch (yr) { + throw yr.source = ze, yr; } - var hr = function(vr) { - return Ze.call(this, vr, Ge); + var hr = function(yr) { + return Ze.call(this, yr, Ge); }; return hr.source = "function(" + lt + `){ ` + ze + "}", hr; @@ -49319,28 +49319,28 @@ __p+='`), vr; Oe || (Oe = {}); var hr = function() { lt = Oe.leading === !1 ? 0 : Zr(), Ae = null, Ze = j.apply(qe, ze), Ae || (qe = ze = null); - }, vr = function() { + }, yr = function() { var xn = Zr(); lt || Oe.leading !== !1 || (lt = xn); var ga = ce - (xn - lt); return qe = this, ze = arguments, ga <= 0 || ga > ce ? (Ae && (clearTimeout(Ae), Ae = null), lt = xn, Ze = j.apply(qe, ze), Ae || (qe = ze = null)) : Ae || Oe.trailing === !1 || (Ae = setTimeout(hr, ga)), Ze; }; - return vr.cancel = function() { + return yr.cancel = function() { clearTimeout(Ae), lt = 0, Ae = qe = ze = null; - }, vr; + }, yr; }, debounce: function(j, ce, Oe) { var Ae, qe, ze, Ze, lt, hr = function() { var xn = Zr() - qe; ce > xn ? Ae = setTimeout(hr, ce - xn) : (Ae = null, Oe || (Ze = j.apply(lt, ze)), Ae || (ze = lt = null)); - }, vr = C(function(xn) { + }, yr = C(function(xn) { return lt = this, ze = xn, qe = Zr(), Ae || (Ae = setTimeout(hr, ce), Oe && (Ze = j.apply(lt, ze))), Ze; }); - return vr.cancel = function() { + return yr.cancel = function() { clearTimeout(Ae), Ae = ze = lt = null; - }, vr; + }, yr; }, wrap: function(j, ce) { return Et(ce, j); - }, negate: mr, compose: function() { + }, negate: vr, compose: function() { var j = arguments, ce = j.length - 1; return function() { for (var Oe = ce, Ae = j[ce].apply(this, arguments); Oe--; ) @@ -49355,7 +49355,7 @@ __p+='`), vr; }, before: Ba, once: zs, findKey: hv, findIndex: jn, findLastIndex: xc, sortedIndex: Up, indexOf: Hw, lastIndexOf: s_, find: qp, detect: qp, findWhere: function(j, ce) { return qp(j, ft(ce)); }, each: $n, forEach: $n, map: da, collect: da, reduce: Td, foldl: Td, inject: Td, reduceRight: Ru, foldr: Ru, filter: Tl, select: Tl, reject: function(j, ce, Oe) { - return Tl(j, mr(Bt(ce)), Oe); + return Tl(j, vr(Bt(ce)), Oe); }, every: Qo, all: Qo, some: fv, any: fv, contains: Fa, includes: Fa, include: Fa, invoke: dv, pluck: ds, where: function(j, ce) { return Tl(j, ft(ce)); }, max: EB, min: function(j, ce, Oe) { @@ -49364,8 +49364,8 @@ __p+='`), vr; for (var lt = 0, hr = (j = rt(j) ? j : tt(j)).length; lt < hr; lt++) (Ae = j[lt]) != null && Ae < ze && (ze = Ae); else - ce = Bt(ce, Oe), $n(j, function(vr, xn, ga) { - ((qe = ce(vr, xn, ga)) < Ze || qe === 1 / 0 && ze === 1 / 0) && (ze = vr, Ze = qe); + ce = Bt(ce, Oe), $n(j, function(yr, xn, ga) { + ((qe = ce(yr, xn, ga)) < Ze || qe === 1 / 0 && ze === 1 / 0) && (ze = yr, Ze = qe); }); return ze; }, shuffle: function(j) { @@ -49384,15 +49384,15 @@ __p+='`), vr; } return qe.index - ze.index; }), "value"); - }, groupBy: V2e, indexBy: q2e, countBy: Y2e, partition: W2e, toArray: _B, size: function(j) { + }, groupBy: q2e, indexBy: Y2e, countBy: W2e, partition: G2e, toArray: _B, size: function(j) { return j == null ? 0 : rt(j) ? j.length : He(j).length; - }, pick: LB, omit: X2e, first: a_, head: a_, take: a_, initial: RB, last: function(j, ce, Oe) { + }, pick: LB, omit: H2e, first: a_, head: a_, take: a_, initial: RB, last: function(j, ce, Oe) { return j == null || j.length < 1 ? ce == null || Oe ? void 0 : [] : ce == null || Oe ? j[j.length - 1] : jw(j, Math.max(0, j.length - ce)); }, rest: jw, tail: jw, drop: jw, compact: function(j) { return Tl(j, Boolean); }, flatten: function(j, ce) { return er(j, ce, !1); - }, without: H2e, uniq: o_, unique: o_, union: Z2e, intersection: function(j) { + }, without: Z2e, uniq: o_, unique: o_, union: j2e, intersection: function(j) { for (var ce = [], Oe = arguments.length, Ae = 0, qe = _e(j); Ae < qe; Ae++) { var ze = j[Ae]; if (!Fa(ce, ze)) { @@ -49403,7 +49403,7 @@ __p+='`), vr; } } return ce; - }, difference: MB, unzip: l_, transpose: l_, zip: j2e, object: function(j, ce) { + }, difference: MB, unzip: l_, transpose: l_, zip: K2e, object: function(j, ce) { for (var Oe = {}, Ae = 0, qe = _e(j); Ae < qe; Ae++) ce ? Oe[j[Ae]] = ce[Ae] : Oe[j[Ae][0]] = j[Ae][1]; return Oe; @@ -49449,10 +49449,10 @@ Ahe = function(t, e, r) { } }; }; -var g7t = function(t, e) { +var m7t = function(t, e) { t.core.ruler.push("checkbox", Ahe(t, e)); }; -function m7t(t) { +function v7t(t) { t.block.ruler.at("fence", (e, r, n, i) => { let s = e.bMarks[r] + e.tShift[r], a = e.eMarks[r]; if (e.sCount[r] - e.blkIndent >= 4 || s + 3 > a) @@ -49481,20 +49481,20 @@ function m7t(t) { return g.info = f, g.content = e.getLines(r + 1, d, u, !0), g.markup = h, g.map = [r, e.line], !0; }); } -const v7t = ["src", "href"], _Y = (t, e) => { - for (const r of v7t) { +const y7t = ["src", "href"], _Y = (t, e) => { + for (const r of y7t) { const n = t.attrGet(r); n && t.attrSet(r, e(t.tag, n)); } }; -function y7t(t) { +function b7t(t) { t.core.ruler.after("inline", "map_urls", (e) => { var r, n; for (const i of e.tokens) _Y(i, e.env.mapUrl), (n = (r = i.children) == null ? void 0 : r.forEach) == null || n.call(r, (s) => _Y(s, e.env.mapUrl)); }); } -const b7t = { +const x7t = { alt: lu, height: vP, width: uC, @@ -49503,18 +49503,18 @@ const b7t = { class: vd, name: lu }; -class x7t extends bP.image { +class w7t extends bP.image { constructor() { super(...arguments); - br(this, "option_spec", { - ...b7t, + fr(this, "option_spec", { + ...x7t, align: hC(["left", "center", "right"]), figwidth: tse, figclass: vd }); - br(this, "has_content", !0); - br(this, "required_arguments", 0); - br(this, "optional_arguments", 1); + fr(this, "has_content", !0); + fr(this, "required_arguments", 0); + fr(this, "optional_arguments", 1); } run(r) { const n = this.createToken("figure_open", "figure", 1, { @@ -49523,30 +49523,33 @@ class x7t extends bP.image { }); r.options.figclass && n.attrJoin("class", r.options.figclass.join(" ")), r.options.align && n.attrJoin("class", `align-${r.options.align}`), r.options.figwidth && r.options.figwidth !== "image" && n.attrSet("width", r.options.figwidth); let i; - r.args.length > 0 && (i = w7t(this.state, n, "fig", r.args[0], r.body.trim()), n.attrJoin("class", "numbered")); + r.args.length > 0 && (i = Lhe(this.state, n, "fig", r.args[0], r.body.trim()), n.attrJoin("class", "numbered")); let s = [], a = [], o = null; if (r.body) { o = this.state.md.parseInline(r.body.split(` `)[0], this.state.env)[0].children[0], o.map = r.map, r.options.height && o.attrSet("height", r.options.height), r.options.width && o.attrSet("width", r.options.width), r.options.align && o.attrJoin("class", `align-${r.options.align}`), r.options.class && o.attrJoin("class", r.options.class.join(" ")); - const [u, ...h] = r.body.split(` + const u = r.body.split(` -`).slice(1), f = h.join(` +`); + if (u.length > 1) { + const [h, ...f] = u.slice(1), d = f.join(` -`), d = r.bodyMap[0] + 2, p = this.createToken("figure_caption_open", "figcaption", 1, { - block: !0 - }); - i && p.attrSet("number", `${i.number}`); - const g = this.nestedParse(u, d), m = this.createToken("figure_caption_close", "figcaption", -1, { - block: !0 - }); - if (s = [p, ...g, m], f) { - const v = d + u.split(` -`).length + 1, y = this.createToken("figure_legend_open", "", 1, { +`), p = r.bodyMap[0] + 2, g = this.createToken("figure_caption_open", "figcaption", 1, { block: !0 - }), b = this.nestedParse(f, v), w = this.createToken("figure_legend_close", "", -1, { + }); + i && g.attrSet("number", `${i.number}`); + const m = this.nestedParse(h, p), v = this.createToken("figure_caption_close", "figcaption", -1, { block: !0 }); - a = [y, ...b, w]; + if (s = [g, ...m, v], d) { + const y = p + h.split(` +`).length + 1, b = this.createToken("figure_legend_open", "", 1, { + block: !0 + }), w = this.nestedParse(d, y), O = this.createToken("figure_legend_close", "", -1, { + block: !0 + }); + a = [b, ...w, O]; + } } } const l = this.createToken("figure_close", "figure", -1, { @@ -49555,8 +49558,8 @@ class x7t extends bP.image { return [n, o, ...s, ...a, l]; } } -function w7t(t, e, r, n, i, s = !1) { - const a = Lhe(t), o = O7t(t, r), l = { +function Lhe(t, e, r, n, i, s = !1) { + const a = Rhe(t), o = O7t(t, r), l = { label: n, kind: r, number: o, @@ -49568,13 +49571,13 @@ function w7t(t, e, r, n, i, s = !1) { } return l; } -function Lhe(t) { +function Rhe(t) { var r, n; const e = (n = (r = t.env) == null ? void 0 : r.docutils) != null ? n : {}; return e.targets || (e.targets = {}), e.references || (e.references = []), e.numbering || (e.numbering = {}), t.env.docutils || (t.env.docutils = e), e; } function O7t(t, e) { - const r = Lhe(t); + const r = Rhe(t); return r.numbering[e] == null ? r.numbering[e] = 1 : r.numbering[e] += 1, r.numbering[e]; } function k7t(t) { @@ -49582,8 +49585,41 @@ function k7t(t) { const e = (n = (r = t.meta) == null ? void 0 : r.docutils) != null ? n : {}; return t.meta || (t.meta = {}), t.meta.docutils || (t.meta.docutils = e), e; } -const S7t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length; -function T7t(t) { +class S7t extends Dh { + constructor() { + super(...arguments); + fr(this, "optional_arguments", 1); + fr(this, "has_content", !0); + fr(this, "final_argument_whitespace", !0); + } + run(r) { + const n = this.nestedParse(r.body, r.map); + let i = [], s = []; + if (r.args.length > 0) { + const a = this.createToken("figure_open", "figure", 1, { + map: r.map, + block: !0 + }), o = Lhe(this.state, a, "fig", r.args[0], r.body.trim()); + a.attrJoin("class", "numbered"); + const l = this.createToken("figure_caption_open", "figcaption", 1, { + block: !0 + }); + l.attrSet("style", "text-align: left"), o && l.attrSet("number", `${o.number}`); + const u = this.nestedParse(r.args[0], r.map[0]), h = this.createToken("figure_caption_close", "figcaption", -1, { + block: !0 + }); + i = [a, l, ...u, h], s = [this.createToken("figure_close", "figure", -1, { + block: !0 + })]; + } + return [...i, ...n, ...s]; + } +} +const T7t = { + "figure-md": w7t, + table: S7t +}, C7t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length; +function E7t(t) { const e = t.renderer.rules.link_open; t.renderer.rules.link_open = (r, n, i, s, a) => { var l, u; @@ -49595,9 +49631,9 @@ function T7t(t) { return e(r, n, i, s, a); }; } -const C7t = (t, e) => () => { +const _7t = (t, e) => () => { window.myst_editor[e].text = t; -}, E7t = async (t) => { +}, A7t = async (t) => { const r = new DOMParser().parseFromString(t, "text/html"); r.querySelectorAll("[data-line-id]").forEach((i) => i.removeAttribute("data-line-id")), r.querySelectorAll("span").forEach((i) => { i.attributes.length === 0 && (i.insertAdjacentHTML("afterend", i.innerHTML), i.remove()); @@ -49611,7 +49647,7 @@ const C7t = (t, e) => () => { type: "text/html" }) })]); -}, tS = or.define(), _7t = ({ +}, tS = or.define(), L7t = ({ preview: t }) => { const { @@ -49634,20 +49670,20 @@ const C7t = (t, e) => () => { const T = y(w, C, S); return T.length !== b.length || O ? ([...t.current.childNodes].filter((E) => !E.classList || !E.classList.contains("cm-previewFocus")).forEach((E) => t.current.removeChild(E)), t.current.innerHTML += T.map((E) => `` + E.html + "").join(""), T) : (T.filter((A, E) => A.hash !== b[E].hash).forEach((A) => t.current.querySelector("html-chunk#html-chunk-" + A.id).innerHTML = A.html), T); }, []), m = T0(() => { - const b = Pvt({ + const b = Nvt({ breaks: !0, linkify: !0, html: !0 - }).use(rRe, { + }).use(nRe, { directives: { ...bP, - "figure-md": x7t + ...T7t } - }).use(Ivt(n.transforms.value, n.parent, r.transform)).use(Bvt(n.customRoles.value, n.parent, r.transform)).use(zvt(n.customDirectives.value, n.parent, r.transform)).use(d7t, { + }).use($vt(n.transforms.value, n.parent, r.transform)).use(Fvt(n.customRoles.value, n.parent, r.transform)).use(Qvt(n.customDirectives.value, n.parent, r.transform)).use(p7t, { lineMap: d, parent: n.parent - }).use(Uvt).use(T7t).use(m7t).use(y7t).use(g7t); - return n.backslashLineBreak.value && b.use(Qvt), b; + }).use(Vvt).use(E7t).use(v7t).use(b7t).use(m7t); + return n.backslashLineBreak.value && b.use(Uvt), b; }), v = uk((b) => { if (b.startState.doc.lines === b.state.doc.lines) return; @@ -49669,7 +49705,7 @@ const C7t = (t, e) => () => { `).length); const E = A + S.trimLeft().split(` `).length - 1; - return S7t(T == null ? void 0 : T.md, /\n```/g) % 2 != 0 ? O[C] = { + return C7t(T == null ? void 0 : T.md, /\n```/g) % 2 != 0 ? O[C] = { md: T.md + S, startLine: T.startLine, endLine: E @@ -49708,7 +49744,7 @@ const C7t = (t, e) => () => { }), [m.value, n.id.value, n.mapUrl.value]); return ri(() => a && g({ newMarkdown: i - }), [a]), ri(C7t(i, n.id.value), [i]), ri(() => { + }), [a]), ri(_7t(i, n.id.value), [i]), ri(() => { l && (h.action(i), u(!1)); }, [l]), ri(() => { if (t.current == null) @@ -49768,12 +49804,12 @@ const C7t = (t, e) => () => { o(!0); }, async copy() { - await E7t(y(window.myst_editor[n.id.value].text, {}, []).map((b) => b.html).join(` + await A7t(y(window.myst_editor[n.id.value].text, {}, []).map((b) => b.html).join(` `)); }, lineMap: d }; -}, Rhe = 20, A7t = 100, AY = 500, L7t = (t, e, r) => { +}, Mhe = 20, R7t = 100, AY = 500, M7t = (t, e, r) => { let n; return kt.updateListener.of((i) => { const s = i.startState.doc.lineAt(i.startState.selection.main.head).number, a = i.state.doc.lineAt(i.state.selection.main.head).number, o = i.selectionSet && (s !== a || s === 1), l = r.current === null ? AY : performance.now() - r.current, u = i.transactions.some((d) => d.effects.some((p) => p.is(tS))) && l < AY, h = i.geometryChanged && !i.viewportChanged; @@ -49781,7 +49817,7 @@ const C7t = (t, e) => () => { return; function f() { const [d, p] = Nse(a, t, e.current); - d && R7t({ + d && D7t({ view: i.view, matchingLine: p, matchingElem: d, @@ -49789,10 +49825,10 @@ const C7t = (t, e) => () => { preview: e.current }); } - clearTimeout(n), n = setTimeout(f, A7t); + clearTimeout(n), n = setTimeout(f, R7t); }); }; -function R7t({ +function D7t({ view: t, matchingLine: e, matchingElem: r, @@ -49801,18 +49837,18 @@ function R7t({ }) { const s = t.lineBlockAt(t.state.doc.line(e).from), a = i.getBoundingClientRect(), o = t.dom.parentElement; let l = r.getBoundingClientRect(); - const u = s.top + Rhe, h = l.top + i.scrollTop - u - a.top + o.scrollTop; + const u = s.top + Mhe, h = l.top + i.scrollTop - u - a.top + o.scrollTop; i.scrollTo({ top: h, behavior: n }); } -function M7t(t, e, r, n) { +function P7t(t, e, r, n) { let i = t.target.getAttribute("data-line-id"), s = t.target; if (!i) for (; s.tagName !== "HTML-CHUNK"; ) { const f = s.parentElement; - if ([i, s] = D7t(s), i) + if ([i, s] = N7t(s), i) break; s = f; } @@ -49845,7 +49881,7 @@ function M7t(t, e, r, n) { h(); } function LY(t, e, r, n) { - const i = n.lineBlockAt(r.from), s = t.getBoundingClientRect(), a = e.current.getBoundingClientRect(), o = n.dom.parentElement, l = s.top, u = i.top - l + a.top + Rhe, h = Math.sign(o.scrollTop - u), f = 5, d = !(h === 1 && o.scrollTop === 0) && !(h === -1 && o.scrollTop + o.clientHeight >= o.scrollHeight) && Math.abs(o.scrollTop - u) > f; + const i = n.lineBlockAt(r.from), s = t.getBoundingClientRect(), a = e.current.getBoundingClientRect(), o = n.dom.parentElement, l = s.top, u = i.top - l + a.top + Mhe, h = Math.sign(o.scrollTop - u), f = 5, d = !(h === 1 && o.scrollTop === 0) && !(h === -1 && o.scrollTop + o.clientHeight >= o.scrollHeight) && Math.abs(o.scrollTop - u) > f; return o.scrollTo({ top: u, behavior: "smooth" @@ -49854,7 +49890,7 @@ function LY(t, e, r, n) { editorParent: o }; } -function D7t(t) { +function N7t(t) { let e = t; for (; e != null; ) { const r = e.getAttribute("data-line-id"); @@ -49864,7 +49900,7 @@ function D7t(t) { } return [void 0, e]; } -const P7t = (t, e) => kt.updateListener.of((r) => { +const I7t = (t, e) => kt.updateListener.of((r) => { const n = r.startState.doc.lineAt(r.startState.selection.main.head).number, i = r.state.doc.lineAt(r.state.selection.main.head).number, s = r.selectionSet && (n !== i || n === 1), a = r.transactions.some((h) => h.effects.some((f) => f.is(tS))), o = r.geometryChanged && !r.viewportChanged; if (r.docChanged || !s && !a && !o) return; @@ -49877,13 +49913,13 @@ const P7t = (t, e) => kt.updateListener.of((r) => { u.style.left = `${d}px`, u.style.height = `${f.height}px`; } else u.style.height = "0px"; -}), dg = 63, RY = 64, N7t = 1, I7t = 2, Mhe = 3, $7t = 4, Dhe = 5, B7t = 6, F7t = 7, Phe = 65, z7t = 66, Q7t = 8, U7t = 9, V7t = 10, q7t = 11, Y7t = 12, Nhe = 13, W7t = 19, G7t = 20, X7t = 29, H7t = 33, Z7t = 34, j7t = 47, K7t = 0, PN = 1, SL = 2, pb = 3, TL = 4; +}), dg = 63, RY = 64, $7t = 1, B7t = 2, Dhe = 3, F7t = 4, Phe = 5, z7t = 6, Q7t = 7, Nhe = 65, U7t = 66, V7t = 8, q7t = 9, Y7t = 10, W7t = 11, G7t = 12, Ihe = 13, X7t = 19, H7t = 20, Z7t = 29, j7t = 33, K7t = 34, J7t = 47, e8t = 0, PN = 1, SL = 2, pb = 3, TL = 4; class jd { constructor(e, r, n) { this.parent = e, this.depth = r, this.type = n, this.hash = (e ? e.hash + e.hash << 8 : 0) + r + (r << 4) + n; } } -jd.top = new jd(null, -1, K7t); +jd.top = new jd(null, -1, e8t); function Jy(t, e) { for (let r = 0, n = e - t.pos - 1; ; n--, r++) { let i = t.peek(n); @@ -49897,29 +49933,29 @@ function CL(t) { function yh(t) { return t == 10 || t == 13; } -function Ihe(t) { +function $he(t) { return CL(t) || yh(t); } function m0(t) { - return t < 0 || Ihe(t); + return t < 0 || $he(t); } -const J7t = new JD({ +const t8t = new JD({ start: jd.top, reduce(t, e) { - return t.type == pb && (e == G7t || e == Z7t) ? t.parent : t; + return t.type == pb && (e == H7t || e == K7t) ? t.parent : t; }, shift(t, e, r, n) { - if (e == Mhe) + if (e == Dhe) return new jd(t, Jy(n, n.pos), PN); - if (e == Phe || e == Dhe) + if (e == Nhe || e == Phe) return new jd(t, Jy(n, n.pos), SL); if (e == dg) return t.parent; - if (e == W7t || e == H7t) + if (e == X7t || e == j7t) return new jd(t, 0, pb); - if (e == Nhe && t.type == TL) + if (e == Ihe && t.type == TL) return t.parent; - if (e == j7t) { + if (e == J7t) { let i = /[1-9]/.exec(n.read(n.pos, r.pos)); if (i) return new jd(t, t.depth + +i[0], TL); @@ -49933,7 +49969,7 @@ const J7t = new JD({ function Ym(t, e, r = 0) { return t.peek(r) == e && t.peek(r + 1) == e && t.peek(r + 2) == e && m0(t.peek(r + 3)); } -const e8t = new Pa((t, e) => { +const r8t = new Pa((t, e) => { if (t.next == -1 && e.canShift(RY)) return t.acceptToken(RY); let r = t.peek(-1); @@ -49942,26 +49978,26 @@ const e8t = new Pa((t, e) => { if (e.canShift(dg)) t.acceptToken(dg); else - return t.acceptToken(N7t, 3); + return t.acceptToken($7t, 3); if (Ym(t, 46)) if (e.canShift(dg)) t.acceptToken(dg); else - return t.acceptToken(I7t, 3); + return t.acceptToken(B7t, 3); let n = 0; for (; t.next == 32; ) n++, t.advance(); (n < e.context.depth || n == e.context.depth && e.context.type == PN && (t.next != 45 || !m0(t.peek(1)))) && t.next != -1 && !yh(t.next) && t.next != 35 && t.acceptToken(dg, -n); } -}, { contextual: !0 }), t8t = new Pa((t, e) => { +}, { contextual: !0 }), n8t = new Pa((t, e) => { if (e.context.type == pb) { - t.next == 63 && (t.advance(), m0(t.next) && t.acceptToken(F7t)); + t.next == 63 && (t.advance(), m0(t.next) && t.acceptToken(Q7t)); return; } if (t.next == 45) - t.advance(), m0(t.next) && t.acceptToken(e.context.type == PN && e.context.depth == Jy(t, t.pos - 1) ? $7t : Mhe); + t.advance(), m0(t.next) && t.acceptToken(e.context.type == PN && e.context.depth == Jy(t, t.pos - 1) ? F7t : Dhe); else if (t.next == 63) - t.advance(), m0(t.next) && t.acceptToken(e.context.type == SL && e.context.depth == Jy(t, t.pos - 1) ? B7t : Dhe); + t.advance(), m0(t.next) && t.acceptToken(e.context.type == SL && e.context.depth == Jy(t, t.pos - 1) ? z7t : Phe); else { let r = t.pos; for (; ; ) @@ -49970,7 +50006,7 @@ const e8t = new Pa((t, e) => { return; t.advance(); } else if (t.next == 33) - $he(t); + Bhe(t); else if (t.next == 38) EL(t); else if (t.next == 42) { @@ -49981,33 +50017,33 @@ const e8t = new Pa((t, e) => { break; return; } else if (t.next == 91 || t.next == 123) { - if (!n8t(t)) + if (!s8t(t)) return; break; } else { - Bhe(t, !0, !1, 0); + Fhe(t, !0, !1, 0); break; } for (; CL(t.next); ) t.advance(); if (t.next == 58) { - if (t.pos == r && e.canShift(X7t)) + if (t.pos == r && e.canShift(Z7t)) return; let n = t.peek(1); - m0(n) && t.acceptTokenTo(e.context.type == SL && e.context.depth == Jy(t, r) ? z7t : Phe, r); + m0(n) && t.acceptTokenTo(e.context.type == SL && e.context.depth == Jy(t, r) ? U7t : Nhe, r); } } }, { contextual: !0 }); -function r8t(t) { +function i8t(t) { return t > 32 && t < 127 && t != 34 && t != 37 && t != 44 && t != 60 && t != 62 && t != 92 && t != 94 && t != 96 && t != 123 && t != 124 && t != 125; } function MY(t) { return t >= 48 && t <= 57 || t >= 97 && t <= 102 || t >= 65 && t <= 70; } function DY(t, e) { - return t.next == 37 ? (t.advance(), MY(t.next) && t.advance(), MY(t.next) && t.advance(), !0) : r8t(t.next) || e && t.next == 44 ? (t.advance(), !0) : !1; + return t.next == 37 ? (t.advance(), MY(t.next) && t.advance(), MY(t.next) && t.advance(), !0) : i8t(t.next) || e && t.next == 44 ? (t.advance(), !0) : !1; } -function $he(t) { +function Bhe(t) { if (t.advance(), t.next == 60) { for (t.advance(); ; ) if (!DY(t, !0)) { @@ -50047,7 +50083,7 @@ function NN(t, e) { } return !n; } -function n8t(t) { +function s8t(t) { for (let e = [], r = t.pos + 1024; ; ) if (t.next == 91 || t.next == 123) e.push(t.next), t.advance(); @@ -50065,15 +50101,15 @@ function n8t(t) { t.advance(); } } -const i8t = "iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif"; +const a8t = "iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif"; function rS(t) { - return t < 33 ? "u" : t > 125 ? "s" : i8t[t - 33]; + return t < 33 ? "u" : t > 125 ? "s" : a8t[t - 33]; } function fA(t, e) { let r = rS(t); return r != "u" && !(e && r == "f"); } -function Bhe(t, e, r, n) { +function Fhe(t, e, r, n) { if (rS(t.next) == "s" || (t.next == 63 || t.next == 58 || t.next == 45) && fA(t.peek(1), r)) t.advance(); else @@ -50081,7 +50117,7 @@ function Bhe(t, e, r, n) { let i = t.pos; for (; ; ) { let s = t.next, a = 0, o = n + 1; - for (; Ihe(s); ) { + for (; $he(s); ) { if (yh(s)) { if (e) return !1; @@ -50101,15 +50137,15 @@ function Bhe(t, e, r, n) { } return !0; } -const s8t = new Pa((t, e) => { +const o8t = new Pa((t, e) => { if (t.next == 33) - $he(t), t.acceptToken(Y7t); + Bhe(t), t.acceptToken(G7t); else if (t.next == 38 || t.next == 42) { - let r = t.next == 38 ? V7t : q7t; + let r = t.next == 38 ? Y7t : W7t; EL(t), t.acceptToken(r); } else - t.next == 39 || t.next == 34 ? (NN(t, !1), t.acceptToken(U7t)) : Bhe(t, !1, e.context.type == pb, e.context.depth) && t.acceptToken(Q7t); -}), a8t = new Pa((t, e) => { + t.next == 39 || t.next == 34 ? (NN(t, !1), t.acceptToken(q7t)) : Fhe(t, !1, e.context.type == pb, e.context.depth) && t.acceptToken(V7t); +}), l8t = new Pa((t, e) => { let r = e.context.type == TL ? e.context.depth : -1, n = t.pos; e: for (; ; ) { @@ -50127,8 +50163,8 @@ const s8t = new Pa((t, e) => { n = t.pos; } } - t.acceptTokenTo(Nhe, n); -}), o8t = fd({ + t.acceptTokenTo(Ihe, n); +}), c8t = dd({ DirectiveName: Se.keyword, DirectiveContent: Se.attributeValue, "DirectiveEnd DocEnd": Se.meta, @@ -50144,27 +50180,27 @@ const s8t = new Pa((t, e) => { "?": Se.punctuation, "[ ]": Se.squareBracket, "{ }": Se.brace -}), l8t = Vf.deserialize({ +}), u8t = qf.deserialize({ version: 14, states: "5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-sQgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WOaO,59vO/cQgO'#D_OOQR,59x,59xO0VQgO'#DaOOQR,59z,59zOOQP,59|,59|O0yOaO,59|O1ROaO,59|O1aOqO,59|OOQP-E7h-E7hO1oQgO,59XOOQP,59X,59XO2PQaO'#DeO2_QgO'#DeO2oQgO'#DkOOQP'#Dk'#DkQ)jQaOOO3PQdO'#CsOOQO,59^,59^O3kQdO'#CuOOQO,59`,59`OOQO,59c,59cO4VQdO,59cO4aQdO'#CzO4kQ`O'#CzOOQO,59b,59bOOQU,5:Q,5:QOOQR1G.v1G.vO4pQ`O1G.vOOQU-E7d-E7dO4xQdO,59kOOQO,59k,59kO5SQdO'#DQO5^Q`O'#DQOOQO,5:d,5:dOOQU,5:R,5:ROOQR1G/U1G/UO5cQ`O1G/UOOQU-E7e-E7eO5kQgO'#DhO5xQcO1G/XOOQR1G/X1G/XOOQR,59q,59qO6TQgO,59qO6eQdO'#DiO6lQgO'#DiO7PQcO1G/[OOQR1G/[1G/[OOQR,59r,59rO#|QfO,59rOOQR1G/b1G/bO7_OWO1G/bO7dOaO1G/bOOQR,59y,59yOOQR,59{,59{OOQP1G/h1G/hO7lOaO1G/hO7tOaO1G/hO8POaO1G/hOOQP1G.s1G.sO8_QgO,5:POOQP,5:P,5:POOQP,5:V,5:VOOQP-E7i-E7iOOQO,59_,59_OOQO,59a,59aOOQO1G.}1G.}OOQO,59f,59fO8oQdO,59fOOQR7+$b7+$bP,XQ`O'#DfOOQO1G/V1G/VOOQO,59l,59lO8yQdO,59lOOQR7+$p7+$pP9TQ`O'#DgOOQR'#DT'#DTOOQR,5:S,5:SOOQR-E7f-E7fOOQR7+$s7+$sOOQR1G/]1G/]O9YQgO'#DYO9jQ`O'#DYOOQR,5:T,5:TO#|QfO'#DZO9oQcO'#DZOOQR-E7g-E7gOOQR7+$v7+$vOOQR1G/^1G/^OOQR7+$|7+$|O:QOWO7+$|OOQP7+%S7+%SO:VOaO7+%SO:_OaO7+%SOOQP1G/k1G/kOOQO1G/Q1G/QOOQO1G/W1G/WOOQR,59t,59tO:jQgO,59tOOQR,59u,59uO#|QfO,59uOOQR<YAN>Y", stateData: ";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcPOqQO~OmzO~P%OOm!OOUzP!azP!bzP!dzP~P#|O^!SO!b!QO!f!TO!g!RO~ORSOTUOWROXROcPOqQO!PVO!cTO~OY!UOP!QXQ!QX!V!QX!`!QXS!QX!a!QX!b!QXU!QXm!QX!d!QX~P&aO[!WOP!SXQ!SX!V!SX!`!SXS!SX!a!SX!b!SXU!SXm!SX!d!SX~P&aO^!ZO!W![O!b!YO!f!]O!g!YO~OP!_O!V[OQaX!`aX~OPaXQaX!VaX!`aX~P#|OP!bOQ!cO!V[O~OP_O!V[O~P#|OWROXROY!fOcPOqQObfXmfXofXpfX~OWROXRO[!hOcPOqQObhXmhXohXphX~ObeXmlXoeX~ObkXokX~P%OOm!kO~Om!lObnPonP~P%OOb!pOo!oO~Ob!pO~P!bOm!sOosXpsX~OosXpsX~P%OOm!uOotPptP~P%OOo!xOp!yO~Op!yO~P#WOS!|O!a#OO!b#OO~OUyX!ayX!byX!dyX~P#|Om#QO~OU#SO!a#UO!b#UO!d#RO~Om#WOUzX!azX!bzX!dzX~O]#XO~O!b#XO!g#YO~O^#ZO!b#XO!g#YO~OP!RXQ!RX!V!RX!`!RXS!RX!a!RX!b!RXU!RXm!RX!d!RX~P&aOP!TXQ!TX!V!TX!`!TXS!TX!a!TX!b!TXU!TXm!TX!d!TX~P&aO!b#^O!g#^O~O^#_O!b#^O!f#`O!g#^O~O^#_O!W#aO!b#^O!g#^O~OPaaQaa!Vaa!`aa~P#|OP#cO!V[OQ!XX!`!XX~OP!XXQ!XX!V!XX!`!XX~P#|OP_O!V[OQ!_X!`!_X~P#|OWROXROcPOqQObgXmgXogXpgX~OWROXROcPOqQObiXmiXoiXpiX~Obkaoka~P%OObnXonX~P%OOm#kO~Ob#lOo!oO~Oosapsa~P%OOotXptX~P%OOm#pO~Oo!xOp#qO~OSwP!awP!bwP~P#|OS!|O!a#vO!b#vO~OUya!aya!bya!dya~P#|Om#xO~P%OOm#{OU}P!a}P!b}P!d}P~P#|OU#SO!a$OO!b$OO!d#RO~O]$QO~O!b$QO!g$RO~O!b$SO!g$SO~O^$TO!b$SO!g$SO~O^$TO!b$SO!f$UO!g$SO~OP!XaQ!Xa!V!Xa!`!Xa~P#|Obnaona~P%OOotapta~P%OOo!xO~OU|X!a|X!b|X!d|X~P#|Om$ZO~Om$]OU}X!a}X!b}X!d}X~O]$^O~O!b$_O!g$_O~O^$`O!b$_O!g$_O~OU|a!a|a!b|a!d|a~P#|O!b$cO!g$cO~O", goto: ",]!mPPPPPPPPPPPPPPPPP!nPP!v#v#|$`#|$c$f$j$nP%VPPP!v%Y%^%a%{&O%a&R&U&X&_&b%aP&e&{&e'O'RPP']'a'g'm's'y(XPPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv", nodeNames: "\u26A0 DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document", maxTerm: 74, - context: J7t, + context: t8t, nodeProps: [ ["isolate", -3, 8, 9, 14, ""], ["openedBy", 18, "[", 32, "{"], ["closedBy", 19, "]", 33, "}"] ], - propSources: [o8t], + propSources: [c8t], skippedNodes: [0], repeatNodeCount: 6, tokenData: "-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P", - tokenizers: [e8t, t8t, s8t, a8t, 0, 1], + tokenizers: [r8t, n8t, o8t, l8t, 0, 1], topRules: { Stream: [0, 15] }, tokenPrec: 0 -}), c8t = /* @__PURE__ */ Vf.deserialize({ +}), h8t = /* @__PURE__ */ qf.deserialize({ version: 14, states: "!vOQOPOOO]OPO'#C_OhOPO'#C^OOOO'#Cc'#CcOpOPO'#CaQOOOOOO{OPOOOOOO'#Cb'#CbO!WOPO'#C`O!`OPO,58xOOOO-E6a-E6aOOOO-E6`-E6`OOOO'#C_'#C_OOOO1G.d1G.d", stateData: "!h~OXPOYROWTP~OWVXXRXYRX~OYVOXSP~OXROYROWTX~OXROYROWTP~OYVOXSX~OX[O~OXY~", @@ -50177,9 +50213,9 @@ const s8t = new Pa((t, e) => { tokenizers: [0], topRules: { Document: [0, 1] }, tokenPrec: 67 -}), u8t = /* @__PURE__ */ $f.define({ +}), f8t = /* @__PURE__ */ Bf.define({ name: "yaml", - parser: /* @__PURE__ */ l8t.configure({ + parser: /* @__PURE__ */ u8t.configure({ props: [ /* @__PURE__ */ x1.add({ Stream: (t) => { @@ -50216,11 +50252,11 @@ const s8t = new Pa((t, e) => { indentOnInput: /^\s*[\]\}]$/ } }); -function h8t() { - return new gm(u8t); +function d8t() { + return new gm(f8t); } Se.meta; -const f8t = NSe.filter((t, e) => e != 3), d8t = ISe.filter((t, e) => e != 1), p8t = (t) => { +const p8t = ISe.filter((t, e) => e != 3), g8t = $Se.filter((t, e) => e != 1), m8t = (t) => { const { from: e } = t.state.selection.main, r = t.state.doc.lineAt(e); @@ -50228,7 +50264,7 @@ const f8t = NSe.filter((t, e) => e != 3), d8t = ISe.filter((t, e) => e != 1), p8 line: r.number - 1, ch: e - r.from }; -}, g8t = (t, e) => { +}, v8t = (t, e) => { const { line: r, ch: n @@ -50241,24 +50277,24 @@ const f8t = NSe.filter((t, e) => e != 3), d8t = ISe.filter((t, e) => e != 1), p8 scrollIntoView: !0 }); }, _L = (t) => t.transactions.some((e) => e.effects.some((r) => r.is(hh) || r.is(yp))); -class Ef { +class _f { constructor(e = []) { this.important = [Tr.lineSeparator.of(` -`)], this.base = [...e], this.extensions = Ef.defaultPlugins(); +`)], this.base = [...e], this.extensions = _f.defaultPlugins(); } static minimalSetup() { - return new Ef(d8t); + return new _f(g8t); } static basicSetup() { - return new Ef(f8t); + return new _f(p8t); } static codeLanguage(e) { - return e == "yaml" ? h8t().language : null; + return e == "yaml" ? d8t().language : null; } static defaultPlugins() { - return [kt.lineWrapping, $Ae({ + return [kt.lineWrapping, BAe({ codeLanguages: this.codeLanguage - }), VJ(), ju.of([t3e, { + }), VJ(), ju.of([r3e, { key: "Mod-Z", run: Ck }])]; @@ -50273,7 +50309,7 @@ class Ef { return this.extensions.push(kt.updateListener.of(e)), this; } useSpellcheck(e) { - return this.extensions.push(XAe(e)), this; + return this.extensions.push(HAe(e)), this; } useHighlighter(e) { return this.extensions.push(iP(e)), this; @@ -50284,7 +50320,7 @@ class Ef { useComments({ ycomments: e }) { - return this.important.push(z7e(e)), this; + return this.important.push(Q7e(e)), this; } useRemoveSelectionOnBlur() { return this.extensions.push(kt.domEventHandlers({ @@ -50299,7 +50335,7 @@ class Ef { })), this; } showCommentLineAuthors(e) { - return this.important.push(p7e(e)), this; + return this.important.push(g7e(e)), this; } readonly() { return this.extensions.push(kt.editable.of(!1), Tr.readOnly.of(!0)), this; @@ -50312,13 +50348,13 @@ class Ef { preview: r, lastTyped: n }) { - return this.extensions.push(L7t(e, r, n)), this; + return this.extensions.push(M7t(e, r, n)), this; } useCursorIndicator({ lineMap: e, preview: r }) { - return this.extensions.push(P7t(e, r)), this; + return this.extensions.push(I7t(e, r)), this; } useCollaboration({ ytext: e, @@ -50326,13 +50362,13 @@ class Ef { undoManager: n, editorView: i }) { - const s = qEe(e, r.awareness, { + const s = YEe(e, r.awareness, { undoManager: n }); - return s[1] = T7e, this.extensions.push(s), n && (n.on("stack-item-added", (a) => { - a.stackItem.meta.set("cursor-location", p8t(i.value)); + return s[1] = C7e, this.extensions.push(s), n && (n.on("stack-item-added", (a) => { + a.stackItem.meta.set("cursor-location", m8t(i.value)); }), n.on("stack-item-popped", (a) => { - g8t(i.value, a.stackItem.meta.get("cursor-location")); + v8t(i.value, a.stackItem.meta.get("cursor-location")); }), this.extensions.push(ju.of([{ key: "Mod-z", run: () => n.undo(), @@ -50351,7 +50387,7 @@ class Ef { ycomments: e, editorMountpoint: r }) { - return this.extensions.push(kt.updateListener.of((n) => b7e(n, e, r))), this; + return this.extensions.push(kt.updateListener.of((n) => x7e(n, e, r))), this; } useFixFoldingScroll(e) { return this.extensions.push(Tr.transactionFilter.of((r) => (r.effects.some((n) => n.is(hh) || n.is(yp)) && (e.current = window.scrollY), r)), kt.updateListener.of((r) => { @@ -50383,7 +50419,7 @@ class Ef { return [...this.important, ...this.base, ...this.extensions]; } } -function m8t(t, e = 0) { +function y8t(t, e = 0) { let { state: r } = t, n = [], i = 0; @@ -50395,19 +50431,19 @@ function m8t(t, e = 0) { effects: n }); } -const v8t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", y8t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjYiIHZpZXdCb3g9IjAgMCAyNiAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik03LjcxMzg3IDYuMTQyOTRWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMC4yODUyIDYuMTQyODhWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik02LjQyODcxIDFIMTEuNTcxNiIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0wIDIuMjg1NjRIMTgiIHN0cm9rZT0iI0U3NDczQyIgc3Ryb2tlLXdpZHRoPSIxLjc1Ii8+CiAgICA8cGF0aCBkPSJNMS45Mjg3MSAyLjI4NTY0TDMuODU3MjggMTguMzU3MUgxNC4xNDNMMTYuMDcxNiAyLjI4NTY0IiBzdHJva2U9IiNFNzQ3M0MiIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K", b8t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAyNSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xNC40NzI3IDcuMTE3MTlMOC43MTUxOCAxMi44NzQ3TDUuNTE3NTggOS42NzcwNyIgc3Ryb2tlPSIjMzMyRDM3IiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMCAxOUMxNC45NzA2IDE5IDE5IDE0Ljk3MDYgMTkgMTBDMTkgNS4wMjk0NCAxNC45NzA2IDEgMTAgMUM1LjAyOTQ0IDEgMSA1LjAyOTQ0IDEgMTBDMSAxNC45NzA2IDUuMDI5NDQgMTkgMTAgMTlaIiBzdHJva2U9IiMzMzJEMzciIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K"; -var x8t = 0; +const b8t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", x8t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjYiIHZpZXdCb3g9IjAgMCAyNiAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik03LjcxMzg3IDYuMTQyOTRWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMC4yODUyIDYuMTQyODhWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik02LjQyODcxIDFIMTEuNTcxNiIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0wIDIuMjg1NjRIMTgiIHN0cm9rZT0iI0U3NDczQyIgc3Ryb2tlLXdpZHRoPSIxLjc1Ii8+CiAgICA8cGF0aCBkPSJNMS45Mjg3MSAyLjI4NTY0TDMuODU3MjggMTguMzU3MUgxNC4xNDNMMTYuMDcxNiAyLjI4NTY0IiBzdHJva2U9IiNFNzQ3M0MiIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K", w8t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAyNSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xNC40NzI3IDcuMTE3MTlMOC43MTUxOCAxMi44NzQ3TDUuNTE3NTggOS42NzcwNyIgc3Ryb2tlPSIjMzMyRDM3IiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMCAxOUMxNC45NzA2IDE5IDE5IDE0Ljk3MDYgMTkgMTBDMTkgNS4wMjk0NCAxNC45NzA2IDEgMTAgMUM1LjAyOTQ0IDEgMSA1LjAyOTQ0IDEgMTBDMSAxNC45NzA2IDUuMDI5NDQgMTkgMTAgMTlaIiBzdHJva2U9IiMzMzJEMzciIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K"; +var O8t = 0; function Me(t, e, r, n, i, s) { var a, o, l = {}; for (o in e) o == "ref" ? a = e[o] : l[o] = e[o]; - var u = { type: t, props: l, key: r, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --x8t, __i: -1, __u: 0, __source: i, __self: s }; + var u = { type: t, props: l, key: r, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --O8t, __i: -1, __u: 0, __source: i, __self: s }; if (typeof t == "function" && (a = t.defaultProps)) for (o in a) l[o] === void 0 && (l[o] = a[o]); return Ut.vnode && Ut.vnode(u), u; } -const w8t = Ht.div` +const k8t = Ht.div` position: absolute; top: ${(t) => t.top + 20}px; left: ${(t) => t.left + 19}px; @@ -50467,7 +50503,7 @@ const w8t = Ht.div` position: absolute; transform: translateX(-30px); } -`, O8t = ({ +`, S8t = ({ ycomments: t, commentId: e }) => { @@ -50485,7 +50521,7 @@ const w8t = Ht.div` const l = t.getTextForComment(e), u = new kt({ state: Tr.create({ doc: l.toString(), - extensions: Ef.minimalSetup().disable(["Mod-z", "Mod-y", "Mod-Z"]).useCollaboration({ + extensions: _f.minimalSetup().disable(["Mod-z", "Mod-y", "Mod-Z"]).useCollaboration({ ytext: l, provider: t.provider }).useDefaultHistory().addUpdateListener(s).showCommentLineAuthors(i).useRemoveSelectionOnBlur().create() @@ -50497,14 +50533,14 @@ const w8t = Ht.div` }), t.newLocalComment && (u.focus(), t.newLocalComment = !1), () => { u.destroy(); }; - }, [n]), Me(w8t, { + }, [n]), Me(k8t, { left: t.marginLeft(), top: (o = t.display().comments.value[e]) == null ? void 0 : o.top, fade: t.draggedComment.value == e, children: Me("div", { class: "comment-wrapper", style: "position:relative", - children: [t.commentWithPopup.value == e && Me(k8t, { + children: [t.commentWithPopup.value == e && Me(T8t, { left: t.marginLeft(), shift: a, onMouseLeave: () => { @@ -50512,7 +50548,7 @@ const w8t = Ht.div` }, children: [Me("img", { class: "comment-icon", - src: v8t, + src: b8t, onMouseUp: () => { t.display().switchVisibility(e), t.updateMainCodeMirror(); }, @@ -50530,12 +50566,12 @@ const w8t = Ht.div` "stroke-linecap": "round" }) }), Me(PY, { - icon: y8t, + icon: x8t, bgOnHover: "#e7473c15", text: "DELETE", onClick: () => t.deleteComment(e) }), r.collaboration.value.resolvingCommentsEnabled && Me(PY, { - icon: b8t, + icon: w8t, bgOnHover: "#AAE17320", text: "RESOLVE", onClick: () => t.resolveComment(e) @@ -50546,7 +50582,7 @@ const w8t = Ht.div` })] }) }); -}, k8t = Ht.div` +}, T8t = Ht.div` width: fit-content; height: 25px; border-radius: 2px; @@ -50574,7 +50610,7 @@ const w8t = Ht.div` svg { box-sizing: content-box; } -`, S8t = Ht.div` +`, C8t = Ht.div` display: inline-flex; cursor: pointer; padding-left: 5px; @@ -50610,7 +50646,7 @@ const w8t = Ht.div` onClick: e, text: r, bgOnHover: n -}) => Me(S8t, { +}) => Me(C8t, { bgOnHover: n, onClick: e, children: [Me("img", { @@ -50620,19 +50656,19 @@ const w8t = Ht.div` class: "resolve-btn", children: [" ", r, " "] })] -}), T8t = ({ +}), E8t = ({ ycomments: t }) => t.comments.value.map(({ commentId: e -}) => Me(O8t, { +}) => Me(S8t, { commentId: e, ycomments: t -}, e)), C8t = ` +}, e)), _8t = ` -`, E8t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAxOSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMDg0MjIgMTYuMDU4M0wxLjMxNzM4IDE5LjI2MTNMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDE0LjYzMzQgMkwxNy4zMTc0IDQuNDg0NDFMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDQuNjY0NiAxOC40OTQ1IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPC9zdmc+Cg==", Fhe = Ht.div` +`, A8t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAxOSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMDg0MjIgMTYuMDU4M0wxLjMxNzM4IDE5LjI2MTNMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDE0LjYzMzQgMkwxNy4zMTc0IDQuNDg0NDFMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDQuNjY0NiAxOC40OTQ1IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPC9zdmc+Cg==", zhe = Ht.div` border-radius: var(--border-radius); background: var(--gray-200); font-family: monospace; @@ -50663,7 +50699,7 @@ const w8t = Ht.div` position: absolute; display: inline; background-color: var(--gray-200); - background-image: url("data:image/svg+xml;charset=UTF-8,${(t) => encodeURIComponent(C8t)}"); + background-image: url("data:image/svg+xml;charset=UTF-8,${(t) => encodeURIComponent(_8t)}"); background-repeat: no-repeat; } @@ -50799,7 +50835,7 @@ const w8t = Ht.div` transform: translateX(-11px); } } -`, _8t = (t, e) => { +`, L8t = (t, e) => { t.dispatch({ changes: { from: 0, @@ -50807,7 +50843,7 @@ const w8t = Ht.div` insert: e } }); -}, A8t = ({ +}, R8t = ({ text: t, collaboration: e, preview: r @@ -50825,7 +50861,7 @@ const w8t = Ht.div` root: i.parent, state: Tr.create({ doc: t.get(), - extensions: Ef.basicSetup().useHighlighter(i.transforms.value).readonly().create() + extensions: _f.basicSetup().useHighlighter(i.transforms.value).readonly().create() }), parent: s.current }); @@ -50841,7 +50877,7 @@ const w8t = Ht.div` const u = Tr.create({ root: i.parent, doc: i.collaboration.value.enabled ? e.ytext.toString() : t.get(), - extensions: Ef.basicSetup().useHighlighter(i.transforms.value).useCompartment(Hne, iP([])).useSpellcheck(i.spellcheckOpts.value).if(i.collaboration.value.enabled, (g) => g.useCollaboration({ + extensions: _f.basicSetup().useHighlighter(i.transforms.value).useCompartment(Hne, iP([])).useSpellcheck(i.spellcheckOpts.value).if(i.collaboration.value.enabled, (g) => g.useCollaboration({ ...e, editorView: n })).if(i.collaboration.value.commentsEnabled, (g) => g.useComments({ @@ -50861,27 +50897,27 @@ const w8t = Ht.div` state: u, parent: s.current }); - return n.value = h, window.myst_editor[i.id.value].main_editor = h, i.unfoldedHeadings.value != null && m8t(h, i.unfoldedHeadings.value), (d = e.ycomments) == null || d.registerCodeMirror(h), (p = e.provider) == null || p.watchCollabolators(e.setUsers), t.onSync((g) => _8t(h, g)), () => { + return n.value = h, window.myst_editor[i.id.value].main_editor = h, i.unfoldedHeadings.value != null && y8t(h, i.unfoldedHeadings.value), (d = e.ycomments) == null || d.registerCodeMirror(h), (p = e.provider) == null || p.watchCollabolators(e.setUsers), t.onSync((g) => L8t(h, g)), () => { h.destroy(); }; - }, [...Object.values(e), i.collaboration.value, i.id.value, i.spellcheckOpts.value, i.syncScroll.value, i.transforms.value, i.unfoldedHeadings.value]), Me(Fhe, { + }, [...Object.values(e), i.collaboration.value, i.id.value, i.spellcheckOpts.value, i.syncScroll.value, i.transforms.value, i.unfoldedHeadings.value]), Me(zhe, { className: "myst-main-editor", ref: s, $mode: i.mode.value, id: `${i.id.value}-editor`, - children: [i.collaboration.value.commentsEnabled && !e.error && ((l = e.ycomments) == null ? void 0 : l.mainCodeMirror) && Me(T8t, { + children: [i.collaboration.value.commentsEnabled && !e.error && ((l = e.ycomments) == null ? void 0 : l.mainCodeMirror) && Me(E8t, { ycomments: e.ycomments - }), i.collaboration.value.commentsEnabled && Me(x7e, { + }), i.collaboration.value.commentsEnabled && Me(w7e, { style: "display: none", className: "myst-add-suggestion", title: "Suggest Changes", children: Me("img", { - src: E8t, + src: A8t, alt: "edit" }) })] }); -}, zhe = Ht.div` +}, Qhe = Ht.div` background-color: white; padding: 20px; box-sizing: border-box; @@ -51236,10 +51272,10 @@ const w8t = Ht.div` margin-top: 12px; } `; -zhe.defaultProps = { +Qhe.defaultProps = { className: "myst-preview" }; -const L8t = Ht.div` +const M8t = Ht.div` position: absolute; width: 5px; background-color: var(--blue-200); @@ -51277,15 +51313,15 @@ function Z0(t, e, r, n, i, s) { } if (l == 1 || u == 1) return [new di(e, r, i, s)]; - let h = Vhe(t, e, r, n, i, s); + let h = qhe(t, e, r, n, i, s); if (h) { let [f, d, p] = h; return Z0(t, e, f, n, i, d).concat(Z0(t, f + p, r, n, d + p, s)); } - return R8t(t, e, r, n, i, s); + return D8t(t, e, r, n, i, s); } let fy = 1e9; -function R8t(t, e, r, n, i, s) { +function D8t(t, e, r, n, i, s) { let a = r - e, o = s - i; if (fy < 1e9 && Math.min(a, o) > fy * 16) return Math.min(a, o) > fy * 64 ? [new di(e, r, i, s)] : NY(t, e, r, n, i, s); @@ -51297,11 +51333,11 @@ function R8t(t, e, r, n, i, s) { return NY(t, e, r, n, i, s); let g = dA.advance(p, a, o, l, f, !1, u) || pA.advance(p, a, o, l, d, !0, h); if (g) - return M8t(t, e, r, e + g[0], n, i, s, i + g[1]); + return P8t(t, e, r, e + g[0], n, i, s, i + g[1]); } return [new di(e, r, i, s)]; } -class Qhe { +class Uhe { constructor() { this.vec = []; } @@ -51337,12 +51373,12 @@ class Qhe { return null; } } -const dA = /* @__PURE__ */ new Qhe(), pA = /* @__PURE__ */ new Qhe(); -function M8t(t, e, r, n, i, s, a, o) { +const dA = /* @__PURE__ */ new Uhe(), pA = /* @__PURE__ */ new Uhe(); +function P8t(t, e, r, n, i, s, a, o) { let l = !1; return !Wm(t, n) && ++n == r && (l = !0), !Wm(i, o) && ++o == a && (l = !0), l ? [new di(e, r, s, a)] : Z0(t, e, n, i, s, o).concat(Z0(t, n, r, i, o, a)); } -function Uhe(t, e) { +function Vhe(t, e) { let r = 1, n = Math.min(t, e); for (; r < n; ) r = r << 1; @@ -51351,7 +51387,7 @@ function Uhe(t, e) { function IN(t, e, r, n, i, s) { if (e == r || e == s || t.charCodeAt(e) != n.charCodeAt(i)) return 0; - let a = Uhe(r - e, s - i); + let a = Vhe(r - e, s - i); for (let o = e, l = i; ; ) { let u = o + a, h = l + a; if (u > r || h > s || t.slice(o, u) != n.slice(l, h)) { @@ -51368,7 +51404,7 @@ function IN(t, e, r, n, i, s) { function $N(t, e, r, n, i, s) { if (e == r || i == s || t.charCodeAt(r - 1) != n.charCodeAt(s - 1)) return 0; - let a = Uhe(r - e, s - i); + let a = Vhe(r - e, s - i); for (let o = r, l = s; ; ) { let u = o - a, h = l - a; if (u < e || h < i || t.slice(u, o) != n.slice(h, l)) { @@ -51404,10 +51440,10 @@ function AL(t, e, r, n, i, s, a, o) { a = a >> 1; } } -function Vhe(t, e, r, n, i, s) { +function qhe(t, e, r, n, i, s) { let a = r - e, o = s - i; if (a < o) { - let l = Vhe(n, i, s, t, e, r); + let l = qhe(n, i, s, t, e, r); return l && [l[1], l[0], l[2]]; } return a < 4 || o * 2 < a ? null : AL(t, e, r, n, i, s, Math.floor(a / 4), -1); @@ -51424,15 +51460,15 @@ function NY(t, e, r, n, i, s) { let [u, h, f] = l; return Z0(t, e, u, n, i, h).concat(Z0(t, u + f, r, n, h + f, s)); } -function qhe(t, e) { +function Yhe(t, e) { for (let r = 1; r < t.length; r++) { let n = t[r - 1], i = t[r]; n.toA > i.fromA - e && n.toB > i.fromB - e && (t[r - 1] = new di(n.fromA, i.toA, n.fromB, i.toB), t.splice(r--, 1)); } } -function D8t(t, e, r) { +function N8t(t, e, r) { for (; ; ) { - qhe(r, 1); + Yhe(r, 1); let n = !1; for (let i = 0; i < r.length; i++) { let s = r[i], a, o; @@ -51451,45 +51487,45 @@ function D8t(t, e, r) { } return r; } -function P8t(t, e, r) { +function I8t(t, e, r) { for (let n = 0, i = 0; i < t.length; i++) { let s = t[i], a = s.toA - s.fromA, o = s.toB - s.fromB; if (a && o || a > 3 || o > 3) { let l = i == t.length - 1 ? e.length : t[i + 1].fromA, u = s.fromA - n, h = l - s.toA, f = $Y(e, s.fromA, Math.min(u, 5)), d = IY(e, s.toA, Math.min(h, 5)), p = s.fromA - f, g = d - s.toA; if (!a || !o) { let m = Math.max(a, o), [v, y, b] = a ? [e, s.fromA, s.toA] : [r, s.fromB, s.toB], w, O; - p && g ? (m > p && e.slice(f, s.fromA) == v.slice(b - p, b) ? (s = t[i] = new di(f, f + a, s.fromB - p, s.toB - p), f = s.fromA, d = IY(e, s.toA, Math.min(l - s.toA, 5))) : m > g && e.slice(s.toA, d) == v.slice(y, y + g) && (s = t[i] = new di(d - a, d, s.fromB + g, s.toB + g), d = s.toA, f = $Y(e, s.fromA, Math.min(s.fromA - n, 5))), p = s.fromA - f, g = d - s.toA) : !p && !g && (O = s.fromA - (w = N8t(e, s.fromA, u))) && e.slice(w, s.fromA) == v.slice(b - O, b) && (s = t[i] = new di(w, w + a, s.fromB - O, s.toB - O)); + p && g ? (m > p && e.slice(f, s.fromA) == v.slice(b - p, b) ? (s = t[i] = new di(f, f + a, s.fromB - p, s.toB - p), f = s.fromA, d = IY(e, s.toA, Math.min(l - s.toA, 5))) : m > g && e.slice(s.toA, d) == v.slice(y, y + g) && (s = t[i] = new di(d - a, d, s.fromB + g, s.toB + g), d = s.toA, f = $Y(e, s.fromA, Math.min(s.fromA - n, 5))), p = s.fromA - f, g = d - s.toA) : !p && !g && (O = s.fromA - (w = $8t(e, s.fromA, u))) && e.slice(w, s.fromA) == v.slice(b - O, b) && (s = t[i] = new di(w, w + a, s.fromB - O, s.toB - O)); } (p || g) && (s = t[i] = new di(s.fromA - p, s.toA + g, s.fromB - p, s.toB + g)), n = s.toA; } } - return qhe(t, 3), t; + return Yhe(t, 3), t; } let A0; try { A0 = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}]", "u"); } catch { } -function Yhe(t) { +function Whe(t) { return t > 48 && t < 58 || t > 64 && t < 91 || t > 96 && t < 123; } -function Whe(t, e) { +function Ghe(t, e) { if (e == t.length) return 0; let r = t.charCodeAt(e); - return r < 192 ? Yhe(r) ? 1 : 0 : A0 ? !Xhe(r) || e == t.length - 1 ? A0.test(String.fromCharCode(r)) ? 1 : 0 : A0.test(t.slice(e, e + 2)) ? 2 : 0 : 0; + return r < 192 ? Whe(r) ? 1 : 0 : A0 ? !Hhe(r) || e == t.length - 1 ? A0.test(String.fromCharCode(r)) ? 1 : 0 : A0.test(t.slice(e, e + 2)) ? 2 : 0 : 0; } -function Ghe(t, e) { +function Xhe(t, e) { if (!e) return 0; let r = t.charCodeAt(e - 1); - return r < 192 ? Yhe(r) ? 1 : 0 : A0 ? !Hhe(r) || e == 1 ? A0.test(String.fromCharCode(r)) ? 1 : 0 : A0.test(t.slice(e - 2, e)) ? 2 : 0 : 0; + return r < 192 ? Whe(r) ? 1 : 0 : A0 ? !Zhe(r) || e == 1 ? A0.test(String.fromCharCode(r)) ? 1 : 0 : A0.test(t.slice(e - 2, e)) ? 2 : 0 : 0; } function IY(t, e, r) { - if (e == t.length || !Ghe(t, e)) + if (e == t.length || !Xhe(t, e)) return e; for (let n = e, i = e + r; ; ) { - let s = Whe(t, n); + let s = Ghe(t, n); if (!s) return n; if (n += s, n > i) @@ -51497,17 +51533,17 @@ function IY(t, e, r) { } } function $Y(t, e, r) { - if (!e || !Whe(t, e)) + if (!e || !Ghe(t, e)) return e; for (let n = e, i = e - r; ; ) { - let s = Ghe(t, n); + let s = Xhe(t, n); if (!s) return n; if (n -= s, n < i) return e; } } -function N8t(t, e, r) { +function $8t(t, e, r) { for (let n = e, i = e - r; ; ) { let s = n ? t.charCodeAt(n - 1) : 10; if (s == 10) @@ -51516,16 +51552,16 @@ function N8t(t, e, r) { return e; } } -const Xhe = (t) => t >= 55296 && t <= 56319, Hhe = (t) => t >= 56320 && t <= 57343; +const Hhe = (t) => t >= 55296 && t <= 56319, Zhe = (t) => t >= 56320 && t <= 57343; function Wm(t, e) { - return !e || e == t.length || !Xhe(t.charCodeAt(e - 1)) || !Hhe(t.charCodeAt(e)); + return !e || e == t.length || !Hhe(t.charCodeAt(e - 1)) || !Zhe(t.charCodeAt(e)); } -function I8t(t, e, r) { +function B8t(t, e, r) { var n; - return fy = ((n = r == null ? void 0 : r.scanLimit) !== null && n !== void 0 ? n : 1e9) >> 1, D8t(t, e, Z0(t, 0, t.length, e, 0, e.length)); + return fy = ((n = r == null ? void 0 : r.scanLimit) !== null && n !== void 0 ? n : 1e9) >> 1, N8t(t, e, Z0(t, 0, t.length, e, 0, e.length)); } -function Zhe(t, e, r) { - return P8t(I8t(t, e, r), t, e); +function jhe(t, e, r) { + return I8t(B8t(t, e, r), t, e); } const $c = /* @__PURE__ */ $t.define({ combine: (t) => t[0] @@ -51553,7 +51589,7 @@ class Wg { return Math.max(this.fromB, this.toB - 1); } static build(e, r, n) { - return jhe(Zhe(e.toString(), r.toString(), n), e, r, 0, 0); + return Khe(jhe(e.toString(), r.toString(), n), e, r, 0, 0); } static updateA(e, r, n, i, s) { return UY(QY(e, i, !0, n.length), e, r, n, s); @@ -51570,7 +51606,7 @@ function FY(t, e, r, n) { let i = r.lineAt(t), s = n.lineAt(e); return i.from == t && s.from == e ? [t, e] : [i.to + 1, s.to + 1]; } -function jhe(t, e, r, n, i) { +function Khe(t, e, r, n, i) { let s = []; for (let a = 0; a < t.length; a++) { let o = t[a], [l, u] = BY(o.fromA + n, o.fromB + i, e, r), [h, f] = FY(o.toA + n, o.toB + i, e, r), d = [o.offset(-l + n, -u + i)]; @@ -51633,7 +51669,7 @@ function UY(t, e, r, n, i) { break; s++; } - for (let g of jhe(Zhe(r.sliceString(h, f), n.sliceString(d, p), i), r, n, h, d)) + for (let g of Khe(jhe(r.sliceString(h, f), n.sliceString(d, p), i), r, n, h, d)) l.push(g); a += u.diffA, o += u.diffB; } @@ -51641,12 +51677,12 @@ function UY(t, e, r, n, i) { l.push(e[s++].offset(a, o)); return l; } -const Khe = /* @__PURE__ */ hn.fromClass(class { +const Jhe = /* @__PURE__ */ hn.fromClass(class { constructor(t) { ({ deco: this.deco, gutter: this.gutter } = YY(t)); } update(t) { - (t.docChanged || t.viewportChanged || $8t(t.startState, t.state) || B8t(t.startState, t.state)) && ({ deco: this.deco, gutter: this.gutter } = YY(t.view)); + (t.docChanged || t.viewportChanged || F8t(t.startState, t.state) || z8t(t.startState, t.state)) && ({ deco: this.deco, gutter: this.gutter } = YY(t.view)); } }, { decorations: (t) => t.deco @@ -51654,24 +51690,24 @@ const Khe = /* @__PURE__ */ hn.fromClass(class { class: "cm-changeGutter", markers: (t) => { var e; - return ((e = t.plugin(Khe)) === null || e === void 0 ? void 0 : e.gutter) || $r.empty; + return ((e = t.plugin(Jhe)) === null || e === void 0 ? void 0 : e.gutter) || $r.empty; } })); -function $8t(t, e) { +function F8t(t, e) { return t.field(Gm, !1) != e.field(Gm, !1); } -function B8t(t, e) { +function z8t(t, e) { return t.facet($c) != e.facet($c); } -const VY = /* @__PURE__ */ It.line({ class: "cm-changedLine" }), F8t = /* @__PURE__ */ It.mark({ class: "cm-changedText" }), z8t = /* @__PURE__ */ It.mark({ tagName: "ins", class: "cm-insertedLine" }), Q8t = /* @__PURE__ */ It.mark({ tagName: "del", class: "cm-deletedLine" }), qY = /* @__PURE__ */ new class extends ul { +const VY = /* @__PURE__ */ It.line({ class: "cm-changedLine" }), Q8t = /* @__PURE__ */ It.mark({ class: "cm-changedText" }), U8t = /* @__PURE__ */ It.mark({ tagName: "ins", class: "cm-insertedLine" }), V8t = /* @__PURE__ */ It.mark({ tagName: "del", class: "cm-deletedLine" }), qY = /* @__PURE__ */ new class extends ul { constructor() { super(...arguments), this.elementClass = "cm-changedLineGutter"; } }(); -function U8t(t, e, r, n, i, s) { +function q8t(t, e, r, n, i, s) { let a = r ? t.fromA : t.fromB, o = r ? t.toA : t.toB, l = 0; if (a != o) { - i.add(a, a, VY), i.add(a, o, r ? Q8t : z8t), s && s.add(a, a, qY); + i.add(a, a, VY), i.add(a, o, r ? V8t : U8t), s && s.add(a, a, qY); for (let u = e.iterRange(a, o - 1), h = a; !u.next().done; ) { if (u.lineBreak) { h++, i.add(h, h, VY), s && s.add(h, h, qY); @@ -51681,7 +51717,7 @@ function U8t(t, e, r, n, i, s) { if (n) for (; l < t.changes.length; ) { let d = t.changes[l], p = a + (r ? d.fromA : d.fromB), g = a + (r ? d.toA : d.toB), m = Math.max(h, p), v = Math.min(f, g); - if (m < v && i.add(m, v, F8t), g < f) + if (m < v && i.add(m, v, Q8t), g < f) l++; else break; @@ -51695,7 +51731,7 @@ function YY(t) { for (let h of e) { if ((s ? h.fromA : h.fromB) >= u) break; - (s ? h.toA : h.toB) > l && U8t(h, t.state.doc, s, n, a, o); + (s ? h.toA : h.toB) > l && q8t(h, t.state.doc, s, n, a, o); } return { deco: a.finish(), gutter: o && o.finish() }; } @@ -51732,7 +51768,7 @@ const nS = /* @__PURE__ */ or.define({ }, provide: (t) => kt.decorations.from(t) }), i4 = 0.01; -function V8t(t, e, r) { +function Y8t(t, e, r) { let n = new ls(), i = new ls(), s = t.state.field(dy).iter(), a = e.state.field(dy).iter(), o = 0, l = 0, u = 0, h = 0; for (let g = 0; ; g++) { let m = g < r.length ? r[g] : null; @@ -51775,7 +51811,7 @@ function V8t(t, e, r) { const RL = /* @__PURE__ */ or.define({ map: (t, e) => e.mapPos(t) }); -class q8t extends uo { +class W8t extends uo { constructor(e) { super(), this.lines = e; } @@ -51788,7 +51824,7 @@ class q8t extends uo { let i = e.posAtDOM(n.target); e.dispatch({ effects: RL.of(i) }); let { side: s, sibling: a } = e.state.facet($c); - a && a().dispatch({ effects: RL.of(Y8t(i, e.state.field(Gm), s == "a")) }); + a && a().dispatch({ effects: RL.of(G8t(i, e.state.field(Gm), s == "a")) }); }), r; } ignoreEvent(e) { @@ -51798,7 +51834,7 @@ class q8t extends uo { return 27; } } -function Y8t(t, e, r) { +function G8t(t, e, r) { let n = 0, i = 0; for (let s = 0; ; s++) { let a = s < e.length ? e[s] : null; @@ -51807,7 +51843,7 @@ function Y8t(t, e, r) { [n, i] = r ? [a.toA, a.toB] : [a.toB, a.toA]; } } -const W8t = /* @__PURE__ */ Xn.define({ +const X8t = /* @__PURE__ */ Xn.define({ create(t) { return It.none; }, @@ -51820,14 +51856,14 @@ const W8t = /* @__PURE__ */ Xn.define({ provide: (t) => kt.decorations.from(t) }); function WY({ margin: t = 3, minSize: e = 4 }) { - return W8t.init((r) => G8t(r, t, e)); + return X8t.init((r) => H8t(r, t, e)); } -function G8t(t, e, r) { +function H8t(t, e, r) { let n = new ls(), i = t.facet($c).side == "a", s = t.field(Gm), a = 1; for (let o = 0; ; o++) { let l = o < s.length ? s[o] : null, u = o ? a + e : 1, h = l ? t.doc.lineAt(i ? l.fromA : l.fromB).number - 1 - e : t.doc.lines, f = h - u + 1; if (f >= r && n.add(t.doc.line(u).from, t.doc.line(h).to, It.replace({ - widget: new q8t(f), + widget: new W8t(f), block: !0 })), !l) break; @@ -51835,7 +51871,7 @@ function G8t(t, e, r) { } return n.finish(); } -const X8t = /* @__PURE__ */ kt.styleModule.of(/* @__PURE__ */ new oh({ +const Z8t = /* @__PURE__ */ kt.styleModule.of(/* @__PURE__ */ new oh({ ".cm-mergeView": { overflowY: "auto" }, @@ -51865,7 +51901,7 @@ const X8t = /* @__PURE__ */ kt.styleModule.of(/* @__PURE__ */ new oh({ font: "inherit", cursor: "pointer" } -})), H8t = /* @__PURE__ */ kt.baseTheme({ +})), j8t = /* @__PURE__ */ kt.baseTheme({ ".cm-mergeView & .cm-scroller, .cm-mergeView &": { height: "auto !important", overflowY: "visible !important" @@ -51925,13 +51961,13 @@ const X8t = /* @__PURE__ */ kt.styleModule.of(/* @__PURE__ */ new oh({ "&light.cm-merge-b .cm-changedLineGutter": { background: "#2b2" }, "&dark.cm-merge-b .cm-changedLineGutter": { background: "#8f8" } }), GY = /* @__PURE__ */ new mp(), s4 = /* @__PURE__ */ new mp(); -class Z8t { +class K8t { constructor(e) { this.revertDOM = null, this.revertToA = !1, this.revertToLeft = !1, this.measuring = -1, this.diffConf = e.diffConfig; let r = [ - uc.low(Khe), - H8t, - X8t, + uc.low(Jhe), + j8t, + Z8t, dy, kt.updateListener.of((f) => { this.measuring < 0 && (f.heightChanged || f.viewportChanged) && !f.transactions.some((d) => d.effects.some((p) => p.is(nS))) && this.measure(); @@ -52044,7 +52080,7 @@ class Z8t { } } measure() { - V8t(this.a, this.b, this.chunks), this.revertDOM && this.updateRevertButtons(); + Y8t(this.a, this.b, this.chunks), this.revertDOM && this.updateRevertButtons(); } updateRevertButtons() { let e = this.revertDOM, r = e.firstChild, n = this.a.viewport, i = this.b.viewport; @@ -52093,7 +52129,7 @@ function XY(t) { let e = t.nextSibling; return t.remove(), e; } -const j8t = Ht.div` +const J8t = Ht.div` display: grid; grid-auto-flow: column; grid-template-rows: max-content; @@ -52102,17 +52138,17 @@ const j8t = Ht.div` scrollbar-width: thin; overflow-y: auto; overscroll-behavior: contain; -`, HY = Ht(Fhe)` +`, HY = Ht(zhe)` overflow-y: visible; overscroll-behavior: contain; display: block; -`, K8t = ({ +`, e9t = ({ old: t, current: e, root: r }) => { - const n = Ef.basicSetup().readonly().create(); - return new Z8t({ + const n = _f.basicSetup().readonly().create(); + return new K8t({ a: { doc: t, extensions: n @@ -52124,7 +52160,7 @@ const j8t = Ht.div` orientation: "b-a", root: r }); -}, Jhe = ({ +}, efe = ({ text: t }) => { const { @@ -52134,12 +52170,12 @@ const j8t = Ht.div` return ri(() => { if (i.current) return !1; - i.current = K8t({ + i.current = e9t({ old: e.initialText, current: t.get(), root: e.parent }), r.current.appendChild(i.current.b.dom), n.current.appendChild(i.current.a.dom); - }, []), Me(j8t, { + }, []), Me(J8t, { children: [Me(HY, { ref: r }), Me(HY, { @@ -52147,12 +52183,12 @@ const j8t = Ht.div` })] }); }; -Jhe.defaultProps = { +efe.defaultProps = { className: "diff" }; -const J8t = Ht.div` +const t9t = Ht.div` display: flex; -`, e9t = Ht(xp)` +`, r9t = Ht(xp)` color: ${(t) => t.active ? "white" : "var(--icon-color)"}; background-color: ${(t) => t.active ? "var(--icon-main-active)" : "var(--navbar-bg)"}; width: 40px; @@ -52173,13 +52209,13 @@ const J8t = Ht.div` &:last-child { border-radius: 0 var(--border-radius) var(--border-radius) 0; } -`, t9t = ({ +`, n9t = ({ buttons: t, clickedId: e }) => (ri(() => { t[e].action(); -}, []), Me(J8t, { - children: t.map((r, n) => Me(e9t, { +}, []), Me(t9t, { + children: t.map((r, n) => Me(r9t, { className: "icon radio-icon", type: "button", name: r.id, @@ -52190,7 +52226,7 @@ const J8t = Ht.div` src: r.icon }) }, r.id)) -})), gA = 4, efe = Ht.div` +})), gA = 4, tfe = Ht.div` min-width: ${(t) => t.n * 35}px; .avatar { @@ -52219,7 +52255,7 @@ const J8t = Ht.div` background-color: var(--icon-bg); } } -`, tfe = ({ +`, rfe = ({ login: t, color: e, avatarUrl: r, @@ -52233,29 +52269,29 @@ const J8t = Ht.div` class: "avatar", style: `border-color: ${e}` }, t) -}), r9t = ({ +}), i9t = ({ n: t, usernames: e -}) => Me(efe, { +}) => Me(tfe, { title: e, children: Me("span", { class: "avatar placeholder", children: ["+", t] }) -}), n9t = ({ +}), s9t = ({ users: t }) => { const e = t.length <= gA ? t.length : 3; - return Me(efe, { + return Me(tfe, { n: Math.min(t.length, gA), - children: [e < t.length ? Me(r9t, { + children: [e < t.length ? Me(i9t, { n: t.length - e, usernames: t.filter((r, n) => n >= gA).map((r) => r.login).join(", ") - }) : "", t.slice(0, e).map((r) => Me(tfe, { + }) : "", t.slice(0, e).map((r) => Me(rfe, { ...r }))] }); -}, i9t = Ht.section` +}, a9t = Ht.section` z-index: 2; display: flex; flex-direction: column; @@ -52270,9 +52306,9 @@ const J8t = Ht.div` background-color: var(--icon-bg); border: 1px solid var(--icon-border); border-radius: var(--border-radius); -`, s9t = Ht.h3` +`, o9t = Ht.h3` color: var(--gray-900); -`, a9t = Ht.div` +`, l9t = Ht.div` display: flex; align-items: center; justify-content: space-between; @@ -52284,14 +52320,14 @@ const J8t = Ht.div` background-color: ${(t) => t.$negative ? "var(--red-500)" : "var(--icon-main-active)"} !important; border: 1px solid ${(t) => t.$negative ? "var(--red-500)" : "var(--icon-main-active)"} !important; } -`, o9t = ({ +`, c9t = ({ changeDocumentTemplate: t, selectedTemplate: e, closeModal: r -}) => Me(i9t, { - children: [Me(s9t, { +}) => Me(a9t, { + children: [Me(o9t, { children: "Are you sure you want to change the current template?" - }), Me(a9t, { + }), Me(l9t, { children: [Me(ZY, { type: "button", onClick: () => t(e), @@ -52303,13 +52339,13 @@ const J8t = Ht.div` children: "x Cancel" })] })] -}), l9t = Ht.div` +}), u9t = Ht.div` position: absolute; ${(t) => t.$orientation == "left" && My` left: 0; `} transform: ${(t) => t.$orientation == "left" ? "translateX(-105%)" : "translate(-65%, 130%)"}; -`, c9t = Ht.div` +`, h9t = Ht.div` position: relative; background: var(--alert); color: var(--icon-color); @@ -52342,16 +52378,16 @@ const J8t = Ht.div` `} transform: ${(t) => t.$orientation == "left" ? "translate(50%, -50%)" : "translate(-50%, -100%)"}; } -`, u9t = ({ +`, f9t = ({ tooltipOrientation: t, errorMessage: e -}) => Me(l9t, { +}) => Me(u9t, { orientation: t, - children: Me(c9t, { + children: Me(h9t, { orientation: t, children: [" ", e, " "] }) -}), h9t = Ht.div` +}), d9t = Ht.div` display: none; margin-left: 5px; margin-right: 5px; @@ -52394,7 +52430,7 @@ const J8t = Ht.div` padding: 0 10px 0 10px; margin-top: 0px; text-wrap: wrap; -`, f9t = Ht.div` +`, p9t = Ht.div` position: relative; &:hover { div { @@ -52402,16 +52438,16 @@ const J8t = Ht.div` flex-direction: column; } } -`, d9t = Ht.div` +`, g9t = Ht.div` display: flex; flex-direction: row-reverse; border: 1px solid var(--gray-900); width: inherit; -`, p9t = Ht.div` +`, m9t = Ht.div` position: absolute; width: 100%; padding-top: 5px; -`, g9t = (t) => { +`, v9t = (t) => { const e = ["id", "templatetext"]; for (const r in t) { for (let n of e) @@ -52419,7 +52455,7 @@ const J8t = Ht.div` t[r].errorMessage && console.error(t[r].errorMessage); } return t; -}, m9t = ({ +}, y9t = ({ text: t }) => { const { @@ -52454,7 +52490,7 @@ const J8t = Ht.div` return w; }; return u0(() => { - n(""), s({}), o(null), u(!1), f(!1), v(e.templatelist.value).then(g9t).then(b).then(s); + n(""), s({}), o(null), u(!1), f(!1), v(e.templatelist.value).then(v9t).then(b).then(s); }), d.error ? null : Object.keys(i).length == 0 ? Me(ML, { type: "button", title: "Templates", @@ -52463,22 +52499,22 @@ const J8t = Ht.div` onMouseLeave: () => f(!1), children: Me(jY, {}) }) : Me(su, { - children: [l && Me(o9t, { + children: [l && Me(c9t, { selectedTemplate: a, closeModal: () => { u(!1), o(!1); }, changeDocumentTemplate: m - }), Me(f9t, { + }), Me(p9t, { children: [Me(ML, { className: "icon", title: "Templates", type: "button", children: Me(jY, {}) - }), Me(p9t, { - children: Me(h9t, { - children: Object.keys(i).map((w) => i[w].errorMessage ? Me(d9t, { - children: [h === w && Me(u9t, { + }), Me(m9t, { + children: Me(d9t, { + children: Object.keys(i).map((w) => i[w].errorMessage ? Me(g9t, { + children: [h === w && Me(f9t, { tooltipOrientation: "left", errorMessage: i[w].errorMessage }), Me(KY, { @@ -52499,7 +52535,7 @@ const J8t = Ht.div` })] })] }); -}, v9t = (t) => [...(t || "").matchAll(/\[(.+)\]\(([^\s]+)\)/g)].reduce((e, r) => e.replace(r[0], `${r[1]}`), t), y9t = Ht.div` +}, b9t = (t) => [...(t || "").matchAll(/\[(.+)\]\(([^\s]+)\)/g)].reduce((e, r) => e.replace(r[0], `${r[1]}`), t), x9t = Ht.div` z-index: 10; position: sticky; top: 0; @@ -52537,7 +52573,7 @@ const J8t = Ht.div` display: none; } } -`, b9t = Ht.div` +`, w9t = Ht.div` font-size: large; white-space: nowrap; margin-left: 10px; @@ -52547,7 +52583,7 @@ const J8t = Ht.div` a { color: var(--blue-500); } -`, x9t = Ht(xp)` +`, O9t = Ht(xp)` padding: 0px 15px; margin: 5px; pointer-events: none; @@ -52560,7 +52596,7 @@ const J8t = Ht.div` background-color: ${(t) => t.active ? "var(--icon-main-active)" : "var(--icon-bg)"}; margin: 5px; width: 40px; -`, w9t = () => Me("svg", { +`, k9t = () => Me("svg", { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", @@ -52579,7 +52615,7 @@ const J8t = Ht.div` d: "M6.90002 21.0601H0.890015V14.8701", "stroke-width": "1.75" })] -}), O9t = () => Me("svg", { +}), S9t = () => Me("svg", { xmlns: "http://www.w3.org/2000/svg", width: "23", height: "23", @@ -52592,7 +52628,7 @@ const J8t = Ht.div` d: "M21.65 12.5899C20.95 17.4199 16.78 21.1399 11.75 21.1399C6.23 21.1399 1.75 16.6599 1.75 11.1399C1.75 5.61989 6.23 1.13989 11.75 1.13989C16.24 1.13989 20.03 4.09989 21.3 8.16989", "stroke-width": "1.75" })] -}), k9t = () => Me("svg", { +}), T9t = () => Me("svg", { xmlns: "http://www.w3.org/2000/svg", width: "26", height: "18", @@ -52605,7 +52641,7 @@ const J8t = Ht.div` d: "M23.4301 9.80018C23.4301 9.80018 13.75 24.5402 2.58997 9.80018L1.98999 8.95018L2.59998 8.10018C2.59998 8.10018 12.2799 -6.63982 23.4399 8.10018L24.01 8.90018L23.4301 9.80018Z", "stroke-width": "1.75" })] -}), S9t = () => Me("svg", { +}), C9t = () => Me("svg", { xmlns: "http://www.w3.org/2000/svg", width: "21", height: "15", @@ -52621,7 +52657,7 @@ const J8t = Ht.div` d: "M12.35 0.340088L8.72 13.9901", "stroke-width": "1.75" })] -}), T9t = () => Me("svg", { +}), E9t = () => Me("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "22", @@ -52635,7 +52671,7 @@ const J8t = Ht.div` d: "M18.63 5.51001H6.01001V21.11H18.63V5.51001Z", "stroke-width": "1.75" })] -}), C9t = () => Me("svg", { +}), _9t = () => Me("svg", { xmlns: "http://www.w3.org/2000/svg", width: "23", height: "18", @@ -52648,7 +52684,7 @@ const J8t = Ht.div` d: "M11.84 1.83008V16.6701", "stroke-width": "1.75" })] -}), E9t = () => Me("svg", { +}), A9t = () => Me("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "16", @@ -52667,7 +52703,7 @@ const J8t = Ht.div` d: "M5.60999 9.44007L1.35999 5.19007L5.73999 0.820068", "stroke-width": "1.75" })] -}), _9t = () => Me("svg", { +}), L9t = () => Me("svg", { width: "21", height: "22", viewBox: "0 0 21 22", @@ -52690,7 +52726,7 @@ const J8t = Ht.div` stroke: "#332D37", "stroke-width": "1.75" })] -}), A9t = () => Me("svg", { +}), R9t = () => Me("svg", { xmlns: "http://www.w3.org/2000/svg", width: "26", height: "17", @@ -52716,12 +52752,12 @@ const J8t = Ht.div` stroke: "#332D37", "stroke-width": "1.5" })] -}), L9t = { - fullscreen: w9t, - "copy-html": T9t, - refresh: O9t, - "print-to-pdf": _9t -}, R9t = ({ +}), M9t = { + fullscreen: k9t, + "copy-html": E9t, + refresh: S9t, + "print-to-pdf": L9t +}, D9t = ({ alert: t, users: e, text: r, @@ -52729,39 +52765,39 @@ const J8t = Ht.div` }) => { const { options: i - } = cc(mc), s = T0(() => ase.sanitize(v9t(i.title.value))), a = T0(() => { + } = cc(mc), s = T0(() => ase.sanitize(b9t(i.title.value))), a = T0(() => { const h = [{ id: "source", tooltip: "Source", action: () => i.mode.value = "Source", - icon: S9t + icon: C9t }, { id: "preview", tooltip: "Preview", action: () => i.mode.value = "Preview", - icon: k9t + icon: T9t }, { id: "both", tooltip: "Dual Pane", action: () => i.mode.value = "Both", - icon: C9t + icon: _9t }, { id: "diff", tooltip: "Diff View", action: () => i.mode.value = "Diff", - icon: E9t + icon: A9t }]; return i.collaboration.value.resolvingCommentsEnabled && h.push({ id: "resolved", tooltip: "Resolved Comments", action: () => i.mode.value = "Resolved", - icon: A9t + icon: R9t }), h; }), o = T0(() => a.value.findIndex((h) => h.id[0].toUpperCase() + h.id.slice(1) === i.mode.value)), l = vi(() => n.map((h) => ({ ...h, - icon: h.icon || L9t[h.id] + icon: h.icon || M9t[h.id] })).filter((h) => h.icon), [n]), u = vi(() => n.filter((h) => h.text && h.id !== "template-manager"), [n]); - return Me(y9t, { + return Me(x9t, { id: "topbar", children: [Me("div", { class: "buttons-left", @@ -52774,20 +52810,20 @@ const J8t = Ht.div` children: typeof h.icon == "function" ? Me(h.icon, {}) : Me("img", { src: h.icon }) - }, h.id)), n.find((h) => h.id === "template-manager") && i.templatelist.value && Me(m9t, { + }, h.id)), n.find((h) => h.id === "template-manager") && i.templatelist.value && Me(y9t, { text: r })] }), Me("span", { - children: [" ", t && Me(x9t, { + children: [" ", t && Me(O9t, { className: "topbar-alert", children: [" ", t, " "] }), " "] - }), Me(b9t, { + }), Me(w9t, { id: "document-title", dangerouslySetInnerHTML: { __html: s.value } - }), Me(n9t, { + }), Me(s9t, { users: e }), Me("span", { children: u.map((h) => Me(xp, { @@ -52795,13 +52831,13 @@ const J8t = Ht.div` onClick: h.action, children: h.text })) - }), Me(t9t, { + }), Me(n9t, { buttons: a.value, clickedId: o.value })] }); }; -function M9t({ +function P9t({ ytext: t, prov: e, parent: r, @@ -52876,7 +52912,7 @@ Gne.prototype.watchCollabolators = function(t) { } }); }; -function D9t() { +function N9t() { const { options: t, collab: e @@ -52903,7 +52939,7 @@ function D9t() { color: t.collaboration.value.color }), p.ws.onerror = () => u(!0), p.on("sync", s), p.on("status", ({ status: g - }) => o(g == "connected")), M9t({ + }) => o(g == "connected")), P9t({ ytext: d.getText("codemirror"), prov: p, parent: t.parent, @@ -52928,7 +52964,7 @@ function D9t() { ready: i && a }; } -function P9t(t, e) { +function I9t(t, e) { const { options: r } = cc(mc); @@ -52939,7 +52975,7 @@ function P9t(t, e) { return window.myst_editor[r.id.value].ycomments = n, n; }, [t, e, r.id.value, r.getAvatar.value]); } -const N9t = Ht.p` +const $9t = Ht.p` font-size: 16px; padding: 10px 6px; margin-bottom: 0; @@ -52954,29 +52990,29 @@ const N9t = Ht.p` & > span { display: ${(t) => t.orphaned ? "none" : "block"}; } -`, I9t = Ht.div` +`, B9t = Ht.div` background-color: color-mix(in srgb, ${(t) => t.color}, white); border: 2px solid ${(t) => t.color}; padding-top: 10px; margin-left: -1px; width: calc(100% - 3px); -`, $9t = Ht.div` +`, F9t = Ht.div` display: flex; justify-content: space-between; align-items: center; line-height: 22px; padding: 0 6px; -`, B9t = Ht.h2` +`, z9t = Ht.h2` font-weight: bold; font-size: 12px; margin: 0; -`, F9t = Ht.p` +`, Q9t = Ht.p` font-size: 12px; font-weight: 400; line-height: 14px; margin: 0; margin-right: 25px; -`, z9t = Ht.p` +`, U9t = Ht.p` margin: 0; margin-top: 3px; font-size: 16px; @@ -52994,17 +53030,17 @@ const N9t = Ht.p` position: absolute; transform: translateX(calc(-100% - 12px)); } -`, Q9t = Ht.span` +`, V9t = Ht.span` display: block; background-color: color-mix(in srgb, ${(t) => t.color}, white); margin: 0; padding: 10px 6px; white-space: pre-wrap; -`, U9t = Ht.span` +`, q9t = Ht.span` position: absolute; transform: translateX(calc(-100% - 24px)); color: var(--gray-700); -`, V9t = Ht.span` +`, Y9t = Ht.span` margin-right: 6px; display: block; display: flex; @@ -53015,7 +53051,7 @@ const N9t = Ht.p` &:hover div { display: flex !important; } -`, q9t = Ht.div` +`, W9t = Ht.div` align-items: center; position: absolute; background-color: var(--gray-200); @@ -53054,7 +53090,7 @@ const N9t = Ht.p` color: var(--gray-900); } } -`, Y9t = () => Me("svg", { +`, G9t = () => Me("svg", { width: "20", height: "5", viewBox: "0 0 20 5", @@ -53076,7 +53112,7 @@ const N9t = Ht.p` d: "M17.5 0C16.1215 0 15 1.12149 15 2.5C15 3.15421 15.257 3.80841 15.7243 4.2757C16.1916 4.74299 16.8224 5 17.5 5C18.1776 5 18.8084 4.74299 19.2757 4.2757C19.743 3.80841 20 3.17757 20 2.5C20 1.12149 18.8785 0 17.5 0Z", fill: "#6C6C6C" })] -}), W9t = () => Me("svg", { +}), X9t = () => Me("svg", { width: "25", height: "26", viewBox: "0 0 26 21", @@ -53103,7 +53139,7 @@ const N9t = Ht.p` stroke: "#E7473C", "stroke-width": "1.75" })] -}), G9t = () => Me("svg", { +}), H9t = () => Me("svg", { width: "19", height: "19", viewBox: "0 0 19 19", @@ -53118,9 +53154,9 @@ const N9t = Ht.p` stroke: "black", "stroke-width": "1.75" })] -}), X9t = new Intl.RelativeTimeFormat("en", { +}), Z9t = new Intl.RelativeTimeFormat("en", { style: "long" -}), H9t = ({ +}), j9t = ({ c: t, authors: e, ycomments: r, @@ -53168,55 +53204,55 @@ const N9t = Ht.p` const u = vi(() => t.orphaned ? "RESTORE ORPHANED" : t.occupied ? "RESTORE AND MERGE" : "RESTORE", [t]); return Me("div", { style: "position: relative;", - children: [Me(N9t, { + children: [Me($9t, { orphaned: t.orphaned, - children: [Me(U9t, { + children: [Me(q9t, { children: t.lineNumber }), t.resolvedLine] - }), Me(I9t, { + }), Me(B9t, { className: "resolved-comment", color: e.get(1).color, - children: [Me($9t, { + children: [Me(F9t, { children: [Me(JY, { - children: [Me(tfe, { + children: [Me(rfe, { login: e.get(1).name, color: e.get(1).color, avatarUrl: e.get(1).avatar, userUrl: e.get(1).url - }), Me(B9t, { + }), Me(z9t, { children: e.get(1).name })] }), Me(JY, { - children: [Me(F9t, { - children: ["Comment resolved by @", t.resolvedBy.name, " ", X9t.format(-i.amount, i.unit)] - }), Me(V9t, { + children: [Me(Q9t, { + children: ["Comment resolved by @", t.resolvedBy.name, " ", Z9t.format(-i.amount, i.unit)] + }), Me(Y9t, { className: "myst-dropdown-toggle", - children: [Me(Y9t, {}), Me(q9t, { + children: [Me(G9t, {}), Me(W9t, { children: [Me(eW, { className: "myst-restore-btn", onClick: () => r.restoreComment(t), - children: [Me(G9t, {}), Me("p", { + children: [Me(H9t, {}), Me("p", { children: u })] }), Me(eW, { className: "myst-delete-btn", onClick: () => r.resolver().delete(t.commentId), - children: [Me(W9t, {}), Me("p", { + children: [Me(X9t, {}), Me("p", { children: "DELETE" })] })] })] })] })] - }), Me(z9t, { - children: [" ", o.map((h) => Me(Q9t, { + }), Me(U9t, { + children: [" ", o.map((h) => Me(V9t, { color: h.author.color, children: h.text })), " "] })] })] }); -}, Z9t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", rfe = Ht.div` +}, K9t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", nfe = Ht.div` background-color: white; padding: 20px 0; box-sizing: border-box; @@ -53234,13 +53270,13 @@ const N9t = Ht.p` padding-left: 100px; margin-bottom: 0; } -`, j9t = Ht.hr` +`, J9t = Ht.hr` border: none; height: 1px; background-color: var(--gray-600); margin-top: 20px; margin-bottom: 0; -`, K9t = Ht.div` +`, eLt = Ht.div` margin-left: 100px; border-left: 1px solid var(--gray-600); @@ -53248,7 +53284,7 @@ const N9t = Ht.p` p { margin-top: 0; } -`, J9t = Ht.p` +`, tLt = Ht.p` padding: 10px 6px; img { @@ -53263,13 +53299,13 @@ const N9t = Ht.p` margin: 0 5px; } `; -rfe.defaultProps = { +nfe.defaultProps = { className: "myst-resolved" }; function mA(t, e) { return t.resolvedDate - e.resolvedDate; } -const eLt = ({ +const rLt = ({ ycomments: t }) => { let [e, r] = fi(t.resolver().resolved().sort(mA)), n = vi(() => e.reduce((s, { @@ -53277,17 +53313,17 @@ const eLt = ({ }) => (s[a] = t.getTextForComment(a).toString(), s), {}), [e]), i = vi(() => e.map((s) => t.lineAuthors(s.commentId)), [e]); return ri(() => { r(t.resolver().resolved().sort(mA)), t.resolver().onUpdate((s) => r(s.sort(mA))); - }, []), Me(rfe, { + }, []), Me(nfe, { children: [Me("h1", { children: "Resolved comments" - }), Me(j9t, {}), Me(K9t, { - children: e.length === 0 ? Me(J9t, { + }), Me(J9t, {}), Me(eLt, { + children: e.length === 0 ? Me(tLt, { children: ["No resolved comments yet, to resolve a comment hover over it's icon ", Me("img", { - src: Z9t + src: K9t }), " and click ", Me("span", { children: "RESOLVE" })] - }) : e.map((s, a) => Me(H9t, { + }) : e.map((s, a) => Me(j9t, { c: s, authors: i[a], ycomments: t, @@ -53296,7 +53332,7 @@ const eLt = ({ })] }); }; -function tLt(t, e, r) { +function nLt(t, e, r) { if (t.target.tagName != "INPUT") return; const n = t.target.getAttribute("data-line-id"), i = MP(e.current, n), s = r.state.doc.line(i), a = s.text.indexOf("["), o = s.text.indexOf("]"); @@ -53308,7 +53344,7 @@ function tLt(t, e, r) { } }); } -const rLt = Ht.div` +const iLt = Ht.div` max-width: 100%; width: 250px; position: relative; @@ -53317,7 +53353,7 @@ const rLt = Ht.div` * { box-sizing: border-box; } -`, nLt = Ht.button` +`, sLt = Ht.button` width: 100%; text-align: left; justify-content: space-between; @@ -53351,7 +53387,7 @@ const rLt = Ht.div` background-color: var(--icon-selected); border: 1px solid var(--icon-selected); } -`, iLt = ({ +`, aLt = ({ up: t }) => Me("svg", { width: "8", @@ -53366,7 +53402,7 @@ const rLt = Ht.div` "stroke-linecap": "round", "stroke-linejoin": "round" }) -}), sLt = Ht.div` +}), oLt = Ht.div` position: absolute; z-index: 100; background-color: white; @@ -53384,7 +53420,7 @@ const rLt = Ht.div` border-radius: var(--border-radius); border: 1px solid var(--icon-border); } -`, aLt = Ht.ul` +`, lLt = Ht.ul` list-style: none; padding: 0; width: 100%; @@ -53449,22 +53485,22 @@ const rLt = Ht.div` u.value.trim() == "" ? f.value = h.value : s(u.value).then((S) => f.value = S); }, 300); return () => clearTimeout(O); - }), ri(() => h.value = t, [t]), ri(() => o.value = e, [e]), Me(rLt, { - children: [Me(nLt, { + }), ri(() => h.value = t, [t]), ri(() => o.value = e, [e]), Me(iLt, { + children: [Me(sLt, { onClick: m, children: [Me("span", { children: (w = l.value) == null ? void 0 : w.label - }), Me(iLt, { + }), Me(aLt, { up: a.value })] - }), a.value && Me(sLt, { + }), a.value && Me(oLt, { children: [Me("input", { type: "text", ref: (O) => O == null ? void 0 : O.focus(), placeholder: n, value: u.value, onChange: (O) => u.value = O.target.value - }), Me(aLt, { + }), Me(lLt, { onScroll: b, ref: p, children: f.value.map((O) => Me("li", { @@ -53475,12 +53511,12 @@ const rLt = Ht.div` })] })] }); -}, nfe = Ht.div` +}, ife = Ht.div` background-color: white; position: absolute; z-index: 11; border-radius: var(--border-radius); -`, oLt = Ht(nfe)` +`, cLt = Ht(ife)` left: 50%; top: 80px; transform: translateX(-160px); @@ -53538,7 +53574,7 @@ const rLt = Ht.div` } } } -`, lLt = ({ +`, uLt = ({ initialSummary: t = "", onSubmit: e, onClose: r @@ -53546,7 +53582,7 @@ const rLt = Ht.div` const n = Ni(t), i = Ni(""), s = T0(() => `${n.value} ${i.value}`); - return Me(oLt, { + return Me(cLt, { children: Me("form", { onSubmit: (a) => { a.preventDefault(), e({ @@ -53586,14 +53622,14 @@ ${i.value}`); })] }) }); -}, cLt = Ht.div` +}, hLt = Ht.div` display: grid; grid-template-columns: 300px 1fr; grid-template-rows: 100%; height: 100%; font-family: "Lato"; position: relative; -`, uLt = Ht.div` +`, fLt = Ht.div` display: flex; flex-direction: column; align-items: center; @@ -53611,7 +53647,7 @@ ${i.value}`); font-weight: 600; font-size: 14px; } -`, hLt = Ht.div` +`, dLt = Ht.div` color: white; font-size: 12px; width: 100%; @@ -53657,7 +53693,7 @@ ${i.value}`); display: block; } } -`, fLt = Ht(nfe)` +`, pLt = Ht(ife)` background-color: white; position: absolute; top: 10px; @@ -53683,7 +53719,7 @@ ${i.value}`); display: inline-block; color: var(--blue-500); } -`, dLt = ({ +`, gLt = ({ repo: t = "repo", initialBranches: e = ["main"], getBranches: r = async () => [], @@ -53842,8 +53878,8 @@ ${i.value}`); style: "all: initial;", children: Me(bK, { target: d.parent, - children: Me(cLt, { - children: [Me(uLt, { + children: Me(hLt, { + children: [Me(fLt, { children: [Me("div", { children: [Me("label", { children: "Branch:" @@ -53879,7 +53915,7 @@ ${i.value}`); initialValue: b.value, searchOptions: async (Q) => y.value.filter((W) => W.toLowerCase().includes(Q.toLowerCase())).map(B) })] - }), Me(hLt, { + }), Me(dLt, { children: [Me("p", { children: "History:" }), C.value.length == 0 ? Me("p", { @@ -53907,7 +53943,7 @@ ${i.value}`); }, Q.timestamp)) })] })] - }), T.value && Me(fLt, { + }), T.value && Me(pLt, { id: "toast", children: [Me("span", { children: [T.value.text, T.value.link && Me("a", { @@ -53920,18 +53956,18 @@ ${i.value}`); onClick: () => T.value = null, children: "x" })] - }), A.value && Me(lLt, { + }), A.value && Me(uLt, { initialSummary: A, onSubmit: R, onClose: _ }), Me(mc.Provider, { value: S.current, - children: O.value && Me(sfe, {}) + children: O.value && Me(afe, {}) })] }) }) }); -}, zhr = ({ +}, Uhr = ({ additionalStyles: t, id: e, ...r @@ -53949,11 +53985,11 @@ ${i.value}`); }); a.observe(n.parentElement, { childList: !0 - }), jc(Me(dLt, { + }), jc(Me(gLt, { ...r, id: i }), n.shadowRoot); -}, pLt = Ht.div` +}, mLt = Ht.div` font-family: "Lato"; display: flex; flex-flow: row wrap; @@ -53976,7 +54012,7 @@ ${i.value}`); return ""; } }} -`, ife = Ht.div` +`, sfe = Ht.div` padding: 20px; display: flex; box-sizing: border-box; @@ -53986,7 +54022,7 @@ ${i.value}`); background-color: white; ${(t) => t.fullscreen && "box-sizing:border-box; height: calc(100vh - 60px);"} `; -ife.defaultProps = { +sfe.defaultProps = { className: "myst-editor-wrapper" }; const tW = Ht.div` @@ -54009,19 +54045,19 @@ const tW = Ht.div` & > * { min-height: 500px; } -`, gLt = (t) => { +`, vLt = (t) => { const e = (r, n, i) => { r.type == "rule" && (r.props[0] = r.props[0].split(",").map((s) => `${t} ${s}`).join(",")); }; return Object.defineProperty(e, "name", { value: `scope-${t}` }), e; -}, mLt = (t) => document.documentElement.style.overflow = t ? "hidden" : "visible", sfe = () => { +}, yLt = (t) => document.documentElement.style.overflow = t ? "hidden" : "visible", afe = () => { const { editorView: t, cache: e, options: r - } = cc(mc), [n, i] = fi(!1), s = Ts(null), a = _7t({ + } = cc(mc), [n, i] = fi(!1), s = Ts(null), a = L7t({ preview: s }), [o, l] = fi(null), [u, h] = CT((S, C) => C.map((T) => ({ ...T, @@ -54034,7 +54070,7 @@ const tW = Ht.div` ydoc: g, ready: m, error: v - } = D9t(), y = P9t(g, f), b = (S, C) => { + } = N9t(), y = I9t(g, f), b = (S, C) => { l(S), setTimeout(() => l(null), C * 1e3); }, w = vi(() => ({ "copy-html": async () => { @@ -54048,16 +54084,16 @@ const tW = Ht.div` ...S, action: S.action || w[S.id] })), [r.includeButtons.value, w]); - return ri(() => mLt(n), [n]), Me("div", { + return ri(() => yLt(n), [n]), Me("div", { style: "all: initial", id: "myst-css-namespace", children: Me(bK, { target: r.parent, - stylisPlugins: [gLt("#myst-css-namespace")], - children: Me(pLt, { + stylisPlugins: [vLt("#myst-css-namespace")], + children: Me(mLt, { mode: r.mode.value, fullscreen: n, - children: [r.topbar.value && Me(R9t, { + children: [r.topbar.value && Me(D9t, { alert: o, users: u, text: a, @@ -54067,11 +54103,11 @@ const tW = Ht.div` children: [" ", typeof v == "string" ? v : "No connection to the collaboration server", " "] }), r.collaboration.enabled && !m && !v && Me(tW, { children: "Connecting to the collaboration server ..." - }), Me(ife, { + }), Me(sfe, { fullscreen: n, children: [Me(a4, { id: "editor-wrapper", - children: Me(A8t, { + children: Me(R8t, { text: a, preview: s, collaboration: { @@ -54087,23 +54123,23 @@ const tW = Ht.div` }) }), Me(a4, { id: "preview-wrapper", - children: Me(zhe, { + children: Me(Qhe, { ref: s, mode: r.mode.value, onClick: (S) => { - tLt(S, a.lineMap, t.value), r.syncScroll.value && r.mode.value == "Both" && M7t(S, a.lineMap, s, t.value); + nLt(S, a.lineMap, t.value), r.syncScroll.value && r.mode.value == "Both" && P7t(S, a.lineMap, s, t.value); }, - children: Me(L8t, { + children: Me(M8t, { className: "cm-previewFocus" }) }) }), r.mode.value === "Diff" && Me(a4, { - children: Me(Jhe, { + children: Me(efe, { text: a }) }), r.collaboration.value.commentsEnabled && r.collaboration.value.resolvingCommentsEnabled && y && !v && Me(a4, { id: "resolved-wrapper", - children: Me(eLt, { + children: Me(rLt, { ycomments: y }) })] @@ -54111,7 +54147,7 @@ const tW = Ht.div` }) }) }); -}, Qhr = ({ +}, Vhr = ({ additionalStyles: t, id: e, ...r @@ -54140,7 +54176,7 @@ const tW = Ht.div` }); return window.myst_editor[i].state = o, jc(Me(mc.Provider, { value: o, - children: Me(sfe, {}) + children: Me(afe, {}) }), n.shadowRoot), o; }; (function() { @@ -54200,42 +54236,42 @@ class Ot { } } Ot.prototype.__proto__ = Error.prototype; -var vLt = function(e, r) { +var bLt = function(e, r) { return e.indexOf(r) !== -1; -}, yLt = function(e, r) { +}, xLt = function(e, r) { return e === void 0 ? r : e; -}, bLt = /([A-Z])/g, xLt = function(e) { - return e.replace(bLt, "-$1").toLowerCase(); -}, wLt = { +}, wLt = /([A-Z])/g, OLt = function(e) { + return e.replace(wLt, "-$1").toLowerCase(); +}, kLt = { "&": "&", ">": ">", "<": "<", '"': """, "'": "'" -}, OLt = /[&><"']/g; -function kLt(t) { - return String(t).replace(OLt, (e) => wLt[e]); +}, SLt = /[&><"']/g; +function TLt(t) { + return String(t).replace(SLt, (e) => kLt[e]); } -var afe = function t(e) { +var ofe = function t(e) { return e.type === "ordgroup" || e.type === "color" ? e.body.length === 1 ? t(e.body[0]) : e : e.type === "font" ? t(e.body) : e; -}, SLt = function(e) { - var r = afe(e); +}, CLt = function(e) { + var r = ofe(e); return r.type === "mathord" || r.type === "textord" || r.type === "atom"; -}, TLt = function(e) { +}, ELt = function(e) { if (!e) throw new Error("Expected non-null, but got " + String(e)); return e; -}, CLt = function(e) { +}, _Lt = function(e) { var r = /^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e); return r ? r[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1]) ? null : r[1].toLowerCase() : "_relative"; }, nr = { - contains: vLt, - deflt: yLt, - escape: kLt, - hyphenate: xLt, - getBaseElem: afe, - isCharacterBox: SLt, - protocolFromUrl: CLt + contains: bLt, + deflt: xLt, + escape: TLt, + hyphenate: OLt, + getBaseElem: ofe, + isCharacterBox: CLt, + protocolFromUrl: _Lt }, $5 = { displayMode: { type: "boolean", @@ -54323,7 +54359,7 @@ var afe = function t(e) { cli: !1 } }; -function ELt(t) { +function ALt(t) { if (t.default) return t.default; var e = t.type, r = Array.isArray(e) ? e[0] : e; @@ -54346,7 +54382,7 @@ class BN { for (var r in $5) if ($5.hasOwnProperty(r)) { var n = $5[r]; - this[r] = e[r] !== void 0 ? n.processor ? n.processor(e[r]) : e[r] : ELt(n); + this[r] = e[r] !== void 0 ? n.processor ? n.processor(e[r]) : e[r] : ALt(n); } } reportNonstrict(e, r, n) { @@ -54378,33 +54414,33 @@ class BN { return Boolean(n); } } -class qh { +class Yh { constructor(e, r, n) { this.id = void 0, this.size = void 0, this.cramped = void 0, this.id = e, this.size = r, this.cramped = n; } sup() { - return Dc[_Lt[this.id]]; + return Dc[LLt[this.id]]; } sub() { - return Dc[ALt[this.id]]; + return Dc[RLt[this.id]]; } fracNum() { - return Dc[LLt[this.id]]; + return Dc[MLt[this.id]]; } fracDen() { - return Dc[RLt[this.id]]; + return Dc[DLt[this.id]]; } cramp() { - return Dc[MLt[this.id]]; + return Dc[PLt[this.id]]; } text() { - return Dc[DLt[this.id]]; + return Dc[NLt[this.id]]; } isTight() { return this.size >= 2; } } -var FN = 0, iS = 1, Gg = 2, ih = 3, gb = 4, nl = 5, Xm = 6, Ta = 7, Dc = [new qh(FN, 0, !1), new qh(iS, 0, !0), new qh(Gg, 1, !1), new qh(ih, 1, !0), new qh(gb, 2, !1), new qh(nl, 2, !0), new qh(Xm, 3, !1), new qh(Ta, 3, !0)], _Lt = [gb, nl, gb, nl, Xm, Ta, Xm, Ta], ALt = [nl, nl, nl, nl, Ta, Ta, Ta, Ta], LLt = [Gg, ih, gb, nl, Xm, Ta, Xm, Ta], RLt = [ih, ih, nl, nl, Ta, Ta, Ta, Ta], MLt = [iS, iS, ih, ih, nl, nl, Ta, Ta], DLt = [FN, iS, Gg, ih, Gg, ih, Gg, ih], ar = { +var FN = 0, iS = 1, Gg = 2, ih = 3, gb = 4, nl = 5, Xm = 6, Ta = 7, Dc = [new Yh(FN, 0, !1), new Yh(iS, 0, !0), new Yh(Gg, 1, !1), new Yh(ih, 1, !0), new Yh(gb, 2, !1), new Yh(nl, 2, !0), new Yh(Xm, 3, !1), new Yh(Ta, 3, !0)], LLt = [gb, nl, gb, nl, Xm, Ta, Xm, Ta], RLt = [nl, nl, nl, nl, Ta, Ta, Ta, Ta], MLt = [Gg, ih, gb, nl, Xm, Ta, Xm, Ta], DLt = [ih, ih, nl, nl, Ta, Ta, Ta, Ta], PLt = [iS, iS, ih, ih, nl, nl, Ta, Ta], NLt = [FN, iS, Gg, ih, Gg, ih, Gg, ih], ar = { DISPLAY: Dc[FN], TEXT: Dc[Gg], SCRIPT: Dc[gb], @@ -54438,7 +54474,7 @@ var FN = 0, iS = 1, Gg = 2, ih = 3, gb = 4, nl = 5, Xm = 6, Ta = 7, Dc = [new qh name: "hangul", blocks: [[44032, 55215]] }]; -function PLt(t) { +function ILt(t) { for (var e = 0; e < DL.length; e++) for (var r = DL[e], n = 0; n < r.blocks.length; n++) { var i = r.blocks[n]; @@ -54449,13 +54485,13 @@ function PLt(t) { } var B5 = []; DL.forEach((t) => t.blocks.forEach((e) => B5.push(...e))); -function ofe(t) { +function lfe(t) { for (var e = 0; e < B5.length; e += 2) if (t >= B5[e] && t <= B5[e + 1]) return !0; return !1; } -var jp = 80, NLt = function(e, r) { +var jp = 80, $Lt = function(e, r) { return "M95," + (622 + e + r) + ` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 @@ -54468,7 +54504,7 @@ H400000v` + (40 + e) + `H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z M` + (834 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z"; -}, ILt = function(e, r) { +}, BLt = function(e, r) { return "M263," + (601 + e + r) + `c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 @@ -54480,7 +54516,7 @@ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z M` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z"; -}, $Lt = function(e, r) { +}, FLt = function(e, r) { return "M983 " + (10 + e + r) + ` l` + e / 3.13 + " -" + e + ` c4,-6.7,10,-10,18,-10 H400000v` + (40 + e) + ` @@ -54491,7 +54527,7 @@ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z M` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z"; -}, BLt = function(e, r) { +}, zLt = function(e, r) { return "M424," + (2398 + e + r) + ` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 @@ -54503,7 +54539,7 @@ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M` + (1001 + e) + " " + r + ` h400000v` + (40 + e) + "h-400000z"; -}, FLt = function(e, r) { +}, QLt = function(e, r) { return "M473," + (2713 + e + r) + ` c339.3,-1799.3,509.3,-2700,510,-2702 l` + e / 5.298 + " -" + e + ` c3.3,-7.3,9.3,-11,18,-11 H400000v` + (40 + e) + `H1017.7 @@ -54512,40 +54548,40 @@ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 606zM` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "H1017.7z"; -}, zLt = function(e) { +}, ULt = function(e) { var r = e / 2; return "M400000 " + e + " H0 L" + r + " 0 l65 45 L145 " + (e - 80) + " H400000z"; -}, QLt = function(e, r, n) { +}, VLt = function(e, r, n) { var i = n - 54 - r - e; return "M702 " + (e + r) + "H400000" + (40 + e) + ` H742v` + i + `l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 219 661 l218 661zM702 ` + r + "H400000v" + (40 + e) + "H742z"; -}, ULt = function(e, r, n) { +}, qLt = function(e, r, n) { r = 1e3 * r; var i = ""; switch (e) { case "sqrtMain": - i = NLt(r, jp); + i = $Lt(r, jp); break; case "sqrtSize1": - i = ILt(r, jp); + i = BLt(r, jp); break; case "sqrtSize2": - i = $Lt(r, jp); + i = FLt(r, jp); break; case "sqrtSize3": - i = BLt(r, jp); + i = zLt(r, jp); break; case "sqrtSize4": - i = FLt(r, jp); + i = QLt(r, jp); break; case "sqrtTall": - i = QLt(r, jp, n); + i = VLt(r, jp, n); } return i; -}, VLt = function(e, r) { +}, YLt = function(e, r) { switch (e) { case "\u239C": return "M291 0 H417 V" + r + " H291z M291 0 H417 V" + r + " H291z"; @@ -54799,7 +54835,7 @@ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z` -}, qLt = function(e, r) { +}, WLt = function(e, r) { switch (e) { case "lbrack": return "M403 1759 V84 H666 V0 H319 V1759 v" + r + ` v1759 h347 v-84 @@ -57057,14 +57093,14 @@ var Wc = { \u044E: "m", \u044F: "r" }; -function YLt(t, e) { +function GLt(t, e) { Wc[t] = e; } function zN(t, e, r) { if (!Wc[e]) throw new Error("Font metrics not found for font: " + e + "."); var n = t.charCodeAt(0), i = Wc[e][n]; - if (!i && t[0] in nW && (n = nW[t[0]].charCodeAt(0), i = Wc[e][n]), !i && r === "text" && ofe(n) && (i = Wc[e][77]), i) + if (!i && t[0] in nW && (n = nW[t[0]].charCodeAt(0), i = Wc[e][n]), !i && r === "text" && lfe(n) && (i = Wc[e][77]), i) return { depth: i[0], height: i[1], @@ -57074,7 +57110,7 @@ function zN(t, e, r) { }; } var yA = {}; -function WLt(t) { +function XLt(t) { var e; if (t >= 5 ? e = 0 : t >= 3 ? e = 1 : e = 2, !yA[e]) { var r = yA[e] = { @@ -57085,7 +57121,7 @@ function WLt(t) { } return yA[e]; } -var GLt = [ +var HLt = [ [1, 1, 1], [2, 1, 1], [3, 1, 1], @@ -57110,7 +57146,7 @@ var GLt = [ 2.074, 2.488 ], sW = function(e, r) { - return r.size < 2 ? e : GLt[e - 1][r.size - 1]; + return r.size < 2 ? e : HLt[e - 1][r.size - 1]; }; class zu { constructor(e) { @@ -57218,7 +57254,7 @@ class zu { return this.size !== zu.BASESIZE ? ["sizing", "reset-size" + this.size, "size" + zu.BASESIZE] : []; } fontMetrics() { - return this._fontMetrics || (this._fontMetrics = WLt(this.size)), this._fontMetrics; + return this._fontMetrics || (this._fontMetrics = XLt(this.size)), this._fontMetrics; } getColor() { return this.phantom ? "transparent" : this.color; @@ -57238,12 +57274,12 @@ var PL = { nc: 1370 / 107, sp: 1 / 65536, px: 803 / 800 -}, XLt = { +}, ZLt = { ex: !0, em: !0, mu: !0 -}, lfe = function(e) { - return typeof e != "string" && (e = e.unit), e in PL || e in XLt || e === "ex"; +}, cfe = function(e) { + return typeof e != "string" && (e = e.unit), e in PL || e in ZLt || e === "ex"; }, qn = function(e, r) { var n; if (e.unit in PL) @@ -57263,17 +57299,17 @@ var PL = { return Math.min(e.number * n, r.maxSize); }, Ct = function(e) { return +e.toFixed(4) + "em"; -}, jf = function(e) { +}, Kf = function(e) { return e.filter((r) => r).join(" "); -}, cfe = function(e, r, n) { +}, ufe = function(e, r, n) { if (this.classes = e || [], this.attributes = {}, this.height = 0, this.depth = 0, this.maxFontSize = 0, this.style = n || {}, r) { r.style.isTight() && this.classes.push("mtight"); var i = r.getColor(); i && (this.style.color = i); } -}, ufe = function(e) { +}, hfe = function(e) { var r = document.createElement(e); - r.className = jf(this.classes); + r.className = Kf(this.classes); for (var n in this.style) this.style.hasOwnProperty(n) && (r.style[n] = this.style[n]); for (var i in this.attributes) @@ -57281,9 +57317,9 @@ var PL = { for (var s = 0; s < this.children.length; s++) r.appendChild(this.children[s].toNode()); return r; -}, hfe = function(e) { +}, ffe = function(e) { var r = "<" + e; - this.classes.length && (r += ' class="' + nr.escape(jf(this.classes)) + '"'); + this.classes.length && (r += ' class="' + nr.escape(Kf(this.classes)) + '"'); var n = ""; for (var i in this.style) this.style.hasOwnProperty(i) && (n += nr.hyphenate(i) + ":" + this.style[i] + ";"); @@ -57297,7 +57333,7 @@ var PL = { }; class vw { constructor(e, r, n, i) { - this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.width = void 0, this.maxFontSize = void 0, this.style = void 0, cfe.call(this, e, n, i), this.children = r || []; + this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.width = void 0, this.maxFontSize = void 0, this.style = void 0, ufe.call(this, e, n, i), this.children = r || []; } setAttribute(e, r) { this.attributes[e] = r; @@ -57306,15 +57342,15 @@ class vw { return nr.contains(this.classes, e); } toNode() { - return ufe.call(this, "span"); + return hfe.call(this, "span"); } toMarkup() { - return hfe.call(this, "span"); + return ffe.call(this, "span"); } } class QN { constructor(e, r, n, i) { - this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, cfe.call(this, r, i), this.children = n || [], this.setAttribute("href", e); + this.children = void 0, this.attributes = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, ufe.call(this, r, i), this.children = n || [], this.setAttribute("href", e); } setAttribute(e, r) { this.attributes[e] = r; @@ -57323,13 +57359,13 @@ class QN { return nr.contains(this.classes, e); } toNode() { - return ufe.call(this, "a"); + return hfe.call(this, "a"); } toMarkup() { - return hfe.call(this, "a"); + return ffe.call(this, "a"); } } -class HLt { +class jLt { constructor(e, r, n) { this.src = void 0, this.alt = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.alt = r, this.src = e, this.classes = ["mord"], this.style = n; } @@ -57350,7 +57386,7 @@ class HLt { return r && (e += ' style="' + nr.escape(r) + '"'), e += "'/>", e; } } -var ZLt = { +var KLt = { \u00EE: "\u0131\u0302", \u00EF: "\u0131\u0308", \u00ED: "\u0131\u0301", @@ -57359,22 +57395,22 @@ var ZLt = { class bl { constructor(e, r, n, i, s, a, o, l) { this.text = void 0, this.height = void 0, this.depth = void 0, this.italic = void 0, this.skew = void 0, this.width = void 0, this.maxFontSize = void 0, this.classes = void 0, this.style = void 0, this.text = e, this.height = r || 0, this.depth = n || 0, this.italic = i || 0, this.skew = s || 0, this.width = a || 0, this.classes = o || [], this.style = l || {}, this.maxFontSize = 0; - var u = PLt(this.text.charCodeAt(0)); - u && this.classes.push(u + "_fallback"), /[îïíì]/.test(this.text) && (this.text = ZLt[this.text]); + var u = ILt(this.text.charCodeAt(0)); + u && this.classes.push(u + "_fallback"), /[îïíì]/.test(this.text) && (this.text = KLt[this.text]); } hasClass(e) { return nr.contains(this.classes, e); } toNode() { var e = document.createTextNode(this.text), r = null; - this.italic > 0 && (r = document.createElement("span"), r.style.marginRight = Ct(this.italic)), this.classes.length > 0 && (r = r || document.createElement("span"), r.className = jf(this.classes)); + this.italic > 0 && (r = document.createElement("span"), r.style.marginRight = Ct(this.italic)), this.classes.length > 0 && (r = r || document.createElement("span"), r.className = Kf(this.classes)); for (var n in this.style) this.style.hasOwnProperty(n) && (r = r || document.createElement("span"), r.style[n] = this.style[n]); return r ? (r.appendChild(e), r) : e; } toMarkup() { var e = !1, r = " 0 && (n += "margin-right:" + this.italic + "em;"); for (var i in this.style) @@ -57406,7 +57442,7 @@ class bh { return e += "", e; } } -class Kf { +class Jf { constructor(e, r) { this.pathName = void 0, this.alternate = void 0, this.pathName = e, this.alternate = r; } @@ -57440,19 +57476,19 @@ function aW(t) { return t; throw new Error("Expected symbolNode but got " + String(t) + "."); } -function jLt(t) { +function JLt(t) { if (t instanceof vw) return t; throw new Error("Expected span but got " + String(t) + "."); } -var KLt = { +var eRt = { bin: 1, close: 1, inner: 1, open: 1, punct: 1, rel: 1 -}, JLt = { +}, tRt = { "accent-token": 1, mathord: 1, "op-token": 1, @@ -57469,7 +57505,7 @@ function z(t, e, r, n, i, s) { replace: n }, s && n && (Tn[t][n] = Tn[t][i]); } -var q = "math", pt = "text", re = "main", xe = "ams", zn = "accent-token", zt = "bin", Ia = "close", Q1 = "inner", sr = "mathord", Ri = "op-token", Io = "open", XC = "punct", Te = "rel", Bh = "spacing", Be = "textord"; +var q = "math", pt = "text", re = "main", xe = "ams", zn = "accent-token", zt = "bin", Ia = "close", Q1 = "inner", sr = "mathord", Ri = "op-token", Io = "open", XC = "punct", Te = "rel", Fh = "spacing", Be = "textord"; z(q, re, Te, "\u2261", "\\equiv", !0); z(q, re, Te, "\u227A", "\\prec", !0); z(q, re, Te, "\u227B", "\\succ", !0); @@ -57913,15 +57949,15 @@ z(q, re, Te, "\u2192", "\\rightarrow", !0); z(q, re, Te, "\u2192", "\\to"); z(q, xe, Te, "\u2271", "\\ngeq", !0); z(q, xe, Te, "\u2270", "\\nleq", !0); -z(q, re, Bh, "\xA0", "\\ "); -z(q, re, Bh, "\xA0", "\\space"); -z(q, re, Bh, "\xA0", "\\nobreakspace"); -z(pt, re, Bh, "\xA0", "\\ "); -z(pt, re, Bh, "\xA0", " "); -z(pt, re, Bh, "\xA0", "\\space"); -z(pt, re, Bh, "\xA0", "\\nobreakspace"); -z(q, re, Bh, null, "\\nobreak"); -z(q, re, Bh, null, "\\allowbreak"); +z(q, re, Fh, "\xA0", "\\ "); +z(q, re, Fh, "\xA0", "\\space"); +z(q, re, Fh, "\xA0", "\\nobreakspace"); +z(pt, re, Fh, "\xA0", "\\ "); +z(pt, re, Fh, "\xA0", " "); +z(pt, re, Fh, "\xA0", "\\space"); +z(pt, re, Fh, "\xA0", "\\nobreakspace"); +z(q, re, Fh, null, "\\nobreak"); +z(q, re, Fh, null, "\\allowbreak"); z(q, re, XC, ",", ","); z(q, re, XC, ";", ";"); z(q, xe, zt, "\u22BC", "\\barwedge", !0); @@ -58040,7 +58076,7 @@ z(pt, re, zn, "\u02C7", "\\v"); z(pt, re, zn, "\xA8", '\\"'); z(pt, re, zn, "\u02DD", "\\H"); z(pt, re, zn, "\u25EF", "\\textcircled"); -var ffe = { +var dfe = { "--": !0, "---": !0, "``": !0, @@ -58098,17 +58134,17 @@ z(q, xe, Be, "Z", "\u2124"); z(pt, xe, Be, "Z", "\u2124"); z(q, re, sr, "h", "\u210E"); z(pt, re, sr, "h", "\u210E"); -var fr = ""; +var dr = ""; for (var ya = 0; ya < sS.length; ya++) { var Kn = sS.charAt(ya); - fr = String.fromCharCode(55349, 56320 + ya), z(q, re, sr, Kn, fr), z(pt, re, Be, Kn, fr), fr = String.fromCharCode(55349, 56372 + ya), z(q, re, sr, Kn, fr), z(pt, re, Be, Kn, fr), fr = String.fromCharCode(55349, 56424 + ya), z(q, re, sr, Kn, fr), z(pt, re, Be, Kn, fr), fr = String.fromCharCode(55349, 56580 + ya), z(q, re, sr, Kn, fr), z(pt, re, Be, Kn, fr), fr = String.fromCharCode(55349, 56684 + ya), z(q, re, sr, Kn, fr), z(pt, re, Be, Kn, fr), fr = String.fromCharCode(55349, 56736 + ya), z(q, re, sr, Kn, fr), z(pt, re, Be, Kn, fr), fr = String.fromCharCode(55349, 56788 + ya), z(q, re, sr, Kn, fr), z(pt, re, Be, Kn, fr), fr = String.fromCharCode(55349, 56840 + ya), z(q, re, sr, Kn, fr), z(pt, re, Be, Kn, fr), fr = String.fromCharCode(55349, 56944 + ya), z(q, re, sr, Kn, fr), z(pt, re, Be, Kn, fr), ya < 26 && (fr = String.fromCharCode(55349, 56632 + ya), z(q, re, sr, Kn, fr), z(pt, re, Be, Kn, fr), fr = String.fromCharCode(55349, 56476 + ya), z(q, re, sr, Kn, fr), z(pt, re, Be, Kn, fr)); + dr = String.fromCharCode(55349, 56320 + ya), z(q, re, sr, Kn, dr), z(pt, re, Be, Kn, dr), dr = String.fromCharCode(55349, 56372 + ya), z(q, re, sr, Kn, dr), z(pt, re, Be, Kn, dr), dr = String.fromCharCode(55349, 56424 + ya), z(q, re, sr, Kn, dr), z(pt, re, Be, Kn, dr), dr = String.fromCharCode(55349, 56580 + ya), z(q, re, sr, Kn, dr), z(pt, re, Be, Kn, dr), dr = String.fromCharCode(55349, 56684 + ya), z(q, re, sr, Kn, dr), z(pt, re, Be, Kn, dr), dr = String.fromCharCode(55349, 56736 + ya), z(q, re, sr, Kn, dr), z(pt, re, Be, Kn, dr), dr = String.fromCharCode(55349, 56788 + ya), z(q, re, sr, Kn, dr), z(pt, re, Be, Kn, dr), dr = String.fromCharCode(55349, 56840 + ya), z(q, re, sr, Kn, dr), z(pt, re, Be, Kn, dr), dr = String.fromCharCode(55349, 56944 + ya), z(q, re, sr, Kn, dr), z(pt, re, Be, Kn, dr), ya < 26 && (dr = String.fromCharCode(55349, 56632 + ya), z(q, re, sr, Kn, dr), z(pt, re, Be, Kn, dr), dr = String.fromCharCode(55349, 56476 + ya), z(q, re, sr, Kn, dr), z(pt, re, Be, Kn, dr)); } -fr = String.fromCharCode(55349, 56668); -z(q, re, sr, "k", fr); -z(pt, re, Be, "k", fr); +dr = String.fromCharCode(55349, 56668); +z(q, re, sr, "k", dr); +z(pt, re, Be, "k", dr); for (var Pd = 0; Pd < 10; Pd++) { - var Yh = Pd.toString(); - fr = String.fromCharCode(55349, 57294 + Pd), z(q, re, sr, Yh, fr), z(pt, re, Be, Yh, fr), fr = String.fromCharCode(55349, 57314 + Pd), z(q, re, sr, Yh, fr), z(pt, re, Be, Yh, fr), fr = String.fromCharCode(55349, 57324 + Pd), z(q, re, sr, Yh, fr), z(pt, re, Be, Yh, fr), fr = String.fromCharCode(55349, 57334 + Pd), z(q, re, sr, Yh, fr), z(pt, re, Be, Yh, fr); + var Wh = Pd.toString(); + dr = String.fromCharCode(55349, 57294 + Pd), z(q, re, sr, Wh, dr), z(pt, re, Be, Wh, dr), dr = String.fromCharCode(55349, 57314 + Pd), z(q, re, sr, Wh, dr), z(pt, re, Be, Wh, dr), dr = String.fromCharCode(55349, 57324 + Pd), z(q, re, sr, Wh, dr), z(pt, re, Be, Wh, dr), dr = String.fromCharCode(55349, 57334 + Pd), z(q, re, sr, Wh, dr), z(pt, re, Be, Wh, dr); } var IL = "\xD0\xDE\xFE"; for (var OA = 0; OA < IL.length; OA++) { @@ -58148,7 +58184,7 @@ var u4 = [ ["mathsf", "textsf", "SansSerif-Regular"], ["mathboldsf", "textboldsf", "SansSerif-Bold"], ["mathtt", "texttt", "Typewriter-Regular"] -], eRt = function(e, r) { +], rRt = function(e, r) { var n = e.charCodeAt(0), i = e.charCodeAt(1), s = (n - 55296) * 1024 + (i - 56320) + 65536, a = r === "math" ? 0 : 1; if (119808 <= s && s < 120484) { var o = Math.floor((s - 119808) / 26); @@ -58183,9 +58219,9 @@ var u4 = [ h && (l.style.color = h); } return l; -}, tRt = function(e, r, n, i) { +}, nRt = function(e, r, n, i) { return i === void 0 && (i = []), n.font === "boldsymbol" && HC(e, "Main-Bold", r).metrics ? Pl(e, "Main-Bold", r, n, i.concat(["mathbf"])) : e === "\\" || Tn[r][e].font === "main" ? Pl(e, "Main-Regular", r, n, i) : Pl(e, "AMS-Regular", r, n, i.concat(["amsrm"])); -}, rRt = function(e, r, n, i, s) { +}, iRt = function(e, r, n, i, s) { return s !== "textord" && HC(e, "Math-BoldItalic", r).metrics ? { fontName: "Math-BoldItalic", fontClass: "boldsymbol" @@ -58193,23 +58229,23 @@ var u4 = [ fontName: "Main-Bold", fontClass: "mathbf" }; -}, nRt = function(e, r, n) { +}, sRt = function(e, r, n) { var i = e.mode, s = e.text, a = ["mord"], o = i === "math" || i === "text" && r.font, l = o ? r.font : r.fontFamily, u = "", h = ""; - if (s.charCodeAt(0) === 55349 && ([u, h] = eRt(s, i)), u.length > 0) + if (s.charCodeAt(0) === 55349 && ([u, h] = rRt(s, i)), u.length > 0) return Pl(s, u, i, r, a.concat(h)); if (l) { var f, d; if (l === "boldsymbol") { - var p = rRt(s, i, r, a, n); + var p = iRt(s, i, r, a, n); f = p.fontName, d = [p.fontClass]; } else - o ? (f = gfe[l].fontName, d = [l]) : (f = h4(l, r.fontWeight, r.fontShape), d = [l, r.fontWeight, r.fontShape]); + o ? (f = mfe[l].fontName, d = [l]) : (f = h4(l, r.fontWeight, r.fontShape), d = [l, r.fontWeight, r.fontShape]); if (HC(s, f, i).metrics) return Pl(s, f, i, r, a.concat(d)); - if (ffe.hasOwnProperty(s) && f.slice(0, 10) === "Typewriter") { + if (dfe.hasOwnProperty(s) && f.slice(0, 10) === "Typewriter") { for (var g = [], m = 0; m < s.length; m++) g.push(Pl(s[m], f, i, r, a.concat(d))); - return pfe(g); + return gfe(g); } } if (n === "mathord") @@ -58228,8 +58264,8 @@ var u4 = [ } } else throw new Error("unexpected type: " + n + " in makeOrd"); -}, iRt = (t, e) => { - if (jf(t.classes) !== jf(e.classes) || t.skew !== e.skew || t.maxFontSize !== e.maxFontSize) +}, aRt = (t, e) => { + if (Kf(t.classes) !== Kf(e.classes) || t.skew !== e.skew || t.maxFontSize !== e.maxFontSize) return !1; if (t.classes.length === 1) { var r = t.classes[0]; @@ -58243,10 +58279,10 @@ var u4 = [ if (e.style.hasOwnProperty(i) && t.style[i] !== e.style[i]) return !1; return !0; -}, sRt = (t) => { +}, oRt = (t) => { for (var e = 0; e < t.length - 1; e++) { var r = t[e], n = t[e + 1]; - r instanceof bl && n instanceof bl && iRt(r, n) && (r.text += n.text, r.height = Math.max(r.height, n.height), r.depth = Math.max(r.depth, n.depth), r.italic = n.italic, t.splice(e + 1, 1), e--); + r instanceof bl && n instanceof bl && aRt(r, n) && (r.text += n.text, r.height = Math.max(r.height, n.height), r.depth = Math.max(r.depth, n.depth), r.italic = n.italic, t.splice(e + 1, 1), e--); } return t; }, UN = function(e) { @@ -58258,18 +58294,18 @@ var u4 = [ }, Ua = function(e, r, n, i) { var s = new vw(e, r, n, i); return UN(s), s; -}, dfe = (t, e, r, n) => new vw(t, e, r, n), aRt = function(e, r, n) { +}, pfe = (t, e, r, n) => new vw(t, e, r, n), lRt = function(e, r, n) { var i = Ua([e], [], r); return i.height = Math.max(n || r.fontMetrics().defaultRuleThickness, r.minRuleThickness), i.style.borderBottomWidth = Ct(i.height), i.maxFontSize = 1, i; -}, oRt = function(e, r, n, i) { +}, cRt = function(e, r, n, i) { var s = new QN(e, r, n, i); return UN(s), s; -}, pfe = function(e) { +}, gfe = function(e) { var r = new mw(e); return UN(r), r; -}, lRt = function(e, r) { +}, uRt = function(e, r) { return e instanceof mw ? Ua([], [e], r) : e; -}, cRt = function(e) { +}, hRt = function(e) { if (e.positionType === "individualShift") { for (var r = e.children, n = [r[0]], i = -r[0].shift - r[0].elem.depth, s = i, a = 1; a < r.length; a++) { var o = -r[a].shift - s - r[a].elem.depth, l = o - (r[a - 1].elem.height + r[a - 1].elem.depth); @@ -58307,11 +58343,11 @@ var u4 = [ children: e.children, depth: u }; -}, uRt = function(e, r) { +}, fRt = function(e, r) { for (var { children: n, depth: i - } = cRt(e), s = 0, a = 0; a < n.length; a++) { + } = hRt(e), s = 0, a = 0; a < n.length; a++) { var o = n[a]; if (o.type === "elem") { var l = o.elem; @@ -58343,7 +58379,7 @@ var u4 = [ S = [Ua(["vlist-r"], [O])]; var E = Ua(["vlist-t"], S); return S.length === 2 && E.classes.push("vlist-t2"), E.height = d, E.depth = -f, E; -}, hRt = (t, e) => { +}, dRt = (t, e) => { var r = Ua(["mspace"], [], e), n = qn(t, e); return r.style.marginRight = Ct(n), r; }, h4 = function(e, r, n) { @@ -58366,7 +58402,7 @@ var u4 = [ } var s; return r === "textbf" && n === "textit" ? s = "BoldItalic" : r === "textbf" ? s = "Bold" : r === "textit" ? s = "Italic" : s = "Regular", i + "-" + s; -}, gfe = { +}, mfe = { mathbf: { variant: "bold", fontName: "Main-Bold" @@ -58411,37 +58447,37 @@ var u4 = [ variant: "monospace", fontName: "Typewriter-Regular" } -}, mfe = { +}, vfe = { vec: ["vec", 0.471, 0.714], oiintSize1: ["oiintSize1", 0.957, 0.499], oiintSize2: ["oiintSize2", 1.472, 0.659], oiiintSize1: ["oiiintSize1", 1.304, 0.499], oiiintSize2: ["oiiintSize2", 1.98, 0.659] -}, fRt = function(e, r) { - var [n, i, s] = mfe[e], a = new Kf(n), o = new bh([a], { +}, pRt = function(e, r) { + var [n, i, s] = vfe[e], a = new Jf(n), o = new bh([a], { width: Ct(i), height: Ct(s), style: "width:" + Ct(i), viewBox: "0 0 " + 1e3 * i + " " + 1e3 * s, preserveAspectRatio: "xMinYMin" - }), l = dfe(["overlay"], [o], r); + }), l = pfe(["overlay"], [o], r); return l.height = s, l.style.height = Ct(s), l.style.width = Ct(i), l; }, Ye = { - fontMap: gfe, + fontMap: mfe, makeSymbol: Pl, - mathsym: tRt, + mathsym: nRt, makeSpan: Ua, - makeSvgSpan: dfe, - makeLineSpan: aRt, - makeAnchor: oRt, - makeFragment: pfe, - wrapFragment: lRt, - makeVList: uRt, - makeOrd: nRt, - makeGlue: hRt, - staticSvg: fRt, - svgData: mfe, - tryCombineChars: sRt + makeSvgSpan: pfe, + makeLineSpan: lRt, + makeAnchor: cRt, + makeFragment: gfe, + wrapFragment: uRt, + makeVList: fRt, + makeOrd: sRt, + makeGlue: dRt, + staticSvg: pRt, + svgData: vfe, + tryCombineChars: oRt }, Un = { number: 3, unit: "mu" @@ -58451,7 +58487,7 @@ var u4 = [ }, Pu = { number: 5, unit: "mu" -}, dRt = { +}, gRt = { mord: { mop: Un, mbin: Nd, @@ -58501,7 +58537,7 @@ var u4 = [ mpunct: Un, minner: Un } -}, pRt = { +}, mRt = { mord: { mop: Un }, @@ -58519,7 +58555,7 @@ var u4 = [ minner: { mop: Un } -}, vfe = {}, aS = {}, oS = {}; +}, yfe = {}, aS = {}, oS = {}; function Nt(t) { for (var { type: e, @@ -58540,7 +58576,7 @@ function Nt(t) { primitive: !!n.primitive, handler: i }, l = 0; l < r.length; ++l) - vfe[r[l]] = o; + yfe[r[l]] = o; e && (s && (aS[e] = s), a && (oS[e] = a)); } function Mp(t) { @@ -58566,12 +58602,12 @@ var lS = function(e) { return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e; }, mi = function(e) { return e.type === "ordgroup" ? e.body : [e]; -}, xh = Ye.makeSpan, gRt = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], mRt = ["rightmost", "mrel", "mclose", "mpunct"], vRt = { +}, xh = Ye.makeSpan, vRt = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], yRt = ["rightmost", "mrel", "mclose", "mpunct"], bRt = { display: ar.DISPLAY, text: ar.TEXT, script: ar.SCRIPT, scriptscript: ar.SCRIPTSCRIPT -}, yRt = { +}, xRt = { mord: "mord", mop: "mop", mbin: "mbin", @@ -58595,16 +58631,16 @@ var lS = function(e) { var u = r; if (e.length === 1) { var h = e[0]; - h.type === "sizing" ? u = r.havingSize(h.size) : h.type === "styling" && (u = r.havingStyle(vRt[h.style])); + h.type === "sizing" ? u = r.havingSize(h.size) : h.type === "styling" && (u = r.havingStyle(bRt[h.style])); } var f = xh([i[0] || "leftmost"], [], r), d = xh([i[1] || "rightmost"], [], r), p = n === "root"; return fW(s, (g, m) => { var v = m.classes[0], y = g.classes[0]; - v === "mbin" && nr.contains(mRt, y) ? m.classes[0] = "mord" : y === "mbin" && nr.contains(gRt, v) && (g.classes[0] = "mord"); + v === "mbin" && nr.contains(yRt, y) ? m.classes[0] = "mord" : y === "mbin" && nr.contains(vRt, v) && (g.classes[0] = "mord"); }, { node: f }, d, p), fW(s, (g, m) => { - var v = $L(m), y = $L(g), b = v && y ? g.hasClass("mtight") ? pRt[v][y] : dRt[v][y] : null; + var v = $L(m), y = $L(g), b = v && y ? g.hasClass("mtight") ? mRt[v][y] : gRt[v][y] : null; if (b) return Ye.makeGlue(b, u); }, { @@ -58613,7 +58649,7 @@ var lS = function(e) { }, fW = function t(e, r, n, i, s) { i && e.push(i); for (var a = 0; a < e.length; a++) { - var o = e[a], l = yfe(o); + var o = e[a], l = bfe(o); if (l) { t(l.children, r, n, null, s); continue; @@ -58628,10 +58664,10 @@ var lS = function(e) { })(a); } i && e.pop(); -}, yfe = function(e) { +}, bfe = function(e) { return e instanceof mw || e instanceof QN || e instanceof vw && e.hasClass("enclosing") ? e : null; -}, bRt = function t(e, r) { - var n = yfe(e); +}, wRt = function t(e, r) { + var n = bfe(e); if (n) { var i = n.children; if (i.length) { @@ -58643,7 +58679,7 @@ var lS = function(e) { } return e; }, $L = function(e, r) { - return e ? (r && (e = bRt(e, r)), yRt[e.classes[0]] || null) : null; + return e ? (r && (e = wRt(e, r)), xRt[e.classes[0]] || null) : null; }, mb = function(e, r) { var n = ["nulldelimiter"].concat(e.baseSizingClasses()); return xh(r.concat(n)); @@ -58687,7 +58723,7 @@ function BL(t, e) { } return h; } -function bfe(t) { +function xfe(t) { return new mw(t); } class Ko { @@ -58704,7 +58740,7 @@ class Ko { var e = document.createElementNS("http://www.w3.org/1998/Math/MathML", this.type); for (var r in this.attributes) Object.prototype.hasOwnProperty.call(this.attributes, r) && e.setAttribute(r, this.attributes[r]); - this.classes.length > 0 && (e.className = jf(this.classes)); + this.classes.length > 0 && (e.className = Kf(this.classes)); for (var n = 0; n < this.children.length; n++) e.appendChild(this.children[n].toNode()); return e; @@ -58713,7 +58749,7 @@ class Ko { var e = "<" + this.type; for (var r in this.attributes) Object.prototype.hasOwnProperty.call(this.attributes, r) && (e += " " + r + '="', e += nr.escape(this.attributes[r]), e += '"'); - this.classes.length > 0 && (e += ' class ="' + nr.escape(jf(this.classes)) + '"'), e += ">"; + this.classes.length > 0 && (e += ' class ="' + nr.escape(Kf(this.classes)) + '"'), e += ">"; for (var n = 0; n < this.children.length; n++) e += this.children[n].toMarkup(); return e += "", e; @@ -58736,7 +58772,7 @@ class e2 { return this.text; } } -class xRt { +class ORt { constructor(e) { this.width = void 0, this.character = void 0, this.width = e, e >= 0.05555 && e <= 0.05556 ? this.character = "\u200A" : e >= 0.1666 && e <= 0.1667 ? this.character = "\u2009" : e >= 0.2222 && e <= 0.2223 ? this.character = "\u2005" : e >= 0.2777 && e <= 0.2778 ? this.character = "\u2005\u200A" : e >= -0.05556 && e <= -0.05555 ? this.character = "\u200A\u2063" : e >= -0.1667 && e <= -0.1666 ? this.character = "\u2009\u2063" : e >= -0.2223 && e <= -0.2222 ? this.character = "\u205F\u2063" : e >= -0.2778 && e <= -0.2777 ? this.character = "\u2005\u2063" : this.character = null; } @@ -58756,10 +58792,10 @@ class xRt { var vt = { MathNode: Ko, TextNode: e2, - SpaceNode: xRt, - newDocumentFragment: bfe + SpaceNode: ORt, + newDocumentFragment: xfe }, xl = function(e, r, n) { - return Tn[r][e] && Tn[r][e].replace && e.charCodeAt(0) !== 55349 && !(ffe.hasOwnProperty(e) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (e = Tn[r][e].replace), new vt.TextNode(e); + return Tn[r][e] && Tn[r][e].replace && e.charCodeAt(0) !== 55349 && !(dfe.hasOwnProperty(e) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (e = Tn[r][e].replace), new vt.TextNode(e); }, VN = function(e) { return e.length === 1 ? e[0] : new vt.MathNode("mrow", e); }, qN = function(e, r) { @@ -58830,7 +58866,7 @@ var vt = { s.push(l), a = l; } return s; -}, Jf = function(e, r, n) { +}, ed = function(e, r, n) { return VN(ho(e, r, n)); }, yn = function(e, r) { if (!e) @@ -58851,20 +58887,20 @@ function dW(t, e, r, n, i) { var h = i ? "katex" : "katex-mathml"; return Ye.makeSpan([h], [u]); } -var xfe = function(e) { +var wfe = function(e) { return new zu({ style: e.displayMode ? ar.DISPLAY : ar.TEXT, maxSize: e.maxSize, minRuleThickness: e.minRuleThickness }); -}, wfe = function(e, r) { +}, Ofe = function(e, r) { if (r.displayMode) { var n = ["katex-display"]; r.leqno && n.push("leqno"), r.fleqn && n.push("fleqn"), e = Ye.makeSpan(n, [e]); } return e; -}, wRt = function(e, r, n) { - var i = xfe(n), s; +}, kRt = function(e, r, n) { + var i = wfe(n), s; if (n.output === "mathml") return dW(e, r, i, n.displayMode, !0); if (n.output === "html") { @@ -58874,11 +58910,11 @@ var xfe = function(e) { var o = dW(e, r, i, n.displayMode, !1), l = BL(e, i); s = Ye.makeSpan(["katex"], [o, l]); } - return wfe(s, n); -}, ORt = function(e, r, n) { - var i = xfe(n), s = BL(e, i), a = Ye.makeSpan(["katex"], [s]); - return wfe(a, n); -}, kRt = { + return Ofe(s, n); +}, SRt = function(e, r, n) { + var i = wfe(n), s = BL(e, i), a = Ye.makeSpan(["katex"], [s]); + return Ofe(a, n); +}, TRt = { widehat: "^", widecheck: "\u02C7", widetilde: "~", @@ -58921,10 +58957,10 @@ var xfe = function(e) { "\\cdrightarrow": "\u2192", "\\cdleftarrow": "\u2190", "\\cdlongequal": "=" -}, SRt = function(e) { - var r = new vt.MathNode("mo", [new vt.TextNode(kRt[e.replace(/^\\/, "")])]); +}, CRt = function(e) { + var r = new vt.MathNode("mo", [new vt.TextNode(TRt[e.replace(/^\\/, "")])]); return r.setAttribute("stretchy", "true"), r; -}, TRt = { +}, ERt = { overrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"], overleftarrow: [["leftarrow"], 0.888, 522, "xMinYMin"], underrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"], @@ -58965,20 +59001,20 @@ var xfe = function(e) { xrightleftarrows: [["baraboveleftarrow", "rightarrowabovebar"], 1.75, 901], xrightequilibrium: [["baraboveshortleftharpoon", "rightharpoonaboveshortbar"], 1.75, 716], xleftequilibrium: [["shortbaraboveleftharpoon", "shortrightharpoonabovebar"], 1.75, 716] -}, CRt = function(e) { +}, _Rt = function(e) { return e.type === "ordgroup" ? e.body.length : 1; -}, ERt = function(e, r) { +}, ARt = function(e, r) { function n() { var o = 4e5, l = e.label.slice(1); if (nr.contains(["widehat", "widecheck", "widetilde", "utilde"], l)) { - var u = e, h = CRt(u.base), f, d, p; + var u = e, h = _Rt(u.base), f, d, p; if (h > 5) l === "widehat" || l === "widecheck" ? (f = 420, o = 2364, p = 0.42, d = l + "4") : (f = 312, o = 2340, p = 0.34, d = "tilde4"); else { var g = [1, 1, 2, 2, 3, 3][h]; l === "widehat" || l === "widecheck" ? (o = [0, 1062, 2364, 2364, 2364][g], f = [0, 239, 300, 360, 420][g], p = [0, 0.24, 0.3, 0.3, 0.36, 0.42][g], d = l + g) : (o = [0, 600, 1033, 2339, 2340][g], f = [0, 260, 286, 306, 312][g], p = [0, 0.26, 0.286, 0.3, 0.306, 0.34][g], d = "tilde" + g); } - var m = new Kf(d), v = new bh([m], { + var m = new Jf(d), v = new bh([m], { width: "100%", height: Ct(p), viewBox: "0 0 " + o + " " + f, @@ -58990,7 +59026,7 @@ var xfe = function(e) { height: p }; } else { - var y = [], b = TRt[l], [w, O, S] = b, C = S / 1e3, T = w.length, A, E; + var y = [], b = ERt[l], [w, O, S] = b, C = S / 1e3, T = w.length, A, E; if (T === 1) { var R = b[3]; A = ["hide-tail"], E = [R]; @@ -59002,7 +59038,7 @@ var xfe = function(e) { throw new Error(`Correct katexImagesData or update code here to support ` + T + " children."); for (var _ = 0; _ < T; _++) { - var L = new Kf(w[_]), $ = new bh([L], { + var L = new Jf(w[_]), $ = new bh([L], { width: "400em", height: Ct(C), viewBox: "0 0 " + o + " " + S, @@ -59029,7 +59065,7 @@ var xfe = function(e) { height: a } = n(); return i.height = a, i.style.height = Ct(a), s > 0 && (i.style.minWidth = Ct(s)), i; -}, _Rt = function(e, r, n, i, s) { +}, LRt = function(e, r, n, i, s) { var a, o = e.height + e.depth + n + i; if (/fbox|color|angl/.test(r)) { if (a = Ye.makeSpan(["stretchy", r], [], s), r === "fbox") { @@ -59059,9 +59095,9 @@ var xfe = function(e) { } return a.height = o, a.style.height = Ct(o), a; }, wh = { - encloseSpan: _Rt, - mathMLnode: SRt, - svgSpan: ERt + encloseSpan: LRt, + mathMLnode: CRt, + svgSpan: ARt }; function Er(t, e) { if (!t || t.type !== e) @@ -59075,11 +59111,11 @@ function YN(t) { return e; } function ZC(t) { - return t && (t.type === "atom" || JLt.hasOwnProperty(t.type)) ? t : null; + return t && (t.type === "atom" || tRt.hasOwnProperty(t.type)) ? t : null; } var WN = (t, e) => { var r, n, i; - t && t.type === "supsub" ? (n = Er(t.base, "accent"), r = n.base, t.base = r, i = jLt(Qr(t, e)), t.base = n) : (n = Er(t, "accent"), r = n.base); + t && t.type === "supsub" ? (n = Er(t.base, "accent"), r = n.base, t.base = r, i = JLt(Qr(t, e)), t.base = n) : (n = Er(t, "accent"), r = n.base); var s = Qr(r, e.havingCrampedStyle()), a = n.isShifty && nr.isCharacterBox(r), o = 0; if (a) { var l = nr.getBaseElem(r), u = Qr(l, e.havingCrampedStyle()); @@ -59127,10 +59163,10 @@ var WN = (t, e) => { } var y = Ye.makeSpan(["mord", "accent"], [d], e); return i ? (i.children[0] = y, i.height = Math.max(y.height, i.height), i.classes[0] = "mord", i) : y; -}, Ofe = (t, e) => { +}, kfe = (t, e) => { var r = t.isStretchy ? wh.mathMLnode(t.label) : new vt.MathNode("mo", [xl(t.label, t.mode)]), n = new vt.MathNode("mover", [yn(t.base, e), r]); return n.setAttribute("accent", "true"), n; -}, ARt = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((t) => "\\" + t).join("|")); +}, RRt = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((t) => "\\" + t).join("|")); Nt({ type: "accent", names: ["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring", "\\widecheck", "\\widehat", "\\widetilde", "\\overrightarrow", "\\overleftarrow", "\\Overrightarrow", "\\overleftrightarrow", "\\overgroup", "\\overlinesegment", "\\overleftharpoon", "\\overrightharpoon"], @@ -59138,7 +59174,7 @@ Nt({ numArgs: 1 }, handler: (t, e) => { - var r = lS(e[0]), n = !ARt.test(t.funcName), i = !n || t.funcName === "\\widehat" || t.funcName === "\\widetilde" || t.funcName === "\\widecheck"; + var r = lS(e[0]), n = !RRt.test(t.funcName), i = !n || t.funcName === "\\widehat" || t.funcName === "\\widetilde" || t.funcName === "\\widecheck"; return { type: "accent", mode: t.parser.mode, @@ -59149,7 +59185,7 @@ Nt({ }; }, htmlBuilder: WN, - mathmlBuilder: Ofe + mathmlBuilder: kfe }); Nt({ type: "accent", @@ -59172,7 +59208,7 @@ Nt({ }; }, htmlBuilder: WN, - mathmlBuilder: Ofe + mathmlBuilder: kfe }); Nt({ type: "accentUnder", @@ -59325,12 +59361,12 @@ Nt({ return n; } }); -var LRt = Ye.makeSpan; -function kfe(t, e) { +var MRt = Ye.makeSpan; +function Sfe(t, e) { var r = Xi(t.body, e, !0); - return LRt([t.mclass], r, e); + return MRt([t.mclass], r, e); } -function Sfe(t, e) { +function Tfe(t, e) { var r, n = ho(t.body, e); return t.mclass === "minner" ? r = new vt.MathNode("mpadded", n) : t.mclass === "mord" ? t.isCharacterBox ? (r = n[0], r.type = "mi") : r = new vt.MathNode("mi", n) : (t.isCharacterBox ? (r = n[0], r.type = "mo") : r = new vt.MathNode("mo", n), t.mclass === "mbin" ? (r.attributes.lspace = "0.22em", r.attributes.rspace = "0.22em") : t.mclass === "mpunct" ? (r.attributes.lspace = "0em", r.attributes.rspace = "0.17em") : t.mclass === "mopen" || t.mclass === "mclose" ? (r.attributes.lspace = "0em", r.attributes.rspace = "0em") : t.mclass === "minner" && (r.attributes.lspace = "0.0556em", r.attributes.width = "+0.1111em")), r; } @@ -59354,8 +59390,8 @@ Nt({ isCharacterBox: nr.isCharacterBox(i) }; }, - htmlBuilder: kfe, - mathmlBuilder: Sfe + htmlBuilder: Sfe, + mathmlBuilder: Tfe }); var jC = (t) => { var e = t.type === "ordgroup" && t.body.length ? t.body[0] : t; @@ -59416,8 +59452,8 @@ Nt({ isCharacterBox: nr.isCharacterBox(l) }; }, - htmlBuilder: kfe, - mathmlBuilder: Sfe + htmlBuilder: Sfe, + mathmlBuilder: Tfe }); Nt({ type: "pmb", @@ -59446,7 +59482,7 @@ Nt({ return n.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), n; } }); -var RRt = { +var DRt = { ">": "\\\\cdrightarrow", "<": "\\\\cdleftarrow", "=": "\\\\cdlongequal", @@ -59459,9 +59495,9 @@ var RRt = { body: [], mode: "math", style: "display" -}), gW = (t) => t.type === "textord" && t.text === "@", MRt = (t, e) => (t.type === "mathord" || t.type === "atom") && t.text === e; -function DRt(t, e, r) { - var n = RRt[t]; +}), gW = (t) => t.type === "textord" && t.text === "@", PRt = (t, e) => (t.type === "mathord" || t.type === "atom") && t.text === e; +function NRt(t, e, r) { + var n = DRt[t]; switch (n) { case "\\\\cdrightarrow": case "\\\\cdleftarrow": @@ -59498,7 +59534,7 @@ function DRt(t, e, r) { }; } } -function PRt(t) { +function IRt(t) { var e = []; for (t.gullet.beginGroup(), t.gullet.macros.set("\\cr", "\\\\\\relax"), t.gullet.beginGroup(); ; ) { e.push(t.parseExpression(!1, "\\\\")), t.gullet.endGroup(), t.gullet.beginGroup(); @@ -59530,7 +59566,7 @@ function PRt(t) { if ("<>AV".indexOf(u) > -1) for (var f = 0; f < 2; f++) { for (var d = !0, p = l + 1; p < a.length; p++) { - if (MRt(a[p], u)) { + if (PRt(a[p], u)) { d = !1, l = p; break; } @@ -59543,7 +59579,7 @@ function PRt(t) { } else throw new Ot('Expected one of "<>AV=|." after @', a[l]); - var g = DRt(u, h, t), m = { + var g = NRt(u, h, t), m = { type: "styling", body: [g], mode: "math", @@ -59649,10 +59685,10 @@ Nt({ }; } }); -var Tfe = (t, e) => { +var Cfe = (t, e) => { var r = Xi(t.body, e.withColor(t.color), !1); return Ye.makeFragment(r); -}, Cfe = (t, e) => { +}, Efe = (t, e) => { var r = ho(t.body, e.withColor(t.color)), n = new vt.MathNode("mstyle", r); return n.setAttribute("mathcolor", t.color), n; }; @@ -59675,8 +59711,8 @@ Nt({ body: mi(i) }; }, - htmlBuilder: Tfe, - mathmlBuilder: Cfe + htmlBuilder: Cfe, + mathmlBuilder: Efe }); Nt({ type: "color", @@ -59700,8 +59736,8 @@ Nt({ body: s }; }, - htmlBuilder: Tfe, - mathmlBuilder: Cfe + htmlBuilder: Cfe, + mathmlBuilder: Efe }); Nt({ type: "cr", @@ -59741,15 +59777,15 @@ var FL = { "\\xdef": "\\xdef", "\\let": "\\\\globallet", "\\futurelet": "\\\\globalfuture" -}, Efe = (t) => { +}, _fe = (t) => { var e = t.text; if (/^(?:[\\{}$&#^_]|EOF)$/.test(e)) throw new Ot("Expected a control sequence", t); return e; -}, NRt = (t) => { +}, $Rt = (t) => { var e = t.gullet.popToken(); return e.text === "=" && (e = t.gullet.popToken(), e.text === " " && (e = t.gullet.popToken())), e; -}, _fe = (t, e, r, n) => { +}, Afe = (t, e, r, n) => { var i = t.gullet.macros.get(r.text); i == null && (r.noexpand = !0, i = { tokens: [r], @@ -59839,10 +59875,10 @@ Nt({ var { parser: e, funcName: r - } = t, n = Efe(e.gullet.popToken()); + } = t, n = _fe(e.gullet.popToken()); e.gullet.consumeSpaces(); - var i = NRt(e); - return _fe(e, n, i, r === "\\\\globallet"), { + var i = $Rt(e); + return Afe(e, n, i, r === "\\\\globallet"), { type: "internal", mode: e.mode }; @@ -59863,8 +59899,8 @@ Nt({ var { parser: e, funcName: r - } = t, n = Efe(e.gullet.popToken()), i = e.gullet.popToken(), s = e.gullet.popToken(); - return _fe(e, n, s, r === "\\\\globalfuture"), e.gullet.pushToken(s), e.gullet.pushToken(i), { + } = t, n = _fe(e.gullet.popToken()), i = e.gullet.popToken(), s = e.gullet.popToken(); + return Afe(e, n, s, r === "\\\\globalfuture"), e.gullet.pushToken(s), e.gullet.pushToken(i), { type: "internal", mode: e.mode }; @@ -59878,17 +59914,17 @@ var py = function(e, r, n) { }, GN = function(e, r, n, i) { var s = n.havingBaseStyle(r), a = Ye.makeSpan(i.concat(s.sizingClasses(n)), [e], n), o = s.sizeMultiplier / n.sizeMultiplier; return a.height *= o, a.depth *= o, a.maxFontSize = s.sizeMultiplier, a; -}, Afe = function(e, r, n) { +}, Lfe = function(e, r, n) { var i = r.havingBaseStyle(n), s = (1 - r.sizeMultiplier / i.sizeMultiplier) * r.fontMetrics().axisHeight; e.classes.push("delimcenter"), e.style.top = Ct(s), e.height -= s, e.depth += s; -}, IRt = function(e, r, n, i, s, a) { +}, BRt = function(e, r, n, i, s, a) { var o = Ye.makeSymbol(e, "Main-Regular", s, i), l = GN(o, r, i, a); - return n && Afe(l, i, r), l; -}, $Rt = function(e, r, n, i) { + return n && Lfe(l, i, r), l; +}, FRt = function(e, r, n, i) { return Ye.makeSymbol(e, "Size" + r + "-Regular", n, i); -}, Lfe = function(e, r, n, i, s, a) { - var o = $Rt(e, r, s, i), l = GN(Ye.makeSpan(["delimsizing", "size" + r], [o], i), ar.TEXT, i, a); - return n && Afe(l, i, ar.TEXT), l; +}, Rfe = function(e, r, n, i, s, a) { + var o = FRt(e, r, s, i), l = GN(Ye.makeSpan(["delimsizing", "size" + r], [o], i), ar.TEXT, i, a); + return n && Lfe(l, i, ar.TEXT), l; }, kA = function(e, r, n) { var i; r === "Size1-Regular" ? i = "delim-size1" : i = "delim-size4"; @@ -59898,7 +59934,7 @@ var py = function(e, r, n) { elem: s }; }, SA = function(e, r, n) { - var i = Wc["Size4-Regular"][e.charCodeAt(0)] ? Wc["Size4-Regular"][e.charCodeAt(0)][4] : Wc["Size1-Regular"][e.charCodeAt(0)][4], s = new Kf("inner", VLt(e, Math.round(1e3 * r))), a = new bh([s], { + var i = Wc["Size4-Regular"][e.charCodeAt(0)] ? Wc["Size4-Regular"][e.charCodeAt(0)][4] : Wc["Size1-Regular"][e.charCodeAt(0)][4], s = new Jf("inner", YLt(e, Math.round(1e3 * r))), a = new bh([s], { width: Ct(i), height: Ct(r), style: "width:" + Ct(i), @@ -59912,11 +59948,11 @@ var py = function(e, r, n) { }, zL = 8e-3, p4 = { type: "kern", size: -1 * zL -}, BRt = ["|", "\\lvert", "\\rvert", "\\vert"], FRt = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Rfe = function(e, r, n, i, s, a) { +}, zRt = ["|", "\\lvert", "\\rvert", "\\vert"], QRt = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Mfe = function(e, r, n, i, s, a) { var o, l, u, h, f = "", d = 0; o = u = h = e, l = null; var p = "Size1-Regular"; - e === "\\uparrow" ? u = h = "\u23D0" : e === "\\Uparrow" ? u = h = "\u2016" : e === "\\downarrow" ? o = u = "\u23D0" : e === "\\Downarrow" ? o = u = "\u2016" : e === "\\updownarrow" ? (o = "\\uparrow", u = "\u23D0", h = "\\downarrow") : e === "\\Updownarrow" ? (o = "\\Uparrow", u = "\u2016", h = "\\Downarrow") : nr.contains(BRt, e) ? (u = "\u2223", f = "vert", d = 333) : nr.contains(FRt, e) ? (u = "\u2225", f = "doublevert", d = 556) : e === "[" || e === "\\lbrack" ? (o = "\u23A1", u = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lbrack", d = 667) : e === "]" || e === "\\rbrack" ? (o = "\u23A4", u = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rbrack", d = 667) : e === "\\lfloor" || e === "\u230A" ? (u = o = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lfloor", d = 667) : e === "\\lceil" || e === "\u2308" ? (o = "\u23A1", u = h = "\u23A2", p = "Size4-Regular", f = "lceil", d = 667) : e === "\\rfloor" || e === "\u230B" ? (u = o = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rfloor", d = 667) : e === "\\rceil" || e === "\u2309" ? (o = "\u23A4", u = h = "\u23A5", p = "Size4-Regular", f = "rceil", d = 667) : e === "(" || e === "\\lparen" ? (o = "\u239B", u = "\u239C", h = "\u239D", p = "Size4-Regular", f = "lparen", d = 875) : e === ")" || e === "\\rparen" ? (o = "\u239E", u = "\u239F", h = "\u23A0", p = "Size4-Regular", f = "rparen", d = 875) : e === "\\{" || e === "\\lbrace" ? (o = "\u23A7", l = "\u23A8", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (o = "\u23AB", l = "\u23AC", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lgroup" || e === "\u27EE" ? (o = "\u23A7", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\rgroup" || e === "\u27EF" ? (o = "\u23AB", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lmoustache" || e === "\u23B0" ? (o = "\u23A7", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : (e === "\\rmoustache" || e === "\u23B1") && (o = "\u23AB", h = "\u23A9", u = "\u23AA", p = "Size4-Regular"); + e === "\\uparrow" ? u = h = "\u23D0" : e === "\\Uparrow" ? u = h = "\u2016" : e === "\\downarrow" ? o = u = "\u23D0" : e === "\\Downarrow" ? o = u = "\u2016" : e === "\\updownarrow" ? (o = "\\uparrow", u = "\u23D0", h = "\\downarrow") : e === "\\Updownarrow" ? (o = "\\Uparrow", u = "\u2016", h = "\\Downarrow") : nr.contains(zRt, e) ? (u = "\u2223", f = "vert", d = 333) : nr.contains(QRt, e) ? (u = "\u2225", f = "doublevert", d = 556) : e === "[" || e === "\\lbrack" ? (o = "\u23A1", u = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lbrack", d = 667) : e === "]" || e === "\\rbrack" ? (o = "\u23A4", u = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rbrack", d = 667) : e === "\\lfloor" || e === "\u230A" ? (u = o = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lfloor", d = 667) : e === "\\lceil" || e === "\u2308" ? (o = "\u23A1", u = h = "\u23A2", p = "Size4-Regular", f = "lceil", d = 667) : e === "\\rfloor" || e === "\u230B" ? (u = o = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rfloor", d = 667) : e === "\\rceil" || e === "\u2309" ? (o = "\u23A4", u = h = "\u23A5", p = "Size4-Regular", f = "rceil", d = 667) : e === "(" || e === "\\lparen" ? (o = "\u239B", u = "\u239C", h = "\u239D", p = "Size4-Regular", f = "lparen", d = 875) : e === ")" || e === "\\rparen" ? (o = "\u239E", u = "\u239F", h = "\u23A0", p = "Size4-Regular", f = "rparen", d = 875) : e === "\\{" || e === "\\lbrace" ? (o = "\u23A7", l = "\u23A8", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (o = "\u23AB", l = "\u23AC", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lgroup" || e === "\u27EE" ? (o = "\u23A7", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\rgroup" || e === "\u27EF" ? (o = "\u23AB", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lmoustache" || e === "\u23B0" ? (o = "\u23A7", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : (e === "\\rmoustache" || e === "\u23B1") && (o = "\u23AB", h = "\u23A9", u = "\u23AA", p = "Size4-Regular"); var g = py(o, p, s), m = g.height + g.depth, v = py(u, p, s), y = v.height + v.depth, b = py(h, p, s), w = b.height + b.depth, O = 0, S = 1; if (l !== null) { var C = py(l, p, s); @@ -59926,7 +59962,7 @@ var py = function(e, r, n) { n && (R *= i.sizeMultiplier); var _ = E / 2 - R, L = []; if (f.length > 0) { - var $ = E - m - w, k = Math.round(E * 1e3), P = qLt(f, Math.round($ * 1e3)), M = new Kf(f, P), N = (d / 1e3).toFixed(3) + "em", D = (k / 1e3).toFixed(3) + "em", I = new bh([M], { + var $ = E - m - w, k = Math.round(E * 1e3), P = WLt(f, Math.round($ * 1e3)), M = new Jf(f, P), N = (d / 1e3).toFixed(3) + "em", D = (k / 1e3).toFixed(3) + "em", I = new bh([M], { width: N, height: D, viewBox: "0 0 " + d + " " + k @@ -59952,27 +59988,27 @@ var py = function(e, r, n) { }, Q); return GN(Ye.makeSpan(["delimsizing", "mult"], [W], Q), ar.TEXT, i, a); }, TA = 80, CA = 0.08, EA = function(e, r, n, i, s) { - var a = ULt(e, i, n), o = new Kf(e, a), l = new bh([o], { + var a = qLt(e, i, n), o = new Jf(e, a), l = new bh([o], { width: "400em", height: Ct(r), viewBox: "0 0 400000 " + n, preserveAspectRatio: "xMinYMin slice" }); return Ye.makeSvgSpan(["hide-tail"], [l], s); -}, zRt = function(e, r) { - var n = r.havingBaseSizing(), i = Nfe("\\surd", e * n.sizeMultiplier, Pfe, n), s = n.sizeMultiplier, a = Math.max(0, r.minRuleThickness - r.fontMetrics().sqrtRuleThickness), o, l = 0, u = 0, h = 0, f; +}, URt = function(e, r) { + var n = r.havingBaseSizing(), i = Ife("\\surd", e * n.sizeMultiplier, Nfe, n), s = n.sizeMultiplier, a = Math.max(0, r.minRuleThickness - r.fontMetrics().sqrtRuleThickness), o, l = 0, u = 0, h = 0, f; return i.type === "small" ? (h = 1e3 + 1e3 * a + TA, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), l = (1 + a + CA) / s, u = (1 + a) / s, o = EA("sqrtMain", l, h, a, r), o.style.minWidth = "0.853em", f = 0.833 / s) : i.type === "large" ? (h = (1e3 + TA) * t2[i.size], u = (t2[i.size] + a) / s, l = (t2[i.size] + a + CA) / s, o = EA("sqrtSize" + i.size, l, h, a, r), o.style.minWidth = "1.02em", f = 1 / s) : (l = e + a + CA, u = e + a, h = Math.floor(1e3 * e + a) + TA, o = EA("sqrtTall", l, h, a, r), o.style.minWidth = "0.742em", f = 1.056), o.height = u, o.style.height = Ct(l), { span: o, advanceWidth: f, ruleWidth: (r.fontMetrics().sqrtRuleThickness + a) * s }; -}, Mfe = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "\\surd"], QRt = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1"], Dfe = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], t2 = [0, 1.2, 1.8, 2.4, 3], URt = function(e, r, n, i, s) { - if (e === "<" || e === "\\lt" || e === "\u27E8" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "\u27E9") && (e = "\\rangle"), nr.contains(Mfe, e) || nr.contains(Dfe, e)) - return Lfe(e, r, !1, n, i, s); - if (nr.contains(QRt, e)) - return Rfe(e, t2[r], !1, n, i, s); +}, Dfe = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "\\surd"], VRt = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1"], Pfe = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], t2 = [0, 1.2, 1.8, 2.4, 3], qRt = function(e, r, n, i, s) { + if (e === "<" || e === "\\lt" || e === "\u27E8" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "\u27E9") && (e = "\\rangle"), nr.contains(Dfe, e) || nr.contains(Pfe, e)) + return Rfe(e, r, !1, n, i, s); + if (nr.contains(VRt, e)) + return Mfe(e, t2[r], !1, n, i, s); throw new Ot("Illegal delimiter: '" + e + "'"); -}, VRt = [{ +}, YRt = [{ type: "small", style: ar.SCRIPTSCRIPT }, { @@ -59993,7 +60029,7 @@ var py = function(e, r, n) { }, { type: "large", size: 4 -}], qRt = [{ +}], WRt = [{ type: "small", style: ar.SCRIPTSCRIPT }, { @@ -60004,7 +60040,7 @@ var py = function(e, r, n) { style: ar.TEXT }, { type: "stack" -}], Pfe = [{ +}], Nfe = [{ type: "small", style: ar.SCRIPTSCRIPT }, { @@ -60027,7 +60063,7 @@ var py = function(e, r, n) { size: 4 }, { type: "stack" -}], YRt = function(e) { +}], GRt = function(e) { if (e.type === "small") return "Main-Regular"; if (e.type === "large") @@ -60035,9 +60071,9 @@ var py = function(e, r, n) { if (e.type === "stack") return "Size4-Regular"; throw new Error("Add support for delim type '" + e.type + "' here."); -}, Nfe = function(e, r, n, i) { +}, Ife = function(e, r, n, i) { for (var s = Math.min(2, 3 - i.style.size), a = s; a < n.length && n[a].type !== "stack"; a++) { - var o = py(e, YRt(n[a]), "math"), l = o.height + o.depth; + var o = py(e, GRt(n[a]), "math"), l = o.height + o.depth; if (n[a].type === "small") { var u = i.havingBaseStyle(n[a].style); l *= u.sizeMultiplier; @@ -60046,24 +60082,24 @@ var py = function(e, r, n) { return n[a]; } return n[n.length - 1]; -}, Ife = function(e, r, n, i, s, a) { +}, $fe = function(e, r, n, i, s, a) { e === "<" || e === "\\lt" || e === "\u27E8" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "\u27E9") && (e = "\\rangle"); var o; - nr.contains(Dfe, e) ? o = VRt : nr.contains(Mfe, e) ? o = Pfe : o = qRt; - var l = Nfe(e, r, o, i); - return l.type === "small" ? IRt(e, l.style, n, i, s, a) : l.type === "large" ? Lfe(e, l.size, n, i, s, a) : Rfe(e, r, n, i, s, a); -}, WRt = function(e, r, n, i, s, a) { + nr.contains(Pfe, e) ? o = YRt : nr.contains(Dfe, e) ? o = Nfe : o = WRt; + var l = Ife(e, r, o, i); + return l.type === "small" ? BRt(e, l.style, n, i, s, a) : l.type === "large" ? Rfe(e, l.size, n, i, s, a) : Mfe(e, r, n, i, s, a); +}, XRt = function(e, r, n, i, s, a) { var o = i.fontMetrics().axisHeight * i.sizeMultiplier, l = 901, u = 5 / i.fontMetrics().ptPerEm, h = Math.max(r - o, n + o), f = Math.max( h / 500 * l, 2 * h - u ); - return Ife(e, f, !0, i, s, a); + return $fe(e, f, !0, i, s, a); }, sh = { - sqrtImage: zRt, - sizedDelim: URt, + sqrtImage: URt, + sizedDelim: qRt, sizeToMaxHeight: t2, - customSizedDelim: Ife, - leftRightDelim: WRt + customSizedDelim: $fe, + leftRightDelim: XRt }, mW = { "\\bigl": { mclass: "mopen", @@ -60129,10 +60165,10 @@ var py = function(e, r, n) { mclass: "mord", size: 4 } -}, GRt = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "<", ">", "\\langle", "\u27E8", "\\rangle", "\u27E9", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."]; +}, HRt = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "<", ">", "\\langle", "\u27E8", "\\rangle", "\u27E9", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."]; function KC(t, e) { var r = ZC(t); - if (r && nr.contains(GRt, r.text)) + if (r && nr.contains(HRt, r.text)) return r; throw r ? new Ot("Invalid delimiter '" + r.text + "' after '" + e.funcName + "'", t) : new Ot("Invalid delimiter type '" + t.type + "'", t); } @@ -60293,7 +60329,7 @@ var XN = (t, e) => { i = i / h.sizeMultiplier; var f = r.height + r.depth + l + u; r.style.paddingLeft = Ct(f / 2 + l); - var d = Math.floor(1e3 * f * i), p = zLt(d), g = new bh([new Kf("phase", p)], { + var d = Math.floor(1e3 * f * i), p = ULt(d), g = new bh([new Jf("phase", p)], { width: "400em", height: Ct(d / 1e3), viewBox: "0 0 400000 " + d, @@ -60492,7 +60528,7 @@ Nt({ }; } }); -var $fe = {}; +var Bfe = {}; function Su(t) { for (var { type: e, @@ -60508,12 +60544,12 @@ function Su(t) { numOptionalArgs: 0, handler: i }, l = 0; l < r.length; ++l) - $fe[r[l]] = o; + Bfe[r[l]] = o; s && (aS[e] = s), a && (oS[e] = a); } -var Bfe = {}; +var Ffe = {}; function ue(t, e) { - Bfe[t] = e; + Ffe[t] = e; } function yW(t) { var e = []; @@ -60710,7 +60746,7 @@ var Tu = function(e, r) { children: N }, r); return he = Ye.makeSpan(["tag"], [he], r), Ye.makeFragment([l, he]); -}, XRt = { +}, ZRt = { c: "center ", l: "left ", r: "right " @@ -60727,7 +60763,7 @@ var Tu = function(e, r) { var g = e.cols, m = "", v = !1, y = 0, b = g.length; g[0].type === "separator" && (d += "top ", y = 1), g[g.length - 1].type === "separator" && (d += "bottom ", b -= 1); for (var w = y; w < b; w++) - g[w].type === "align" ? (p += XRt[g[w].align], v && (m += "none "), v = !0) : g[w].type === "separator" && v && (m += g[w].separator === "|" ? "solid " : "dashed ", v = !1); + g[w].type === "align" ? (p += ZRt[g[w].align], v && (m += "none "), v = !0) : g[w].type === "separator" && v && (m += g[w].separator === "|" ? "solid " : "dashed ", v = !1); h.setAttribute("columnalign", p.trim()), /[sd]/.test(m) && h.setAttribute("columnlines", m.trim()); } if (e.colSeparationType === "align") { @@ -60741,7 +60777,7 @@ var Tu = function(e, r) { for (var E = 1; E < A.length - 1; E++) T += A[E].length === 0 ? "none " : A[E][0] ? "dashed " : "solid "; return /[sd]/.test(T) && h.setAttribute("rowlines", T.trim()), d !== "" && (h = new vt.MathNode("menclose", [h]), h.setAttribute("notation", d.trim())), e.arraystretch && e.arraystretch < 1 && (h = new vt.MathNode("mstyle", [h]), h.setAttribute("scriptlevel", "1")), h; -}, Ffe = function(e, r) { +}, zfe = function(e, r) { e.envName.indexOf("ed") === -1 && JC(e); var n = [], i = e.envName.indexOf("at") > -1 ? "alignat" : "align", s = e.envName === "split", a = bd(e.parser, { cols: n, @@ -60955,7 +60991,7 @@ Su({ props: { numArgs: 0 }, - handler: Ffe, + handler: zfe, htmlBuilder: Tu, mathmlBuilder: Cu }); @@ -60989,7 +61025,7 @@ Su({ props: { numArgs: 1 }, - handler: Ffe, + handler: zfe, htmlBuilder: Tu, mathmlBuilder: Cu }); @@ -61020,7 +61056,7 @@ Su({ numArgs: 0 }, handler(t) { - return JC(t), PRt(t.parser); + return JC(t), IRt(t.parser); }, htmlBuilder: Tu, mathmlBuilder: Cu @@ -61039,7 +61075,7 @@ Nt({ throw new Ot(t.funcName + " valid only within array environment"); } }); -var bW = $fe; +var bW = Bfe; Nt({ type: "environment", names: ["\\begin", "\\end"], @@ -61081,10 +61117,10 @@ Nt({ }; } }); -var zfe = (t, e) => { +var Qfe = (t, e) => { var r = t.font, n = e.withFont(r); return Qr(t.body, n); -}, Qfe = (t, e) => { +}, Ufe = (t, e) => { var r = t.font, n = e.withFont(r); return yn(t.body, n); }, xW = { @@ -61126,8 +61162,8 @@ Nt({ body: i }; }, - htmlBuilder: zfe, - mathmlBuilder: Qfe + htmlBuilder: Qfe, + mathmlBuilder: Ufe }); Nt({ type: "mclass", @@ -61179,14 +61215,14 @@ Nt({ } }; }, - htmlBuilder: zfe, - mathmlBuilder: Qfe + htmlBuilder: Qfe, + mathmlBuilder: Ufe }); -var Ufe = (t, e) => { +var Vfe = (t, e) => { var r = e; return t === "display" ? r = r.id >= ar.SCRIPT.id ? r.text() : ar.DISPLAY : t === "text" && r.size === ar.DISPLAY.size ? r = ar.TEXT : t === "script" ? r = ar.SCRIPT : t === "scriptscript" && (r = ar.SCRIPTSCRIPT), r; }, KN = (t, e) => { - var r = Ufe(t.size, e.style), n = r.fracNum(), i = r.fracDen(), s; + var r = Vfe(t.size, e.style), n = r.fracNum(), i = r.fracDen(), s; s = e.havingStyle(n); var a = Qr(t.numer, s, e); if (t.continued) { @@ -61247,7 +61283,7 @@ var Ufe = (t, e) => { var n = qn(t.barSize, e); r.setAttribute("linethickness", Ct(n)); } - var i = Ufe(t.size, e.style); + var i = Vfe(t.size, e.style); if (i.size !== e.style.size) { r = new vt.MathNode("mstyle", [r]); var s = i.size === ar.DISPLAY.size ? "true" : "false"; @@ -61478,7 +61514,7 @@ Nt({ var { parser: r, funcName: n - } = t, i = e[0], s = TLt(Er(e[1], "infix").size), a = e[2], o = s.number > 0; + } = t, i = e[0], s = ELt(Er(e[1], "infix").size), a = e[2], o = s.number > 0; return { type: "genfrac", mode: r.mode, @@ -61495,7 +61531,7 @@ Nt({ htmlBuilder: KN, mathmlBuilder: JN }); -var Vfe = (t, e) => { +var qfe = (t, e) => { var r = e.style, n, i; t.type === "supsub" ? (n = t.sup ? Qr(t.sup, e.havingStyle(r.sup()), e) : Qr(t.sub, e.havingStyle(r.sub()), e), i = Er(t.base, "horizBrace")) : i = Er(t, "horizBrace"); var s = Qr(i.base, e.havingBaseStyle(ar.DISPLAY)), a = wh.svgSpan(i, e), o; @@ -61554,7 +61590,7 @@ var Vfe = (t, e) => { }, e); } return Ye.makeSpan(["mord", i.isOver ? "mover" : "munder"], [o], e); -}, HRt = (t, e) => { +}, jRt = (t, e) => { var r = wh.mathMLnode(t.label); return new vt.MathNode(t.isOver ? "mover" : "munder", [yn(t.base, e), r]); }; @@ -61577,8 +61613,8 @@ Nt({ base: e[0] }; }, - htmlBuilder: Vfe, - mathmlBuilder: HRt + htmlBuilder: qfe, + mathmlBuilder: jRt }); Nt({ type: "href", @@ -61607,7 +61643,7 @@ Nt({ return Ye.makeAnchor(t.href, [], r, e); }, mathmlBuilder: (t, e) => { - var r = Jf(t.body, e); + var r = ed(t.body, e); return r instanceof Ko || (r = new Ko("mrow", [r])), r.setAttribute("href", t.href), r; } }); @@ -61743,7 +61779,7 @@ Nt({ s !== "class" && t.attributes.hasOwnProperty(s) && i.setAttribute(s, t.attributes[s]); return i; }, - mathmlBuilder: (t, e) => Jf(t.body, e) + mathmlBuilder: (t, e) => ed(t.body, e) }); Nt({ type: "htmlmathml", @@ -61767,7 +61803,7 @@ Nt({ var r = Xi(t.html, e, !1); return Ye.makeFragment(r); }, - mathmlBuilder: (t, e) => Jf(t.mathml, e) + mathmlBuilder: (t, e) => ed(t.mathml, e) }); var _A = function(e) { if (/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e)) @@ -61782,7 +61818,7 @@ var _A = function(e) { number: +(r[1] + r[2]), unit: r[3] }; - if (!lfe(n)) + if (!cfe(n)) throw new Ot("Invalid unit: '" + n.unit + "' in \\includegraphics."); return n; }; @@ -61854,7 +61890,7 @@ Nt({ height: Ct(r + n) }; i > 0 && (s.width = Ct(i)), n > 0 && (s.verticalAlign = Ct(-n)); - var a = new HLt(t.src, t.alt, s); + var a = new jLt(t.src, t.alt, s); return a.height = r, a.depth = n, a; }, mathmlBuilder: (t, e) => { @@ -62009,10 +62045,10 @@ Nt({ }, mathmlBuilder: (t, e) => { var r = kW(t, e); - return Jf(r, e); + return ed(r, e); } }); -var qfe = (t, e, r, n, i, s, a) => { +var Yfe = (t, e, r, n, i, s, a) => { t = Ye.makeSpan([], [t]); var o = r && nr.isCharacterBox(r), l, u; if (e) { @@ -62108,11 +62144,11 @@ var qfe = (t, e, r, n, i, s, a) => { y.style.marginRight = Ct(s), v.unshift(y); } return Ye.makeSpan(["mop", "op-limits"], v, n); -}, Yfe = ["\\smallint"], U1 = (t, e) => { +}, Wfe = ["\\smallint"], U1 = (t, e) => { var r, n, i = !1, s; t.type === "supsub" ? (r = t.sup, n = t.sub, s = Er(t.base, "op"), i = !0) : s = Er(t, "op"); var a = e.style, o = !1; - a.size === ar.DISPLAY.size && s.symbol && !nr.contains(Yfe, s.name) && (o = !0); + a.size === ar.DISPLAY.size && s.symbol && !nr.contains(Wfe, s.name) && (o = !0); var l; if (s.symbol) { var u = o ? "Size2-Regular" : "Size1-Regular", h = ""; @@ -62140,20 +62176,20 @@ var qfe = (t, e, r, n, i, s, a) => { l = Ye.makeSpan(["mop"], g, e); } var v = 0, y = 0; - return (l instanceof bl || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (v = (l.height - l.depth) / 2 - e.fontMetrics().axisHeight, y = l.italic), i ? qfe(l, r, n, e, a, y, v) : (v && (l.style.position = "relative", l.style.top = Ct(v)), l); + return (l instanceof bl || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (v = (l.height - l.depth) / 2 - e.fontMetrics().axisHeight, y = l.italic), i ? Yfe(l, r, n, e, a, y, v) : (v && (l.style.position = "relative", l.style.top = Ct(v)), l); }, yw = (t, e) => { var r; if (t.symbol) - r = new Ko("mo", [xl(t.name, t.mode)]), nr.contains(Yfe, t.name) && r.setAttribute("largeop", "false"); + r = new Ko("mo", [xl(t.name, t.mode)]), nr.contains(Wfe, t.name) && r.setAttribute("largeop", "false"); else if (t.body) r = new Ko("mo", ho(t.body, e)); else { r = new Ko("mi", [new e2(t.name.slice(1))]); var n = new Ko("mo", [xl("\u2061", "text")]); - t.parentIsSupSub ? r = new Ko("mrow", [r, n]) : r = bfe([r, n]); + t.parentIsSupSub ? r = new Ko("mrow", [r, n]) : r = xfe([r, n]); } return r; -}, ZRt = { +}, KRt = { "\u220F": "\\prod", "\u2210": "\\coprod", "\u2211": "\\sum", @@ -62178,7 +62214,7 @@ Nt({ parser: r, funcName: n } = t, i = n; - return i.length === 1 && (i = ZRt[i]), { + return i.length === 1 && (i = KRt[i]), { type: "op", mode: r.mode, limits: !0, @@ -62213,7 +62249,7 @@ Nt({ htmlBuilder: U1, mathmlBuilder: yw }); -var jRt = { +var JRt = { "\u222B": "\\int", "\u222C": "\\iint", "\u222D": "\\iiint", @@ -62278,7 +62314,7 @@ Nt({ parser: e, funcName: r } = t, n = r; - return n.length === 1 && (n = jRt[n]), { + return n.length === 1 && (n = JRt[n]), { type: "op", mode: e.mode, limits: !1, @@ -62290,7 +62326,7 @@ Nt({ htmlBuilder: U1, mathmlBuilder: yw }); -var Wfe = (t, e) => { +var Gfe = (t, e) => { var r, n, i = !1, s; t.type === "supsub" ? (r = t.sup, n = t.sub, s = Er(t.base, "operatorname"), i = !0) : s = Er(t, "operatorname"); var a; @@ -62309,8 +62345,8 @@ var Wfe = (t, e) => { a = Ye.makeSpan(["mop"], l, e); } else a = Ye.makeSpan(["mop"], [], e); - return i ? qfe(a, r, n, e, e.style, 0, 0) : a; -}, KRt = (t, e) => { + return i ? Yfe(a, r, n, e, e.style, 0, 0) : a; +}, eMt = (t, e) => { for (var r = ho(t.body, e.withFont("mathrm")), n = !0, i = 0; i < r.length; i++) { var s = r[i]; if (!(s instanceof vt.SpaceNode)) @@ -62362,8 +62398,8 @@ Nt({ parentIsSupSub: !1 }; }, - htmlBuilder: Wfe, - mathmlBuilder: KRt + htmlBuilder: Gfe, + mathmlBuilder: eMt }); ue("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@"); Mp({ @@ -62372,7 +62408,7 @@ Mp({ return t.semisimple ? Ye.makeFragment(Xi(t.body, e, !1)) : Ye.makeSpan(["mord"], Xi(t.body, e, !0), e); }, mathmlBuilder(t, e) { - return Jf(t.body, e, !0); + return ed(t.body, e, !0); } }); Nt({ @@ -62587,16 +62623,16 @@ Nt({ return i >= 0 ? o.setAttribute("height", Ct(i)) : (o.setAttribute("height", Ct(i)), o.setAttribute("depth", Ct(-i))), o.setAttribute("voffset", Ct(i)), o; } }); -function Gfe(t, e, r) { +function Xfe(t, e, r) { for (var n = Xi(t, e, !1), i = e.sizeMultiplier / r.sizeMultiplier, s = 0; s < n.length; s++) { var a = n[s].classes.indexOf("sizing"); a < 0 ? Array.prototype.push.apply(n[s].classes, e.sizingClasses(r)) : n[s].classes[a + 1] === "reset-size" + e.size && (n[s].classes[a + 1] = "reset-size" + r.size), n[s].height *= i, n[s].depth *= i; } return Ye.makeFragment(n); } -var SW = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], JRt = (t, e) => { +var SW = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], tMt = (t, e) => { var r = e.havingSize(t.size); - return Gfe(t.body, r, e); + return Xfe(t.body, r, e); }; Nt({ type: "sizing", @@ -62618,7 +62654,7 @@ Nt({ body: s }; }, - htmlBuilder: JRt, + htmlBuilder: tMt, mathmlBuilder: (t, e) => { var r = e.havingSize(t.size), n = ho(t.body, r), i = new vt.MathNode("mstyle", n); return i.setAttribute("mathsize", Ct(r.sizeMultiplier)), i; @@ -62781,7 +62817,7 @@ Nt({ }, htmlBuilder(t, e) { var r = TW[t.style], n = e.havingStyle(r).withFont(""); - return Gfe(t.body, n, e); + return Xfe(t.body, n, e); }, mathmlBuilder(t, e) { var r = TW[t.style], n = e.havingStyle(r), i = ho(t.body, n), s = new vt.MathNode("mstyle", i), a = { @@ -62793,7 +62829,7 @@ Nt({ return s.setAttribute("scriptlevel", o[0]), s.setAttribute("displaystyle", o[1]), s; } }); -var eMt = function(e, r) { +var rMt = function(e, r) { var n = e.base; if (n) if (n.type === "op") { @@ -62801,13 +62837,13 @@ var eMt = function(e, r) { return i ? U1 : null; } else if (n.type === "operatorname") { var s = n.alwaysHandleSupSub && (r.style.size === ar.DISPLAY.size || n.limits); - return s ? Wfe : null; + return s ? Gfe : null; } else { if (n.type === "accent") return nr.isCharacterBox(n.base) ? WN : null; if (n.type === "horizBrace") { var a = !e.sub; - return a === n.isOver ? Vfe : null; + return a === n.isOver ? qfe : null; } else return null; } @@ -62817,7 +62853,7 @@ var eMt = function(e, r) { Mp({ type: "supsub", htmlBuilder(t, e) { - var r = eMt(t, e); + var r = rMt(t, e); if (r) return r(t, e); var { @@ -62931,7 +62967,7 @@ Mp({ return r; } }); -var Xfe = { +var Hfe = { mi: "italic", mn: "normal", mtext: "normal" @@ -62943,7 +62979,7 @@ Mp({ }, mathmlBuilder(t, e) { var r = new vt.MathNode("mi", [xl(t.text, t.mode, e)]), n = qN(t, e) || "italic"; - return n !== Xfe[r.type] && r.setAttribute("mathvariant", n), r; + return n !== Hfe[r.type] && r.setAttribute("mathvariant", n), r; } }); Mp({ @@ -62953,7 +62989,7 @@ Mp({ }, mathmlBuilder(t, e) { var r = xl(t.text, t.mode, e), n = qN(t, e) || "normal", i; - return t.mode === "text" ? i = new vt.MathNode("mtext", [r]) : /[0-9]/.test(t.text) ? i = new vt.MathNode("mn", [r]) : t.text === "\\prime" ? i = new vt.MathNode("mo", [r]) : i = new vt.MathNode("mi", [r]), n !== Xfe[i.type] && i.setAttribute("mathvariant", n), i; + return t.mode === "text" ? i = new vt.MathNode("mtext", [r]) : /[0-9]/.test(t.text) ? i = new vt.MathNode("mn", [r]) : t.text === "\\prime" ? i = new vt.MathNode("mo", [r]) : i = new vt.MathNode("mi", [r]), n !== Hfe[i.type] && i.setAttribute("mathvariant", n), i; } }); var AA = { @@ -63005,7 +63041,7 @@ var CW = () => { Mp({ type: "tag", mathmlBuilder(t, e) { - var r = new vt.MathNode("mtable", [new vt.MathNode("mtr", [CW(), new vt.MathNode("mtd", [Jf(t.body, e)]), CW(), new vt.MathNode("mtd", [Jf(t.tag, e)])])]); + var r = new vt.MathNode("mtable", [new vt.MathNode("mtr", [CW(), new vt.MathNode("mtd", [ed(t.body, e)]), CW(), new vt.MathNode("mtd", [ed(t.tag, e)])])]); return r.setAttribute("width", "100%"), r; } }); @@ -63018,7 +63054,7 @@ var EW = { }, _W = { "\\textbf": "textbf", "\\textmd": "textmd" -}, tMt = { +}, nMt = { "\\textit": "textit", "\\textup": "textup" }, AW = (t, e) => { @@ -63032,7 +63068,7 @@ var EW = { return e.fontShape === "textit" ? e.withTextFontShape("textup") : e.withTextFontShape("textit"); } else return e; - return e.withTextFontShape(tMt[r]); + return e.withTextFontShape(nMt[r]); }; Nt({ type: "text", @@ -63072,7 +63108,7 @@ Nt({ }, mathmlBuilder(t, e) { var r = AW(t, e); - return Jf(t.body, r); + return ed(t.body, r); } }); Nt({ @@ -63174,13 +63210,13 @@ Nt({ return n.setAttribute("mathvariant", "monospace"), n; } }); -var LW = (t) => t.body.replace(/ /g, t.star ? "\u2423" : "\xA0"), gf = vfe, Hfe = `[ \r - ]`, rMt = "\\\\[a-zA-Z@]+", nMt = "\\\\[^\uD800-\uDFFF]", iMt = "(" + rMt + ")" + Hfe + "*", sMt = `\\\\( +var LW = (t) => t.body.replace(/ /g, t.star ? "\u2423" : "\xA0"), mf = yfe, Zfe = `[ \r + ]`, iMt = "\\\\[a-zA-Z@]+", sMt = "\\\\[^\uD800-\uDFFF]", aMt = "(" + iMt + ")" + Zfe + "*", oMt = `\\\\( |[ \r ]+ -?)[ \r ]*`, QL = "[\u0300-\u036F]", aMt = new RegExp(QL + "+$"), oMt = "(" + Hfe + "+)|" + (sMt + "|") + "([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]" + (QL + "*") + "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + (QL + "*") + "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + ("|" + iMt) + ("|" + nMt + ")"); +?)[ \r ]*`, QL = "[\u0300-\u036F]", lMt = new RegExp(QL + "+$"), cMt = "(" + Zfe + "+)|" + (oMt + "|") + "([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]" + (QL + "*") + "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + (QL + "*") + "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + ("|" + aMt) + ("|" + sMt + ")"); class RW { constructor(e, r) { - this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = r, this.tokenRegex = new RegExp(oMt, "g"), this.catcodes = { + this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = r, this.tokenRegex = new RegExp(cMt, "g"), this.catcodes = { "%": 14, "~": 13 }; @@ -63204,7 +63240,7 @@ class RW { return new ll(i, new ko(this, r, this.tokenRegex.lastIndex)); } } -class lMt { +class uMt { constructor(e, r) { e === void 0 && (e = {}), r === void 0 && (r = {}), this.current = void 0, this.builtins = void 0, this.undefStack = void 0, this.current = r, this.builtins = e, this.undefStack = []; } @@ -63240,7 +63276,7 @@ class lMt { r == null ? delete this.current[e] : this.current[e] = r; } } -var cMt = Bfe; +var hMt = Ffe; ue("\\noexpand", function(t) { var e = t.popToken(); return t.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), { @@ -63375,7 +63411,7 @@ ue("\\errmessage", (t) => { }); ue("\\show", (t) => { var e = t.popToken(), r = e.text; - return console.log(e, t.macros.get(r), gf[r], Tn.math[r], Tn.text[r]), ""; + return console.log(e, t.macros.get(r), mf[r], Tn.math[r], Tn.text[r]), ""; }); ue("\\bgroup", "{"); ue("\\egroup", "}"); @@ -63573,9 +63609,9 @@ ue("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}"); ue("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"); ue("\\newline", "\\\\\\relax"); ue("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}"); -var Zfe = Ct(Wc["Main-Regular"]["T".charCodeAt(0)][1] - 0.7 * Wc["Main-Regular"]["A".charCodeAt(0)][1]); -ue("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + Zfe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}"); -ue("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + Zfe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}"); +var jfe = Ct(Wc["Main-Regular"]["T".charCodeAt(0)][1] - 0.7 * Wc["Main-Regular"]["A".charCodeAt(0)][1]); +ue("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + jfe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}"); +ue("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + jfe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}"); ue("\\hspace", "\\@ifstar\\@hspacer\\@hspace"); ue("\\@hspace", "\\hskip #1\\relax"); ue("\\@hspacer", "\\rule{0pt}{0pt}\\hskip #1\\relax"); @@ -63721,7 +63757,7 @@ ue("\\ket", "\\mathinner{|{#1}\\rangle}"); ue("\\braket", "\\mathinner{\\langle{#1}\\rangle}"); ue("\\Bra", "\\left\\langle#1\\right|"); ue("\\Ket", "\\left|#1\\right\\rangle"); -var jfe = (t) => (e) => { +var Kfe = (t) => (e) => { var r = e.consumeArg().tokens, n = e.consumeArg().tokens, i = e.consumeArg().tokens, s = e.consumeArg().tokens, a = e.macros.get("|"), o = e.macros.get("\\|"); e.macros.beginGroup(); var l = (f) => (d) => { @@ -63747,8 +63783,8 @@ var jfe = (t) => (e) => { numArgs: 0 }; }; -ue("\\bra@ket", jfe(!1)); -ue("\\bra@set", jfe(!0)); +ue("\\bra@ket", Kfe(!1)); +ue("\\bra@set", Kfe(!0)); ue("\\Braket", "\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"); ue("\\Set", "\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"); ue("\\set", "\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"); @@ -63809,15 +63845,15 @@ ue("\\grayH", "\\textcolor{##3b3e40}{#1}"); ue("\\grayI", "\\textcolor{##21242c}{#1}"); ue("\\kaBlue", "\\textcolor{##314453}{#1}"); ue("\\kaGreen", "\\textcolor{##71B307}{#1}"); -var Kfe = { +var Jfe = { "^": !0, _: !0, "\\limits": !0, "\\nolimits": !0 }; -class uMt { +class fMt { constructor(e, r, n) { - this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = r, this.expansionCount = 0, this.feed(e), this.macros = new lMt(cMt, r.macros), this.mode = n, this.stack = []; + this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = r, this.expansionCount = 0, this.feed(e), this.macros = new uMt(hMt, r.macros), this.mode = n, this.stack = []; } feed(e) { this.lexer = new RW(e, this.settings); @@ -63998,11 +64034,11 @@ class uMt { return i; } isDefined(e) { - return this.macros.has(e) || gf.hasOwnProperty(e) || Tn.math.hasOwnProperty(e) || Tn.text.hasOwnProperty(e) || Kfe.hasOwnProperty(e); + return this.macros.has(e) || mf.hasOwnProperty(e) || Tn.math.hasOwnProperty(e) || Tn.text.hasOwnProperty(e) || Jfe.hasOwnProperty(e); } isExpandable(e) { var r = this.macros.get(e); - return r != null ? typeof r == "string" || typeof r == "function" || !r.unexpandable : gf.hasOwnProperty(e) && !gf[e].primitive; + return r != null ? typeof r == "string" || typeof r == "function" || !r.unexpandable : mf.hasOwnProperty(e) && !mf[e].primitive; } } var PW = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/, g4 = Object.freeze({ @@ -64503,7 +64539,7 @@ var PW = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ }; class eE { constructor(e, r) { - this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new uMt(e, r, this.mode), this.settings = r, this.leftrightDepth = 0; + this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new fMt(e, r, this.mode), this.settings = r, this.leftrightDepth = 0; } expect(e, r) { if (r === void 0 && (r = !0), this.fetch().text !== e) @@ -64538,7 +64574,7 @@ class eE { for (var n = []; ; ) { this.mode === "math" && this.consumeSpaces(); var i = this.fetch(); - if (eE.endOfExpression.indexOf(i.text) !== -1 || r && i.text === r || e && gf[i.text] && gf[i.text].infix) + if (eE.endOfExpression.indexOf(i.text) !== -1 || r && i.text === r || e && mf[i.text] && mf[i.text].infix) break; var s = this.parseAtom(r); if (s) { @@ -64669,7 +64705,7 @@ class eE { } : r; } parseFunction(e, r) { - var n = this.fetch(), i = n.text, s = gf[i]; + var n = this.fetch(), i = n.text, s = mf[i]; if (!s) return null; if (this.consume(), r && r !== "atom" && !s.allowedInArgument) @@ -64690,7 +64726,7 @@ class eE { parser: this, token: i, breakOnTokenText: s - }, o = gf[e]; + }, o = mf[e]; if (o && o.handler) return o.handler(a, r, n); throw new Ot("No function handler for " + e); @@ -64807,7 +64843,7 @@ class eE { number: +(i[1] + i[2]), unit: i[3] }; - if (!lfe(s)) + if (!cfe(s)) throw new Ot("Invalid unit: '" + s.unit + "'", r); return { type: "size", @@ -64858,7 +64894,7 @@ class eE { body: o, semisimple: i === "\\begingroup" || void 0 }; - } else if (s = this.parseFunction(r, e) || this.parseSymbol(), s == null && i[0] === "\\" && !Kfe.hasOwnProperty(i)) { + } else if (s = this.parseFunction(r, e) || this.parseSymbol(), s == null && i[0] === "\\" && !Jfe.hasOwnProperty(i)) { if (this.settings.throwOnError) throw new Ot("Undefined control sequence: " + i, n); s = this.formatUnsupportedCmd(i), this.consume(); @@ -64902,13 +64938,13 @@ class eE { }; } NW.hasOwnProperty(r[0]) && !Tn[this.mode][r[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + r[0] + '" used in math mode', e), r = NW[r[0]] + r.slice(1)); - var s = aMt.exec(r); + var s = lMt.exec(r); s && (r = r.substring(0, s.index), r === "i" ? r = "\u0131" : r === "j" && (r = "\u0237")); var a; if (Tn[this.mode][r]) { this.settings.strict && this.mode === "math" && IL.indexOf(r) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + r[0] + '" used in math mode', e); var o = Tn[this.mode][r].group, l = ko.range(e), u; - if (KLt.hasOwnProperty(o)) { + if (eRt.hasOwnProperty(o)) { var h = o; u = { type: "atom", @@ -64926,7 +64962,7 @@ class eE { }; a = u; } else if (r.charCodeAt(0) >= 128) - this.settings.strict && (ofe(r.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Unicode text character "' + r[0] + '" used in math mode', e) : this.settings.reportNonstrict("unknownSymbol", 'Unrecognized Unicode character "' + r[0] + '"' + (" (" + r.charCodeAt(0) + ")"), e)), a = { + this.settings.strict && (lfe(r.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Unicode text character "' + r[0] + '" used in math mode', e) : this.settings.reportNonstrict("unknownSymbol", 'Unrecognized Unicode character "' + r[0] + '"' + (" (" + r.charCodeAt(0) + ")"), e)), a = { type: "textord", mode: "text", loc: ko.range(e), @@ -64973,21 +65009,21 @@ var rI = function(e, r) { }]; } return i; -}, Jfe = function(e, r, n) { +}, ede = function(e, r, n) { r.textContent = ""; var i = nI(e, n).toNode(); r.appendChild(i); }; -typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), Jfe = function() { +typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), ede = function() { throw new Ot("KaTeX doesn't work in quirks mode."); }); -var hMt = function(e, r) { +var dMt = function(e, r) { var n = nI(e, r).toMarkup(); return n; -}, fMt = function(e, r) { +}, pMt = function(e, r) { var n = new BN(r); return rI(e, n); -}, ede = function(e, r, n) { +}, tde = function(e, r, n) { if (n.throwOnError || !(e instanceof Ot)) throw e; var i = Ye.makeSpan(["katex-error"], [new bl(r)]); @@ -64996,28 +65032,28 @@ var hMt = function(e, r) { var n = new BN(r); try { var i = rI(e, n); - return wRt(i, e, n); + return kRt(i, e, n); } catch (s) { - return ede(s, e, n); + return tde(s, e, n); } -}, dMt = function(e, r) { +}, gMt = function(e, r) { var n = new BN(r); try { var i = rI(e, n); - return ORt(i, e, n); + return SRt(i, e, n); } catch (s) { - return ede(s, e, n); + return tde(s, e, n); } -}, pMt = { +}, mMt = { version: "0.16.11", - render: Jfe, - renderToString: hMt, + render: ede, + renderToString: dMt, ParseError: Ot, SETTINGS_SCHEMA: $5, - __parse: fMt, + __parse: pMt, __renderToDomTree: nI, - __renderToHTMLTree: dMt, - __setFontMetrics: YLt, + __renderToHTMLTree: gMt, + __setFontMetrics: GLt, __defineSymbol: z, __defineFunction: Nt, __defineMacro: ue, @@ -65026,46 +65062,46 @@ var hMt = function(e, r) { Anchor: QN, SymbolNode: bl, SvgNode: bh, - PathNode: Kf, + PathNode: Jf, LineNode: NL } }; -const gMt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const vMt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: pMt + default: mMt }, Symbol.toStringTag, { value: "Module" })); -var mMt = "[object Symbol]"; +var yMt = "[object Symbol]"; function j0(t) { - return typeof t == "symbol" || vl(t) && Dh(t) == mMt; + return typeof t == "symbol" || vl(t) && Ph(t) == yMt; } -function _f(t, e) { +function Af(t, e) { for (var r = -1, n = t == null ? 0 : t.length, i = Array(n); ++r < n; ) i[r] = e(t[r], r, t); return i; } -var vMt = 1 / 0, IW = gl ? gl.prototype : void 0, $W = IW ? IW.toString : void 0; -function tde(t) { +var bMt = 1 / 0, IW = gl ? gl.prototype : void 0, $W = IW ? IW.toString : void 0; +function rde(t) { if (typeof t == "string") return t; if (Pr(t)) - return _f(t, tde) + ""; + return Af(t, rde) + ""; if (j0(t)) return $W ? $W.call(t) : ""; var e = t + ""; - return e == "0" && 1 / t == -vMt ? "-0" : e; + return e == "0" && 1 / t == -bMt ? "-0" : e; } -var yMt = /\s/; -function bMt(t) { - for (var e = t.length; e-- && yMt.test(t.charAt(e)); ) +var xMt = /\s/; +function wMt(t) { + for (var e = t.length; e-- && xMt.test(t.charAt(e)); ) ; return e; } -var xMt = /^\s+/; -function wMt(t) { - return t && t.slice(0, bMt(t) + 1).replace(xMt, ""); +var OMt = /^\s+/; +function kMt(t) { + return t && t.slice(0, wMt(t) + 1).replace(OMt, ""); } -var BW = 0 / 0, OMt = /^[-+]0x[0-9a-f]+$/i, kMt = /^0b[01]+$/i, SMt = /^0o[0-7]+$/i, TMt = parseInt; -function CMt(t) { +var BW = 0 / 0, SMt = /^[-+]0x[0-9a-f]+$/i, TMt = /^0b[01]+$/i, CMt = /^0o[0-7]+$/i, EMt = parseInt; +function _Mt(t) { if (typeof t == "number") return t; if (j0(t)) @@ -65076,17 +65112,17 @@ function CMt(t) { } if (typeof t != "string") return t === 0 ? t : +t; - t = wMt(t); - var r = kMt.test(t); - return r || SMt.test(t) ? TMt(t.slice(2), r ? 2 : 8) : OMt.test(t) ? BW : +t; + t = kMt(t); + var r = TMt.test(t); + return r || CMt.test(t) ? EMt(t.slice(2), r ? 2 : 8) : SMt.test(t) ? BW : +t; } -var FW = 1 / 0, EMt = 17976931348623157e292; +var FW = 1 / 0, AMt = 17976931348623157e292; function F5(t) { if (!t) return t === 0 ? t : 0; - if (t = CMt(t), t === FW || t === -FW) { + if (t = _Mt(t), t === FW || t === -FW) { var e = t < 0 ? -1 : 1; - return e * EMt; + return e * AMt; } return t === t ? t : 0; } @@ -65096,78 +65132,78 @@ function bw(t) { } function Mi() { } -function rde(t, e) { +function nde(t, e) { for (var r = -1, n = t == null ? 0 : t.length; ++r < n && e(t[r], r, t) !== !1; ) ; return t; } -function nde(t, e, r, n) { +function ide(t, e, r, n) { for (var i = t.length, s = r + (n ? 1 : -1); n ? s-- : ++s < i; ) if (e(t[s], s, t)) return s; return -1; } -function _Mt(t) { +function LMt(t) { return t !== t; } -function AMt(t, e, r) { +function RMt(t, e, r) { for (var n = r - 1, i = t.length; ++n < i; ) if (t[n] === e) return n; return -1; } function iI(t, e, r) { - return e === e ? AMt(t, e, r) : nde(t, _Mt, r); + return e === e ? RMt(t, e, r) : ide(t, LMt, r); } -function ide(t, e) { +function sde(t, e) { var r = t == null ? 0 : t.length; return !!r && iI(t, e, 0) > -1; } function Fi(t) { return Ou(t) ? Uoe(t) : sce(t); } -var LMt = Object.prototype, RMt = LMt.hasOwnProperty, MMt = Woe(function(t, e) { +var MMt = Object.prototype, DMt = MMt.hasOwnProperty, PMt = Woe(function(t, e) { if (sw(e) || Ou(e)) { F1(e, Fi(e), t); return; } for (var r in e) - RMt.call(e, r) && aw(t, r, e[r]); + DMt.call(e, r) && aw(t, r, e[r]); }); -const Po = MMt; -var DMt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, PMt = /^\w*$/; +const Po = PMt; +var NMt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, IMt = /^\w*$/; function sI(t, e) { if (Pr(t)) return !1; var r = typeof t; - return r == "number" || r == "symbol" || r == "boolean" || t == null || j0(t) ? !0 : PMt.test(t) || !DMt.test(t) || e != null && t in Object(e); + return r == "number" || r == "symbol" || r == "boolean" || t == null || j0(t) ? !0 : IMt.test(t) || !NMt.test(t) || e != null && t in Object(e); } -var NMt = 500; -function IMt(t) { +var $Mt = 500; +function BMt(t) { var e = $1(t, function(n) { - return r.size === NMt && r.clear(), n; + return r.size === $Mt && r.clear(), n; }), r = e.cache; return e; } -var $Mt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, BMt = /\\(\\)?/g, FMt = IMt(function(t) { +var FMt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, zMt = /\\(\\)?/g, QMt = BMt(function(t) { var e = []; - return t.charCodeAt(0) === 46 && e.push(""), t.replace($Mt, function(r, n, i, s) { - e.push(i ? s.replace(BMt, "$1") : n || r); + return t.charCodeAt(0) === 46 && e.push(""), t.replace(FMt, function(r, n, i, s) { + e.push(i ? s.replace(zMt, "$1") : n || r); }), e; }); -const zMt = FMt; -function sde(t) { - return t == null ? "" : tde(t); +const UMt = QMt; +function ade(t) { + return t == null ? "" : rde(t); } function tE(t, e) { - return Pr(t) ? t : sI(t, e) ? [t] : zMt(sde(t)); + return Pr(t) ? t : sI(t, e) ? [t] : UMt(ade(t)); } -var QMt = 1 / 0; +var VMt = 1 / 0; function xw(t) { if (typeof t == "string" || j0(t)) return t; var e = t + ""; - return e == "0" && 1 / t == -QMt ? "-0" : e; + return e == "0" && 1 / t == -VMt ? "-0" : e; } function rE(t, e) { e = tE(e, t); @@ -65175,7 +65211,7 @@ function rE(t, e) { t = t[xw(e[r++])]; return r && r == n ? t : void 0; } -function UMt(t, e, r) { +function qMt(t, e, r) { var n = t == null ? void 0 : rE(t, e); return n === void 0 ? r : n; } @@ -65185,12 +65221,12 @@ function aI(t, e) { return t; } var zW = gl ? gl.isConcatSpreadable : void 0; -function VMt(t) { +function YMt(t) { return Pr(t) || Bm(t) || !!(zW && t && t[zW]); } function V1(t, e, r, n, i) { var s = -1, a = t.length; - for (r || (r = VMt), i || (i = []); ++s < a; ) { + for (r || (r = YMt), i || (i = []); ++s < a; ) { var o = t[s]; e > 0 && r(o) ? e > 1 ? V1(o, e - 1, r, n, i) : aI(i, o) : n || (i[i.length] = o); } @@ -65200,26 +65236,26 @@ function ss(t) { var e = t == null ? 0 : t.length; return e ? V1(t, 1) : []; } -function qMt(t) { +function WMt(t) { return Yoe(qoe(t, void 0, ss), t + ""); } -function ade(t, e, r) { +function ode(t, e, r) { var n = -1, i = t.length; e < 0 && (e = -e > i ? 0 : i + e), r = r > i ? i : r, r < 0 && (r += i), i = e > r ? 0 : r - e >>> 0, e >>>= 0; for (var s = Array(i); ++n < i; ) s[n] = t[n + e]; return s; } -function YMt(t, e, r, n) { +function GMt(t, e, r, n) { var i = -1, s = t == null ? 0 : t.length; for (n && s && (r = t[++i]); ++i < s; ) r = e(r, t[i], i, t); return r; } -function WMt(t, e) { +function XMt(t, e) { return t && F1(e, Fi(e), t); } -function GMt(t, e) { +function HMt(t, e) { return t && F1(e, _p(e), t); } function oI(t, e) { @@ -65229,68 +65265,66 @@ function oI(t, e) { } return s; } -function ode() { +function lde() { return []; } -var XMt = Object.prototype, HMt = XMt.propertyIsEnumerable, QW = Object.getOwnPropertySymbols, ZMt = QW ? function(t) { +var ZMt = Object.prototype, jMt = ZMt.propertyIsEnumerable, QW = Object.getOwnPropertySymbols, KMt = QW ? function(t) { return t == null ? [] : (t = Object(t), oI(QW(t), function(e) { - return HMt.call(t, e); + return jMt.call(t, e); })); -} : ode; -const lI = ZMt; -function jMt(t, e) { +} : lde; +const lI = KMt; +function JMt(t, e) { return F1(t, lI(t), e); } -var KMt = Object.getOwnPropertySymbols, JMt = KMt ? function(t) { +var eDt = Object.getOwnPropertySymbols, tDt = eDt ? function(t) { for (var e = []; t; ) aI(e, lI(t)), t = sN(t); return e; -} : ode; -const lde = JMt; -function eDt(t, e) { - return F1(t, lde(t), e); +} : lde; +const cde = tDt; +function rDt(t, e) { + return F1(t, cde(t), e); } -function cde(t, e, r) { +function ude(t, e, r) { var n = e(t); return Pr(t) ? n : aI(n, r(t)); } function UL(t) { - return cde(t, Fi, lI); + return ude(t, Fi, lI); } -function ude(t) { - return cde(t, _p, lde); +function hde(t) { + return ude(t, _p, cde); } -var tDt = Object.prototype, rDt = tDt.hasOwnProperty; -function nDt(t) { +var nDt = Object.prototype, iDt = nDt.hasOwnProperty; +function sDt(t) { var e = t.length, r = new t.constructor(e); - return e && typeof t[0] == "string" && rDt.call(t, "index") && (r.index = t.index, r.input = t.input), r; + return e && typeof t[0] == "string" && iDt.call(t, "index") && (r.index = t.index, r.input = t.input), r; } -function iDt(t, e) { +function aDt(t, e) { var r = e ? iN(t.buffer) : t.buffer; return new t.constructor(r, t.byteOffset, t.byteLength); } -var sDt = /\w*$/; -function aDt(t) { - var e = new t.constructor(t.source, sDt.exec(t)); +var oDt = /\w*$/; +function lDt(t) { + var e = new t.constructor(t.source, oDt.exec(t)); return e.lastIndex = t.lastIndex, e; } var UW = gl ? gl.prototype : void 0, VW = UW ? UW.valueOf : void 0; -function oDt(t) { +function cDt(t) { return VW ? Object(VW.call(t)) : {}; } -var lDt = "[object Boolean]", cDt = "[object Date]", uDt = "[object Map]", hDt = "[object Number]", fDt = "[object RegExp]", dDt = "[object Set]", pDt = "[object String]", gDt = "[object Symbol]", mDt = "[object ArrayBuffer]", vDt = "[object DataView]", yDt = "[object Float32Array]", bDt = "[object Float64Array]", xDt = "[object Int8Array]", wDt = "[object Int16Array]", ODt = "[object Int32Array]", kDt = "[object Uint8Array]", SDt = "[object Uint8ClampedArray]", TDt = "[object Uint16Array]", CDt = "[object Uint32Array]"; -function EDt(t, e, r) { +var uDt = "[object Boolean]", hDt = "[object Date]", fDt = "[object Map]", dDt = "[object Number]", pDt = "[object RegExp]", gDt = "[object Set]", mDt = "[object String]", vDt = "[object Symbol]", yDt = "[object ArrayBuffer]", bDt = "[object DataView]", xDt = "[object Float32Array]", wDt = "[object Float64Array]", ODt = "[object Int8Array]", kDt = "[object Int16Array]", SDt = "[object Int32Array]", TDt = "[object Uint8Array]", CDt = "[object Uint8ClampedArray]", EDt = "[object Uint16Array]", _Dt = "[object Uint32Array]"; +function ADt(t, e, r) { var n = t.constructor; switch (e) { - case mDt: + case yDt: return iN(t); - case lDt: - case cDt: + case uDt: + case hDt: return new n(+t); - case vDt: - return iDt(t, r); - case yDt: case bDt: + return aDt(t, r); case xDt: case wDt: case ODt: @@ -65298,79 +65332,81 @@ function EDt(t, e, r) { case SDt: case TDt: case CDt: + case EDt: + case _Dt: return Poe(t, r); - case uDt: - return new n(); - case hDt: - case pDt: - return new n(t); case fDt: - return aDt(t); - case dDt: return new n(); + case dDt: + case mDt: + return new n(t); + case pDt: + return lDt(t); case gDt: - return oDt(t); + return new n(); + case vDt: + return cDt(t); } } -var _Dt = "[object Map]"; -function ADt(t) { - return vl(t) && Um(t) == _Dt; +var LDt = "[object Map]"; +function RDt(t) { + return vl(t) && Um(t) == LDt; } -var qW = Xf && Xf.isMap, LDt = qW ? B1(qW) : ADt; -const RDt = LDt; -var MDt = "[object Set]"; -function DDt(t) { - return vl(t) && Um(t) == MDt; +var qW = Hf && Hf.isMap, MDt = qW ? B1(qW) : RDt; +const DDt = MDt; +var PDt = "[object Set]"; +function NDt(t) { + return vl(t) && Um(t) == PDt; } -var YW = Xf && Xf.isSet, PDt = YW ? B1(YW) : DDt; -const NDt = PDt; -var IDt = 1, $Dt = 2, BDt = 4, hde = "[object Arguments]", FDt = "[object Array]", zDt = "[object Boolean]", QDt = "[object Date]", UDt = "[object Error]", fde = "[object Function]", VDt = "[object GeneratorFunction]", qDt = "[object Map]", YDt = "[object Number]", dde = "[object Object]", WDt = "[object RegExp]", GDt = "[object Set]", XDt = "[object String]", HDt = "[object Symbol]", ZDt = "[object WeakMap]", jDt = "[object ArrayBuffer]", KDt = "[object DataView]", JDt = "[object Float32Array]", ePt = "[object Float64Array]", tPt = "[object Int8Array]", rPt = "[object Int16Array]", nPt = "[object Int32Array]", iPt = "[object Uint8Array]", sPt = "[object Uint8ClampedArray]", aPt = "[object Uint16Array]", oPt = "[object Uint32Array]", On = {}; -On[hde] = On[FDt] = On[jDt] = On[KDt] = On[zDt] = On[QDt] = On[JDt] = On[ePt] = On[tPt] = On[rPt] = On[nPt] = On[qDt] = On[YDt] = On[dde] = On[WDt] = On[GDt] = On[XDt] = On[HDt] = On[iPt] = On[sPt] = On[aPt] = On[oPt] = !0; -On[UDt] = On[fde] = On[ZDt] = !1; +var YW = Hf && Hf.isSet, IDt = YW ? B1(YW) : NDt; +const $Dt = IDt; +var BDt = 1, FDt = 2, zDt = 4, fde = "[object Arguments]", QDt = "[object Array]", UDt = "[object Boolean]", VDt = "[object Date]", qDt = "[object Error]", dde = "[object Function]", YDt = "[object GeneratorFunction]", WDt = "[object Map]", GDt = "[object Number]", pde = "[object Object]", XDt = "[object RegExp]", HDt = "[object Set]", ZDt = "[object String]", jDt = "[object Symbol]", KDt = "[object WeakMap]", JDt = "[object ArrayBuffer]", ePt = "[object DataView]", tPt = "[object Float32Array]", rPt = "[object Float64Array]", nPt = "[object Int8Array]", iPt = "[object Int16Array]", sPt = "[object Int32Array]", aPt = "[object Uint8Array]", oPt = "[object Uint8ClampedArray]", lPt = "[object Uint16Array]", cPt = "[object Uint32Array]", On = {}; +On[fde] = On[QDt] = On[JDt] = On[ePt] = On[UDt] = On[VDt] = On[tPt] = On[rPt] = On[nPt] = On[iPt] = On[sPt] = On[WDt] = On[GDt] = On[pde] = On[XDt] = On[HDt] = On[ZDt] = On[jDt] = On[aPt] = On[oPt] = On[lPt] = On[cPt] = !0; +On[qDt] = On[dde] = On[KDt] = !1; function r2(t, e, r, n, i, s) { - var a, o = e & IDt, l = e & $Dt, u = e & BDt; + var a, o = e & BDt, l = e & FDt, u = e & zDt; if (r && (a = i ? r(t, n, i, s) : r(t)), a !== void 0) return a; if (!so(t)) return t; var h = Pr(t); if (h) { - if (a = nDt(t), !o) + if (a = sDt(t), !o) return Noe(t, a); } else { - var f = Um(t), d = f == fde || f == VDt; + var f = Um(t), d = f == dde || f == YDt; if (Fm(t)) return Doe(t, o); - if (f == dde || f == hde || d && !i) { + if (f == pde || f == fde || d && !i) { if (a = l || d ? {} : $oe(t), !o) - return l ? eDt(t, GMt(a, t)) : jMt(t, WMt(a, t)); + return l ? rDt(t, HMt(a, t)) : JMt(t, XMt(a, t)); } else { if (!On[f]) return i ? t : {}; - a = EDt(t, f, o); + a = ADt(t, f, o); } } s || (s = new Yl()); var p = s.get(t); if (p) return p; - s.set(t, a), NDt(t) ? t.forEach(function(v) { + s.set(t, a), $Dt(t) ? t.forEach(function(v) { a.add(r2(v, e, r, v, t, s)); - }) : RDt(t) && t.forEach(function(v, y) { + }) : DDt(t) && t.forEach(function(v, y) { a.set(y, r2(v, e, r, y, t, s)); }); - var g = u ? l ? ude : UL : l ? _p : Fi, m = h ? void 0 : g(t); - return rde(m || t, function(v, y) { + var g = u ? l ? hde : UL : l ? _p : Fi, m = h ? void 0 : g(t); + return nde(m || t, function(v, y) { m && (y = v, v = t[y]), aw(a, y, r2(v, e, r, y, t, s)); }), a; } -var lPt = 4; +var uPt = 4; function Hi(t) { - return r2(t, lPt); + return r2(t, uPt); } -var cPt = 1, uPt = 4; -function hPt(t) { - return r2(t, cPt | uPt); +var hPt = 1, fPt = 4; +function dPt(t) { + return r2(t, hPt | fPt); } function ww(t) { for (var e = -1, r = t == null ? 0 : t.length, n = 0, i = []; ++e < r; ) { @@ -65379,21 +65415,21 @@ function ww(t) { } return i; } -var fPt = "__lodash_hash_undefined__"; -function dPt(t) { - return this.__data__.set(t, fPt), this; +var pPt = "__lodash_hash_undefined__"; +function gPt(t) { + return this.__data__.set(t, pPt), this; } -function pPt(t) { +function mPt(t) { return this.__data__.has(t); } function Hm(t) { var e = -1, r = t == null ? 0 : t.length; - for (this.__data__ = new Nh(); ++e < r; ) + for (this.__data__ = new Ih(); ++e < r; ) this.add(t[e]); } -Hm.prototype.add = Hm.prototype.push = dPt; -Hm.prototype.has = pPt; -function pde(t, e) { +Hm.prototype.add = Hm.prototype.push = gPt; +Hm.prototype.has = mPt; +function gde(t, e) { for (var r = -1, n = t == null ? 0 : t.length; ++r < n; ) if (e(t[r], r, t)) return !0; @@ -65402,15 +65438,15 @@ function pde(t, e) { function cI(t, e) { return t.has(e); } -var gPt = 1, mPt = 2; -function gde(t, e, r, n, i, s) { - var a = r & gPt, o = t.length, l = e.length; +var vPt = 1, yPt = 2; +function mde(t, e, r, n, i, s) { + var a = r & vPt, o = t.length, l = e.length; if (o != l && !(a && l > o)) return !1; var u = s.get(t), h = s.get(e); if (u && h) return u == e && h == t; - var f = -1, d = !0, p = r & mPt ? new Hm() : void 0; + var f = -1, d = !0, p = r & yPt ? new Hm() : void 0; for (s.set(t, e), s.set(e, t); ++f < o; ) { var g = t[f], m = e[f]; if (n) @@ -65422,7 +65458,7 @@ function gde(t, e, r, n, i, s) { break; } if (p) { - if (!pde(e, function(y, b) { + if (!gde(e, function(y, b) { if (!cI(p, b) && (g === y || i(g, y, r, n, s))) return p.push(b); })) { @@ -65436,7 +65472,7 @@ function gde(t, e, r, n, i, s) { } return s.delete(t), s.delete(e), d; } -function vPt(t) { +function bPt(t) { var e = -1, r = Array(t.size); return t.forEach(function(n, i) { r[++e] = [i, n]; @@ -65448,50 +65484,50 @@ function uI(t) { r[++e] = n; }), r; } -var yPt = 1, bPt = 2, xPt = "[object Boolean]", wPt = "[object Date]", OPt = "[object Error]", kPt = "[object Map]", SPt = "[object Number]", TPt = "[object RegExp]", CPt = "[object Set]", EPt = "[object String]", _Pt = "[object Symbol]", APt = "[object ArrayBuffer]", LPt = "[object DataView]", WW = gl ? gl.prototype : void 0, MA = WW ? WW.valueOf : void 0; -function RPt(t, e, r, n, i, s, a) { +var xPt = 1, wPt = 2, OPt = "[object Boolean]", kPt = "[object Date]", SPt = "[object Error]", TPt = "[object Map]", CPt = "[object Number]", EPt = "[object RegExp]", _Pt = "[object Set]", APt = "[object String]", LPt = "[object Symbol]", RPt = "[object ArrayBuffer]", MPt = "[object DataView]", WW = gl ? gl.prototype : void 0, MA = WW ? WW.valueOf : void 0; +function DPt(t, e, r, n, i, s, a) { switch (r) { - case LPt: + case MPt: if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset) return !1; t = t.buffer, e = e.buffer; - case APt: + case RPt: return !(t.byteLength != e.byteLength || !s(new N3(t), new N3(e))); - case xPt: - case wPt: - case SPt: - return I1(+t, +e); case OPt: + case kPt: + case CPt: + return I1(+t, +e); + case SPt: return t.name == e.name && t.message == e.message; - case TPt: case EPt: + case APt: return t == e + ""; - case kPt: - var o = vPt; - case CPt: - var l = n & yPt; + case TPt: + var o = bPt; + case _Pt: + var l = n & xPt; if (o || (o = uI), t.size != e.size && !l) return !1; var u = a.get(t); if (u) return u == e; - n |= bPt, a.set(t, e); - var h = gde(o(t), o(e), n, i, s, a); + n |= wPt, a.set(t, e); + var h = mde(o(t), o(e), n, i, s, a); return a.delete(t), h; - case _Pt: + case LPt: if (MA) return MA.call(t) == MA.call(e); } return !1; } -var MPt = 1, DPt = Object.prototype, PPt = DPt.hasOwnProperty; -function NPt(t, e, r, n, i, s) { - var a = r & MPt, o = UL(t), l = o.length, u = UL(e), h = u.length; +var PPt = 1, NPt = Object.prototype, IPt = NPt.hasOwnProperty; +function $Pt(t, e, r, n, i, s) { + var a = r & PPt, o = UL(t), l = o.length, u = UL(e), h = u.length; if (l != h && !a) return !1; for (var f = l; f--; ) { var d = o[f]; - if (!(a ? d in e : PPt.call(e, d))) + if (!(a ? d in e : IPt.call(e, d))) return !1; } var p = s.get(t), g = s.get(e); @@ -65516,8 +65552,8 @@ function NPt(t, e, r, n, i, s) { } return s.delete(t), s.delete(e), m; } -var IPt = 1, GW = "[object Arguments]", XW = "[object Array]", m4 = "[object Object]", $Pt = Object.prototype, HW = $Pt.hasOwnProperty; -function BPt(t, e, r, n, i, s) { +var BPt = 1, GW = "[object Arguments]", XW = "[object Array]", m4 = "[object Object]", FPt = Object.prototype, HW = FPt.hasOwnProperty; +function zPt(t, e, r, n, i, s) { var a = Pr(t), o = Pr(e), l = a ? XW : Um(t), u = o ? XW : Um(e); l = l == GW ? m4 : l, u = u == GW ? m4 : u; var h = l == m4, f = u == m4, d = l == u; @@ -65527,21 +65563,21 @@ function BPt(t, e, r, n, i, s) { a = !0, h = !1; } if (d && !h) - return s || (s = new Yl()), a || $C(t) ? gde(t, e, r, n, i, s) : RPt(t, e, l, r, n, i, s); - if (!(r & IPt)) { + return s || (s = new Yl()), a || $C(t) ? mde(t, e, r, n, i, s) : DPt(t, e, l, r, n, i, s); + if (!(r & BPt)) { var p = h && HW.call(t, "__wrapped__"), g = f && HW.call(e, "__wrapped__"); if (p || g) { var m = p ? t.value() : t, v = g ? e.value() : e; return s || (s = new Yl()), i(m, v, r, n, s); } } - return d ? (s || (s = new Yl()), NPt(t, e, r, n, i, s)) : !1; + return d ? (s || (s = new Yl()), $Pt(t, e, r, n, i, s)) : !1; } function hI(t, e, r, n, i) { - return t === e ? !0 : t == null || e == null || !vl(t) && !vl(e) ? t !== t && e !== e : BPt(t, e, r, n, hI, i); + return t === e ? !0 : t == null || e == null || !vl(t) && !vl(e) ? t !== t && e !== e : zPt(t, e, r, n, hI, i); } -var FPt = 1, zPt = 2; -function QPt(t, e, r, n) { +var QPt = 1, UPt = 2; +function VPt(t, e, r, n) { var i = r.length, s = i, a = !n; if (t == null) return !s; @@ -65560,37 +65596,37 @@ function QPt(t, e, r, n) { var f = new Yl(); if (n) var d = n(u, h, l, t, e, f); - if (!(d === void 0 ? hI(h, u, FPt | zPt, n, f) : d)) + if (!(d === void 0 ? hI(h, u, QPt | UPt, n, f) : d)) return !1; } } return !0; } -function mde(t) { +function vde(t) { return t === t && !so(t); } -function UPt(t) { +function qPt(t) { for (var e = Fi(t), r = e.length; r--; ) { var n = e[r], i = t[n]; - e[r] = [n, i, mde(i)]; + e[r] = [n, i, vde(i)]; } return e; } -function vde(t, e) { +function yde(t, e) { return function(r) { return r == null ? !1 : r[t] === e && (e !== void 0 || t in Object(r)); }; } -function VPt(t) { - var e = UPt(t); - return e.length == 1 && e[0][2] ? vde(e[0][0], e[0][1]) : function(r) { - return r === t || QPt(r, t, e); +function YPt(t) { + var e = qPt(t); + return e.length == 1 && e[0][2] ? yde(e[0][0], e[0][1]) : function(r) { + return r === t || VPt(r, t, e); }; } -function qPt(t, e) { +function WPt(t, e) { return t != null && e in Object(t); } -function yde(t, e, r) { +function bde(t, e, r) { e = tE(e, t); for (var n = -1, i = e.length, s = !1; ++n < i; ) { var a = xw(e[n]); @@ -65600,33 +65636,33 @@ function yde(t, e, r) { } return s || ++n != i ? s : (i = t == null ? 0 : t.length, !!i && aN(i) && BC(a, i) && (Pr(t) || Bm(t))); } -function bde(t, e) { - return t != null && yde(t, e, qPt); +function xde(t, e) { + return t != null && bde(t, e, WPt); } -var YPt = 1, WPt = 2; -function GPt(t, e) { - return sI(t) && mde(e) ? vde(xw(t), e) : function(r) { - var n = UMt(r, t); - return n === void 0 && n === e ? bde(r, t) : hI(e, n, YPt | WPt); +var GPt = 1, XPt = 2; +function HPt(t, e) { + return sI(t) && vde(e) ? yde(xw(t), e) : function(r) { + var n = qMt(r, t); + return n === void 0 && n === e ? xde(r, t) : hI(e, n, GPt | XPt); }; } -function XPt(t) { +function ZPt(t) { return function(e) { return e == null ? void 0 : e[t]; }; } -function HPt(t) { +function jPt(t) { return function(e) { return rE(e, t); }; } -function ZPt(t) { - return sI(t) ? XPt(xw(t)) : HPt(t); +function KPt(t) { + return sI(t) ? ZPt(xw(t)) : jPt(t); } function fo(t) { - return typeof t == "function" ? t : t == null ? vh : typeof t == "object" ? Pr(t) ? GPt(t[0], t[1]) : VPt(t) : ZPt(t); + return typeof t == "function" ? t : t == null ? vh : typeof t == "object" ? Pr(t) ? HPt(t[0], t[1]) : YPt(t) : KPt(t); } -function jPt(t, e, r, n) { +function JPt(t, e, r, n) { for (var i = -1, s = t == null ? 0 : t.length; ++i < s; ) { var a = t[i]; e(n, a, r(a), t); @@ -65636,7 +65672,7 @@ function jPt(t, e, r, n) { function fI(t, e) { return t && nN(t, e, Fi); } -function KPt(t, e) { +function eNt(t, e) { return function(r, n) { if (r == null) return r; @@ -65647,46 +65683,46 @@ function KPt(t, e) { return r; }; } -var JPt = KPt(fI); -const Dp = JPt; -function eNt(t, e, r, n) { +var tNt = eNt(fI); +const Dp = tNt; +function rNt(t, e, r, n) { return Dp(t, function(i, s, a) { e(n, i, r(i), a); }), n; } -function tNt(t, e) { +function nNt(t, e) { return function(r, n) { - var i = Pr(r) ? jPt : eNt, s = e ? e() : {}; + var i = Pr(r) ? JPt : rNt, s = e ? e() : {}; return i(r, t, fo(n), s); }; } -var rNt = function() { +var iNt = function() { return gc.Date.now(); }; -const ZW = rNt; -var xde = Object.prototype, nNt = xde.hasOwnProperty, iNt = ow(function(t, e) { +const ZW = iNt; +var wde = Object.prototype, sNt = wde.hasOwnProperty, aNt = ow(function(t, e) { t = Object(t); var r = -1, n = e.length, i = n > 2 ? e[2] : void 0; for (i && Y0(e[0], e[1], i) && (n = 1); ++r < n; ) for (var s = e[r], a = _p(s), o = -1, l = a.length; ++o < l; ) { var u = a[o], h = t[u]; - (h === void 0 || I1(h, xde[u]) && !nNt.call(t, u)) && (t[u] = s[u]); + (h === void 0 || I1(h, wde[u]) && !sNt.call(t, u)) && (t[u] = s[u]); } return t; }); -const nE = iNt; -function wde(t, e, r) { +const nE = aNt; +function Ode(t, e, r) { for (var n = -1, i = t == null ? 0 : t.length; ++n < i; ) if (r(e, t[n])) return !0; return !1; } -var sNt = 200; -function aNt(t, e, r, n) { - var i = -1, s = ide, a = !0, o = t.length, l = [], u = e.length; +var oNt = 200; +function lNt(t, e, r, n) { + var i = -1, s = sde, a = !0, o = t.length, l = [], u = e.length; if (!o) return l; - r && (e = _f(e, B1(r))), n ? (s = wde, a = !1) : e.length >= sNt && (s = cI, a = !1, e = new Hm(e)); + r && (e = Af(e, B1(r))), n ? (s = Ode, a = !1) : e.length >= oNt && (s = cI, a = !1, e = new Hm(e)); e: for (; ++i < o; ) { var h = t[i], f = r == null ? h : r(h); @@ -65700,56 +65736,56 @@ function aNt(t, e, r, n) { } return l; } -var oNt = ow(function(t, e) { - return I3(t) ? aNt(t, V1(e, 1, I3, !0)) : []; +var cNt = ow(function(t, e) { + return I3(t) ? lNt(t, V1(e, 1, I3, !0)) : []; }); -const iE = oNt; +const iE = cNt; function uu(t) { var e = t == null ? 0 : t.length; return e ? t[e - 1] : void 0; } function gs(t, e, r) { var n = t == null ? 0 : t.length; - return n ? (e = r || e === void 0 ? 1 : bw(e), ade(t, e < 0 ? 0 : e, n)) : []; + return n ? (e = r || e === void 0 ? 1 : bw(e), ode(t, e < 0 ? 0 : e, n)) : []; } function vb(t, e, r) { var n = t == null ? 0 : t.length; - return n ? (e = r || e === void 0 ? 1 : bw(e), e = n - e, ade(t, 0, e < 0 ? 0 : e)) : []; + return n ? (e = r || e === void 0 ? 1 : bw(e), e = n - e, ode(t, 0, e < 0 ? 0 : e)) : []; } function dI(t) { return typeof t == "function" ? t : vh; } function Ve(t, e) { - var r = Pr(t) ? rde : Dp; + var r = Pr(t) ? nde : Dp; return r(t, dI(e)); } -function lNt(t, e) { +function uNt(t, e) { for (var r = -1, n = t == null ? 0 : t.length; ++r < n; ) if (!e(t[r], r, t)) return !1; return !0; } -function cNt(t, e) { +function hNt(t, e) { var r = !0; return Dp(t, function(n, i, s) { return r = !!e(n, i, s), r; }), r; } function Hl(t, e, r) { - var n = Pr(t) ? lNt : cNt; + var n = Pr(t) ? uNt : hNt; return r && Y0(t, e, r) && (e = void 0), n(t, fo(e)); } -function Ode(t, e) { +function kde(t, e) { var r = []; return Dp(t, function(n, i, s) { e(n, i, s) && r.push(n); }), r; } function ni(t, e) { - var r = Pr(t) ? oI : Ode; + var r = Pr(t) ? oI : kde; return r(t, fo(e)); } -function uNt(t) { +function fNt(t) { return function(e, r, n) { var i = Object(e); if (!Ou(e)) { @@ -65762,88 +65798,88 @@ function uNt(t) { return a > -1 ? i[s ? e[a] : a] : void 0; }; } -var hNt = Math.max; -function fNt(t, e, r) { +var dNt = Math.max; +function pNt(t, e, r) { var n = t == null ? 0 : t.length; if (!n) return -1; var i = r == null ? 0 : bw(r); - return i < 0 && (i = hNt(n + i, 0)), nde(t, fo(e), i); + return i < 0 && (i = dNt(n + i, 0)), ide(t, fo(e), i); } -var dNt = uNt(fNt); -const Oh = dNt; +var gNt = fNt(pNt); +const Oh = gNt; function oc(t) { return t && t.length ? t[0] : void 0; } -function kde(t, e) { +function Sde(t, e) { var r = -1, n = Ou(t) ? Array(t.length) : []; return Dp(t, function(i, s, a) { n[++r] = e(i, s, a); }), n; } function St(t, e) { - var r = Pr(t) ? _f : kde; + var r = Pr(t) ? Af : Sde; return r(t, fo(e)); } function Lo(t, e) { return V1(St(t, e), 1); } -function pNt(t, e) { +function mNt(t, e) { return t == null ? t : nN(t, dI(e), _p); } -function gNt(t, e) { +function vNt(t, e) { return t && fI(t, dI(e)); } -var mNt = Object.prototype, vNt = mNt.hasOwnProperty, yNt = tNt(function(t, e, r) { - vNt.call(t, r) ? t[r].push(e) : iw(t, r, [e]); +var yNt = Object.prototype, bNt = yNt.hasOwnProperty, xNt = nNt(function(t, e, r) { + bNt.call(t, r) ? t[r].push(e) : iw(t, r, [e]); }); -const bNt = yNt; -function xNt(t, e) { +const wNt = xNt; +function ONt(t, e) { return t > e; } -var wNt = Object.prototype, ONt = wNt.hasOwnProperty; -function kNt(t, e) { - return t != null && ONt.call(t, e); +var kNt = Object.prototype, SNt = kNt.hasOwnProperty; +function TNt(t, e) { + return t != null && SNt.call(t, e); } function _t(t, e) { - return t != null && yde(t, e, kNt); + return t != null && bde(t, e, TNt); } -var SNt = "[object String]"; +var CNt = "[object String]"; function ao(t) { - return typeof t == "string" || !Pr(t) && vl(t) && Dh(t) == SNt; + return typeof t == "string" || !Pr(t) && vl(t) && Ph(t) == CNt; } -function TNt(t, e) { - return _f(e, function(r) { +function ENt(t, e) { + return Af(e, function(r) { return t[r]; }); } function un(t) { - return t == null ? [] : TNt(t, Fi(t)); + return t == null ? [] : ENt(t, Fi(t)); } -var CNt = Math.max; +var _Nt = Math.max; function $a(t, e, r, n) { t = Ou(t) ? t : un(t), r = r && !n ? bw(r) : 0; var i = t.length; - return r < 0 && (r = CNt(i + r, 0)), ao(t) ? r <= i && t.indexOf(e, r) > -1 : !!i && iI(t, e, r) > -1; + return r < 0 && (r = _Nt(i + r, 0)), ao(t) ? r <= i && t.indexOf(e, r) > -1 : !!i && iI(t, e, r) > -1; } -var ENt = Math.max; +var ANt = Math.max; function jW(t, e, r) { var n = t == null ? 0 : t.length; if (!n) return -1; var i = r == null ? 0 : bw(r); - return i < 0 && (i = ENt(n + i, 0)), iI(t, e, i); + return i < 0 && (i = ANt(n + i, 0)), iI(t, e, i); } -var _Nt = "[object RegExp]"; -function ANt(t) { - return vl(t) && Dh(t) == _Nt; +var LNt = "[object RegExp]"; +function RNt(t) { + return vl(t) && Ph(t) == LNt; } -var KW = Xf && Xf.isRegExp, LNt = KW ? B1(KW) : ANt; -const kh = LNt; +var KW = Hf && Hf.isRegExp, MNt = KW ? B1(KW) : RNt; +const kh = MNt; function tn(t) { return t === void 0; } -function Sde(t, e) { +function Tde(t, e) { return t < e; } function sE(t, e) { @@ -65861,18 +65897,18 @@ function pI(t, e, r) { return l; } function K0(t) { - return t && t.length ? pI(t, vh, xNt) : void 0; + return t && t.length ? pI(t, vh, ONt) : void 0; } function Zm(t) { - return t && t.length ? pI(t, vh, Sde) : void 0; + return t && t.length ? pI(t, vh, Tde) : void 0; } function gI(t, e) { - return t && t.length ? pI(t, fo(e), Sde) : void 0; + return t && t.length ? pI(t, fo(e), Tde) : void 0; } -var RNt = "Expected a function"; -function MNt(t) { +var DNt = "Expected a function"; +function PNt(t) { if (typeof t != "function") - throw new TypeError(RNt); + throw new TypeError(DNt); return function() { var e = arguments; switch (e.length) { @@ -65888,7 +65924,7 @@ function MNt(t) { return !t.apply(this, e); }; } -function DNt(t, e, r, n) { +function NNt(t, e, r, n) { if (!so(t)) return t; e = tE(e, t); @@ -65904,30 +65940,30 @@ function DNt(t, e, r, n) { } return t; } -function Tde(t, e, r) { +function Cde(t, e, r) { for (var n = -1, i = e.length, s = {}; ++n < i; ) { var a = e[n], o = rE(t, a); - r(o, a) && DNt(s, tE(a, t), o); + r(o, a) && NNt(s, tE(a, t), o); } return s; } function vc(t, e) { if (t == null) return {}; - var r = _f(ude(t), function(n) { + var r = Af(hde(t), function(n) { return [n]; }); - return e = fo(e), Tde(t, r, function(n, i) { + return e = fo(e), Cde(t, r, function(n, i) { return e(n, i[0]); }); } -function PNt(t, e) { +function INt(t, e) { var r = t.length; for (t.sort(e); r--; ) t[r] = t[r].value; return t; } -function NNt(t, e) { +function $Nt(t, e) { if (t !== e) { var r = t !== void 0, n = t === null, i = t === t, s = j0(t), a = e !== void 0, o = e === null, l = e === e, u = j0(e); if (!o && !u && !s && t > e || s && a && l && !o && !u || n && a && l || !r && l || !i) @@ -65937,9 +65973,9 @@ function NNt(t, e) { } return 0; } -function INt(t, e, r) { +function BNt(t, e, r) { for (var n = -1, i = t.criteria, s = e.criteria, a = i.length, o = r.length; ++n < a; ) { - var l = NNt(i[n], s[n]); + var l = $Nt(i[n], s[n]); if (l) { if (n >= o) return l; @@ -65949,87 +65985,87 @@ function INt(t, e, r) { } return t.index - e.index; } -function $Nt(t, e, r) { - e.length ? e = _f(e, function(s) { +function FNt(t, e, r) { + e.length ? e = Af(e, function(s) { return Pr(s) ? function(a) { return rE(a, s.length === 1 ? s[0] : s); } : s; }) : e = [vh]; var n = -1; - e = _f(e, B1(fo)); - var i = kde(t, function(s, a, o) { - var l = _f(e, function(u) { + e = Af(e, B1(fo)); + var i = Sde(t, function(s, a, o) { + var l = Af(e, function(u) { return u(s); }); return { criteria: l, index: ++n, value: s }; }); - return PNt(i, function(s, a) { - return INt(s, a, r); + return INt(i, function(s, a) { + return BNt(s, a, r); }); } -function BNt(t, e) { - return Tde(t, e, function(r, n) { - return bde(t, n); +function zNt(t, e) { + return Cde(t, e, function(r, n) { + return xde(t, n); }); } -var FNt = qMt(function(t, e) { - return t == null ? {} : BNt(t, e); +var QNt = WMt(function(t, e) { + return t == null ? {} : zNt(t, e); }); -const cS = FNt; -var zNt = Math.ceil, QNt = Math.max; -function UNt(t, e, r, n) { - for (var i = -1, s = QNt(zNt((e - t) / (r || 1)), 0), a = Array(s); s--; ) +const cS = QNt; +var UNt = Math.ceil, VNt = Math.max; +function qNt(t, e, r, n) { + for (var i = -1, s = VNt(UNt((e - t) / (r || 1)), 0), a = Array(s); s--; ) a[n ? s : ++i] = t, t += r; return a; } -function VNt(t) { +function YNt(t) { return function(e, r, n) { - return n && typeof n != "number" && Y0(e, r, n) && (r = n = void 0), e = F5(e), r === void 0 ? (r = e, e = 0) : r = F5(r), n = n === void 0 ? e < r ? 1 : -1 : F5(n), UNt(e, r, n, t); + return n && typeof n != "number" && Y0(e, r, n) && (r = n = void 0), e = F5(e), r === void 0 ? (r = e, e = 0) : r = F5(r), n = n === void 0 ? e < r ? 1 : -1 : F5(n), qNt(e, r, n, t); }; } -var qNt = VNt(); -const jm = qNt; -function YNt(t, e, r, n, i) { +var WNt = YNt(); +const jm = WNt; +function GNt(t, e, r, n, i) { return i(t, function(s, a, o) { r = n ? (n = !1, s) : e(r, s, a, o); }), r; } function Li(t, e, r) { - var n = Pr(t) ? YMt : YNt, i = arguments.length < 3; + var n = Pr(t) ? GMt : GNt, i = arguments.length < 3; return n(t, fo(e), r, i, Dp); } function aE(t, e) { - var r = Pr(t) ? oI : Ode; - return r(t, MNt(fo(e))); + var r = Pr(t) ? oI : kde; + return r(t, PNt(fo(e))); } -function WNt(t, e) { +function XNt(t, e) { var r; return Dp(t, function(n, i, s) { return r = e(n, i, s), !r; }), !!r; } -function Cde(t, e, r) { - var n = Pr(t) ? pde : WNt; +function Ede(t, e, r) { + var n = Pr(t) ? gde : XNt; return r && Y0(t, e, r) && (e = void 0), n(t, fo(e)); } -var GNt = ow(function(t, e) { +var HNt = ow(function(t, e) { if (t == null) return []; var r = e.length; - return r > 1 && Y0(t, e[0], e[1]) ? e = [] : r > 2 && Y0(e[0], e[1], e[2]) && (e = [e[0]]), $Nt(t, V1(e, 1), []); + return r > 1 && Y0(t, e[0], e[1]) ? e = [] : r > 2 && Y0(e[0], e[1], e[2]) && (e = [e[0]]), FNt(t, V1(e, 1), []); }); -const Ow = GNt; -var XNt = 1 / 0, HNt = Yg && 1 / uI(new Yg([, -0]))[1] == XNt ? function(t) { +const Ow = HNt; +var ZNt = 1 / 0, jNt = Yg && 1 / uI(new Yg([, -0]))[1] == ZNt ? function(t) { return new Yg(t); } : Mi; -const ZNt = HNt; -var jNt = 200; +const KNt = jNt; +var JNt = 200; function mI(t, e, r) { - var n = -1, i = ide, s = t.length, a = !0, o = [], l = o; + var n = -1, i = sde, s = t.length, a = !0, o = [], l = o; if (r) - a = !1, i = wde; - else if (s >= jNt) { - var u = e ? null : ZNt(t); + a = !1, i = Ode; + else if (s >= JNt) { + var u = e ? null : KNt(t); if (u) return uI(u); a = !1, i = cI, l = new Hm(); @@ -66048,32 +66084,32 @@ function mI(t, e, r) { } return o; } -var KNt = ow(function(t) { +var eIt = ow(function(t) { return mI(V1(t, 1, I3, !0)); }); -const JNt = KNt; +const tIt = eIt; function vI(t) { return t && t.length ? mI(t) : []; } -function eIt(t, e) { +function rIt(t, e) { return t && t.length ? mI(t, fo(e)) : []; } -var tIt = 0; +var nIt = 0; function yI(t) { - var e = ++tIt; - return sde(t) + e; + var e = ++nIt; + return ade(t) + e; } -function rIt(t, e, r) { +function iIt(t, e, r) { for (var n = -1, i = t.length, s = e.length, a = {}; ++n < i; ) { var o = n < s ? e[n] : void 0; r(a, t[n], o); } return a; } -function nIt(t, e) { - return rIt(t || [], e || [], aw); +function sIt(t, e) { + return iIt(t || [], e || [], aw); } -var iIt = "\0", Id = "\0", JW = ""; +var aIt = "\0", Id = "\0", JW = ""; class Ji { constructor(e = {}) { this._isDirected = _t(e, "directed") ? e.directed : !0, this._isMultigraph = _t(e, "multigraph") ? e.multigraph : !1, this._isCompound = _t(e, "compound") ? e.compound : !1, this._label = void 0, this._defaultNodeLabelFn = Sg(void 0), this._defaultEdgeLabelFn = Sg(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[Id] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {}; @@ -66190,7 +66226,7 @@ class Ji { neighbors(e) { var r = this.predecessors(e); if (r) - return JNt(r, this.successors(e)); + return tIt(r, this.successors(e)); } isLeaf(e) { var r; @@ -66242,7 +66278,7 @@ class Ji { if (!tn(n) && !this._isMultigraph) throw new Error("Cannot set a named edge when isMultigraph = false"); this.setNode(e), this.setNode(r), this._edgeLabels[o] = s ? i : this._defaultEdgeLabelFn(e, r, n); - var l = sIt(this._isDirected, e, r, n); + var l = oIt(this._isDirected, e, r, n); return e = l.v, r = l.w, Object.freeze(l), this._edgeObjs[o] = l, eG(this._preds[r], e), eG(this._sucs[e], r), this._in[r][o] = l, this._out[e][o] = l, this._edgeCount++, this; } edge(e, r, n) { @@ -66295,9 +66331,9 @@ function gy(t, e, r, n) { var a = i; i = s, s = a; } - return i + JW + s + JW + (tn(n) ? iIt : n); + return i + JW + s + JW + (tn(n) ? aIt : n); } -function sIt(t, e, r, n) { +function oIt(t, e, r, n) { var i = "" + e, s = "" + r; if (!t && i > s) { var a = i; @@ -66309,7 +66345,7 @@ function sIt(t, e, r, n) { function DA(t, e) { return gy(t, e.v, e.w, e.name); } -class aIt { +class lIt { constructor() { var e = {}; e._next = e._prev = e, this._sentinel = e; @@ -66325,29 +66361,29 @@ class aIt { } toString() { for (var e = [], r = this._sentinel, n = r._prev; n !== r; ) - e.push(JSON.stringify(n, oIt)), n = n._prev; + e.push(JSON.stringify(n, cIt)), n = n._prev; return "[" + e.join(", ") + "]"; } } function rG(t) { t._prev._next = t._next, t._next._prev = t._prev, delete t._next, delete t._prev; } -function oIt(t, e) { +function cIt(t, e) { if (t !== "_next" && t !== "_prev") return e; } -var lIt = Sg(1); -function cIt(t, e) { +var uIt = Sg(1); +function hIt(t, e) { if (t.nodeCount() <= 1) return []; - var r = hIt(t, e || lIt), n = uIt(r.graph, r.buckets, r.zeroIdx); + var r = dIt(t, e || uIt), n = fIt(r.graph, r.buckets, r.zeroIdx); return ss( St(n, function(i) { return t.outEdges(i.v, i.w); }) ); } -function uIt(t, e, r) { +function fIt(t, e, r) { for (var n = [], i = e[e.length - 1], s = e[0], a; t.nodeCount(); ) { for (; a = s.dequeue(); ) PA(t, e, r, a); @@ -66373,7 +66409,7 @@ function PA(t, e, r, n, i) { u.in -= o, VL(e, r, u); }), t.removeNode(n.v), s; } -function hIt(t, e) { +function dIt(t, e) { var r = new Ji(), n = 0, i = 0; Ve(t.nodes(), function(o) { r.setNode(o, { v: o, in: 0, out: 0 }); @@ -66382,7 +66418,7 @@ function hIt(t, e) { r.setEdge(o.v, o.w, h), i = Math.max(i, r.node(o.v).out += u), n = Math.max(n, r.node(o.w).in += u); }); var s = jm(i + n + 3).map(function() { - return new aIt(); + return new lIt(); }), a = n + 1; return Ve(r.nodes(), function(o) { VL(s, a, r.node(o)); @@ -66391,8 +66427,8 @@ function hIt(t, e) { function VL(t, e, r) { r.out ? r.in ? t[r.out - r.in + e].enqueue(r) : t[t.length - 1].enqueue(r) : t[0].enqueue(r); } -function fIt(t) { - var e = t.graph().acyclicer === "greedy" ? cIt(t, r(t)) : dIt(t); +function pIt(t) { + var e = t.graph().acyclicer === "greedy" ? hIt(t, r(t)) : gIt(t); Ve(e, function(n) { var i = t.edge(n); t.removeEdge(n), i.forwardName = n.name, i.reversed = !0, t.setEdge(n.w, n.v, i, yI("rev")); @@ -66403,7 +66439,7 @@ function fIt(t) { }; } } -function dIt(t) { +function gIt(t) { var e = [], r = {}, n = {}; function i(s) { _t(n, s) || (n[s] = !0, r[s] = !0, Ve(t.outEdges(s), function(a) { @@ -66412,7 +66448,7 @@ function dIt(t) { } return Ve(t.nodes(), i), e; } -function pIt(t) { +function mIt(t) { Ve(t.edges(), function(e) { var r = t.edge(e); if (r.reversed) { @@ -66429,7 +66465,7 @@ function q1(t, e, r, n) { while (t.hasNode(i)); return r.dummy = e, t.setNode(i, r), i; } -function gIt(t) { +function vIt(t) { var e = new Ji().setGraph(t.graph()); return Ve(t.nodes(), function(r) { e.setNode(r, t.node(r)); @@ -66441,7 +66477,7 @@ function gIt(t) { }); }), e; } -function Ede(t) { +function _de(t) { var e = new Ji({ multigraph: t.isMultigraph() }).setGraph(t.graph()); return Ve(t.nodes(), function(r) { t.children(r).length || e.setNode(r, t.node(r)); @@ -66457,7 +66493,7 @@ function nG(t, e) { return Math.abs(s) * a > Math.abs(i) * o ? (s < 0 && (o = -o), l = o * i / s, u = o) : (i < 0 && (a = -a), l = a, u = a * s / i), { x: r + l, y: n + u }; } function oE(t) { - var e = St(jm(_de(t) + 1), function() { + var e = St(jm(Ade(t) + 1), function() { return []; }); return Ve(t.nodes(), function(r) { @@ -66465,7 +66501,7 @@ function oE(t) { tn(i) || (e[i][n.order] = r); }), e; } -function mIt(t) { +function yIt(t) { var e = Zm( St(t.nodes(), function(r) { return t.node(r).rank; @@ -66476,7 +66512,7 @@ function mIt(t) { _t(n, "rank") && (n.rank -= e); }); } -function vIt(t) { +function bIt(t) { var e = Zm( St(t.nodes(), function(s) { return t.node(s).rank; @@ -66500,7 +66536,7 @@ function iG(t, e, r, n) { }; return arguments.length >= 4 && (i.rank = r, i.order = n), q1(t, "border", i, e); } -function _de(t) { +function Ade(t) { return K0( St(t.nodes(), function(e) { var r = t.node(e).rank; @@ -66509,13 +66545,13 @@ function _de(t) { }) ); } -function yIt(t, e) { +function xIt(t, e) { var r = { lhs: [], rhs: [] }; return Ve(t, function(n) { e(n) ? r.lhs.push(n) : r.rhs.push(n); }), r; } -function bIt(t, e) { +function wIt(t, e) { var r = ZW(); try { return e(); @@ -66523,10 +66559,10 @@ function bIt(t, e) { console.log(t + " time: " + (ZW() - r) + "ms"); } } -function xIt(t, e) { +function OIt(t, e) { return e(); } -function wIt(t) { +function kIt(t) { function e(r) { var n = t.children(r), i = t.node(r); if (n.length && Ve(n, e), _t(i, "minRank")) { @@ -66541,15 +66577,15 @@ function sG(t, e, r, n, i, s) { var a = { width: 0, height: 0, rank: s, borderType: e }, o = i[e][s - 1], l = q1(t, "border", a, r); i[e][s] = l, t.setParent(l, n), o && t.setEdge(o, l, { weight: 1 }); } -function OIt(t) { +function SIt(t) { var e = t.graph().rankdir.toLowerCase(); - (e === "lr" || e === "rl") && Ade(t); + (e === "lr" || e === "rl") && Lde(t); } -function kIt(t) { +function TIt(t) { var e = t.graph().rankdir.toLowerCase(); - (e === "bt" || e === "rl") && SIt(t), (e === "lr" || e === "rl") && (TIt(t), Ade(t)); + (e === "bt" || e === "rl") && CIt(t), (e === "lr" || e === "rl") && (EIt(t), Lde(t)); } -function Ade(t) { +function Lde(t) { Ve(t.nodes(), function(e) { aG(t.node(e)); }), Ve(t.edges(), function(e) { @@ -66560,7 +66596,7 @@ function aG(t) { var e = t.width; t.width = t.height, t.height = e; } -function SIt(t) { +function CIt(t) { Ve(t.nodes(), function(e) { NA(t.node(e)); }), Ve(t.edges(), function(e) { @@ -66571,7 +66607,7 @@ function SIt(t) { function NA(t) { t.y = -t.y; } -function TIt(t) { +function EIt(t) { Ve(t.nodes(), function(e) { IA(t.node(e)); }), Ve(t.edges(), function(e) { @@ -66583,12 +66619,12 @@ function IA(t) { var e = t.x; t.x = t.y, t.y = e; } -function CIt(t) { +function _It(t) { t.graph().dummyChains = [], Ve(t.edges(), function(e) { - EIt(t, e); + AIt(t, e); }); } -function EIt(t, e) { +function AIt(t, e) { var r = e.v, n = t.node(r).rank, i = e.w, s = t.node(i).rank, a = e.name, o = t.edge(e), l = o.labelRank; if (s !== n + 1) { t.removeEdge(e); @@ -66604,7 +66640,7 @@ function EIt(t, e) { t.setEdge(r, i, { weight: o.weight }, a); } } -function _It(t) { +function LIt(t) { Ve(t.graph().dummyChains, function(e) { var r = t.node(e), n = r.edgeLabel, i; for (t.setEdge(r.edgeObj, n); r.dummy; ) @@ -66630,14 +66666,14 @@ function bI(t) { function yb(t, e) { return t.node(e.w).rank - t.node(e.v).rank - t.edge(e).minlen; } -function Lde(t) { +function Rde(t) { var e = new Ji({ directed: !1 }), r = t.nodes()[0], n = t.nodeCount(); e.setNode(r, {}); - for (var i, s; AIt(e, t) < n; ) - i = LIt(e, t), s = e.hasNode(i.v) ? yb(t, i) : -yb(t, i), RIt(e, t, s); + for (var i, s; RIt(e, t) < n; ) + i = MIt(e, t), s = e.hasNode(i.v) ? yb(t, i) : -yb(t, i), DIt(e, t, s); return e; } -function AIt(t, e) { +function RIt(t, e) { function r(n) { Ve(e.nodeEdges(n), function(i) { var s = i.v, a = n === s ? i.w : s; @@ -66646,70 +66682,70 @@ function AIt(t, e) { } return Ve(t.nodes(), r), t.nodeCount(); } -function LIt(t, e) { +function MIt(t, e) { return gI(e.edges(), function(r) { if (t.hasNode(r.v) !== t.hasNode(r.w)) return yb(e, r); }); } -function RIt(t, e, r) { +function DIt(t, e, r) { Ve(t.nodes(), function(n) { e.node(n).rank += r; }); } -function MIt() { +function PIt() { } -MIt.prototype = new Error(); -function Rde(t, e, r) { +PIt.prototype = new Error(); +function Mde(t, e, r) { Pr(e) || (e = [e]); var n = (t.isDirected() ? t.successors : t.neighbors).bind(t), i = [], s = {}; return Ve(e, function(a) { if (!t.hasNode(a)) throw new Error("Graph does not have node: " + a); - Mde(t, a, r === "post", s, n, i); + Dde(t, a, r === "post", s, n, i); }), i; } -function Mde(t, e, r, n, i, s) { +function Dde(t, e, r, n, i, s) { _t(n, e) || (n[e] = !0, r || s.push(e), Ve(i(e), function(a) { - Mde(t, a, r, n, i, s); + Dde(t, a, r, n, i, s); }), r && s.push(e)); } -function DIt(t, e) { - return Rde(t, e, "post"); +function NIt(t, e) { + return Mde(t, e, "post"); } -function PIt(t, e) { - return Rde(t, e, "pre"); +function IIt(t, e) { + return Mde(t, e, "pre"); } Pp.initLowLimValues = wI; Pp.initCutValues = xI; -Pp.calcCutValue = Dde; -Pp.leaveEdge = Nde; -Pp.enterEdge = Ide; -Pp.exchangeEdges = $de; +Pp.calcCutValue = Pde; +Pp.leaveEdge = Ide; +Pp.enterEdge = $de; +Pp.exchangeEdges = Bde; function Pp(t) { - t = gIt(t), bI(t); - var e = Lde(t); + t = vIt(t), bI(t); + var e = Rde(t); wI(e), xI(e, t); - for (var r, n; r = Nde(e); ) - n = Ide(e, t, r), $de(e, t, r, n); + for (var r, n; r = Ide(e); ) + n = $de(e, t, r), Bde(e, t, r, n); } function xI(t, e) { - var r = DIt(t, t.nodes()); + var r = NIt(t, t.nodes()); r = r.slice(0, r.length - 1), Ve(r, function(n) { - NIt(t, e, n); + $It(t, e, n); }); } -function NIt(t, e, r) { +function $It(t, e, r) { var n = t.node(r), i = n.parent; - t.edge(r, i).cutvalue = Dde(t, e, r); + t.edge(r, i).cutvalue = Pde(t, e, r); } -function Dde(t, e, r) { +function Pde(t, e, r) { var n = t.node(r), i = n.parent, s = !0, a = e.edge(r, i), o = 0; return a || (s = !1, a = e.edge(i, r)), o = a.weight, Ve(e.nodeEdges(r), function(l) { var u = l.v === r, h = u ? l.w : l.v; if (h !== i) { var f = u === s, d = e.edge(l).weight; - if (o += f ? d : -d, $It(t, r, h)) { + if (o += f ? d : -d, FIt(t, r, h)) { var p = t.edge(r, h).cutvalue; o += f ? -p : p; } @@ -66717,20 +66753,20 @@ function Dde(t, e, r) { }), o; } function wI(t, e) { - arguments.length < 2 && (e = t.nodes()[0]), Pde(t, {}, 1, e); + arguments.length < 2 && (e = t.nodes()[0]), Nde(t, {}, 1, e); } -function Pde(t, e, r, n, i) { +function Nde(t, e, r, n, i) { var s = r, a = t.node(n); return e[n] = !0, Ve(t.neighbors(n), function(o) { - _t(e, o) || (r = Pde(t, e, r, o, n)); + _t(e, o) || (r = Nde(t, e, r, o, n)); }), a.low = s, a.lim = r++, i ? a.parent = i : delete a.parent, r; } -function Nde(t) { +function Ide(t) { return Oh(t.edges(), function(e) { return t.edge(e).cutvalue < 0; }); } -function Ide(t, e, r) { +function $de(t, e, r) { var n = r.v, i = r.w; e.hasEdge(n, i) || (n = r.w, i = r.v); var s = t.node(n), a = t.node(i), o = s, l = !1; @@ -66742,58 +66778,58 @@ function Ide(t, e, r) { return yb(e, h); }); } -function $de(t, e, r, n) { +function Bde(t, e, r, n) { var i = r.v, s = r.w; - t.removeEdge(i, s), t.setEdge(n.v, n.w, {}), wI(t), xI(t, e), IIt(t, e); + t.removeEdge(i, s), t.setEdge(n.v, n.w, {}), wI(t), xI(t, e), BIt(t, e); } -function IIt(t, e) { +function BIt(t, e) { var r = Oh(t.nodes(), function(i) { return !e.node(i).parent; - }), n = PIt(t, r); + }), n = IIt(t, r); n = n.slice(1), Ve(n, function(i) { var s = t.node(i).parent, a = e.edge(i, s), o = !1; a || (a = e.edge(s, i), o = !0), e.node(i).rank = e.node(s).rank + (o ? a.minlen : -a.minlen); }); } -function $It(t, e, r) { +function FIt(t, e, r) { return t.hasEdge(e, r); } function oG(t, e, r) { return r.low <= e.lim && e.lim <= r.lim; } -function BIt(t) { +function zIt(t) { switch (t.graph().ranker) { case "network-simplex": lG(t); break; case "tight-tree": - zIt(t); + UIt(t); break; case "longest-path": - FIt(t); + QIt(t); break; default: lG(t); } } -var FIt = bI; -function zIt(t) { - bI(t), Lde(t); +var QIt = bI; +function UIt(t) { + bI(t), Rde(t); } function lG(t) { Pp(t); } -function QIt(t) { - var e = q1(t, "root", {}, "_root"), r = UIt(t), n = K0(un(r)) - 1, i = 2 * n + 1; +function VIt(t) { + var e = q1(t, "root", {}, "_root"), r = qIt(t), n = K0(un(r)) - 1, i = 2 * n + 1; t.graph().nestingRoot = e, Ve(t.edges(), function(a) { t.edge(a).minlen *= i; }); - var s = VIt(t) + 1; + var s = YIt(t) + 1; Ve(t.children(), function(a) { - Bde(t, e, i, s, n, r, a); + Fde(t, e, i, s, n, r, a); }), t.graph().nodeRankFactor = i; } -function Bde(t, e, r, n, i, s, a) { +function Fde(t, e, r, n, i, s, a) { var o = t.children(a); if (!o.length) { a !== e && t.setEdge(e, a, { weight: 0, minlen: r }); @@ -66801,7 +66837,7 @@ function Bde(t, e, r, n, i, s, a) { } var l = iG(t, "_bt"), u = iG(t, "_bb"), h = t.node(a); t.setParent(l, a), h.borderTop = l, t.setParent(u, a), h.borderBottom = u, Ve(o, function(f) { - Bde(t, e, r, n, i, s, f); + Fde(t, e, r, n, i, s, f); var d = t.node(f), p = d.borderTop ? d.borderTop : f, g = d.borderBottom ? d.borderBottom : f, m = d.borderTop ? n : 2 * n, v = p !== g ? 1 : i - s[a] + 1; t.setEdge(l, p, { weight: m, @@ -66814,7 +66850,7 @@ function Bde(t, e, r, n, i, s, a) { }); }), t.parent(a) || t.setEdge(e, l, { weight: 0, minlen: i + s[a] }); } -function UIt(t) { +function qIt(t) { var e = {}; function r(n, i) { var s = t.children(n); @@ -66826,7 +66862,7 @@ function UIt(t) { r(n, 1); }), e; } -function VIt(t) { +function YIt(t) { return Li( t.edges(), function(e, r) { @@ -66835,14 +66871,14 @@ function VIt(t) { 0 ); } -function qIt(t) { +function WIt(t) { var e = t.graph(); t.removeNode(e.nestingRoot), delete e.nestingRoot, Ve(t.edges(), function(r) { var n = t.edge(r); n.nestingEdge && t.removeEdge(r); }); } -function YIt(t, e, r) { +function GIt(t, e, r) { var n = {}, i; Ve(r, function(s) { for (var a = t.parent(s), o, l; a; ) { @@ -66854,8 +66890,8 @@ function YIt(t, e, r) { } }); } -function WIt(t, e, r) { - var n = GIt(t), i = new Ji({ compound: !0 }).setGraph({ root: n }).setDefaultNodeLabel(function(s) { +function XIt(t, e, r) { + var n = HIt(t), i = new Ji({ compound: !0 }).setGraph({ root: n }).setDefaultNodeLabel(function(s) { return t.node(s); }); return Ve(t.nodes(), function(s) { @@ -66869,18 +66905,18 @@ function WIt(t, e, r) { })); }), i; } -function GIt(t) { +function HIt(t) { for (var e; t.hasNode(e = yI("_root")); ) ; return e; } -function XIt(t, e) { +function ZIt(t, e) { for (var r = 0, n = 1; n < e.length; ++n) - r += HIt(t, e[n - 1], e[n]); + r += jIt(t, e[n - 1], e[n]); return r; } -function HIt(t, e, r) { - for (var n = nIt( +function jIt(t, e, r) { + for (var n = sIt( r, St(r, function(u, h) { return h; @@ -66911,7 +66947,7 @@ function HIt(t, e, r) { }) ), l; } -function ZIt(t) { +function KIt(t) { var e = {}, r = ni(t.nodes(), function(o) { return !t.children(o).length; }), n = K0( @@ -66933,7 +66969,7 @@ function ZIt(t) { }); return Ve(a, s), i; } -function jIt(t, e) { +function JIt(t, e) { return St(e, function(r) { var n = t.inEdges(r); if (n.length) { @@ -66957,7 +66993,7 @@ function jIt(t, e) { return { v: r }; }); } -function KIt(t, e) { +function e$t(t, e) { var r = {}; Ve(t, function(i, s) { var a = r[i.v] = { @@ -66975,13 +67011,13 @@ function KIt(t, e) { var n = ni(r, function(i) { return !i.indegree; }); - return JIt(n); + return t$t(n); } -function JIt(t) { +function t$t(t) { var e = []; function r(s) { return function(a) { - a.merged || (tn(a.barycenter) || tn(s.barycenter) || a.barycenter >= s.barycenter) && e$t(s, a); + a.merged || (tn(a.barycenter) || tn(s.barycenter) || a.barycenter >= s.barycenter) && r$t(s, a); }; } function n(s) { @@ -67002,17 +67038,17 @@ function JIt(t) { } ); } -function e$t(t, e) { +function r$t(t, e) { var r = 0, n = 0; t.weight && (r += t.barycenter * t.weight, n += t.weight), e.weight && (r += e.barycenter * e.weight, n += e.weight), t.vs = e.vs.concat(t.vs), t.barycenter = r / n, t.weight = n, t.i = Math.min(e.i, t.i), e.merged = !0; } -function t$t(t, e) { - var r = yIt(t, function(h) { +function n$t(t, e) { + var r = xIt(t, function(h) { return _t(h, "barycenter"); }), n = r.lhs, i = Ow(r.rhs, function(h) { return -h.i; }), s = [], a = 0, o = 0, l = 0; - n.sort(r$t(!!e)), l = cG(s, i, l), Ve(n, function(h) { + n.sort(i$t(!!e)), l = cG(s, i, l), Ve(n, function(h) { l += h.vs.length, s.push(h.vs), a += h.barycenter * h.weight, o += h.weight, l = cG(s, i, l); }); var u = { vs: ss(s) }; @@ -67023,33 +67059,33 @@ function cG(t, e, r) { e.pop(), t.push(n.vs), r++; return r; } -function r$t(t) { +function i$t(t) { return function(e, r) { return e.barycenter < r.barycenter ? -1 : e.barycenter > r.barycenter ? 1 : t ? r.i - e.i : e.i - r.i; }; } -function Fde(t, e, r, n) { +function zde(t, e, r, n) { var i = t.children(e), s = t.node(e), a = s ? s.borderLeft : void 0, o = s ? s.borderRight : void 0, l = {}; a && (i = ni(i, function(g) { return g !== a && g !== o; })); - var u = jIt(t, i); + var u = JIt(t, i); Ve(u, function(g) { if (t.children(g.v).length) { - var m = Fde(t, g.v, r, n); - l[g.v] = m, _t(m, "barycenter") && i$t(g, m); + var m = zde(t, g.v, r, n); + l[g.v] = m, _t(m, "barycenter") && a$t(g, m); } }); - var h = KIt(u, r); - n$t(h, l); - var f = t$t(h, n); + var h = e$t(u, r); + s$t(h, l); + var f = n$t(h, n); if (a && (f.vs = ss([a, f.vs, o]), t.predecessors(a).length)) { var d = t.node(t.predecessors(a)[0]), p = t.node(t.predecessors(o)[0]); _t(f, "barycenter") || (f.barycenter = 0, f.weight = 0), f.barycenter = (f.barycenter * f.weight + d.order + p.order) / (f.weight + 2), f.weight += 2; } return f; } -function n$t(t, e) { +function s$t(t, e) { Ve(t, function(r) { r.vs = ss( r.vs.map(function(n) { @@ -67058,31 +67094,31 @@ function n$t(t, e) { ); }); } -function i$t(t, e) { +function a$t(t, e) { tn(t.barycenter) ? (t.barycenter = e.barycenter, t.weight = e.weight) : (t.barycenter = (t.barycenter * t.weight + e.barycenter * e.weight) / (t.weight + e.weight), t.weight += e.weight); } -function s$t(t) { - var e = _de(t), r = uG(t, jm(1, e + 1), "inEdges"), n = uG(t, jm(e - 1, -1, -1), "outEdges"), i = ZIt(t); +function o$t(t) { + var e = Ade(t), r = uG(t, jm(1, e + 1), "inEdges"), n = uG(t, jm(e - 1, -1, -1), "outEdges"), i = KIt(t); hG(t, i); for (var s = Number.POSITIVE_INFINITY, a, o = 0, l = 0; l < 4; ++o, ++l) { - a$t(o % 2 ? r : n, o % 4 >= 2), i = oE(t); - var u = XIt(t, i); - u < s && (l = 0, a = hPt(i), s = u); + l$t(o % 2 ? r : n, o % 4 >= 2), i = oE(t); + var u = ZIt(t, i); + u < s && (l = 0, a = dPt(i), s = u); } hG(t, a); } function uG(t, e, r) { return St(e, function(n) { - return WIt(t, n, r); + return XIt(t, n, r); }); } -function a$t(t, e) { +function l$t(t, e) { var r = new Ji(); Ve(t, function(n) { - var i = n.graph().root, s = Fde(n, i, r, e); + var i = n.graph().root, s = zde(n, i, r, e); Ve(s.vs, function(a, o) { n.node(a).order = o; - }), YIt(n, r, s.vs); + }), GIt(n, r, s.vs); }); } function hG(t, e) { @@ -67092,10 +67128,10 @@ function hG(t, e) { }); }); } -function o$t(t) { - var e = c$t(t); +function c$t(t) { + var e = h$t(t); Ve(t.graph().dummyChains, function(r) { - for (var n = t.node(r), i = n.edgeObj, s = l$t(t, e, i.v, i.w), a = s.path, o = s.lca, l = 0, u = a[l], h = !0; r !== i.w; ) { + for (var n = t.node(r), i = n.edgeObj, s = u$t(t, e, i.v, i.w), a = s.path, o = s.lca, l = 0, u = a[l], h = !0; r !== i.w; ) { if (n = t.node(r), h) { for (; (u = a[l]) !== o && t.node(u).maxRank < n.rank; ) l++; @@ -67110,7 +67146,7 @@ function o$t(t) { } }); } -function l$t(t, e, r, n) { +function u$t(t, e, r, n) { var i = [], s = [], a = Math.min(e[r].low, e[n].low), o = Math.max(e[r].lim, e[n].lim), l, u; l = r; do @@ -67120,7 +67156,7 @@ function l$t(t, e, r, n) { s.push(l); return { path: i.concat(s.reverse()), lca: u }; } -function c$t(t) { +function h$t(t) { var e = {}, r = 0; function n(i) { var s = r; @@ -67128,30 +67164,30 @@ function c$t(t) { } return Ve(t.children(), n), e; } -function u$t(t, e) { +function f$t(t, e) { var r = {}; function n(i, s) { var a = 0, o = 0, l = i.length, u = uu(s); return Ve(s, function(h, f) { - var d = f$t(t, h), p = d ? t.node(d).order : l; + var d = p$t(t, h), p = d ? t.node(d).order : l; (d || h === u) && (Ve(s.slice(o, f + 1), function(g) { Ve(t.predecessors(g), function(m) { var v = t.node(m), y = v.order; - (y < a || p < y) && !(v.dummy && t.node(g).dummy) && zde(r, m, g); + (y < a || p < y) && !(v.dummy && t.node(g).dummy) && Qde(r, m, g); }); }), o = f + 1, a = p); }), s; } return Li(e, n), r; } -function h$t(t, e) { +function d$t(t, e) { var r = {}; function n(s, a, o, l, u) { var h; Ve(jm(a, o), function(f) { h = s[f], t.node(h).dummy && Ve(t.predecessors(h), function(d) { var p = t.node(d); - p.dummy && (p.order < l || p.order > u) && zde(r, d, h); + p.dummy && (p.order < l || p.order > u) && Qde(r, d, h); }); }); } @@ -67167,13 +67203,13 @@ function h$t(t, e) { } return Li(e, i), r; } -function f$t(t, e) { +function p$t(t, e) { if (t.node(e).dummy) return Oh(t.predecessors(e), function(r) { return t.node(r).dummy; }); } -function zde(t, e, r) { +function Qde(t, e, r) { if (e > r) { var n = e; e = r, r = n; @@ -67181,14 +67217,14 @@ function zde(t, e, r) { var i = t[e]; i || (t[e] = i = {}), i[r] = !0; } -function d$t(t, e, r) { +function g$t(t, e, r) { if (e > r) { var n = e; e = r, r = n; } return _t(t[e], r); } -function p$t(t, e, r, n) { +function m$t(t, e, r, n) { var i = {}, s = {}, a = {}; return Ve(e, function(o) { Ve(o, function(l, u) { @@ -67204,14 +67240,14 @@ function p$t(t, e, r, n) { }); for (var f = (h.length - 1) / 2, d = Math.floor(f), p = Math.ceil(f); d <= p; ++d) { var g = h[d]; - s[u] === u && l < a[g] && !d$t(r, u, g) && (s[g] = u, s[u] = i[u] = i[g], l = a[g]); + s[u] === u && l < a[g] && !g$t(r, u, g) && (s[g] = u, s[u] = i[u] = i[g], l = a[g]); } } }); }), { root: i, align: s }; } -function g$t(t, e, r, n, i) { - var s = {}, a = m$t(t, e, r, i), o = i ? "borderLeft" : "borderRight"; +function v$t(t, e, r, n, i) { + var s = {}, a = y$t(t, e, r, i), o = i ? "borderLeft" : "borderRight"; function l(f, d) { for (var p = a.nodes(), g = p.pop(), m = {}; g; ) m[g] ? f(g) : (m[g] = !0, p.push(g), p = p.concat(d(g))), g = p.pop(); @@ -67231,8 +67267,8 @@ function g$t(t, e, r, n, i) { s[f] = s[r[f]]; }), s; } -function m$t(t, e, r, n) { - var i = new Ji(), s = t.graph(), a = w$t(s.nodesep, s.edgesep, n); +function y$t(t, e, r, n) { + var i = new Ji(), s = t.graph(), a = k$t(s.nodesep, s.edgesep, n); return Ve(e, function(o) { var l; Ve(o, function(u) { @@ -67245,16 +67281,16 @@ function m$t(t, e, r, n) { }); }), i; } -function v$t(t, e) { +function b$t(t, e) { return gI(un(e), function(r) { var n = Number.NEGATIVE_INFINITY, i = Number.POSITIVE_INFINITY; - return pNt(r, function(s, a) { - var o = O$t(t, a) / 2; + return mNt(r, function(s, a) { + var o = S$t(t, a) / 2; n = Math.max(s + o, n), i = Math.min(s - o, i); }), n - i; }); } -function y$t(t, e) { +function x$t(t, e) { var r = un(e), n = Zm(r), i = K0(r); Ve(["u", "d"], function(s) { Ve(["l", "r"], function(a) { @@ -67268,7 +67304,7 @@ function y$t(t, e) { }); }); } -function b$t(t, e) { +function w$t(t, e) { return sE(t.ul, function(r, n) { if (e) return t[e.toLowerCase()][n]; @@ -67276,23 +67312,23 @@ function b$t(t, e) { return (i[1] + i[2]) / 2; }); } -function x$t(t) { - var e = oE(t), r = $3(u$t(t, e), h$t(t, e)), n = {}, i; +function O$t(t) { + var e = oE(t), r = $3(f$t(t, e), d$t(t, e)), n = {}, i; Ve(["u", "d"], function(a) { i = a === "u" ? e : un(e).reverse(), Ve(["l", "r"], function(o) { o === "r" && (i = St(i, function(f) { return un(f).reverse(); })); - var l = (a === "u" ? t.predecessors : t.successors).bind(t), u = p$t(t, i, r, l), h = g$t(t, i, u.root, u.align, o === "r"); + var l = (a === "u" ? t.predecessors : t.successors).bind(t), u = m$t(t, i, r, l), h = v$t(t, i, u.root, u.align, o === "r"); o === "r" && (h = sE(h, function(f) { return -f; })), n[a + o] = h; }); }); - var s = v$t(t, n); - return y$t(n, s), b$t(n, t.graph().align); + var s = b$t(t, n); + return x$t(n, s), w$t(n, t.graph().align); } -function w$t(t, e, r) { +function k$t(t, e, r) { return function(n, i, s) { var a = n.node(i), o = n.node(s), l = 0, u; if (l += a.width / 2, _t(a, "labelpos")) @@ -67316,15 +67352,15 @@ function w$t(t, e, r) { return u && (l += r ? u : -u), u = 0, l; }; } -function O$t(t, e) { +function S$t(t, e) { return t.node(e).width; } -function k$t(t) { - t = Ede(t), S$t(t), gNt(x$t(t), function(e, r) { +function T$t(t) { + t = _de(t), C$t(t), vNt(O$t(t), function(e, r) { t.node(r).x = e; }); } -function S$t(t) { +function C$t(t) { var e = oE(t), r = t.graph().ranksep, n = 0; Ve(e, function(i) { var s = K0( @@ -67338,76 +67374,76 @@ function S$t(t) { }); } function Y1(t, e) { - var r = e && e.debugTiming ? bIt : xIt; + var r = e && e.debugTiming ? wIt : OIt; r("layout", function() { var n = r(" buildLayoutGraph", function() { - return N$t(t); + return $$t(t); }); r(" runLayout", function() { - T$t(n, r); + E$t(n, r); }), r(" updateInputGraph", function() { - C$t(t, n); + _$t(t, n); }); }); } -function T$t(t, e) { +function E$t(t, e) { e(" makeSpaceForEdgeLabels", function() { - I$t(t); + B$t(t); }), e(" removeSelfEdges", function() { - Y$t(t); + G$t(t); }), e(" acyclic", function() { - fIt(t); + pIt(t); }), e(" nestingGraph.run", function() { - QIt(t); + VIt(t); }), e(" rank", function() { - BIt(Ede(t)); + zIt(_de(t)); }), e(" injectEdgeLabelProxies", function() { - $$t(t); + F$t(t); }), e(" removeEmptyRanks", function() { - vIt(t); + bIt(t); }), e(" nestingGraph.cleanup", function() { - qIt(t); + WIt(t); }), e(" normalizeRanks", function() { - mIt(t); + yIt(t); }), e(" assignRankMinMax", function() { - B$t(t); + z$t(t); }), e(" removeEdgeLabelProxies", function() { - F$t(t); + Q$t(t); }), e(" normalize.run", function() { - CIt(t); + _It(t); }), e(" parentDummyChains", function() { - o$t(t); + c$t(t); }), e(" addBorderSegments", function() { - wIt(t); + kIt(t); }), e(" order", function() { - s$t(t); + o$t(t); }), e(" insertSelfEdges", function() { - W$t(t); + X$t(t); }), e(" adjustCoordinateSystem", function() { - OIt(t); + SIt(t); }), e(" position", function() { - k$t(t); + T$t(t); }), e(" positionSelfEdges", function() { - G$t(t); + H$t(t); }), e(" removeBorderNodes", function() { - q$t(t); + W$t(t); }), e(" normalize.undo", function() { - _It(t); + LIt(t); }), e(" fixupEdgeLabelCoords", function() { - U$t(t); + q$t(t); }), e(" undoCoordinateSystem", function() { - kIt(t); + TIt(t); }), e(" translateGraph", function() { - z$t(t); + U$t(t); }), e(" assignNodeIntersects", function() { - Q$t(t); - }), e(" reversePoints", function() { V$t(t); + }), e(" reversePoints", function() { + Y$t(t); }), e(" acyclic.undo", function() { - pIt(t); + mIt(t); }); } -function C$t(t, e) { +function _$t(t, e) { Ve(t.nodes(), function(r) { var n = t.node(r), i = e.node(r); n && (n.x = i.x, n.y = i.y, e.children(r).length && (n.width = i.width, n.height = i.height)); @@ -67416,37 +67452,37 @@ function C$t(t, e) { n.points = i.points, _t(i, "x") && (n.x = i.x, n.y = i.y); }), t.graph().width = e.graph().width, t.graph().height = e.graph().height; } -var E$t = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], _$t = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, A$t = ["acyclicer", "ranker", "rankdir", "align"], L$t = ["width", "height"], R$t = { width: 0, height: 0 }, M$t = ["minlen", "weight", "width", "height", "labeloffset"], D$t = { +var A$t = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], L$t = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, R$t = ["acyclicer", "ranker", "rankdir", "align"], M$t = ["width", "height"], D$t = { width: 0, height: 0 }, P$t = ["minlen", "weight", "width", "height", "labeloffset"], N$t = { minlen: 1, weight: 1, width: 0, height: 0, labeloffset: 10, labelpos: "r" -}, P$t = ["labelpos"]; -function N$t(t) { +}, I$t = ["labelpos"]; +function $$t(t) { var e = new Ji({ multigraph: !0, compound: !0 }), r = BA(t.graph()); return e.setGraph( - $3({}, _$t, $A(r, E$t), cS(r, A$t)) + $3({}, L$t, $A(r, A$t), cS(r, R$t)) ), Ve(t.nodes(), function(n) { var i = BA(t.node(n)); - e.setNode(n, nE($A(i, L$t), R$t)), e.setParent(n, t.parent(n)); + e.setNode(n, nE($A(i, M$t), D$t)), e.setParent(n, t.parent(n)); }), Ve(t.edges(), function(n) { var i = BA(t.edge(n)); e.setEdge( n, - $3({}, D$t, $A(i, M$t), cS(i, P$t)) + $3({}, N$t, $A(i, P$t), cS(i, I$t)) ); }), e; } -function I$t(t) { +function B$t(t) { var e = t.graph(); e.ranksep /= 2, Ve(t.edges(), function(r) { var n = t.edge(r); n.minlen *= 2, n.labelpos.toLowerCase() !== "c" && (e.rankdir === "TB" || e.rankdir === "BT" ? n.width += n.labeloffset : n.height += n.labeloffset); }); } -function $$t(t) { +function F$t(t) { Ve(t.edges(), function(e) { var r = t.edge(e); if (r.width && r.height) { @@ -67455,20 +67491,20 @@ function $$t(t) { } }); } -function B$t(t) { +function z$t(t) { var e = 0; Ve(t.nodes(), function(r) { var n = t.node(r); n.borderTop && (n.minRank = t.node(n.borderTop).rank, n.maxRank = t.node(n.borderBottom).rank, e = K0(e, n.maxRank)); }), t.graph().maxRank = e; } -function F$t(t) { +function Q$t(t) { Ve(t.nodes(), function(e) { var r = t.node(e); r.dummy === "edge-proxy" && (t.edge(r.e).labelRank = r.rank, t.removeNode(e)); }); } -function z$t(t) { +function U$t(t) { var e = Number.POSITIVE_INFINITY, r = 0, n = Number.POSITIVE_INFINITY, i = 0, s = t.graph(), a = s.marginx || 0, o = s.marginy || 0; function l(u) { var h = u.x, f = u.y, d = u.width, p = u.height; @@ -67489,13 +67525,13 @@ function z$t(t) { }), _t(h, "x") && (h.x -= e), _t(h, "y") && (h.y -= n); }), s.width = r - e + a, s.height = i - n + o; } -function Q$t(t) { +function V$t(t) { Ve(t.edges(), function(e) { var r = t.edge(e), n = t.node(e.v), i = t.node(e.w), s, a; r.points ? (s = r.points[0], a = r.points[r.points.length - 1]) : (r.points = [], s = i, a = n), r.points.unshift(nG(n, s)), r.points.push(nG(i, a)); }); } -function U$t(t) { +function q$t(t) { Ve(t.edges(), function(e) { var r = t.edge(e); if (_t(r, "x")) @@ -67509,13 +67545,13 @@ function U$t(t) { } }); } -function V$t(t) { +function Y$t(t) { Ve(t.edges(), function(e) { var r = t.edge(e); r.reversed && r.points.reverse(); }); } -function q$t(t) { +function W$t(t) { Ve(t.nodes(), function(e) { if (t.children(e).length) { var r = t.node(e), n = t.node(r.borderTop), i = t.node(r.borderBottom), s = t.node(uu(r.borderLeft)), a = t.node(uu(r.borderRight)); @@ -67525,7 +67561,7 @@ function q$t(t) { t.node(e).dummy === "border" && t.removeNode(e); }); } -function Y$t(t) { +function G$t(t) { Ve(t.edges(), function(e) { if (e.v === e.w) { var r = t.node(e.v); @@ -67533,7 +67569,7 @@ function Y$t(t) { } }); } -function W$t(t) { +function X$t(t) { var e = oE(t); Ve(e, function(r) { var n = 0; @@ -67557,7 +67593,7 @@ function W$t(t) { }); }); } -function G$t(t) { +function H$t(t) { Ve(t.nodes(), function(e) { var r = t.node(e); if (r.dummy === "selfedge") { @@ -67588,32 +67624,32 @@ function _i(t) { multigraph: t.isMultigraph(), compound: t.isCompound() }, - nodes: X$t(t), - edges: H$t(t) + nodes: Z$t(t), + edges: j$t(t) }; return tn(t.graph()) || (e.value = Hi(t.graph())), e; } -function X$t(t) { +function Z$t(t) { return St(t.nodes(), function(e) { var r = t.node(e), n = t.parent(e), i = { v: e }; return tn(r) || (i.value = r), tn(n) || (i.parent = n), i; }); } -function H$t(t) { +function j$t(t) { return St(t.edges(), function(e) { var r = t.edge(e), n = { v: e.v, w: e.w }; return tn(e.name) || (n.name = e.name), tn(r) || (n.value = r), n; }); } -var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Qde = /* @__PURE__ */ new Map(), Z$t = /* @__PURE__ */ x(() => { - v0.clear(), Qde.clear(), Mr.clear(); +var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Ude = /* @__PURE__ */ new Map(), K$t = /* @__PURE__ */ x(() => { + v0.clear(), Ude.clear(), Mr.clear(); }, "clear"), uS = /* @__PURE__ */ x((t, e) => { const r = v0.get(e) || []; return H.trace("In isDescendant", e, " ", t, " = ", r.includes(t)), r.includes(t); -}, "isDescendant"), j$t = /* @__PURE__ */ x((t, e) => { +}, "isDescendant"), J$t = /* @__PURE__ */ x((t, e) => { const r = v0.get(e) || []; return H.info("Descendants of ", e, " is ", r), H.info("Edge is ", t), t.v === e || t.w === e ? !1 : r ? r.includes(t.v) || uS(t.v, e) || uS(t.w, e) || r.includes(t.w) : (H.debug("Tilt, ", e, ",not in descendants"), !1); -}, "edgeInCluster"), Ude = /* @__PURE__ */ x((t, e, r, n) => { +}, "edgeInCluster"), Vde = /* @__PURE__ */ x((t, e, r, n) => { H.warn( "Copying children of ", t, @@ -67626,7 +67662,7 @@ var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Qde = /* @__ const i = e.children(t) || []; t !== n && i.push(t), H.warn("Copying (nodes) clusterId", t, "nodes", i), i.forEach((s) => { if (e.children(s).length > 0) - Ude(s, e, r, n); + Vde(s, e, r, n); else { const a = e.node(s); H.info("cp ", s, " to ", n, " with parent ", t), r.setNode(s, a), n !== e.parent(s) && (H.warn("Setting parent", s, e.parent(s)), r.setParent(s, e.parent(s))), t !== n && s !== t ? (H.debug("Setting parent", s, t), r.setParent(s, t)) : (H.info("In copy ", t, "root", n, "data", e.node(t), n), H.debug( @@ -67643,7 +67679,7 @@ var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Qde = /* @__ const u = e.edge(l.v, l.w, l.name); H.info("Edge data", u, n); try { - j$t(l, n) ? (H.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), H.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : H.info( + J$t(l, n) ? (H.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), H.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : H.info( "Skipping copy of edge ", l.v, "-->", @@ -67660,13 +67696,13 @@ var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Qde = /* @__ } H.debug("Removing node", s), e.removeNode(s); }); -}, "copy"), Vde = /* @__PURE__ */ x((t, e) => { +}, "copy"), qde = /* @__PURE__ */ x((t, e) => { const r = e.children(t); let n = [...r]; for (const i of r) - Qde.set(i, t), n = [...n, ...Vde(i, e)]; + Ude.set(i, t), n = [...n, ...qde(i, e)]; return n; -}, "extractDescendants"), K$t = /* @__PURE__ */ x((t, e, r) => { +}, "extractDescendants"), eBt = /* @__PURE__ */ x((t, e, r) => { const n = t.edges().filter((l) => l.v === e || l.w === e), i = t.edges().filter((l) => l.v === r || l.w === r), s = n.map((l) => ({ v: l.v === e ? r : l.v, w: l.w === e ? e : l.w })), a = i.map((l) => ({ v: l.v, w: l.w })); return s.filter((l) => a.some((u) => l.v === u.v && l.w === u.w)); }, "findCommonEdges"), bb = /* @__PURE__ */ x((t, e, r) => { @@ -67675,7 +67711,7 @@ var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Qde = /* @__ return t; let i; for (const s of n) { - const a = bb(s, e, r), o = K$t(e, r, a); + const a = bb(s, e, r), o = eBt(e, r, a); if (a) if (o.length > 0) i = a; @@ -67683,7 +67719,7 @@ var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Qde = /* @__ return a; } return i; -}, "findNonClusterChild"), fG = /* @__PURE__ */ x((t) => !Mr.has(t) || !Mr.get(t).externalConnections ? t : Mr.has(t) ? Mr.get(t).id : t, "getAnchorId"), J$t = /* @__PURE__ */ x((t, e) => { +}, "findNonClusterChild"), fG = /* @__PURE__ */ x((t) => !Mr.has(t) || !Mr.get(t).externalConnections ? t : Mr.has(t) ? Mr.get(t).id : t, "getAnchorId"), tBt = /* @__PURE__ */ x((t, e) => { if (!t || e > 10) { H.debug("Opting out, no graph "); return; @@ -67695,7 +67731,7 @@ var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Qde = /* @__ r, " Replacement id in edges: ", bb(r, t, r) - ), v0.set(r, Vde(r, t)), Mr.set(r, { id: bb(r, t, r), clusterData: t.node(r) })); + ), v0.set(r, qde(r, t)), Mr.set(r, { id: bb(r, t, r), clusterData: t.node(r) })); }), t.nodes().forEach(function(r) { const n = t.children(r), i = t.edges(); n.length > 0 ? (H.debug("Cluster identified", r, v0), i.forEach((s) => { @@ -67732,8 +67768,8 @@ var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Qde = /* @__ } H.warn("Fix Replacing with XXX", i, s, r.name), t.setEdge(i, s, n, r.name); } - }), H.warn("Adjusted Graph", _i(t)), qde(t, 0), H.trace(Mr); -}, "adjustClustersAndEdges"), qde = /* @__PURE__ */ x((t, e) => { + }), H.warn("Adjusted Graph", _i(t)), Yde(t, 0), H.trace(Mr); +}, "adjustClustersAndEdges"), Yde = /* @__PURE__ */ x((t, e) => { var i, s; if (H.warn("extractor - ", e, _i(t), t.children("D")), e > 10) { H.error("Bailing out"); @@ -67782,7 +67818,7 @@ var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Qde = /* @__ }).setDefaultEdgeLabel(function() { return {}; }); - H.warn("Old graph before copy", _i(t)), Ude(a, t, u, a), t.setNode(a, { + H.warn("Old graph before copy", _i(t)), Vde(a, t, u, a), t.setNode(a, { clusterNode: !0, id: a, clusterData: Mr.get(a).clusterData, @@ -67805,17 +67841,17 @@ var Mr = /* @__PURE__ */ new Map(), v0 = /* @__PURE__ */ new Map(), Qde = /* @__ r = t.nodes(), H.warn("New list of nodes", r); for (const a of r) { const o = t.node(a); - H.warn(" Now next level", a, o), o != null && o.clusterNode && qde(o.graph, e + 1); + H.warn(" Now next level", a, o), o != null && o.clusterNode && Yde(o.graph, e + 1); } -}, "extractor"), Yde = /* @__PURE__ */ x((t, e) => { +}, "extractor"), Wde = /* @__PURE__ */ x((t, e) => { if (e.length === 0) return []; let r = Object.assign([], e); return e.forEach((n) => { - const i = t.children(n), s = Yde(t, i); + const i = t.children(n), s = Wde(t, i); r = [...r, ...s]; }), r; -}, "sorter"), eBt = /* @__PURE__ */ x((t) => Yde(t, t.children()), "sortNodesByHierarchy"), Wde = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { +}, "sorter"), rBt = /* @__PURE__ */ x((t) => Wde(t, t.children()), "sortNodesByHierarchy"), Gde = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { H.warn("Graph in recursive render:XAX", _i(e), i); const a = e.graph().rankdir; H.trace("Dir in recursive render - dir:", a); @@ -67847,7 +67883,7 @@ Parent cluster`, ranksep: y + 25, nodesep: b }); - const w = await Wde( + const w = await Gde( f, v.graph, r, @@ -67862,7 +67898,7 @@ Parent cluster`, v.width, "height", v.height - ), KCt(O, v); + ), JCt(O, v); } else e.children(m).length > 0 ? (H.trace( "Cluster - the non recursive path XBX", @@ -67892,7 +67928,7 @@ Parent cluster`, }, "processEdges"))(), H.info("Graph before layout:", JSON.stringify(_i(e))), H.info("############################################# XXX"), H.info("### Layout ### XXX"), H.info("############################################# XXX"), Y1(e), H.info("Graph after layout:", JSON.stringify(_i(e))); let p = 0, { subGraphTitleTotalMargin: g } = Op(s); return await Promise.all( - eBt(e).map(async function(m) { + rBt(e).map(async function(m) { var y; const v = e.node(m); if (H.info( @@ -67957,7 +67993,7 @@ Parent cluster`, const v = e.node(m); H.info(m, v.type, v.diff), v.isGroup && (p = v.diff); }), H.warn("Returning from recursive render XAX", o, p), { elem: o, diff: p }; -}, "recursiveRender"), tBt = /* @__PURE__ */ x(async (t, e) => { +}, "recursiveRender"), nBt = /* @__PURE__ */ x(async (t, e) => { var s, a, o, l, u, h; const r = new Ji({ multigraph: !0, @@ -67971,7 +68007,7 @@ Parent cluster`, }).setDefaultEdgeLabel(function() { return {}; }), n = e.select("g"); - Vle(n, t.markers, t.type, t.diagramId), JCt(), rCt(), JTt(), Z$t(), t.nodes.forEach((f) => { + Vle(n, t.markers, t.type, t.diagramId), eEt(), nCt(), eCt(), K$t(), t.nodes.forEach((f) => { r.setNode(f.id, { ...f }), f.parentId && r.setParent(f.id, f.parentId); }), H.debug("Edges:", t.edges), t.edges.forEach((f) => { if (f.start === f.end) { @@ -68003,9 +68039,9 @@ Parent cluster`, v.label = "", v.arrowTypeEnd = "none", v.id = d + "-cyclic-special-1", y.arrowTypeEnd = "none", y.id = d + "-cyclic-special-mid", b.label = "", m.isGroup && (v.fromCluster = d, b.toCluster = d), b.id = d + "-cyclic-special-2", r.setEdge(d, p, v, d + "-cyclic-special-0"), r.setEdge(p, g, y, d + "-cyclic-special-1"), r.setEdge(g, d, b, d + "-cyc { const r = t.append("rect"); @@ -68024,7 +68060,7 @@ var lE = /* @__PURE__ */ x((t, e) => { for (const n in e.attrs) r.attr(n, e.attrs[n]); return e.class && r.attr("class", e.class), r; -}, "drawRect"), Gde = /* @__PURE__ */ x((t, e) => { +}, "drawRect"), Xde = /* @__PURE__ */ x((t, e) => { const r = { x: e.startx, y: e.starty, @@ -68035,17 +68071,17 @@ var lE = /* @__PURE__ */ x((t, e) => { class: "rect" }; lE(t, r).lower(); -}, "drawBackgroundRect"), nBt = /* @__PURE__ */ x((t, e) => { +}, "drawBackgroundRect"), sBt = /* @__PURE__ */ x((t, e) => { const r = e.text.replace(D1, " "), n = t.append("text"); n.attr("x", e.x), n.attr("y", e.y), n.attr("class", "legend"), n.style("text-anchor", e.anchor), e.class && n.attr("class", e.class); const i = n.append("tspan"); return i.attr("x", e.x + e.textMargin * 2), i.text(r), n; -}, "drawText"), iBt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawText"), aBt = /* @__PURE__ */ x((t, e, r, n) => { const i = t.append("image"); i.attr("x", e), i.attr("y", r); const s = yd(n); i.attr("xlink:href", s); -}, "drawImage"), sBt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawImage"), oBt = /* @__PURE__ */ x((t, e, r, n) => { const i = t.append("use"); i.attr("x", e), i.attr("y", r); const s = yd(n); @@ -68681,7 +68717,7 @@ Expecting ` + ft.join(", ") + ", got '" + (this.terminals_[xt] || xt) + "'" : st return x(Ge, "Parser"), Ge.prototype = He, He.Parser = Ge, new Ge(); }(); hS.parser = hS; -var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ +var lBt = hS, lc = [], Lf = [""], _a = "global", Zl = "", hu = [ { alias: "global", label: { text: "global" }, @@ -68690,11 +68726,11 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ link: null, parentBoundary: "" } -], xb = [], kI = "", SI = !1, fS = 4, dS = 2, Xde, oBt = /* @__PURE__ */ x(function() { - return Xde; -}, "getC4Type"), lBt = /* @__PURE__ */ x(function(t) { - Xde = yi(t, ke()); -}, "setC4Type"), cBt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l) { +], xb = [], kI = "", SI = !1, fS = 4, dS = 2, Hde, cBt = /* @__PURE__ */ x(function() { + return Hde; +}, "getC4Type"), uBt = /* @__PURE__ */ x(function(t) { + Hde = yi(t, ke()); +}, "setC4Type"), hBt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l) { if (t == null || e === void 0 || e === null || r === void 0 || r === null || n === void 0 || n === null) return; let u = {}; @@ -68729,7 +68765,7 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ } else u.link = l; u.wrap = xd(); -}, "addRel"), uBt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "addRel"), fBt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { if (e === null || r === null) return; let o = {}; @@ -68757,7 +68793,7 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ } else o.link = a; o.typeC4Shape = { text: t }, o.parentBoundary = _a, o.wrap = xd(); -}, "addPersonOrSystem"), hBt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { +}, "addPersonOrSystem"), dBt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -68792,7 +68828,7 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ } else l.link = o; l.wrap = xd(), l.typeC4Shape = { text: t }, l.parentBoundary = _a; -}, "addContainer"), fBt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { +}, "addContainer"), pBt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -68827,7 +68863,7 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ } else l.link = o; l.wrap = xd(), l.typeC4Shape = { text: t }, l.parentBoundary = _a; -}, "addComponent"), dBt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addComponent"), gBt = /* @__PURE__ */ x(function(t, e, r, n, i) { if (t === null || e === null) return; let s = {}; @@ -68849,8 +68885,8 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ s[o] = l; } else s.link = i; - s.parentBoundary = _a, s.wrap = xd(), Zl = _a, _a = t, Af.push(Zl); -}, "addPersonOrSystemBoundary"), pBt = /* @__PURE__ */ x(function(t, e, r, n, i) { + s.parentBoundary = _a, s.wrap = xd(), Zl = _a, _a = t, Lf.push(Zl); +}, "addPersonOrSystemBoundary"), mBt = /* @__PURE__ */ x(function(t, e, r, n, i) { if (t === null || e === null) return; let s = {}; @@ -68872,8 +68908,8 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ s[o] = l; } else s.link = i; - s.parentBoundary = _a, s.wrap = xd(), Zl = _a, _a = t, Af.push(Zl); -}, "addContainerBoundary"), gBt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { + s.parentBoundary = _a, s.wrap = xd(), Zl = _a, _a = t, Lf.push(Zl); +}, "addContainerBoundary"), vBt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -68902,10 +68938,10 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ l[h] = f; } else l.link = o; - l.nodeType = t, l.parentBoundary = _a, l.wrap = xd(), Zl = _a, _a = e, Af.push(Zl); -}, "addDeploymentNode"), mBt = /* @__PURE__ */ x(function() { - _a = Zl, Af.pop(), Zl = Af.pop(), Af.push(Zl); -}, "popBoundaryParseStack"), vBt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l, u, h) { + l.nodeType = t, l.parentBoundary = _a, l.wrap = xd(), Zl = _a, _a = e, Lf.push(Zl); +}, "addDeploymentNode"), yBt = /* @__PURE__ */ x(function() { + _a = Zl, Lf.pop(), Zl = Lf.pop(), Lf.push(Zl); +}, "popBoundaryParseStack"), bBt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l, u, h) { let f = lc.find((d) => d.alias === e); if (!(f === void 0 && (f = hu.find((d) => d.alias === e), f === void 0))) { if (r != null) @@ -68963,7 +68999,7 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ } else f.legendSprite = h; } -}, "updateElStyle"), yBt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "updateElStyle"), xBt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { const o = xb.find((l) => l.from === e && l.to === r); if (o !== void 0) { if (n != null) @@ -68991,7 +69027,7 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ } else o.offsetY = parseInt(a); } -}, "updateRelStyle"), bBt = /* @__PURE__ */ x(function(t, e, r) { +}, "updateRelStyle"), wBt = /* @__PURE__ */ x(function(t, e, r) { let n = fS, i = dS; if (typeof e == "object") { const s = Object.values(e)[0]; @@ -69004,31 +69040,31 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ } else i = parseInt(r); n >= 1 && (fS = n), i >= 1 && (dS = i); -}, "updateLayoutConfig"), xBt = /* @__PURE__ */ x(function() { +}, "updateLayoutConfig"), OBt = /* @__PURE__ */ x(function() { return fS; -}, "getC4ShapeInRow"), wBt = /* @__PURE__ */ x(function() { +}, "getC4ShapeInRow"), kBt = /* @__PURE__ */ x(function() { return dS; -}, "getC4BoundaryInRow"), OBt = /* @__PURE__ */ x(function() { +}, "getC4BoundaryInRow"), SBt = /* @__PURE__ */ x(function() { return _a; -}, "getCurrentBoundaryParse"), kBt = /* @__PURE__ */ x(function() { +}, "getCurrentBoundaryParse"), TBt = /* @__PURE__ */ x(function() { return Zl; -}, "getParentBoundaryParse"), Hde = /* @__PURE__ */ x(function(t) { +}, "getParentBoundaryParse"), Zde = /* @__PURE__ */ x(function(t) { return t == null ? lc : lc.filter((e) => e.parentBoundary === t); -}, "getC4ShapeArray"), SBt = /* @__PURE__ */ x(function(t) { +}, "getC4ShapeArray"), CBt = /* @__PURE__ */ x(function(t) { return lc.find((e) => e.alias === t); -}, "getC4Shape"), TBt = /* @__PURE__ */ x(function(t) { - return Object.keys(Hde(t)); -}, "getC4ShapeKeys"), Zde = /* @__PURE__ */ x(function(t) { +}, "getC4Shape"), EBt = /* @__PURE__ */ x(function(t) { + return Object.keys(Zde(t)); +}, "getC4ShapeKeys"), jde = /* @__PURE__ */ x(function(t) { return t == null ? hu : hu.filter((e) => e.parentBoundary === t); -}, "getBoundaries"), CBt = Zde, EBt = /* @__PURE__ */ x(function() { +}, "getBoundaries"), _Bt = jde, ABt = /* @__PURE__ */ x(function() { return xb; -}, "getRels"), _Bt = /* @__PURE__ */ x(function() { +}, "getRels"), LBt = /* @__PURE__ */ x(function() { return kI; -}, "getTitle"), ABt = /* @__PURE__ */ x(function(t) { +}, "getTitle"), RBt = /* @__PURE__ */ x(function(t) { SI = t; }, "setWrap"), xd = /* @__PURE__ */ x(function() { return SI; -}, "autoWrap"), LBt = /* @__PURE__ */ x(function() { +}, "autoWrap"), MBt = /* @__PURE__ */ x(function() { lc = [], hu = [ { alias: "global", @@ -69038,8 +69074,8 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ link: null, parentBoundary: "" } - ], Zl = "", _a = "global", Af = [""], xb = [], Af = [""], kI = "", SI = !1, fS = 4, dS = 2; -}, "clear"), RBt = { + ], Zl = "", _a = "global", Lf = [""], xb = [], Lf = [""], kI = "", SI = !1, fS = 4, dS = 2; +}, "clear"), DBt = { SOLID: 0, DOTTED: 1, NOTE: 2, @@ -69063,60 +69099,60 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ RECT_END: 23, SOLID_POINT: 24, DOTTED_POINT: 25 -}, MBt = { +}, PBt = { FILLED: 0, OPEN: 1 -}, DBt = { +}, NBt = { LEFTOF: 0, RIGHTOF: 1, OVER: 2 -}, PBt = /* @__PURE__ */ x(function(t) { +}, IBt = /* @__PURE__ */ x(function(t) { kI = yi(t, ke()); }, "setTitle"), qL = { - addPersonOrSystem: uBt, - addPersonOrSystemBoundary: dBt, - addContainer: hBt, - addContainerBoundary: pBt, - addComponent: fBt, - addDeploymentNode: gBt, - popBoundaryParseStack: mBt, - addRel: cBt, - updateElStyle: vBt, - updateRelStyle: yBt, - updateLayoutConfig: bBt, + addPersonOrSystem: fBt, + addPersonOrSystemBoundary: gBt, + addContainer: dBt, + addContainerBoundary: mBt, + addComponent: pBt, + addDeploymentNode: vBt, + popBoundaryParseStack: yBt, + addRel: hBt, + updateElStyle: bBt, + updateRelStyle: xBt, + updateLayoutConfig: wBt, autoWrap: xd, - setWrap: ABt, - getC4ShapeArray: Hde, - getC4Shape: SBt, - getC4ShapeKeys: TBt, - getBoundaries: Zde, - getBoundarys: CBt, - getCurrentBoundaryParse: OBt, - getParentBoundaryParse: kBt, - getRels: EBt, - getTitle: _Bt, - getC4Type: oBt, - getC4ShapeInRow: xBt, - getC4BoundaryInRow: wBt, + setWrap: RBt, + getC4ShapeArray: Zde, + getC4Shape: CBt, + getC4ShapeKeys: EBt, + getBoundaries: jde, + getBoundarys: _Bt, + getCurrentBoundaryParse: SBt, + getParentBoundaryParse: TBt, + getRels: ABt, + getTitle: LBt, + getC4Type: cBt, + getC4ShapeInRow: OBt, + getC4BoundaryInRow: kBt, setAccTitle: us, getAccTitle: Ps, getAccDescription: Is, setAccDescription: Ns, getConfig: /* @__PURE__ */ x(() => ke().c4, "getConfig"), - clear: LBt, - LINETYPE: RBt, - ARROWTYPE: MBt, - PLACEMENT: DBt, - setTitle: PBt, - setC4Type: lBt + clear: MBt, + LINETYPE: DBt, + ARROWTYPE: PBt, + PLACEMENT: NBt, + setTitle: IBt, + setC4Type: uBt }, TI = /* @__PURE__ */ x(function(t, e) { return lE(t, e); -}, "drawRect"), jde = /* @__PURE__ */ x(function(t, e, r, n, i, s) { +}, "drawRect"), Kde = /* @__PURE__ */ x(function(t, e, r, n, i, s) { const a = t.append("image"); a.attr("width", e), a.attr("height", r), a.attr("x", n), a.attr("y", i); let o = s.startsWith("data:image/png;base64") ? s : yd(s); a.attr("xlink:href", o); -}, "drawImage"), NBt = /* @__PURE__ */ x((t, e, r) => { +}, "drawImage"), $Bt = /* @__PURE__ */ x((t, e, r) => { const n = t.append("g"); let i = 0; for (let s of e) { @@ -69155,7 +69191,7 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ f )); } -}, "drawRels"), IBt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawRels"), BBt = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"); let i = e.bgColor ? e.bgColor : "none", s = e.borderColor ? e.borderColor : "#444444", a = e.fontColor ? e.fontColor : "black", o = { "stroke-width": 1, "stroke-dasharray": "7.0,7.0" }; e.nodeType && (o = { "stroke-width": 1 }); @@ -69200,7 +69236,7 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ { fill: "#444444" }, u )); -}, "drawBoundary"), $Bt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawBoundary"), FBt = /* @__PURE__ */ x(function(t, e, r) { var f; let n = e.bgColor ? e.bgColor : r[e.typeC4Shape.text + "_bg_color"], i = e.borderColor ? e.borderColor : r[e.typeC4Shape.text + "_border_color"], s = e.fontColor ? e.fontColor : "#FFFFFF", a = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII="; switch (e.typeC4Shape.text) { @@ -69254,11 +69290,11 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ ); break; } - let u = WBt(r, e.typeC4Shape.text); + let u = XBt(r, e.typeC4Shape.text); switch (o.append("text").attr("fill", s).attr("font-family", u.fontFamily).attr("font-size", u.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", e.typeC4Shape.width).attr("x", e.x + e.width / 2 - e.typeC4Shape.width / 2).attr("y", e.y + e.typeC4Shape.Y).text("<<" + e.typeC4Shape.text + ">>"), e.typeC4Shape.text) { case "person": case "external_person": - jde( + Kde( o, 48, 48, @@ -69306,33 +69342,33 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ { fill: s }, h )), e.height; -}, "drawC4Shape"), BBt = /* @__PURE__ */ x(function(t) { +}, "drawC4Shape"), zBt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr( "d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z" ); -}, "insertDatabaseIcon"), FBt = /* @__PURE__ */ x(function(t) { +}, "insertDatabaseIcon"), QBt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z" ); -}, "insertComputerIcon"), zBt = /* @__PURE__ */ x(function(t) { +}, "insertComputerIcon"), UBt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z" ); -}, "insertClockIcon"), QBt = /* @__PURE__ */ x(function(t) { +}, "insertClockIcon"), VBt = /* @__PURE__ */ x(function(t) { t.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"); -}, "insertArrowHead"), UBt = /* @__PURE__ */ x(function(t) { +}, "insertArrowHead"), qBt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z"); -}, "insertArrowEnd"), VBt = /* @__PURE__ */ x(function(t) { +}, "insertArrowEnd"), YBt = /* @__PURE__ */ x(function(t) { t.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"); -}, "insertArrowFilledHead"), qBt = /* @__PURE__ */ x(function(t) { +}, "insertArrowFilledHead"), WBt = /* @__PURE__ */ x(function(t) { t.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); -}, "insertDynamicNumber"), YBt = /* @__PURE__ */ x(function(t) { +}, "insertDynamicNumber"), GBt = /* @__PURE__ */ x(function(t) { const r = t.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4); r.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"), r.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"); -}, "insertArrowCrossHead"), WBt = /* @__PURE__ */ x((t, e) => ({ +}, "insertArrowCrossHead"), XBt = /* @__PURE__ */ x((t, e) => ({ fontFamily: t[e + "FontFamily"], fontSize: t[e + "FontSize"], fontWeight: t[e + "FontWeight"] @@ -69364,21 +69400,21 @@ var aBt = hS, lc = [], Af = [""], _a = "global", Zl = "", hu = [ }; }(), Rc = { drawRect: TI, - drawBoundary: IBt, - drawC4Shape: $Bt, - drawRels: NBt, - drawImage: jde, - insertArrowHead: QBt, - insertArrowEnd: UBt, - insertArrowFilledHead: VBt, - insertDynamicNumber: qBt, - insertArrowCrossHead: YBt, - insertDatabaseIcon: BBt, - insertComputerIcon: FBt, - insertClockIcon: zBt -}, pS = 0, gS = 0, Kde = 4, YL = 2; + drawBoundary: BBt, + drawC4Shape: FBt, + drawRels: $Bt, + drawImage: Kde, + insertArrowHead: VBt, + insertArrowEnd: qBt, + insertArrowFilledHead: YBt, + insertDynamicNumber: WBt, + insertArrowCrossHead: GBt, + insertDatabaseIcon: zBt, + insertComputerIcon: QBt, + insertClockIcon: UBt +}, pS = 0, gS = 0, Jde = 4, YL = 2; hS.yy = qL; -var Wt = {}, nx, Jde = (nx = class { +var Wt = {}, nx, e0e = (nx = class { constructor(e) { this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, WL(e.db.getConfig()); } @@ -69391,7 +69427,7 @@ var Wt = {}, nx, Jde = (nx = class { insert(e) { this.nextData.cnt = this.nextData.cnt + 1; let r = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + e.margin : this.nextData.stopx + e.margin * 2, n = r + e.width, i = this.nextData.starty + e.margin * 2, s = i + e.height; - (r >= this.data.widthLimit || n >= this.data.widthLimit || this.nextData.cnt > Kde) && (r = this.nextData.startx + e.margin + Wt.nextLinePaddingX, i = this.nextData.stopy + e.margin * 2, this.nextData.stopx = n = r + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = s = i + e.height, this.nextData.cnt = 1), e.x = r, e.y = i, this.updateVal(this.data, "startx", r, Math.min), this.updateVal(this.data, "starty", i, Math.min), this.updateVal(this.data, "stopx", n, Math.max), this.updateVal(this.data, "stopy", s, Math.max), this.updateVal(this.nextData, "startx", r, Math.min), this.updateVal(this.nextData, "starty", i, Math.min), this.updateVal(this.nextData, "stopx", n, Math.max), this.updateVal(this.nextData, "stopy", s, Math.max); + (r >= this.data.widthLimit || n >= this.data.widthLimit || this.nextData.cnt > Jde) && (r = this.nextData.startx + e.margin + Wt.nextLinePaddingX, i = this.nextData.stopy + e.margin * 2, this.nextData.stopx = n = r + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = s = i + e.height, this.nextData.cnt = 1), e.x = r, e.y = i, this.updateVal(this.data, "startx", r, Math.min), this.updateVal(this.data, "starty", i, Math.min), this.updateVal(this.data, "stopx", n, Math.max), this.updateVal(this.data, "stopy", s, Math.max), this.updateVal(this.nextData, "startx", r, Math.min), this.updateVal(this.nextData, "starty", i, Math.min), this.updateVal(this.nextData, "stopx", n, Math.max), this.updateVal(this.nextData, "stopy", s, Math.max); } init(e) { this.name = "", this.data = { @@ -69423,7 +69459,7 @@ var Wt = {}, nx, Jde = (nx = class { fontFamily: t.boundaryFontFamily, fontSize: t.boundaryFontSize, fontWeight: t.boundaryFontWeight -}), "boundaryFont"), GBt = /* @__PURE__ */ x((t) => ({ +}), "boundaryFont"), HBt = /* @__PURE__ */ x((t) => ({ fontFamily: t.messageFontFamily, fontSize: t.messageFontSize, fontWeight: t.messageFontWeight @@ -69445,13 +69481,13 @@ function il(t, e, r, n, i) { } } x(il, "calcC4ShapeTextWH"); -var e0e = /* @__PURE__ */ x(function(t, e, r) { +var t0e = /* @__PURE__ */ x(function(t, e, r) { e.x = r.data.startx, e.y = r.data.starty, e.width = r.data.stopx - r.data.startx, e.height = r.data.stopy - r.data.starty, e.label.y = Wt.c4ShapeMargin - 35; let n = e.wrap && Wt.wrap, i = z5(Wt); i.fontSize = i.fontSize + 2, i.fontWeight = "bold"; let s = Wl(e.label.text, i); il("label", e, n, i, s), Rc.drawBoundary(t, e, Wt); -}, "drawBoundary"), t0e = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawBoundary"), r0e = /* @__PURE__ */ x(function(t, e, r, n) { let i = 0; for (const s of n) { i = 0; @@ -69500,28 +69536,28 @@ var e0e = /* @__PURE__ */ x(function(t, e, r) { a + l / u * t.height / 2, n + t.height ) : r < i && n > s ? f >= h ? d = new Vo(r + t.width, o - h * t.width / 2) : d = new Vo(a + t.height / 2 * l / u, n) : r > i && n > s && (f >= h ? d = new Vo(r, o - t.width / 2 * h) : d = new Vo(a - t.height / 2 * l / u, n)), d; -}, "getIntersectPoint"), XBt = /* @__PURE__ */ x(function(t, e) { +}, "getIntersectPoint"), ZBt = /* @__PURE__ */ x(function(t, e) { let r = { x: 0, y: 0 }; r.x = e.x + e.width / 2, r.y = e.y + e.height / 2; let n = dG(t, r); r.x = t.x + t.width / 2, r.y = t.y + t.height / 2; let i = dG(e, r); return { startPoint: n, endPoint: i }; -}, "getIntersectPoints"), HBt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getIntersectPoints"), jBt = /* @__PURE__ */ x(function(t, e, r, n) { let i = 0; for (let s of e) { i = i + 1; - let a = s.wrap && Wt.wrap, o = GBt(Wt); + let a = s.wrap && Wt.wrap, o = HBt(Wt); n.db.getC4Type() === "C4Dynamic" && (s.label.text = i + ": " + s.label.text); let u = Wl(s.label.text, o); il("label", s, a, o, u), s.techn && s.techn.text !== "" && (u = Wl(s.techn.text, o), il("techn", s, a, o, u)), s.descr && s.descr.text !== "" && (u = Wl(s.descr.text, o), il("descr", s, a, o, u)); - let h = r(s.from), f = r(s.to), d = XBt(h, f); + let h = r(s.from), f = r(s.to), d = ZBt(h, f); s.startPoint = d.startPoint, s.endPoint = d.endPoint; } Rc.drawRels(t, e, Wt); }, "drawRels"); function CI(t, e, r, n, i) { - let s = new Jde(i); + let s = new e0e(i); s.data.widthLimit = r.data.widthLimit / Math.min(YL, n.length); for (let [a, o] of n.entries()) { let l = 0; @@ -69563,7 +69599,7 @@ function CI(t, e, r, n, i) { } s.name = o.alias; let f = i.db.getC4ShapeArray(o.alias), d = i.db.getC4ShapeKeys(o.alias); - d.length > 0 && t0e( + d.length > 0 && r0e( s, t, f, @@ -69576,7 +69612,7 @@ function CI(t, e, r, n, i) { s, p, i - ), o.alias !== "global" && e0e(t, o, s), r.data.stopy = Math.max( + ), o.alias !== "global" && t0e(t, o, s), r.data.stopy = Math.max( s.data.stopy + Wt.c4ShapeMargin, r.data.stopy ), r.data.stopx = Math.max( @@ -69586,17 +69622,17 @@ function CI(t, e, r, n, i) { } } x(CI, "drawInsideBoundary"); -var ZBt = /* @__PURE__ */ x(function(t, e, r, n) { +var KBt = /* @__PURE__ */ x(function(t, e, r, n) { Wt = ke().c4; const i = ke().securityLevel; let s; i === "sandbox" && (s = ht("#i" + e)); const a = ht(i === "sandbox" ? s.nodes()[0].contentDocument.body : "body"); let o = n.db; - n.db.setWrap(Wt.wrap), Kde = o.getC4ShapeInRow(), YL = o.getC4BoundaryInRow(), H.debug(`C:${JSON.stringify(Wt, null, 2)}`); + n.db.setWrap(Wt.wrap), Jde = o.getC4ShapeInRow(), YL = o.getC4BoundaryInRow(), H.debug(`C:${JSON.stringify(Wt, null, 2)}`); const l = i === "sandbox" ? a.select(`[id="${e}"]`) : ht(`[id="${e}"]`); Rc.insertComputerIcon(l), Rc.insertDatabaseIcon(l), Rc.insertClockIcon(l); - let u = new Jde(n); + let u = new e0e(n); u.setData( Wt.diagramMarginX, Wt.diagramMarginX, @@ -69605,7 +69641,7 @@ var ZBt = /* @__PURE__ */ x(function(t, e, r, n) { ), u.data.widthLimit = screen.availWidth, pS = Wt.diagramMarginX, gS = Wt.diagramMarginY; const h = n.db.getTitle(); let f = n.db.getBoundarys(""); - CI(l, "", u, f, n), Rc.insertArrowHead(l), Rc.insertArrowEnd(l), Rc.insertArrowCrossHead(l), Rc.insertArrowFilledHead(l), HBt(l, n.db.getRels(), n.db.getC4Shape, n), u.data.stopx = pS, u.data.stopy = gS; + CI(l, "", u, f, n), Rc.insertArrowHead(l), Rc.insertArrowEnd(l), Rc.insertArrowCrossHead(l), Rc.insertArrowFilledHead(l), jBt(l, n.db.getRels(), n.db.getC4Shape, n), u.data.stopx = pS, u.data.stopy = gS; const d = u.data; let g = d.stopy - d.starty + 2 * Wt.diagramMarginY; const v = d.stopx - d.startx + 2 * Wt.diagramMarginX; @@ -69616,37 +69652,37 @@ var ZBt = /* @__PURE__ */ x(function(t, e, r, n) { d.startx - Wt.diagramMarginX + " -" + (Wt.diagramMarginY + y) + " " + v + " " + (g + y) ), H.debug("models:", d); }, "draw"), pG = { - drawPersonOrSystemArray: t0e, - drawBoundary: e0e, + drawPersonOrSystemArray: r0e, + drawBoundary: t0e, setConf: WL, - draw: ZBt -}, jBt = /* @__PURE__ */ x((t) => `.person { + draw: KBt +}, JBt = /* @__PURE__ */ x((t) => `.person { stroke: ${t.personBorder}; fill: ${t.personBkg}; } -`, "getStyles"), KBt = jBt, JBt = { - parser: aBt, +`, "getStyles"), eFt = JBt, tFt = { + parser: lBt, db: qL, renderer: pG, - styles: KBt, + styles: eFt, init: /* @__PURE__ */ x(({ c4: t, wrap: e }) => { pG.setConf(t), qL.setWrap(e); }, "init") }; -const eFt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const rFt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: JBt + diagram: tFt }, Symbol.toStringTag, { value: "Module" })); -var r0e = /* @__PURE__ */ x((t, e) => { +var n0e = /* @__PURE__ */ x((t, e) => { let r; return e === "sandbox" && (r = ht("#i" + t)), ht(e === "sandbox" ? r.nodes()[0].contentDocument.body : "body").select(`[id="${t}"]`); -}, "getDiagramElement"), n0e = /* @__PURE__ */ x((t, e, r, n) => { +}, "getDiagramElement"), i0e = /* @__PURE__ */ x((t, e, r, n) => { t.attr("class", r); - const { width: i, height: s, x: a, y: o } = tFt(t, e); + const { width: i, height: s, x: a, y: o } = nFt(t, e); Ds(t, s, i, n); - const l = rFt(a, o, i, s, e); + const l = iFt(a, o, i, s, e); t.attr("viewBox", l), H.debug(`viewBox configured: ${l} with padding: ${e}`); -}, "setupViewPortForSVG"), tFt = /* @__PURE__ */ x((t, e) => { +}, "setupViewPortForSVG"), nFt = /* @__PURE__ */ x((t, e) => { var n; const r = ((n = t.node()) == null ? void 0 : n.getBBox()) || { width: 0, height: 0, x: 0, y: 0 }; return { @@ -69655,17 +69691,17 @@ var r0e = /* @__PURE__ */ x((t, e) => { x: r.x, y: r.y }; -}, "calculateDimensionsWithPadding"), rFt = /* @__PURE__ */ x((t, e, r, n, i) => `${t - i} ${e - i} ${r} ${n}`, "createViewBox"); +}, "calculateDimensionsWithPadding"), iFt = /* @__PURE__ */ x((t, e, r, n, i) => `${t - i} ${e - i} ${r} ${n}`, "createViewBox"); function GL(t, e) { e && t.attr("style", e); } x(GL, "applyStyle"); -function i0e(t) { +function s0e(t) { const e = ht(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject")), r = e.append("xhtml:div"), n = t.label, i = t.isNode ? "nodeLabel" : "edgeLabel", s = r.append("span"); return s.html(n), GL(s, t.labelStyle), s.attr("class", i), GL(r, t.labelStyle), r.style("display", "inline-block"), r.style("white-space", "nowrap"), r.attr("xmlns", "http://www.w3.org/1999/xhtml"), e.node(); } -x(i0e, "addHtmlLabel"); -var nFt = /* @__PURE__ */ x((t, e, r, n) => { +x(s0e, "addHtmlLabel"); +var sFt = /* @__PURE__ */ x((t, e, r, n) => { let i = t || ""; if (typeof i == "object" && (i = i[0]), Pn(ke().flowchart.htmlLabels)) { i = i.replace(/\\n|\n/g, "
"), H.debug("vertexText" + i); @@ -69674,7 +69710,7 @@ var nFt = /* @__PURE__ */ x((t, e, r, n) => { label: bN(W0(i)), labelStyle: e.replace("fill:", "color:") }; - return i0e(s); + return s0e(s); } else { const s = document.createElementNS("http://www.w3.org/2000/svg", "text"); s.setAttribute("style", e.replace("color:", "fill:")); @@ -69686,7 +69722,7 @@ var nFt = /* @__PURE__ */ x((t, e, r, n) => { } return s; } -}, "createLabel"), ja = nFt, fs = /* @__PURE__ */ x(async (t, e, r, n) => { +}, "createLabel"), ja = sFt, fs = /* @__PURE__ */ x(async (t, e, r, n) => { const i = ke(); let s; const a = e.useHtmlLabels || Pn(i.flowchart.htmlLabels); @@ -69748,7 +69784,7 @@ function yc(t, e, r, n) { ).attr("class", "label-container").attr("transform", "translate(" + -e / 2 + "," + r / 2 + ")"); } x(yc, "insertPolygonShape"); -var iFt = /* @__PURE__ */ x((t) => { +var aFt = /* @__PURE__ */ x((t) => { const e = /* @__PURE__ */ new Set(); for (const r of t) switch (r) { @@ -69763,8 +69799,8 @@ var iFt = /* @__PURE__ */ x((t) => { break; } return e; -}, "expandAndDeduplicateDirections"), sFt = /* @__PURE__ */ x((t, e, r) => { - const n = iFt(t), i = 2, s = e.height + 2 * r.padding, a = s / i, o = e.width + 2 * a + r.padding, l = r.padding / 2; +}, "expandAndDeduplicateDirections"), oFt = /* @__PURE__ */ x((t, e, r) => { + const n = aFt(t), i = 2, s = e.height + 2 * r.padding, a = s / i, o = e.width + 2 * a + r.padding, l = r.padding / 2; return n.has("right") && n.has("left") && n.has("up") && n.has("down") ? [ { x: 0, y: 0 }, { x: a, y: 0 }, @@ -69878,42 +69914,42 @@ var iFt = /* @__PURE__ */ x((t) => { { x: o, y: -l } ] : [{ x: 0, y: 0 }]; }, "getArrowPoints"); -function s0e(t, e) { +function a0e(t, e) { return t.intersect(e); } -x(s0e, "intersectNode"); -var aFt = s0e; -function a0e(t, e, r, n) { +x(a0e, "intersectNode"); +var lFt = a0e; +function o0e(t, e, r, n) { var i = t.x, s = t.y, a = i - n.x, o = s - n.y, l = Math.sqrt(e * e * o * o + r * r * a * a), u = Math.abs(e * r * a / l); n.x < i && (u = -u); var h = Math.abs(e * r * o / l); return n.y < s && (h = -h), { x: i + u, y: s + h }; } -x(a0e, "intersectEllipse"); -var o0e = a0e; -function l0e(t, e, r) { - return o0e(t, e, e, r); +x(o0e, "intersectEllipse"); +var l0e = o0e; +function c0e(t, e, r) { + return l0e(t, e, e, r); } -x(l0e, "intersectCircle"); -var oFt = l0e; -function c0e(t, e, r, n) { +x(c0e, "intersectCircle"); +var cFt = c0e; +function u0e(t, e, r, n) { var i, s, a, o, l, u, h, f, d, p, g, m, v, y, b; if (i = e.y - t.y, a = t.x - e.x, l = e.x * t.y - t.x * e.y, d = i * r.x + a * r.y + l, p = i * n.x + a * n.y + l, !(d !== 0 && p !== 0 && XL(d, p)) && (s = n.y - r.y, o = r.x - n.x, u = n.x * r.y - r.x * n.y, h = s * t.x + o * t.y + u, f = s * e.x + o * e.y + u, !(h !== 0 && f !== 0 && XL(h, f)) && (g = i * o - s * a, g !== 0))) return m = Math.abs(g / 2), v = a * u - o * l, y = v < 0 ? (v - m) / g : (v + m) / g, v = s * l - i * u, b = v < 0 ? (v - m) / g : (v + m) / g, { x: y, y: b }; } -x(c0e, "intersectLine"); +x(u0e, "intersectLine"); function XL(t, e) { return t * e > 0; } x(XL, "sameSign"); -var lFt = c0e, cFt = u0e; -function u0e(t, e, r) { +var uFt = u0e, hFt = h0e; +function h0e(t, e, r) { var n = t.x, i = t.y, s = [], a = Number.POSITIVE_INFINITY, o = Number.POSITIVE_INFINITY; typeof e.forEach == "function" ? e.forEach(function(g) { a = Math.min(a, g.x), o = Math.min(o, g.y); }) : (a = Math.min(a, e.x), o = Math.min(o, e.y)); for (var l = n - t.width / 2 - a, u = i - t.height / 2 - o, h = 0; h < e.length; h++) { - var f = e[h], d = e[h < e.length - 1 ? h + 1 : 0], p = lFt( + var f = e[h], d = e[h < e.length - 1 ? h + 1 : 0], p = uFt( t, r, { x: l + f.x, y: u + f.y }, @@ -69926,17 +69962,17 @@ function u0e(t, e, r) { return b < S ? -1 : b === S ? 0 : 1; }), s[0]) : t; } -x(u0e, "intersectPolygon"); -var uFt = /* @__PURE__ */ x((t, e) => { +x(h0e, "intersectPolygon"); +var fFt = /* @__PURE__ */ x((t, e) => { var r = t.x, n = t.y, i = e.x - r, s = e.y - n, a = t.width / 2, o = t.height / 2, l, u; return Math.abs(s) * a > Math.abs(i) * o ? (s < 0 && (o = -o), l = s === 0 ? 0 : o * i / s, u = o) : (i < 0 && (a = -a), l = a, u = i === 0 ? 0 : a * s / i), { x: r + l, y: n + u }; -}, "intersectRect"), kw = uFt, Qn = { - node: aFt, - circle: oFt, - ellipse: o0e, - polygon: cFt, +}, "intersectRect"), kw = fFt, Qn = { + node: lFt, + circle: cFt, + ellipse: l0e, + polygon: hFt, rect: kw -}, hFt = /* @__PURE__ */ x(async (t, e) => { +}, dFt = /* @__PURE__ */ x(async (t, e) => { e.useHtmlLabels || ke().flowchart.htmlLabels || (e.centerLabel = !0); const { shapeSvg: n, bbox: i, halfPadding: s } = await fs( t, @@ -69949,7 +69985,7 @@ var uFt = /* @__PURE__ */ x((t, e) => { return a.attr("rx", e.rx).attr("ry", e.ry).attr("x", -i.width / 2 - s).attr("y", -i.height / 2 - s).attr("width", i.width + e.padding).attr("height", i.height + e.padding), Zn(e, a), e.intersect = function(o) { return Qn.rect(e, o); }, n; -}, "note"), fFt = hFt, gG = /* @__PURE__ */ x((t) => t ? " " + t : "", "formatClass"), $o = /* @__PURE__ */ x((t, e) => `${e || "node default"}${gG(t.classes)} ${gG( +}, "note"), pFt = dFt, gG = /* @__PURE__ */ x((t) => t ? " " + t : "", "formatClass"), $o = /* @__PURE__ */ x((t, e) => `${e || "node default"}${gG(t.classes)} ${gG( t.class )}`, "getClassesFromNode"), mG = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await fs( @@ -69968,7 +70004,7 @@ var uFt = /* @__PURE__ */ x((t, e) => { return l.attr("style", e.style), Zn(e, l), e.intersect = function(u) { return H.warn("Intersect called"), Qn.polygon(e, o, u); }, r; -}, "question"), dFt = /* @__PURE__ */ x((t, e) => { +}, "question"), gFt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), n = 28, i = [ { x: 0, y: n / 2 }, { x: n / 2, y: 0 }, @@ -69983,7 +70019,7 @@ var uFt = /* @__PURE__ */ x((t, e) => { ).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), e.width = 28, e.height = 28, e.intersect = function(a) { return Qn.circle(e, 14, a); }, r; -}, "choice"), pFt = /* @__PURE__ */ x(async (t, e) => { +}, "choice"), mFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await fs( t, e, @@ -70000,12 +70036,12 @@ var uFt = /* @__PURE__ */ x((t, e) => { return u.attr("style", e.style), Zn(e, u), e.intersect = function(h) { return Qn.polygon(e, l, h); }, r; -}, "hexagon"), gFt = /* @__PURE__ */ x(async (t, e) => { - const { shapeSvg: r, bbox: n } = await fs(t, e, void 0, !0), i = 2, s = n.height + 2 * e.padding, a = s / i, o = n.width + 2 * a + e.padding, l = sFt(e.directions, n, e), u = yc(r, o, s, l); +}, "hexagon"), vFt = /* @__PURE__ */ x(async (t, e) => { + const { shapeSvg: r, bbox: n } = await fs(t, e, void 0, !0), i = 2, s = n.height + 2 * e.padding, a = s / i, o = n.width + 2 * a + e.padding, l = oFt(e.directions, n, e), u = yc(r, o, s, l); return u.attr("style", e.style), Zn(e, u), e.intersect = function(h) { return Qn.polygon(e, l, h); }, r; -}, "block_arrow"), mFt = /* @__PURE__ */ x(async (t, e) => { +}, "block_arrow"), yFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await fs( t, e, @@ -70021,7 +70057,7 @@ var uFt = /* @__PURE__ */ x((t, e) => { return yc(r, i, s, a).attr("style", e.style), e.width = i + s, e.height = s, e.intersect = function(l) { return Qn.polygon(e, a, l); }, r; -}, "rect_left_inv_arrow"), vFt = /* @__PURE__ */ x(async (t, e) => { +}, "rect_left_inv_arrow"), bFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await fs(t, e, $o(e), !0), i = n.width + e.padding, s = n.height + e.padding, a = [ { x: -2 * s / 6, y: 0 }, { x: i - s / 6, y: 0 }, @@ -70031,7 +70067,7 @@ var uFt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Zn(e, o), e.intersect = function(l) { return Qn.polygon(e, a, l); }, r; -}, "lean_right"), yFt = /* @__PURE__ */ x(async (t, e) => { +}, "lean_right"), xFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await fs( t, e, @@ -70046,7 +70082,7 @@ var uFt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Zn(e, o), e.intersect = function(l) { return Qn.polygon(e, a, l); }, r; -}, "lean_left"), bFt = /* @__PURE__ */ x(async (t, e) => { +}, "lean_left"), wFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await fs( t, e, @@ -70061,7 +70097,7 @@ var uFt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Zn(e, o), e.intersect = function(l) { return Qn.polygon(e, a, l); }, r; -}, "trapezoid"), xFt = /* @__PURE__ */ x(async (t, e) => { +}, "trapezoid"), OFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await fs( t, e, @@ -70076,7 +70112,7 @@ var uFt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Zn(e, o), e.intersect = function(l) { return Qn.polygon(e, a, l); }, r; -}, "inv_trapezoid"), wFt = /* @__PURE__ */ x(async (t, e) => { +}, "inv_trapezoid"), kFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await fs( t, e, @@ -70092,7 +70128,7 @@ var uFt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Zn(e, o), e.intersect = function(l) { return Qn.polygon(e, a, l); }, r; -}, "rect_right_inv_arrow"), OFt = /* @__PURE__ */ x(async (t, e) => { +}, "rect_right_inv_arrow"), SFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await fs( t, e, @@ -70107,7 +70143,7 @@ var uFt = /* @__PURE__ */ x((t, e) => { } return f; }, r; -}, "cylinder"), kFt = /* @__PURE__ */ x(async (t, e) => { +}, "cylinder"), TFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await fs( t, e, @@ -70123,7 +70159,7 @@ var uFt = /* @__PURE__ */ x((t, e) => { return Zn(e, s), e.intersect = function(h) { return Qn.rect(e, h); }, r; -}, "rect"), SFt = /* @__PURE__ */ x(async (t, e) => { +}, "rect"), CFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await fs( t, e, @@ -70139,7 +70175,7 @@ var uFt = /* @__PURE__ */ x((t, e) => { return Zn(e, s), e.intersect = function(h) { return Qn.rect(e, h); }, r; -}, "composite"), TFt = /* @__PURE__ */ x(async (t, e) => { +}, "composite"), EFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r } = await fs(t, e, "label", !0); H.trace("Classes = ", e.class); const n = r.insert("rect", ":first-child"), i = 0, s = 0; @@ -70162,7 +70198,7 @@ function cE(t, e, r, n) { e.includes("t") ? (H.debug("add top border"), s(r)) : a(r), e.includes("r") ? (H.debug("add right border"), s(n)) : a(n), e.includes("b") ? (H.debug("add bottom border"), s(r)) : a(r), e.includes("l") ? (H.debug("add left border"), s(n)) : a(n), t.attr("stroke-dasharray", i.join(" ")); } x(cE, "applyNodePropertyBorders"); -var CFt = /* @__PURE__ */ x((t, e) => { +var _Ft = /* @__PURE__ */ x((t, e) => { let r; e.classes ? r = "node " + e.classes : r = "node default"; const n = t.insert("g").attr("class", r).attr("id", e.domId || e.id), i = n.insert("rect", ":first-child"), s = n.insert("line"), a = n.insert("g").attr("class", "label"), o = e.labelText.flat ? e.labelText.flat() : e.labelText; @@ -70197,7 +70233,7 @@ var CFt = /* @__PURE__ */ x((t, e) => { ), i.attr("class", "outer title-state").attr("x", -h.width / 2 - g).attr("y", -h.height / 2 - g).attr("width", h.width + e.padding).attr("height", h.height + e.padding), s.attr("class", "divider").attr("x1", -h.width / 2 - g).attr("x2", h.width / 2 + g).attr("y1", -h.height / 2 - g + d.height + g).attr("y2", -h.height / 2 - g + d.height + g), Zn(e, i), e.intersect = function(m) { return Qn.rect(e, m); }, n; -}, "rectWithTitle"), EFt = /* @__PURE__ */ x(async (t, e) => { +}, "rectWithTitle"), AFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await fs( t, e, @@ -70207,7 +70243,7 @@ var CFt = /* @__PURE__ */ x((t, e) => { return Zn(e, a), e.intersect = function(o) { return Qn.rect(e, o); }, r; -}, "stadium"), _Ft = /* @__PURE__ */ x(async (t, e) => { +}, "stadium"), LFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await fs( t, e, @@ -70217,7 +70253,7 @@ var CFt = /* @__PURE__ */ x((t, e) => { return s.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i).attr("width", n.width + e.padding).attr("height", n.height + e.padding), H.info("Circle main"), Zn(e, s), e.intersect = function(a) { return H.info("Circle intersect", e, n.width / 2 + i, a), Qn.circle(e, n.width / 2 + i, a); }, r; -}, "circle"), AFt = /* @__PURE__ */ x(async (t, e) => { +}, "circle"), RFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await fs( t, e, @@ -70227,7 +70263,7 @@ var CFt = /* @__PURE__ */ x((t, e) => { return a.attr("class", e.class), o.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i + s).attr("width", n.width + e.padding + s * 2).attr("height", n.height + e.padding + s * 2), l.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i).attr("width", n.width + e.padding).attr("height", n.height + e.padding), H.info("DoubleCircle main"), Zn(e, o), e.intersect = function(u) { return H.info("DoubleCircle intersect", e, n.width / 2 + i + s, u), Qn.circle(e, n.width / 2 + i + s, u); }, r; -}, "doublecircle"), LFt = /* @__PURE__ */ x(async (t, e) => { +}, "doublecircle"), MFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await fs( t, e, @@ -70248,7 +70284,7 @@ var CFt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Zn(e, o), e.intersect = function(l) { return Qn.polygon(e, a, l); }, r; -}, "subroutine"), RFt = /* @__PURE__ */ x((t, e) => { +}, "subroutine"), DFt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), n = r.insert("circle", ":first-child"); return n.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), Zn(e, n), e.intersect = function(i) { return Qn.circle(e, 7, i); @@ -70261,12 +70297,12 @@ var CFt = /* @__PURE__ */ x((t, e) => { return Zn(e, a), e.height = e.height + e.padding / 2, e.width = e.width + e.padding / 2, e.intersect = function(o) { return Qn.rect(e, o); }, n; -}, "forkJoin"), MFt = /* @__PURE__ */ x((t, e) => { +}, "forkJoin"), PFt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), n = r.insert("circle", ":first-child"), i = r.insert("circle", ":first-child"); return i.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), Zn(e, i), e.intersect = function(s) { return Qn.circle(e, 7, s); }, r; -}, "end"), DFt = /* @__PURE__ */ x((t, e) => { +}, "end"), NFt = /* @__PURE__ */ x((t, e) => { var A; const r = e.padding / 2, n = 4, i = 8; let s; @@ -70363,31 +70399,31 @@ var CFt = /* @__PURE__ */ x((t, e) => { }, a; }, "class_box"), yG = { rhombus: mG, - composite: SFt, + composite: CFt, question: mG, - rect: kFt, - labelRect: TFt, - rectWithTitle: CFt, - choice: dFt, - circle: _Ft, - doublecircle: AFt, - stadium: EFt, - hexagon: pFt, - block_arrow: gFt, - rect_left_inv_arrow: mFt, - lean_right: vFt, - lean_left: yFt, - trapezoid: bFt, - inv_trapezoid: xFt, - rect_right_inv_arrow: wFt, - cylinder: OFt, - start: RFt, - end: MFt, - note: fFt, - subroutine: LFt, + rect: TFt, + labelRect: EFt, + rectWithTitle: _Ft, + choice: gFt, + circle: LFt, + doublecircle: RFt, + stadium: AFt, + hexagon: mFt, + block_arrow: vFt, + rect_left_inv_arrow: yFt, + lean_right: bFt, + lean_left: xFt, + trapezoid: wFt, + inv_trapezoid: OFt, + rect_right_inv_arrow: kFt, + cylinder: SFt, + start: DFt, + end: PFt, + note: pFt, + subroutine: MFt, fork: vG, join: vG, - class_box: DFt + class_box: NFt }, Xg = {}, EI = /* @__PURE__ */ x(async (t, e, r) => { let n, i; if (e.link) { @@ -70396,9 +70432,9 @@ var CFt = /* @__PURE__ */ x((t, e) => { } else i = await yG[e.shape](t, e, r), n = i; return e.tooltip && i.attr("title", e.tooltip), e.class && i.attr("class", "node default " + e.class), Xg[e.id] = n, e.haveCallback && Xg[e.id].attr("class", Xg[e.id].attr("class") + " clickable"), n; -}, "insertNode"), PFt = /* @__PURE__ */ x((t, e) => { +}, "insertNode"), IFt = /* @__PURE__ */ x((t, e) => { Xg[e.id] = t; -}, "setNodeElem"), NFt = /* @__PURE__ */ x(() => { +}, "setNodeElem"), $Ft = /* @__PURE__ */ x(() => { Xg = {}; }, "clear"), HL = /* @__PURE__ */ x((t) => { const e = Xg[t.id]; @@ -70413,27 +70449,27 @@ var CFt = /* @__PURE__ */ x((t, e) => { "transform", "translate(" + (t.x + n - t.width / 2) + ", " + (t.y - t.height / 2 - r) + ")" ) : e.attr("transform", "translate(" + t.x + ", " + t.y + ")"), n; -}, "positionNode"), IFt = "flowchart-", bG = 0, Km = ke(), ed = /* @__PURE__ */ new Map(), Va = [], wb = /* @__PURE__ */ new Map(), Sh = [], _I = /* @__PURE__ */ new Map(), AI = /* @__PURE__ */ new Map(), Q5 = 0, ZL = !0, qo, uE, hE = [], fE = /* @__PURE__ */ x((t) => mt.sanitizeText(t, Km), "sanitizeText"), dE = /* @__PURE__ */ x(function(t) { - for (const e of ed.values()) +}, "positionNode"), BFt = "flowchart-", bG = 0, Km = ke(), td = /* @__PURE__ */ new Map(), Va = [], wb = /* @__PURE__ */ new Map(), Sh = [], _I = /* @__PURE__ */ new Map(), AI = /* @__PURE__ */ new Map(), Q5 = 0, ZL = !0, qo, uE, hE = [], fE = /* @__PURE__ */ x((t) => mt.sanitizeText(t, Km), "sanitizeText"), dE = /* @__PURE__ */ x(function(t) { + for (const e of td.values()) if (e.id === t) return e.domId; return t; -}, "lookUpDomId"), $Ft = /* @__PURE__ */ x(function(t, e, r, n, i, s, a = {}) { +}, "lookUpDomId"), FFt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a = {}) { if (!t || t.trim().length === 0) return; - let o, l = ed.get(t); + let o, l = td.get(t); l === void 0 && (l = { id: t, labelType: "text", - domId: IFt + t + "-" + bG, + domId: BFt + t + "-" + bG, styles: [], classes: [] - }, ed.set(t, l)), bG++, e !== void 0 ? (Km = ke(), o = fE(e.text.trim()), l.labelType = e.type, o.startsWith('"') && o.endsWith('"') && (o = o.substring(1, o.length - 1)), l.text = o) : l.text === void 0 && (l.text = t), r !== void 0 && (l.type = r), n != null && n.forEach(function(u) { + }, td.set(t, l)), bG++, e !== void 0 ? (Km = ke(), o = fE(e.text.trim()), l.labelType = e.type, o.startsWith('"') && o.endsWith('"') && (o = o.substring(1, o.length - 1)), l.text = o) : l.text === void 0 && (l.text = t), r !== void 0 && (l.type = r), n != null && n.forEach(function(u) { l.styles.push(u); }), i != null && i.forEach(function(u) { l.classes.push(u); }), s !== void 0 && (l.dir = s), l.props === void 0 ? l.props = a : a !== void 0 && Object.assign(l.props, a); -}, "addVertex"), BFt = /* @__PURE__ */ x(function(t, e, r) { +}, "addVertex"), zFt = /* @__PURE__ */ x(function(t, e, r) { var o; const s = { start: t, end: e, type: void 0, text: "", labelType: "text" }; H.info("abc78 Got edge...", s); @@ -70448,16 +70484,16 @@ Initialize mermaid with maxEdges set to a higher number to allow more edges. You cannot set this config via configuration inside the diagram as it is a secure config. You have to call mermaid.initialize.` ); -}, "addSingleLink"), FFt = /* @__PURE__ */ x(function(t, e, r) { +}, "addSingleLink"), QFt = /* @__PURE__ */ x(function(t, e, r) { H.info("addLink", t, e, r); for (const n of t) for (const i of e) - BFt(n, i, r); -}, "addLink"), zFt = /* @__PURE__ */ x(function(t, e) { + zFt(n, i, r); +}, "addLink"), UFt = /* @__PURE__ */ x(function(t, e) { t.forEach(function(r) { r === "default" ? Va.defaultInterpolate = e : Va[r].interpolate = e; }); -}, "updateLinkInterpolate"), QFt = /* @__PURE__ */ x(function(t, e) { +}, "updateLinkInterpolate"), VFt = /* @__PURE__ */ x(function(t, e) { t.forEach(function(r) { var n, i, s, a, o, l, u; if (typeof r == "number" && r >= Va.length) @@ -70466,7 +70502,7 @@ You have to call mermaid.initialize.` ); r === "default" ? Va.defaultStyle = e : (Va[r].style = e, ((s = (i = (n = Va[r]) == null ? void 0 : n.style) == null ? void 0 : i.length) != null ? s : 0) > 0 && !((o = (a = Va[r]) == null ? void 0 : a.style) != null && o.some((h) => h == null ? void 0 : h.startsWith("fill"))) && ((u = (l = Va[r]) == null ? void 0 : l.style) == null || u.push("fill:none"))); }); -}, "updateLink"), UFt = /* @__PURE__ */ x(function(t, e) { +}, "updateLink"), qFt = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = wb.get(r); n === void 0 && (n = { id: r, styles: [], textStyles: [] }, wb.set(r, n)), e != null && e.forEach(function(i) { @@ -70477,22 +70513,22 @@ You have to call mermaid.initialize.` n.styles.push(i); }); }); -}, "addClass"), VFt = /* @__PURE__ */ x(function(t) { +}, "addClass"), YFt = /* @__PURE__ */ x(function(t) { qo = t, /.*/.exec(qo) && (qo = "LR"), /.*v/.exec(qo) && (qo = "TB"), qo === "TD" && (qo = "TB"); }, "setDirection"), LI = /* @__PURE__ */ x(function(t, e) { for (const r of t.split(",")) { - const n = ed.get(r); + const n = td.get(r); n && n.classes.push(e); const i = _I.get(r); i && i.classes.push(e); } -}, "setClass"), qFt = /* @__PURE__ */ x(function(t, e) { +}, "setClass"), WFt = /* @__PURE__ */ x(function(t, e) { if (e !== void 0) { e = fE(e); for (const r of t.split(",")) AI.set(uE === "gen-1" ? dE(r) : r, e); } -}, "setTooltip"), YFt = /* @__PURE__ */ x(function(t, e, r) { +}, "setTooltip"), GFt = /* @__PURE__ */ x(function(t, e, r) { const n = dE(t); if (ke().securityLevel !== "loose" || e === void 0) return; @@ -70505,41 +70541,41 @@ You have to call mermaid.initialize.` } } i.length === 0 && i.push(t); - const s = ed.get(t); + const s = td.get(t); s && (s.haveCallback = !0, hE.push(function() { const a = document.querySelector(`[id="${n}"]`); a !== null && a.addEventListener( "click", function() { - gr.runFunc(e, ...i); + mr.runFunc(e, ...i); }, !1 ); })); -}, "setClickFun"), WFt = /* @__PURE__ */ x(function(t, e, r) { +}, "setClickFun"), XFt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - const i = ed.get(n); - i !== void 0 && (i.link = gr.formatUrl(e, Km), i.linkTarget = r); + const i = td.get(n); + i !== void 0 && (i.link = mr.formatUrl(e, Km), i.linkTarget = r); }), LI(t, "clickable"); -}, "setLink"), h0e = /* @__PURE__ */ x(function(t) { +}, "setLink"), f0e = /* @__PURE__ */ x(function(t) { return AI.get(t); -}, "getTooltip"), GFt = /* @__PURE__ */ x(function(t, e, r) { +}, "getTooltip"), HFt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - YFt(n, e, r); + GFt(n, e, r); }), LI(t, "clickable"); -}, "setClickEvent"), XFt = /* @__PURE__ */ x(function(t) { +}, "setClickEvent"), ZFt = /* @__PURE__ */ x(function(t) { hE.forEach(function(e) { e(t); }); -}, "bindFunctions"), f0e = /* @__PURE__ */ x(function() { +}, "bindFunctions"), d0e = /* @__PURE__ */ x(function() { return qo.trim(); -}, "getDirection"), d0e = /* @__PURE__ */ x(function() { - return ed; -}, "getVertices"), p0e = /* @__PURE__ */ x(function() { +}, "getDirection"), p0e = /* @__PURE__ */ x(function() { + return td; +}, "getVertices"), g0e = /* @__PURE__ */ x(function() { return Va; -}, "getEdges"), HFt = /* @__PURE__ */ x(function() { +}, "getEdges"), jFt = /* @__PURE__ */ x(function() { return wb; -}, "getClasses"), g0e = /* @__PURE__ */ x(function(t) { +}, "getClasses"), m0e = /* @__PURE__ */ x(function(t) { let e = ht(".mermaidTooltip"); (e._groups || e)[0][0] === null && (e = ht("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), ht(t).select("svg").selectAll("g.node").on("mouseover", function() { const i = ht(this); @@ -70551,14 +70587,14 @@ You have to call mermaid.initialize.` e.transition().duration(500).style("opacity", 0), ht(this).classed("hover", !1); }); }, "setupToolTips"); -hE.push(g0e); -var ZFt = /* @__PURE__ */ x(function(t = "gen-1") { - ed = /* @__PURE__ */ new Map(), wb = /* @__PURE__ */ new Map(), Va = [], hE = [g0e], Sh = [], _I = /* @__PURE__ */ new Map(), Q5 = 0, AI = /* @__PURE__ */ new Map(), ZL = !0, uE = t, Km = ke(), cs(); -}, "clear"), jFt = /* @__PURE__ */ x((t) => { +hE.push(m0e); +var KFt = /* @__PURE__ */ x(function(t = "gen-1") { + td = /* @__PURE__ */ new Map(), wb = /* @__PURE__ */ new Map(), Va = [], hE = [m0e], Sh = [], _I = /* @__PURE__ */ new Map(), Q5 = 0, AI = /* @__PURE__ */ new Map(), ZL = !0, uE = t, Km = ke(), cs(); +}, "clear"), JFt = /* @__PURE__ */ x((t) => { uE = t || "gen-2"; -}, "setGen"), KFt = /* @__PURE__ */ x(function() { +}, "setGen"), ezt = /* @__PURE__ */ x(function() { return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"; -}, "defaultStyle"), JFt = /* @__PURE__ */ x(function(t, e, r) { +}, "defaultStyle"), tzt = /* @__PURE__ */ x(function(t, e, r) { let n = t.text.trim(), i = r.text; t === r && /\s/.exec(r.text) && (n = void 0); function s(u) { @@ -70583,29 +70619,29 @@ var ZFt = /* @__PURE__ */ x(function(t = "gen-1") { dir: o, labelType: r.type }; - return H.info("Adding", l.id, l.nodes, l.dir), l.nodes = x0e(l, Sh).nodes, Sh.push(l), _I.set(n, l), n; -}, "addSubGraph"), ezt = /* @__PURE__ */ x(function(t) { + return H.info("Adding", l.id, l.nodes, l.dir), l.nodes = w0e(l, Sh).nodes, Sh.push(l), _I.set(n, l), n; +}, "addSubGraph"), rzt = /* @__PURE__ */ x(function(t) { for (const [e, r] of Sh.entries()) if (r.id === t) return e; return -1; -}, "getPosForId"), my = -1, m0e = [], v0e = /* @__PURE__ */ x(function(t, e) { +}, "getPosForId"), my = -1, v0e = [], y0e = /* @__PURE__ */ x(function(t, e) { const r = Sh[e].nodes; if (my = my + 1, my > 2e3) return { result: !1, count: 0 }; - if (m0e[my] = e, Sh[e].id === t) + if (v0e[my] = e, Sh[e].id === t) return { result: !0, count: 0 }; let n = 0, i = 1; for (; n < r.length; ) { - const s = ezt(r[n]); + const s = rzt(r[n]); if (s >= 0) { - const a = v0e(t, s); + const a = y0e(t, s); if (a.result) return { result: !0, @@ -70619,13 +70655,13 @@ var ZFt = /* @__PURE__ */ x(function(t = "gen-1") { result: !1, count: i }; -}, "indexNodes2"), tzt = /* @__PURE__ */ x(function(t) { - return m0e[t]; -}, "getDepthFirstPos"), rzt = /* @__PURE__ */ x(function() { - my = -1, Sh.length > 0 && v0e("none", Sh.length - 1); -}, "indexNodes"), y0e = /* @__PURE__ */ x(function() { +}, "indexNodes2"), nzt = /* @__PURE__ */ x(function(t) { + return v0e[t]; +}, "getDepthFirstPos"), izt = /* @__PURE__ */ x(function() { + my = -1, Sh.length > 0 && y0e("none", Sh.length - 1); +}, "indexNodes"), b0e = /* @__PURE__ */ x(function() { return Sh; -}, "getSubGraphs"), nzt = /* @__PURE__ */ x(() => ZL ? (ZL = !1, !0) : !1, "firstGraph"), izt = /* @__PURE__ */ x((t) => { +}, "getSubGraphs"), szt = /* @__PURE__ */ x(() => ZL ? (ZL = !1, !0) : !1, "firstGraph"), azt = /* @__PURE__ */ x((t) => { let e = t.trim(), r = "arrow_open"; switch (e[0]) { case "<": @@ -70640,13 +70676,13 @@ var ZFt = /* @__PURE__ */ x(function(t = "gen-1") { } let n = "normal"; return e.includes("=") && (n = "thick"), e.includes(".") && (n = "dotted"), { type: r, stroke: n }; -}, "destructStartLink"), szt = /* @__PURE__ */ x((t, e) => { +}, "destructStartLink"), ozt = /* @__PURE__ */ x((t, e) => { const r = e.length; let n = 0; for (let i = 0; i < r; ++i) e[i] === t && ++n; return n; -}, "countChar"), azt = /* @__PURE__ */ x((t) => { +}, "countChar"), lzt = /* @__PURE__ */ x((t) => { const e = t.trim(); let r = e.slice(0, -1), n = "arrow_open"; switch (e.slice(-1)) { @@ -70662,13 +70698,13 @@ var ZFt = /* @__PURE__ */ x(function(t = "gen-1") { } let i = "normal", s = r.length - 1; r.startsWith("=") && (i = "thick"), r.startsWith("~") && (i = "invisible"); - const a = szt(".", r); + const a = ozt(".", r); return a && (i = "dotted", s = a), { type: n, stroke: i, length: s }; -}, "destructEndLink"), ozt = /* @__PURE__ */ x((t, e) => { - const r = azt(t); +}, "destructEndLink"), czt = /* @__PURE__ */ x((t, e) => { + const r = lzt(t); let n; if (e) { - if (n = izt(e), n.stroke !== r.stroke) + if (n = azt(e), n.stroke !== r.stroke) return { type: "INVALID", stroke: "INVALID" }; if (n.type === "arrow_open") n.type = r.type; @@ -70680,22 +70716,22 @@ var ZFt = /* @__PURE__ */ x(function(t = "gen-1") { return n.type === "double_arrow" && (n.type = "double_arrow_point"), n.length = r.length, n; } return r; -}, "destructLink"), b0e = /* @__PURE__ */ x((t, e) => { +}, "destructLink"), x0e = /* @__PURE__ */ x((t, e) => { for (const r of t) if (r.nodes.includes(e)) return !0; return !1; -}, "exists"), x0e = /* @__PURE__ */ x((t, e) => { +}, "exists"), w0e = /* @__PURE__ */ x((t, e) => { const r = []; return t.nodes.forEach((n, i) => { - b0e(e, n) || r.push(t.nodes[i]); + x0e(e, n) || r.push(t.nodes[i]); }), { nodes: r }; -}, "makeUniq"), lzt = { - firstGraph: nzt -}, czt = /* @__PURE__ */ x((t) => { +}, "makeUniq"), uzt = { + firstGraph: szt +}, hzt = /* @__PURE__ */ x((t) => { var e; return t.type === "square" ? "squareRect" : t.type === "round" ? "roundedRect" : (e = t.type) != null ? e : "squareRect"; -}, "getTypeFromVertex"), uzt = /* @__PURE__ */ x((t, e) => t.find((r) => r.id === e), "findNode"), hzt = /* @__PURE__ */ x((t) => { +}, "getTypeFromVertex"), fzt = /* @__PURE__ */ x((t, e) => t.find((r) => r.id === e), "findNode"), dzt = /* @__PURE__ */ x((t) => { let e = "none", r = "arrow_point"; switch (t) { case "arrow_point": @@ -70710,9 +70746,9 @@ var ZFt = /* @__PURE__ */ x(function(t = "gen-1") { break; } return { arrowTypeStart: e, arrowTypeEnd: r }; -}, "destructEdgeType"), fzt = /* @__PURE__ */ x((t, e, r, n, i, s) => { +}, "destructEdgeType"), pzt = /* @__PURE__ */ x((t, e, r, n, i, s) => { var u, h; - const a = r.get(t.id), o = (u = n.get(t.id)) != null ? u : !1, l = uzt(e, t.id); + const a = r.get(t.id), o = (u = n.get(t.id)) != null ? u : !1, l = fzt(e, t.id); l ? (l.cssStyles = t.styles, l.cssCompiledStyles = mS(t.classes), l.cssClasses = t.classes.join(" ")) : e.push({ id: t.id, label: t.text, @@ -70722,14 +70758,14 @@ var ZFt = /* @__PURE__ */ x(function(t = "gen-1") { cssStyles: t.styles, cssCompiledStyles: mS(["default", "node", ...t.classes]), cssClasses: "default " + t.classes.join(" "), - shape: czt(t), + shape: hzt(t), dir: t.dir, domId: t.domId, isGroup: o, look: s, link: t.link, linkTarget: t.linkTarget, - tooltip: h0e(t.id) + tooltip: f0e(t.id) }); }, "addNodeFromVertex"); function mS(t) { @@ -70742,8 +70778,8 @@ function mS(t) { return e; } x(mS, "getCompiledStyles"); -var dzt = /* @__PURE__ */ x(() => { - const t = ke(), e = [], r = [], n = y0e(), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(); +var gzt = /* @__PURE__ */ x(() => { + const t = ke(), e = [], r = [], n = b0e(), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(); for (let l = n.length - 1; l >= 0; l--) { const u = n[l]; u.nodes.length > 0 && s.set(u.id, !0); @@ -70766,13 +70802,13 @@ var dzt = /* @__PURE__ */ x(() => { look: t.look }); } - d0e().forEach((l) => { - fzt(l, e, i, s, t, t.look || "classic"); + p0e().forEach((l) => { + pzt(l, e, i, s, t, t.look || "classic"); }); - const o = p0e(); + const o = g0e(); return o.forEach((l, u) => { var g, m; - const { arrowTypeStart: h, arrowTypeEnd: f } = hzt(l.type), d = [...(g = o.defaultStyle) != null ? g : []]; + const { arrowTypeStart: h, arrowTypeEnd: f } = dzt(l.type), d = [...(g = o.defaultStyle) != null ? g : []]; l.style && d.push(...l.style); const p = { id: nle(l.start, l.end, { counter: u, prefix: "L" }), @@ -70799,41 +70835,41 @@ var dzt = /* @__PURE__ */ x(() => { setAccTitle: us, getAccTitle: Ps, getAccDescription: Is, - getData: dzt, + getData: gzt, setAccDescription: Ns, - addVertex: $Ft, + addVertex: FFt, lookUpDomId: dE, - addLink: FFt, - updateLinkInterpolate: zFt, - updateLink: QFt, - addClass: UFt, - setDirection: VFt, + addLink: QFt, + updateLinkInterpolate: UFt, + updateLink: VFt, + addClass: qFt, + setDirection: YFt, setClass: LI, - setTooltip: qFt, - getTooltip: h0e, - setClickEvent: GFt, - setLink: WFt, - bindFunctions: XFt, - getDirection: f0e, - getVertices: d0e, - getEdges: p0e, - getClasses: HFt, - clear: ZFt, - setGen: jFt, - defaultStyle: KFt, - addSubGraph: JFt, - getDepthFirstPos: tzt, - indexNodes: rzt, - getSubGraphs: y0e, - destructLink: ozt, - lex: lzt, - exists: b0e, - makeUniq: x0e, + setTooltip: WFt, + getTooltip: f0e, + setClickEvent: HFt, + setLink: XFt, + bindFunctions: ZFt, + getDirection: d0e, + getVertices: p0e, + getEdges: g0e, + getClasses: jFt, + clear: KFt, + setGen: JFt, + defaultStyle: ezt, + addSubGraph: tzt, + getDepthFirstPos: nzt, + indexNodes: izt, + getSubGraphs: b0e, + destructLink: czt, + lex: uzt, + exists: x0e, + makeUniq: w0e, setDiagramTitle: Na, getDiagramTitle: $s -}, pzt = /* @__PURE__ */ x(function(t, e) { +}, mzt = /* @__PURE__ */ x(function(t, e) { return e.db.getClasses(); -}, "getClasses"), gzt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), vzt = /* @__PURE__ */ x(async function(t, e, r, n) { var p, g; H.info("REF0:"), H.info("Drawing state diagram (v2)", e); const { securityLevel: i, flowchart: s, layout: a } = ke(); @@ -70843,17 +70879,17 @@ var dzt = /* @__PURE__ */ x(() => { H.debug("Before getData: "); const u = n.db.getData(); H.debug("Data: ", u); - const h = r0e(e, i), f = f0e(); - u.type = n.type, u.layoutAlgorithm = rEt(a), u.layoutAlgorithm === "dagre" && a === "elk" && H.warn( + const h = n0e(e, i), f = d0e(); + u.type = n.type, u.layoutAlgorithm = nEt(a), u.layoutAlgorithm === "dagre" && a === "elk" && H.warn( "flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback." ), u.direction = f, u.nodeSpacing = (s == null ? void 0 : s.nodeSpacing) || 50, u.rankSpacing = (s == null ? void 0 : s.rankSpacing) || 50, u.markers = ["point", "circle", "cross"], u.diagramId = e, H.debug("REF1:", u), await Kle(u, h); const d = (g = (p = u.config.flowchart) == null ? void 0 : p.diagramPadding) != null ? g : 8; - gr.insertTitle( + mr.insertTitle( h, "flowchartTitleText", (s == null ? void 0 : s.titleTopMargin) || 0, n.db.getDiagramTitle() - ), n0e(h, d, "flowchart", (s == null ? void 0 : s.useMaxWidth) || !1); + ), i0e(h, d, "flowchart", (s == null ? void 0 : s.useMaxWidth) || !1); for (const m of u.nodes) { const v = ht(`#${e} [id="${m.id}"]`); if (!v || !m.link) @@ -70871,9 +70907,9 @@ var dzt = /* @__PURE__ */ x(() => { return O.node(); }); } -}, "draw"), mzt = { - getClasses: pzt, - draw: gzt +}, "draw"), yzt = { + getClasses: mzt, + draw: vzt }, jL = function() { var t = /* @__PURE__ */ x(function(lr, ut, Et, Pt) { for (Et = Et || {}, Pt = lr.length; Pt--; Et[lr[Pt]] = ut) @@ -71017,8 +71053,8 @@ var dzt = /* @__PURE__ */ x(() => { this.$ = be[me]; break; case 72: - var mr = rt.destructLink(be[me], be[me - 2]); - this.$ = { type: mr.type, stroke: mr.stroke, length: mr.length, text: be[me - 1] }; + var vr = rt.destructLink(be[me], be[me - 2]); + this.$ = { type: vr.type, stroke: vr.stroke, length: vr.length, text: be[me - 1] }; break; case 73: this.$ = { text: be[me], type: "text" }; @@ -71033,8 +71069,8 @@ var dzt = /* @__PURE__ */ x(() => { this.$ = { text: be[me], type: "markdown" }; break; case 77: - var mr = rt.destructLink(be[me]); - this.$ = { type: mr.type, stroke: mr.stroke, length: mr.length }; + var vr = rt.destructLink(be[me]); + this.$ = { type: vr.type, stroke: vr.stroke, length: vr.length }; break; case 78: this.$ = be[me - 1]; @@ -71171,7 +71207,7 @@ var dzt = /* @__PURE__ */ x(() => { } }, "parseError"), parse: /* @__PURE__ */ x(function(ut) { - var Et = this, Pt = [0], rt = [], er = [null], be = [], bn = this.table, me = "", mr = 0, Ba = 0, zs = 2, hv = 1, Xw = be.slice.call(arguments, 1), jn = Object.create(this.lexer), xc = { yy: {} }; + var Et = this, Pt = [0], rt = [], er = [null], be = [], bn = this.table, me = "", vr = 0, Ba = 0, zs = 2, hv = 1, Xw = be.slice.call(arguments, 1), jn = Object.create(this.lexer), xc = { yy: {} }; for (var Up in this.yy) Object.prototype.hasOwnProperty.call(this.yy, Up) && (xc.yy[Up] = this.yy[Up]); jn.setInput(ut, xc.yy), xc.yy.lexer = jn, xc.yy.parser = this, typeof jn.yylloc > "u" && (jn.yylloc = {}); @@ -71194,9 +71230,9 @@ var dzt = /* @__PURE__ */ x(() => { Fa = []; for (Tl in bn[da]) this.terminals_[Tl] && Tl > zs && Fa.push("'" + this.terminals_[Tl] + "'"); - jn.showPosition ? dv = "Parse error on line " + (mr + 1) + `: + jn.showPosition ? dv = "Parse error on line " + (vr + 1) + `: ` + jn.showPosition() + ` -Expecting ` + Fa.join(", ") + ", got '" + (this.terminals_[$n] || $n) + "'" : dv = "Parse error on line " + (mr + 1) + ": Unexpected " + ($n == hv ? "end of input" : "'" + (this.terminals_[$n] || $n) + "'"), this.parseError(dv, { +Expecting ` + Fa.join(", ") + ", got '" + (this.terminals_[$n] || $n) + "'" : dv = "Parse error on line " + (vr + 1) + ": Unexpected " + ($n == hv ? "end of input" : "'" + (this.terminals_[$n] || $n) + "'"), this.parseError(dv, { text: jn.match, token: this.terminals_[$n] || $n, line: jn.yylineno, @@ -71208,7 +71244,7 @@ Expecting ` + Fa.join(", ") + ", got '" + (this.terminals_[$n] || $n) + "'" : dv throw new Error("Parse Error: multiple actions possible at state: " + da + ", token: " + $n); switch (pa[0]) { case 1: - Pt.push($n), er.push(jn.yytext), be.push(jn.yylloc), Pt.push(pa[1]), $n = null, Ba = jn.yyleng, me = jn.yytext, mr = jn.yylineno, Vp = jn.yylloc; + Pt.push($n), er.push(jn.yytext), be.push(jn.yylloc), Pt.push(pa[1]), $n = null, Ba = jn.yyleng, me = jn.yytext, vr = jn.yylineno, Vp = jn.yylloc; break; case 2: if (Qo = this.productions_[pa[1]][1], Ru.$ = er[er.length - Qo], Ru._$ = { @@ -71222,7 +71258,7 @@ Expecting ` + Fa.join(", ") + ", got '" + (this.terminals_[$n] || $n) + "'" : dv ]), Td = this.performAction.apply(Ru, [ me, Ba, - mr, + vr, xc.yy, pa[1], er, @@ -71643,10 +71679,10 @@ Expecting ` + Fa.join(", ") + ", got '" + (this.terminals_[$n] || $n) + "'" : dv return x(xr, "Parser"), xr.prototype = Xe, Xe.Parser = xr, new xr(); }(); jL.parser = jL; -var vzt = jL, yzt = /* @__PURE__ */ x((t, e) => { +var bzt = jL, xzt = /* @__PURE__ */ x((t, e) => { const r = zse, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); return E0(n, i, s, e); -}, "fade"), bzt = /* @__PURE__ */ x((t) => `.label { +}, "fade"), wzt = /* @__PURE__ */ x((t) => `.label { font-family: ${t.fontFamily}; color: ${t.nodeTextColor || t.textColor}; } @@ -71726,7 +71762,7 @@ var vzt = jL, yzt = /* @__PURE__ */ x((t, e) => { /* For html labels only */ .labelBkg { - background-color: ${yzt(t.edgeLabelBackground, 0.5)}; + background-color: ${xzt(t.edgeLabelBackground, 0.5)}; // background-color: } @@ -71766,47 +71802,47 @@ var vzt = jL, yzt = /* @__PURE__ */ x((t, e) => { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), xzt = bzt, wzt = { - parser: vzt, +`, "getStyles"), Ozt = wzt, kzt = { + parser: bzt, db: FA, - renderer: mzt, - styles: xzt, + renderer: yzt, + styles: Ozt, init: /* @__PURE__ */ x((t) => { t.flowchart || (t.flowchart = {}), t.layout && VV({ layout: t.layout }), t.flowchart.arrowMarkerAbsolute = t.arrowMarkerAbsolute, VV({ flowchart: { arrowMarkerAbsolute: t.arrowMarkerAbsolute } }), FA.clear(), FA.setGen("gen-2"); }, "init") }; const RI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: wzt -}, Symbol.toStringTag, { value: "Module" })), Ozt = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; -function kzt(t) { - return typeof t == "string" && Ozt.test(t); + diagram: kzt +}, Symbol.toStringTag, { value: "Module" })), Szt = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; +function Tzt(t) { + return typeof t == "string" && Szt.test(t); } const ps = []; for (let t = 0; t < 256; ++t) ps.push((t + 256).toString(16).slice(1)); -function Szt(t, e = 0) { +function Czt(t, e = 0) { return ps[t[e + 0]] + ps[t[e + 1]] + ps[t[e + 2]] + ps[t[e + 3]] + "-" + ps[t[e + 4]] + ps[t[e + 5]] + "-" + ps[t[e + 6]] + ps[t[e + 7]] + "-" + ps[t[e + 8]] + ps[t[e + 9]] + "-" + ps[t[e + 10]] + ps[t[e + 11]] + ps[t[e + 12]] + ps[t[e + 13]] + ps[t[e + 14]] + ps[t[e + 15]]; } -function Tzt(t) { - if (!kzt(t)) +function Ezt(t) { + if (!Tzt(t)) throw TypeError("Invalid UUID"); let e; const r = new Uint8Array(16); return r[0] = (e = parseInt(t.slice(0, 8), 16)) >>> 24, r[1] = e >>> 16 & 255, r[2] = e >>> 8 & 255, r[3] = e & 255, r[4] = (e = parseInt(t.slice(9, 13), 16)) >>> 8, r[5] = e & 255, r[6] = (e = parseInt(t.slice(14, 18), 16)) >>> 8, r[7] = e & 255, r[8] = (e = parseInt(t.slice(19, 23), 16)) >>> 8, r[9] = e & 255, r[10] = (e = parseInt(t.slice(24, 36), 16)) / 1099511627776 & 255, r[11] = e / 4294967296 & 255, r[12] = e >>> 24 & 255, r[13] = e >>> 16 & 255, r[14] = e >>> 8 & 255, r[15] = e & 255, r; } -function Czt(t) { +function _zt(t) { t = unescape(encodeURIComponent(t)); const e = []; for (let r = 0; r < t.length; ++r) e.push(t.charCodeAt(r)); return e; } -const Ezt = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", _zt = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; -function Azt(t, e, r) { +const Azt = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Lzt = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; +function Rzt(t, e, r) { function n(i, s, a, o) { var l; - if (typeof i == "string" && (i = Czt(i)), typeof s == "string" && (s = Tzt(s)), ((l = s) === null || l === void 0 ? void 0 : l.length) !== 16) + if (typeof i == "string" && (i = _zt(i)), typeof s == "string" && (s = Ezt(s)), ((l = s) === null || l === void 0 ? void 0 : l.length) !== 16) throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)"); let u = new Uint8Array(16 + i.length); if (u.set(s), u.set(i, s.length), u = r(u), u[6] = u[6] & 15 | e, u[8] = u[8] & 63 | 128, a) { @@ -71815,15 +71851,15 @@ function Azt(t, e, r) { a[o + h] = u[h]; return a; } - return Szt(u); + return Czt(u); } try { n.name = t; } catch { } - return n.DNS = Ezt, n.URL = _zt, n; + return n.DNS = Azt, n.URL = Lzt, n; } -function Lzt(t, e, r, n) { +function Mzt(t, e, r, n) { switch (t) { case 0: return e & r ^ ~e & n; @@ -71838,7 +71874,7 @@ function Lzt(t, e, r, n) { function zA(t, e) { return t << e | t >>> 32 - e; } -function Rzt(t) { +function Dzt(t) { const e = [1518500249, 1859775393, 2400959708, 3395469782], r = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]; if (typeof t == "string") { const a = unescape(encodeURIComponent(t)); @@ -71864,14 +71900,14 @@ function Rzt(t) { o[p] = zA(o[p - 3] ^ o[p - 8] ^ o[p - 14] ^ o[p - 16], 1); let l = r[0], u = r[1], h = r[2], f = r[3], d = r[4]; for (let p = 0; p < 80; ++p) { - const g = Math.floor(p / 20), m = zA(l, 5) + Lzt(g, u, h, f) + d + e[g] + o[p] >>> 0; + const g = Math.floor(p / 20), m = zA(l, 5) + Mzt(g, u, h, f) + d + e[g] + o[p] >>> 0; d = f, f = h, h = zA(u, 30) >>> 0, u = l, l = m; } r[0] = r[0] + l >>> 0, r[1] = r[1] + u >>> 0, r[2] = r[2] + h >>> 0, r[3] = r[3] + f >>> 0, r[4] = r[4] + d >>> 0; } return [r[0] >> 24 & 255, r[0] >> 16 & 255, r[0] >> 8 & 255, r[0] & 255, r[1] >> 24 & 255, r[1] >> 16 & 255, r[1] >> 8 & 255, r[1] & 255, r[2] >> 24 & 255, r[2] >> 16 & 255, r[2] >> 8 & 255, r[2] & 255, r[3] >> 24 & 255, r[3] >> 16 & 255, r[3] >> 8 & 255, r[3] & 255, r[4] >> 24 & 255, r[4] >> 16 & 255, r[4] >> 8 & 255, r[4] & 255]; } -const Mzt = Azt("v5", 80, Rzt), Dzt = Mzt; +const Pzt = Rzt("v5", 80, Dzt), Nzt = Pzt; var KL = function() { var t = /* @__PURE__ */ x(function(A, E, R, _) { for (R = R || {}, _ = A.length; _--; R[A[_]] = E) @@ -72356,22 +72392,22 @@ Expecting ` + he.join(", ") + ", got '" + (this.terminals_[V] || V) + "'" : _e = return x(T, "Parser"), T.prototype = S, S.Parser = T, new T(); }(); KL.parser = KL; -var Pzt = KL, Kd = /* @__PURE__ */ new Map(), MI = [], Nzt = { +var Izt = KL, Kd = /* @__PURE__ */ new Map(), MI = [], $zt = { ZERO_OR_ONE: "ZERO_OR_ONE", ZERO_OR_MORE: "ZERO_OR_MORE", ONE_OR_MORE: "ONE_OR_MORE", ONLY_ONE: "ONLY_ONE", MD_PARENT: "MD_PARENT" -}, Izt = { +}, Bzt = { NON_IDENTIFYING: "NON_IDENTIFYING", IDENTIFYING: "IDENTIFYING" -}, w0e = /* @__PURE__ */ x(function(t, e = void 0) { +}, O0e = /* @__PURE__ */ x(function(t, e = void 0) { return Kd.has(t) ? !Kd.get(t).alias && e && (Kd.get(t).alias = e, H.info(`Add alias '${e}' to entity '${t}'`)) : (Kd.set(t, { attributes: [], alias: e }), H.info("Added new entity :", t)), Kd.get(t); -}, "addEntity"), $zt = /* @__PURE__ */ x(() => Kd, "getEntities"), Bzt = /* @__PURE__ */ x(function(t, e) { - let r = w0e(t), n; +}, "addEntity"), Fzt = /* @__PURE__ */ x(() => Kd, "getEntities"), zzt = /* @__PURE__ */ x(function(t, e) { + let r = O0e(t), n; for (n = e.length - 1; n >= 0; n--) r.attributes.push(e[n]), H.debug("Added attribute ", e[n].attributeName); -}, "addAttributes"), Fzt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "addAttributes"), Qzt = /* @__PURE__ */ x(function(t, e, r, n) { let i = { entityA: t, roleA: e, @@ -72379,18 +72415,18 @@ var Pzt = KL, Kd = /* @__PURE__ */ new Map(), MI = [], Nzt = { relSpec: n }; MI.push(i), H.debug("Added new relationship :", i); -}, "addRelationship"), zzt = /* @__PURE__ */ x(() => MI, "getRelationships"), Qzt = /* @__PURE__ */ x(function() { +}, "addRelationship"), Uzt = /* @__PURE__ */ x(() => MI, "getRelationships"), Vzt = /* @__PURE__ */ x(function() { Kd = /* @__PURE__ */ new Map(), MI = [], cs(); -}, "clear"), Uzt = { - Cardinality: Nzt, - Identification: Izt, +}, "clear"), qzt = { + Cardinality: $zt, + Identification: Bzt, getConfig: /* @__PURE__ */ x(() => ke().er, "getConfig"), - addEntity: w0e, - addAttributes: Bzt, - getEntities: $zt, - addRelationship: Fzt, - getRelationships: zzt, - clear: Qzt, + addEntity: O0e, + addAttributes: zzt, + getEntities: Fzt, + addRelationship: Qzt, + getRelationships: Uzt, + clear: Vzt, setAccTitle: us, getAccTitle: Ps, setAccDescription: Ns, @@ -72408,17 +72444,17 @@ var Pzt = KL, Kd = /* @__PURE__ */ new Map(), MI = [], Nzt = { ZERO_OR_MORE_END: "ZERO_OR_MORE_END", MD_PARENT_END: "MD_PARENT_END", MD_PARENT_START: "MD_PARENT_START" -}, Vzt = /* @__PURE__ */ x(function(t, e) { +}, Yzt = /* @__PURE__ */ x(function(t, e) { let r; t.append("defs").append("marker").attr("id", Al.MD_PARENT_START).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"), t.append("defs").append("marker").attr("id", Al.MD_PARENT_END).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"), t.append("defs").append("marker").attr("id", Al.ONLY_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M9,0 L9,18 M15,0 L15,18"), t.append("defs").append("marker").attr("id", Al.ONLY_ONE_END).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M3,0 L3,18 M9,0 L9,18"), r = t.append("defs").append("marker").attr("id", Al.ZERO_OR_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M9,0 L9,18"), r = t.append("defs").append("marker").attr("id", Al.ZERO_OR_ONE_END).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M21,0 L21,18"), t.append("defs").append("marker").attr("id", Al.ONE_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), t.append("defs").append("marker").attr("id", Al.ONE_OR_MORE_END).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"), r = t.append("defs").append("marker").attr("id", Al.ZERO_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18"), r = t.append("defs").append("marker").attr("id", Al.ZERO_OR_MORE_END).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18"); }, "insertMarkers"), Ll = { ERMarkers: Al, - insertMarkers: Vzt -}, qzt = /[^\dA-Za-z](\W)*/g, $i = {}, Ob = /* @__PURE__ */ new Map(), Yzt = /* @__PURE__ */ x(function(t) { + insertMarkers: Yzt +}, Wzt = /[^\dA-Za-z](\W)*/g, $i = {}, Ob = /* @__PURE__ */ new Map(), Gzt = /* @__PURE__ */ x(function(t) { const e = Object.keys(t); for (const r of e) $i[r] = t[r]; -}, "setConf"), Wzt = /* @__PURE__ */ x((t, e, r) => { +}, "setConf"), Xzt = /* @__PURE__ */ x((t, e, r) => { const n = $i.entityPadding / 3, i = $i.entityPadding / 3, s = $i.fontSize * 0.85, a = e.node().getBBox(), o = []; let l = !1, u = !1, h = 0, f = 0, d = 0, p = 0, g = a.height + n * 2, m = 1; r.forEach((w) => { @@ -72491,16 +72527,16 @@ var Pzt = KL, Kd = /* @__PURE__ */ new Map(), MI = [], Nzt = { } else b.height = Math.max($i.minEntityHeight, g), e.attr("transform", "translate(" + b.width / 2 + "," + b.height / 2 + ")"); return b; -}, "drawAttributes"), Gzt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawAttributes"), Hzt = /* @__PURE__ */ x(function(t, e, r) { const n = [...e.keys()]; let i; return n.forEach(function(s) { var g; - const a = k0e(s, "entity"); + const a = S0e(s, "entity"); Ob.set(s, a); const o = t.append("g").attr("id", a); i = i === void 0 ? a : i; - const l = "text-" + a, u = o.append("text").classed("er entityLabel", !0).attr("id", l).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "middle").style("font-family", ke().fontFamily).style("font-size", $i.fontSize + "px").text((g = e.get(s).alias) != null ? g : s), { width: h, height: f } = Wzt( + const l = "text-" + a, u = o.append("text").classed("er entityLabel", !0).attr("id", l).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "middle").style("font-family", ke().fontFamily).style("font-size", $i.fontSize + "px").text((g = e.get(s).alias) != null ? g : s), { width: h, height: f } = Xzt( o, u, e.get(s).attributes @@ -72512,31 +72548,31 @@ var Pzt = KL, Kd = /* @__PURE__ */ new Map(), MI = [], Nzt = { id: a }); }), i; -}, "drawEntities"), Xzt = /* @__PURE__ */ x(function(t, e) { +}, "drawEntities"), Zzt = /* @__PURE__ */ x(function(t, e) { e.nodes().forEach(function(r) { r !== void 0 && e.node(r) !== void 0 && t.select("#" + r).attr( "transform", "translate(" + (e.node(r).x - e.node(r).width / 2) + "," + (e.node(r).y - e.node(r).height / 2) + " )" ); }); -}, "adjustEntities"), O0e = /* @__PURE__ */ x(function(t) { +}, "adjustEntities"), k0e = /* @__PURE__ */ x(function(t) { return (t.entityA + t.roleA + t.entityB).replace(/\s/g, ""); -}, "getEdgeName"), Hzt = /* @__PURE__ */ x(function(t, e) { +}, "getEdgeName"), jzt = /* @__PURE__ */ x(function(t, e) { return t.forEach(function(r) { e.setEdge( Ob.get(r.entityA), Ob.get(r.entityB), { relationship: r }, - O0e(r) + k0e(r) ); }), t; -}, "addRelationships"), xG = 0, Zzt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addRelationships"), xG = 0, Kzt = /* @__PURE__ */ x(function(t, e, r, n, i) { xG++; const s = r.edge( Ob.get(e.entityA), Ob.get(e.entityB), - O0e(e) - ), a = Wf().x(function(m) { + k0e(e) + ), a = Gf().x(function(m) { return m.x; }).y(function(m) { return m.y; @@ -72597,7 +72633,7 @@ var Pzt = KL, Kd = /* @__PURE__ */ new Map(), MI = [], Nzt = { } const g = p.node().getBBox(); t.insert("rect", "#" + f).classed("er relationshipLabelBox", !0).attr("x", h.x - g.width / 2).attr("y", h.y - g.height / 2).attr("width", g.width).attr("height", g.height); -}, "drawRelationshipFromLayout"), jzt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawRelationshipFromLayout"), Jzt = /* @__PURE__ */ x(function(t, e, r, n) { $i = ke().er, H.info("Drawing ER diagram"); const i = ke().securityLevel; let s; @@ -72619,31 +72655,31 @@ var Pzt = KL, Kd = /* @__PURE__ */ new Map(), MI = [], Nzt = { }).setDefaultEdgeLabel(function() { return {}; }); - const u = Gzt(o, n.db.getEntities(), l), h = Hzt(n.db.getRelationships(), l); - Y1(l), Xzt(o, l), h.forEach(function(m) { - Zzt(o, m, l, u, n); + const u = Hzt(o, n.db.getEntities(), l), h = jzt(n.db.getRelationships(), l); + Y1(l), Zzt(o, l), h.forEach(function(m) { + Kzt(o, m, l, u, n); }); const f = $i.diagramPadding; - gr.insertTitle(o, "entityTitleText", $i.titleTopMargin, n.db.getDiagramTitle()); + mr.insertTitle(o, "entityTitleText", $i.titleTopMargin, n.db.getDiagramTitle()); const d = o.node().getBBox(), p = d.width + f * 2, g = d.height + f * 2; Ds(o, g, p, $i.useMaxWidth), o.attr("viewBox", `${d.x - f} ${d.y - f} ${p} ${g}`); -}, "draw"), Kzt = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c"; -function k0e(t = "", e = "") { - const r = t.replace(qzt, ""); - return `${JL(e)}${JL(r)}${Dzt( +}, "draw"), eQt = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c"; +function S0e(t = "", e = "") { + const r = t.replace(Wzt, ""); + return `${JL(e)}${JL(r)}${Nzt( t, - Kzt + eQt )}`; } -x(k0e, "generateId"); +x(S0e, "generateId"); function JL(t = "") { return t.length > 0 ? `${t}-` : ""; } x(JL, "strWithHyphen"); -var Jzt = { - setConf: Yzt, - draw: jzt -}, eQt = /* @__PURE__ */ x((t) => ` +var tQt = { + setConf: Gzt, + draw: Jzt +}, rQt = /* @__PURE__ */ x((t) => ` .entityBox { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; @@ -72688,15 +72724,15 @@ var Jzt = { stroke-width: 1; } -`, "getStyles"), tQt = eQt, rQt = { - parser: Pzt, - db: Uzt, - renderer: Jzt, - styles: tQt +`, "getStyles"), nQt = rQt, iQt = { + parser: Izt, + db: qzt, + renderer: tQt, + styles: nQt }; -const nQt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const sQt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: rQt + diagram: iQt }, Symbol.toStringTag, { value: "Module" })); function Sw(t, e) { var r, n, i; @@ -72719,13 +72755,13 @@ function ea(t) { function Gc(t) { return typeof t == "object" && t !== null && typeof t.$refText == "string"; } -function iQt(t) { +function aQt(t) { return typeof t == "object" && t !== null && typeof t.name == "string" && typeof t.type == "string" && typeof t.path == "string"; } function U5(t) { return typeof t == "object" && t !== null && ea(t.container) && Gc(t.reference) && typeof t.message == "string"; } -class S0e { +class T0e { constructor() { this.subtypes = {}, this.allSubtypes = {}; } @@ -72760,10 +72796,10 @@ class S0e { function Jm(t) { return typeof t == "object" && t !== null && Array.isArray(t.content); } -function T0e(t) { +function C0e(t) { return typeof t == "object" && t !== null && typeof t.tokenType == "object"; } -function C0e(t) { +function E0e(t) { return Jm(t) && typeof t.fullText == "string"; } class Xs { @@ -72835,7 +72871,7 @@ class Xs { const r = this.iterator(); let n = "", i, s = !1; do - i = r.next(), i.done || (s && (n += e), n += sQt(i.value)), s = !0; + i = r.next(), i.done || (s && (n += e), n += oQt(i.value)), s = !0; while (!i.done); return n; } @@ -73021,13 +73057,13 @@ class Xs { }); } } -function sQt(t) { +function oQt(t) { return typeof t == "string" ? t : typeof t > "u" ? "undefined" : typeof t.toString == "function" ? t.toString() : Object.prototype.toString.call(t); } function vS(t) { return !!t && typeof t[Symbol.iterator] == "function"; } -const aQt = new Xs(() => { +const lQt = new Xs(() => { }, () => Go), Go = Object.freeze({ done: !0, value: void 0 }); function Os(...t) { if (t.length === 1) { @@ -73058,7 +73094,7 @@ function Os(...t) { } } while (e.iterator || e.array || e.collIndex < t.length); return Go; - }) : aQt; + }) : lQt; } class yS extends Xs { constructor(e, r, n) { @@ -73110,7 +73146,7 @@ var eR; function tR(t) { return new yS(t, (e) => Jm(e) ? e.content : [], { includeRoot: !0 }); } -function oQt(t, e) { +function cQt(t, e) { for (; t.container; ) if (t = t.container, t === e) return !0; @@ -73139,28 +73175,28 @@ function bS(t) { length: r - e }; } -var nf; +var sf; (function(t) { t[t.Before = 0] = "Before", t[t.After = 1] = "After", t[t.OverlapFront = 2] = "OverlapFront", t[t.OverlapBack = 3] = "OverlapBack", t[t.Inside = 4] = "Inside"; -})(nf || (nf = {})); -function lQt(t, e) { +})(sf || (sf = {})); +function uQt(t, e) { if (t.end.line < e.start.line || t.end.line === e.start.line && t.end.character < t.start.character) - return nf.Before; + return sf.Before; if (t.start.line > e.end.line || t.start.line === e.end.line && t.start.character > e.end.character) - return nf.After; + return sf.After; const r = t.start.line > e.start.line || t.start.line === e.start.line && t.start.character >= e.start.character, n = t.end.line < e.end.line || t.end.line === e.end.line && t.end.character <= e.end.character; - return r && n ? nf.Inside : r ? nf.OverlapBack : nf.OverlapFront; -} -function cQt(t, e) { - return lQt(t, e) > nf.After; + return r && n ? sf.Inside : r ? sf.OverlapBack : sf.OverlapFront; } -const uQt = /^[\w\p{L}]$/u; function hQt(t, e) { + return uQt(t, e) > sf.After; +} +const fQt = /^[\w\p{L}]$/u; +function dQt(t, e) { if (t) { - const r = fQt(t, !0); + const r = pQt(t, !0); if (r && wG(r, e)) return r; - if (C0e(t)) { + if (E0e(t)) { const n = t.content.findIndex((i) => !i.hidden); for (let i = n - 1; i >= 0; i--) { const s = t.content[i]; @@ -73171,9 +73207,9 @@ function hQt(t, e) { } } function wG(t, e) { - return T0e(t) && e.includes(t.tokenType.name); + return C0e(t) && e.includes(t.tokenType.name); } -function fQt(t, e = !0) { +function pQt(t, e = !0) { for (; t.container; ) { const r = t.container; let n = r.content.indexOf(t); @@ -73186,7 +73222,7 @@ function fQt(t, e = !0) { t = r; } } -class E0e extends Error { +class _0e extends Error { constructor(e, r) { super(e ? `${r} at ${e.range.start.line}:${e.range.start.character}` : r); } @@ -73194,135 +73230,134 @@ class E0e extends Error { function pE(t) { throw new Error("Error! The input value was not handled."); } -const QA = "AbstractRule", UA = "AbstractType", OG = "Condition", dQt = "TypeDefinition", kG = "ValueLiteral", _0e = "AbstractElement"; -function pQt(t) { - return sn.isInstance(t, _0e); -} -const gQt = "ArrayLiteral", mQt = "ArrayType", A0e = "BooleanLiteral"; -function vQt(t) { +const QA = "AbstractRule", UA = "AbstractType", OG = "Condition", gQt = "TypeDefinition", kG = "ValueLiteral", A0e = "AbstractElement"; +function mQt(t) { return sn.isInstance(t, A0e); } -const L0e = "Conjunction"; -function yQt(t) { +const vQt = "ArrayLiteral", yQt = "ArrayType", L0e = "BooleanLiteral"; +function bQt(t) { return sn.isInstance(t, L0e); } -const R0e = "Disjunction"; -function bQt(t) { +const R0e = "Conjunction"; +function xQt(t) { return sn.isInstance(t, R0e); } -const xQt = "Grammar", M0e = "InferredType"; -function D0e(t) { +const M0e = "Disjunction"; +function wQt(t) { return sn.isInstance(t, M0e); } -const P0e = "Interface"; -function N0e(t) { - return sn.isInstance(t, P0e); +const OQt = "Grammar", D0e = "InferredType"; +function P0e(t) { + return sn.isInstance(t, D0e); } -const I0e = "Negation"; -function wQt(t) { - return sn.isInstance(t, I0e); +const N0e = "Interface"; +function I0e(t) { + return sn.isInstance(t, N0e); } -const OQt = "NumberLiteral", kQt = "Parameter", $0e = "ParameterReference"; -function SQt(t) { +const $0e = "Negation"; +function kQt(t) { return sn.isInstance(t, $0e); } -const B0e = "ParserRule"; -function wl(t) { +const SQt = "NumberLiteral", TQt = "Parameter", B0e = "ParameterReference"; +function CQt(t) { return sn.isInstance(t, B0e); } -const TQt = "ReferenceType", CQt = "ReturnType"; -function EQt(t) { - return sn.isInstance(t, CQt); -} -const F0e = "SimpleType"; -function _Qt(t) { +const F0e = "ParserRule"; +function wl(t) { return sn.isInstance(t, F0e); } -const AQt = "StringLiteral", nR = "TerminalRule"; +const EQt = "ReferenceType", _Qt = "ReturnType"; +function AQt(t) { + return sn.isInstance(t, _Qt); +} +const z0e = "SimpleType"; +function LQt(t) { + return sn.isInstance(t, z0e); +} +const RQt = "StringLiteral", nR = "TerminalRule"; function Ip(t) { return sn.isInstance(t, nR); } -const z0e = "Type"; -function Q0e(t) { - return sn.isInstance(t, z0e); +const Q0e = "Type"; +function U0e(t) { + return sn.isInstance(t, Q0e); } -const LQt = "UnionType", U0e = "Action"; +const MQt = "UnionType", V0e = "Action"; function gE(t) { - return sn.isInstance(t, U0e); -} -const V0e = "Alternatives"; -function q0e(t) { return sn.isInstance(t, V0e); } -const Y0e = "Assignment"; -function J0(t) { - return sn.isInstance(t, Y0e); +const q0e = "Alternatives"; +function Y0e(t) { + return sn.isInstance(t, q0e); } -const W0e = "CharacterRange"; -function RQt(t) { +const W0e = "Assignment"; +function J0(t) { return sn.isInstance(t, W0e); } -const G0e = "CrossReference"; -function PI(t) { +const G0e = "CharacterRange"; +function DQt(t) { return sn.isInstance(t, G0e); } -const X0e = "EndOfFile"; -function MQt(t) { +const X0e = "CrossReference"; +function PI(t) { return sn.isInstance(t, X0e); } -const H0e = "Group"; -function NI(t) { +const H0e = "EndOfFile"; +function PQt(t) { return sn.isInstance(t, H0e); } -const Z0e = "Keyword"; -function ep(t) { +const Z0e = "Group"; +function NI(t) { return sn.isInstance(t, Z0e); } -const j0e = "NegatedToken"; -function DQt(t) { +const j0e = "Keyword"; +function ep(t) { return sn.isInstance(t, j0e); } -const K0e = "RegexToken"; -function PQt(t) { +const K0e = "NegatedToken"; +function NQt(t) { return sn.isInstance(t, K0e); } -const J0e = "RuleCall"; -function tp(t) { +const J0e = "RegexToken"; +function IQt(t) { return sn.isInstance(t, J0e); } -const epe = "TerminalAlternatives"; -function NQt(t) { +const epe = "RuleCall"; +function tp(t) { return sn.isInstance(t, epe); } -const tpe = "TerminalGroup"; -function IQt(t) { +const tpe = "TerminalAlternatives"; +function $Qt(t) { return sn.isInstance(t, tpe); } -const rpe = "TerminalRuleCall"; -function npe(t) { +const rpe = "TerminalGroup"; +function BQt(t) { return sn.isInstance(t, rpe); } -const ipe = "UnorderedGroup"; -function spe(t) { - return sn.isInstance(t, ipe); +const npe = "TerminalRuleCall"; +function ipe(t) { + return sn.isInstance(t, npe); } -const ape = "UntilToken"; -function $Qt(t) { - return sn.isInstance(t, ape); +const spe = "UnorderedGroup"; +function ape(t) { + return sn.isInstance(t, spe); } -const ope = "Wildcard"; -function BQt(t) { +const ope = "UntilToken"; +function FQt(t) { return sn.isInstance(t, ope); } -class lpe extends S0e { +const lpe = "Wildcard"; +function zQt(t) { + return sn.isInstance(t, lpe); +} +class cpe extends T0e { getAllTypes() { return ["AbstractElement", "AbstractRule", "AbstractType", "Action", "Alternatives", "ArrayLiteral", "ArrayType", "Assignment", "BooleanLiteral", "CharacterRange", "Condition", "Conjunction", "CrossReference", "Disjunction", "EndOfFile", "Grammar", "GrammarImport", "Group", "InferredType", "Interface", "Keyword", "NamedArgument", "NegatedToken", "Negation", "NumberLiteral", "Parameter", "ParameterReference", "ParserRule", "ReferenceType", "RegexToken", "ReturnType", "RuleCall", "SimpleType", "StringLiteral", "TerminalAlternatives", "TerminalGroup", "TerminalRule", "TerminalRuleCall", "Type", "TypeAttribute", "TypeDefinition", "UnionType", "UnorderedGroup", "UntilToken", "ValueLiteral", "Wildcard"]; } computeIsSubtype(e, r) { switch (e) { - case U0e: case V0e: - case Y0e: + case q0e: case W0e: case G0e: case X0e: @@ -73334,31 +73369,32 @@ class lpe extends S0e { case epe: case tpe: case rpe: - case ipe: - case ape: + case npe: + case spe: case ope: - return this.isSubtype(_0e, r); - case gQt: - case OQt: - case AQt: + case lpe: + return this.isSubtype(A0e, r); + case vQt: + case SQt: + case RQt: return this.isSubtype(kG, r); - case mQt: - case TQt: - case F0e: - case LQt: - return this.isSubtype(dQt, r); - case A0e: - return this.isSubtype(OG, r) || this.isSubtype(kG, r); + case yQt: + case EQt: + case z0e: + case MQt: + return this.isSubtype(gQt, r); case L0e: + return this.isSubtype(OG, r) || this.isSubtype(kG, r); case R0e: - case I0e: + case M0e: case $0e: + case B0e: return this.isSubtype(OG, r); - case M0e: - case P0e: - case z0e: + case D0e: + case N0e: + case Q0e: return this.isSubtype(UA, r); - case B0e: + case F0e: return this.isSubtype(QA, r) || this.isSubtype(UA, r); case nR: return this.isSubtype(QA, r); @@ -73380,10 +73416,10 @@ class lpe extends S0e { case "RuleCall:rule": return QA; case "Grammar:usedGrammars": - return xQt; + return OQt; case "NamedArgument:parameter": case "ParameterReference:parameter": - return kQt; + return TQt; case "TerminalRuleCall:rule": return nR; default: @@ -73764,8 +73800,8 @@ class lpe extends S0e { } } } -const sn = new lpe(); -function FQt(t) { +const sn = new cpe(); +function QQt(t) { for (const [e, r] of Object.entries(t)) e.startsWith("$") || (Array.isArray(r) ? r.forEach((n, i) => { ea(n) && (n.$container = t, n.$containerProperty = e, n.$containerIndex = i); @@ -73780,12 +73816,12 @@ function mE(t, e) { } } function fu(t) { - const r = zQt(t).$document; + const r = UQt(t).$document; if (!r) throw new Error("AST node has no document."); return r; } -function zQt(t) { +function UQt(t) { for (; t.$container; ) t = t.$container; return t; @@ -73838,9 +73874,9 @@ function iR(t, e) { if (!e) return !0; const n = (r = t.$cstNode) === null || r === void 0 ? void 0 : r.range; - return n ? cQt(n, e) : !1; + return n ? hQt(n, e) : !1; } -function cpe(t) { +function upe(t) { return new Xs(() => ({ keys: Object.keys(t), keyIndex: 0, @@ -73866,15 +73902,15 @@ function cpe(t) { return Go; }); } -function QQt(t, e) { +function VQt(t, e) { const r = t.getTypeMetaData(e.$type), n = e; for (const i of r.properties) - i.defaultValue !== void 0 && n[i.name] === void 0 && (n[i.name] = upe(i.defaultValue)); + i.defaultValue !== void 0 && n[i.name] === void 0 && (n[i.name] = hpe(i.defaultValue)); } -function upe(t) { - return Array.isArray(t) ? [...t.map(upe)] : t; +function hpe(t) { + return Array.isArray(t) ? [...t.map(hpe)] : t; } -function dr(t) { +function pr(t) { return t.charCodeAt(0); } function VA(t, e) { @@ -73892,50 +73928,50 @@ function Kp(t) { throw Error("Internal Error - Should never get here!"); return !0; } -function UQt() { +function qQt() { throw Error("Internal Error - Should never get here!"); } function SG(t) { return t.type === "Character"; } const xS = []; -for (let t = dr("0"); t <= dr("9"); t++) +for (let t = pr("0"); t <= pr("9"); t++) xS.push(t); -const wS = [dr("_")].concat(xS); -for (let t = dr("a"); t <= dr("z"); t++) +const wS = [pr("_")].concat(xS); +for (let t = pr("a"); t <= pr("z"); t++) wS.push(t); -for (let t = dr("A"); t <= dr("Z"); t++) +for (let t = pr("A"); t <= pr("Z"); t++) wS.push(t); const TG = [ - dr(" "), - dr("\f"), - dr(` + pr(" "), + pr("\f"), + pr(` `), - dr("\r"), - dr(" "), - dr("\v"), - dr(" "), - dr("\xA0"), - dr("\u1680"), - dr("\u2000"), - dr("\u2001"), - dr("\u2002"), - dr("\u2003"), - dr("\u2004"), - dr("\u2005"), - dr("\u2006"), - dr("\u2007"), - dr("\u2008"), - dr("\u2009"), - dr("\u200A"), - dr("\u2028"), - dr("\u2029"), - dr("\u202F"), - dr("\u205F"), - dr("\u3000"), - dr("\uFEFF") -], VQt = /[0-9a-fA-F]/, v4 = /[0-9]/, qQt = /[1-9]/; -class hpe { + pr("\r"), + pr(" "), + pr("\v"), + pr(" "), + pr("\xA0"), + pr("\u1680"), + pr("\u2000"), + pr("\u2001"), + pr("\u2002"), + pr("\u2003"), + pr("\u2004"), + pr("\u2005"), + pr("\u2006"), + pr("\u2007"), + pr("\u2008"), + pr("\u2009"), + pr("\u200A"), + pr("\u2028"), + pr("\u2029"), + pr("\u202F"), + pr("\u205F"), + pr("\u3000"), + pr("\uFEFF") +], YQt = /[0-9a-fA-F]/, v4 = /[0-9]/, WQt = /[1-9]/; +class fpe { constructor() { this.idx = 0, this.input = "", this.groupIdx = 0; } @@ -74047,7 +74083,7 @@ class hpe { loc: this.loc(e) }; } - return UQt(); + return qQt(); } quantifier(e = !1) { let r; @@ -74123,8 +74159,8 @@ class hpe { return this.consumeChar("."), { type: "Set", complement: !0, - value: [dr(` -`), dr("\r"), dr("\u2028"), dr("\u2029")] + value: [pr(` +`), pr("\r"), pr("\u2028"), pr("\u2029")] }; } atomEscape() { @@ -74196,20 +74232,20 @@ class hpe { let e; switch (this.popChar()) { case "f": - e = dr("\f"); + e = pr("\f"); break; case "n": - e = dr(` + e = pr(` `); break; case "r": - e = dr("\r"); + e = pr("\r"); break; case "t": - e = dr(" "); + e = pr(" "); break; case "v": - e = dr("\v"); + e = pr("\v"); break; } if (Kp(e)) @@ -74223,7 +74259,7 @@ class hpe { return { type: "Character", value: e.toUpperCase().charCodeAt(0) - 64 }; } nulCharacterAtom() { - return this.consumeChar("0"), { type: "Character", value: dr("\0") }; + return this.consumeChar("0"), { type: "Character", value: pr("\0") }; } hexEscapeSequenceAtom() { return this.consumeChar("x"), this.parseHexDigits(2); @@ -74233,7 +74269,7 @@ class hpe { } identityEscapeAtom() { const e = this.popChar(); - return { type: "Character", value: dr(e) }; + return { type: "Character", value: pr(e) }; } classPatternCharacterAtom() { switch (this.peekChar()) { @@ -74247,7 +74283,7 @@ class hpe { throw Error("TBD"); default: const e = this.popChar(); - return { type: "Character", value: dr(e) }; + return { type: "Character", value: pr(e) }; } } characterClass() { @@ -74263,7 +74299,7 @@ class hpe { throw Error("Range out of order in character class"); e.push({ from: n.value, to: i.value }); } else - VA(n.value, e), e.push(dr("-")), VA(i.value, e); + VA(n.value, e), e.push(pr("-")), VA(i.value, e); } else VA(n.value, e); } @@ -74287,7 +74323,7 @@ class hpe { classEscape() { switch (this.consumeChar("\\"), this.peekChar()) { case "b": - return this.consumeChar("b"), { type: "Character", value: dr("\b") }; + return this.consumeChar("b"), { type: "Character", value: pr("\b") }; case "d": case "D": case "s": @@ -74334,7 +74370,7 @@ class hpe { } positiveInteger() { let e = this.popChar(); - if (qQt.test(e) === !1) + if (WQt.test(e) === !1) throw Error("Expecting a positive integer"); for (; v4.test(this.peekChar(0)); ) e += this.popChar(); @@ -74369,7 +74405,7 @@ class hpe { case "|": throw Error("TBD"); default: - return { type: "Character", value: dr(e) }; + return { type: "Character", value: pr(e) }; } } isRegExpFlag() { @@ -74476,7 +74512,7 @@ class hpe { let r = ""; for (let i = 0; i < e; i++) { const s = this.popChar(); - if (VQt.test(s) === !1) + if (YQt.test(s) === !1) throw Error("Expecting a HexDecimal digits"); r += s; } @@ -74590,8 +74626,8 @@ class vE { visitQuantifier(e) { } } -const YQt = /\r?\n/gm, WQt = new hpe(); -class GQt extends vE { +const GQt = /\r?\n/gm, XQt = new fpe(); +class HQt extends vE { constructor() { super(...arguments), this.isStarting = !0, this.endRegexpStack = [], this.multiline = !1; } @@ -74631,10 +74667,10 @@ class GQt extends vE { e.type === "Group" && e.quantifier || super.visitChildren(e); } } -const qA = new GQt(); -function XQt(t) { +const qA = new HQt(); +function ZQt(t) { try { - return typeof t == "string" && (t = new RegExp(t)), t = t.toString(), qA.reset(t), qA.visit(WQt.pattern(t)), qA.multiline; + return typeof t == "string" && (t = new RegExp(t)), t = t.toString(), qA.reset(t), qA.visit(XQt.pattern(t)), qA.multiline; } catch { return !1; } @@ -74645,14 +74681,14 @@ function CG(t) { function yE(t) { return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } -function HQt(t) { +function jQt(t) { return Array.prototype.map.call(t, (e) => /\w/.test(e) ? `[${e.toLowerCase()}${e.toUpperCase()}]` : yE(e)).join(""); } -function ZQt(t, e) { - const r = jQt(t), n = e.match(r); +function KQt(t, e) { + const r = JQt(t), n = e.match(r); return !!n && n[0].length > 0; } -function jQt(t) { +function JQt(t) { typeof t == "string" && (t = new RegExp(t)); const e = t, r = t.source; let n = 0; @@ -74740,47 +74776,47 @@ function jQt(t) { } return new RegExp(i(), t.flags); } -function KQt(t) { +function eUt(t) { return t.rules.find((e) => wl(e) && e.entry); } -function JQt(t) { +function tUt(t) { return t.rules.filter((e) => Ip(e) && e.hidden); } -function fpe(t, e) { - const r = /* @__PURE__ */ new Set(), n = KQt(t); +function dpe(t, e) { + const r = /* @__PURE__ */ new Set(), n = eUt(t); if (!n) return new Set(t.rules); - const i = [n].concat(JQt(t)); + const i = [n].concat(tUt(t)); for (const a of i) - dpe(a, r, e); + ppe(a, r, e); const s = /* @__PURE__ */ new Set(); for (const a of t.rules) (r.has(a.name) || Ip(a) && a.hidden) && s.add(a); return s; } -function dpe(t, e, r) { +function ppe(t, e, r) { e.add(t.name), Tw(t).forEach((n) => { - if (tp(n) || r && npe(n)) { + if (tp(n) || r && ipe(n)) { const i = n.rule.ref; - i && !e.has(i.name) && dpe(i, e, r); + i && !e.has(i.name) && ppe(i, e, r); } }); } -function eUt(t) { +function rUt(t) { if (t.terminal) return t.terminal; if (t.type.ref) { - const e = gpe(t.type.ref); + const e = mpe(t.type.ref); return e == null ? void 0 : e.terminal; } } -function tUt(t) { +function nUt(t) { return t.hidden && !FI(t).test(" "); } -function rUt(t, e) { +function iUt(t, e) { return !t || !e ? [] : $I(t, e, t.astNode, !0); } -function ppe(t, e, r) { +function gpe(t, e, r) { if (!t || !e) return; const n = $I(t, e, t.astNode, !0); @@ -74795,14 +74831,14 @@ function $I(t, e, r, n) { } return Jm(t) && t.astNode === r ? t.content.flatMap((i) => $I(i, e, r, !1)) : []; } -function nUt(t, e, r) { +function sUt(t, e, r) { if (!t) return; - const n = iUt(t, e, t == null ? void 0 : t.astNode); + const n = aUt(t, e, t == null ? void 0 : t.astNode); if (n.length !== 0) return r !== void 0 ? r = Math.max(0, Math.min(r, n.length - 1)) : r = 0, n[r]; } -function iUt(t, e, r) { +function aUt(t, e, r) { if (t.astNode !== r) return []; if (ep(t.grammarSource) && t.grammarSource.value === e) @@ -74818,7 +74854,7 @@ function iUt(t, e, r) { while (!i.done); return s; } -function sUt(t) { +function oUt(t) { var e; const r = t.astNode; for (; r === ((e = t.container) === null || e === void 0 ? void 0 : e.astNode); ) { @@ -74828,15 +74864,15 @@ function sUt(t) { t = t.container; } } -function gpe(t) { +function mpe(t) { let e = t; - return D0e(e) && (gE(e.$container) ? e = e.$container.$container : wl(e.$container) ? e = e.$container : pE(e.$container)), mpe(t, e, /* @__PURE__ */ new Map()); + return P0e(e) && (gE(e.$container) ? e = e.$container.$container : wl(e.$container) ? e = e.$container : pE(e.$container)), vpe(t, e, /* @__PURE__ */ new Map()); } -function mpe(t, e, r) { +function vpe(t, e, r) { var n; function i(s, a) { let o; - return mE(s, J0) || (o = mpe(a, a, r)), r.set(t, o), o; + return mE(s, J0) || (o = vpe(a, a, r)), r.set(t, o), o; } if (r.has(t)) return r.get(t); @@ -74846,20 +74882,20 @@ function mpe(t, e, r) { return r.set(t, s), s; if (tp(s) && wl(s.rule.ref)) return i(s, s.rule.ref); - if (_Qt(s) && ((n = s.typeRef) === null || n === void 0 ? void 0 : n.ref)) + if (LQt(s) && ((n = s.typeRef) === null || n === void 0 ? void 0 : n.ref)) return i(s, s.typeRef.ref); } } function BI(t) { - return vpe(t, /* @__PURE__ */ new Set()); + return ype(t, /* @__PURE__ */ new Set()); } -function vpe(t, e) { +function ype(t, e) { if (e.has(t)) return !0; e.add(t); for (const r of Tw(t)) if (tp(r)) { - if (!r.rule.ref || wl(r.rule.ref) && !vpe(r.rule.ref, e)) + if (!r.rule.ref || wl(r.rule.ref) && !ype(r.rule.ref, e)) return !1; } else { if (J0(r)) @@ -74869,7 +74905,7 @@ function vpe(t, e) { } return Boolean(t.definition); } -function ype(t) { +function bpe(t) { if (t.inferredType) return t.inferredType.name; if (t.dataType) @@ -74879,7 +74915,7 @@ function ype(t) { if (e) { if (wl(e)) return e.name; - if (N0e(e) || Q0e(e)) + if (I0e(e) || U0e(e)) return e.name; } } @@ -74887,27 +74923,27 @@ function ype(t) { function bE(t) { var e; if (wl(t)) - return BI(t) ? t.name : (e = ype(t)) !== null && e !== void 0 ? e : t.name; - if (N0e(t) || Q0e(t) || EQt(t)) + return BI(t) ? t.name : (e = bpe(t)) !== null && e !== void 0 ? e : t.name; + if (I0e(t) || U0e(t) || AQt(t)) return t.name; if (gE(t)) { - const r = aUt(t); + const r = lUt(t); if (r) return r; - } else if (D0e(t)) + } else if (P0e(t)) return t.name; throw new Error("Cannot get name of Unknown Type"); } -function aUt(t) { +function lUt(t) { var e; if (t.inferredType) return t.inferredType.name; if (!((e = t.type) === null || e === void 0) && e.ref) return bE(t.type.ref); } -function oUt(t) { +function cUt(t) { var e, r, n; - return Ip(t) ? (r = (e = t.type) === null || e === void 0 ? void 0 : e.name) !== null && r !== void 0 ? r : "string" : BI(t) ? t.name : (n = ype(t)) !== null && n !== void 0 ? n : t.name; + return Ip(t) ? (r = (e = t.type) === null || e === void 0 ? void 0 : e.name) !== null && r !== void 0 ? r : "string" : BI(t) ? t.name : (n = bpe(t)) !== null && n !== void 0 ? n : t.name; } function FI(t) { const e = { @@ -74919,13 +74955,13 @@ function FI(t) { } const zI = /[\s\S]/.source; function W1(t, e) { - if (NQt(t)) - return lUt(t); - if (IQt(t)) - return cUt(t); - if (RQt(t)) - return fUt(t); - if (npe(t)) { + if ($Qt(t)) + return uUt(t); + if (BQt(t)) + return hUt(t); + if (DQt(t)) + return pUt(t); + if (ipe(t)) { const r = t.rule.ref; if (!r) throw new Error("Missing rule reference."); @@ -74934,11 +74970,11 @@ function W1(t, e) { lookahead: t.lookahead }); } else { - if (DQt(t)) - return hUt(t); - if ($Qt(t)) - return uUt(t); - if (PQt(t)) { + if (NQt(t)) + return dUt(t); + if (FQt(t)) + return fUt(t); + if (IQt(t)) { const r = t.regex.lastIndexOf("/"), n = t.regex.substring(1, r), i = t.regex.substring(r + 1); return e && (e.i = i.includes("i"), e.s = i.includes("s"), e.u = i.includes("u")), ah(n, { cardinality: t.cardinality, @@ -74946,7 +74982,7 @@ function W1(t, e) { wrap: !1 }); } else { - if (BQt(t)) + if (zQt(t)) return ah(zI, { cardinality: t.cardinality, lookahead: t.lookahead @@ -74955,31 +74991,31 @@ function W1(t, e) { } } } -function lUt(t) { +function uUt(t) { return ah(t.elements.map((e) => W1(e)).join("|"), { cardinality: t.cardinality, lookahead: t.lookahead }); } -function cUt(t) { +function hUt(t) { return ah(t.elements.map((e) => W1(e)).join(""), { cardinality: t.cardinality, lookahead: t.lookahead }); } -function uUt(t) { +function fUt(t) { return ah(`${zI}*?${W1(t.terminal)}`, { cardinality: t.cardinality, lookahead: t.lookahead }); } -function hUt(t) { +function dUt(t) { return ah(`(?!${W1(t.terminal)})${zI}*?`, { cardinality: t.cardinality, lookahead: t.lookahead }); } -function fUt(t) { +function pUt(t) { return t.right ? ah(`[${YA(t.left)}-${YA(t.right)}]`, { cardinality: t.cardinality, lookahead: t.lookahead, @@ -74997,26 +75033,26 @@ function ah(t, e) { var r; return (e.wrap !== !1 || e.lookahead) && (t = `(${(r = e.lookahead) !== null && r !== void 0 ? r : ""}${t})`), e.cardinality ? `${t}${e.cardinality}` : t; } -function dUt(t) { +function gUt(t) { const e = [], r = t.Grammar; for (const n of r.rules) - Ip(n) && tUt(n) && XQt(FI(n)) && e.push(n.name); + Ip(n) && nUt(n) && ZQt(FI(n)) && e.push(n.name); return { multilineCommentRules: e, - nameRegexp: uQt + nameRegexp: fQt }; } function sR(t) { console && console.error && console.error(`Error: ${t}`); } -function bpe(t) { +function xpe(t) { console && console.warn && console.warn(`Warning: ${t}`); } -function xpe(t) { +function wpe(t) { const e = new Date().getTime(), r = t(); return { time: new Date().getTime() - e, value: r }; } -function wpe(t) { +function Ope(t) { function e() { } e.prototype = t; @@ -75026,10 +75062,10 @@ function wpe(t) { } return n(), n(), t; } -function pUt(t) { - return gUt(t) ? t.LABEL : t.name; +function mUt(t) { + return vUt(t) ? t.LABEL : t.name; } -function gUt(t) { +function vUt(t) { return ao(t.LABEL) && t.LABEL !== ""; } class Eu { @@ -75115,7 +75151,7 @@ class In { e.visit(this); } } -function mUt(t) { +function yUt(t) { return St(t, V5); } function V5(t) { @@ -75177,7 +75213,7 @@ function V5(t) { const r = { type: "Terminal", name: t.terminalType.name, - label: pUt(t.terminalType), + label: mUt(t.terminalType), idx: t.idx }; ao(t.label) && (r.terminalLabel = t.label); @@ -75244,13 +75280,13 @@ class X1 { visitRule(e) { } } -function vUt(t) { +function bUt(t) { return t instanceof oo || t instanceof _s || t instanceof ei || t instanceof Bo || t instanceof Fo || t instanceof po || t instanceof In || t instanceof G1; } function OS(t, e = []) { - return t instanceof _s || t instanceof ei || t instanceof po ? !0 : t instanceof go ? Cde(t.definition, (n) => OS(n, e)) : t instanceof Ma && $a(e, t) ? !1 : t instanceof Eu ? (t instanceof Ma && e.push(t), Hl(t.definition, (n) => OS(n, e))) : !1; + return t instanceof _s || t instanceof ei || t instanceof po ? !0 : t instanceof go ? Ede(t.definition, (n) => OS(n, e)) : t instanceof Ma && $a(e, t) ? !1 : t instanceof Eu ? (t instanceof Ma && e.push(t), Hl(t.definition, (n) => OS(n, e))) : !1; } -function yUt(t) { +function xUt(t) { return t instanceof go; } function Pc(t) { @@ -75351,14 +75387,14 @@ function Cw(t) { if (t instanceof Ma) return Cw(t.referencedRule); if (t instanceof In) + return kUt(t); + if (bUt(t)) return wUt(t); - if (vUt(t)) - return bUt(t); - if (yUt(t)) - return xUt(t); + if (xUt(t)) + return OUt(t); throw Error("non exhaustive match"); } -function bUt(t) { +function wUt(t) { let e = []; const r = t.definition; let n = 0, i = r.length > n, s, a = !0; @@ -75366,15 +75402,15 @@ function bUt(t) { s = r[n], a = OS(s), e = e.concat(Cw(s)), n = n + 1, i = r.length > n; return vI(e); } -function xUt(t) { +function OUt(t) { const e = St(t.definition, (r) => Cw(r)); return vI(ss(e)); } -function wUt(t) { +function kUt(t) { return [t.terminalType]; } -const Ope = "_~IN~_"; -class OUt extends xE { +const kpe = "_~IN~_"; +class SUt extends xE { constructor(e) { super(), this.topProd = e, this.follows = {}; } @@ -75384,43 +75420,43 @@ class OUt extends xE { walkTerminal(e, r, n) { } walkProdRef(e, r, n) { - const i = SUt(e.referencedRule, e.idx) + this.topProd.name, s = r.concat(n), a = new oo({ definition: s }), o = Cw(a); + const i = CUt(e.referencedRule, e.idx) + this.topProd.name, s = r.concat(n), a = new oo({ definition: s }), o = Cw(a); this.follows[i] = o; } } -function kUt(t) { +function TUt(t) { const e = {}; return Ve(t, (r) => { - const n = new OUt(r).startWalking(); + const n = new SUt(r).startWalking(); Po(e, n); }), e; } -function SUt(t, e) { - return t.name + e + Ope; +function CUt(t, e) { + return t.name + e + kpe; } let q5 = {}; -const TUt = new hpe(); +const EUt = new fpe(); function wE(t) { const e = t.toString(); if (q5.hasOwnProperty(e)) return q5[e]; { - const r = TUt.pattern(e); + const r = EUt.pattern(e); return q5[e] = r, r; } } -function CUt() { +function _Ut() { q5 = {}; } -const kpe = "Complement Sets are not supported for first char optimization", kS = `Unable to use "first char" lexer optimizations: +const Spe = "Complement Sets are not supported for first char optimization", kS = `Unable to use "first char" lexer optimizations: `; -function EUt(t, e = !1) { +function AUt(t, e = !1) { try { const r = wE(t); return aR(r.value, {}, r.flags.ignoreCase); } catch (r) { - if (r.message === kpe) - e && bpe(`${kS} Unable to optimize: < ${t.toString()} > + if (r.message === Spe) + e && xpe(`${kS} Unable to optimize: < ${t.toString()} > Complement Sets cannot be automatically optimized. This will disable the lexer's first char optimizations. See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`); @@ -75463,7 +75499,7 @@ function aR(t, e, r) { break; case "Set": if (a.complement === !0) - throw Error(kpe); + throw Error(Spe); Ve(a.value, (l) => { if (typeof l == "number") y4(l, e, r); @@ -75476,7 +75512,7 @@ function aR(t, e, r) { for (let h = u.from; h <= u.to && h < yy; h++) y4(h, e, r); if (u.to >= yy) { - const h = u.from >= yy ? u.from : yy, f = u.to, d = td(h), p = td(f); + const h = u.from >= yy ? u.from : yy, f = u.to, d = rd(h), p = rd(f); for (let g = d; g <= p; g++) e[g] = g; } @@ -75501,18 +75537,18 @@ function aR(t, e, r) { return un(e); } function y4(t, e, r) { - const n = td(t); - e[n] = n, r === !0 && _Ut(t, e); + const n = rd(t); + e[n] = n, r === !0 && LUt(t, e); } -function _Ut(t, e) { +function LUt(t, e) { const r = String.fromCharCode(t), n = r.toUpperCase(); if (n !== r) { - const i = td(n.charCodeAt(0)); + const i = rd(n.charCodeAt(0)); e[i] = i; } else { const i = r.toLowerCase(); if (i !== r) { - const s = td(i.charCodeAt(0)); + const s = rd(i.charCodeAt(0)); e[s] = s; } } @@ -75531,7 +75567,7 @@ function oR(t) { const e = t.quantifier; return e && e.atLeast === 0 ? !0 : t.value ? Pr(t.value) ? Hl(t.value, oR) : oR(t.value) : !1; } -class AUt extends vE { +class RUt extends vE { constructor(e) { super(), this.targetCharCodes = e, this.found = !1; } @@ -75557,16 +75593,16 @@ class AUt extends vE { } function QI(t, e) { if (e instanceof RegExp) { - const r = wE(e), n = new AUt(t); + const r = wE(e), n = new RUt(t); return n.visit(r), n.found; } else return Oh(e, (r) => $a(t, r.charCodeAt(0))) !== void 0; } const rp = "PATTERN", vy = "defaultMode", b4 = "modes"; -let Spe = typeof new RegExp("(?:)").sticky == "boolean"; -function LUt(t, e) { +let Tpe = typeof new RegExp("(?:)").sticky == "boolean"; +function MUt(t, e) { e = nE(e, { - useSticky: Spe, + useSticky: Tpe, debug: !1, safeMode: !1, positionTracking: "full", @@ -75576,7 +75612,7 @@ function LUt(t, e) { }); const r = e.tracer; r("initCharCodeToOptimizedIndexMap", () => { - JUt(); + tVt(); }); let n; r("Reject Lexer.NA", () => { @@ -75642,12 +75678,12 @@ function LUt(t, e) { }); let f; r("Line Terminator Handling", () => { - const b = Epe(e.lineTerminatorCharacters); - f = St(n, (w) => !1), e.positionTracking !== "onlyOffset" && (f = St(n, (w) => _t(w, "LINE_BREAKS") ? !!w.LINE_BREAKS : Cpe(w, b) === !1 && QI(b, w.PATTERN))); + const b = _pe(e.lineTerminatorCharacters); + f = St(n, (w) => !1), e.positionTracking !== "onlyOffset" && (f = St(n, (w) => _t(w, "LINE_BREAKS") ? !!w.LINE_BREAKS : Epe(w, b) === !1 && QI(b, w.PATTERN))); }); let d, p, g, m; r("Misc Mapping #2", () => { - d = St(n, Tpe), p = St(s, ZUt), g = Li(n, (b, w) => { + d = St(n, Cpe), p = St(s, KUt), g = Li(n, (b, w) => { const O = w.GROUP; return ao(O) && O !== no.SKIPPED && (b[O] = []), b; }, {}), m = St(s, (b, w) => ({ @@ -75667,12 +75703,12 @@ function LUt(t, e) { return e.safeMode || r("First Char Optimization", () => { y = Li(n, (b, w, O) => { if (typeof w.PATTERN == "string") { - const S = w.PATTERN.charCodeAt(0), C = td(S); + const S = w.PATTERN.charCodeAt(0), C = rd(S); WA(b, C, m[O]); } else if (Pr(w.START_CHARS_HINT)) { let S; Ve(w.START_CHARS_HINT, (C) => { - const T = typeof C == "string" ? C.charCodeAt(0) : C, A = td(T); + const T = typeof C == "string" ? C.charCodeAt(0) : C, A = rd(T); S !== A && (S = A, WA(b, A, m[O])); }); } else if (kh(w.PATTERN)) @@ -75682,7 +75718,7 @@ function LUt(t, e) { This will disable the lexer's first char optimizations. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`); else { - const S = EUt(w.PATTERN, e.ensureOptimizations); + const S = AUt(w.PATTERN, e.ensureOptimizations); Hr(S) && (v = !1), Ve(S, (C) => { WA(b, C, m[O]); }); @@ -75701,19 +75737,19 @@ function LUt(t, e) { canBeOptimized: v }; } -function RUt(t, e) { +function DUt(t, e) { let r = []; - const n = DUt(t); + const n = NUt(t); r = r.concat(n.errors); - const i = PUt(n.valid), s = i.valid; - return r = r.concat(i.errors), r = r.concat(MUt(s)), r = r.concat(UUt(s)), r = r.concat(VUt(s, e)), r = r.concat(qUt(s)), r; + const i = IUt(n.valid), s = i.valid; + return r = r.concat(i.errors), r = r.concat(PUt(s)), r = r.concat(qUt(s)), r = r.concat(YUt(s, e)), r = r.concat(WUt(s)), r; } -function MUt(t) { +function PUt(t) { let e = []; const r = ni(t, (n) => kh(n[rp])); - return e = e.concat(IUt(r)), e = e.concat(FUt(r)), e = e.concat(zUt(r)), e = e.concat(QUt(r)), e = e.concat($Ut(r)), e; + return e = e.concat(BUt(r)), e = e.concat(QUt(r)), e = e.concat(UUt(r)), e = e.concat(VUt(r)), e = e.concat(FUt(r)), e; } -function DUt(t) { +function NUt(t) { const e = ni(t, (i) => !_t(i, rp)), r = St(e, (i) => ({ message: "Token Type: ->" + i.name + "<- missing static 'PATTERN' property", type: ti.MISSING_PATTERN, @@ -75721,7 +75757,7 @@ function DUt(t) { })), n = iE(t, e); return { errors: r, valid: n }; } -function PUt(t) { +function IUt(t) { const e = ni(t, (i) => { const s = i[rp]; return !kh(s) && !ml(s) && !_t(s, "exec") && !ao(s); @@ -75732,8 +75768,8 @@ function PUt(t) { })), n = iE(t, e); return { errors: r, valid: n }; } -const NUt = /[^\\][$]/; -function IUt(t) { +const $Ut = /[^\\][$]/; +function BUt(t) { class e extends vE { constructor() { super(...arguments), this.found = !1; @@ -75748,7 +75784,7 @@ function IUt(t) { const a = wE(s), o = new e(); return o.visit(a), o.found; } catch { - return NUt.test(s.source); + return $Ut.test(s.source); } }); return St(r, (i) => ({ @@ -75759,7 +75795,7 @@ function IUt(t) { tokenTypes: [i] })); } -function $Ut(t) { +function FUt(t) { const e = ni(t, (n) => n.PATTERN.test("")); return St(e, (n) => ({ message: "Token Type: ->" + n.name + "<- static 'PATTERN' must not match an empty string", @@ -75767,8 +75803,8 @@ function $Ut(t) { tokenTypes: [n] })); } -const BUt = /[^\\[][\^]|^\^/; -function FUt(t) { +const zUt = /[^\\[][\^]|^\^/; +function QUt(t) { class e extends vE { constructor() { super(...arguments), this.found = !1; @@ -75783,7 +75819,7 @@ function FUt(t) { const a = wE(s), o = new e(); return o.visit(a), o.found; } catch { - return BUt.test(s.source); + return zUt.test(s.source); } }); return St(r, (i) => ({ @@ -75794,7 +75830,7 @@ function FUt(t) { tokenTypes: [i] })); } -function zUt(t) { +function UUt(t) { const e = ni(t, (n) => { const i = n[rp]; return i instanceof RegExp && (i.multiline || i.global); @@ -75805,7 +75841,7 @@ function zUt(t) { tokenTypes: [n] })); } -function QUt(t) { +function VUt(t) { const e = []; let r = St(t, (s) => Li(t, (a, o) => (s.PATTERN.source === o.PATTERN.source && !$a(e, o) && o.PATTERN !== no.NA && (e.push(o), a.push(o)), a), [])); r = ww(r); @@ -75819,7 +75855,7 @@ function QUt(t) { }; }); } -function UUt(t) { +function qUt(t) { const e = ni(t, (n) => { if (!_t(n, "GROUP")) return !1; @@ -75832,7 +75868,7 @@ function UUt(t) { tokenTypes: [n] })); } -function VUt(t, e) { +function YUt(t, e) { const r = ni(t, (i) => i.PUSH_MODE !== void 0 && !$a(e, i.PUSH_MODE)); return St(r, (i) => ({ message: `Token Type: ->${i.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${i.PUSH_MODE}<-which does not exist`, @@ -75840,14 +75876,14 @@ function VUt(t, e) { tokenTypes: [i] })); } -function qUt(t) { +function WUt(t) { const e = [], r = Li(t, (n, i, s) => { const a = i.PATTERN; - return a === no.NA || (ao(a) ? n.push({ str: a, idx: s, tokenType: i }) : kh(a) && WUt(a) && n.push({ str: a.source, idx: s, tokenType: i })), n; + return a === no.NA || (ao(a) ? n.push({ str: a, idx: s, tokenType: i }) : kh(a) && XUt(a) && n.push({ str: a.source, idx: s, tokenType: i })), n; }, []); return Ve(t, (n, i) => { Ve(r, ({ str: s, idx: a, tokenType: o }) => { - if (i < a && YUt(s, n.PATTERN)) { + if (i < a && GUt(s, n.PATTERN)) { const l = `Token: ->${o.name}<- can never be matched. Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition. See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`; @@ -75860,7 +75896,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`; }); }), e; } -function YUt(t, e) { +function GUt(t, e) { if (kh(e)) { const r = e.exec(t); return r !== null && r.index === 0; @@ -75874,7 +75910,7 @@ function YUt(t, e) { throw Error("non exhaustive match"); } } -function WUt(t) { +function XUt(t) { return Oh([ ".", "\\", @@ -75899,7 +75935,7 @@ function LG(t) { const e = t.ignoreCase ? "iy" : "y"; return new RegExp(`${t.source}`, e); } -function GUt(t, e, r) { +function HUt(t, e, r) { const n = []; return _t(t, vy) || n.push({ message: "A MultiMode Lexer cannot be initialized without a <" + vy + `> property in its definition @@ -75934,15 +75970,15 @@ function GUt(t, e, r) { }); }), n; } -function XUt(t, e, r) { +function ZUt(t, e, r) { const n = []; let i = !1; - const s = ww(ss(un(t.modes))), a = aE(s, (l) => l[rp] === no.NA), o = Epe(r); + const s = ww(ss(un(t.modes))), a = aE(s, (l) => l[rp] === no.NA), o = _pe(r); return e && Ve(a, (l) => { - const u = Cpe(l, o); + const u = Epe(l, o); if (u !== !1) { const f = { - message: KUt(l, u), + message: eVt(l, u), type: u.issue, tokenType: l }; @@ -75958,7 +75994,7 @@ function XUt(t, e, r) { type: ti.NO_LINE_BREAKS_FLAGS }), n; } -function HUt(t) { +function jUt(t) { const e = {}, r = Fi(t); return Ve(r, (n) => { const i = t[n]; @@ -75968,7 +76004,7 @@ function HUt(t) { throw Error("non exhaustive match"); }), e; } -function Tpe(t) { +function Cpe(t) { const e = t.PATTERN; if (kh(e)) return !1; @@ -75980,10 +76016,10 @@ function Tpe(t) { return !1; throw Error("non exhaustive match"); } -function ZUt(t) { +function KUt(t) { return ao(t) && t.length === 1 ? t.charCodeAt(0) : !1; } -const jUt = { +const JUt = { test: function(t) { const e = t.length; for (let r = this.lastIndex; r < e; r++) { @@ -75997,7 +76033,7 @@ const jUt = { }, lastIndex: 0 }; -function Cpe(t, e) { +function Epe(t, e) { if (_t(t, "LINE_BREAKS")) return !1; if (kh(t.PATTERN)) { @@ -76013,12 +76049,12 @@ function Cpe(t, e) { } else { if (ao(t.PATTERN)) return !1; - if (Tpe(t)) + if (Cpe(t)) return { issue: ti.CUSTOM_LINE_BREAK }; throw Error("non exhaustive match"); } } -function KUt(t, e) { +function eVt(t, e) { if (e.issue === ti.IDENTIFY_TERMINATOR) return `Warning: unable to identify line terminator usage in pattern. The problem is in the <${t.name}> Token Type @@ -76030,7 +76066,7 @@ function KUt(t, e) { For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`; throw Error("non exhaustive match"); } -function Epe(t) { +function _pe(t) { return St(t, (r) => ao(r) ? r.charCodeAt(0) : r); } function WA(t, e, r) { @@ -76038,10 +76074,10 @@ function WA(t, e, r) { } const yy = 256; let Y5 = []; -function td(t) { +function rd(t) { return t < yy ? t : Y5[t]; } -function JUt() { +function tVt() { if (Hr(Y5)) { Y5 = new Array(65536); for (let t = 0; t < 65536; t++) @@ -76056,14 +76092,14 @@ function SS(t, e) { return t.tokenTypeIdx === e.tokenTypeIdx; } let RG = 1; -const _pe = {}; +const Ape = {}; function _w(t) { - const e = eVt(t); - tVt(e), nVt(e), rVt(e), Ve(e, (r) => { + const e = rVt(t); + nVt(e), sVt(e), iVt(e), Ve(e, (r) => { r.isParent = r.categoryMatches.length > 0; }); } -function eVt(t) { +function rVt(t) { let e = Hi(t), r = t, n = !0; for (; n; ) { r = ww(ss(St(r, (s) => s.CATEGORIES))); @@ -76072,47 +76108,47 @@ function eVt(t) { } return e; } -function tVt(t) { +function nVt(t) { Ve(t, (e) => { - Lpe(e) || (_pe[RG] = e, e.tokenTypeIdx = RG++), MG(e) && !Pr(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), MG(e) || (e.CATEGORIES = []), iVt(e) || (e.categoryMatches = []), sVt(e) || (e.categoryMatchesMap = {}); + Rpe(e) || (Ape[RG] = e, e.tokenTypeIdx = RG++), MG(e) && !Pr(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), MG(e) || (e.CATEGORIES = []), aVt(e) || (e.categoryMatches = []), oVt(e) || (e.categoryMatchesMap = {}); }); } -function rVt(t) { +function iVt(t) { Ve(t, (e) => { e.categoryMatches = [], Ve(e.categoryMatchesMap, (r, n) => { - e.categoryMatches.push(_pe[n].tokenTypeIdx); + e.categoryMatches.push(Ape[n].tokenTypeIdx); }); }); } -function nVt(t) { +function sVt(t) { Ve(t, (e) => { - Ape([], e); + Lpe([], e); }); } -function Ape(t, e) { +function Lpe(t, e) { Ve(t, (r) => { e.categoryMatchesMap[r.tokenTypeIdx] = !0; }), Ve(e.CATEGORIES, (r) => { const n = t.concat(e); - $a(n, r) || Ape(n, r); + $a(n, r) || Lpe(n, r); }); } -function Lpe(t) { +function Rpe(t) { return _t(t, "tokenTypeIdx"); } function MG(t) { return _t(t, "CATEGORIES"); } -function iVt(t) { +function aVt(t) { return _t(t, "categoryMatches"); } -function sVt(t) { +function oVt(t) { return _t(t, "categoryMatchesMap"); } -function aVt(t) { +function lVt(t) { return _t(t, "tokenTypeIdx"); } -const oVt = { +const cVt = { buildUnableToPopLexerModeMessage(t) { return `Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`; }, @@ -76132,7 +76168,7 @@ const by = { `, "\r"], ensureOptimizations: !1, safeMode: !1, - errorMessageProvider: oVt, + errorMessageProvider: cVt, traceInitPerf: !1, skipValidations: !1, recoveryEnabled: !0 @@ -76145,7 +76181,7 @@ class no { this.traceInitIndent++; const a = new Array(this.traceInitIndent + 1).join(" "); this.traceInitIndent < this.traceInitMaxIdent && console.log(`${a}--> <${i}>`); - const { time: o, value: l } = xpe(s), u = o > 10 ? console.warn : console.log; + const { time: o, value: l } = wpe(s), u = o > 10 ? console.warn : console.log; return this.traceInitIndent < this.traceInitMaxIdent && u(`${a}<-- <${i}> time: ${o}ms`), this.traceInitIndent--, l; } else return s(); @@ -76158,7 +76194,7 @@ a boolean 2nd argument is no longer supported`); let i, s = !0; this.TRACE_INIT("Lexer Config handling", () => { if (this.config.lineTerminatorsPattern === by.lineTerminatorsPattern) - this.config.lineTerminatorsPattern = jUt; + this.config.lineTerminatorsPattern = JUt; else if (this.config.lineTerminatorCharacters === by.lineTerminatorCharacters) throw Error(`Error: Missing property on the Lexer config. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`); @@ -76169,9 +76205,9 @@ a boolean 2nd argument is no longer supported`); defaultMode: vy } : (s = !1, i = Hi(e)); }), this.config.skipValidations === !1 && (this.TRACE_INIT("performRuntimeChecks", () => { - this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(GUt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); + this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(HUt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); }), this.TRACE_INIT("performWarningRuntimeChecks", () => { - this.lexerDefinitionWarning = this.lexerDefinitionWarning.concat(XUt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); + this.lexerDefinitionWarning = this.lexerDefinitionWarning.concat(ZUt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); })), i.modes = i.modes ? i.modes : {}, Ve(i.modes, (o, l) => { i.modes[l] = aE(o, (u) => tn(u)); }); @@ -76179,12 +76215,12 @@ a boolean 2nd argument is no longer supported`); if (Ve(i.modes, (o, l) => { this.TRACE_INIT(`Mode: <${l}> processing`, () => { if (this.modes.push(l), this.config.skipValidations === !1 && this.TRACE_INIT("validatePatterns", () => { - this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(RUt(o, a)); + this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(DUt(o, a)); }), Hr(this.lexerDefinitionErrors)) { _w(o); let u; this.TRACE_INIT("analyzeTokenTypes", () => { - u = LUt(o, { + u = MUt(o, { lineTerminatorCharacters: this.config.lineTerminatorCharacters, positionTracking: r.positionTracking, ensureOptimizations: r.ensureOptimizations, @@ -76201,9 +76237,9 @@ a boolean 2nd argument is no longer supported`); ` + l); } Ve(this.lexerDefinitionWarning, (o) => { - bpe(o.message); + xpe(o.message); }), this.TRACE_INIT("Choosing sub-methods implementations", () => { - if (Spe ? (this.chopInput = vh, this.match = this.matchWithTest) : (this.updateLastIndex = Mi, this.match = this.matchWithExec), s && (this.handleModes = Mi), this.trackStartLines === !1 && (this.computeNewColumn = vh), this.trackEndLines === !1 && (this.updateTokenEndLineColumnLocation = Mi), /full/i.test(this.config.positionTracking)) + if (Tpe ? (this.chopInput = vh, this.match = this.matchWithTest) : (this.updateLastIndex = Mi, this.match = this.matchWithExec), s && (this.handleModes = Mi), this.trackStartLines === !1 && (this.computeNewColumn = vh), this.trackEndLines === !1 && (this.updateTokenEndLineColumnLocation = Mi), /full/i.test(this.config.positionTracking)) this.createTokenInstance = this.createFullToken; else if (/onlyStart/i.test(this.config.positionTracking)) this.createTokenInstance = this.createStartOnlyToken; @@ -76219,9 +76255,9 @@ a boolean 2nd argument is no longer supported`); Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. Or inspect the console log for details on how to resolve these issues.`); }), this.TRACE_INIT("clearRegExpParserCache", () => { - CUt(); + _Ut(); }), this.TRACE_INIT("toFastProperties", () => { - wpe(this); + Ope(this); }); }); } @@ -76240,7 +76276,7 @@ a boolean 2nd argument is no longer supported`); let O = 0, S = 0; const C = this.hasCustom ? 0 : Math.floor(e.length / 10), T = new Array(C), A = []; let E = this.trackStartLines ? 1 : void 0, R = this.trackStartLines ? 1 : void 0; - const _ = HUt(this.emptyGroups), L = this.trackStartLines, $ = this.config.lineTerminatorsPattern; + const _ = jUt(this.emptyGroups), L = this.trackStartLines, $ = this.config.lineTerminatorsPattern; let k = 0, P = [], M = []; const N = [], D = []; Object.freeze(D); @@ -76249,7 +76285,7 @@ a boolean 2nd argument is no longer supported`); return P; } function B(Y) { - const te = td(Y), se = M[te]; + const te = rd(Y), se = M[te]; return se === void 0 ? D : se; } const U = (Y) => { @@ -76408,24 +76444,24 @@ a boolean 2nd argument is no longer supported`); no.SKIPPED = "This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace."; no.NA = /NOT_APPLICABLE/; function Zg(t) { - return Rpe(t) ? t.LABEL : t.name; + return Mpe(t) ? t.LABEL : t.name; } -function Rpe(t) { +function Mpe(t) { return ao(t.LABEL) && t.LABEL !== ""; } -const lVt = "parent", DG = "categories", PG = "label", NG = "group", IG = "push_mode", $G = "pop_mode", BG = "longer_alt", FG = "line_breaks", zG = "start_chars_hint"; -function Mpe(t) { - return cVt(t); +const uVt = "parent", DG = "categories", PG = "label", NG = "group", IG = "push_mode", $G = "pop_mode", BG = "longer_alt", FG = "line_breaks", zG = "start_chars_hint"; +function Dpe(t) { + return hVt(t); } -function cVt(t) { +function hVt(t) { const e = t.pattern, r = {}; - if (r.name = t.name, tn(e) || (r.PATTERN = e), _t(t, lVt)) + if (r.name = t.name, tn(e) || (r.PATTERN = e), _t(t, uVt)) throw `The parent property is no longer supported. See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`; return _t(t, DG) && (r.CATEGORIES = t[DG]), _w([r]), _t(t, PG) && (r.LABEL = t[PG]), _t(t, NG) && (r.GROUP = t[NG]), _t(t, $G) && (r.POP_MODE = t[$G]), _t(t, IG) && (r.PUSH_MODE = t[IG]), _t(t, BG) && (r.LONGER_ALT = t[BG]), _t(t, FG) && (r.LINE_BREAKS = t[FG]), _t(t, zG) && (r.START_CHARS_HINT = t[zG]), r; } -const rd = Mpe({ name: "EOF", pattern: no.NA }); -_w([rd]); +const nd = Dpe({ name: "EOF", pattern: no.NA }); +_w([nd]); function UI(t, e, r, n, i, s, a, o) { return { image: e, @@ -76439,12 +76475,12 @@ function UI(t, e, r, n, i, s, a, o) { tokenType: t }; } -function Dpe(t, e) { +function Ppe(t, e) { return Ew(t, e); } const Cg = { buildMismatchTokenMessage({ expected: t, actual: e, previous: r, ruleName: n }) { - return `Expecting ${Rpe(t) ? `--> ${Zg(t)} <--` : `token of type --> ${t.name} <--`} but found --> '${e.image}' <--`; + return `Expecting ${Mpe(t) ? `--> ${Zg(t)} <--` : `token of type --> ${t.name} <--`} but found --> '${e.image}' <--`; }, buildNotAllInputParsedMessage({ firstRedundant: t, ruleName: e }) { return "Redundant input, expecting EOF but found: " + t.image; @@ -76474,7 +76510,7 @@ but found: '` + oc(e).image + "'"; } }; Object.freeze(Cg); -const uVt = { +const fVt = { buildRuleNotFoundError(t, e) { return "Invalid grammar, reference to a rule which is not defined: ->" + e.nonTerminalName + `<- inside top level rule: ->` + t.name + "<-"; @@ -76549,11 +76585,11 @@ see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`; return t.topLevelRule instanceof G1 ? e = t.topLevelRule.name : e = t.topLevelRule, `Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`; } }; -function hVt(t, e) { - const r = new fVt(t, e); +function dVt(t, e) { + const r = new pVt(t, e); return r.resolveRefs(), r.errors; } -class fVt extends X1 { +class pVt extends X1 { constructor(e, r) { super(), this.nameToTopRule = e, this.errMsgProvider = r, this.errors = []; } @@ -76577,7 +76613,7 @@ class fVt extends X1 { } } } -class dVt extends xE { +class gVt extends xE { constructor(e, r) { super(), this.topProd = e, this.path = r, this.possibleTokTypes = [], this.nextProductionName = "", this.nextProductionOccurrence = 0, this.found = !1, this.isAtEndOfPath = !1; } @@ -76599,7 +76635,7 @@ class dVt extends xE { Hr(this.ruleStack) ? (this.nextProductionName = "", this.nextProductionOccurrence = 0, this.isAtEndOfPath = !0) : (this.nextProductionName = this.ruleStack.pop(), this.nextProductionOccurrence = this.occurrenceStack.pop()); } } -class pVt extends dVt { +class mVt extends gVt { constructor(e, r) { super(e, r), this.path = r, this.nextTerminalName = "", this.nextTerminalOccurrence = 0, this.nextTerminalName = this.path.lastTok.name, this.nextTerminalOccurrence = this.path.lastTokOccurrence; } @@ -76622,7 +76658,7 @@ class OE extends xE { return this.walk(this.topRule), this.result; } } -class gVt extends OE { +class vVt extends OE { walkMany(e, r, n) { if (e.idx === this.occurrence) { const i = oc(r.concat(n)); @@ -76640,7 +76676,7 @@ class QG extends OE { super.walkManySep(e, r, n); } } -class mVt extends OE { +class yVt extends OE { walkAtLeastOne(e, r, n) { if (e.idx === this.occurrence) { const i = oc(r.concat(n)); @@ -76722,7 +76758,7 @@ function lR(t, e, r = []) { suffixDef: gs(t, i) }), n; } -function Ppe(t, e, r, n) { +function Npe(t, e, r, n) { const i = "EXIT_NONE_TERMINAL", s = [i], a = "EXIT_ALTERNATIVE"; let o = !1; const l = e.length, u = l - n - 1, h = [], f = []; @@ -76877,13 +76913,13 @@ function Ppe(t, e, r, n) { occurrenceStack: v }); else if (y instanceof G1) - f.push(vVt(y, g, m, v)); + f.push(bVt(y, g, m, v)); else throw Error("non exhaustive match"); } return h; } -function vVt(t, e, r, n) { +function bVt(t, e, r, n) { const i = Hi(r); i.push(t.name); const s = Hi(n); @@ -76917,15 +76953,15 @@ function VG(t) { const { occurrence: e, rule: r, prodType: n, maxLookahead: i } = t, s = VI(n); return s === Yn.ALTERNATION ? kE(e, r, i) : SE(e, r, s, i); } -function yVt(t, e, r, n, i, s) { - const a = kE(t, e, r), o = $pe(a) ? SS : Ew; +function xVt(t, e, r, n, i, s) { + const a = kE(t, e, r), o = Bpe(a) ? SS : Ew; return s(a, n, o, i); } -function bVt(t, e, r, n, i, s) { - const a = SE(t, e, i, r), o = $pe(a) ? SS : Ew; +function wVt(t, e, r, n, i, s) { + const a = SE(t, e, i, r), o = Bpe(a) ? SS : Ew; return s(a[0], o, n); } -function xVt(t, e, r, n) { +function OVt(t, e, r, n) { const i = t.length, s = Hl(t, (a) => Hl(a, (o) => o.length === 1)); if (e) return function(a) { @@ -76973,7 +77009,7 @@ function xVt(t, e, r, n) { } }; } -function wVt(t, e, r) { +function kVt(t, e, r) { const n = Hl(t, (s) => s.length === 1), i = t.length; if (n && !r) { const s = ss(t); @@ -77006,7 +77042,7 @@ function wVt(t, e, r) { return !1; }; } -class OVt extends xE { +class SVt extends xE { constructor(e, r, n) { super(), this.topProd = e, this.targetOccurrence = r, this.targetProdType = n; } @@ -77032,7 +77068,7 @@ class OVt extends xE { this.checkIsTarget(e, Yn.REPETITION_WITH_SEPARATOR, r, n) || super.walkOption(e, r, n); } } -class Npe extends X1 { +class Ipe extends X1 { constructor(e, r, n) { super(), this.targetOccurrence = e, this.targetProdType = r, this.targetRef = n, this.result = []; } @@ -77080,7 +77116,7 @@ function GA(t) { } return e; } -function kVt(t, e, r) { +function TVt(t, e, r) { for (let n = 0; n < t.length; n++) { if (n === r) continue; @@ -77093,7 +77129,7 @@ function kVt(t, e, r) { } return !0; } -function Ipe(t, e) { +function $pe(t, e) { const r = St(t, (a) => lR([a], 1)), n = qG(r.length), i = St(r, (a) => { const o = {}; return Ve(a, (l) => { @@ -77111,7 +77147,7 @@ function Ipe(t, e) { const u = o[l]; for (let h = 0; h < u.length; h++) { const f = u[h].partialPath, d = u[h].suffixDef, p = GA(f); - if (kVt(i, p, l) || Hr(d) || f.length === e) { + if (TVt(i, p, l) || Hr(d) || f.length === e) { const m = n[l]; if (cR(m, f) === !1) { m.push(f); @@ -77135,14 +77171,14 @@ function Ipe(t, e) { return n; } function kE(t, e, r, n) { - const i = new Npe(t, Yn.ALTERNATION, n); - return e.accept(i), Ipe(i.result, r); + const i = new Ipe(t, Yn.ALTERNATION, n); + return e.accept(i), $pe(i.result, r); } function SE(t, e, r, n) { - const i = new Npe(t, r); + const i = new Ipe(t, r); e.accept(i); - const s = i.result, o = new OVt(e, t, r).startWalking(), l = new oo({ definition: s }), u = new oo({ definition: o }); - return Ipe([l, u], n); + const s = i.result, o = new SVt(e, t, r).startWalking(), l = new oo({ definition: s }), u = new oo({ definition: o }); + return $pe([l, u], n); } function cR(t, e) { e: @@ -77159,16 +77195,16 @@ function cR(t, e) { } return !1; } -function SVt(t, e) { +function CVt(t, e) { return t.length < e.length && Hl(t, (r, n) => { const i = e[n]; return r === i || i.categoryMatchesMap[r.tokenTypeIdx]; }); } -function $pe(t) { +function Bpe(t) { return Hl(t, (e) => Hl(e, (r) => Hl(r, (n) => Hr(n.categoryMatches)))); } -function TVt(t) { +function EVt(t) { const e = t.lookaheadStrategy.validate({ rules: t.rules, tokenTypes: t.tokenTypes, @@ -77176,14 +77212,14 @@ function TVt(t) { }); return St(e, (r) => Object.assign({ type: Da.CUSTOM_LOOKAHEAD_VALIDATION }, r)); } -function CVt(t, e, r, n) { - const i = Lo(t, (l) => EVt(l, r)), s = FVt(t, e, r), a = Lo(t, (l) => NVt(l, r)), o = Lo(t, (l) => LVt(l, t, n, r)); +function _Vt(t, e, r, n) { + const i = Lo(t, (l) => AVt(l, r)), s = QVt(t, e, r), a = Lo(t, (l) => $Vt(l, r)), o = Lo(t, (l) => MVt(l, t, n, r)); return i.concat(s, a, o); } -function EVt(t, e) { - const r = new AVt(); +function AVt(t, e) { + const r = new RVt(); t.accept(r); - const n = r.allProductions, i = bNt(n, _Vt), s = vc(i, (o) => o.length > 1); + const n = r.allProductions, i = wNt(n, LVt), s = vc(i, (o) => o.length > 1); return St(un(s), (o) => { const l = oc(o), u = e.buildDuplicateFoundError(t, o), h = Pc(l), f = { message: u, @@ -77191,17 +77227,17 @@ function EVt(t, e) { ruleName: t.name, dslName: h, occurrence: l.idx - }, d = Bpe(l); + }, d = Fpe(l); return d && (f.parameter = d), f; }); } -function _Vt(t) { - return `${Pc(t)}_#_${t.idx}_#_${Bpe(t)}`; +function LVt(t) { + return `${Pc(t)}_#_${t.idx}_#_${Fpe(t)}`; } -function Bpe(t) { +function Fpe(t) { return t instanceof In ? t.terminalType.name : t instanceof Ma ? t.nonTerminalName : ""; } -class AVt extends X1 { +class RVt extends X1 { constructor() { super(...arguments), this.allProductions = []; } @@ -77230,7 +77266,7 @@ class AVt extends X1 { this.allProductions.push(e); } } -function LVt(t, e, r, n) { +function MVt(t, e, r, n) { const i = []; if (Li(e, (a, o) => o.name === t.name ? a + 1 : a, 0) > 1) { const a = n.buildDuplicateRuleNameError({ @@ -77245,7 +77281,7 @@ function LVt(t, e, r, n) { } return i; } -function RVt(t, e, r) { +function DVt(t, e, r) { const n = []; let i; return $a(e, t) || (i = `Invalid rule override, rule: ->${t}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `, n.push({ @@ -77254,7 +77290,7 @@ function RVt(t, e, r) { ruleName: t })), n; } -function Fpe(t, e, r, n = []) { +function zpe(t, e, r, n = []) { const i = [], s = W5(e.definition); if (Hr(s)) return []; @@ -77270,7 +77306,7 @@ function Fpe(t, e, r, n = []) { }); const l = iE(s, n.concat([t])), u = Lo(l, (h) => { const f = Hi(n); - return f.push(h), Fpe(t, h, r, f); + return f.push(h), zpe(t, h, r, f); }); return i.concat(u); } @@ -77303,14 +77339,14 @@ class qI extends X1 { this.alternations.push(e); } } -function MVt(t, e) { +function PVt(t, e) { const r = new qI(); t.accept(r); const n = r.alternations; return Lo(n, (s) => { const a = vb(s.definition); return Lo(a, (o, l) => { - const u = Ppe([o], [], Ew, 1); + const u = Npe([o], [], Ew, 1); return Hr(u) ? [ { message: e.buildEmptyAlternationError({ @@ -77327,16 +77363,16 @@ function MVt(t, e) { }); }); } -function DVt(t, e, r) { +function NVt(t, e, r) { const n = new qI(); t.accept(n); let i = n.alternations; return i = aE(i, (a) => a.ignoreAmbiguities === !0), Lo(i, (a) => { - const o = a.idx, l = a.maxLookahead || e, u = kE(o, t, l, a), h = $Vt(u, a, t, r), f = BVt(u, a, t, r); + const o = a.idx, l = a.maxLookahead || e, u = kE(o, t, l, a), h = FVt(u, a, t, r), f = zVt(u, a, t, r); return h.concat(f); }); } -class PVt extends X1 { +class IVt extends X1 { constructor() { super(...arguments), this.allProductions = []; } @@ -77353,7 +77389,7 @@ class PVt extends X1 { this.allProductions.push(e); } } -function NVt(t, e) { +function $Vt(t, e) { const r = new qI(); t.accept(r); const n = r.alternations; @@ -77369,10 +77405,10 @@ function NVt(t, e) { } ] : []); } -function IVt(t, e, r) { +function BVt(t, e, r) { const n = []; return Ve(t, (i) => { - const s = new PVt(); + const s = new IVt(); i.accept(s); const a = s.allProductions; Ve(a, (o) => { @@ -77391,7 +77427,7 @@ function IVt(t, e, r) { }); }), n; } -function $Vt(t, e, r, n) { +function FVt(t, e, r, n) { const i = [], s = Li(t, (o, l, u) => (e.definition[u].ignoreAmbiguities === !0 || Ve(l, (h) => { const f = [u]; Ve(t, (d, p) => { @@ -77417,7 +77453,7 @@ function $Vt(t, e, r, n) { }; }); } -function BVt(t, e, r, n) { +function zVt(t, e, r, n) { const i = Li(t, (a, o, l) => { const u = St(o, (h) => ({ idx: l, path: h })); return a.concat(u); @@ -77425,7 +77461,7 @@ function BVt(t, e, r, n) { return ww(Lo(i, (a) => { if (e.definition[a.idx].ignoreAmbiguities === !0) return []; - const l = a.idx, u = a.path, h = ni(i, (d) => e.definition[d.idx].ignoreAmbiguities !== !0 && d.idx < l && SVt(d.path, u)); + const l = a.idx, u = a.path, h = ni(i, (d) => e.definition[d.idx].ignoreAmbiguities !== !0 && d.idx < l && CVt(d.path, u)); return St(h, (d) => { const p = [d.idx + 1, l + 1], g = e.idx === 0 ? "" : e.idx; return { @@ -77443,7 +77479,7 @@ function BVt(t, e, r, n) { }); })); } -function FVt(t, e, r) { +function QVt(t, e, r) { const n = [], i = St(e, (s) => s.name); return Ve(t, (s) => { const a = s.name; @@ -77457,63 +77493,63 @@ function FVt(t, e, r) { } }), n; } -function zVt(t) { +function UVt(t) { const e = nE(t, { - errMsgProvider: uVt + errMsgProvider: fVt }), r = {}; return Ve(t.rules, (n) => { r[n.name] = n; - }), hVt(r, e.errMsgProvider); + }), dVt(r, e.errMsgProvider); } -function QVt(t) { +function VVt(t) { return t = nE(t, { errMsgProvider: y0 - }), CVt(t.rules, t.tokenTypes, t.errMsgProvider, t.grammarName); + }), _Vt(t.rules, t.tokenTypes, t.errMsgProvider, t.grammarName); } -const zpe = "MismatchedTokenException", Qpe = "NoViableAltException", Upe = "EarlyExitException", Vpe = "NotAllInputParsedException", qpe = [ - zpe, +const Qpe = "MismatchedTokenException", Upe = "NoViableAltException", Vpe = "EarlyExitException", qpe = "NotAllInputParsedException", Ype = [ Qpe, Upe, - Vpe + Vpe, + qpe ]; -Object.freeze(qpe); +Object.freeze(Ype); function TS(t) { - return $a(qpe, t.name); + return $a(Ype, t.name); } class TE extends Error { constructor(e, r) { super(e), this.token = r, this.resyncedTokens = [], Object.setPrototypeOf(this, new.target.prototype), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor); } } -class Ype extends TE { +class Wpe extends TE { constructor(e, r, n) { - super(e, r), this.previousToken = n, this.name = zpe; + super(e, r), this.previousToken = n, this.name = Qpe; } } -class UVt extends TE { +class qVt extends TE { constructor(e, r, n) { - super(e, r), this.previousToken = n, this.name = Qpe; + super(e, r), this.previousToken = n, this.name = Upe; } } -class VVt extends TE { +class YVt extends TE { constructor(e, r) { - super(e, r), this.name = Vpe; + super(e, r), this.name = qpe; } } -class qVt extends TE { +class WVt extends TE { constructor(e, r, n) { - super(e, r), this.previousToken = n, this.name = Upe; + super(e, r), this.previousToken = n, this.name = Vpe; } } -const XA = {}, Wpe = "InRuleRecoveryException"; -class YVt extends Error { +const XA = {}, Gpe = "InRuleRecoveryException"; +class GVt extends Error { constructor(e) { - super(e), this.name = Wpe; + super(e), this.name = Gpe; } } -class WVt { +class XVt { initRecoverable(e) { - this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = _t(e, "recoveryEnabled") ? e.recoveryEnabled : Th.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery = GVt); + this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = _t(e, "recoveryEnabled") ? e.recoveryEnabled : Th.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery = HVt); } getTokenToInsert(e) { const r = UI(e, "", NaN, NaN, NaN, NaN, NaN, NaN); @@ -77536,7 +77572,7 @@ class WVt { actual: u, previous: d, ruleName: this.getCurrRuleFullName() - }), g = new Ype(p, u, this.LA(0)); + }), g = new Wpe(p, u, this.LA(0)); g.resyncedTokens = vb(o), this.SAVE_ERROR(g); }; for (; !l; ) @@ -77564,7 +77600,7 @@ class WVt { const n = this.SKIP_TOKEN(); return this.consumeToken(), n; } - throw new YVt("sad sad panda"); + throw new GVt("sad sad panda"); } canPerformInRuleRecovery(e, r) { return this.canRecoverWithSingleTokenInsertion(e, r) || this.canRecoverWithSingleTokenDeletion(e); @@ -77586,7 +77622,7 @@ class WVt { const e = this.flattenFollowSet(); let r = this.LA(1), n = 2; for (; ; ) { - const i = Oh(e, (s) => Dpe(r, s)); + const i = Oh(e, (s) => Ppe(r, s)); if (i !== void 0) return i; r = this.LA(n), n++; @@ -77616,12 +77652,12 @@ class WVt { } getFollowSetFromFollowKey(e) { if (e === XA) - return [rd]; - const r = e.ruleName + e.idxInCallingRule + Ope + e.inRule; + return [nd]; + const r = e.ruleName + e.idxInCallingRule + kpe + e.inRule; return this.resyncFollows[r]; } addToResyncTokens(e, r) { - return this.tokenMatcher(e, rd) || r.push(e), r; + return this.tokenMatcher(e, nd) || r.push(e), r; } reSyncTo(e) { const r = []; @@ -77645,7 +77681,7 @@ class WVt { return St(this.RULE_STACK, (e) => this.shortRuleNameToFullName(e)); } } -function GVt(t, e, r, n, i, s, a) { +function HVt(t, e, r, n, i, s, a) { const o = this.getKeyForAutomaticLookahead(n, i); let l = this.firstAfterRepMap[o]; if (l === void 0) { @@ -77654,9 +77690,9 @@ function GVt(t, e, r, n, i, s, a) { } let u = l.token, h = l.occurrence; const f = l.isEndOfRule; - this.RULE_STACK.length === 1 && f && u === void 0 && (u = rd, h = 1), !(u === void 0 || h === void 0) && this.shouldInRepetitionRecoveryBeTried(u, h, a) && this.tryInRepetitionRecovery(t, e, r, u); + this.RULE_STACK.length === 1 && f && u === void 0 && (u = nd, h = 1), !(u === void 0 || h === void 0) && this.shouldInRepetitionRecoveryBeTried(u, h, a) && this.tryInRepetitionRecovery(t, e, r, u); } -const XVt = 4, wd = 8, Gpe = 1 << wd, Xpe = 2 << wd, uR = 3 << wd, hR = 4 << wd, fR = 5 << wd, G5 = 6 << wd; +const ZVt = 4, wd = 8, Xpe = 1 << wd, Hpe = 2 << wd, uR = 3 << wd, hR = 4 << wd, fR = 5 << wd, G5 = 6 << wd; function HA(t, e, r) { return r | e | t; } @@ -77679,32 +77715,32 @@ class YI { return r; } validateNoLeftRecursion(e) { - return Lo(e, (r) => Fpe(r, r, y0)); + return Lo(e, (r) => zpe(r, r, y0)); } validateEmptyOrAlternatives(e) { - return Lo(e, (r) => MVt(r, y0)); + return Lo(e, (r) => PVt(r, y0)); } validateAmbiguousAlternationAlternatives(e, r) { - return Lo(e, (n) => DVt(n, r, y0)); + return Lo(e, (n) => NVt(n, r, y0)); } validateSomeNonEmptyLookaheadPath(e, r) { - return IVt(e, r, y0); + return BVt(e, r, y0); } buildLookaheadForAlternation(e) { - return yVt(e.prodOccurrence, e.rule, e.maxLookahead, e.hasPredicates, e.dynamicTokensEnabled, xVt); + return xVt(e.prodOccurrence, e.rule, e.maxLookahead, e.hasPredicates, e.dynamicTokensEnabled, OVt); } buildLookaheadForOptional(e) { - return bVt(e.prodOccurrence, e.rule, e.maxLookahead, e.dynamicTokensEnabled, VI(e.prodType), wVt); + return wVt(e.prodOccurrence, e.rule, e.maxLookahead, e.dynamicTokensEnabled, VI(e.prodType), kVt); } } -class HVt { +class jVt { initLooksAhead(e) { this.dynamicTokensEnabled = _t(e, "dynamicTokensEnabled") ? e.dynamicTokensEnabled : Th.dynamicTokensEnabled, this.maxLookahead = _t(e, "maxLookahead") ? e.maxLookahead : Th.maxLookahead, this.lookaheadStrategy = _t(e, "lookaheadStrategy") ? e.lookaheadStrategy : new YI({ maxLookahead: this.maxLookahead }), this.lookAheadFuncsCache = /* @__PURE__ */ new Map(); } preComputeLookaheadFunctions(e) { Ve(e, (r) => { this.TRACE_INIT(`${r.name} Rule Lookahead`, () => { - const { alternation: n, repetition: i, option: s, repetitionMandatory: a, repetitionMandatoryWithSeparator: o, repetitionWithSeparator: l } = jVt(r); + const { alternation: n, repetition: i, option: s, repetitionMandatory: a, repetitionMandatoryWithSeparator: o, repetitionWithSeparator: l } = JVt(r); Ve(n, (u) => { const h = u.idx === 0 ? "" : u.idx; this.TRACE_INIT(`${Pc(u)}${h}`, () => { @@ -77714,13 +77750,13 @@ class HVt { maxLookahead: u.maxLookahead || this.maxLookahead, hasPredicates: u.hasPredicates, dynamicTokensEnabled: this.dynamicTokensEnabled - }), d = HA(this.fullRuleNameToShort[r.name], Gpe, u.idx); + }), d = HA(this.fullRuleNameToShort[r.name], Xpe, u.idx); this.setLaFuncCache(d, f); }); }), Ve(i, (u) => { this.computeLookaheadFunc(r, u.idx, uR, "Repetition", u.maxLookahead, Pc(u)); }), Ve(s, (u) => { - this.computeLookaheadFunc(r, u.idx, Xpe, "Option", u.maxLookahead, Pc(u)); + this.computeLookaheadFunc(r, u.idx, Hpe, "Option", u.maxLookahead, Pc(u)); }), Ve(a, (u) => { this.computeLookaheadFunc(r, u.idx, hR, "RepetitionMandatory", u.maxLookahead, Pc(u)); }), Ve(o, (u) => { @@ -77754,7 +77790,7 @@ class HVt { this.lookAheadFuncsCache.set(e, r); } } -class ZVt extends X1 { +class KVt extends X1 { constructor() { super(...arguments), this.dslMethods = { option: [], @@ -77794,8 +77830,8 @@ class ZVt extends X1 { this.dslMethods.alternation.push(e); } } -const x4 = new ZVt(); -function jVt(t) { +const x4 = new KVt(); +function JVt(t) { x4.reset(), t.accept(x4); const e = x4.dslMethods; return x4.reset(), e; @@ -77806,22 +77842,22 @@ function YG(t, e) { function WG(t, e) { isNaN(t.startOffset) === !0 ? (t.startOffset = e.startOffset, t.startColumn = e.startColumn, t.startLine = e.startLine, t.endOffset = e.endOffset, t.endColumn = e.endColumn, t.endLine = e.endLine) : t.endOffset < e.endOffset && (t.endOffset = e.endOffset, t.endColumn = e.endColumn, t.endLine = e.endLine); } -function KVt(t, e, r) { +function eqt(t, e, r) { t.children[r] === void 0 ? t.children[r] = [e] : t.children[r].push(e); } -function JVt(t, e, r) { +function tqt(t, e, r) { t.children[e] === void 0 ? t.children[e] = [r] : t.children[e].push(r); } -const eqt = "name"; -function Hpe(t, e) { - Object.defineProperty(t, eqt, { +const rqt = "name"; +function Zpe(t, e) { + Object.defineProperty(t, rqt, { enumerable: !1, configurable: !0, writable: !1, value: e }); } -function tqt(t, e) { +function nqt(t, e) { const r = Fi(t), n = r.length; for (let i = 0; i < n; i++) { const s = r[i], a = t[s], o = a.length; @@ -77831,17 +77867,17 @@ function tqt(t, e) { } } } -function rqt(t, e) { +function iqt(t, e) { const r = function() { }; - Hpe(r, t + "BaseSemantics"); + Zpe(r, t + "BaseSemantics"); const n = { visit: function(i, s) { if (Pr(i) && (i = i[0]), !tn(i)) return this[i.name](i.children, s); }, validateVisitor: function() { - const i = iqt(this, e); + const i = aqt(this, e); if (!Hr(i)) { const s = St(i, (a) => a.msg); throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: @@ -77854,23 +77890,23 @@ function rqt(t, e) { }; return r.prototype = n, r.prototype.constructor = r, r._RULE_NAMES = e, r; } -function nqt(t, e, r) { +function sqt(t, e, r) { const n = function() { }; - Hpe(n, t + "BaseSemanticsWithDefaults"); + Zpe(n, t + "BaseSemanticsWithDefaults"); const i = Object.create(r.prototype); return Ve(e, (s) => { - i[s] = tqt; + i[s] = nqt; }), n.prototype = i, n.prototype.constructor = n, n; } var dR; (function(t) { t[t.REDUNDANT_METHOD = 0] = "REDUNDANT_METHOD", t[t.MISSING_METHOD = 1] = "MISSING_METHOD"; })(dR || (dR = {})); -function iqt(t, e) { - return sqt(t, e); +function aqt(t, e) { + return oqt(t, e); } -function sqt(t, e) { +function oqt(t, e) { const r = ni(e, (i) => ml(t[i]) === !1), n = St(r, (i) => ({ msg: `Missing visitor method: <${i}> on ${t.constructor.name} CST Visitor.`, type: dR.MISSING_METHOD, @@ -77878,7 +77914,7 @@ function sqt(t, e) { })); return ww(n); } -class aqt { +class lqt { initTreeBuilder(e) { if (this.CST_STACK = [], this.outputCst = e.outputCst, this.nodeLocationTracking = _t(e, "nodeLocationTracking") ? e.nodeLocationTracking : Th.nodeLocationTracking, !this.outputCst) this.cstInvocationStateUpdate = Mi, this.cstFinallyStateUpdate = Mi, this.cstPostTerminal = Mi, this.cstPostNonTerminal = Mi, this.cstPostRule = Mi; @@ -77944,22 +77980,22 @@ class aqt { } cstPostTerminal(e, r) { const n = this.CST_STACK[this.CST_STACK.length - 1]; - KVt(n, r, e), this.setNodeLocationFromToken(n.location, r); + eqt(n, r, e), this.setNodeLocationFromToken(n.location, r); } cstPostNonTerminal(e, r) { const n = this.CST_STACK[this.CST_STACK.length - 1]; - JVt(n, r, e), this.setNodeLocationFromNode(n.location, e.location); + tqt(n, r, e), this.setNodeLocationFromNode(n.location, e.location); } getBaseCstVisitorConstructor() { if (tn(this.baseCstVisitorConstructor)) { - const e = rqt(this.className, Fi(this.gastProductionsCache)); + const e = iqt(this.className, Fi(this.gastProductionsCache)); return this.baseCstVisitorConstructor = e, e; } return this.baseCstVisitorConstructor; } getBaseCstVisitorConstructorWithDefaults() { if (tn(this.baseCstVisitorWithDefaultsConstructor)) { - const e = nqt(this.className, Fi(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); + const e = sqt(this.className, Fi(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); return this.baseCstVisitorWithDefaultsConstructor = e, e; } return this.baseCstVisitorWithDefaultsConstructor; @@ -77977,7 +78013,7 @@ class aqt { return e[e.length - 1]; } } -class oqt { +class cqt { initLexerAdapter() { this.tokVector = [], this.tokVectorLength = 0, this.currIdx = -1; } @@ -78015,7 +78051,7 @@ class oqt { return this.exportLexerState(); } } -class lqt { +class uqt { ACTION(e) { return e.call(this); } @@ -78294,7 +78330,7 @@ class lqt { return this[e] = i, i; } OVERRIDE_RULE(e, r, n = _S) { - const i = RVt(e, this.definedRulesNames, this.className); + const i = DVt(e, this.definedRulesNames, this.className); this.definitionErrors = this.definitionErrors.concat(i); const s = this.defineRule(e, r, n); return this[e] = s, s; @@ -78318,10 +78354,10 @@ class lqt { return this.gastProductionsCache; } getSerializedGastProductions() { - return mUt(un(this.gastProductionsCache)); + return yUt(un(this.gastProductionsCache)); } } -class cqt { +class hqt { initRecognizerEngine(e, r) { if (this.className = this.constructor.name, this.shortRuleNameToFull = {}, this.fullRuleNameToShort = {}, this.ruleShortNameIdx = 256, this.tokenMatcher = SS, this.subruleIdx = 0, this.definedRulesNames = [], this.tokensMap = {}, this.isBackTrackingStack = [], this.RULE_STACK = [], this.RULE_OCCURRENCE_STACK = [], this.gastProductionsCache = {}, _t(r, "serializedGrammar")) throw Error(`The Parser's configuration can no longer contain a property. @@ -78339,14 +78375,14 @@ class cqt { } if (Pr(e)) this.tokensMap = Li(e, (s, a) => (s[a.name] = a, s), {}); - else if (_t(e, "modes") && Hl(ss(un(e.modes)), aVt)) { + else if (_t(e, "modes") && Hl(ss(un(e.modes)), lVt)) { const s = ss(un(e.modes)), a = vI(s); this.tokensMap = Li(a, (o, l) => (o[l.name] = l, o), {}); } else if (so(e)) this.tokensMap = Hi(e); else throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition"); - this.tokensMap.EOF = rd; + this.tokensMap.EOF = nd; const n = _t(e, "modes") ? ss(un(e.modes)) : un(e), i = Hl(n, (s) => Hr(s.categoryMatches)); this.tokenMatcher = i ? SS : Ew, _w(un(this.tokensMap)); } @@ -78354,7 +78390,7 @@ class cqt { if (this.selfAnalysisDone) throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called' Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`); - const i = _t(n, "resyncEnabled") ? n.resyncEnabled : _S.resyncEnabled, s = _t(n, "recoveryValueFunc") ? n.recoveryValueFunc : _S.recoveryValueFunc, a = this.ruleShortNameIdx << XVt + wd; + const i = _t(n, "resyncEnabled") ? n.resyncEnabled : _S.resyncEnabled, s = _t(n, "recoveryValueFunc") ? n.recoveryValueFunc : _S.recoveryValueFunc, a = this.ruleShortNameIdx << ZVt + wd; this.ruleShortNameIdx++, this.shortRuleNameToFull[a] = e, this.fullRuleNameToShort[e] = a; let o; return this.outputCst === !0 ? o = function(...h) { @@ -78405,7 +78441,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis throw e; } optionInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(Xpe, r); + const n = this.getKeyForAutomaticLookahead(Hpe, r); return this.optionInternalLogic(e, r, n); } optionInternalLogic(e, r, n) { @@ -78443,7 +78479,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis a = this.doSingleRepetition(s); } else throw this.raiseEarlyExitException(e, Yn.REPETITION_MANDATORY, r.ERR_MSG); - this.attemptInRepetitionRecovery(this.atLeastOneInternal, [e, r], i, hR, e, mVt); + this.attemptInRepetitionRecovery(this.atLeastOneInternal, [e, r], i, hR, e, yVt); } atLeastOneSepFirstInternal(e, r) { const n = this.getKeyForAutomaticLookahead(G5, e); @@ -78490,7 +78526,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis i, uR, e, - gVt, + vVt, a ); } @@ -78530,7 +78566,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis return e.call(this), this.getLexerPosition() > r; } orInternal(e, r) { - const n = this.getKeyForAutomaticLookahead(Gpe, r), i = Pr(e) ? e : e.DEF, a = this.getLaFuncFromCache(n).call(this, i); + const n = this.getKeyForAutomaticLookahead(Xpe, r), i = Pr(e) ? e : e.DEF, a = this.getLaFuncFromCache(n).call(this, i); if (a !== void 0) return i[a].ALT.call(this); this.raiseNoAltException(r, e.ERR_MSG); @@ -78541,7 +78577,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis firstRedundant: e, ruleName: this.getCurrRuleFullName() }); - this.SAVE_ERROR(new VVt(r, e)); + this.SAVE_ERROR(new YVt(r, e)); } } subruleInternal(e, r, n) { @@ -78574,7 +78610,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis actual: r, previous: s, ruleName: this.getCurrRuleFullName() - }), this.SAVE_ERROR(new Ype(i, r, s)); + }), this.SAVE_ERROR(new Wpe(i, r, s)); } consumeInternalRecovery(e, r, n) { if (this.recoveryEnabled && n.name === "MismatchedTokenException" && !this.isBackTracking()) { @@ -78582,7 +78618,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis try { return this.tryInRuleRecovery(e, i); } catch (s) { - throw s.name === Wpe ? n : s; + throw s.name === Gpe ? n : s; } } else throw n; @@ -78613,13 +78649,13 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis return this.shortRuleNameToFull[e]; } isAtEndOfInput() { - return this.tokenMatcher(this.LA(1), rd); + return this.tokenMatcher(this.LA(1), nd); } reset() { this.resetLexerState(), this.subruleIdx = 0, this.isBackTrackingStack = [], this.errors = [], this.RULE_STACK = [], this.CST_STACK = [], this.RULE_OCCURRENCE_STACK = []; } } -class uqt { +class fqt { initErrorHandler(e) { this._errors = [], this.errorMessageProvider = _t(e, "errorMessageProvider") ? e.errorMessageProvider : Th.errorMessageProvider; } @@ -78648,7 +78684,7 @@ class uqt { customUserDescription: n, ruleName: i }); - throw this.SAVE_ERROR(new qVt(u, this.LA(1), this.LA(0))); + throw this.SAVE_ERROR(new WVt(u, this.LA(1), this.LA(0))); } raiseNoAltException(e, r) { const n = this.getCurrRuleFullName(), i = this.getGAstProductions()[n], s = kE(e, i, this.maxLookahead), a = []; @@ -78661,31 +78697,31 @@ class uqt { customUserDescription: r, ruleName: this.getCurrRuleFullName() }); - throw this.SAVE_ERROR(new UVt(l, this.LA(1), o)); + throw this.SAVE_ERROR(new qVt(l, this.LA(1), o)); } } -class hqt { +class dqt { initContentAssist() { } computeContentAssist(e, r) { const n = this.gastProductionsCache[e]; if (tn(n)) throw Error(`Rule ->${e}<- does not exist in this grammar.`); - return Ppe([n], r, this.tokenMatcher, this.maxLookahead); + return Npe([n], r, this.tokenMatcher, this.maxLookahead); } getNextPossibleTokenTypes(e) { const r = oc(e.ruleStack), i = this.getGAstProductions()[r]; - return new pVt(i, e).startWalking(); + return new mVt(i, e).startWalking(); } } const CE = { description: "This Object indicates the Parser is during Recording Phase" }; Object.freeze(CE); -const GG = !0, XG = Math.pow(2, wd) - 1, Zpe = Mpe({ name: "RECORDING_PHASE_TOKEN", pattern: no.NA }); -_w([Zpe]); -const jpe = UI( - Zpe, +const GG = !0, XG = Math.pow(2, wd) - 1, jpe = Dpe({ name: "RECORDING_PHASE_TOKEN", pattern: no.NA }); +_w([jpe]); +const Kpe = UI( + jpe, `This IToken indicates the Parser is in Recording Phase See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`, -1, @@ -78695,13 +78731,13 @@ const jpe = UI( -1, -1 ); -Object.freeze(jpe); -const fqt = { +Object.freeze(Kpe); +const pqt = { name: `This CSTNode indicates the Parser is in Recording Phase See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`, children: {} }; -class dqt { +class gqt { initGastRecorder(e) { this.recordingProdStack = [], this.RECORDING_PHASE = !1; } @@ -78792,7 +78828,7 @@ class dqt { Yv.call(this, po, r, e, GG); } orInternalRecord(e, r) { - return pqt.call(this, e, r); + return mqt.call(this, e, r); } subruleInternalRecord(e, r, n) { if (CS(r), !e || _t(e, "ruleName") === !1) { @@ -78806,10 +78842,10 @@ class dqt { label: n == null ? void 0 : n.LABEL, referencedRule: void 0 }); - return i.definition.push(a), this.outputCst ? fqt : CE; + return i.definition.push(a), this.outputCst ? pqt : CE; } consumeInternalRecord(e, r, n) { - if (CS(r), !Lpe(e)) { + if (CS(r), !Rpe(e)) { const a = new Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> inside top level rule: <${this.recordingProdStack[0].name}>`); throw a.KNOWN_RECORDER_ERROR = !0, a; @@ -78819,7 +78855,7 @@ class dqt { terminalType: e, label: n == null ? void 0 : n.LABEL }); - return i.definition.push(s), jpe; + return i.definition.push(s), Kpe; } } function Yv(t, e, r, n = !1) { @@ -78827,7 +78863,7 @@ function Yv(t, e, r, n = !1) { const i = uu(this.recordingProdStack), s = ml(e) ? e : e.DEF, a = new t({ definition: [], idx: r }); return n && (a.separator = e.SEP), _t(e, "MAX_LOOKAHEAD") && (a.maxLookahead = e.MAX_LOOKAHEAD), this.recordingProdStack.push(a), s.call(this), i.definition.push(a), this.recordingProdStack.pop(), CE; } -function pqt(t, e) { +function mqt(t, e) { CS(e); const r = uu(this.recordingProdStack), n = Pr(t) === !1, i = n === !1 ? t : t.DEF, s = new go({ definition: [], @@ -78835,7 +78871,7 @@ function pqt(t, e) { ignoreAmbiguities: n && t.IGNORE_AMBIGUITIES === !0 }); _t(t, "MAX_LOOKAHEAD") && (s.maxLookahead = t.MAX_LOOKAHEAD); - const a = Cde(i, (o) => ml(o.GATE)); + const a = Ede(i, (o) => ml(o.GATE)); return s.hasPredicates = a, r.definition.push(s), Ve(i, (o) => { const l = new oo({ definition: [] }); s.definition.push(l), _t(o, "IGNORE_AMBIGUITIES") ? l.ignoreAmbiguities = o.IGNORE_AMBIGUITIES : _t(o, "GATE") && (l.ignoreAmbiguities = !0), this.recordingProdStack.push(l), o.ALT.call(this), this.recordingProdStack.pop(); @@ -78853,7 +78889,7 @@ function CS(t) { throw e.KNOWN_RECORDER_ERROR = !0, e; } } -class gqt { +class vqt { initPerformanceTracer(e) { if (_t(e, "traceInitPerf")) { const r = e.traceInitPerf, n = typeof r == "number"; @@ -78867,13 +78903,13 @@ class gqt { this.traceInitIndent++; const n = new Array(this.traceInitIndent + 1).join(" "); this.traceInitIndent < this.traceInitMaxIdent && console.log(`${n}--> <${e}>`); - const { time: i, value: s } = xpe(r), a = i > 10 ? console.warn : console.log; + const { time: i, value: s } = wpe(r), a = i > 10 ? console.warn : console.log; return this.traceInitIndent < this.traceInitMaxIdent && a(`${n}<-- <${e}> time: ${i}ms`), this.traceInitIndent--, s; } else return r(); } } -function mqt(t, e) { +function yqt(t, e) { e.forEach((r) => { const n = r.prototype; Object.getOwnPropertyNames(n).forEach((i) => { @@ -78884,7 +78920,7 @@ function mqt(t, e) { }); }); } -const ES = UI(rd, "", NaN, NaN, NaN, NaN, NaN, NaN); +const ES = UI(nd, "", NaN, NaN, NaN, NaN, NaN, NaN); Object.freeze(ES); const Th = Object.freeze({ recoveryEnabled: !1, @@ -78919,7 +78955,7 @@ class Aw { this.selfAnalysisDone = !0; const r = this.className; this.TRACE_INIT("toFastProps", () => { - wpe(this); + Ope(this); }), this.TRACE_INIT("Grammar Recording", () => { try { this.enableRecording(), Ve(this.definedRulesNames, (i) => { @@ -78935,17 +78971,17 @@ class Aw { }); let n = []; if (this.TRACE_INIT("Grammar Resolving", () => { - n = zVt({ + n = UVt({ rules: un(this.gastProductionsCache) }), this.definitionErrors = this.definitionErrors.concat(n); }), this.TRACE_INIT("Grammar Validations", () => { if (Hr(n) && this.skipValidations === !1) { - const i = QVt({ + const i = VVt({ rules: un(this.gastProductionsCache), tokenTypes: un(this.tokensMap), errMsgProvider: y0, grammarName: r - }), s = TVt({ + }), s = EVt({ lookaheadStrategy: this.lookaheadStrategy, rules: un(this.gastProductionsCache), tokenTypes: un(this.tokensMap), @@ -78954,7 +78990,7 @@ class Aw { this.definitionErrors = this.definitionErrors.concat(i, s); } }), Hr(this.definitionErrors) && (this.recoveryEnabled && this.TRACE_INIT("computeAllProdsFollows", () => { - const i = kUt(un(this.gastProductionsCache)); + const i = TUt(un(this.gastProductionsCache)); this.resyncFollows = i; }), this.TRACE_INIT("ComputeLookaheadFunctions", () => { var i, s; @@ -78980,19 +79016,19 @@ class Aw { } } Aw.DEFER_DEFINITION_ERRORS_HANDLING = !1; -mqt(Aw, [ - WVt, - HVt, - aqt, - oqt, - cqt, +yqt(Aw, [ + XVt, + jVt, lqt, - uqt, + cqt, hqt, + uqt, + fqt, dqt, - gqt + gqt, + vqt ]); -class vqt extends Aw { +class bqt extends Aw { constructor(e, r = Th) { const n = Hi(r); n.outputCst = !1, super(e, n); @@ -79001,7 +79037,7 @@ class vqt extends Aw { function e1(t, e, r) { return `${t.name}_${e}_${r}`; } -const nd = 1, yqt = 2, Kpe = 4, Jpe = 5, Lw = 7, bqt = 8, xqt = 9, wqt = 10, Oqt = 11, ege = 12; +const id = 1, xqt = 2, Jpe = 4, ege = 5, Lw = 7, wqt = 8, Oqt = 9, kqt = 10, Sqt = 11, tge = 12; class WI { constructor(e) { this.target = e; @@ -79015,7 +79051,7 @@ class GI extends WI { super(e), this.tokenType = r; } } -class tge extends WI { +class rge extends WI { constructor(e) { super(e); } @@ -79031,7 +79067,7 @@ class XI extends WI { return !0; } } -function kqt(t) { +function Tqt(t) { const e = { decisionMap: {}, decisionStates: [], @@ -79039,109 +79075,109 @@ function kqt(t) { ruleToStopState: /* @__PURE__ */ new Map(), states: [] }; - Sqt(e, t); + Cqt(e, t); const r = t.length; for (let n = 0; n < r; n++) { const i = t[n], s = $p(e, i, i); - s !== void 0 && Nqt(e, i, s); + s !== void 0 && $qt(e, i, s); } return e; } -function Sqt(t, e) { +function Cqt(t, e) { const r = e.length; for (let n = 0; n < r; n++) { const i = e[n], s = as(t, i, void 0, { - type: yqt + type: xqt }), a = as(t, i, void 0, { type: Lw }); s.stop = a, t.ruleToStartState.set(i, s), t.ruleToStopState.set(i, a); } } -function rge(t, e, r) { - return r instanceof In ? HI(t, e, r.terminalType, r) : r instanceof Ma ? Pqt(t, e, r) : r instanceof go ? Aqt(t, e, r) : r instanceof _s ? Lqt(t, e, r) : r instanceof ei ? Tqt(t, e, r) : r instanceof po ? Cqt(t, e, r) : r instanceof Bo ? Eqt(t, e, r) : r instanceof Fo ? _qt(t, e, r) : $p(t, e, r); +function nge(t, e, r) { + return r instanceof In ? HI(t, e, r.terminalType, r) : r instanceof Ma ? Iqt(t, e, r) : r instanceof go ? Rqt(t, e, r) : r instanceof _s ? Mqt(t, e, r) : r instanceof ei ? Eqt(t, e, r) : r instanceof po ? _qt(t, e, r) : r instanceof Bo ? Aqt(t, e, r) : r instanceof Fo ? Lqt(t, e, r) : $p(t, e, r); } -function Tqt(t, e, r) { +function Eqt(t, e, r) { const n = as(t, e, r, { - type: Jpe + type: ege }); Od(t, n); const i = H1(t, e, n, r, $p(t, e, r)); - return ige(t, e, r, i); + return sge(t, e, r, i); } -function Cqt(t, e, r) { +function _qt(t, e, r) { const n = as(t, e, r, { - type: Jpe + type: ege }); Od(t, n); const i = H1(t, e, n, r, $p(t, e, r)), s = HI(t, e, r.separator, r); - return ige(t, e, r, i, s); + return sge(t, e, r, i, s); } -function Eqt(t, e, r) { +function Aqt(t, e, r) { const n = as(t, e, r, { - type: Kpe + type: Jpe }); Od(t, n); const i = H1(t, e, n, r, $p(t, e, r)); - return nge(t, e, r, i); + return ige(t, e, r, i); } -function _qt(t, e, r) { +function Lqt(t, e, r) { const n = as(t, e, r, { - type: Kpe + type: Jpe }); Od(t, n); const i = H1(t, e, n, r, $p(t, e, r)), s = HI(t, e, r.separator, r); - return nge(t, e, r, i, s); + return ige(t, e, r, i, s); } -function Aqt(t, e, r) { +function Rqt(t, e, r) { const n = as(t, e, r, { - type: nd + type: id }); Od(t, n); - const i = St(r.definition, (a) => rge(t, e, a)); + const i = St(r.definition, (a) => nge(t, e, a)); return H1(t, e, n, r, ...i); } -function Lqt(t, e, r) { +function Mqt(t, e, r) { const n = as(t, e, r, { - type: nd + type: id }); Od(t, n); const i = H1(t, e, n, r, $p(t, e, r)); - return Rqt(t, e, r, i); + return Dqt(t, e, r, i); } function $p(t, e, r) { - const n = ni(St(r.definition, (i) => rge(t, e, i)), (i) => i !== void 0); - return n.length === 1 ? n[0] : n.length === 0 ? void 0 : Dqt(t, n); + const n = ni(St(r.definition, (i) => nge(t, e, i)), (i) => i !== void 0); + return n.length === 1 ? n[0] : n.length === 0 ? void 0 : Nqt(t, n); } -function nge(t, e, r, n, i) { +function ige(t, e, r, n, i) { const s = n.left, a = n.right, o = as(t, e, r, { - type: Oqt + type: Sqt }); Od(t, o); const l = as(t, e, r, { - type: ege + type: tge }); return s.loopback = o, l.loopback = o, t.decisionMap[e1(e, i ? "RepetitionMandatoryWithSeparator" : "RepetitionMandatory", r.idx)] = o, Oi(a, o), i === void 0 ? (Oi(o, s), Oi(o, l)) : (Oi(o, l), Oi(o, i.left), Oi(i.right, s)), { left: s, right: l }; } -function ige(t, e, r, n, i) { +function sge(t, e, r, n, i) { const s = n.left, a = n.right, o = as(t, e, r, { - type: wqt + type: kqt }); Od(t, o); const l = as(t, e, r, { - type: ege + type: tge }), u = as(t, e, r, { - type: xqt + type: Oqt }); return o.loopback = u, l.loopback = u, Oi(o, s), Oi(o, l), Oi(a, u), i !== void 0 ? (Oi(u, l), Oi(u, i.left), Oi(i.right, s)) : Oi(u, o), t.decisionMap[e1(e, i ? "RepetitionWithSeparator" : "Repetition", r.idx)] = o, { left: o, right: l }; } -function Rqt(t, e, r, n) { +function Dqt(t, e, r, n) { const i = n.left, s = n.right; return Oi(i, s), t.decisionMap[e1(e, "Option", r.idx)] = i, n; } @@ -79150,7 +79186,7 @@ function Od(t, e) { } function H1(t, e, r, n, ...i) { const s = as(t, e, n, { - type: bqt, + type: wqt, start: r }); r.end = s; @@ -79160,9 +79196,9 @@ function H1(t, e, r, n, ...i) { left: r, right: s }; - return t.decisionMap[e1(e, Mqt(n), n.idx)] = r, a; + return t.decisionMap[e1(e, Pqt(n), n.idx)] = r, a; } -function Mqt(t) { +function Pqt(t) { if (t instanceof go) return "Alternation"; if (t instanceof _s) @@ -79177,14 +79213,14 @@ function Mqt(t) { return "RepetitionMandatoryWithSeparator"; throw new Error("Invalid production type encountered"); } -function Dqt(t, e) { +function Nqt(t, e) { const r = e.length; for (let s = 0; s < r - 1; s++) { const a = e[s]; let o; a.left.transitions.length === 1 && (o = a.left.transitions[0]); const l = o instanceof XI, u = o, h = e[s + 1].left; - a.left.type === nd && a.right.type === nd && o !== void 0 && (l && u.followState === a.right || o.target === a.right) ? (l ? u.followState = h : o.target = h, Iqt(t, a.right)) : Oi(a.right, h); + a.left.type === id && a.right.type === id && o !== void 0 && (l && u.followState === a.right || o.target === a.right) ? (l ? u.followState = h : o.target = h, Bqt(t, a.right)) : Oi(a.right, h); } const n = e[0], i = e[r - 1]; return { @@ -79194,27 +79230,27 @@ function Dqt(t, e) { } function HI(t, e, r, n) { const i = as(t, e, n, { - type: nd + type: id }), s = as(t, e, n, { - type: nd + type: id }); return ZI(i, new GI(s, r)), { left: i, right: s }; } -function Pqt(t, e, r) { +function Iqt(t, e, r) { const n = r.referencedRule, i = t.ruleToStartState.get(n), s = as(t, e, r, { - type: nd + type: id }), a = as(t, e, r, { - type: nd + type: id }), o = new XI(i, n, a); return ZI(s, o), { left: s, right: a }; } -function Nqt(t, e, r) { +function $qt(t, e, r) { const n = t.ruleToStartState.get(e); Oi(n, r.left); const i = t.ruleToStopState.get(e); @@ -79224,7 +79260,7 @@ function Nqt(t, e, r) { }; } function Oi(t, e) { - const r = new tge(e); + const r = new rge(e); ZI(t, r); } function as(t, e, r, n) { @@ -79242,7 +79278,7 @@ function as(t, e, r, n) { function ZI(t, e) { t.transitions.length === 0 && (t.epsilonOnlyTransitions = e.isEpsilon()), t.transitions.push(e); } -function Iqt(t, e) { +function Bqt(t, e) { t.states.splice(t.states.indexOf(e), 1); } const AS = {}; @@ -79257,7 +79293,7 @@ class pR { this.map = {}; } add(e) { - const r = sge(e); + const r = age(e); r in this.map || (this.map[r] = this.configs.length, this.configs.push(e)); } get elements() { @@ -79273,10 +79309,10 @@ class pR { return e; } } -function sge(t, e = !0) { +function age(t, e = !0) { return `${e ? `a${t.alt}` : ""}s${t.state.stateNumber}:${t.stack.map((r) => r.stateNumber.toString()).join("_")}`; } -function $qt(t, e) { +function Fqt(t, e) { const r = {}; return (n) => { const i = n.toString(); @@ -79288,7 +79324,7 @@ function $qt(t, e) { }, r[i] = s), s; }; } -class age { +class oge { constructor() { this.predicates = []; } @@ -79306,14 +79342,14 @@ class age { return e; } } -const jG = new age(); -class Bqt extends YI { +const jG = new oge(); +class zqt extends YI { constructor(e) { var r; super(), this.logging = (r = e == null ? void 0 : e.logging) !== null && r !== void 0 ? r : (n) => console.log(n); } initialize(e) { - this.atn = kqt(e.rules), this.dfas = Fqt(this.atn); + this.atn = Tqt(e.rules), this.dfas = Qqt(this.atn); } validateAmbiguousAlternationAlternatives() { return []; @@ -79349,7 +79385,7 @@ class Bqt extends YI { }; } else return i ? function(d) { - const p = new age(), g = d === void 0 ? 0 : d.length; + const p = new oge(), g = d === void 0 ? 0 : d.length; for (let v = 0; v < g; v++) { const y = d == null ? void 0 : d[v].GATE; p.set(v, y === void 0 || y.call(this)); @@ -79412,53 +79448,53 @@ function KG(t, e = !0) { } return !0; } -function Fqt(t) { +function Qqt(t) { const e = t.decisionStates.length, r = Array(e); for (let n = 0; n < e; n++) - r[n] = $qt(t.decisionStates[n], n); + r[n] = Fqt(t.decisionStates[n], n); return r; } function ZA(t, e, r, n) { const i = t[e](r); let s = i.start; if (s === void 0) { - const o = Zqt(i.atnStartState); - s = lge(i, oge(o)), i.start = s; + const o = Kqt(i.atnStartState); + s = cge(i, lge(o)), i.start = s; } - return zqt.apply(this, [i, s, r, n]); + return Uqt.apply(this, [i, s, r, n]); } -function zqt(t, e, r, n) { +function Uqt(t, e, r, n) { let i = e, s = 1; const a = []; let o = this.LA(s++); for (; ; ) { - let l = Wqt(i, o); - if (l === void 0 && (l = Qqt.apply(this, [t, i, o, s, r, n])), l === AS) - return Yqt(a, i, o); + let l = Xqt(i, o); + if (l === void 0 && (l = Vqt.apply(this, [t, i, o, s, r, n])), l === AS) + return Gqt(a, i, o); if (l.isAcceptState === !0) return l.prediction; i = l, a.push(o), o = this.LA(s++); } } -function Qqt(t, e, r, n, i, s) { - const a = Gqt(e.configs, r, i); +function Vqt(t, e, r, n, i, s) { + const a = Hqt(e.configs, r, i); if (a.size === 0) return JG(t, e, r, AS), AS; - let o = oge(a); - const l = Hqt(a, i); + let o = lge(a); + const l = jqt(a, i); if (l !== void 0) o.isAcceptState = !0, o.prediction = l, o.configs.uniqueAlt = l; - else if (eYt(a)) { + else if (rYt(a)) { const u = Zm(a.alts); - o.isAcceptState = !0, o.prediction = u, o.configs.uniqueAlt = u, Uqt.apply(this, [t, n, a.alts, s]); + o.isAcceptState = !0, o.prediction = u, o.configs.uniqueAlt = u, qqt.apply(this, [t, n, a.alts, s]); } return o = JG(t, e, r, o), o; } -function Uqt(t, e, r, n) { +function qqt(t, e, r, n) { const i = []; for (let u = 1; u <= e; u++) i.push(this.LA(u).tokenType); - const s = t.atnStartState, a = s.rule, o = s.production, l = Vqt({ + const s = t.atnStartState, a = s.rule, o = s.production, l = Yqt({ topLevelRule: a, ambiguityIndices: r, production: o, @@ -79466,15 +79502,15 @@ function Uqt(t, e, r, n) { }); n(l); } -function Vqt(t) { +function Yqt(t) { const e = St(t.prefixPath, (i) => Zg(i)).join(", "), r = t.production.idx === 0 ? "" : t.production.idx; - let n = `Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${qqt(t.production)}${r}> inside <${t.topLevelRule.name}> Rule, + let n = `Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${Wqt(t.production)}${r}> inside <${t.topLevelRule.name}> Rule, <${e}> may appears as a prefix path in all these alternatives. `; return n = n + `See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES For Further details.`, n; } -function qqt(t) { +function Wqt(t) { if (t instanceof Ma) return "SUBRULE"; if (t instanceof _s) @@ -79493,18 +79529,18 @@ function qqt(t) { return "CONSUME"; throw Error("non exhaustive match"); } -function Yqt(t, e, r) { - const n = Lo(e.configs.elements, (s) => s.state.transitions), i = eIt(n.filter((s) => s instanceof GI).map((s) => s.tokenType), (s) => s.tokenTypeIdx); +function Gqt(t, e, r) { + const n = Lo(e.configs.elements, (s) => s.state.transitions), i = rIt(n.filter((s) => s instanceof GI).map((s) => s.tokenType), (s) => s.tokenTypeIdx); return { actualToken: r, possibleTokenTypes: i, tokenPath: t }; } -function Wqt(t, e) { +function Xqt(t, e) { return t.edges[e.tokenTypeIdx]; } -function Gqt(t, e, r) { +function Hqt(t, e, r) { const n = new pR(), i = []; for (const a of t.elements) { if (r.is(a.alt) === !1) @@ -79515,7 +79551,7 @@ function Gqt(t, e, r) { } const o = a.state.transitions.length; for (let l = 0; l < o; l++) { - const u = a.state.transitions[l], h = Xqt(u, e); + const u = a.state.transitions[l], h = Zqt(u, e); h !== void 0 && n.add({ state: h, alt: a.alt, @@ -79529,16 +79565,16 @@ function Gqt(t, e, r) { for (const a of n.elements) LS(a, s); } - if (i.length > 0 && !Kqt(s)) + if (i.length > 0 && !eYt(s)) for (const a of i) s.add(a); return s; } -function Xqt(t, e) { - if (t instanceof GI && Dpe(e, t.tokenType)) +function Zqt(t, e) { + if (t instanceof GI && Ppe(e, t.tokenType)) return t.target; } -function Hqt(t, e) { +function jqt(t, e) { let r; for (const n of t.elements) if (e.is(n.alt) === !0) { @@ -79549,7 +79585,7 @@ function Hqt(t, e) { } return r; } -function oge(t) { +function lge(t) { return { configs: t, edges: {}, @@ -79558,15 +79594,15 @@ function oge(t) { }; } function JG(t, e, r, n) { - return n = lge(t, n), e.edges[r.tokenTypeIdx] = n, n; + return n = cge(t, n), e.edges[r.tokenTypeIdx] = n, n; } -function lge(t, e) { +function cge(t, e) { if (e === AS) return e; const r = e.configs.key, n = t.states[r]; return n !== void 0 ? n : (e.configs.finalize(), t.states[r] = e, e); } -function Zqt(t) { +function Kqt(t) { const e = new pR(), r = t.transitions.length; for (let n = 0; n < r; n++) { const s = { @@ -79595,12 +79631,12 @@ function LS(t, e) { r.epsilonOnlyTransitions || e.add(t); const n = r.transitions.length; for (let i = 0; i < n; i++) { - const s = r.transitions[i], a = jqt(t, s); + const s = r.transitions[i], a = Jqt(t, s); a !== void 0 && LS(a, e); } } -function jqt(t, e) { - if (e instanceof tge) +function Jqt(t, e) { + if (e instanceof rge) return { state: e.target, alt: t.alt, @@ -79615,40 +79651,40 @@ function jqt(t, e) { }; } } -function Kqt(t) { +function eYt(t) { for (const e of t.elements) if (e.state.type === Lw) return !0; return !1; } -function Jqt(t) { +function tYt(t) { for (const e of t.elements) if (e.state.type !== Lw) return !1; return !0; } -function eYt(t) { - if (Jqt(t)) +function rYt(t) { + if (tYt(t)) return !0; - const e = tYt(t.elements); - return rYt(e) && !nYt(e); + const e = nYt(t.elements); + return iYt(e) && !sYt(e); } -function tYt(t) { +function nYt(t) { const e = /* @__PURE__ */ new Map(); for (const r of t) { - const n = sge(r, !1); + const n = age(r, !1); let i = e.get(n); i === void 0 && (i = {}, e.set(n, i)), i[r.alt] = !0; } return e; } -function rYt(t) { +function iYt(t) { for (const e of Array.from(t.values())) if (Object.keys(e).length > 1) return !0; return !1; } -function nYt(t) { +function sYt(t) { for (const e of Array.from(t.values())) if (Object.keys(e).length === 1) return !0; @@ -80430,7 +80466,7 @@ var JX; var eH; (function(t) { function e(s, a, o, l) { - return new iYt(s, a, o, l); + return new aYt(s, a, o, l); } t.create = e; function r(s) { @@ -80469,7 +80505,7 @@ var eH; return s; } })(eH || (eH = {})); -class iYt { +class aYt { constructor(e, r, n, i) { this._uri = e, this._languageId = r, this._version = n, this._content = i, this._lineOffsets = void 0; } @@ -80579,7 +80615,7 @@ var We; } t.typedArray = d; })(We || (We = {})); -class sYt { +class oYt { constructor() { this.nodeStack = []; } @@ -80587,7 +80623,7 @@ class sYt { return this.nodeStack[this.nodeStack.length - 1]; } buildRootNode(e) { - return this.rootNode = new uge(e), this.rootNode.root = this.rootNode, this.nodeStack = [this.rootNode], this.rootNode; + return this.rootNode = new hge(e), this.rootNode.root = this.rootNode, this.nodeStack = [this.rootNode], this.rootNode; } buildCompositeNode(e) { const r = new jI(); @@ -80631,7 +80667,7 @@ class sYt { e.content.push(r); } } -class cge { +class uge { get parent() { return this.container; } @@ -80658,7 +80694,7 @@ class cge { return this.root.fullText.substring(this.offset, this.end); } } -class _R extends cge { +class _R extends uge { get offset() { return this._offset; } @@ -80681,7 +80717,7 @@ class _R extends cge { super(), this._hidden = s, this._offset = e, this._tokenType = i, this._length = r, this._range = n; } } -class jI extends cge { +class jI extends uge { constructor() { super(...arguments), this.content = new KI(this); } @@ -80743,7 +80779,7 @@ class KI extends Array { r.container = this.parent; } } -class uge extends jI { +class hge extends jI { get text() { return this._text.substring(this.offset, this.end); } @@ -80758,12 +80794,12 @@ const AR = Symbol("Datatype"); function jA(t) { return t.$type === AR; } -const tH = "\u200B", hge = (t) => t.endsWith(tH) ? t : t + tH; -class fge { +const tH = "\u200B", fge = (t) => t.endsWith(tH) ? t : t + tH; +class dge { constructor(e) { this._unorderedGroups = /* @__PURE__ */ new Map(), this.lexer = e.parser.Lexer; const r = this.lexer.definition; - this.wrapper = new uYt(r, Object.assign(Object.assign({}, e.parser.ParserConfig), { errorMessageProvider: e.parser.ParserErrorMessageProvider })); + this.wrapper = new fYt(r, Object.assign(Object.assign({}, e.parser.ParserConfig), { errorMessageProvider: e.parser.ParserErrorMessageProvider })); } alternatives(e, r) { this.wrapper.wrapOr(e, r); @@ -80790,15 +80826,15 @@ class fge { this.wrapper.wrapSelfAnalysis(); } } -class aYt extends fge { +class lYt extends dge { get current() { return this.stack[this.stack.length - 1]; } constructor(e) { - super(e), this.nodeBuilder = new sYt(), this.stack = [], this.assignmentMap = /* @__PURE__ */ new Map(), this.linker = e.references.Linker, this.converter = e.parser.ValueConverter, this.astReflection = e.shared.AstReflection; + super(e), this.nodeBuilder = new oYt(), this.stack = [], this.assignmentMap = /* @__PURE__ */ new Map(), this.linker = e.references.Linker, this.converter = e.parser.ValueConverter, this.astReflection = e.shared.AstReflection; } rule(e, r) { - const n = e.fragment ? void 0 : BI(e) ? AR : bE(e), i = this.wrapper.DEFINE_RULE(hge(e.name), this.startImplementation(n, r).bind(this)); + const n = e.fragment ? void 0 : BI(e) ? AR : bE(e), i = this.wrapper.DEFINE_RULE(fge(e.name), this.startImplementation(n, r).bind(this)); return e.entry && (this.mainRule = i), i; } parse(e) { @@ -80881,7 +80917,7 @@ class aYt extends fge { if (this.isRecording()) return; const r = this.current; - return FQt(r), this.nodeBuilder.construct(r), e && this.stack.pop(), jA(r) ? this.converter.convert(r.value, r.$cstNode) : (QQt(this.astReflection, r), r); + return QQt(r), this.nodeBuilder.construct(r), e && this.stack.pop(), jA(r) ? this.converter.convert(r.value, r.$cstNode) : (VQt(this.astReflection, r), r); } getAssignment(e) { if (!this.assignmentMap.has(e)) { @@ -80920,7 +80956,7 @@ class aYt extends fge { return this.wrapper.definitionErrors; } } -class oYt { +class cYt { buildMismatchTokenMessage(e) { return Cg.buildMismatchTokenMessage(e); } @@ -80934,7 +80970,7 @@ class oYt { return Cg.buildEarlyExitMessage(e); } } -class dge extends oYt { +class pge extends cYt { buildMismatchTokenMessage({ expected: e, actual: r }) { return `Expecting ${e.LABEL ? "`" + e.LABEL + "`" : e.name.endsWith(":KW") ? `keyword '${e.name.substring(0, e.name.length - 3)}'` : `token of type '${e.name}'`} but found \`${r.image}\`.`; } @@ -80942,7 +80978,7 @@ class dge extends oYt { return `Expecting end of file but found \`${e.image}\`.`; } } -class lYt extends fge { +class uYt extends dge { constructor() { super(...arguments), this.tokens = [], this.elementStack = [], this.lastElementStack = [], this.nextTokenIndex = 0, this.stackSize = 0; } @@ -80960,7 +80996,7 @@ class lYt extends fge { }; } rule(e, r) { - const n = this.wrapper.DEFINE_RULE(hge(e.name), this.startImplementation(r).bind(this)); + const n = this.wrapper.DEFINE_RULE(fge(e.name), this.startImplementation(r).bind(this)); return e.entry && (this.mainRule = n), n; } resetState() { @@ -81005,16 +81041,16 @@ class lYt extends fge { return this.wrapper.currIdx; } } -const cYt = { +const hYt = { recoveryEnabled: !0, nodeLocationTracking: "full", skipValidations: !0, - errorMessageProvider: new dge() + errorMessageProvider: new pge() }; -class uYt extends vqt { +class fYt extends bqt { constructor(e, r) { const n = r && "maxLookahead" in r; - super(e, Object.assign(Object.assign(Object.assign({}, cYt), { lookaheadStrategy: n ? new YI({ maxLookahead: r.maxLookahead }) : new Bqt() }), r)); + super(e, Object.assign(Object.assign(Object.assign({}, hYt), { lookaheadStrategy: n ? new YI({ maxLookahead: r.maxLookahead }) : new zqt() }), r)); } get IS_RECORDING() { return this.RECORDING_PHASE; @@ -81046,16 +81082,16 @@ class uYt extends vqt { this.atLeastOne(e, r); } } -function pge(t, e, r) { - return hYt({ +function gge(t, e, r) { + return dYt({ parser: e, tokens: r, rules: /* @__PURE__ */ new Map(), ruleNames: /* @__PURE__ */ new Map() }, t), e; } -function hYt(t, e) { - const r = fpe(e, !1), n = Os(e.rules).filter(wl).filter((i) => r.has(i)); +function dYt(t, e) { + const r = dpe(e, !1), n = Os(e.rules).filter(wl).filter((i) => r.has(i)); for (const i of n) { const s = Object.assign(Object.assign({}, t), { consume: 1, optional: 1, subrule: 1, many: 1, or: 1 }); s.rules.set(i.name, t.parser.rule(i, np(s, i.definition))); @@ -81064,46 +81100,46 @@ function hYt(t, e) { function np(t, e, r = !1) { let n; if (ep(e)) - n = yYt(t, e); + n = xYt(t, e); else if (gE(e)) - n = fYt(t, e); + n = pYt(t, e); else if (J0(e)) n = np(t, e.terminal); else if (PI(e)) - n = gge(t, e); + n = mge(t, e); else if (tp(e)) - n = dYt(t, e); - else if (q0e(e)) n = gYt(t, e); - else if (spe(e)) - n = mYt(t, e); - else if (NI(e)) + else if (Y0e(e)) n = vYt(t, e); - else if (MQt(e)) { + else if (ape(e)) + n = yYt(t, e); + else if (NI(e)) + n = bYt(t, e); + else if (PQt(e)) { const i = t.consume++; - n = () => t.parser.consume(i, rd, e); + n = () => t.parser.consume(i, nd, e); } else - throw new E0e(e.$cstNode, `Unexpected element type: ${e.$type}`); - return mge(t, r ? void 0 : IS(e), n, e.cardinality); + throw new _0e(e.$cstNode, `Unexpected element type: ${e.$type}`); + return vge(t, r ? void 0 : IS(e), n, e.cardinality); } -function fYt(t, e) { +function pYt(t, e) { const r = bE(e); return () => t.parser.action(r, e); } -function dYt(t, e) { +function gYt(t, e) { const r = e.rule.ref; if (wl(r)) { - const n = t.subrule++, i = e.arguments.length > 0 ? pYt(r, e.arguments) : () => ({}); - return (s) => t.parser.subrule(n, vge(t, r), e, i(s)); + const n = t.subrule++, i = e.arguments.length > 0 ? mYt(r, e.arguments) : () => ({}); + return (s) => t.parser.subrule(n, yge(t, r), e, i(s)); } else if (Ip(r)) { const n = t.consume++, i = LR(t, r.name); return () => t.parser.consume(n, i, e); } else if (r) pE(); else - throw new E0e(e.$cstNode, `Undefined rule type: ${e.$type}`); + throw new _0e(e.$cstNode, `Undefined rule type: ${e.$type}`); } -function pYt(t, e) { +function mYt(t, e) { const r = e.map((n) => Uu(n.value)); return (n) => { const i = {}; @@ -81115,25 +81151,25 @@ function pYt(t, e) { }; } function Uu(t) { - if (bQt(t)) { + if (wQt(t)) { const e = Uu(t.left), r = Uu(t.right); return (n) => e(n) || r(n); - } else if (yQt(t)) { + } else if (xQt(t)) { const e = Uu(t.left), r = Uu(t.right); return (n) => e(n) && r(n); - } else if (wQt(t)) { + } else if (kQt(t)) { const e = Uu(t.value); return (r) => !e(r); - } else if (SQt(t)) { + } else if (CQt(t)) { const e = t.parameter.ref.name; return (r) => r !== void 0 && r[e] === !0; - } else if (vQt(t)) { + } else if (bQt(t)) { const e = Boolean(t.true); return () => e; } pE(); } -function gYt(t, e) { +function vYt(t, e) { if (e.elements.length === 1) return np(t, e.elements[0]); { @@ -81153,7 +81189,7 @@ function gYt(t, e) { })); } } -function mYt(t, e) { +function yYt(t, e) { if (e.elements.length === 1) return np(t, e.elements[0]); const r = []; @@ -81181,12 +81217,12 @@ function mYt(t, e) { const p = f.unorderedGroups.get(i(n, f)); return !(p != null && p[u]); }, h; - })), a = mge(t, IS(e), s, "*"); + })), a = vge(t, IS(e), s, "*"); return (o) => { a(o), t.parser.isRecording() || t.parser.unorderedGroups.delete(i(n, t.parser)); }; } -function vYt(t, e) { +function bYt(t, e) { const r = e.elements.map((n) => np(t, n)); return (n) => r.forEach((i) => i(n)); } @@ -81194,11 +81230,11 @@ function IS(t) { if (NI(t)) return t.guardCondition; } -function gge(t, e, r = e.terminal) { +function mge(t, e, r = e.terminal) { if (r) if (tp(r) && wl(r.rule.ref)) { const n = t.subrule++; - return (i) => t.parser.subrule(n, vge(t, r.rule.ref), e, i); + return (i) => t.parser.subrule(n, yge(t, r.rule.ref), e, i); } else if (tp(r) && Ip(r.rule.ref)) { const n = t.consume++, i = LR(t, r.rule.ref.name); return () => t.parser.consume(n, i, e); @@ -81210,19 +81246,19 @@ function gge(t, e, r = e.terminal) { else { if (!e.type.ref) throw new Error("Could not resolve reference to type: " + e.type.$refText); - const n = gpe(e.type.ref), i = n == null ? void 0 : n.terminal; + const n = mpe(e.type.ref), i = n == null ? void 0 : n.terminal; if (!i) throw new Error("Could not find name assignment for type: " + bE(e.type.ref)); - return gge(t, e, i); + return mge(t, e, i); } } -function yYt(t, e) { +function xYt(t, e) { const r = t.consume++, n = t.tokens[e.value]; if (!n) throw new Error("Could not find token for keyword: " + e.value); return () => t.parser.consume(r, n, e); } -function mge(t, e, r, n) { +function vge(t, e, r, n) { const i = e && Uu(e); if (!n) if (i) { @@ -81274,13 +81310,13 @@ function mge(t, e, r, n) { } else pE(); } -function vge(t, e) { - const r = bYt(t, e), n = t.rules.get(r); +function yge(t, e) { + const r = wYt(t, e), n = t.rules.get(r); if (!n) throw new Error(`Rule "${r}" not found."`); return n; } -function bYt(t, e) { +function wYt(t, e) { if (wl(e)) return e.name; if (t.ruleNames.has(e)) @@ -81288,7 +81324,7 @@ function bYt(t, e) { { let r = e, n = r.$container, i = e.$type; for (; !wl(n); ) - (NI(n) || q0e(n) || spe(n)) && (i = n.elements.indexOf(r).toString() + ":" + i), r = n, n = n.$container; + (NI(n) || Y0e(n) || ape(n)) && (i = n.elements.indexOf(r).toString() + ":" + i), r = n, n = n.$container; return i = n.name + ":" + i, t.ruleNames.set(e, i), i; } } @@ -81298,21 +81334,21 @@ function LR(t, e) { throw new Error(`Token "${e}" not found."`); return r; } -function xYt(t) { - const e = t.Grammar, r = t.parser.Lexer, n = new lYt(t); - return pge(e, n, r.definition), n.finalize(), n; +function OYt(t) { + const e = t.Grammar, r = t.parser.Lexer, n = new uYt(t); + return gge(e, n, r.definition), n.finalize(), n; } -function wYt(t) { - const e = OYt(t); +function kYt(t) { + const e = SYt(t); return e.finalize(), e; } -function OYt(t) { - const e = t.Grammar, r = t.parser.Lexer, n = new aYt(t); - return pge(e, n, r.definition); +function SYt(t) { + const e = t.Grammar, r = t.parser.Lexer, n = new lYt(t); + return gge(e, n, r.definition); } -class yge { +class bge { buildTokens(e, r) { - const n = Os(fpe(e, !1)), i = this.buildTerminalTokens(n), s = this.buildKeywordTokens(n, i, r); + const n = Os(dpe(e, !1)), i = this.buildTerminalTokens(n), s = this.buildKeywordTokens(n, i, r); return i.forEach((a) => { const o = a.PATTERN; typeof o == "object" && o && "test" in o && CG(o) ? s.unshift(a) : s.push(a); @@ -81347,19 +81383,19 @@ class yge { }; } buildKeywordPattern(e, r) { - return r ? new RegExp(HQt(e.value)) : e.value; + return r ? new RegExp(jQt(e.value)) : e.value; } findLongerAlt(e, r) { return r.reduce((n, i) => { const s = i == null ? void 0 : i.PATTERN; - return (s == null ? void 0 : s.source) && ZQt("^" + s.source + "$", e.value) && n.push(i), n; + return (s == null ? void 0 : s.source) && KQt("^" + s.source + "$", e.value) && n.push(i), n; }, []); } } -class bge { +class xge { convert(e, r) { let n = r.grammarSource; - if (PI(n) && (n = eUt(n)), tp(n)) { + if (PI(n) && (n = rUt(n)), tp(n)) { const i = n.rule.ref; if (!i) throw new Error("This cst node was not parsed by a rule."); @@ -81377,7 +81413,7 @@ class bge { case "ID": return Bu.convertID(r); } - switch ((i = oUt(e)) === null || i === void 0 ? void 0 : i.toLowerCase()) { + switch ((i = cUt(e)) === null || i === void 0 ? void 0 : i.toLowerCase()) { case "number": return Bu.convertNumber(r); case "boolean": @@ -81472,38 +81508,38 @@ EE.default = MR; var Hs = {}; Object.defineProperty(Hs, "__esModule", { value: !0 }); Hs.stringArray = Hs.array = Hs.func = Hs.error = Hs.number = Hs.string = Hs.boolean = void 0; -function kYt(t) { +function TYt(t) { return t === !0 || t === !1; } -Hs.boolean = kYt; -function xge(t) { +Hs.boolean = TYt; +function wge(t) { return typeof t == "string" || t instanceof String; } -Hs.string = xge; -function SYt(t) { +Hs.string = wge; +function CYt(t) { return typeof t == "number" || t instanceof Number; } -Hs.number = SYt; -function TYt(t) { +Hs.number = CYt; +function EYt(t) { return t instanceof Error; } -Hs.error = TYt; -function CYt(t) { +Hs.error = EYt; +function _Yt(t) { return typeof t == "function"; } -Hs.func = CYt; -function wge(t) { +Hs.func = _Yt; +function Oge(t) { return Array.isArray(t); } -Hs.array = wge; -function EYt(t) { - return wge(t) && t.every((e) => xge(e)); +Hs.array = Oge; +function AYt(t) { + return Oge(t) && t.every((e) => wge(e)); } -Hs.stringArray = EYt; +Hs.stringArray = AYt; var i1 = {}; Object.defineProperty(i1, "__esModule", { value: !0 }); i1.Emitter = i1.Event = void 0; -const _Yt = EE; +const LYt = EE; var rH; (function(t) { const e = { dispose() { @@ -81512,7 +81548,7 @@ var rH; return e; }; })(rH || (i1.Event = rH = {})); -class AYt { +class RYt { add(e, r = null, n) { this._callbacks || (this._callbacks = [], this._contexts = []), this._callbacks.push(e), this._contexts.push(r), Array.isArray(n) && n.push({ dispose: () => this.remove(e, r) }); } @@ -81538,7 +81574,7 @@ class AYt { try { r.push(n[s].apply(i[s], e)); } catch (o) { - (0, _Yt.default)().console.error(o); + (0, LYt.default)().console.error(o); } return r; } @@ -81555,7 +81591,7 @@ class _E { } get event() { return this._event || (this._event = (e, r, n) => { - this._callbacks || (this._callbacks = new AYt()), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(e, r); + this._callbacks || (this._callbacks = new RYt()), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(e, r); const i = { dispose: () => { !this._callbacks || (this._callbacks.remove(e, r), i.dispose = _E._noop, this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty() && this._options.onLastListenerRemove(this)); @@ -81577,7 +81613,7 @@ _E._noop = function() { var os; Object.defineProperty(Sb, "__esModule", { value: !0 }); var DR = Sb.CancellationTokenSource = os = Sb.CancellationToken = void 0; -const LYt = EE, RYt = Hs, PR = i1; +const MYt = EE, DYt = Hs, PR = i1; var $S; (function(t) { t.None = Object.freeze({ @@ -81589,12 +81625,12 @@ var $S; }); function e(r) { const n = r; - return n && (n === t.None || n === t.Cancelled || RYt.boolean(n.isCancellationRequested) && !!n.onCancellationRequested); + return n && (n === t.None || n === t.Cancelled || DYt.boolean(n.isCancellationRequested) && !!n.onCancellationRequested); } t.is = e; })($S || (os = Sb.CancellationToken = $S = {})); -const MYt = Object.freeze(function(t, e) { - const r = (0, LYt.default)().timer.setTimeout(t.bind(e), 0); +const PYt = Object.freeze(function(t, e) { + const r = (0, MYt.default)().timer.setTimeout(t.bind(e), 0); return { dispose() { r.dispose(); } }; @@ -81610,13 +81646,13 @@ class nH { return this._isCancelled; } get onCancellationRequested() { - return this._isCancelled ? MYt : (this._emitter || (this._emitter = new PR.Emitter()), this._emitter.event); + return this._isCancelled ? PYt : (this._emitter || (this._emitter = new PR.Emitter()), this._emitter.event); } dispose() { this._emitter && (this._emitter.dispose(), this._emitter = void 0); } } -class DYt { +class NYt { get token() { return this._token || (this._token = new nH()), this._token; } @@ -81627,13 +81663,13 @@ class DYt { this._token ? this._token instanceof nH && this._token.dispose() : this._token = $S.None; } } -DR = Sb.CancellationTokenSource = DYt; -function PYt() { +DR = Sb.CancellationTokenSource = NYt; +function IYt() { return new Promise((t) => { typeof setImmediate > "u" ? setTimeout(t, 0) : setImmediate(t); }); } -let iH = 0, NYt = 10; +let iH = 0, $Yt = 10; const BS = Symbol("OperationCancelled"); function JI(t) { return t === BS; @@ -81642,7 +81678,7 @@ async function jl(t) { if (t === os.None) return; const e = Date.now(); - if (e - iH >= NYt && (iH = e, await PYt()), t.isCancellationRequested) + if (e - iH >= $Yt && (iH = e, await IYt()), t.isCancellationRequested) throw BS; } class e$ { @@ -81675,7 +81711,7 @@ class Tb { update(e, r) { for (const n of e) if (Tb.isIncremental(n)) { - const i = kge(n.range), s = this.offsetAt(i.start), a = this.offsetAt(i.end); + const i = Sge(n.range), s = this.offsetAt(i.start), a = this.offsetAt(i.end); this._content = this._content.substring(0, s) + n.text + this._content.substring(a, this._content.length); const o = Math.max(i.start.line, 0), l = Math.max(i.end.line, 0); let u = this._lineOffsets; @@ -81724,7 +81760,7 @@ class Tb { return this.ensureBeforeEOL(s, n); } ensureBeforeEOL(e, r) { - for (; e > r && Oge(this._content.charCodeAt(e - 1)); ) + for (; e > r && kge(this._content.charCodeAt(e - 1)); ) e--; return e; } @@ -81753,7 +81789,7 @@ var NR; } t.update = r; function n(i, s) { - const a = i.getText(), o = IR(s.map(IYt), (h, f) => { + const a = i.getText(), o = IR(s.map(BYt), (h, f) => { const d = h.range.start.line - f.range.start.line; return d === 0 ? h.range.start.character - f.range.start.character : d; }); @@ -81787,22 +81823,22 @@ function sH(t, e, r = 0) { const n = e ? [r] : []; for (let i = 0; i < t.length; i++) { const s = t.charCodeAt(i); - Oge(s) && (s === 13 && i + 1 < t.length && t.charCodeAt(i + 1) === 10 && i++, n.push(r + i + 1)); + kge(s) && (s === 13 && i + 1 < t.length && t.charCodeAt(i + 1) === 10 && i++, n.push(r + i + 1)); } return n; } -function Oge(t) { +function kge(t) { return t === 13 || t === 10; } -function kge(t) { +function Sge(t) { const e = t.start, r = t.end; return e.line > r.line || e.line === r.line && e.character > r.character ? { start: r, end: e } : t; } -function IYt(t) { - const e = kge(t.range); +function BYt(t) { + const e = Sge(t.range); return e !== t.range ? { newText: t.newText, range: e } : t; } -var Sge; +var Tge; (() => { var t = { 470: (i) => { function s(l) { @@ -82005,11 +82041,11 @@ var Sge; const u = "", h = "/", f = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/; class d { constructor(L, $, k, P, M, N = !1) { - br(this, "scheme"); - br(this, "authority"); - br(this, "path"); - br(this, "query"); - br(this, "fragment"); + fr(this, "scheme"); + fr(this, "authority"); + fr(this, "path"); + fr(this, "query"); + fr(this, "fragment"); typeof L == "object" ? (this.scheme = L.scheme || u, this.authority = L.authority || u, this.path = L.path || u, this.query = L.query || u, this.fragment = L.fragment || u) : (this.scheme = function(D, I) { return D || I ? D : "file"; }(L, N), this.authority = $ || u, this.path = function(D, I) { @@ -82072,8 +82108,8 @@ var Sge; class g extends d { constructor() { super(...arguments); - br(this, "_formatted", null); - br(this, "_fsPath", null); + fr(this, "_formatted", null); + fr(this, "_fsPath", null); } get fsPath() { return this._fsPath || (this._fsPath = b(this, !1)), this._fsPath; @@ -82169,10 +82205,10 @@ var Sge; return A.extname(L.path); }; })(R || (R = {})); - })(), Sge = n; + })(), Tge = n; })(); -const { URI: s1, Utils: Wv } = Sge; -var id; +const { URI: s1, Utils: Wv } = Tge; +var sd; (function(t) { t.basename = Wv.basename, t.dirname = Wv.dirname, t.extname = Wv.extname, t.joinPath = Wv.joinPath, t.resolvePath = Wv.resolvePath; function e(n, i) { @@ -82188,12 +82224,12 @@ var id; return h + f; } t.relative = r; -})(id || (id = {})); +})(sd || (sd = {})); var Bn; (function(t) { t[t.Changed = 0] = "Changed", t[t.Parsed = 1] = "Parsed", t[t.IndexedContent = 2] = "IndexedContent", t[t.ComputedScopes = 3] = "ComputedScopes", t[t.Linked = 4] = "Linked", t[t.IndexedReferences = 5] = "IndexedReferences", t[t.Validated = 6] = "Validated"; })(Bn || (Bn = {})); -class $Yt { +class FYt { constructor(e) { this.serviceRegistry = e.ServiceRegistry, this.textDocuments = e.workspace.TextDocuments, this.fileSystemProvider = e.workspace.FileSystemProvider; } @@ -82282,7 +82318,7 @@ class $Yt { return () => i != null ? i : i = NR.create(e.toString(), n.getServices(e).LanguageMetaData.languageId, 0, r != null ? r : ""); } } -class BYt { +class zYt { constructor(e) { this.documentMap = /* @__PURE__ */ new Map(), this.langiumDocumentFactory = e.workspace.LangiumDocumentFactory; } @@ -82323,13 +82359,13 @@ class BYt { return n && (n.state = Bn.Changed, this.documentMap.delete(r)), n; } } -class FYt { +class QYt { constructor(e) { this.reflection = e.shared.AstReflection, this.langiumDocuments = () => e.shared.workspace.LangiumDocuments, this.scopeProvider = e.references.ScopeProvider, this.astNodeLocator = e.workspace.AstNodeLocator; } async link(e, r = os.None) { for (const n of Hg(e.parseResult.value)) - await jl(r), cpe(n).forEach((i) => this.doLink(i, e)); + await jl(r), upe(n).forEach((i) => this.doLink(i, e)); } doLink(e, r) { const n = e.reference; @@ -82364,7 +82400,7 @@ class FYt { var o; if (ea(this._ref)) return this._ref; - if (iQt(this._nodeDescription)) { + if (aQt(this._nodeDescription)) { const l = s.loadAstNode(this._nodeDescription); this._ref = l != null ? l : s.createLinkingError({ reference: a, container: e, property: r }, this._nodeDescription); } else if (this._ref === void 0) { @@ -82414,25 +82450,25 @@ class FYt { return Object.assign(Object.assign({}, e), { message: `Could not resolve reference to ${i} named '${e.reference.$refText}'.`, targetDescription: r }); } } -function zYt(t) { +function UYt(t) { return typeof t.name == "string"; } -class QYt { +class VYt { getName(e) { - if (zYt(e)) + if (UYt(e)) return e.name; } getNameNode(e) { - return ppe(e.$cstNode, "name"); + return gpe(e.$cstNode, "name"); } } -class UYt { +class qYt { constructor(e) { this.nameProvider = e.references.NameProvider, this.index = e.shared.workspace.IndexManager, this.nodeLocator = e.workspace.AstNodeLocator; } findDeclaration(e) { if (e) { - const r = sUt(e), n = e.astNode; + const r = oUt(e), n = e.astNode; if (r && n) { const i = n[r.feature]; if (Gc(i)) @@ -82445,7 +82481,7 @@ class UYt { } if (n) { const i = this.nameProvider.getNameNode(n); - if (i && (i === e || oQt(e, i))) + if (i && (i === e || cQt(e, i))) return n; } } @@ -82464,7 +82500,7 @@ class UYt { s && n.push(s); } let i = this.index.findAllReferences(e, this.nodeLocator.getAstNodePath(e)); - return r.documentUri && (i = i.filter((s) => id.equals(s.sourceUri, r.documentUri))), n.push(...i), Os(n); + return r.documentUri && (i = i.filter((s) => sd.equals(s.sourceUri, r.documentUri))), n.push(...i), Os(n); } getReferenceToSelf(e) { const r = this.nameProvider.getNameNode(e); @@ -82569,7 +82605,7 @@ class aH { return r !== void 0 ? (this.map.delete(e), this.inverse.delete(r), !0) : !1; } } -class VYt { +class YYt { constructor(e) { this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider; } @@ -82617,7 +82653,7 @@ class oH { return this.outerScope.getElement(e); } } -class qYt { +class WYt { constructor(e, r, n) { var i; this.elements = /* @__PURE__ */ new Map(), this.caseInsensitive = (i = n == null ? void 0 : n.caseInsensitive) !== null && i !== void 0 ? i : !1; @@ -82639,7 +82675,7 @@ class qYt { return this.outerScope && (e = e.concat(this.outerScope.getAllElements())), e; } } -class Tge { +class Cge { constructor() { this.toDispose = [], this.isDisposed = !1; } @@ -82654,7 +82690,7 @@ class Tge { throw new Error("This cache has already been disposed"); } } -class YYt extends Tge { +class GYt extends Cge { constructor() { super(...arguments), this.cache = /* @__PURE__ */ new Map(); } @@ -82680,7 +82716,7 @@ class YYt extends Tge { this.throwIfDisposed(), this.cache.clear(); } } -class WYt extends Tge { +class XYt extends Cge { constructor(e) { super(), this.cache = /* @__PURE__ */ new Map(), this.converter = e != null ? e : (r) => r; } @@ -82717,16 +82753,16 @@ class WYt extends Tge { return n || (n = /* @__PURE__ */ new Map(), this.cache.set(r, n)), n; } } -class GYt extends YYt { +class HYt extends GYt { constructor(e) { super(), this.onDispose(e.workspace.DocumentBuilder.onUpdate(() => { this.clear(); })); } } -class XYt { +class ZYt { constructor(e) { - this.reflection = e.shared.AstReflection, this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider, this.indexManager = e.shared.workspace.IndexManager, this.globalScopeCache = new GYt(e.shared); + this.reflection = e.shared.AstReflection, this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider, this.indexManager = e.shared.workspace.IndexManager, this.globalScopeCache = new HYt(e.shared); } getScope(e) { const r = [], n = this.reflection.getReferenceType(e), i = fu(e.container).precomputedScopes; @@ -82754,16 +82790,16 @@ class XYt { return new oH(i, r, n); } getGlobalScope(e, r) { - return this.globalScopeCache.get(e, () => new qYt(this.indexManager.allElements(e))); + return this.globalScopeCache.get(e, () => new WYt(this.indexManager.allElements(e))); } } -function HYt(t) { +function jYt(t) { return typeof t.$comment == "string"; } function lH(t) { return typeof t == "object" && !!t && ("$ref" in t || "$error" in t); } -class ZYt { +class KYt { constructor(e) { this.ignoreProperties = /* @__PURE__ */ new Set(["$container", "$containerProperty", "$containerIndex", "$document", "$cstNode"]), this.langiumDocuments = e.shared.workspace.LangiumDocuments, this.astNodeLocator = e.workspace.AstNodeLocator, this.nameProvider = e.references.NameProvider, this.commentProvider = e.documentation.CommentProvider; } @@ -82819,7 +82855,7 @@ class ZYt { if (e.$cstNode) { const n = e.$textRegion = r(e.$cstNode), i = n.assignments = {}; return Object.keys(e).filter((s) => !s.startsWith("$")).forEach((s) => { - const a = rUt(e.$cstNode, s).map(r); + const a = iUt(e.$cstNode, s).map(r); a.length !== 0 && (i[s] = a); }), e; } @@ -82883,7 +82919,7 @@ class ZYt { } } } -class jYt { +class JYt { register(e) { if (!this.singleton && !this.map) { this.singleton = e; @@ -82902,7 +82938,7 @@ class jYt { return this.singleton; if (this.map === void 0) throw new Error("The service registry is empty. Use `register` to register the services of a language."); - const r = id.extname(e), n = this.map[r]; + const r = sd.extname(e), n = this.map[r]; if (!n) throw new Error(`The service registry contains no services for the extension '${r}'.`); return n; @@ -82918,7 +82954,7 @@ var FS; (function(t) { t.all = ["fast", "slow", "built-in"]; })(FS || (FS = {})); -class KYt { +class eWt { constructor(e) { this.entries = new t$(), this.reflection = e.shared.AstReflection; } @@ -82970,7 +83006,7 @@ class KYt { return r && (n = n.filter((i) => r.includes(i.category))), n.map((i) => i.check); } } -class JYt { +class tWt { constructor(e) { this.validationRegistry = e.validation.ValidationRegistry, this.metadata = e.LanguageMetaData; } @@ -82978,13 +83014,13 @@ class JYt { const i = e.parseResult, s = []; if (await jl(n), (!r.categories || r.categories.includes("built-in")) && (this.processLexingErrors(i, s, r), r.stopAfterLexingErrors && s.some((a) => { var o; - return ((o = a.data) === null || o === void 0 ? void 0 : o.code) === Jh.LexingError; + return ((o = a.data) === null || o === void 0 ? void 0 : o.code) === ef.LexingError; }) || (this.processParsingErrors(i, s, r), r.stopAfterParsingErrors && s.some((a) => { var o; - return ((o = a.data) === null || o === void 0 ? void 0 : o.code) === Jh.ParsingError; + return ((o = a.data) === null || o === void 0 ? void 0 : o.code) === ef.ParsingError; })) || (this.processLinkingErrors(e, s, r), r.stopAfterLinkingErrors && s.some((a) => { var o; - return ((o = a.data) === null || o === void 0 ? void 0 : o.code) === Jh.LinkingError; + return ((o = a.data) === null || o === void 0 ? void 0 : o.code) === ef.LinkingError; })))) return s; try { @@ -83011,7 +83047,7 @@ class JYt { } }, message: i.message, - data: cH(Jh.LexingError), + data: cH(ef.LexingError), source: this.getSource() }; r.push(s); @@ -83038,7 +83074,7 @@ class JYt { severity: KA("error"), range: s, message: i.message, - data: cH(Jh.ParsingError), + data: cH(ef.ParsingError), source: this.getSource() }; r.push(a); @@ -83054,7 +83090,7 @@ class JYt { property: s.property, index: s.index, data: { - code: Jh.LinkingError, + code: ef.LinkingError, containerType: s.container.$type, property: s.property, refText: s.reference.$refText @@ -83078,7 +83114,7 @@ class JYt { toDiagnostic(e, r, n) { return { message: r, - range: eWt(n), + range: rWt(n), severity: KA(e), code: n.code, codeDescription: n.codeDescription, @@ -83092,11 +83128,11 @@ class JYt { return this.metadata.languageId; } } -function eWt(t) { +function rWt(t) { if (t.range) return t.range; let e; - return typeof t.property == "string" ? e = ppe(t.node.$cstNode, t.property, t.index) : typeof t.keyword == "string" && (e = nUt(t.node.$cstNode, t.keyword, t.index)), e != null || (e = t.node.$cstNode), e ? e.range : { + return typeof t.property == "string" ? e = gpe(t.node.$cstNode, t.property, t.index) : typeof t.keyword == "string" && (e = sUt(t.node.$cstNode, t.keyword, t.index)), e != null || (e = t.node.$cstNode), e ? e.range : { start: { line: 0, character: 0 }, end: { line: 0, character: 0 } }; @@ -83115,11 +83151,11 @@ function KA(t) { throw new Error("Invalid diagnostic severity: " + t); } } -var Jh; +var ef; (function(t) { t.LexingError = "lexing-error", t.ParsingError = "parsing-error", t.LinkingError = "linking-error"; -})(Jh || (Jh = {})); -class tWt { +})(ef || (ef = {})); +class nWt { constructor(e) { this.astNodeLocator = e.workspace.AstNodeLocator, this.nameProvider = e.references.NameProvider; } @@ -83146,14 +83182,14 @@ class tWt { }; } } -class rWt { +class iWt { constructor(e) { this.nodeLocator = e.workspace.AstNodeLocator; } async createDescriptions(e, r = os.None) { const n = [], i = e.parseResult.value; for (const s of Hg(i)) - await jl(r), cpe(s).filter((a) => !U5(a)).forEach((a) => { + await jl(r), upe(s).filter((a) => !U5(a)).forEach((a) => { const o = this.createDescription(a); o && n.push(o); }); @@ -83170,11 +83206,11 @@ class rWt { targetUri: r.documentUri, targetPath: r.path, segment: bS(n), - local: id.equals(r.documentUri, i) + local: sd.equals(r.documentUri, i) }; } } -class nWt { +class sWt { constructor() { this.segmentSeparator = "/", this.indexSeparator = "@"; } @@ -83203,7 +83239,7 @@ class nWt { }, e); } } -class iWt { +class aWt { constructor(e) { this._ready = new e$(), this.settings = {}, this.workspaceConfig = !1, this.serviceRegistry = e.ServiceRegistry; } @@ -83260,7 +83296,7 @@ var zS; } t.create = e; })(zS || (zS = {})); -class sWt { +class oWt { constructor(e) { this.updateBuildOptions = { validation: { @@ -83404,15 +83440,15 @@ class sWt { return (n = (r = this.buildState.get(e.uri.toString())) === null || r === void 0 ? void 0 : r.options) !== null && n !== void 0 ? n : {}; } } -class aWt { +class lWt { constructor(e) { - this.symbolIndex = /* @__PURE__ */ new Map(), this.symbolByTypeIndex = new WYt(), this.referenceIndex = /* @__PURE__ */ new Map(), this.documents = e.workspace.LangiumDocuments, this.serviceRegistry = e.ServiceRegistry, this.astReflection = e.AstReflection; + this.symbolIndex = /* @__PURE__ */ new Map(), this.symbolByTypeIndex = new XYt(), this.referenceIndex = /* @__PURE__ */ new Map(), this.documents = e.workspace.LangiumDocuments, this.serviceRegistry = e.ServiceRegistry, this.astReflection = e.AstReflection; } findAllReferences(e, r) { const n = fu(e).uri, i = []; return this.referenceIndex.forEach((s) => { s.forEach((a) => { - id.equals(a.targetUri, n) && a.targetPath === r && i.push(a); + sd.equals(a.targetUri, n) && a.targetPath === r && i.push(a); }); }), Os(i); } @@ -83444,7 +83480,7 @@ class aWt { return n ? n.some((i) => !i.local && r.has(i.targetUri.toString())) : !1; } } -class oWt { +class cWt { constructor(e) { this.initialBuildOptions = {}, this._ready = new e$(), this.serviceRegistry = e.ServiceRegistry, this.langiumDocuments = e.workspace.LangiumDocuments, this.documentBuilder = e.workspace.DocumentBuilder, this.fileSystemProvider = e.workspace.FileSystemProvider, this.mutex = e.workspace.WorkspaceLock; } @@ -83491,19 +83527,19 @@ class oWt { })); } includeEntry(e, r, n) { - const i = id.basename(r.uri); + const i = sd.basename(r.uri); if (i.startsWith(".")) return !1; if (r.isDirectory) return i !== "node_modules" && i !== "out"; if (r.isFile) { - const s = id.extname(r.uri); + const s = sd.extname(r.uri); return n.includes(s); } return !1; } } -class lWt { +class uWt { constructor(e) { const r = e.parser.TokenBuilder.buildTokens(e.Grammar, { caseInsensitive: e.LanguageMetaData.caseInsensitive @@ -83529,46 +83565,46 @@ class lWt { toTokenTypeDictionary(e) { if (uH(e)) return e; - const r = Cge(e) ? Object.values(e.modes).flat() : e, n = {}; + const r = Ege(e) ? Object.values(e.modes).flat() : e, n = {}; return r.forEach((i) => n[i.name] = i), n; } } -function cWt(t) { +function hWt(t) { return Array.isArray(t) && (t.length === 0 || "name" in t[0]); } -function Cge(t) { +function Ege(t) { return t && "modes" in t && "defaultMode" in t; } function uH(t) { - return !cWt(t) && !Cge(t); + return !hWt(t) && !Ege(t); } -function uWt(t, e, r) { +function fWt(t, e, r) { let n, i; typeof t == "string" ? (i = e, n = r) : (i = t.range.start, n = e), i || (i = Kr.create(0, 0)); - const s = Ege(t), a = r$(n), o = dWt({ + const s = _ge(t), a = r$(n), o = gWt({ lines: s, position: i, options: a }); - return yWt({ + return xWt({ index: 0, tokens: o, position: i }); } -function hWt(t, e) { - const r = r$(e), n = Ege(t); +function dWt(t, e) { + const r = r$(e), n = _ge(t); if (n.length === 0) return !1; const i = n[0], s = n[n.length - 1], a = r.start, o = r.end; return Boolean(a == null ? void 0 : a.exec(i)) && Boolean(o == null ? void 0 : o.exec(s)); } -function Ege(t) { +function _ge(t) { let e = ""; - return typeof t == "string" ? e = t : e = t.text, e.split(YQt); + return typeof t == "string" ? e = t : e = t.text, e.split(GQt); } -const hH = /\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy, fWt = /\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu; -function dWt(t) { +const hH = /\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy, pWt = /\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu; +function gWt(t) { var e, r, n; const i = []; let s = t.position.line, a = t.position.character; @@ -83586,7 +83622,7 @@ function dWt(t) { const p = (n = t.options.end) === null || n === void 0 ? void 0 : n.exec(h); p && (h = h.substring(0, p.index)); } - if (h = h.substring(0, vWt(h)), $R(h, f) >= h.length) { + if (h = h.substring(0, bWt(h)), $R(h, f) >= h.length) { if (i.length > 0) { const p = Kr.create(s, a); i.push({ @@ -83607,15 +83643,15 @@ function dWt(t) { }), f += g.length, f = $R(h, f); } if (f < h.length) { - const g = h.substring(f), m = Array.from(g.matchAll(fWt)); - i.push(...pWt(m, g, s, a + f)); + const g = h.substring(f), m = Array.from(g.matchAll(pWt)); + i.push(...mWt(m, g, s, a + f)); } } s++, a = 0; } return i.length > 0 && i[i.length - 1].type === "break" ? i.slice(0, -1) : i; } -function pWt(t, e, r, n) { +function mWt(t, e, r, n) { const i = []; if (t.length === 0) { const s = Kr.create(r, n), a = Kr.create(r, n + e.length); @@ -83664,63 +83700,63 @@ function pWt(t, e, r, n) { } return i; } -const gWt = /\S/, mWt = /\s*$/; +const vWt = /\S/, yWt = /\s*$/; function $R(t, e) { - const r = t.substring(e).match(gWt); + const r = t.substring(e).match(vWt); return r ? e + r.index : t.length; } -function vWt(t) { - const e = t.match(mWt); +function bWt(t) { + const e = t.match(yWt); if (e && typeof e.index == "number") return e.index; } -function yWt(t) { +function xWt(t) { var e, r, n, i; const s = Kr.create(t.position.line, t.position.character); if (t.tokens.length === 0) return new fH([], Ir.create(s, s)); const a = []; for (; t.index < t.tokens.length; ) { - const u = bWt(t, a[a.length - 1]); + const u = wWt(t, a[a.length - 1]); u && a.push(u); } const o = (r = (e = a[0]) === null || e === void 0 ? void 0 : e.range.start) !== null && r !== void 0 ? r : s, l = (i = (n = a[a.length - 1]) === null || n === void 0 ? void 0 : n.range.end) !== null && i !== void 0 ? i : s; return new fH(a, Ir.create(o, l)); } -function bWt(t, e) { +function wWt(t, e) { const r = t.tokens[t.index]; if (r.type === "tag") - return Age(t, !1); + return Lge(t, !1); if (r.type === "text" || r.type === "inline-tag") - return _ge(t); - xWt(r, e), t.index++; + return Age(t); + OWt(r, e), t.index++; } -function xWt(t, e) { +function OWt(t, e) { if (e) { - const r = new Rge("", t.range); + const r = new Mge("", t.range); "inlines" in e ? e.inlines.push(r) : e.content.inlines.push(r); } } -function _ge(t) { +function Age(t) { let e = t.tokens[t.index]; const r = e; let n = e; const i = []; for (; e && e.type !== "break" && e.type !== "tag"; ) - i.push(wWt(t)), n = e, e = t.tokens[t.index]; + i.push(kWt(t)), n = e, e = t.tokens[t.index]; return new BR(i, Ir.create(r.range.start, n.range.end)); } -function wWt(t) { - return t.tokens[t.index].type === "inline-tag" ? Age(t, !0) : Lge(t); +function kWt(t) { + return t.tokens[t.index].type === "inline-tag" ? Lge(t, !0) : Rge(t); } -function Age(t, e) { +function Lge(t, e) { const r = t.tokens[t.index++], n = r.content.substring(1), i = t.tokens[t.index]; if ((i == null ? void 0 : i.type) === "text") if (e) { - const s = Lge(t); + const s = Rge(t); return new e7(n, new BR([s], s.range), e, Ir.create(r.range.start, s.range.end)); } else { - const s = _ge(t); + const s = Age(t); return new e7(n, s, e, Ir.create(r.range.start, s.range.end)); } else { @@ -83728,9 +83764,9 @@ function Age(t, e) { return new e7(n, new BR([], s), e, s); } } -function Lge(t) { +function Rge(t) { const e = t.tokens[t.index++]; - return new Rge(e.content, e.range); + return new Mge(e.content, e.range); } function r$(t) { if (!t) @@ -83806,7 +83842,7 @@ ${r}`), this.inline ? `{${e}}` : e; toMarkdownDefault(e) { const r = this.content.toMarkdown(e); if (this.inline) { - const s = OWt(this.name, r, e != null ? e : {}); + const s = SWt(this.name, r, e != null ? e : {}); if (typeof s == "string") return s; } @@ -83817,7 +83853,7 @@ ${r}`), this.inline ? `{${e}}` : e; ${r}`), this.inline ? `{${i}}` : i; } } -function OWt(t, e, r) { +function SWt(t, e, r) { var n, i; if (t === "linkplain" || t === "linkcode" || t === "link") { const s = e.indexOf(" "); @@ -83826,10 +83862,10 @@ function OWt(t, e, r) { const l = $R(e, s); a = e.substring(l), e = e.substring(0, s); } - return (t === "linkcode" || t === "link" && r.link === "code") && (a = `\`${a}\``), (i = (n = r.renderLink) === null || n === void 0 ? void 0 : n.call(r, e, a)) !== null && i !== void 0 ? i : kWt(e, a); + return (t === "linkcode" || t === "link" && r.link === "code") && (a = `\`${a}\``), (i = (n = r.renderLink) === null || n === void 0 ? void 0 : n.call(r, e, a)) !== null && i !== void 0 ? i : TWt(e, a); } } -function kWt(t, e) { +function TWt(t, e) { try { return s1.parse(t, !0), `[${e}](${t})`; } catch { @@ -83859,7 +83895,7 @@ class BR { return r; } } -class Rge { +class Mge { constructor(e, r) { this.text = e, this.range = r; } @@ -83877,14 +83913,14 @@ function dH(t) { `; } -class SWt { +class CWt { constructor(e) { this.indexManager = e.shared.workspace.IndexManager, this.commentProvider = e.documentation.CommentProvider; } getDocumentation(e) { const r = this.commentProvider.getComment(e); - if (r && hWt(r)) - return uWt(r).toMarkdown({ + if (r && dWt(r)) + return fWt(r).toMarkdown({ renderLink: (i, s) => this.documentationLinkRenderer(e, i, s), renderTag: (i) => this.documentationTagRenderer(e, i) }); @@ -83916,16 +83952,16 @@ class SWt { return this.indexManager.allElements().find((i) => i.name === r); } } -class TWt { +class EWt { constructor(e) { this.grammarConfig = () => e.parser.GrammarConfig; } getComment(e) { var r; - return HYt(e) ? e.$comment : (r = hQt(e.$cstNode, this.grammarConfig().multilineCommentRules)) === null || r === void 0 ? void 0 : r.text; + return jYt(e) ? e.$comment : (r = dQt(e.$cstNode, this.grammarConfig().multilineCommentRules)) === null || r === void 0 ? void 0 : r.text; } } -class CWt { +class _Wt { constructor(e) { this.syncParser = e.parser.LangiumParser; } @@ -83933,7 +83969,7 @@ class CWt { return Promise.resolve(this.syncParser.parse(e)); } } -class EWt { +class AWt { constructor() { this.previousTokenSource = new DR(), this.writeQueue = [], this.readQueue = [], this.done = !0; } @@ -83976,7 +84012,7 @@ class EWt { this.previousTokenSource.cancel(); } } -class _Wt { +class LWt { constructor(e) { this.grammarElementIdMap = new aH(), this.tokenTypeIdMap = new aH(), this.grammar = e.Grammar, this.lexer = e.parser.Lexer, this.linker = e.references.Linker; } @@ -84019,7 +84055,7 @@ class _Wt { } dehydrateCstNode(e, r) { const n = r.cstNodes.get(e); - return C0e(e) ? n.fullText = e.fullText : n.grammarSource = this.getGrammarElementId(e.grammarSource), n.hidden = e.hidden, n.astNode = r.astNodes.get(e.astNode), Jm(e) ? n.content = e.content.map((i) => this.dehydrateCstNode(i, r)) : T0e(e) && (n.tokenType = e.tokenType.name, n.offset = e.offset, n.length = e.length, n.startLine = e.range.start.line, n.startColumn = e.range.start.character, n.endLine = e.range.end.line, n.endColumn = e.range.end.character), n; + return E0e(e) ? n.fullText = e.fullText : n.grammarSource = this.getGrammarElementId(e.grammarSource), n.hidden = e.hidden, n.astNode = r.astNodes.get(e.astNode), Jm(e) ? n.content = e.content.map((i) => this.dehydrateCstNode(i, r)) : C0e(e) && (n.tokenType = e.tokenType.name, n.offset = e.offset, n.length = e.length, n.startLine = e.range.start.line, n.startColumn = e.range.start.character, n.endLine = e.range.end.line, n.endColumn = e.range.end.character), n; } hydrate(e) { const r = e.value, n = this.createHydrationContext(r); @@ -84037,7 +84073,7 @@ class _Wt { if (e.$cstNode) for (const s of tR(e.$cstNode)) { let a; - "fullText" in s ? (a = new uge(s.fullText), i = a) : "content" in s ? a = new jI() : "tokenType" in s && (a = this.hydrateCstLeafNode(s)), a && (n.set(s, a), a.root = i); + "fullText" in s ? (a = new hge(s.fullText), i = a) : "content" in s ? a = new jI() : "tokenType" in s && (a = this.hydrateCstLeafNode(s)), a && (n.set(s, a), a.root = i); } return { astNodes: r, @@ -84102,60 +84138,60 @@ class _Wt { createGrammarElementIdMap() { let e = 0; for (const r of Hg(this.grammar)) - pQt(r) && this.grammarElementIdMap.set(r, e++); + mQt(r) && this.grammarElementIdMap.set(r, e++); } } function Z1(t) { return { documentation: { - CommentProvider: (e) => new TWt(e), - DocumentationProvider: (e) => new SWt(e) + CommentProvider: (e) => new EWt(e), + DocumentationProvider: (e) => new CWt(e) }, parser: { - AsyncParser: (e) => new CWt(e), - GrammarConfig: (e) => dUt(e), - LangiumParser: (e) => wYt(e), - CompletionParser: (e) => xYt(e), - ValueConverter: () => new bge(), - TokenBuilder: () => new yge(), - Lexer: (e) => new lWt(e), - ParserErrorMessageProvider: () => new dge() + AsyncParser: (e) => new _Wt(e), + GrammarConfig: (e) => gUt(e), + LangiumParser: (e) => kYt(e), + CompletionParser: (e) => OYt(e), + ValueConverter: () => new xge(), + TokenBuilder: () => new bge(), + Lexer: (e) => new uWt(e), + ParserErrorMessageProvider: () => new pge() }, workspace: { - AstNodeLocator: () => new nWt(), - AstNodeDescriptionProvider: (e) => new tWt(e), - ReferenceDescriptionProvider: (e) => new rWt(e) + AstNodeLocator: () => new sWt(), + AstNodeDescriptionProvider: (e) => new nWt(e), + ReferenceDescriptionProvider: (e) => new iWt(e) }, references: { - Linker: (e) => new FYt(e), - NameProvider: () => new QYt(), - ScopeProvider: (e) => new XYt(e), - ScopeComputation: (e) => new VYt(e), - References: (e) => new UYt(e) + Linker: (e) => new QYt(e), + NameProvider: () => new VYt(), + ScopeProvider: (e) => new ZYt(e), + ScopeComputation: (e) => new YYt(e), + References: (e) => new qYt(e) }, serializer: { - Hydrator: (e) => new _Wt(e), - JsonSerializer: (e) => new ZYt(e) + Hydrator: (e) => new LWt(e), + JsonSerializer: (e) => new KYt(e) }, validation: { - DocumentValidator: (e) => new JYt(e), - ValidationRegistry: (e) => new KYt(e) + DocumentValidator: (e) => new tWt(e), + ValidationRegistry: (e) => new eWt(e) }, shared: () => t.shared }; } function j1(t) { return { - ServiceRegistry: () => new jYt(), + ServiceRegistry: () => new JYt(), workspace: { - LangiumDocuments: (e) => new BYt(e), - LangiumDocumentFactory: (e) => new $Yt(e), - DocumentBuilder: (e) => new sWt(e), - IndexManager: (e) => new aWt(e), - WorkspaceManager: (e) => new oWt(e), + LangiumDocuments: (e) => new zYt(e), + LangiumDocumentFactory: (e) => new FYt(e), + DocumentBuilder: (e) => new oWt(e), + IndexManager: (e) => new lWt(e), + WorkspaceManager: (e) => new cWt(e), FileSystemProvider: (e) => t.fileSystemProvider(e), - WorkspaceLock: () => new EWt(), - ConfigurationProvider: (e) => new iWt(e) + WorkspaceLock: () => new AWt(), + ConfigurationProvider: (e) => new aWt(e) } }; } @@ -84165,10 +84201,10 @@ var pH; })(pH || (pH = {})); function Ol(t, e, r, n, i, s, a, o, l) { const u = [t, e, r, n, i, s, a, o, l].reduce(QS, {}); - return Mge(u); + return Dge(u); } const gH = Symbol("isProxy"); -function Mge(t, e) { +function Dge(t, e) { const r = new Proxy({}, { deleteProperty: () => !1, get: (n, i) => vH(n, i, t, e || r), @@ -84190,7 +84226,7 @@ function vH(t, e, r, n) { const i = r[e]; t[e] = mH; try { - t[e] = typeof i == "function" ? i(n) : Mge(i, n); + t[e] = typeof i == "function" ? i(n) : Dge(i, n); } catch (s) { throw t[e] = s instanceof Error ? s : void 0, s; } @@ -84208,7 +84244,7 @@ function QS(t, e) { } return t; } -class AWt { +class RWt { readFile() { throw new Error("No file system is available."); } @@ -84217,8 +84253,8 @@ class AWt { } } const K1 = { - fileSystemProvider: () => new AWt() -}, LWt = { + fileSystemProvider: () => new RWt() +}, MWt = { Grammar: () => { }, LanguageMetaData: () => ({ @@ -84226,87 +84262,87 @@ const K1 = { fileExtensions: [".langium"], languageId: "langium" }) -}, RWt = { - AstReflection: () => new lpe() +}, DWt = { + AstReflection: () => new cpe() }; -function MWt() { - const t = Ol(j1(K1), RWt), e = Ol(Z1({ shared: t }), LWt); +function PWt() { + const t = Ol(j1(K1), DWt), e = Ol(Z1({ shared: t }), MWt); return t.ServiceRegistry.register(e), e; } function Rw(t) { var e; - const r = MWt(), n = r.serializer.JsonSerializer.deserialize(t); + const r = PWt(), n = r.serializer.JsonSerializer.deserialize(t); return r.shared.workspace.LangiumDocumentFactory.fromModel(n, s1.parse(`memory://${(e = n.name) !== null && e !== void 0 ? e : "grammar"}.langium`)), n; } -var DWt = Object.defineProperty, qt = (t, e) => DWt(t, "name", { value: e, configurable: !0 }), PWt = "Statement", NWt = "Architecture"; -function IWt(t) { - return bc.isInstance(t, NWt); +var NWt = Object.defineProperty, qt = (t, e) => NWt(t, "name", { value: e, configurable: !0 }), IWt = "Statement", $Wt = "Architecture"; +function BWt(t) { + return bc.isInstance(t, $Wt); } -qt(IWt, "isArchitecture"); -var Dge = "Branch"; -function $Wt(t) { - return bc.isInstance(t, Dge); -} -qt($Wt, "isBranch"); -var BWt = "Checkout", FWt = "CherryPicking", Pge = "Commit"; -function zWt(t) { +qt(BWt, "isArchitecture"); +var Pge = "Branch"; +function FWt(t) { return bc.isInstance(t, Pge); } -qt(zWt, "isCommit"); -var QWt = "Common"; +qt(FWt, "isBranch"); +var zWt = "Checkout", QWt = "CherryPicking", Nge = "Commit"; function UWt(t) { - return bc.isInstance(t, QWt); -} -qt(UWt, "isCommon"); -var Nge = "GitGraph"; -function VWt(t) { return bc.isInstance(t, Nge); } -qt(VWt, "isGitGraph"); -var qWt = "Info"; -function YWt(t) { - return bc.isInstance(t, qWt); +qt(UWt, "isCommit"); +var VWt = "Common"; +function qWt(t) { + return bc.isInstance(t, VWt); } -qt(YWt, "isInfo"); -var Ige = "Merge"; -function WWt(t) { +qt(qWt, "isCommon"); +var Ige = "GitGraph"; +function YWt(t) { return bc.isInstance(t, Ige); } -qt(WWt, "isMerge"); -var GWt = "Packet"; +qt(YWt, "isGitGraph"); +var WWt = "Info"; +function GWt(t) { + return bc.isInstance(t, WWt); +} +qt(GWt, "isInfo"); +var $ge = "Merge"; function XWt(t) { - return bc.isInstance(t, GWt); + return bc.isInstance(t, $ge); } -qt(XWt, "isPacket"); -var HWt = "PacketBlock"; +qt(XWt, "isMerge"); +var HWt = "Packet"; function ZWt(t) { return bc.isInstance(t, HWt); } -qt(ZWt, "isPacketBlock"); -var jWt = "Pie"; +qt(ZWt, "isPacket"); +var jWt = "PacketBlock"; function KWt(t) { return bc.isInstance(t, jWt); } -qt(KWt, "isPie"); -var JWt = "PieSection"; +qt(KWt, "isPacketBlock"); +var JWt = "Pie"; function eGt(t) { return bc.isInstance(t, JWt); } -qt(eGt, "isPieSection"); -var tGt = "Direction", ax, $ge = (ax = class extends S0e { +qt(eGt, "isPie"); +var tGt = "PieSection"; +function rGt(t) { + return bc.isInstance(t, tGt); +} +qt(rGt, "isPieSection"); +var nGt = "Direction", ax, Bge = (ax = class extends T0e { getAllTypes() { return ["Architecture", "Branch", "Checkout", "CherryPicking", "Commit", "Common", "Direction", "Edge", "GitGraph", "Group", "Info", "Junction", "Merge", "Packet", "PacketBlock", "Pie", "PieSection", "Service", "Statement"]; } computeIsSubtype(e, r) { switch (e) { - case Dge: - case BWt: - case FWt: case Pge: - case Ige: - return this.isSubtype(PWt, r); - case tGt: - return this.isSubtype(Nge, r); + case zWt: + case QWt: + case Nge: + case $ge: + return this.isSubtype(IWt, r); + case nGt: + return this.isSubtype(Ige, r); default: return !1; } @@ -84507,36 +84543,28 @@ var tGt = "Direction", ax, $ge = (ax = class extends S0e { } }, (() => { qt(ax, "MermaidAstReflection"); -})(), ax), bc = new $ge(), w4, rGt = /* @__PURE__ */ qt(() => w4 != null ? w4 : w4 = Rw('{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","name":"Info","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "InfoGrammar"), O4, nGt = /* @__PURE__ */ qt(() => O4 != null ? O4 : O4 = Rw(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","name":"Packet","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"packet-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"?"},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}`), "PacketGrammar"), k4, iGt = /* @__PURE__ */ qt(() => k4 != null ? k4 : k4 = Rw('{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","name":"Pie","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"PIE_SECTION_LABEL","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]+\\"/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PIE_SECTION_VALUE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/(0|[1-9][0-9]*)(\\\\.[0-9]+)?/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "PieGrammar"), S4, sGt = /* @__PURE__ */ qt(() => S4 != null ? S4 : S4 = Rw('{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","name":"Architecture","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","fragment":true,"definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"LeftPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"RightPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Arrow","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ID","definition":{"$type":"RegexToken","regex":"/[\\\\w]+/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TEXT_ICON","definition":{"$type":"RegexToken","regex":"/\\\\(\\"[^\\"]+\\"\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "ArchitectureGrammar"), T4, aGt = /* @__PURE__ */ qt(() => T4 != null ? T4 : T4 = Rw(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"ParserRule","name":"GitGraph","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+(?=\\\\s)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[]}`), "GitGraphGrammar"), oGt = { +})(), ax), bc = new Bge(), w4, iGt = /* @__PURE__ */ qt(() => w4 != null ? w4 : w4 = Rw('{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","name":"Info","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "InfoGrammar"), O4, sGt = /* @__PURE__ */ qt(() => O4 != null ? O4 : O4 = Rw(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","name":"Packet","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"packet-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"?"},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}`), "PacketGrammar"), k4, aGt = /* @__PURE__ */ qt(() => k4 != null ? k4 : k4 = Rw('{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","name":"Pie","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"PIE_SECTION_LABEL","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]+\\"/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PIE_SECTION_VALUE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/(0|[1-9][0-9]*)(\\\\.[0-9]+)?/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "PieGrammar"), S4, oGt = /* @__PURE__ */ qt(() => S4 != null ? S4 : S4 = Rw('{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","name":"Architecture","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","fragment":true,"definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"LeftPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"RightPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Arrow","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ID","definition":{"$type":"RegexToken","regex":"/[\\\\w]+/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TEXT_ICON","definition":{"$type":"RegexToken","regex":"/\\\\(\\"[^\\"]+\\"\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "ArchitectureGrammar"), T4, lGt = /* @__PURE__ */ qt(() => T4 != null ? T4 : T4 = Rw(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"ParserRule","name":"GitGraph","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+(?=\\\\s)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[]}`), "GitGraphGrammar"), cGt = { languageId: "info", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, lGt = { +}, uGt = { languageId: "packet", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, cGt = { +}, hGt = { languageId: "pie", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, uGt = { +}, fGt = { languageId: "architecture", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, hGt = { +}, dGt = { languageId: "gitGraph", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 }, Mw = { - AstReflection: /* @__PURE__ */ qt(() => new $ge(), "AstReflection") -}, fGt = { - Grammar: /* @__PURE__ */ qt(() => rGt(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ qt(() => oGt, "LanguageMetaData"), - parser: {} -}, dGt = { - Grammar: /* @__PURE__ */ qt(() => nGt(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ qt(() => lGt, "LanguageMetaData"), - parser: {} + AstReflection: /* @__PURE__ */ qt(() => new Bge(), "AstReflection") }, pGt = { Grammar: /* @__PURE__ */ qt(() => iGt(), "Grammar"), LanguageMetaData: /* @__PURE__ */ qt(() => cGt, "LanguageMetaData"), @@ -84549,17 +84577,25 @@ var tGt = "Direction", ax, $ge = (ax = class extends S0e { Grammar: /* @__PURE__ */ qt(() => aGt(), "Grammar"), LanguageMetaData: /* @__PURE__ */ qt(() => hGt, "LanguageMetaData"), parser: {} -}, vGt = /accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/, yGt = /accTitle[\t ]*:([^\n\r]*)/, bGt = /title([\t ][^\n\r]*|)/, xGt = { - ACC_DESCR: vGt, - ACC_TITLE: yGt, - TITLE: bGt -}, ox, n$ = (ox = class extends bge { +}, vGt = { + Grammar: /* @__PURE__ */ qt(() => oGt(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ qt(() => fGt, "LanguageMetaData"), + parser: {} +}, yGt = { + Grammar: /* @__PURE__ */ qt(() => lGt(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ qt(() => dGt, "LanguageMetaData"), + parser: {} +}, bGt = /accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/, xGt = /accTitle[\t ]*:([^\n\r]*)/, wGt = /title([\t ][^\n\r]*|)/, OGt = { + ACC_DESCR: bGt, + ACC_TITLE: xGt, + TITLE: wGt +}, ox, n$ = (ox = class extends xge { runConverter(e, r, n) { let i = this.runCommonConverter(e, r, n); return i === void 0 && (i = this.runCustomConverter(e, r, n)), i === void 0 ? super.runConverter(e, r, n) : i; } runCommonConverter(e, r, n) { - const i = xGt[e.name]; + const i = OGt[e.name]; if (i === void 0) return; const s = i.exec(r); @@ -84578,7 +84614,7 @@ var tGt = "Direction", ax, $ge = (ax = class extends S0e { } }, (() => { qt(lx, "CommonValueConverter"); -})(), lx), cx, J1 = (cx = class extends yge { +})(), lx), cx, J1 = (cx = class extends bge { constructor(e) { super(), this.keywords = new Set(e); } @@ -84593,116 +84629,116 @@ var tGt = "Direction", ax, $ge = (ax = class extends S0e { })(), cx), ux; ux = class extends J1 { }, qt(ux, "CommonTokenBuilder"); -var hx, wGt = (hx = class extends J1 { +var hx, kGt = (hx = class extends J1 { constructor() { super(["gitGraph"]); } }, (() => { qt(hx, "GitGraphTokenBuilder"); -})(), hx), Bge = { +})(), hx), Fge = { parser: { - TokenBuilder: /* @__PURE__ */ qt(() => new wGt(), "TokenBuilder"), + TokenBuilder: /* @__PURE__ */ qt(() => new kGt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ qt(() => new i$(), "ValueConverter") } }; -function Fge(t = K1) { +function zge(t = K1) { const e = Ol( j1(t), Mw ), r = Ol( Z1({ shared: e }), - mGt, - Bge + yGt, + Fge ); return e.ServiceRegistry.register(r), { shared: e, GitGraph: r }; } -qt(Fge, "createGitGraphServices"); -var fx, OGt = (fx = class extends J1 { +qt(zge, "createGitGraphServices"); +var fx, SGt = (fx = class extends J1 { constructor() { super(["info", "showInfo"]); } }, (() => { qt(fx, "InfoTokenBuilder"); -})(), fx), zge = { +})(), fx), Qge = { parser: { - TokenBuilder: /* @__PURE__ */ qt(() => new OGt(), "TokenBuilder"), + TokenBuilder: /* @__PURE__ */ qt(() => new SGt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ qt(() => new i$(), "ValueConverter") } }; -function Qge(t = K1) { +function Uge(t = K1) { const e = Ol( j1(t), Mw ), r = Ol( Z1({ shared: e }), - fGt, - zge + pGt, + Qge ); return e.ServiceRegistry.register(r), { shared: e, Info: r }; } -qt(Qge, "createInfoServices"); -var dx, kGt = (dx = class extends J1 { +qt(Uge, "createInfoServices"); +var dx, TGt = (dx = class extends J1 { constructor() { super(["packet-beta"]); } }, (() => { qt(dx, "PacketTokenBuilder"); -})(), dx), Uge = { +})(), dx), Vge = { parser: { - TokenBuilder: /* @__PURE__ */ qt(() => new kGt(), "TokenBuilder"), + TokenBuilder: /* @__PURE__ */ qt(() => new TGt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ qt(() => new i$(), "ValueConverter") } }; -function Vge(t = K1) { +function qge(t = K1) { const e = Ol( j1(t), Mw ), r = Ol( Z1({ shared: e }), - dGt, - Uge + gGt, + Vge ); return e.ServiceRegistry.register(r), { shared: e, Packet: r }; } -qt(Vge, "createPacketServices"); -var px, SGt = (px = class extends J1 { +qt(qge, "createPacketServices"); +var px, CGt = (px = class extends J1 { constructor() { super(["pie", "showData"]); } }, (() => { qt(px, "PieTokenBuilder"); -})(), px), gx, TGt = (gx = class extends n$ { +})(), px), gx, EGt = (gx = class extends n$ { runCustomConverter(e, r, n) { if (e.name === "PIE_SECTION_LABEL") return r.replace(/"/g, "").trim(); } }, (() => { qt(gx, "PieValueConverter"); -})(), gx), qge = { +})(), gx), Yge = { parser: { - TokenBuilder: /* @__PURE__ */ qt(() => new SGt(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ qt(() => new TGt(), "ValueConverter") + TokenBuilder: /* @__PURE__ */ qt(() => new CGt(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ qt(() => new EGt(), "ValueConverter") } }; -function Yge(t = K1) { +function Wge(t = K1) { const e = Ol( j1(t), Mw ), r = Ol( Z1({ shared: e }), - pGt, - qge + mGt, + Yge ); return e.ServiceRegistry.register(r), { shared: e, Pie: r }; } -qt(Yge, "createPieServices"); -var mx, CGt = (mx = class extends J1 { +qt(Wge, "createPieServices"); +var mx, _Gt = (mx = class extends J1 { constructor() { super(["architecture"]); } }, (() => { qt(mx, "ArchitectureTokenBuilder"); -})(), mx), vx, EGt = (vx = class extends n$ { +})(), mx), vx, AGt = (vx = class extends n$ { runCustomConverter(e, r, n) { if (e.name === "ARCH_ICON") return r.replace(/[()]/g, "").trim(); @@ -84713,58 +84749,58 @@ var mx, CGt = (mx = class extends J1 { } }, (() => { qt(vx, "ArchitectureValueConverter"); -})(), vx), Wge = { +})(), vx), Gge = { parser: { - TokenBuilder: /* @__PURE__ */ qt(() => new CGt(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ qt(() => new EGt(), "ValueConverter") + TokenBuilder: /* @__PURE__ */ qt(() => new _Gt(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ qt(() => new AGt(), "ValueConverter") } }; -function Gge(t = K1) { +function Xge(t = K1) { const e = Ol( j1(t), Mw ), r = Ol( Z1({ shared: e }), - gGt, - Wge + vGt, + Gge ); return e.ServiceRegistry.register(r), { shared: e, Architecture: r }; } -qt(Gge, "createArchitectureServices"); -var Jd = {}, _Gt = { +qt(Xge, "createArchitectureServices"); +var Jd = {}, LGt = { info: /* @__PURE__ */ qt(async () => { - const { createInfoServices: t } = await Promise.resolve().then(() => Mhr), e = t().Info.parser.LangiumParser; + const { createInfoServices: t } = await Promise.resolve().then(() => Phr), e = t().Info.parser.LangiumParser; Jd.info = e; }, "info"), packet: /* @__PURE__ */ qt(async () => { - const { createPacketServices: t } = await Promise.resolve().then(() => Dhr), e = t().Packet.parser.LangiumParser; + const { createPacketServices: t } = await Promise.resolve().then(() => Nhr), e = t().Packet.parser.LangiumParser; Jd.packet = e; }, "packet"), pie: /* @__PURE__ */ qt(async () => { - const { createPieServices: t } = await Promise.resolve().then(() => Phr), e = t().Pie.parser.LangiumParser; + const { createPieServices: t } = await Promise.resolve().then(() => Ihr), e = t().Pie.parser.LangiumParser; Jd.pie = e; }, "pie"), architecture: /* @__PURE__ */ qt(async () => { - const { createArchitectureServices: t } = await Promise.resolve().then(() => Nhr), e = t().Architecture.parser.LangiumParser; + const { createArchitectureServices: t } = await Promise.resolve().then(() => $hr), e = t().Architecture.parser.LangiumParser; Jd.architecture = e; }, "architecture"), gitGraph: /* @__PURE__ */ qt(async () => { - const { createGitGraphServices: t } = await Promise.resolve().then(() => Ihr), e = t().GitGraph.parser.LangiumParser; + const { createGitGraphServices: t } = await Promise.resolve().then(() => Bhr), e = t().GitGraph.parser.LangiumParser; Jd.gitGraph = e; }, "gitGraph") }; async function ev(t, e) { - const r = _Gt[t]; + const r = LGt[t]; if (!r) throw new Error(`Unknown diagram type: ${t}`); Jd[t] || await r(); const i = Jd[t].parse(e); if (i.lexerErrors.length > 0 || i.parserErrors.length > 0) - throw new AGt(i); + throw new RGt(i); return i.value; } qt(ev, "parse"); -var yx, AGt = (yx = class extends Error { +var yx, RGt = (yx = class extends Error { constructor(e) { const r = e.lexerErrors.map((i) => i.message).join(` `), n = e.parserErrors.map((i) => i.message).join(` @@ -84779,8 +84815,8 @@ var yx, AGt = (yx = class extends Error { HIGHLIGHT: 2, MERGE: 3, CHERRY_PICK: 4 -}, LGt = cn.gitGraph, Bp = /* @__PURE__ */ x(() => Ih({ - ...LGt, +}, MGt = cn.gitGraph, Bp = /* @__PURE__ */ x(() => $h({ + ...MGt, ...Ai().gitGraph }), "getConfig"), Mt = new DI(() => { const t = Bp(), e = t.mainBranchName, r = t.mainBranchOrder; @@ -84800,26 +84836,26 @@ function AE() { return tle({ length: 7 }); } x(AE, "getID"); -function Xge(t, e) { +function Hge(t, e) { const r = /* @__PURE__ */ Object.create(null); return t.reduce((n, i) => { const s = e(i); return r[s] || (r[s] = !0, n.push(i)), n; }, []); } -x(Xge, "uniqBy"); -var RGt = /* @__PURE__ */ x(function(t) { +x(Hge, "uniqBy"); +var DGt = /* @__PURE__ */ x(function(t) { Mt.records.direction = t; -}, "setDirection"), MGt = /* @__PURE__ */ x(function(t) { +}, "setDirection"), PGt = /* @__PURE__ */ x(function(t) { H.debug("options str", t), t = t == null ? void 0 : t.trim(), t = t || "{}"; try { Mt.records.options = JSON.parse(t); } catch (e) { H.error("error while parsing gitGraph options", e.message); } -}, "setOptions"), DGt = /* @__PURE__ */ x(function() { +}, "setOptions"), NGt = /* @__PURE__ */ x(function() { return Mt.records.options; -}, "getOptions"), PGt = /* @__PURE__ */ x(function(t) { +}, "getOptions"), IGt = /* @__PURE__ */ x(function(t) { let e = t.msg, r = t.id; const n = t.type; let i = t.tags; @@ -84836,15 +84872,15 @@ var RGt = /* @__PURE__ */ x(function(t) { branch: Mt.records.currBranch }; Mt.records.head = a, H.info("main branch", s.mainBranchName), Mt.records.commits.set(a.id, a), Mt.records.branches.set(Mt.records.currBranch, a.id), H.debug("in pushCommit " + a.id); -}, "commit"), NGt = /* @__PURE__ */ x(function(t) { +}, "commit"), $Gt = /* @__PURE__ */ x(function(t) { let e = t.name; const r = t.order; if (e = mt.sanitizeText(e, Bp()), Mt.records.branches.has(e)) throw new Error( `Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")` ); - Mt.records.branches.set(e, Mt.records.head != null ? Mt.records.head.id : null), Mt.records.branchConfig.set(e, { name: e, order: r }), Hge(e), H.debug("in createBranch"); -}, "branch"), IGt = /* @__PURE__ */ x((t) => { + Mt.records.branches.set(e, Mt.records.head != null ? Mt.records.head.id : null), Mt.records.branchConfig.set(e, { name: e, order: r }), Zge(e), H.debug("in createBranch"); +}, "branch"), BGt = /* @__PURE__ */ x((t) => { let e = t.branch, r = t.id; const n = t.type, i = t.tags, s = Bp(); e = mt.sanitizeText(e, s), r && (r = mt.sanitizeText(r, s)); @@ -84921,7 +84957,7 @@ var RGt = /* @__PURE__ */ x(function(t) { tags: i != null ? i : [] }; Mt.records.head = f, Mt.records.commits.set(f.id, f), Mt.records.branches.set(Mt.records.currBranch, f.id), H.debug(Mt.records.branches), H.debug("in mergeBranch"); -}, "merge"), $Gt = /* @__PURE__ */ x(function(t) { +}, "merge"), FGt = /* @__PURE__ */ x(function(t) { let e = t.id, r = t.targetId, n = t.tags, i = t.parent; H.debug("Entering cherryPick:", e, r, n); const s = Bp(); @@ -84993,7 +85029,7 @@ var RGt = /* @__PURE__ */ x(function(t) { }; Mt.records.head = h, Mt.records.commits.set(h.id, h), Mt.records.branches.set(Mt.records.currBranch, h.id), H.debug(Mt.records.branches), H.debug("in cherryPick"); } -}, "cherryPick"), Hge = /* @__PURE__ */ x(function(t) { +}, "cherryPick"), Zge = /* @__PURE__ */ x(function(t) { var e; if (t = mt.sanitizeText(t, Bp()), Mt.records.branches.has(t)) { Mt.records.currBranch = t; @@ -85035,16 +85071,16 @@ function s$(t) { FR(t, e, i); } } - t = Xge(t, (i) => i.id), s$(t); + t = Hge(t, (i) => i.id), s$(t); } x(s$, "prettyPrintCommitHistory"); -var BGt = /* @__PURE__ */ x(function() { +var zGt = /* @__PURE__ */ x(function() { H.debug(Mt.records.commits); - const t = Zge()[0]; + const t = jge()[0]; s$([t]); -}, "prettyPrint"), FGt = /* @__PURE__ */ x(function() { +}, "prettyPrint"), QGt = /* @__PURE__ */ x(function() { Mt.reset(), cs(); -}, "clear"), zGt = /* @__PURE__ */ x(function() { +}, "clear"), UGt = /* @__PURE__ */ x(function() { return [...Mt.records.branchConfig.values()].map((e, r) => e.order !== null && e.order !== void 0 ? e : { ...e, order: parseFloat(`0.${r}`) @@ -85052,61 +85088,61 @@ var BGt = /* @__PURE__ */ x(function() { var n, i; return ((n = e.order) != null ? n : 0) - ((i = r.order) != null ? i : 0); }).map(({ name: e }) => ({ name: e })); -}, "getBranchesAsObjArray"), QGt = /* @__PURE__ */ x(function() { +}, "getBranchesAsObjArray"), VGt = /* @__PURE__ */ x(function() { return Mt.records.branches; -}, "getBranches"), UGt = /* @__PURE__ */ x(function() { +}, "getBranches"), qGt = /* @__PURE__ */ x(function() { return Mt.records.commits; -}, "getCommits"), Zge = /* @__PURE__ */ x(function() { +}, "getCommits"), jge = /* @__PURE__ */ x(function() { const t = [...Mt.records.commits.values()]; return t.forEach(function(e) { H.debug(e.id); }), t.sort((e, r) => e.seq - r.seq), t; -}, "getCommitsArray"), VGt = /* @__PURE__ */ x(function() { +}, "getCommitsArray"), YGt = /* @__PURE__ */ x(function() { return Mt.records.currBranch; -}, "getCurrentBranch"), qGt = /* @__PURE__ */ x(function() { +}, "getCurrentBranch"), WGt = /* @__PURE__ */ x(function() { return Mt.records.direction; -}, "getDirection"), YGt = /* @__PURE__ */ x(function() { +}, "getDirection"), GGt = /* @__PURE__ */ x(function() { return Mt.records.head; -}, "getHead"), jge = { +}, "getHead"), Kge = { commitType: on, getConfig: Bp, - setDirection: RGt, - setOptions: MGt, - getOptions: DGt, - commit: PGt, - branch: NGt, - merge: IGt, - cherryPick: $Gt, - checkout: Hge, - prettyPrint: BGt, - clear: FGt, - getBranchesAsObjArray: zGt, - getBranches: QGt, - getCommits: UGt, - getCommitsArray: Zge, - getCurrentBranch: VGt, - getDirection: qGt, - getHead: YGt, + setDirection: DGt, + setOptions: PGt, + getOptions: NGt, + commit: IGt, + branch: $Gt, + merge: BGt, + cherryPick: FGt, + checkout: Zge, + prettyPrint: zGt, + clear: QGt, + getBranchesAsObjArray: UGt, + getBranches: VGt, + getCommits: qGt, + getCommitsArray: jge, + getCurrentBranch: YGt, + getDirection: WGt, + getHead: GGt, setAccTitle: us, getAccTitle: Ps, getAccDescription: Is, setAccDescription: Ns, setDiagramTitle: Na, getDiagramTitle: $s -}, WGt = /* @__PURE__ */ x((t, e) => { +}, XGt = /* @__PURE__ */ x((t, e) => { Sw(t, e), t.dir && e.setDirection(t.dir); for (const r of t.statements) - GGt(r, e); -}, "populate"), GGt = /* @__PURE__ */ x((t, e) => { + HGt(r, e); +}, "populate"), HGt = /* @__PURE__ */ x((t, e) => { const n = { - Commit: /* @__PURE__ */ x((i) => e.commit(XGt(i)), "Commit"), - Branch: /* @__PURE__ */ x((i) => e.branch(HGt(i)), "Branch"), - Merge: /* @__PURE__ */ x((i) => e.merge(ZGt(i)), "Merge"), - Checkout: /* @__PURE__ */ x((i) => e.checkout(jGt(i)), "Checkout"), - CherryPicking: /* @__PURE__ */ x((i) => e.cherryPick(KGt(i)), "CherryPicking") + Commit: /* @__PURE__ */ x((i) => e.commit(ZGt(i)), "Commit"), + Branch: /* @__PURE__ */ x((i) => e.branch(jGt(i)), "Branch"), + Merge: /* @__PURE__ */ x((i) => e.merge(KGt(i)), "Merge"), + Checkout: /* @__PURE__ */ x((i) => e.checkout(JGt(i)), "Checkout"), + CherryPicking: /* @__PURE__ */ x((i) => e.cherryPick(eXt(i)), "CherryPicking") }[t.$type]; n ? n(t) : H.error(`Unknown statement type: ${t.$type}`); -}, "parseStatement"), XGt = /* @__PURE__ */ x((t) => { +}, "parseStatement"), ZGt = /* @__PURE__ */ x((t) => { var r, n; return { id: t.id, @@ -85114,13 +85150,13 @@ var BGt = /* @__PURE__ */ x(function() { type: t.type !== void 0 ? on[t.type] : on.NORMAL, tags: (n = t.tags) != null ? n : void 0 }; -}, "parseCommit"), HGt = /* @__PURE__ */ x((t) => { +}, "parseCommit"), jGt = /* @__PURE__ */ x((t) => { var r; return { name: t.name, order: (r = t.order) != null ? r : 0 }; -}, "parseBranch"), ZGt = /* @__PURE__ */ x((t) => { +}, "parseBranch"), KGt = /* @__PURE__ */ x((t) => { var r, n; return { branch: t.branch, @@ -85128,7 +85164,7 @@ var BGt = /* @__PURE__ */ x(function() { type: t.type !== void 0 ? on[t.type] : void 0, tags: (n = t.tags) != null ? n : void 0 }; -}, "parseMerge"), jGt = /* @__PURE__ */ x((t) => t.branch, "parseCheckout"), KGt = /* @__PURE__ */ x((t) => { +}, "parseMerge"), JGt = /* @__PURE__ */ x((t) => t.branch, "parseCheckout"), eXt = /* @__PURE__ */ x((t) => { var r; return { id: t.id, @@ -85136,73 +85172,73 @@ var BGt = /* @__PURE__ */ x(function() { tags: ((r = t.tags) == null ? void 0 : r.length) === 0 ? void 0 : t.tags, parent: t.parent }; -}, "parseCherryPicking"), JGt = { +}, "parseCherryPicking"), tXt = { parse: /* @__PURE__ */ x(async (t) => { const e = await ev("gitGraph", t); - H.debug(e), WGt(e, jge); + H.debug(e), XGt(e, Kge); }, "parse") -}, t7 = ke(), Ti = t7 == null ? void 0 : t7.gitGraph, mf = 10, vf = 40, Ac = 4, Qu = 2, e0 = 8, Ka = /* @__PURE__ */ new Map(), io = /* @__PURE__ */ new Map(), US = 30, xy = /* @__PURE__ */ new Map(), VS = [], sf = 0, Nr = "LR", eXt = /* @__PURE__ */ x(() => { - Ka.clear(), io.clear(), xy.clear(), sf = 0, VS = [], Nr = "LR"; -}, "clear"), Kge = /* @__PURE__ */ x((t) => { +}, t7 = ke(), Ti = t7 == null ? void 0 : t7.gitGraph, vf = 10, yf = 40, Ac = 4, Qu = 2, e0 = 8, Ka = /* @__PURE__ */ new Map(), io = /* @__PURE__ */ new Map(), US = 30, xy = /* @__PURE__ */ new Map(), VS = [], af = 0, Nr = "LR", rXt = /* @__PURE__ */ x(() => { + Ka.clear(), io.clear(), xy.clear(), af = 0, VS = [], Nr = "LR"; +}, "clear"), Jge = /* @__PURE__ */ x((t) => { const e = document.createElementNS("http://www.w3.org/2000/svg", "text"); return (typeof t == "string" ? t.split(/\\n|\n|/gi) : t).forEach((n) => { const i = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); i.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), i.setAttribute("dy", "1em"), i.setAttribute("x", "0"), i.setAttribute("class", "row"), i.textContent = n.trim(), e.appendChild(i); }), e; -}, "drawText"), Jge = /* @__PURE__ */ x((t) => { +}, "drawText"), eme = /* @__PURE__ */ x((t) => { let e, r, n; return Nr === "BT" ? (r = /* @__PURE__ */ x((i, s) => i <= s, "comparisonFunc"), n = 1 / 0) : (r = /* @__PURE__ */ x((i, s) => i >= s, "comparisonFunc"), n = 0), t.forEach((i) => { var a, o; const s = Nr === "TB" || Nr == "BT" ? (a = io.get(i)) == null ? void 0 : a.y : (o = io.get(i)) == null ? void 0 : o.x; s !== void 0 && r(s, n) && (e = i, n = s); }), e; -}, "findClosestParent"), tXt = /* @__PURE__ */ x((t) => { +}, "findClosestParent"), nXt = /* @__PURE__ */ x((t) => { let e = "", r = 1 / 0; return t.forEach((n) => { const i = io.get(n).y; i <= r && (e = n, r = i); }), e || void 0; -}, "findClosestParentBT"), rXt = /* @__PURE__ */ x((t, e, r) => { +}, "findClosestParentBT"), iXt = /* @__PURE__ */ x((t, e, r) => { let n = r, i = r; const s = []; t.forEach((a) => { const o = e.get(a); if (!o) throw new Error(`Commit not found for key ${a}`); - o.parents.length ? (n = iXt(o), i = Math.max(n, i)) : s.push(o), sXt(o, n); + o.parents.length ? (n = aXt(o), i = Math.max(n, i)) : s.push(o), oXt(o, n); }), n = i, s.forEach((a) => { - aXt(a, n, r); + lXt(a, n, r); }), t.forEach((a) => { const o = e.get(a); if (o != null && o.parents.length) { - const l = tXt(o.parents); - n = io.get(l).y - vf, n <= i && (i = n); - const u = Ka.get(o.branch).pos, h = n - mf; + const l = nXt(o.parents); + n = io.get(l).y - yf, n <= i && (i = n); + const u = Ka.get(o.branch).pos, h = n - vf; io.set(o.id, { x: u, y: h }); } }); -}, "setParallelBTPos"), nXt = /* @__PURE__ */ x((t) => { +}, "setParallelBTPos"), sXt = /* @__PURE__ */ x((t) => { var n; - const e = Jge(t.parents.filter((i) => i !== null)); + const e = eme(t.parents.filter((i) => i !== null)); if (!e) throw new Error(`Closest parent not found for commit ${t.id}`); const r = (n = io.get(e)) == null ? void 0 : n.y; if (r === void 0) throw new Error(`Closest parent position not found for commit ${t.id}`); return r; -}, "findClosestParentPos"), iXt = /* @__PURE__ */ x((t) => nXt(t) + vf, "calculateCommitPosition"), sXt = /* @__PURE__ */ x((t, e) => { +}, "findClosestParentPos"), aXt = /* @__PURE__ */ x((t) => sXt(t) + yf, "calculateCommitPosition"), oXt = /* @__PURE__ */ x((t, e) => { const r = Ka.get(t.branch); if (!r) throw new Error(`Branch not found for commit ${t.id}`); - const n = r.pos, i = e + mf; + const n = r.pos, i = e + vf; return io.set(t.id, { x: n, y: i }), { x: n, y: i }; -}, "setCommitPosition"), aXt = /* @__PURE__ */ x((t, e, r) => { +}, "setCommitPosition"), lXt = /* @__PURE__ */ x((t, e, r) => { const n = Ka.get(t.branch); if (!n) throw new Error(`Branch not found for commit ${t.id}`); const i = e + r, s = n.pos; io.set(t.id, { x: s, y: i }); -}, "setRootPosition"), oXt = /* @__PURE__ */ x((t, e, r, n, i, s) => { +}, "setRootPosition"), cXt = /* @__PURE__ */ x((t, e, r, n, i, s) => { if (s === on.HIGHLIGHT) t.append("rect").attr("x", r.x - 10).attr("y", r.y - 10).attr("width", 20).attr("height", 20).attr( "class", @@ -85227,7 +85263,7 @@ var BGt = /* @__PURE__ */ x(function() { `M ${r.x - 5},${r.y - 5}L${r.x + 5},${r.y + 5}M${r.x - 5},${r.y + 5}L${r.x + 5},${r.y - 5}` ).attr("class", `commit ${n} ${e.id} commit${i % e0}`); } -}, "drawCommitBullet"), lXt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawCommitBullet"), uXt = /* @__PURE__ */ x((t, e, r, n) => { var i; if (e.type !== on.CHERRY_PICK && (e.customId && e.type === on.MERGE || e.type !== on.MERGE) && (Ti == null ? void 0 : Ti.showCommitLabel)) { const s = t.append("g"), a = s.insert("rect").attr("class", "commit-label-bkg"), o = s.append("text").attr("x", n).attr("y", r.y + 25).attr("class", "commit-label").text(e.id), l = (i = o.node()) == null ? void 0 : i.getBBox(); @@ -85248,7 +85284,7 @@ var BGt = /* @__PURE__ */ x(function() { ); } } -}, "drawCommitLabel"), cXt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawCommitLabel"), hXt = /* @__PURE__ */ x((t, e, r, n) => { var i; if (e.tags.length > 0) { let s = 0, a = 0, o = 0; @@ -85282,15 +85318,15 @@ var BGt = /* @__PURE__ */ x(function() { ` ${r.x},${m + 2} ${r.x},${m - 2} - ${r.x + mf},${m - p - 2} - ${r.x + mf + a + 4},${m - p - 2} - ${r.x + mf + a + 4},${m + p + 2} - ${r.x + mf},${m + p + 2}` + ${r.x + vf},${m - p - 2} + ${r.x + vf + a + 4},${m - p - 2} + ${r.x + vf + a + 4},${m + p + 2} + ${r.x + vf},${m + p + 2}` ).attr("transform", "translate(12,12) rotate(45, " + r.x + "," + n + ")"), h.attr("cx", r.x + Ac / 2).attr("cy", m).attr("transform", "translate(12,12) rotate(45, " + r.x + "," + n + ")"), u.attr("x", r.x + 5).attr("y", m + 3).attr("transform", "translate(14,14) rotate(45, " + r.x + "," + n + ")"); } } } -}, "drawCommitTags"), uXt = /* @__PURE__ */ x((t) => { +}, "drawCommitTags"), fXt = /* @__PURE__ */ x((t) => { var r; switch ((r = t.customType) != null ? r : t.type) { case on.NORMAL: @@ -85306,21 +85342,21 @@ var BGt = /* @__PURE__ */ x(function() { default: return "commit-normal"; } -}, "getCommitClassType"), hXt = /* @__PURE__ */ x((t, e, r, n) => { +}, "getCommitClassType"), dXt = /* @__PURE__ */ x((t, e, r, n) => { var s, a, o; const i = { x: 0, y: 0 }; if (t.parents.length > 0) { - const l = Jge(t.parents); + const l = eme(t.parents); if (l) { const u = (s = n.get(l)) != null ? s : i; - return e === "TB" ? u.y + vf : e === "BT" ? ((a = n.get(t.id)) != null ? a : i).y - vf : u.x + vf; + return e === "TB" ? u.y + yf : e === "BT" ? ((a = n.get(t.id)) != null ? a : i).y - yf : u.x + yf; } } else - return e === "TB" ? US : e === "BT" ? ((o = n.get(t.id)) != null ? o : i).y - vf : 0; + return e === "TB" ? US : e === "BT" ? ((o = n.get(t.id)) != null ? o : i).y - yf : 0; return 0; -}, "calculatePosition"), fXt = /* @__PURE__ */ x((t, e, r) => { +}, "calculatePosition"), pXt = /* @__PURE__ */ x((t, e, r) => { var a, o; - const n = Nr === "BT" && r ? e : e + mf, i = Nr === "TB" || Nr === "BT" ? n : (a = Ka.get(t.branch)) == null ? void 0 : a.pos, s = Nr === "TB" || Nr === "BT" ? (o = Ka.get(t.branch)) == null ? void 0 : o.pos : n; + const n = Nr === "BT" && r ? e : e + vf, i = Nr === "TB" || Nr === "BT" ? n : (a = Ka.get(t.branch)) == null ? void 0 : a.pos, s = Nr === "TB" || Nr === "BT" ? (o = Ka.get(t.branch)) == null ? void 0 : o.pos : n; if (s === void 0 || i === void 0) throw new Error(`Position were undefined for commit ${t.id}`); return { x: s, y: i, posWithOffset: n }; @@ -85336,20 +85372,20 @@ var BGt = /* @__PURE__ */ x(function() { return p !== void 0 && g !== void 0 ? p - g : 0; }, "sortKeys"); let u = a.sort(l); - Nr === "BT" && (o && rXt(u, e, s), u = u.reverse()), u.forEach((f) => { + Nr === "BT" && (o && iXt(u, e, s), u = u.reverse()), u.forEach((f) => { var g, m, v; const d = e.get(f); if (!d) throw new Error(`Commit not found for key ${f}`); - o && (s = hXt(d, Nr, s, io)); - const p = fXt(d, s, o); + o && (s = dXt(d, Nr, s, io)); + const p = pXt(d, s, o); if (r) { - const y = uXt(d), b = (g = d.customType) != null ? g : d.type, w = (v = (m = Ka.get(d.branch)) == null ? void 0 : m.index) != null ? v : 0; - oXt(n, d, p, y, w, b), lXt(i, d, p, s), cXt(i, d, p, s); + const y = fXt(d), b = (g = d.customType) != null ? g : d.type, w = (v = (m = Ka.get(d.branch)) == null ? void 0 : m.index) != null ? v : 0; + cXt(n, d, p, y, w, b), uXt(i, d, p, s), hXt(i, d, p, s); } - Nr === "TB" || Nr === "BT" ? io.set(d.id, { x: p.x, y: p.posWithOffset }) : io.set(d.id, { x: p.posWithOffset, y: p.y }), s = Nr === "BT" && o ? s + vf : s + vf + mf, s > sf && (sf = s); + Nr === "TB" || Nr === "BT" ? io.set(d.id, { x: p.x, y: p.posWithOffset }) : io.set(d.id, { x: p.posWithOffset, y: p.y }), s = Nr === "BT" && o ? s + yf : s + yf + vf, s > af && (af = s); }); -}, "drawCommits"), dXt = /* @__PURE__ */ x((t, e, r, n, i) => { +}, "drawCommits"), gXt = /* @__PURE__ */ x((t, e, r, n, i) => { const a = (Nr === "TB" || Nr === "BT" ? r.x < n.x : r.y < n.y) ? e.branch : t.branch, o = /* @__PURE__ */ x((u) => u.branch === a, "isOnBranchToGetCurve"), l = /* @__PURE__ */ x((u) => u.seq > t.seq && u.seq < e.seq, "isBetweenCommits"); return [...i.values()].some((u) => l(u) && o(u)); }, "shouldRerouteArrow"), wy = /* @__PURE__ */ x((t, e, r = 0) => { @@ -85360,12 +85396,12 @@ var BGt = /* @__PURE__ */ x(function() { return VS.push(n), n; const s = Math.abs(t - e); return wy(t, e - s / 5, r + 1); -}, "findLane"), pXt = /* @__PURE__ */ x((t, e, r, n) => { +}, "findLane"), mXt = /* @__PURE__ */ x((t, e, r, n) => { var p, g, m, v, y; const i = io.get(e.id), s = io.get(r.id); if (i === void 0 || s === void 0) throw new Error(`Commit positions not found for commits ${e.id} and ${r.id}`); - const a = dXt(e, r, i, s, n); + const a = gXt(e, r, i, s, n); let o = "", l = "", u = 0, h = 0, f = (p = Ka.get(r.branch)) == null ? void 0 : p.index; r.type === on.MERGE && e.id !== r.parents[0] && (f = (g = Ka.get(e.branch)) == null ? void 0 : g.index); let d; @@ -85378,15 +85414,15 @@ var BGt = /* @__PURE__ */ x(function() { if (d === void 0) throw new Error("Line definition not found"); t.append("path").attr("d", d).attr("class", "arrow arrow" + f % e0); -}, "drawArrow"), gXt = /* @__PURE__ */ x((t, e) => { +}, "drawArrow"), vXt = /* @__PURE__ */ x((t, e) => { const r = t.append("g").attr("class", "commit-arrows"); [...e.keys()].forEach((n) => { const i = e.get(n); i.parents && i.parents.length > 0 && i.parents.forEach((s) => { - pXt(r, e.get(s), i, e); + mXt(r, e.get(s), i, e); }); }); -}, "drawArrows"), mXt = /* @__PURE__ */ x((t, e) => { +}, "drawArrows"), yXt = /* @__PURE__ */ x((t, e) => { const r = t.append("g"); e.forEach((n, i) => { var g; @@ -85394,20 +85430,20 @@ var BGt = /* @__PURE__ */ x(function() { if (a === void 0) throw new Error(`Position not found for branch ${n.name}`); const o = r.append("line"); - o.attr("x1", 0), o.attr("y1", a), o.attr("x2", sf), o.attr("y2", a), o.attr("class", "branch branch" + s), Nr === "TB" ? (o.attr("y1", US), o.attr("x1", a), o.attr("y2", sf), o.attr("x2", a)) : Nr === "BT" && (o.attr("y1", sf), o.attr("x1", a), o.attr("y2", US), o.attr("x2", a)), VS.push(a); - const l = n.name, u = Kge(l), h = r.insert("rect"), d = r.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + s); + o.attr("x1", 0), o.attr("y1", a), o.attr("x2", af), o.attr("y2", a), o.attr("class", "branch branch" + s), Nr === "TB" ? (o.attr("y1", US), o.attr("x1", a), o.attr("y2", af), o.attr("x2", a)) : Nr === "BT" && (o.attr("y1", af), o.attr("x1", a), o.attr("y2", US), o.attr("x2", a)), VS.push(a); + const l = n.name, u = Jge(l), h = r.insert("rect"), d = r.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + s); d.node().appendChild(u); const p = u.getBBox(); h.attr("class", "branchLabelBkg label" + s).attr("rx", 4).attr("ry", 4).attr("x", -p.width - 4 - ((Ti == null ? void 0 : Ti.rotateCommitLabel) === !0 ? 30 : 0)).attr("y", -p.height / 2 + 8).attr("width", p.width + 18).attr("height", p.height + 4), d.attr( "transform", "translate(" + (-p.width - 14 - ((Ti == null ? void 0 : Ti.rotateCommitLabel) === !0 ? 30 : 0)) + ", " + (a - p.height / 2 - 1) + ")" - ), Nr === "TB" ? (h.attr("x", a - p.width / 2 - 10).attr("y", 0), d.attr("transform", "translate(" + (a - p.width / 2 - 5) + ", 0)")) : Nr === "BT" ? (h.attr("x", a - p.width / 2 - 10).attr("y", sf), d.attr("transform", "translate(" + (a - p.width / 2 - 5) + ", " + sf + ")")) : h.attr("transform", "translate(-19, " + (a - p.height / 2) + ")"); + ), Nr === "TB" ? (h.attr("x", a - p.width / 2 - 10).attr("y", 0), d.attr("transform", "translate(" + (a - p.width / 2 - 5) + ", 0)")) : Nr === "BT" ? (h.attr("x", a - p.width / 2 - 10).attr("y", af), d.attr("transform", "translate(" + (a - p.width / 2 - 5) + ", " + af + ")")) : h.attr("transform", "translate(-19, " + (a - p.height / 2) + ")"); }); -}, "drawBranches"), vXt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "drawBranches"), bXt = /* @__PURE__ */ x(function(t, e, r, n, i) { return Ka.set(t, { pos: e, index: r }), e += 50 + (i ? 40 : 0) + (Nr === "TB" || Nr === "BT" ? n.width / 2 : 0), e; -}, "setBranchPosition"), yXt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "setBranchPosition"), xXt = /* @__PURE__ */ x(function(t, e, r, n) { var u, h; - if (eXt(), H.debug("in gitgraph renderer", t + ` + if (rXt(), H.debug("in gitgraph renderer", t + ` `, "id:", e, r), !Ti) throw new Error("GitGraph config not found"); const i = (u = Ti.rotateCommitLabel) != null ? u : !1, s = n.db; @@ -85418,11 +85454,11 @@ var BGt = /* @__PURE__ */ x(function() { let l = 0; a.forEach((f, d) => { var b; - const p = Kge(f.name), g = o.append("g"), m = g.insert("g").attr("class", "branchLabel"), v = m.insert("g").attr("class", "label branch-label"); + const p = Jge(f.name), g = o.append("g"), m = g.insert("g").attr("class", "branchLabel"), v = m.insert("g").attr("class", "label branch-label"); (b = v.node()) == null || b.appendChild(p); const y = p.getBBox(); - l = vXt(f.name, l, d, y, i), v.remove(), m.remove(), g.remove(); - }), yH(o, xy, !1), Ti.showBranches && mXt(o, a), gXt(o, xy), yH(o, xy, !0), gr.insertTitle( + l = bXt(f.name, l, d, y, i), v.remove(), m.remove(), g.remove(); + }), yH(o, xy, !1), Ti.showBranches && yXt(o, a), vXt(o, xy), yH(o, xy, !0), mr.insertTitle( o, "gitTitleText", (h = Ti.titleTopMargin) != null ? h : 0, @@ -85433,9 +85469,9 @@ var BGt = /* @__PURE__ */ x(function() { Ti.diagramPadding, Ti.useMaxWidth ); -}, "draw"), bXt = { - draw: yXt -}, xXt = /* @__PURE__ */ x((t) => ` +}, "draw"), wXt = { + draw: xXt +}, OXt = /* @__PURE__ */ x((t) => ` .commit-id, .commit-msg, .branch-label { @@ -85488,17 +85524,17 @@ var BGt = /* @__PURE__ */ x(function() { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), wXt = xXt, OXt = { - parser: JGt, - db: jge, - renderer: bXt, - styles: wXt +`, "getStyles"), kXt = OXt, SXt = { + parser: tXt, + db: Kge, + renderer: wXt, + styles: kXt }; -const kXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const TXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: OXt + diagram: SXt }, Symbol.toStringTag, { value: "Module" })); -var eme = { exports: {} }; +var tme = { exports: {} }; (function(t, e) { (function(r, n) { t.exports = n(); @@ -85525,9 +85561,9 @@ var eme = { exports: {} }; }; }; }); -})(eme); -const SXt = eme.exports; -var tme = { exports: {} }; +})(tme); +const CXt = tme.exports; +var rme = { exports: {} }; (function(t, e) { (function(r, n) { t.exports = n(); @@ -85658,9 +85694,9 @@ var tme = { exports: {} }; }; }; }); -})(tme); -const TXt = tme.exports; -var rme = { exports: {} }; +})(rme); +const EXt = rme.exports; +var nme = { exports: {} }; (function(t, e) { (function(r, n) { t.exports = n(); @@ -85708,8 +85744,8 @@ var rme = { exports: {} }; }; }; }); -})(rme); -const CXt = rme.exports; +})(nme); +const _Xt = nme.exports; var zR = function() { var t = /* @__PURE__ */ x(function($, k, P, M) { for (P = P || {}, M = $.length; M--; P[$[M]] = k) @@ -86205,77 +86241,77 @@ Expecting ` + Ge.join(", ") + ", got '" + (this.terminals_[ae] || ae) + "'" : Ie return x(L, "Parser"), L.prototype = R, R.Parser = L, new L(); }(); zR.parser = zR; -var EXt = zR; -Ks.extend(SXt); -Ks.extend(TXt); +var AXt = zR; Ks.extend(CXt); -var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw = [], Pw = [], c$ = /* @__PURE__ */ new Map(), u$ = [], qS = [], a1 = "", h$ = "", nme = ["active", "done", "crit", "milestone"], f$ = [], Nw = !1, d$ = !1, p$ = "sunday", YS = "saturday", QR = 0, _Xt = /* @__PURE__ */ x(function() { +Ks.extend(EXt); +Ks.extend(_Xt); +var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw = [], Pw = [], c$ = /* @__PURE__ */ new Map(), u$ = [], qS = [], a1 = "", h$ = "", ime = ["active", "done", "crit", "milestone"], f$ = [], Nw = !1, d$ = !1, p$ = "sunday", YS = "saturday", QR = 0, LXt = /* @__PURE__ */ x(function() { u$ = [], qS = [], a1 = "", f$ = [], X5 = 0, VR = void 0, H5 = void 0, Di = [], Xc = "", a$ = "", h$ = "", o$ = void 0, l$ = "", Dw = [], Pw = [], Nw = !1, d$ = !1, QR = 0, c$ = /* @__PURE__ */ new Map(), cs(), p$ = "sunday", YS = "saturday"; -}, "clear"), AXt = /* @__PURE__ */ x(function(t) { +}, "clear"), RXt = /* @__PURE__ */ x(function(t) { a$ = t; -}, "setAxisFormat"), LXt = /* @__PURE__ */ x(function() { +}, "setAxisFormat"), MXt = /* @__PURE__ */ x(function() { return a$; -}, "getAxisFormat"), RXt = /* @__PURE__ */ x(function(t) { +}, "getAxisFormat"), DXt = /* @__PURE__ */ x(function(t) { o$ = t; -}, "setTickInterval"), MXt = /* @__PURE__ */ x(function() { +}, "setTickInterval"), PXt = /* @__PURE__ */ x(function() { return o$; -}, "getTickInterval"), DXt = /* @__PURE__ */ x(function(t) { +}, "getTickInterval"), NXt = /* @__PURE__ */ x(function(t) { l$ = t; -}, "setTodayMarker"), PXt = /* @__PURE__ */ x(function() { +}, "setTodayMarker"), IXt = /* @__PURE__ */ x(function() { return l$; -}, "getTodayMarker"), NXt = /* @__PURE__ */ x(function(t) { +}, "getTodayMarker"), $Xt = /* @__PURE__ */ x(function(t) { Xc = t; -}, "setDateFormat"), IXt = /* @__PURE__ */ x(function() { +}, "setDateFormat"), BXt = /* @__PURE__ */ x(function() { Nw = !0; -}, "enableInclusiveEndDates"), $Xt = /* @__PURE__ */ x(function() { +}, "enableInclusiveEndDates"), FXt = /* @__PURE__ */ x(function() { return Nw; -}, "endDatesAreInclusive"), BXt = /* @__PURE__ */ x(function() { +}, "endDatesAreInclusive"), zXt = /* @__PURE__ */ x(function() { d$ = !0; -}, "enableTopAxis"), FXt = /* @__PURE__ */ x(function() { +}, "enableTopAxis"), QXt = /* @__PURE__ */ x(function() { return d$; -}, "topAxisEnabled"), zXt = /* @__PURE__ */ x(function(t) { +}, "topAxisEnabled"), UXt = /* @__PURE__ */ x(function(t) { h$ = t; -}, "setDisplayMode"), QXt = /* @__PURE__ */ x(function() { +}, "setDisplayMode"), VXt = /* @__PURE__ */ x(function() { return h$; -}, "getDisplayMode"), UXt = /* @__PURE__ */ x(function() { +}, "getDisplayMode"), qXt = /* @__PURE__ */ x(function() { return Xc; -}, "getDateFormat"), VXt = /* @__PURE__ */ x(function(t) { +}, "getDateFormat"), YXt = /* @__PURE__ */ x(function(t) { Dw = t.toLowerCase().split(/[\s,]+/); -}, "setIncludes"), qXt = /* @__PURE__ */ x(function() { +}, "setIncludes"), WXt = /* @__PURE__ */ x(function() { return Dw; -}, "getIncludes"), YXt = /* @__PURE__ */ x(function(t) { +}, "getIncludes"), GXt = /* @__PURE__ */ x(function(t) { Pw = t.toLowerCase().split(/[\s,]+/); -}, "setExcludes"), WXt = /* @__PURE__ */ x(function() { +}, "setExcludes"), XXt = /* @__PURE__ */ x(function() { return Pw; -}, "getExcludes"), GXt = /* @__PURE__ */ x(function() { +}, "getExcludes"), HXt = /* @__PURE__ */ x(function() { return c$; -}, "getLinks"), XXt = /* @__PURE__ */ x(function(t) { +}, "getLinks"), ZXt = /* @__PURE__ */ x(function(t) { a1 = t, u$.push(t); -}, "addSection"), HXt = /* @__PURE__ */ x(function() { +}, "addSection"), jXt = /* @__PURE__ */ x(function() { return u$; -}, "getSections"), ZXt = /* @__PURE__ */ x(function() { +}, "getSections"), KXt = /* @__PURE__ */ x(function() { let t = xH(); const e = 10; let r = 0; for (; !t && r < e; ) t = xH(), r++; return qS = Di, qS; -}, "getTasks"), ime = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getTasks"), sme = /* @__PURE__ */ x(function(t, e, r, n) { return n.includes(t.format(e.trim())) ? !1 : r.includes("weekends") && (t.isoWeekday() === bH[YS] || t.isoWeekday() === bH[YS] + 1) || r.includes(t.format("dddd").toLowerCase()) ? !0 : r.includes(t.format(e.trim())); -}, "isInvalidDate"), jXt = /* @__PURE__ */ x(function(t) { +}, "isInvalidDate"), JXt = /* @__PURE__ */ x(function(t) { p$ = t; -}, "setWeekday"), KXt = /* @__PURE__ */ x(function() { +}, "setWeekday"), eHt = /* @__PURE__ */ x(function() { return p$; -}, "getWeekday"), JXt = /* @__PURE__ */ x(function(t) { +}, "getWeekday"), tHt = /* @__PURE__ */ x(function(t) { YS = t; -}, "setWeekend"), sme = /* @__PURE__ */ x(function(t, e, r, n) { +}, "setWeekend"), ame = /* @__PURE__ */ x(function(t, e, r, n) { if (!r.length || t.manualEndTime) return; let i; t.startTime instanceof Date ? i = Ks(t.startTime) : i = Ks(t.startTime, e, !0), i = i.add(1, "d"); let s; t.endTime instanceof Date ? s = Ks(t.endTime) : s = Ks(t.endTime, e, !0); - const [a, o] = eHt( + const [a, o] = rHt( i, s, e, @@ -86283,10 +86319,10 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw n ); t.endTime = a.toDate(), t.renderEndTime = o; -}, "checkTaskDates"), eHt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "checkTaskDates"), rHt = /* @__PURE__ */ x(function(t, e, r, n, i) { let s = !1, a = null; for (; t <= e; ) - s || (a = e.toDate()), s = ime(t, r, n, i), s && (e = e.add(1, "d")), t = t.add(1, "d"); + s || (a = e.toDate()), s = sme(t, r, n, i), s && (e = e.add(1, "d")), t = t.add(1, "d"); return [e, a]; }, "fixTaskDates"), UR = /* @__PURE__ */ x(function(t, e, r) { r = r.trim(); @@ -86312,10 +86348,10 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw throw new Error("Invalid date:" + r); return a; } -}, "getStartDate"), ame = /* @__PURE__ */ x(function(t) { +}, "getStartDate"), ome = /* @__PURE__ */ x(function(t) { const e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim()); return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"]; -}, "parseDuration"), ome = /* @__PURE__ */ x(function(t, e, r, n = !1) { +}, "parseDuration"), lme = /* @__PURE__ */ x(function(t, e, r, n = !1) { r = r.trim(); const s = /^until\s+(?[\d\w- ]+)/.exec(r); if (s !== null) { @@ -86333,7 +86369,7 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw if (a.isValid()) return n && (a = a.add(1, "d")), a.toDate(); let o = Ks(t); - const [l, u] = ame(r); + const [l, u] = ome(r); if (!Number.isNaN(l)) { const h = o.add(l, u); h.isValid() && (o = h); @@ -86341,11 +86377,11 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw return o.toDate(); }, "getEndDate"), X5 = 0, jg = /* @__PURE__ */ x(function(t) { return t === void 0 ? (X5 = X5 + 1, "task" + X5) : t; -}, "parseId"), tHt = /* @__PURE__ */ x(function(t, e) { +}, "parseId"), nHt = /* @__PURE__ */ x(function(t, e) { let r; e.substr(0, 1) === ":" ? r = e.substr(1, e.length) : r = e; const n = r.split(","), i = {}; - g$(n, i, nme); + g$(n, i, ime); for (let a = 0; a < n.length; a++) n[a] = n[a].trim(); let s = ""; @@ -86360,12 +86396,12 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw i.id = jg(n[0]), i.startTime = UR(void 0, Xc, n[1]), s = n[2]; break; } - return s && (i.endTime = ome(i.startTime, Xc, s, Nw), i.manualEndTime = Ks(s, "YYYY-MM-DD", !0).isValid(), sme(i, Xc, Pw, Dw)), i; -}, "compileData"), rHt = /* @__PURE__ */ x(function(t, e) { + return s && (i.endTime = lme(i.startTime, Xc, s, Nw), i.manualEndTime = Ks(s, "YYYY-MM-DD", !0).isValid(), ame(i, Xc, Pw, Dw)), i; +}, "compileData"), iHt = /* @__PURE__ */ x(function(t, e) { let r; e.substr(0, 1) === ":" ? r = e.substr(1, e.length) : r = e; const n = r.split(","), i = {}; - g$(n, i, nme); + g$(n, i, ime); for (let s = 0; s < n.length; s++) n[s] = n[s].trim(); switch (n.length) { @@ -86395,7 +86431,7 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw break; } return i; -}, "parseData"), VR, H5, Di = [], lme = {}, nHt = /* @__PURE__ */ x(function(t, e) { +}, "parseData"), VR, H5, Di = [], cme = {}, sHt = /* @__PURE__ */ x(function(t, e) { const r = { section: a1, type: a1, @@ -86405,21 +86441,21 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw raw: { data: e }, task: t, classes: [] - }, n = rHt(H5, e); + }, n = iHt(H5, e); r.raw.startTime = n.startTime, r.raw.endTime = n.endTime, r.id = n.id, r.prevTaskId = H5, r.active = n.active, r.done = n.done, r.crit = n.crit, r.milestone = n.milestone, r.order = QR, QR++; const i = Di.push(r); - H5 = r.id, lme[r.id] = i - 1; + H5 = r.id, cme[r.id] = i - 1; }, "addTask"), Fp = /* @__PURE__ */ x(function(t) { - const e = lme[t]; + const e = cme[t]; return Di[e]; -}, "findTaskById"), iHt = /* @__PURE__ */ x(function(t, e) { +}, "findTaskById"), aHt = /* @__PURE__ */ x(function(t, e) { const r = { section: a1, type: a1, description: t, task: t, classes: [] - }, n = tHt(VR, e); + }, n = nHt(VR, e); r.startTime = n.startTime, r.endTime = n.endTime, r.id = n.id, r.active = n.active, r.done = n.done, r.crit = n.crit, r.milestone = n.milestone, VR = r, qS.push(r); }, "addTaskOrg"), xH = /* @__PURE__ */ x(function() { const t = /* @__PURE__ */ x(function(r) { @@ -86435,7 +86471,7 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw i = UR(void 0, Xc, Di[r].raw.startTime.startData), i && (Di[r].startTime = i); break; } - return Di[r].startTime && (Di[r].endTime = ome( + return Di[r].startTime && (Di[r].endTime = lme( Di[r].startTime, Xc, Di[r].raw.endTime.data, @@ -86444,25 +86480,25 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw Di[r].raw.endTime.data, "YYYY-MM-DD", !0 - ).isValid(), sme(Di[r], Xc, Pw, Dw))), Di[r].processed; + ).isValid(), ame(Di[r], Xc, Pw, Dw))), Di[r].processed; }, "compileTask"); let e = !0; for (const [r, n] of Di.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), sHt = /* @__PURE__ */ x(function(t, e) { +}, "compileTasks"), oHt = /* @__PURE__ */ x(function(t, e) { let r = e; ke().securityLevel !== "loose" && (r = yd(e)), t.split(",").forEach(function(n) { - Fp(n) !== void 0 && (ume(n, () => { + Fp(n) !== void 0 && (hme(n, () => { window.open(r, "_self"); }), c$.set(n, r)); - }), cme(t, "clickable"); -}, "setLink"), cme = /* @__PURE__ */ x(function(t, e) { + }), ume(t, "clickable"); +}, "setLink"), ume = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = Fp(r); n !== void 0 && n.classes.push(e); }); -}, "setClass"), aHt = /* @__PURE__ */ x(function(t, e, r) { +}, "setClass"), lHt = /* @__PURE__ */ x(function(t, e, r) { if (ke().securityLevel !== "loose" || e === void 0) return; let n = []; @@ -86473,10 +86509,10 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw a.startsWith('"') && a.endsWith('"') && (a = a.substr(1, a.length - 2)), n[s] = a; } } - n.length === 0 && n.push(t), Fp(t) !== void 0 && ume(t, () => { - gr.runFunc(e, ...n); + n.length === 0 && n.push(t), Fp(t) !== void 0 && hme(t, () => { + mr.runFunc(e, ...n); }); -}, "setClickFun"), ume = /* @__PURE__ */ x(function(t, e) { +}, "setClickFun"), hme = /* @__PURE__ */ x(function(t, e) { f$.push( function() { const r = document.querySelector(`[id="${t}"]`); @@ -86491,56 +86527,56 @@ var bH = { friday: 5, saturday: 6 }, Xc = "", a$ = "", o$ = void 0, l$ = "", Dw }); } ); -}, "pushFun"), oHt = /* @__PURE__ */ x(function(t, e, r) { +}, "pushFun"), cHt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - aHt(n, e, r); - }), cme(t, "clickable"); -}, "setClickEvent"), lHt = /* @__PURE__ */ x(function(t) { + lHt(n, e, r); + }), ume(t, "clickable"); +}, "setClickEvent"), uHt = /* @__PURE__ */ x(function(t) { f$.forEach(function(e) { e(t); }); -}, "bindFunctions"), cHt = { +}, "bindFunctions"), hHt = { getConfig: /* @__PURE__ */ x(() => ke().gantt, "getConfig"), - clear: _Xt, - setDateFormat: NXt, - getDateFormat: UXt, - enableInclusiveEndDates: IXt, - endDatesAreInclusive: $Xt, - enableTopAxis: BXt, - topAxisEnabled: FXt, - setAxisFormat: AXt, - getAxisFormat: LXt, - setTickInterval: RXt, - getTickInterval: MXt, - setTodayMarker: DXt, - getTodayMarker: PXt, + clear: LXt, + setDateFormat: $Xt, + getDateFormat: qXt, + enableInclusiveEndDates: BXt, + endDatesAreInclusive: FXt, + enableTopAxis: zXt, + topAxisEnabled: QXt, + setAxisFormat: RXt, + getAxisFormat: MXt, + setTickInterval: DXt, + getTickInterval: PXt, + setTodayMarker: NXt, + getTodayMarker: IXt, setAccTitle: us, getAccTitle: Ps, setDiagramTitle: Na, getDiagramTitle: $s, - setDisplayMode: zXt, - getDisplayMode: QXt, + setDisplayMode: UXt, + getDisplayMode: VXt, setAccDescription: Ns, getAccDescription: Is, - addSection: XXt, - getSections: HXt, - getTasks: ZXt, - addTask: nHt, + addSection: ZXt, + getSections: jXt, + getTasks: KXt, + addTask: sHt, findTaskById: Fp, - addTaskOrg: iHt, - setIncludes: VXt, - getIncludes: qXt, - setExcludes: YXt, - getExcludes: WXt, - setClickEvent: oHt, - setLink: sHt, - getLinks: GXt, - bindFunctions: lHt, - parseDuration: ame, - isInvalidDate: ime, - setWeekday: jXt, - getWeekday: KXt, - setWeekend: JXt + addTaskOrg: aHt, + setIncludes: YXt, + getIncludes: WXt, + setExcludes: GXt, + getExcludes: XXt, + setClickEvent: cHt, + setLink: oHt, + getLinks: HXt, + bindFunctions: uHt, + parseDuration: ome, + isInvalidDate: sme, + setWeekday: JXt, + getWeekday: eHt, + setWeekend: tHt }; function g$(t, e, r) { let n = !0; @@ -86551,7 +86587,7 @@ function g$(t, e, r) { }); } x(g$, "getTaskTags"); -var uHt = /* @__PURE__ */ x(function() { +var fHt = /* @__PURE__ */ x(function() { H.debug("Something is calling, setConf, remove the call"); }, "setConf"), wH = { monday: tb, @@ -86561,7 +86597,7 @@ var uHt = /* @__PURE__ */ x(function() { friday: ooe, saturday: loe, sunday: nw -}, hHt = /* @__PURE__ */ x((t, e) => { +}, dHt = /* @__PURE__ */ x((t, e) => { let r = [...t].map(() => -1 / 0), n = [...t].sort((s, a) => s.startTime - a.startTime || s.order - a.order), i = 0; for (const s of n) for (let a = 0; a < r.length; a++) @@ -86570,7 +86606,7 @@ var uHt = /* @__PURE__ */ x(function() { break; } return i; -}, "getMaxIntersections"), Nu, fHt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getMaxIntersections"), Nu, pHt = /* @__PURE__ */ x(function(t, e, r, n) { const i = ke().gantt, s = ke().securityLevel; let a; s === "sandbox" && (a = ht("#i" + e)); @@ -86589,7 +86625,7 @@ var uHt = /* @__PURE__ */ x(function() { A[R.section] === void 0 ? A[R.section] = [R] : A[R.section].push(R); let E = 0; for (const R of Object.keys(A)) { - const _ = hHt(A[R], E) + 1; + const _ = dHt(A[R], E) + 1; E += _, p += _ * (i.barHeight + i.barGap), d[R] = _; } } else { @@ -86598,11 +86634,11 @@ var uHt = /* @__PURE__ */ x(function() { d[A] = h.filter((E) => E.type === A).length; } u.setAttribute("viewBox", "0 0 " + Nu + " " + p); - const g = o.select(`[id="${e}"]`), m = T5t().domain([ - hbt(h, function(A) { + const g = o.select(`[id="${e}"]`), m = C5t().domain([ + fbt(h, function(A) { return A.startTime; }), - ubt(h, function(A) { + hbt(h, function(A) { return A.endTime; }) ]).rangeRound([0, Nu - i.leftPadding - i.rightPadding]); @@ -86613,7 +86649,7 @@ var uHt = /* @__PURE__ */ x(function() { } x(v, "taskCompare"), h.sort(v), y(h, Nu, p), Ds(g, p, Nu, i.useMaxWidth), g.append("text").text(n.db.getDiagramTitle()).attr("x", Nu / 2).attr("y", i.titleTopMargin).attr("class", "titleText"); function y(A, E, R) { - const _ = i.barHeight, L = _ + i.barGap, $ = i.topPadding, k = i.leftPadding, P = Pm().domain([0, f.length]).range(["#00B9FA", "#F95002"]).interpolate(Pwt); + const _ = i.barHeight, L = _ + i.barGap, $ = i.topPadding, k = i.leftPadding, P = Pm().domain([0, f.length]).range(["#00B9FA", "#F95002"]).interpolate(Nwt); w( L, $, @@ -86730,7 +86766,7 @@ var uHt = /* @__PURE__ */ x(function() { } x(w, "drawExcludeDays"); function O(A, E, R, _) { - let L = xbt(m).tickSize(-_ + E + i.gridLineStartPadding).tickFormat(A3(n.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d")); + let L = wbt(m).tickSize(-_ + E + i.gridLineStartPadding).tickFormat(A3(n.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d")); const k = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec( n.db.getTickInterval() || i.tickInterval ); @@ -86741,7 +86777,7 @@ var uHt = /* @__PURE__ */ x(function() { L.ticks(Nm.every(P)); break; case "second": - L.ticks(df.every(P)); + L.ticks(pf.every(P)); break; case "minute": L.ticks(J2.every(P)); @@ -86761,7 +86797,7 @@ var uHt = /* @__PURE__ */ x(function() { } } if (g.append("g").attr("class", "grid").attr("transform", "translate(" + A + ", " + (_ - 50) + ")").call(L).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), n.db.topAxisEnabled() || i.topAxis) { - let P = bbt(m).tickSize(-_ + E + i.gridLineStartPadding).tickFormat(A3(n.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d")); + let P = xbt(m).tickSize(-_ + E + i.gridLineStartPadding).tickFormat(A3(n.db.getAxisFormat() || i.axisFormat || "%Y-%m-%d")); if (k !== null) { const M = k[1], N = k[2], D = n.db.getWeekday() || i.weekday; switch (N) { @@ -86769,7 +86805,7 @@ var uHt = /* @__PURE__ */ x(function() { P.ticks(Nm.every(M)); break; case "second": - P.ticks(df.every(M)); + P.ticks(pf.every(M)); break; case "minute": P.ticks(J2.every(M)); @@ -86832,10 +86868,10 @@ var uHt = /* @__PURE__ */ x(function() { return R; } x(T, "checkUnique"); -}, "draw"), dHt = { - setConf: uHt, - draw: fHt -}, pHt = /* @__PURE__ */ x((t) => ` +}, "draw"), gHt = { + setConf: fHt, + draw: pHt +}, mHt = /* @__PURE__ */ x((t) => ` .mermaid-main-font { font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } @@ -87086,68 +87122,68 @@ var uHt = /* @__PURE__ */ x(function() { fill: ${t.titleColor || t.textColor}; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } -`, "getStyles"), gHt = pHt, mHt = { - parser: EXt, - db: cHt, - renderer: dHt, - styles: gHt +`, "getStyles"), vHt = mHt, yHt = { + parser: AXt, + db: hHt, + renderer: gHt, + styles: vHt }; -const vHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const bHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: mHt + diagram: yHt }, Symbol.toStringTag, { value: "Module" })); -var yHt = { +var xHt = { parse: /* @__PURE__ */ x(async (t) => { const e = await ev("info", t); H.debug(e); }, "parse") -}, bHt = { version: tL }, xHt = /* @__PURE__ */ x(() => bHt.version, "getVersion"), wHt = { - getVersion: xHt -}, OHt = /* @__PURE__ */ x((t, e, r) => { +}, wHt = { version: tL }, OHt = /* @__PURE__ */ x(() => wHt.version, "getVersion"), kHt = { + getVersion: OHt +}, SHt = /* @__PURE__ */ x((t, e, r) => { H.debug(`rendering info diagram ` + t); const n = Rp(e); Ds(n, 100, 400, !0), n.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${r}`); -}, "draw"), kHt = { draw: OHt }, SHt = { - parser: yHt, - db: wHt, - renderer: kHt +}, "draw"), THt = { draw: SHt }, CHt = { + parser: xHt, + db: kHt, + renderer: THt }; -const THt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const EHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: SHt + diagram: CHt }, Symbol.toStringTag, { value: "Module" })); -var hme = cn.pie, m$ = { +var fme = cn.pie, m$ = { sections: /* @__PURE__ */ new Map(), showData: !1, - config: hme -}, WS = m$.sections, v$ = m$.showData, CHt = structuredClone(hme), EHt = /* @__PURE__ */ x(() => structuredClone(CHt), "getConfig"), _Ht = /* @__PURE__ */ x(() => { + config: fme +}, WS = m$.sections, v$ = m$.showData, _Ht = structuredClone(fme), AHt = /* @__PURE__ */ x(() => structuredClone(_Ht), "getConfig"), LHt = /* @__PURE__ */ x(() => { WS = /* @__PURE__ */ new Map(), v$ = m$.showData, cs(); -}, "clear"), AHt = /* @__PURE__ */ x(({ label: t, value: e }) => { +}, "clear"), RHt = /* @__PURE__ */ x(({ label: t, value: e }) => { WS.has(t) || (WS.set(t, e), H.debug(`added new section: ${t}, with value: ${e}`)); -}, "addSection"), LHt = /* @__PURE__ */ x(() => WS, "getSections"), RHt = /* @__PURE__ */ x((t) => { +}, "addSection"), MHt = /* @__PURE__ */ x(() => WS, "getSections"), DHt = /* @__PURE__ */ x((t) => { v$ = t; -}, "setShowData"), MHt = /* @__PURE__ */ x(() => v$, "getShowData"), fme = { - getConfig: EHt, - clear: _Ht, +}, "setShowData"), PHt = /* @__PURE__ */ x(() => v$, "getShowData"), dme = { + getConfig: AHt, + clear: LHt, setDiagramTitle: Na, getDiagramTitle: $s, setAccTitle: us, getAccTitle: Ps, setAccDescription: Ns, getAccDescription: Is, - addSection: AHt, - getSections: LHt, - setShowData: RHt, - getShowData: MHt -}, DHt = /* @__PURE__ */ x((t, e) => { + addSection: RHt, + getSections: MHt, + setShowData: DHt, + getShowData: PHt +}, NHt = /* @__PURE__ */ x((t, e) => { Sw(t, e), e.setShowData(t.showData), t.sections.map(e.addSection); -}, "populateDb"), PHt = { +}, "populateDb"), IHt = { parse: /* @__PURE__ */ x(async (t) => { const e = await ev("pie", t); - H.debug(e), DHt(e, fme); + H.debug(e), NHt(e, dme); }, "parse") -}, NHt = /* @__PURE__ */ x((t) => ` +}, $Ht = /* @__PURE__ */ x((t) => ` .pieCircle{ stroke: ${t.pieStrokeColor}; stroke-width : ${t.pieStrokeWidth}; @@ -87175,25 +87211,25 @@ var hme = cn.pie, m$ = { font-family: ${t.fontFamily}; font-size: ${t.pieLegendTextSize}; } -`, "getStyles"), IHt = NHt, $Ht = /* @__PURE__ */ x((t) => { +`, "getStyles"), BHt = $Ht, FHt = /* @__PURE__ */ x((t) => { const e = [...t.entries()].map((n) => ({ label: n[0], value: n[1] })).sort((n, i) => i.value - n.value); - return z5t().value( + return Q5t().value( (n) => n.value )(e); -}, "createPieArcs"), BHt = /* @__PURE__ */ x((t, e, r, n) => { +}, "createPieArcs"), zHt = /* @__PURE__ */ x((t, e, r, n) => { H.debug(`rendering pie chart ` + t); - const i = n.db, s = ke(), a = Ih(i.getConfig(), s.pie), o = 40, l = 18, u = 4, h = 450, f = h, d = Rp(e), p = d.append("g"); + const i = n.db, s = ke(), a = $h(i.getConfig(), s.pie), o = 40, l = 18, u = 4, h = 450, f = h, d = Rp(e), p = d.append("g"); p.attr("transform", "translate(" + f / 2 + "," + h / 2 + ")"); const { themeVariables: g } = s; let [m] = Ap(g.pieOuterStrokeWidth); m != null || (m = 2); const v = a.textPosition, y = Math.min(f, h) / 2 - o, b = $m().innerRadius(0).outerRadius(y), w = $m().innerRadius(y * v).outerRadius(y * v); p.append("circle").attr("cx", 0).attr("cy", 0).attr("r", y + m / 2).attr("class", "pieOuterCircle"); - const O = i.getSections(), S = $Ht(O), C = [ + const O = i.getSections(), S = FHt(O), C = [ g.pie1, g.pie2, g.pie3, @@ -87227,15 +87263,15 @@ var hme = cn.pie, m$ = { }) ), _ = f + o + l + u + R; d.attr("viewBox", `0 0 ${_} ${h}`), Ds(d, h, _, a.useMaxWidth); -}, "draw"), FHt = { draw: BHt }, zHt = { - parser: PHt, - db: fme, - renderer: FHt, - styles: IHt +}, "draw"), QHt = { draw: zHt }, UHt = { + parser: IHt, + db: dme, + renderer: QHt, + styles: BHt }; -const QHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const VHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: zHt + diagram: UHt }, Symbol.toStringTag, { value: "Module" })); var qR = function() { var t = /* @__PURE__ */ x(function(ve, we, Ee, Re) { @@ -87706,7 +87742,7 @@ Expecting ` + Br.join(", ") + ", got '" + (this.terminals_[st] || st) + "'" : Gr return x(ge, "Parser"), ge.prototype = fe, fe.Parser = ge, new ge(); }(); qR.parser = qR; -var UHt = qR, ba = NP(), bx, VHt = (bx = class { +var qHt = qR, ba = NP(), bx, YHt = (bx = class { constructor() { this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(); } @@ -88054,58 +88090,58 @@ function YR(t) { return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t); } x(YR, "validateHexCode"); -function dme(t) { +function pme(t) { return !/^\d+$/.test(t); } -x(dme, "validateNumber"); -function pme(t) { +x(pme, "validateNumber"); +function gme(t) { return !/^\d+px$/.test(t); } -x(pme, "validateSizeInPixels"); -var qHt = ke(); +x(gme, "validateSizeInPixels"); +var WHt = ke(); function _u(t) { - return yi(t.trim(), qHt); + return yi(t.trim(), WHt); } x(_u, "textSanitizer"); -var Ss = new VHt(); -function gme(t) { +var Ss = new YHt(); +function mme(t) { Ss.setData({ quadrant1Text: _u(t.text) }); } -x(gme, "setQuadrant1Text"); -function mme(t) { +x(mme, "setQuadrant1Text"); +function vme(t) { Ss.setData({ quadrant2Text: _u(t.text) }); } -x(mme, "setQuadrant2Text"); -function vme(t) { +x(vme, "setQuadrant2Text"); +function yme(t) { Ss.setData({ quadrant3Text: _u(t.text) }); } -x(vme, "setQuadrant3Text"); -function yme(t) { +x(yme, "setQuadrant3Text"); +function bme(t) { Ss.setData({ quadrant4Text: _u(t.text) }); } -x(yme, "setQuadrant4Text"); -function bme(t) { +x(bme, "setQuadrant4Text"); +function xme(t) { Ss.setData({ xAxisLeftText: _u(t.text) }); } -x(bme, "setXAxisLeftText"); -function xme(t) { +x(xme, "setXAxisLeftText"); +function wme(t) { Ss.setData({ xAxisRightText: _u(t.text) }); } -x(xme, "setXAxisRightText"); -function wme(t) { +x(wme, "setXAxisRightText"); +function Ome(t) { Ss.setData({ yAxisTopText: _u(t.text) }); } -x(wme, "setYAxisTopText"); -function Ome(t) { +x(Ome, "setYAxisTopText"); +function kme(t) { Ss.setData({ yAxisBottomText: _u(t.text) }); } -x(Ome, "setYAxisBottomText"); +x(kme, "setYAxisBottomText"); function LE(t) { const e = {}; for (const r of t) { const [n, i] = r.trim().split(/\s*:\s*/); if (n === "radius") { - if (dme(i)) + if (pme(i)) throw new C4(n, i, "number"); e.radius = parseInt(i); } else if (n === "color") { @@ -88117,7 +88153,7 @@ function LE(t) { throw new C4(n, i, "hex code"); e.strokeColor = i; } else if (n === "stroke-width") { - if (pme(i)) + if (gme(i)) throw new C4(n, i, "number of pixels (eg. 10px)"); e.strokeWidth = i; } else @@ -88126,7 +88162,7 @@ function LE(t) { return e; } x(LE, "parseStyles"); -function kme(t, e, r, n, i) { +function Sme(t, e, r, n, i) { const s = LE(i); Ss.addPoints([ { @@ -88138,20 +88174,20 @@ function kme(t, e, r, n, i) { } ]); } -x(kme, "addPoint"); -function Sme(t, e) { +x(Sme, "addPoint"); +function Tme(t, e) { Ss.addClass(t, LE(e)); } -x(Sme, "addClass"); -function Tme(t) { +x(Tme, "addClass"); +function Cme(t) { Ss.setConfig({ chartWidth: t }); } -x(Tme, "setWidth"); -function Cme(t) { +x(Cme, "setWidth"); +function Eme(t) { Ss.setConfig({ chartHeight: t }); } -x(Cme, "setHeight"); -function Eme() { +x(Eme, "setHeight"); +function _me() { const t = ke(), { themeVariables: e, quadrantChart: r } = t; return r && Ss.setConfig(r), Ss.setThemeConfig({ quadrant1Fill: e.quadrant1Fill, @@ -88171,32 +88207,32 @@ function Eme() { quadrantTitleFill: e.quadrantTitleFill }), Ss.setData({ titleText: $s() }), Ss.build(); } -x(Eme, "getQuadrantData"); -var YHt = /* @__PURE__ */ x(function() { +x(_me, "getQuadrantData"); +var GHt = /* @__PURE__ */ x(function() { Ss.clear(), cs(); -}, "clear"), WHt = { - setWidth: Tme, - setHeight: Cme, - setQuadrant1Text: gme, - setQuadrant2Text: mme, - setQuadrant3Text: vme, - setQuadrant4Text: yme, - setXAxisLeftText: bme, - setXAxisRightText: xme, - setYAxisTopText: wme, - setYAxisBottomText: Ome, +}, "clear"), XHt = { + setWidth: Cme, + setHeight: Eme, + setQuadrant1Text: mme, + setQuadrant2Text: vme, + setQuadrant3Text: yme, + setQuadrant4Text: bme, + setXAxisLeftText: xme, + setXAxisRightText: wme, + setYAxisTopText: Ome, + setYAxisBottomText: kme, parseStyles: LE, - addPoint: kme, - addClass: Sme, - getQuadrantData: Eme, - clear: YHt, + addPoint: Sme, + addClass: Tme, + getQuadrantData: _me, + clear: GHt, setAccTitle: us, getAccTitle: Ps, setDiagramTitle: Na, getDiagramTitle: $s, getAccDescription: Is, setAccDescription: Ns -}, GHt = /* @__PURE__ */ x((t, e, r, n) => { +}, HHt = /* @__PURE__ */ x((t, e, r, n) => { var A, E, R, _, L, $; function i(k) { return k === "top" ? "hanging" : "middle"; @@ -88230,17 +88266,17 @@ var YHt = /* @__PURE__ */ x(function() { "dominant-baseline", (k) => i(k.text.horizontalPos) ).attr("text-anchor", (k) => s(k.text.verticalPos)).attr("transform", (k) => a(k.text)); -}, "draw"), XHt = { - draw: GHt -}, HHt = { - parser: UHt, - db: WHt, - renderer: XHt, +}, "draw"), ZHt = { + draw: HHt +}, jHt = { + parser: qHt, + db: XHt, + renderer: ZHt, styles: /* @__PURE__ */ x(() => "", "styles") }; -const ZHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const KHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: HHt + diagram: jHt }, Symbol.toStringTag, { value: "Module" })); var WR = function() { var t = /* @__PURE__ */ x(function(P, M, N, D) { @@ -88686,7 +88722,7 @@ Expecting ` + de.join(", ") + ", got '" + (this.terminals_[De] || De) + "'" : X return x(k, "Parser"), k.prototype = L, L.Parser = k, new k(); }(); WR.parser = WR; -var jHt = WR; +var JHt = WR; function GR(t) { return t.type === "bar"; } @@ -88699,7 +88735,7 @@ function Kg(t) { return t.type === "linear"; } x(Kg, "isLinearAxisData"); -var wx, _me = (wx = class { +var wx, Ame = (wx = class { constructor(e) { this.parentGroup = e; } @@ -88721,7 +88757,7 @@ var wx, _me = (wx = class { } }, (() => { x(wx, "TextDimensionCalculatorWithFont"); -})(), wx), OH = 0.7, kH = 0.2, Ox, Ame = (Ox = class { +})(), wx), OH = 0.7, kH = 0.2, Ox, Lme = (Ox = class { constructor(e, r, n, i) { this.axisConfig = e, this.title = r, this.textDimensionCalculator = n, this.axisThemeConfig = i, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left"; } @@ -88976,7 +89012,7 @@ var wx, _me = (wx = class { } }, (() => { x(Ox, "BaseAxis"); -})(), Ox), kx, KHt = (kx = class extends Ame { +})(), Ox), kx, eZt = (kx = class extends Lme { constructor(e, r, n, i, s) { super(e, i, s, r), this.categories = n, this.scale = q9().domain(this.categories).range(this.getRange()); } @@ -88995,7 +89031,7 @@ var wx, _me = (wx = class { } }, (() => { x(kx, "BandAxis"); -})(), kx), Sx, JHt = (Sx = class extends Ame { +})(), kx), Sx, tZt = (Sx = class extends Lme { constructor(e, r, n, i, s) { super(e, i, s, r), this.domain = n, this.scale = Pm().domain(this.domain).range(this.getRange()); } @@ -89013,14 +89049,14 @@ var wx, _me = (wx = class { x(Sx, "LinearAxis"); })(), Sx); function XR(t, e, r, n) { - const i = new _me(n); - return y$(t) ? new KHt( + const i = new Ame(n); + return y$(t) ? new eZt( e, r, t.categories, t.title, i - ) : new JHt( + ) : new tZt( e, r, [t.min, t.max], @@ -89029,7 +89065,7 @@ function XR(t, e, r, n) { ); } x(XR, "getAxis"); -var Tx, eZt = (Tx = class { +var Tx, rZt = (Tx = class { constructor(e, r, n, i) { this.textDimensionCalculator = e, this.chartConfig = r, this.chartData = n, this.chartThemeConfig = i, this.boundingRect = { x: 0, @@ -89073,12 +89109,12 @@ var Tx, eZt = (Tx = class { }, (() => { x(Tx, "ChartTitle"); })(), Tx); -function Lme(t, e, r, n) { - const i = new _me(n); - return new eZt(i, t, e, r); +function Rme(t, e, r, n) { + const i = new Ame(n); + return new rZt(i, t, e, r); } -x(Lme, "getChartTitleComponent"); -var Cx, tZt = (Cx = class { +x(Rme, "getChartTitleComponent"); +var Cx, nZt = (Cx = class { constructor(e, r, n, i, s) { this.plotData = e, this.xAxis = r, this.yAxis = n, this.orientation = i, this.plotIndex = s; } @@ -89088,7 +89124,7 @@ var Cx, tZt = (Cx = class { this.yAxis.getScaleValue(n[1]) ]); let r; - return this.orientation === "horizontal" ? r = Wf().y((n) => n[0]).x((n) => n[1])(e) : r = Wf().x((n) => n[0]).y((n) => n[1])(e), r ? [ + return this.orientation === "horizontal" ? r = Gf().y((n) => n[0]).x((n) => n[1])(e) : r = Gf().x((n) => n[0]).y((n) => n[1])(e), r ? [ { groupTexts: ["plot", `line-plot-${this.plotIndex}`], type: "path", @@ -89104,7 +89140,7 @@ var Cx, tZt = (Cx = class { } }, (() => { x(Cx, "LinePlot"); -})(), Cx), Ex, rZt = (Ex = class { +})(), Cx), Ex, iZt = (Ex = class { constructor(e, r, n, i, s, a) { this.barData = e, this.boundingRect = r, this.xAxis = n, this.yAxis = i, this.orientation = s, this.plotIndex = a; } @@ -89145,7 +89181,7 @@ var Cx, tZt = (Cx = class { } }, (() => { x(Ex, "BarPlot"); -})(), Ex), _x, nZt = (_x = class { +})(), Ex), _x, sZt = (_x = class { constructor(e, r, n) { this.chartConfig = e, this.chartData = r, this.chartThemeConfig = n, this.boundingRect = { x: 0, @@ -89174,7 +89210,7 @@ var Cx, tZt = (Cx = class { switch (n.type) { case "line": { - const i = new tZt( + const i = new nZt( n, this.xAxis, this.yAxis, @@ -89186,7 +89222,7 @@ var Cx, tZt = (Cx = class { break; case "bar": { - const i = new rZt( + const i = new iZt( n, this.boundingRect, this.xAxis, @@ -89203,15 +89239,15 @@ var Cx, tZt = (Cx = class { }, (() => { x(_x, "BasePlot"); })(), _x); -function Rme(t, e, r) { - return new nZt(t, e, r); +function Mme(t, e, r) { + return new sZt(t, e, r); } -x(Rme, "getPlotComponent"); -var Ax, iZt = (Ax = class { +x(Mme, "getPlotComponent"); +var Ax, aZt = (Ax = class { constructor(e, r, n, i) { this.chartConfig = e, this.chartData = r, this.componentStore = { - title: Lme(e, r, n, i), - plot: Rme(e, r, n), + title: Rme(e, r, n, i), + plot: Mme(e, r, n), xAxis: XR( r.xAxis, e.xAxis, @@ -89291,21 +89327,21 @@ var Ax, iZt = (Ax = class { } }, (() => { x(Ax, "Orchestrator"); -})(), Ax), Lx, sZt = (Lx = class { +})(), Ax), Lx, oZt = (Lx = class { static build(e, r, n, i) { - return new iZt(e, r, n, i).getDrawableElement(); + return new aZt(e, r, n, i).getDrawableElement(); } }, (() => { x(Lx, "XYChartBuilder"); -})(), Lx), Cb = 0, Mme, Eb = w$(), _b = x$(), an = O$(), HR = _b.plotColorPalette.split(",").map((t) => t.trim()), RE = !1, b$ = !1; +})(), Lx), Cb = 0, Dme, Eb = w$(), _b = x$(), an = O$(), HR = _b.plotColorPalette.split(",").map((t) => t.trim()), RE = !1, b$ = !1; function x$() { const t = NP(), e = Ai(); - return Ih(t.xyChart, e.themeVariables.xyChart); + return $h(t.xyChart, e.themeVariables.xyChart); } x(x$, "getChartDefaultThemeConfig"); function w$() { const t = Ai(); - return Ih( + return $h( cn.xyChart, t.xyChart ); @@ -89334,39 +89370,39 @@ function ME(t) { return yi(t.trim(), e); } x(ME, "textSanitizer"); -function Dme(t) { - Mme = t; -} -x(Dme, "setTmpSVGG"); function Pme(t) { - t === "horizontal" ? Eb.chartOrientation = "horizontal" : Eb.chartOrientation = "vertical"; + Dme = t; } -x(Pme, "setOrientation"); +x(Pme, "setTmpSVGG"); function Nme(t) { + t === "horizontal" ? Eb.chartOrientation = "horizontal" : Eb.chartOrientation = "vertical"; +} +x(Nme, "setOrientation"); +function Ime(t) { an.xAxis.title = ME(t.text); } -x(Nme, "setXAxisTitle"); +x(Ime, "setXAxisTitle"); function k$(t, e) { an.xAxis = { type: "linear", title: an.xAxis.title, min: t, max: e }, RE = !0; } x(k$, "setXAxisRangeData"); -function Ime(t) { +function $me(t) { an.xAxis = { type: "band", title: an.xAxis.title, categories: t.map((e) => ME(e.text)) }, RE = !0; } -x(Ime, "setXAxisBand"); -function $me(t) { +x($me, "setXAxisBand"); +function Bme(t) { an.yAxis.title = ME(t.text); } -x($me, "setYAxisTitle"); -function Bme(t, e) { +x(Bme, "setYAxisTitle"); +function Fme(t, e) { an.yAxis = { type: "linear", title: an.yAxis.title, min: t, max: e }, b$ = !0; } -x(Bme, "setYAxisRangeData"); -function Fme(t) { +x(Fme, "setYAxisRangeData"); +function zme(t) { const e = Math.min(...t), r = Math.max(...t), n = Kg(an.yAxis) ? an.yAxis.min : 1 / 0, i = Kg(an.yAxis) ? an.yAxis.max : -1 / 0; an.yAxis = { type: "linear", @@ -89375,7 +89411,7 @@ function Fme(t) { max: Math.max(i, r) }; } -x(Fme, "setYAxisRangeFromPlotData"); +x(zme, "setYAxisRangeFromPlotData"); function S$(t) { let e = []; if (t.length === 0) @@ -89384,7 +89420,7 @@ function S$(t) { const r = Kg(an.xAxis) ? an.xAxis.min : 1 / 0, n = Kg(an.xAxis) ? an.xAxis.max : -1 / 0; k$(Math.min(r, 1), Math.max(n, t.length)); } - if (b$ || Fme(t), y$(an.xAxis) && (e = an.xAxis.categories.map((r, n) => [r, t[n]])), Kg(an.xAxis)) { + if (b$ || zme(t), y$(an.xAxis) && (e = an.xAxis.categories.map((r, n) => [r, t[n]])), Kg(an.xAxis)) { const r = an.xAxis.min, n = an.xAxis.max, i = (n - r) / (t.length - 1), s = []; for (let a = r; a <= n; a += i) s.push(`${a}`); @@ -89397,7 +89433,7 @@ function T$(t) { return HR[t === 0 ? 0 : t % HR.length]; } x(T$, "getPlotColorFromPalette"); -function zme(t, e) { +function Qme(t, e) { const r = S$(e); an.plots.push({ type: "line", @@ -89406,8 +89442,8 @@ function zme(t, e) { data: r }), Cb++; } -x(zme, "setLineData"); -function Qme(t, e) { +x(Qme, "setLineData"); +function Ume(t, e) { const r = S$(e); an.plots.push({ type: "bar", @@ -89415,44 +89451,44 @@ function Qme(t, e) { data: r }), Cb++; } -x(Qme, "setBarData"); -function Ume() { +x(Ume, "setBarData"); +function Vme() { if (an.plots.length === 0) throw Error("No Plot to render, please provide a plot with some data"); - return an.title = $s(), sZt.build(Eb, an, _b, Mme); + return an.title = $s(), oZt.build(Eb, an, _b, Dme); } -x(Ume, "getDrawableElem"); -function Vme() { +x(Vme, "getDrawableElem"); +function qme() { return _b; } -x(Vme, "getChartThemeConfig"); -function qme() { +x(qme, "getChartThemeConfig"); +function Yme() { return Eb; } -x(qme, "getChartConfig"); -var aZt = /* @__PURE__ */ x(function() { +x(Yme, "getChartConfig"); +var lZt = /* @__PURE__ */ x(function() { cs(), Cb = 0, Eb = w$(), an = O$(), _b = x$(), HR = _b.plotColorPalette.split(",").map((t) => t.trim()), RE = !1, b$ = !1; -}, "clear"), oZt = { - getDrawableElem: Ume, - clear: aZt, +}, "clear"), cZt = { + getDrawableElem: Vme, + clear: lZt, setAccTitle: us, getAccTitle: Ps, setDiagramTitle: Na, getDiagramTitle: $s, getAccDescription: Is, setAccDescription: Ns, - setOrientation: Pme, - setXAxisTitle: Nme, + setOrientation: Nme, + setXAxisTitle: Ime, setXAxisRangeData: k$, - setXAxisBand: Ime, - setYAxisTitle: $me, - setYAxisRangeData: Bme, - setLineData: zme, - setBarData: Qme, - setTmpSVGG: Dme, - getChartThemeConfig: Vme, - getChartConfig: qme -}, lZt = /* @__PURE__ */ x((t, e, r, n) => { + setXAxisBand: $me, + setYAxisTitle: Bme, + setYAxisRangeData: Fme, + setLineData: Qme, + setBarData: Ume, + setTmpSVGG: Pme, + getChartThemeConfig: qme, + getChartConfig: Yme +}, uZt = /* @__PURE__ */ x((t, e, r, n) => { const i = n.db, s = i.getChartThemeConfig(), a = i.getChartConfig(); function o(v) { return v === "top" ? "text-before-edge" : "middle"; @@ -89495,16 +89531,16 @@ var aZt = /* @__PURE__ */ x(function() { break; } } -}, "draw"), cZt = { - draw: lZt -}, uZt = { - parser: jHt, - db: oZt, - renderer: cZt +}, "draw"), hZt = { + draw: uZt +}, fZt = { + parser: JHt, + db: cZt, + renderer: hZt }; -const hZt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const dZt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: uZt + diagram: fZt }, Symbol.toStringTag, { value: "Module" })); var ZR = function() { var t = /* @__PURE__ */ x(function(K, Y, te, se) { @@ -89974,23 +90010,23 @@ Expecting ` + Ee.join(", ") + ", got '" + (this.terminals_[le] || le) + "'" : Re return x(W, "Parser"), W.prototype = U, U.Parser = W, new W(); }(); ZR.parser = ZR; -var fZt = ZR, C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Lf = {}, i2 = /* @__PURE__ */ new Map(), dZt = { +var pZt = ZR, C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Rf = {}, i2 = /* @__PURE__ */ new Map(), gZt = { REQUIREMENT: "Requirement", FUNCTIONAL_REQUIREMENT: "Functional Requirement", INTERFACE_REQUIREMENT: "Interface Requirement", PERFORMANCE_REQUIREMENT: "Performance Requirement", PHYSICAL_REQUIREMENT: "Physical Requirement", DESIGN_CONSTRAINT: "Design Constraint" -}, pZt = { +}, mZt = { LOW_RISK: "Low", MED_RISK: "Medium", HIGH_RISK: "High" -}, gZt = { +}, vZt = { VERIFY_ANALYSIS: "Analysis", VERIFY_DEMONSTRATION: "Demonstration", VERIFY_INSPECTION: "Inspection", VERIFY_TEST: "Test" -}, mZt = { +}, yZt = { CONTAINS: "contains", COPIES: "copies", DERIVES: "derives", @@ -89998,61 +90034,61 @@ var fZt = ZR, C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Lf = {}, i2 = /* VERIFIES: "verifies", REFINES: "refines", TRACES: "traces" -}, vZt = /* @__PURE__ */ x((t, e) => (n2.has(t) || n2.set(t, { +}, bZt = /* @__PURE__ */ x((t, e) => (n2.has(t) || n2.set(t, { name: t, type: e, id: Ja.id, text: Ja.text, risk: Ja.risk, verifyMethod: Ja.verifyMethod -}), Ja = {}, n2.get(t)), "addRequirement"), yZt = /* @__PURE__ */ x(() => n2, "getRequirements"), bZt = /* @__PURE__ */ x((t) => { +}), Ja = {}, n2.get(t)), "addRequirement"), xZt = /* @__PURE__ */ x(() => n2, "getRequirements"), wZt = /* @__PURE__ */ x((t) => { Ja !== void 0 && (Ja.id = t); -}, "setNewReqId"), xZt = /* @__PURE__ */ x((t) => { +}, "setNewReqId"), OZt = /* @__PURE__ */ x((t) => { Ja !== void 0 && (Ja.text = t); -}, "setNewReqText"), wZt = /* @__PURE__ */ x((t) => { +}, "setNewReqText"), kZt = /* @__PURE__ */ x((t) => { Ja !== void 0 && (Ja.risk = t); -}, "setNewReqRisk"), OZt = /* @__PURE__ */ x((t) => { +}, "setNewReqRisk"), SZt = /* @__PURE__ */ x((t) => { Ja !== void 0 && (Ja.verifyMethod = t); -}, "setNewReqVerifyMethod"), kZt = /* @__PURE__ */ x((t) => (i2.has(t) || (i2.set(t, { +}, "setNewReqVerifyMethod"), TZt = /* @__PURE__ */ x((t) => (i2.has(t) || (i2.set(t, { name: t, - type: Lf.type, - docRef: Lf.docRef -}), H.info("Added new requirement: ", t)), Lf = {}, i2.get(t)), "addElement"), SZt = /* @__PURE__ */ x(() => i2, "getElements"), TZt = /* @__PURE__ */ x((t) => { - Lf !== void 0 && (Lf.type = t); -}, "setNewElementType"), CZt = /* @__PURE__ */ x((t) => { - Lf !== void 0 && (Lf.docRef = t); -}, "setNewElementDocRef"), EZt = /* @__PURE__ */ x((t, e, r) => { + type: Rf.type, + docRef: Rf.docRef +}), H.info("Added new requirement: ", t)), Rf = {}, i2.get(t)), "addElement"), CZt = /* @__PURE__ */ x(() => i2, "getElements"), EZt = /* @__PURE__ */ x((t) => { + Rf !== void 0 && (Rf.type = t); +}, "setNewElementType"), _Zt = /* @__PURE__ */ x((t) => { + Rf !== void 0 && (Rf.docRef = t); +}, "setNewElementDocRef"), AZt = /* @__PURE__ */ x((t, e, r) => { C$.push({ type: t, src: e, dst: r }); -}, "addRelationship"), _Zt = /* @__PURE__ */ x(() => C$, "getRelationships"), AZt = /* @__PURE__ */ x(() => { - C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Lf = {}, i2 = /* @__PURE__ */ new Map(), cs(); -}, "clear"), LZt = { - RequirementType: dZt, - RiskLevel: pZt, - VerifyType: gZt, - Relationships: mZt, +}, "addRelationship"), LZt = /* @__PURE__ */ x(() => C$, "getRelationships"), RZt = /* @__PURE__ */ x(() => { + C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Rf = {}, i2 = /* @__PURE__ */ new Map(), cs(); +}, "clear"), MZt = { + RequirementType: gZt, + RiskLevel: mZt, + VerifyType: vZt, + Relationships: yZt, getConfig: /* @__PURE__ */ x(() => ke().req, "getConfig"), - addRequirement: vZt, - getRequirements: yZt, - setNewReqId: bZt, - setNewReqText: xZt, - setNewReqRisk: wZt, - setNewReqVerifyMethod: OZt, + addRequirement: bZt, + getRequirements: xZt, + setNewReqId: wZt, + setNewReqText: OZt, + setNewReqRisk: kZt, + setNewReqVerifyMethod: SZt, setAccTitle: us, getAccTitle: Ps, setAccDescription: Ns, getAccDescription: Is, - addElement: kZt, - getElements: SZt, - setNewElementType: TZt, - setNewElementDocRef: CZt, - addRelationship: EZt, - getRelationships: _Zt, - clear: AZt -}, RZt = /* @__PURE__ */ x((t) => ` + addElement: TZt, + getElements: CZt, + setNewElementType: EZt, + setNewElementDocRef: _Zt, + addRelationship: AZt, + getRelationships: LZt, + clear: RZt +}, DZt = /* @__PURE__ */ x((t) => ` marker { fill: ${t.relationColor}; @@ -90095,10 +90131,10 @@ var fZt = ZR, C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Lf = {}, i2 = /* fill: ${t.relationLabelColor}; } -`, "getStyles"), MZt = RZt, jR = { +`, "getStyles"), PZt = DZt, jR = { CONTAINS: "contains", ARROW: "arrow" -}, DZt = /* @__PURE__ */ x((t, e) => { +}, NZt = /* @__PURE__ */ x((t, e) => { let r = t.append("defs").append("marker").attr("id", jR.CONTAINS + "_line_ending").attr("refX", 0).attr("refY", e.line_height / 2).attr("markerWidth", e.line_height).attr("markerHeight", e.line_height).attr("orient", "auto").append("g"); r.append("circle").attr("cx", e.line_height / 2).attr("cy", e.line_height / 2).attr("r", e.line_height / 2).attr("fill", "none"), r.append("line").attr("x1", 0).attr("x2", e.line_height).attr("y1", e.line_height / 2).attr("y2", e.line_height / 2).attr("stroke-width", 1), r.append("line").attr("y1", 0).attr("y2", e.line_height).attr("x1", e.line_height / 2).attr("x2", e.line_height / 2).attr("stroke-width", 1), t.append("defs").append("marker").attr("id", jR.ARROW + "_line_ending").attr("refX", e.line_height).attr("refY", 0.5 * e.line_height).attr("markerWidth", e.line_height).attr("markerHeight", e.line_height).attr("orient", "auto").append("path").attr( "d", @@ -90107,10 +90143,10 @@ var fZt = ZR, C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Lf = {}, i2 = /* M${e.line_height},${e.line_height / 2} L0,${e.line_height}` ).attr("stroke-width", 1); -}, "insertLineEndings"), Yme = { +}, "insertLineEndings"), Wme = { ReqMarkers: jR, - insertLineEndings: DZt -}, Jn = {}, SH = 0, Wme = /* @__PURE__ */ x((t, e) => t.insert("rect", "#" + e).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", Jn.rect_min_width + "px").attr("height", Jn.rect_min_height + "px"), "newRectNode"), Gme = /* @__PURE__ */ x((t, e, r) => { + insertLineEndings: NZt +}, Jn = {}, SH = 0, Gme = /* @__PURE__ */ x((t, e) => t.insert("rect", "#" + e).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", Jn.rect_min_width + "px").attr("height", Jn.rect_min_height + "px"), "newRectNode"), Xme = /* @__PURE__ */ x((t, e, r) => { let n = Jn.rect_min_width / 2, i = t.append("text").attr("class", "req reqLabel reqTitle").attr("id", e).attr("x", n).attr("y", Jn.rect_padding).attr("dominant-baseline", "hanging"), s = 0; r.forEach((u) => { s == 0 ? i.append("tspan").attr("text-anchor", "middle").attr("x", Jn.rect_min_width / 2).attr("dy", 0).text(u) : i.append("tspan").attr("text-anchor", "middle").attr("x", Jn.rect_min_width / 2).attr("dy", Jn.line_height * 0.75).text(u), s++; @@ -90120,7 +90156,7 @@ var fZt = ZR, C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Lf = {}, i2 = /* titleNode: i, y: l }; -}, "newTitleNode"), Xme = /* @__PURE__ */ x((t, e, r, n) => { +}, "newTitleNode"), Hme = /* @__PURE__ */ x((t, e, r, n) => { let i = t.append("text").attr("class", "req reqLabel").attr("id", e).attr("x", Jn.rect_padding).attr("y", n).attr("dominant-baseline", "hanging"), s = 0; const a = 30; let o = []; @@ -90139,13 +90175,13 @@ var fZt = ZR, C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Lf = {}, i2 = /* }), o.forEach((l) => { i.append("tspan").attr("x", Jn.rect_padding).attr("dy", Jn.line_height).text(l); }), i; -}, "newBodyNode"), PZt = /* @__PURE__ */ x((t, e, r, n) => { +}, "newBodyNode"), IZt = /* @__PURE__ */ x((t, e, r, n) => { const i = e.node().getTotalLength(), s = e.node().getPointAtLength(i * 0.5), a = "rel" + SH; SH++; const l = t.append("text").attr("class", "req relationshipLabel").attr("id", a).attr("x", s.x).attr("y", s.y).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(n).node().getBBox(); t.insert("rect", "#" + a).attr("class", "req reqLabelBox").attr("x", s.x - l.width / 2).attr("y", s.y - l.height / 2).attr("width", l.width).attr("height", l.height).attr("fill", "white").attr("fill-opacity", "85%"); -}, "addEdgeLabel"), NZt = /* @__PURE__ */ x(function(t, e, r, n, i) { - const s = r.edge(o1(e.src), o1(e.dst)), a = Wf().x(function(l) { +}, "addEdgeLabel"), $Zt = /* @__PURE__ */ x(function(t, e, r, n, i) { + const s = r.edge(o1(e.src), o1(e.dst)), a = Gf().x(function(l) { return l.x; }).y(function(l) { return l.y; @@ -90155,18 +90191,18 @@ var fZt = ZR, C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Lf = {}, i2 = /* "url(" + mt.getUrl(Jn.arrowMarkerAbsolute) + "#" + e.type + "_line_ending)" ) : (o.attr("stroke-dasharray", "10,7"), o.attr( "marker-end", - "url(" + mt.getUrl(Jn.arrowMarkerAbsolute) + "#" + Yme.ReqMarkers.ARROW + "_line_ending)" - )), PZt(t, o, Jn, `<<${e.type}>>`); -}, "drawRelationshipFromLayout"), IZt = /* @__PURE__ */ x((t, e, r) => { + "url(" + mt.getUrl(Jn.arrowMarkerAbsolute) + "#" + Wme.ReqMarkers.ARROW + "_line_ending)" + )), IZt(t, o, Jn, `<<${e.type}>>`); +}, "drawRelationshipFromLayout"), BZt = /* @__PURE__ */ x((t, e, r) => { t.forEach((n, i) => { i = o1(i), H.info("Added new requirement: ", i); - const s = r.append("g").attr("id", i), a = "req-" + i, o = Wme(s, a); - let l = [], u = Gme(s, i + "_title", [ + const s = r.append("g").attr("id", i), a = "req-" + i, o = Gme(s, a); + let l = [], u = Xme(s, i + "_title", [ `<<${n.type}>>`, `${n.name}` ]); l.push(u.titleNode); - let h = Xme( + let h = Hme( s, i + "_body", [ @@ -90186,12 +90222,12 @@ var fZt = ZR, C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Lf = {}, i2 = /* id: i }); }); -}, "drawReqs"), $Zt = /* @__PURE__ */ x((t, e, r) => { +}, "drawReqs"), FZt = /* @__PURE__ */ x((t, e, r) => { t.forEach((n, i) => { - const s = o1(i), a = r.append("g").attr("id", s), o = "element-" + s, l = Wme(a, o); - let u = [], h = Gme(a, o + "_title", ["<>", `${i}`]); + const s = o1(i), a = r.append("g").attr("id", s), o = "element-" + s, l = Gme(a, o); + let u = [], h = Xme(a, o + "_title", ["<>", `${i}`]); u.push(h.titleNode); - let f = Xme( + let f = Hme( a, o + "_body", [`Type: ${n.type || "Not Specified"}`, `Doc Ref: ${n.docRef || "None"}`], @@ -90206,23 +90242,23 @@ var fZt = ZR, C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Lf = {}, i2 = /* id: s }); }); -}, "drawElements"), BZt = /* @__PURE__ */ x((t, e) => (t.forEach(function(r) { +}, "drawElements"), zZt = /* @__PURE__ */ x((t, e) => (t.forEach(function(r) { let n = o1(r.src), i = o1(r.dst); e.setEdge(n, i, { relationship: r }); -}), t), "addRelationships"), FZt = /* @__PURE__ */ x(function(t, e) { +}), t), "addRelationships"), QZt = /* @__PURE__ */ x(function(t, e) { e.nodes().forEach(function(r) { r !== void 0 && e.node(r) !== void 0 && (t.select("#" + r), t.select("#" + r).attr( "transform", "translate(" + (e.node(r).x - e.node(r).width / 2) + "," + (e.node(r).y - e.node(r).height / 2) + " )" )); }); -}, "adjustEntities"), o1 = /* @__PURE__ */ x((t) => t.replace(/\s/g, "").replace(/\./g, "_"), "elementString"), zZt = /* @__PURE__ */ x((t, e, r, n) => { +}, "adjustEntities"), o1 = /* @__PURE__ */ x((t) => t.replace(/\s/g, "").replace(/\./g, "_"), "elementString"), UZt = /* @__PURE__ */ x((t, e, r, n) => { Jn = ke().requirement; const i = Jn.securityLevel; let s; i === "sandbox" && (s = ht("#i" + e)); const o = ht(i === "sandbox" ? s.nodes()[0].contentDocument.body : "body").select(`[id='${e}']`); - Yme.insertLineEndings(o, Jn); + Wme.insertLineEndings(o, Jn); const l = new Ji({ multigraph: !1, compound: !1, @@ -90238,22 +90274,22 @@ var fZt = ZR, C$ = [], Ja = {}, n2 = /* @__PURE__ */ new Map(), Lf = {}, i2 = /* return {}; }); let u = n.db.getRequirements(), h = n.db.getElements(), f = n.db.getRelationships(); - IZt(u, l, o), $Zt(h, l, o), BZt(f, l), Y1(l), FZt(o, l), f.forEach(function(v) { - NZt(o, v, l, e, n); + BZt(u, l, o), FZt(h, l, o), zZt(f, l), Y1(l), QZt(o, l), f.forEach(function(v) { + $Zt(o, v, l, e, n); }); const d = Jn.rect_padding, p = o.node().getBBox(), g = p.width + d * 2, m = p.height + d * 2; Ds(o, m, g, Jn.useMaxWidth), o.attr("viewBox", `${p.x - d} ${p.y - d} ${g} ${m}`); -}, "draw"), QZt = { - draw: zZt -}, UZt = { - parser: fZt, - db: LZt, - renderer: QZt, - styles: MZt -}; -const VZt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, "draw"), VZt = { + draw: UZt +}, qZt = { + parser: pZt, + db: MZt, + renderer: VZt, + styles: PZt +}; +const YZt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: UZt + diagram: qZt }, Symbol.toStringTag, { value: "Module" })); var KR = function() { var t = /* @__PURE__ */ x(function(V, Z, G, J) { @@ -90845,7 +90881,7 @@ Expecting ` + Le.join(", ") + ", got '" + (this.terminals_[pe] || pe) + "'" : tt return x(se, "Parser"), se.prototype = Y, Y.Parser = se, new se(); }(); KR.parser = KR; -var qZt = KR, Gt = new DI(() => ({ +var WZt = KR, Gt = new DI(() => ({ prevActor: void 0, actors: /* @__PURE__ */ new Map(), createdActors: /* @__PURE__ */ new Map(), @@ -90858,7 +90894,7 @@ var qZt = KR, Gt = new DI(() => ({ currentBox: void 0, lastCreated: void 0, lastDestroyed: void 0 -})), YZt = /* @__PURE__ */ x(function(t) { +})), GZt = /* @__PURE__ */ x(function(t) { var e; Gt.records.boxes.push({ name: t.text, @@ -90894,14 +90930,14 @@ var qZt = KR, Gt = new DI(() => ({ o && (o.nextActor = t); } Gt.records.currentBox && Gt.records.currentBox.actorKeys.push(t), Gt.records.prevActor = t; -}, "addActor"), WZt = /* @__PURE__ */ x((t) => { +}, "addActor"), XZt = /* @__PURE__ */ x((t) => { let e, r = 0; if (!t) return 0; for (e = 0; e < Gt.records.messages.length; e++) Gt.records.messages[e].type === Ab.ACTIVE_START && Gt.records.messages[e].from === t && r++, Gt.records.messages[e].type === Ab.ACTIVE_END && Gt.records.messages[e].from === t && r--; return r; -}, "activationCount"), GZt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "activationCount"), HZt = /* @__PURE__ */ x(function(t, e, r, n) { var i; Gt.records.messages.push({ from: t, @@ -90912,7 +90948,7 @@ var qZt = KR, Gt = new DI(() => ({ }); }, "addMessage"), ai = /* @__PURE__ */ x(function(t, e, r, n, i = !1) { var s, a; - if (n === Ab.ACTIVE_END && WZt(t != null ? t : "") < 1) { + if (n === Ab.ACTIVE_END && XZt(t != null ? t : "") < 1) { const l = new Error("Trying to inactivate an inactive participant (" + t + ")"); throw l.hash = { text: "->>-", @@ -90930,31 +90966,31 @@ var qZt = KR, Gt = new DI(() => ({ type: n, activate: i }), !0; -}, "addSignal"), XZt = /* @__PURE__ */ x(function() { +}, "addSignal"), ZZt = /* @__PURE__ */ x(function() { return Gt.records.boxes.length > 0; -}, "hasAtLeastOneBox"), HZt = /* @__PURE__ */ x(function() { +}, "hasAtLeastOneBox"), jZt = /* @__PURE__ */ x(function() { return Gt.records.boxes.some((t) => t.name); -}, "hasAtLeastOneBoxWithTitle"), ZZt = /* @__PURE__ */ x(function() { +}, "hasAtLeastOneBoxWithTitle"), KZt = /* @__PURE__ */ x(function() { return Gt.records.messages; -}, "getMessages"), jZt = /* @__PURE__ */ x(function() { +}, "getMessages"), JZt = /* @__PURE__ */ x(function() { return Gt.records.boxes; -}, "getBoxes"), KZt = /* @__PURE__ */ x(function() { +}, "getBoxes"), ejt = /* @__PURE__ */ x(function() { return Gt.records.actors; -}, "getActors"), JZt = /* @__PURE__ */ x(function() { +}, "getActors"), tjt = /* @__PURE__ */ x(function() { return Gt.records.createdActors; -}, "getCreatedActors"), ejt = /* @__PURE__ */ x(function() { +}, "getCreatedActors"), rjt = /* @__PURE__ */ x(function() { return Gt.records.destroyedActors; }, "getDestroyedActors"), Iw = /* @__PURE__ */ x(function(t) { return Gt.records.actors.get(t); -}, "getActor"), tjt = /* @__PURE__ */ x(function() { +}, "getActor"), njt = /* @__PURE__ */ x(function() { return [...Gt.records.actors.keys()]; -}, "getActorKeys"), rjt = /* @__PURE__ */ x(function() { +}, "getActorKeys"), ijt = /* @__PURE__ */ x(function() { Gt.records.sequenceNumbersEnabled = !0; -}, "enableSequenceNumbers"), njt = /* @__PURE__ */ x(function() { +}, "enableSequenceNumbers"), sjt = /* @__PURE__ */ x(function() { Gt.records.sequenceNumbersEnabled = !1; -}, "disableSequenceNumbers"), ijt = /* @__PURE__ */ x(() => Gt.records.sequenceNumbersEnabled, "showSequenceNumbers"), sjt = /* @__PURE__ */ x(function(t) { +}, "disableSequenceNumbers"), ajt = /* @__PURE__ */ x(() => Gt.records.sequenceNumbersEnabled, "showSequenceNumbers"), ojt = /* @__PURE__ */ x(function(t) { Gt.records.wrapEnabled = t; -}, "setWrap"), Hme = /* @__PURE__ */ x((t) => { +}, "setWrap"), Zme = /* @__PURE__ */ x((t) => { if (t === void 0) return {}; t = t.trim(); @@ -90963,15 +90999,15 @@ var qZt = KR, Gt = new DI(() => ({ }, "extractWrap"), ip = /* @__PURE__ */ x(() => { var t, e; return Gt.records.wrapEnabled !== void 0 ? Gt.records.wrapEnabled : (e = (t = ke().sequence) == null ? void 0 : t.wrap) != null ? e : !1; -}, "autoWrap"), ajt = /* @__PURE__ */ x(function() { +}, "autoWrap"), ljt = /* @__PURE__ */ x(function() { Gt.reset(), cs(); -}, "clear"), ojt = /* @__PURE__ */ x(function(t) { - const e = t.trim(), { wrap: r, cleanedText: n } = Hme(e), i = { +}, "clear"), cjt = /* @__PURE__ */ x(function(t) { + const e = t.trim(), { wrap: r, cleanedText: n } = Zme(e), i = { text: n, wrap: r }; return H.debug(`parseMessage: ${JSON.stringify(i)}`), i; -}, "parseMessage"), ljt = /* @__PURE__ */ x(function(t) { +}, "parseMessage"), ujt = /* @__PURE__ */ x(function(t) { const e = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t); let r = e != null && e[1] ? e[1].trim() : "transparent", n = e != null && e[2] ? e[2].trim() : void 0; if (window != null && window.CSS) @@ -90980,7 +91016,7 @@ var qZt = KR, Gt = new DI(() => ({ const a = new Option().style; a.color = r, a.color !== r && (r = "transparent", n = t.trim()); } - const { wrap: i, cleanedText: s } = Hme(n); + const { wrap: i, cleanedText: s } = Zme(n); return { text: s ? yi(s, ke()) : void 0, color: r, @@ -91019,14 +91055,14 @@ var qZt = KR, Gt = new DI(() => ({ PAR_OVER_START: 32, BIDIRECTIONAL_SOLID: 33, BIDIRECTIONAL_DOTTED: 34 -}, cjt = { +}, hjt = { FILLED: 0, OPEN: 1 -}, ujt = { +}, fjt = { LEFTOF: 0, RIGHTOF: 1, OVER: 2 -}, Zme = /* @__PURE__ */ x(function(t, e, r) { +}, jme = /* @__PURE__ */ x(function(t, e, r) { var s, a; const n = { actor: t, @@ -91042,7 +91078,7 @@ var qZt = KR, Gt = new DI(() => ({ type: Ab.NOTE, placement: e }); -}, "addNote"), jme = /* @__PURE__ */ x(function(t, e) { +}, "addNote"), Kme = /* @__PURE__ */ x(function(t, e) { const r = Iw(t); try { let n = yi(e.text, ke()); @@ -91052,7 +91088,7 @@ var qZt = KR, Gt = new DI(() => ({ } catch (n) { H.error("error while parsing actor link text", n); } -}, "addLinks"), hjt = /* @__PURE__ */ x(function(t, e) { +}, "addLinks"), djt = /* @__PURE__ */ x(function(t, e) { const r = Iw(t); try { const n = {}; @@ -91073,7 +91109,7 @@ function DE(t, e) { t.links[r] = e[r]; } x(DE, "insertLinks"); -var Kme = /* @__PURE__ */ x(function(t, e) { +var Jme = /* @__PURE__ */ x(function(t, e) { const r = Iw(t); try { const n = yi(e.text, ke()), i = JSON.parse(n); @@ -91090,11 +91126,11 @@ function E$(t, e) { t.properties[r] = e[r]; } x(E$, "insertProperties"); -function Jme() { +function e1e() { Gt.records.currentBox = void 0; } -x(Jme, "boxEnd"); -var e1e = /* @__PURE__ */ x(function(t, e) { +x(e1e, "boxEnd"); +var t1e = /* @__PURE__ */ x(function(t, e) { const r = Iw(t), n = document.getElementById(e.text); try { const i = n.innerHTML, s = JSON.parse(i); @@ -91102,13 +91138,13 @@ var e1e = /* @__PURE__ */ x(function(t, e) { } catch (i) { H.error("error while parsing actor details text", i); } -}, "addDetails"), fjt = /* @__PURE__ */ x(function(t, e) { +}, "addDetails"), pjt = /* @__PURE__ */ x(function(t, e) { if ((t == null ? void 0 : t.properties) !== void 0) return t.properties[e]; -}, "getActorProperty"), t1e = /* @__PURE__ */ x(function(t) { +}, "getActorProperty"), r1e = /* @__PURE__ */ x(function(t) { if (Array.isArray(t)) t.forEach(function(e) { - t1e(e); + r1e(e); }); else switch (t.type) { @@ -91145,19 +91181,19 @@ var e1e = /* @__PURE__ */ x(function(t, e) { ai(t.actor, void 0, void 0, t.signalType); break; case "addNote": - Zme(t.actor, t.placement, t.text); + jme(t.actor, t.placement, t.text); break; case "addLinks": - jme(t.actor, t.text); + Kme(t.actor, t.text); break; case "addALink": - hjt(t.actor, t.text); + djt(t.actor, t.text); break; case "addProperties": - Kme(t.actor, t.text); + Jme(t.actor, t.text); break; case "addDetails": - e1e(t.actor, t.text); + t1e(t.actor, t.text); break; case "addMessage": if (Gt.records.lastCreated) { @@ -91176,10 +91212,10 @@ var e1e = /* @__PURE__ */ x(function(t, e) { ai(t.from, t.to, t.msg, t.signalType, t.activate); break; case "boxStart": - YZt(t.boxData); + GZt(t.boxData); break; case "boxEnd": - Jme(); + e1e(); break; case "loopStart": ai(void 0, void 0, t.loopText, t.signalType); @@ -91238,42 +91274,42 @@ var e1e = /* @__PURE__ */ x(function(t, e) { } }, "apply"), TH = { addActor: JR, - addMessage: GZt, + addMessage: HZt, addSignal: ai, - addLinks: jme, - addDetails: e1e, - addProperties: Kme, + addLinks: Kme, + addDetails: t1e, + addProperties: Jme, autoWrap: ip, - setWrap: sjt, - enableSequenceNumbers: rjt, - disableSequenceNumbers: njt, - showSequenceNumbers: ijt, - getMessages: ZZt, - getActors: KZt, - getCreatedActors: JZt, - getDestroyedActors: ejt, + setWrap: ojt, + enableSequenceNumbers: ijt, + disableSequenceNumbers: sjt, + showSequenceNumbers: ajt, + getMessages: KZt, + getActors: ejt, + getCreatedActors: tjt, + getDestroyedActors: rjt, getActor: Iw, - getActorKeys: tjt, - getActorProperty: fjt, + getActorKeys: njt, + getActorProperty: pjt, getAccTitle: Ps, - getBoxes: jZt, + getBoxes: JZt, getDiagramTitle: $s, setDiagramTitle: Na, getConfig: /* @__PURE__ */ x(() => ke().sequence, "getConfig"), - clear: ajt, - parseMessage: ojt, - parseBoxData: ljt, + clear: ljt, + parseMessage: cjt, + parseBoxData: ujt, LINETYPE: Ab, - ARROWTYPE: cjt, - PLACEMENT: ujt, - addNote: Zme, + ARROWTYPE: hjt, + PLACEMENT: fjt, + addNote: jme, setAccTitle: us, - apply: t1e, + apply: r1e, setAccDescription: Ns, getAccDescription: Is, - hasAtLeastOneBox: XZt, - hasAtLeastOneBoxWithTitle: HZt -}, djt = /* @__PURE__ */ x((t) => `.actor { + hasAtLeastOneBox: ZZt, + hasAtLeastOneBoxWithTitle: jZt +}, gjt = /* @__PURE__ */ x((t) => `.actor { stroke: ${t.actorBorder}; fill: ${t.actorBkg}; } @@ -91389,9 +91425,9 @@ var e1e = /* @__PURE__ */ x(function(t, e) { fill: ${t.actorBkg}; stroke-width: 2px; } -`, "getStyles"), pjt = djt, b0 = 18 * 2, r1e = "actor-top", n1e = "actor-bottom", gjt = "actor-box", CH = "actor-man", _$ = /* @__PURE__ */ x(function(t, e) { +`, "getStyles"), mjt = gjt, b0 = 18 * 2, n1e = "actor-top", i1e = "actor-bottom", vjt = "actor-box", CH = "actor-man", _$ = /* @__PURE__ */ x(function(t, e) { return lE(t, e); -}, "drawRect"), mjt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "drawRect"), yjt = /* @__PURE__ */ x(function(t, e, r, n, i) { if (e.links === void 0 || e.links === null || Object.keys(e.links).length === 0) return { height: 0, width: 0 }; const s = e.links, a = e.actorCnt, o = e.rectData; @@ -91407,7 +91443,7 @@ var e1e = /* @__PURE__ */ x(function(t, e) { var p = 20; for (let v in s) { var g = u.append("a"), m = yd(s[v]); - g.attr("xlink:href", m), g.attr("target", "_blank"), Djt(n)( + g.attr("xlink:href", m), g.attr("target", "_blank"), Njt(n)( v, g, o.x + 10, @@ -91420,7 +91456,7 @@ var e1e = /* @__PURE__ */ x(function(t, e) { } } return d.attr("height", p), { height: o.height + p, width: f }; -}, "drawPopup"), vjt = /* @__PURE__ */ x(function(t) { +}, "drawPopup"), bjt = /* @__PURE__ */ x(function(t) { return "var pu = document.getElementById('" + t + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"; }, "popupMenuToggle"), GS = /* @__PURE__ */ x(async function(t, e, r = null) { let n = t.append("foreignObject"); @@ -91488,30 +91524,30 @@ var e1e = /* @__PURE__ */ x(function(t, e) { e.valign !== void 0 && e.textMargin !== void 0 && e.textMargin > 0 && (n += (d._groups || d)[0][0].getBBox().height, r = n), o.push(d); } return o; -}, "drawText"), i1e = /* @__PURE__ */ x(function(t, e) { +}, "drawText"), s1e = /* @__PURE__ */ x(function(t, e) { function r(i, s, a, o, l) { return i + "," + s + " " + (i + a) + "," + s + " " + (i + a) + "," + (s + o - l) + " " + (i + a - l * 1.2) + "," + (s + o) + " " + i + "," + (s + o); } x(r, "genPoints"); const n = t.append("polygon"); return n.attr("points", r(e.x, e.y, e.width, e.height, 7)), n.attr("class", "labelBox"), e.y = e.y + e.height / 2, l1(t, e), n; -}, "drawLabel"), Bc = -1, s1e = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawLabel"), Bc = -1, a1e = /* @__PURE__ */ x((t, e, r, n) => { !t.select || r.forEach((i) => { const s = e.get(i), a = t.select("#actor" + s.actorCnt); !n.mirrorActors && s.stopy ? a.attr("y2", s.stopy + s.height / 2) : n.mirrorActors && a.attr("y2", s.stopy); }); -}, "fixLifeLineHeights"), yjt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "fixLifeLineHeights"), xjt = /* @__PURE__ */ x(function(t, e, r, n) { var p, g; const i = n ? e.stopy : e.starty, s = e.x + e.width / 2, a = i + 5, o = t.append("g").lower(); var l = o; - n || (Bc++, Object.keys(e.links || {}).length && !r.forceMenus && l.attr("onclick", vjt(`actor${Bc}_popup`)).attr("cursor", "pointer"), l.append("line").attr("id", "actor" + Bc).attr("x1", s).attr("y1", a).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), l = o.append("g"), e.actorCnt = Bc, e.links != null && l.attr("id", "root-" + Bc)); + n || (Bc++, Object.keys(e.links || {}).length && !r.forceMenus && l.attr("onclick", bjt(`actor${Bc}_popup`)).attr("cursor", "pointer"), l.append("line").attr("id", "actor" + Bc).attr("x1", s).attr("y1", a).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), l = o.append("g"), e.actorCnt = Bc, e.links != null && l.attr("id", "root-" + Bc)); const u = Np(); var h = "actor"; - (p = e.properties) != null && p.class ? h = e.properties.class : u.fill = "#eaeaea", n ? h += ` ${n1e}` : h += ` ${r1e}`, u.x = e.x, u.y = i, u.width = e.width, u.height = e.height, u.class = h, u.rx = 3, u.ry = 3, u.name = e.name; + (p = e.properties) != null && p.class ? h = e.properties.class : u.fill = "#eaeaea", n ? h += ` ${i1e}` : h += ` ${n1e}`, u.x = e.x, u.y = i, u.width = e.width, u.height = e.height, u.class = h, u.rx = 3, u.ry = 3, u.name = e.name; const f = _$(l, u); if (e.rectData = u, (g = e.properties) != null && g.icon) { const m = e.properties.icon.trim(); - m.charAt(0) === "@" ? sBt(l, u.x + u.width - 20, u.y + 10, m.substr(1)) : iBt(l, u.x + u.width - 20, u.y + 10, m); + m.charAt(0) === "@" ? oBt(l, u.x + u.width - 20, u.y + 10, m.substr(1)) : aBt(l, u.x + u.width - 20, u.y + 10, m); } A$(r, Ra(e.description))( e.description, @@ -91520,7 +91556,7 @@ var e1e = /* @__PURE__ */ x(function(t, e) { u.y, u.width, u.height, - { class: `actor ${gjt}` }, + { class: `actor ${vjt}` }, r ); let d = e.height; @@ -91529,12 +91565,12 @@ var e1e = /* @__PURE__ */ x(function(t, e) { e.height = m.height, d = m.height; } return d; -}, "drawActorTypeParticipant"), bjt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawActorTypeParticipant"), wjt = /* @__PURE__ */ x(function(t, e, r, n) { const i = n ? e.stopy : e.starty, s = e.x + e.width / 2, a = i + 80, o = t.append("g").lower(); n || (Bc++, o.append("line").attr("id", "actor" + Bc).attr("x1", s).attr("y1", a).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), e.actorCnt = Bc); const l = t.append("g"); let u = CH; - n ? u += ` ${n1e}` : u += ` ${r1e}`, l.attr("class", u), l.attr("name", e.name); + n ? u += ` ${i1e}` : u += ` ${n1e}`, l.attr("class", u), l.attr("name", e.name); const h = Np(); h.x = e.x, h.y = i, h.fill = "#eaeaea", h.width = e.width, h.height = e.height, h.class = "actor", h.rx = 3, h.ry = 3, l.append("line").attr("id", "actor-man-torso" + Bc).attr("x1", s).attr("y1", i + 25).attr("x2", s).attr("y2", i + 45), l.append("line").attr("id", "actor-man-arms" + Bc).attr("x1", s - b0 / 2).attr("y1", i + 33).attr("x2", s + b0 / 2).attr("y2", i + 33), l.append("line").attr("x1", s - b0 / 2).attr("y1", i + 60).attr("x2", s).attr("y2", i + 45), l.append("line").attr("x1", s).attr("y1", i + 45).attr("x2", s + b0 / 2 - 2).attr("y2", i + 60); const f = l.append("circle"); @@ -91550,16 +91586,16 @@ var e1e = /* @__PURE__ */ x(function(t, e) { { class: `actor ${CH}` }, r ), e.height; -}, "drawActorTypeActor"), xjt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "drawActorTypeActor"), Ojt = /* @__PURE__ */ x(async function(t, e, r, n) { switch (e.type) { case "actor": - return await bjt(t, e, r, n); + return await wjt(t, e, r, n); case "participant": - return await yjt(t, e, r, n); + return await xjt(t, e, r, n); } -}, "drawActor"), wjt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawActor"), kjt = /* @__PURE__ */ x(function(t, e, r) { const i = t.append("g"); - a1e(i, e), e.name && A$(r)( + o1e(i, e), e.name && A$(r)( e.name, i, e.x, @@ -91569,12 +91605,12 @@ var e1e = /* @__PURE__ */ x(function(t, e) { { class: "text" }, r ), i.lower(); -}, "drawBox"), Ojt = /* @__PURE__ */ x(function(t) { +}, "drawBox"), Sjt = /* @__PURE__ */ x(function(t) { return t.append("g"); -}, "anchorElement"), kjt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "anchorElement"), Tjt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = Np(), a = e.anchored; s.x = e.startx, s.y = e.starty, s.class = "activation" + i % 3, s.width = e.stopx - e.startx, s.height = r - e.starty, _$(a, s); -}, "drawActivation"), Sjt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "drawActivation"), Cjt = /* @__PURE__ */ x(async function(t, e, r, n) { const { boxMargin: i, boxTextMargin: s, @@ -91593,7 +91629,7 @@ var e1e = /* @__PURE__ */ x(function(t, e) { ); }); let p = OI(); - p.text = r, p.x = e.startx, p.y = e.starty, p.fontFamily = l, p.fontSize = u, p.fontWeight = h, p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.width = o || 50, p.height = a || 20, p.textMargin = s, p.class = "labelText", i1e(f, p), p = o1e(), p.text = e.title, p.x = e.startx + o / 2 + (e.stopx - e.startx) / 2, p.y = e.starty + i + s, p.anchor = "middle", p.valign = "middle", p.textMargin = s, p.class = "loopText", p.fontFamily = l, p.fontSize = u, p.fontWeight = h, p.wrap = !0; + p.text = r, p.x = e.startx, p.y = e.starty, p.fontFamily = l, p.fontSize = u, p.fontWeight = h, p.anchor = "middle", p.valign = "middle", p.tspan = !1, p.width = o || 50, p.height = a || 20, p.textMargin = s, p.class = "labelText", s1e(f, p), p = l1e(), p.text = e.title, p.x = e.startx + o / 2 + (e.stopx - e.startx) / 2, p.y = e.starty + i + s, p.anchor = "middle", p.valign = "middle", p.textMargin = s, p.class = "loopText", p.fontFamily = l, p.fontSize = u, p.fontWeight = h, p.wrap = !0; let g = Ra(p.text) ? await GS(f, p, e) : l1(f, p); if (e.sectionTitles !== void 0) { for (const [m, v] of Object.entries(e.sectionTitles)) @@ -91606,32 +91642,32 @@ var e1e = /* @__PURE__ */ x(function(t, e) { } } return e.height = Math.round(e.stopy - e.starty), f; -}, "drawLoop"), a1e = /* @__PURE__ */ x(function(t, e) { - Gde(t, e); -}, "drawBackgroundRect"), Tjt = /* @__PURE__ */ x(function(t) { +}, "drawLoop"), o1e = /* @__PURE__ */ x(function(t, e) { + Xde(t, e); +}, "drawBackgroundRect"), Ejt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr( "d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z" ); -}, "insertDatabaseIcon"), Cjt = /* @__PURE__ */ x(function(t) { +}, "insertDatabaseIcon"), _jt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z" ); -}, "insertComputerIcon"), Ejt = /* @__PURE__ */ x(function(t) { +}, "insertComputerIcon"), Ajt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z" ); -}, "insertClockIcon"), _jt = /* @__PURE__ */ x(function(t) { +}, "insertClockIcon"), Ljt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z"); -}, "insertArrowHead"), Ajt = /* @__PURE__ */ x(function(t) { +}, "insertArrowHead"), Rjt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "filled-head").attr("refX", 15.5).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"); -}, "insertArrowFilledHead"), Ljt = /* @__PURE__ */ x(function(t) { +}, "insertArrowFilledHead"), Mjt = /* @__PURE__ */ x(function(t) { t.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); -}, "insertSequenceNumber"), Rjt = /* @__PURE__ */ x(function(t) { +}, "insertSequenceNumber"), Djt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7"); -}, "insertArrowCrossHead"), o1e = /* @__PURE__ */ x(function() { +}, "insertArrowCrossHead"), l1e = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -91646,7 +91682,7 @@ var e1e = /* @__PURE__ */ x(function(t, e) { tspan: !0, valign: void 0 }; -}, "getTextObj"), Mjt = /* @__PURE__ */ x(function() { +}, "getTextObj"), Pjt = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -91689,7 +91725,7 @@ var e1e = /* @__PURE__ */ x(function(t, e) { return x(i, "_setTextAttrs"), function(s, a = !1) { return a ? n : s.textPlacement === "fo" ? r : s.textPlacement === "old" ? t : e; }; -}(), Djt = /* @__PURE__ */ function() { +}(), Njt = /* @__PURE__ */ function() { function t(i, s, a, o, l, u, h) { const f = s.append("text").attr("x", a).attr("y", o).style("text-anchor", "start").text(i); n(f, h); @@ -91718,24 +91754,24 @@ var e1e = /* @__PURE__ */ x(function(t, e) { }(), oi = { drawRect: _$, drawText: l1, - drawLabel: i1e, - drawActor: xjt, - drawBox: wjt, - drawPopup: mjt, - anchorElement: Ojt, - drawActivation: kjt, - drawLoop: Sjt, - drawBackgroundRect: a1e, - insertArrowHead: _jt, - insertArrowFilledHead: Ajt, - insertSequenceNumber: Ljt, - insertArrowCrossHead: Rjt, - insertDatabaseIcon: Tjt, - insertComputerIcon: Cjt, - insertClockIcon: Ejt, - getTextObj: o1e, - getNoteRect: Mjt, - fixLifeLineHeights: s1e, + drawLabel: s1e, + drawActor: Ojt, + drawBox: kjt, + drawPopup: yjt, + anchorElement: Sjt, + drawActivation: Tjt, + drawLoop: Cjt, + drawBackgroundRect: o1e, + insertArrowHead: Ljt, + insertArrowFilledHead: Rjt, + insertSequenceNumber: Mjt, + insertArrowCrossHead: Djt, + insertDatabaseIcon: Ejt, + insertComputerIcon: _jt, + insertClockIcon: Ajt, + getTextObj: l1e, + getNoteRect: Pjt, + fixLifeLineHeights: a1e, sanitizeUrl: yd }, Qe = {}, dt = { data: { @@ -91796,7 +91832,7 @@ var e1e = /* @__PURE__ */ x(function(t, e) { stopx: void 0, starty: void 0, stopy: void 0 - }, this.verticalPos = 0, u1e(ke()); + }, this.verticalPos = 0, h1e(ke()); }, "init"), updateVal: /* @__PURE__ */ x(function(t, e, r, n) { t[e] === void 0 ? t[e] = r : t[e] = n(r, t[e]); @@ -91875,7 +91911,7 @@ var e1e = /* @__PURE__ */ x(function(t, e) { getBounds: /* @__PURE__ */ x(function() { return { bounds: this.data, models: this.models }; }, "getBounds") -}, Pjt = /* @__PURE__ */ x(async function(t, e) { +}, Ijt = /* @__PURE__ */ x(async function(t, e) { dt.bumpVerticalPos(Qe.boxMargin), e.height = Qe.boxMargin, e.starty = dt.getVerticalPos(); const r = Np(); r.x = e.startx, r.y = e.starty, r.width = e.width || Qe.width, r.class = "note"; @@ -91898,9 +91934,9 @@ var e1e = /* @__PURE__ */ x(function(t, e) { fontSize: t.actorFontSize, fontWeight: t.actorFontWeight }), "actorFont"); -async function l1e(t, e) { +async function c1e(t, e) { dt.bumpVerticalPos(10); - const { startx: r, stopx: n, message: i } = e, s = mt.splitBreaks(i).length, a = Ra(i), o = a ? await Jx(i, ke()) : gr.calculateTextDimensions(i, sp(Qe)); + const { startx: r, stopx: n, message: i } = e, s = mt.splitBreaks(i).length, a = Ra(i), o = a ? await Jx(i, ke()) : mr.calculateTextDimensions(i, sp(Qe)); if (!a) { const f = o.height / s; e.height += f, dt.bumpVerticalPos(f); @@ -91920,9 +91956,9 @@ async function l1e(t, e) { u += Qe.boxMargin, l = dt.getVerticalPos() + u, dt.insert(r, l - 10, n, l); return dt.bumpVerticalPos(u), e.height += u, e.stopy = e.starty + e.height, dt.insert(e.fromBounds, e.starty, e.toBounds, e.stopy), l; } -x(l1e, "boundMessage"); -var Njt = /* @__PURE__ */ x(async function(t, e, r, n) { - const { startx: i, stopx: s, starty: a, message: o, type: l, sequenceIndex: u, sequenceVisible: h } = e, f = gr.calculateTextDimensions(o, sp(Qe)), d = OI(); +x(c1e, "boundMessage"); +var $jt = /* @__PURE__ */ x(async function(t, e, r, n) { + const { startx: i, stopx: s, starty: a, message: o, type: l, sequenceIndex: u, sequenceVisible: h } = e, f = mr.calculateTextDimensions(o, sp(Qe)), d = OI(); d.x = i, d.y = a + 10, d.width = s - i, d.class = "messageText", d.dy = "1em", d.text = o, d.fontFamily = Qe.messageFontFamily, d.fontSize = Qe.messageFontSize, d.fontWeight = Qe.messageFontWeight, d.anchor = Qe.messageAlign, d.valign = "center", d.textMargin = Qe.wrapPadding, d.tspan = !1, Ra(d.text) ? await GS(t, d, { startx: i, stopx: s, starty: r }) : l1(t, d); const p = f.width; let g; @@ -91935,7 +91971,7 @@ var Njt = /* @__PURE__ */ x(async function(t, e, r, n) { ) : (g = t.append("line"), g.attr("x1", i), g.attr("y1", r), g.attr("x2", s), g.attr("y2", r)), l === n.db.LINETYPE.DOTTED || l === n.db.LINETYPE.DOTTED_CROSS || l === n.db.LINETYPE.DOTTED_POINT || l === n.db.LINETYPE.DOTTED_OPEN || l === n.db.LINETYPE.BIDIRECTIONAL_DOTTED ? (g.style("stroke-dasharray", "3, 3"), g.attr("class", "messageLine1")) : g.attr("class", "messageLine0"); let m = ""; Qe.arrowMarkerAbsolute && (m = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, m = m.replace(/\(/g, "\\("), m = m.replace(/\)/g, "\\)")), g.attr("stroke-width", 2), g.attr("stroke", "none"), g.style("fill", "none"), (l === n.db.LINETYPE.SOLID || l === n.db.LINETYPE.DOTTED) && g.attr("marker-end", "url(" + m + "#arrowhead)"), (l === n.db.LINETYPE.BIDIRECTIONAL_SOLID || l === n.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (g.attr("marker-start", "url(" + m + "#arrowhead)"), g.attr("marker-end", "url(" + m + "#arrowhead)")), (l === n.db.LINETYPE.SOLID_POINT || l === n.db.LINETYPE.DOTTED_POINT) && g.attr("marker-end", "url(" + m + "#filled-head)"), (l === n.db.LINETYPE.SOLID_CROSS || l === n.db.LINETYPE.DOTTED_CROSS) && g.attr("marker-end", "url(" + m + "#crosshead)"), (h || Qe.showSequenceNumbers) && (g.attr("marker-start", "url(" + m + "#sequencenumber)"), t.append("text").attr("x", i).attr("y", r + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(u)); -}, "drawMessage"), Ijt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "drawMessage"), Bjt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { let o = 0, l = 0, u, h = 0; for (const f of n) { const d = e.get(f), p = d.box; @@ -91958,10 +91994,10 @@ var Njt = /* @__PURE__ */ x(async function(t, e, r, n) { const s = e.get(i); await oi.drawActor(t, s, Qe, !1); } -}, "drawActors"), c1e = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawActors"), u1e = /* @__PURE__ */ x(function(t, e, r, n) { let i = 0, s = 0; for (const a of r) { - const o = e.get(a), l = Bjt(o), u = oi.drawPopup( + const o = e.get(a), l = zjt(o), u = oi.drawPopup( t, o, l, @@ -91972,7 +92008,7 @@ var Njt = /* @__PURE__ */ x(async function(t, e, r, n) { u.height > i && (i = u.height), u.width + o.x > s && (s = u.width + o.x); } return { maxHeight: i, maxWidth: s }; -}, "drawActorsPopup"), u1e = /* @__PURE__ */ x(function(t) { +}, "drawActorsPopup"), h1e = /* @__PURE__ */ x(function(t) { Ui(Qe, t), t.fontFamily && (Qe.actorFontFamily = Qe.noteFontFamily = Qe.messageFontFamily = t.fontFamily), t.fontSize && (Qe.actorFontSize = Qe.noteFontSize = Qe.messageFontSize = t.fontSize), t.fontWeight && (Qe.actorFontWeight = Qe.noteFontWeight = Qe.messageFontWeight = t.fontWeight); }, "setConf"), PE = /* @__PURE__ */ x(function(t) { return dt.activations.filter(function(e) { @@ -91997,14 +92033,14 @@ function Rl(t, e, r, n, i) { let s = n; if (e.id && e.message && t[e.id]) { const a = t[e.id].width, o = sp(Qe); - e.message = gr.wrapLabel(`[${e.message}]`, a - 2 * Qe.wrapPadding, o), e.width = a, e.wrap = !0; - const l = gr.calculateTextDimensions(e.message, o), u = mt.getMax(l.height, Qe.labelBoxHeight); + e.message = mr.wrapLabel(`[${e.message}]`, a - 2 * Qe.wrapPadding, o), e.width = a, e.wrap = !0; + const l = mr.calculateTextDimensions(e.message, o), u = mt.getMax(l.height, Qe.labelBoxHeight); s = n + u, H.debug(`${u} - ${e.message}`); } i(e), dt.bumpVerticalPos(s); } x(Rl, "adjustLoopHeightForWrap"); -function h1e(t, e, r, n, i, s, a) { +function f1e(t, e, r, n, i, s, a) { function o(u, h) { u.x < i.get(t.from).x ? (dt.insert( e.stopx - h, @@ -92051,8 +92087,8 @@ function h1e(t, e, r, n, i, s, a) { u.stopy = r - u.height / 2, dt.bumpVerticalPos(u.height / 2); } } -x(h1e, "adjustCreatedDestroyedData"); -var $jt = /* @__PURE__ */ x(async function(t, e, r, n) { +x(f1e, "adjustCreatedDestroyedData"); +var Fjt = /* @__PURE__ */ x(async function(t, e, r, n) { const { securityLevel: i, sequence: s } = ke(); Qe = s; let a; @@ -92061,15 +92097,15 @@ var $jt = /* @__PURE__ */ x(async function(t, e, r, n) { dt.init(), H.debug(n.db); const u = i === "sandbox" ? o.select(`[id="${e}"]`) : ht(`[id="${e}"]`), h = n.db.getActors(), f = n.db.getCreatedActors(), d = n.db.getDestroyedActors(), p = n.db.getBoxes(); let g = n.db.getActorKeys(); - const m = n.db.getMessages(), v = n.db.getDiagramTitle(), y = n.db.hasAtLeastOneBox(), b = n.db.hasAtLeastOneBoxWithTitle(), w = await f1e(h, m, n); - if (Qe.height = await d1e(h, w, p), oi.insertComputerIcon(u), oi.insertDatabaseIcon(u), oi.insertClockIcon(u), y && (dt.bumpVerticalPos(Qe.boxMargin), b && dt.bumpVerticalPos(p[0].textMaxHeight)), Qe.hideUnusedParticipants === !0) { + const m = n.db.getMessages(), v = n.db.getDiagramTitle(), y = n.db.hasAtLeastOneBox(), b = n.db.hasAtLeastOneBoxWithTitle(), w = await d1e(h, m, n); + if (Qe.height = await p1e(h, w, p), oi.insertComputerIcon(u), oi.insertDatabaseIcon(u), oi.insertClockIcon(u), y && (dt.bumpVerticalPos(Qe.boxMargin), b && dt.bumpVerticalPos(p[0].textMaxHeight)), Qe.hideUnusedParticipants === !0) { const D = /* @__PURE__ */ new Set(); m.forEach((I) => { D.add(I.from), D.add(I.to); }), g = g.filter((I) => D.has(I)); } - Ijt(u, h, f, g, 0, m, !1); - const O = await Qjt(m, h, w, n); + Bjt(u, h, f, g, 0, m, !1); + const O = await Vjt(m, h, w, n); oi.insertArrowHead(u), oi.insertArrowCrossHead(u), oi.insertArrowFilledHead(u), oi.insertSequenceNumber(u); function S(D, I) { const F = dt.endActivation(D); @@ -92089,7 +92125,7 @@ var $jt = /* @__PURE__ */ x(async function(t, e, r, n) { let I, F, B; switch (D.type) { case n.db.LINETYPE.NOTE: - dt.resetVerticalPos(), F = D.noteModel, await Pjt(u, F); + dt.resetVerticalPos(), F = D.noteModel, await Ijt(u, F); break; case n.db.LINETYPE.ACTIVE_START: dt.newActivation(D, u, h); @@ -92215,8 +92251,8 @@ var $jt = /* @__PURE__ */ x(async function(t, e, r, n) { default: try { B = D.msgModel, B.starty = dt.getVerticalPos(), B.sequenceIndex = C, B.sequenceVisible = n.db.showSequenceNumbers(); - const U = await l1e(u, B); - h1e( + const U = await c1e(u, B); + f1e( D, B, U, @@ -92244,12 +92280,12 @@ var $jt = /* @__PURE__ */ x(async function(t, e, r, n) { } H.debug("createdActors", f), H.debug("destroyedActors", d), await tM(u, h, g, !1); for (const D of A) - await Njt(u, D.messageModel, D.lineStartY, n); - Qe.mirrorActors && await tM(u, h, g, !0), E.forEach((D) => oi.drawBackgroundRect(u, D)), s1e(u, h, g, Qe); + await $jt(u, D.messageModel, D.lineStartY, n); + Qe.mirrorActors && await tM(u, h, g, !0), E.forEach((D) => oi.drawBackgroundRect(u, D)), a1e(u, h, g, Qe); for (const D of dt.models.boxes) D.height = dt.getVerticalPos() - D.y, dt.insert(D.x, D.y, D.x + D.width, D.height), D.startx = D.x, D.starty = D.y, D.stopx = D.startx + D.width, D.stopy = D.starty + D.height, D.stroke = "rgb(0,0,0, 0.5)", oi.drawBox(u, D, Qe); y && dt.bumpVerticalPos(Qe.boxMargin); - const _ = c1e(u, h, g, l), { bounds: L } = dt.getBounds(); + const _ = u1e(u, h, g, l), { bounds: L } = dt.getBounds(); L.startx === void 0 && (L.startx = 0), L.starty === void 0 && (L.starty = 0), L.stopx === void 0 && (L.stopx = 0), L.stopy === void 0 && (L.stopy = 0); let $ = L.stopy - L.starty; $ < _.maxHeight && ($ = _.maxHeight); @@ -92265,14 +92301,14 @@ var $jt = /* @__PURE__ */ x(async function(t, e, r, n) { L.startx - Qe.diagramMarginX + " -" + (Qe.diagramMarginY + N) + " " + M + " " + (k + N) ), H.debug("models:", dt.models); }, "draw"); -async function f1e(t, e, r) { +async function d1e(t, e, r) { const n = {}; for (const i of e) if (t.get(i.to) && t.get(i.from)) { const s = t.get(i.to); if (i.placement === r.db.PLACEMENT.LEFTOF && !s.prevActor || i.placement === r.db.PLACEMENT.RIGHTOF && !s.nextActor) continue; - const a = i.placement !== void 0, o = !a, l = a ? pg(Qe) : sp(Qe), u = i.wrap ? gr.wrapLabel(i.message, Qe.width - 2 * Qe.wrapPadding, l) : i.message, f = (Ra(u) ? await Jx(i.message, ke()) : gr.calculateTextDimensions(u, l)).width + 2 * Qe.wrapPadding; + const a = i.placement !== void 0, o = !a, l = a ? pg(Qe) : sp(Qe), u = i.wrap ? mr.wrapLabel(i.message, Qe.width - 2 * Qe.wrapPadding, l) : i.message, f = (Ra(u) ? await Jx(i.message, ke()) : mr.calculateTextDimensions(u, l)).width + 2 * Qe.wrapPadding; o && i.from === s.nextActor ? n[i.to] = mt.getMax( n[i.to] || 0, f @@ -92301,26 +92337,26 @@ async function f1e(t, e, r) { } return H.debug("maxMessageWidthPerActor:", n), n; } -x(f1e, "getMaxMessageWidthPerActor"); -var Bjt = /* @__PURE__ */ x(function(t) { +x(d1e, "getMaxMessageWidthPerActor"); +var zjt = /* @__PURE__ */ x(function(t) { let e = 0; const r = eM(Qe); for (const n in t.links) { - const s = gr.calculateTextDimensions(n, r).width + 2 * Qe.wrapPadding + 2 * Qe.boxMargin; + const s = mr.calculateTextDimensions(n, r).width + 2 * Qe.wrapPadding + 2 * Qe.boxMargin; e < s && (e = s); } return e; }, "getRequiredPopupWidth"); -async function d1e(t, e, r) { +async function p1e(t, e, r) { let n = 0; for (const s of t.keys()) { const a = t.get(s); - a.wrap && (a.description = gr.wrapLabel( + a.wrap && (a.description = mr.wrapLabel( a.description, Qe.width - 2 * Qe.wrapPadding, eM(Qe) )); - const o = Ra(a.description) ? await Jx(a.description, ke()) : gr.calculateTextDimensions(a.description, eM(Qe)); + const o = Ra(a.description) ? await Jx(a.description, ke()) : mr.calculateTextDimensions(a.description, eM(Qe)); a.width = a.wrap ? Qe.width : mt.getMax(Qe.width, o.width + 2 * Qe.wrapPadding), a.height = a.wrap ? mt.getMax(o.height, Qe.height) : Qe.height, n = mt.getMax(n, a.height); } for (const s in e) { @@ -92340,8 +92376,8 @@ async function d1e(t, e, r) { return r.forEach((s) => { const a = sp(Qe); let o = s.actorKeys.reduce((h, f) => h += t.get(f).width + (t.get(f).margin || 0), 0); - o -= 2 * Qe.boxTextMargin, s.wrap && (s.name = gr.wrapLabel(s.name, o - 2 * Qe.wrapPadding, a)); - const l = gr.calculateTextDimensions(s.name, a); + o -= 2 * Qe.boxTextMargin, s.wrap && (s.name = mr.wrapLabel(s.name, o - 2 * Qe.wrapPadding, a)); + const l = mr.calculateTextDimensions(s.name, a); i = mt.getMax(l.height, i); const u = mt.getMax(o, l.width + 2 * Qe.wrapPadding); if (s.margin = Qe.boxTextMargin, o < u) { @@ -92350,11 +92386,11 @@ async function d1e(t, e, r) { } }), r.forEach((s) => s.textMaxHeight = i), mt.getMax(n, Qe.height); } -x(d1e, "calculateActorMargins"); -var Fjt = /* @__PURE__ */ x(async function(t, e, r) { +x(p1e, "calculateActorMargins"); +var Qjt = /* @__PURE__ */ x(async function(t, e, r) { const n = e.get(t.from), i = e.get(t.to), s = n.x, a = i.x, o = t.wrap && t.message; - let l = Ra(t.message) ? await Jx(t.message, ke()) : gr.calculateTextDimensions( - o ? gr.wrapLabel(t.message, Qe.width, pg(Qe)) : t.message, + let l = Ra(t.message) ? await Jx(t.message, ke()) : mr.calculateTextDimensions( + o ? mr.wrapLabel(t.message, Qe.width, pg(Qe)) : t.message, pg(Qe) ); const u = { @@ -92372,17 +92408,17 @@ var Fjt = /* @__PURE__ */ x(async function(t, e, r) { ), u.startx = s + (n.width + Qe.actorMargin) / 2) : t.placement === r.db.PLACEMENT.LEFTOF ? (u.width = o ? mt.getMax(Qe.width, l.width + 2 * Qe.noteMargin) : mt.getMax( n.width / 2 + i.width / 2, l.width + 2 * Qe.noteMargin - ), u.startx = s - u.width + (n.width - Qe.actorMargin) / 2) : t.to === t.from ? (l = gr.calculateTextDimensions( - o ? gr.wrapLabel(t.message, mt.getMax(Qe.width, n.width), pg(Qe)) : t.message, + ), u.startx = s - u.width + (n.width - Qe.actorMargin) / 2) : t.to === t.from ? (l = mr.calculateTextDimensions( + o ? mr.wrapLabel(t.message, mt.getMax(Qe.width, n.width), pg(Qe)) : t.message, pg(Qe) - ), u.width = o ? mt.getMax(Qe.width, n.width) : mt.getMax(n.width, Qe.width, l.width + 2 * Qe.noteMargin), u.startx = s + (n.width - u.width) / 2) : (u.width = Math.abs(s + n.width / 2 - (a + i.width / 2)) + Qe.actorMargin, u.startx = s < a ? s + n.width / 2 - Qe.actorMargin / 2 : a + i.width / 2 - Qe.actorMargin / 2), o && (u.message = gr.wrapLabel( + ), u.width = o ? mt.getMax(Qe.width, n.width) : mt.getMax(n.width, Qe.width, l.width + 2 * Qe.noteMargin), u.startx = s + (n.width - u.width) / 2) : (u.width = Math.abs(s + n.width / 2 - (a + i.width / 2)) + Qe.actorMargin, u.startx = s < a ? s + n.width / 2 - Qe.actorMargin / 2 : a + i.width / 2 - Qe.actorMargin / 2), o && (u.message = mr.wrapLabel( t.message, u.width - 2 * Qe.wrapPadding, pg(Qe) )), H.debug( `NM:[${u.startx},${u.stopx},${u.starty},${u.stopy}:${u.width},${u.height}=${t.message}]` ), u; -}, "buildNoteModel"), zjt = /* @__PURE__ */ x(function(t, e, r) { +}, "buildNoteModel"), Ujt = /* @__PURE__ */ x(function(t, e, r) { if (![ r.db.LINETYPE.SOLID_OPEN, r.db.LINETYPE.DOTTED_OPEN, @@ -92403,12 +92439,12 @@ var Fjt = /* @__PURE__ */ x(async function(t, e, r) { t.type ) && (l -= f(3))); const d = [n, i, s, a], p = Math.abs(l - u); - t.wrap && t.message && (t.message = gr.wrapLabel( + t.wrap && t.message && (t.message = mr.wrapLabel( t.message, mt.getMax(p + 2 * Qe.wrapPadding, Qe.width), sp(Qe) )); - const g = gr.calculateTextDimensions(t.message, sp(Qe)); + const g = mr.calculateTextDimensions(t.message, sp(Qe)); return { width: mt.getMax( t.wrap ? 0 : g.width + 2 * Qe.wrapPadding, @@ -92426,11 +92462,11 @@ var Fjt = /* @__PURE__ */ x(async function(t, e, r) { fromBounds: Math.min.apply(null, d), toBounds: Math.max.apply(null, d) }; -}, "buildMessageModel"), Qjt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "buildMessageModel"), Vjt = /* @__PURE__ */ x(async function(t, e, r, n) { const i = {}, s = []; let a, o, l; for (const u of t) { - switch (u.id = gr.random({ length: 10 }), u.type) { + switch (u.id = mr.random({ length: 10 }), u.type) { case n.db.LINETYPE.LOOP_START: case n.db.LINETYPE.ALT_START: case n.db.LINETYPE.OPT_START: @@ -92477,9 +92513,9 @@ var Fjt = /* @__PURE__ */ x(async function(t, e, r) { } break; } - u.placement !== void 0 ? (o = await Fjt(u, e, n), u.noteModel = o, s.forEach((f) => { + u.placement !== void 0 ? (o = await Qjt(u, e, n), u.noteModel = o, s.forEach((f) => { a = f, a.from = mt.getMin(a.from, o.startx), a.to = mt.getMax(a.to, o.startx + o.width), a.width = mt.getMax(a.width, Math.abs(a.from - a.to)) - Qe.labelBoxWidth; - })) : (l = zjt(u, e, n), u.msgModel = l, l.startx && l.stopx && s.length > 0 && s.forEach((f) => { + })) : (l = Ujt(u, e, n), u.msgModel = l, l.startx && l.stopx && s.length > 0 && s.forEach((f) => { if (a = f, l.startx === l.stopx) { const d = e.get(u.from), p = e.get(u.to); a.from = mt.getMin( @@ -92496,24 +92532,24 @@ var Fjt = /* @__PURE__ */ x(async function(t, e, r) { })); } return dt.activations = [], H.debug("Loop type widths:", i), i; -}, "calculateLoopBounds"), Ujt = { +}, "calculateLoopBounds"), qjt = { bounds: dt, drawActors: tM, - drawActorsPopup: c1e, - setConf: u1e, - draw: $jt -}, Vjt = { - parser: qZt, + drawActorsPopup: u1e, + setConf: h1e, + draw: Fjt +}, Yjt = { + parser: WZt, db: TH, - renderer: Ujt, - styles: pjt, + renderer: qjt, + styles: mjt, init: /* @__PURE__ */ x(({ wrap: t }) => { TH.setWrap(t); }, "init") }; -const qjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Wjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Vjt + diagram: Yjt }, Symbol.toStringTag, { value: "Module" })); var rM = function() { var t = /* @__PURE__ */ x(function(Ge, Ie, de, X) { @@ -93179,7 +93215,7 @@ Expecting ` + At.join(", ") + ", got '" + (this.terminals_[bt] || bt) + "'" : ft return x(nt, "Parser"), nt.prototype = Pe, Pe.Parser = nt, new nt(); }(); rM.parser = rM; -var p1e = rM, _H = ["#", "+", "~", "-", ""], Rx, AH = (Rx = class { +var g1e = rM, _H = ["#", "+", "~", "-", ""], Rx, AH = (Rx = class { constructor(e, r) { this.memberType = r, this.visibility = "", this.classifier = ""; const n = yi(e, ke()); @@ -93234,7 +93270,7 @@ var p1e = rM, _H = ["#", "+", "~", "-", ""], Rx, AH = (Rx = class { n = ap(i[0]), r = ap(i[1]); } return { className: n, type: r }; -}, "splitClassNameAndType"), Yjt = /* @__PURE__ */ x(function(t, e) { +}, "splitClassNameAndType"), Gjt = /* @__PURE__ */ x(function(t, e) { const r = mt.sanitizeText(t, ke()); e && (e = ap(e)); const { className: n } = op(r); @@ -93255,43 +93291,43 @@ var p1e = rM, _H = ["#", "+", "~", "-", ""], Rx, AH = (Rx = class { styles: [], domId: NE + i + "-" + LH }), LH++; -}, "addClass"), g1e = /* @__PURE__ */ x(function(t) { +}, "addClass"), m1e = /* @__PURE__ */ x(function(t) { const e = mt.sanitizeText(t, ke()); if (Zi.has(e)) return Zi.get(e).domId; throw new Error("Class not found: " + e); -}, "lookUpDomId"), Wjt = /* @__PURE__ */ x(function() { - L$ = [], Zi = /* @__PURE__ */ new Map(), XS = [], Lb = [], Lb.push(v1e), Ch = /* @__PURE__ */ new Map(), nM = 0, M$ = "TB", cs(); -}, "clear"), Gjt = /* @__PURE__ */ x(function(t) { +}, "lookUpDomId"), Xjt = /* @__PURE__ */ x(function() { + L$ = [], Zi = /* @__PURE__ */ new Map(), XS = [], Lb = [], Lb.push(y1e), Ch = /* @__PURE__ */ new Map(), nM = 0, M$ = "TB", cs(); +}, "clear"), Hjt = /* @__PURE__ */ x(function(t) { return Zi.get(t); -}, "getClass"), Xjt = /* @__PURE__ */ x(function() { +}, "getClass"), Zjt = /* @__PURE__ */ x(function() { return Zi; -}, "getClasses"), Hjt = /* @__PURE__ */ x(function() { +}, "getClasses"), jjt = /* @__PURE__ */ x(function() { return L$; -}, "getRelations"), Zjt = /* @__PURE__ */ x(function() { +}, "getRelations"), Kjt = /* @__PURE__ */ x(function() { return XS; -}, "getNotes"), jjt = /* @__PURE__ */ x(function(t) { +}, "getNotes"), Jjt = /* @__PURE__ */ x(function(t) { H.debug("Adding relation: " + JSON.stringify(t)), HS(t.id1), HS(t.id2), t.id1 = op(t.id1).className, t.id2 = op(t.id2).className, t.relationTitle1 = mt.sanitizeText(t.relationTitle1.trim(), ke()), t.relationTitle2 = mt.sanitizeText(t.relationTitle2.trim(), ke()), L$.push(t); -}, "addRelation"), Kjt = /* @__PURE__ */ x(function(t, e) { +}, "addRelation"), eKt = /* @__PURE__ */ x(function(t, e) { const r = op(t).className; Zi.get(r).annotations.push(e); -}, "addAnnotation"), m1e = /* @__PURE__ */ x(function(t, e) { +}, "addAnnotation"), v1e = /* @__PURE__ */ x(function(t, e) { HS(t); const r = op(t).className, n = Zi.get(r); if (typeof e == "string") { const i = e.trim(); i.startsWith("<<") && i.endsWith(">>") ? n.annotations.push(ap(i.substring(2, i.length - 2))) : i.indexOf(")") > 0 ? n.methods.push(new AH(i, "method")) : i && n.members.push(new AH(i, "attribute")); } -}, "addMember"), Jjt = /* @__PURE__ */ x(function(t, e) { - Array.isArray(e) && (e.reverse(), e.forEach((r) => m1e(t, r))); -}, "addMembers"), eKt = /* @__PURE__ */ x(function(t, e) { +}, "addMember"), tKt = /* @__PURE__ */ x(function(t, e) { + Array.isArray(e) && (e.reverse(), e.forEach((r) => v1e(t, r))); +}, "addMembers"), rKt = /* @__PURE__ */ x(function(t, e) { const r = { id: `note${XS.length}`, class: e, text: t }; XS.push(r); -}, "addNote"), tKt = /* @__PURE__ */ x(function(t) { +}, "addNote"), nKt = /* @__PURE__ */ x(function(t) { return t.startsWith(":") && (t = t.substring(1)), ap(t.trim()); }, "cleanupLabel"), R$ = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { @@ -93300,31 +93336,31 @@ var p1e = rM, _H = ["#", "+", "~", "-", ""], Rx, AH = (Rx = class { const i = Zi.get(n); i && i.cssClasses.push(e); }); -}, "setCssClass"), rKt = /* @__PURE__ */ x(function(t, e) { +}, "setCssClass"), iKt = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { e !== void 0 && (Zi.get(r).tooltip = ap(e)); }); -}, "setTooltip"), nKt = /* @__PURE__ */ x(function(t, e) { +}, "setTooltip"), sKt = /* @__PURE__ */ x(function(t, e) { return e && Ch.has(e) ? Ch.get(e).classes.get(t).tooltip : Zi.get(t).tooltip; -}, "getTooltip"), iKt = /* @__PURE__ */ x(function(t, e, r) { +}, "getTooltip"), aKt = /* @__PURE__ */ x(function(t, e, r) { const n = ke(); t.split(",").forEach(function(i) { let s = i; /\d/.exec(i[0]) && (s = NE + s); const a = Zi.get(s); - a && (a.link = gr.formatUrl(e, n), n.securityLevel === "sandbox" ? a.linkTarget = "_top" : typeof r == "string" ? a.linkTarget = ap(r) : a.linkTarget = "_blank"); + a && (a.link = mr.formatUrl(e, n), n.securityLevel === "sandbox" ? a.linkTarget = "_top" : typeof r == "string" ? a.linkTarget = ap(r) : a.linkTarget = "_blank"); }), R$(t, "clickable"); -}, "setLink"), sKt = /* @__PURE__ */ x(function(t, e, r) { +}, "setLink"), oKt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - aKt(n, e, r), Zi.get(n).haveCallback = !0; + lKt(n, e, r), Zi.get(n).haveCallback = !0; }), R$(t, "clickable"); -}, "setClickEvent"), aKt = /* @__PURE__ */ x(function(t, e, r) { +}, "setClickEvent"), lKt = /* @__PURE__ */ x(function(t, e, r) { const n = mt.sanitizeText(t, ke()); if (ke().securityLevel !== "loose" || e === void 0) return; const s = n; if (Zi.has(s)) { - const a = g1e(s); + const a = m1e(s); let o = []; if (typeof r == "string") { o = r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/); @@ -93338,26 +93374,26 @@ var p1e = rM, _H = ["#", "+", "~", "-", ""], Rx, AH = (Rx = class { l !== null && l.addEventListener( "click", function() { - gr.runFunc(e, ...o); + mr.runFunc(e, ...o); }, !1 ); }); } -}, "setClickFunc"), oKt = /* @__PURE__ */ x(function(t) { +}, "setClickFunc"), cKt = /* @__PURE__ */ x(function(t) { Lb.forEach(function(e) { e(t); }); -}, "bindFunctions"), lKt = { +}, "bindFunctions"), uKt = { LINE: 0, DOTTED_LINE: 1 -}, cKt = { +}, hKt = { AGGREGATION: 0, EXTENSION: 1, COMPOSITION: 2, DEPENDENCY: 3, LOLLIPOP: 4 -}, v1e = /* @__PURE__ */ x(function(t) { +}, y1e = /* @__PURE__ */ x(function(t) { let e = ht(".mermaidTooltip"); (e._groups || e)[0][0] === null && (e = ht("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), ht(t).select("svg").selectAll("g.node").on("mouseover", function() { const i = ht(this); @@ -93369,27 +93405,27 @@ var p1e = rM, _H = ["#", "+", "~", "-", ""], Rx, AH = (Rx = class { e.transition().duration(500).style("opacity", 0), ht(this).classed("hover", !1); }); }, "setupToolTips"); -Lb.push(v1e); -var M$ = "TB", uKt = /* @__PURE__ */ x(() => M$, "getDirection"), hKt = /* @__PURE__ */ x((t) => { +Lb.push(y1e); +var M$ = "TB", fKt = /* @__PURE__ */ x(() => M$, "getDirection"), dKt = /* @__PURE__ */ x((t) => { M$ = t; -}, "setDirection"), fKt = /* @__PURE__ */ x(function(t) { +}, "setDirection"), pKt = /* @__PURE__ */ x(function(t) { Ch.has(t) || (Ch.set(t, { id: t, classes: /* @__PURE__ */ new Map(), children: {}, domId: NE + t + "-" + nM }), nM++); -}, "addNamespace"), dKt = /* @__PURE__ */ x(function(t) { +}, "addNamespace"), gKt = /* @__PURE__ */ x(function(t) { return Ch.get(t); -}, "getNamespace"), pKt = /* @__PURE__ */ x(function() { +}, "getNamespace"), mKt = /* @__PURE__ */ x(function() { return Ch; -}, "getNamespaces"), gKt = /* @__PURE__ */ x(function(t, e) { +}, "getNamespaces"), vKt = /* @__PURE__ */ x(function(t, e) { if (!!Ch.has(t)) for (const r of e) { const { className: n } = op(r); Zi.get(n).parent = t, Ch.get(t).classes.set(n, Zi.get(n)); } -}, "addClassesToNamespace"), mKt = /* @__PURE__ */ x(function(t, e) { +}, "addClassesToNamespace"), yKt = /* @__PURE__ */ x(function(t, e) { const r = Zi.get(t); if (!(!e || !r)) for (const n of e) @@ -93401,37 +93437,37 @@ var M$ = "TB", uKt = /* @__PURE__ */ x(() => M$, "getDirection"), hKt = /* @__PU setAccDescription: Ns, getConfig: /* @__PURE__ */ x(() => ke().class, "getConfig"), addClass: HS, - bindFunctions: oKt, - clear: Wjt, - getClass: Gjt, - getClasses: Xjt, - getNotes: Zjt, - addAnnotation: Kjt, - addNote: eKt, - getRelations: Hjt, - addRelation: jjt, - getDirection: uKt, - setDirection: hKt, - addMember: m1e, - addMembers: Jjt, - cleanupLabel: tKt, - lineType: lKt, - relationType: cKt, - setClickEvent: sKt, + bindFunctions: cKt, + clear: Xjt, + getClass: Hjt, + getClasses: Zjt, + getNotes: Kjt, + addAnnotation: eKt, + addNote: rKt, + getRelations: jjt, + addRelation: Jjt, + getDirection: fKt, + setDirection: dKt, + addMember: v1e, + addMembers: tKt, + cleanupLabel: nKt, + lineType: uKt, + relationType: hKt, + setClickEvent: oKt, setCssClass: R$, - setLink: iKt, - getTooltip: nKt, - setTooltip: rKt, - lookUpDomId: g1e, + setLink: aKt, + getTooltip: sKt, + setTooltip: iKt, + lookUpDomId: m1e, setDiagramTitle: Na, getDiagramTitle: $s, - setClassLabel: Yjt, - addNamespace: fKt, - addClassesToNamespace: gKt, - getNamespace: dKt, - getNamespaces: pKt, - setCssStyle: mKt -}, vKt = /* @__PURE__ */ x((t) => `g.classGroup text { + setClassLabel: Gjt, + addNamespace: pKt, + addClassesToNamespace: vKt, + getNamespace: gKt, + getNamespaces: mKt, + setCssStyle: yKt +}, bKt = /* @__PURE__ */ x((t) => `g.classGroup text { fill: ${t.nodeBorder || t.classText}; stroke: none; font-family: ${t.fontFamily}; @@ -93585,7 +93621,7 @@ g.classGroup line { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), y1e = vKt, RH = 0, yKt = /* @__PURE__ */ x(function(t, e, r, n, i) { +`, "getStyles"), b1e = bKt, RH = 0, xKt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = /* @__PURE__ */ x(function(b) { switch (b) { case i.db.relationType.AGGREGATION: @@ -93601,7 +93637,7 @@ g.classGroup line { } }, "getRelationType"); e.points = e.points.filter((b) => !Number.isNaN(b.y)); - const a = e.points, o = Wf().x(function(b) { + const a = e.points, o = Gf().x(function(b) { return b.x; }).y(function(b) { return b.y; @@ -93616,15 +93652,15 @@ g.classGroup line { ); let h, f; const d = e.points.length; - let p = gr.calcLabelPosition(e.points); + let p = mr.calcLabelPosition(e.points); h = p.x, f = p.y; let g, m, v, y; if (d % 2 !== 0 && d > 1) { - let b = gr.calcCardinalityPosition( + let b = mr.calcCardinalityPosition( r.relation.type1 !== "none", e.points, e.points[0] - ), w = gr.calcCardinalityPosition( + ), w = mr.calcCardinalityPosition( r.relation.type2 !== "none", e.points, e.points[d - 1] @@ -93638,7 +93674,7 @@ g.classGroup line { b.insert("rect", ":first-child").attr("class", "box").attr("x", O.x - n.padding / 2).attr("y", O.y - n.padding / 2).attr("width", O.width + n.padding).attr("height", O.height + n.padding); } H.info("Rendering relation " + JSON.stringify(r)), r.relationTitle1 !== void 0 && r.relationTitle1 !== "none" && t.append("g").attr("class", "cardinality").append("text").attr("class", "type1").attr("x", g).attr("y", m).attr("fill", "black").attr("font-size", "6").text(r.relationTitle1), r.relationTitle2 !== void 0 && r.relationTitle2 !== "none" && t.append("g").attr("class", "cardinality").append("text").attr("class", "type2").attr("x", v).attr("y", y).attr("fill", "black").attr("font-size", "6").text(r.relationTitle2), RH++; -}, "drawEdge"), bKt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawEdge"), wKt = /* @__PURE__ */ x(function(t, e, r, n) { H.debug("Rendering class ", e, r); const i = e.id, s = { id: i, @@ -93653,7 +93689,7 @@ g.classGroup line { const O = o.append("tspan").text("\xAB" + w + "\xBB"); l || O.attr("dy", r.textHeight), l = !1; }); - let u = b1e(e); + let u = x1e(e); const h = o.append("tspan").text(u).attr("class", "title"); l || h.attr("dy", r.textHeight); const f = o.node().getBBox().height; @@ -93679,10 +93715,10 @@ g.classGroup line { return o.node().childNodes.forEach(function(w) { w.setAttribute("x", (b - w.getBBox().width) / 2); }), e.tooltip && o.insert("title").text(e.tooltip), d && d.attr("x2", b), g && g.attr("x2", b), s.width = b, s.height = m.height + r.padding + 0.5 * r.dividerMargin, s; -}, "drawClass"), b1e = /* @__PURE__ */ x(function(t) { +}, "drawClass"), x1e = /* @__PURE__ */ x(function(t) { let e = t.id; return t.type && (e += "<" + Xy(t.type) + ">"), e; -}, "getClassTitleString"), xKt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getClassTitleString"), OKt = /* @__PURE__ */ x(function(t, e, r, n) { H.debug("Rendering note ", e, r); const i = e.id, s = { id: i, @@ -93707,24 +93743,24 @@ g.classGroup line { const { displayText: i, cssStyle: s } = e.getDisplayDetails(), a = t.append("tspan").attr("x", n.padding).text(i); s !== "" && a.attr("style", e.cssStyle), r || a.attr("dy", n.textHeight); }, "addTspan"), r7 = { - getClassTitleString: b1e, - drawClass: bKt, - drawEdge: yKt, - drawNote: xKt + getClassTitleString: x1e, + drawClass: wKt, + drawEdge: xKt, + drawNote: OKt }, Z5 = {}, E4 = 20, Gv = /* @__PURE__ */ x(function(t) { const e = Object.entries(Z5).find((r) => r[1].label === t); if (e) return e[0]; -}, "getGraphId"), wKt = /* @__PURE__ */ x(function(t) { +}, "getGraphId"), kKt = /* @__PURE__ */ x(function(t) { t.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"), t.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"), t.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"), t.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"), t.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"), t.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"), t.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"), t.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"); -}, "insertMarkers"), OKt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "insertMarkers"), SKt = /* @__PURE__ */ x(function(t, e, r, n) { const i = ke().class; Z5 = {}, H.info("Rendering diagram " + t); const s = ke().securityLevel; let a; s === "sandbox" && (a = ht("#i" + e)); const o = ht(s === "sandbox" ? a.nodes()[0].contentDocument.body : "body"), l = o.select(`[id='${e}']`); - wKt(l); + kKt(l); const u = new Ji({ multigraph: !0 }); @@ -93780,56 +93816,56 @@ g.classGroup line { Ds(l, v, m, i.useMaxWidth); const y = `${g.x - E4} ${g.y - E4} ${m} ${v}`; H.debug(`viewBox ${y}`), l.attr("viewBox", y); -}, "draw"), kKt = { - draw: OKt -}, SKt = { - parser: p1e, +}, "draw"), TKt = { + draw: SKt +}, CKt = { + parser: g1e, db: ZS, - renderer: kKt, - styles: y1e, + renderer: TKt, + styles: b1e, init: /* @__PURE__ */ x((t) => { t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, ZS.clear(); }, "init") }; -const TKt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const EKt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: SKt + diagram: CKt }, Symbol.toStringTag, { value: "Module" })); -var CKt = /* @__PURE__ */ x((t, e, r, n) => { +var _Kt = /* @__PURE__ */ x((t, e, r, n) => { e.forEach((i) => { - IKt[i](t, r, n); + BKt[i](t, r, n); }); -}, "insertMarkers"), EKt = /* @__PURE__ */ x((t, e, r) => { +}, "insertMarkers"), AKt = /* @__PURE__ */ x((t, e, r) => { H.trace("Making markers for ", r), t.append("defs").append("marker").attr("id", r + "_" + e + "-extensionStart").attr("class", "marker extension " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-extensionEnd").attr("class", "marker extension " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"); -}, "extension"), _Kt = /* @__PURE__ */ x((t, e, r) => { +}, "extension"), LKt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-compositionStart").attr("class", "marker composition " + e).attr("refX", 18).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"), t.append("defs").append("marker").attr("id", r + "_" + e + "-compositionEnd").attr("class", "marker composition " + e).attr("refX", 1).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"); -}, "composition"), AKt = /* @__PURE__ */ x((t, e, r) => { +}, "composition"), RKt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-aggregationStart").attr("class", "marker aggregation " + e).attr("refX", 18).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"), t.append("defs").append("marker").attr("id", r + "_" + e + "-aggregationEnd").attr("class", "marker aggregation " + e).attr("refX", 1).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"), LKt = /* @__PURE__ */ x((t, e, r) => { +}, "aggregation"), MKt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-dependencyStart").attr("class", "marker dependency " + e).attr("refX", 6).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"), t.append("defs").append("marker").attr("id", r + "_" + e + "-dependencyEnd").attr("class", "marker dependency " + e).attr("refX", 13).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"); -}, "dependency"), RKt = /* @__PURE__ */ x((t, e, r) => { +}, "dependency"), DKt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-lollipopStart").attr("class", "marker lollipop " + e).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), t.append("defs").append("marker").attr("id", r + "_" + e + "-lollipopEnd").attr("class", "marker lollipop " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6); -}, "lollipop"), MKt = /* @__PURE__ */ x((t, e, r) => { +}, "lollipop"), PKt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-pointEnd").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 6).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"), t.append("marker").attr("id", r + "_" + e + "-pointStart").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 4.5).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"); -}, "point"), DKt = /* @__PURE__ */ x((t, e, r) => { +}, "point"), NKt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-circleEnd").attr("class", "marker " + e).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"), t.append("marker").attr("id", r + "_" + e + "-circleStart").attr("class", "marker " + e).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"); -}, "circle"), PKt = /* @__PURE__ */ x((t, e, r) => { +}, "circle"), IKt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-crossEnd").attr("class", "marker cross " + e).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"), t.append("marker").attr("id", r + "_" + e + "-crossStart").attr("class", "marker cross " + e).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"); -}, "cross"), NKt = /* @__PURE__ */ x((t, e, r) => { +}, "cross"), $Kt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-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"); -}, "barb"), IKt = { - extension: EKt, - composition: _Kt, - aggregation: AKt, - dependency: LKt, - lollipop: RKt, - point: MKt, - circle: DKt, - cross: PKt, - barb: NKt -}, x1e = CKt, $Kt = /* @__PURE__ */ x((t, e, r, n, i) => { +}, "barb"), BKt = { + extension: AKt, + composition: LKt, + aggregation: RKt, + dependency: MKt, + lollipop: DKt, + point: PKt, + circle: NKt, + cross: IKt, + barb: $Kt +}, w1e = _Kt, FKt = /* @__PURE__ */ x((t, e, r, n, i) => { e.arrowTypeStart && DH(t, "start", e.arrowTypeStart, r, n, i), e.arrowTypeEnd && DH(t, "end", e.arrowTypeEnd, r, n, i); -}, "addEdgeMarkers"), BKt = { +}, "addEdgeMarkers"), zKt = { arrow_cross: "cross", arrow_point: "point", arrow_barb: "barb", @@ -93840,16 +93876,16 @@ var CKt = /* @__PURE__ */ x((t, e, r, n) => { dependency: "dependency", lollipop: "lollipop" }, DH = /* @__PURE__ */ x((t, e, r, n, i, s) => { - const a = BKt[r]; + const a = zKt[r]; if (!a) { H.warn(`Unknown arrow type: ${r}`); return; } const o = e === "start" ? "Start" : "End"; t.attr(`marker-${e}`, `url(${n}#${i}_${s}-${a}${o})`); -}, "addEdgeMarker"), jS = {}, vs = {}, FKt = /* @__PURE__ */ x(() => { +}, "addEdgeMarker"), jS = {}, vs = {}, QKt = /* @__PURE__ */ x(() => { jS = {}, vs = {}; -}, "clear"), w1e = /* @__PURE__ */ x((t, e) => { +}, "clear"), O1e = /* @__PURE__ */ x((t, e) => { const r = ke(), n = Pn(r.flowchart.htmlLabels), i = e.labelType === "markdown" ? ku( t, e.label, @@ -93898,7 +93934,7 @@ function Oy(t, e) { ke().flowchart.htmlLabels && t && (t.style.width = e.length * 9 + "px", t.style.height = "12px"); } x(Oy, "setTerminalWidth"); -var O1e = /* @__PURE__ */ x((t, e) => { +var k1e = /* @__PURE__ */ x((t, e) => { H.debug("Moving label abc88 ", t.id, t.label, jS[t.id], e); let r = e.updatedPath ? e.updatedPath : e.originalPath; const n = ke(), { subGraphTitleTotalMargin: i } = Op(n); @@ -93906,7 +93942,7 @@ var O1e = /* @__PURE__ */ x((t, e) => { const s = jS[t.id]; let a = t.x, o = t.y; if (r) { - const l = gr.calcLabelPosition(r); + const l = mr.calcLabelPosition(r); H.debug( "Moving label " + t.label + " from (", a, @@ -93925,7 +93961,7 @@ var O1e = /* @__PURE__ */ x((t, e) => { const s = vs[t.id].startLeft; let a = t.x, o = t.y; if (r) { - const l = gr.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_left", r); + const l = mr.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_left", r); a = l.x, o = l.y; } s.attr("transform", `translate(${a}, ${o})`); @@ -93934,7 +93970,7 @@ var O1e = /* @__PURE__ */ x((t, e) => { const s = vs[t.id].startRight; let a = t.x, o = t.y; if (r) { - const l = gr.calcTerminalLabelPosition( + const l = mr.calcTerminalLabelPosition( t.arrowTypeStart ? 10 : 0, "start_right", r @@ -93947,7 +93983,7 @@ var O1e = /* @__PURE__ */ x((t, e) => { const s = vs[t.id].endLeft; let a = t.x, o = t.y; if (r) { - const l = gr.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_left", r); + const l = mr.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_left", r); a = l.x, o = l.y; } s.attr("transform", `translate(${a}, ${o})`); @@ -93956,15 +93992,15 @@ var O1e = /* @__PURE__ */ x((t, e) => { const s = vs[t.id].endRight; let a = t.x, o = t.y; if (r) { - const l = gr.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_right", r); + const l = mr.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_right", r); a = l.x, o = l.y; } s.attr("transform", `translate(${a}, ${o})`); } -}, "positionEdgeLabel"), zKt = /* @__PURE__ */ x((t, e) => { +}, "positionEdgeLabel"), UKt = /* @__PURE__ */ x((t, e) => { const r = t.x, n = t.y, i = Math.abs(e.x - r), s = Math.abs(e.y - n), a = t.width / 2, o = t.height / 2; return i >= a || s >= o; -}, "outsideNode"), QKt = /* @__PURE__ */ x((t, e, r) => { +}, "outsideNode"), VKt = /* @__PURE__ */ x((t, e, r) => { H.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(e)} insidePoint : ${JSON.stringify(r)} @@ -93989,8 +94025,8 @@ var O1e = /* @__PURE__ */ x((t, e) => { H.debug("abc88 cutPathAtIntersect", t, e); let r = [], n = t[0], i = !1; return t.forEach((s) => { - if (!zKt(e, s) && !i) { - const a = QKt(e, n, s); + if (!UKt(e, s) && !i) { + const a = VKt(e, n, s); let o = !1; r.forEach((l) => { o = o || l.x === a.x && l.y === a.y; @@ -93998,7 +94034,7 @@ var O1e = /* @__PURE__ */ x((t, e) => { } else n = s, i || r.push(s); }), r; -}, "cutPathAtIntersect"), k1e = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "cutPathAtIntersect"), S1e = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { let o = r.points; H.debug("abc88 InsertEdge: edge=", r, "e=", e); let l = !1; @@ -94008,7 +94044,7 @@ var O1e = /* @__PURE__ */ x((t, e) => { const f = o.filter((O) => !Number.isNaN(O.y)); let d = N1; r.curve && (i === "graph" || i === "flowchart") && (d = r.curve); - const { x: p, y: g } = gae(r), m = Wf().x(p).y(g).curve(d); + const { x: p, y: g } = gae(r), m = Gf().x(p).y(g).curve(d); let v; switch (r.thickness) { case "normal": @@ -94036,12 +94072,12 @@ var O1e = /* @__PURE__ */ x((t, e) => { } const y = t.append("path").attr("d", m(f)).attr("id", r.id).attr("class", " " + v + (r.classes ? " " + r.classes : "")).attr("style", r.style); let b = ""; - (ke().flowchart.arrowMarkerAbsolute || ke().state.arrowMarkerAbsolute) && (b = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, b = b.replace(/\(/g, "\\("), b = b.replace(/\)/g, "\\)")), $Kt(y, r, b, a, i); + (ke().flowchart.arrowMarkerAbsolute || ke().state.arrowMarkerAbsolute) && (b = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, b = b.replace(/\(/g, "\\("), b = b.replace(/\)/g, "\\)")), FKt(y, r, b, a, i); let w = {}; return l && (w.updatedPath = o), w.originalPath = r.points, w; -}, "insertEdge"), kr = {}, Ql = {}, S1e = {}, UKt = /* @__PURE__ */ x(() => { - Ql = {}, S1e = {}, kr = {}; -}, "clear"), KS = /* @__PURE__ */ x((t, e) => (H.trace("In isDescendant", e, " ", t, " = ", Ql[e].includes(t)), !!Ql[e].includes(t)), "isDescendant"), VKt = /* @__PURE__ */ x((t, e) => (H.info("Descendants of ", e, " is ", Ql[e]), H.info("Edge is ", t), t.v === e || t.w === e ? !1 : Ql[e] ? Ql[e].includes(t.v) || KS(t.v, e) || KS(t.w, e) || Ql[e].includes(t.w) : (H.debug("Tilt, ", e, ",not in descendants"), !1)), "edgeInCluster"), T1e = /* @__PURE__ */ x((t, e, r, n) => { +}, "insertEdge"), kr = {}, Ql = {}, T1e = {}, qKt = /* @__PURE__ */ x(() => { + Ql = {}, T1e = {}, kr = {}; +}, "clear"), KS = /* @__PURE__ */ x((t, e) => (H.trace("In isDescendant", e, " ", t, " = ", Ql[e].includes(t)), !!Ql[e].includes(t)), "isDescendant"), YKt = /* @__PURE__ */ x((t, e) => (H.info("Descendants of ", e, " is ", Ql[e]), H.info("Edge is ", t), t.v === e || t.w === e ? !1 : Ql[e] ? Ql[e].includes(t.v) || KS(t.v, e) || KS(t.w, e) || Ql[e].includes(t.w) : (H.debug("Tilt, ", e, ",not in descendants"), !1)), "edgeInCluster"), C1e = /* @__PURE__ */ x((t, e, r, n) => { H.warn( "Copying children of ", t, @@ -94054,7 +94090,7 @@ var O1e = /* @__PURE__ */ x((t, e) => { const i = e.children(t) || []; t !== n && i.push(t), H.warn("Copying (nodes) clusterId", t, "nodes", i), i.forEach((s) => { if (e.children(s).length > 0) - T1e(s, e, r, n); + C1e(s, e, r, n); else { const a = e.node(s); H.info("cp ", s, " to ", n, " with parent ", t), r.setNode(s, a), n !== e.parent(s) && (H.warn("Setting parent", s, e.parent(s)), r.setParent(s, e.parent(s))), t !== n && s !== t ? (H.debug("Setting parent", s, t), r.setParent(s, t)) : (H.info("In copy ", t, "root", n, "data", e.node(t), n), H.debug( @@ -94071,7 +94107,7 @@ var O1e = /* @__PURE__ */ x((t, e) => { const u = e.edge(l.v, l.w, l.name); H.info("Edge data", u, n); try { - VKt(l, n) ? (H.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), H.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : H.info( + YKt(l, n) ? (H.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), H.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : H.info( "Skipping copy of edge ", l.v, "-->", @@ -94088,11 +94124,11 @@ var O1e = /* @__PURE__ */ x((t, e) => { } H.debug("Removing node", s), e.removeNode(s); }); -}, "copy"), C1e = /* @__PURE__ */ x((t, e) => { +}, "copy"), E1e = /* @__PURE__ */ x((t, e) => { const r = e.children(t); let n = [...r]; for (const i of r) - S1e[i] = t, n = [...n, ...C1e(i, e)]; + T1e[i] = t, n = [...n, ...E1e(i, e)]; return n; }, "extractDescendants"), Rb = /* @__PURE__ */ x((t, e) => { H.trace("Searching", t); @@ -94104,7 +94140,7 @@ var O1e = /* @__PURE__ */ x((t, e) => { if (i) return H.trace("Found replacement for", t, " => ", i), i; } -}, "findNonClusterChild"), _4 = /* @__PURE__ */ x((t) => !kr[t] || !kr[t].externalConnections ? t : kr[t] ? kr[t].id : t, "getAnchorId"), qKt = /* @__PURE__ */ x((t, e) => { +}, "findNonClusterChild"), _4 = /* @__PURE__ */ x((t) => !kr[t] || !kr[t].externalConnections ? t : kr[t] ? kr[t].id : t, "getAnchorId"), WKt = /* @__PURE__ */ x((t, e) => { if (!t || e > 10) { H.debug("Opting out, no graph "); return; @@ -94116,7 +94152,7 @@ var O1e = /* @__PURE__ */ x((t, e) => { r, " Replacement id in edges: ", Rb(r, t) - ), Ql[r] = C1e(r, t), kr[r] = { id: Rb(r, t), clusterData: t.node(r) }); + ), Ql[r] = E1e(r, t), kr[r] = { id: Rb(r, t), clusterData: t.node(r) }); }), t.nodes().forEach(function(r) { const n = t.children(r), i = t.edges(); n.length > 0 ? (H.debug("Cluster identified", r, Ql), i.forEach((s) => { @@ -94169,8 +94205,8 @@ var O1e = /* @__PURE__ */ x((t, e) => { } H.warn("Fix Replacing with XXX", i, s, r.name), t.setEdge(i, s, n, r.name); } - }), H.warn("Adjusted Graph", _i(t)), E1e(t, 0), H.trace(kr); -}, "adjustClustersAndEdges"), E1e = /* @__PURE__ */ x((t, e) => { + }), H.warn("Adjusted Graph", _i(t)), _1e(t, 0), H.trace(kr); +}, "adjustClustersAndEdges"), _1e = /* @__PURE__ */ x((t, e) => { var i, s; if (H.warn("extractor - ", e, _i(t), t.children("D")), e > 10) { H.error("Bailing out"); @@ -94219,7 +94255,7 @@ var O1e = /* @__PURE__ */ x((t, e) => { }).setDefaultEdgeLabel(function() { return {}; }); - H.warn("Old graph before copy", _i(t)), T1e(a, t, u, a), t.setNode(a, { + H.warn("Old graph before copy", _i(t)), C1e(a, t, u, a), t.setNode(a, { clusterNode: !0, id: a, clusterData: kr[a].clusterData, @@ -94242,17 +94278,17 @@ var O1e = /* @__PURE__ */ x((t, e) => { r = t.nodes(), H.warn("New list of nodes", r); for (const a of r) { const o = t.node(a); - H.warn(" Now next level", a, o), o.clusterNode && E1e(o.graph, e + 1); + H.warn(" Now next level", a, o), o.clusterNode && _1e(o.graph, e + 1); } -}, "extractor"), _1e = /* @__PURE__ */ x((t, e) => { +}, "extractor"), A1e = /* @__PURE__ */ x((t, e) => { if (e.length === 0) return []; let r = Object.assign(e); return e.forEach((n) => { - const i = t.children(n), s = _1e(t, i); + const i = t.children(n), s = A1e(t, i); r = [...r, ...s]; }), r; -}, "sorter"), YKt = /* @__PURE__ */ x((t) => _1e(t, t.children()), "sortNodesByHierarchy"), WKt = /* @__PURE__ */ x((t, e) => { +}, "sorter"), GKt = /* @__PURE__ */ x((t) => A1e(t, t.children()), "sortNodesByHierarchy"), XKt = /* @__PURE__ */ x((t, e) => { H.info("Creating subgraph rect for ", e.id, e); const r = ke(), n = t.insert("g").attr("class", "cluster" + (e.class ? " " + e.class : "")).attr("id", e.id), i = n.insert("rect", ":first-child"), s = Pn(r.flowchart.htmlLabels), a = n.insert("g").attr("class", "cluster-label"), o = e.labelType === "markdown" ? ku(a, e.labelText, { style: e.labelStyle, useHtmlLabels: s }, r) : a.node().appendChild(ja(e.labelText, e.labelStyle, void 0, !0)); let l = o.getBBox(); @@ -94274,14 +94310,14 @@ var O1e = /* @__PURE__ */ x((t, e) => { return e.width = p.width, e.height = p.height, e.intersect = function(g) { return kw(e, g); }, n; -}, "rect"), GKt = /* @__PURE__ */ x((t, e) => { +}, "rect"), HKt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "note-cluster").attr("id", e.id), n = r.insert("rect", ":first-child"), i = 0 * e.padding, s = i / 2; n.attr("rx", e.rx).attr("ry", e.ry).attr("x", e.x - e.width / 2 - s).attr("y", e.y - e.height / 2 - s).attr("width", e.width + i).attr("height", e.height + i).attr("fill", "none"); const a = n.node().getBBox(); return e.width = a.width, e.height = a.height, e.intersect = function(o) { return kw(e, o); }, r; -}, "noteGroup"), XKt = /* @__PURE__ */ x((t, e) => { +}, "noteGroup"), ZKt = /* @__PURE__ */ x((t, e) => { const r = ke(), n = t.insert("g").attr("class", e.classes).attr("id", e.id), i = n.insert("rect", ":first-child"), s = n.insert("g").attr("class", "cluster-label"), a = n.append("rect"), o = s.node().appendChild(ja(e.labelText, e.labelStyle, void 0, !0)); let l = o.getBBox(); if (Pn(r.flowchart.htmlLabels)) { @@ -94300,20 +94336,20 @@ var O1e = /* @__PURE__ */ x((t, e) => { return e.height = p.height, e.intersect = function(g) { return kw(e, g); }, n; -}, "roundedWithTitle"), HKt = /* @__PURE__ */ x((t, e) => { +}, "roundedWithTitle"), jKt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", e.classes).attr("id", e.id), n = r.insert("rect", ":first-child"), i = 0 * e.padding, s = i / 2; n.attr("class", "divider").attr("x", e.x - e.width / 2 - s).attr("y", e.y - e.height / 2).attr("width", e.width + i).attr("height", e.height + i); const a = n.node().getBBox(); return e.width = a.width, e.height = a.height, e.diff = -e.padding / 2, e.intersect = function(o) { return kw(e, o); }, r; -}, "divider"), ZKt = { rect: WKt, roundedWithTitle: XKt, noteGroup: GKt, divider: HKt }, A1e = {}, jKt = /* @__PURE__ */ x((t, e) => { +}, "divider"), KKt = { rect: XKt, roundedWithTitle: ZKt, noteGroup: HKt, divider: jKt }, L1e = {}, JKt = /* @__PURE__ */ x((t, e) => { H.trace("Inserting cluster"); const r = e.shape || "rect"; - A1e[e.id] = ZKt[r](t, e); -}, "insertCluster"), KKt = /* @__PURE__ */ x(() => { - A1e = {}; -}, "clear"), L1e = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { + L1e[e.id] = KKt[r](t, e); +}, "insertCluster"), eJt = /* @__PURE__ */ x(() => { + L1e = {}; +}, "clear"), R1e = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { H.info("Graph in recursive render: XXX", _i(e), i); const a = e.graph().rankdir; H.trace("Dir in recursive render - dir:", a); @@ -94335,7 +94371,7 @@ var O1e = /* @__PURE__ */ x((t, e) => { ranksep: v, nodesep: y }); - const b = await L1e( + const b = await R1e( f, m.graph, r, @@ -94343,19 +94379,19 @@ var O1e = /* @__PURE__ */ x((t, e) => { e.node(g), s ), w = b.elem; - Zn(m, w), m.diff = b.diff || 0, H.info("Node bounds (abc123)", g, m, m.width, m.x, m.y), PFt(w, m), H.warn("Recursive render complete ", w, m); + Zn(m, w), m.diff = b.diff || 0, H.info("Node bounds (abc123)", g, m, m.width, m.x, m.y), IFt(w, m), H.warn("Recursive render complete ", w, m); } else e.children(g).length > 0 ? (H.info("Cluster - the non recursive path XXX", g, m.id, m, e), H.info(Rb(m.id, e)), kr[m.id] = { id: Rb(m.id, e), node: m }) : (H.info("Node - the non recursive path", g, m.id, m), await EI(f, e.node(g), a)); }) ), e.edges().forEach(async function(g) { const m = e.edge(g.v, g.w, g.name); - H.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(g)), H.info("Edge " + g.v + " -> " + g.w + ": ", g, " ", JSON.stringify(e.edge(g))), H.info("Fix", kr, "ids:", g.v, g.w, "Translating: ", kr[g.v], kr[g.w]), await w1e(h, m); + H.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(g)), H.info("Edge " + g.v + " -> " + g.w + ": ", g, " ", JSON.stringify(e.edge(g))), H.info("Fix", kr, "ids:", g.v, g.w, "Translating: ", kr[g.v], kr[g.w]), await O1e(h, m); }), e.edges().forEach(function(g) { H.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(g)); }), H.info("Graph before layout:", JSON.stringify(_i(e))), H.info("#############################################"), H.info("### Layout ###"), H.info("#############################################"), H.info(e), Y1(e), H.info("Graph after layout:", JSON.stringify(_i(e))); let d = 0; const { subGraphTitleTotalMargin: p } = Op(s); - return YKt(e).forEach(function(g) { + return GKt(e).forEach(function(g) { const m = e.node(g); H.info("Position " + g + ": " + JSON.stringify(e.node(g))), H.info( "Position " + g + ": (" + m.x, @@ -94364,26 +94400,26 @@ var O1e = /* @__PURE__ */ x((t, e) => { m.width, " height: ", m.height - ), m != null && m.clusterNode ? (m.y += p, HL(m)) : e.children(g).length > 0 ? (m.height += p, jKt(l, m), kr[m.id].node = m) : (m.y += p / 2, HL(m)); + ), m != null && m.clusterNode ? (m.y += p, HL(m)) : e.children(g).length > 0 ? (m.height += p, JKt(l, m), kr[m.id].node = m) : (m.y += p / 2, HL(m)); }), e.edges().forEach(function(g) { const m = e.edge(g); H.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(m), m), m.points.forEach((y) => y.y += p / 2); - const v = k1e(u, g, m, kr, r, e, n); - O1e(m, v); + const v = S1e(u, g, m, kr, r, e, n); + k1e(m, v); }), e.nodes().forEach(function(g) { const m = e.node(g); H.info(g, m.type, m.diff), m.type === "group" && (d = m.diff); }), { elem: o, diff: d }; -}, "recursiveRender"), JKt = /* @__PURE__ */ x(async (t, e, r, n, i) => { - x1e(t, r, n, i), NFt(), FKt(), KKt(), UKt(), H.warn("Graph at first:", JSON.stringify(_i(e))), qKt(e), H.warn("Graph after:", JSON.stringify(_i(e))); +}, "recursiveRender"), tJt = /* @__PURE__ */ x(async (t, e, r, n, i) => { + w1e(t, r, n, i), $Ft(), QKt(), eJt(), qKt(), H.warn("Graph at first:", JSON.stringify(_i(e))), WKt(e), H.warn("Graph after:", JSON.stringify(_i(e))); const s = ke(); - await L1e(t, e, n, i, void 0, s); + await R1e(t, e, n, i, void 0, s); }, "render"), D$ = /* @__PURE__ */ x((t) => mt.sanitizeText(t, ke()), "sanitizeText"), iM = { dividerMargin: 10, padding: 5, textHeight: 10, curve: void 0 -}, eJt = /* @__PURE__ */ x(function(t, e, r, n) { +}, rJt = /* @__PURE__ */ x(function(t, e, r, n) { H.info("keys:", [...t.keys()]), H.info(t), t.forEach(function(i) { var o, l, u; const a = { @@ -94395,9 +94431,9 @@ var O1e = /* @__PURE__ */ x((t, e) => { style: "fill: none; stroke: black", padding: (u = (o = ke().flowchart) == null ? void 0 : o.padding) != null ? u : (l = ke().class) == null ? void 0 : l.padding }; - e.setNode(i.id, a), R1e(i.classes, e, r, n, i.id), H.info("setNode", a); + e.setNode(i.id, a), M1e(i.classes, e, r, n, i.id), H.info("setNode", a); }); -}, "addNamespaces"), R1e = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addNamespaces"), M1e = /* @__PURE__ */ x(function(t, e, r, n, i) { H.info("keys:", [...t.keys()]), H.info(t), [...t.values()].filter((s) => s.parent === i).forEach(function(s) { var d, p, g, m; const a = s.cssClasses.join(" "), o = cw(s.styles), l = (d = s.label) != null ? d : s.id, u = 0, h = "class_box", f = { @@ -94420,7 +94456,7 @@ var O1e = /* @__PURE__ */ x((t, e) => { }; e.setNode(s.id, f), i && e.setParent(s.id, i), H.info("setNode", f); }); -}, "addClasses"), tJt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "addClasses"), nJt = /* @__PURE__ */ x(function(t, e, r, n) { H.info(t), t.forEach(function(i, s) { var m, v, y; const a = i, o = "", l = { labelStyle: "", style: "" }, u = a.text, h = 0, f = "note", d = { @@ -94455,7 +94491,7 @@ var O1e = /* @__PURE__ */ x((t, e) => { }; e.setEdge(a.id, a.class, g, p); }); -}, "addNotes"), rJt = /* @__PURE__ */ x(function(t, e) { +}, "addNotes"), iJt = /* @__PURE__ */ x(function(t, e) { const r = ke().flowchart; let n = 0; t.forEach(function(i) { @@ -94484,12 +94520,12 @@ var O1e = /* @__PURE__ */ x((t, e) => { i.text = i.title, i.text === void 0 ? i.style !== void 0 && (s.arrowheadStyle = "fill: #333") : (s.arrowheadStyle = "fill: #333", s.labelpos = "c", ((o = (a = ke().flowchart) == null ? void 0 : a.htmlLabels) != null ? o : ke().htmlLabels) ? (s.labelType = "html", s.label = '' + i.text + "") : (s.labelType = "text", s.label = i.text.replace(mt.lineBreakRegex, ` `), i.style === void 0 && (s.style = s.style || "stroke: #333; stroke-width: 1.5px;fill:none"), s.labelStyle = s.labelStyle.replace("color:", "fill:"))), e.setEdge(i.id1, i.id2, s, n); }); -}, "addRelations"), nJt = /* @__PURE__ */ x(function(t) { +}, "addRelations"), sJt = /* @__PURE__ */ x(function(t) { iM = { ...iM, ...t }; -}, "setConf"), iJt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "setConf"), aJt = /* @__PURE__ */ x(async function(t, e, r, n) { var y, b, w, O; H.info("Drawing class - ", e); const i = (y = ke().flowchart) != null ? y : ke().class, s = ke().securityLevel; @@ -94506,17 +94542,17 @@ var O1e = /* @__PURE__ */ x((t, e) => { }).setDefaultEdgeLabel(function() { return {}; }), u = n.db.getNamespaces(), h = n.db.getClasses(), f = n.db.getRelations(), d = n.db.getNotes(); - H.info(f), eJt(u, l, e, n), R1e(h, l, e, n), rJt(f, l), tJt(d, l, f.length + 1, h); + H.info(f), rJt(u, l, e, n), M1e(h, l, e, n), iJt(f, l), nJt(d, l, f.length + 1, h); let p; s === "sandbox" && (p = ht("#i" + e)); const g = ht(s === "sandbox" ? p.nodes()[0].contentDocument.body : "body"), m = g.select(`[id="${e}"]`), v = g.select("#" + e + " g"); - if (await JKt( + if (await tJt( v, l, ["aggregation", "extension", "composition", "dependency", "lollipop"], "classDiagram", e - ), gr.insertTitle(m, "classTitleText", (O = i == null ? void 0 : i.titleTopMargin) != null ? O : 5, n.db.getDiagramTitle()), P1(l, m, i == null ? void 0 : i.diagramPadding, i == null ? void 0 : i.useMaxWidth), !(i != null && i.htmlLabels)) { + ), mr.insertTitle(m, "classTitleText", (O = i == null ? void 0 : i.titleTopMargin) != null ? O : 5, n.db.getDiagramTitle()), P1(l, m, i == null ? void 0 : i.diagramPadding, i == null ? void 0 : i.useMaxWidth), !(i != null && i.htmlLabels)) { const S = s === "sandbox" ? p.nodes()[0].contentDocument : document, C = S.querySelectorAll('[id="' + e + '"] .edgeLabel .label'); for (const T of C) { const A = T.getBBox(), E = S.createElementNS("http://www.w3.org/2000/svg", "rect"); @@ -94548,21 +94584,21 @@ function sM(t) { return e; } x(sM, "getArrowMarker"); -var sJt = { - setConf: nJt, - draw: iJt -}, aJt = { - parser: p1e, +var oJt = { + setConf: sJt, + draw: aJt +}, lJt = { + parser: g1e, db: ZS, - renderer: sJt, - styles: y1e, + renderer: oJt, + styles: b1e, init: /* @__PURE__ */ x((t) => { t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, ZS.clear(); }, "init") }; -const oJt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const cJt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: aJt + diagram: lJt }, Symbol.toStringTag, { value: "Module" })); var aM = function() { var t = /* @__PURE__ */ x(function(D, I, F, B) { @@ -95090,40 +95126,40 @@ Expecting ` + ye.join(", ") + ", got '" + (this.terminals_[Pe] || Pe) + "'" : ie return x(N, "Parser"), N.prototype = P, P.Parser = N, new N(); }(); aM.parser = aM; -var M1e = aM, lJt = "LR", D1e = "TB", JS = "state", P$ = "relation", cJt = "classDef", uJt = "style", hJt = "applyClass", $w = "default", P1e = "divider", N1e = "fill:none", I1e = "fill: #333", $1e = "c", B1e = "text", F1e = "normal", n7 = "rect", i7 = "rectWithTitle", fJt = "stateStart", dJt = "stateEnd", NH = "divider", IH = "roundedWithTitle", pJt = "note", gJt = "noteGroup", Bw = "statediagram", mJt = "state", vJt = `${Bw}-${mJt}`, z1e = "transition", yJt = "note", bJt = "note-edge", xJt = `${z1e} ${bJt}`, wJt = `${Bw}-${yJt}`, OJt = "cluster", kJt = `${Bw}-${OJt}`, SJt = "cluster-alt", TJt = `${Bw}-${SJt}`, Q1e = "parent", U1e = "note", CJt = "state", N$ = "----", EJt = `${N$}${U1e}`, $H = `${N$}${Q1e}`, V1e = /* @__PURE__ */ x((t, e = D1e) => { +var D1e = aM, uJt = "LR", P1e = "TB", JS = "state", P$ = "relation", hJt = "classDef", fJt = "style", dJt = "applyClass", $w = "default", N1e = "divider", I1e = "fill:none", $1e = "fill: #333", B1e = "c", F1e = "text", z1e = "normal", n7 = "rect", i7 = "rectWithTitle", pJt = "stateStart", gJt = "stateEnd", NH = "divider", IH = "roundedWithTitle", mJt = "note", vJt = "noteGroup", Bw = "statediagram", yJt = "state", bJt = `${Bw}-${yJt}`, Q1e = "transition", xJt = "note", wJt = "note-edge", OJt = `${Q1e} ${wJt}`, kJt = `${Bw}-${xJt}`, SJt = "cluster", TJt = `${Bw}-${SJt}`, CJt = "cluster-alt", EJt = `${Bw}-${CJt}`, U1e = "parent", V1e = "note", _Jt = "state", N$ = "----", AJt = `${N$}${V1e}`, $H = `${N$}${U1e}`, q1e = /* @__PURE__ */ x((t, e = P1e) => { if (!t.doc) return e; let r = e; for (const n of t.doc) n.stmt === "dir" && (r = n.value); return r; -}, "getDir"), _Jt = /* @__PURE__ */ x(function(t, e) { +}, "getDir"), LJt = /* @__PURE__ */ x(function(t, e) { return e.db.extract(e.db.getRootDocV2()), e.db.getClasses(); -}, "getClasses"), AJt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), RJt = /* @__PURE__ */ x(async function(t, e, r, n) { var h, f; H.info("REF0:"), H.info("Drawing state diagram (v2)", e); const { securityLevel: i, state: s, layout: a } = ke(); n.db.extract(n.db.getRootDocV2()); - const o = n.db.getData(), l = r0e(e, i); + const o = n.db.getData(), l = n0e(e, i); o.type = n.type, o.layoutAlgorithm = a, o.nodeSpacing = (s == null ? void 0 : s.nodeSpacing) || 50, o.rankSpacing = (s == null ? void 0 : s.rankSpacing) || 50, o.markers = ["barb"], o.diagramId = e, await Kle(o, l); const u = 8; - gr.insertTitle( + mr.insertTitle( l, "statediagramTitleText", (h = s == null ? void 0 : s.titleTopMargin) != null ? h : 25, n.db.getDiagramTitle() - ), n0e(l, u, Bw, (f = s == null ? void 0 : s.useMaxWidth) != null ? f : !0); -}, "draw"), LJt = { - getClasses: _Jt, - draw: AJt, - getDir: V1e -}, j5 = /* @__PURE__ */ new Map(), af = 0; + ), i0e(l, u, Bw, (f = s == null ? void 0 : s.useMaxWidth) != null ? f : !0); +}, "draw"), MJt = { + getClasses: LJt, + draw: RJt, + getDir: q1e +}, j5 = /* @__PURE__ */ new Map(), of = 0; function K5(t = "", e = 0, r = "", n = N$) { const i = r !== null && r.length > 0 ? `${n}${r}` : ""; - return `${CJt}-${t}${i}-${e}`; + return `${_Jt}-${t}${i}-${e}`; } x(K5, "stateDomId"); -var RJt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { +var DJt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { H.trace("items", e), e.forEach((l) => { switch (l.stmt) { case JS: @@ -95154,27 +95190,27 @@ var RJt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { o ); const u = { - id: "edge" + af, + id: "edge" + of, start: l.state1.id, end: l.state2.id, arrowhead: "normal", arrowTypeEnd: "arrow_barb", - style: N1e, + style: I1e, labelStyle: "", label: mt.sanitizeText(l.description, ke()), - arrowheadStyle: I1e, - labelpos: $1e, - labelType: B1e, - thickness: F1e, - classes: z1e, + arrowheadStyle: $1e, + labelpos: B1e, + labelType: F1e, + thickness: z1e, + classes: Q1e, look: a }; - i.push(u), af++; + i.push(u), of++; } break; } }); -}, "setupDoc"), BH = /* @__PURE__ */ x((t, e = D1e) => { +}, "setupDoc"), BH = /* @__PURE__ */ x((t, e = P1e) => { let r = e; if (t.doc) for (const n of t.doc) @@ -95194,30 +95230,30 @@ function ky(t, e, r) { n ? Object.assign(n, e) : t.push(e); } x(ky, "insertOrUpdateNode"); -function q1e(t) { +function Y1e(t) { var e, r; return (r = (e = t == null ? void 0 : t.classes) == null ? void 0 : e.join(" ")) != null ? r : ""; } -x(q1e, "getClassesFromDbInfo"); -function Y1e(t) { +x(Y1e, "getClassesFromDbInfo"); +function W1e(t) { var e; return (e = t == null ? void 0 : t.styles) != null ? e : []; } -x(Y1e, "getStylesFromDbInfo"); +x(W1e, "getStylesFromDbInfo"); var Sy = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { var d, p; - const l = e.id, u = r.get(l), h = q1e(u), f = Y1e(u); + const l = e.id, u = r.get(l), h = Y1e(u), f = W1e(u); if (H.info("dataFetcher parsedItem", e, u, f), l !== "root") { let g = n7; - e.start === !0 ? g = fJt : e.start === !1 && (g = dJt), e.type !== $w && (g = e.type), j5.get(l) || j5.set(l, { + e.start === !0 ? g = pJt : e.start === !1 && (g = gJt), e.type !== $w && (g = e.type), j5.get(l) || j5.set(l, { id: l, shape: g, description: mt.sanitizeText(l, ke()), - cssClasses: `${h} ${vJt}`, + cssClasses: `${h} ${bJt}`, cssStyles: f }); const m = j5.get(l); - e.description && (Array.isArray(m.description) ? (m.shape = i7, m.description.push(e.description)) : ((d = m.description) == null ? void 0 : d.length) > 0 ? (m.shape = i7, m.description === l ? m.description = [e.description] : m.description = [m.description, e.description]) : (m.shape = n7, m.description = e.description), m.description = mt.sanitizeTextOrArray(m.description, ke())), ((p = m.description) == null ? void 0 : p.length) === 1 && m.shape === i7 && (m.type === "group" ? m.shape = IH : m.shape = n7), !m.type && e.doc && (H.info("Setting cluster for XCX", l, BH(e)), m.type = "group", m.isGroup = !0, m.dir = BH(e), m.shape = e.type === P1e ? NH : IH, m.cssClasses = `${m.cssClasses} ${kJt} ${s ? TJt : ""}`); + e.description && (Array.isArray(m.description) ? (m.shape = i7, m.description.push(e.description)) : ((d = m.description) == null ? void 0 : d.length) > 0 ? (m.shape = i7, m.description === l ? m.description = [e.description] : m.description = [m.description, e.description]) : (m.shape = n7, m.description = e.description), m.description = mt.sanitizeTextOrArray(m.description, ke())), ((p = m.description) == null ? void 0 : p.length) === 1 && m.shape === i7 && (m.type === "group" ? m.shape = IH : m.shape = n7), !m.type && e.doc && (H.info("Setting cluster for XCX", l, BH(e)), m.type = "group", m.isGroup = !0, m.dir = BH(e), m.shape = e.type === N1e ? NH : IH, m.cssClasses = `${m.cssClasses} ${TJt} ${s ? EJt : ""}`); const v = { labelStyle: "", shape: m.shape, @@ -95227,7 +95263,7 @@ var Sy = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { cssStyles: m.cssStyles, id: l, dir: m.dir, - domId: K5(l, af), + domId: K5(l, of), type: m.type, isGroup: m.type === "group", padding: 8, @@ -95238,13 +95274,13 @@ var Sy = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { if (v.shape === NH && (v.label = ""), t && t.id !== "root" && (H.trace("Setting node ", l, " to be child of its parent ", t.id), v.parentId = t.id), v.centerLabel = !0, e.note) { const y = { labelStyle: "", - shape: pJt, + shape: mJt, label: e.note.text, - cssClasses: wJt, + cssClasses: kJt, cssStyles: [], cssCompilesStyles: [], - id: l + EJt + "-" + af, - domId: K5(l, af, U1e), + id: l + AJt + "-" + of, + domId: K5(l, of, V1e), type: m.type, isGroup: m.type === "group", padding: ke().flowchart.padding, @@ -95252,19 +95288,19 @@ var Sy = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { position: e.note.position }, b = l + $H, w = { labelStyle: "", - shape: gJt, + shape: vJt, label: e.note.text, cssClasses: m.cssClasses, cssStyles: [], id: l + $H, - domId: K5(l, af, Q1e), + domId: K5(l, of, U1e), type: "group", isGroup: !0, padding: 16, look: a, position: e.note.position }; - af++, w.id = b, y.parentId = b, ky(n, w, o), ky(n, y, o), ky(n, v, o); + of++, w.id = b, y.parentId = b, ky(n, w, o), ky(n, y, o), ky(n, v, o); let O = l, S = y.id; e.note.position === "left of" && (O = y.id, S = l), i.push({ id: O + "-" + S, @@ -95272,50 +95308,50 @@ var Sy = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { end: S, arrowhead: "none", arrowTypeEnd: "", - style: N1e, + style: I1e, labelStyle: "", - classes: xJt, - arrowheadStyle: I1e, - labelpos: $1e, - labelType: B1e, - thickness: F1e, + classes: OJt, + arrowheadStyle: $1e, + labelpos: B1e, + labelType: F1e, + thickness: z1e, look: a }); } else ky(n, v, o); } - e.doc && (H.trace("Adding nodes children "), RJt(e, e.doc, r, n, i, !s, a, o)); -}, "dataFetcher"), MJt = /* @__PURE__ */ x(() => { - j5.clear(), af = 0; -}, "reset"), I$ = "[*]", W1e = "start", G1e = I$, X1e = "end", FH = "color", zH = "fill", DJt = "bgFill", PJt = ","; + e.doc && (H.trace("Adding nodes children "), DJt(e, e.doc, r, n, i, !s, a, o)); +}, "dataFetcher"), PJt = /* @__PURE__ */ x(() => { + j5.clear(), of = 0; +}, "reset"), I$ = "[*]", G1e = "start", X1e = I$, H1e = "end", FH = "color", zH = "fill", NJt = "bgFill", IJt = ","; function $$() { return /* @__PURE__ */ new Map(); } x($$, "newClassesList"); -var eT = [], B$ = [], H1e = lJt, tT = [], Jg = $$(), Z1e = /* @__PURE__ */ x(() => ({ +var eT = [], B$ = [], Z1e = uJt, tT = [], Jg = $$(), j1e = /* @__PURE__ */ x(() => ({ relations: [], states: /* @__PURE__ */ new Map(), documents: {} }), "newDoc"), rT = { - root: Z1e() -}, qa = rT.root, Mb = 0, QH = 0, NJt = { + root: j1e() +}, qa = rT.root, Mb = 0, QH = 0, $Jt = { LINE: 0, DOTTED_LINE: 1 -}, IJt = { +}, BJt = { AGGREGATION: 0, EXTENSION: 1, COMPOSITION: 2, DEPENDENCY: 3 -}, A4 = /* @__PURE__ */ x((t) => JSON.parse(JSON.stringify(t)), "clone"), $Jt = /* @__PURE__ */ x((t) => { +}, A4 = /* @__PURE__ */ x((t) => JSON.parse(JSON.stringify(t)), "clone"), FJt = /* @__PURE__ */ x((t) => { H.info("Setting root doc", t), tT = t; -}, "setRootDoc"), BJt = /* @__PURE__ */ x(() => tT, "getRootDoc"), J5 = /* @__PURE__ */ x((t, e, r) => { +}, "setRootDoc"), zJt = /* @__PURE__ */ x(() => tT, "getRootDoc"), J5 = /* @__PURE__ */ x((t, e, r) => { if (e.stmt === P$) J5(t, e.state1, !0), J5(t, e.state2, !1); else if (e.stmt === JS && (e.id === "[*]" ? (e.id = r ? t.id + "_start" : t.id + "_end", e.start = r) : e.id = e.id.trim()), e.doc) { const n = []; let i = [], s; for (s = 0; s < e.doc.length; s++) - if (e.doc[s].type === P1e) { + if (e.doc[s].type === N1e) { const a = A4(e.doc[s]); a.doc = A4(i), n.push(a), i = []; } else @@ -95331,12 +95367,12 @@ var eT = [], B$ = [], H1e = lJt, tT = [], Jg = $$(), Z1e = /* @__PURE__ */ x(() } e.doc.forEach((a) => J5(e, a, !0)); } -}, "docTranslator"), F$ = /* @__PURE__ */ x(() => (J5({ id: "root" }, { id: "root", doc: tT }, !0), { id: "root", doc: tT }), "getRootDocV2"), FJt = /* @__PURE__ */ x((t) => { +}, "docTranslator"), F$ = /* @__PURE__ */ x(() => (J5({ id: "root" }, { id: "root", doc: tT }, !0), { id: "root", doc: tT }), "getRootDocV2"), QJt = /* @__PURE__ */ x((t) => { let e; - t.doc ? e = t.doc : e = t, H.info(e), j1e(!0), H.info("Extract initial document:", e), e.forEach((s) => { + t.doc ? e = t.doc : e = t, H.info(e), K1e(!0), H.info("Extract initial document:", e), e.forEach((s) => { switch (H.warn("Statement", s.stmt), s.stmt) { case JS: - sd( + ad( s.id.trim(), s.type, s.doc, @@ -95348,19 +95384,19 @@ var eT = [], B$ = [], H1e = lJt, tT = [], Jg = $$(), Z1e = /* @__PURE__ */ x(() ); break; case P$: - rve(s.state1, s.state2, s.description); + nve(s.state1, s.state2, s.description); break; - case cJt: - nve(s.id.trim(), s.classes); + case hJt: + ive(s.id.trim(), s.classes); break; - case uJt: + case fJt: { const a = s.id.trim().split(","), o = s.styleClass.split(","); a.forEach((l) => { let u = lp(l); if (u === void 0) { const h = l.trim(); - sd(h), u = lp(h); + ad(h), u = lp(h); } u.styles = o.map((h) => { var f; @@ -95369,13 +95405,13 @@ var eT = [], B$ = [], H1e = lJt, tT = [], Jg = $$(), Z1e = /* @__PURE__ */ x(() }); } break; - case hJt: + case dJt: z$(s.id.trim(), s.styleClass); break; } }); - const r = K1e(), i = ke().look; - MJt(), Sy(void 0, F$(), r, eT, B$, !0, i, Jg), eT.forEach((s) => { + const r = J1e(), i = ke().look; + PJt(), Sy(void 0, F$(), r, eT, B$, !0, i, Jg), eT.forEach((s) => { if (Array.isArray(s.label)) { if (s.description = s.label.slice(1), s.isGroup && s.description.length > 0) throw new Error( @@ -95384,7 +95420,7 @@ var eT = [], B$ = [], H1e = lJt, tT = [], Jg = $$(), Z1e = /* @__PURE__ */ x(() s.label = s.label[0]; } }); -}, "extract"), sd = /* @__PURE__ */ x(function(t, e = $w, r = null, n = null, i = null, s = null, a = null, o = null) { +}, "extract"), ad = /* @__PURE__ */ x(function(t, e = $w, r = null, n = null, i = null, s = null, a = null, o = null) { const l = t == null ? void 0 : t.trim(); if (qa.states.has(l) ? (qa.states.get(l).doc || (qa.states.get(l).doc = r), qa.states.get(l).type || (qa.states.get(l).type = e)) : (H.info("Adding state ", l, n), qa.states.set(l, { id: l, @@ -95399,41 +95435,41 @@ var eT = [], B$ = [], H1e = lJt, tT = [], Jg = $$(), Z1e = /* @__PURE__ */ x(() const u = qa.states.get(l); u.note = i, u.note.text = mt.sanitizeText(u.note.text, ke()); } - s && (H.info("Setting state classes", l, s), (typeof s == "string" ? [s] : s).forEach((h) => z$(l, h.trim()))), a && (H.info("Setting state styles", l, a), (typeof a == "string" ? [a] : a).forEach((h) => YJt(l, h.trim()))), o && (H.info("Setting state styles", l, a), (typeof o == "string" ? [o] : o).forEach((h) => WJt(l, h.trim()))); -}, "addState"), j1e = /* @__PURE__ */ x(function(t) { + s && (H.info("Setting state classes", l, s), (typeof s == "string" ? [s] : s).forEach((h) => z$(l, h.trim()))), a && (H.info("Setting state styles", l, a), (typeof a == "string" ? [a] : a).forEach((h) => GJt(l, h.trim()))), o && (H.info("Setting state styles", l, a), (typeof o == "string" ? [o] : o).forEach((h) => XJt(l, h.trim()))); +}, "addState"), K1e = /* @__PURE__ */ x(function(t) { eT = [], B$ = [], rT = { - root: Z1e() + root: j1e() }, qa = rT.root, Mb = 0, Jg = $$(), t || cs(); }, "clear"), lp = /* @__PURE__ */ x(function(t) { return qa.states.get(t); -}, "getState"), K1e = /* @__PURE__ */ x(function() { +}, "getState"), J1e = /* @__PURE__ */ x(function() { return qa.states; -}, "getStates"), zJt = /* @__PURE__ */ x(function() { +}, "getStates"), UJt = /* @__PURE__ */ x(function() { H.info("Documents = ", rT); -}, "logDocuments"), QJt = /* @__PURE__ */ x(function() { +}, "logDocuments"), VJt = /* @__PURE__ */ x(function() { return qa.relations; }, "getRelations"); function nT(t = "") { let e = t; - return t === I$ && (Mb++, e = `${W1e}${Mb}`), e; + return t === I$ && (Mb++, e = `${G1e}${Mb}`), e; } x(nT, "startIdIfNeeded"); function iT(t = "", e = $w) { - return t === I$ ? W1e : e; + return t === I$ ? G1e : e; } x(iT, "startTypeIfNeeded"); -function J1e(t = "") { +function eve(t = "") { let e = t; - return t === G1e && (Mb++, e = `${X1e}${Mb}`), e; + return t === X1e && (Mb++, e = `${H1e}${Mb}`), e; } -x(J1e, "endIdIfNeeded"); -function eve(t = "", e = $w) { - return t === G1e ? X1e : e; +x(eve, "endIdIfNeeded"); +function tve(t = "", e = $w) { + return t === X1e ? H1e : e; } -x(eve, "endTypeIfNeeded"); -function tve(t, e, r) { +x(tve, "endTypeIfNeeded"); +function rve(t, e, r) { let n = nT(t.id.trim()), i = iT(t.id.trim(), t.type), s = nT(e.id.trim()), a = iT(e.id.trim(), e.type); - sd( + ad( n, i, t.doc, @@ -95442,7 +95478,7 @@ function tve(t, e, r) { t.classes, t.styles, t.textStyles - ), sd( + ), ad( s, a, e.doc, @@ -95457,13 +95493,13 @@ function tve(t, e, r) { relationTitle: mt.sanitizeText(r, ke()) }); } -x(tve, "addRelationObjs"); -var rve = /* @__PURE__ */ x(function(t, e, r) { +x(rve, "addRelationObjs"); +var nve = /* @__PURE__ */ x(function(t, e, r) { if (typeof t == "object") - tve(t, e, r); + rve(t, e, r); else { - const n = nT(t.trim()), i = iT(t), s = J1e(e.trim()), a = eve(e); - sd(n, i), sd(s, a), qa.relations.push({ + const n = nT(t.trim()), i = iT(t), s = eve(e.trim()), a = tve(e); + ad(n, i), ad(s, a), qa.relations.push({ id1: n, id2: s, title: mt.sanitizeText(r, ke()) @@ -95472,73 +95508,73 @@ var rve = /* @__PURE__ */ x(function(t, e, r) { }, "addRelation"), oM = /* @__PURE__ */ x(function(t, e) { const r = qa.states.get(t), n = e.startsWith(":") ? e.replace(":", "").trim() : e; r.descriptions.push(mt.sanitizeText(n, ke())); -}, "addDescription"), UJt = /* @__PURE__ */ x(function(t) { +}, "addDescription"), qJt = /* @__PURE__ */ x(function(t) { return t.substring(0, 1) === ":" ? t.substr(2).trim() : t.trim(); -}, "cleanupLabel"), VJt = /* @__PURE__ */ x(() => (QH++, "divider-id-" + QH), "getDividerId"), nve = /* @__PURE__ */ x(function(t, e = "") { +}, "cleanupLabel"), YJt = /* @__PURE__ */ x(() => (QH++, "divider-id-" + QH), "getDividerId"), ive = /* @__PURE__ */ x(function(t, e = "") { Jg.has(t) || Jg.set(t, { id: t, styles: [], textStyles: [] }); const r = Jg.get(t); - e != null && e.split(PJt).forEach((n) => { + e != null && e.split(IJt).forEach((n) => { const i = n.replace(/([^;]*);/, "$1").trim(); if (RegExp(FH).exec(n)) { - const a = i.replace(zH, DJt).replace(FH, zH); + const a = i.replace(zH, NJt).replace(FH, zH); r.textStyles.push(a); } r.styles.push(i); }); -}, "addStyleClass"), qJt = /* @__PURE__ */ x(function() { +}, "addStyleClass"), WJt = /* @__PURE__ */ x(function() { return Jg; }, "getClasses"), z$ = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = lp(r); if (n === void 0) { const i = r.trim(); - sd(i), n = lp(i); + ad(i), n = lp(i); } n.classes.push(e); }); -}, "setCssClass"), YJt = /* @__PURE__ */ x(function(t, e) { +}, "setCssClass"), GJt = /* @__PURE__ */ x(function(t, e) { const r = lp(t); r !== void 0 && r.styles.push(e); -}, "setStyle"), WJt = /* @__PURE__ */ x(function(t, e) { +}, "setStyle"), XJt = /* @__PURE__ */ x(function(t, e) { const r = lp(t); r !== void 0 && r.textStyles.push(e); -}, "setTextStyle"), GJt = /* @__PURE__ */ x(() => H1e, "getDirection"), XJt = /* @__PURE__ */ x((t) => { - H1e = t; -}, "setDirection"), HJt = /* @__PURE__ */ x((t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), "trimColon"), ZJt = /* @__PURE__ */ x(() => { +}, "setTextStyle"), HJt = /* @__PURE__ */ x(() => Z1e, "getDirection"), ZJt = /* @__PURE__ */ x((t) => { + Z1e = t; +}, "setDirection"), jJt = /* @__PURE__ */ x((t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), "trimColon"), KJt = /* @__PURE__ */ x(() => { const t = ke(); - return { nodes: eT, edges: B$, other: {}, config: t, direction: V1e(F$()) }; + return { nodes: eT, edges: B$, other: {}, config: t, direction: q1e(F$()) }; }, "getData"), Vu = { getConfig: /* @__PURE__ */ x(() => ke().state, "getConfig"), - getData: ZJt, - addState: sd, - clear: j1e, + getData: KJt, + addState: ad, + clear: K1e, getState: lp, - getStates: K1e, - getRelations: QJt, - getClasses: qJt, - getDirection: GJt, - addRelation: rve, - getDividerId: VJt, - setDirection: XJt, - cleanupLabel: UJt, - lineType: NJt, - relationType: IJt, - logDocuments: zJt, - getRootDoc: BJt, - setRootDoc: $Jt, + getStates: J1e, + getRelations: VJt, + getClasses: WJt, + getDirection: HJt, + addRelation: nve, + getDividerId: YJt, + setDirection: ZJt, + cleanupLabel: qJt, + lineType: $Jt, + relationType: BJt, + logDocuments: UJt, + getRootDoc: zJt, + setRootDoc: FJt, getRootDocV2: F$, - extract: FJt, - trimColon: HJt, + extract: QJt, + trimColon: jJt, getAccTitle: Ps, setAccTitle: us, getAccDescription: Is, setAccDescription: Ns, - addStyleClass: nve, + addStyleClass: ive, setCssClass: z$, addDescription: oM, setDiagramTitle: Na, getDiagramTitle: $s -}, jJt = /* @__PURE__ */ x((t) => ` +}, JJt = /* @__PURE__ */ x((t) => ` defs #statediagram-barbEnd { fill: ${t.transitionColor}; stroke: ${t.transitionColor}; @@ -95752,17 +95788,17 @@ g.stateGroup line { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), ive = jJt, Q$ = {}, KJt = /* @__PURE__ */ x((t, e) => { +`, "getStyles"), sve = JJt, Q$ = {}, eer = /* @__PURE__ */ x((t, e) => { Q$[t] = e; -}, "set"), JJt = /* @__PURE__ */ x((t) => Q$[t], "get"), sve = /* @__PURE__ */ x(() => Object.keys(Q$), "keys"), eer = /* @__PURE__ */ x(() => sve().length, "size"), ter = { - get: JJt, - set: KJt, - keys: sve, - size: eer -}, rer = /* @__PURE__ */ x((t) => t.append("circle").attr("class", "start-state").attr("r", ke().state.sizeUnit).attr("cx", ke().state.padding + ke().state.sizeUnit).attr("cy", ke().state.padding + ke().state.sizeUnit), "drawStartState"), ner = /* @__PURE__ */ x((t) => t.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", ke().state.textHeight).attr("class", "divider").attr("x2", ke().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), ier = /* @__PURE__ */ x((t, e) => { +}, "set"), ter = /* @__PURE__ */ x((t) => Q$[t], "get"), ave = /* @__PURE__ */ x(() => Object.keys(Q$), "keys"), rer = /* @__PURE__ */ x(() => ave().length, "size"), ner = { + get: ter, + set: eer, + keys: ave, + size: rer +}, ier = /* @__PURE__ */ x((t) => t.append("circle").attr("class", "start-state").attr("r", ke().state.sizeUnit).attr("cx", ke().state.padding + ke().state.sizeUnit).attr("cy", ke().state.padding + ke().state.sizeUnit), "drawStartState"), ser = /* @__PURE__ */ x((t) => t.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", ke().state.textHeight).attr("class", "divider").attr("x2", ke().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), aer = /* @__PURE__ */ x((t, e) => { const r = t.append("text").attr("x", 2 * ke().state.padding).attr("y", ke().state.textHeight + 2 * ke().state.padding).attr("font-size", ke().state.fontSize).attr("class", "state-title").text(e.id), n = r.node().getBBox(); return t.insert("rect", ":first-child").attr("x", ke().state.padding).attr("y", ke().state.padding).attr("width", n.width + 2 * ke().state.padding).attr("height", n.height + 2 * ke().state.padding).attr("rx", ke().state.radius), r; -}, "drawSimpleState"), ser = /* @__PURE__ */ x((t, e) => { +}, "drawSimpleState"), oer = /* @__PURE__ */ x((t, e) => { const r = /* @__PURE__ */ x(function(d, p, g) { const m = d.append("tspan").attr("x", 2 * ke().state.padding).text(p); g || m.attr("dy", ke().state.textHeight); @@ -95776,7 +95812,7 @@ g.stateGroup line { }); const u = t.append("line").attr("x1", ke().state.padding).attr("y1", ke().state.padding + s + ke().state.dividerMargin / 2).attr("y2", ke().state.padding + s + ke().state.dividerMargin / 2).attr("class", "descr-divider"), h = a.node().getBBox(), f = Math.max(h.width, i.width); return u.attr("x2", f + 3 * ke().state.padding), t.insert("rect", ":first-child").attr("x", ke().state.padding).attr("y", ke().state.padding).attr("width", f + 2 * ke().state.padding).attr("height", h.height + s + 2 * ke().state.padding).attr("rx", ke().state.radius), t; -}, "drawDescrState"), aer = /* @__PURE__ */ x((t, e, r) => { +}, "drawDescrState"), ler = /* @__PURE__ */ x((t, e, r) => { const n = ke().state.padding, i = 2 * ke().state.padding, s = t.node().getBBox(), a = s.width, o = s.x, l = t.append("text").attr("x", 0).attr("y", ke().state.titleShift).attr("font-size", ke().state.fontSize).attr("class", "state-title").text(e.id), h = l.node().getBBox().width + i; let f = Math.max(h, a); f === a && (f = f + i); @@ -95794,20 +95830,20 @@ g.stateGroup line { "y", ke().state.titleShift - ke().state.textHeight - ke().state.padding ).attr("width", f).attr("height", p.height + 3 + 2 * ke().state.textHeight).attr("rx", ke().state.radius), t; -}, "addTitleAndBox"), oer = /* @__PURE__ */ x((t) => (t.append("circle").attr("class", "end-state-outer").attr("r", ke().state.sizeUnit + ke().state.miniPadding).attr( +}, "addTitleAndBox"), cer = /* @__PURE__ */ x((t) => (t.append("circle").attr("class", "end-state-outer").attr("r", ke().state.sizeUnit + ke().state.miniPadding).attr( "cx", ke().state.padding + ke().state.sizeUnit + ke().state.miniPadding ).attr( "cy", ke().state.padding + ke().state.sizeUnit + ke().state.miniPadding -), t.append("circle").attr("class", "end-state-inner").attr("r", ke().state.sizeUnit).attr("cx", ke().state.padding + ke().state.sizeUnit + 2).attr("cy", ke().state.padding + ke().state.sizeUnit + 2)), "drawEndState"), ler = /* @__PURE__ */ x((t, e) => { +), t.append("circle").attr("class", "end-state-inner").attr("r", ke().state.sizeUnit).attr("cx", ke().state.padding + ke().state.sizeUnit + 2).attr("cy", ke().state.padding + ke().state.sizeUnit + 2)), "drawEndState"), uer = /* @__PURE__ */ x((t, e) => { let r = ke().state.forkWidth, n = ke().state.forkHeight; if (e.parentId) { let i = r; r = n, n = i; } return t.append("rect").style("stroke", "black").style("fill", "black").attr("width", r).attr("height", n).attr("x", ke().state.padding).attr("y", ke().state.padding); -}, "drawForkJoinState"), cer = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawForkJoinState"), her = /* @__PURE__ */ x((t, e, r, n) => { let i = 0; const s = n.append("text"); s.style("text-anchor", "start"), s.attr("class", "noteText"); @@ -95827,9 +95863,9 @@ g.stateGroup line { } } return { textWidth: s.node().getBBox().width, textHeight: i }; -}, "_drawLongText"), uer = /* @__PURE__ */ x((t, e) => { +}, "_drawLongText"), fer = /* @__PURE__ */ x((t, e) => { e.attr("class", "state-note"); - const r = e.append("rect").attr("x", 0).attr("y", ke().state.padding), n = e.append("g"), { textWidth: i, textHeight: s } = cer(t, 0, 0, n); + const r = e.append("rect").attr("x", 0).attr("y", ke().state.padding), n = e.append("g"), { textWidth: i, textHeight: s } = her(t, 0, 0, n); return r.attr("height", s + 2 * ke().state.noteMargin), r.attr("width", i + ke().state.noteMargin * 2), r; }, "drawNote"), UH = /* @__PURE__ */ x(function(t, e) { const r = e.id, n = { @@ -95838,10 +95874,10 @@ g.stateGroup line { width: 0, height: 0 }, i = t.append("g").attr("id", r).attr("class", "stateGroup"); - e.type === "start" && rer(i), e.type === "end" && oer(i), (e.type === "fork" || e.type === "join") && ler(i, e), e.type === "note" && uer(e.note.text, i), e.type === "divider" && ner(i), e.type === "default" && e.descriptions.length === 0 && ier(i, e), e.type === "default" && e.descriptions.length > 0 && ser(i, e); + e.type === "start" && ier(i), e.type === "end" && cer(i), (e.type === "fork" || e.type === "join") && uer(i, e), e.type === "note" && fer(e.note.text, i), e.type === "divider" && ser(i), e.type === "default" && e.descriptions.length === 0 && aer(i, e), e.type === "default" && e.descriptions.length > 0 && oer(i, e); const s = i.node().getBBox(); - return n.width = s.width + 2 * ke().state.padding, n.height = s.height + 2 * ke().state.padding, ter.set(r, n), n; -}, "drawState"), VH = 0, her = /* @__PURE__ */ x(function(t, e, r) { + return n.width = s.width + 2 * ke().state.padding, n.height = s.height + 2 * ke().state.padding, ner.set(r, n), n; +}, "drawState"), VH = 0, der = /* @__PURE__ */ x(function(t, e, r) { const n = /* @__PURE__ */ x(function(l) { switch (l) { case Vu.relationType.AGGREGATION: @@ -95855,7 +95891,7 @@ g.stateGroup line { } }, "getRelationType"); e.points = e.points.filter((l) => !Number.isNaN(l.y)); - const i = e.points, s = Wf().x(function(l) { + const i = e.points, s = Gf().x(function(l) { return l.x; }).y(function(l) { return l.y; @@ -95865,7 +95901,7 @@ g.stateGroup line { "marker-end", "url(" + o + "#" + n(Vu.relationType.DEPENDENCY) + "End)" ), r.title !== void 0) { - const l = t.append("g").attr("class", "stateLabel"), { x: u, y: h } = gr.calcLabelPosition(e.points), f = mt.getRows(r.title); + const l = t.append("g").attr("class", "stateLabel"), { x: u, y: h } = mr.calcLabelPosition(e.points), f = mt.getRows(r.title); let d = 0; const p = []; let g = 0, m = 0; @@ -95882,10 +95918,10 @@ g.stateGroup line { l.insert("rect", ":first-child").attr("class", "box").attr("x", u - g / 2 - ke().state.padding / 2).attr("y", h - v / 2 - ke().state.padding / 2 - 3.5).attr("width", g + ke().state.padding).attr("height", v + ke().state.padding), H.info(y); } VH++; -}, "drawEdge"), So, s7 = {}, fer = /* @__PURE__ */ x(function() { -}, "setConf"), der = /* @__PURE__ */ x(function(t) { +}, "drawEdge"), So, s7 = {}, per = /* @__PURE__ */ x(function() { +}, "setConf"), ger = /* @__PURE__ */ x(function(t) { t.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"); -}, "insertMarkers"), per = /* @__PURE__ */ x(function(t, e, r, n) { +}, "insertMarkers"), mer = /* @__PURE__ */ x(function(t, e, r, n) { So = ke().state; const i = ke().securityLevel; let s; @@ -95893,15 +95929,15 @@ g.stateGroup line { const a = ht(i === "sandbox" ? s.nodes()[0].contentDocument.body : "body"), o = i === "sandbox" ? s.nodes()[0].contentDocument : document; H.debug("Rendering diagram " + t); const l = a.select(`[id='${e}']`); - der(l); + ger(l); const u = n.db.getRootDoc(); - ave(u, l, void 0, !1, a, o, n); + ove(u, l, void 0, !1, a, o, n); const h = So.padding, f = l.node().getBBox(), d = f.width + h * 2, p = f.height + h * 2, g = d * 1.75; Ds(l, p, g, So.useMaxWidth), l.attr( "viewBox", `${f.x - So.padding} ${f.y - So.padding} ` + d + " " + p ); -}, "draw"), ger = /* @__PURE__ */ x((t) => t ? t.length * So.fontSizeFactor : 1, "getLabelWidth"), ave = /* @__PURE__ */ x((t, e, r, n, i, s, a) => { +}, "draw"), ver = /* @__PURE__ */ x((t) => t ? t.length * So.fontSizeFactor : 1, "getLabelWidth"), ove = /* @__PURE__ */ x((t, e, r, n, i, s, a) => { const o = new Ji({ compound: !0, multigraph: !0 @@ -95938,9 +95974,9 @@ g.stateGroup line { let w; if (b.doc) { let O = e.append("g").attr("id", b.id).attr("class", "stateGroup"); - w = ave(b.doc, O, b.id, !n, i, s, a); + w = ove(b.doc, O, b.id, !n, i, s, a); { - O = aer(O, b, n); + O = ler(O, b, n); let S = O.node().getBBox(); w.width = S.width, w.height = S.height + So.padding / 2, s7[b.id] = { y: So.compositTitleSize }; } @@ -95965,7 +96001,7 @@ g.stateGroup line { y.id2, { relation: y, - width: ger(y.title), + width: ver(y.title), height: So.labelHeight * mt.getRows(y.title).length, labelpos: "c" }, @@ -95985,7 +96021,7 @@ g.stateGroup line { }); let m = g.getBBox(); o.edges().forEach(function(y) { - y !== void 0 && o.edge(y) !== void 0 && (H.debug("Edge " + y.v + " -> " + y.w + ": " + JSON.stringify(o.edge(y))), her(e, o.edge(y), o.edge(y).relation)); + y !== void 0 && o.edge(y) !== void 0 && (H.debug("Edge " + y.v + " -> " + y.w + ": " + JSON.stringify(o.edge(y))), der(e, o.edge(y), o.edge(y).relation)); }), m = g.getBBox(); const v = { id: r || "root", @@ -95994,34 +96030,34 @@ g.stateGroup line { height: 0 }; return v.width = m.width + 2 * So.padding, v.height = m.height + 2 * So.padding, H.debug("Doc rendered", v, o), v; -}, "renderDoc"), mer = { - setConf: fer, - draw: per -}, ver = { - parser: M1e, +}, "renderDoc"), yer = { + setConf: per, + draw: mer +}, ber = { + parser: D1e, db: Vu, - renderer: mer, - styles: ive, + renderer: yer, + styles: sve, init: /* @__PURE__ */ x((t) => { t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, Vu.clear(); }, "init") }; -const yer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const xer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: ver + diagram: ber }, Symbol.toStringTag, { value: "Module" })); -var ber = { - parser: M1e, +var wer = { + parser: D1e, db: Vu, - renderer: LJt, - styles: ive, + renderer: MJt, + styles: sve, init: /* @__PURE__ */ x((t) => { t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, Vu.clear(); }, "init") }; -const xer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Oer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: ber + diagram: wer }, Symbol.toStringTag, { value: "Module" })); var lM = function() { var t = /* @__PURE__ */ x(function(f, d, p, g) { @@ -96359,25 +96395,25 @@ Expecting ` + W.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : K = " return x(h, "Parser"), h.prototype = l, l.Parser = h, new h(); }(); lM.parser = lM; -var wer = lM, c1 = "", U$ = [], Db = [], Pb = [], Oer = /* @__PURE__ */ x(function() { +var ker = lM, c1 = "", U$ = [], Db = [], Pb = [], Ser = /* @__PURE__ */ x(function() { U$.length = 0, Db.length = 0, c1 = "", Pb.length = 0, cs(); -}, "clear"), ker = /* @__PURE__ */ x(function(t) { +}, "clear"), Ter = /* @__PURE__ */ x(function(t) { c1 = t, U$.push(t); -}, "addSection"), Ser = /* @__PURE__ */ x(function() { +}, "addSection"), Cer = /* @__PURE__ */ x(function() { return U$; -}, "getSections"), Ter = /* @__PURE__ */ x(function() { +}, "getSections"), Eer = /* @__PURE__ */ x(function() { let t = qH(); const e = 100; let r = 0; for (; !t && r < e; ) t = qH(), r++; return Db.push(...Pb), Db; -}, "getTasks"), Cer = /* @__PURE__ */ x(function() { +}, "getTasks"), _er = /* @__PURE__ */ x(function() { const t = []; return Db.forEach((r) => { r.people && t.push(...r.people); }), [...new Set(t)].sort(); -}, "updateActors"), Eer = /* @__PURE__ */ x(function(t, e) { +}, "updateActors"), Aer = /* @__PURE__ */ x(function(t, e) { const r = e.substr(1).split(":"); let n = 0, i = []; r.length === 1 ? (n = Number(r[0]), i = []) : (n = Number(r[0]), i = r[1].split(",")); @@ -96389,7 +96425,7 @@ var wer = lM, c1 = "", U$ = [], Db = [], Pb = [], Oer = /* @__PURE__ */ x(functi score: n }; Pb.push(a); -}, "addTask"), _er = /* @__PURE__ */ x(function(t) { +}, "addTask"), Ler = /* @__PURE__ */ x(function(t) { const e = { section: c1, type: c1, @@ -96406,24 +96442,24 @@ var wer = lM, c1 = "", U$ = [], Db = [], Pb = [], Oer = /* @__PURE__ */ x(functi for (const [r, n] of Pb.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), Aer = /* @__PURE__ */ x(function() { - return Cer(); +}, "compileTasks"), Rer = /* @__PURE__ */ x(function() { + return _er(); }, "getActors"), YH = { getConfig: /* @__PURE__ */ x(() => ke().journey, "getConfig"), - clear: Oer, + clear: Ser, setDiagramTitle: Na, getDiagramTitle: $s, setAccTitle: us, getAccTitle: Ps, setAccDescription: Ns, getAccDescription: Is, - addSection: ker, - getSections: Ser, - getTasks: Ter, - addTask: Eer, - addTaskOrg: _er, - getActors: Aer -}, Ler = /* @__PURE__ */ x((t) => `.label { + addSection: Ter, + getSections: Cer, + getTasks: Eer, + addTask: Aer, + addTaskOrg: Ler, + getActors: Rer +}, Mer = /* @__PURE__ */ x((t) => `.label { font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family); color: ${t.textColor}; @@ -96556,9 +96592,9 @@ var wer = lM, c1 = "", U$ = [], Db = [], Pb = [], Oer = /* @__PURE__ */ x(functi .actor-5 { ${t.actor5 ? `fill: ${t.actor5}` : ""}; } -`, "getStyles"), Rer = Ler, V$ = /* @__PURE__ */ x(function(t, e) { +`, "getStyles"), Der = Mer, V$ = /* @__PURE__ */ x(function(t, e) { return lE(t, e); -}, "drawRect"), Mer = /* @__PURE__ */ x(function(t, e) { +}, "drawRect"), Per = /* @__PURE__ */ x(function(t, e) { const n = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = t.append("g"); i.append("circle").attr("cx", e.cx - 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", e.cx + 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"); function s(l) { @@ -96575,21 +96611,21 @@ var wer = lM, c1 = "", U$ = [], Db = [], Pb = [], Oer = /* @__PURE__ */ x(functi l.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", e.cx - 5).attr("y1", e.cy + 7).attr("x2", e.cx + 5).attr("y2", e.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666"); } return x(o, "ambivalent"), e.score > 3 ? s(i) : e.score < 3 ? a(i) : o(i), n; -}, "drawFace"), ove = /* @__PURE__ */ x(function(t, e) { +}, "drawFace"), lve = /* @__PURE__ */ x(function(t, e) { const r = t.append("circle"); return r.attr("cx", e.cx), r.attr("cy", e.cy), r.attr("class", "actor-" + e.pos), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("r", e.r), r.class !== void 0 && r.attr("class", r.class), e.title !== void 0 && r.append("title").text(e.title), r; -}, "drawCircle"), lve = /* @__PURE__ */ x(function(t, e) { - return nBt(t, e); -}, "drawText"), Der = /* @__PURE__ */ x(function(t, e) { +}, "drawCircle"), cve = /* @__PURE__ */ x(function(t, e) { + return sBt(t, e); +}, "drawText"), Ner = /* @__PURE__ */ x(function(t, e) { function r(i, s, a, o, l) { return i + "," + s + " " + (i + a) + "," + s + " " + (i + a) + "," + (s + o - l) + " " + (i + a - l * 1.2) + "," + (s + o) + " " + i + "," + (s + o); } x(r, "genPoints"); const n = t.append("polygon"); - n.attr("points", r(e.x, e.y, 50, 20, 7)), n.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, lve(t, e); -}, "drawLabel"), Per = /* @__PURE__ */ x(function(t, e, r) { + n.attr("points", r(e.x, e.y, 50, 20, 7)), n.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, cve(t, e); +}, "drawLabel"), Ier = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"), i = Np(); - i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = r.width * e.taskCount + r.diagramMarginX * (e.taskCount - 1), i.height = r.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, V$(n, i), cve(r)( + i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = r.width * e.taskCount + r.diagramMarginX * (e.taskCount - 1), i.height = r.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, V$(n, i), uve(r)( e.text, n, i.x, @@ -96600,11 +96636,11 @@ var wer = lM, c1 = "", U$ = [], Db = [], Pb = [], Oer = /* @__PURE__ */ x(functi r, e.colour ); -}, "drawSection"), WH = -1, Ner = /* @__PURE__ */ x(function(t, e, r) { +}, "drawSection"), WH = -1, $er = /* @__PURE__ */ x(function(t, e, r) { const n = e.x + r.width / 2, i = t.append("g"); WH++; const s = 300 + 5 * 30; - i.append("line").attr("id", "task" + WH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Mer(i, { + i.append("line").attr("id", "task" + WH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Per(i, { cx: n, cy: 300 + (5 - e.score) * 30, score: e.score @@ -96622,8 +96658,8 @@ var wer = lM, c1 = "", U$ = [], Db = [], Pb = [], Oer = /* @__PURE__ */ x(functi title: l, pos: e.actors[l].position }; - ove(i, h), o += 10; - }), cve(r)( + lve(i, h), o += 10; + }), uve(r)( e.task, i, a.x, @@ -96634,9 +96670,9 @@ var wer = lM, c1 = "", U$ = [], Db = [], Pb = [], Oer = /* @__PURE__ */ x(functi r, e.colour ); -}, "drawTask"), Ier = /* @__PURE__ */ x(function(t, e) { - Gde(t, e); -}, "drawBackgroundRect"), cve = /* @__PURE__ */ function() { +}, "drawTask"), Ber = /* @__PURE__ */ x(function(t, e) { + Xde(t, e); +}, "drawBackgroundRect"), uve = /* @__PURE__ */ function() { function t(i, s, a, o, l, u, h, f) { const d = s.append("text").attr("x", a + l / 2).attr("y", o + u / 2 + 5).style("font-color", f).style("text-anchor", "middle").text(i); n(d, h); @@ -96662,23 +96698,23 @@ var wer = lM, c1 = "", U$ = [], Db = [], Pb = [], Oer = /* @__PURE__ */ x(functi return x(n, "_setTextAttrs"), function(i) { return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? t : e; }; -}(), $er = /* @__PURE__ */ x(function(t) { +}(), Fer = /* @__PURE__ */ x(function(t) { t.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"); }, "initGraphics"), Nb = { drawRect: V$, - drawCircle: ove, - drawSection: Per, - drawText: lve, - drawLabel: Der, - drawTask: Ner, - drawBackgroundRect: Ier, - initGraphics: $er -}, Ber = /* @__PURE__ */ x(function(t) { + drawCircle: lve, + drawSection: Ier, + drawText: cve, + drawLabel: Ner, + drawTask: $er, + drawBackgroundRect: Ber, + initGraphics: Fer +}, zer = /* @__PURE__ */ x(function(t) { Object.keys(t).forEach(function(r) { IE[r] = t[r]; }); }, "setConf"), Hu = {}; -function uve(t) { +function hve(t) { const e = ke().journey; let r = 60; Object.keys(Hu).forEach((n) => { @@ -96701,8 +96737,8 @@ function uve(t) { Nb.drawText(t, a), r += 20; }); } -x(uve, "drawActorLegend"); -var IE = ke().journey, t0 = IE.leftMargin, Fer = /* @__PURE__ */ x(function(t, e, r, n) { +x(hve, "drawActorLegend"); +var IE = ke().journey, t0 = IE.leftMargin, Qer = /* @__PURE__ */ x(function(t, e, r, n) { const i = ke().journey, s = ke().securityLevel; let a; s === "sandbox" && (a = ht("#i" + e)); @@ -96719,7 +96755,7 @@ var IE = ke().journey, t0 = IE.leftMargin, Fer = /* @__PURE__ */ x(function(t, e color: i.actorColours[d % i.actorColours.length], position: d }, d++; - }), uve(l), Wo.insert(0, 0, t0, Object.keys(Hu).length * 50), zer(l, u, 0); + }), hve(l), Wo.insert(0, 0, t0, Object.keys(Hu).length * 50), Uer(l, u, 0); const p = Wo.getBounds(); h && l.append("text").text(h).attr("x", t0).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 25); const g = p.stopy - p.starty + 2 * i.diagramMarginY, m = t0 + p.stopx + 2 * i.diagramMarginX; @@ -96771,7 +96807,7 @@ var IE = ke().journey, t0 = IE.leftMargin, Fer = /* @__PURE__ */ x(function(t, e getBounds: /* @__PURE__ */ x(function() { return this.data; }, "getBounds") -}, a7 = IE.sectionFills, GH = IE.sectionColours, zer = /* @__PURE__ */ x(function(t, e, r) { +}, a7 = IE.sectionFills, GH = IE.sectionColours, Uer = /* @__PURE__ */ x(function(t, e, r) { const n = ke().journey; let i = ""; const s = n.height * 2 + n.diagramMarginY, a = r + s; @@ -96798,20 +96834,20 @@ var IE = ke().journey, t0 = IE.leftMargin, Fer = /* @__PURE__ */ x(function(t, e d.x = f * n.taskMargin + f * n.width + t0, d.y = a, d.width = n.diagramMarginX, d.height = n.diagramMarginY, d.colour = u, d.fill = l, d.num = h, d.actors = p, Nb.drawTask(t, d, n), Wo.insert(d.x, d.y, d.x + d.width + n.taskMargin, 300 + 5 * 30); } }, "drawTasks"), XH = { - setConf: Ber, - draw: Fer -}, Qer = { - parser: wer, + setConf: zer, + draw: Qer +}, Ver = { + parser: ker, db: YH, renderer: XH, - styles: Rer, + styles: Der, init: /* @__PURE__ */ x((t) => { XH.setConf(t.journey), YH.clear(); }, "init") }; -const Uer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const qer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Qer + diagram: Ver }, Symbol.toStringTag, { value: "Module" })); var cM = function() { var t = /* @__PURE__ */ x(function(d, p, g, m) { @@ -97150,34 +97186,34 @@ Expecting ` + K.join(", ") + ", got '" + (this.terminals_[N] || N) + "'" : Y = " return x(f, "Parser"), f.prototype = u, u.Parser = f, new f(); }(); cM.parser = cM; -var Ver = cM, hve = {}; -Xse(hve, { - addEvent: () => bve, - addSection: () => gve, - addTask: () => yve, - addTaskOrg: () => xve, - clear: () => pve, - default: () => qer, - getCommonDb: () => dve, - getSections: () => mve, - getTasks: () => vve +var Yer = cM, fve = {}; +Xse(fve, { + addEvent: () => xve, + addSection: () => mve, + addTask: () => bve, + addTaskOrg: () => wve, + clear: () => gve, + default: () => Wer, + getCommonDb: () => pve, + getSections: () => vve, + getTasks: () => yve }); -var u1 = "", fve = 0, q$ = [], sT = [], h1 = [], dve = /* @__PURE__ */ x(() => IP, "getCommonDb"), pve = /* @__PURE__ */ x(function() { +var u1 = "", dve = 0, q$ = [], sT = [], h1 = [], pve = /* @__PURE__ */ x(() => IP, "getCommonDb"), gve = /* @__PURE__ */ x(function() { q$.length = 0, sT.length = 0, u1 = "", h1.length = 0, cs(); -}, "clear"), gve = /* @__PURE__ */ x(function(t) { +}, "clear"), mve = /* @__PURE__ */ x(function(t) { u1 = t, q$.push(t); -}, "addSection"), mve = /* @__PURE__ */ x(function() { +}, "addSection"), vve = /* @__PURE__ */ x(function() { return q$; -}, "getSections"), vve = /* @__PURE__ */ x(function() { +}, "getSections"), yve = /* @__PURE__ */ x(function() { let t = HH(); const e = 100; let r = 0; for (; !t && r < e; ) t = HH(), r++; return sT.push(...h1), sT; -}, "getTasks"), yve = /* @__PURE__ */ x(function(t, e, r) { +}, "getTasks"), bve = /* @__PURE__ */ x(function(t, e, r) { const n = { - id: fve++, + id: dve++, section: u1, type: u1, task: t, @@ -97185,9 +97221,9 @@ var u1 = "", fve = 0, q$ = [], sT = [], h1 = [], dve = /* @__PURE__ */ x(() => I events: r ? [r] : [] }; h1.push(n); -}, "addTask"), bve = /* @__PURE__ */ x(function(t) { - h1.find((r) => r.id === fve - 1).events.push(t); -}, "addEvent"), xve = /* @__PURE__ */ x(function(t) { +}, "addTask"), xve = /* @__PURE__ */ x(function(t) { + h1.find((r) => r.id === dve - 1).events.push(t); +}, "addEvent"), wve = /* @__PURE__ */ x(function(t) { const e = { section: u1, type: u1, @@ -97204,19 +97240,19 @@ var u1 = "", fve = 0, q$ = [], sT = [], h1 = [], dve = /* @__PURE__ */ x(() => I for (const [r, n] of h1.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), qer = { - clear: pve, - getCommonDb: dve, - addSection: gve, - getSections: mve, - getTasks: vve, - addTask: yve, - addTaskOrg: xve, - addEvent: bve -}, Yer = 12, $E = /* @__PURE__ */ x(function(t, e) { +}, "compileTasks"), Wer = { + clear: gve, + getCommonDb: pve, + addSection: mve, + getSections: vve, + getTasks: yve, + addTask: bve, + addTaskOrg: wve, + addEvent: xve +}, Ger = 12, $E = /* @__PURE__ */ x(function(t, e) { const r = t.append("rect"); return r.attr("x", e.x), r.attr("y", e.y), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("width", e.width), r.attr("height", e.height), r.attr("rx", e.rx), r.attr("ry", e.ry), e.class !== void 0 && r.attr("class", e.class), r; -}, "drawRect"), Wer = /* @__PURE__ */ x(function(t, e) { +}, "drawRect"), Xer = /* @__PURE__ */ x(function(t, e) { const n = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = t.append("g"); i.append("circle").attr("cx", e.cx - 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", e.cx + 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"); function s(l) { @@ -97233,24 +97269,24 @@ var u1 = "", fve = 0, q$ = [], sT = [], h1 = [], dve = /* @__PURE__ */ x(() => I l.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", e.cx - 5).attr("y1", e.cy + 7).attr("x2", e.cx + 5).attr("y2", e.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666"); } return x(o, "ambivalent"), e.score > 3 ? s(i) : e.score < 3 ? a(i) : o(i), n; -}, "drawFace"), Ger = /* @__PURE__ */ x(function(t, e) { +}, "drawFace"), Her = /* @__PURE__ */ x(function(t, e) { const r = t.append("circle"); return r.attr("cx", e.cx), r.attr("cy", e.cy), r.attr("class", "actor-" + e.pos), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("r", e.r), r.class !== void 0 && r.attr("class", r.class), e.title !== void 0 && r.append("title").text(e.title), r; -}, "drawCircle"), wve = /* @__PURE__ */ x(function(t, e) { +}, "drawCircle"), Ove = /* @__PURE__ */ x(function(t, e) { const r = e.text.replace(//gi, " "), n = t.append("text"); n.attr("x", e.x), n.attr("y", e.y), n.attr("class", "legend"), n.style("text-anchor", e.anchor), e.class !== void 0 && n.attr("class", e.class); const i = n.append("tspan"); return i.attr("x", e.x + e.textMargin * 2), i.text(r), n; -}, "drawText"), Xer = /* @__PURE__ */ x(function(t, e) { +}, "drawText"), Zer = /* @__PURE__ */ x(function(t, e) { function r(i, s, a, o, l) { return i + "," + s + " " + (i + a) + "," + s + " " + (i + a) + "," + (s + o - l) + " " + (i + a - l * 1.2) + "," + (s + o) + " " + i + "," + (s + o); } x(r, "genPoints"); const n = t.append("polygon"); - n.attr("points", r(e.x, e.y, 50, 20, 7)), n.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, wve(t, e); -}, "drawLabel"), Her = /* @__PURE__ */ x(function(t, e, r) { + n.attr("points", r(e.x, e.y, 50, 20, 7)), n.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, Ove(t, e); +}, "drawLabel"), jer = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"), i = Y$(); - i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = r.width, i.height = r.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, $E(n, i), Ove(r)( + i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = r.width, i.height = r.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, $E(n, i), kve(r)( e.text, n, i.x, @@ -97261,17 +97297,17 @@ var u1 = "", fve = 0, q$ = [], sT = [], h1 = [], dve = /* @__PURE__ */ x(() => I r, e.colour ); -}, "drawSection"), ZH = -1, Zer = /* @__PURE__ */ x(function(t, e, r) { +}, "drawSection"), ZH = -1, Ker = /* @__PURE__ */ x(function(t, e, r) { const n = e.x + r.width / 2, i = t.append("g"); ZH++; const s = 300 + 5 * 30; - i.append("line").attr("id", "task" + ZH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Wer(i, { + i.append("line").attr("id", "task" + ZH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Xer(i, { cx: n, cy: 300 + (5 - e.score) * 30, score: e.score }); const a = Y$(); - a.x = e.x, a.y = e.y, a.fill = e.fill, a.width = r.width, a.height = r.height, a.class = "task task-type-" + e.num, a.rx = 3, a.ry = 3, $E(i, a), Ove(r)( + a.x = e.x, a.y = e.y, a.fill = e.fill, a.width = r.width, a.height = r.height, a.class = "task task-type-" + e.num, a.rx = 3, a.ry = 3, $E(i, a), kve(r)( e.task, i, a.x, @@ -97282,7 +97318,7 @@ var u1 = "", fve = 0, q$ = [], sT = [], h1 = [], dve = /* @__PURE__ */ x(() => I r, e.colour ); -}, "drawTask"), jer = /* @__PURE__ */ x(function(t, e) { +}, "drawTask"), Jer = /* @__PURE__ */ x(function(t, e) { $E(t, { x: e.startx, y: e.starty, @@ -97291,7 +97327,7 @@ var u1 = "", fve = 0, q$ = [], sT = [], h1 = [], dve = /* @__PURE__ */ x(() => I fill: e.fill, class: "rect" }).lower(); -}, "drawBackgroundRect"), Ker = /* @__PURE__ */ x(function() { +}, "drawBackgroundRect"), etr = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -97313,7 +97349,7 @@ var u1 = "", fve = 0, q$ = [], sT = [], h1 = [], dve = /* @__PURE__ */ x(() => I rx: 0, ry: 0 }; -}, "getNoteRect"), Ove = /* @__PURE__ */ function() { +}, "getNoteRect"), kve = /* @__PURE__ */ function() { function t(i, s, a, o, l, u, h, f) { const d = s.append("text").attr("x", a + l / 2).attr("y", o + u / 2 + 5).style("font-color", f).style("text-anchor", "middle").text(i); n(d, h); @@ -97339,7 +97375,7 @@ var u1 = "", fve = 0, q$ = [], sT = [], h1 = [], dve = /* @__PURE__ */ x(() => I return x(n, "_setTextAttrs"), function(i) { return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? t : e; }; -}(), Jer = /* @__PURE__ */ x(function(t) { +}(), ttr = /* @__PURE__ */ x(function(t) { t.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"); }, "initGraphics"); function W$(t, e) { @@ -97350,38 +97386,38 @@ function W$(t, e) { }); } x(W$, "wrap"); -var etr = /* @__PURE__ */ x(function(t, e, r, n) { +var rtr = /* @__PURE__ */ x(function(t, e, r, n) { var f; - const i = r % Yer - 1, s = t.append("g"); + const i = r % Ger - 1, s = t.append("g"); e.section = i, s.attr( "class", (e.class ? e.class + " " : "") + "timeline-node " + ("section-" + i) ); const a = s.append("g"), o = s.append("g"), u = o.append("text").text(e.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(W$, e.width).node().getBBox(), h = (f = n.fontSize) != null && f.replace ? n.fontSize.replace("px", "") : n.fontSize; - return e.height = u.height + h * 1.1 * 0.5 + e.padding, e.height = Math.max(e.height, e.maxHeight), e.width = e.width + 2 * e.padding, o.attr("transform", "translate(" + e.width / 2 + ", " + e.padding / 2 + ")"), rtr(a, e, i, n), e; -}, "drawNode"), ttr = /* @__PURE__ */ x(function(t, e, r) { + return e.height = u.height + h * 1.1 * 0.5 + e.padding, e.height = Math.max(e.height, e.maxHeight), e.width = e.width + 2 * e.padding, o.attr("transform", "translate(" + e.width / 2 + ", " + e.padding / 2 + ")"), itr(a, e, i, n), e; +}, "drawNode"), ntr = /* @__PURE__ */ x(function(t, e, r) { var o; const n = t.append("g"), s = n.append("text").text(e.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(W$, e.width).node().getBBox(), a = (o = r.fontSize) != null && o.replace ? r.fontSize.replace("px", "") : r.fontSize; return n.remove(), s.height + a * 1.1 * 0.5 + e.padding; -}, "getVirtualNodeHeight"), rtr = /* @__PURE__ */ x(function(t, e, r) { +}, "getVirtualNodeHeight"), itr = /* @__PURE__ */ x(function(t, e, r) { t.append("path").attr("id", "node-" + e.id).attr("class", "node-bkg node-" + e.type).attr( "d", `M0 ${e.height - 5} v${-e.height + 2 * 5} q0,-5 5,-5 h${e.width - 2 * 5} q5,0 5,5 v${e.height - 5} H0 Z` ), t.append("line").attr("class", "node-line-" + r).attr("x1", 0).attr("y1", e.height).attr("x2", e.width).attr("y2", e.height); }, "defaultBkg"), r0 = { drawRect: $E, - drawCircle: Ger, - drawSection: Her, - drawText: wve, - drawLabel: Xer, - drawTask: Zer, - drawBackgroundRect: jer, - getTextObj: Ker, + drawCircle: Her, + drawSection: jer, + drawText: Ove, + drawLabel: Zer, + drawTask: Ker, + drawBackgroundRect: Jer, + getTextObj: etr, getNoteRect: Y$, - initGraphics: Jer, - drawNode: etr, - getVirtualNodeHeight: ttr -}, ntr = /* @__PURE__ */ x(function(t, e, r, n) { + initGraphics: ttr, + drawNode: rtr, + getVirtualNodeHeight: ntr +}, str = /* @__PURE__ */ x(function(t, e, r, n) { var E, R, _, L, $; const i = ke(), s = (E = i.leftMargin) != null ? E : 50; H.debug("timeline", n.db); @@ -97494,7 +97530,7 @@ var etr = /* @__PURE__ */ x(function(t, e, r, n) { if (H.debug("taskHeight after draw", v), g.attr("transform", `translate(${n}, ${i})`), s = Math.max(s, v), d.events) { const y = t.append("g").attr("class", "lineWrapper"); let b = s; - i += 100, b = b + itr(t, d.events, r, n, i, a), i -= 100, y.append("line").attr("x1", n + 190 / 2).attr("y1", i + s).attr("x2", n + 190 / 2).attr( + i += 100, b = b + atr(t, d.events, r, n, i, a), i -= 100, y.append("line").attr("x1", n + 190 / 2).attr("y1", i + s).attr("x2", n + 190 / 2).attr( "y2", i + s + (h ? s : u) + l + 120 ).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5"); @@ -97502,7 +97538,7 @@ var etr = /* @__PURE__ */ x(function(t, e, r, n) { n = n + 200, h && !((f = a.timeline) != null && f.disableMulticolor) && r++; } i = i - 10; -}, "drawTasks"), itr = /* @__PURE__ */ x(function(t, e, r, n, i, s) { +}, "drawTasks"), atr = /* @__PURE__ */ x(function(t, e, r, n, i, s) { let a = 0; const o = i; i = i + 100; @@ -97520,11 +97556,11 @@ var etr = /* @__PURE__ */ x(function(t, e, r, n) { a = a + d, h.attr("transform", `translate(${n}, ${i})`), i = i + 10 + d; } return i = o, a; -}, "drawEvents"), str = { +}, "drawEvents"), otr = { setConf: /* @__PURE__ */ x(() => { }, "setConf"), - draw: ntr -}, atr = /* @__PURE__ */ x((t) => { + draw: str +}, ltr = /* @__PURE__ */ x((t) => { let e = ""; for (let r = 0; r < t.THEME_COLOR_LIMIT; r++) t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], wp(t["lineColor" + r]) ? t["lineColor" + r] = Zt(t["lineColor" + r], 20) : t["lineColor" + r] = tr(t["lineColor" + r], 20); @@ -97565,11 +97601,11 @@ var etr = /* @__PURE__ */ x(function(t, e, r, n) { `; } return e; -}, "genSections"), otr = /* @__PURE__ */ x((t) => ` +}, "genSections"), ctr = /* @__PURE__ */ x((t) => ` .edge { stroke-width: 3; } - ${atr(t)} + ${ltr(t)} .section-root rect, .section-root path, .section-root circle { fill: ${t.git0}; } @@ -97588,15 +97624,15 @@ var etr = /* @__PURE__ */ x(function(t, e, r, n) { .eventWrapper { filter: brightness(120%); } -`, "getStyles"), ltr = otr, ctr = { - db: hve, - renderer: str, - parser: Ver, - styles: ltr +`, "getStyles"), utr = ctr, htr = { + db: fve, + renderer: otr, + parser: Yer, + styles: utr }; -const utr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const ftr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: ctr + diagram: htr }, Symbol.toStringTag, { value: "Module" })); function ji(t) { return ji = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { @@ -97620,7 +97656,7 @@ function X$(t, e, r) { writable: !1 }), t; } -function kve(t, e, r) { +function Sve(t, e, r) { return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, @@ -97629,13 +97665,13 @@ function kve(t, e, r) { }) : t[e] = r, t; } function Dl(t, e) { - return htr(t) || ftr(t, e) || Sve(t, e) || dtr(); + return dtr(t) || ptr(t, e) || Tve(t, e) || gtr(); } -function htr(t) { +function dtr(t) { if (Array.isArray(t)) return t; } -function ftr(t, e) { +function ptr(t, e) { var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"]; if (r != null) { var n = [], i = !0, s = !1, a, o; @@ -97655,7 +97691,7 @@ function ftr(t, e) { return n; } } -function Sve(t, e) { +function Tve(t, e) { if (!!t) { if (typeof t == "string") return JH(t, e); @@ -97672,14 +97708,14 @@ function JH(t, e) { n[r] = t[r]; return n; } -function dtr() { +function gtr() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } -function Tve(t, e) { +function Cve(t, e) { var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"]; if (!r) { - if (Array.isArray(t) || (r = Sve(t)) || e && t && typeof t.length == "number") { + if (Array.isArray(t) || (r = Tve(t)) || e && t && typeof t.length == "number") { r && (t = r); var n = 0, i = function() { }; @@ -97726,47 +97762,47 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } var Ii = typeof window > "u" ? null : window, eZ = Ii ? Ii.navigator : null; Ii && Ii.document; -var ptr = ji(""), Cve = ji({}), gtr = ji(function() { -}), mtr = typeof HTMLElement > "u" ? "undefined" : ji(HTMLElement), Fw = function(e) { +var mtr = ji(""), Eve = ji({}), vtr = ji(function() { +}), ytr = typeof HTMLElement > "u" ? "undefined" : ji(HTMLElement), Fw = function(e) { return e && e.instanceString && Gn(e.instanceString) ? e.instanceString() : null; }, Jt = function(e) { - return e != null && ji(e) == ptr; + return e != null && ji(e) == mtr; }, Gn = function(e) { - return e != null && ji(e) === gtr; + return e != null && ji(e) === vtr; }, vn = function(e) { return !Ro(e) && (Array.isArray ? Array.isArray(e) : e != null && e instanceof Array); }, zr = function(e) { - return e != null && ji(e) === Cve && !vn(e) && e.constructor === Object; -}, vtr = function(e) { - return e != null && ji(e) === Cve; + return e != null && ji(e) === Eve && !vn(e) && e.constructor === Object; +}, btr = function(e) { + return e != null && ji(e) === Eve; }, Lt = function(e) { return e != null && ji(e) === ji(1) && !isNaN(e); -}, ytr = function(e) { +}, xtr = function(e) { return Lt(e) && Math.floor(e) === e; }, aT = function(e) { - if (mtr !== "undefined") + if (ytr !== "undefined") return e != null && e instanceof HTMLElement; }, Ro = function(e) { - return zw(e) || Eve(e); + return zw(e) || _ve(e); }, zw = function(e) { return Fw(e) === "collection" && e._private.single; -}, Eve = function(e) { +}, _ve = function(e) { return Fw(e) === "collection" && !e._private.single; }, H$ = function(e) { return Fw(e) === "core"; -}, _ve = function(e) { +}, Ave = function(e) { return Fw(e) === "stylesheet"; -}, btr = function(e) { +}, wtr = function(e) { return Fw(e) === "event"; -}, ad = function(e) { +}, od = function(e) { return e == null ? !0 : !!(e === "" || e.match(/^\s+$/)); -}, xtr = function(e) { +}, Otr = function(e) { return typeof HTMLElement > "u" ? !1 : e instanceof HTMLElement; -}, wtr = function(e) { +}, ktr = function(e) { return zr(e) && Lt(e.x1) && Lt(e.x2) && Lt(e.y1) && Lt(e.y2); -}, Otr = function(e) { - return vtr(e) && Gn(e.then); -}, ktr = function() { +}, Str = function(e) { + return btr(e) && Gn(e.then); +}, Ttr = function() { return eZ && eZ.userAgent.match(/msie|trident|edge/i); }, Ib = function(e, r) { r || (r = function() { @@ -97791,16 +97827,16 @@ var ptr = ji(""), Cve = ji({}), gtr = ji(function() { return t.replace(/(-\w)/g, function(e) { return e[1].toUpperCase(); }); -}), Ave = Ib(function(t, e) { +}), Lve = Ib(function(t, e) { return t + e[0].toUpperCase() + e.substring(1); }, function(t, e) { return t + "$" + e; }), tZ = function(e) { - return ad(e) ? e : e.charAt(0).toUpperCase() + e.substring(1); -}, qi = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", Str = "rgb[a]?\\((" + qi + "[%]?)\\s*,\\s*(" + qi + "[%]?)\\s*,\\s*(" + qi + "[%]?)(?:\\s*,\\s*(" + qi + "))?\\)", Ttr = "rgb[a]?\\((?:" + qi + "[%]?)\\s*,\\s*(?:" + qi + "[%]?)\\s*,\\s*(?:" + qi + "[%]?)(?:\\s*,\\s*(?:" + qi + "))?\\)", Ctr = "hsl[a]?\\((" + qi + ")\\s*,\\s*(" + qi + "[%])\\s*,\\s*(" + qi + "[%])(?:\\s*,\\s*(" + qi + "))?\\)", Etr = "hsl[a]?\\((?:" + qi + ")\\s*,\\s*(?:" + qi + "[%])\\s*,\\s*(?:" + qi + "[%])(?:\\s*,\\s*(?:" + qi + "))?\\)", _tr = "\\#[0-9a-fA-F]{3}", Atr = "\\#[0-9a-fA-F]{6}", Lve = function(e, r) { + return od(e) ? e : e.charAt(0).toUpperCase() + e.substring(1); +}, qi = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", Ctr = "rgb[a]?\\((" + qi + "[%]?)\\s*,\\s*(" + qi + "[%]?)\\s*,\\s*(" + qi + "[%]?)(?:\\s*,\\s*(" + qi + "))?\\)", Etr = "rgb[a]?\\((?:" + qi + "[%]?)\\s*,\\s*(?:" + qi + "[%]?)\\s*,\\s*(?:" + qi + "[%]?)(?:\\s*,\\s*(?:" + qi + "))?\\)", _tr = "hsl[a]?\\((" + qi + ")\\s*,\\s*(" + qi + "[%])\\s*,\\s*(" + qi + "[%])(?:\\s*,\\s*(" + qi + "))?\\)", Atr = "hsl[a]?\\((?:" + qi + ")\\s*,\\s*(?:" + qi + "[%])\\s*,\\s*(?:" + qi + "[%])(?:\\s*,\\s*(?:" + qi + "))?\\)", Ltr = "\\#[0-9a-fA-F]{3}", Rtr = "\\#[0-9a-fA-F]{6}", Rve = function(e, r) { return e < r ? -1 : e > r ? 1 : 0; -}, Ltr = function(e, r) { - return -1 * Lve(e, r); +}, Mtr = function(e, r) { + return -1 * Rve(e, r); }, ur = Object.assign != null ? Object.assign.bind(Object) : function(t) { for (var e = arguments, r = 1; r < e.length; r++) { var n = e[r]; @@ -97811,17 +97847,17 @@ var ptr = ji(""), Cve = ji({}), gtr = ji(function() { } } return t; -}, Rtr = function(e) { +}, Dtr = function(e) { if (!(!(e.length === 4 || e.length === 7) || e[0] !== "#")) { var r = e.length === 4, n, i, s, a = 16; return r ? (n = parseInt(e[1] + e[1], a), i = parseInt(e[2] + e[2], a), s = parseInt(e[3] + e[3], a)) : (n = parseInt(e[1] + e[2], a), i = parseInt(e[3] + e[4], a), s = parseInt(e[5] + e[6], a)), [n, i, s]; } -}, Mtr = function(e) { +}, Ptr = function(e) { var r, n, i, s, a, o, l, u; function h(g, m, v) { return v < 0 && (v += 1), v > 1 && (v -= 1), v < 1 / 6 ? g + (m - g) * 6 * v : v < 1 / 2 ? m : v < 2 / 3 ? g + (m - g) * (2 / 3 - v) * 6 : g; } - var f = new RegExp("^" + Ctr + "$").exec(e); + var f = new RegExp("^" + _tr + "$").exec(e); if (f) { if (n = parseInt(f[1]), n < 0 ? n = (360 - -1 * n % 360) % 360 : n > 360 && (n = n % 360), n /= 360, i = parseFloat(f[2]), i < 0 || i > 100 || (i = i / 100, s = parseFloat(f[3]), s < 0 || s > 100) || (s = s / 100, a = f[4], a !== void 0 && (a = parseFloat(a), a < 0 || a > 1))) return; @@ -97834,8 +97870,8 @@ var ptr = ji(""), Cve = ji({}), gtr = ji(function() { r = [o, l, u, a]; } return r; -}, Dtr = function(e) { - var r, n = new RegExp("^" + Str + "$").exec(e); +}, Ntr = function(e) { + var r, n = new RegExp("^" + Ctr + "$").exec(e); if (n) { r = []; for (var i = [], s = 1; s <= 3; s++) { @@ -97855,11 +97891,11 @@ var ptr = ji(""), Cve = ji({}), gtr = ji(function() { } } return r; -}, Ptr = function(e) { - return Itr[e.toLowerCase()]; -}, Ntr = function(e) { - return (vn(e) ? e : null) || Ptr(e) || Rtr(e) || Dtr(e) || Mtr(e); -}, Itr = { +}, Itr = function(e) { + return Btr[e.toLowerCase()]; +}, $tr = function(e) { + return (vn(e) ? e : null) || Itr(e) || Dtr(e) || Ntr(e) || Ptr(e); +}, Btr = { transparent: [0, 0, 0, 0], aliceblue: [240, 248, 255], antiquewhite: [250, 235, 215], @@ -98008,14 +98044,14 @@ var ptr = ji(""), Cve = ji({}), gtr = ji(function() { whitesmoke: [245, 245, 245], yellow: [255, 255, 0], yellowgreen: [154, 205, 50] -}, Rve = function(e) { +}, Mve = function(e) { for (var r = e.map, n = e.keys, i = n.length, s = 0; s < i; s++) { var a = n[s]; if (zr(a)) throw Error("Tried to set map with object key"); s < n.length - 1 ? (r[a] == null && (r[a] = {}), r = r[a]) : r[a] = e.value; } -}, Mve = function(e) { +}, Dve = function(e) { for (var r = e.map, n = e.keys, i = n.length, s = 0; s < i; s++) { var a = n[s]; if (zr(a)) @@ -98025,55 +98061,55 @@ var ptr = ji(""), Cve = ji({}), gtr = ji(function() { } return r; }; -function $tr(t) { +function Ftr(t) { var e = typeof t; return t != null && (e == "object" || e == "function"); } -var cp = $tr, Ty = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function Btr(t, e) { +var cp = Ftr, Ty = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; +function ztr(t, e) { return e = { exports: {} }, t(e, e.exports), e.exports; } -var Ftr = typeof Ty == "object" && Ty && Ty.Object === Object && Ty, ztr = Ftr, Qtr = typeof self == "object" && self && self.Object === Object && self, Utr = ztr || Qtr || Function("return this")(), FE = Utr, Vtr = function() { +var Qtr = typeof Ty == "object" && Ty && Ty.Object === Object && Ty, Utr = Qtr, Vtr = typeof self == "object" && self && self.Object === Object && self, qtr = Utr || Vtr || Function("return this")(), FE = qtr, Ytr = function() { return FE.Date.now(); -}, o7 = Vtr, qtr = /\s/; -function Ytr(t) { - for (var e = t.length; e-- && qtr.test(t.charAt(e)); ) +}, o7 = Ytr, Wtr = /\s/; +function Gtr(t) { + for (var e = t.length; e-- && Wtr.test(t.charAt(e)); ) ; return e; } -var Wtr = Ytr, Gtr = /^\s+/; -function Xtr(t) { - return t && t.slice(0, Wtr(t) + 1).replace(Gtr, ""); +var Xtr = Gtr, Htr = /^\s+/; +function Ztr(t) { + return t && t.slice(0, Xtr(t) + 1).replace(Htr, ""); } -var Htr = Xtr, Ztr = FE.Symbol, f1 = Ztr, Dve = Object.prototype, jtr = Dve.hasOwnProperty, Ktr = Dve.toString, Xv = f1 ? f1.toStringTag : void 0; -function Jtr(t) { - var e = jtr.call(t, Xv), r = t[Xv]; +var jtr = Ztr, Ktr = FE.Symbol, f1 = Ktr, Pve = Object.prototype, Jtr = Pve.hasOwnProperty, err = Pve.toString, Xv = f1 ? f1.toStringTag : void 0; +function trr(t) { + var e = Jtr.call(t, Xv), r = t[Xv]; try { t[Xv] = void 0; var n = !0; } catch { } - var i = Ktr.call(t); + var i = err.call(t); return n && (e ? t[Xv] = r : delete t[Xv]), i; } -var err = Jtr, trr = Object.prototype, rrr = trr.toString; -function nrr(t) { - return rrr.call(t); +var rrr = trr, nrr = Object.prototype, irr = nrr.toString; +function srr(t) { + return irr.call(t); } -var irr = nrr, srr = "[object Null]", arr = "[object Undefined]", rZ = f1 ? f1.toStringTag : void 0; -function orr(t) { - return t == null ? t === void 0 ? arr : srr : rZ && rZ in Object(t) ? err(t) : irr(t); +var arr = srr, orr = "[object Null]", lrr = "[object Undefined]", rZ = f1 ? f1.toStringTag : void 0; +function crr(t) { + return t == null ? t === void 0 ? lrr : orr : rZ && rZ in Object(t) ? rrr(t) : arr(t); } -var Pve = orr; -function lrr(t) { +var Nve = crr; +function urr(t) { return t != null && typeof t == "object"; } -var crr = lrr, urr = "[object Symbol]"; -function hrr(t) { - return typeof t == "symbol" || crr(t) && Pve(t) == urr; +var hrr = urr, frr = "[object Symbol]"; +function drr(t) { + return typeof t == "symbol" || hrr(t) && Nve(t) == frr; } -var Qw = hrr, nZ = 0 / 0, frr = /^[-+]0x[0-9a-f]+$/i, drr = /^0b[01]+$/i, prr = /^0o[0-7]+$/i, grr = parseInt; -function mrr(t) { +var Qw = drr, nZ = 0 / 0, prr = /^[-+]0x[0-9a-f]+$/i, grr = /^0b[01]+$/i, mrr = /^0o[0-7]+$/i, vrr = parseInt; +function yrr(t) { if (typeof t == "number") return t; if (Qw(t)) @@ -98084,16 +98120,16 @@ function mrr(t) { } if (typeof t != "string") return t === 0 ? t : +t; - t = Htr(t); - var r = drr.test(t); - return r || prr.test(t) ? grr(t.slice(2), r ? 2 : 8) : frr.test(t) ? nZ : +t; + t = jtr(t); + var r = grr.test(t); + return r || mrr.test(t) ? vrr(t.slice(2), r ? 2 : 8) : prr.test(t) ? nZ : +t; } -var iZ = mrr, vrr = "Expected a function", yrr = Math.max, brr = Math.min; -function xrr(t, e, r) { +var iZ = yrr, brr = "Expected a function", xrr = Math.max, wrr = Math.min; +function Orr(t, e, r) { var n, i, s, a, o, l, u = 0, h = !1, f = !1, d = !0; if (typeof t != "function") - throw new TypeError(vrr); - e = iZ(e) || 0, cp(r) && (h = !!r.leading, f = "maxWait" in r, s = f ? yrr(iZ(r.maxWait) || 0, e) : s, d = "trailing" in r ? !!r.trailing : d); + throw new TypeError(brr); + e = iZ(e) || 0, cp(r) && (h = !!r.leading, f = "maxWait" in r, s = f ? xrr(iZ(r.maxWait) || 0, e) : s, d = "trailing" in r ? !!r.trailing : d); function p(C) { var T = n, A = i; return n = i = void 0, u = C, a = t.apply(A, T), a; @@ -98103,7 +98139,7 @@ function xrr(t, e, r) { } function m(C) { var T = C - l, A = C - u, E = e - T; - return f ? brr(E, s - A) : E; + return f ? wrr(E, s - A) : E; } function v(C) { var T = C - l, A = C - u; @@ -98136,11 +98172,11 @@ function xrr(t, e, r) { } return S.cancel = w, S.flush = O, S; } -var zE = xrr, l7 = Ii ? Ii.performance : null, Nve = l7 && l7.now ? function() { +var zE = Orr, l7 = Ii ? Ii.performance : null, Ive = l7 && l7.now ? function() { return l7.now(); } : function() { return Date.now(); -}, wrr = function() { +}, krr = function() { if (Ii) { if (Ii.requestAnimationFrame) return function(t) { @@ -98161,28 +98197,28 @@ var zE = xrr, l7 = Ii ? Ii.performance : null, Nve = l7 && l7.now ? function() { } return function(t) { t && setTimeout(function() { - t(Nve()); + t(Ive()); }, 1e3 / 60); }; }(), oT = function(e) { - return wrr(e); -}, Eh = Nve, Eg = 9261, Ive = 65599, Cy = 5381, $ve = function(e) { + return krr(e); +}, Eh = Ive, Eg = 9261, $ve = 65599, Cy = 5381, Bve = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Eg, n = r, i; i = e.next(), !i.done; ) - n = n * Ive + i.value | 0; + n = n * $ve + i.value | 0; return n; }, $b = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Eg; - return r * Ive + e | 0; + return r * $ve + e | 0; }, Bb = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Cy; return (r << 5) + r + e | 0; -}, Orr = function(e, r) { +}, Srr = function(e, r) { return e * 2097152 + r; -}, Wh = function(e) { +}, Gh = function(e) { return e[0] * 2097152 + e[1]; }, L4 = function(e, r) { return [$b(e[0], r[0]), Bb(e[1], r[1])]; -}, krr = function(e, r) { +}, Trr = function(e, r) { var n = { value: 0, done: !1 @@ -98191,7 +98227,7 @@ var zE = xrr, l7 = Ii ? Ii.performance : null, Nve = l7 && l7.now ? function() { return i < s ? n.value = e[i++] : n.done = !0, n; } }; - return $ve(a, r); + return Bve(a, r); }, up = function(e, r) { var n = { value: 0, @@ -98201,16 +98237,16 @@ var zE = xrr, l7 = Ii ? Ii.performance : null, Nve = l7 && l7.now ? function() { return i < s ? n.value = e.charCodeAt(i++) : n.done = !0, n; } }; - return $ve(a, r); -}, Bve = function() { - return Srr(arguments); -}, Srr = function(e) { + return Bve(a, r); +}, Fve = function() { + return Crr(arguments); +}, Crr = function(e) { for (var r, n = 0; n < e.length; n++) { var i = e[n]; n === 0 ? r = up(i) : r = up(i, r); } return r; -}, sZ = !0, Trr = console.warn != null, Crr = console.trace != null, j$ = Number.MAX_SAFE_INTEGER || 9007199254740991, Fve = function() { +}, sZ = !0, Err = console.warn != null, _rr = console.trace != null, j$ = Number.MAX_SAFE_INTEGER || 9007199254740991, zve = function() { return !0; }, lT = function() { return !1; @@ -98219,25 +98255,25 @@ var zE = xrr, l7 = Ii ? Ii.performance : null, Nve = l7 && l7.now ? function() { }, K$ = function() { }, ii = function(e) { throw new Error(e); -}, zve = function(e) { +}, Qve = function(e) { if (e !== void 0) sZ = !!e; else return sZ; }, rn = function(e) { - !zve() || (Trr ? console.warn(e) : (console.log(e), Crr && console.trace())); -}, Err = function(e) { + !Qve() || (Err ? console.warn(e) : (console.log(e), _rr && console.trace())); +}, Arr = function(e) { return ur({}, e); }, Hc = function(e) { - return e == null ? e : vn(e) ? e.slice() : zr(e) ? Err(e) : e; -}, _rr = function(e) { + return e == null ? e : vn(e) ? e.slice() : zr(e) ? Arr(e) : e; +}, Lrr = function(e) { return e.slice(); -}, Qve = function(e, r) { +}, Uve = function(e, r) { for (r = e = ""; e++ < 36; r += e * 51 & 52 ? (e ^ 15 ? 8 ^ Math.random() * (e ^ 20 ? 16 : 4) : 4).toString(16) : "-") ; return r; -}, Arr = {}, Uve = function() { - return Arr; +}, Rrr = {}, Vve = function() { + return Rrr; }, Bs = function(e) { var r = Object.keys(e); return function(n) { @@ -98247,21 +98283,21 @@ var zE = xrr, l7 = Ii ? Ii.performance : null, Nve = l7 && l7.now ? function() { } return i; }; -}, od = function(e, r, n) { +}, ld = function(e, r, n) { for (var i = e.length - 1; i >= 0 && !(e[i] === r && (e.splice(i, 1), n)); i--) ; }, J$ = function(e) { e.splice(0, e.length); -}, Lrr = function(e, r) { +}, Mrr = function(e, r) { for (var n = 0; n < r.length; n++) { var i = r[n]; e.push(i); } }, Fl = function(e, r, n) { - return n && (r = Ave(n, r)), e[r]; -}, of = function(e, r, n, i) { - n && (r = Ave(n, r)), e[r] = i; -}, Rrr = /* @__PURE__ */ function() { + return n && (r = Lve(n, r)), e[r]; +}, lf = function(e, r, n, i) { + n && (r = Lve(n, r)), e[r] = i; +}, Drr = /* @__PURE__ */ function() { function t() { G$(this, t), this._obj = {}; } @@ -98291,7 +98327,7 @@ var zE = xrr, l7 = Ii ? Ii.performance : null, Nve = l7 && l7.now ? function() { return this._obj[r]; } }]), t; -}(), Zc = typeof Map < "u" ? Map : Rrr, Mrr = "undefined", Drr = /* @__PURE__ */ function() { +}(), Zc = typeof Map < "u" ? Map : Drr, Prr = "undefined", Nrr = /* @__PURE__ */ function() { function t(e) { if (G$(this, t), this._obj = /* @__PURE__ */ Object.create(null), this.size = 0, e != null) { var r; @@ -98341,7 +98377,7 @@ var zE = xrr, l7 = Ii ? Ii.performance : null, Nve = l7 && l7.now ? function() { return this.toArray().forEach(r, n); } }]), t; -}(), tv = (typeof Set > "u" ? "undefined" : ji(Set)) !== Mrr ? Set : Drr, QE = function(e, r) { +}(), tv = (typeof Set > "u" ? "undefined" : ji(Set)) !== Prr ? Set : Nrr, QE = function(e, r) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; if (e === void 0 || r === void 0 || !H$(e)) { ii("An element must have a core reference and parameters set"); @@ -98483,7 +98519,7 @@ var zE = xrr, l7 = Ii ? Ii.performance : null, Nve = l7 && l7.now ? function() { }; Fb.bfs = Fb.breadthFirstSearch; Fb.dfs = Fb.depthFirstSearch; -var Prr = Btr(function(t, e) { +var Irr = ztr(function(t, e) { (function() { var r, n, i, s, a, o, l, u, h, f, d, p, g, m, v; i = Math.floor, f = Math.min, n = function(y, b) { @@ -98593,13 +98629,13 @@ var Prr = Btr(function(t, e) { return r; }); }).call(Ty); -}), Uw = Prr, Nrr = Bs({ +}), Uw = Irr, $rr = Bs({ root: null, weight: function(e) { return 1; }, directed: !1 -}), Irr = { +}), Brr = { dijkstra: function(e) { if (!zr(e)) { var r = arguments; @@ -98609,7 +98645,7 @@ var Prr = Btr(function(t, e) { directed: r[2] }; } - var n = Nrr(e), i = n.root, s = n.weight, a = n.directed, o = this, l = s, u = Jt(i) ? this.filter(i)[0] : i[0], h = {}, f = {}, d = {}, p = this.byGroup(), g = p.nodes, m = p.edges; + var n = $rr(e), i = n.root, s = n.weight, a = n.directed, o = this, l = s, u = Jt(i) ? this.filter(i)[0] : i[0], h = {}, f = {}, d = {}, p = this.byGroup(), g = p.nodes, m = p.edges; m.unmergeBy(function(P) { return P.isLoop(); }); @@ -98659,7 +98695,7 @@ var Prr = Btr(function(t, e) { } }; } -}, $rr = { +}, Frr = { kruskal: function(e) { e = e || function(w) { return 1; @@ -98680,7 +98716,7 @@ var Prr = Btr(function(t, e) { } return o; } -}, Brr = Bs({ +}, zrr = Bs({ root: null, goal: null, weight: function(e) { @@ -98690,9 +98726,9 @@ var Prr = Btr(function(t, e) { return 0; }, directed: !1 -}), Frr = { +}), Qrr = { aStar: function(e) { - var r = this.cy(), n = Brr(e), i = n.root, s = n.goal, a = n.heuristic, o = n.directed, l = n.weight; + var r = this.cy(), n = zrr(e), i = n.root, s = n.goal, a = n.heuristic, o = n.directed, l = n.weight; i = r.collection(i)[0], s = r.collection(s)[0]; var u = i.id(), h = s.id(), f = {}, d = {}, p = {}, g = new Uw(function(F, B) { return d[F.id()] - d[B.id()]; @@ -98738,14 +98774,14 @@ var Prr = Btr(function(t, e) { steps: T }; } -}, zrr = Bs({ +}, Urr = Bs({ weight: function(e) { return 1; }, directed: !1 -}), Qrr = { +}), Vrr = { floydWarshall: function(e) { - for (var r = this.cy(), n = zrr(e), i = n.weight, s = n.directed, a = i, o = this.byGroup(), l = o.nodes, u = o.edges, h = l.length, f = h * h, d = function(Q) { + for (var r = this.cy(), n = Urr(e), i = n.weight, s = n.directed, a = i, o = this.byGroup(), l = o.nodes, u = o.edges, h = l.length, f = h * h, d = function(Q) { return l.indexOf(Q); }, p = function(Q) { return l[Q]; @@ -98792,15 +98828,15 @@ var Prr = Btr(function(t, e) { }; return B; } -}, Urr = Bs({ +}, qrr = Bs({ weight: function(e) { return 1; }, directed: !1, root: null -}), Vrr = { +}), Yrr = { bellmanFord: function(e) { - var r = this, n = Urr(e), i = n.weight, s = n.directed, a = n.root, o = i, l = this, u = this.cy(), h = this.byGroup(), f = h.edges, d = h.nodes, p = d.length, g = new Zc(), m = !1, v = []; + var r = this, n = qrr(e), i = n.weight, s = n.directed, a = n.root, o = i, l = this, u = this.cy(), h = this.byGroup(), f = h.edges, d = h.nodes, p = d.length, g = new Zc(), m = !1, v = []; a = u.collection(a)[0], f.unmergeBy(function(he) { return he.isLoop(); }); @@ -98868,7 +98904,7 @@ var Prr = Btr(function(t, e) { negativeWeightCycles: v }; } -}, qrr = Math.sqrt(2), Yrr = function(e, r, n) { +}, Wrr = Math.sqrt(2), Grr = function(e, r, n) { n.length === 0 && ii("Karger-Stein must be run on a connected (sub)graph"); for (var i = n[e], s = i[1], a = i[2], o = r[s], l = r[a], u = n, h = u.length - 1; h >= 0; h--) { var f = u[h], d = f[1], p = f[2]; @@ -98884,16 +98920,16 @@ var Prr = Btr(function(t, e) { }, c7 = function(e, r, n, i) { for (; n > i; ) { var s = Math.floor(Math.random() * r.length); - r = Yrr(s, e, r), n--; + r = Grr(s, e, r), n--; } return r; -}, Wrr = { +}, Xrr = { kargerStein: function() { var e = this, r = this.byGroup(), n = r.nodes, i = r.edges; i.unmergeBy(function(D) { return D.isLoop(); }); - var s = n.length, a = i.length, o = Math.ceil(Math.pow(Math.log(s) / Math.LN2, 2)), l = Math.floor(s / qrr); + var s = n.length, a = i.length, o = Math.ceil(Math.pow(Math.log(s) / Math.LN2, 2)), l = Math.floor(s / Wrr); if (s < 2) { ii("At least 2 nodes are required for Karger-Stein algorithm"); return; @@ -98934,7 +98970,7 @@ var Prr = Btr(function(t, e) { }; return N; } -}, Grr = function(e) { +}, Hrr = function(e) { return { x: e.x, y: e.y @@ -98944,7 +98980,7 @@ var Prr = Btr(function(t, e) { x: e.x * r + n.x, y: e.y * r + n.y }; -}, Vve = function(e, r, n) { +}, qve = function(e, r, n) { return { x: (e.x - n.x) / r, y: (e.y - n.y) / r @@ -98954,25 +98990,25 @@ var Prr = Btr(function(t, e) { x: e[0], y: e[1] }; -}, Xrr = function(e) { +}, Zrr = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = 1 / 0, s = r; s < n; s++) { var a = e[s]; isFinite(a) && (i = Math.min(a, i)); } return i; -}, Hrr = function(e) { +}, jrr = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = -1 / 0, s = r; s < n; s++) { var a = e[s]; isFinite(a) && (i = Math.max(a, i)); } return i; -}, Zrr = function(e) { +}, Krr = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = 0, s = 0, a = r; a < n; a++) { var o = e[a]; isFinite(o) && (i += o, s++); } return i / s; -}, jrr = function(e) { +}, Jrr = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : !0; i ? e = e.slice(r, n) : (n < e.length && e.splice(n, e.length - n), r > 0 && e.splice(0, r)); for (var o = 0, l = e.length - 1; l >= 0; l--) { @@ -98984,20 +99020,20 @@ var Prr = Btr(function(t, e) { }); var h = e.length, f = Math.floor(h / 2); return h % 2 !== 0 ? e[f + 1 + o] : (e[f - 1 + o] + e[f + o]) / 2; -}, Krr = function(e) { +}, enr = function(e) { return Math.PI * e / 180; }, R4 = function(e, r) { return Math.atan2(r, e) - Math.PI / 2; }, eB = Math.log2 || function(t) { return Math.log(t) / Math.log(2); -}, qve = function(e) { +}, Yve = function(e) { return e > 0 ? 1 : e < 0 ? -1 : 0; }, hp = function(e, r) { return Math.sqrt(Ud(e, r)); }, Ud = function(e, r) { var n = r.x - e.x, i = r.y - e.y; return n * n + i * i; -}, Jrr = function(e) { +}, tnr = function(e) { for (var r = e.length, n = 0, i = 0; i < r; i++) n += e[i]; for (var s = 0; s < r; s++) @@ -99010,7 +99046,7 @@ var Prr = Btr(function(t, e) { x: ts(e.x, r.x, n.x, i), y: ts(e.y, r.y, n.y, i) }; -}, enr = function(e, r, n, i) { +}, rnr = function(e, r, n, i) { var s = { x: r.x - e.x, y: r.y - e.y @@ -99054,7 +99090,7 @@ var Prr = Btr(function(t, e) { h: e.h }; } -}, tnr = function(e) { +}, nnr = function(e) { return { x1: e.x1, x2: e.x2, @@ -99063,9 +99099,9 @@ var Prr = Btr(function(t, e) { y2: e.y2, h: e.h }; -}, rnr = function(e) { +}, inr = function(e) { e.x1 = 1 / 0, e.y1 = 1 / 0, e.x2 = -1 / 0, e.y2 = -1 / 0, e.w = 0, e.h = 0; -}, nnr = function(e, r, n) { +}, snr = function(e, r, n) { return { x1: e.x1 + r, x2: e.x2 + r, @@ -99074,9 +99110,9 @@ var Prr = Btr(function(t, e) { w: e.w, h: e.h }; -}, Yve = function(e, r) { +}, Wve = function(e, r) { e.x1 = Math.min(e.x1, r.x1), e.x2 = Math.max(e.x2, r.x2), e.w = e.x2 - e.x1, e.y1 = Math.min(e.y1, r.y1), e.y2 = Math.max(e.y2, r.y2), e.h = e.y2 - e.y1; -}, inr = function(e, r, n) { +}, anr = function(e, r, n) { e.x1 = Math.min(e.x1, r), e.x2 = Math.max(e.x2, r), e.w = e.x2 - e.x1, e.y1 = Math.min(e.y1, n), e.y2 = Math.max(e.y2, n), e.h = e.y2 - e.y1; }, ek = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; @@ -99098,32 +99134,32 @@ var Prr = Btr(function(t, e) { return !(e.x1 > r.x2 || r.x1 > e.x2 || e.x2 < r.x1 || r.x2 < e.x1 || e.y2 < r.y1 || r.y2 < e.y1 || e.y1 > r.y2 || r.y1 > e.y2); }, d1 = function(e, r, n) { return e.x1 <= r && r <= e.x2 && e.y1 <= n && n <= e.y2; -}, snr = function(e, r) { +}, onr = function(e, r) { return d1(e, r.x, r.y); -}, Wve = function(e, r) { +}, Gve = function(e, r) { return d1(e, r.x1, r.y1) && d1(e, r.x2, r.y2); -}, Gve = function(e, r, n, i, s, a, o) { +}, Xve = function(e, r, n, i, s, a, o) { var l = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : "auto", u = l === "auto" ? fp(s, a) : l, h = s / 2, f = a / 2; u = Math.min(u, h, f); var d = u !== h, p = u !== f, g; if (d) { var m = n - h + u - o, v = i - f - o, y = n + h - u + o, b = v; - if (g = yf(e, r, n, i, m, v, y, b, !1), g.length > 0) + if (g = bf(e, r, n, i, m, v, y, b, !1), g.length > 0) return g; } if (p) { var w = n + h + o, O = i - f + u - o, S = w, C = i + f - u + o; - if (g = yf(e, r, n, i, w, O, S, C, !1), g.length > 0) + if (g = bf(e, r, n, i, w, O, S, C, !1), g.length > 0) return g; } if (d) { var T = n - h + u - o, A = i + f + o, E = n + h - u + o, R = A; - if (g = yf(e, r, n, i, T, A, E, R, !1), g.length > 0) + if (g = bf(e, r, n, i, T, A, E, R, !1), g.length > 0) return g; } if (p) { var _ = n - h - o, L = i - f + u - o, $ = _, k = i + f - u + o; - if (g = yf(e, r, n, i, _, L, $, k, !1), g.length > 0) + if (g = bf(e, r, n, i, _, L, $, k, !1), g.length > 0) return g; } var P; @@ -99148,10 +99184,10 @@ var Prr = Btr(function(t, e) { return [P[0], P[1]]; } return []; -}, anr = function(e, r, n, i, s, a, o) { +}, lnr = function(e, r, n, i, s, a, o) { var l = o, u = Math.min(n, s), h = Math.max(n, s), f = Math.min(i, a), d = Math.max(i, a); return u - l <= e && e <= h + l && f - l <= r && r <= d + l; -}, onr = function(e, r, n, i, s, a, o, l, u) { +}, cnr = function(e, r, n, i, s, a, o, l, u) { var h = { x1: Math.min(n, o, s) - u, x2: Math.max(n, o, s) + u, @@ -99159,14 +99195,14 @@ var Prr = Btr(function(t, e) { y2: Math.max(i, l, a) + u }; return !(e < h.x1 || e > h.x2 || r < h.y1 || r > h.y2); -}, lnr = function(e, r, n, i) { +}, unr = function(e, r, n, i) { n -= i; var s = r * r - 4 * e * n; if (s < 0) return []; var a = Math.sqrt(s), o = 2 * e, l = (-r + a) / o, u = (-r - a) / o; return [l, u]; -}, cnr = function(e, r, n, i, s) { +}, hnr = function(e, r, n, i, s) { var a = 1e-5; e === 0 && (e = a), r /= e, n /= e, i /= e; var o, l, u, h, f, d, p, g; @@ -99179,16 +99215,16 @@ var Prr = Btr(function(t, e) { return; } l = -l, h = l * l * l, h = Math.acos(u / Math.sqrt(h)), g = 2 * Math.sqrt(l), s[0] = -p + g * Math.cos(h / 3), s[2] = -p + g * Math.cos((h + 2 * Math.PI) / 3), s[4] = -p + g * Math.cos((h + 4 * Math.PI) / 3); -}, unr = function(e, r, n, i, s, a, o, l) { +}, fnr = function(e, r, n, i, s, a, o, l) { var u = 1 * n * n - 4 * n * s + 2 * n * o + 4 * s * s - 4 * s * o + o * o + i * i - 4 * i * a + 2 * i * l + 4 * a * a - 4 * a * l + l * l, h = 1 * 9 * n * s - 3 * n * n - 3 * n * o - 6 * s * s + 3 * s * o + 9 * i * a - 3 * i * i - 3 * i * l - 6 * a * a + 3 * a * l, f = 1 * 3 * n * n - 6 * n * s + n * o - n * e + 2 * s * s + 2 * s * e - o * e + 3 * i * i - 6 * i * a + i * l - i * r + 2 * a * a + 2 * a * r - l * r, d = 1 * n * s - n * n + n * e - s * e + i * a - i * i + i * r - a * r, p = []; - cnr(u, h, f, d, p); + hnr(u, h, f, d, p); for (var g = 1e-7, m = [], v = 0; v < 6; v += 2) Math.abs(p[v + 1]) < g && p[v] >= 0 && p[v] <= 1 && m.push(p[v]); m.push(1), m.push(0); for (var y = -1, b, w, O, S = 0; S < m.length; S++) b = Math.pow(1 - m[S], 2) * n + 2 * (1 - m[S]) * m[S] * s + m[S] * m[S] * o, w = Math.pow(1 - m[S], 2) * i + 2 * (1 - m[S]) * m[S] * a + m[S] * m[S] * l, O = Math.pow(b - e, 2) + Math.pow(w - r, 2), y >= 0 ? O < y && (y = O) : y = O; return y; -}, hnr = function(e, r, n, i, s, a) { +}, dnr = function(e, r, n, i, s, a) { var o = [e - n, r - i], l = [s - n, a - i], u = l[0] * l[0] + l[1] * l[1], h = o[0] * o[0] + o[1] * o[1], f = o[0] * l[0] + o[1] * l[1], d = f * f / u; return f < 0 ? h : d > u ? (e - s) * (e - s) + (r - a) * (r - a) : h - d; }, Xa = function(e, r, n) { @@ -99211,7 +99247,7 @@ var Prr = Btr(function(t, e) { } else m = h; return Xa(e, r, m); -}, fnr = function(e, r, n, i, s, a, o, l) { +}, pnr = function(e, r, n, i, s, a, o, l) { for (var u = new Array(n.length * 2), h = 0; h < l.length; h++) { var f = l[h]; u[h * 4 + 0] = f.startX, u[h * 4 + 1] = f.startY, u[h * 4 + 2] = f.stopX, u[h * 4 + 3] = f.stopY; @@ -99223,7 +99259,7 @@ var Prr = Btr(function(t, e) { }, cT = function(e) { for (var r = new Array(e.length / 2), n, i, s, a, o, l, u, h, f = 0; f < e.length / 4; f++) { n = e[f * 4], i = e[f * 4 + 1], s = e[f * 4 + 2], a = e[f * 4 + 3], f < e.length / 4 - 1 ? (o = e[(f + 1) * 4], l = e[(f + 1) * 4 + 1], u = e[(f + 1) * 4 + 2], h = e[(f + 1) * 4 + 3]) : (o = e[0], l = e[1], u = e[2], h = e[3]); - var d = yf(n, i, s, a, o, l, u, h, !0); + var d = bf(n, i, s, a, o, l, u, h, !0); r[f * 2] = d[0], r[f * 2 + 1] = d[1]; } return r; @@ -99234,7 +99270,7 @@ var Prr = Btr(function(t, e) { n[l * 4] = i + d * r, n[l * 4 + 1] = s + p * r, n[l * 4 + 2] = a + d * r, n[l * 4 + 3] = o + p * r; } return n; -}, dnr = function(e, r, n, i, s, a) { +}, gnr = function(e, r, n, i, s, a) { var o = n - e, l = i - r; o /= s, l /= a; var u = Math.sqrt(o * o + l * l), h = u - 1; @@ -99261,7 +99297,7 @@ var Prr = Btr(function(t, e) { return [w, O]; }, u7 = function(e, r, n) { return r <= e && e <= n || n <= e && e <= r ? e : e <= r && r <= n || n <= r && r <= e ? r : n; -}, yf = function(e, r, n, i, s, a, o, l, u) { +}, bf = function(e, r, n, i, s, a, o, l, u) { var h = e - s, f = n - e, d = o - s, p = r - a, g = i - r, m = l - a, v = d * p - m * h, y = f * p - g * h, b = m * f - d * g; if (b !== 0) { var w = v / b, O = y / b, S = 1e-3, C = 0 - S, T = 1 + S; @@ -99283,15 +99319,15 @@ var Prr = Btr(function(t, e) { } else p = n; for (var v, y, b, w, O = 0; O < p.length / 2; O++) - v = p[O * 2], y = p[O * 2 + 1], O < p.length / 2 - 1 ? (b = p[(O + 1) * 2], w = p[(O + 1) * 2 + 1]) : (b = p[0], w = p[1]), h = yf(e, r, i, s, v, y, b, w), h.length !== 0 && u.push(h[0], h[1]); + v = p[O * 2], y = p[O * 2 + 1], O < p.length / 2 - 1 ? (b = p[(O + 1) * 2], w = p[(O + 1) * 2 + 1]) : (b = p[0], w = p[1]), h = bf(e, r, i, s, v, y, b, w), h.length !== 0 && u.push(h[0], h[1]); return u; -}, pnr = function(e, r, n, i, s, a, o, l, u) { +}, mnr = function(e, r, n, i, s, a, o, l, u) { var h = [], f, d = new Array(n.length * 2); u.forEach(function(b, w) { w === 0 ? (d[d.length - 2] = b.startX, d[d.length - 1] = b.startY) : (d[w * 4 - 2] = b.startX, d[w * 4 - 1] = b.startY), d[w * 4] = b.stopX, d[w * 4 + 1] = b.stopY, f = Ey(e, r, i, s, b.cx, b.cy, b.radius), f.length !== 0 && h.push(f[0], f[1]); }); for (var p = 0; p < d.length / 4; p++) - f = yf(e, r, i, s, d[p * 4], d[p * 4 + 1], d[p * 4 + 2], d[p * 4 + 3], !1), f.length !== 0 && h.push(f[0], f[1]); + f = bf(e, r, i, s, d[p * 4], d[p * 4 + 1], d[p * 4 + 2], d[p * 4 + 3], !1), f.length !== 0 && h.push(f[0], f[1]); if (h.length > 2) { for (var g = [h[0], h[1]], m = Math.pow(g[0] - e, 2) + Math.pow(g[1] - r, 2), v = 1; v < h.length / 2; v++) { var y = Math.pow(h[v * 2] - e, 2) + Math.pow(h[v * 2 + 1] - r, 2); @@ -99305,8 +99341,8 @@ var Prr = Btr(function(t, e) { return a < 0 && (a = 1e-5), [r[0] + a * i[0], r[1] + a * i[1]]; }, xa = function(e, r) { var n = uM(e, r); - return n = Xve(n), n; -}, Xve = function(e) { + return n = Hve(n), n; +}, Hve = function(e) { for (var r, n, i = e.length / 2, s = 1 / 0, a = 1 / 0, o = -1 / 0, l = -1 / 0, u = 0; u < i; u++) r = e[2 * u], n = e[2 * u + 1], s = Math.min(s, r), o = Math.max(o, r), a = Math.min(a, n), l = Math.max(l, n); for (var h = 2 / (o - s), f = 2 / (l - a), d = 0; d < i; d++) @@ -99323,11 +99359,11 @@ var Prr = Btr(function(t, e) { return s; }, fp = function(e, r) { return Math.min(e / 4, r / 4, 8); -}, Hve = function(e, r) { +}, Zve = function(e, r) { return Math.min(e / 10, r / 10, 8); }, rB = function() { return 8; -}, gnr = function(e, r, n) { +}, vnr = function(e, r, n) { return [e - 2 * r + n, 2 * (r - e), e]; }, hM = function(e, r) { return { @@ -99335,16 +99371,16 @@ var Prr = Btr(function(t, e) { widthOffset: Math.min(100, 0.25 * e), ctrlPtOffsetPct: 0.05 }; -}, mnr = Bs({ +}, ynr = Bs({ dampingFactor: 0.8, precision: 1e-6, iterations: 200, weight: function(e) { return 1; } -}), vnr = { +}), bnr = { pageRank: function(e) { - for (var r = mnr(e), n = r.dampingFactor, i = r.precision, s = r.iterations, a = r.weight, o = this._private.cy, l = this.byGroup(), u = l.nodes, h = l.edges, f = u.length, d = f * f, p = h.length, g = new Array(d), m = new Array(f), v = (1 - n) / f, y = 0; y < f; y++) { + for (var r = ynr(e), n = r.dampingFactor, i = r.precision, s = r.iterations, a = r.weight, o = this._private.cy, l = this.byGroup(), u = l.nodes, h = l.edges, f = u.length, d = f * f, p = h.length, g = new Array(d), m = new Array(f), v = (1 - n) / f, y = 0; y < f; y++) { for (var b = 0; b < f; b++) { var w = y * f + b; g[w] = 0; @@ -99379,7 +99415,7 @@ var Prr = Btr(function(t, e) { var Y = W * f + K; I[W] += g[Y] * D[K]; } - Jrr(I), F = D, D = I, I = F; + tnr(I), F = D, D = I, I = F; for (var te = 0, se = 0; se < f; se++) { var V = F[se] - D[se]; te += V * V; @@ -99506,12 +99542,12 @@ var uZ = Bs({ }; rm.cc = rm.closenessCentrality; rm.ccn = rm.closenessCentralityNormalised = rm.closenessCentralityNormalized; -var ynr = Bs({ +var xnr = Bs({ weight: null, directed: !1 }), fM = { betweennessCentrality: function(e) { - for (var r = ynr(e), n = r.directed, i = r.weight, s = i != null, a = this.cy(), o = this.nodes(), l = {}, u = {}, h = 0, f = { + for (var r = xnr(e), n = r.directed, i = r.weight, s = i != null, a = this.cy(), o = this.nodes(), l = {}, u = {}, h = 0, f = { set: function(w, O) { u[w] = O, O > h && (h = O); }, @@ -99571,7 +99607,7 @@ var ynr = Bs({ } }; fM.bc = fM.betweennessCentrality; -var bnr = Bs({ +var wnr = Bs({ expandFactor: 2, inflateFactor: 2, multFactor: 1, @@ -99581,16 +99617,16 @@ var bnr = Bs({ return 1; } ] -}), xnr = function(e) { - return bnr(e); -}, wnr = function(e, r) { +}), Onr = function(e) { + return wnr(e); +}, knr = function(e, r) { for (var n = 0, i = 0; i < r.length; i++) n += r[i](e); return n; -}, Onr = function(e, r, n) { +}, Snr = function(e, r, n) { for (var i = 0; i < r; i++) e[i * r + i] = n; -}, Zve = function(e, r) { +}, jve = function(e, r) { for (var n, i = 0; i < r; i++) { n = 0; for (var s = 0; s < r; s++) @@ -99598,7 +99634,7 @@ var bnr = Bs({ for (var a = 0; a < r; a++) e[a * r + i] = e[a * r + i] / n; } -}, knr = function(e, r, n) { +}, Tnr = function(e, r, n) { for (var i = new Array(n * n), s = 0; s < n; s++) { for (var a = 0; a < n; a++) i[s * n + a] = 0; @@ -99607,74 +99643,74 @@ var bnr = Bs({ i[s * n + l] += e[s * n + o] * r[o * n + l]; } return i; -}, Snr = function(e, r, n) { +}, Cnr = function(e, r, n) { for (var i = e.slice(0), s = 1; s < n; s++) - e = knr(e, i, r); + e = Tnr(e, i, r); return e; -}, Tnr = function(e, r, n) { +}, Enr = function(e, r, n) { for (var i = new Array(r * r), s = 0; s < r * r; s++) i[s] = Math.pow(e[s], n); - return Zve(i, r), i; -}, Cnr = function(e, r, n, i) { + return jve(i, r), i; +}, _nr = function(e, r, n, i) { for (var s = 0; s < n; s++) { var a = Math.round(e[s] * Math.pow(10, i)) / Math.pow(10, i), o = Math.round(r[s] * Math.pow(10, i)) / Math.pow(10, i); if (a !== o) return !1; } return !0; -}, Enr = function(e, r, n, i) { +}, Anr = function(e, r, n, i) { for (var s = [], a = 0; a < r; a++) { for (var o = [], l = 0; l < r; l++) Math.round(e[a * r + l] * 1e3) / 1e3 > 0 && o.push(n[l]); o.length !== 0 && s.push(i.collection(o)); } return s; -}, _nr = function(e, r) { +}, Lnr = function(e, r) { for (var n = 0; n < e.length; n++) if (!r[n] || e[n].id() !== r[n].id()) return !1; return !0; -}, Anr = function(e) { +}, Rnr = function(e) { for (var r = 0; r < e.length; r++) for (var n = 0; n < e.length; n++) - r != n && _nr(e[r], e[n]) && e.splice(n, 1); + r != n && Lnr(e[r], e[n]) && e.splice(n, 1); return e; }, hZ = function(e) { - for (var r = this.nodes(), n = this.edges(), i = this.cy(), s = xnr(e), a = {}, o = 0; o < r.length; o++) + for (var r = this.nodes(), n = this.edges(), i = this.cy(), s = Onr(e), a = {}, o = 0; o < r.length; o++) a[r[o].id()] = o; for (var l = r.length, u = l * l, h = new Array(u), f, d = 0; d < u; d++) h[d] = 0; for (var p = 0; p < n.length; p++) { - var g = n[p], m = a[g.source().id()], v = a[g.target().id()], y = wnr(g, s.attributes); + var g = n[p], m = a[g.source().id()], v = a[g.target().id()], y = knr(g, s.attributes); h[m * l + v] += y, h[v * l + m] += y; } - Onr(h, l, s.multFactor), Zve(h, l); + Snr(h, l, s.multFactor), jve(h, l); for (var b = !0, w = 0; b && w < s.maxIterations; ) - b = !1, f = Snr(h, l, s.expandFactor), h = Tnr(f, l, s.inflateFactor), Cnr(h, f, u, 4) || (b = !0), w++; - var O = Enr(h, l, r, i); - return O = Anr(O), O; -}, Lnr = { + b = !1, f = Cnr(h, l, s.expandFactor), h = Enr(f, l, s.inflateFactor), _nr(h, f, u, 4) || (b = !0), w++; + var O = Anr(h, l, r, i); + return O = Rnr(O), O; +}, Mnr = { markovClustering: hZ, mcl: hZ -}, Rnr = function(e) { +}, Dnr = function(e) { return e; -}, jve = function(e, r) { +}, Kve = function(e, r) { return Math.abs(r - e); }, fZ = function(e, r, n) { - return e + jve(r, n); + return e + Kve(r, n); }, dZ = function(e, r, n) { return e + Math.pow(n - r, 2); -}, Mnr = function(e) { +}, Pnr = function(e) { return Math.sqrt(e); -}, Dnr = function(e, r, n) { - return Math.max(e, jve(r, n)); +}, Nnr = function(e, r, n) { + return Math.max(e, Kve(r, n)); }, Hv = function(e, r, n, i, s) { - for (var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : Rnr, o = i, l, u, h = 0; h < e; h++) + for (var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : Dnr, o = i, l, u, h = 0; h < e; h++) l = r(h), u = n(h), o = s(o, l, u); return a(o); }, p1 = { euclidean: function(e, r, n) { - return e >= 2 ? Hv(e, r, n, 0, dZ, Mnr) : Hv(e, r, n, 0, fZ); + return e >= 2 ? Hv(e, r, n, 0, dZ, Pnr) : Hv(e, r, n, 0, fZ); }, squaredEuclidean: function(e, r, n) { return Hv(e, r, n, 0, dZ); @@ -99683,7 +99719,7 @@ var bnr = Bs({ return Hv(e, r, n, 0, fZ); }, max: function(e, r, n) { - return Hv(e, r, n, -1 / 0, Dnr); + return Hv(e, r, n, -1 / 0, Nnr); } }; p1["squared-euclidean"] = p1.squaredEuclidean; @@ -99692,7 +99728,7 @@ function VE(t, e, r, n, i, s) { var a; return Gn(t) ? a = t : a = p1[t] || p1.euclidean, e === 0 && Gn(t) ? a(i, s) : a(e, r, n, i, s); } -var Pnr = Bs({ +var Inr = Bs({ k: 2, m: 2, sensitivityThreshold: 1e-4, @@ -99702,7 +99738,7 @@ var Pnr = Bs({ testMode: !1, testCentroids: null }), nB = function(e) { - return Pnr(e); + return Inr(e); }, hT = function(e, r, n, i, s) { var a = s !== "kMedoids", o = a ? function(f) { return n[f]; @@ -99722,19 +99758,19 @@ var Pnr = Bs({ o[h] = l; } return o; -}, Kve = function(e, r, n, i, s) { +}, Jve = function(e, r, n, i, s) { for (var a = 1 / 0, o = 0, l = 0; l < r.length; l++) { var u = hT(n, e, r[l], i, s); u < a && (a = u, o = l); } return o; -}, Jve = function(e, r, n) { +}, eye = function(e, r, n) { for (var i = [], s = null, a = 0; a < r.length; a++) s = r[a], n[s.id()] === e && i.push(s); return i; -}, Nnr = function(e, r, n) { +}, $nr = function(e, r, n) { return Math.abs(r - e) <= n; -}, Inr = function(e, r, n) { +}, Bnr = function(e, r, n) { for (var i = 0; i < e.length; i++) for (var s = 0; s < e[i].length; s++) { var a = Math.abs(e[i][s] - r[i][s]); @@ -99742,7 +99778,7 @@ var Pnr = Bs({ return !1; } return !0; -}, $nr = function(e, r, n) { +}, Fnr = function(e, r, n) { for (var i = 0; i < n; i++) if (e === r[i]) return !0; @@ -99751,7 +99787,7 @@ var Pnr = Bs({ var n = new Array(r); if (e.length < 50) for (var i = 0; i < r; i++) { - for (var s = e[Math.floor(Math.random() * e.length)]; $nr(s, n, i); ) + for (var s = e[Math.floor(Math.random() * e.length)]; Fnr(s, n, i); ) s = e[Math.floor(Math.random() * e.length)]; n[i] = s; } @@ -99763,21 +99799,21 @@ var Pnr = Bs({ for (var i = 0, s = 0; s < r.length; s++) i += hT("manhattan", r[s], e, n, "kMedoids"); return i; -}, Bnr = function(e) { +}, znr = function(e) { var r = this.cy(), n = this.nodes(), i = null, s = nB(e), a = new Array(s.k), o = {}, l; s.testMode ? typeof s.testCentroids == "number" ? (s.testCentroids, l = h7(n, s.k, s.attributes)) : ji(s.testCentroids) === "object" ? l = s.testCentroids : l = h7(n, s.k, s.attributes) : l = h7(n, s.k, s.attributes); for (var u = !0, h = 0; u && h < s.maxIterations; ) { for (var f = 0; f < n.length; f++) - i = n[f], o[i.id()] = Kve(i, l, s.distance, s.attributes, "kMeans"); + i = n[f], o[i.id()] = Jve(i, l, s.distance, s.attributes, "kMeans"); u = !1; for (var d = 0; d < s.k; d++) { - var p = Jve(d, n, o); + var p = eye(d, n, o); if (p.length !== 0) { for (var g = s.attributes.length, m = l[d], v = new Array(g), y = new Array(g), b = 0; b < g; b++) { y[b] = 0; for (var w = 0; w < p.length; w++) i = p[w], y[b] += s.attributes[b](i); - v[b] = y[b] / p.length, Nnr(v[b], m[b], s.sensitivityThreshold) || (u = !0); + v[b] = y[b] / p.length, $nr(v[b], m[b], s.sensitivityThreshold) || (u = !0); } l[d] = v, a[d] = r.collection(p); } @@ -99785,15 +99821,15 @@ var Pnr = Bs({ h++; } return a; -}, Fnr = function(e) { +}, Qnr = function(e) { var r = this.cy(), n = this.nodes(), i = null, s = nB(e), a = new Array(s.k), o, l = {}, u, h = new Array(s.k); s.testMode ? typeof s.testCentroids == "number" || (ji(s.testCentroids) === "object" ? o = s.testCentroids : o = pZ(n, s.k)) : o = pZ(n, s.k); for (var f = !0, d = 0; f && d < s.maxIterations; ) { for (var p = 0; p < n.length; p++) - i = n[p], l[i.id()] = Kve(i, o, s.distance, s.attributes, "kMedoids"); + i = n[p], l[i.id()] = Jve(i, o, s.distance, s.attributes, "kMedoids"); f = !1; for (var g = 0; g < o.length; g++) { - var m = Jve(g, n, l); + var m = eye(g, n, l); if (m.length !== 0) { h[g] = gZ(o[g], m, s.attributes); for (var v = 0; v < m.length; v++) @@ -99804,7 +99840,7 @@ var Pnr = Bs({ d++; } return a; -}, znr = function(e, r, n, i, s) { +}, Unr = function(e, r, n, i, s) { for (var a, o, l = 0; l < r.length; l++) for (var u = 0; u < e.length; u++) i[l][u] = Math.pow(n[l][u], s.m); @@ -99815,7 +99851,7 @@ var Pnr = Bs({ a += i[d][h] * s.attributes[f](r[d]), o += i[d][h]; e[h][f] = a / o; } -}, Qnr = function(e, r, n, i, s) { +}, Vnr = function(e, r, n, i, s) { for (var a = 0; a < e.length; a++) r[a] = e[a].slice(); for (var o, l, u, h = 2 / (s.m - 1), f = 0; f < n.length; f++) @@ -99825,7 +99861,7 @@ var Pnr = Bs({ l = hT(s.distance, i[d], n[f], s.attributes, "cmeans"), u = hT(s.distance, i[d], n[p], s.attributes, "cmeans"), o += Math.pow(l / u, h); e[d][f] = 1 / o; } -}, Unr = function(e, r, n, i) { +}, qnr = function(e, r, n, i) { for (var s = new Array(n.k), a = 0; a < s.length; a++) s[a] = []; for (var o, l, u = 0; u < r.length; u++) { @@ -99858,17 +99894,17 @@ var Pnr = Bs({ for (var y = 0; y < n.length; y++) u[y] = new Array(i.k); for (var b = !0, w = 0; b && w < i.maxIterations; ) - b = !1, znr(a, n, o, u, i), Qnr(o, l, a, n, i), Inr(o, l, i.sensitivityThreshold) || (b = !0), w++; - return s = Unr(n, o, i, r), { + b = !1, Unr(a, n, o, u, i), Vnr(o, l, a, n, i), Bnr(o, l, i.sensitivityThreshold) || (b = !0), w++; + return s = qnr(n, o, i, r), { clusters: s, degreeOfMembership: o }; -}, Vnr = { - kMeans: Bnr, - kMedoids: Fnr, +}, Ynr = { + kMeans: znr, + kMedoids: Qnr, fuzzyCMeans: mZ, fcm: mZ -}, qnr = Bs({ +}, Wnr = Bs({ distance: "euclidean", linkage: "min", mode: "threshold", @@ -99876,11 +99912,11 @@ var Pnr = Bs({ addDendrogram: !1, dendrogramDepth: 0, attributes: [] -}), Ynr = { +}), Gnr = { single: "min", complete: "max" -}, Wnr = function(e) { - var r = qnr(e), n = Ynr[r.linkage]; +}, Xnr = function(e) { + var r = Wnr(e), n = Gnr[r.linkage]; return n != null && (r.linkage = n), r; }, vZ = function(e, r, n, i, s) { for (var a = 0, o = 1 / 0, l, u = s.attributes, h = function(E, R) { @@ -99922,7 +99958,7 @@ var Pnr = Bs({ return g.key = m.key = g.index = m.index = null, !0; }, D4 = function t(e, r, n) { !e || (e.value ? r.push(e.value) : (e.left && t(e.left, r), e.right && t(e.right, r))); -}, Gnr = function t(e, r) { +}, Hnr = function t(e, r) { if (!e) return ""; if (e.left && e.right) { @@ -99947,13 +99983,13 @@ var Pnr = Bs({ }), s.id(); } else if (e.value) return e.value.id(); -}, Xnr = function t(e, r, n) { +}, Znr = function t(e, r, n) { if (!e) return []; var i = [], s = [], a = []; return r === 0 ? (e.left && D4(e.left, i), e.right && D4(e.right, s), a = i.concat(s), [n.collection(a)]) : r === 1 ? e.value ? [n.collection(e.value)] : (e.left && D4(e.left, i), e.right && D4(e.right, s), [n.collection(i), n.collection(s)]) : e.value ? [n.collection(e.value)] : (e.left && (i = t(e.left, r - 1, n)), e.right && (s = t(e.right, r - 1, n)), i.concat(s)); }, yZ = function(e) { - for (var r = this.cy(), n = this.nodes(), i = Wnr(e), s = i.attributes, a = function(w, O) { + for (var r = this.cy(), n = this.nodes(), i = Xnr(e), s = i.attributes, a = function(w, O) { return VE(i.distance, s.length, function(S) { return s[S](w); }, function(S) { @@ -99975,20 +100011,20 @@ var Pnr = Bs({ for (var v = vZ(o, h, l, u, i); v; ) v = vZ(o, h, l, u, i); var y; - return i.mode === "dendrogram" ? (y = Xnr(o[0], i.dendrogramDepth, r), i.addDendrogram && Gnr(o[0], r)) : (y = new Array(o.length), o.forEach(function(b, w) { + return i.mode === "dendrogram" ? (y = Znr(o[0], i.dendrogramDepth, r), i.addDendrogram && Hnr(o[0], r)) : (y = new Array(o.length), o.forEach(function(b, w) { b.key = b.index = null, y[w] = r.collection(b.value); })), y; -}, Hnr = { +}, jnr = { hierarchicalClustering: yZ, hca: yZ -}, Znr = Bs({ +}, Knr = Bs({ distance: "euclidean", preference: "median", damping: 0.8, maxIterations: 1e3, minIterations: 100, attributes: [] -}), jnr = function(e) { +}), Jnr = function(e) { var r = e.damping, n = e.preference; 0.5 <= r && r < 1 || ii("Damping must range on [0.5, 1). Got: ".concat(r)); var i = ["median", "mean", "min", "max"]; @@ -99996,8 +100032,8 @@ var Pnr = Bs({ return s === n; }) || Lt(n) || ii("Preference must be one of [".concat(i.map(function(s) { return "'".concat(s, "'"); - }).join(", "), "] or a number. Got: ").concat(n)), Znr(e); -}, Knr = function(e, r, n, i) { + }).join(", "), "] or a number. Got: ").concat(n)), Knr(e); +}, eir = function(e, r, n, i) { var s = function(o, l) { return i[l](o); }; @@ -100006,10 +100042,10 @@ var Pnr = Bs({ }, function(a) { return s(n, a); }, r, n); -}, Jnr = function(e, r) { +}, tir = function(e, r) { var n = null; - return r === "median" ? n = jrr(e) : r === "mean" ? n = Zrr(e) : r === "min" ? n = Xrr(e) : r === "max" ? n = Hrr(e) : n = r, n; -}, eir = function(e, r, n) { + return r === "median" ? n = Jrr(e) : r === "mean" ? n = Krr(e) : r === "min" ? n = Zrr(e) : r === "max" ? n = jrr(e) : n = r, n; +}, rir = function(e, r, n) { for (var i = [], s = 0; s < e; s++) r[s * e + s] + n[s * e + s] > 0 && i.push(s); return i; @@ -100024,7 +100060,7 @@ var Pnr = Bs({ for (var h = 0; h < n.length; h++) i[n[h]] = n[h]; return i; -}, tir = function(e, r, n) { +}, nir = function(e, r, n) { for (var i = bZ(e, r, n), s = 0; s < n.length; s++) { for (var a = [], o = 0; o < i.length; o++) i[o] === n[s] && a.push(o); @@ -100037,7 +100073,7 @@ var Pnr = Bs({ } return i = bZ(e, r, n), i; }, xZ = function(e) { - for (var r = this.cy(), n = this.nodes(), i = jnr(e), s = {}, a = 0; a < n.length; a++) + for (var r = this.cy(), n = this.nodes(), i = Jnr(e), s = {}, a = 0; a < n.length; a++) s[n[a].id()] = a; var o, l, u, h, f, d; o = n.length, l = o * o, u = new Array(l); @@ -100045,8 +100081,8 @@ var Pnr = Bs({ u[p] = -1 / 0; for (var g = 0; g < o; g++) for (var m = 0; m < o; m++) - g !== m && (u[g * o + m] = Knr(i.distance, n[g], n[m], i.attributes)); - h = Jnr(u, i.preference); + g !== m && (u[g * o + m] = eir(i.distance, n[g], n[m], i.attributes)); + h = tir(u, i.preference); for (var v = 0; v < o; v++) u[v * o + v] = h; f = new Array(l); @@ -100091,7 +100127,7 @@ var Pnr = Bs({ break; } } - for (var te = eir(o, f, d), se = tir(o, u, te), V = {}, Z = 0; Z < te.length; Z++) + for (var te = rir(o, f, d), se = nir(o, u, te), V = {}, Z = 0; Z < te.length; Z++) V[te[Z]] = []; for (var G = 0; G < n.length; G++) { var J = s[n[G].id()], oe = se[J]; @@ -100100,13 +100136,13 @@ var Pnr = Bs({ for (var ae = new Array(te.length), ee = 0; ee < te.length; ee++) ae[ee] = r.collection(V[te[ee]]); return ae; -}, rir = { +}, iir = { affinityPropagation: xZ, ap: xZ -}, nir = Bs({ +}, sir = Bs({ root: void 0, directed: !1 -}), iir = { +}), air = { hierholzer: function(e) { if (!zr(e)) { var r = arguments; @@ -100115,7 +100151,7 @@ var Pnr = Bs({ directed: r[1] }; } - var n = nir(e), i = n.root, s = n.directed, a = this, o = !1, l, u, h; + var n = sir(e), i = n.root, s = n.directed, a = this, o = !1, l, u, h; i && (h = Jt(i) ? this.filter(i)[0].id() : i[0].id()); var f = {}, d = {}; s ? a.forEach(function(b) { @@ -100220,7 +100256,7 @@ var Pnr = Bs({ cut: e.spawn(h), components: s }; -}, sir = { +}, oir = { hopcroftTarjanBiconnected: P4, htbc: P4, htb: P4, @@ -100255,43 +100291,43 @@ var Pnr = Bs({ cut: a, components: i }; -}, air = { +}, lir = { tarjanStronglyConnected: N4, tsc: N4, tscc: N4, tarjanStronglyConnectedComponents: N4 -}, eye = {}; -[Fb, Irr, $rr, Frr, Qrr, Vrr, Wrr, vnr, tm, rm, fM, Lnr, Vnr, Hnr, rir, iir, sir, air].forEach(function(t) { - ur(eye, t); +}, tye = {}; +[Fb, Brr, Frr, Qrr, Vrr, Yrr, Xrr, bnr, tm, rm, fM, Mnr, Ynr, jnr, iir, air, oir, lir].forEach(function(t) { + ur(tye, t); }); /*! Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) Licensed under The MIT License (http://opensource.org/licenses/MIT) */ -var tye = 0, rye = 1, nye = 2, Ah = function t(e) { +var rye = 0, nye = 1, iye = 2, Ah = function t(e) { if (!(this instanceof t)) return new t(e); - this.id = "Thenable/1.0.7", this.state = tye, this.fulfillValue = void 0, this.rejectReason = void 0, this.onFulfilled = [], this.onRejected = [], this.proxy = { + this.id = "Thenable/1.0.7", this.state = rye, this.fulfillValue = void 0, this.rejectReason = void 0, this.onFulfilled = [], this.onRejected = [], this.proxy = { then: this.then.bind(this) }, typeof e == "function" && e.call(this, this.fulfill.bind(this), this.reject.bind(this)); }; Ah.prototype = { fulfill: function(e) { - return wZ(this, rye, "fulfillValue", e); + return wZ(this, nye, "fulfillValue", e); }, reject: function(e) { - return wZ(this, nye, "rejectReason", e); + return wZ(this, iye, "rejectReason", e); }, then: function(e, r) { var n = this, i = new Ah(); - return n.onFulfilled.push(kZ(e, i, "fulfill")), n.onRejected.push(kZ(r, i, "reject")), iye(n), i.proxy; + return n.onFulfilled.push(kZ(e, i, "fulfill")), n.onRejected.push(kZ(r, i, "reject")), sye(n), i.proxy; } }; var wZ = function(e, r, n, i) { - return e.state === tye && (e.state = r, e[n] = i, iye(e)), e; -}, iye = function(e) { - e.state === rye ? OZ(e, "onFulfilled", e.fulfillValue) : e.state === nye && OZ(e, "onRejected", e.rejectReason); + return e.state === rye && (e.state = r, e[n] = i, sye(e)), e; +}, sye = function(e) { + e.state === nye ? OZ(e, "onFulfilled", e.fulfillValue) : e.state === iye && OZ(e, "onRejected", e.rejectReason); }, OZ = function(e, r, n) { if (e[r].length !== 0) { var i = e[r]; @@ -100314,10 +100350,10 @@ var wZ = function(e, r, n, i) { r.reject(a); return; } - oir(r, s); + cir(r, s); } }; -}, oir = function t(e, r) { +}, cir = function t(e, r) { if (e === r || e.proxy === r) { e.reject(new TypeError("cannot resolve promise with itself")); return; @@ -100485,7 +100521,7 @@ ur(dp, { dp.complete = dp.completed; dp.run = dp.play; dp.running = dp.playing; -var lir = { +var uir = { animated: function() { return function() { var r = this, n = r.length !== void 0, i = n ? r : [r], s = this._private.cy || this; @@ -100548,7 +100584,7 @@ var lir = { } if (u && (r.style = h.getPropsList(r.style || r.css), r.css = void 0), u && r.renderedPosition != null) { var d = r.renderedPosition, p = o.pan(), g = o.zoom(); - r.position = Vve(d, g, p); + r.position = qve(d, g, p); } if (l && r.panBy != null) { var m = r.panBy, v = o.pan(); @@ -100603,32 +100639,32 @@ var lir = { return o.notify("draw"), this; }; } -}, cir = Array.isArray, qE = cir, uir = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, hir = /^\w*$/; -function fir(t, e) { +}, hir = Array.isArray, qE = hir, fir = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, dir = /^\w*$/; +function pir(t, e) { if (qE(t)) return !1; var r = typeof t; - return r == "number" || r == "symbol" || r == "boolean" || t == null || Qw(t) ? !0 : hir.test(t) || !uir.test(t) || e != null && t in Object(e); + return r == "number" || r == "symbol" || r == "boolean" || t == null || Qw(t) ? !0 : dir.test(t) || !fir.test(t) || e != null && t in Object(e); } -var dir = fir, pir = "[object AsyncFunction]", gir = "[object Function]", mir = "[object GeneratorFunction]", vir = "[object Proxy]"; -function yir(t) { +var gir = pir, mir = "[object AsyncFunction]", vir = "[object Function]", yir = "[object GeneratorFunction]", bir = "[object Proxy]"; +function xir(t) { if (!cp(t)) return !1; - var e = Pve(t); - return e == gir || e == mir || e == pir || e == vir; + var e = Nve(t); + return e == vir || e == yir || e == mir || e == bir; } -var bir = yir, xir = FE["__core-js_shared__"], f7 = xir, SZ = function() { +var wir = xir, Oir = FE["__core-js_shared__"], f7 = Oir, SZ = function() { var t = /[^.]+$/.exec(f7 && f7.keys && f7.keys.IE_PROTO || ""); return t ? "Symbol(src)_1." + t : ""; }(); -function wir(t) { +function kir(t) { return !!SZ && SZ in t; } -var Oir = wir, kir = Function.prototype, Sir = kir.toString; -function Tir(t) { +var Sir = kir, Tir = Function.prototype, Cir = Tir.toString; +function Eir(t) { if (t != null) { try { - return Sir.call(t); + return Cir.call(t); } catch { } try { @@ -100638,53 +100674,53 @@ function Tir(t) { } return ""; } -var Cir = Tir, Eir = /[\\^$.*+?()[\]{}|]/g, _ir = /^\[object .+?Constructor\]$/, Air = Function.prototype, Lir = Object.prototype, Rir = Air.toString, Mir = Lir.hasOwnProperty, Dir = RegExp( - "^" + Rir.call(Mir).replace(Eir, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" +var _ir = Eir, Air = /[\\^$.*+?()[\]{}|]/g, Lir = /^\[object .+?Constructor\]$/, Rir = Function.prototype, Mir = Object.prototype, Dir = Rir.toString, Pir = Mir.hasOwnProperty, Nir = RegExp( + "^" + Dir.call(Pir).replace(Air, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); -function Pir(t) { - if (!cp(t) || Oir(t)) +function Iir(t) { + if (!cp(t) || Sir(t)) return !1; - var e = bir(t) ? Dir : _ir; - return e.test(Cir(t)); -} -var Nir = Pir; -function Iir(t, e) { - return t == null ? void 0 : t[e]; + var e = wir(t) ? Nir : Lir; + return e.test(_ir(t)); } var $ir = Iir; function Bir(t, e) { - var r = $ir(t, e); - return Nir(r) ? r : void 0; + return t == null ? void 0 : t[e]; +} +var Fir = Bir; +function zir(t, e) { + var r = Fir(t, e); + return $ir(r) ? r : void 0; } -var iB = Bir, Fir = iB(Object, "create"), Ub = Fir; -function zir() { +var iB = zir, Qir = iB(Object, "create"), Ub = Qir; +function Uir() { this.__data__ = Ub ? Ub(null) : {}, this.size = 0; } -var Qir = zir; -function Uir(t) { +var Vir = Uir; +function qir(t) { var e = this.has(t) && delete this.__data__[t]; return this.size -= e ? 1 : 0, e; } -var Vir = Uir, qir = "__lodash_hash_undefined__", Yir = Object.prototype, Wir = Yir.hasOwnProperty; -function Gir(t) { +var Yir = qir, Wir = "__lodash_hash_undefined__", Gir = Object.prototype, Xir = Gir.hasOwnProperty; +function Hir(t) { var e = this.__data__; if (Ub) { var r = e[t]; - return r === qir ? void 0 : r; + return r === Wir ? void 0 : r; } - return Wir.call(e, t) ? e[t] : void 0; + return Xir.call(e, t) ? e[t] : void 0; } -var Xir = Gir, Hir = Object.prototype, Zir = Hir.hasOwnProperty; -function jir(t) { +var Zir = Hir, jir = Object.prototype, Kir = jir.hasOwnProperty; +function Jir(t) { var e = this.__data__; - return Ub ? e[t] !== void 0 : Zir.call(e, t); + return Ub ? e[t] !== void 0 : Kir.call(e, t); } -var Kir = jir, Jir = "__lodash_hash_undefined__"; -function esr(t, e) { +var esr = Jir, tsr = "__lodash_hash_undefined__"; +function rsr(t, e) { var r = this.__data__; - return this.size += this.has(t) ? 0 : 1, r[t] = Ub && e === void 0 ? Jir : e, this; + return this.size += this.has(t) ? 0 : 1, r[t] = Ub && e === void 0 ? tsr : e, this; } -var tsr = esr; +var nsr = rsr; function nv(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -100692,49 +100728,49 @@ function nv(t) { this.set(n[0], n[1]); } } -nv.prototype.clear = Qir; -nv.prototype.delete = Vir; -nv.prototype.get = Xir; -nv.prototype.has = Kir; -nv.prototype.set = tsr; +nv.prototype.clear = Vir; +nv.prototype.delete = Yir; +nv.prototype.get = Zir; +nv.prototype.has = esr; +nv.prototype.set = nsr; var TZ = nv; -function rsr() { +function isr() { this.__data__ = [], this.size = 0; } -var nsr = rsr; -function isr(t, e) { +var ssr = isr; +function asr(t, e) { return t === e || t !== t && e !== e; } -var sye = isr; -function ssr(t, e) { +var aye = asr; +function osr(t, e) { for (var r = t.length; r--; ) - if (sye(t[r][0], e)) + if (aye(t[r][0], e)) return r; return -1; } -var YE = ssr, asr = Array.prototype, osr = asr.splice; -function lsr(t) { +var YE = osr, lsr = Array.prototype, csr = lsr.splice; +function usr(t) { var e = this.__data__, r = YE(e, t); if (r < 0) return !1; var n = e.length - 1; - return r == n ? e.pop() : osr.call(e, r, 1), --this.size, !0; + return r == n ? e.pop() : csr.call(e, r, 1), --this.size, !0; } -var csr = lsr; -function usr(t) { +var hsr = usr; +function fsr(t) { var e = this.__data__, r = YE(e, t); return r < 0 ? void 0 : e[r][1]; } -var hsr = usr; -function fsr(t) { +var dsr = fsr; +function psr(t) { return YE(this.__data__, t) > -1; } -var dsr = fsr; -function psr(t, e) { +var gsr = psr; +function msr(t, e) { var r = this.__data__, n = YE(r, t); return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this; } -var gsr = psr; +var vsr = msr; function iv(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -100742,48 +100778,48 @@ function iv(t) { this.set(n[0], n[1]); } } -iv.prototype.clear = nsr; -iv.prototype.delete = csr; -iv.prototype.get = hsr; -iv.prototype.has = dsr; -iv.prototype.set = gsr; -var msr = iv, vsr = iB(FE, "Map"), ysr = vsr; -function bsr() { +iv.prototype.clear = ssr; +iv.prototype.delete = hsr; +iv.prototype.get = dsr; +iv.prototype.has = gsr; +iv.prototype.set = vsr; +var ysr = iv, bsr = iB(FE, "Map"), xsr = bsr; +function wsr() { this.size = 0, this.__data__ = { hash: new TZ(), - map: new (ysr || msr)(), + map: new (xsr || ysr)(), string: new TZ() }; } -var xsr = bsr; -function wsr(t) { +var Osr = wsr; +function ksr(t) { var e = typeof t; return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null; } -var Osr = wsr; -function ksr(t, e) { +var Ssr = ksr; +function Tsr(t, e) { var r = t.__data__; - return Osr(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; + return Ssr(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; } -var WE = ksr; -function Ssr(t) { +var WE = Tsr; +function Csr(t) { var e = WE(this, t).delete(t); return this.size -= e ? 1 : 0, e; } -var Tsr = Ssr; -function Csr(t) { - return WE(this, t).get(t); -} var Esr = Csr; function _sr(t) { - return WE(this, t).has(t); + return WE(this, t).get(t); } var Asr = _sr; -function Lsr(t, e) { +function Lsr(t) { + return WE(this, t).has(t); +} +var Rsr = Lsr; +function Msr(t, e) { var r = WE(this, t), n = r.size; return r.set(t, e), this.size += r.size == n ? 0 : 1, this; } -var Rsr = Lsr; +var Dsr = Msr; function sv(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -100791,15 +100827,15 @@ function sv(t) { this.set(n[0], n[1]); } } -sv.prototype.clear = xsr; -sv.prototype.delete = Tsr; -sv.prototype.get = Esr; -sv.prototype.has = Asr; -sv.prototype.set = Rsr; -var aye = sv, Msr = "Expected a function"; +sv.prototype.clear = Osr; +sv.prototype.delete = Esr; +sv.prototype.get = Asr; +sv.prototype.has = Rsr; +sv.prototype.set = Dsr; +var oye = sv, Psr = "Expected a function"; function sB(t, e) { if (typeof t != "function" || e != null && typeof e != "function") - throw new TypeError(Msr); + throw new TypeError(Psr); var r = function() { var n = arguments, i = e ? e.apply(this, n) : n[0], s = r.cache; if (s.has(i)) @@ -100807,73 +100843,73 @@ function sB(t, e) { var a = t.apply(this, n); return r.cache = s.set(i, a) || s, a; }; - return r.cache = new (sB.Cache || aye)(), r; + return r.cache = new (sB.Cache || oye)(), r; } -sB.Cache = aye; -var Dsr = sB, Psr = 500; -function Nsr(t) { - var e = Dsr(t, function(n) { - return r.size === Psr && r.clear(), n; +sB.Cache = oye; +var Nsr = sB, Isr = 500; +function $sr(t) { + var e = Nsr(t, function(n) { + return r.size === Isr && r.clear(), n; }), r = e.cache; return e; } -var Isr = Nsr, $sr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Bsr = /\\(\\)?/g, Fsr = Isr(function(t) { +var Bsr = $sr, Fsr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, zsr = /\\(\\)?/g, Qsr = Bsr(function(t) { var e = []; - return t.charCodeAt(0) === 46 && e.push(""), t.replace($sr, function(r, n, i, s) { - e.push(i ? s.replace(Bsr, "$1") : n || r); + return t.charCodeAt(0) === 46 && e.push(""), t.replace(Fsr, function(r, n, i, s) { + e.push(i ? s.replace(zsr, "$1") : n || r); }), e; -}), oye = Fsr; -function zsr(t, e) { +}), lye = Qsr; +function Usr(t, e) { for (var r = -1, n = t == null ? 0 : t.length, i = Array(n); ++r < n; ) i[r] = e(t[r], r, t); return i; } -var lye = zsr, Qsr = 1 / 0, CZ = f1 ? f1.prototype : void 0, EZ = CZ ? CZ.toString : void 0; -function cye(t) { +var cye = Usr, Vsr = 1 / 0, CZ = f1 ? f1.prototype : void 0, EZ = CZ ? CZ.toString : void 0; +function uye(t) { if (typeof t == "string") return t; if (qE(t)) - return lye(t, cye) + ""; + return cye(t, uye) + ""; if (Qw(t)) return EZ ? EZ.call(t) : ""; var e = t + ""; - return e == "0" && 1 / t == -Qsr ? "-0" : e; + return e == "0" && 1 / t == -Vsr ? "-0" : e; } -var Usr = cye; -function Vsr(t) { - return t == null ? "" : Usr(t); +var qsr = uye; +function Ysr(t) { + return t == null ? "" : qsr(t); } -var uye = Vsr; -function qsr(t, e) { - return qE(t) ? t : dir(t, e) ? [t] : oye(uye(t)); +var hye = Ysr; +function Wsr(t, e) { + return qE(t) ? t : gir(t, e) ? [t] : lye(hye(t)); } -var hye = qsr, Ysr = 1 / 0; -function Wsr(t) { +var fye = Wsr, Gsr = 1 / 0; +function Xsr(t) { if (typeof t == "string" || Qw(t)) return t; var e = t + ""; - return e == "0" && 1 / t == -Ysr ? "-0" : e; + return e == "0" && 1 / t == -Gsr ? "-0" : e; } -var aB = Wsr; -function Gsr(t, e) { - e = hye(e, t); +var aB = Xsr; +function Hsr(t, e) { + e = fye(e, t); for (var r = 0, n = e.length; t != null && r < n; ) t = t[aB(e[r++])]; return r && r == n ? t : void 0; } -var Xsr = Gsr; -function Hsr(t, e, r) { - var n = t == null ? void 0 : Xsr(t, e); +var Zsr = Hsr; +function jsr(t, e, r) { + var n = t == null ? void 0 : Zsr(t, e); return n === void 0 ? r : n; } -var Zsr = Hsr, jsr = function() { +var Ksr = jsr, Jsr = function() { try { var t = iB(Object, "defineProperty"); return t({}, "", {}), t; } catch { } -}(), _Z = jsr; -function Ksr(t, e, r) { +}(), _Z = Jsr; +function ear(t, e, r) { e == "__proto__" && _Z ? _Z(t, e, { configurable: !0, enumerable: !0, @@ -100881,49 +100917,49 @@ function Ksr(t, e, r) { writable: !0 }) : t[e] = r; } -var Jsr = Ksr, ear = Object.prototype, tar = ear.hasOwnProperty; -function rar(t, e, r) { +var tar = ear, rar = Object.prototype, nar = rar.hasOwnProperty; +function iar(t, e, r) { var n = t[e]; - (!(tar.call(t, e) && sye(n, r)) || r === void 0 && !(e in t)) && Jsr(t, e, r); + (!(nar.call(t, e) && aye(n, r)) || r === void 0 && !(e in t)) && tar(t, e, r); } -var nar = rar, iar = 9007199254740991, sar = /^(?:0|[1-9]\d*)$/; -function aar(t, e) { +var sar = iar, aar = 9007199254740991, oar = /^(?:0|[1-9]\d*)$/; +function lar(t, e) { var r = typeof t; - return e = e == null ? iar : e, !!e && (r == "number" || r != "symbol" && sar.test(t)) && t > -1 && t % 1 == 0 && t < e; + return e = e == null ? aar : e, !!e && (r == "number" || r != "symbol" && oar.test(t)) && t > -1 && t % 1 == 0 && t < e; } -var oar = aar; -function lar(t, e, r, n) { +var car = lar; +function uar(t, e, r, n) { if (!cp(t)) return t; - e = hye(e, t); + e = fye(e, t); for (var i = -1, s = e.length, a = s - 1, o = t; o != null && ++i < s; ) { var l = aB(e[i]), u = r; if (l === "__proto__" || l === "constructor" || l === "prototype") return t; if (i != a) { var h = o[l]; - u = n ? n(h, l, o) : void 0, u === void 0 && (u = cp(h) ? h : oar(e[i + 1]) ? [] : {}); + u = n ? n(h, l, o) : void 0, u === void 0 && (u = cp(h) ? h : car(e[i + 1]) ? [] : {}); } - nar(o, l, u), o = o[l]; + sar(o, l, u), o = o[l]; } return t; } -var car = lar; -function uar(t, e, r) { - return t == null ? t : car(t, e, r); -} var har = uar; -function far(t, e) { +function far(t, e, r) { + return t == null ? t : har(t, e, r); +} +var dar = far; +function par(t, e) { var r = -1, n = t.length; for (e || (e = Array(n)); ++r < n; ) e[r] = t[r]; return e; } -var dar = far; -function par(t) { - return qE(t) ? lye(t, aB) : Qw(t) ? [t] : dar(oye(uye(t))); +var gar = par; +function mar(t) { + return qE(t) ? cye(t, aB) : Qw(t) ? [t] : gar(lye(hye(t))); } -var gar = par, mar = { +var yar = mar, bar = { data: function(e) { var r = { field: "data", @@ -100949,18 +100985,18 @@ var gar = par, mar = { return e = ur({}, r, e), function(i, s) { var a = e, o = this, l = o.length !== void 0, u = l ? o : [o], h = l ? o[0] : o; if (Jt(i)) { - var f = i.indexOf(".") !== -1, d = f && gar(i); + var f = i.indexOf(".") !== -1, d = f && yar(i); if (a.allowGetting && s === void 0) { var p; - return h && (a.beforeGet(h), d && h._private[a.field][i] === void 0 ? p = Zsr(h._private[a.field], d) : p = h._private[a.field][i]), p; + return h && (a.beforeGet(h), d && h._private[a.field][i] === void 0 ? p = Ksr(h._private[a.field], d) : p = h._private[a.field][i]), p; } else if (a.allowSetting && s !== void 0) { var g = !a.immutableKeys[i]; if (g) { - var m = kve({}, i, s); + var m = Sve({}, i, s); a.beforeSet(o, m); for (var v = 0, y = u.length; v < y; v++) { var b = u[v]; - a.canSet(b) && (d && h._private[a.field][i] === void 0 ? har(b._private[a.field], d, s) : b._private[a.field][i] = s); + a.canSet(b) && (d && h._private[a.field][i] === void 0 ? dar(b._private[a.field], d, s) : b._private[a.field][i] = s); } a.updateStyle && o.updateStyle(), a.onSet(o), a.settingTriggersEvent && o[a.triggerFnName](a.settingEvent); } @@ -101001,7 +101037,7 @@ var gar = par, mar = { if (Jt(i)) { for (var u = i.split(/\s+/), h = u.length, f = 0; f < h; f++) { var d = u[f]; - if (!ad(d)) { + if (!od(d)) { var p = !s.immutableKeys[d]; if (p) for (var g = 0, m = l.length; g < m; g++) @@ -101020,7 +101056,7 @@ var gar = par, mar = { return a; }; } -}, yar = { +}, xar = { eventAliasesOn: function(e) { var r = e; r.addListener = r.listen = r.bind = r.on, r.unlisten = r.unbind = r.off = r.removeListener, r.trigger = r.emit, r.pon = r.promiseOn = function(n, i) { @@ -101034,10 +101070,10 @@ var gar = par, mar = { }; } }, Jr = {}; -[lir, mar, yar].forEach(function(t) { +[uir, bar, xar].forEach(function(t) { ur(Jr, t); }); -var bar = { +var war = { animate: Jr.animate(), animation: Jr.animation(), animated: Jr.animated(), @@ -101296,20 +101332,20 @@ var ln = function() { return !e.backgrounding(); } }].sort(function(t, e) { - return Ltr(t.selector, e.selector); -}), xar = function() { + return Mtr(t.selector, e.selector); +}), Oar = function() { for (var t = {}, e, r = 0; r < pM.length; r++) e = pM[r], t[e.selector] = e.matches; return t; -}(), war = function(e, r) { - return xar[e](r); -}, Oar = "(" + pM.map(function(t) { +}(), kar = function(e, r) { + return Oar[e](r); +}, Sar = "(" + pM.map(function(t) { return t.selector; }).join("|") + ")", Jp = function(e) { return e.replace(new RegExp("\\\\(" + Fr.metaChar + ")", "g"), function(r, n) { return n; }); -}, Gh = function(e, r, n) { +}, Xh = function(e, r, n) { e[e.length - 1] = n; }, gM = [{ name: "group", @@ -101325,7 +101361,7 @@ var ln = function() { }, { name: "state", query: !0, - regex: Oar, + regex: Sar, populate: function(e, r, n) { var i = Dl(n, 1), s = i[0]; r.checks.push({ @@ -101425,14 +101461,14 @@ var ln = function() { type: Qt.DIRECTED_EDGE, source: i, target: s - }), Gh(e, r, n), e.edgeCount++, s; + }), Xh(e, r, n), e.edgeCount++, s; } else { var a = ln(), o = r, l = ln(); return a.checks.push({ type: Qt.NODE_SOURCE, source: o, target: l - }), Gh(e, r, a), e.edgeCount++, l; + }), Xh(e, r, a), e.edgeCount++, l; } } }, { @@ -101445,14 +101481,14 @@ var ln = function() { return n.checks.push({ type: Qt.UNDIRECTED_EDGE, nodes: [i, s] - }), Gh(e, r, n), e.edgeCount++, s; + }), Xh(e, r, n), e.edgeCount++, s; } else { var a = ln(), o = r, l = ln(); return a.checks.push({ type: Qt.NODE_NEIGHBOR, node: o, neighbor: l - }), Gh(e, r, a), l; + }), Xh(e, r, a), l; } } }, { @@ -101466,7 +101502,7 @@ var ln = function() { type: Qt.CHILD, parent: s, child: i - }), Gh(e, r, n), e.compoundCount++, i; + }), Xh(e, r, n), e.compoundCount++, i; } else if (e.currentSubject === r) { var a = ln(), o = e[e.length - 1], l = ln(), u = ln(), h = ln(), f = ln(); return a.checks.push({ @@ -101482,7 +101518,7 @@ var ln = function() { type: Qt.PARENT, parent: f, child: h - }), Gh(e, o, a), e.currentSubject = u, e.compoundCount++, h; + }), Xh(e, o, a), e.currentSubject = u, e.compoundCount++, h; } else { var d = ln(), p = ln(), g = [{ type: Qt.PARENT, @@ -101503,7 +101539,7 @@ var ln = function() { type: Qt.DESCENDANT, ancestor: s, descendant: i - }), Gh(e, r, n), e.compoundCount++, i; + }), Xh(e, r, n), e.compoundCount++, i; } else if (e.currentSubject === r) { var a = ln(), o = e[e.length - 1], l = ln(), u = ln(), h = ln(), f = ln(); return a.checks.push({ @@ -101519,7 +101555,7 @@ var ln = function() { type: Qt.ANCESTOR, ancestor: f, descendant: h - }), Gh(e, o, a), e.currentSubject = u, e.compoundCount++, h; + }), Xh(e, o, a), e.currentSubject = u, e.compoundCount++, h; } else { var d = ln(), p = ln(), g = [{ type: Qt.ANCESTOR, @@ -101544,7 +101580,7 @@ var ln = function() { gM.forEach(function(t) { return t.regexObj = new RegExp("^" + t.regex); }); -var kar = function(e) { +var Tar = function(e) { for (var r, n, i, s = 0; s < gM.length; s++) { var a = gM[s], o = a.name, l = e.match(a.regexObj); if (l != null) { @@ -101560,17 +101596,17 @@ var kar = function(e) { name: i, remaining: e }; -}, Sar = function(e) { +}, Car = function(e) { var r = e.match(/^\s+/); if (r) { var n = r[0]; e = e.substring(n.length); } return e; -}, Tar = function(e) { +}, Ear = function(e) { var r = this, n = r.inputText = e, i = r[0] = ln(); - for (r.length = 1, n = Sar(n); ; ) { - var s = kar(n); + for (r.length = 1, n = Car(n); ; ) { + var s = Tar(n); if (s.expr == null) return rn("The selector `" + e + "`is invalid"), !1; var a = s.match.slice(1), o = s.expr.populate(r, i, a); @@ -101590,7 +101626,7 @@ var kar = function(e) { h.edgeCount === 1 && rn("The selector `" + e + "` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes."); } return !0; -}, Car = function() { +}, _ar = function() { if (this.toStringCache != null) return this.toStringCache; for (var e = function(h) { @@ -101650,10 +101686,10 @@ var kar = function(e) { a += s(l, l.subject), this.length > 1 && o < this.length - 1 && (a += ", "); } return this.toStringCache = a, a; -}, Ear = { - parse: Tar, - toString: Car -}, fye = function(e, r, n) { +}, Aar = { + parse: Ear, + toString: _ar +}, dye = function(e, r, n) { var i, s = Jt(e), a = Lt(e), o = Jt(n), l, u, h = !1, f = !1, d = !1; switch (r.indexOf("!") >= 0 && (r = r.replace("!", ""), f = !0), r.indexOf("@") >= 0 && (r = r.replace("@", ""), h = !0), (s || o || h) && (l = !s && !a ? "" : "" + e, u = "" + n), h && (e = l = l.toLowerCase(), n = u = u.toLowerCase()), r) { case "*=": @@ -101685,7 +101721,7 @@ var kar = function(e) { break; } return f && (e != null || !d) && (i = !i), i; -}, _ar = function(e, r) { +}, Lar = function(e, r) { switch (r) { case "?": return !!e; @@ -101694,11 +101730,11 @@ var kar = function(e) { case "^": return e === void 0; } -}, Aar = function(e) { +}, Rar = function(e) { return e !== void 0; }, oB = function(e, r) { return e.data(r); -}, Lar = function(e, r) { +}, Mar = function(e, r) { return e[r](); }, si = [], Nn = function(e, r) { return e.checks.every(function(n) { @@ -101711,7 +101747,7 @@ si[Qt.GROUP] = function(t, e) { }; si[Qt.STATE] = function(t, e) { var r = t.value; - return war(r, e); + return kar(r, e); }; si[Qt.ID] = function(t, e) { var r = t.value; @@ -101723,19 +101759,19 @@ si[Qt.CLASS] = function(t, e) { }; si[Qt.META_COMPARE] = function(t, e) { var r = t.field, n = t.operator, i = t.value; - return fye(Lar(e, r), n, i); + return dye(Mar(e, r), n, i); }; si[Qt.DATA_COMPARE] = function(t, e) { var r = t.field, n = t.operator, i = t.value; - return fye(oB(e, r), n, i); + return dye(oB(e, r), n, i); }; si[Qt.DATA_BOOL] = function(t, e) { var r = t.field, n = t.operator; - return _ar(oB(e, r), n); + return Lar(oB(e, r), n); }; si[Qt.DATA_EXIST] = function(t, e) { var r = t.field; - return t.operator, Aar(oB(e, r)); + return t.operator, Rar(oB(e, r)); }; si[Qt.UNDIRECTED_EDGE] = function(t, e) { var r = t.nodes[0], n = t.nodes[1], i = e.source(), s = e.target(); @@ -101791,7 +101827,7 @@ si[Qt.FILTER] = function(t, e) { var r = t.value; return r(e); }; -var Rar = function(e) { +var Dar = function(e) { var r = this; if (r.length === 1 && r[0].checks.length === 1 && r[0].checks[0].type === Qt.ID) return e.getElementById(r[0].checks[0].value).collection(); @@ -101806,17 +101842,17 @@ var Rar = function(e) { return r.text() == null && (n = function() { return !0; }), e.filter(n); -}, Mar = function(e) { +}, Par = function(e) { for (var r = this, n = 0; n < r.length; n++) { var i = r[n]; if (Nn(i, e)) return !0; } return !1; -}, Dar = { - matches: Mar, - filter: Rar -}, ld = function(e) { +}, Nar = { + matches: Par, + filter: Dar +}, cd = function(e) { this.inputText = e, this.currentSubject = null, this.compoundCount = 0, this.edgeCount = 0, this.length = 0, e == null || Jt(e) && e.match(/^\s*$/) || (Ro(e) ? this.addQuery({ checks: [{ type: Qt.COLLECTION, @@ -101828,35 +101864,35 @@ var Rar = function(e) { value: e }] }) : Jt(e) ? this.parse(e) || (this.invalid = !0) : ii("A selector must be created from a string; found ")); -}, cd = ld.prototype; -[Ear, Dar].forEach(function(t) { - return ur(cd, t); +}, ud = cd.prototype; +[Aar, Nar].forEach(function(t) { + return ur(ud, t); }); -cd.text = function() { +ud.text = function() { return this.inputText; }; -cd.size = function() { +ud.size = function() { return this.length; }; -cd.eq = function(t) { +ud.eq = function(t) { return this[t]; }; -cd.sameText = function(t) { +ud.sameText = function(t) { return !this.invalid && !t.invalid && this.text() === t.text(); }; -cd.addQuery = function(t) { +ud.addQuery = function(t) { this[this.length++] = t; }; -cd.selector = cd.toString; -var Rf = { +ud.selector = ud.toString; +var Mf = { allAre: function(e) { - var r = new ld(e); + var r = new cd(e); return this.every(function(n) { return r.matches(n); }); }, is: function(e) { - var r = new ld(e); + var r = new cd(e); return this.some(function(n) { return r.matches(n); }); @@ -101906,9 +101942,9 @@ var Rf = { }); } }; -Rf.allAreNeighbours = Rf.allAreNeighbors; -Rf.has = Rf.contains; -Rf.equal = Rf.equals = Rf.same; +Mf.allAreNeighbours = Mf.allAreNeighbors; +Mf.has = Mf.contains; +Mf.equal = Mf.equals = Mf.same; var sl = function(e, r) { return function(i, s, a, o) { var l = i, u = this, h; @@ -102010,7 +102046,7 @@ function lB(t, e, r, n) { } return t; } -function dye(t, e, r) { +function pye(t, e, r) { if (r.isParent()) for (var n = r._private.children, i = 0; i < n.length; i++) { var s = n[i]; @@ -102019,9 +102055,9 @@ function dye(t, e, r) { } g1.forEachDown = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return lB(this, t, e, dye); + return lB(this, t, e, pye); }; -function pye(t, e, r) { +function gye(t, e, r) { if (r.isChild()) { var n = r._private.parent; e.has(n.id()) || t.push(n); @@ -102029,18 +102065,18 @@ function pye(t, e, r) { } g1.forEachUp = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return lB(this, t, e, pye); + return lB(this, t, e, gye); }; -function Par(t, e, r) { - pye(t, e, r), dye(t, e, r); +function Iar(t, e, r) { + gye(t, e, r), pye(t, e, r); } g1.forEachUpAndDown = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return lB(this, t, e, Par); + return lB(this, t, e, Iar); }; g1.ancestors = g1.parents; -var Vb, gye; -Vb = gye = { +var Vb, mye; +Vb = mye = { data: Jr.data({ field: "data", bindingEvent: "data", @@ -102108,7 +102144,7 @@ Vb = gye = { }; Vb.attr = Vb.data; Vb.removeAttr = Vb.removeData; -var Nar = gye, GE = {}; +var $ar = mye, GE = {}; function d7(t) { return function(e) { var r = this; @@ -102170,7 +102206,7 @@ ur(GE, { return r; } }); -var Kl, mye, vye = function(e, r, n) { +var Kl, vye, yye = function(e, r, n) { for (var i = 0; i < e.length; i++) { var s = e[i]; if (!s.locked()) { @@ -102195,7 +102231,7 @@ var Kl, mye, vye = function(e, r, n) { e.updateCompoundBounds(); }, beforeSet: function(e, r) { - vye(e, r, !1); + yye(e, r, !1); }, onSet: function(e) { e.dirtyCompoundBoundsCache(); @@ -102204,7 +102240,7 @@ var Kl, mye, vye = function(e, r, n) { return !e.locked(); } }; -Kl = mye = { +Kl = vye = { position: Jr.data(AZ), silentPosition: Jr.data(ur({}, AZ, { allowBinding: !1, @@ -102212,7 +102248,7 @@ Kl = mye = { settingTriggersEvent: !1, allowGetting: !1, beforeSet: function(e, r) { - vye(e, r, !0); + yye(e, r, !0); }, onSet: function(e) { e.dirtyCompoundBoundsCache(); @@ -102269,7 +102305,7 @@ Kl = mye = { if (l) for (var u = 0; u < this.length; u++) { var h = this[u]; - r !== void 0 ? h.position(e, (r - a[e]) / s) : o !== void 0 && h.position(Vve(o, s, a)); + r !== void 0 ? h.position(e, (r - a[e]) / s) : o !== void 0 && h.position(qve(o, s, a)); } else { var f = n.position(); @@ -102316,7 +102352,7 @@ Kl.modelPosition = Kl.point = Kl.position; Kl.modelPositions = Kl.points = Kl.positions; Kl.renderedPoint = Kl.renderedPosition; Kl.relativePoint = Kl.relativePosition; -var Iar = mye, nm, kd; +var Bar = vye, nm, kd; nm = kd = {}; kd.renderedBoundingBox = function(t) { var e = this.boundingBox(t), r = this.cy(), n = r.zoom(), i = r.pan(), s = e.x1 * n + i.x, a = e.x2 * n + i.x, o = e.y1 * n + i.y, l = e.y2 * n + i.y; @@ -102497,7 +102533,7 @@ var Xo = function(e) { } return e; } -}, $ar = function(e, r) { +}, Far = function(e, r) { if (!r.cy().headless()) { var n = r.pstyle("outline-opacity").value, i = r.pstyle("outline-width").value; if (n > 0 && i > 0) { @@ -102505,12 +102541,12 @@ var Xo = function(e) { ["diamond", "pentagon", "round-triangle"].includes(a) ? (l = (e.w + o * 2.4) / e.w, f = -o / 3.6) : ["concave-hexagon", "rhomboid", "right-rhomboid"].includes(a) ? l = (e.w + o * 2.4) / e.w : a === "star" ? (l = (e.w + o * 2.8) / e.w, u = (e.h + o * 2.6) / e.h, f = -o / 3.8) : a === "triangle" ? (l = (e.w + o * 2.8) / e.w, u = (e.h + o * 2.4) / e.h, f = -o / 1.4) : a === "vee" && (l = (e.w + o * 4.4) / e.w, u = (e.h + o * 3.8) / e.h, f = -o * 0.5); var d = e.h * u - e.h, p = e.w * l - e.w; if (tk(e, [Math.ceil(d / 2), Math.ceil(p / 2)]), h != 0 || f !== 0) { - var g = nnr(e, h, f); - Yve(e, g); + var g = snr(e, h, f); + Wve(e, g); } } } -}, Bar = function(e, r) { +}, zar = function(e, r) { var n = e._private.cy, i = n.styleEnabled(), s = n.headless(), a = lo(), o = e._private, l = e.isNode(), u = e.isEdge(), h, f, d, p, g, m, v = o.rstyle, y = l && i ? e.pstyle("bounds-expansion").pfValue : [0], b = function(De) { return De.pstyle("display").value !== "none"; }, w = !i || b(e) && (!u || b(e.source()) && b(e.target())); @@ -102524,7 +102560,7 @@ var Xo = function(e) { var _ = e.position(); g = _.x, m = _.y; var L = e.outerWidth(), $ = L / 2, k = e.outerHeight(), P = k / 2; - h = g - $, f = g + $, d = m - P, p = m + P, Nl(a, h, d, f, p), i && r.includeOutlines && $ar(a, e); + h = g - $, f = g + $, d = m - P, p = m + P, Nl(a, h, d, f, p), i && r.includeOutlines && Far(a, e); } else if (u && r.includeEdges) if (i && !s) { var M = e.pstyle("curve-style").strValue; @@ -102585,27 +102621,27 @@ var Xo = function(e) { var oe = o.overlayBounds = o.overlayBounds || {}; lZ(oe, a), tk(oe, y), ek(oe, 1); var ae = o.labelBounds = o.labelBounds || {}; - ae.all != null ? rnr(ae.all) : ae.all = lo(), i && r.includeLabels && (r.includeMainLabels && p7(a, e, null), u && (r.includeSourceLabels && p7(a, e, "source"), r.includeTargetLabels && p7(a, e, "target"))); + ae.all != null ? inr(ae.all) : ae.all = lo(), i && r.includeLabels && (r.includeMainLabels && p7(a, e, null), u && (r.includeSourceLabels && p7(a, e, "source"), r.includeTargetLabels && p7(a, e, "target"))); } return a.x1 = Xo(a.x1), a.y1 = Xo(a.y1), a.x2 = Xo(a.x2), a.y2 = Xo(a.y2), a.w = Xo(a.x2 - a.x1), a.h = Xo(a.y2 - a.y1), a.w > 0 && a.h > 0 && w && (tk(a, y), ek(a, 1)), a; -}, yye = function(e) { +}, bye = function(e) { var r = 0, n = function(a) { return (a ? 1 : 0) << r++; }, i = 0; return i += n(e.incudeNodes), i += n(e.includeEdges), i += n(e.includeLabels), i += n(e.includeMainLabels), i += n(e.includeSourceLabels), i += n(e.includeTargetLabels), i += n(e.includeOverlays), i += n(e.includeOutlines), i; -}, bye = function(e) { +}, xye = function(e) { if (e.isEdge()) { var r = e.source().position(), n = e.target().position(), i = function(a) { return Math.round(a); }; - return krr([i(r.x), i(r.y), i(n.x), i(n.y)]); + return Trr([i(r.x), i(r.y), i(n.x), i(n.y)]); } else return 0; }, LZ = function(e, r) { - var n = e._private, i, s = e.isEdge(), a = r == null ? RZ : yye(r), o = a === RZ, l = bye(e), u = n.bbCachePosKey === l, h = r.useCache && u, f = function(m) { + var n = e._private, i, s = e.isEdge(), a = r == null ? RZ : bye(r), o = a === RZ, l = xye(e), u = n.bbCachePosKey === l, h = r.useCache && u, f = function(m) { return m._private.bbCache == null || m._private.styleDirty; }, d = !h || f(e) || s && f(e.source()) || f(e.target()); - if (d ? (u || e.recalculateRenderedStyle(h), i = Bar(e, qb), n.bbCache = i, n.bbCachePosKey = l) : i = n.bbCache, !o) { + if (d ? (u || e.recalculateRenderedStyle(h), i = zar(e, qb), n.bbCache = i, n.bbCachePosKey = l) : i = n.bbCache, !o) { var p = e.isNode(); i = lo(), (r.includeNodes && p || r.includeEdges && !p) && (r.includeOverlays ? Vd(i, n.overlayBounds) : Vd(i, n.bodyBounds)), r.includeLabels && (r.includeMainLabels && (!s || r.includeSourceLabels && r.includeTargetLabels) ? Vd(i, n.labelBounds.all) : (r.includeMainLabels && Vd(i, n.labelBounds.mainRot), r.includeSourceLabels && Vd(i, n.labelBounds.sourceRot), r.includeTargetLabels && Vd(i, n.labelBounds.targetRot))), i.w = i.x2 - i.x1, i.h = i.y2 - i.y1; } @@ -102621,7 +102657,7 @@ var Xo = function(e) { includeUnderlays: !0, includeOutlines: !0, useCache: !0 -}, RZ = yye(qb), MZ = Bs(qb); +}, RZ = bye(qb), MZ = Bs(qb); kd.boundingBox = function(t) { var e; if (this.length === 1 && this[0]._private.bbCache != null && !this[0]._private.styleDirty && (t === void 0 || t.useCache === void 0 || t.useCache === !0)) @@ -102631,7 +102667,7 @@ kd.boundingBox = function(t) { var r = MZ(t), n = this, i = n.cy(), s = i.styleEnabled(); if (s) for (var a = 0; a < n.length; a++) { - var o = n[a], l = o._private, u = bye(o), h = l.bbCachePosKey === u, f = r.useCache && h && !l.styleDirty; + var o = n[a], l = o._private, u = xye(o), h = l.bbCachePosKey === u, f = r.useCache && h && !l.styleDirty; o.recalculateRenderedStyle(f); } this.updateCompoundBounds(!t.useCache); @@ -102665,16 +102701,16 @@ kd.boundingBoxAt = function(t) { return h._private.bbAtOldPos; }; r.startBatch(), e.forEach(a).silentPositions(t), n && (i.dirtyCompoundBoundsCache(), i.dirtyBoundingBoxCache(), i.updateCompoundBounds(!0)); - var l = tnr(this.boundingBox({ + var l = nnr(this.boundingBox({ useCache: !1 })); return e.silentPositions(o), n && (i.dirtyCompoundBoundsCache(), i.dirtyBoundingBoxCache(), i.updateCompoundBounds(!0)), r.endBatch(), l; }; nm.boundingbox = nm.bb = nm.boundingBox; nm.renderedBoundingbox = nm.renderedBoundingBox; -var Far = kd, _y, Vw; +var Qar = kd, _y, Vw; _y = Vw = {}; -var xye = function(e) { +var wye = function(e) { e.uppercaseName = tZ(e.name), e.autoName = "auto" + e.uppercaseName, e.labelName = "label" + e.uppercaseName, e.outerName = "outer" + e.uppercaseName, e.uppercaseOuterName = tZ(e.outerName), _y[e.name] = function() { var n = this[0], i = n._private, s = i.cy, a = s._private.styleEnabled; if (n) @@ -102712,10 +102748,10 @@ var xye = function(e) { } }; }; -xye({ +wye({ name: "width" }); -xye({ +wye({ name: "height" }); Vw.padding = function() { @@ -102730,61 +102766,61 @@ Vw.paddedWidth = function() { var t = this[0]; return t.width() + 2 * t.padding(); }; -var zar = Vw, Qar = function(e, r) { +var Uar = Vw, Var = function(e, r) { if (e.isEdge()) return r(e); -}, Uar = function(e, r) { +}, qar = function(e, r) { if (e.isEdge()) { var n = e.cy(); return UE(r(e), n.zoom(), n.pan()); } -}, Var = function(e, r) { +}, Yar = function(e, r) { if (e.isEdge()) { var n = e.cy(), i = n.pan(), s = n.zoom(); return r(e).map(function(a) { return UE(a, s, i); }); } -}, qar = function(e) { +}, War = function(e) { return e.renderer().getControlPoints(e); -}, Yar = function(e) { +}, Gar = function(e) { return e.renderer().getSegmentPoints(e); -}, War = function(e) { +}, Xar = function(e) { return e.renderer().getSourceEndpoint(e); -}, Gar = function(e) { +}, Har = function(e) { return e.renderer().getTargetEndpoint(e); -}, Xar = function(e) { +}, Zar = function(e) { return e.renderer().getEdgeMidpoint(e); }, DZ = { controlPoints: { - get: qar, + get: War, mult: !0 }, segmentPoints: { - get: Yar, + get: Gar, mult: !0 }, sourceEndpoint: { - get: War + get: Xar }, targetEndpoint: { - get: Gar + get: Har }, midpoint: { - get: Xar + get: Zar } -}, Har = function(e) { +}, jar = function(e) { return "rendered" + e[0].toUpperCase() + e.substr(1); -}, Zar = Object.keys(DZ).reduce(function(t, e) { - var r = DZ[e], n = Har(e); +}, Kar = Object.keys(DZ).reduce(function(t, e) { + var r = DZ[e], n = jar(e); return t[e] = function() { - return Qar(this, r.get); - }, r.mult ? t[n] = function() { return Var(this, r.get); + }, r.mult ? t[n] = function() { + return Yar(this, r.get); } : t[n] = function() { - return Uar(this, r.get); + return qar(this, r.get); }, t; -}, {}), jar = ur({}, Iar, Far, zar, Zar); +}, {}), Jar = ur({}, Bar, Qar, Uar, Kar); /*! Event object based on jQuery events, MIT license @@ -102792,7 +102828,7 @@ https://jquery.org/license/ https://tldrlegal.com/license/mit-license https://github.com/jquery/jquery/blob/master/src/event.js */ -var wye = function(e, r) { +var Oye = function(e, r) { this.recycle(e, r); }; function jv() { @@ -102801,7 +102837,7 @@ function jv() { function $4() { return !0; } -wye.prototype = { +Oye.prototype = { instanceString: function() { return "event"; }, @@ -102832,7 +102868,7 @@ wye.prototype = { isPropagationStopped: jv, isImmediatePropagationStopped: jv }; -var Oye = /^([^.]+)(\.(?:[^.]+))?$/, Kar = ".*", kye = { +var kye = /^([^.]+)(\.(?:[^.]+))?$/, eor = ".*", Sye = { qualifierCompare: function(e, r) { return e === r; }, @@ -102855,20 +102891,20 @@ var Oye = /^([^.]+)(\.(?:[^.]+))?$/, Kar = ".*", kye = { return null; }, context: null -}, PZ = Object.keys(kye), Jar = {}; +}, PZ = Object.keys(Sye), tor = {}; function XE() { - for (var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Jar, e = arguments.length > 1 ? arguments[1] : void 0, r = 0; r < PZ.length; r++) { + for (var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : tor, e = arguments.length > 1 ? arguments[1] : void 0, r = 0; r < PZ.length; r++) { var n = PZ[r]; - this[n] = t[n] || kye[n]; + this[n] = t[n] || Sye[n]; } this.context = e || this.context, this.listeners = [], this.emitting = 0; } -var ud = XE.prototype, Sye = function(e, r, n, i, s, a, o) { +var hd = XE.prototype, Tye = function(e, r, n, i, s, a, o) { Gn(i) && (s = i, i = null), o && (a == null ? a = o : a = ur({}, a, o)); for (var l = vn(n) ? n : n.split(/\s+/), u = 0; u < l.length; u++) { var h = l[u]; - if (!ad(h)) { - var f = h.match(Oye); + if (!od(h)) { + var f = h.match(kye); if (f) { var d = f[1], p = f[2] ? f[2] : null, g = r(e, h, d, p, i, s, a); if (g === !1) @@ -102877,9 +102913,9 @@ var ud = XE.prototype, Sye = function(e, r, n, i, s, a, o) { } } }, NZ = function(e, r) { - return e.addEventFields(e.context, r), new wye(r.type, r); -}, eor = function(e, r, n) { - if (btr(n)) { + return e.addEventFields(e.context, r), new Oye(r.type, r); +}, ror = function(e, r, n) { + if (wtr(n)) { r(e, n); return; } else if (zr(n)) { @@ -102888,8 +102924,8 @@ var ud = XE.prototype, Sye = function(e, r, n, i, s, a, o) { } for (var i = vn(n) ? n : n.split(/\s+/), s = 0; s < i.length; s++) { var a = i[s]; - if (!ad(a)) { - var o = a.match(Oye); + if (!od(a)) { + var o = a.match(kye); if (o) { var l = o[1], u = o[2] ? o[2] : null, h = NZ(e, { type: l, @@ -102901,8 +102937,8 @@ var ud = XE.prototype, Sye = function(e, r, n, i, s, a, o) { } } }; -ud.on = ud.addListener = function(t, e, r, n, i) { - return Sye(this, function(s, a, o, l, u, h, f) { +hd.on = hd.addListener = function(t, e, r, n, i) { + return Tye(this, function(s, a, o, l, u, h, f) { Gn(h) && s.listeners.push({ event: a, callback: h, @@ -102913,17 +102949,17 @@ ud.on = ud.addListener = function(t, e, r, n, i) { }); }, t, e, r, n, i), this; }; -ud.one = function(t, e, r, n) { +hd.one = function(t, e, r, n) { return this.on(t, e, r, n, { one: !0 }); }; -ud.removeListener = ud.off = function(t, e, r, n) { +hd.removeListener = hd.off = function(t, e, r, n) { var i = this; - this.emitting !== 0 && (this.listeners = _rr(this.listeners)); + this.emitting !== 0 && (this.listeners = Lrr(this.listeners)); for (var s = this.listeners, a = function(u) { var h = s[u]; - Sye(i, function(f, d, p, g, m, v) { + Tye(i, function(f, d, p, g, m, v) { if ((h.type === p || t === "*") && (!g && h.namespace !== ".*" || h.namespace === g) && (!m || f.qualifierCompare(h.qualifier, m)) && (!v || h.callback === v)) return s.splice(u, 1), !1; }, t, e, r, n); @@ -102931,12 +102967,12 @@ ud.removeListener = ud.off = function(t, e, r, n) { a(o); return this; }; -ud.removeAllListeners = function() { +hd.removeAllListeners = function() { return this.removeListener("*"); }; -ud.emit = ud.trigger = function(t, e, r) { +hd.emit = hd.trigger = function(t, e, r) { var n = this.listeners, i = n.length; - return this.emitting++, vn(e) || (e = [e]), eor(this, function(s, a) { + return this.emitting++, vn(e) || (e = [e]), ror(this, function(s, a) { r != null && (n = [{ event: a.event, type: a.type, @@ -102945,9 +102981,9 @@ ud.emit = ud.trigger = function(t, e, r) { }], i = n.length); for (var o = function(h) { var f = n[h]; - if (f.type === a.type && (!f.namespace || f.namespace === a.namespace || f.namespace === Kar) && s.eventMatches(s.context, f, a)) { + if (f.type === a.type && (!f.namespace || f.namespace === a.namespace || f.namespace === eor) && s.eventMatches(s.context, f, a)) { var d = [a]; - e != null && Lrr(d, e), s.beforeEmit(s.context, f, a), f.conf && f.conf.one && (s.listeners = s.listeners.filter(function(m) { + e != null && Mrr(d, e), s.beforeEmit(s.context, f, a), f.conf && f.conf.one && (s.listeners = s.listeners.filter(function(m) { return m !== f; })); var p = s.callbackContext(s.context, f, a), g = f.callback.apply(p, d); @@ -102958,7 +102994,7 @@ ud.emit = ud.trigger = function(t, e, r) { s.bubble(s.context) && !a.isPropagationStopped() && s.parent(s.context).emit(a, e); }, t), this.emitting--, this; }; -var tor = { +var nor = { qualifierCompare: function(e, r) { return e == null || r == null ? e == null && r == null : e.sameText(r); }, @@ -102982,12 +103018,12 @@ var tor = { return e.isChild() ? e.parent() : e.cy(); } }, B4 = function(e) { - return Jt(e) ? new ld(e) : e; -}, Tye = { + return Jt(e) ? new cd(e) : e; +}, Cye = { createEmitter: function() { for (var e = 0; e < this.length; e++) { var r = this[e], n = r._private; - n.emitter || (n.emitter = new XE(tor, r)); + n.emitter || (n.emitter = new XE(nor, r)); } return this; }, @@ -103043,8 +103079,8 @@ var tor = { return this.cy().notify(e, this), this.emit(e, r), this; } }; -Jr.eventAliasesOn(Tye); -var Cye = { +Jr.eventAliasesOn(Cye); +var Eye = { nodes: function(e) { return this.filter(function(r) { return r.isNode(); @@ -103069,7 +103105,7 @@ var Cye = { if (e === void 0) return this; if (Jt(e) || Ro(e)) - return new ld(e).filter(this); + return new cd(e).filter(this); if (Gn(e)) { for (var n = this.spawn(), i = this, s = 0; s < i.length; s++) { var a = i[s], o = r ? e.apply(r, [a, s, i]) : e(a, s, i); @@ -103237,14 +103273,14 @@ var Cye = { ele: i }; } -}, Vr = Cye; +}, Vr = Eye; Vr.u = Vr["|"] = Vr["+"] = Vr.union = Vr.or = Vr.add; Vr["\\"] = Vr["!"] = Vr["-"] = Vr.difference = Vr.relativeComplement = Vr.subtract = Vr.not; Vr.n = Vr["&"] = Vr["."] = Vr.and = Vr.intersection = Vr.intersect; Vr["^"] = Vr["(+)"] = Vr["(-)"] = Vr.symmetricDifference = Vr.symdiff = Vr.xor; Vr.fnFilter = Vr.filterFn = Vr.stdFilter = Vr.filter; Vr.complement = Vr.abscomp = Vr.absoluteComplement; -var ror = { +var ior = { isNode: function() { return this.group() === "nodes"; }, @@ -103262,7 +103298,7 @@ var ror = { if (e) return e._private.group; } -}, Eye = function(e, r) { +}, _ye = function(e, r) { var n = e.cy(), i = n.hasCompoundNodes(); function s(h) { var f = h.pstyle("z-compound-depth"); @@ -103327,7 +103363,7 @@ var ror = { return this.spawn(r); }, sortByZIndex: function() { - return this.sort(Eye); + return this.sort(_ye); }, zDepth: function() { var e = this[0]; @@ -103344,14 +103380,14 @@ var ror = { } }; fT.each = fT.forEach; -var nor = function() { +var sor = function() { var e = "undefined", r = (typeof Symbol > "u" ? "undefined" : ji(Symbol)) != e && ji(Symbol.iterator) != e; r && (fT[Symbol.iterator] = function() { var n = this, i = { value: void 0, done: !1 }, s = 0, a = this.length; - return kve({ + return Sve({ next: function() { return s < a ? i.value = n[s++] : (i.value = void 0, i.done = !0), i; } @@ -103360,12 +103396,12 @@ var nor = function() { }); }); }; -nor(); -var ior = Bs({ +sor(); +var aor = Bs({ nodeDimensionsIncludeLabels: !1 }), nk = { layoutDimensions: function(e) { - e = ior(e); + e = aor(e); var r; if (!this.takesUpSpace()) r = { @@ -103412,7 +103448,7 @@ var ior = Bs({ return null; for (var C = lo(), T = 0; T < i.length; T++) { var A = i[T], E = l(A, T); - inr(C, E.x, E.y); + anr(C, E.x, E.y); } return C; }, d = f(), p = Ib(function(S, C) { @@ -103486,13 +103522,13 @@ var ior = Bs({ } }; nk.createLayout = nk.makeLayout = nk.layout; -function _ye(t, e, r) { +function Aye(t, e, r) { var n = r._private, i = n.styleCache = n.styleCache || [], s; return (s = i[t]) != null || (s = i[t] = e(r)), s; } function HE(t, e) { return t = up(t), function(n) { - return _ye(t, e, n); + return Aye(t, e, n); }; } function ZE(t, e) { @@ -103503,7 +103539,7 @@ function ZE(t, e) { return function() { var i = this[0]; if (i) - return _ye(t, r, i); + return Aye(t, r, i); }; } var As = { @@ -103688,14 +103724,14 @@ var av = HE("eleTakesUpSpace", function(t) { As.takesUpSpace = ZE("takesUpSpace", cB({ ok: av })); -var sor = HE("eleInteractive", function(t) { +var oor = HE("eleInteractive", function(t) { return t.pstyle("events").value === "yes" && t.pstyle("visibility").value === "visible" && av(t); -}), aor = HE("parentInteractive", function(t) { +}), lor = HE("parentInteractive", function(t) { return t.pstyle("visibility").value === "visible" && av(t); }); As.interactive = ZE("interactive", cB({ - ok: sor, - parentOk: aor, + ok: oor, + parentOk: lor, edgeOkViaNode: av })); As.noninteractive = function() { @@ -103703,12 +103739,12 @@ As.noninteractive = function() { if (t) return !t.interactive(); }; -var oor = HE("eleVisible", function(t) { +var cor = HE("eleVisible", function(t) { return t.pstyle("visibility").value === "visible" && t.pstyle("opacity").pfValue !== 0 && av(t); -}), lor = av; +}), uor = av; As.visible = ZE("visible", cB({ - ok: oor, - edgeOkViaNode: lor + ok: cor, + edgeOkViaNode: uor })); As.hidden = function() { var t = this[0]; @@ -103722,7 +103758,7 @@ As.bypass = As.css = As.style; As.renderedCss = As.renderedStyle; As.removeBypass = As.removeCss = As.removeStyle; As.pstyle = As.parsedStyle; -var Mf = {}; +var Df = {}; function IZ(t) { return function() { var e = arguments, r = []; @@ -103749,7 +103785,7 @@ function IZ(t) { }; } function ov(t) { - Mf[t.field] = function() { + Df[t.field] = function() { var e = this[0]; if (e) { if (t.overrideField) { @@ -103759,13 +103795,13 @@ function ov(t) { } return e._private[t.field]; } - }, Mf[t.on] = IZ({ + }, Df[t.on] = IZ({ event: t.on, field: t.field, ableField: t.ableField, overrideAble: t.overrideAble, value: !0 - }), Mf[t.off] = IZ({ + }), Df[t.off] = IZ({ event: t.off, field: t.field, ableField: t.ableField, @@ -103806,8 +103842,8 @@ ov({ on: "selectify", off: "unselectify" }); -Mf.deselect = Mf.unselect; -Mf.grabbed = function() { +Df.deselect = Df.unselect; +Df.grabbed = function() { var t = this[0]; if (t) return t._private.grabbed; @@ -103822,7 +103858,7 @@ ov({ on: "panify", off: "unpanify" }); -Mf.inactive = function() { +Df.inactive = function() { var t = this[0]; if (t) return !t._private.active; @@ -104048,7 +104084,7 @@ var Ls = function(e, r) { f.data == null && (f.data = {}); var d = f.data; if (d.id == null) - d.id = Qve(); + d.id = Uve(); else if (e.hasElementWithId(d.id) || l.has(d.id)) continue; var p = new QE(e, f, !1); @@ -104106,7 +104142,7 @@ En.element = function() { return this[0]; }; En.collection = function() { - return Eve(this) ? this : new Ls(this._private.cy, [this]); + return _ve(this) ? this : new Ls(this._private.cy, [this]); }; En.unique = function() { return new Ls(this._private.cy, this, !0); @@ -104206,10 +104242,10 @@ En.restore = function() { var p = o[f], g = p._private, m = g.data; if (p.clearTraversalCache(), !(!e && !g.removed)) { if (m.id === void 0) - m.id = Qve(); + m.id = Uve(); else if (Lt(m.id)) m.id = "" + m.id; - else if (ad(m.id) || !Jt(m.id)) { + else if (od(m.id) || !Jt(m.id)) { ii("Can not create element with invalid string ID `" + m.id + "`"), d(); continue; } else if (n.hasElementWithId(m.id)) { @@ -104299,7 +104335,7 @@ En.remove = function() { } function d(k, P) { var M = k._private.edges; - od(M, P), k.clearTraversalCache(); + ld(M, P), k.clearTraversalCache(); } function p(k) { k.clearTraversalCache(); @@ -104309,7 +104345,7 @@ En.remove = function() { function m(k, P) { P = P[0], k = k[0]; var M = k._private.children, N = k.id(); - od(M, P), P._private.parent = null, g.ids[N] || (g.ids[N] = !0, g.push(k)); + ld(M, P), P._private.parent = null, g.ids[N] || (g.ids[N] = !0, g.push(k)); } r.dirtyCompoundBoundsCache(), e && s.removeFromPool(n); for (var v = 0; v < n.length; v++) { @@ -104375,10 +104411,10 @@ En.move = function(t) { } return this; }; -[eye, bar, rk, Rf, g1, Nar, GE, jar, Tye, Cye, ror, fT, nk, As, Mf, ia].forEach(function(t) { +[tye, war, rk, Mf, g1, $ar, GE, Jar, Cye, Eye, ior, fT, nk, As, Df, ia].forEach(function(t) { ur(En, t); }); -var cor = { +var hor = { add: function(e) { var r, n = this; if (Ro(e)) { @@ -104424,7 +104460,7 @@ var cor = { } }; /*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */ -function uor(t, e, r, n) { +function dor(t, e, r, n) { var i = 4, s = 1e-3, a = 1e-7, o = 10, l = 11, u = 1 / (l - 1), h = typeof Float32Array < "u"; if (arguments.length !== 4) return !1; @@ -104498,7 +104534,7 @@ function uor(t, e, r, n) { }, A; } /*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */ -var hor = function() { +var por = function() { function t(n) { return -n.tension * n.x - n.friction * n.v; } @@ -104535,7 +104571,7 @@ var hor = function() { } : u; }; }(), wn = function(e, r, n, i) { - var s = uor(e, r, n, i); + var s = dor(e, r, n, i); return function(a, o, l) { return a + (o - a) * s(l); }; @@ -104571,7 +104607,7 @@ var hor = function() { spring: function(e, r, n) { if (n === 0) return ik.linear; - var i = hor(e, r, n); + var i = por(e, r, n); return function(s, a, o) { return s + (a - s) * i(o); }; @@ -104605,7 +104641,7 @@ function tg(t, e, r, n, i) { return l; } } -function dor(t, e, r, n) { +function gor(t, e, r, n) { var i = !n, s = t._private, a = e._private, o = a.easing, l = a.startTime, u = n ? t : t.cy(), h = u.style(); if (!a.easingImpl) if (o == null) @@ -104647,7 +104683,7 @@ function dor(t, e, r, n) { function Kv(t, e) { return t == null || e == null ? !1 : Lt(t) && Lt(e) ? !0 : !!(t && e); } -function por(t, e, r, n) { +function mor(t, e, r, n) { var i = e._private; i.started = !0, i.startTime = r - i.progress * i.duration; } @@ -104671,7 +104707,7 @@ function YZ(t, e) { p.splice(b, 1), O.hooked = !1, O.playing = !1, O.started = !1, y(O.frames); continue; } - !O.playing && !O.applying || (O.playing && O.applying && (O.applying = !1), O.started || por(h, w, t), dor(h, w, t, f), O.applying && (O.applying = !1), y(O.frames), O.step != null && O.step(t), w.completed() && (p.splice(b, 1), O.hooked = !1, O.playing = !1, O.started = !1, y(O.completes)), m = !0); + !O.playing && !O.applying || (O.playing && O.applying && (O.applying = !1), O.started || mor(h, w, t), gor(h, w, t, f), O.applying && (O.applying = !1), y(O.frames), O.step != null && O.step(t), w.completed() && (p.splice(b, 1), O.hooked = !1, O.playing = !1, O.started = !1, y(O.completes)), m = !0); } return !f && p.length === 0 && g.length === 0 && n.push(h), m; } @@ -104682,7 +104718,7 @@ function YZ(t, e) { var u = i(e, !0); (s || u) && (r.length > 0 ? e.notify("draw", r) : e.notify("draw")), r.unmerge(n), e.emit("step"); } -var gor = { +var vor = { animate: Jr.animate(), animation: Jr.animation(), animated: Jr.animated(), @@ -104711,7 +104747,7 @@ var gor = { YZ(a, e); }, n.beforeRenderPriorities.animations) : r(); } -}, mor = { +}, yor = { qualifierCompare: function(e, r) { return e == null || r == null ? e == null && r == null : e.sameText(r); }, @@ -104726,11 +104762,11 @@ var gor = { return r.qualifier != null ? n.target : e; } }, F4 = function(e) { - return Jt(e) ? new ld(e) : e; -}, Aye = { + return Jt(e) ? new cd(e) : e; +}, Lye = { createEmitter: function() { var e = this._private; - return e.emitter || (e.emitter = new XE(mor, this)), this; + return e.emitter || (e.emitter = new XE(yor, this)), this; }, emitter: function() { return this._private.emitter; @@ -104757,7 +104793,7 @@ var gor = { return this.emit(e), this.notify(e, r), this; } }; -Jr.eventAliasesOn(Aye); +Jr.eventAliasesOn(Lye); var mM = { png: function(e) { var r = this._private.renderer; @@ -104795,7 +104831,7 @@ var sk = { } }; sk.createLayout = sk.makeLayout = sk.layout; -var vor = { +var bor = { notify: function(e, r) { var n = this._private; if (this.batching()) { @@ -104849,7 +104885,7 @@ var vor = { } }); } -}, yor = Bs({ +}, xor = Bs({ hideEdgesOnViewport: !1, textureOnViewport: !1, motionBlur: !1, @@ -104881,7 +104917,7 @@ var vor = { return; } e.wheelSensitivity !== void 0 && rn("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine."); - var i = yor(e); + var i = xor(e); i.cy = r, r._private.renderer = new n(i), this.notify("init"); }, destroyRenderer: function() { @@ -104929,7 +104965,7 @@ var ak = { } }; ak.elements = ak.filter = ak.$; -var ha = {}, s2 = "t", bor = "f"; +var ha = {}, s2 = "t", wor = "f"; ha.apply = function(t) { for (var e = this, r = e._private, n = r.cy, i = n.collection(), s = 0; s < t.length; s++) { var a = t[s], o = e.getContextMeta(a); @@ -104966,7 +105002,7 @@ ha.getPropertiesDiff = function(t, e) { ha.getContextMeta = function(t) { for (var e = this, r = "", n, i = t._private.styleCxtKey || "", s = 0; s < e.length; s++) { var a = e[s], o = a.selector && a.selector.matches(t); - o ? r += s2 : r += bor; + o ? r += s2 : r += wor; } return n = e.getPropertiesDiff(i, r), t._private.styleCxtKey = r, { key: r, @@ -105064,21 +105100,21 @@ ha.updateStyleHints = function(t) { var M = i[P], N = e.styleKeys[M]; k[0] = $b(N[0], k[0]), k[1] = Bb(N[1], k[1]); } - e.styleKey = Orr(k[0], k[1]); + e.styleKey = Srr(k[0], k[1]); var D = e.styleKeys; - e.labelDimsKey = Wh(D.labelDimensions); + e.labelDimsKey = Gh(D.labelDimensions); var I = s(t, ["label"], D.labelDimensions); - if (e.labelKey = Wh(I), e.labelStyleKey = Wh(L4(D.commonLabel, I)), !o) { + if (e.labelKey = Gh(I), e.labelStyleKey = Gh(L4(D.commonLabel, I)), !o) { var F = s(t, ["source-label"], D.labelDimensions); - e.sourceLabelKey = Wh(F), e.sourceLabelStyleKey = Wh(L4(D.commonLabel, F)); + e.sourceLabelKey = Gh(F), e.sourceLabelStyleKey = Gh(L4(D.commonLabel, F)); var B = s(t, ["target-label"], D.labelDimensions); - e.targetLabelKey = Wh(B), e.targetLabelStyleKey = Wh(L4(D.commonLabel, B)); + e.targetLabelKey = Gh(B), e.targetLabelStyleKey = Gh(L4(D.commonLabel, B)); } if (o) { var U = e.styleKeys, Q = U.nodeBody, W = U.nodeBorder, K = U.nodeOutline, Y = U.backgroundImage, te = U.compound, se = U.pie, V = [Q, W, K, Y, te, se].filter(function(Z) { return Z != null; }).reduce(L4, [Eg, Cy]); - e.nodeKey = Wh(V), e.hasPie = se != null && se[0] !== Eg && se[1] !== Cy; + e.nodeKey = Gh(V), e.hasPie = se != null && se[0] !== Eg && se[1] !== Cy; } return a !== e.styleKey; }; @@ -105428,7 +105464,7 @@ hB.appendFromString = function(t) { i = h[0]; var f = h[1]; if (f !== "core") { - var d = new ld(f); + var d = new cd(f); if (d.invalid) { rn("Skipping parsing of block: Invalid selector found in string stylesheet: " + f), o(); continue; @@ -105480,7 +105516,7 @@ hB.fromString = function(t) { }; var ys = {}; (function() { - var t = qi, e = Ttr, r = Etr, n = _tr, i = Atr, s = function(V) { + var t = qi, e = Etr, r = Atr, n = Ltr, i = Rtr, s = function(V) { return "^" + V + "\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"; }, a = function(V) { var Z = t + "|\\w+|" + e + "|" + r + "|" + n + "|" + i; @@ -105856,7 +105892,7 @@ var ys = {}; return V != Z; }, emptyNonEmpty: function(V, Z) { - var G = ad(V), J = ad(Z); + var G = od(V), J = od(Z); return G && !J || !G && J; } }, u = ys.types, h = [{ @@ -106800,7 +106836,7 @@ KE.parse = function(t, e, r, n) { var i = this; if (Gn(e)) return i.parseImplWarn(t, e, r, n); - var s = n === "mapping" || n === !0 || n === !1 || n == null ? "dontcare" : n, a = r ? "t" : "f", o = "" + e, l = Bve(t, o, a, s), u = i.propCache = i.propCache || [], h; + var s = n === "mapping" || n === !0 || n === !1 || n == null ? "dontcare" : n, a = r ? "t" : "f", o = "" + e, l = Fve(t, o, a, s), u = i.propCache = i.propCache || [], h; return (h = u[l]) || (h = u[l] = i.parseImplWarn(t, e, r, n)), (r || n === "mapping") && (h = Hc(h), h && (h.value = Hc(h.value))), h; }; KE.parseImplWarn = function(t, e, r, n) { @@ -106930,7 +106966,7 @@ KE.parseImpl = function(t, e, r, n) { return null; if (isNaN(e) && u.enums !== void 0) return e = a, _(); - if (u.integer && !ytr(e) || u.min !== void 0 && (e < u.min || u.strictMin && e === u.min) || u.max !== void 0 && (e > u.max || u.strictMax && e === u.max)) + if (u.integer && !xtr(e) || u.min !== void 0 && (e < u.min || u.strictMin && e === u.min) || u.max !== void 0 && (e > u.max || u.strictMax && e === u.max)) return null; var M = { name: t, @@ -106939,7 +106975,7 @@ KE.parseImpl = function(t, e, r, n) { units: L, bypass: r }; - return u.unitless || L !== "px" && L !== "em" ? M.pfValue = e : M.pfValue = L === "px" || !L ? e : this.getEmSizeInPixels() * e, (L === "ms" || L === "s") && (M.pfValue = L === "ms" ? e : 1e3 * e), (L === "deg" || L === "rad") && (M.pfValue = L === "rad" ? e : Krr(e)), L === "%" && (M.pfValue = e / 100), M; + return u.unitless || L !== "px" && L !== "em" ? M.pfValue = e : M.pfValue = L === "px" || !L ? e : this.getEmSizeInPixels() * e, (L === "ms" || L === "s") && (M.pfValue = L === "ms" ? e : 1e3 * e), (L === "deg" || L === "rad") && (M.pfValue = L === "rad" ? e : enr(e)), L === "%" && (M.pfValue = e / 100), M; } else if (u.propList) { var N = [], D = "" + e; if (D !== "none") { @@ -106957,7 +106993,7 @@ KE.parseImpl = function(t, e, r, n) { bypass: r }; } else if (u.color) { - var U = Ntr(e); + var U = $tr(e); return U ? { name: t, value: U, @@ -107020,7 +107056,7 @@ sa.core = function(t) { return this._private.coreStyle[t] || this.getDefaultProperty(t); }; sa.selector = function(t) { - var e = t === "core" ? null : new ld(t), r = this.length++; + var e = t === "core" ? null : new cd(t), r = this.length++; return this[r] = { selector: e, properties: [], @@ -107051,7 +107087,7 @@ sa.cssRule = function(t, e) { return this; }; sa.append = function(t) { - return _ve(t) ? t.appendToStyle(this) : vn(t) ? this.appendFromJson(t) : Jt(t) && this.appendFromString(t), this; + return Ave(t) ? t.appendToStyle(this) : vn(t) ? this.appendFromJson(t) : Jt(t) && this.appendFromString(t), this; }; na.fromJson = function(t, e) { var r = new na(t); @@ -107068,7 +107104,7 @@ na.properties = sa.properties; na.propertyGroups = sa.propertyGroups; na.propertyGroupNames = sa.propertyGroupNames; na.propertyGroupKeys = sa.propertyGroupKeys; -var xor = { +var Oor = { style: function(e) { if (e) { var r = this.setStyle(e); @@ -107078,12 +107114,12 @@ var xor = { }, setStyle: function(e) { var r = this._private; - return _ve(e) ? r.style = e.generateStyle(this) : vn(e) ? r.style = na.fromJson(this, e) : Jt(e) ? r.style = na.fromString(this, e) : r.style = na(this), r.style; + return Ave(e) ? r.style = e.generateStyle(this) : vn(e) ? r.style = na.fromJson(this, e) : Jt(e) ? r.style = na.fromString(this, e) : r.style = na(this), r.style; }, updateStyle: function() { this.mutableElements().updateStyle(); } -}, wor = "single", pp = { +}, kor = "single", pp = { autolock: function(e) { if (e !== void 0) this._private.autolock = !!e; @@ -107107,7 +107143,7 @@ var xor = { }, selectionType: function(e) { var r = this._private; - if (r.selectionType == null && (r.selectionType = wor), e !== void 0) + if (r.selectionType == null && (r.selectionType = kor), e !== void 0) (e === "additive" || e === "single") && (r.selectionType = e); else return r.selectionType; @@ -107198,7 +107234,7 @@ var xor = { if (Jt(e)) { var i = e; e = this.$(i); - } else if (wtr(e)) { + } else if (ktr(e)) { var s = e; n = { x1: s.x1, @@ -107472,7 +107508,7 @@ var Wb = function(e) { max: o.maxZoom }); var h = function(g, m) { - var v = g.some(Otr); + var v = g.some(Str); if (v) return rv.all(g).then(m); m(g); @@ -107634,10 +107670,10 @@ ur(dT, { } }); dT.$id = dT.getElementById; -[cor, gor, Aye, mM, sk, vor, vM, ak, xor, pp, Yb].forEach(function(t) { +[hor, vor, Lye, mM, sk, bor, vM, ak, Oor, pp, Yb].forEach(function(t) { ur(dT, t); }); -var Oor = { +var Sor = { fit: !0, directed: !1, padding: 30, @@ -107660,7 +107696,7 @@ var Oor = { transform: function(e, r) { return r; } -}, kor = { +}, Tor = { maximal: !1, acyclic: !1 }, rg = function(e) { @@ -107668,10 +107704,10 @@ var Oor = { }, WZ = function(e, r) { return e.scratch("breadthfirst", r); }; -function Lye(t) { - this.options = ur({}, Oor, kor, t); +function Rye(t) { + this.options = ur({}, Sor, Tor, t); } -Lye.prototype.run = function() { +Rye.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = n.nodes().filter(function(ae) { return !ae.isParent(); }), s = n, a = e.directed, o = e.acyclic || e.maximal || e.maximalAdjustments > 0, l = lo(e.boundingBox ? e.boundingBox : { @@ -107802,7 +107838,7 @@ Lye.prototype.run = function() { return Pe = Math.max(1, Pe), _e = _e / Pe, Pe === 0 && (_e = 0), Q[ee.id()] = _e, _e; }, K = function(ee, De) { var he = W(ee), _e = W(De), Pe = he - _e; - return Pe === 0 ? Lve(ee.id(), De.id()) : Pe; + return Pe === 0 ? Rve(ee.id(), De.id()) : Pe; }; e.depthSort !== void 0 && (K = e.depthSort); for (var Y = 0; Y < y.length; Y++) @@ -107835,7 +107871,7 @@ Lye.prototype.run = function() { }; return n.nodes().layoutPositions(this, e, oe), this; }; -var Sor = { +var Cor = { fit: !0, padding: 30, boundingBox: void 0, @@ -107859,10 +107895,10 @@ var Sor = { return r; } }; -function Rye(t) { - this.options = ur({}, Sor, t); +function Mye(t) { + this.options = ur({}, Cor, t); } -Rye.prototype.run = function() { +Mye.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = e.counterclockwise !== void 0 ? !e.counterclockwise : e.clockwise, s = n.nodes().not(":parent"); e.sort && (s = s.sort(e.sort)); for (var a = lo(e.boundingBox ? e.boundingBox : { @@ -107891,7 +107927,7 @@ Rye.prototype.run = function() { }; return n.nodes().layoutPositions(this, e, O), this; }; -var Tor = { +var Eor = { fit: !0, padding: 30, startAngle: 3 / 2 * Math.PI, @@ -107923,10 +107959,10 @@ var Tor = { return r; } }; -function Mye(t) { - this.options = ur({}, Tor, t); +function Dye(t) { + this.options = ur({}, Eor, t); } -Mye.prototype.run = function() { +Dye.prototype.run = function() { for (var t = this.options, e = t, r = e.counterclockwise !== void 0 ? !e.counterclockwise : e.clockwise, n = t.cy, i = e.eles, s = i.nodes().not(":parent"), a = lo(e.boundingBox ? e.boundingBox : { x1: 0, y1: 0, @@ -107995,7 +108031,7 @@ Mye.prototype.run = function() { return K[ee]; }), this; }; -var m7, Cor = { +var m7, _or = { ready: function() { }, stop: function() { @@ -108032,7 +108068,7 @@ var m7, Cor = { minTemp: 1 }; function JE(t) { - this.options = ur({}, Cor, t), this.options.layout = this; + this.options = ur({}, _or, t), this.options.layout = this; var e = this.options.eles.nodes(), r = this.options.eles.edges(), n = r.filter(function(i) { var s = i.source().data("id"), a = i.target().data("id"), o = e.some(function(u) { return u.data("id") === s; @@ -108049,12 +108085,12 @@ JE.prototype.run = function() { type: "layoutstart", layout: r }), t.debug === !0 ? m7 = !0 : m7 = !1; - var n = Eor(e, r, t); - m7 && Lor(n), t.randomize && Ror(n); + var n = Aor(e, r, t); + m7 && Mor(n), t.randomize && Dor(n); var i = Eh(), s = function() { - Mor(n, e, t), t.fit === !0 && e.fit(t.padding); + Por(n, e, t), t.fit === !0 && e.fit(t.padding); }, a = function(d) { - return !(r.stopped || d >= t.numIter || (Dor(n, t), n.temperature = n.temperature * t.coolingFactor, n.temperature < t.minTemp)); + return !(r.stopped || d >= t.numIter || (Nor(n, t), n.temperature = n.temperature * t.coolingFactor, n.temperature < t.minTemp)); }, o = function() { if (t.animate === !0 || t.animate === !1) s(), r.one("layoutstop", t.stop), r.emit({ @@ -108062,7 +108098,7 @@ JE.prototype.run = function() { layout: r }); else { - var d = t.eles.nodes(), p = Dye(n, t, d); + var d = t.eles.nodes(), p = Pye(n, t, d); d.layoutPositions(r, t, p); } }, l = 0, u = !0; @@ -108091,7 +108127,7 @@ JE.prototype.stop = function() { JE.prototype.destroy = function() { return this.thread && this.thread.stop(), this; }; -var Eor = function(e, r, n) { +var Aor = function(e, r, n) { for (var i = n.eles.edges(), s = n.eles.nodes(), a = lo(n.boundingBox ? n.boundingBox : { x1: 0, y1: 0, @@ -108141,7 +108177,7 @@ var Eor = function(e, r, n) { L.id = _.data("id"), L.sourceId = _.data("source"), L.targetId = _.data("target"); var $ = Gn(n.idealEdgeLength) ? n.idealEdgeLength(_) : n.idealEdgeLength, k = Gn(n.edgeElasticity) ? n.edgeElasticity(_) : n.edgeElasticity, P = o.idToIndex[L.sourceId], M = o.idToIndex[L.targetId], N = o.indexToGraph[P], D = o.indexToGraph[M]; if (N != D) { - for (var I = _or(L.sourceId, L.targetId, o), F = o.graphSet[I], B = 0, v = o.layoutNodes[P]; F.indexOf(v.id) === -1; ) + for (var I = Lor(L.sourceId, L.targetId, o), F = o.graphSet[I], B = 0, v = o.layoutNodes[P]; F.indexOf(v.id) === -1; ) v = o.layoutNodes[o.idToIndex[v.parentId]], B++; for (v = o.layoutNodes[M]; F.indexOf(v.id) === -1; ) v = o.layoutNodes[o.idToIndex[v.parentId]], B++; @@ -108150,10 +108186,10 @@ var Eor = function(e, r, n) { L.idealLength = $, L.elasticity = k, o.layoutEdges.push(L); } return o; -}, _or = function(e, r, n) { - var i = Aor(e, r, 0, n); +}, Lor = function(e, r, n) { + var i = Ror(e, r, 0, n); return 2 > i.count ? 0 : i.graph; -}, Aor = function t(e, r, n, i) { +}, Ror = function t(e, r, n, i) { var s = i.graphSet[n]; if (-1 < s.indexOf(e) && -1 < s.indexOf(r)) return { @@ -108176,12 +108212,12 @@ var Eor = function(e, r, n) { count: a, graph: n }; -}, Lor, Ror = function(e, r) { +}, Mor, Dor = function(e, r) { for (var n = e.clientWidth, i = e.clientHeight, s = 0; s < e.nodeSize; s++) { var a = e.layoutNodes[s]; a.children.length === 0 && !a.isLocked && (a.positionX = Math.random() * n, a.positionY = Math.random() * i); } -}, Dye = function(e, r, n) { +}, Pye = function(e, r, n) { var i = e.boundingBox, s = { x1: 1 / 0, x2: -1 / 0, @@ -108205,36 +108241,36 @@ var Eor = function(e, r, n) { y: l.positionY }; }; -}, Mor = function(e, r, n) { - var i = n.layout, s = n.eles.nodes(), a = Dye(e, n, s); +}, Por = function(e, r, n) { + var i = n.layout, s = n.eles.nodes(), a = Pye(e, n, s); s.positions(a), e.ready !== !0 && (e.ready = !0, i.one("layoutready", n.ready), i.emit({ type: "layoutready", layout: this })); -}, Dor = function(e, r, n) { - Por(e, r), $or(e), Bor(e, r), For(e), zor(e); -}, Por = function(e, r) { +}, Nor = function(e, r, n) { + Ior(e, r), For(e), zor(e, r), Qor(e), Uor(e); +}, Ior = function(e, r) { for (var n = 0; n < e.graphSet.length; n++) for (var i = e.graphSet[n], s = i.length, a = 0; a < s; a++) for (var o = e.layoutNodes[e.idToIndex[i[a]]], l = a + 1; l < s; l++) { var u = e.layoutNodes[e.idToIndex[i[l]]]; - Nor(o, u, e, r); + $or(o, u, e, r); } }, GZ = function(e) { return -e + 2 * e * Math.random(); -}, Nor = function(e, r, n, i) { +}, $or = function(e, r, n, i) { var s = e.cmptId, a = r.cmptId; if (!(s !== a && !n.isCompound)) { var o = r.positionX - e.positionX, l = r.positionY - e.positionY, u = 1; o === 0 && l === 0 && (o = GZ(u), l = GZ(u)); - var h = Ior(e, r, o, l); + var h = Bor(e, r, o, l); if (h > 0) var f = i.nodeOverlap * h, d = Math.sqrt(o * o + l * l), p = f * o / d, g = f * l / d; else var m = pT(e, o, l), v = pT(r, -1 * o, -1 * l), y = v.x - m.x, b = v.y - m.y, w = y * y + b * b, d = Math.sqrt(w), f = (e.nodeRepulsion + r.nodeRepulsion) / w, p = f * y / d, g = f * b / d; e.isLocked || (e.offsetX -= p, e.offsetY -= g), r.isLocked || (r.offsetX += p, r.offsetY += g); } -}, Ior = function(e, r, n, i) { +}, Bor = function(e, r, n, i) { if (n > 0) var s = e.maxX - r.minX; else @@ -108247,7 +108283,7 @@ var Eor = function(e, r, n) { }, pT = function(e, r, n) { var i = e.positionX, s = e.positionY, a = e.height || 1, o = e.width || 1, l = n / r, u = a / o, h = {}; return r === 0 && 0 < n || r === 0 && 0 > n ? (h.x = i, h.y = s + a / 2, h) : 0 < r && -1 * u <= l && l <= u ? (h.x = i + o / 2, h.y = s + o * n / 2 / r, h) : 0 > r && -1 * u <= l && l <= u ? (h.x = i - o / 2, h.y = s - o * n / 2 / r, h) : 0 < n && (l <= -1 * u || l >= u) ? (h.x = i + a * r / 2 / n, h.y = s + a / 2, h) : (0 > n && (l <= -1 * u || l >= u) && (h.x = i - a * r / 2 / n, h.y = s - a / 2), h); -}, $or = function(e, r) { +}, For = function(e, r) { for (var n = 0; n < e.edgeSize; n++) { var i = e.layoutEdges[n], s = e.idToIndex[i.sourceId], a = e.layoutNodes[s], o = e.idToIndex[i.targetId], l = e.layoutNodes[o], u = l.positionX - a.positionX, h = l.positionY - a.positionY; if (!(u === 0 && h === 0)) { @@ -108259,7 +108295,7 @@ var Eor = function(e, r, n) { a.isLocked || (a.offsetX += y, a.offsetY += b), l.isLocked || (l.offsetX -= y, l.offsetY -= b); } } -}, Bor = function(e, r) { +}, zor = function(e, r) { if (r.gravity !== 0) for (var n = 1, i = 0; i < e.graphSet.length; i++) { var s = e.graphSet[i], a = s.length; @@ -108278,7 +108314,7 @@ var Eor = function(e, r, n) { } } } -}, For = function(e, r) { +}, Qor = function(e, r) { var n = [], i = 0, s = -1; for (n.push.apply(n, e.graphSet[0]), s += e.graphSet[0].length; i <= s; ) { var a = n[i++], o = e.idToIndex[a], l = e.layoutNodes[o], u = l.children; @@ -108290,7 +108326,7 @@ var Eor = function(e, r, n) { l.offsetX = 0, l.offsetY = 0; } } -}, zor = function(e, r) { +}, Uor = function(e, r) { for (var n = 0; n < e.nodeSize; n++) { var i = e.layoutNodes[n]; 0 < i.children.length && (i.maxX = void 0, i.minX = void 0, i.maxY = void 0, i.minY = void 0); @@ -108298,15 +108334,15 @@ var Eor = function(e, r, n) { for (var n = 0; n < e.nodeSize; n++) { var i = e.layoutNodes[n]; if (!(0 < i.children.length || i.isLocked)) { - var s = Qor(i.offsetX, i.offsetY, e.temperature); - i.positionX += s.x, i.positionY += s.y, i.offsetX = 0, i.offsetY = 0, i.minX = i.positionX - i.width, i.maxX = i.positionX + i.width, i.minY = i.positionY - i.height, i.maxY = i.positionY + i.height, Uor(i, e); + var s = Vor(i.offsetX, i.offsetY, e.temperature); + i.positionX += s.x, i.positionY += s.y, i.offsetX = 0, i.offsetY = 0, i.minX = i.positionX - i.width, i.maxX = i.positionX + i.width, i.minY = i.positionY - i.height, i.maxY = i.positionY + i.height, qor(i, e); } } for (var n = 0; n < e.nodeSize; n++) { var i = e.layoutNodes[n]; 0 < i.children.length && !i.isLocked && (i.positionX = (i.maxX + i.minX) / 2, i.positionY = (i.maxY + i.minY) / 2, i.width = i.maxX - i.minX, i.height = i.maxY - i.minY); } -}, Qor = function(e, r, n) { +}, Vor = function(e, r, n) { var i = Math.sqrt(e * e + r * r); if (i > n) var s = { @@ -108319,7 +108355,7 @@ var Eor = function(e, r, n) { y: r }; return s; -}, Uor = function t(e, r) { +}, qor = function t(e, r) { var n = e.parentId; if (n != null) { var i = r.layoutNodes[r.idToIndex[n]], s = !1; @@ -108355,7 +108391,7 @@ var Eor = function(e, r, n) { p += h.w + r.componentSpacing, m += h.w + r.componentSpacing, v = Math.max(v, h.h), m > y && (g += v + r.componentSpacing, p = 0, m = 0, v = 0); } } -}, Vor = { +}, Yor = { fit: !0, padding: 30, boundingBox: void 0, @@ -108381,10 +108417,10 @@ var Eor = function(e, r, n) { return r; } }; -function Pye(t) { - this.options = ur({}, Vor, t); +function Nye(t) { + this.options = ur({}, Yor, t); } -Pye.prototype.run = function() { +Nye.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = n.nodes().not(":parent"); e.sort && (i = i.sort(e.sort)); var s = lo(e.boundingBox ? e.boundingBox : { @@ -108477,14 +108513,14 @@ Pye.prototype.run = function() { } return this; }; -var qor = { +var Wor = { ready: function() { }, stop: function() { } }; function fB(t) { - this.options = ur({}, qor, t); + this.options = ur({}, Wor, t); } fB.prototype.run = function() { var t = this.options, e = t.eles, r = this; @@ -108498,7 +108534,7 @@ fB.prototype.run = function() { fB.prototype.stop = function() { return this; }; -var Yor = { +var Gor = { positions: void 0, zoom: void 0, pan: void 0, @@ -108517,14 +108553,14 @@ var Yor = { return r; } }; -function Nye(t) { - this.options = ur({}, Yor, t); +function Iye(t) { + this.options = ur({}, Gor, t); } -Nye.prototype.run = function() { +Iye.prototype.run = function() { var t = this.options, e = t.eles, r = e.nodes(), n = Gn(t.positions); function i(s) { if (t.positions == null) - return Grr(s.position()); + return Hrr(s.position()); if (n) return t.positions(s); var a = t.positions[s._private.data.id]; @@ -108535,7 +108571,7 @@ Nye.prototype.run = function() { return s.locked() || o == null ? !1 : o; }), this; }; -var Wor = { +var Xor = { fit: !0, padding: 30, boundingBox: void 0, @@ -108551,10 +108587,10 @@ var Wor = { return r; } }; -function Iye(t) { - this.options = ur({}, Wor, t); +function $ye(t) { + this.options = ur({}, Xor, t); } -Iye.prototype.run = function() { +$ye.prototype.run = function() { var t = this.options, e = t.cy, r = t.eles, n = lo(t.boundingBox ? t.boundingBox : { x1: 0, y1: 0, @@ -108568,39 +108604,39 @@ Iye.prototype.run = function() { }; return r.nodes().layoutPositions(this, t, i), this; }; -var Gor = [{ +var Hor = [{ name: "breadthfirst", - impl: Lye + impl: Rye }, { name: "circle", - impl: Rye + impl: Mye }, { name: "concentric", - impl: Mye + impl: Dye }, { name: "cose", impl: JE }, { name: "grid", - impl: Pye + impl: Nye }, { name: "null", impl: fB }, { name: "preset", - impl: Nye + impl: Iye }, { name: "random", - impl: Iye + impl: $ye }]; -function $ye(t) { +function Bye(t) { this.options = t, this.notifications = 0; } var HZ = function() { }, ZZ = function() { throw new Error("A headless instance can not render images"); }; -$ye.prototype = { +Bye.prototype = { recalculateRenderedStyle: HZ, notify: function() { this.notifications++; @@ -108826,11 +108862,11 @@ zp.findNearestElements = function(t, e, r, n) { var A = T._private, E = A.rscratch, R = T.pstyle("width").pfValue, _ = T.pstyle("arrow-scale").value, L = R / 2 + h, $ = L * L, k = L * 2, D = A.source, I = A.target, P; if (E.edgeType === "segments" || E.edgeType === "straight" || E.edgeType === "haystack") { for (var M = E.allpts, N = 0; N + 3 < M.length; N += 2) - if (anr(t, e, M[N], M[N + 1], M[N + 2], M[N + 3], k) && $ > (P = hnr(t, e, M[N], M[N + 1], M[N + 2], M[N + 3]))) + if (lnr(t, e, M[N], M[N + 1], M[N + 2], M[N + 3], k) && $ > (P = dnr(t, e, M[N], M[N + 1], M[N + 2], M[N + 3]))) return v(T, P), !0; } else if (E.edgeType === "bezier" || E.edgeType === "multibezier" || E.edgeType === "self" || E.edgeType === "compound") { for (var M = E.allpts, N = 0; N + 5 < E.allpts.length; N += 4) - if (onr(t, e, M[N], M[N + 1], M[N + 2], M[N + 3], M[N + 4], M[N + 5], k) && $ > (P = unr(t, e, M[N], M[N + 1], M[N + 2], M[N + 3], M[N + 4], M[N + 5]))) + if (cnr(t, e, M[N], M[N + 1], M[N + 2], M[N + 3], M[N + 4], M[N + 5], k) && $ > (P = fnr(t, e, M[N], M[N + 1], M[N + 2], M[N + 3], M[N + 4], M[N + 5]))) return v(T, P), !0; } for (var D = D || A.source, I = I || A.target, F = i.getArrowWidth(R, _), B = [{ @@ -108919,14 +108955,14 @@ zp.getAllInBox = function(t, e, r, n) { includeEdges: !1, includeLabels: !1 }); - tB(h, g) && !Wve(g, h) && s.push(p); + tB(h, g) && !Gve(g, h) && s.push(p); } else { var m = d, v = m._private, y = v.rscratch; if (y.startX != null && y.startY != null && !d1(h, y.startX, y.startY) || y.endX != null && y.endY != null && !d1(h, y.endX, y.endY)) continue; if (y.edgeType === "bezier" || y.edgeType === "multibezier" || y.edgeType === "self" || y.edgeType === "compound" || y.edgeType === "segments" || y.edgeType === "haystack") { for (var b = v.rstyle.bezierPts || v.rstyle.linePts || v.rstyle.haystackPts, w = !0, O = 0; O < b.length; O++) - if (!snr(h, b[O])) { + if (!onr(h, b[O])) { w = !1; break; } @@ -108993,18 +109029,18 @@ gT.getArrowWidth = gT.getArrowHeight = function(t, e) { var r = this.arrowWidthCache = this.arrowWidthCache || {}, n = r[t + ", " + e]; return n || (n = Math.max(Math.pow(t * 13.37, 0.9), 29) * e, r[t + ", " + e] = n, n); }; -var yM, bM, _c = {}, Yo = {}, jZ, KZ, n0, ok, Iu, $d, qd, Cc, ng, z4, Bye, Fye, xM, wM, JZ, ej = function(e, r, n) { +var yM, bM, _c = {}, Yo = {}, jZ, KZ, n0, ok, Iu, $d, qd, Cc, ng, z4, Fye, zye, xM, wM, JZ, ej = function(e, r, n) { n.x = r.x - e.x, n.y = r.y - e.y, n.len = Math.sqrt(n.x * n.x + n.y * n.y), n.nx = n.x / n.len, n.ny = n.y / n.len, n.ang = Math.atan2(n.ny, n.nx); -}, Xor = function(e, r) { +}, Zor = function(e, r) { r.x = e.x * -1, r.y = e.y * -1, r.nx = e.nx * -1, r.ny = e.ny * -1, r.ang = e.ang > 0 ? -(Math.PI - e.ang) : Math.PI + e.ang; -}, Hor = function(e, r, n, i, s) { - if (e !== JZ ? ej(r, e, _c) : Xor(Yo, _c), ej(r, n, Yo), jZ = _c.nx * Yo.ny - _c.ny * Yo.nx, KZ = _c.nx * Yo.nx - _c.ny * -Yo.ny, Iu = Math.asin(Math.max(-1, Math.min(1, jZ))), Math.abs(Iu) < 1e-6) { +}, jor = function(e, r, n, i, s) { + if (e !== JZ ? ej(r, e, _c) : Zor(Yo, _c), ej(r, n, Yo), jZ = _c.nx * Yo.ny - _c.ny * Yo.nx, KZ = _c.nx * Yo.nx - _c.ny * -Yo.ny, Iu = Math.asin(Math.max(-1, Math.min(1, jZ))), Math.abs(Iu) < 1e-6) { yM = r.x, bM = r.y, qd = ng = 0; return; } - n0 = 1, ok = !1, KZ < 0 ? Iu < 0 ? Iu = Math.PI + Iu : (Iu = Math.PI - Iu, n0 = -1, ok = !0) : Iu > 0 && (n0 = -1, ok = !0), r.radius !== void 0 ? ng = r.radius : ng = i, $d = Iu / 2, z4 = Math.min(_c.len / 2, Yo.len / 2), s ? (Cc = Math.abs(Math.cos($d) * ng / Math.sin($d)), Cc > z4 ? (Cc = z4, qd = Math.abs(Cc * Math.sin($d) / Math.cos($d))) : qd = ng) : (Cc = Math.min(z4, ng), qd = Math.abs(Cc * Math.sin($d) / Math.cos($d))), xM = r.x + Yo.nx * Cc, wM = r.y + Yo.ny * Cc, yM = xM - Yo.ny * qd * n0, bM = wM + Yo.nx * qd * n0, Bye = r.x + _c.nx * Cc, Fye = r.y + _c.ny * Cc, JZ = r; + n0 = 1, ok = !1, KZ < 0 ? Iu < 0 ? Iu = Math.PI + Iu : (Iu = Math.PI - Iu, n0 = -1, ok = !0) : Iu > 0 && (n0 = -1, ok = !0), r.radius !== void 0 ? ng = r.radius : ng = i, $d = Iu / 2, z4 = Math.min(_c.len / 2, Yo.len / 2), s ? (Cc = Math.abs(Math.cos($d) * ng / Math.sin($d)), Cc > z4 ? (Cc = z4, qd = Math.abs(Cc * Math.sin($d) / Math.cos($d))) : qd = ng) : (Cc = Math.min(z4, ng), qd = Math.abs(Cc * Math.sin($d) / Math.cos($d))), xM = r.x + Yo.nx * Cc, wM = r.y + Yo.ny * Cc, yM = xM - Yo.ny * qd * n0, bM = wM + Yo.nx * qd * n0, Fye = r.x + _c.nx * Cc, zye = r.y + _c.ny * Cc, JZ = r; }; -function zye(t, e) { +function Qye(t, e) { e.radius === 0 ? t.lineTo(e.cx, e.cy) : t.arc(e.cx, e.cy, e.radius, e.startAngle, e.endAngle, e.counterClockwise); } function pB(t, e, r, n) { @@ -109020,12 +109056,12 @@ function pB(t, e, r, n) { startAngle: void 0, endAngle: void 0, counterClockwise: void 0 - } : (Hor(t, e, r, n, i), { + } : (jor(t, e, r, n, i), { cx: yM, cy: bM, radius: qd, - startX: Bye, - startY: Fye, + startX: Fye, + startY: zye, stopX: xM, stopY: wM, startAngle: _c.ang + Math.PI / 2 * n0, @@ -109128,7 +109164,7 @@ fa.findBezierPoints = function(t, e, r, n, i) { var s = t._private.rscratch, a = t.pstyle("control-point-step-size").pfValue, o = t.pstyle("control-point-distances"), l = t.pstyle("control-point-weights"), u = o && l ? Math.min(o.value.length, l.value.length) : 1, h = o ? o.pfValue[0] : void 0, f = l.value[0], d = n; s.edgeType = d ? "multibezier" : "bezier", s.ctrlpts = []; for (var p = 0; p < u; p++) { - var g = (0.5 - e.eles.length / 2 + r) * a * (i ? -1 : 1), m = void 0, v = qve(g); + var g = (0.5 - e.eles.length / 2 + r) * a * (i ? -1 : 1), m = void 0, v = Yve(g); d && (h = o ? o.pfValue[p] : a, f = l.value[p]), n ? m = h : m = h !== void 0 ? v * h : void 0; var y = m !== void 0 ? m : g, b = 1 - f, w = f, O = this.findMidptPtsEtc(t, e), S = O.midptPts, C = O.vectorNormInverse, T = { x: S.x1 * b + S.x2 * w, @@ -109144,7 +109180,7 @@ fa.findTaxiPoints = function(t, e) { return we > 0 ? Math.max(we - Ee, 0) : Math.min(we + Ee, 0); }, $ = L(R, A), k = L(_, E), P = !1; b === u ? y = Math.abs($) > Math.abs(k) ? i : n : b === l || b === o ? (y = n, P = !0) : (b === s || b === a) && (y = i, P = !0); - var M = y === n, N = M ? k : $, D = M ? _ : R, I = qve(D), F = !1; + var M = y === n, N = M ? k : $, D = M ? _ : R, I = Yve(D), F = !1; !(P && (O || C)) && (b === o && D < 0 || b === l && D > 0 || b === s && D > 0 || b === a && D < 0) && (I *= -1, N = I * Math.abs(N), F = !0); var B; if (O) { @@ -109419,7 +109455,7 @@ fa.findEdgeControlPoints = function(t) { this.findHaystackPoints(o); } }; -function Qye(t) { +function Uye(t) { var e = []; if (t != null) { for (var r = 0; r < t.length; r += 2) { @@ -109435,12 +109471,12 @@ function Qye(t) { fa.getSegmentPoints = function(t) { var e = t[0]._private.rscratch, r = e.edgeType; if (r === "segments") - return this.recalculateRenderedStyle(t), Qye(e.segpts); + return this.recalculateRenderedStyle(t), Uye(e.segpts); }; fa.getControlPoints = function(t) { var e = t[0]._private.rscratch, r = e.edgeType; if (r === "bezier" || r === "multibezier" || r === "self" || r === "compound") - return this.recalculateRenderedStyle(t), Qye(e.ctrlpts); + return this.recalculateRenderedStyle(t), Uye(e.ctrlpts); }; fa.getEdgeMidpoint = function(t) { var e = t[0]._private.rscratch; @@ -109554,7 +109590,7 @@ Yw.getTargetEndpoint = function(t) { } }; var gB = {}; -function Zor(t, e, r) { +function Kor(t, e, r) { for (var n = function(u, h, f, d) { return ts(u, h, f, d); }, i = e._private, s = i.rstyle.bezierPts, a = 0; a < t.bezierProjPcts.length; a++) { @@ -109570,7 +109606,7 @@ gB.storeEdgeProjections = function(t) { if (e.rstyle.bezierPts = null, e.rstyle.linePts = null, e.rstyle.haystackPts = null, n === "multibezier" || n === "bezier" || n === "self" || n === "compound") { e.rstyle.bezierPts = []; for (var i = 0; i + 5 < r.allpts.length; i += 4) - Zor(this, t, r.allpts.slice(i, i + 6)); + Kor(this, t, r.allpts.slice(i, i + 6)); } else if (n === "segments") for (var s = e.rstyle.linePts = [], i = 0; i + 1 < r.allpts.length; i += 2) s.push({ @@ -109595,7 +109631,7 @@ gB.recalculateEdgeProjections = function(t) { var Au = {}; Au.recalculateNodeLabelProjection = function(t) { var e = t.pstyle("label").strValue; - if (!ad(e)) { + if (!od(e)) { var r, n, i = t._private, s = t.width(), a = t.height(), o = t.padding(), l = t.position(), u = t.pstyle("text-halign").strValue, h = t.pstyle("text-valign").strValue, f = i.rscratch, d = i.rstyle; switch (u) { case "left": @@ -109620,15 +109656,15 @@ Au.recalculateNodeLabelProjection = function(t) { f.labelX = r, f.labelY = n, d.labelX = r, d.labelY = n, this.calculateLabelAngles(t), this.applyLabelDimensions(t); } }; -var Uye = function(e, r) { +var Vye = function(e, r) { var n = Math.atan(r / e); return e === 0 && n < 0 && (n = n * -1), n; -}, Vye = function(e, r) { +}, qye = function(e, r) { var n = r.x - e.x, i = r.y - e.y; - return Uye(n, i); -}, jor = function(e, r, n, i) { + return Vye(n, i); +}, Jor = function(e, r, n, i) { var s = zb(0, i - 1e-3, 1), a = zb(0, i + 1e-3, 1), o = em(e, r, n, s), l = em(e, r, n, a); - return Vye(o, l); + return qye(o, l); }; Au.recalculateEdgeLabelProjections = function(t) { var e, r = t._private, n = r.rscratch, i = this, s = { @@ -109642,10 +109678,10 @@ Au.recalculateEdgeLabelProjections = function(t) { y: n.midY }; var a = function(f, d, p) { - of(r.rscratch, f, d, p), of(r.rstyle, f, d, p); + lf(r.rscratch, f, d, p), lf(r.rstyle, f, d, p); }; a("labelX", null, e.x), a("labelY", null, e.y); - var o = Uye(n.midDispX, n.midDispY); + var o = Vye(n.midDispX, n.midDispY); a("labelAutoAngle", null, o); var l = function h() { if (h.cache) @@ -109714,7 +109750,7 @@ Au.recalculateEdgeLabelProjections = function(t) { break; } var A = v.cp, E = v.segment, R = (g - y) / E.length, _ = E.t1 - E.t0, L = p ? E.t0 + _ * R : E.t1 - _ * R; - L = zb(0, L, 1), e = em(A.p0, A.p1, A.p2, L), d = jor(A.p0, A.p1, A.p2, L); + L = zb(0, L, 1), e = em(A.p0, A.p1, A.p2, L), d = Jor(A.p0, A.p1, A.p2, L); break; } case "straight": @@ -109735,7 +109771,7 @@ Au.recalculateEdgeLabelProjections = function(t) { }), k = hp(M, N), P = $, $ += k, !($ >= g)); I += 2) ; var F = g - P, B = F / k; - B = zb(0, B, 1), e = enr(M, N, B), d = Vye(M, N); + B = zb(0, B, 1), e = rnr(M, N, B), d = qye(M, N); break; } } @@ -109750,11 +109786,11 @@ Au.applyLabelDimensions = function(t) { }; Au.applyPrefixedLabelDimensions = function(t, e) { var r = t._private, n = this.getLabelText(t, e), i = this.calculateLabelDimensions(t, n), s = t.pstyle("line-height").pfValue, a = t.pstyle("text-wrap").strValue, o = Fl(r.rscratch, "labelWrapCachedLines", e) || [], l = a !== "wrap" ? 1 : Math.max(o.length, 1), u = i.height / l, h = u * s, f = i.width, d = i.height + (l - 1) * (s - 1) * u; - of(r.rstyle, "labelWidth", e, f), of(r.rscratch, "labelWidth", e, f), of(r.rstyle, "labelHeight", e, d), of(r.rscratch, "labelHeight", e, d), of(r.rscratch, "labelLineHeight", e, h); + lf(r.rstyle, "labelWidth", e, f), lf(r.rscratch, "labelWidth", e, f), lf(r.rstyle, "labelHeight", e, d), lf(r.rscratch, "labelHeight", e, d), lf(r.rscratch, "labelLineHeight", e, h); }; Au.getLabelText = function(t, e) { var r = t._private, n = e ? e + "-" : "", i = t.pstyle(n + "label").strValue, s = t.pstyle("text-transform").value, a = function(Q, W) { - return W ? (of(r.rscratch, Q, e, W), W) : Fl(r.rscratch, Q, e); + return W ? (lf(r.rscratch, Q, e, W), W) : Fl(r.rscratch, Q, e); }; if (!i) return ""; @@ -109772,7 +109808,7 @@ Au.getLabelText = function(t, e) { y = O; } if (w > f) { - var S = y.matchAll(m), C = "", T = 0, A = Tve(S), E; + var S = y.matchAll(m), C = "", T = 0, A = Cve(S), E; try { for (A.s(); !(E = A.n()).done; ) { var R = E.value, _ = R[0], L = y.substring(T, R.index); @@ -109851,8 +109887,8 @@ Au.calculateLabelAngles = function(t) { var e = this, r = t.isEdge(), n = t._private, i = n.rscratch; i.labelAngle = e.calculateLabelAngle(t), r && (i.sourceLabelAngle = e.calculateLabelAngle(t, "source"), i.targetLabelAngle = e.calculateLabelAngle(t, "target")); }; -var qye = {}, tj = 28, rj = !1; -qye.getNodeShape = function(t) { +var Yye = {}, tj = 28, rj = !1; +Yye.getNodeShape = function(t) { var e = this, r = t.pstyle("shape").value; if (r === "cutrectangle" && (t.width() < tj || t.height() < tj)) return rj || (rn("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"), rj = !0), "rectangle"; @@ -109947,19 +109983,19 @@ t_.invalidateCachedZSortedEles = function() { t_.getCachedZSortedEles = function(t) { if (t || !this.cachedZSortedEles) { var e = this.cy.mutableElements().toArray(); - e.sort(Eye), e.interactive = e.filter(function(r) { + e.sort(_ye), e.interactive = e.filter(function(r) { return r.interactive(); }), this.cachedZSortedEles = e, this.updateCachedGrabbedEles(); } else e = this.cachedZSortedEles; return e; }; -var Yye = {}; -[zp, gT, fa, Yw, gB, Au, qye, e_, t_].forEach(function(t) { - ur(Yye, t); -}); var Wye = {}; -Wye.getCachedImage = function(t, e, r) { +[zp, gT, fa, Yw, gB, Au, Yye, e_, t_].forEach(function(t) { + ur(Wye, t); +}); +var Gye = {}; +Gye.getCachedImage = function(t, e, r) { var n = this, i = n.imageCache = n.imageCache || {}, s = i[t]; if (s) return s.image.complete || s.image.addEventListener("load", r), s.image; @@ -109977,7 +110013,7 @@ lv.registerBinding = function(t, e, r, n) { return s.on.apply(s, i); }; lv.binder = function(t) { - var e = this, r = e.cy.window(), n = t === r || t === r.document || t === r.document.body || xtr(t); + var e = this, r = e.cy.window(), n = t === r || t === r.document || t === r.document.body || Otr(t); if (e.supportsPassiveEvents == null) { var i = !1; try { @@ -110903,8 +110939,8 @@ lv.load = function() { }); } }; -var Fh = {}; -Fh.generatePolygon = function(t, e) { +var zh = {}; +zh.generatePolygon = function(t, e) { return this.nodeShapes[t] = { renderer: this, name: t, @@ -110920,7 +110956,7 @@ Fh.generatePolygon = function(t, e) { } }; }; -Fh.generateEllipse = function() { +zh.generateEllipse = function() { return this.nodeShapes.ellipse = { renderer: this, name: "ellipse", @@ -110928,14 +110964,14 @@ Fh.generateEllipse = function() { this.renderer.nodeShapeImpl(this.name, e, r, n, i, s); }, intersectLine: function(e, r, n, i, s, a, o, l) { - return dnr(s, a, e, r, n / 2 + o, i / 2 + o); + return gnr(s, a, e, r, n / 2 + o, i / 2 + o); }, checkPoint: function(e, r, n, i, s, a, o, l) { return x0(e, r, i, s, a, o, n); } }; }; -Fh.generateRoundPolygon = function(t, e) { +zh.generateRoundPolygon = function(t, e) { return this.nodeShapes[t] = { renderer: this, name: t, @@ -110945,7 +110981,7 @@ Fh.generateRoundPolygon = function(t, e) { return l[u]; l[u] = new Array(e.length / 2), l[u + "-cx"] = n, l[u + "-cy"] = i; var h = s / 2, f = a / 2; - o = o === "auto" ? Hve(s, a) : o; + o = o === "auto" ? Zve(s, a) : o; for (var d = new Array(e.length / 2), p = 0; p < e.length / 2; p++) d[p] = { x: n + h * e[p * 2], @@ -110960,14 +110996,14 @@ Fh.generateRoundPolygon = function(t, e) { this.renderer.nodeShapeImpl("round-polygon", n, i, s, a, o, this.points, this.getOrCreateCorners(i, s, a, o, l, u, "drawCorners")); }, intersectLine: function(n, i, s, a, o, l, u, h, f) { - return pnr(o, l, this.points, n, i, s, a, u, this.getOrCreateCorners(n, i, s, a, h, f, "corners")); + return mnr(o, l, this.points, n, i, s, a, u, this.getOrCreateCorners(n, i, s, a, h, f, "corners")); }, checkPoint: function(n, i, s, a, o, l, u, h, f) { - return fnr(n, i, this.points, l, u, a, o, this.getOrCreateCorners(l, u, a, o, h, f, "corners")); + return pnr(n, i, this.points, l, u, a, o, this.getOrCreateCorners(l, u, a, o, h, f, "corners")); } }; }; -Fh.generateRoundRectangle = function() { +zh.generateRoundRectangle = function() { return this.nodeShapes["round-rectangle"] = this.nodeShapes.roundrectangle = { renderer: this, name: "round-rectangle", @@ -110976,7 +111012,7 @@ Fh.generateRoundRectangle = function() { this.renderer.nodeShapeImpl(this.name, e, r, n, i, s, this.points, a); }, intersectLine: function(e, r, n, i, s, a, o, l) { - return Gve(s, a, e, r, n, i, o, l); + return Xve(s, a, e, r, n, i, o, l); }, checkPoint: function(e, r, n, i, s, a, o, l) { var u = i / 2, h = s / 2; @@ -110986,7 +111022,7 @@ Fh.generateRoundRectangle = function() { } }; }; -Fh.generateCutRectangle = function() { +zh.generateCutRectangle = function() { return this.nodeShapes["cut-rectangle"] = this.nodeShapes.cutrectangle = { renderer: this, name: "cut-rectangle", @@ -111017,7 +111053,7 @@ Fh.generateCutRectangle = function() { } }; }; -Fh.generateBarrel = function() { +zh.generateBarrel = function() { return this.nodeShapes.barrel = { renderer: this, name: "barrel", @@ -111075,7 +111111,7 @@ Fh.generateBarrel = function() { for (var d = this.generateBarrelBezierPts(i, s, a, o), p = function(A, E, R) { var _ = R[4], L = R[2], $ = R[0], k = R[5], P = R[1], M = Math.min(_, $), N = Math.max(_, $), D = Math.min(k, P), I = Math.max(k, P); if (M <= A && A <= N && D <= E && E <= I) { - var F = gnr(_, L, $), B = lnr(F[0], F[1], F[2], A), U = B.filter(function(Q) { + var F = vnr(_, L, $), B = unr(F[0], F[1], F[2], A), U = B.filter(function(Q) { return 0 <= Q && Q <= 1; }); if (U.length > 0) @@ -111094,7 +111130,7 @@ Fh.generateBarrel = function() { } }; }; -Fh.generateBottomRoundrectangle = function() { +zh.generateBottomRoundrectangle = function() { return this.nodeShapes["bottom-round-rectangle"] = this.nodeShapes.bottomroundrectangle = { renderer: this, name: "bottom-round-rectangle", @@ -111103,8 +111139,8 @@ Fh.generateBottomRoundrectangle = function() { this.renderer.nodeShapeImpl(this.name, e, r, n, i, s, this.points, a); }, intersectLine: function(e, r, n, i, s, a, o, l) { - var u = e - (n / 2 + o), h = r - (i / 2 + o), f = h, d = e + (n / 2 + o), p = yf(s, a, e, r, u, h, d, f, !1); - return p.length > 0 ? p : Gve(s, a, e, r, n, i, o, l); + var u = e - (n / 2 + o), h = r - (i / 2 + o), f = h, d = e + (n / 2 + o), p = bf(s, a, e, r, u, h, d, f, !1); + return p.length > 0 ? p : Xve(s, a, e, r, n, i, o, l); }, checkPoint: function(e, r, n, i, s, a, o, l) { l = l === "auto" ? fp(i, s) : l; @@ -111116,7 +111152,7 @@ Fh.generateBottomRoundrectangle = function() { } }; }; -Fh.registerNodeShapes = function() { +zh.registerNodeShapes = function() { var t = this.nodeShapes = {}, e = this; this.generateEllipse(), this.generatePolygon("triangle", xa(3, 0)), this.generateRoundPolygon("round-triangle", xa(3, 0)), this.generatePolygon("rectangle", xa(4, 0)), t.square = t.rectangle, this.generateRoundRectangle(), this.generateCutRectangle(), this.generateBarrel(), this.generateBottomRoundrectangle(); { @@ -111133,7 +111169,7 @@ Fh.registerNodeShapes = function() { for (var o = 0; o < 20 / 4; o++) n[o * 4] = i[o * 2], n[o * 4 + 1] = i[o * 2 + 1], n[o * 4 + 2] = s[o * 2], n[o * 4 + 3] = s[o * 2 + 1]; } - n = Xve(n), this.generatePolygon("star", n), this.generatePolygon("vee", [-1, -1, 0, -0.333, 1, -1, 0, 1]), this.generatePolygon("rhomboid", [-1, -1, 0.333, -1, 1, 1, -0.333, 1]), this.generatePolygon("right-rhomboid", [-0.333, -1, 1, -1, 0.333, 1, -1, 1]), this.nodeShapes.concavehexagon = this.generatePolygon("concave-hexagon", [-1, -0.95, -0.75, 0, -1, 0.95, 1, 0.95, 0.75, 0, 1, -0.95]); + n = Hve(n), this.generatePolygon("star", n), this.generatePolygon("vee", [-1, -1, 0, -0.333, 1, -1, 0, 1]), this.generatePolygon("rhomboid", [-1, -1, 0.333, -1, 1, 1, -0.333, 1]), this.generatePolygon("right-rhomboid", [-0.333, -1, 1, -1, 0.333, 1, -1, 1]), this.nodeShapes.concavehexagon = this.generatePolygon("concave-hexagon", [-1, -0.95, -0.75, 0, -1, 0.95, 1, 0.95, 0.75, 0, 1, -0.95]); { var l = [-1, -1, 0.25, -1, 1, 0, 0.25, 1, -1, 1]; this.generatePolygon("tag", l), this.generateRoundPolygon("round-tag", l); @@ -111148,7 +111184,7 @@ Ww.timeToRender = function() { return this.redrawTotalTime / this.redrawCount; }; Ww.redraw = function(t) { - t = t || Uve(); + t = t || Vve(); var e = this; e.averageRedrawTime === void 0 && (e.averageRedrawTime = 0), e.lastRedrawTime === void 0 && (e.lastRedrawTime = 0), e.lastDrawTime === void 0 && (e.lastDrawTime = 0), e.requestedFrame = !0, e.renderOptions = t; }; @@ -111191,9 +111227,9 @@ Ww.startRenderLoop = function() { oT(r); } }; -var Kor = function(e) { +var elr = function(e) { this.init(e); -}, Gye = Kor, cv = Gye.prototype; +}, Xye = elr, cv = Xye.prototype; cv.clientFunctions = ["redrawHint", "render", "renderTo", "matchCanvasSize", "nodeShapeImpl", "arrowShapeImpl"]; cv.init = function(t) { var e = this; @@ -111264,10 +111300,10 @@ cv.destroy = function() { cv.isHeadless = function() { return !1; }; -[dB, Yye, Wye, lv, Fh, Ww].forEach(function(t) { +[dB, Wye, Gye, lv, zh, Ww].forEach(function(t) { ur(cv, t); }); -var v7 = 1e3 / 60, Xye = { +var v7 = 1e3 / 60, Hye = { setupDequeueing: function(e) { return function() { var n = this, i = this.renderer; @@ -111301,7 +111337,7 @@ var v7 = 1e3 / 60, Xye = { } }; } -}, Jor = /* @__PURE__ */ function() { +}, tlr = /* @__PURE__ */ function() { function t(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : lT; G$(this, t), this.idsByKey = new Zc(), this.keyForId = new Zc(), this.cachesByLvl = new Zc(), this.lvls = [], this.getKey = e, this.doesEleInvalidateKey = r; @@ -111424,25 +111460,25 @@ var v7 = 1e3 / 60, Xye = { return s && this.invalidateKey(i), s || this.getNumberOfIdsForKey(i) === 0; } }]), t; -}(), ij = 25, Q4 = 50, lk = -4, OM = 3, elr = 7.99, tlr = 8, rlr = 1024, nlr = 1024, ilr = 1024, slr = 0.2, alr = 0.8, olr = 10, llr = 0.15, clr = 0.1, ulr = 0.9, hlr = 0.9, flr = 100, dlr = 1, Ag = { +}(), ij = 25, Q4 = 50, lk = -4, OM = 3, rlr = 7.99, nlr = 8, ilr = 1024, slr = 1024, alr = 1024, olr = 0.2, llr = 0.8, clr = 10, ulr = 0.15, hlr = 0.1, flr = 0.9, dlr = 0.9, plr = 100, glr = 1, Ag = { dequeue: "dequeue", downscale: "downscale", highQuality: "highQuality" -}, plr = Bs({ +}, mlr = Bs({ getKey: null, doesEleInvalidateKey: lT, drawElement: null, getBoundingBox: null, getRotationPoint: null, getRotationOffset: null, - isVisible: Fve, + isVisible: zve, allowEdgeTxrCaching: !0, allowParentTxrCaching: !0 }), Ay = function(e, r) { var n = this; n.renderer = e, n.onDequeues = []; - var i = plr(r); - ur(n, i), n.lookup = new Jor(i.getKey, i.doesEleInvalidateKey), n.setupDequeueing(); + var i = mlr(r); + ur(n, i), n.lookup = new tlr(i.getKey, i.doesEleInvalidateKey), n.setupDequeueing(); }, es = Ay.prototype; es.reasons = Ag; es.getTextureQueue = function(t) { @@ -111469,7 +111505,7 @@ es.getElement = function(t, e, r, n, i) { return null; if (n == null && (n = Math.ceil(eB(o * r))), n < lk) n = lk; - else if (o >= elr || n > OM) + else if (o >= rlr || n > OM) return null; var u = Math.pow(2, n), h = e.h * u, f = e.w * u, d = a.eleTextBiggerThanMin(t, u); if (!this.isVisible(t, d)) @@ -111478,7 +111514,7 @@ es.getElement = function(t, e, r, n, i) { if (p && p.invalidated && (p.invalidated = !1, p.texture.invalidatedWidth -= p.width), p) return p; var g; - if (h <= ij ? g = ij : h <= Q4 ? g = Q4 : g = Math.ceil(h / Q4) * Q4, h > ilr || f > nlr) + if (h <= ij ? g = ij : h <= Q4 ? g = Q4 : g = Math.ceil(h / Q4) * Q4, h > alr || f > slr) return null; var m = s.getTextureQueue(g), v = m[m.length - 2], y = function() { return s.recycleTexture(g, f) || s.addTexture(g, f); @@ -111527,7 +111563,7 @@ es.getElement = function(t, e, r, n, i) { width: f, height: h, scaledLabelShown: d - }, v.usedWidth += Math.ceil(f + tlr), v.eleCaches.push(p), l.set(t, n, p), s.checkTextureFullness(v), p; + }, v.usedWidth += Math.ceil(f + nlr), v.eleCaches.push(p), l.set(t, n, p), s.checkTextureFullness(v), p; }; es.invalidateElements = function(t) { for (var e = 0; e < t.length; e++) @@ -111550,15 +111586,15 @@ es.invalidateElement = function(t) { } }; es.checkTextureUtility = function(t) { - t.invalidatedWidth >= slr * t.width && this.retireTexture(t); + t.invalidatedWidth >= olr * t.width && this.retireTexture(t); }; es.checkTextureFullness = function(t) { var e = this, r = e.getTextureQueue(t.height); - t.usedWidth / t.width > alr && t.fullnessChecks >= olr ? od(r, t) : t.fullnessChecks++; + t.usedWidth / t.width > llr && t.fullnessChecks >= clr ? ld(r, t) : t.fullnessChecks++; }; es.retireTexture = function(t) { var e = this, r = t.height, n = e.getTextureQueue(r), i = this.lookup; - od(n, t), t.retired = !0; + ld(n, t), t.retired = !0; for (var s = t.eleCaches, a = 0; a < s.length; a++) { var o = s[a]; i.deleteCache(o.key, o.level); @@ -111569,13 +111605,13 @@ es.retireTexture = function(t) { }; es.addTexture = function(t, e) { var r = this, n = r.getTextureQueue(t), i = {}; - return n.push(i), i.eleCaches = [], i.height = t, i.width = Math.max(rlr, e), i.usedWidth = 0, i.invalidatedWidth = 0, i.fullnessChecks = 0, i.canvas = r.renderer.makeOffscreenCanvas(i.width, i.height), i.context = i.canvas.getContext("2d"), i; + return n.push(i), i.eleCaches = [], i.height = t, i.width = Math.max(ilr, e), i.usedWidth = 0, i.invalidatedWidth = 0, i.fullnessChecks = 0, i.canvas = r.renderer.makeOffscreenCanvas(i.width, i.height), i.context = i.canvas.getContext("2d"), i; }; es.recycleTexture = function(t, e) { for (var r = this, n = r.getTextureQueue(t), i = r.getRetiredTextureQueue(t), s = 0; s < i.length; s++) { var a = i[s]; if (a.width >= e) - return a.retired = !1, a.usedWidth = 0, a.invalidatedWidth = 0, a.fullnessChecks = 0, J$(a.eleCaches), a.context.setTransform(1, 0, 0, 1, 0, 0), a.context.clearRect(0, 0, a.width, a.height), od(i, a), n.push(a), a; + return a.retired = !1, a.usedWidth = 0, a.invalidatedWidth = 0, a.fullnessChecks = 0, J$(a.eleCaches), a.context.setTransform(1, 0, 0, 1, 0, 0), a.context.clearRect(0, 0, a.width, a.height), ld(i, a), n.push(a), a; } }; es.queueElement = function(t, e) { @@ -111593,7 +111629,7 @@ es.queueElement = function(t, e) { } }; es.dequeue = function(t) { - for (var e = this, r = e.getElementQueue(), n = e.getElementKeyToQueue(), i = [], s = e.lookup, a = 0; a < dlr && r.size() > 0; a++) { + for (var e = this, r = e.getElementQueue(), n = e.getElementKeyToQueue(), i = [], s = e.lookup, a = 0; a < glr && r.size() > 0; a++) { var o = r.pop(), l = o.key, u = o.eles[0], h = s.hasCache(u, o.level); if (n[l] = null, h) continue; @@ -111611,14 +111647,14 @@ es.onDequeue = function(t) { this.onDequeues.push(t); }; es.offDequeue = function(t) { - od(this.onDequeues, t); -}; -es.setupDequeueing = Xye.setupDequeueing({ - deqRedrawThreshold: flr, - deqCost: llr, - deqAvgCost: clr, - deqNoDrawCost: ulr, - deqFastCost: hlr, + ld(this.onDequeues, t); +}; +es.setupDequeueing = Hye.setupDequeueing({ + deqRedrawThreshold: plr, + deqCost: ulr, + deqAvgCost: hlr, + deqNoDrawCost: flr, + deqFastCost: dlr, deq: function(e, r, n) { return e.dequeue(r, n); }, @@ -111641,21 +111677,21 @@ es.setupDequeueing = Xye.setupDequeueing({ return e.renderer.beforeRenderPriorities.eleTxrDeq; } }); -var glr = 1, a2 = -4, mT = 2, mlr = 3.99, vlr = 50, ylr = 50, blr = 0.15, xlr = 0.1, wlr = 0.9, Olr = 0.9, klr = 1, sj = 250, Slr = 4e3 * 4e3, Tlr = !0, Hye = function(e) { +var vlr = 1, a2 = -4, mT = 2, ylr = 3.99, blr = 50, xlr = 50, wlr = 0.15, Olr = 0.1, klr = 0.9, Slr = 0.9, Tlr = 1, sj = 250, Clr = 4e3 * 4e3, Elr = !0, Zye = function(e) { var r = this, n = r.renderer = e, i = n.cy; r.layersByLevel = {}, r.firstGet = !0, r.lastInvalidationTime = Eh() - 2 * sj, r.skipping = !1, r.eleTxrDeqs = i.collection(), r.scheduleElementRefinement = zE(function() { r.refineElementTextures(r.eleTxrDeqs), r.eleTxrDeqs.unmerge(r.eleTxrDeqs); - }, ylr), n.beforeRender(function(a, o) { + }, xlr), n.beforeRender(function(a, o) { o - r.lastInvalidationTime <= sj ? r.skipping = !0 : r.skipping = !1; }, n.beforeRenderPriorities.lyrTxrSkip); var s = function(o, l) { return l.reqs - o.reqs; }; r.layersQueue = new Uw(s), r.setupDequeueing(); -}, Fs = Hye.prototype, aj = 0, Clr = Math.pow(2, 53) - 1; +}, Fs = Zye.prototype, aj = 0, _lr = Math.pow(2, 53) - 1; Fs.makeLayer = function(t, e) { var r = Math.pow(2, e), n = Math.ceil(t.w * r), i = Math.ceil(t.h * r), s = this.renderer.makeOffscreenCanvas(n, i), a = { - id: aj = ++aj % Clr, + id: aj = ++aj % _lr, bb: t, level: e, width: n, @@ -111673,7 +111709,7 @@ Fs.getLayers = function(t, e, r) { if (n.firstGet = !1, r == null) { if (r = Math.ceil(eB(a * e)), r < a2) r = a2; - else if (a >= mlr || r > mT) + else if (a >= ylr || r > mT) return null; } n.validateLayersElesOrdering(r, t); @@ -111689,7 +111725,7 @@ Fs.getLayers = function(t, e, r) { _(1), _(-1); for (var L = h.length - 1; L >= 0; L--) { var $ = h[L]; - $.invalid && od(h, $); + $.invalid && ld(h, $); } }; if (!d) @@ -111700,7 +111736,7 @@ Fs.getLayers = function(t, e, r) { if (!f) { f = lo(); for (var R = 0; R < t.length; R++) - Yve(f, t[R].boundingBox()); + Wve(f, t[R].boundingBox()); } return f; }, v = function(R) { @@ -111708,7 +111744,7 @@ Fs.getLayers = function(t, e, r) { var _ = R.after; m(); var L = f.w * u * (f.h * u); - if (L > Slr) + if (L > Clr) return null; var $ = n.makeLayer(f, r); if (_ != null) { @@ -111720,13 +111756,13 @@ Fs.getLayers = function(t, e, r) { }; if (n.skipping && !o) return null; - for (var y = null, b = t.length / glr, w = !o, O = 0; O < t.length; O++) { + for (var y = null, b = t.length / vlr, w = !o, O = 0; O < t.length; O++) { var S = t[O], C = S._private.rscratch, T = C.imgLayerCaches = C.imgLayerCaches || {}, A = T[r]; if (A) { y = A; continue; } - if ((!y || y.eles.length >= b || !Wve(y.bb, S.boundingBox())) && (y = v({ + if ((!y || y.eles.length >= b || !Gve(y.bb, S.boundingBox())) && (y = v({ insert: !0, after: y }), !y)) @@ -111740,7 +111776,7 @@ Fs.getEleLevelForLayerLevel = function(t, e) { }; Fs.drawEleInLayer = function(t, e, r, n) { var i = this, s = this.renderer, a = t.context, o = e.boundingBox(); - o.w === 0 || o.h === 0 || !e.visible() || (r = i.getEleLevelForLayerLevel(r, n), s.setImgSmoothing(a, !1), s.drawCachedElement(a, e, null, null, r, Tlr), s.setImgSmoothing(a, !0)); + o.w === 0 || o.h === 0 || !e.visible() || (r = i.getEleLevelForLayerLevel(r, n), s.setImgSmoothing(a, !1), s.drawCachedElement(a, e, null, null, r, Elr), s.setImgSmoothing(a, !0)); }; Fs.levelIsComplete = function(t, e) { var r = this, n = r.layersByLevel[t]; @@ -111800,7 +111836,7 @@ Fs.invalidateElements = function(t) { Fs.invalidateLayer = function(t) { if (this.lastInvalidationTime = Eh(), !t.invalid) { var e = t.level, r = t.eles, n = this.layersByLevel[e]; - od(n, t), t.elesQueue = [], t.invalid = !0, t.replacement && (t.replacement.invalid = !0); + ld(n, t), t.elesQueue = [], t.invalid = !0, t.replacement && (t.replacement.invalid = !0); for (var i = 0; i < r.length; i++) { var s = r[i]._private.rscratch.imgLayerCaches; s && (s[e] = null); @@ -111831,7 +111867,7 @@ Fs.queueLayer = function(t, e) { } }; Fs.dequeue = function(t) { - for (var e = this, r = e.layersQueue, n = [], i = 0; i < klr && r.size() !== 0; ) { + for (var e = this, r = e.layersQueue, n = [], i = 0; i < Tlr && r.size() !== 0; ) { var s = r.peek(); if (s.replacement) { r.pop(); @@ -111865,29 +111901,29 @@ Fs.requestRedraw = zE(function() { var t = this.renderer; t.redrawHint("eles", !0), t.redrawHint("drag", !0), t.redraw(); }, 100); -Fs.setupDequeueing = Xye.setupDequeueing({ - deqRedrawThreshold: vlr, - deqCost: blr, - deqAvgCost: xlr, - deqNoDrawCost: wlr, - deqFastCost: Olr, +Fs.setupDequeueing = Hye.setupDequeueing({ + deqRedrawThreshold: blr, + deqCost: wlr, + deqAvgCost: Olr, + deqNoDrawCost: klr, + deqFastCost: Slr, deq: function(e, r) { return e.dequeue(r); }, onDeqd: K$, - shouldRedraw: Fve, + shouldRedraw: zve, priority: function(e) { return e.renderer.beforeRenderPriorities.lyrTxrDeq; } }); -var Zye = {}, oj; -function Elr(t, e) { +var jye = {}, oj; +function Alr(t, e) { for (var r = 0; r < e.length; r++) { var n = e[r]; t.lineTo(n.x, n.y); } } -function _lr(t, e, r) { +function Llr(t, e, r) { for (var n, i = 0; i < e.length; i++) { var s = e[i]; i === 0 && (n = s), t.lineTo(s.x, s.y); @@ -111908,7 +111944,7 @@ function lj(t, e, r) { } t.closePath && t.closePath(); } -function Alr(t, e, r, n, i) { +function Rlr(t, e, r, n, i) { t.beginPath && t.beginPath(), t.arc(r, n, i, 0, Math.PI * 2, !1); var s = e, a = s[0]; t.moveTo(a.x, a.y); @@ -111918,17 +111954,17 @@ function Alr(t, e, r, n, i) { } t.closePath && t.closePath(); } -function Llr(t, e, r, n) { +function Mlr(t, e, r, n) { t.arc(e, r, n, 0, Math.PI * 2, !1); } -Zye.arrowShapeImpl = function(t) { +jye.arrowShapeImpl = function(t) { return (oj || (oj = { - polygon: Elr, - "triangle-backcurve": _lr, + polygon: Alr, + "triangle-backcurve": Llr, "triangle-tee": lj, - "circle-triangle": Alr, + "circle-triangle": Rlr, "triangle-cross": lj, - circle: Llr + circle: Mlr }))[t]; }; var Lu = {}; @@ -111966,15 +112002,15 @@ Lu.drawCachedElementPortion = function(t, e, r, n, i, s, a, o) { r.drawElement(t, e); } }; -var Rlr = function() { +var Dlr = function() { return 0; -}, Mlr = function(e, r) { +}, Plr = function(e, r) { return e.getTextAngle(r, null); -}, Dlr = function(e, r) { +}, Nlr = function(e, r) { return e.getTextAngle(r, "source"); -}, Plr = function(e, r) { +}, Ilr = function(e, r) { return e.getTextAngle(r, "target"); -}, Nlr = function(e, r) { +}, $lr = function(e, r) { return r.effectiveOpacity(); }, y7 = function(e, r) { return r.pstyle("text-opacity").pfValue * r.effectiveOpacity(); @@ -111983,7 +112019,7 @@ Lu.drawCachedElement = function(t, e, r, n, i, s) { var a = this, o = a.data, l = o.eleTxrCache, u = o.lblTxrCache, h = o.slbTxrCache, f = o.tlbTxrCache, d = e.boundingBox(), p = s === !0 ? l.reasons.highQuality : null; if (!(d.w === 0 || d.h === 0 || !e.visible()) && (!n || tB(d, n))) { var g = e.isEdge(), m = e.element()._private.rscratch.badLine; - a.drawElementUnderlay(t, e), a.drawCachedElementPortion(t, e, l, r, i, p, Rlr, Nlr), (!g || !m) && a.drawCachedElementPortion(t, e, u, r, i, p, Mlr, y7), g && !m && (a.drawCachedElementPortion(t, e, h, r, i, p, Dlr, y7), a.drawCachedElementPortion(t, e, f, r, i, p, Plr, y7)), a.drawElementOverlay(t, e); + a.drawElementUnderlay(t, e), a.drawCachedElementPortion(t, e, l, r, i, p, Dlr, $lr), (!g || !m) && a.drawCachedElementPortion(t, e, u, r, i, p, Plr, y7), g && !m && (a.drawCachedElementPortion(t, e, h, r, i, p, Nlr, y7), a.drawCachedElementPortion(t, e, f, r, i, p, Ilr, y7)), a.drawElementOverlay(t, e); } }; Lu.drawElements = function(t, e) { @@ -112014,8 +112050,8 @@ Lu.drawLayeredElements = function(t, e, r, n) { else i.drawCachedElements(t, e, r, n); }; -var zh = {}; -zh.drawEdge = function(t, e, r) { +var Qh = {}; +Qh.drawEdge = function(t, e, r) { var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : !0, a = this, o = e._private.rscratch; if (!(s && !e.visible()) && !(o.badLine || o.allpts == null || isNaN(o.allpts[0]))) { var l; @@ -112052,7 +112088,7 @@ zh.drawEdge = function(t, e, r) { C(), w(), T(), S(), A(), r && t.translate(l.x1, l.y1); } }; -var jye = function(e) { +var Kye = function(e) { if (!["overlay", "underlay"].includes(e)) throw new Error("Invalid state"); return function(r, n) { @@ -112065,9 +112101,9 @@ var jye = function(e) { } }; }; -zh.drawEdgeOverlay = jye("overlay"); -zh.drawEdgeUnderlay = jye("underlay"); -zh.drawEdgePath = function(t, e, r, n) { +Qh.drawEdgeOverlay = Kye("overlay"); +Qh.drawEdgeUnderlay = Kye("underlay"); +Qh.drawEdgePath = function(t, e, r, n) { var i = t._private.rscratch, s = e, a, o = !1, l = this.usePaths(), u = t.pstyle("line-dash-pattern").pfValue, h = t.pstyle("line-dash-offset").pfValue; if (l) { var f = r.join("$"), d = i.pathCacheKey && i.pathCacheKey === f; @@ -112101,11 +112137,11 @@ zh.drawEdgePath = function(t, e, r, n) { break; case "segments": if (i.isRound) { - var m = Tve(i.roundCorners), v; + var m = Cve(i.roundCorners), v; try { for (m.s(); !(v = m.n()).done; ) { var y = v.value; - zye(e, y); + Qye(e, y); } } catch (w) { m.e(w); @@ -112120,18 +112156,18 @@ zh.drawEdgePath = function(t, e, r, n) { } e = s, l ? e.stroke(a) : e.stroke(), e.setLineDash && e.setLineDash([]); }; -zh.drawEdgeTrianglePath = function(t, e, r) { +Qh.drawEdgeTrianglePath = function(t, e, r) { e.fillStyle = e.strokeStyle; for (var n = t.pstyle("width").pfValue, i = 0; i + 1 < r.length; i += 2) { var s = [r[i + 2] - r[i], r[i + 3] - r[i + 1]], a = Math.sqrt(s[0] * s[0] + s[1] * s[1]), o = [s[1] / a, -s[0] / a], l = [o[0] * n / 2, o[1] * n / 2]; e.beginPath(), e.moveTo(r[i] - l[0], r[i + 1] - l[1]), e.lineTo(r[i] + l[0], r[i + 1] + l[1]), e.lineTo(r[i + 2], r[i + 3]), e.closePath(), e.fill(); } }; -zh.drawArrowheads = function(t, e, r) { +Qh.drawArrowheads = function(t, e, r) { var n = e._private.rscratch, i = n.edgeType === "haystack"; i || this.drawArrowhead(t, e, "source", n.arrowStartX, n.arrowStartY, n.srcArrowAngle, r), this.drawArrowhead(t, e, "mid-target", n.midX, n.midY, n.midtgtArrowAngle, r), this.drawArrowhead(t, e, "mid-source", n.midX, n.midY, n.midsrcArrowAngle, r), i || this.drawArrowhead(t, e, "target", n.arrowEndX, n.arrowEndY, n.tgtArrowAngle, r); }; -zh.drawArrowhead = function(t, e, r, n, i, s, a) { +Qh.drawArrowhead = function(t, e, r, n, i, s, a) { if (!(isNaN(n) || n == null || isNaN(i) || i == null || isNaN(s) || s == null)) { var o = this, l = e.pstyle(r + "-arrow-shape").value; if (l !== "none") { @@ -112146,7 +112182,7 @@ zh.drawArrowhead = function(t, e, r, n, i, s, a) { } } }; -zh.drawArrowShape = function(t, e, r, n, i, s, a, o, l) { +Qh.drawArrowShape = function(t, e, r, n, i, s, a, o, l) { var u = this, h = this.usePaths() && i !== "triangle-cross", f = !1, d, p = e, g = { x: a, y: o @@ -112365,7 +112401,7 @@ uv.drawNode = function(t, e, r) { var pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : K; a.colorStrokeStyle(t, Q[0], Q[1], Q[2], pe); }, G = function(pe, ge, ve, we) { - var Ee = a.nodePathCache = a.nodePathCache || [], Re = Bve(ve === "polygon" ? ve + "," + we.join(",") : ve, "" + ge, "" + pe, "" + te), Ce = Ee[Re], $e, Le = !1; + var Ee = a.nodePathCache = a.nodePathCache || [], Re = Fve(ve === "polygon" ? ve + "," + we.join(",") : ve, "" + ge, "" + pe, "" + te), Ce = Ee[Re], $e, Le = !1; return Ce != null ? ($e = Ce, Le = !0, h.pathCache = $e) : ($e = new Path2D(), Ee[Re] = h.pathCache = $e), { path: $e, cacheHit: Le @@ -112464,7 +112500,7 @@ uv.drawNode = function(t, e, r) { a.drawEllipsePath(Le || t, pe.x, pe.y, Re, Ce); else if (["round-diamond", "round-heptagon", "round-hexagon", "round-octagon", "round-pentagon", "round-polygon", "round-triangle", "round-tag"].includes(ge)) { var Fe = 0, ot = 0, at = 0; - ge === "round-diamond" ? Fe = (ve + Y + U) * 1.4 : ge === "round-heptagon" ? (Fe = (ve + Y + U) * 1.075, at = -(ve / 2 + Y + U) / 35) : ge === "round-hexagon" ? Fe = (ve + Y + U) * 1.12 : ge === "round-pentagon" ? (Fe = (ve + Y + U) * 1.13, at = -(ve / 2 + Y + U) / 15) : ge === "round-tag" ? (Fe = (ve + Y + U) * 1.12, ot = (ve / 2 + U + Y) * 0.07) : ge === "round-triangle" && (Fe = (ve + Y + U) * (Math.PI / 2), at = -(ve + Y / 2 + U) / Math.PI), Fe !== 0 && (we = (o + Fe) / o, Re = o * we, ["round-hexagon", "round-tag"].includes(ge) || (Ee = (l + Fe) / l, Ce = l * Ee)), te = te === "auto" ? Hve(Re, Ce) : te; + ge === "round-diamond" ? Fe = (ve + Y + U) * 1.4 : ge === "round-heptagon" ? (Fe = (ve + Y + U) * 1.075, at = -(ve / 2 + Y + U) / 35) : ge === "round-hexagon" ? Fe = (ve + Y + U) * 1.12 : ge === "round-pentagon" ? (Fe = (ve + Y + U) * 1.13, at = -(ve / 2 + Y + U) / 15) : ge === "round-tag" ? (Fe = (ve + Y + U) * 1.12, ot = (ve / 2 + U + Y) * 0.07) : ge === "round-triangle" && (Fe = (ve + Y + U) * (Math.PI / 2), at = -(ve + Y / 2 + U) / Math.PI), Fe !== 0 && (we = (o + Fe) / o, Re = o * we, ["round-hexagon", "round-tag"].includes(ge) || (Ee = (l + Fe) / l, Ce = l * Ee)), te = te === "auto" ? Zve(Re, Ce) : te; for (var bt = Re / 2, xt = Ce / 2, gt = te + (ve + U + Y) / 2, et = new Array($e.length / 2), Ke = new Array($e.length / 2), wt = 0; wt < $e.length / 2; wt++) et[wt] = { x: pe.x + ot + bt * $e[wt * 2], @@ -112510,7 +112546,7 @@ uv.drawNode = function(t, e, r) { p && t.translate(-f.x, -f.y), Ge(), p && t.translate(f.x, f.y), Z(), He(), se(), ee(), De(d, !0), V(), Pe(), he(_ !== 0 || L !== 0), De(d, !1), _e(), p && t.translate(-f.x, -f.y), Ie(), nt(), r && t.translate(y.x1, y.y1); } }; -var Kye = function(e) { +var Jye = function(e) { if (!["overlay", "underlay"].includes(e)) throw new Error("Invalid state"); return function(r, n, i, s, a) { @@ -112527,8 +112563,8 @@ var Kye = function(e) { } }; }; -uv.drawNodeOverlay = Kye("overlay"); -uv.drawNodeUnderlay = Kye("underlay"); +uv.drawNodeOverlay = Jye("overlay"); +uv.drawNodeUnderlay = Jye("underlay"); uv.hasPie = function(t) { return t = t[0], t._private.hasPie; }; @@ -112543,7 +112579,7 @@ uv.drawPie = function(t, e, r, n) { g === 0 || f >= 1 || f + y > 1 || (t.beginPath(), t.moveTo(a, o), t.arc(a, o, h, b, O), t.closePath(), this.colorFillStyle(t, m[0], m[1], m[2], v), t.fill(), f += y); } }; -var zo = {}, Ilr = 100; +var zo = {}, Blr = 100; zo.getPixelRatio = function() { var t = this.data.contexts[0]; if (this.forcedPixelRatio != null) @@ -112680,7 +112716,7 @@ zo.renderTo = function(t, e, r, n) { }); }; zo.render = function(t) { - t = t || Uve(); + t = t || Vve(); var e = t.forcedContext, r = t.drawAllLayers, n = t.drawOnlyNodeLayer, i = t.forcedZoom, s = t.forcedPan, a = this, o = t.forcedPxRatio === void 0 ? this.getPixelRatio() : t.forcedPxRatio, l = a.cy, u = a.data, h = u.canvasNeedsRedraw, f = a.textureOnViewport && !e && (a.pinching || a.hoverData.dragging || a.swipePanning || a.data.wheelZooming), d = t.motionBlur !== void 0 ? t.motionBlur : a.motionBlur, p = a.motionBlurPxRatio, g = l.hasCompoundNodes(), m = a.hoverData.draggingEles, v = !!(a.hoverData.selecting || a.touchData.selecting); d = d && !e && a.motionBlurEnabled && !v; var y = d; @@ -112786,7 +112822,7 @@ zo.render = function(t) { } a.prevViewport = T, a.clearingMotionBlur && (a.clearingMotionBlur = !1, a.motionBlurCleared = !0, a.motionBlur = !0), d && (a.motionBlurTimeout = setTimeout(function() { a.motionBlurTimeout = null, a.clearedForMotionBlur[a.NODE] = !1, a.clearedForMotionBlur[a.DRAG] = !1, a.motionBlur = !1, a.clearingMotionBlur = !f, a.mbFrames = 0, h[a.NODE] = !0, h[a.DRAG] = !0, a.redraw(); - }, Ilr)), e || l.emit("render"); + }, Blr)), e || l.emit("render"); }; var Sd = {}; Sd.drawPolygonPath = function(t, e, r, n, i, s) { @@ -112798,7 +112834,7 @@ Sd.drawPolygonPath = function(t, e, r, n, i, s) { }; Sd.drawRoundPolygonPath = function(t, e, r, n, i, s, a) { a.forEach(function(o) { - return zye(t, o); + return Qye(t, o); }), t.closePath(); }; Sd.drawRoundRectanglePath = function(t, e, r, n, i, s) { @@ -112817,14 +112853,14 @@ Sd.drawBarrelPath = function(t, e, r, n, i) { var s = n / 2, a = i / 2, o = e - s, l = e + s, u = r - a, h = r + a, f = hM(n, i), d = f.widthOffset, p = f.heightOffset, g = f.ctrlPtOffsetPct * d; t.beginPath && t.beginPath(), t.moveTo(o, u + p), t.lineTo(o, h - p), t.quadraticCurveTo(o + g, h, o + d, h), t.lineTo(l - d, h), t.quadraticCurveTo(l - g, h, l, h - p), t.lineTo(l, u + p), t.quadraticCurveTo(l - g, u, l - d, u), t.lineTo(o + d, u), t.quadraticCurveTo(o + g, u, o, u + p), t.closePath(); }; -var cj = Math.sin(0), uj = Math.cos(0), kM = {}, SM = {}, Jye = Math.PI / 40; -for (var ig = 0 * Math.PI; ig < 2 * Math.PI; ig += Jye) +var cj = Math.sin(0), uj = Math.cos(0), kM = {}, SM = {}, e2e = Math.PI / 40; +for (var ig = 0 * Math.PI; ig < 2 * Math.PI; ig += e2e) kM[ig] = Math.sin(ig), SM[ig] = Math.cos(ig); Sd.drawEllipsePath = function(t, e, r, n, i) { if (t.beginPath && t.beginPath(), t.ellipse) t.ellipse(e, r, n / 2, i / 2, 0, 0, 2 * Math.PI); else - for (var s, a, o = n / 2, l = i / 2, u = 0 * Math.PI; u < 2 * Math.PI; u += Jye) + for (var s, a, o = n / 2, l = i / 2, u = 0 * Math.PI; u < 2 * Math.PI; u += e2e) s = e - o * kM[u] * cj + o * SM[u] * uj, a = r + l * SM[u] * cj + l * kM[u] * uj, u === 0 ? t.moveTo(s, a) : t.lineTo(s, a); t.closePath(); }; @@ -112861,7 +112897,7 @@ Gw.bufferCanvasImage = function(t) { } return d; }; -function $lr(t, e) { +function Flr(t, e) { for (var r = atob(t), n = new ArrayBuffer(r.length), i = new Uint8Array(n), s = 0; s < r.length; s++) i[s] = r.charCodeAt(s); return new Blob([n], { @@ -112872,7 +112908,7 @@ function hj(t) { var e = t.indexOf(","); return t.substr(e + 1); } -function e2e(t, e, r) { +function t2e(t, e, r) { var n = function() { return e.toDataURL(r, t.quality); }; @@ -112888,7 +112924,7 @@ function e2e(t, e, r) { } }); case "blob": - return $lr(hj(n()), r); + return Flr(hj(n()), r); case "base64": return hj(n()); case "base64uri": @@ -112897,13 +112933,13 @@ function e2e(t, e, r) { } } Gw.png = function(t) { - return e2e(t, this.bufferCanvasImage(t), "image/png"); + return t2e(t, this.bufferCanvasImage(t), "image/png"); }; Gw.jpg = function(t) { - return e2e(t, this.bufferCanvasImage(t), "image/jpeg"); + return t2e(t, this.bufferCanvasImage(t), "image/jpeg"); }; -var t2e = {}; -t2e.nodeShapeImpl = function(t, e, r, n, i, s, a, o) { +var r2e = {}; +r2e.nodeShapeImpl = function(t, e, r, n, i, s, a, o) { switch (t) { case "ellipse": return this.drawEllipsePath(e, r, n, i, s); @@ -112924,7 +112960,7 @@ t2e.nodeShapeImpl = function(t, e, r, n, i, s, a, o) { return this.drawBarrelPath(e, r, n, i, s); } }; -var Blr = r2e, Ur = r2e.prototype; +var zlr = n2e, Ur = n2e.prototype; Ur.CANVAS_LAYERS = 3; Ur.SELECT_BOX = 0; Ur.DRAG = 1; @@ -112933,7 +112969,7 @@ Ur.BUFFER_COUNT = 3; Ur.TEXTURE_BUFFER = 0; Ur.MOTIONBLUR_BUFFER_NODE = 1; Ur.MOTIONBLUR_BUFFER_DRAG = 2; -function r2e(t) { +function n2e(t) { var e = this, r = e.cy.window(), n = r.document; e.data = { canvases: new Array(Ur.CANVAS_LAYERS), @@ -112955,7 +112991,7 @@ function r2e(t) { "-webkit-tap-highlight-color": "rgba(0,0,0,0)", "outline-style": "none" }; - ktr() && (l["-ms-touch-action"] = "none", l["touch-action"] = "none"); + Ttr() && (l["-ms-touch-action"] = "none", l["touch-action"] = "none"); for (var u = 0; u < Ur.CANVAS_LAYERS; u++) { var h = e.data.canvases[u] = n.createElement("canvas"); e.data.contexts[u] = h.getContext("2d"), Object.keys(l).forEach(function(se) { @@ -113082,7 +113118,7 @@ function r2e(t) { getRotationPoint: N, getRotationOffset: F, isVisible: _ - }), Y = e.data.lyrTxrCache = new Hye(e); + }), Y = e.data.lyrTxrCache = new Zye(e); e.onUpdateEleCalcs(function(V, Z) { U.invalidateElements(Z), Q.invalidateElements(Z), W.invalidateElements(Z), K.invalidateElements(Z), Y.invalidateElements(Z); for (var G = 0; G < Z.length; G++) { @@ -113110,14 +113146,14 @@ Ur.redrawHint = function(t, e) { break; } }; -var Flr = typeof Path2D < "u"; +var Qlr = typeof Path2D < "u"; Ur.path2dEnabled = function(t) { if (t === void 0) return this.pathsEnabled; this.pathsEnabled = !!t; }; Ur.usePaths = function() { - return Flr && this.pathsEnabled; + return Qlr && this.pathsEnabled; }; Ur.setImgSmoothing = function(t, e) { t.imageSmoothingEnabled != null ? t.imageSmoothingEnabled = e : (t.webkitImageSmoothingEnabled = e, t.mozImageSmoothingEnabled = e, t.msImageSmoothingEnabled = e); @@ -113135,26 +113171,26 @@ Ur.makeOffscreenCanvas = function(t, e) { } return r; }; -[Zye, Lu, zh, mB, Qp, uv, zo, Sd, Gw, t2e].forEach(function(t) { +[jye, Lu, Qh, mB, Qp, uv, zo, Sd, Gw, r2e].forEach(function(t) { ur(Ur, t); }); -var zlr = [{ +var Ulr = [{ name: "null", - impl: $ye + impl: Bye }, { name: "base", - impl: Gye + impl: Xye }, { name: "canvas", - impl: Blr -}], Qlr = [{ + impl: zlr +}], Vlr = [{ type: "layout", - extensions: Gor + extensions: Hor }, { type: "renderer", - extensions: zlr -}], n2e = {}, i2e = {}; -function s2e(t, e, r) { + extensions: Ulr +}], i2e = {}, s2e = {}; +function a2e(t, e, r) { var n = r, i = function(A) { rn("Can not register `" + e + "` for `" + t + "` since `" + A + "` already exists in the prototype and can not be overridden"); }; @@ -113235,7 +113271,7 @@ function s2e(t, e, r) { } }), Jr.eventAliasesOn(a), n = s; } else if (t === "renderer" && e !== "null" && e !== "base") { - var p = a2e("renderer", "base"), g = p.prototype, m = r, v = r.prototype, y = function() { + var p = o2e("renderer", "base"), g = p.prototype, m = r, v = r.prototype, y = function() { p.apply(this, arguments), m.apply(this, arguments); }, b = y.prototype; for (var w in g) { @@ -113253,53 +113289,53 @@ function s2e(t, e, r) { }), n = y; } else if (t === "__proto__" || t === "constructor" || t === "prototype") return ii(t + " is an illegal type to be registered, possibly lead to prototype pollutions"); - return Rve({ - map: n2e, + return Mve({ + map: i2e, keys: [t, e], value: n }); } -function a2e(t, e) { - return Mve({ - map: n2e, +function o2e(t, e) { + return Dve({ + map: i2e, keys: [t, e] }); } -function Ulr(t, e, r, n, i) { - return Rve({ - map: i2e, +function qlr(t, e, r, n, i) { + return Mve({ + map: s2e, keys: [t, e, r, n], value: i }); } -function Vlr(t, e, r, n) { - return Mve({ - map: i2e, +function Ylr(t, e, r, n) { + return Dve({ + map: s2e, keys: [t, e, r, n] }); } var TM = function() { if (arguments.length === 2) - return a2e.apply(null, arguments); + return o2e.apply(null, arguments); if (arguments.length === 3) - return s2e.apply(null, arguments); + return a2e.apply(null, arguments); if (arguments.length === 4) - return Vlr.apply(null, arguments); + return Ylr.apply(null, arguments); if (arguments.length === 5) - return Ulr.apply(null, arguments); + return qlr.apply(null, arguments); ii("Invalid extension access syntax"); }; Wb.prototype.extension = TM; -Qlr.forEach(function(t) { +Vlr.forEach(function(t) { t.extensions.forEach(function(e) { - s2e(t.type, e.name, e.impl); + a2e(t.type, e.name, e.impl); }); }); -var o2e = function t() { +var l2e = function t() { if (!(this instanceof t)) return new t(); this.length = 0; -}, gp = o2e.prototype; +}, gp = l2e.prototype; gp.instanceString = function() { return "stylesheet"; }; @@ -113349,7 +113385,7 @@ gp.appendToStyle = function(t) { } return t; }; -var qlr = "3.30.2", pu = function(e) { +var Wlr = "3.30.2", pu = function(e) { if (e === void 0 && (e = {}), zr(e)) return new Wb(e); if (Jt(e)) @@ -113360,12 +113396,12 @@ pu.use = function(t) { return e.unshift(pu), t.apply(null, e), this; }; pu.warnings = function(t) { - return zve(t); + return Qve(t); }; -pu.version = qlr; -pu.stylesheet = pu.Stylesheet = o2e; -var l2e = { exports: {} }, x7 = { exports: {} }, w7 = { exports: {} }, fj; -function Ylr() { +pu.version = Wlr; +pu.stylesheet = pu.Stylesheet = l2e; +var c2e = { exports: {} }, x7 = { exports: {} }, w7 = { exports: {} }, fj; +function Glr() { return fj || (fj = 1, function(t, e) { (function(n, i) { t.exports = i(); @@ -114895,10 +114931,10 @@ function Ylr() { }(w7)), w7.exports; } var dj; -function Wlr() { +function Xlr() { return dj || (dj = 1, function(t, e) { (function(n, i) { - t.exports = i(Ylr()); + t.exports = i(Glr()); })(wa, function(r) { return function(n) { var i = {}; @@ -115416,7 +115452,7 @@ function Wlr() { } (function(t, e) { (function(n, i) { - t.exports = i(Wlr()); + t.exports = i(Xlr()); })(wa, function(r) { return function(n) { var i = {}; @@ -115581,8 +115617,8 @@ function Wlr() { } ]); }); -})(l2e); -const Glr = /* @__PURE__ */ Kj(l2e.exports); +})(c2e); +const Hlr = /* @__PURE__ */ Kj(c2e.exports); var CM = function() { var t = /* @__PURE__ */ x(function(O, S, C, T) { for (C = C || {}, T = O.length; T--; C[O[T]] = S) @@ -115970,14 +116006,14 @@ Expecting ` + oe.join(", ") + ", got '" + (this.terminals_[K] || K) + "'" : ae = return x(w, "Parser"), w.prototype = y, y.Parser = w, new w(); }(); CM.parser = CM; -var Xlr = CM, Jl = [], c2e = 0, vB = {}, Hlr = /* @__PURE__ */ x(() => { - Jl = [], c2e = 0, vB = {}; -}, "clear"), Zlr = /* @__PURE__ */ x(function(t) { +var Zlr = CM, Jl = [], u2e = 0, vB = {}, jlr = /* @__PURE__ */ x(() => { + Jl = [], u2e = 0, vB = {}; +}, "clear"), Klr = /* @__PURE__ */ x(function(t) { for (let e = Jl.length - 1; e >= 0; e--) if (Jl[e].level < t) return Jl[e]; return null; -}, "getParent"), jlr = /* @__PURE__ */ x(() => Jl.length > 0 ? Jl[0] : null, "getMindmap"), Klr = /* @__PURE__ */ x((t, e, r, n) => { +}, "getParent"), Jlr = /* @__PURE__ */ x(() => Jl.length > 0 ? Jl[0] : null, "getMindmap"), ecr = /* @__PURE__ */ x((t, e, r, n) => { var l, u, h, f; H.info("addNode", t, e, r, n); const i = ke(); @@ -115989,7 +116025,7 @@ var Xlr = CM, Jl = [], c2e = 0, vB = {}, Hlr = /* @__PURE__ */ x(() => { s *= 2; } const a = { - id: c2e++, + id: u2e++, nodeId: yi(e, i), level: t, descr: yi(r, i), @@ -115997,7 +116033,7 @@ var Xlr = CM, Jl = [], c2e = 0, vB = {}, Hlr = /* @__PURE__ */ x(() => { children: [], width: (f = (h = i.mindmap) == null ? void 0 : h.maxNodeWidth) != null ? f : cn.mindmap.maxNodeWidth, padding: s - }, o = Zlr(t); + }, o = Klr(t); if (o) o.children.push(a), Jl.push(a); else if (Jl.length === 0) @@ -116015,7 +116051,7 @@ var Xlr = CM, Jl = [], c2e = 0, vB = {}, Hlr = /* @__PURE__ */ x(() => { CLOUD: 4, BANG: 5, HEXAGON: 6 -}, Jlr = /* @__PURE__ */ x((t, e) => { +}, tcr = /* @__PURE__ */ x((t, e) => { switch (H.debug("In get type", t, e), t) { case "[": return Bi.RECT; @@ -116032,14 +116068,14 @@ var Xlr = CM, Jl = [], c2e = 0, vB = {}, Hlr = /* @__PURE__ */ x(() => { default: return Bi.DEFAULT; } -}, "getType"), ecr = /* @__PURE__ */ x((t, e) => { +}, "getType"), rcr = /* @__PURE__ */ x((t, e) => { vB[t] = e; -}, "setElementForId"), tcr = /* @__PURE__ */ x((t) => { +}, "setElementForId"), ncr = /* @__PURE__ */ x((t) => { if (!t) return; const e = ke(), r = Jl[Jl.length - 1]; t.icon && (r.icon = yi(t.icon, e)), t.class && (r.class = yi(t.class, e)); -}, "decorateNode"), rcr = /* @__PURE__ */ x((t) => { +}, "decorateNode"), icr = /* @__PURE__ */ x((t) => { switch (t) { case Bi.DEFAULT: return "no-border"; @@ -116058,25 +116094,25 @@ var Xlr = CM, Jl = [], c2e = 0, vB = {}, Hlr = /* @__PURE__ */ x(() => { default: return "no-border"; } -}, "type2Str"), ncr = /* @__PURE__ */ x(() => H, "getLogger"), icr = /* @__PURE__ */ x((t) => vB[t], "getElementById"), scr = { - clear: Hlr, - addNode: Klr, - getMindmap: jlr, +}, "type2Str"), scr = /* @__PURE__ */ x(() => H, "getLogger"), acr = /* @__PURE__ */ x((t) => vB[t], "getElementById"), ocr = { + clear: jlr, + addNode: ecr, + getMindmap: Jlr, nodeType: Bi, - getType: Jlr, - setElementForId: ecr, - decorateNode: tcr, - type2Str: rcr, - getLogger: ncr, - getElementById: icr -}, acr = scr, ocr = 12, lcr = /* @__PURE__ */ x(function(t, e, r, n) { + getType: tcr, + setElementForId: rcr, + decorateNode: ncr, + type2Str: icr, + getLogger: scr, + getElementById: acr +}, lcr = ocr, ccr = 12, ucr = /* @__PURE__ */ x(function(t, e, r, n) { e.append("path").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr( "d", `M0 ${r.height - 5} v${-r.height + 2 * 5} q0,-5 5,-5 h${r.width - 2 * 5} q5,0 5,5 v${r.height - 5} H0 Z` ), e.append("line").attr("class", "node-line-" + n).attr("x1", 0).attr("y1", r.height).attr("x2", r.width).attr("y2", r.height); -}, "defaultBkg"), ccr = /* @__PURE__ */ x(function(t, e, r) { +}, "defaultBkg"), hcr = /* @__PURE__ */ x(function(t, e, r) { e.append("rect").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr("height", r.height).attr("width", r.width); -}, "rectBkg"), ucr = /* @__PURE__ */ x(function(t, e, r) { +}, "rectBkg"), fcr = /* @__PURE__ */ x(function(t, e, r) { const n = r.width, i = r.height, s = 0.15 * n, a = 0.25 * n, o = 0.35 * n, l = 0.2 * n; e.append("path").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr( "d", @@ -116096,7 +116132,7 @@ var Xlr = CM, Jl = [], c2e = 0, vB = {}, Hlr = /* @__PURE__ */ x(() => { H0 V0 Z` ); -}, "cloudBkg"), hcr = /* @__PURE__ */ x(function(t, e, r) { +}, "cloudBkg"), dcr = /* @__PURE__ */ x(function(t, e, r) { const n = r.width, i = r.height, s = 0.15 * n; e.append("path").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr( "d", @@ -116120,10 +116156,10 @@ var Xlr = CM, Jl = [], c2e = 0, vB = {}, Hlr = /* @__PURE__ */ x(() => { H0 V0 Z` ); -}, "bangBkg"), fcr = /* @__PURE__ */ x(function(t, e, r) { +}, "bangBkg"), pcr = /* @__PURE__ */ x(function(t, e, r) { e.append("circle").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr("r", r.width / 2); }, "circleBkg"); -function u2e(t, e, r, n, i) { +function h2e(t, e, r, n, i) { return t.insert("polygon", ":first-child").attr( "points", n.map(function(s) { @@ -116131,8 +116167,8 @@ function u2e(t, e, r, n, i) { }).join(" ") ).attr("transform", "translate(" + (i.width - e) / 2 + ", " + r + ")"); } -x(u2e, "insertPolygonShape"); -var dcr = /* @__PURE__ */ x(function(t, e, r) { +x(h2e, "insertPolygonShape"); +var gcr = /* @__PURE__ */ x(function(t, e, r) { const n = r.height, s = n / 4, a = r.width - r.padding + 2 * s, o = [ { x: s, y: 0 }, { x: a - s, y: 0 }, @@ -116141,11 +116177,11 @@ var dcr = /* @__PURE__ */ x(function(t, e, r) { { x: s, y: -n }, { x: 0, y: -n / 2 } ]; - u2e(e, a, n, o, r); -}, "hexagonBkg"), pcr = /* @__PURE__ */ x(function(t, e, r) { + h2e(e, a, n, o, r); +}, "hexagonBkg"), mcr = /* @__PURE__ */ x(function(t, e, r) { e.append("rect").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr("height", r.height).attr("rx", r.padding).attr("ry", r.padding).attr("width", r.width); -}, "roundedRectBkg"), gcr = /* @__PURE__ */ x(async function(t, e, r, n, i) { - const s = i.htmlLabels, a = n % (ocr - 1), o = e.append("g"); +}, "roundedRectBkg"), vcr = /* @__PURE__ */ x(async function(t, e, r, n, i) { + const s = i.htmlLabels, a = n % (ccr - 1), o = e.append("g"); r.section = a; let l = "section-" + a; a < 0 && (l += " section-root"), o.attr("class", (r.class ? r.class + " " : "") + "mindmap-node " + l); @@ -116187,42 +116223,42 @@ var dcr = /* @__PURE__ */ x(function(t, e, r) { } switch (r.type) { case t.nodeType.DEFAULT: - lcr(t, u, r, a); + ucr(t, u, r, a); break; case t.nodeType.ROUNDED_RECT: - pcr(t, u, r, a); + mcr(t, u, r, a); break; case t.nodeType.RECT: - ccr(t, u, r, a); + hcr(t, u, r, a); break; case t.nodeType.CIRCLE: - u.attr("transform", "translate(" + r.width / 2 + ", " + +r.height / 2 + ")"), fcr(t, u, r, a); + u.attr("transform", "translate(" + r.width / 2 + ", " + +r.height / 2 + ")"), pcr(t, u, r, a); break; case t.nodeType.CLOUD: - ucr(t, u, r, a); + fcr(t, u, r, a); break; case t.nodeType.BANG: - hcr(t, u, r, a); + dcr(t, u, r, a); break; case t.nodeType.HEXAGON: - dcr(t, u, r, a); + gcr(t, u, r, a); break; } return t.setElementForId(r.id, o), r.height; -}, "drawNode"), mcr = /* @__PURE__ */ x(function(t, e) { +}, "drawNode"), ycr = /* @__PURE__ */ x(function(t, e) { const r = t.getElementById(e.id), n = e.x || 0, i = e.y || 0; r.attr("transform", "translate(" + n + "," + i + ")"); }, "positionNode"); -pu.use(Glr); +pu.use(Hlr); async function yB(t, e, r, n, i) { - await gcr(t, e, r, n, i), r.children && await Promise.all( + await vcr(t, e, r, n, i), r.children && await Promise.all( r.children.map( (s, a) => yB(t, e, s, n < 0 ? a : n, i) ) ); } x(yB, "drawNodes"); -function h2e(t, e) { +function f2e(t, e) { e.edges().map((r, n) => { const i = r.data(); if (r[0]._private.bodyBounds) { @@ -116234,7 +116270,7 @@ function h2e(t, e) { } }); } -x(h2e, "drawEdges"); +x(f2e, "drawEdges"); function bB(t, e, r, n) { e.add({ group: "nodes", @@ -116266,7 +116302,7 @@ function bB(t, e, r, n) { }); } x(bB, "addNodes"); -function f2e(t, e) { +function d2e(t, e) { return new Promise((r) => { const n = ht("body").append("div").attr("id", "cy").attr("style", "display:none"), i = pu({ container: document.getElementById("cy"), @@ -116294,11 +116330,11 @@ function f2e(t, e) { }); }); } -x(f2e, "layoutMindmap"); -function d2e(t, e) { +x(d2e, "layoutMindmap"); +function p2e(t, e) { e.nodes().map((r, n) => { const i = r.data(); - i.x = r.position().x, i.y = r.position().y, mcr(t, i); + i.x = r.position().x, i.y = r.position().y, ycr(t, i); const s = t.getElementById(i.nodeId); H.info("Id:", n, "Position: (", r.position().x, ", ", r.position().y, ")", i), s.attr( "transform", @@ -116306,8 +116342,8 @@ function d2e(t, e) { ), s.attr("attr", `apa-${n})`); }); } -x(d2e, "positionNodes"); -var vcr = /* @__PURE__ */ x(async (t, e, r, n) => { +x(p2e, "positionNodes"); +var bcr = /* @__PURE__ */ x(async (t, e, r, n) => { var f, d, p, g; H.debug(`Rendering mindmap diagram ` + t); @@ -116320,16 +116356,16 @@ var vcr = /* @__PURE__ */ x(async (t, e, r, n) => { l.attr("class", "mindmap-edges"); const u = o.append("g"); u.attr("class", "mindmap-nodes"), await yB(i, u, s, -1, a); - const h = await f2e(s, a); - h2e(l, h), d2e(i, h), P1( + const h = await d2e(s, a); + f2e(l, h), p2e(i, h), P1( void 0, o, (d = (f = a.mindmap) == null ? void 0 : f.padding) != null ? d : cn.mindmap.padding, (g = (p = a.mindmap) == null ? void 0 : p.useMaxWidth) != null ? g : cn.mindmap.useMaxWidth ); -}, "draw"), ycr = { - draw: vcr -}, bcr = /* @__PURE__ */ x((t) => { +}, "draw"), xcr = { + draw: bcr +}, wcr = /* @__PURE__ */ x((t) => { let e = ""; for (let r = 0; r < t.THEME_COLOR_LIMIT; r++) t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], wp(t["lineColor" + r]) ? t["lineColor" + r] = Zt(t["lineColor" + r], 20) : t["lineColor" + r] = tr(t["lineColor" + r], 20); @@ -116366,11 +116402,11 @@ var vcr = /* @__PURE__ */ x(async (t, e, r, n) => { `; } return e; -}, "genSections"), xcr = /* @__PURE__ */ x((t) => ` +}, "genSections"), Ocr = /* @__PURE__ */ x((t) => ` .edge { stroke-width: 3; } - ${bcr(t)} + ${wcr(t)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${t.git0}; } @@ -116393,15 +116429,15 @@ var vcr = /* @__PURE__ */ x(async (t, e, r, n) => { dominant-baseline: middle; text-align: center; } -`, "getStyles"), wcr = xcr, Ocr = { - db: acr, - renderer: ycr, - parser: Xlr, - styles: wcr +`, "getStyles"), kcr = Ocr, Scr = { + db: lcr, + renderer: xcr, + parser: Zlr, + styles: kcr }; -const kcr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Tcr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Ocr + diagram: Scr }, Symbol.toStringTag, { value: "Module" })); function pj(t, e) { let r; @@ -116415,7 +116451,7 @@ function pj(t, e) { } return r; } -function p2e(t, e) { +function g2e(t, e) { let r; if (e === void 0) for (const n of t) @@ -116439,20 +116475,20 @@ function O7(t, e) { } return r; } -function Scr(t) { +function Ccr(t) { return t.target.depth; } -function Tcr(t) { +function Ecr(t) { return t.depth; } -function Ccr(t, e) { +function _cr(t, e) { return e - 1 - t.height; } -function g2e(t, e) { +function m2e(t, e) { return t.sourceLinks.length ? t.depth : e - 1; } -function Ecr(t) { - return t.targetLinks.length ? t.depth : t.sourceLinks.length ? p2e(t.sourceLinks, Scr) - 1 : 0; +function Acr(t) { + return t.targetLinks.length ? t.depth : t.sourceLinks.length ? g2e(t.sourceLinks, Ccr) - 1 : 0; } function U4(t) { return function() { @@ -116471,13 +116507,13 @@ function vT(t, e) { function k7(t) { return t.value; } -function _cr(t) { +function Lcr(t) { return t.index; } -function Acr(t) { +function Rcr(t) { return t.nodes; } -function Lcr(t) { +function Mcr(t) { return t.links; } function vj(t, e) { @@ -116495,8 +116531,8 @@ function yj({ nodes: t }) { i.y1 = n + i.width / 2, n += i.width; } } -function Rcr() { - let t = 0, e = 0, r = 1, n = 1, i = 24, s = 8, a, o = _cr, l = g2e, u, h, f = Acr, d = Lcr, p = 6; +function Dcr() { + let t = 0, e = 0, r = 1, n = 1, i = 24, s = 8, a, o = Lcr, l = m2e, u, h, f = Rcr, d = Mcr, p = 6; function g() { const P = { nodes: f.apply(null, arguments), links: d.apply(null, arguments) }; return m(P), v(P), y(P), b(P), S(P), yj(P), P; @@ -116583,7 +116619,7 @@ function Rcr() { return D; } function O(P) { - const M = p2e(P, (N) => (n - e - (N.length - 1) * a) / O7(N, k7)); + const M = g2e(P, (N) => (n - e - (N.length - 1) * a) / O7(N, k7)); for (const N of P) { let D = e; for (const I of N) { @@ -116700,14 +116736,14 @@ function Rcr() { } return g; } -var EM = Math.PI, _M = 2 * EM, Yd = 1e-6, Mcr = _M - Yd; +var EM = Math.PI, _M = 2 * EM, Yd = 1e-6, Pcr = _M - Yd; function AM() { this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = ""; } -function m2e() { +function v2e() { return new AM(); } -AM.prototype = m2e.prototype = { +AM.prototype = v2e.prototype = { constructor: AM, moveTo: function(t, e) { this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e); @@ -116744,7 +116780,7 @@ AM.prototype = m2e.prototype = { var a = r * Math.cos(n), o = r * Math.sin(n), l = t + a, u = e + o, h = 1 ^ s, f = s ? n - i : i - n; if (r < 0) throw new Error("negative radius: " + r); - this._x1 === null ? this._ += "M" + l + "," + u : (Math.abs(this._x1 - l) > Yd || Math.abs(this._y1 - u) > Yd) && (this._ += "L" + l + "," + u), r && (f < 0 && (f = f % _M + _M), f > Mcr ? this._ += "A" + r + "," + r + ",0,1," + h + "," + (t - a) + "," + (e - o) + "A" + r + "," + r + ",0,1," + h + "," + (this._x1 = l) + "," + (this._y1 = u) : f > Yd && (this._ += "A" + r + "," + r + ",0," + +(f >= EM) + "," + h + "," + (this._x1 = t + r * Math.cos(i)) + "," + (this._y1 = e + r * Math.sin(i)))); + this._x1 === null ? this._ += "M" + l + "," + u : (Math.abs(this._x1 - l) > Yd || Math.abs(this._y1 - u) > Yd) && (this._ += "L" + l + "," + u), r && (f < 0 && (f = f % _M + _M), f > Pcr ? this._ += "A" + r + "," + r + ",0,1," + h + "," + (t - a) + "," + (e - o) + "A" + r + "," + r + ",0,1," + h + "," + (this._x1 = l) + "," + (this._y1 = u) : f > Yd && (this._ += "A" + r + "," + r + ",0," + +(f >= EM) + "," + h + "," + (this._x1 = t + r * Math.cos(i)) + "," + (this._y1 = e + r * Math.sin(i)))); }, rect: function(t, e, r, n) { this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e) + "h" + +r + "v" + +n + "h" + -r + "Z"; @@ -116758,24 +116794,24 @@ function bj(t) { return t; }; } -function Dcr(t) { +function Ncr(t) { return t[0]; } -function Pcr(t) { +function Icr(t) { return t[1]; } -var Ncr = Array.prototype.slice; -function Icr(t) { +var $cr = Array.prototype.slice; +function Bcr(t) { return t.source; } -function $cr(t) { +function Fcr(t) { return t.target; } -function Bcr(t) { - var e = Icr, r = $cr, n = Dcr, i = Pcr, s = null; +function zcr(t) { + var e = Bcr, r = Fcr, n = Ncr, i = Icr, s = null; function a() { - var o, l = Ncr.call(arguments), u = e.apply(this, l), h = r.apply(this, l); - if (s || (s = o = m2e()), t(s, +n.apply(this, (l[0] = u, l)), +i.apply(this, l), +n.apply(this, (l[0] = h, l)), +i.apply(this, l)), o) + var o, l = $cr.call(arguments), u = e.apply(this, l), h = r.apply(this, l); + if (s || (s = o = v2e()), t(s, +n.apply(this, (l[0] = u, l)), +i.apply(this, l), +n.apply(this, (l[0] = h, l)), +i.apply(this, l)), o) return s = null, o + "" || null; } return a.source = function(o) { @@ -116790,20 +116826,20 @@ function Bcr(t) { return arguments.length ? (s = o == null ? null : o, a) : s; }, a; } -function Fcr(t, e, r, n, i) { +function Qcr(t, e, r, n, i) { t.moveTo(e, r), t.bezierCurveTo(e = (e + n) / 2, r, e, i, n, i); } -function zcr() { - return Bcr(Fcr); +function Ucr() { + return zcr(Qcr); } -function Qcr(t) { +function Vcr(t) { return [t.source.x1, t.y0]; } -function Ucr(t) { +function qcr(t) { return [t.target.x0, t.y1]; } -function Vcr() { - return zcr().source(Qcr).target(Ucr); +function Ycr() { + return Ucr().source(Vcr).target(qcr); } var LM = function() { var t = /* @__PURE__ */ x(function(o, l, u, h) { @@ -117095,51 +117131,51 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : B = " return x(a, "Parser"), a.prototype = i, i.Parser = a, new a(); }(); LM.parser = LM; -var yT = LM, r_ = [], n_ = [], bT = /* @__PURE__ */ new Map(), qcr = /* @__PURE__ */ x(() => { +var yT = LM, r_ = [], n_ = [], bT = /* @__PURE__ */ new Map(), Wcr = /* @__PURE__ */ x(() => { r_ = [], n_ = [], bT = /* @__PURE__ */ new Map(), cs(); -}, "clear"), Mx, Ycr = (Mx = class { +}, "clear"), Mx, Gcr = (Mx = class { constructor(e, r, n = 0) { this.source = e, this.target = r, this.value = n; } }, (() => { x(Mx, "SankeyLink"); -})(), Mx), Wcr = /* @__PURE__ */ x((t, e, r) => { - r_.push(new Ycr(t, e, r)); -}, "addLink"), Dx, Gcr = (Dx = class { +})(), Mx), Xcr = /* @__PURE__ */ x((t, e, r) => { + r_.push(new Gcr(t, e, r)); +}, "addLink"), Dx, Hcr = (Dx = class { constructor(e) { this.ID = e; } }, (() => { x(Dx, "SankeyNode"); -})(), Dx), Xcr = /* @__PURE__ */ x((t) => { +})(), Dx), Zcr = /* @__PURE__ */ x((t) => { t = mt.sanitizeText(t, ke()); let e = bT.get(t); - return e === void 0 && (e = new Gcr(t), bT.set(t, e), n_.push(e)), e; -}, "findOrCreateNode"), Hcr = /* @__PURE__ */ x(() => n_, "getNodes"), Zcr = /* @__PURE__ */ x(() => r_, "getLinks"), jcr = /* @__PURE__ */ x(() => ({ + return e === void 0 && (e = new Hcr(t), bT.set(t, e), n_.push(e)), e; +}, "findOrCreateNode"), jcr = /* @__PURE__ */ x(() => n_, "getNodes"), Kcr = /* @__PURE__ */ x(() => r_, "getLinks"), Jcr = /* @__PURE__ */ x(() => ({ nodes: n_.map((t) => ({ id: t.ID })), links: r_.map((t) => ({ source: t.source.ID, target: t.target.ID, value: t.value })) -}), "getGraph"), Kcr = { +}), "getGraph"), eur = { nodesMap: bT, getConfig: /* @__PURE__ */ x(() => ke().sankey, "getConfig"), - getNodes: Hcr, - getLinks: Zcr, - getGraph: jcr, - addLink: Wcr, - findOrCreateNode: Xcr, + getNodes: jcr, + getLinks: Kcr, + getGraph: Jcr, + addLink: Xcr, + findOrCreateNode: Zcr, getAccTitle: Ps, setAccTitle: us, getAccDescription: Is, setAccDescription: Ns, getDiagramTitle: $s, setDiagramTitle: Na, - clear: qcr -}, bf, xj = (bf = class { + clear: Wcr +}, xf, xj = (xf = class { static next(e) { - return new bf(e + ++bf.count); + return new xf(e + ++xf.count); } constructor(e) { this.id = e, this.href = `#${e}`; @@ -117148,25 +117184,25 @@ var yT = LM, r_ = [], n_ = [], bT = /* @__PURE__ */ new Map(), qcr = /* @__PURE_ return "url(" + this.href + ")"; } }, (() => { - x(bf, "Uid"); + x(xf, "Uid"); })(), (() => { - bf.count = 0; -})(), bf), Jcr = { - left: Tcr, - right: Ccr, - center: Ecr, - justify: g2e -}, eur = /* @__PURE__ */ x(function(t, e, r, n) { + xf.count = 0; +})(), xf), tur = { + left: Ecr, + right: _cr, + center: Acr, + justify: m2e +}, rur = /* @__PURE__ */ x(function(t, e, r, n) { var R, _, L, $, k, P, M, N; const { securityLevel: i, sankey: s } = ke(), a = cae.sankey; let o; i === "sandbox" && (o = ht("#i" + e)); - const l = ht(i === "sandbox" ? o.nodes()[0].contentDocument.body : "body"), u = i === "sandbox" ? l.select(`[id="${e}"]`) : ht(`[id="${e}"]`), h = (R = s == null ? void 0 : s.width) != null ? R : a.width, f = (_ = s == null ? void 0 : s.height) != null ? _ : a.width, d = (L = s == null ? void 0 : s.useMaxWidth) != null ? L : a.useMaxWidth, p = ($ = s == null ? void 0 : s.nodeAlignment) != null ? $ : a.nodeAlignment, g = (k = s == null ? void 0 : s.prefix) != null ? k : a.prefix, m = (P = s == null ? void 0 : s.suffix) != null ? P : a.suffix, v = (M = s == null ? void 0 : s.showValues) != null ? M : a.showValues, y = n.db.getGraph(), b = Jcr[p], w = 10; - Rcr().nodeId((D) => D.id).nodeWidth(w).nodePadding(10 + (v ? 15 : 0)).nodeAlign(b).extent([ + const l = ht(i === "sandbox" ? o.nodes()[0].contentDocument.body : "body"), u = i === "sandbox" ? l.select(`[id="${e}"]`) : ht(`[id="${e}"]`), h = (R = s == null ? void 0 : s.width) != null ? R : a.width, f = (_ = s == null ? void 0 : s.height) != null ? _ : a.width, d = (L = s == null ? void 0 : s.useMaxWidth) != null ? L : a.useMaxWidth, p = ($ = s == null ? void 0 : s.nodeAlignment) != null ? $ : a.nodeAlignment, g = (k = s == null ? void 0 : s.prefix) != null ? k : a.prefix, m = (P = s == null ? void 0 : s.suffix) != null ? P : a.suffix, v = (M = s == null ? void 0 : s.showValues) != null ? M : a.showValues, y = n.db.getGraph(), b = tur[p], w = 10; + Dcr().nodeId((D) => D.id).nodeWidth(w).nodePadding(10 + (v ? 15 : 0)).nodeAlign(b).extent([ [0, 0], [h, f] ])(y); - const S = RC(E5t); + const S = RC(_5t); u.append("g").attr("class", "nodes").selectAll(".node").data(y.nodes).join("g").attr("class", "node").attr("id", (D) => (D.uid = xj.next("node-")).id).attr("transform", function(D) { return "translate(" + D.x0 + "," + D.y0 + ")"; }).attr("x", (D) => D.x0).attr("y", (D) => D.y0).append("rect").attr("height", (D) => D.y1 - D.y0).attr("width", (D) => D.x1 - D.x0).attr("fill", (D) => S(D.id)); @@ -117192,45 +117228,45 @@ ${g}${Math.round(I * 100) / 100}${m}` : D, "getText"); default: E = A; } - T.append("path").attr("d", Vcr()).attr("stroke", E).attr("stroke-width", (D) => Math.max(1, D.width)), P1(void 0, u, 0, d); -}, "draw"), tur = { - draw: eur -}, rur = /* @__PURE__ */ x((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, ` -`).trim(), "prepareTextForParsing"), nur = yT.parse.bind(yT); -yT.parse = (t) => nur(rur(t)); -var iur = { + T.append("path").attr("d", Ycr()).attr("stroke", E).attr("stroke-width", (D) => Math.max(1, D.width)), P1(void 0, u, 0, d); +}, "draw"), nur = { + draw: rur +}, iur = /* @__PURE__ */ x((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, ` +`).trim(), "prepareTextForParsing"), sur = yT.parse.bind(yT); +yT.parse = (t) => sur(iur(t)); +var aur = { parser: yT, - db: Kcr, - renderer: tur + db: eur, + renderer: nur }; -const sur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const our = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: iur + diagram: aur }, Symbol.toStringTag, { value: "Module" })); -var v2e = { +var y2e = { packet: [] -}, xB = structuredClone(v2e), aur = cn.packet, our = /* @__PURE__ */ x(() => { - const t = Ih({ - ...aur, +}, xB = structuredClone(y2e), lur = cn.packet, cur = /* @__PURE__ */ x(() => { + const t = $h({ + ...lur, ...Ai().packet }); return t.showBits && (t.paddingY += 10), t; -}, "getConfig"), lur = /* @__PURE__ */ x(() => xB.packet, "getPacket"), cur = /* @__PURE__ */ x((t) => { +}, "getConfig"), uur = /* @__PURE__ */ x(() => xB.packet, "getPacket"), hur = /* @__PURE__ */ x((t) => { t.length > 0 && xB.packet.push(t); -}, "pushWord"), uur = /* @__PURE__ */ x(() => { - cs(), xB = structuredClone(v2e); +}, "pushWord"), fur = /* @__PURE__ */ x(() => { + cs(), xB = structuredClone(y2e); }, "clear"), gg = { - pushWord: cur, - getPacket: lur, - getConfig: our, - clear: uur, + pushWord: hur, + getPacket: uur, + getConfig: cur, + clear: fur, setAccTitle: us, getAccTitle: Ps, setDiagramTitle: Na, getDiagramTitle: $s, getAccDescription: Is, setAccDescription: Ns -}, hur = 1e4, fur = /* @__PURE__ */ x((t) => { +}, dur = 1e4, pur = /* @__PURE__ */ x((t) => { Sw(t, gg); let e = -1, r = [], n = 1; const { bitsPerRow: i } = gg.getConfig(); @@ -117241,15 +117277,15 @@ var v2e = { throw new Error( `Packet block ${s} - ${a != null ? a : s} is not contiguous. It should start from ${e + 1}.` ); - for (e = a != null ? a : s, H.debug(`Packet block ${s} - ${e} with label ${o}`); r.length <= i + 1 && gg.getPacket().length < hur; ) { - const [l, u] = dur({ start: s, end: a, label: o }, n, i); + for (e = a != null ? a : s, H.debug(`Packet block ${s} - ${e} with label ${o}`); r.length <= i + 1 && gg.getPacket().length < dur; ) { + const [l, u] = gur({ start: s, end: a, label: o }, n, i); if (r.push(l), l.end + 1 === n * i && (gg.pushWord(r), r = [], n++), !u) break; ({ start: s, end: a, label: o } = u); } } gg.pushWord(r); -}, "populate"), dur = /* @__PURE__ */ x((t, e, r) => { +}, "populate"), gur = /* @__PURE__ */ x((t, e, r) => { if (t.end === void 0 && (t.end = t.start), t.start > t.end) throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`); return t.end + 1 <= e * r ? [t, void 0] : [ @@ -117264,18 +117300,18 @@ var v2e = { label: t.label } ]; -}, "getNextFittingBlock"), pur = { +}, "getNextFittingBlock"), mur = { parse: /* @__PURE__ */ x(async (t) => { const e = await ev("packet", t); - H.debug(e), fur(e); + H.debug(e), pur(e); }, "parse") -}, gur = /* @__PURE__ */ x((t, e, r, n) => { +}, vur = /* @__PURE__ */ x((t, e, r, n) => { const i = n.db, s = i.getConfig(), { rowHeight: a, paddingY: o, bitWidth: l, bitsPerRow: u } = s, h = i.getPacket(), f = i.getDiagramTitle(), d = a + o, p = d * (h.length + 1) - (f ? 0 : a), g = l * u + 2, m = Rp(e); m.attr("viewbox", `0 0 ${g} ${p}`), Ds(m, p, g, s.useMaxWidth); for (const [v, y] of h.entries()) - mur(m, y, v, s); + yur(m, y, v, s); m.append("text").text(f).attr("x", g / 2).attr("y", p - d / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle"); -}, "draw"), mur = /* @__PURE__ */ x((t, e, r, { rowHeight: n, paddingX: i, paddingY: s, bitWidth: a, bitsPerRow: o, showBits: l }) => { +}, "draw"), yur = /* @__PURE__ */ x((t, e, r, { rowHeight: n, paddingX: i, paddingY: s, bitWidth: a, bitsPerRow: o, showBits: l }) => { const u = t.append("g"), h = r * (n + s) + s; for (const f of e) { const d = f.start % o * a + 1, p = (f.end - f.start + 1) * a - i; @@ -117284,7 +117320,7 @@ var v2e = { const g = f.end === f.start, m = h - 2; u.append("text").attr("x", d + (g ? p / 2 : 0)).attr("y", m).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", g ? "middle" : "start").text(f.start), g || u.append("text").attr("x", d + p).attr("y", m).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(f.end); } -}, "drawWord"), vur = { draw: gur }, yur = { +}, "drawWord"), bur = { draw: vur }, xur = { byteFontSize: "10px", startByteColor: "black", endByteColor: "black", @@ -117295,8 +117331,8 @@ var v2e = { blockStrokeColor: "black", blockStrokeWidth: "1", blockFillColor: "#efefef" -}, bur = /* @__PURE__ */ x(({ packet: t } = {}) => { - const e = Ih(yur, t); +}, wur = /* @__PURE__ */ x(({ packet: t } = {}) => { + const e = $h(xur, t); return ` .packetByte { font-size: ${e.byteFontSize}; @@ -117321,15 +117357,15 @@ var v2e = { fill: ${e.blockFillColor}; } `; -}, "styles"), xur = { - parser: pur, +}, "styles"), Our = { + parser: mur, db: gg, - renderer: vur, - styles: bur + renderer: bur, + styles: wur }; -const wur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const kur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: xur + diagram: Our }, Symbol.toStringTag, { value: "Module" })); var RM = function() { var t = /* @__PURE__ */ x(function(w, O, S, C) { @@ -117915,20 +117951,20 @@ Expecting ` + J.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : oe = return x(b, "Parser"), b.prototype = v, v.Parser = b, new b(); }(); RM.parser = RM; -var Our = RM, ec = /* @__PURE__ */ new Map(), wB = [], MM = /* @__PURE__ */ new Map(), wj = "color", Oj = "fill", kur = "bgFill", y2e = ",", Sur = ke(), xT = /* @__PURE__ */ new Map(), Tur = /* @__PURE__ */ x((t) => mt.sanitizeText(t, Sur), "sanitizeText"), Cur = /* @__PURE__ */ x(function(t, e = "") { +var Sur = RM, ec = /* @__PURE__ */ new Map(), wB = [], MM = /* @__PURE__ */ new Map(), wj = "color", Oj = "fill", Tur = "bgFill", b2e = ",", Cur = ke(), xT = /* @__PURE__ */ new Map(), Eur = /* @__PURE__ */ x((t) => mt.sanitizeText(t, Cur), "sanitizeText"), _ur = /* @__PURE__ */ x(function(t, e = "") { let r = xT.get(t); - r || (r = { id: t, styles: [], textStyles: [] }, xT.set(t, r)), e != null && e.split(y2e).forEach((n) => { + r || (r = { id: t, styles: [], textStyles: [] }, xT.set(t, r)), e != null && e.split(b2e).forEach((n) => { const i = n.replace(/([^;]*);/, "$1").trim(); if (RegExp(wj).exec(n)) { - const a = i.replace(Oj, kur).replace(wj, Oj); + const a = i.replace(Oj, Tur).replace(wj, Oj); r.textStyles.push(a); } r.styles.push(i); }); -}, "addStyleClass"), Eur = /* @__PURE__ */ x(function(t, e = "") { +}, "addStyleClass"), Aur = /* @__PURE__ */ x(function(t, e = "") { const r = ec.get(t); - e != null && (r.styles = e.split(y2e)); -}, "addStyle2Node"), _ur = /* @__PURE__ */ x(function(t, e) { + e != null && (r.styles = e.split(b2e)); +}, "addStyle2Node"), Lur = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = ec.get(r); if (n === void 0) { @@ -117937,20 +117973,20 @@ var Our = RM, ec = /* @__PURE__ */ new Map(), wB = [], MM = /* @__PURE__ */ new } n.classes || (n.classes = []), n.classes.push(e); }); -}, "setCssClass"), b2e = /* @__PURE__ */ x((t, e) => { +}, "setCssClass"), x2e = /* @__PURE__ */ x((t, e) => { var i, s, a, o; const r = t.flat(), n = []; for (const l of r) { - if (l.label && (l.label = Tur(l.label)), l.type === "classDef") { - Cur(l.id, l.css); + if (l.label && (l.label = Eur(l.label)), l.type === "classDef") { + _ur(l.id, l.css); continue; } if (l.type === "applyClass") { - _ur(l.id, (i = l == null ? void 0 : l.styleClass) != null ? i : ""); + Lur(l.id, (i = l == null ? void 0 : l.styleClass) != null ? i : ""); continue; } if (l.type === "applyStyles") { - l != null && l.stylesStr && Eur(l.id, l == null ? void 0 : l.stylesStr); + l != null && l.stylesStr && Aur(l.id, l == null ? void 0 : l.stylesStr); continue; } if (l.type === "column-setting") @@ -117961,7 +117997,7 @@ var Our = RM, ec = /* @__PURE__ */ new Map(), wB = [], MM = /* @__PURE__ */ new } else { l.label || (l.type === "composite" ? l.label = "" : l.label = l.id); const u = ec.get(l.id); - if (u === void 0 ? ec.set(l.id, l) : (l.type !== "na" && (u.type = l.type), l.label !== l.id && (u.label = l.label)), l.children && b2e(l.children, l), l.type === "space") { + if (u === void 0 ? ec.set(l.id, l) : (l.type !== "na" && (u.type = l.type), l.label !== l.id && (u.label = l.label)), l.children && x2e(l.children, l), l.type === "space") { const h = (o = l.width) != null ? o : 1; for (let f = 0; f < h; f++) { const d = Hi(l); @@ -117972,10 +118008,10 @@ var Our = RM, ec = /* @__PURE__ */ new Map(), wB = [], MM = /* @__PURE__ */ new } } e.children = n; -}, "populateBlockDatabase"), OB = [], o2 = { id: "root", type: "composite", children: [], columns: -1 }, Aur = /* @__PURE__ */ x(() => { +}, "populateBlockDatabase"), OB = [], o2 = { id: "root", type: "composite", children: [], columns: -1 }, Rur = /* @__PURE__ */ x(() => { H.debug("Clear called"), cs(), o2 = { id: "root", type: "composite", children: [], columns: -1 }, ec = /* @__PURE__ */ new Map([["root", o2]]), OB = [], xT = /* @__PURE__ */ new Map(), wB = [], MM = /* @__PURE__ */ new Map(); }, "clear"); -function x2e(t) { +function w2e(t) { switch (H.debug("typeStr2Type", t), t) { case "[]": return "square"; @@ -118011,8 +118047,8 @@ function x2e(t) { return "na"; } } -x(x2e, "typeStr2Type"); -function w2e(t) { +x(w2e, "typeStr2Type"); +function O2e(t) { switch (H.debug("typeStr2Type", t), t) { case "==": return "thick"; @@ -118020,8 +118056,8 @@ function w2e(t) { return "normal"; } } -x(w2e, "edgeTypeStr2Type"); -function O2e(t) { +x(O2e, "edgeTypeStr2Type"); +function k2e(t) { switch (t.trim()) { case "--x": return "arrow_cross"; @@ -118031,36 +118067,36 @@ function O2e(t) { return "arrow_point"; } } -x(O2e, "edgeStrToEdgeData"); -var kj = 0, Lur = /* @__PURE__ */ x(() => (kj++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + kj), "generateId"), Rur = /* @__PURE__ */ x((t) => { - o2.children = t, b2e(t, o2), OB = o2.children; -}, "setHierarchy"), Mur = /* @__PURE__ */ x((t) => { +x(k2e, "edgeStrToEdgeData"); +var kj = 0, Mur = /* @__PURE__ */ x(() => (kj++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + kj), "generateId"), Dur = /* @__PURE__ */ x((t) => { + o2.children = t, x2e(t, o2), OB = o2.children; +}, "setHierarchy"), Pur = /* @__PURE__ */ x((t) => { const e = ec.get(t); return e ? e.columns ? e.columns : e.children ? e.children.length : -1 : -1; -}, "getColumns"), Dur = /* @__PURE__ */ x(() => [...ec.values()], "getBlocksFlat"), Pur = /* @__PURE__ */ x(() => OB || [], "getBlocks"), Nur = /* @__PURE__ */ x(() => wB, "getEdges"), Iur = /* @__PURE__ */ x((t) => ec.get(t), "getBlock"), $ur = /* @__PURE__ */ x((t) => { +}, "getColumns"), Nur = /* @__PURE__ */ x(() => [...ec.values()], "getBlocksFlat"), Iur = /* @__PURE__ */ x(() => OB || [], "getBlocks"), $ur = /* @__PURE__ */ x(() => wB, "getEdges"), Bur = /* @__PURE__ */ x((t) => ec.get(t), "getBlock"), Fur = /* @__PURE__ */ x((t) => { ec.set(t.id, t); -}, "setBlock"), Bur = /* @__PURE__ */ x(() => console, "getLogger"), Fur = /* @__PURE__ */ x(function() { +}, "setBlock"), zur = /* @__PURE__ */ x(() => console, "getLogger"), Qur = /* @__PURE__ */ x(function() { return xT; -}, "getClasses"), zur = { +}, "getClasses"), Uur = { getConfig: /* @__PURE__ */ x(() => Ai().block, "getConfig"), - typeStr2Type: x2e, - edgeTypeStr2Type: w2e, - edgeStrToEdgeData: O2e, - getLogger: Bur, - getBlocksFlat: Dur, - getBlocks: Pur, - getEdges: Nur, - setHierarchy: Rur, - getBlock: Iur, - setBlock: $ur, - getColumns: Mur, - getClasses: Fur, - clear: Aur, - generateId: Lur -}, Qur = zur, V4 = /* @__PURE__ */ x((t, e) => { + typeStr2Type: w2e, + edgeTypeStr2Type: O2e, + edgeStrToEdgeData: k2e, + getLogger: zur, + getBlocksFlat: Nur, + getBlocks: Iur, + getEdges: $ur, + setHierarchy: Dur, + getBlock: Bur, + setBlock: Fur, + getColumns: Pur, + getClasses: Qur, + clear: Rur, + generateId: Mur +}, Vur = Uur, V4 = /* @__PURE__ */ x((t, e) => { const r = zse, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); return E0(n, i, s, e); -}, "fade"), Uur = /* @__PURE__ */ x((t) => `.label { +}, "fade"), qur = /* @__PURE__ */ x((t) => `.label { font-family: ${t.fontFamily}; color: ${t.nodeTextColor || t.textColor}; } @@ -118172,8 +118208,8 @@ var kj = 0, Lur = /* @__PURE__ */ x(() => (kj++, "id-" + Math.random().toString( font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), Vur = Uur, Aj, Lj, Rj, li = (Rj = (Lj = (Aj = ke()) == null ? void 0 : Aj.block) == null ? void 0 : Lj.padding) != null ? Rj : 8; -function k2e(t, e) { +`, "getStyles"), Yur = qur, Aj, Lj, Rj, li = (Rj = (Lj = (Aj = ke()) == null ? void 0 : Aj.block) == null ? void 0 : Lj.padding) != null ? Rj : 8; +function S2e(t, e) { if (t === 0 || !Number.isInteger(t)) throw new Error("Columns must be an integer !== 0."); if (e < 0 || !Number.isInteger(e)) @@ -118185,8 +118221,8 @@ function k2e(t, e) { const r = e % t, n = Math.floor(e / t); return { px: r, py: n }; } -x(k2e, "calculateBlockPosition"); -var qur = /* @__PURE__ */ x((t) => { +x(S2e, "calculateBlockPosition"); +var Wur = /* @__PURE__ */ x((t) => { var n, i; let e = 0, r = 0; for (const s of t.children) { @@ -118227,7 +118263,7 @@ function wT(t, e, r = 0, n = 0) { if (((l = t.children) == null ? void 0 : l.length) > 0) { for (const L of t.children) wT(L, e); - const S = qur(t); + const S = Wur(t); i = S.width, s = S.height, H.debug("setBlockSizes abc95 maxWidth of", t.id, ":s children is ", i, s); for (const L of t.children) L.size && (H.debug( @@ -118299,7 +118335,7 @@ function kB(t, e) { const P = t; if (!k.size) continue; - const { width: M, height: N } = k.size, { px: D, py: I } = k2e(r, _); + const { width: M, height: N } = k.size, { px: D, py: I } = S2e(r, _); if (I != $ && ($ = I, L = (g = t == null ? void 0 : t.size) != null && g.x ? ((m = t == null ? void 0 : t.size) == null ? void 0 : m.x) + (-((v = t == null ? void 0 : t.size) == null ? void 0 : v.width) / 2 || 0) : -li, H.debug("New row in layout for block", t.id, " and child ", k.id, $)), H.debug( `abc89 layout blocks (child) id: ${k.id} Pos: ${_} (px, py) ${D},${I} (${(y = P == null ? void 0 : P.size) == null ? void 0 : y.x},${(b = P == null ? void 0 : P.size) == null ? void 0 : b.y}) parent: ${P.id} width: ${M}${li}` ), P.size) { @@ -118329,7 +118365,7 @@ function SB(t, { minX: e, minY: r, maxX: n, maxY: i } = { minX: 0, minY: 0, maxX return { minX: e, minY: r, maxX: n, maxY: i }; } x(SB, "findBounds"); -function S2e(t) { +function T2e(t) { const e = t.getBlock("root"); if (!e) return; @@ -118337,7 +118373,7 @@ function S2e(t) { const { minX: r, minY: n, maxX: i, maxY: s } = SB(e), a = s - n, o = i - r; return { x: r, y: n, width: o, height: a }; } -x(S2e, "layout"); +x(T2e, "layout"); function TB(t, e, r = !1) { var d, p, g, m, v, y, b; const n = t; @@ -118427,33 +118463,33 @@ function TB(t, e, r = !1) { }; } x(TB, "getNodeFromBlock"); -async function T2e(t, e, r) { +async function C2e(t, e, r) { const n = TB(e, r, !1); if (n.type === "group") return; const i = await EI(t, n), s = i.node().getBBox(), a = r.getBlock(n.id); a.size = { width: s.width, height: s.height, x: 0, y: 0, node: i }, r.setBlock(a), i.remove(); } -x(T2e, "calculateBlockSize"); -async function C2e(t, e, r) { +x(C2e, "calculateBlockSize"); +async function E2e(t, e, r) { const n = TB(e, r, !0); r.getBlock(n.id).type !== "space" && (await EI(t, n), e.intersect = n == null ? void 0 : n.intersect, HL(n)); } -x(C2e, "insertBlockPositioned"); +x(E2e, "insertBlockPositioned"); async function i_(t, e, r, n) { for (const i of e) await n(t, i, r), i.children && await i_(t, i.children, r, n); } x(i_, "performOperations"); -async function E2e(t, e, r) { - await i_(t, e, r, T2e); -} -x(E2e, "calculateBlockSizes"); async function _2e(t, e, r) { await i_(t, e, r, C2e); } -x(_2e, "insertBlocks"); -async function A2e(t, e, r, n, i) { +x(_2e, "calculateBlockSizes"); +async function A2e(t, e, r) { + await i_(t, e, r, E2e); +} +x(A2e, "insertBlocks"); +async function L2e(t, e, r, n, i) { const s = new Ji({ multigraph: !0, compound: !0 @@ -118480,7 +118516,7 @@ async function A2e(t, e, r, n, i) { { x: u.x + (h.x - u.x) / 2, y: u.y + (h.y - u.y) / 2 }, { x: h.x, y: h.y } ]; - k1e( + S1e( t, { v: a.start, w: a.end, name: a.id }, { @@ -118494,7 +118530,7 @@ async function A2e(t, e, r, n, i) { "block", s, i - ), a.label && (await w1e(t, { + ), a.label && (await O1e(t, { ...a, label: a.label, labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;", @@ -118502,7 +118538,7 @@ async function A2e(t, e, r, n, i) { arrowTypeStart: a.arrowTypeStart, points: f, classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1" - }), O1e( + }), k1e( { ...a, x: f[1].x, y: f[1].y }, { originalPath: f @@ -118511,40 +118547,40 @@ async function A2e(t, e, r, n, i) { } } } -x(A2e, "insertEdges"); -var Yur = /* @__PURE__ */ x(function(t, e) { +x(L2e, "insertEdges"); +var Gur = /* @__PURE__ */ x(function(t, e) { return e.db.getClasses(); -}, "getClasses"), Wur = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), Xur = /* @__PURE__ */ x(async function(t, e, r, n) { const { securityLevel: i, block: s } = Ai(), a = n.db; let o; i === "sandbox" && (o = ht("#i" + e)); const l = ht(i === "sandbox" ? o.nodes()[0].contentDocument.body : "body"), u = i === "sandbox" ? l.select(`[id="${e}"]`) : ht(`[id="${e}"]`); - x1e(u, ["point", "circle", "cross"], n.type, e); + w1e(u, ["point", "circle", "cross"], n.type, e); const f = a.getBlocks(), d = a.getBlocksFlat(), p = a.getEdges(), g = u.insert("g").attr("class", "block"); - await E2e(g, f, a); - const m = S2e(a); - if (await _2e(g, f, a), await A2e(g, p, d, a, e), m) { + await _2e(g, f, a); + const m = T2e(a); + if (await A2e(g, f, a), await L2e(g, p, d, a, e), m) { const v = m, y = Math.max(1, Math.round(0.125 * (v.width / v.height))), b = v.height + y + 10, w = v.width + 10, { useMaxWidth: O } = s; Ds(u, b, w, !!O), H.debug("Here Bounds", m, v), u.attr( "viewBox", `${v.x - 5} ${v.y - 5} ${v.width + 10} ${v.height + 10}` ); } -}, "draw"), Gur = { - draw: Wur, - getClasses: Yur -}, Xur = { - parser: Our, - db: Qur, - renderer: Gur, - styles: Vur +}, "draw"), Hur = { + draw: Xur, + getClasses: Gur +}, Zur = { + parser: Sur, + db: Vur, + renderer: Hur, + styles: Yur }; -const Hur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const jur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Xur + diagram: Zur }, Symbol.toStringTag, { value: "Module" })); -var L2e = { exports: {} }, S7 = { exports: {} }, T7 = { exports: {} }, Sj; -function Zur() { +var R2e = { exports: {} }, S7 = { exports: {} }, T7 = { exports: {} }, Sj; +function Kur() { return Sj || (Sj = 1, function(t, e) { (function(n, i) { t.exports = i(); @@ -120374,10 +120410,10 @@ function Zur() { }(T7)), T7.exports; } var Tj; -function jur() { +function Jur() { return Tj || (Tj = 1, function(t, e) { (function(n, i) { - t.exports = i(Zur()); + t.exports = i(Kur()); })(wa, function(r) { return (() => { var n = { @@ -121460,23 +121496,23 @@ function jur() { }), y.alignmentConstraint) { if (y.alignmentConstraint.vertical) for (var Fe = y.alignmentConstraint.vertical, ot = function(me) { - Ee.set("dummy" + me, []), Fe[me].forEach(function(mr) { - ve.set(mr, "dummy" + me), Ee.get("dummy" + me).push(mr), B.has(mr) && Le.add("dummy" + me); + Ee.set("dummy" + me, []), Fe[me].forEach(function(vr) { + ve.set(vr, "dummy" + me), Ee.get("dummy" + me).push(vr), B.has(vr) && Le.add("dummy" + me); }), Ce.set("dummy" + me, O[w.get(Fe[me][0])]); }, at = 0; at < Fe.length; at++) ot(at); if (y.alignmentConstraint.horizontal) for (var bt = y.alignmentConstraint.horizontal, xt = function(me) { - Re.set("dummy" + me, []), bt[me].forEach(function(mr) { - we.set(mr, "dummy" + me), Re.get("dummy" + me).push(mr), B.has(mr) && tt.add("dummy" + me); + Re.set("dummy" + me, []), bt[me].forEach(function(vr) { + we.set(vr, "dummy" + me), Re.get("dummy" + me).push(vr), B.has(vr) && tt.add("dummy" + me); }), $e.set("dummy" + me, S[w.get(bt[me][0])]); }, gt = 0; gt < bt.length; gt++) xt(gt); } var et = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ new Map(), wt = function(me) { - U.get(me).forEach(function(mr) { + U.get(me).forEach(function(vr) { var Ba = void 0, zs = void 0; - mr.direction == "horizontal" ? (Ba = ve.get(me) ? ve.get(me) : me, ve.get(mr.id) ? zs = { id: ve.get(mr.id), gap: mr.gap, direction: mr.direction } : zs = mr, et.has(Ba) ? et.get(Ba).push(zs) : et.set(Ba, [zs]), et.has(zs.id) || et.set(zs.id, [])) : (Ba = we.get(me) ? we.get(me) : me, we.get(mr.id) ? zs = { id: we.get(mr.id), gap: mr.gap, direction: mr.direction } : zs = mr, Ke.has(Ba) ? Ke.get(Ba).push(zs) : Ke.set(Ba, [zs]), Ke.has(zs.id) || Ke.set(zs.id, [])); + vr.direction == "horizontal" ? (Ba = ve.get(me) ? ve.get(me) : me, ve.get(vr.id) ? zs = { id: ve.get(vr.id), gap: vr.gap, direction: vr.direction } : zs = vr, et.has(Ba) ? et.get(Ba).push(zs) : et.set(Ba, [zs]), et.has(zs.id) || et.set(zs.id, [])) : (Ba = we.get(me) ? we.get(me) : me, we.get(vr.id) ? zs = { id: we.get(vr.id), gap: vr.gap, direction: vr.direction } : zs = vr, Ke.has(Ba) ? Ke.get(Ba).push(zs) : Ke.set(Ba, [zs]), Ke.has(zs.id) || Ke.set(zs.id, [])); }); }, ct = !0, it = !1, At = void 0; try { @@ -121496,17 +121532,17 @@ function jur() { } var Yt = P(et), Or = P(Ke), Bt = k(Yt), _r = k(Or), ir = M(et), Zr = M(Ke), Br = [], Gr = []; Bt.forEach(function(bn, me) { - Br[me] = [], bn.forEach(function(mr) { - ir.get(mr).length == 0 && Br[me].push(mr); + Br[me] = [], bn.forEach(function(vr) { + ir.get(vr).length == 0 && Br[me].push(vr); }); }), _r.forEach(function(bn, me) { - Gr[me] = [], bn.forEach(function(mr) { - Zr.get(mr).length == 0 && Gr[me].push(mr); + Gr[me] = [], bn.forEach(function(vr) { + Zr.get(vr).length == 0 && Gr[me].push(vr); }); }); var Ar = L(et, "horizontal", Le, Ce, Br), _n = L(Ke, "vertical", tt, $e, Gr), Je = function(me) { - Ee.get(me) ? Ee.get(me).forEach(function(mr) { - O[w.get(mr)] = Ar.get(me); + Ee.get(me) ? Ee.get(me).forEach(function(vr) { + O[w.get(vr)] = Ar.get(me); }) : O[w.get(me)] = Ar.get(me); }, ne = !0, Ne = !1, Xe = void 0; try { @@ -121525,8 +121561,8 @@ function jur() { } } var ut = function(me) { - Re.get(me) ? Re.get(me).forEach(function(mr) { - S[w.get(mr)] = _n.get(me); + Re.get(me) ? Re.get(me).forEach(function(vr) { + S[w.get(vr)] = _n.get(me); }) : S[w.get(me)] = _n.get(me); }, Et = !0, Pt = !1, rt = void 0; try { @@ -121573,7 +121609,7 @@ function jur() { } (function(t, e) { (function(n, i) { - t.exports = i(jur()); + t.exports = i(Jur()); })(wa, function(r) { return (() => { var n = { @@ -122170,8 +122206,8 @@ function jur() { return a; })(); }); -})(L2e); -const Kur = L2e.exports; +})(R2e); +const ehr = R2e.exports; var Cj = { L: "left", R: "right", @@ -122187,7 +122223,7 @@ var Cj = { R: /* @__PURE__ */ x((t, e) => t - 2, "R"), T: /* @__PURE__ */ x((t, e) => t - e + 2, "T"), B: /* @__PURE__ */ x((t, e) => t - 2, "B") -}, Jur = /* @__PURE__ */ x(function(t) { +}, thr = /* @__PURE__ */ x(function(t) { return Ya(t) ? t === "L" ? "R" : "L" : t === "T" ? "B" : "T"; }, "getOppositeArchitectureDirection"), _j = /* @__PURE__ */ x(function(t) { const e = t; @@ -122195,40 +122231,40 @@ var Cj = { }, "isArchitectureDirection"), Ya = /* @__PURE__ */ x(function(t) { const e = t; return e === "L" || e === "R"; -}, "isArchitectureDirectionX"), hd = /* @__PURE__ */ x(function(t) { +}, "isArchitectureDirectionX"), fd = /* @__PURE__ */ x(function(t) { const e = t; return e === "T" || e === "B"; -}, "isArchitectureDirectionY"), R2e = /* @__PURE__ */ x(function(t, e) { - const r = Ya(t) && hd(e), n = hd(t) && Ya(e); +}, "isArchitectureDirectionY"), M2e = /* @__PURE__ */ x(function(t, e) { + const r = Ya(t) && fd(e), n = fd(t) && Ya(e); return r || n; -}, "isArchitectureDirectionXY"), ehr = /* @__PURE__ */ x(function(t) { - const e = t[0], r = t[1], n = Ya(e) && hd(r), i = hd(e) && Ya(r); +}, "isArchitectureDirectionXY"), rhr = /* @__PURE__ */ x(function(t) { + const e = t[0], r = t[1], n = Ya(e) && fd(r), i = fd(e) && Ya(r); return n || i; -}, "isArchitecturePairXY"), thr = /* @__PURE__ */ x(function(t) { +}, "isArchitecturePairXY"), nhr = /* @__PURE__ */ x(function(t) { return t !== "LL" && t !== "RR" && t !== "TT" && t !== "BB"; }, "isValidArchitectureDirectionPair"), DM = /* @__PURE__ */ x(function(t, e) { const r = `${t}${e}`; - return thr(r) ? r : void 0; -}, "getArchitectureDirectionPair"), rhr = /* @__PURE__ */ x(function([t, e], r) { + return nhr(r) ? r : void 0; +}, "getArchitectureDirectionPair"), ihr = /* @__PURE__ */ x(function([t, e], r) { const n = r[0], i = r[1]; - return Ya(n) ? hd(i) ? [t + (n === "L" ? -1 : 1), e + (i === "T" ? 1 : -1)] : [t + (n === "L" ? -1 : 1), e] : Ya(i) ? [t + (i === "L" ? 1 : -1), e + (n === "T" ? 1 : -1)] : [t, e + (n === "T" ? 1 : -1)]; -}, "shiftPositionByArchitectureDirectionPair"), nhr = /* @__PURE__ */ x(function(t) { + return Ya(n) ? fd(i) ? [t + (n === "L" ? -1 : 1), e + (i === "T" ? 1 : -1)] : [t + (n === "L" ? -1 : 1), e] : Ya(i) ? [t + (i === "L" ? 1 : -1), e + (n === "T" ? 1 : -1)] : [t, e + (n === "T" ? 1 : -1)]; +}, "shiftPositionByArchitectureDirectionPair"), shr = /* @__PURE__ */ x(function(t) { return t === "LT" || t === "TL" ? [1, 1] : t === "BL" || t === "LB" ? [1, -1] : t === "BR" || t === "RB" ? [-1, -1] : [-1, 1]; -}, "getArchitectureDirectionXYFactors"), ihr = /* @__PURE__ */ x(function(t) { +}, "getArchitectureDirectionXYFactors"), ahr = /* @__PURE__ */ x(function(t) { return t.type === "service"; -}, "isArchitectureService"), shr = /* @__PURE__ */ x(function(t) { +}, "isArchitectureService"), ohr = /* @__PURE__ */ x(function(t) { return t.type === "junction"; -}, "isArchitectureJunction"), M2e = /* @__PURE__ */ x((t) => t.data(), "edgeData"), Lg = /* @__PURE__ */ x((t) => t.data(), "nodeData"), D2e = cn.architecture, Sr = new DI(() => ({ +}, "isArchitectureJunction"), D2e = /* @__PURE__ */ x((t) => t.data(), "edgeData"), Lg = /* @__PURE__ */ x((t) => t.data(), "nodeData"), P2e = cn.architecture, Sr = new DI(() => ({ nodes: {}, groups: {}, edges: [], registeredIds: {}, - config: D2e, + config: P2e, dataStructures: void 0, elements: {} -})), ahr = /* @__PURE__ */ x(() => { +})), lhr = /* @__PURE__ */ x(() => { Sr.reset(), cs(); -}, "clear"), ohr = /* @__PURE__ */ x(function({ +}, "clear"), chr = /* @__PURE__ */ x(function({ id: t, icon: e, in: r, @@ -122258,14 +122294,14 @@ var Cj = { edges: [], in: r }; -}, "addService"), lhr = /* @__PURE__ */ x(() => Object.values(Sr.records.nodes).filter(ihr), "getServices"), chr = /* @__PURE__ */ x(function({ id: t, in: e }) { +}, "addService"), uhr = /* @__PURE__ */ x(() => Object.values(Sr.records.nodes).filter(ahr), "getServices"), hhr = /* @__PURE__ */ x(function({ id: t, in: e }) { Sr.records.registeredIds[t] = "node", Sr.records.nodes[t] = { id: t, type: "junction", edges: [], in: e }; -}, "addJunction"), uhr = /* @__PURE__ */ x(() => Object.values(Sr.records.nodes).filter(shr), "getJunctions"), hhr = /* @__PURE__ */ x(() => Object.values(Sr.records.nodes), "getNodes"), fhr = /* @__PURE__ */ x((t) => Sr.records.nodes[t], "getNode"), dhr = /* @__PURE__ */ x(function({ id: t, icon: e, in: r, title: n }) { +}, "addJunction"), fhr = /* @__PURE__ */ x(() => Object.values(Sr.records.nodes).filter(ohr), "getJunctions"), dhr = /* @__PURE__ */ x(() => Object.values(Sr.records.nodes), "getNodes"), phr = /* @__PURE__ */ x((t) => Sr.records.nodes[t], "getNode"), ghr = /* @__PURE__ */ x(function({ id: t, icon: e, in: r, title: n }) { if (Sr.records.registeredIds[t] !== void 0) throw new Error( `The group id [${t}] is already in use by another ${Sr.records.registeredIds[t]}` @@ -122286,7 +122322,7 @@ var Cj = { title: n, in: r }; -}, "addGroup"), phr = /* @__PURE__ */ x(() => Object.values(Sr.records.groups), "getGroups"), ghr = /* @__PURE__ */ x(function({ +}, "addGroup"), mhr = /* @__PURE__ */ x(() => Object.values(Sr.records.groups), "getGroups"), vhr = /* @__PURE__ */ x(function({ lhsId: t, rhsId: e, lhsDir: r, @@ -122334,7 +122370,7 @@ var Cj = { title: l }; Sr.records.edges.push(f), Sr.records.nodes[t] && Sr.records.nodes[e] && (Sr.records.nodes[t].edges.push(Sr.records.edges[Sr.records.edges.length - 1]), Sr.records.nodes[e].edges.push(Sr.records.edges[Sr.records.edges.length - 1])); -}, "addEdge"), mhr = /* @__PURE__ */ x(() => Sr.records.edges, "getEdges"), vhr = /* @__PURE__ */ x(() => { +}, "addEdge"), yhr = /* @__PURE__ */ x(() => Sr.records.edges, "getEdges"), bhr = /* @__PURE__ */ x(() => { if (Sr.records.dataStructures === void 0) { const t = Object.entries(Sr.records.nodes).reduce((a, [o, l]) => (a[o] = l.edges.reduce((u, h) => { if (h.lhsId === o) { @@ -122356,7 +122392,7 @@ var Cj = { r[u] = 1, delete n[u]; const h = t[u], [f, d] = o[u]; Object.entries(h).forEach(([p, g]) => { - r[g] || (o[g] = rhr( + r[g] || (o[g] = ihr( [f, d], p ), l.push(g)); @@ -122373,43 +122409,43 @@ var Cj = { }; } return Sr.records.dataStructures; -}, "getDataStructures"), yhr = /* @__PURE__ */ x((t, e) => { +}, "getDataStructures"), xhr = /* @__PURE__ */ x((t, e) => { Sr.records.elements[t] = e; -}, "setElementForId"), bhr = /* @__PURE__ */ x((t) => Sr.records.elements[t], "getElementById"), OT = { - clear: ahr, +}, "setElementForId"), whr = /* @__PURE__ */ x((t) => Sr.records.elements[t], "getElementById"), OT = { + clear: lhr, setDiagramTitle: Na, getDiagramTitle: $s, setAccTitle: us, getAccTitle: Ps, setAccDescription: Ns, getAccDescription: Is, - addService: ohr, - getServices: lhr, - addJunction: chr, - getJunctions: uhr, - getNodes: hhr, - getNode: fhr, - addGroup: dhr, - getGroups: phr, - addEdge: ghr, - getEdges: mhr, - setElementForId: yhr, - getElementById: bhr, - getDataStructures: vhr + addService: chr, + getServices: uhr, + addJunction: hhr, + getJunctions: fhr, + getNodes: dhr, + getNode: phr, + addGroup: ghr, + getGroups: mhr, + addEdge: vhr, + getEdges: yhr, + setElementForId: xhr, + getElementById: whr, + getDataStructures: bhr }; function Yi(t) { const e = ke().architecture; - return e != null && e[t] ? e[t] : D2e[t]; + return e != null && e[t] ? e[t] : P2e[t]; } x(Yi, "getConfigField"); -var xhr = /* @__PURE__ */ x((t, e) => { +var Ohr = /* @__PURE__ */ x((t, e) => { Sw(t, e), t.groups.map(e.addGroup), t.services.map((r) => e.addService({ ...r, type: "service" })), t.junctions.map((r) => e.addJunction({ ...r, type: "junction" })), t.edges.map(e.addEdge); -}, "populateDb"), whr = { +}, "populateDb"), khr = { parse: /* @__PURE__ */ x(async (t) => { const e = await ev("architecture", t); - H.debug(e), xhr(e, OT); + H.debug(e), Ohr(e, OT); }, "parse") -}, Ohr = /* @__PURE__ */ x((t) => ` +}, Shr = /* @__PURE__ */ x((t) => ` .edge { stroke-width: ${t.archEdgeWidth}; stroke: ${t.archEdgeColor}; @@ -122440,7 +122476,7 @@ var xhr = /* @__PURE__ */ x((t, e) => { display: -webkit-box; -webkit-box-orient: vertical; } -`, "getStyles"), khr = Ohr, sg = /* @__PURE__ */ x((t) => `${t}`, "wrapIcon"), Gb = { +`, "getStyles"), Thr = Shr, sg = /* @__PURE__ */ x((t) => `${t}`, "wrapIcon"), Gb = { prefix: "mermaid-architecture", height: 80, width: 80, @@ -122475,7 +122511,7 @@ var xhr = /* @__PURE__ */ x((t, e) => { body: sg("") } } -}, Shr = /* @__PURE__ */ x(async function(t, e) { +}, Chr = /* @__PURE__ */ x(async function(t, e) { const r = Yi("padding"), n = Yi("iconSize"), i = n / 2, s = n / 6, a = s / 2; await Promise.all( e.edges().map(async (o) => { @@ -122490,7 +122526,7 @@ var xhr = /* @__PURE__ */ x((t, e) => { targetArrow: g, targetGroup: m, label: v - } = M2e(o); + } = D2e(o); let { x: y, y: b } = o[0].sourceEndpoint(); const { x: w, y: O } = o[0].midpoint(); let { x: S, y: C } = o[0].targetEndpoint(); @@ -122498,15 +122534,15 @@ var xhr = /* @__PURE__ */ x((t, e) => { if (f && (Ya(u) ? y += u === "L" ? -T : T : b += u === "T" ? -T : T + 18), m && (Ya(p) ? S += p === "L" ? -T : T : C += p === "T" ? -T : T + 18), !f && ((A = OT.getNode(l)) == null ? void 0 : A.type) === "junction" && (Ya(u) ? y += u === "L" ? i : -i : b += u === "T" ? i : -i), !m && ((E = OT.getNode(d)) == null ? void 0 : E.type) === "junction" && (Ya(p) ? S += p === "L" ? i : -i : C += p === "T" ? i : -i), o[0]._private.rscratch) { const R = t.insert("g"); if (R.insert("path").attr("d", `M ${y},${b} L ${w},${O} L${S},${C} `).attr("class", "edge"), h) { - const _ = Ya(u) ? q4[u](y, s) : y - a, L = hd(u) ? q4[u](b, s) : b - a; + const _ = Ya(u) ? q4[u](y, s) : y - a, L = fd(u) ? q4[u](b, s) : b - a; R.insert("polygon").attr("points", Ej[u](s)).attr("transform", `translate(${_},${L})`).attr("class", "arrow"); } if (g) { - const _ = Ya(p) ? q4[p](S, s) : S - a, L = hd(p) ? q4[p](C, s) : C - a; + const _ = Ya(p) ? q4[p](S, s) : S - a, L = fd(p) ? q4[p](C, s) : C - a; R.insert("polygon").attr("points", Ej[p](s)).attr("transform", `translate(${_},${L})`).attr("class", "arrow"); } if (v) { - const _ = R2e(u, p) ? "XY" : Ya(u) ? "X" : "Y"; + const _ = M2e(u, p) ? "XY" : Ya(u) ? "X" : "Y"; let L = 0; _ === "X" ? L = Math.abs(y - S) : _ === "Y" ? L = Math.abs(b - C) / 1.5 : L = Math.abs(y - S) / 2; const $ = R.append("g"); @@ -122525,8 +122561,8 @@ var xhr = /* @__PURE__ */ x((t, e) => { $.attr("transform", "translate(" + w + ", " + O + ") rotate(-90)"); else if (_ === "XY") { const k = DM(u, p); - if (k && ehr(k)) { - const P = $.node().getBoundingClientRect(), [M, N] = nhr(k); + if (k && rhr(k)) { + const P = $.node().getBoundingClientRect(), [M, N] = shr(k); $.attr("dominant-baseline", "auto").attr("transform", `rotate(${-1 * M * N * 45})`); const D = $.node().getBoundingClientRect(); $.attr( @@ -122543,7 +122579,7 @@ var xhr = /* @__PURE__ */ x((t, e) => { } }) ); -}, "drawEdges"), Thr = /* @__PURE__ */ x(async function(t, e) { +}, "drawEdges"), Ehr = /* @__PURE__ */ x(async function(t, e) { const n = Yi("padding") * 0.75, i = Yi("fontSize"), a = Yi("iconSize") / 2; await Promise.all( e.nodes().map(async (o) => { @@ -122581,7 +122617,7 @@ var xhr = /* @__PURE__ */ x((t, e) => { } }) ); -}, "drawGroups"), Chr = /* @__PURE__ */ x(async function(t, e, r) { +}, "drawGroups"), _hr = /* @__PURE__ */ x(async function(t, e, r) { var n; for (const i of r) { const s = e.append("g"), a = Yi("iconSize"); @@ -122621,7 +122657,7 @@ var xhr = /* @__PURE__ */ x((t, e) => { i.width = l, i.height = u, t.setElementForId(i.id, s); } return 0; -}, "drawServices"), Ehr = /* @__PURE__ */ x(function(t, e, r) { +}, "drawServices"), Ahr = /* @__PURE__ */ x(function(t, e, r) { r.forEach((n) => { const i = e.append("g"), s = Yi("iconSize"); i.append("g").append("rect").attr("id", "node-" + n.id).attr("fill-opacity", "0").attr("width", s).attr("height", s), i.attr("class", "architecture-junction"); @@ -122635,8 +122671,8 @@ pae([ icons: Gb } ]); -pu.use(Kur); -function P2e(t, e) { +pu.use(ehr); +function N2e(t, e) { t.forEach((r) => { e.add({ group: "nodes", @@ -122653,8 +122689,8 @@ function P2e(t, e) { }); }); } -x(P2e, "addServices"); -function N2e(t, e) { +x(N2e, "addServices"); +function I2e(t, e) { t.forEach((r) => { e.add({ group: "nodes", @@ -122669,8 +122705,8 @@ function N2e(t, e) { }); }); } -x(N2e, "addJunctions"); -function I2e(t, e) { +x(I2e, "addJunctions"); +function $2e(t, e) { e.nodes().map((r) => { const n = Lg(r); if (n.type === "group") @@ -122678,8 +122714,8 @@ function I2e(t, e) { n.x = r.position().x, n.y = r.position().y, t.getElementById(n.id).attr("transform", "translate(" + (n.x || 0) + "," + (n.y || 0) + ")"); }); } -x(I2e, "positionNodes"); -function $2e(t, e) { +x($2e, "positionNodes"); +function B2e(t, e) { t.forEach((r) => { e.add({ group: "nodes", @@ -122694,10 +122730,10 @@ function $2e(t, e) { }); }); } -x($2e, "addGroups"); -function B2e(t, e) { +x(B2e, "addGroups"); +function F2e(t, e) { t.forEach((r) => { - const { lhsId: n, rhsId: i, lhsInto: s, lhsGroup: a, rhsInto: o, lhsDir: l, rhsDir: u, rhsGroup: h, title: f } = r, d = R2e(r.lhsDir, r.rhsDir) ? "segments" : "straight", p = { + const { lhsId: n, rhsId: i, lhsInto: s, lhsGroup: a, rhsInto: o, lhsDir: l, rhsDir: u, rhsGroup: h, title: f } = r, d = M2e(r.lhsDir, r.rhsDir) ? "segments" : "straight", p = { id: `${n}-${i}`, label: f, source: n, @@ -122718,8 +122754,8 @@ function B2e(t, e) { }); }); } -x(B2e, "addEdges"); -function F2e(t) { +x(F2e, "addEdges"); +function z2e(t) { const e = t.map((i) => { const s = {}, a = {}; return Object.entries(i).forEach(([o, [l, u]]) => { @@ -122740,8 +122776,8 @@ function F2e(t) { vertical: n }; } -x(F2e, "getAlignments"); -function z2e(t) { +x(z2e, "getAlignments"); +function Q2e(t) { const e = [], r = /* @__PURE__ */ x((i) => `${i[0]},${i[1]}`, "posToStr"), n = /* @__PURE__ */ x((i) => i.split(",").map((s) => parseInt(s)), "strToPos"); return t.forEach((i) => { const s = Object.fromEntries( @@ -122763,7 +122799,7 @@ function z2e(t) { const g = r([f[0] + p[0], f[1] + p[1]]), m = s[g]; m && !o[g] && (a.push(g), e.push({ [Cj[d]]: m, - [Cj[Jur(d)]]: h, + [Cj[thr(d)]]: h, gap: 1.5 * Yi("iconSize") })); }); @@ -122772,8 +122808,8 @@ function z2e(t) { } }), e; } -x(z2e, "getRelativeConstraints"); -function Q2e(t, e, r, n, { spatialMaps: i }) { +x(Q2e, "getRelativeConstraints"); +function U2e(t, e, r, n, { spatialMaps: i }) { return new Promise((s) => { const a = ht("body").append("div").attr("id", "cy").attr("style", "display:none"), o = pu({ container: document.getElementById("cy"), @@ -122835,8 +122871,8 @@ function Q2e(t, e, r, n, { spatialMaps: i }) { } ] }); - a.remove(), $2e(r, o), P2e(t, o), N2e(e, o), B2e(n, o); - const l = F2e(i), u = z2e(i), h = o.layout({ + a.remove(), B2e(r, o), N2e(t, o), I2e(e, o), F2e(n, o); + const l = z2e(i), u = Q2e(i), h = o.layout({ name: "fcose", quality: "proof", styleEnabled: !1, @@ -122889,7 +122925,7 @@ function Q2e(t, e, r, n, { spatialMaps: i }) { if ((d = p.data) != null && d.call(p)) { const { x: g, y: m } = p.source().position(), { x: v, y } = p.target().position(); if (g !== v && m !== y) { - const b = p.sourceEndpoint(), w = p.targetEndpoint(), { sourceDir: O } = M2e(p), [S, C] = hd(O) ? [b.x, w.y] : [w.x, b.y], { weights: T, distances: A } = f(b, w, S, C); + const b = p.sourceEndpoint(), w = p.targetEndpoint(), { sourceDir: O } = D2e(p), [S, C] = fd(O) ? [b.x, w.y] : [w.x, b.y], { weights: T, distances: A } = f(b, w, S, C); p.style("segment-distances", A), p.style("segment-weights", T); } } @@ -122899,52 +122935,52 @@ function Q2e(t, e, r, n, { spatialMaps: i }) { }); }); } -x(Q2e, "layoutArchitecture"); -var _hr = /* @__PURE__ */ x(async (t, e, r, n) => { +x(U2e, "layoutArchitecture"); +var Lhr = /* @__PURE__ */ x(async (t, e, r, n) => { const i = n.db, s = i.getServices(), a = i.getJunctions(), o = i.getGroups(), l = i.getEdges(), u = i.getDataStructures(), h = Rp(e), f = h.append("g"); f.attr("class", "architecture-edges"); const d = h.append("g"); d.attr("class", "architecture-services"); const p = h.append("g"); - p.attr("class", "architecture-groups"), await Chr(i, d, s), Ehr(i, d, a); - const g = await Q2e(s, a, o, l, u); - await Shr(f, g), await Thr(p, g), I2e(i, g), P1(void 0, h, Yi("padding"), Yi("useMaxWidth")); -}, "draw"), Ahr = { draw: _hr }, Lhr = { - parser: whr, + p.attr("class", "architecture-groups"), await _hr(i, d, s), Ahr(i, d, a); + const g = await U2e(s, a, o, l, u); + await Chr(f, g), await Ehr(p, g), $2e(i, g), P1(void 0, h, Yi("padding"), Yi("useMaxWidth")); +}, "draw"), Rhr = { draw: Lhr }, Mhr = { + parser: khr, db: OT, - renderer: Ahr, - styles: khr + renderer: Rhr, + styles: Thr }; -const Rhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Dhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Lhr -}, Symbol.toStringTag, { value: "Module" })), Mhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ - __proto__: null, - InfoModule: zge, - createInfoServices: Qge -}, Symbol.toStringTag, { value: "Module" })), Dhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ - __proto__: null, - PacketModule: Uge, - createPacketServices: Vge + diagram: Mhr }, Symbol.toStringTag, { value: "Module" })), Phr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - PieModule: qge, - createPieServices: Yge + InfoModule: Qge, + createInfoServices: Uge }, Symbol.toStringTag, { value: "Module" })), Nhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - ArchitectureModule: Wge, - createArchitectureServices: Gge + PacketModule: Vge, + createPacketServices: qge }, Symbol.toStringTag, { value: "Module" })), Ihr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - GitGraphModule: Bge, - createGitGraphServices: Fge + PieModule: Yge, + createPieServices: Wge +}, Symbol.toStringTag, { value: "Module" })), $hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + ArchitectureModule: Gge, + createArchitectureServices: Xge +}, Symbol.toStringTag, { value: "Module" })), Bhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + __proto__: null, + GitGraphModule: Fge, + createGitGraphServices: zge }, Symbol.toStringTag, { value: "Module" })); export { - zhr as MystEditorGit, - sfe as MystEditorPreact, + Uhr as MystEditorGit, + afe as MystEditorPreact, Tv as batch, lP as computed, - Qhr as default, + Vhr as default, fg as defaultButtons, sC as effect, Uv as predefinedButtons, diff --git a/docs/collaboration.html b/docs/collaboration.html index bef4127..ce9f656 100644 --- a/docs/collaboration.html +++ b/docs/collaboration.html @@ -404,7 +404,7 @@

Other Collaborative FeaturesOther Collaborative Features6d52772e + 82e91acc @ main diff --git a/docs/comments.html b/docs/comments.html index 84aba77..97ca15e 100644 --- a/docs/comments.html +++ b/docs/comments.html @@ -569,7 +569,7 @@

Suggestions Last update: - 2024-12-06 + 2024-12-09 @@ -622,7 +622,7 @@

Suggestions - 6d52772e + 82e91acc @ main diff --git a/docs/genindex.html b/docs/genindex.html index 2de639e..695982d 100644 --- a/docs/genindex.html +++ b/docs/genindex.html @@ -335,7 +335,7 @@ Last update: - 2024-12-06 + 2024-12-09 @@ -367,7 +367,7 @@ - 6d52772e + 82e91acc @ main diff --git a/docs/index.html b/docs/index.html index 243dfa3..0f5c71c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -373,7 +373,7 @@

MyST Editor - User Manual Last update: - 2024-12-06 + 2024-12-09 @@ -426,7 +426,7 @@

MyST Editor - User Manual - 6d52772e + 82e91acc @ main diff --git a/docs/introduction.html b/docs/introduction.html index 00b3eb3..333a6cb 100644 --- a/docs/introduction.html +++ b/docs/introduction.html @@ -358,7 +358,7 @@

Introduction Last update: - 2024-12-06 + 2024-12-09 @@ -426,7 +426,7 @@

Introduction - 6d52772e + 82e91acc @ main diff --git a/docs/mermaid.html b/docs/mermaid.html index 0feff16..9c9422a 100644 --- a/docs/mermaid.html +++ b/docs/mermaid.html @@ -362,7 +362,7 @@

Mermaid DiagramsMermaid Diagrams6d52772e + 82e91acc @ main diff --git a/docs/rich-links.html b/docs/rich-links.html index 77bb074..77e4ba0 100644 --- a/docs/rich-links.html +++ b/docs/rich-links.html @@ -438,7 +438,7 @@

View Mode ButtonsView Mode Buttons6d52772e + 82e91acc @ main