diff --git a/apps/web/patches/allotment+1.18.1.patch b/apps/web/patches/allotment+1.18.1.patch new file mode 100644 index 000000000..180f383a5 --- /dev/null +++ b/apps/web/patches/allotment+1.18.1.patch @@ -0,0 +1,4823 @@ +diff --git a/node_modules/allotment/dist/legacy.js b/node_modules/allotment/dist/legacy.js +index 67b3588..d25bc47 100644 +--- a/node_modules/allotment/dist/legacy.js ++++ b/node_modules/allotment/dist/legacy.js +@@ -45,26 +45,26 @@ e = { + }, function () { + var t = {}.hasOwnProperty; + function i() { +- for (var e = [], s = 0; s < arguments.length; s++) { +- var r = arguments[s]; +- if (r) { +- var n = _typeof(r); +- if ("string" === n || "number" === n) e.push(r);else if (Array.isArray(r)) { +- if (r.length) { +- var o = i.apply(null, r); ++ for (var e = [], r = 0; r < arguments.length; r++) { ++ var s = arguments[r]; ++ if (s) { ++ var n = _typeof(s); ++ if ("string" === n || "number" === n) e.push(s);else if (Array.isArray(s)) { ++ if (s.length) { ++ var o = i.apply(null, s); + o && e.push(o); + } +- } else if ("object" === n) if (r.toString === Object.prototype.toString) for (var a in r) { +- t.call(r, a) && r[a] && e.push(a); +- } else e.push(r.toString()); ++ } else if ("object" === n) if (s.toString === Object.prototype.toString) for (var a in s) { ++ t.call(s, a) && s[a] && e.push(a); ++ } else e.push(s.toString()); + } + } + return e.join(" "); + } + e.exports ? (i["default"] = i, e.exports = i) : window.classNames = i; + }(); +-var s = i, +- r = /^\s+|\s+$/g, ++var r = i, ++ s = /^\s+|\s+$/g, + n = /^[-+]0x[0-9a-f]+$/i, + o = /^0b[01]+$/i, + a = /^0o[0-7]+$/i, +@@ -86,7 +86,7 @@ function l(e) { + e = h(t) ? t + "" : t; + } + if ("string" != typeof e) return 0 === e ? e : +e; +- e = e.replace(r, ""); ++ e = e.replace(s, ""); + var i = o.test(e); + return i || a.test(e) ? u(e.slice(2), i ? 2 : 8) : n.test(e) ? NaN : +e; + } +@@ -99,8 +99,8 @@ var f = function f(e, t, i) { + d = {}; + !function (e, t) { + var i = "__lodash_hash_undefined__", +- s = 9007199254740991, +- r = "[object Arguments]", ++ r = 9007199254740991, ++ s = "[object Arguments]", + n = "[object Array]", + o = "[object Boolean]", + a = "[object Date]", +@@ -120,22 +120,22 @@ var f = function f(e, t, i) { + S = /^\[object .+?Constructor\]$/, + _ = /^(?:0|[1-9]\d*)$/, + x = {}; +- x["[object Float32Array]"] = x["[object Float64Array]"] = x["[object Int8Array]"] = x["[object Int16Array]"] = x["[object Int32Array]"] = x["[object Uint8Array]"] = x["[object Uint8ClampedArray]"] = x["[object Uint16Array]"] = x["[object Uint32Array]"] = !0, x[r] = x[n] = x[z] = x[o] = x[w] = x[a] = x[u] = x[c] = x[h] = x[l] = x[f] = x[p] = x[v] = x[y] = x[g] = !1; ++ x["[object Float32Array]"] = x["[object Float64Array]"] = x["[object Int8Array]"] = x["[object Int16Array]"] = x["[object Int32Array]"] = x["[object Uint8Array]"] = x["[object Uint8ClampedArray]"] = x["[object Uint16Array]"] = x["[object Uint32Array]"] = !0, x[s] = x[n] = x[z] = x[o] = x[w] = x[a] = x[u] = x[c] = x[h] = x[l] = x[f] = x[p] = x[v] = x[y] = x[g] = !1; + var I = "object" == _typeof(m) && m && m.Object === Object && m, + E = "object" == (typeof self === "undefined" ? "undefined" : _typeof(self)) && self && self.Object === Object && self, + V = I || E || Function("return this")(), + L = t && !t.nodeType && t, + j = L && e && !e.nodeType && e, + N = j && j.exports === L, +- P = N && I.process, +- O = function () { ++ D = N && I.process, ++ P = function () { + try { +- return P && P.binding && P.binding("util"); ++ return D && D.binding && D.binding("util"); + } catch (e) {} + }(), +- M = O && O.isTypedArray; +- function D(e, t) { +- for (var i = -1, s = null == e ? 0 : e.length; ++i < s;) { ++ O = P && P.isTypedArray; ++ function M(e, t) { ++ for (var i = -1, r = null == e ? 0 : e.length; ++i < r;) { + if (t(e[i], i, e)) return !0; + } + return !1; +@@ -143,8 +143,8 @@ var f = function f(e, t, i) { + function A(e) { + var t = -1, + i = Array(e.size); +- return e.forEach(function (e, s) { +- i[++t] = [s, e]; ++ return e.forEach(function (e, r) { ++ i[++t] = [r, e]; + }), i; + } + function C(e) { +@@ -174,16 +174,16 @@ var f = function f(e, t, i) { + ee = K ? K.toStringTag : void 0, + te = Object.getOwnPropertySymbols, + ie = J ? J.isBuffer : void 0, +- se = (F = Object.keys, R = Object, function (e) { ++ re = (F = Object.keys, R = Object, function (e) { + return F(R(e)); + }), +- re = Oe(V, "DataView"), +- ne = Oe(V, "Map"), +- oe = Oe(V, "Promise"), +- ae = Oe(V, "Set"), +- ue = Oe(V, "WeakMap"), +- ce = Oe(Object, "create"), +- he = Ce(re), ++ se = Pe(V, "DataView"), ++ ne = Pe(V, "Map"), ++ oe = Pe(V, "Promise"), ++ ae = Pe(V, "Set"), ++ ue = Pe(V, "WeakMap"), ++ ce = Pe(Object, "create"), ++ he = Ce(se), + le = Ce(ne), + fe = Ce(oe), + me = Ce(ae), +@@ -194,24 +194,24 @@ var f = function f(e, t, i) { + var t = -1, + i = null == e ? 0 : e.length; + for (this.clear(); ++t < i;) { +- var s = e[t]; +- this.set(s[0], s[1]); ++ var r = e[t]; ++ this.set(r[0], r[1]); + } + } + function be(e) { + var t = -1, + i = null == e ? 0 : e.length; + for (this.clear(); ++t < i;) { +- var s = e[t]; +- this.set(s[0], s[1]); ++ var r = e[t]; ++ this.set(r[0], r[1]); + } + } + function ge(e) { + var t = -1, + i = null == e ? 0 : e.length; + for (this.clear(); ++t < i;) { +- var s = e[t]; +- this.set(s[0], s[1]); ++ var r = e[t]; ++ this.set(r[0], r[1]); + } + } + function ze(e) { +@@ -227,19 +227,19 @@ var f = function f(e, t, i) { + } + function Se(e, t) { + var i = Re(e), +- s = !i && Fe(e), +- r = !i && !s && ke(e), +- n = !i && !s && !r && We(e), +- o = i || s || r || n, ++ r = !i && Fe(e), ++ s = !i && !r && ke(e), ++ n = !i && !r && !s && We(e), ++ o = i || r || s || n, + a = o ? function (e, t) { +- for (var i = -1, s = Array(e); ++i < e;) { +- s[i] = t(i); ++ for (var i = -1, r = Array(e); ++i < e;) { ++ r[i] = t(i); + } +- return s; ++ return r; + }(e.length, String) : [], + u = a.length; + for (var c in e) { +- !t && !W.call(e, c) || o && ("length" == c || r && ("offset" == c || "parent" == c) || n && ("buffer" == c || "byteLength" == c || "byteOffset" == c) || Ae(c, u)) || a.push(c); ++ !t && !W.call(e, c) || o && ("length" == c || s && ("offset" == c || "parent" == c) || n && ("buffer" == c || "byteLength" == c || "byteOffset" == c) || Ae(c, u)) || a.push(c); + } + return a; + } +@@ -255,32 +255,32 @@ var f = function f(e, t, i) { + i = e[ee]; + try { + e[ee] = void 0; +- var s = !0; ++ var r = !0; + } catch (e) {} +- var r = U.call(e); +- s && (t ? e[ee] = i : delete e[ee]); +- return r; ++ var s = U.call(e); ++ r && (t ? e[ee] = i : delete e[ee]); ++ return s; + }(e) : function (e) { + return U.call(e); + }(e); + } + function Ie(e) { +- return Be(e) && xe(e) == r; ++ return Be(e) && xe(e) == s; + } +- function Ee(e, t, i, s, c) { +- return e === t || (null == e || null == t || !Be(e) && !Be(t) ? e != e && t != t : function (e, t, i, s, c, m) { ++ function Ee(e, t, i, r, c) { ++ return e === t || (null == e || null == t || !Be(e) && !Be(t) ? e != e && t != t : function (e, t, i, r, c, m) { + var d = Re(e), + g = Re(t), +- S = d ? n : De(e), +- _ = g ? n : De(t), +- x = (S = S == r ? f : S) == f, +- I = (_ = _ == r ? f : _) == f, ++ S = d ? n : Me(e), ++ _ = g ? n : Me(t), ++ x = (S = S == s ? f : S) == f, ++ I = (_ = _ == s ? f : _) == f, + E = S == _; + if (E && ke(e)) { + if (!ke(t)) return !1; + d = !0, x = !1; + } +- if (E && !x) return m || (m = new we()), d || We(e) ? je(e, t, i, s, c, m) : function (e, t, i, s, r, n, c) { ++ if (E && !x) return m || (m = new we()), d || We(e) ? je(e, t, i, r, c, m) : function (e, t, i, r, s, n, c) { + switch (i) { + case w: + if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1; +@@ -299,29 +299,29 @@ var f = function f(e, t, i) { + case h: + var f = A; + case v: +- var m = 1 & s; ++ var m = 1 & r; + if (f || (f = C), e.size != t.size && !m) return !1; + var d = c.get(e); + if (d) return d == t; +- s |= 2, c.set(e, t); +- var g = je(f(e), f(t), s, r, n, c); ++ r |= 2, c.set(e, t); ++ var g = je(f(e), f(t), r, s, n, c); + return c["delete"](e), g; + case b: + if (ve) return ve.call(e) == ve.call(t); + } + return !1; +- }(e, t, S, i, s, c, m); ++ }(e, t, S, i, r, c, m); + if (!(1 & i)) { + var V = x && W.call(e, "__wrapped__"), + L = I && W.call(t, "__wrapped__"); + if (V || L) { + var j = V ? e.value() : e, + N = L ? t.value() : t; +- return m || (m = new we()), c(j, N, i, s, m); ++ return m || (m = new we()), c(j, N, i, r, m); + } + } + if (!E) return !1; +- return m || (m = new we()), function (e, t, i, s, r, n) { ++ return m || (m = new we()), function (e, t, i, r, s, n) { + var o = 1 & i, + a = Ne(e), + u = a.length, +@@ -340,8 +340,8 @@ var f = function f(e, t, i) { + for (; ++h < u;) { + var p = e[l = a[h]], + v = t[l]; +- if (s) var y = o ? s(v, p, l, t, e, n) : s(p, v, l, e, t, n); +- if (!(void 0 === y ? p === v || r(p, v, i, s, n) : y)) { ++ if (r) var y = o ? r(v, p, l, t, e, n) : r(p, v, l, e, t, n); ++ if (!(void 0 === y ? p === v || s(p, v, i, r, n) : y)) { + m = !1; + break; + } +@@ -353,8 +353,8 @@ var f = function f(e, t, i) { + b == g || !("constructor" in e) || !("constructor" in t) || "function" == typeof b && b instanceof b && "function" == typeof g && g instanceof g || (m = !1); + } + return n["delete"](e), n["delete"](t), m; +- }(e, t, i, s, c, m); +- }(e, t, i, s, Ee, c)); ++ }(e, t, i, r, c, m); ++ }(e, t, i, r, Ee, c)); + } + function Ve(e) { + return !(!Ye(e) || function (e) { +@@ -362,17 +362,17 @@ var f = function f(e, t, i) { + }(e)) && (He(e) ? X : S).test(Ce(e)); + } + function Le(e) { +- if (i = (t = e) && t.constructor, s = "function" == typeof i && i.prototype || $, t !== s) return se(e); ++ if (i = (t = e) && t.constructor, r = "function" == typeof i && i.prototype || $, t !== r) return re(e); + var t, + i, +- s, +- r = []; ++ r, ++ s = []; + for (var n in Object(e)) { +- W.call(e, n) && "constructor" != n && r.push(n); ++ W.call(e, n) && "constructor" != n && s.push(n); + } +- return r; ++ return s; + } +- function je(e, t, i, s, r, n) { ++ function je(e, t, i, r, s, n) { + var o = 1 & i, + a = e.length, + u = t.length; +@@ -385,21 +385,21 @@ var f = function f(e, t, i) { + for (n.set(e, t), n.set(t, e); ++h < a;) { + var m = e[h], + d = t[h]; +- if (s) var p = o ? s(d, m, h, t, e, n) : s(m, d, h, e, t, n); ++ if (r) var p = o ? r(d, m, h, t, e, n) : r(m, d, h, e, t, n); + if (void 0 !== p) { + if (p) continue; + l = !1; + break; + } + if (f) { +- if (!D(t, function (e, t) { +- if (o = t, !f.has(o) && (m === e || r(m, e, i, s, n))) return f.push(t); ++ if (!M(t, function (e, t) { ++ if (o = t, !f.has(o) && (m === e || s(m, e, i, r, n))) return f.push(t); + var o; + })) { + l = !1; + break; + } +- } else if (m !== d && !r(m, d, i, s, n)) { ++ } else if (m !== d && !s(m, d, i, r, n)) { + l = !1; + break; + } +@@ -408,22 +408,22 @@ var f = function f(e, t, i) { + } + function Ne(e) { + return function (e, t, i) { +- var s = t(e); +- return Re(e) ? s : function (e, t) { +- for (var i = -1, s = t.length, r = e.length; ++i < s;) { +- e[r + i] = t[i]; ++ var r = t(e); ++ return Re(e) ? r : function (e, t) { ++ for (var i = -1, r = t.length, s = e.length; ++i < r;) { ++ e[s + i] = t[i]; + } + return e; +- }(s, i(e)); +- }(e, Ge, Me); ++ }(r, i(e)); ++ }(e, Ge, Oe); + } +- function Pe(e, t) { ++ function De(e, t) { + var i, +- s, +- r = e.__data__; +- return ("string" == (s = _typeof(i = t)) || "number" == s || "symbol" == s || "boolean" == s ? "__proto__" !== i : null === i) ? r["string" == typeof t ? "string" : "hash"] : r.map; ++ r, ++ s = e.__data__; ++ return ("string" == (r = _typeof(i = t)) || "number" == r || "symbol" == r || "boolean" == r ? "__proto__" !== i : null === i) ? s["string" == typeof t ? "string" : "hash"] : s.map; + } +- function Oe(e, t) { ++ function Pe(e, t) { + var i = function (e, t) { + return null == e ? void 0 : e[t]; + }(e, t); +@@ -437,16 +437,16 @@ var f = function f(e, t, i) { + }, ye.prototype.get = function (e) { + var t = this.__data__; + if (ce) { +- var s = t[e]; +- return s === i ? void 0 : s; ++ var r = t[e]; ++ return r === i ? void 0 : r; + } + return W.call(t, e) ? t[e] : void 0; + }, ye.prototype.has = function (e) { + var t = this.__data__; + return ce ? void 0 !== t[e] : W.call(t, e); + }, ye.prototype.set = function (e, t) { +- var s = this.__data__; +- return this.size += this.has(e) ? 0 : 1, s[e] = ce && void 0 === t ? i : t, this; ++ var r = this.__data__; ++ return this.size += this.has(e) ? 0 : 1, r[e] = ce && void 0 === t ? i : t, this; + }, be.prototype.clear = function () { + this.__data__ = [], this.size = 0; + }, be.prototype["delete"] = function (e) { +@@ -461,8 +461,8 @@ var f = function f(e, t, i) { + return _e(this.__data__, e) > -1; + }, be.prototype.set = function (e, t) { + var i = this.__data__, +- s = _e(i, e); +- return s < 0 ? (++this.size, i.push([e, t])) : i[s][1] = t, this; ++ r = _e(i, e); ++ return r < 0 ? (++this.size, i.push([e, t])) : i[r][1] = t, this; + }, ge.prototype.clear = function () { + this.size = 0, this.__data__ = { + hash: new ye(), +@@ -470,16 +470,16 @@ var f = function f(e, t, i) { + string: new ye() + }; + }, ge.prototype["delete"] = function (e) { +- var t = Pe(this, e)["delete"](e); ++ var t = De(this, e)["delete"](e); + return this.size -= t ? 1 : 0, t; + }, ge.prototype.get = function (e) { +- return Pe(this, e).get(e); ++ return De(this, e).get(e); + }, ge.prototype.has = function (e) { +- return Pe(this, e).has(e); ++ return De(this, e).has(e); + }, ge.prototype.set = function (e, t) { +- var i = Pe(this, e), +- s = i.size; +- return i.set(e, t), this.size += i.size == s ? 0 : 1, this; ++ var i = De(this, e), ++ r = i.size; ++ return i.set(e, t), this.size += i.size == r ? 0 : 1, this; + }, ze.prototype.add = ze.prototype.push = function (e) { + return this.__data__.set(e, i), this; + }, ze.prototype.has = function (e) { +@@ -497,17 +497,17 @@ var f = function f(e, t, i) { + }, we.prototype.set = function (e, t) { + var i = this.__data__; + if (i instanceof be) { +- var s = i.__data__; +- if (!ne || s.length < 199) return s.push([e, t]), this.size = ++i.size, this; +- i = this.__data__ = new ge(s); ++ var r = i.__data__; ++ if (!ne || r.length < 199) return r.push([e, t]), this.size = ++i.size, this; ++ i = this.__data__ = new ge(r); + } + return i.set(e, t), this.size = i.size, this; + }; +- var Me = te ? function (e) { ++ var Oe = te ? function (e) { + return null == e ? [] : (e = Object(e), function (e, t) { +- for (var i = -1, s = null == e ? 0 : e.length, r = 0, n = []; ++i < s;) { ++ for (var i = -1, r = null == e ? 0 : e.length, s = 0, n = []; ++i < r;) { + var o = e[i]; +- t(o, i, e) && (n[r++] = o); ++ t(o, i, e) && (n[s++] = o); + } + return n; + }(te(e), function (t) { +@@ -516,9 +516,9 @@ var f = function f(e, t, i) { + } : function () { + return []; + }, +- De = xe; ++ Me = xe; + function Ae(e, t) { +- return !!(t = null == t ? s : t) && ("number" == typeof e || _.test(e)) && e > -1 && e % 1 == 0 && e < t; ++ return !!(t = null == t ? r : t) && ("number" == typeof e || _.test(e)) && e > -1 && e % 1 == 0 && e < t; + } + function Ce(e) { + if (null != e) { +@@ -534,11 +534,11 @@ var f = function f(e, t, i) { + function Te(e, t) { + return e === t || e != e && t != t; + } +- (re && De(new re(new ArrayBuffer(1))) != w || ne && De(new ne()) != h || oe && De(oe.resolve()) != d || ae && De(new ae()) != v || ue && De(new ue()) != g) && (De = function De(e) { ++ (se && Me(new se(new ArrayBuffer(1))) != w || ne && Me(new ne()) != h || oe && Me(oe.resolve()) != d || ae && Me(new ae()) != v || ue && Me(new ue()) != g) && (Me = function Me(e) { + var t = xe(e), + i = t == f ? e.constructor : void 0, +- s = i ? Ce(i) : ""; +- if (s) switch (s) { ++ r = i ? Ce(i) : ""; ++ if (r) switch (r) { + case he: + return w; + case le: +@@ -567,7 +567,7 @@ var f = function f(e, t, i) { + return t == c || "[object GeneratorFunction]" == t || "[object AsyncFunction]" == t || "[object Proxy]" == t; + } + function $e(e) { +- return "number" == typeof e && e > -1 && e % 1 == 0 && e <= s; ++ return "number" == typeof e && e > -1 && e % 1 == 0 && e <= r; + } + function Ye(e) { + var t = _typeof(e); +@@ -576,11 +576,11 @@ var f = function f(e, t, i) { + function Be(e) { + return null != e && "object" == _typeof(e); + } +- var We = M ? function (e) { ++ var We = O ? function (e) { + return function (t) { + return e(t); + }; +- }(M) : function (e) { ++ }(O) : function (e) { + return Be(e) && $e(e.length) && !!x[xe(e)]; + }; + function Ge(e) { +@@ -605,9 +605,9 @@ function v(e, t, i) { + function y(e) { + void 0 === e && (e = {}); + var i = e.onResize, +- s = t.useRef(void 0); +- s.current = i; +- var r = e.round || Math.round, ++ r = t.useRef(void 0); ++ r.current = i; ++ var s = e.round || Math.round, + n = t.useRef(), + o = t.useState({ + width: void 0, +@@ -626,18 +626,18 @@ function y(e) { + height: void 0 + }), + l = function (e, i) { +- var s = t.useRef(null), +- r = t.useRef(null); +- r.current = i; ++ var r = t.useRef(null), ++ s = t.useRef(null); ++ s.current = i; + var n = t.useRef(null); + t.useEffect(function () { + o(); + }); + var o = t.useCallback(function () { + var t = n.current, +- i = r.current, ++ i = s.current, + o = t || (i ? i instanceof Element ? i : i.current : null); +- s.current && s.current.element === o && s.current.subscriber === e || (s.current && s.current.cleanup && s.current.cleanup(), s.current = { ++ r.current && r.current.element === o && r.current.subscriber === e || (r.current && r.current.cleanup && r.current.cleanup(), r.current = { + element: o, + subscriber: e, + cleanup: o ? e(o) : void 0 +@@ -645,28 +645,28 @@ function y(e) { + }, [e]); + return t.useEffect(function () { + return function () { +- s.current && s.current.cleanup && (s.current.cleanup(), s.current = null); ++ r.current && r.current.cleanup && (r.current.cleanup(), r.current = null); + }; + }, []), t.useCallback(function (e) { + n.current = e, o(); + }, [o]); + }(t.useCallback(function (t) { +- return n.current && n.current.box === e.box && n.current.round === r || (n.current = { ++ return n.current && n.current.box === e.box && n.current.round === s || (n.current = { + box: e.box, +- round: r, ++ round: s, + instance: new ResizeObserver(function (t) { + var i = t[0], + n = "border-box" === e.box ? "borderBoxSize" : "device-pixel-content-box" === e.box ? "devicePixelContentBoxSize" : "contentBoxSize", + o = v(i, n, "inlineSize"), + a = v(i, n, "blockSize"), +- l = o ? r(o) : void 0, +- f = a ? r(a) : void 0; ++ l = o ? s(o) : void 0, ++ f = a ? s(a) : void 0; + if (h.current.width !== l || h.current.height !== f) { + var m = { + width: l, + height: f + }; +- h.current.width = l, h.current.height = f, s.current ? s.current(m) : c.current || u(m); ++ h.current.width = l, h.current.height = f, r.current ? r.current(m) : c.current || u(m); + } + }) + }), n.current.instance.observe(t, { +@@ -674,7 +674,7 @@ function y(e) { + }), function () { + n.current && n.current.instance.unobserve(t); + }; +- }, [e.box, r]), e.ref); ++ }, [e.box, s]), e.ref); + return t.useMemo(function () { + return { + ref: l, +@@ -697,12 +697,12 @@ var I, + var L = E, + j = V, + N = "undefined" != typeof window && void 0 !== window.document && void 0 !== window.document.createElement ? t.useLayoutEffect : t.useEffect; +-var P = /*#__PURE__*/function () { +- function P() { +- _classCallCheck(this, P); ++var D = /*#__PURE__*/function () { ++ function D() { ++ _classCallCheck(this, D); + this._size = void 0; + } +- _createClass(P, [{ ++ _createClass(D, [{ + key: "getSize", + value: function getSize() { + return this._size; +@@ -713,56 +713,56 @@ var P = /*#__PURE__*/function () { + this._size = e; + } + }]); +- return P; ++ return D; + }(); +-function O(e, t) { ++function P(e, t) { + var i = e.length, +- s = i - t.length; +- return s >= 0 && e.slice(s, i) === t; ++ r = i - t.length; ++ return r >= 0 && e.slice(r, i) === t; + } +-var M = {}; ++var O = {}; + !function (e) { + var t = Object.prototype.hasOwnProperty, + i = "~"; +- function s() {} +- function r(e, t, i) { ++ function r() {} ++ function s(e, t, i) { + this.fn = e, this.context = t, this.once = i || !1; + } +- function n(e, t, s, n, o) { +- if ("function" != typeof s) throw new TypeError("The listener must be a function"); +- var a = new r(s, n || e, o), ++ function n(e, t, r, n, o) { ++ if ("function" != typeof r) throw new TypeError("The listener must be a function"); ++ var a = new s(r, n || e, o), + u = i ? i + t : t; + return e._events[u] ? e._events[u].fn ? e._events[u] = [e._events[u], a] : e._events[u].push(a) : (e._events[u] = a, e._eventsCount++), e; + } + function o(e, t) { +- 0 == --e._eventsCount ? e._events = new s() : delete e._events[t]; ++ 0 == --e._eventsCount ? e._events = new r() : delete e._events[t]; + } + function a() { +- this._events = new s(), this._eventsCount = 0; ++ this._events = new r(), this._eventsCount = 0; + } +- Object.create && (s.prototype = Object.create(null), new s().__proto__ || (i = !1)), a.prototype.eventNames = function () { ++ Object.create && (r.prototype = Object.create(null), new r().__proto__ || (i = !1)), a.prototype.eventNames = function () { + var e, +- s, +- r = []; +- if (0 === this._eventsCount) return r; +- for (s in e = this._events) { +- t.call(e, s) && r.push(i ? s.slice(1) : s); ++ r, ++ s = []; ++ if (0 === this._eventsCount) return s; ++ for (r in e = this._events) { ++ t.call(e, r) && s.push(i ? r.slice(1) : r); + } +- return Object.getOwnPropertySymbols ? r.concat(Object.getOwnPropertySymbols(e)) : r; ++ return Object.getOwnPropertySymbols ? s.concat(Object.getOwnPropertySymbols(e)) : s; + }, a.prototype.listeners = function (e) { + var t = i ? i + e : e, +- s = this._events[t]; +- if (!s) return []; +- if (s.fn) return [s.fn]; +- for (var r = 0, n = s.length, o = new Array(n); r < n; r++) { +- o[r] = s[r].fn; ++ r = this._events[t]; ++ if (!r) return []; ++ if (r.fn) return [r.fn]; ++ for (var s = 0, n = r.length, o = new Array(n); s < n; s++) { ++ o[s] = r[s].fn; + } + return o; + }, a.prototype.listenerCount = function (e) { + var t = i ? i + e : e, +- s = this._events[t]; +- return s ? s.fn ? 1 : s.length : 0; +- }, a.prototype.emit = function (e, t, s, r, n, o) { ++ r = this._events[t]; ++ return r ? r.fn ? 1 : r.length : 0; ++ }, a.prototype.emit = function (e, t, r, s, n, o) { + var a = i ? i + e : e; + if (!this._events[a]) return !1; + var u, +@@ -776,13 +776,13 @@ var M = {}; + case 2: + return h.fn.call(h.context, t), !0; + case 3: +- return h.fn.call(h.context, t, s), !0; ++ return h.fn.call(h.context, t, r), !0; + case 4: +- return h.fn.call(h.context, t, s, r), !0; ++ return h.fn.call(h.context, t, r, s), !0; + case 5: +- return h.fn.call(h.context, t, s, r, n), !0; ++ return h.fn.call(h.context, t, r, s, n), !0; + case 6: +- return h.fn.call(h.context, t, s, r, n, o), !0; ++ return h.fn.call(h.context, t, r, s, n, o), !0; + } + for (c = 1, u = new Array(l - 1); c < l; c++) { + u[c - 1] = arguments[c]; +@@ -800,10 +800,10 @@ var M = {}; + h[c].fn.call(h[c].context, t); + break; + case 3: +- h[c].fn.call(h[c].context, t, s); ++ h[c].fn.call(h[c].context, t, r); + break; + case 4: +- h[c].fn.call(h[c].context, t, s, r); ++ h[c].fn.call(h[c].context, t, r, s); + break; + default: + if (!u) for (f = 1, u = new Array(l - 1); f < l; f++) { +@@ -818,31 +818,31 @@ var M = {}; + return n(this, e, t, i, !1); + }, a.prototype.once = function (e, t, i) { + return n(this, e, t, i, !0); +- }, a.prototype.removeListener = function (e, t, s, r) { ++ }, a.prototype.removeListener = function (e, t, r, s) { + var n = i ? i + e : e; + if (!this._events[n]) return this; + if (!t) return o(this, n), this; + var a = this._events[n]; +- if (a.fn) a.fn !== t || r && !a.once || s && a.context !== s || o(this, n);else { ++ if (a.fn) a.fn !== t || s && !a.once || r && a.context !== r || o(this, n);else { + for (var u = 0, c = [], h = a.length; u < h; u++) { +- (a[u].fn !== t || r && !a[u].once || s && a[u].context !== s) && c.push(a[u]); ++ (a[u].fn !== t || s && !a[u].once || r && a[u].context !== r) && c.push(a[u]); + } + c.length ? this._events[n] = 1 === c.length ? c[0] : c : o(this, n); + } + return this; + }, a.prototype.removeAllListeners = function (e) { + var t; +- return e ? (t = i ? i + e : e, this._events[t] && o(this, t)) : (this._events = new s(), this._eventsCount = 0), this; ++ return e ? (t = i ? i + e : e, this._events[t] && o(this, t)) : (this._events = new r(), this._eventsCount = 0), this; + }, a.prototype.off = a.prototype.removeListener, a.prototype.addListener = a.prototype.on, a.prefixed = i, a.EventEmitter = a, e.exports = a; + }({ + get exports() { +- return M; ++ return O; + }, + set exports(e) { +- M = e; ++ O = e; + } + }); +-function D(e, t) { ++function M(e, t) { + var i = e.indexOf(t); + i > -1 && (e.splice(i, 1), e.unshift(t)); + } +@@ -852,13 +852,13 @@ function A(e, t) { + } + function C(e, t) { + var i = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; +- var s = Math.max(0, Math.ceil((t - e) / i)), +- r = new Array(s); ++ var r = Math.max(0, Math.ceil((t - e) / i)), ++ s = new Array(r); + var n = -1; +- for (; ++n < s;) { +- r[n] = e + n * i; ++ for (; ++n < r;) { ++ s[n] = e + n * i; + } +- return r; ++ return s; + } + var T = /^\s+|\s+$/g, + F = /^[-+]0x[0-9a-f]+$/i, +@@ -895,8 +895,8 @@ function K(e) { + return i || k.test(e) ? H(e.slice(2), i ? 2 : 8) : F.test(e) ? NaN : +e; + } + var Z = function Z(e, t, i) { +- var s, +- r, ++ var r, ++ s, + n, + o, + a, +@@ -907,9 +907,9 @@ var Z = function Z(e, t, i) { + f = !0; + if ("function" != typeof e) throw new TypeError("Expected a function"); + function m(t) { +- var i = s, +- n = r; +- return s = r = void 0, c = t, o = e.apply(n, i); ++ var i = r, ++ n = s; ++ return r = s = void 0, c = t, o = e.apply(n, i); + } + function d(e) { + return c = e, a = setTimeout(v, t), h ? m(e) : o; +@@ -927,19 +927,19 @@ var Z = function Z(e, t, i) { + }(e)); + } + function y(e) { +- return a = void 0, f && s ? m(e) : (s = r = void 0, o); ++ return a = void 0, f && r ? m(e) : (r = s = void 0, o); + } + function b() { + var e = X(), + i = p(e); +- if (s = arguments, r = this, u = e, i) { ++ if (r = arguments, s = this, u = e, i) { + if (void 0 === a) return d(u); + if (l) return a = setTimeout(v, t), m(u); + } + return void 0 === a && (a = setTimeout(v, t)), o; + } + return t = K(t) || 0, J(i) && (h = !!i.leading, n = (l = "maxWait" in i) ? G(K(i.maxWait) || 0, t) : n, f = "trailing" in i ? !!i.trailing : f), b.cancel = function () { +- void 0 !== a && clearTimeout(a), c = 0, s = u = r = a = void 0; ++ void 0 !== a && clearTimeout(a), c = 0, r = u = s = a = void 0; + }, b.flush = function () { + return void 0 === a ? o : y(X()); + }, b; +@@ -949,8 +949,8 @@ var Z = function Z(e, t, i) { + ee = "sash-module_mac__Jf6OJ", + te = "sash-module_vertical__pB-rs", + ie = "sash-module_minimum__-UKxp", +- se = "sash-module_maximum__TCWxD", +- re = "sash-module_horizontal__kFbiw", ++ re = "sash-module_maximum__TCWxD", ++ se = "sash-module_horizontal__kFbiw", + ne = "sash-module_hover__80W6I", + oe = "sash-module_active__bJspD"; + var ae, ue; +@@ -960,9 +960,9 @@ var ae, ue; + e.Disabled = "DISABLED", e.Minimum = "MINIMUM", e.Maximum = "MAXIMUM", e.Enabled = "ENABLED"; + }(ue || (ue = {})); + var ce = L ? 20 : 8; +-var he = new M(); +-var le = /*#__PURE__*/function (_M) { +- _inherits(le, _M); ++var he = new O(); ++var le = /*#__PURE__*/function (_O) { ++ _inherits(le, _O); + var _super = _createSuper(le); + function le(e, t, i) { + var _i$orientation; +@@ -973,27 +973,27 @@ var le = /*#__PURE__*/function (_M) { + }, _this.hoverDelay), _this._state = ue.Enabled, _this.onPointerStart = function (e) { + var t = e.pageX, + i = e.pageY, +- s = { ++ r = { + startX: t, + currentX: t, + startY: i, + currentY: i + }; +- _this.el.classList.add("sash-active", oe), _this.emit("start", s), _this.el.setPointerCapture(e.pointerId); +- var r = function r(e) { ++ _this.el.classList.add("sash-active", oe), _this.emit("start", r), _this.el.setPointerCapture(e.pointerId); ++ var s = function s(e) { + e.preventDefault(); +- var s = { ++ var r = { + startX: t, + currentX: e.pageX, + startY: i, + currentY: e.pageY + }; +- _this.emit("change", s); ++ _this.emit("change", r); + }, + n = function n(e) { +- e.preventDefault(), _this.el.classList.remove("sash-active", oe), _this.hoverDelayer.cancel(), _this.emit("end"), _this.el.releasePointerCapture(e.pointerId), window.removeEventListener("pointermove", r), window.removeEventListener("pointerup", n); ++ e.preventDefault(), _this.el.classList.remove("sash-active", oe), _this.hoverDelayer.cancel(), _this.emit("end"), _this.el.releasePointerCapture(e.pointerId), window.removeEventListener("pointermove", s), window.removeEventListener("pointerup", n); + }; +- window.addEventListener("pointermove", r), window.addEventListener("pointerup", n); ++ window.addEventListener("pointermove", s), window.addEventListener("pointerup", n); + }, _this.onPointerDoublePress = function () { + _this.emit("reset"); + }, _this.onMouseEnter = function () { +@@ -1002,7 +1002,7 @@ var le = /*#__PURE__*/function (_M) { + _this.hoverDelayer.cancel(), _this.el.classList.remove("sash-hover", ne); + }, _this.el = document.createElement("div"), _this.el.classList.add("sash", q), _this.el.dataset.testid = "sash", e.append(_this.el), j && _this.el.classList.add("sash-mac", ee), _this.el.addEventListener("pointerdown", _this.onPointerStart), _this.el.addEventListener("dblclick", _this.onPointerDoublePress), _this.el.addEventListener("mouseenter", _this.onMouseEnter), _this.el.addEventListener("mouseleave", _this.onMouseLeave), "number" == typeof i.size ? (_this.size = i.size, i.orientation === ae.Vertical ? _this.el.style.width = "".concat(_this.size, "px") : _this.el.style.height = "".concat(_this.size, "px")) : (_this.size = ce, he.on("onDidChangeGlobalSize", function (e) { + _this.size = e, _this.layout(); +- })), _this.layoutProvider = t, _this.orientation = (_i$orientation = i.orientation) !== null && _i$orientation !== void 0 ? _i$orientation : ae.Vertical, _this.orientation === ae.Horizontal ? (_this.el.classList.add("sash-horizontal", re), _this.el.classList.remove("sash-vertical", te)) : (_this.el.classList.remove("sash-horizontal", re), _this.el.classList.add("sash-vertical", te)), _this.layout(); ++ })), _this.layoutProvider = t, _this.orientation = (_i$orientation = i.orientation) !== null && _i$orientation !== void 0 ? _i$orientation : ae.Vertical, _this.orientation === ae.Horizontal ? (_this.el.classList.add("sash-horizontal", se), _this.el.classList.remove("sash-vertical", te)) : (_this.el.classList.remove("sash-horizontal", se), _this.el.classList.add("sash-vertical", te)), _this.layout(); + return _this; + } + _createClass(le, [{ +@@ -1011,7 +1011,7 @@ var le = /*#__PURE__*/function (_M) { + return this._state; + }, + set: function set(e) { +- this._state !== e && (this.el.classList.toggle(Q, e === ue.Disabled), this.el.classList.toggle("dash-disabled", e === ue.Disabled), this.el.classList.toggle(ie, e === ue.Minimum), this.el.classList.toggle("sash-minimum", e === ue.Minimum), this.el.classList.toggle(se, e === ue.Maximum), this.el.classList.toggle("sash-maximum", e === ue.Maximum), this._state = e, this.emit("enablementChange", e)); ++ this._state !== e && (this.el.classList.toggle(Q, e === ue.Disabled), this.el.classList.toggle("dash-disabled", e === ue.Disabled), this.el.classList.toggle(ie, e === ue.Minimum), this.el.classList.toggle("sash-minimum", e === ue.Minimum), this.el.classList.toggle(re, e === ue.Maximum), this.el.classList.toggle("sash-maximum", e === ue.Maximum), this._state = e, this.emit("enablementChange", e)); + } + }, { + key: "layout", +@@ -1034,7 +1034,7 @@ var le = /*#__PURE__*/function (_M) { + } + }]); + return le; +-}(M); ++}(O); + var fe; + var me, de; + (me = fe || (fe = {})).Distribute = { +@@ -1151,16 +1151,18 @@ var ye = /*#__PURE__*/function (_pe2) { + }]); + return ye; + }(pe); +-var be = /*#__PURE__*/function (_M2) { +- _inherits(be, _M2); ++var be = /*#__PURE__*/function (_O2) { ++ _inherits(be, _O2); + var _super4 = _createSuper(be); + function be(e) { + var _t$orientation, _t$proportionalLayout; + var _this3; + var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var i = arguments.length > 2 ? arguments[2] : undefined; ++ var r = arguments.length > 3 ? arguments[3] : undefined; ++ var s = arguments.length > 4 ? arguments[4] : undefined; + _classCallCheck(this, be); +- if (_this3 = _super4.call(this), _this3.onDidChange = void 0, _this3.orientation = void 0, _this3.sashContainer = void 0, _this3.size = 0, _this3.contentSize = 0, _this3.proportions = void 0, _this3.viewItems = [], _this3.sashItems = [], _this3.sashDragState = void 0, _this3.proportionalLayout = void 0, _this3.getSashOrthogonalSize = void 0, _this3._startSnappingEnabled = !0, _this3._endSnappingEnabled = !0, _this3.onSashEnd = function (e) { ++ if (_this3 = _super4.call(this), _this3.onDidChange = void 0, _this3.onDidDragStart = void 0, _this3.onDidDragEnd = void 0, _this3.orientation = void 0, _this3.sashContainer = void 0, _this3.size = 0, _this3.contentSize = 0, _this3.proportions = void 0, _this3.viewItems = [], _this3.sashItems = [], _this3.sashDragState = void 0, _this3.proportionalLayout = void 0, _this3.getSashOrthogonalSize = void 0, _this3._startSnappingEnabled = !0, _this3._endSnappingEnabled = !0, _this3.onSashEnd = function (e) { + _this3.emit("sashchange", e), _this3.saveProportions(); + var _iterator = _createForOfIteratorHelper(_this3.viewItems), + _step; +@@ -1174,7 +1176,7 @@ var be = /*#__PURE__*/function (_M2) { + } finally { + _iterator.f(); + } +- }, _this3.orientation = (_t$orientation = t.orientation) !== null && _t$orientation !== void 0 ? _t$orientation : ae.Vertical, _this3.proportionalLayout = (_t$proportionalLayout = t.proportionalLayout) !== null && _t$proportionalLayout !== void 0 ? _t$proportionalLayout : !0, _this3.getSashOrthogonalSize = t.getSashOrthogonalSize, i && (_this3.onDidChange = i), _this3.sashContainer = document.createElement("div"), _this3.sashContainer.classList.add("sash-container", g), e.prepend(_this3.sashContainer), t.descriptor) { ++ }, _this3.orientation = (_t$orientation = t.orientation) !== null && _t$orientation !== void 0 ? _t$orientation : ae.Vertical, _this3.proportionalLayout = (_t$proportionalLayout = t.proportionalLayout) !== null && _t$proportionalLayout !== void 0 ? _t$proportionalLayout : !0, _this3.getSashOrthogonalSize = t.getSashOrthogonalSize, i && (_this3.onDidChange = i), r && (_this3.onDidDragStart = r), s && (_this3.onDidDragEnd = s), _this3.sashContainer = document.createElement("div"), _this3.sashContainer.classList.add("sash-container", g), e.prepend(_this3.sashContainer), t.descriptor) { + _this3.size = t.descriptor.size; + var _iterator2 = _createForOfIteratorHelper(t.descriptor.views.entries()), + _step2; +@@ -1184,9 +1186,9 @@ var be = /*#__PURE__*/function (_M2) { + _e5 = _step2$value[0], + _i = _step2$value[1]; + var _t = _i.size, +- _s = _i.container, +- _r = _i.view; +- _this3.addView(_s, _r, _t, _e5, !0); ++ _r = _i.container, ++ _s = _i.view; ++ _this3.addView(_r, _s, _t, _e5, !0); + } + } catch (err) { + _iterator2.e(err); +@@ -1219,14 +1221,14 @@ var be = /*#__PURE__*/function (_M2) { + key: "addView", + value: function addView(e, t, i) { + var _this4 = this; +- var s = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : this.viewItems.length; +- var r = arguments.length > 4 ? arguments[4] : undefined; ++ var r = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : this.viewItems.length; ++ var s = arguments.length > 4 ? arguments[4] : undefined; + var n; + n = "number" == typeof i ? i : "split" === i.type ? this.getViewSize(i.index) / 2 : "invisible" === i.type ? { + cachedVisibleSize: i.cachedVisibleSize + } : t.minimumSize; + var o = this.orientation === ae.Vertical ? new ye(e, t, n) : new ve(e, t, n); +- if (this.viewItems.splice(s, 0, o), this.viewItems.length > 1) { ++ if (this.viewItems.splice(r, 0, o), this.viewItems.length > 1) { + var _e6 = this.orientation === ae.Vertical ? new le(this.sashContainer, { + getHorizontalSashTop: function getHorizontalSashTop(e) { + return _this4.getSashPosition(e); +@@ -1256,29 +1258,39 @@ var be = /*#__PURE__*/function (_M2) { + }; + }; + _e6.on("start", function (e) { ++ var _this4$onDidDragStart; + _this4.emit("sashDragStart"), _this4.onSashStart(_t2(e)); ++ var i = _this4.viewItems.map(function (e) { ++ return e.size; ++ }); ++ (_this4$onDidDragStart = _this4.onDidDragStart) === null || _this4$onDidDragStart === void 0 ? void 0 : _this4$onDidDragStart.call(_this4, i); + }), _e6.on("change", function (e) { + return _this4.onSashChange(_t2(e)); + }), _e6.on("end", function () { ++ var _this4$onDidDragEnd; + _this4.emit("sashDragEnd"), _this4.onSashEnd(_this4.sashItems.findIndex(function (t) { + return t.sash === _e6; + })); ++ var t = _this4.viewItems.map(function (e) { ++ return e.size; ++ }); ++ (_this4$onDidDragEnd = _this4.onDidDragEnd) === null || _this4$onDidDragEnd === void 0 ? void 0 : _this4$onDidDragEnd.call(_this4, t); + }), _e6.on("reset", function () { + var t = _this4.sashItems.findIndex(function (t) { + return t.sash === _e6; + }), + i = C(t, -1, -1), +- s = C(t + 1, _this4.viewItems.length), +- r = _this4.findFirstSnapIndex(i), +- n = _this4.findFirstSnapIndex(s); +- ("number" != typeof r || _this4.viewItems[r].visible) && ("number" != typeof n || _this4.viewItems[n].visible) && _this4.emit("sashreset", t); ++ r = C(t + 1, _this4.viewItems.length), ++ s = _this4.findFirstSnapIndex(i), ++ n = _this4.findFirstSnapIndex(r); ++ ("number" != typeof s || _this4.viewItems[s].visible) && ("number" != typeof n || _this4.viewItems[n].visible) && _this4.emit("sashreset", t); + }); + var _i2 = { + sash: _e6 + }; +- this.sashItems.splice(s - 1, 0, _i2); ++ this.sashItems.splice(r - 1, 0, _i2); + } +- r || this.relayout(), r || "number" == typeof i || "distribute" !== i.type || this.distributeViewSizes(); ++ s || this.relayout(), s || "number" == typeof i || "distribute" !== i.type || this.distributeViewSizes(); + } + }, { + key: "removeView", +@@ -1294,10 +1306,10 @@ var be = /*#__PURE__*/function (_M2) { + }, { + key: "moveView", + value: function moveView(e, t, i) { +- var s = this.getViewCachedVisibleSize(t), +- r = void 0 === s ? this.getViewSize(t) : fe.Invisible(s), ++ var r = this.getViewCachedVisibleSize(t), ++ s = void 0 === r ? this.getViewSize(t) : fe.Invisible(r), + n = this.removeView(t); +- this.addView(e, n, r, i); ++ this.addView(e, n, s, i); + } + }, { + key: "getViewCachedVisibleSize", +@@ -1316,13 +1328,13 @@ var be = /*#__PURE__*/function (_M2) { + _i3.size = f(Math.round(this.proportions[_t4] * e), _i3.minimumSize, _i3.maximumSize); + } else { + var _i4 = C(0, this.viewItems.length), +- _s2 = _i4.filter(function (e) { ++ _r2 = _i4.filter(function (e) { + return _this5.viewItems[e].priority === exports.LayoutPriority.Low; + }), +- _r2 = _i4.filter(function (e) { ++ _s2 = _i4.filter(function (e) { + return _this5.viewItems[e].priority === exports.LayoutPriority.High; + }); +- this.resize(this.viewItems.length - 1, e - t, void 0, _s2, _r2); ++ this.resize(this.viewItems.length - 1, e - t, void 0, _r2, _s2); + } + this.distributeEmptySpace(), this.layoutViews(); + } +@@ -1334,22 +1346,22 @@ var be = /*#__PURE__*/function (_M2) { + var i = C(0, this.viewItems.length).filter(function (t) { + return t !== e; + }), +- s = [].concat(_toConsumableArray(i.filter(function (e) { ++ r = [].concat(_toConsumableArray(i.filter(function (e) { + return _this6.viewItems[e].priority === exports.LayoutPriority.Low; + })), [e]), +- r = i.filter(function (e) { ++ s = i.filter(function (e) { + return _this6.viewItems[e].priority === exports.LayoutPriority.High; + }), + n = this.viewItems[e]; +- t = Math.round(t), t = f(t, n.minimumSize, Math.min(n.maximumSize, this.size)), n.size = t, this.relayout(s, r); ++ t = Math.round(t), t = f(t, n.minimumSize, Math.min(n.maximumSize, this.size)), n.size = t, this.relayout(r, s); + } + }, { + key: "resizeViews", + value: function resizeViews(e) { + for (var _t5 = 0; _t5 < e.length; _t5++) { + var _i5 = this.viewItems[_t5]; +- var _s3 = e[_t5]; +- _s3 = Math.round(_s3), _s3 = f(_s3, _i5.minimumSize, Math.min(_i5.maximumSize, this.size)), _i5.size = _s3; ++ var _r3 = e[_t5]; ++ _r3 = Math.round(_r3), _r3 = f(_r3, _i5.minimumSize, Math.min(_i5.maximumSize, this.size)), _i5.size = _r3; + } + this.contentSize = this.viewItems.reduce(function (e, t) { + return e + t.size; +@@ -1395,14 +1407,14 @@ var be = /*#__PURE__*/function (_M2) { + var _t6 = _e7[_i6]; + _t6.size = f(i, _t6.minimumSize, _t6.maximumSize); + } +- var s = C(0, this.viewItems.length), +- r = s.filter(function (e) { ++ var r = C(0, this.viewItems.length), ++ s = r.filter(function (e) { + return _this7.viewItems[e].priority === exports.LayoutPriority.Low; + }), +- n = s.filter(function (e) { ++ n = r.filter(function (e) { + return _this7.viewItems[e].priority === exports.LayoutPriority.High; + }); +- this.relayout(r, n); ++ this.relayout(s, n); + } + }, { + key: "dispose", +@@ -1432,8 +1444,8 @@ var be = /*#__PURE__*/function (_M2) { + var t = _this8.viewItems.map(function (e) { + return e.size; + }); +- var s, +- r, ++ var r, ++ s, + n = Number.NEGATIVE_INFINITY, + o = Number.POSITIVE_INFINITY; + var a = C(i, -1, -1), +@@ -1456,7 +1468,7 @@ var be = /*#__PURE__*/function (_M2) { + if ("number" == typeof m) { + var _e8 = _this8.viewItems[m], + _t7 = Math.floor(_e8.viewMinimumSize / 2); +- s = { ++ r = { + index: m, + limitDelta: _e8.visible ? n - _t7 : n + _t7, + size: _e8.size +@@ -1465,7 +1477,7 @@ var be = /*#__PURE__*/function (_M2) { + if ("number" == typeof d) { + var _e9 = _this8.viewItems[d], + _t8 = Math.floor(_e9.viewMinimumSize / 2); +- r = { ++ s = { + index: d, + limitDelta: _e9.visible ? o + _t8 : o - _t8, + size: _e9.size +@@ -1478,8 +1490,8 @@ var be = /*#__PURE__*/function (_M2) { + sizes: t, + minDelta: n, + maxDelta: o, +- snapBefore: s, +- snapAfter: r ++ snapBefore: r, ++ snapAfter: s + }; + })(t); + } +@@ -1490,14 +1502,14 @@ var be = /*#__PURE__*/function (_M2) { + var _this$sashDragState = this.sashDragState, + t = _this$sashDragState.index, + i = _this$sashDragState.start, +- s = _this$sashDragState.sizes, +- r = _this$sashDragState.minDelta, ++ r = _this$sashDragState.sizes, ++ s = _this$sashDragState.minDelta, + n = _this$sashDragState.maxDelta, + o = _this$sashDragState.snapBefore, + a = _this$sashDragState.snapAfter; + this.sashDragState.current = e; + var u = e - i; +- this.resize(t, u, s, void 0, void 0, r, n, o, a), this.distributeEmptySpace(), this.layoutViews(); ++ this.resize(t, u, r, void 0, void 0, s, n, o, a), this.distributeEmptySpace(), this.layoutViews(); + } + }, { + key: "getSashPosition", +@@ -1515,8 +1527,8 @@ var be = /*#__PURE__*/function (_M2) { + var i = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.viewItems.map(function (e) { + return e.size; + }); +- var s = arguments.length > 3 ? arguments[3] : undefined; +- var r = arguments.length > 4 ? arguments[4] : undefined; ++ var r = arguments.length > 3 ? arguments[3] : undefined; ++ var s = arguments.length > 4 ? arguments[4] : undefined; + var n = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : Number.NEGATIVE_INFINITY; + var o = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : Number.POSITIVE_INFINITY; + var a = arguments.length > 7 ? arguments[7] : undefined; +@@ -1524,13 +1536,13 @@ var be = /*#__PURE__*/function (_M2) { + if (e < 0 || e >= this.viewItems.length) return 0; + var c = C(e, -1, -1), + h = C(e + 1, this.viewItems.length); +- if (r) { +- var _iterator4 = _createForOfIteratorHelper(r), ++ if (s) { ++ var _iterator4 = _createForOfIteratorHelper(s), + _step4; + try { + for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) { + var _e10 = _step4.value; +- D(c, _e10), D(h, _e10); ++ M(c, _e10), M(h, _e10); + } + } catch (err) { + _iterator4.e(err); +@@ -1538,8 +1550,8 @@ var be = /*#__PURE__*/function (_M2) { + _iterator4.f(); + } + } +- if (s) { +- var _iterator5 = _createForOfIteratorHelper(s), ++ if (r) { ++ var _iterator5 = _createForOfIteratorHelper(r), + _step5; + try { + for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) { +@@ -1589,16 +1601,16 @@ var be = /*#__PURE__*/function (_M2) { + _i10 = t < u.limitDelta; + S = _i10 !== _e13.visible, _e13.setVisible(_i10, u.size); + } +- if (S) return this.resize(e, t, i, s, r, n, o); ++ if (S) return this.resize(e, t, i, r, s, n, o); + for (var _e14 = 0, _i11 = t = f(t, z, w); _e14 < l.length; _e14++) { + var _t9 = l[_e14], +- _s4 = f(m[_e14] + _i11, _t9.minimumSize, _t9.maximumSize); +- _i11 -= _s4 - m[_e14], _t9.size = _s4; ++ _r4 = f(m[_e14] + _i11, _t9.minimumSize, _t9.maximumSize); ++ _i11 -= _r4 - m[_e14], _t9.size = _r4; + } + for (var _e15 = 0, _i12 = t; _e15 < d.length; _e15++) { + var _t10 = d[_e15], +- _s5 = f(p[_e15] - _i12, _t10.minimumSize, _t10.maximumSize); +- _i12 += _s5 - p[_e15], _t10.size = _s5; ++ _r5 = f(p[_e15] - _i12, _t10.minimumSize, _t10.maximumSize); ++ _i12 += _r5 - p[_e15], _t10.size = _r5; + } + return t; + } +@@ -1609,12 +1621,12 @@ var be = /*#__PURE__*/function (_M2) { + return e + t.size; + }, 0); + var i = this.size - t; +- var s = C(this.viewItems.length - 1, -1, -1); +- "number" == typeof e && A(s, e); +- for (var _e16 = 0; 0 !== i && _e16 < s.length; _e16++) { +- var _t11 = this.viewItems[s[_e16]], +- _r3 = f(_t11.size + i, _t11.minimumSize, _t11.maximumSize); +- i -= _r3 - _t11.size, _t11.size = _r3; ++ var r = C(this.viewItems.length - 1, -1, -1); ++ "number" == typeof e && A(r, e); ++ for (var _e16 = 0; 0 !== i && _e16 < r.length; _e16++) { ++ var _t11 = this.viewItems[r[_e16]], ++ _s3 = f(_t11.size + i, _t11.minimumSize, _t11.maximumSize); ++ i -= _s3 - _t11.size, _t11.size = _s3; + } + } + }, { +@@ -1662,21 +1674,21 @@ var be = /*#__PURE__*/function (_M2) { + var i = this.viewItems.map(function (t) { + return e = t.maximumSize - t.size > 0 || e; + }), +- s = _toConsumableArray(this.viewItems).reverse(); ++ r = _toConsumableArray(this.viewItems).reverse(); + e = !1; +- var r = s.map(function (t) { ++ var s = r.map(function (t) { + return e = t.size - t.minimumSize > 0 || e; + }).reverse(); + e = !1; +- var n = s.map(function (t) { ++ var n = r.map(function (t) { + return e = t.maximumSize - t.size > 0 || e; + }).reverse(); + var o = 0; + for (var _e17 = 0; _e17 < this.sashItems.length; _e17++) { +- var _s6 = this.sashItems[_e17].sash; ++ var _r6 = this.sashItems[_e17].sash; + o += this.viewItems[_e17].size; + var _a = !(t[_e17] && n[_e17 + 1]), +- _u = !(i[_e17] && r[_e17 + 1]); ++ _u = !(i[_e17] && s[_e17 + 1]); + if (_a && _u) { + var _i13 = C(_e17, -1, -1), + _n2 = C(_e17 + 1, this.viewItems.length), +@@ -1684,8 +1696,8 @@ var be = /*#__PURE__*/function (_M2) { + _u2 = this.findFirstSnapIndex(_n2), + _c = "number" == typeof _a2 && !this.viewItems[_a2].visible, + _h = "number" == typeof _u2 && !this.viewItems[_u2].visible; +- _c && r[_e17] && (o > 0 || this.startSnappingEnabled) ? _s6.state = ue.Minimum : _h && t[_e17] && (o < this.contentSize || this.endSnappingEnabled) ? _s6.state = ue.Maximum : _s6.state = ue.Disabled; +- } else _s6.state = _a && !_u ? ue.Minimum : !_a && _u ? ue.Maximum : ue.Enabled; ++ _c && s[_e17] && (o > 0 || this.startSnappingEnabled) ? _r6.state = ue.Minimum : _h && t[_e17] && (o < this.contentSize || this.endSnappingEnabled) ? _r6.state = ue.Maximum : _r6.state = ue.Disabled; ++ } else _r6.state = _a && !_u ? ue.Minimum : !_a && _u ? ue.Maximum : ue.Enabled; + } + } + }, { +@@ -1721,7 +1733,7 @@ var be = /*#__PURE__*/function (_M2) { + } + }]); + return be; +-}(M); ++}(O); + var ge = /*#__PURE__*/function () { + function ge(e) { + _classCallCheck(this, ge); +@@ -1764,10 +1776,10 @@ var Se = /*#__PURE__*/function () { + _classCallCheck(this, Se); + if (this.minimumSize = 0, this.maximumSize = Number.POSITIVE_INFINITY, this.element = void 0, this.priority = void 0, this.snap = void 0, this.layoutService = void 0, this.layoutStrategy = void 0, this.layoutService = e, this.element = t.element, this.minimumSize = "number" == typeof t.minimumSize ? t.minimumSize : 30, this.maximumSize = "number" == typeof t.maximumSize ? t.maximumSize : Number.POSITIVE_INFINITY, "number" == typeof t.preferredSize) this.layoutStrategy = new ge(t.preferredSize);else if ("string" == typeof t.preferredSize) { + var _e20 = t.preferredSize.trim(); +- if (O(_e20, "%")) { ++ if (P(_e20, "%")) { + var _t15 = Number(_e20.slice(0, -1)) / 100; + this.layoutStrategy = new ze(_t15, this.layoutService); +- } else if (O(_e20, "px")) { ++ } else if (P(_e20, "px")) { + var _t16 = Number(_e20.slice(0, -2)); + this.layoutStrategy = new ge(_t16); + } else if ("number" == typeof Number.parseFloat(_e20)) { +@@ -1785,10 +1797,10 @@ var Se = /*#__PURE__*/function () { + set: function set(e) { + if ("number" == typeof e) this.layoutStrategy = new ge(e);else if ("string" == typeof e) { + var _t18 = e.trim(); +- if (O(_t18, "%")) { ++ if (P(_t18, "%")) { + var _e21 = Number(_t18.slice(0, -1)) / 100; + this.layoutStrategy = new ze(_e21, this.layoutService); +- } else if (O(_t18, "px")) { ++ } else if (P(_t18, "px")) { + var _e22 = Number(_t18.slice(0, -2)) / 100; + this.layoutStrategy = new ge(_e22); + } else if ("number" == typeof Number.parseFloat(_t18)) { +@@ -1806,20 +1818,20 @@ var Se = /*#__PURE__*/function () { + function _e(e) { + return void 0 !== e.minSize || void 0 !== e.maxSize || void 0 !== e.preferredSize || void 0 !== e.priority || void 0 !== e.visible; + } +-var xe = t.forwardRef(function (_ref3, r) { ++var xe = t.forwardRef(function (_ref3, s) { + var e = _ref3.className, + i = _ref3.children; + return t.createElement("div", { +- ref: r, +- className: s("split-view-view", w, e) ++ ref: s, ++ className: r("split-view-view", w, e) + }, i); + }); + xe.displayName = "Allotment.Pane"; +-var Ie = t.forwardRef(function (_ref4, v) { ++var Ie = t.forwardRef(function (_ref4, w) { + var e = _ref4.children, + i = _ref4.className, + _ref4$maxSize = _ref4.maxSize, +- r = _ref4$maxSize === void 0 ? 1 / 0 : _ref4$maxSize, ++ s = _ref4$maxSize === void 0 ? 1 / 0 : _ref4$maxSize, + _ref4$minSize = _ref4.minSize, + n = _ref4$minSize === void 0 ? 30 : _ref4$minSize, + _ref4$proportionalLay = _ref4.proportionalLayout, +@@ -1835,46 +1847,48 @@ var Ie = t.forwardRef(function (_ref4, v) { + l = _ref4$vertical === void 0 ? !1 : _ref4$vertical, + f = _ref4.onChange, + m = _ref4.onReset, +- d = _ref4.onVisibleChange; +- var g = t.useRef(null), +- w = t.useRef([]), +- I = t.useRef(new Map()), +- E = t.useRef(null), ++ d = _ref4.onVisibleChange, ++ v = _ref4.onDragStart, ++ g = _ref4.onDragEnd; ++ var I = t.useRef(null), ++ E = t.useRef([]), + V = t.useRef(new Map()), +- j = t.useRef(new P()), +- O = t.useRef([]), ++ j = t.useRef(null), ++ P = t.useRef(new Map()), ++ O = t.useRef(new D()), ++ M = t.useRef([]), + _t$useState = t.useState(!1), + _t$useState2 = _slicedToArray(_t$useState, 2), +- M = _t$useState2[0], +- D = _t$useState2[1]; ++ A = _t$useState2[0], ++ C = _t$useState2[1]; + "production" !== process.env.NODE_ENV && u && console.warn("Prop sizes is deprecated. Please use defaultSizes instead."); +- var A = t.useMemo(function () { ++ var T = t.useMemo(function () { + return t.Children.toArray(e).filter(t.isValidElement); + }, [e]), +- C = t.useCallback(function (e) { +- var _O$current, _E$current; +- var t = (_O$current = O.current) === null || _O$current === void 0 ? void 0 : _O$current[e]; +- return "number" == typeof (t === null || t === void 0 ? void 0 : t.preferredSize) && ((_E$current = E.current) !== null && _E$current !== void 0 && _E$current.resizeView(e, Math.round(t.preferredSize)), !0); ++ F = t.useCallback(function (e) { ++ var _M$current, _j$current; ++ var t = (_M$current = M.current) === null || _M$current === void 0 ? void 0 : _M$current[e]; ++ return "number" == typeof (t === null || t === void 0 ? void 0 : t.preferredSize) && ((_j$current = j.current) !== null && _j$current !== void 0 && _j$current.resizeView(e, Math.round(t.preferredSize)), !0); + }, []); +- return t.useImperativeHandle(v, function () { ++ return t.useImperativeHandle(w, function () { + return { + reset: function reset() { + if (m) m();else { +- var _E$current2; +- (_E$current2 = E.current) === null || _E$current2 === void 0 ? void 0 : _E$current2.distributeViewSizes(); +- for (var _e24 = 0; _e24 < O.current.length; _e24++) { +- C(_e24); ++ var _j$current2; ++ (_j$current2 = j.current) === null || _j$current2 === void 0 ? void 0 : _j$current2.distributeViewSizes(); ++ for (var _e24 = 0; _e24 < M.current.length; _e24++) { ++ F(_e24); + } + } + }, + resize: function resize(e) { +- var _E$current3; +- (_E$current3 = E.current) === null || _E$current3 === void 0 ? void 0 : _E$current3.resizeViews(e); ++ var _j$current3; ++ (_j$current3 = j.current) === null || _j$current3 === void 0 ? void 0 : _j$current3.resizeViews(e); + } + }; + }), N(function () { + var e = !0; +- c && V.current.size !== c.length && (e = !1, console.warn("Expected ".concat(c.length, " children based on defaultSizes but found ").concat(V.current.size))), e && c && (w.current = A.map(function (e) { ++ c && P.current.size !== c.length && (e = !1, console.warn("Expected ".concat(c.length, " children based on defaultSizes but found ").concat(P.current.size))), e && c && (E.current = T.map(function (e) { + return e.key; + })); + var t = _objectSpread({ +@@ -1887,95 +1901,95 @@ var Ie = t.forwardRef(function (_ref4, v) { + }, 0), + views: c.map(function (e, t) { + var _i$minSize, _i$maxSize, _i$priority, _i$snap; +- var i = I.current.get(w.current[t]), +- s = new Se(j.current, _objectSpread(_objectSpread({ ++ var i = V.current.get(E.current[t]), ++ r = new Se(O.current, _objectSpread(_objectSpread({ + element: document.createElement("div"), + minimumSize: (_i$minSize = i === null || i === void 0 ? void 0 : i.minSize) !== null && _i$minSize !== void 0 ? _i$minSize : n, +- maximumSize: (_i$maxSize = i === null || i === void 0 ? void 0 : i.maxSize) !== null && _i$maxSize !== void 0 ? _i$maxSize : r, ++ maximumSize: (_i$maxSize = i === null || i === void 0 ? void 0 : i.maxSize) !== null && _i$maxSize !== void 0 ? _i$maxSize : s, + priority: (_i$priority = i === null || i === void 0 ? void 0 : i.priority) !== null && _i$priority !== void 0 ? _i$priority : exports.LayoutPriority.Normal + }, (i === null || i === void 0 ? void 0 : i.preferredSize) && { + preferredSize: i === null || i === void 0 ? void 0 : i.preferredSize + }), {}, { + snap: (_i$snap = i === null || i === void 0 ? void 0 : i.snap) !== null && _i$snap !== void 0 ? _i$snap : h + })); +- return O.current.push(s), { +- container: _toConsumableArray(V.current.values())[t], ++ return M.current.push(r), { ++ container: _toConsumableArray(P.current.values())[t], + size: e, +- view: s ++ view: r + }; + }) + } + }); +- E.current = new be(g.current, t, f), E.current.on("sashDragStart", function () { +- var _g$current; +- (_g$current = g.current) === null || _g$current === void 0 ? void 0 : _g$current.classList.add("split-view-sash-dragging"); +- }), E.current.on("sashDragEnd", function () { +- var _g$current2; +- (_g$current2 = g.current) === null || _g$current2 === void 0 ? void 0 : _g$current2.classList.remove("split-view-sash-dragging"); +- }), E.current.on("sashchange", function (e) { +- if (d && E.current) { +- var _e25 = A.map(function (e) { ++ j.current = new be(I.current, t, f, v, g), j.current.on("sashDragStart", function () { ++ var _I$current; ++ (_I$current = I.current) === null || _I$current === void 0 ? void 0 : _I$current.classList.add("split-view-sash-dragging"); ++ }), j.current.on("sashDragEnd", function () { ++ var _I$current2; ++ (_I$current2 = I.current) === null || _I$current2 === void 0 ? void 0 : _I$current2.classList.remove("split-view-sash-dragging"); ++ }), j.current.on("sashchange", function (e) { ++ if (d && j.current) { ++ var _e25 = T.map(function (e) { + return e.key; + }); + for (var _t19 = 0; _t19 < _e25.length; _t19++) { +- var _i14 = I.current.get(_e25[_t19]); +- void 0 !== (_i14 === null || _i14 === void 0 ? void 0 : _i14.visible) && _i14.visible !== E.current.isViewVisible(_t19) && d(_t19, E.current.isViewVisible(_t19)); ++ var _i14 = V.current.get(_e25[_t19]); ++ void 0 !== (_i14 === null || _i14 === void 0 ? void 0 : _i14.visible) && _i14.visible !== j.current.isViewVisible(_t19) && d(_t19, j.current.isViewVisible(_t19)); + } + } +- }), E.current.on("sashreset", function (e) { ++ }), j.current.on("sashreset", function (e) { + if (m) m();else { +- var _E$current4; +- if (C(e)) return; +- if (C(e + 1)) return; +- (_E$current4 = E.current) === null || _E$current4 === void 0 ? void 0 : _E$current4.distributeViewSizes(); ++ var _j$current4; ++ if (F(e)) return; ++ if (F(e + 1)) return; ++ (_j$current4 = j.current) === null || _j$current4 === void 0 ? void 0 : _j$current4.distributeViewSizes(); + } + }); +- var i = E.current; ++ var i = j.current; + return function () { + i.dispose(); + }; + }, []), N(function () { +- if (M) { +- var _e26 = A.map(function (e) { ++ if (A) { ++ var _e26 = T.map(function (e) { + return e.key; + }), +- _t20 = _toConsumableArray(w.current), ++ _t20 = _toConsumableArray(E.current), + _i15 = _e26.filter(function (e) { +- return !w.current.includes(e); ++ return !E.current.includes(e); + }), +- _s7 = _e26.filter(function (e) { +- return w.current.includes(e); ++ _r7 = _e26.filter(function (e) { ++ return E.current.includes(e); + }), +- _o = w.current.map(function (t) { ++ _o = E.current.map(function (t) { + return !_e26.includes(t); + }); + for (var _e27 = _o.length - 1; _e27 >= 0; _e27--) { +- var _E$current5; +- _o[_e27] && ((_E$current5 = E.current) !== null && _E$current5 !== void 0 && _E$current5.removeView(_e27), _t20.splice(_e27, 1), O.current.splice(_e27, 1)); ++ var _j$current5; ++ _o[_e27] && ((_j$current5 = j.current) !== null && _j$current5 !== void 0 && _j$current5.removeView(_e27), _t20.splice(_e27, 1), M.current.splice(_e27, 1)); + } + var _iterator9 = _createForOfIteratorHelper(_i15), + _step9; + try { + var _loop3 = function _loop3() { +- var _i$minSize2, _i$maxSize2, _i$priority2, _i$snap2, _E$current9; +- var s = _step9.value; +- var i = I.current.get(s), +- o = new Se(j.current, _objectSpread(_objectSpread({ ++ var _i$minSize2, _i$maxSize2, _i$priority2, _i$snap2, _j$current9; ++ var r = _step9.value; ++ var i = V.current.get(r), ++ o = new Se(O.current, _objectSpread(_objectSpread({ + element: document.createElement("div"), + minimumSize: (_i$minSize2 = i === null || i === void 0 ? void 0 : i.minSize) !== null && _i$minSize2 !== void 0 ? _i$minSize2 : n, +- maximumSize: (_i$maxSize2 = i === null || i === void 0 ? void 0 : i.maxSize) !== null && _i$maxSize2 !== void 0 ? _i$maxSize2 : r, ++ maximumSize: (_i$maxSize2 = i === null || i === void 0 ? void 0 : i.maxSize) !== null && _i$maxSize2 !== void 0 ? _i$maxSize2 : s, + priority: (_i$priority2 = i === null || i === void 0 ? void 0 : i.priority) !== null && _i$priority2 !== void 0 ? _i$priority2 : exports.LayoutPriority.Normal + }, (i === null || i === void 0 ? void 0 : i.preferredSize) && { + preferredSize: i === null || i === void 0 ? void 0 : i.preferredSize + }), {}, { + snap: (_i$snap2 = i === null || i === void 0 ? void 0 : i.snap) !== null && _i$snap2 !== void 0 ? _i$snap2 : h + })); +- (_E$current9 = E.current) !== null && _E$current9 !== void 0 && _E$current9.addView(V.current.get(s), o, fe.Distribute, _e26.findIndex(function (e) { +- return e === s; ++ (_j$current9 = j.current) !== null && _j$current9 !== void 0 && _j$current9.addView(P.current.get(r), o, fe.Distribute, _e26.findIndex(function (e) { ++ return e === r; + })), _t20.splice(_e26.findIndex(function (e) { +- return e === s; +- }), 0, s), O.current.splice(_e26.findIndex(function (e) { +- return e === s; ++ return e === r; ++ }), 0, r), M.current.splice(_e26.findIndex(function (e) { ++ return e === r; + }), 0, o); + }; + for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) { +@@ -1993,15 +2007,15 @@ var Ie = t.forwardRef(function (_ref4, v) { + var _loop = function _loop() { + var _step10$value = _slicedToArray(_step10.value, 2), + i = _step10$value[0], +- s = _step10$value[1]; ++ r = _step10$value[1]; + var e = _t20.findIndex(function (e) { +- return e === s; ++ return e === r; + }); + if (e !== i) { +- var _E$current6; +- (_E$current6 = E.current) === null || _E$current6 === void 0 ? void 0 : _E$current6.moveView(V.current.get(s), e, i); +- var _r4 = _t20[e]; +- _t20.splice(e, 1), _t20.splice(i, 0, _r4); ++ var _j$current6; ++ (_j$current6 = j.current) === null || _j$current6 === void 0 ? void 0 : _j$current6.moveView(P.current.get(r), e, i); ++ var _s4 = _t20[e]; ++ _t20.splice(e, 1), _t20.splice(i, 0, _s4); + return "break"; + } + }; +@@ -2019,13 +2033,13 @@ var Ie = t.forwardRef(function (_ref4, v) { + _step11; + try { + var _loop4 = function _loop4() { +- var _E$current10; ++ var _j$current10; + var t = _step11.value; + var i = _e26.findIndex(function (e) { + return e === t; + }), +- s = O.current[i].preferredSize; +- void 0 !== s && ((_E$current10 = E.current) === null || _E$current10 === void 0 ? void 0 : _E$current10.resizeView(i, s)); ++ r = M.current[i].preferredSize; ++ void 0 !== r && ((_j$current10 = j.current) === null || _j$current10 === void 0 ? void 0 : _j$current10.resizeView(i, r)); + }; + for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) { + _loop4(); +@@ -2036,31 +2050,31 @@ var Ie = t.forwardRef(function (_ref4, v) { + _iterator11.f(); + } + var _loop2 = function _loop2() { +- var _E$current7, _E$current8; ++ var _j$current7, _j$current8; + var t = _arr2[_i16]; +- var i = I.current.get(t), +- s = _e26.findIndex(function (e) { ++ var i = V.current.get(t), ++ r = _e26.findIndex(function (e) { + return e === t; + }); +- i && _e(i) && void 0 !== i.visible && ((_E$current7 = E.current) === null || _E$current7 === void 0 ? void 0 : _E$current7.isViewVisible(s)) !== i.visible && ((_E$current8 = E.current) === null || _E$current8 === void 0 ? void 0 : _E$current8.setViewVisible(s, i.visible)); ++ i && _e(i) && void 0 !== i.visible && ((_j$current7 = j.current) === null || _j$current7 === void 0 ? void 0 : _j$current7.isViewVisible(r)) !== i.visible && ((_j$current8 = j.current) === null || _j$current8 === void 0 ? void 0 : _j$current8.setViewVisible(r, i.visible)); + }; +- for (var _i16 = 0, _arr2 = [].concat(_toConsumableArray(_i15), _toConsumableArray(_s7)); _i16 < _arr2.length; _i16++) { ++ for (var _i16 = 0, _arr2 = [].concat(_toConsumableArray(_i15), _toConsumableArray(_r7)); _i16 < _arr2.length; _i16++) { + _loop2(); + } +- var _iterator12 = _createForOfIteratorHelper(_s7), ++ var _iterator12 = _createForOfIteratorHelper(_r7), + _step12; + try { + var _loop5 = function _loop5() { + var t = _step12.value; +- var i = I.current.get(t), +- s = _e26.findIndex(function (e) { ++ var i = V.current.get(t), ++ r = _e26.findIndex(function (e) { + return e === t; + }); + if (i && _e(i)) { +- var _E$current11; +- void 0 !== i.preferredSize && O.current[s].preferredSize !== i.preferredSize && (O.current[s].preferredSize = i.preferredSize); ++ var _j$current11; ++ void 0 !== i.preferredSize && M.current[r].preferredSize !== i.preferredSize && (M.current[r].preferredSize = i.preferredSize); + var _e28 = !1; +- void 0 !== i.minSize && O.current[s].minimumSize !== i.minSize && (O.current[s].minimumSize = i.minSize, _e28 = !0), void 0 !== i.maxSize && O.current[s].maximumSize !== i.maxSize && (O.current[s].maximumSize = i.maxSize, _e28 = !0), _e28 && ((_E$current11 = E.current) === null || _E$current11 === void 0 ? void 0 : _E$current11.layout()); ++ void 0 !== i.minSize && M.current[r].minimumSize !== i.minSize && (M.current[r].minimumSize = i.minSize, _e28 = !0), void 0 !== i.maxSize && M.current[r].maximumSize !== i.maxSize && (M.current[r].maximumSize = i.maxSize, _e28 = !0), _e28 && ((_j$current11 = j.current) === null || _j$current11 === void 0 ? void 0 : _j$current11.layout()); + } + }; + for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) { +@@ -2071,47 +2085,51 @@ var Ie = t.forwardRef(function (_ref4, v) { + } finally { + _iterator12.f(); + } +- (_i15.length > 0 || _o.length > 0) && (w.current = _e26); +- } +- }, [A, M, r, n, h]), t.useEffect(function () { +- E.current && (E.current.onDidChange = f); +- }, [f]), y({ +- ref: g, ++ (_i15.length > 0 || _o.length > 0) && (E.current = _e26); ++ } ++ }, [T, A, s, n, h]), t.useEffect(function () { ++ j.current && (j.current.onDidChange = f); ++ }, [f]), t.useEffect(function () { ++ j.current && (j.current.onDidDragStart = v); ++ }, [v]), t.useEffect(function () { ++ j.current && (j.current.onDidDragEnd = g); ++ }, [g]), y({ ++ ref: I, + onResize: function onResize(_ref5) { +- var _E$current12; ++ var _j$current12; + var e = _ref5.width, + t = _ref5.height; +- e && t && ((_E$current12 = E.current) !== null && _E$current12 !== void 0 && _E$current12.layout(l ? t : e), j.current.setSize(l ? t : e), D(!0)); ++ e && t && ((_j$current12 = j.current) !== null && _j$current12 !== void 0 && _j$current12.layout(l ? t : e), O.current.setSize(l ? t : e), C(!0)); + } + }), N(function () { +- if (!M) { +- var _E$current13; +- var _g$current$getBoundin = g.current.getBoundingClientRect(), +- _e29 = _g$current$getBoundin.height, +- _t21 = _g$current$getBoundin.width; +- (_E$current13 = E.current) !== null && _E$current13 !== void 0 && _E$current13.layout(l ? _e29 : _t21), j.current.setSize(l ? _e29 : _t21), D(!0); +- } +- }, [M, l]), t.useEffect(function () { ++ if (!A) { ++ var _j$current13; ++ var _I$current$getBoundin = I.current.getBoundingClientRect(), ++ _e29 = _I$current$getBoundin.height, ++ _t21 = _I$current$getBoundin.width; ++ (_j$current13 = j.current) !== null && _j$current13 !== void 0 && _j$current13.layout(l ? _e29 : _t21), O.current.setSize(l ? _e29 : _t21), C(!0); ++ } ++ }, [A, l]), t.useEffect(function () { + L && Ee(20); + }, []), t.createElement("div", { +- ref: g, +- className: s("split-view", l ? "split-view-vertical" : "split-view-horizontal", { ++ ref: I, ++ className: r("split-view", l ? "split-view-vertical" : "split-view-horizontal", { + "split-view-separator-border": a + }, b, l ? S : _, _defineProperty({}, x, a), i) + }, t.createElement("div", { +- className: s("split-view-container", z) ++ className: r("split-view-container", z) + }, t.Children.toArray(e).map(function (e) { + if (!t.isValidElement(e)) return null; + var i = e.key; +- return "Allotment.Pane" === e.type.displayName ? (I.current.set(i, e.props), t.cloneElement(e, { ++ return "Allotment.Pane" === e.type.displayName ? (V.current.set(i, e.props), t.cloneElement(e, { + key: i, + ref: function ref(e) { +- e ? V.current.set(i, e) : V.current["delete"](i); ++ e ? P.current.set(i, e) : P.current["delete"](i); + } + })) : t.createElement(xe, { + key: i, + ref: function ref(e) { +- e ? V.current.set(i, e) : V.current["delete"](i); ++ e ? P.current.set(i, e) : P.current["delete"](i); + } + }, e); + }))); +diff --git a/node_modules/allotment/dist/modern.mjs b/node_modules/allotment/dist/modern.mjs +index 8f69493..d4a47ba 100644 +--- a/node_modules/allotment/dist/modern.mjs ++++ b/node_modules/allotment/dist/modern.mjs +@@ -1,18 +1,18 @@ + function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + import e, { useRef as t, useState as i, useEffect as n, useCallback as r, useMemo as s, useLayoutEffect as o, forwardRef as a, useImperativeHandle as u } from "react"; +-var c, +- h = {}; ++var h, ++ c = {}; + /*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames + */ +-c = { ++h = { + get exports() { +- return h; ++ return c; + }, + set exports(e) { +- h = e; ++ c = e; + } + }, function () { + var e = {}.hasOwnProperty; +@@ -31,29 +31,29 @@ c = { + } + return i.join(" "); + } +- c.exports ? (t.default = t, c.exports = t) : window.classNames = t; ++ h.exports ? (t.default = t, h.exports = t) : window.classNames = t; + }(); +-var l = h, ++var l = c, + f = /^\s+|\s+$/g, + m = /^[-+]0x[0-9a-f]+$/i, + d = /^0b[01]+$/i, + p = /^0o[0-7]+$/i, + v = parseInt, + y = Object.prototype.toString; +-function b(e) { ++function g(e) { + var t = typeof e; + return !!e && ("object" == t || "function" == t); + } +-function g(e) { ++function b(e) { + if ("number" == typeof e) return e; + if (function (e) { + return "symbol" == typeof e || function (e) { + return !!e && "object" == typeof e; + }(e) && "[object Symbol]" == y.call(e); + }(e)) return NaN; +- if (b(e)) { ++ if (g(e)) { + var t = "function" == typeof e.valueOf ? e.valueOf() : e; +- e = b(t) ? t + "" : t; ++ e = g(t) ? t + "" : t; + } + if ("string" != typeof e) return 0 === e ? e : +e; + e = e.replace(f, ""); +@@ -61,9 +61,9 @@ function g(e) { + return i || p.test(e) ? v(e.slice(2), i ? 2 : 8) : m.test(e) ? NaN : +e; + } + var z = function z(e, t, i) { +- return void 0 === i && (i = t, t = void 0), void 0 !== i && (i = (i = g(i)) == i ? i : 0), void 0 !== t && (t = (t = g(t)) == t ? t : 0), function (e, t, i) { ++ return void 0 === i && (i = t, t = void 0), void 0 !== i && (i = (i = b(i)) == i ? i : 0), void 0 !== t && (t = (t = b(t)) == t ? t : 0), function (e, t, i) { + return e == e && (void 0 !== i && (e = e <= i ? e : i), void 0 !== t && (e = e >= t ? e : t)), e; +- }(g(e), t, i); ++ }(b(e), t, i); + }, + w = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}, + S = {}; +@@ -75,8 +75,8 @@ var z = function z(e, t, i) { + o = "[object Boolean]", + a = "[object Date]", + u = "[object Error]", +- c = "[object Function]", +- h = "[object Map]", ++ h = "[object Function]", ++ c = "[object Map]", + l = "[object Number]", + f = "[object Object]", + m = "[object Promise]", +@@ -84,27 +84,27 @@ var z = function z(e, t, i) { + p = "[object Set]", + v = "[object String]", + y = "[object Symbol]", +- b = "[object WeakMap]", +- g = "[object ArrayBuffer]", ++ g = "[object WeakMap]", ++ b = "[object ArrayBuffer]", + z = "[object DataView]", + S = /^\[object .+?Constructor\]$/, + _ = /^(?:0|[1-9]\d*)$/, + I = {}; +- I["[object Float32Array]"] = I["[object Float64Array]"] = I["[object Int8Array]"] = I["[object Int16Array]"] = I["[object Int32Array]"] = I["[object Uint8Array]"] = I["[object Uint8ClampedArray]"] = I["[object Uint16Array]"] = I["[object Uint32Array]"] = !0, I[r] = I[s] = I[g] = I[o] = I[z] = I[a] = I[u] = I[c] = I[h] = I[l] = I[f] = I[d] = I[p] = I[v] = I[b] = !1; ++ I["[object Float32Array]"] = I["[object Float64Array]"] = I["[object Int8Array]"] = I["[object Int16Array]"] = I["[object Int32Array]"] = I["[object Uint8Array]"] = I["[object Uint8ClampedArray]"] = I["[object Uint16Array]"] = I["[object Uint32Array]"] = !0, I[r] = I[s] = I[b] = I[o] = I[z] = I[a] = I[u] = I[h] = I[c] = I[l] = I[f] = I[d] = I[p] = I[v] = I[g] = !1; + var x = "object" == typeof w && w && w.Object === Object && w, +- V = "object" == typeof self && self && self.Object === Object && self, +- E = x || V || Function("return this")(), ++ E = "object" == typeof self && self && self.Object === Object && self, ++ V = x || E || Function("return this")(), + j = t && !t.nodeType && t, + N = j && e && !e.nodeType && e, + L = N && N.exports === j, +- O = L && x.process, +- M = function () { ++ D = L && x.process, ++ O = function () { + try { +- return O && O.binding && O.binding("util"); ++ return D && D.binding && D.binding("util"); + } catch (e) {} + }(), +- P = M && M.isTypedArray; +- function D(e, t) { ++ M = O && O.isTypedArray; ++ function P(e, t) { + for (var i = -1, n = null == e ? 0 : e.length; ++i < n;) if (t(e[i], i, e)) return !0; + return !1; + } +@@ -128,15 +128,15 @@ var z = function z(e, t, i) { + $ = Array.prototype, + H = Function.prototype, + Y = Object.prototype, +- B = E["__core-js_shared__"], ++ B = V["__core-js_shared__"], + R = H.toString, + W = Y.hasOwnProperty, + G = (C = /[^.]+$/.exec(B && B.keys && B.keys.IE_PROTO || "")) ? "Symbol(src)_1." + C : "", + U = Y.toString, + X = RegExp("^" + R.call(W).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), +- J = L ? E.Buffer : void 0, +- K = E.Symbol, +- Z = E.Uint8Array, ++ J = L ? V.Buffer : void 0, ++ K = V.Symbol, ++ Z = V.Uint8Array, + Q = Y.propertyIsEnumerable, + q = $.splice, + ee = K ? K.toStringTag : void 0, +@@ -145,13 +145,13 @@ var z = function z(e, t, i) { + ne = (F = Object.keys, k = Object, function (e) { + return F(k(e)); + }), +- re = Me(E, "DataView"), +- se = Me(E, "Map"), +- oe = Me(E, "Promise"), +- ae = Me(E, "Set"), +- ue = Me(E, "WeakMap"), +- ce = Me(Object, "create"), +- he = Te(re), ++ re = Oe(V, "DataView"), ++ se = Oe(V, "Map"), ++ oe = Oe(V, "Promise"), ++ ae = Oe(V, "Set"), ++ ue = Oe(V, "WeakMap"), ++ he = Oe(Object, "create"), ++ ce = Te(re), + le = Te(se), + fe = Te(oe), + me = Te(ae), +@@ -166,7 +166,7 @@ var z = function z(e, t, i) { + this.set(n[0], n[1]); + } + } +- function be(e) { ++ function ge(e) { + var t = -1, + i = null == e ? 0 : e.length; + for (this.clear(); ++t < i;) { +@@ -174,7 +174,7 @@ var z = function z(e, t, i) { + this.set(n[0], n[1]); + } + } +- function ge(e) { ++ function be(e) { + var t = -1, + i = null == e ? 0 : e.length; + for (this.clear(); ++t < i;) { +@@ -185,10 +185,10 @@ var z = function z(e, t, i) { + function ze(e) { + var t = -1, + i = null == e ? 0 : e.length; +- for (this.__data__ = new ge(); ++t < i;) this.add(e[t]); ++ for (this.__data__ = new be(); ++t < i;) this.add(e[t]); + } + function we(e) { +- var t = this.__data__ = new be(e); ++ var t = this.__data__ = new ge(e); + this.size = t.size; + } + function Se(e, t) { +@@ -202,7 +202,7 @@ var z = function z(e, t, i) { + return n; + }(e.length, String) : [], + u = a.length; +- for (var c in e) !t && !W.call(e, c) || o && ("length" == c || r && ("offset" == c || "parent" == c) || s && ("buffer" == c || "byteLength" == c || "byteOffset" == c) || Ae(c, u)) || a.push(c); ++ for (var h in e) !t && !W.call(e, h) || o && ("length" == h || r && ("offset" == h || "parent" == h) || s && ("buffer" == h || "byteLength" == h || "byteOffset" == h) || Ae(h, u)) || a.push(h); + return a; + } + function _e(e, t) { +@@ -227,25 +227,25 @@ var z = function z(e, t, i) { + function xe(e) { + return Re(e) && Ie(e) == r; + } +- function Ve(e, t, i, n, c) { +- return e === t || (null == e || null == t || !Re(e) && !Re(t) ? e != e && t != t : function (e, t, i, n, c, m) { +- var b = ke(e), ++ function Ee(e, t, i, n, h) { ++ return e === t || (null == e || null == t || !Re(e) && !Re(t) ? e != e && t != t : function (e, t, i, n, h, m) { ++ var g = ke(e), + w = ke(t), +- S = b ? s : De(e), +- _ = w ? s : De(t), ++ S = g ? s : Pe(e), ++ _ = w ? s : Pe(t), + I = (S = S == r ? f : S) == f, + x = (_ = _ == r ? f : _) == f, +- V = S == _; +- if (V && $e(e)) { ++ E = S == _; ++ if (E && $e(e)) { + if (!$e(t)) return !1; +- b = !0, I = !1; ++ g = !0, I = !1; + } +- if (V && !I) return m || (m = new we()), b || We(e) ? Ne(e, t, i, n, c, m) : function (e, t, i, n, r, s, c) { ++ if (E && !I) return m || (m = new we()), g || We(e) ? Ne(e, t, i, n, h, m) : function (e, t, i, n, r, s, h) { + switch (i) { + case z: + if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1; + e = e.buffer, t = t.buffer; +- case g: ++ case b: + return !(e.byteLength != t.byteLength || !s(new Z(e), new Z(t))); + case o: + case a: +@@ -256,40 +256,40 @@ var z = function z(e, t, i) { + case d: + case v: + return e == t + ""; +- case h: ++ case c: + var f = A; + case p: + var m = 1 & n; + if (f || (f = T), e.size != t.size && !m) return !1; +- var b = c.get(e); +- if (b) return b == t; +- n |= 2, c.set(e, t); +- var w = Ne(f(e), f(t), n, r, s, c); +- return c.delete(e), w; ++ var g = h.get(e); ++ if (g) return g == t; ++ n |= 2, h.set(e, t); ++ var w = Ne(f(e), f(t), n, r, s, h); ++ return h.delete(e), w; + case y: + if (ve) return ve.call(e) == ve.call(t); + } + return !1; +- }(e, t, S, i, n, c, m); ++ }(e, t, S, i, n, h, m); + if (!(1 & i)) { +- var E = I && W.call(e, "__wrapped__"), ++ var V = I && W.call(e, "__wrapped__"), + j = x && W.call(t, "__wrapped__"); +- if (E || j) { +- var N = E ? e.value() : e, ++ if (V || j) { ++ var N = V ? e.value() : e, + L = j ? t.value() : t; +- return m || (m = new we()), c(N, L, i, n, m); ++ return m || (m = new we()), h(N, L, i, n, m); + } + } +- if (!V) return !1; ++ if (!E) return !1; + return m || (m = new we()), function (e, t, i, n, r, s) { + var o = 1 & i, + a = Le(e), + u = a.length, +- c = Le(t).length; +- if (u != c && !o) return !1; +- var h = u; +- for (; h--;) { +- var l = a[h]; ++ h = Le(t).length; ++ if (u != h && !o) return !1; ++ var c = u; ++ for (; c--;) { ++ var l = a[c]; + if (!(o ? l in t : W.call(t, l))) return !1; + } + var f = s.get(e); +@@ -297,8 +297,8 @@ var z = function z(e, t, i) { + var m = !0; + s.set(e, t), s.set(t, e); + var d = o; +- for (; ++h < u;) { +- var p = e[l = a[h]], ++ for (; ++c < u;) { ++ var p = e[l = a[c]], + v = t[l]; + if (n) var y = o ? n(v, p, l, t, e, s) : n(p, v, l, e, t, s); + if (!(void 0 === y ? p === v || r(p, v, i, n, s) : y)) { +@@ -308,15 +308,15 @@ var z = function z(e, t, i) { + d || (d = "constructor" == l); + } + if (m && !d) { +- var b = e.constructor, +- g = t.constructor; +- b == g || !("constructor" in e) || !("constructor" in t) || "function" == typeof b && b instanceof b && "function" == typeof g && g instanceof g || (m = !1); ++ var g = e.constructor, ++ b = t.constructor; ++ g == b || !("constructor" in e) || !("constructor" in t) || "function" == typeof g && g instanceof g && "function" == typeof b && b instanceof b || (m = !1); + } + return s.delete(e), s.delete(t), m; +- }(e, t, i, n, c, m); +- }(e, t, i, n, Ve, c)); ++ }(e, t, i, n, h, m); ++ }(e, t, i, n, Ee, h)); + } +- function Ee(e) { ++ function Ve(e) { + return !(!Be(e) || function (e) { + return !!G && G in e; + }(e)) && (He(e) ? X : S).test(Te(e)); +@@ -335,22 +335,22 @@ var z = function z(e, t, i) { + a = e.length, + u = t.length; + if (a != u && !(o && u > a)) return !1; +- var c = s.get(e); +- if (c && s.get(t)) return c == t; +- var h = -1, ++ var h = s.get(e); ++ if (h && s.get(t)) return h == t; ++ var c = -1, + l = !0, + f = 2 & i ? new ze() : void 0; +- for (s.set(e, t), s.set(t, e); ++h < a;) { +- var m = e[h], +- d = t[h]; +- if (n) var p = o ? n(d, m, h, t, e, s) : n(m, d, h, e, t, s); ++ for (s.set(e, t), s.set(t, e); ++c < a;) { ++ var m = e[c], ++ d = t[c]; ++ if (n) var p = o ? n(d, m, c, t, e, s) : n(m, d, c, e, t, s); + if (void 0 !== p) { + if (p) continue; + l = !1; + break; + } + if (f) { +- if (!D(t, function (e, t) { ++ if (!P(t, function (e, t) { + if (o = t, !f.has(o) && (m === e || r(m, e, i, n, s))) return f.push(t); + var o; + })) { +@@ -371,69 +371,69 @@ var z = function z(e, t, i) { + for (var i = -1, n = t.length, r = e.length; ++i < n;) e[r + i] = t[i]; + return e; + }(n, i(e)); +- }(e, Ge, Pe); ++ }(e, Ge, Me); + } +- function Oe(e, t) { ++ function De(e, t) { + var i, + n, + r = e.__data__; + return ("string" == (n = typeof (i = t)) || "number" == n || "symbol" == n || "boolean" == n ? "__proto__" !== i : null === i) ? r["string" == typeof t ? "string" : "hash"] : r.map; + } +- function Me(e, t) { ++ function Oe(e, t) { + var i = function (e, t) { + return null == e ? void 0 : e[t]; + }(e, t); +- return Ee(i) ? i : void 0; ++ return Ve(i) ? i : void 0; + } + ye.prototype.clear = function () { +- this.__data__ = ce ? ce(null) : {}, this.size = 0; ++ this.__data__ = he ? he(null) : {}, this.size = 0; + }, ye.prototype.delete = function (e) { + var t = this.has(e) && delete this.__data__[e]; + return this.size -= t ? 1 : 0, t; + }, ye.prototype.get = function (e) { + var t = this.__data__; +- if (ce) { ++ if (he) { + var n = t[e]; + return n === i ? void 0 : n; + } + return W.call(t, e) ? t[e] : void 0; + }, ye.prototype.has = function (e) { + var t = this.__data__; +- return ce ? void 0 !== t[e] : W.call(t, e); ++ return he ? void 0 !== t[e] : W.call(t, e); + }, ye.prototype.set = function (e, t) { + var n = this.__data__; +- return this.size += this.has(e) ? 0 : 1, n[e] = ce && void 0 === t ? i : t, this; +- }, be.prototype.clear = function () { ++ return this.size += this.has(e) ? 0 : 1, n[e] = he && void 0 === t ? i : t, this; ++ }, ge.prototype.clear = function () { + this.__data__ = [], this.size = 0; +- }, be.prototype.delete = function (e) { ++ }, ge.prototype.delete = function (e) { + var t = this.__data__, + i = _e(t, e); + return !(i < 0) && (i == t.length - 1 ? t.pop() : q.call(t, i, 1), --this.size, !0); +- }, be.prototype.get = function (e) { ++ }, ge.prototype.get = function (e) { + var t = this.__data__, + i = _e(t, e); + return i < 0 ? void 0 : t[i][1]; +- }, be.prototype.has = function (e) { ++ }, ge.prototype.has = function (e) { + return _e(this.__data__, e) > -1; +- }, be.prototype.set = function (e, t) { ++ }, ge.prototype.set = function (e, t) { + var i = this.__data__, + n = _e(i, e); + return n < 0 ? (++this.size, i.push([e, t])) : i[n][1] = t, this; +- }, ge.prototype.clear = function () { ++ }, be.prototype.clear = function () { + this.size = 0, this.__data__ = { + hash: new ye(), +- map: new (se || be)(), ++ map: new (se || ge)(), + string: new ye() + }; +- }, ge.prototype.delete = function (e) { +- var t = Oe(this, e).delete(e); ++ }, be.prototype.delete = function (e) { ++ var t = De(this, e).delete(e); + return this.size -= t ? 1 : 0, t; +- }, ge.prototype.get = function (e) { +- return Oe(this, e).get(e); +- }, ge.prototype.has = function (e) { +- return Oe(this, e).has(e); +- }, ge.prototype.set = function (e, t) { +- var i = Oe(this, e), ++ }, be.prototype.get = function (e) { ++ return De(this, e).get(e); ++ }, be.prototype.has = function (e) { ++ return De(this, e).has(e); ++ }, be.prototype.set = function (e, t) { ++ var i = De(this, e), + n = i.size; + return i.set(e, t), this.size += i.size == n ? 0 : 1, this; + }, ze.prototype.add = ze.prototype.push = function (e) { +@@ -441,7 +441,7 @@ var z = function z(e, t, i) { + }, ze.prototype.has = function (e) { + return this.__data__.has(e); + }, we.prototype.clear = function () { +- this.__data__ = new be(), this.size = 0; ++ this.__data__ = new ge(), this.size = 0; + }, we.prototype.delete = function (e) { + var t = this.__data__, + i = t.delete(e); +@@ -452,14 +452,14 @@ var z = function z(e, t, i) { + return this.__data__.has(e); + }, we.prototype.set = function (e, t) { + var i = this.__data__; +- if (i instanceof be) { ++ if (i instanceof ge) { + var n = i.__data__; + if (!se || n.length < 199) return n.push([e, t]), this.size = ++i.size, this; +- i = this.__data__ = new ge(n); ++ i = this.__data__ = new be(n); + } + return i.set(e, t), this.size = i.size, this; + }; +- var Pe = te ? function (e) { ++ var Me = te ? function (e) { + return null == e ? [] : (e = Object(e), function (e, t) { + for (var i = -1, n = null == e ? 0 : e.length, r = 0, s = []; ++i < n;) { + var o = e[i]; +@@ -472,7 +472,7 @@ var z = function z(e, t, i) { + } : function () { + return []; + }, +- De = Ie; ++ Pe = Ie; + function Ae(e, t) { + return !!(t = null == t ? n : t) && ("number" == typeof e || _.test(e)) && e > -1 && e % 1 == 0 && e < t; + } +@@ -490,21 +490,21 @@ var z = function z(e, t, i) { + function Ce(e, t) { + return e === t || e != e && t != t; + } +- (re && De(new re(new ArrayBuffer(1))) != z || se && De(new se()) != h || oe && De(oe.resolve()) != m || ae && De(new ae()) != p || ue && De(new ue()) != b) && (De = function (e) { ++ (re && Pe(new re(new ArrayBuffer(1))) != z || se && Pe(new se()) != c || oe && Pe(oe.resolve()) != m || ae && Pe(new ae()) != p || ue && Pe(new ue()) != g) && (Pe = function (e) { + var t = Ie(e), + i = t == f ? e.constructor : void 0, + n = i ? Te(i) : ""; + if (n) switch (n) { +- case he: ++ case ce: + return z; + case le: +- return h; ++ return c; + case fe: + return m; + case me: + return p; + case de: +- return b; ++ return g; + } + return t; + }); +@@ -520,7 +520,7 @@ var z = function z(e, t, i) { + function He(e) { + if (!Be(e)) return !1; + var t = Ie(e); +- return t == c || "[object GeneratorFunction]" == t || "[object AsyncFunction]" == t || "[object Proxy]" == t; ++ return t == h || "[object GeneratorFunction]" == t || "[object AsyncFunction]" == t || "[object Proxy]" == t; + } + function Ye(e) { + return "number" == typeof e && e > -1 && e % 1 == 0 && e <= n; +@@ -532,11 +532,11 @@ var z = function z(e, t, i) { + function Re(e) { + return null != e && "object" == typeof e; + } +- var We = P ? function (e) { ++ var We = M ? function (e) { + return function (t) { + return e(t); + }; +- }(P) : function (e) { ++ }(M) : function (e) { + return Re(e) && Ye(e.length) && !!I[Ie(e)]; + }; + function Ge(e) { +@@ -544,7 +544,7 @@ var z = function z(e, t, i) { + var t; + } + e.exports = function (e, t) { +- return Ve(e, t); ++ return Ee(e, t); + }; + }({ + get exports() { +@@ -564,13 +564,13 @@ function x(e) { + a = t(void 0); + a.current = o; + var u = e.round || Math.round, +- c = t(), +- h = i({ ++ h = t(), ++ c = i({ + width: void 0, + height: void 0 + }), +- l = h[0], +- f = h[1], ++ l = c[0], ++ f = c[1], + m = t(!1); + n(function () { + return m.current = !1, function () { +@@ -607,7 +607,7 @@ function x(e) { + a.current = e, u(); + }, [u]); + }(r(function (t) { +- return c.current && c.current.box === e.box && c.current.round === u || (c.current = { ++ return h.current && h.current.box === e.box && h.current.round === u || (h.current = { + box: e.box, + round: u, + instance: new ResizeObserver(function (t) { +@@ -616,19 +616,19 @@ function x(e) { + r = I(i, n, "inlineSize"), + s = I(i, n, "blockSize"), + o = r ? u(r) : void 0, +- c = s ? u(s) : void 0; +- if (d.current.width !== o || d.current.height !== c) { +- var h = { ++ h = s ? u(s) : void 0; ++ if (d.current.width !== o || d.current.height !== h) { ++ var c = { + width: o, +- height: c ++ height: h + }; +- d.current.width = o, d.current.height = c, a.current ? a.current(h) : m.current || f(h); ++ d.current.width = o, d.current.height = h, a.current ? a.current(c) : m.current || f(c); + } + }) +- }), c.current.instance.observe(t, { ++ }), h.current.instance.observe(t, { + box: e.box + }), function () { +- c.current && c.current.instance.unobserve(t); ++ h.current && h.current.instance.unobserve(t); + }; + }, [e.box, u]), e.ref); + return s(function () { +@@ -639,18 +639,18 @@ function x(e) { + }; + }, [p, l.width, l.height]); + } +-var V = "allotment-module_splitView__L-yRc", +- E = "allotment-module_sashContainer__fzwJF", ++var E = "allotment-module_splitView__L-yRc", ++ V = "allotment-module_sashContainer__fzwJF", + j = "allotment-module_splitViewContainer__rQnVa", + N = "allotment-module_splitViewView__MGZ6O", + L = "allotment-module_vertical__WSwwa", +- O = "allotment-module_horizontal__7doS8", +- M = "allotment-module_separatorBorder__x-rDS"; +-let P, +- D = !1, ++ D = "allotment-module_horizontal__7doS8", ++ O = "allotment-module_separatorBorder__x-rDS"; ++let M, ++ P = !1, + A = !1; +-"object" == typeof navigator && (P = navigator.userAgent, A = P.indexOf("Macintosh") >= 0, D = (P.indexOf("Macintosh") >= 0 || P.indexOf("iPad") >= 0 || P.indexOf("iPhone") >= 0) && !!navigator.maxTouchPoints && navigator.maxTouchPoints > 0); +-const T = D, ++"object" == typeof navigator && (M = navigator.userAgent, A = M.indexOf("Macintosh") >= 0, P = (M.indexOf("Macintosh") >= 0 || M.indexOf("iPad") >= 0 || M.indexOf("iPhone") >= 0) && !!navigator.maxTouchPoints && navigator.maxTouchPoints > 0); ++const T = P, + C = A, + F = "undefined" != typeof window && void 0 !== window.document && void 0 !== window.document.createElement ? o : n; + class k { +@@ -711,45 +711,45 @@ var H = {}; + var a = i ? i + e : e; + if (!this._events[a]) return !1; + var u, +- c, +- h = this._events[a], ++ h, ++ c = this._events[a], + l = arguments.length; +- if (h.fn) { +- switch (h.once && this.removeListener(e, h.fn, void 0, !0), l) { ++ if (c.fn) { ++ switch (c.once && this.removeListener(e, c.fn, void 0, !0), l) { + case 1: +- return h.fn.call(h.context), !0; ++ return c.fn.call(c.context), !0; + case 2: +- return h.fn.call(h.context, t), !0; ++ return c.fn.call(c.context, t), !0; + case 3: +- return h.fn.call(h.context, t, n), !0; ++ return c.fn.call(c.context, t, n), !0; + case 4: +- return h.fn.call(h.context, t, n, r), !0; ++ return c.fn.call(c.context, t, n, r), !0; + case 5: +- return h.fn.call(h.context, t, n, r, s), !0; ++ return c.fn.call(c.context, t, n, r, s), !0; + case 6: +- return h.fn.call(h.context, t, n, r, s, o), !0; ++ return c.fn.call(c.context, t, n, r, s, o), !0; + } +- for (c = 1, u = new Array(l - 1); c < l; c++) u[c - 1] = arguments[c]; +- h.fn.apply(h.context, u); ++ for (h = 1, u = new Array(l - 1); h < l; h++) u[h - 1] = arguments[h]; ++ c.fn.apply(c.context, u); + } else { + var f, +- m = h.length; +- for (c = 0; c < m; c++) switch (h[c].once && this.removeListener(e, h[c].fn, void 0, !0), l) { ++ m = c.length; ++ for (h = 0; h < m; h++) switch (c[h].once && this.removeListener(e, c[h].fn, void 0, !0), l) { + case 1: +- h[c].fn.call(h[c].context); ++ c[h].fn.call(c[h].context); + break; + case 2: +- h[c].fn.call(h[c].context, t); ++ c[h].fn.call(c[h].context, t); + break; + case 3: +- h[c].fn.call(h[c].context, t, n); ++ c[h].fn.call(c[h].context, t, n); + break; + case 4: +- h[c].fn.call(h[c].context, t, n, r); ++ c[h].fn.call(c[h].context, t, n, r); + break; + default: + if (!u) for (f = 1, u = new Array(l - 1); f < l; f++) u[f - 1] = arguments[f]; +- h[c].fn.apply(h[c].context, u); ++ c[h].fn.apply(c[h].context, u); + } + } + return !0; +@@ -763,8 +763,8 @@ var H = {}; + if (!t) return o(this, s), this; + var a = this._events[s]; + if (a.fn) a.fn !== t || r && !a.once || n && a.context !== n || o(this, s);else { +- for (var u = 0, c = [], h = a.length; u < h; u++) (a[u].fn !== t || r && !a[u].once || n && a[u].context !== n) && c.push(a[u]); +- c.length ? this._events[s] = 1 === c.length ? c[0] : c : o(this, s); ++ for (var u = 0, h = [], c = a.length; u < c; u++) (a[u].fn !== t || r && !a[u].once || n && a[u].context !== n) && h.push(a[u]); ++ h.length ? this._events[s] = 1 === h.length ? h[0] : h : o(this, s); + } + return this; + }, a.prototype.removeAllListeners = function (e) { +@@ -835,35 +835,35 @@ var se = function se(e, t, i) { + o, + a, + u, +- c = 0, +- h = !1, ++ h = 0, ++ c = !1, + l = !1, + f = !0; + if ("function" != typeof e) throw new TypeError("Expected a function"); + function m(t) { + var i = n, + s = r; +- return n = r = void 0, c = t, o = e.apply(s, i); ++ return n = r = void 0, h = t, o = e.apply(s, i); + } + function d(e) { +- return c = e, a = setTimeout(v, t), h ? m(e) : o; ++ return h = e, a = setTimeout(v, t), c ? m(e) : o; + } + function p(e) { + var i = e - u; +- return void 0 === u || i >= t || i < 0 || l && e - c >= s; ++ return void 0 === u || i >= t || i < 0 || l && e - h >= s; + } + function v() { + var e = ie(); + if (p(e)) return y(e); + a = setTimeout(v, function (e) { + var i = t - (e - u); +- return l ? te(i, s - (e - c)) : i; ++ return l ? te(i, s - (e - h)) : i; + }(e)); + } + function y(e) { + return a = void 0, f && n ? m(e) : (n = r = void 0, o); + } +- function b() { ++ function g() { + var e = ie(), + i = p(e); + if (n = arguments, r = this, u = e, i) { +@@ -872,17 +872,17 @@ var se = function se(e, t, i) { + } + return void 0 === a && (a = setTimeout(v, t)), o; + } +- return t = re(t) || 0, ne(i) && (h = !!i.leading, s = (l = "maxWait" in i) ? ee(re(i.maxWait) || 0, t) : s, f = "trailing" in i ? !!i.trailing : f), b.cancel = function () { +- void 0 !== a && clearTimeout(a), c = 0, n = u = r = a = void 0; +- }, b.flush = function () { ++ return t = re(t) || 0, ne(i) && (c = !!i.leading, s = (l = "maxWait" in i) ? ee(re(i.maxWait) || 0, t) : s, f = "trailing" in i ? !!i.trailing : f), g.cancel = function () { ++ void 0 !== a && clearTimeout(a), h = 0, n = u = r = a = void 0; ++ }, g.flush = function () { + return void 0 === a ? o : y(ie()); +- }, b; ++ }, g; + }, + oe = "sash-module_sash__K-9lB", + ae = "sash-module_disabled__Hm-wx", + ue = "sash-module_mac__Jf6OJ", +- ce = "sash-module_vertical__pB-rs", +- he = "sash-module_minimum__-UKxp", ++ he = "sash-module_vertical__pB-rs", ++ ce = "sash-module_minimum__-UKxp", + le = "sash-module_maximum__TCWxD", + fe = "sash-module_horizontal__kFbiw", + me = "sash-module_hover__80W6I", +@@ -894,13 +894,13 @@ let pe, ve; + e.Disabled = "DISABLED", e.Minimum = "MINIMUM", e.Maximum = "MAXIMUM", e.Enabled = "ENABLED"; + }(ve || (ve = {})); + let ye = T ? 20 : 8; +-const be = new H(); +-class ge extends H { ++const ge = new H(); ++class be extends H { + get state() { + return this._state; + } + set state(e) { +- this._state !== e && (this.el.classList.toggle(ae, e === ve.Disabled), this.el.classList.toggle("dash-disabled", e === ve.Disabled), this.el.classList.toggle(he, e === ve.Minimum), this.el.classList.toggle("sash-minimum", e === ve.Minimum), this.el.classList.toggle(le, e === ve.Maximum), this.el.classList.toggle("sash-maximum", e === ve.Maximum), this._state = e, this.emit("enablementChange", e)); ++ this._state !== e && (this.el.classList.toggle(ae, e === ve.Disabled), this.el.classList.toggle("dash-disabled", e === ve.Disabled), this.el.classList.toggle(ce, e === ve.Minimum), this.el.classList.toggle("sash-minimum", e === ve.Minimum), this.el.classList.toggle(le, e === ve.Maximum), this.el.classList.toggle("sash-maximum", e === ve.Maximum), this._state = e, this.emit("enablementChange", e)); + } + constructor(e, t, i) { + var _i$orientation; +@@ -934,9 +934,9 @@ class ge extends H { + this.el.classList.contains(de) ? (this.hoverDelayer.cancel(), this.el.classList.add("sash-hover", me)) : this.hoverDelayer(this.el); + }, this.onMouseLeave = () => { + this.hoverDelayer.cancel(), this.el.classList.remove("sash-hover", me); +- }, this.el = document.createElement("div"), this.el.classList.add("sash", oe), this.el.dataset.testid = "sash", e.append(this.el), C && this.el.classList.add("sash-mac", ue), this.el.addEventListener("pointerdown", this.onPointerStart), this.el.addEventListener("dblclick", this.onPointerDoublePress), this.el.addEventListener("mouseenter", this.onMouseEnter), this.el.addEventListener("mouseleave", this.onMouseLeave), "number" == typeof i.size ? (this.size = i.size, i.orientation === pe.Vertical ? this.el.style.width = `${this.size}px` : this.el.style.height = `${this.size}px`) : (this.size = ye, be.on("onDidChangeGlobalSize", e => { ++ }, this.el = document.createElement("div"), this.el.classList.add("sash", oe), this.el.dataset.testid = "sash", e.append(this.el), C && this.el.classList.add("sash-mac", ue), this.el.addEventListener("pointerdown", this.onPointerStart), this.el.addEventListener("dblclick", this.onPointerDoublePress), this.el.addEventListener("mouseenter", this.onMouseEnter), this.el.addEventListener("mouseleave", this.onMouseLeave), "number" == typeof i.size ? (this.size = i.size, i.orientation === pe.Vertical ? this.el.style.width = `${this.size}px` : this.el.style.height = `${this.size}px`) : (this.size = ye, ge.on("onDidChangeGlobalSize", e => { + this.size = e, this.layout(); +- })), this.layoutProvider = t, this.orientation = (_i$orientation = i.orientation) != null ? _i$orientation : pe.Vertical, this.orientation === pe.Horizontal ? (this.el.classList.add("sash-horizontal", fe), this.el.classList.remove("sash-vertical", ce)) : (this.el.classList.remove("sash-horizontal", fe), this.el.classList.add("sash-vertical", ce)), this.layout(); ++ })), this.layoutProvider = t, this.orientation = (_i$orientation = i.orientation) != null ? _i$orientation : pe.Vertical, this.orientation === pe.Horizontal ? (this.el.classList.add("sash-horizontal", fe), this.el.classList.remove("sash-vertical", he)) : (this.el.classList.remove("sash-horizontal", fe), this.el.classList.add("sash-vertical", he)), this.layout(); + } + layout() { + if (this.orientation === pe.Vertical) { +@@ -1023,7 +1023,7 @@ class xe extends _e { + this.container.style.top = `${e}px`, this.container.style.height = `${this.size}px`; + } + } +-class Ve extends H { ++class Ee extends H { + get startSnappingEnabled() { + return this._startSnappingEnabled; + } +@@ -1036,18 +1036,18 @@ class Ve extends H { + set endSnappingEnabled(e) { + this._endSnappingEnabled !== e && (this._endSnappingEnabled = e, this.updateSashEnablement()); + } +- constructor(e, t = {}, i) { ++ constructor(e, t = {}, i, n, r) { + var _t$orientation, _t$proportionalLayout; +- if (super(), this.onDidChange = void 0, this.orientation = void 0, this.sashContainer = void 0, this.size = 0, this.contentSize = 0, this.proportions = void 0, this.viewItems = [], this.sashItems = [], this.sashDragState = void 0, this.proportionalLayout = void 0, this.getSashOrthogonalSize = void 0, this._startSnappingEnabled = !0, this._endSnappingEnabled = !0, this.onSashEnd = e => { ++ if (super(), this.onDidChange = void 0, this.onDidDragStart = void 0, this.onDidDragEnd = void 0, this.orientation = void 0, this.sashContainer = void 0, this.size = 0, this.contentSize = 0, this.proportions = void 0, this.viewItems = [], this.sashItems = [], this.sashDragState = void 0, this.proportionalLayout = void 0, this.getSashOrthogonalSize = void 0, this._startSnappingEnabled = !0, this._endSnappingEnabled = !0, this.onSashEnd = e => { + this.emit("sashchange", e), this.saveProportions(); + for (const _e2 of this.viewItems) _e2.enabled = !0; +- }, this.orientation = (_t$orientation = t.orientation) != null ? _t$orientation : pe.Vertical, this.proportionalLayout = (_t$proportionalLayout = t.proportionalLayout) != null ? _t$proportionalLayout : !0, this.getSashOrthogonalSize = t.getSashOrthogonalSize, i && (this.onDidChange = i), this.sashContainer = document.createElement("div"), this.sashContainer.classList.add("sash-container", E), e.prepend(this.sashContainer), t.descriptor) { ++ }, this.orientation = (_t$orientation = t.orientation) != null ? _t$orientation : pe.Vertical, this.proportionalLayout = (_t$proportionalLayout = t.proportionalLayout) != null ? _t$proportionalLayout : !0, this.getSashOrthogonalSize = t.getSashOrthogonalSize, i && (this.onDidChange = i), n && (this.onDidDragStart = n), r && (this.onDidDragEnd = r), this.sashContainer = document.createElement("div"), this.sashContainer.classList.add("sash-container", V), e.prepend(this.sashContainer), t.descriptor) { + this.size = t.descriptor.size; + for (const [_e3, _i] of t.descriptor.views.entries()) { + const _t = _i.size, +- n = _i.container, +- r = _i.view; +- this.addView(n, r, _t, _e3, !0); ++ _n = _i.container, ++ _r = _i.view; ++ this.addView(_n, _r, _t, _e3, !0); + } + this.contentSize = this.viewItems.reduce((e, t) => e + t.size, 0), this.saveProportions(); + } +@@ -1059,12 +1059,12 @@ class Ve extends H { + } : t.minimumSize; + const o = this.orientation === pe.Vertical ? new xe(e, t, s) : new Ie(e, t, s); + if (this.viewItems.splice(n, 0, o), this.viewItems.length > 1) { +- const _e4 = this.orientation === pe.Vertical ? new ge(this.sashContainer, { ++ const _e4 = this.orientation === pe.Vertical ? new be(this.sashContainer, { + getHorizontalSashTop: e => this.getSashPosition(e), + getHorizontalSashWidth: this.getSashOrthogonalSize + }, { + orientation: pe.Horizontal +- }) : new ge(this.sashContainer, { ++ }) : new be(this.sashContainer, { + getVerticalSashLeft: e => this.getSashPosition(e), + getVerticalSashHeight: this.getSashOrthogonalSize + }, { +@@ -1080,9 +1080,15 @@ class Ve extends H { + current: t.currentX + }); + _e4.on("start", e => { ++ var _this$onDidDragStart; + this.emit("sashDragStart"), this.onSashStart(_t2(e)); ++ const i = this.viewItems.map(e => e.size); ++ (_this$onDidDragStart = this.onDidDragStart) == null ? void 0 : _this$onDidDragStart.call(this, i); + }), _e4.on("change", e => this.onSashChange(_t2(e))), _e4.on("end", () => { ++ var _this$onDidDragEnd; + this.emit("sashDragEnd"), this.onSashEnd(this.sashItems.findIndex(t => t.sash === _e4)); ++ const t = this.viewItems.map(e => e.size); ++ (_this$onDidDragEnd = this.onDidDragEnd) == null ? void 0 : _this$onDidDragEnd.call(this, t); + }), _e4.on("reset", () => { + const t = this.sashItems.findIndex(t => t.sash === _e4), + i = R(t, -1, -1), +@@ -1188,11 +1194,11 @@ class Ve extends H { + o = Number.POSITIVE_INFINITY; + const a = R(i, -1, -1), + u = R(i + 1, this.viewItems.length), +- c = a.reduce((e, i) => e + (this.viewItems[i].minimumSize - t[i]), 0), +- h = a.reduce((e, i) => e + (this.viewItems[i].viewMaximumSize - t[i]), 0), ++ h = a.reduce((e, i) => e + (this.viewItems[i].minimumSize - t[i]), 0), ++ c = a.reduce((e, i) => e + (this.viewItems[i].viewMaximumSize - t[i]), 0), + l = 0 === u.length ? Number.POSITIVE_INFINITY : u.reduce((e, i) => e + (t[i] - this.viewItems[i].minimumSize), 0), + f = 0 === u.length ? Number.NEGATIVE_INFINITY : u.reduce((e, i) => e + (t[i] - this.viewItems[i].viewMaximumSize), 0); +- s = Math.max(c, f), o = Math.min(l, h); ++ s = Math.max(h, f), o = Math.min(l, c); + const m = this.findFirstSnapIndex(a), + d = this.findFirstSnapIndex(u); + if ("number" == typeof m) { +@@ -1248,19 +1254,19 @@ class Ve extends H { + } + resize(e, t, i = this.viewItems.map(e => e.size), n, r, s = Number.NEGATIVE_INFINITY, o = Number.POSITIVE_INFINITY, a, u) { + if (e < 0 || e >= this.viewItems.length) return 0; +- const c = R(e, -1, -1), +- h = R(e + 1, this.viewItems.length); +- if (r) for (const _e7 of r) Y(c, _e7), Y(h, _e7); +- if (n) for (const _e8 of n) B(c, _e8), B(h, _e8); +- const l = c.map(e => this.viewItems[e]), +- f = c.map(e => i[e]), +- m = h.map(e => this.viewItems[e]), +- d = h.map(e => i[e]), +- p = c.reduce((e, t) => e + (this.viewItems[t].minimumSize - i[t]), 0), +- v = c.reduce((e, t) => e + (this.viewItems[t].maximumSize - i[t]), 0), +- y = 0 === h.length ? Number.POSITIVE_INFINITY : h.reduce((e, t) => e + (i[t] - this.viewItems[t].minimumSize), 0), +- b = 0 === h.length ? Number.NEGATIVE_INFINITY : h.reduce((e, t) => e + (i[t] - this.viewItems[t].maximumSize), 0), +- g = Math.max(p, b, s), ++ const h = R(e, -1, -1), ++ c = R(e + 1, this.viewItems.length); ++ if (r) for (const _e7 of r) Y(h, _e7), Y(c, _e7); ++ if (n) for (const _e8 of n) B(h, _e8), B(c, _e8); ++ const l = h.map(e => this.viewItems[e]), ++ f = h.map(e => i[e]), ++ m = c.map(e => this.viewItems[e]), ++ d = c.map(e => i[e]), ++ p = h.reduce((e, t) => e + (this.viewItems[t].minimumSize - i[t]), 0), ++ v = h.reduce((e, t) => e + (this.viewItems[t].maximumSize - i[t]), 0), ++ y = 0 === c.length ? Number.POSITIVE_INFINITY : c.reduce((e, t) => e + (i[t] - this.viewItems[t].minimumSize), 0), ++ g = 0 === c.length ? Number.NEGATIVE_INFINITY : c.reduce((e, t) => e + (i[t] - this.viewItems[t].maximumSize), 0), ++ b = Math.max(p, g, s), + w = Math.min(y, v, o); + let S = !1; + if (a) { +@@ -1274,15 +1280,15 @@ class Ve extends H { + S = _i5 !== _e10.visible, _e10.setVisible(_i5, u.size); + } + if (S) return this.resize(e, t, i, n, r, s, o); +- for (let _e11 = 0, _i6 = t = z(t, g, w); _e11 < l.length; _e11++) { ++ for (let _e11 = 0, _i6 = t = z(t, b, w); _e11 < l.length; _e11++) { + const _t8 = l[_e11], +- _n = z(f[_e11] + _i6, _t8.minimumSize, _t8.maximumSize); +- _i6 -= _n - f[_e11], _t8.size = _n; ++ _n2 = z(f[_e11] + _i6, _t8.minimumSize, _t8.maximumSize); ++ _i6 -= _n2 - f[_e11], _t8.size = _n2; + } + for (let _e12 = 0, _i7 = t; _e12 < m.length; _e12++) { + const _t9 = m[_e12], +- _n2 = z(d[_e12] - _i7, _t9.minimumSize, _t9.maximumSize); +- _i7 += _n2 - d[_e12], _t9.size = _n2; ++ _n3 = z(d[_e12] - _i7, _t9.minimumSize, _t9.maximumSize); ++ _i7 += _n3 - d[_e12], _t9.size = _n3; + } + return t; + } +@@ -1320,7 +1326,7 @@ class Ve extends H { + let o = 0; + for (let _e14 = 0; _e14 < this.sashItems.length; _e14++) { + const { +- sash: _n3 ++ sash: _n4 + } = this.sashItems[_e14]; + o += this.viewItems[_e14].size; + const a = !(t[_e14] && s[_e14 + 1]), +@@ -1330,10 +1336,10 @@ class Ve extends H { + _s = R(_e14 + 1, this.viewItems.length), + _a = this.findFirstSnapIndex(_i8), + _u = this.findFirstSnapIndex(_s), +- c = "number" == typeof _a && !this.viewItems[_a].visible, +- h = "number" == typeof _u && !this.viewItems[_u].visible; +- c && r[_e14] && (o > 0 || this.startSnappingEnabled) ? _n3.state = ve.Minimum : h && t[_e14] && (o < this.contentSize || this.endSnappingEnabled) ? _n3.state = ve.Maximum : _n3.state = ve.Disabled; +- } else _n3.state = a && !u ? ve.Minimum : !a && u ? ve.Maximum : ve.Enabled; ++ h = "number" == typeof _a && !this.viewItems[_a].visible, ++ c = "number" == typeof _u && !this.viewItems[_u].visible; ++ h && r[_e14] && (o > 0 || this.startSnappingEnabled) ? _n4.state = ve.Minimum : c && t[_e14] && (o < this.contentSize || this.endSnappingEnabled) ? _n4.state = ve.Maximum : _n4.state = ve.Disabled; ++ } else _n4.state = a && !u ? ve.Minimum : !a && u ? ve.Maximum : ve.Enabled; + } + } + findFirstSnapIndex(e) { +@@ -1348,7 +1354,7 @@ class Ve extends H { + } + } + } +-class Ee { ++class Ve { + constructor(e) { + this.size = void 0, this.size = e; + } +@@ -1372,95 +1378,97 @@ class Le { + return this.layoutStrategy.getPreferredSize(); + } + set preferredSize(e) { +- if ("number" == typeof e) this.layoutStrategy = new Ee(e);else if ("string" == typeof e) { ++ if ("number" == typeof e) this.layoutStrategy = new Ve(e);else if ("string" == typeof e) { + const t = e.trim(); + if ($(t, "%")) { + const _e17 = Number(t.slice(0, -1)) / 100; + this.layoutStrategy = new je(_e17, this.layoutService); + } else if ($(t, "px")) { + const _e18 = Number(t.slice(0, -2)) / 100; +- this.layoutStrategy = new Ee(_e18); ++ this.layoutStrategy = new Ve(_e18); + } else if ("number" == typeof Number.parseFloat(t)) { + const _e19 = Number.parseFloat(t); +- this.layoutStrategy = new Ee(_e19); ++ this.layoutStrategy = new Ve(_e19); + } else this.layoutStrategy = new Ne(); + } else this.layoutStrategy = new Ne(); + } + constructor(e, t) { + var _t$priority; +- if (this.minimumSize = 0, this.maximumSize = Number.POSITIVE_INFINITY, this.element = void 0, this.priority = void 0, this.snap = void 0, this.layoutService = void 0, this.layoutStrategy = void 0, this.layoutService = e, this.element = t.element, this.minimumSize = "number" == typeof t.minimumSize ? t.minimumSize : 30, this.maximumSize = "number" == typeof t.maximumSize ? t.maximumSize : Number.POSITIVE_INFINITY, "number" == typeof t.preferredSize) this.layoutStrategy = new Ee(t.preferredSize);else if ("string" == typeof t.preferredSize) { ++ if (this.minimumSize = 0, this.maximumSize = Number.POSITIVE_INFINITY, this.element = void 0, this.priority = void 0, this.snap = void 0, this.layoutService = void 0, this.layoutStrategy = void 0, this.layoutService = e, this.element = t.element, this.minimumSize = "number" == typeof t.minimumSize ? t.minimumSize : 30, this.maximumSize = "number" == typeof t.maximumSize ? t.maximumSize : Number.POSITIVE_INFINITY, "number" == typeof t.preferredSize) this.layoutStrategy = new Ve(t.preferredSize);else if ("string" == typeof t.preferredSize) { + const _e20 = t.preferredSize.trim(); + if ($(_e20, "%")) { + const _t11 = Number(_e20.slice(0, -1)) / 100; + this.layoutStrategy = new je(_t11, this.layoutService); + } else if ($(_e20, "px")) { + const _t12 = Number(_e20.slice(0, -2)); +- this.layoutStrategy = new Ee(_t12); ++ this.layoutStrategy = new Ve(_t12); + } else if ("number" == typeof Number.parseFloat(_e20)) { + const _t13 = Number.parseFloat(_e20); +- this.layoutStrategy = new Ee(_t13); ++ this.layoutStrategy = new Ve(_t13); + } else this.layoutStrategy = new Ne(); + } else this.layoutStrategy = new Ne(); + this.priority = (_t$priority = t.priority) != null ? _t$priority : Se.Normal, this.snap = "boolean" == typeof t.snap && t.snap; + } + layout(e) {} + } +-function Oe(e) { ++function De(e) { + return void 0 !== e.minSize || void 0 !== e.maxSize || void 0 !== e.preferredSize || void 0 !== e.priority || void 0 !== e.visible; + } +-const Me = a(({ ++const Oe = a(({ + className: t, + children: i + }, n) => e.createElement("div", { + ref: n, + className: l("split-view-view", N, t) + }, i)); +-Me.displayName = "Allotment.Pane"; +-const Pe = a(({ ++Oe.displayName = "Allotment.Pane"; ++const Me = a(({ + children: o, + className: a, +- maxSize: c = 1 / 0, +- minSize: h = 30, ++ maxSize: h = 1 / 0, ++ minSize: c = 30, + proportionalLayout: f = !0, + separator: m = !0, + sizes: d, + defaultSizes: p = d, + snap: v = !1, + vertical: y = !1, +- onChange: b, +- onReset: g, +- onVisibleChange: z +-}, w) => { +- const S = t(null), +- I = t([]), +- E = t(new Map()), +- N = t(null), +- P = t(new Map()), +- D = t(new k()), +- A = t([]), +- [C, $] = i(!1); ++ onChange: g, ++ onReset: b, ++ onVisibleChange: z, ++ onDragStart: w, ++ onDragEnd: S ++}, I) => { ++ const V = t(null), ++ N = t([]), ++ M = t(new Map()), ++ P = t(null), ++ A = t(new Map()), ++ C = t(new k()), ++ $ = t([]), ++ [H, Y] = i(!1); + "production" !== process.env.NODE_ENV && d && console.warn("Prop sizes is deprecated. Please use defaultSizes instead."); +- const H = s(() => e.Children.toArray(o).filter(e.isValidElement), [o]), +- Y = r(e => { +- var _A$current, _N$current; +- const t = (_A$current = A.current) == null ? void 0 : _A$current[e]; +- return "number" == typeof (t == null ? void 0 : t.preferredSize) && ((_N$current = N.current) != null && _N$current.resizeView(e, Math.round(t.preferredSize)), !0); ++ const B = s(() => e.Children.toArray(o).filter(e.isValidElement), [o]), ++ R = r(e => { ++ var _$$current, _P$current; ++ const t = (_$$current = $.current) == null ? void 0 : _$$current[e]; ++ return "number" == typeof (t == null ? void 0 : t.preferredSize) && ((_P$current = P.current) != null && _P$current.resizeView(e, Math.round(t.preferredSize)), !0); + }, []); +- return u(w, () => ({ ++ return u(I, () => ({ + reset: () => { +- if (g) g();else { +- var _N$current2; +- (_N$current2 = N.current) == null ? void 0 : _N$current2.distributeViewSizes(); +- for (let e = 0; e < A.current.length; e++) Y(e); ++ if (b) b();else { ++ var _P$current2; ++ (_P$current2 = P.current) == null ? void 0 : _P$current2.distributeViewSizes(); ++ for (let e = 0; e < $.current.length; e++) R(e); + } + }, + resize: e => { +- var _N$current3; +- (_N$current3 = N.current) == null ? void 0 : _N$current3.resizeViews(e); ++ var _P$current3; ++ (_P$current3 = P.current) == null ? void 0 : _P$current3.resizeViews(e); + } + })), F(() => { + let e = !0; +- p && P.current.size !== p.length && (e = !1, console.warn(`Expected ${p.length} children based on defaultSizes but found ${P.current.size}`)), e && p && (I.current = H.map(e => e.key)); ++ p && A.current.size !== p.length && (e = !1, console.warn(`Expected ${p.length} children based on defaultSizes but found ${A.current.size}`)), e && p && (N.current = B.map(e => e.key)); + const t = _extends({ + orientation: y ? pe.Vertical : pe.Horizontal, + proportionalLayout: f +@@ -1469,167 +1477,171 @@ const Pe = a(({ + size: p.reduce((e, t) => e + t, 0), + views: p.map((e, t) => { + var _i$minSize, _i$maxSize, _i$priority, _i$snap; +- const i = E.current.get(I.current[t]), +- n = new Le(D.current, _extends({ ++ const i = M.current.get(N.current[t]), ++ n = new Le(C.current, _extends({ + element: document.createElement("div"), +- minimumSize: (_i$minSize = i == null ? void 0 : i.minSize) != null ? _i$minSize : h, +- maximumSize: (_i$maxSize = i == null ? void 0 : i.maxSize) != null ? _i$maxSize : c, ++ minimumSize: (_i$minSize = i == null ? void 0 : i.minSize) != null ? _i$minSize : c, ++ maximumSize: (_i$maxSize = i == null ? void 0 : i.maxSize) != null ? _i$maxSize : h, + priority: (_i$priority = i == null ? void 0 : i.priority) != null ? _i$priority : Se.Normal + }, (i == null ? void 0 : i.preferredSize) && { + preferredSize: i == null ? void 0 : i.preferredSize + }, { + snap: (_i$snap = i == null ? void 0 : i.snap) != null ? _i$snap : v + })); +- return A.current.push(n), { +- container: [...P.current.values()][t], ++ return $.current.push(n), { ++ container: [...A.current.values()][t], + size: e, + view: n + }; + }) + } + }); +- N.current = new Ve(S.current, t, b), N.current.on("sashDragStart", () => { +- var _S$current; +- (_S$current = S.current) == null ? void 0 : _S$current.classList.add("split-view-sash-dragging"); +- }), N.current.on("sashDragEnd", () => { +- var _S$current2; +- (_S$current2 = S.current) == null ? void 0 : _S$current2.classList.remove("split-view-sash-dragging"); +- }), N.current.on("sashchange", e => { +- if (z && N.current) { +- const _e21 = H.map(e => e.key); ++ P.current = new Ee(V.current, t, g, w, S), P.current.on("sashDragStart", () => { ++ var _V$current; ++ (_V$current = V.current) == null ? void 0 : _V$current.classList.add("split-view-sash-dragging"); ++ }), P.current.on("sashDragEnd", () => { ++ var _V$current2; ++ (_V$current2 = V.current) == null ? void 0 : _V$current2.classList.remove("split-view-sash-dragging"); ++ }), P.current.on("sashchange", e => { ++ if (z && P.current) { ++ const _e21 = B.map(e => e.key); + for (let t = 0; t < _e21.length; t++) { +- const i = E.current.get(_e21[t]); +- void 0 !== (i == null ? void 0 : i.visible) && i.visible !== N.current.isViewVisible(t) && z(t, N.current.isViewVisible(t)); ++ const i = M.current.get(_e21[t]); ++ void 0 !== (i == null ? void 0 : i.visible) && i.visible !== P.current.isViewVisible(t) && z(t, P.current.isViewVisible(t)); + } + } +- }), N.current.on("sashreset", e => { +- if (g) g();else { +- var _N$current4; +- if (Y(e)) return; +- if (Y(e + 1)) return; +- (_N$current4 = N.current) == null ? void 0 : _N$current4.distributeViewSizes(); ++ }), P.current.on("sashreset", e => { ++ if (b) b();else { ++ var _P$current4; ++ if (R(e)) return; ++ if (R(e + 1)) return; ++ (_P$current4 = P.current) == null ? void 0 : _P$current4.distributeViewSizes(); + } + }); +- const i = N.current; ++ const i = P.current; + return () => { + i.dispose(); + }; + }, []), F(() => { +- if (C) { +- const e = H.map(e => e.key), +- t = [...I.current], +- i = e.filter(e => !I.current.includes(e)), +- n = e.filter(e => I.current.includes(e)), +- r = I.current.map(t => !e.includes(t)); ++ if (H) { ++ const e = B.map(e => e.key), ++ t = [...N.current], ++ i = e.filter(e => !N.current.includes(e)), ++ n = e.filter(e => N.current.includes(e)), ++ r = N.current.map(t => !e.includes(t)); + for (let _e22 = r.length - 1; _e22 >= 0; _e22--) { +- var _N$current5; +- r[_e22] && ((_N$current5 = N.current) != null && _N$current5.removeView(_e22), t.splice(_e22, 1), A.current.splice(_e22, 1)); ++ var _P$current5; ++ r[_e22] && ((_P$current5 = P.current) != null && _P$current5.removeView(_e22), t.splice(_e22, 1), $.current.splice(_e22, 1)); + } +- for (const _n4 of i) { +- var _i9$minSize, _i9$maxSize, _i9$priority, _i9$snap, _N$current6; +- const _i9 = E.current.get(_n4), +- _r = new Le(D.current, _extends({ ++ for (const _n5 of i) { ++ var _i9$minSize, _i9$maxSize, _i9$priority, _i9$snap, _P$current6; ++ const _i9 = M.current.get(_n5), ++ _r2 = new Le(C.current, _extends({ + element: document.createElement("div"), +- minimumSize: (_i9$minSize = _i9 == null ? void 0 : _i9.minSize) != null ? _i9$minSize : h, +- maximumSize: (_i9$maxSize = _i9 == null ? void 0 : _i9.maxSize) != null ? _i9$maxSize : c, ++ minimumSize: (_i9$minSize = _i9 == null ? void 0 : _i9.minSize) != null ? _i9$minSize : c, ++ maximumSize: (_i9$maxSize = _i9 == null ? void 0 : _i9.maxSize) != null ? _i9$maxSize : h, + priority: (_i9$priority = _i9 == null ? void 0 : _i9.priority) != null ? _i9$priority : Se.Normal + }, (_i9 == null ? void 0 : _i9.preferredSize) && { + preferredSize: _i9 == null ? void 0 : _i9.preferredSize + }, { + snap: (_i9$snap = _i9 == null ? void 0 : _i9.snap) != null ? _i9$snap : v + })); +- (_N$current6 = N.current) != null && _N$current6.addView(P.current.get(_n4), _r, ze.Distribute, e.findIndex(e => e === _n4)), t.splice(e.findIndex(e => e === _n4), 0, _n4), A.current.splice(e.findIndex(e => e === _n4), 0, _r); ++ (_P$current6 = P.current) != null && _P$current6.addView(A.current.get(_n5), _r2, ze.Distribute, e.findIndex(e => e === _n5)), t.splice(e.findIndex(e => e === _n5), 0, _n5), $.current.splice(e.findIndex(e => e === _n5), 0, _r2); + } +- for (; !_(e, t);) for (const [_i10, _n5] of e.entries()) { +- const _e23 = t.findIndex(e => e === _n5); ++ for (; !_(e, t);) for (const [_i10, _n6] of e.entries()) { ++ const _e23 = t.findIndex(e => e === _n6); + if (_e23 !== _i10) { +- var _N$current7; +- (_N$current7 = N.current) == null ? void 0 : _N$current7.moveView(P.current.get(_n5), _e23, _i10); +- const _r2 = t[_e23]; +- t.splice(_e23, 1), t.splice(_i10, 0, _r2); ++ var _P$current7; ++ (_P$current7 = P.current) == null ? void 0 : _P$current7.moveView(A.current.get(_n6), _e23, _i10); ++ const _r3 = t[_e23]; ++ t.splice(_e23, 1), t.splice(_i10, 0, _r3); + break; + } + } + for (const _t14 of i) { +- var _N$current8; ++ var _P$current8; + const _i11 = e.findIndex(e => e === _t14), +- _n6 = A.current[_i11].preferredSize; +- void 0 !== _n6 && ((_N$current8 = N.current) == null ? void 0 : _N$current8.resizeView(_i11, _n6)); ++ _n7 = $.current[_i11].preferredSize; ++ void 0 !== _n7 && ((_P$current8 = P.current) == null ? void 0 : _P$current8.resizeView(_i11, _n7)); + } + for (const _t15 of [...i, ...n]) { +- var _N$current9, _N$current10; +- const _i12 = E.current.get(_t15), +- _n7 = e.findIndex(e => e === _t15); +- _i12 && Oe(_i12) && void 0 !== _i12.visible && ((_N$current9 = N.current) == null ? void 0 : _N$current9.isViewVisible(_n7)) !== _i12.visible && ((_N$current10 = N.current) == null ? void 0 : _N$current10.setViewVisible(_n7, _i12.visible)); ++ var _P$current9, _P$current10; ++ const _i12 = M.current.get(_t15), ++ _n8 = e.findIndex(e => e === _t15); ++ _i12 && De(_i12) && void 0 !== _i12.visible && ((_P$current9 = P.current) == null ? void 0 : _P$current9.isViewVisible(_n8)) !== _i12.visible && ((_P$current10 = P.current) == null ? void 0 : _P$current10.setViewVisible(_n8, _i12.visible)); + } + for (const _t16 of n) { +- const _i13 = E.current.get(_t16), +- _n8 = e.findIndex(e => e === _t16); +- if (_i13 && Oe(_i13)) { +- var _N$current11; +- void 0 !== _i13.preferredSize && A.current[_n8].preferredSize !== _i13.preferredSize && (A.current[_n8].preferredSize = _i13.preferredSize); ++ const _i13 = M.current.get(_t16), ++ _n9 = e.findIndex(e => e === _t16); ++ if (_i13 && De(_i13)) { ++ var _P$current11; ++ void 0 !== _i13.preferredSize && $.current[_n9].preferredSize !== _i13.preferredSize && ($.current[_n9].preferredSize = _i13.preferredSize); + let _e24 = !1; +- void 0 !== _i13.minSize && A.current[_n8].minimumSize !== _i13.minSize && (A.current[_n8].minimumSize = _i13.minSize, _e24 = !0), void 0 !== _i13.maxSize && A.current[_n8].maximumSize !== _i13.maxSize && (A.current[_n8].maximumSize = _i13.maxSize, _e24 = !0), _e24 && ((_N$current11 = N.current) == null ? void 0 : _N$current11.layout()); ++ void 0 !== _i13.minSize && $.current[_n9].minimumSize !== _i13.minSize && ($.current[_n9].minimumSize = _i13.minSize, _e24 = !0), void 0 !== _i13.maxSize && $.current[_n9].maximumSize !== _i13.maxSize && ($.current[_n9].maximumSize = _i13.maxSize, _e24 = !0), _e24 && ((_P$current11 = P.current) == null ? void 0 : _P$current11.layout()); + } + } +- (i.length > 0 || r.length > 0) && (I.current = e); ++ (i.length > 0 || r.length > 0) && (N.current = e); + } +- }, [H, C, c, h, v]), n(() => { +- N.current && (N.current.onDidChange = b); +- }, [b]), x({ +- ref: S, ++ }, [B, H, h, c, v]), n(() => { ++ P.current && (P.current.onDidChange = g); ++ }, [g]), n(() => { ++ P.current && (P.current.onDidDragStart = w); ++ }, [w]), n(() => { ++ P.current && (P.current.onDidDragEnd = S); ++ }, [S]), x({ ++ ref: V, + onResize: ({ + width: e, + height: t + }) => { +- var _N$current12; +- e && t && ((_N$current12 = N.current) != null && _N$current12.layout(y ? t : e), D.current.setSize(y ? t : e), $(!0)); ++ var _P$current12; ++ e && t && ((_P$current12 = P.current) != null && _P$current12.layout(y ? t : e), C.current.setSize(y ? t : e), Y(!0)); + } + }), F(() => { +- if (!C) { +- var _N$current13; ++ if (!H) { ++ var _P$current13; + const { + height: e, + width: t +- } = S.current.getBoundingClientRect(); +- (_N$current13 = N.current) != null && _N$current13.layout(y ? e : t), D.current.setSize(y ? e : t), $(!0); ++ } = V.current.getBoundingClientRect(); ++ (_P$current13 = P.current) != null && _P$current13.layout(y ? e : t), C.current.setSize(y ? e : t), Y(!0); + } +- }, [C, y]), n(() => { +- T && De(20); ++ }, [H, y]), n(() => { ++ T && Pe(20); + }, []), e.createElement("div", { +- ref: S, ++ ref: V, + className: l("split-view", y ? "split-view-vertical" : "split-view-horizontal", { + "split-view-separator-border": m +- }, V, y ? L : O, { +- [M]: m ++ }, E, y ? L : D, { ++ [O]: m + }, a) + }, e.createElement("div", { + className: l("split-view-container", j) + }, e.Children.toArray(o).map(t => { + if (!e.isValidElement(t)) return null; + const i = t.key; +- return "Allotment.Pane" === t.type.displayName ? (E.current.set(i, t.props), e.cloneElement(t, { ++ return "Allotment.Pane" === t.type.displayName ? (M.current.set(i, t.props), e.cloneElement(t, { + key: i, + ref: e => { +- e ? P.current.set(i, e) : P.current.delete(i); ++ e ? A.current.set(i, e) : A.current.delete(i); + } +- })) : e.createElement(Me, { ++ })) : e.createElement(Oe, { + key: i, + ref: e => { +- e ? P.current.set(i, e) : P.current.delete(i); ++ e ? A.current.set(i, e) : A.current.delete(i); + } + }, t); + }))); + }); +-function De(e) { ++function Pe(e) { + const t = z(e, 4, 20), + i = z(e, 1, 8); + document.documentElement.style.setProperty("--sash-size", t + "px"), document.documentElement.style.setProperty("--sash-hover-size", i + "px"), function (e) { +- ye = e, be.emit("onDidChangeGlobalSize", e); ++ ye = e, ge.emit("onDidChangeGlobalSize", e); + }(t); + } +-Pe.displayName = "Allotment"; +-var Ae = Object.assign(Pe, { +- Pane: Me ++Me.displayName = "Allotment"; ++var Ae = Object.assign(Me, { ++ Pane: Oe + }); +-export { Ae as Allotment, Se as LayoutPriority, De as setSashSize }; ++export { Ae as Allotment, Se as LayoutPriority, Pe as setSashSize }; +diff --git a/node_modules/allotment/dist/module.js b/node_modules/allotment/dist/module.js +index 2a8d19f..25d9f36 100644 +--- a/node_modules/allotment/dist/module.js ++++ b/node_modules/allotment/dist/module.js +@@ -1,18 +1,18 @@ + function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + import e, { useRef as t, useState as i, useEffect as n, useCallback as r, useMemo as s, useLayoutEffect as o, forwardRef as a, useImperativeHandle as u } from "react"; +-var c, +- h = {}; ++var h, ++ c = {}; + /*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames + */ +-c = { ++h = { + get exports() { +- return h; ++ return c; + }, + set exports(e) { +- h = e; ++ c = e; + } + }, function () { + var e = {}.hasOwnProperty; +@@ -33,29 +33,29 @@ c = { + } + return i.join(" "); + } +- c.exports ? (t.default = t, c.exports = t) : window.classNames = t; ++ h.exports ? (t.default = t, h.exports = t) : window.classNames = t; + }(); +-var l = h, ++var l = c, + f = /^\s+|\s+$/g, + m = /^[-+]0x[0-9a-f]+$/i, + d = /^0b[01]+$/i, + p = /^0o[0-7]+$/i, + v = parseInt, + y = Object.prototype.toString; +-function b(e) { ++function g(e) { + var t = typeof e; + return !!e && ("object" == t || "function" == t); + } +-function g(e) { ++function b(e) { + if ("number" == typeof e) return e; + if (function (e) { + return "symbol" == typeof e || function (e) { + return !!e && "object" == typeof e; + }(e) && "[object Symbol]" == y.call(e); + }(e)) return NaN; +- if (b(e)) { ++ if (g(e)) { + var t = "function" == typeof e.valueOf ? e.valueOf() : e; +- e = b(t) ? t + "" : t; ++ e = g(t) ? t + "" : t; + } + if ("string" != typeof e) return 0 === e ? e : +e; + e = e.replace(f, ""); +@@ -63,9 +63,9 @@ function g(e) { + return i || p.test(e) ? v(e.slice(2), i ? 2 : 8) : m.test(e) ? NaN : +e; + } + var z = function z(e, t, i) { +- return void 0 === i && (i = t, t = void 0), void 0 !== i && (i = (i = g(i)) == i ? i : 0), void 0 !== t && (t = (t = g(t)) == t ? t : 0), function (e, t, i) { ++ return void 0 === i && (i = t, t = void 0), void 0 !== i && (i = (i = b(i)) == i ? i : 0), void 0 !== t && (t = (t = b(t)) == t ? t : 0), function (e, t, i) { + return e == e && (void 0 !== i && (e = e <= i ? e : i), void 0 !== t && (e = e >= t ? e : t)), e; +- }(g(e), t, i); ++ }(b(e), t, i); + }, + w = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}, + S = {}; +@@ -77,8 +77,8 @@ var z = function z(e, t, i) { + o = "[object Boolean]", + a = "[object Date]", + u = "[object Error]", +- c = "[object Function]", +- h = "[object Map]", ++ h = "[object Function]", ++ c = "[object Map]", + l = "[object Number]", + f = "[object Object]", + m = "[object Promise]", +@@ -86,27 +86,27 @@ var z = function z(e, t, i) { + p = "[object Set]", + v = "[object String]", + y = "[object Symbol]", +- b = "[object WeakMap]", +- g = "[object ArrayBuffer]", ++ g = "[object WeakMap]", ++ b = "[object ArrayBuffer]", + z = "[object DataView]", + S = /^\[object .+?Constructor\]$/, + _ = /^(?:0|[1-9]\d*)$/, + I = {}; +- I["[object Float32Array]"] = I["[object Float64Array]"] = I["[object Int8Array]"] = I["[object Int16Array]"] = I["[object Int32Array]"] = I["[object Uint8Array]"] = I["[object Uint8ClampedArray]"] = I["[object Uint16Array]"] = I["[object Uint32Array]"] = !0, I[r] = I[s] = I[g] = I[o] = I[z] = I[a] = I[u] = I[c] = I[h] = I[l] = I[f] = I[d] = I[p] = I[v] = I[b] = !1; ++ I["[object Float32Array]"] = I["[object Float64Array]"] = I["[object Int8Array]"] = I["[object Int16Array]"] = I["[object Int32Array]"] = I["[object Uint8Array]"] = I["[object Uint8ClampedArray]"] = I["[object Uint16Array]"] = I["[object Uint32Array]"] = !0, I[r] = I[s] = I[b] = I[o] = I[z] = I[a] = I[u] = I[h] = I[c] = I[l] = I[f] = I[d] = I[p] = I[v] = I[g] = !1; + var x = "object" == typeof w && w && w.Object === Object && w, +- V = "object" == typeof self && self && self.Object === Object && self, +- E = x || V || Function("return this")(), ++ E = "object" == typeof self && self && self.Object === Object && self, ++ V = x || E || Function("return this")(), + j = t && !t.nodeType && t, + N = j && e && !e.nodeType && e, + L = N && N.exports === j, +- O = L && x.process, +- M = function () { ++ D = L && x.process, ++ O = function () { + try { +- return O && O.binding && O.binding("util"); ++ return D && D.binding && D.binding("util"); + } catch (e) {} + }(), +- P = M && M.isTypedArray; +- function D(e, t) { ++ M = O && O.isTypedArray; ++ function P(e, t) { + for (var i = -1, n = null == e ? 0 : e.length; ++i < n;) { + if (t(e[i], i, e)) return !0; + } +@@ -132,15 +132,15 @@ var z = function z(e, t, i) { + $ = Array.prototype, + H = Function.prototype, + Y = Object.prototype, +- B = E["__core-js_shared__"], ++ B = V["__core-js_shared__"], + R = H.toString, + W = Y.hasOwnProperty, + G = (C = /[^.]+$/.exec(B && B.keys && B.keys.IE_PROTO || "")) ? "Symbol(src)_1." + C : "", + U = Y.toString, + X = RegExp("^" + R.call(W).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), +- J = L ? E.Buffer : void 0, +- K = E.Symbol, +- Z = E.Uint8Array, ++ J = L ? V.Buffer : void 0, ++ K = V.Symbol, ++ Z = V.Uint8Array, + Q = Y.propertyIsEnumerable, + q = $.splice, + ee = K ? K.toStringTag : void 0, +@@ -149,13 +149,13 @@ var z = function z(e, t, i) { + ne = (F = Object.keys, k = Object, function (e) { + return F(k(e)); + }), +- re = Me(E, "DataView"), +- se = Me(E, "Map"), +- oe = Me(E, "Promise"), +- ae = Me(E, "Set"), +- ue = Me(E, "WeakMap"), +- ce = Me(Object, "create"), +- he = Te(re), ++ re = Oe(V, "DataView"), ++ se = Oe(V, "Map"), ++ oe = Oe(V, "Promise"), ++ ae = Oe(V, "Set"), ++ ue = Oe(V, "WeakMap"), ++ he = Oe(Object, "create"), ++ ce = Te(re), + le = Te(se), + fe = Te(oe), + me = Te(ae), +@@ -170,7 +170,7 @@ var z = function z(e, t, i) { + this.set(n[0], n[1]); + } + } +- function be(e) { ++ function ge(e) { + var t = -1, + i = null == e ? 0 : e.length; + for (this.clear(); ++t < i;) { +@@ -178,7 +178,7 @@ var z = function z(e, t, i) { + this.set(n[0], n[1]); + } + } +- function ge(e) { ++ function be(e) { + var t = -1, + i = null == e ? 0 : e.length; + for (this.clear(); ++t < i;) { +@@ -189,12 +189,12 @@ var z = function z(e, t, i) { + function ze(e) { + var t = -1, + i = null == e ? 0 : e.length; +- for (this.__data__ = new ge(); ++t < i;) { ++ for (this.__data__ = new be(); ++t < i;) { + this.add(e[t]); + } + } + function we(e) { +- var t = this.__data__ = new be(e); ++ var t = this.__data__ = new ge(e); + this.size = t.size; + } + function Se(e, t) { +@@ -210,8 +210,8 @@ var z = function z(e, t, i) { + return n; + }(e.length, String) : [], + u = a.length; +- for (var c in e) { +- !t && !W.call(e, c) || o && ("length" == c || r && ("offset" == c || "parent" == c) || s && ("buffer" == c || "byteLength" == c || "byteOffset" == c) || Ae(c, u)) || a.push(c); ++ for (var h in e) { ++ !t && !W.call(e, h) || o && ("length" == h || r && ("offset" == h || "parent" == h) || s && ("buffer" == h || "byteLength" == h || "byteOffset" == h) || Ae(h, u)) || a.push(h); + } + return a; + } +@@ -239,25 +239,25 @@ var z = function z(e, t, i) { + function xe(e) { + return Re(e) && Ie(e) == r; + } +- function Ve(e, t, i, n, c) { +- return e === t || (null == e || null == t || !Re(e) && !Re(t) ? e != e && t != t : function (e, t, i, n, c, m) { +- var b = ke(e), ++ function Ee(e, t, i, n, h) { ++ return e === t || (null == e || null == t || !Re(e) && !Re(t) ? e != e && t != t : function (e, t, i, n, h, m) { ++ var g = ke(e), + w = ke(t), +- S = b ? s : De(e), +- _ = w ? s : De(t), ++ S = g ? s : Pe(e), ++ _ = w ? s : Pe(t), + I = (S = S == r ? f : S) == f, + x = (_ = _ == r ? f : _) == f, +- V = S == _; +- if (V && $e(e)) { ++ E = S == _; ++ if (E && $e(e)) { + if (!$e(t)) return !1; +- b = !0, I = !1; ++ g = !0, I = !1; + } +- if (V && !I) return m || (m = new we()), b || We(e) ? Ne(e, t, i, n, c, m) : function (e, t, i, n, r, s, c) { ++ if (E && !I) return m || (m = new we()), g || We(e) ? Ne(e, t, i, n, h, m) : function (e, t, i, n, r, s, h) { + switch (i) { + case z: + if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1; + e = e.buffer, t = t.buffer; +- case g: ++ case b: + return !(e.byteLength != t.byteLength || !s(new Z(e), new Z(t))); + case o: + case a: +@@ -268,40 +268,40 @@ var z = function z(e, t, i) { + case d: + case v: + return e == t + ""; +- case h: ++ case c: + var f = A; + case p: + var m = 1 & n; + if (f || (f = T), e.size != t.size && !m) return !1; +- var b = c.get(e); +- if (b) return b == t; +- n |= 2, c.set(e, t); +- var w = Ne(f(e), f(t), n, r, s, c); +- return c.delete(e), w; ++ var g = h.get(e); ++ if (g) return g == t; ++ n |= 2, h.set(e, t); ++ var w = Ne(f(e), f(t), n, r, s, h); ++ return h.delete(e), w; + case y: + if (ve) return ve.call(e) == ve.call(t); + } + return !1; +- }(e, t, S, i, n, c, m); ++ }(e, t, S, i, n, h, m); + if (!(1 & i)) { +- var E = I && W.call(e, "__wrapped__"), ++ var V = I && W.call(e, "__wrapped__"), + j = x && W.call(t, "__wrapped__"); +- if (E || j) { +- var N = E ? e.value() : e, ++ if (V || j) { ++ var N = V ? e.value() : e, + L = j ? t.value() : t; +- return m || (m = new we()), c(N, L, i, n, m); ++ return m || (m = new we()), h(N, L, i, n, m); + } + } +- if (!V) return !1; ++ if (!E) return !1; + return m || (m = new we()), function (e, t, i, n, r, s) { + var o = 1 & i, + a = Le(e), + u = a.length, +- c = Le(t).length; +- if (u != c && !o) return !1; +- var h = u; +- for (; h--;) { +- var l = a[h]; ++ h = Le(t).length; ++ if (u != h && !o) return !1; ++ var c = u; ++ for (; c--;) { ++ var l = a[c]; + if (!(o ? l in t : W.call(t, l))) return !1; + } + var f = s.get(e); +@@ -309,8 +309,8 @@ var z = function z(e, t, i) { + var m = !0; + s.set(e, t), s.set(t, e); + var d = o; +- for (; ++h < u;) { +- var p = e[l = a[h]], ++ for (; ++c < u;) { ++ var p = e[l = a[c]], + v = t[l]; + if (n) var y = o ? n(v, p, l, t, e, s) : n(p, v, l, e, t, s); + if (!(void 0 === y ? p === v || r(p, v, i, n, s) : y)) { +@@ -320,15 +320,15 @@ var z = function z(e, t, i) { + d || (d = "constructor" == l); + } + if (m && !d) { +- var b = e.constructor, +- g = t.constructor; +- b == g || !("constructor" in e) || !("constructor" in t) || "function" == typeof b && b instanceof b && "function" == typeof g && g instanceof g || (m = !1); ++ var g = e.constructor, ++ b = t.constructor; ++ g == b || !("constructor" in e) || !("constructor" in t) || "function" == typeof g && g instanceof g && "function" == typeof b && b instanceof b || (m = !1); + } + return s.delete(e), s.delete(t), m; +- }(e, t, i, n, c, m); +- }(e, t, i, n, Ve, c)); ++ }(e, t, i, n, h, m); ++ }(e, t, i, n, Ee, h)); + } +- function Ee(e) { ++ function Ve(e) { + return !(!Be(e) || function (e) { + return !!G && G in e; + }(e)) && (He(e) ? X : S).test(Te(e)); +@@ -349,22 +349,22 @@ var z = function z(e, t, i) { + a = e.length, + u = t.length; + if (a != u && !(o && u > a)) return !1; +- var c = s.get(e); +- if (c && s.get(t)) return c == t; +- var h = -1, ++ var h = s.get(e); ++ if (h && s.get(t)) return h == t; ++ var c = -1, + l = !0, + f = 2 & i ? new ze() : void 0; +- for (s.set(e, t), s.set(t, e); ++h < a;) { +- var m = e[h], +- d = t[h]; +- if (n) var p = o ? n(d, m, h, t, e, s) : n(m, d, h, e, t, s); ++ for (s.set(e, t), s.set(t, e); ++c < a;) { ++ var m = e[c], ++ d = t[c]; ++ if (n) var p = o ? n(d, m, c, t, e, s) : n(m, d, c, e, t, s); + if (void 0 !== p) { + if (p) continue; + l = !1; + break; + } + if (f) { +- if (!D(t, function (e, t) { ++ if (!P(t, function (e, t) { + if (o = t, !f.has(o) && (m === e || r(m, e, i, n, s))) return f.push(t); + var o; + })) { +@@ -387,69 +387,69 @@ var z = function z(e, t, i) { + } + return e; + }(n, i(e)); +- }(e, Ge, Pe); ++ }(e, Ge, Me); + } +- function Oe(e, t) { ++ function De(e, t) { + var i, + n, + r = e.__data__; + return ("string" == (n = typeof (i = t)) || "number" == n || "symbol" == n || "boolean" == n ? "__proto__" !== i : null === i) ? r["string" == typeof t ? "string" : "hash"] : r.map; + } +- function Me(e, t) { ++ function Oe(e, t) { + var i = function (e, t) { + return null == e ? void 0 : e[t]; + }(e, t); +- return Ee(i) ? i : void 0; ++ return Ve(i) ? i : void 0; + } + ye.prototype.clear = function () { +- this.__data__ = ce ? ce(null) : {}, this.size = 0; ++ this.__data__ = he ? he(null) : {}, this.size = 0; + }, ye.prototype.delete = function (e) { + var t = this.has(e) && delete this.__data__[e]; + return this.size -= t ? 1 : 0, t; + }, ye.prototype.get = function (e) { + var t = this.__data__; +- if (ce) { ++ if (he) { + var n = t[e]; + return n === i ? void 0 : n; + } + return W.call(t, e) ? t[e] : void 0; + }, ye.prototype.has = function (e) { + var t = this.__data__; +- return ce ? void 0 !== t[e] : W.call(t, e); ++ return he ? void 0 !== t[e] : W.call(t, e); + }, ye.prototype.set = function (e, t) { + var n = this.__data__; +- return this.size += this.has(e) ? 0 : 1, n[e] = ce && void 0 === t ? i : t, this; +- }, be.prototype.clear = function () { ++ return this.size += this.has(e) ? 0 : 1, n[e] = he && void 0 === t ? i : t, this; ++ }, ge.prototype.clear = function () { + this.__data__ = [], this.size = 0; +- }, be.prototype.delete = function (e) { ++ }, ge.prototype.delete = function (e) { + var t = this.__data__, + i = _e(t, e); + return !(i < 0) && (i == t.length - 1 ? t.pop() : q.call(t, i, 1), --this.size, !0); +- }, be.prototype.get = function (e) { ++ }, ge.prototype.get = function (e) { + var t = this.__data__, + i = _e(t, e); + return i < 0 ? void 0 : t[i][1]; +- }, be.prototype.has = function (e) { ++ }, ge.prototype.has = function (e) { + return _e(this.__data__, e) > -1; +- }, be.prototype.set = function (e, t) { ++ }, ge.prototype.set = function (e, t) { + var i = this.__data__, + n = _e(i, e); + return n < 0 ? (++this.size, i.push([e, t])) : i[n][1] = t, this; +- }, ge.prototype.clear = function () { ++ }, be.prototype.clear = function () { + this.size = 0, this.__data__ = { + hash: new ye(), +- map: new (se || be)(), ++ map: new (se || ge)(), + string: new ye() + }; +- }, ge.prototype.delete = function (e) { +- var t = Oe(this, e).delete(e); ++ }, be.prototype.delete = function (e) { ++ var t = De(this, e).delete(e); + return this.size -= t ? 1 : 0, t; +- }, ge.prototype.get = function (e) { +- return Oe(this, e).get(e); +- }, ge.prototype.has = function (e) { +- return Oe(this, e).has(e); +- }, ge.prototype.set = function (e, t) { +- var i = Oe(this, e), ++ }, be.prototype.get = function (e) { ++ return De(this, e).get(e); ++ }, be.prototype.has = function (e) { ++ return De(this, e).has(e); ++ }, be.prototype.set = function (e, t) { ++ var i = De(this, e), + n = i.size; + return i.set(e, t), this.size += i.size == n ? 0 : 1, this; + }, ze.prototype.add = ze.prototype.push = function (e) { +@@ -457,7 +457,7 @@ var z = function z(e, t, i) { + }, ze.prototype.has = function (e) { + return this.__data__.has(e); + }, we.prototype.clear = function () { +- this.__data__ = new be(), this.size = 0; ++ this.__data__ = new ge(), this.size = 0; + }, we.prototype.delete = function (e) { + var t = this.__data__, + i = t.delete(e); +@@ -468,14 +468,14 @@ var z = function z(e, t, i) { + return this.__data__.has(e); + }, we.prototype.set = function (e, t) { + var i = this.__data__; +- if (i instanceof be) { ++ if (i instanceof ge) { + var n = i.__data__; + if (!se || n.length < 199) return n.push([e, t]), this.size = ++i.size, this; +- i = this.__data__ = new ge(n); ++ i = this.__data__ = new be(n); + } + return i.set(e, t), this.size = i.size, this; + }; +- var Pe = te ? function (e) { ++ var Me = te ? function (e) { + return null == e ? [] : (e = Object(e), function (e, t) { + for (var i = -1, n = null == e ? 0 : e.length, r = 0, s = []; ++i < n;) { + var o = e[i]; +@@ -488,7 +488,7 @@ var z = function z(e, t, i) { + } : function () { + return []; + }, +- De = Ie; ++ Pe = Ie; + function Ae(e, t) { + return !!(t = null == t ? n : t) && ("number" == typeof e || _.test(e)) && e > -1 && e % 1 == 0 && e < t; + } +@@ -506,21 +506,21 @@ var z = function z(e, t, i) { + function Ce(e, t) { + return e === t || e != e && t != t; + } +- (re && De(new re(new ArrayBuffer(1))) != z || se && De(new se()) != h || oe && De(oe.resolve()) != m || ae && De(new ae()) != p || ue && De(new ue()) != b) && (De = function De(e) { ++ (re && Pe(new re(new ArrayBuffer(1))) != z || se && Pe(new se()) != c || oe && Pe(oe.resolve()) != m || ae && Pe(new ae()) != p || ue && Pe(new ue()) != g) && (Pe = function Pe(e) { + var t = Ie(e), + i = t == f ? e.constructor : void 0, + n = i ? Te(i) : ""; + if (n) switch (n) { +- case he: ++ case ce: + return z; + case le: +- return h; ++ return c; + case fe: + return m; + case me: + return p; + case de: +- return b; ++ return g; + } + return t; + }); +@@ -536,7 +536,7 @@ var z = function z(e, t, i) { + function He(e) { + if (!Be(e)) return !1; + var t = Ie(e); +- return t == c || "[object GeneratorFunction]" == t || "[object AsyncFunction]" == t || "[object Proxy]" == t; ++ return t == h || "[object GeneratorFunction]" == t || "[object AsyncFunction]" == t || "[object Proxy]" == t; + } + function Ye(e) { + return "number" == typeof e && e > -1 && e % 1 == 0 && e <= n; +@@ -548,11 +548,11 @@ var z = function z(e, t, i) { + function Re(e) { + return null != e && "object" == typeof e; + } +- var We = P ? function (e) { ++ var We = M ? function (e) { + return function (t) { + return e(t); + }; +- }(P) : function (e) { ++ }(M) : function (e) { + return Re(e) && Ye(e.length) && !!I[Ie(e)]; + }; + function Ge(e) { +@@ -560,7 +560,7 @@ var z = function z(e, t, i) { + var t; + } + e.exports = function (e, t) { +- return Ve(e, t); ++ return Ee(e, t); + }; + }({ + get exports() { +@@ -580,13 +580,13 @@ function x(e) { + a = t(void 0); + a.current = o; + var u = e.round || Math.round, +- c = t(), +- h = i({ ++ h = t(), ++ c = i({ + width: void 0, + height: void 0 + }), +- l = h[0], +- f = h[1], ++ l = c[0], ++ f = c[1], + m = t(!1); + n(function () { + return m.current = !1, function () { +@@ -623,7 +623,7 @@ function x(e) { + a.current = e, u(); + }, [u]); + }(r(function (t) { +- return c.current && c.current.box === e.box && c.current.round === u || (c.current = { ++ return h.current && h.current.box === e.box && h.current.round === u || (h.current = { + box: e.box, + round: u, + instance: new ResizeObserver(function (t) { +@@ -632,19 +632,19 @@ function x(e) { + r = I(i, n, "inlineSize"), + s = I(i, n, "blockSize"), + o = r ? u(r) : void 0, +- c = s ? u(s) : void 0; +- if (d.current.width !== o || d.current.height !== c) { +- var h = { ++ h = s ? u(s) : void 0; ++ if (d.current.width !== o || d.current.height !== h) { ++ var c = { + width: o, +- height: c ++ height: h + }; +- d.current.width = o, d.current.height = c, a.current ? a.current(h) : m.current || f(h); ++ d.current.width = o, d.current.height = h, a.current ? a.current(c) : m.current || f(c); + } + }) +- }), c.current.instance.observe(t, { ++ }), h.current.instance.observe(t, { + box: e.box + }), function () { +- c.current && c.current.instance.unobserve(t); ++ h.current && h.current.instance.unobserve(t); + }; + }, [e.box, u]), e.ref); + return s(function () { +@@ -655,18 +655,18 @@ function x(e) { + }; + }, [p, l.width, l.height]); + } +-var V = "allotment-module_splitView__L-yRc", +- E = "allotment-module_sashContainer__fzwJF", ++var E = "allotment-module_splitView__L-yRc", ++ V = "allotment-module_sashContainer__fzwJF", + j = "allotment-module_splitViewContainer__rQnVa", + N = "allotment-module_splitViewView__MGZ6O", + L = "allotment-module_vertical__WSwwa", +- O = "allotment-module_horizontal__7doS8", +- M = "allotment-module_separatorBorder__x-rDS"; +-var P, +- D = !1, ++ D = "allotment-module_horizontal__7doS8", ++ O = "allotment-module_separatorBorder__x-rDS"; ++var M, ++ P = !1, + A = !1; +-"object" == typeof navigator && (P = navigator.userAgent, A = P.indexOf("Macintosh") >= 0, D = (P.indexOf("Macintosh") >= 0 || P.indexOf("iPad") >= 0 || P.indexOf("iPhone") >= 0) && !!navigator.maxTouchPoints && navigator.maxTouchPoints > 0); +-var T = D, ++"object" == typeof navigator && (M = navigator.userAgent, A = M.indexOf("Macintosh") >= 0, P = (M.indexOf("Macintosh") >= 0 || M.indexOf("iPad") >= 0 || M.indexOf("iPhone") >= 0) && !!navigator.maxTouchPoints && navigator.maxTouchPoints > 0); ++var T = P, + C = A, + F = "undefined" != typeof window && void 0 !== window.document && void 0 !== window.document.createElement ? o : n; + class k { +@@ -731,50 +731,50 @@ var H = {}; + var a = i ? i + e : e; + if (!this._events[a]) return !1; + var u, +- c, +- h = this._events[a], ++ h, ++ c = this._events[a], + l = arguments.length; +- if (h.fn) { +- switch (h.once && this.removeListener(e, h.fn, void 0, !0), l) { ++ if (c.fn) { ++ switch (c.once && this.removeListener(e, c.fn, void 0, !0), l) { + case 1: +- return h.fn.call(h.context), !0; ++ return c.fn.call(c.context), !0; + case 2: +- return h.fn.call(h.context, t), !0; ++ return c.fn.call(c.context, t), !0; + case 3: +- return h.fn.call(h.context, t, n), !0; ++ return c.fn.call(c.context, t, n), !0; + case 4: +- return h.fn.call(h.context, t, n, r), !0; ++ return c.fn.call(c.context, t, n, r), !0; + case 5: +- return h.fn.call(h.context, t, n, r, s), !0; ++ return c.fn.call(c.context, t, n, r, s), !0; + case 6: +- return h.fn.call(h.context, t, n, r, s, o), !0; ++ return c.fn.call(c.context, t, n, r, s, o), !0; + } +- for (c = 1, u = new Array(l - 1); c < l; c++) { +- u[c - 1] = arguments[c]; ++ for (h = 1, u = new Array(l - 1); h < l; h++) { ++ u[h - 1] = arguments[h]; + } +- h.fn.apply(h.context, u); ++ c.fn.apply(c.context, u); + } else { + var f, +- m = h.length; +- for (c = 0; c < m; c++) { +- switch (h[c].once && this.removeListener(e, h[c].fn, void 0, !0), l) { ++ m = c.length; ++ for (h = 0; h < m; h++) { ++ switch (c[h].once && this.removeListener(e, c[h].fn, void 0, !0), l) { + case 1: +- h[c].fn.call(h[c].context); ++ c[h].fn.call(c[h].context); + break; + case 2: +- h[c].fn.call(h[c].context, t); ++ c[h].fn.call(c[h].context, t); + break; + case 3: +- h[c].fn.call(h[c].context, t, n); ++ c[h].fn.call(c[h].context, t, n); + break; + case 4: +- h[c].fn.call(h[c].context, t, n, r); ++ c[h].fn.call(c[h].context, t, n, r); + break; + default: + if (!u) for (f = 1, u = new Array(l - 1); f < l; f++) { + u[f - 1] = arguments[f]; + } +- h[c].fn.apply(h[c].context, u); ++ c[h].fn.apply(c[h].context, u); + } + } + } +@@ -789,10 +789,10 @@ var H = {}; + if (!t) return o(this, s), this; + var a = this._events[s]; + if (a.fn) a.fn !== t || r && !a.once || n && a.context !== n || o(this, s);else { +- for (var u = 0, c = [], h = a.length; u < h; u++) { +- (a[u].fn !== t || r && !a[u].once || n && a[u].context !== n) && c.push(a[u]); ++ for (var u = 0, h = [], c = a.length; u < c; u++) { ++ (a[u].fn !== t || r && !a[u].once || n && a[u].context !== n) && h.push(a[u]); + } +- c.length ? this._events[s] = 1 === c.length ? c[0] : c : o(this, s); ++ h.length ? this._events[s] = 1 === h.length ? h[0] : h : o(this, s); + } + return this; + }, a.prototype.removeAllListeners = function (e) { +@@ -868,35 +868,35 @@ var se = function se(e, t, i) { + o, + a, + u, +- c = 0, +- h = !1, ++ h = 0, ++ c = !1, + l = !1, + f = !0; + if ("function" != typeof e) throw new TypeError("Expected a function"); + function m(t) { + var i = n, + s = r; +- return n = r = void 0, c = t, o = e.apply(s, i); ++ return n = r = void 0, h = t, o = e.apply(s, i); + } + function d(e) { +- return c = e, a = setTimeout(v, t), h ? m(e) : o; ++ return h = e, a = setTimeout(v, t), c ? m(e) : o; + } + function p(e) { + var i = e - u; +- return void 0 === u || i >= t || i < 0 || l && e - c >= s; ++ return void 0 === u || i >= t || i < 0 || l && e - h >= s; + } + function v() { + var e = ie(); + if (p(e)) return y(e); + a = setTimeout(v, function (e) { + var i = t - (e - u); +- return l ? te(i, s - (e - c)) : i; ++ return l ? te(i, s - (e - h)) : i; + }(e)); + } + function y(e) { + return a = void 0, f && n ? m(e) : (n = r = void 0, o); + } +- function b() { ++ function g() { + var e = ie(), + i = p(e); + if (n = arguments, r = this, u = e, i) { +@@ -905,17 +905,17 @@ var se = function se(e, t, i) { + } + return void 0 === a && (a = setTimeout(v, t)), o; + } +- return t = re(t) || 0, ne(i) && (h = !!i.leading, s = (l = "maxWait" in i) ? ee(re(i.maxWait) || 0, t) : s, f = "trailing" in i ? !!i.trailing : f), b.cancel = function () { +- void 0 !== a && clearTimeout(a), c = 0, n = u = r = a = void 0; +- }, b.flush = function () { ++ return t = re(t) || 0, ne(i) && (c = !!i.leading, s = (l = "maxWait" in i) ? ee(re(i.maxWait) || 0, t) : s, f = "trailing" in i ? !!i.trailing : f), g.cancel = function () { ++ void 0 !== a && clearTimeout(a), h = 0, n = u = r = a = void 0; ++ }, g.flush = function () { + return void 0 === a ? o : y(ie()); +- }, b; ++ }, g; + }, + oe = "sash-module_sash__K-9lB", + ae = "sash-module_disabled__Hm-wx", + ue = "sash-module_mac__Jf6OJ", +- ce = "sash-module_vertical__pB-rs", +- he = "sash-module_minimum__-UKxp", ++ he = "sash-module_vertical__pB-rs", ++ ce = "sash-module_minimum__-UKxp", + le = "sash-module_maximum__TCWxD", + fe = "sash-module_horizontal__kFbiw", + me = "sash-module_hover__80W6I", +@@ -927,13 +927,13 @@ var pe, ve; + e.Disabled = "DISABLED", e.Minimum = "MINIMUM", e.Maximum = "MAXIMUM", e.Enabled = "ENABLED"; + }(ve || (ve = {})); + var ye = T ? 20 : 8; +-var be = new H(); +-class ge extends H { ++var ge = new H(); ++class be extends H { + get state() { + return this._state; + } + set state(e) { +- this._state !== e && (this.el.classList.toggle(ae, e === ve.Disabled), this.el.classList.toggle("dash-disabled", e === ve.Disabled), this.el.classList.toggle(he, e === ve.Minimum), this.el.classList.toggle("sash-minimum", e === ve.Minimum), this.el.classList.toggle(le, e === ve.Maximum), this.el.classList.toggle("sash-maximum", e === ve.Maximum), this._state = e, this.emit("enablementChange", e)); ++ this._state !== e && (this.el.classList.toggle(ae, e === ve.Disabled), this.el.classList.toggle("dash-disabled", e === ve.Disabled), this.el.classList.toggle(ce, e === ve.Minimum), this.el.classList.toggle("sash-minimum", e === ve.Minimum), this.el.classList.toggle(le, e === ve.Maximum), this.el.classList.toggle("sash-maximum", e === ve.Maximum), this._state = e, this.emit("enablementChange", e)); + } + constructor(e, t, i) { + var _i$orientation; +@@ -967,9 +967,9 @@ class ge extends H { + this.el.classList.contains(de) ? (this.hoverDelayer.cancel(), this.el.classList.add("sash-hover", me)) : this.hoverDelayer(this.el); + }, this.onMouseLeave = () => { + this.hoverDelayer.cancel(), this.el.classList.remove("sash-hover", me); +- }, this.el = document.createElement("div"), this.el.classList.add("sash", oe), this.el.dataset.testid = "sash", e.append(this.el), C && this.el.classList.add("sash-mac", ue), this.el.addEventListener("pointerdown", this.onPointerStart), this.el.addEventListener("dblclick", this.onPointerDoublePress), this.el.addEventListener("mouseenter", this.onMouseEnter), this.el.addEventListener("mouseleave", this.onMouseLeave), "number" == typeof i.size ? (this.size = i.size, i.orientation === pe.Vertical ? this.el.style.width = this.size + "px" : this.el.style.height = this.size + "px") : (this.size = ye, be.on("onDidChangeGlobalSize", e => { ++ }, this.el = document.createElement("div"), this.el.classList.add("sash", oe), this.el.dataset.testid = "sash", e.append(this.el), C && this.el.classList.add("sash-mac", ue), this.el.addEventListener("pointerdown", this.onPointerStart), this.el.addEventListener("dblclick", this.onPointerDoublePress), this.el.addEventListener("mouseenter", this.onMouseEnter), this.el.addEventListener("mouseleave", this.onMouseLeave), "number" == typeof i.size ? (this.size = i.size, i.orientation === pe.Vertical ? this.el.style.width = this.size + "px" : this.el.style.height = this.size + "px") : (this.size = ye, ge.on("onDidChangeGlobalSize", e => { + this.size = e, this.layout(); +- })), this.layoutProvider = t, this.orientation = (_i$orientation = i.orientation) != null ? _i$orientation : pe.Vertical, this.orientation === pe.Horizontal ? (this.el.classList.add("sash-horizontal", fe), this.el.classList.remove("sash-vertical", ce)) : (this.el.classList.remove("sash-horizontal", fe), this.el.classList.add("sash-vertical", ce)), this.layout(); ++ })), this.layoutProvider = t, this.orientation = (_i$orientation = i.orientation) != null ? _i$orientation : pe.Vertical, this.orientation === pe.Horizontal ? (this.el.classList.add("sash-horizontal", fe), this.el.classList.remove("sash-vertical", he)) : (this.el.classList.remove("sash-horizontal", fe), this.el.classList.add("sash-vertical", he)), this.layout(); + } + layout() { + if (this.orientation === pe.Vertical) { +@@ -1056,7 +1056,7 @@ class xe extends _e { + this.container.style.top = e + "px", this.container.style.height = this.size + "px"; + } + } +-class Ve extends H { ++class Ee extends H { + get startSnappingEnabled() { + return this._startSnappingEnabled; + } +@@ -1069,17 +1069,17 @@ class Ve extends H { + set endSnappingEnabled(e) { + this._endSnappingEnabled !== e && (this._endSnappingEnabled = e, this.updateSashEnablement()); + } +- constructor(e, t, i) { ++ constructor(e, t, i, n, r) { + var _t$orientation, _t$proportionalLayout; + if (t === void 0) { + t = {}; + } +- if (super(), this.onDidChange = void 0, this.orientation = void 0, this.sashContainer = void 0, this.size = 0, this.contentSize = 0, this.proportions = void 0, this.viewItems = [], this.sashItems = [], this.sashDragState = void 0, this.proportionalLayout = void 0, this.getSashOrthogonalSize = void 0, this._startSnappingEnabled = !0, this._endSnappingEnabled = !0, this.onSashEnd = e => { ++ if (super(), this.onDidChange = void 0, this.onDidDragStart = void 0, this.onDidDragEnd = void 0, this.orientation = void 0, this.sashContainer = void 0, this.size = 0, this.contentSize = 0, this.proportions = void 0, this.viewItems = [], this.sashItems = [], this.sashDragState = void 0, this.proportionalLayout = void 0, this.getSashOrthogonalSize = void 0, this._startSnappingEnabled = !0, this._endSnappingEnabled = !0, this.onSashEnd = e => { + this.emit("sashchange", e), this.saveProportions(); + for (var _e4 of this.viewItems) { + _e4.enabled = !0; + } +- }, this.orientation = (_t$orientation = t.orientation) != null ? _t$orientation : pe.Vertical, this.proportionalLayout = (_t$proportionalLayout = t.proportionalLayout) != null ? _t$proportionalLayout : !0, this.getSashOrthogonalSize = t.getSashOrthogonalSize, i && (this.onDidChange = i), this.sashContainer = document.createElement("div"), this.sashContainer.classList.add("sash-container", E), e.prepend(this.sashContainer), t.descriptor) { ++ }, this.orientation = (_t$orientation = t.orientation) != null ? _t$orientation : pe.Vertical, this.proportionalLayout = (_t$proportionalLayout = t.proportionalLayout) != null ? _t$proportionalLayout : !0, this.getSashOrthogonalSize = t.getSashOrthogonalSize, i && (this.onDidChange = i), n && (this.onDidDragStart = n), r && (this.onDidDragEnd = r), this.sashContainer = document.createElement("div"), this.sashContainer.classList.add("sash-container", V), e.prepend(this.sashContainer), t.descriptor) { + this.size = t.descriptor.size; + for (var [_e5, _i] of t.descriptor.views.entries()) { + var _t = _i.size, +@@ -1100,12 +1100,12 @@ class Ve extends H { + } : t.minimumSize; + var o = this.orientation === pe.Vertical ? new xe(e, t, s) : new Ie(e, t, s); + if (this.viewItems.splice(n, 0, o), this.viewItems.length > 1) { +- var _e6 = this.orientation === pe.Vertical ? new ge(this.sashContainer, { ++ var _e6 = this.orientation === pe.Vertical ? new be(this.sashContainer, { + getHorizontalSashTop: e => this.getSashPosition(e), + getHorizontalSashWidth: this.getSashOrthogonalSize + }, { + orientation: pe.Horizontal +- }) : new ge(this.sashContainer, { ++ }) : new be(this.sashContainer, { + getVerticalSashLeft: e => this.getSashPosition(e), + getVerticalSashHeight: this.getSashOrthogonalSize + }, { +@@ -1121,9 +1121,15 @@ class Ve extends H { + current: t.currentX + }); + _e6.on("start", e => { ++ var _this$onDidDragStart; + this.emit("sashDragStart"), this.onSashStart(_t2(e)); ++ var i = this.viewItems.map(e => e.size); ++ (_this$onDidDragStart = this.onDidDragStart) == null ? void 0 : _this$onDidDragStart.call(this, i); + }), _e6.on("change", e => this.onSashChange(_t2(e))), _e6.on("end", () => { ++ var _this$onDidDragEnd; + this.emit("sashDragEnd"), this.onSashEnd(this.sashItems.findIndex(t => t.sash === _e6)); ++ var t = this.viewItems.map(e => e.size); ++ (_this$onDidDragEnd = this.onDidDragEnd) == null ? void 0 : _this$onDidDragEnd.call(this, t); + }), _e6.on("reset", () => { + var t = this.sashItems.findIndex(t => t.sash === _e6), + i = R(t, -1, -1), +@@ -1237,11 +1243,11 @@ class Ve extends H { + o = Number.POSITIVE_INFINITY; + var a = R(i, -1, -1), + u = R(i + 1, this.viewItems.length), +- c = a.reduce((e, i) => e + (this.viewItems[i].minimumSize - t[i]), 0), +- h = a.reduce((e, i) => e + (this.viewItems[i].viewMaximumSize - t[i]), 0), ++ h = a.reduce((e, i) => e + (this.viewItems[i].minimumSize - t[i]), 0), ++ c = a.reduce((e, i) => e + (this.viewItems[i].viewMaximumSize - t[i]), 0), + l = 0 === u.length ? Number.POSITIVE_INFINITY : u.reduce((e, i) => e + (t[i] - this.viewItems[i].minimumSize), 0), + f = 0 === u.length ? Number.NEGATIVE_INFINITY : u.reduce((e, i) => e + (t[i] - this.viewItems[i].viewMaximumSize), 0); +- s = Math.max(c, f), o = Math.min(l, h); ++ s = Math.max(h, f), o = Math.min(l, c); + var m = this.findFirstSnapIndex(a), + d = this.findFirstSnapIndex(u); + if ("number" == typeof m) { +@@ -1309,23 +1315,23 @@ class Ve extends H { + o = Number.POSITIVE_INFINITY; + } + if (e < 0 || e >= this.viewItems.length) return 0; +- var c = R(e, -1, -1), +- h = R(e + 1, this.viewItems.length); ++ var h = R(e, -1, -1), ++ c = R(e + 1, this.viewItems.length); + if (r) for (var _e9 of r) { +- Y(c, _e9), Y(h, _e9); ++ Y(h, _e9), Y(c, _e9); + } + if (n) for (var _e10 of n) { +- B(c, _e10), B(h, _e10); ++ B(h, _e10), B(c, _e10); + } +- var l = c.map(e => this.viewItems[e]), +- f = c.map(e => i[e]), +- m = h.map(e => this.viewItems[e]), +- d = h.map(e => i[e]), +- p = c.reduce((e, t) => e + (this.viewItems[t].minimumSize - i[t]), 0), +- v = c.reduce((e, t) => e + (this.viewItems[t].maximumSize - i[t]), 0), +- y = 0 === h.length ? Number.POSITIVE_INFINITY : h.reduce((e, t) => e + (i[t] - this.viewItems[t].minimumSize), 0), +- b = 0 === h.length ? Number.NEGATIVE_INFINITY : h.reduce((e, t) => e + (i[t] - this.viewItems[t].maximumSize), 0), +- g = Math.max(p, b, s), ++ var l = h.map(e => this.viewItems[e]), ++ f = h.map(e => i[e]), ++ m = c.map(e => this.viewItems[e]), ++ d = c.map(e => i[e]), ++ p = h.reduce((e, t) => e + (this.viewItems[t].minimumSize - i[t]), 0), ++ v = h.reduce((e, t) => e + (this.viewItems[t].maximumSize - i[t]), 0), ++ y = 0 === c.length ? Number.POSITIVE_INFINITY : c.reduce((e, t) => e + (i[t] - this.viewItems[t].minimumSize), 0), ++ g = 0 === c.length ? Number.NEGATIVE_INFINITY : c.reduce((e, t) => e + (i[t] - this.viewItems[t].maximumSize), 0), ++ b = Math.max(p, g, s), + w = Math.min(y, v, o); + var S = !1; + if (a) { +@@ -1339,7 +1345,7 @@ class Ve extends H { + S = _i9 !== _e12.visible, _e12.setVisible(_i9, u.size); + } + if (S) return this.resize(e, t, i, n, r, s, o); +- for (var _e13 = 0, _i10 = t = z(t, g, w); _e13 < l.length; _e13++) { ++ for (var _e13 = 0, _i10 = t = z(t, b, w); _e13 < l.length; _e13++) { + var _t9 = l[_e13], + _n4 = z(f[_e13] + _i10, _t9.minimumSize, _t9.maximumSize); + _i10 -= _n4 - f[_e13], _t9.size = _n4; +@@ -1397,9 +1403,9 @@ class Ve extends H { + _s = R(_e16 + 1, this.viewItems.length), + _a2 = this.findFirstSnapIndex(_i12), + _u2 = this.findFirstSnapIndex(_s), +- _c = "number" == typeof _a2 && !this.viewItems[_a2].visible, +- _h = "number" == typeof _u2 && !this.viewItems[_u2].visible; +- _c && r[_e16] && (o > 0 || this.startSnappingEnabled) ? _n6.state = ve.Minimum : _h && t[_e16] && (o < this.contentSize || this.endSnappingEnabled) ? _n6.state = ve.Maximum : _n6.state = ve.Disabled; ++ _h = "number" == typeof _a2 && !this.viewItems[_a2].visible, ++ _c = "number" == typeof _u2 && !this.viewItems[_u2].visible; ++ _h && r[_e16] && (o > 0 || this.startSnappingEnabled) ? _n6.state = ve.Minimum : _c && t[_e16] && (o < this.contentSize || this.endSnappingEnabled) ? _n6.state = ve.Maximum : _n6.state = ve.Disabled; + } else _n6.state = _a && !_u ? ve.Minimum : !_a && _u ? ve.Maximum : ve.Enabled; + } + } +@@ -1415,7 +1421,7 @@ class Ve extends H { + } + } + } +-class Ee { ++class Ve { + constructor(e) { + this.size = void 0, this.size = e; + } +@@ -1439,43 +1445,43 @@ class Le { + return this.layoutStrategy.getPreferredSize(); + } + set preferredSize(e) { +- if ("number" == typeof e) this.layoutStrategy = new Ee(e);else if ("string" == typeof e) { ++ if ("number" == typeof e) this.layoutStrategy = new Ve(e);else if ("string" == typeof e) { + var _t15 = e.trim(); + if ($(_t15, "%")) { + var _e19 = Number(_t15.slice(0, -1)) / 100; + this.layoutStrategy = new je(_e19, this.layoutService); + } else if ($(_t15, "px")) { + var _e20 = Number(_t15.slice(0, -2)) / 100; +- this.layoutStrategy = new Ee(_e20); ++ this.layoutStrategy = new Ve(_e20); + } else if ("number" == typeof Number.parseFloat(_t15)) { + var _e21 = Number.parseFloat(_t15); +- this.layoutStrategy = new Ee(_e21); ++ this.layoutStrategy = new Ve(_e21); + } else this.layoutStrategy = new Ne(); + } else this.layoutStrategy = new Ne(); + } + constructor(e, t) { + var _t$priority; +- if (this.minimumSize = 0, this.maximumSize = Number.POSITIVE_INFINITY, this.element = void 0, this.priority = void 0, this.snap = void 0, this.layoutService = void 0, this.layoutStrategy = void 0, this.layoutService = e, this.element = t.element, this.minimumSize = "number" == typeof t.minimumSize ? t.minimumSize : 30, this.maximumSize = "number" == typeof t.maximumSize ? t.maximumSize : Number.POSITIVE_INFINITY, "number" == typeof t.preferredSize) this.layoutStrategy = new Ee(t.preferredSize);else if ("string" == typeof t.preferredSize) { ++ if (this.minimumSize = 0, this.maximumSize = Number.POSITIVE_INFINITY, this.element = void 0, this.priority = void 0, this.snap = void 0, this.layoutService = void 0, this.layoutStrategy = void 0, this.layoutService = e, this.element = t.element, this.minimumSize = "number" == typeof t.minimumSize ? t.minimumSize : 30, this.maximumSize = "number" == typeof t.maximumSize ? t.maximumSize : Number.POSITIVE_INFINITY, "number" == typeof t.preferredSize) this.layoutStrategy = new Ve(t.preferredSize);else if ("string" == typeof t.preferredSize) { + var _e22 = t.preferredSize.trim(); + if ($(_e22, "%")) { + var _t16 = Number(_e22.slice(0, -1)) / 100; + this.layoutStrategy = new je(_t16, this.layoutService); + } else if ($(_e22, "px")) { + var _t17 = Number(_e22.slice(0, -2)); +- this.layoutStrategy = new Ee(_t17); ++ this.layoutStrategy = new Ve(_t17); + } else if ("number" == typeof Number.parseFloat(_e22)) { + var _t18 = Number.parseFloat(_e22); +- this.layoutStrategy = new Ee(_t18); ++ this.layoutStrategy = new Ve(_t18); + } else this.layoutStrategy = new Ne(); + } else this.layoutStrategy = new Ne(); + this.priority = (_t$priority = t.priority) != null ? _t$priority : Se.Normal, this.snap = "boolean" == typeof t.snap && t.snap; + } + layout(e) {} + } +-function Oe(e) { ++function De(e) { + return void 0 !== e.minSize || void 0 !== e.maxSize || void 0 !== e.preferredSize || void 0 !== e.priority || void 0 !== e.visible; + } +-var Me = a((_ref3, n) => { ++var Oe = a((_ref3, n) => { + var { + className: t, + children: i +@@ -1485,55 +1491,57 @@ var Me = a((_ref3, n) => { + className: l("split-view-view", N, t) + }, i); + }); +-Me.displayName = "Allotment.Pane"; +-var Pe = a((_ref4, w) => { ++Oe.displayName = "Allotment.Pane"; ++var Me = a((_ref4, I) => { + var { + children: o, + className: a, +- maxSize: c = 1 / 0, +- minSize: h = 30, ++ maxSize: h = 1 / 0, ++ minSize: c = 30, + proportionalLayout: f = !0, + separator: m = !0, + sizes: d, + defaultSizes: p = d, + snap: v = !1, + vertical: y = !1, +- onChange: b, +- onReset: g, +- onVisibleChange: z ++ onChange: g, ++ onReset: b, ++ onVisibleChange: z, ++ onDragStart: w, ++ onDragEnd: S + } = _ref4; +- var S = t(null), +- I = t([]), +- E = t(new Map()), +- N = t(null), +- P = t(new Map()), +- D = t(new k()), +- A = t([]), +- [C, $] = i(!1); ++ var V = t(null), ++ N = t([]), ++ M = t(new Map()), ++ P = t(null), ++ A = t(new Map()), ++ C = t(new k()), ++ $ = t([]), ++ [H, Y] = i(!1); + "production" !== process.env.NODE_ENV && d && console.warn("Prop sizes is deprecated. Please use defaultSizes instead."); +- var H = s(() => e.Children.toArray(o).filter(e.isValidElement), [o]), +- Y = r(e => { +- var _A$current, _N$current; +- var t = (_A$current = A.current) == null ? void 0 : _A$current[e]; +- return "number" == typeof (t == null ? void 0 : t.preferredSize) && ((_N$current = N.current) != null && _N$current.resizeView(e, Math.round(t.preferredSize)), !0); ++ var B = s(() => e.Children.toArray(o).filter(e.isValidElement), [o]), ++ R = r(e => { ++ var _$$current, _P$current; ++ var t = (_$$current = $.current) == null ? void 0 : _$$current[e]; ++ return "number" == typeof (t == null ? void 0 : t.preferredSize) && ((_P$current = P.current) != null && _P$current.resizeView(e, Math.round(t.preferredSize)), !0); + }, []); +- return u(w, () => ({ ++ return u(I, () => ({ + reset: () => { +- if (g) g();else { +- var _N$current2; +- (_N$current2 = N.current) == null ? void 0 : _N$current2.distributeViewSizes(); +- for (var _e23 = 0; _e23 < A.current.length; _e23++) { +- Y(_e23); ++ if (b) b();else { ++ var _P$current2; ++ (_P$current2 = P.current) == null ? void 0 : _P$current2.distributeViewSizes(); ++ for (var _e23 = 0; _e23 < $.current.length; _e23++) { ++ R(_e23); + } + } + }, + resize: e => { +- var _N$current3; +- (_N$current3 = N.current) == null ? void 0 : _N$current3.resizeViews(e); ++ var _P$current3; ++ (_P$current3 = P.current) == null ? void 0 : _P$current3.resizeViews(e); + } + })), F(() => { + var e = !0; +- p && P.current.size !== p.length && (e = !1, console.warn("Expected " + p.length + " children based on defaultSizes but found " + P.current.size)), e && p && (I.current = H.map(e => e.key)); ++ p && A.current.size !== p.length && (e = !1, console.warn("Expected " + p.length + " children based on defaultSizes but found " + A.current.size)), e && p && (N.current = B.map(e => e.key)); + var t = _extends({ + orientation: y ? pe.Vertical : pe.Horizontal, + proportionalLayout: f +@@ -1542,76 +1550,76 @@ var Pe = a((_ref4, w) => { + size: p.reduce((e, t) => e + t, 0), + views: p.map((e, t) => { + var _i$minSize, _i$maxSize, _i$priority, _i$snap; +- var i = E.current.get(I.current[t]), +- n = new Le(D.current, _extends({ ++ var i = M.current.get(N.current[t]), ++ n = new Le(C.current, _extends({ + element: document.createElement("div"), +- minimumSize: (_i$minSize = i == null ? void 0 : i.minSize) != null ? _i$minSize : h, +- maximumSize: (_i$maxSize = i == null ? void 0 : i.maxSize) != null ? _i$maxSize : c, ++ minimumSize: (_i$minSize = i == null ? void 0 : i.minSize) != null ? _i$minSize : c, ++ maximumSize: (_i$maxSize = i == null ? void 0 : i.maxSize) != null ? _i$maxSize : h, + priority: (_i$priority = i == null ? void 0 : i.priority) != null ? _i$priority : Se.Normal + }, (i == null ? void 0 : i.preferredSize) && { + preferredSize: i == null ? void 0 : i.preferredSize + }, { + snap: (_i$snap = i == null ? void 0 : i.snap) != null ? _i$snap : v + })); +- return A.current.push(n), { +- container: [...P.current.values()][t], ++ return $.current.push(n), { ++ container: [...A.current.values()][t], + size: e, + view: n + }; + }) + } + }); +- N.current = new Ve(S.current, t, b), N.current.on("sashDragStart", () => { +- var _S$current; +- (_S$current = S.current) == null ? void 0 : _S$current.classList.add("split-view-sash-dragging"); +- }), N.current.on("sashDragEnd", () => { +- var _S$current2; +- (_S$current2 = S.current) == null ? void 0 : _S$current2.classList.remove("split-view-sash-dragging"); +- }), N.current.on("sashchange", e => { +- if (z && N.current) { +- var _e24 = H.map(e => e.key); ++ P.current = new Ee(V.current, t, g, w, S), P.current.on("sashDragStart", () => { ++ var _V$current; ++ (_V$current = V.current) == null ? void 0 : _V$current.classList.add("split-view-sash-dragging"); ++ }), P.current.on("sashDragEnd", () => { ++ var _V$current2; ++ (_V$current2 = V.current) == null ? void 0 : _V$current2.classList.remove("split-view-sash-dragging"); ++ }), P.current.on("sashchange", e => { ++ if (z && P.current) { ++ var _e24 = B.map(e => e.key); + for (var _t19 = 0; _t19 < _e24.length; _t19++) { +- var _i13 = E.current.get(_e24[_t19]); +- void 0 !== (_i13 == null ? void 0 : _i13.visible) && _i13.visible !== N.current.isViewVisible(_t19) && z(_t19, N.current.isViewVisible(_t19)); ++ var _i13 = M.current.get(_e24[_t19]); ++ void 0 !== (_i13 == null ? void 0 : _i13.visible) && _i13.visible !== P.current.isViewVisible(_t19) && z(_t19, P.current.isViewVisible(_t19)); + } + } +- }), N.current.on("sashreset", e => { +- if (g) g();else { +- var _N$current4; +- if (Y(e)) return; +- if (Y(e + 1)) return; +- (_N$current4 = N.current) == null ? void 0 : _N$current4.distributeViewSizes(); ++ }), P.current.on("sashreset", e => { ++ if (b) b();else { ++ var _P$current4; ++ if (R(e)) return; ++ if (R(e + 1)) return; ++ (_P$current4 = P.current) == null ? void 0 : _P$current4.distributeViewSizes(); + } + }); +- var i = N.current; ++ var i = P.current; + return () => { + i.dispose(); + }; + }, []), F(() => { +- if (C) { +- var _e25 = H.map(e => e.key), +- _t20 = [...I.current], +- _i14 = _e25.filter(e => !I.current.includes(e)), +- _n7 = _e25.filter(e => I.current.includes(e)), +- _r4 = I.current.map(t => !_e25.includes(t)); ++ if (H) { ++ var _e25 = B.map(e => e.key), ++ _t20 = [...N.current], ++ _i14 = _e25.filter(e => !N.current.includes(e)), ++ _n7 = _e25.filter(e => N.current.includes(e)), ++ _r4 = N.current.map(t => !_e25.includes(t)); + for (var _e26 = _r4.length - 1; _e26 >= 0; _e26--) { +- var _N$current5; +- _r4[_e26] && ((_N$current5 = N.current) != null && _N$current5.removeView(_e26), _t20.splice(_e26, 1), A.current.splice(_e26, 1)); ++ var _P$current5; ++ _r4[_e26] && ((_P$current5 = P.current) != null && _P$current5.removeView(_e26), _t20.splice(_e26, 1), $.current.splice(_e26, 1)); + } + var _loop = function _loop(_n8) { +- var _i$minSize2, _i$maxSize2, _i$priority2, _i$snap2, _N$current7; +- var i = E.current.get(_n8), +- r = new Le(D.current, _extends({ ++ var _i$minSize2, _i$maxSize2, _i$priority2, _i$snap2, _P$current7; ++ var i = M.current.get(_n8), ++ r = new Le(C.current, _extends({ + element: document.createElement("div"), +- minimumSize: (_i$minSize2 = i == null ? void 0 : i.minSize) != null ? _i$minSize2 : h, +- maximumSize: (_i$maxSize2 = i == null ? void 0 : i.maxSize) != null ? _i$maxSize2 : c, ++ minimumSize: (_i$minSize2 = i == null ? void 0 : i.minSize) != null ? _i$minSize2 : c, ++ maximumSize: (_i$maxSize2 = i == null ? void 0 : i.maxSize) != null ? _i$maxSize2 : h, + priority: (_i$priority2 = i == null ? void 0 : i.priority) != null ? _i$priority2 : Se.Normal + }, (i == null ? void 0 : i.preferredSize) && { + preferredSize: i == null ? void 0 : i.preferredSize + }, { + snap: (_i$snap2 = i == null ? void 0 : i.snap) != null ? _i$snap2 : v + })); +- (_N$current7 = N.current) != null && _N$current7.addView(P.current.get(_n8), r, ze.Distribute, _e25.findIndex(e => e === _n8)), _t20.splice(_e25.findIndex(e => e === _n8), 0, _n8), A.current.splice(_e25.findIndex(e => e === _n8), 0, r); ++ (_P$current7 = P.current) != null && _P$current7.addView(A.current.get(_n8), r, ze.Distribute, _e25.findIndex(e => e === _n8)), _t20.splice(_e25.findIndex(e => e === _n8), 0, _n8), $.current.splice(_e25.findIndex(e => e === _n8), 0, r); + }; + for (var _n8 of _i14) { + _loop(_n8); +@@ -1620,8 +1628,8 @@ var Pe = a((_ref4, w) => { + var _loop2 = function _loop2(_i15, _n9) { + var e = _t20.findIndex(e => e === _n9); + if (e !== _i15) { +- var _N$current6; +- (_N$current6 = N.current) == null ? void 0 : _N$current6.moveView(P.current.get(_n9), e, _i15); ++ var _P$current6; ++ (_P$current6 = P.current) == null ? void 0 : _P$current6.moveView(A.current.get(_n9), e, _i15); + var _r5 = _t20[e]; + _t20.splice(e, 1), _t20.splice(_i15, 0, _r5); + return "break"; +@@ -1633,95 +1641,99 @@ var Pe = a((_ref4, w) => { + } + } + var _loop3 = function _loop3(_t21) { +- var _N$current8; ++ var _P$current8; + var i = _e25.findIndex(e => e === _t21), +- n = A.current[i].preferredSize; +- void 0 !== n && ((_N$current8 = N.current) == null ? void 0 : _N$current8.resizeView(i, n)); ++ n = $.current[i].preferredSize; ++ void 0 !== n && ((_P$current8 = P.current) == null ? void 0 : _P$current8.resizeView(i, n)); + }; + for (var _t21 of _i14) { + _loop3(_t21); + } + var _loop4 = function _loop4(_t22) { +- var _N$current9, _N$current10; +- var i = E.current.get(_t22), ++ var _P$current9, _P$current10; ++ var i = M.current.get(_t22), + n = _e25.findIndex(e => e === _t22); +- i && Oe(i) && void 0 !== i.visible && ((_N$current9 = N.current) == null ? void 0 : _N$current9.isViewVisible(n)) !== i.visible && ((_N$current10 = N.current) == null ? void 0 : _N$current10.setViewVisible(n, i.visible)); ++ i && De(i) && void 0 !== i.visible && ((_P$current9 = P.current) == null ? void 0 : _P$current9.isViewVisible(n)) !== i.visible && ((_P$current10 = P.current) == null ? void 0 : _P$current10.setViewVisible(n, i.visible)); + }; + for (var _t22 of [..._i14, ..._n7]) { + _loop4(_t22); + } + var _loop5 = function _loop5(_t23) { +- var i = E.current.get(_t23), ++ var i = M.current.get(_t23), + n = _e25.findIndex(e => e === _t23); +- if (i && Oe(i)) { +- var _N$current11; +- void 0 !== i.preferredSize && A.current[n].preferredSize !== i.preferredSize && (A.current[n].preferredSize = i.preferredSize); ++ if (i && De(i)) { ++ var _P$current11; ++ void 0 !== i.preferredSize && $.current[n].preferredSize !== i.preferredSize && ($.current[n].preferredSize = i.preferredSize); + var _e27 = !1; +- void 0 !== i.minSize && A.current[n].minimumSize !== i.minSize && (A.current[n].minimumSize = i.minSize, _e27 = !0), void 0 !== i.maxSize && A.current[n].maximumSize !== i.maxSize && (A.current[n].maximumSize = i.maxSize, _e27 = !0), _e27 && ((_N$current11 = N.current) == null ? void 0 : _N$current11.layout()); ++ void 0 !== i.minSize && $.current[n].minimumSize !== i.minSize && ($.current[n].minimumSize = i.minSize, _e27 = !0), void 0 !== i.maxSize && $.current[n].maximumSize !== i.maxSize && ($.current[n].maximumSize = i.maxSize, _e27 = !0), _e27 && ((_P$current11 = P.current) == null ? void 0 : _P$current11.layout()); + } + }; + for (var _t23 of _n7) { + _loop5(_t23); + } +- (_i14.length > 0 || _r4.length > 0) && (I.current = _e25); ++ (_i14.length > 0 || _r4.length > 0) && (N.current = _e25); + } +- }, [H, C, c, h, v]), n(() => { +- N.current && (N.current.onDidChange = b); +- }, [b]), x({ +- ref: S, ++ }, [B, H, h, c, v]), n(() => { ++ P.current && (P.current.onDidChange = g); ++ }, [g]), n(() => { ++ P.current && (P.current.onDidDragStart = w); ++ }, [w]), n(() => { ++ P.current && (P.current.onDidDragEnd = S); ++ }, [S]), x({ ++ ref: V, + onResize: _ref5 => { +- var _N$current12; ++ var _P$current12; + var { + width: e, + height: t + } = _ref5; +- e && t && ((_N$current12 = N.current) != null && _N$current12.layout(y ? t : e), D.current.setSize(y ? t : e), $(!0)); ++ e && t && ((_P$current12 = P.current) != null && _P$current12.layout(y ? t : e), C.current.setSize(y ? t : e), Y(!0)); + } + }), F(() => { +- if (!C) { +- var _N$current13; ++ if (!H) { ++ var _P$current13; + var { + height: _e28, + width: _t24 +- } = S.current.getBoundingClientRect(); +- (_N$current13 = N.current) != null && _N$current13.layout(y ? _e28 : _t24), D.current.setSize(y ? _e28 : _t24), $(!0); ++ } = V.current.getBoundingClientRect(); ++ (_P$current13 = P.current) != null && _P$current13.layout(y ? _e28 : _t24), C.current.setSize(y ? _e28 : _t24), Y(!0); + } +- }, [C, y]), n(() => { +- T && De(20); ++ }, [H, y]), n(() => { ++ T && Pe(20); + }, []), e.createElement("div", { +- ref: S, ++ ref: V, + className: l("split-view", y ? "split-view-vertical" : "split-view-horizontal", { + "split-view-separator-border": m +- }, V, y ? L : O, { +- [M]: m ++ }, E, y ? L : D, { ++ [O]: m + }, a) + }, e.createElement("div", { + className: l("split-view-container", j) + }, e.Children.toArray(o).map(t => { + if (!e.isValidElement(t)) return null; + var i = t.key; +- return "Allotment.Pane" === t.type.displayName ? (E.current.set(i, t.props), e.cloneElement(t, { ++ return "Allotment.Pane" === t.type.displayName ? (M.current.set(i, t.props), e.cloneElement(t, { + key: i, + ref: e => { +- e ? P.current.set(i, e) : P.current.delete(i); ++ e ? A.current.set(i, e) : A.current.delete(i); + } +- })) : e.createElement(Me, { ++ })) : e.createElement(Oe, { + key: i, + ref: e => { +- e ? P.current.set(i, e) : P.current.delete(i); ++ e ? A.current.set(i, e) : A.current.delete(i); + } + }, t); + }))); + }); +-function De(e) { ++function Pe(e) { + var t = z(e, 4, 20), + i = z(e, 1, 8); + document.documentElement.style.setProperty("--sash-size", t + "px"), document.documentElement.style.setProperty("--sash-hover-size", i + "px"), function (e) { +- ye = e, be.emit("onDidChangeGlobalSize", e); ++ ye = e, ge.emit("onDidChangeGlobalSize", e); + }(t); + } +-Pe.displayName = "Allotment"; +-var Ae = Object.assign(Pe, { +- Pane: Me ++Me.displayName = "Allotment"; ++var Ae = Object.assign(Me, { ++ Pane: Oe + }); +-export { Ae as Allotment, Se as LayoutPriority, De as setSashSize }; ++export { Ae as Allotment, Se as LayoutPriority, Pe as setSashSize }; +diff --git a/node_modules/allotment/dist/types/src/allotment.d.ts b/node_modules/allotment/dist/types/src/allotment.d.ts +index 5c8613c..c9ae4e2 100644 +--- a/node_modules/allotment/dist/types/src/allotment.d.ts ++++ b/node_modules/allotment/dist/types/src/allotment.d.ts +@@ -68,6 +68,10 @@ export type AllotmentProps = { + onReset?: () => void; + /** Callback on visibility change */ + onVisibleChange?: (index: number, visible: boolean) => void; ++ /** Callback on drag start */ ++ onDragStart?: (sizes: number[]) => void; ++ /** Callback on drag end */ ++ onDragEnd?: (sizes: number[]) => void; + } & CommonProps; + /** + * Set sash size. This is set in both css and js and this function keeps the two in sync. +@@ -96,6 +100,10 @@ declare const _default: React.ForwardRefExoticComponent<{ + onReset?: (() => void) | undefined; + /** Callback on visibility change */ + onVisibleChange?: ((index: number, visible: boolean) => void) | undefined; ++ /** Callback on drag start */ ++ onDragStart?: ((sizes: number[]) => void) | undefined; ++ /** Callback on drag end */ ++ onDragEnd?: ((sizes: number[]) => void) | undefined; + } & CommonProps & React.RefAttributes> & { + Pane: React.ForwardRefExoticComponent<{ + children: React.ReactNode; +@@ -114,4 +122,3 @@ declare const _default: React.ForwardRefExoticComponent<{ + } & CommonProps & React.RefAttributes>; + }; + export default _default; +-//# sourceMappingURL=allotment.d.ts.map +\ No newline at end of file +diff --git a/node_modules/allotment/dist/types/src/helpers/array.d.ts b/node_modules/allotment/dist/types/src/helpers/array.d.ts +index 145fc21..549c217 100644 +--- a/node_modules/allotment/dist/types/src/helpers/array.d.ts ++++ b/node_modules/allotment/dist/types/src/helpers/array.d.ts +@@ -14,4 +14,3 @@ export declare function pushToEnd(arr: T[], value: T): void; + * @param step If step is positive, the last element is the largest start + i * step less than stop; if step is negative, the last element is the smallest start + i * step greater than stop + */ + export declare function range(start: number, stop: number, step?: number): number[]; +-//# sourceMappingURL=array.d.ts.map +\ No newline at end of file +diff --git a/node_modules/allotment/dist/types/src/helpers/disposable.d.ts b/node_modules/allotment/dist/types/src/helpers/disposable.d.ts +index 9817f3b..3e39ca7 100644 +--- a/node_modules/allotment/dist/types/src/helpers/disposable.d.ts ++++ b/node_modules/allotment/dist/types/src/helpers/disposable.d.ts +@@ -4,4 +4,3 @@ + export interface Disposable { + dispose(): void; + } +-//# sourceMappingURL=disposable.d.ts.map +\ No newline at end of file +diff --git a/node_modules/allotment/dist/types/src/helpers/platform.d.ts b/node_modules/allotment/dist/types/src/helpers/platform.d.ts +index 2f69dbd..92df6e0 100644 +--- a/node_modules/allotment/dist/types/src/helpers/platform.d.ts ++++ b/node_modules/allotment/dist/types/src/helpers/platform.d.ts +@@ -1,3 +1,2 @@ + export declare const isIOS: boolean; + export declare const isMacintosh: boolean; +-//# sourceMappingURL=platform.d.ts.map +\ No newline at end of file +diff --git a/node_modules/allotment/dist/types/src/helpers/string.d.ts b/node_modules/allotment/dist/types/src/helpers/string.d.ts +index ecfd781..5fe9101 100644 +--- a/node_modules/allotment/dist/types/src/helpers/string.d.ts ++++ b/node_modules/allotment/dist/types/src/helpers/string.d.ts +@@ -2,4 +2,3 @@ + * Checks if `string` ends with the given target string. + */ + export declare function endsWith(string: string, target: string): boolean; +-//# sourceMappingURL=string.d.ts.map +\ No newline at end of file +diff --git a/node_modules/allotment/dist/types/src/helpers/use-isomorphic-layout-effect.d.ts b/node_modules/allotment/dist/types/src/helpers/use-isomorphic-layout-effect.d.ts +index 12d411c..2e046b5 100644 +--- a/node_modules/allotment/dist/types/src/helpers/use-isomorphic-layout-effect.d.ts ++++ b/node_modules/allotment/dist/types/src/helpers/use-isomorphic-layout-effect.d.ts +@@ -1,4 +1,3 @@ + import { useLayoutEffect } from "react"; + declare const useIsomorphicLayoutEffect: typeof useLayoutEffect; + export default useIsomorphicLayoutEffect; +-//# sourceMappingURL=use-isomorphic-layout-effect.d.ts.map +\ No newline at end of file +diff --git a/node_modules/allotment/dist/types/src/index.d.ts b/node_modules/allotment/dist/types/src/index.d.ts +index b52d5a1..1a069b2 100644 +--- a/node_modules/allotment/dist/types/src/index.d.ts ++++ b/node_modules/allotment/dist/types/src/index.d.ts +@@ -1,4 +1,3 @@ + export type { AllotmentHandle, AllotmentProps } from "./allotment"; + export { default as Allotment, setSashSize } from "./allotment"; + export { LayoutPriority } from "./split-view"; +-//# sourceMappingURL=index.d.ts.map +\ No newline at end of file +diff --git a/node_modules/allotment/dist/types/src/layout-service/index.d.ts b/node_modules/allotment/dist/types/src/layout-service/index.d.ts +index 448eb86..0bc9a3b 100644 +--- a/node_modules/allotment/dist/types/src/layout-service/index.d.ts ++++ b/node_modules/allotment/dist/types/src/layout-service/index.d.ts +@@ -1,2 +1 @@ + export * from "./layout-service"; +-//# sourceMappingURL=index.d.ts.map +\ No newline at end of file +diff --git a/node_modules/allotment/dist/types/src/layout-service/layout-service.d.ts b/node_modules/allotment/dist/types/src/layout-service/layout-service.d.ts +index 5972557..eded98e 100644 +--- a/node_modules/allotment/dist/types/src/layout-service/layout-service.d.ts ++++ b/node_modules/allotment/dist/types/src/layout-service/layout-service.d.ts +@@ -3,4 +3,3 @@ export declare class LayoutService { + getSize(): number; + setSize(size: number): void; + } +-//# sourceMappingURL=layout-service.d.ts.map +\ No newline at end of file +diff --git a/node_modules/allotment/dist/types/src/pane-view/index.d.ts b/node_modules/allotment/dist/types/src/pane-view/index.d.ts +index be6285c..a1c43a8 100644 +--- a/node_modules/allotment/dist/types/src/pane-view/index.d.ts ++++ b/node_modules/allotment/dist/types/src/pane-view/index.d.ts +@@ -1,2 +1 @@ + export * from "./pane-view"; +-//# sourceMappingURL=index.d.ts.map +\ No newline at end of file +diff --git a/node_modules/allotment/dist/types/src/pane-view/pane-view.d.ts b/node_modules/allotment/dist/types/src/pane-view/pane-view.d.ts +index 89cb012..add7214 100644 +--- a/node_modules/allotment/dist/types/src/pane-view/pane-view.d.ts ++++ b/node_modules/allotment/dist/types/src/pane-view/pane-view.d.ts +@@ -38,4 +38,3 @@ export declare class PaneView implements View { + constructor(layoutService: LayoutService, options: PaneViewOptions); + layout(_size: number): void; + } +-//# sourceMappingURL=pane-view.d.ts.map +\ No newline at end of file +diff --git a/node_modules/allotment/dist/types/src/sash/index.d.ts b/node_modules/allotment/dist/types/src/sash/index.d.ts +index d141335..75e84c8 100644 +--- a/node_modules/allotment/dist/types/src/sash/index.d.ts ++++ b/node_modules/allotment/dist/types/src/sash/index.d.ts +@@ -1,2 +1 @@ + export * from "./sash"; +-//# sourceMappingURL=index.d.ts.map +\ No newline at end of file +diff --git a/node_modules/allotment/dist/types/src/sash/sash.d.ts b/node_modules/allotment/dist/types/src/sash/sash.d.ts +index a8b0605..cd59e61 100644 +--- a/node_modules/allotment/dist/types/src/sash/sash.d.ts ++++ b/node_modules/allotment/dist/types/src/sash/sash.d.ts +@@ -98,4 +98,3 @@ export declare class Sash extends EventEmitter implements Disposable { + layout(): void; + dispose(): void; + } +-//# sourceMappingURL=sash.d.ts.map +\ No newline at end of file +diff --git a/node_modules/allotment/dist/types/src/split-view/index.d.ts b/node_modules/allotment/dist/types/src/split-view/index.d.ts +index a83faf1..e3a18c0 100644 +--- a/node_modules/allotment/dist/types/src/split-view/index.d.ts ++++ b/node_modules/allotment/dist/types/src/split-view/index.d.ts +@@ -1,2 +1 @@ + export * from "./split-view"; +-//# sourceMappingURL=index.d.ts.map +\ No newline at end of file +diff --git a/node_modules/allotment/dist/types/src/split-view/split-view.d.ts b/node_modules/allotment/dist/types/src/split-view/split-view.d.ts +index d01523a..24aec50 100644 +--- a/node_modules/allotment/dist/types/src/split-view/split-view.d.ts ++++ b/node_modules/allotment/dist/types/src/split-view/split-view.d.ts +@@ -141,6 +141,8 @@ export interface View { + */ + export declare class SplitView extends EventEmitter implements Disposable { + onDidChange: ((sizes: number[]) => void) | undefined; ++ onDidDragStart: ((sizes: number[]) => void) | undefined; ++ onDidDragEnd: ((sizes: number[]) => void) | undefined; + /** This {@link SplitView}'s orientation. */ + readonly orientation: Orientation; + private sashContainer; +@@ -165,7 +167,7 @@ export declare class SplitView extends EventEmitter implements Disposable { + */ + set endSnappingEnabled(endSnappingEnabled: boolean); + /** Create a new {@link SplitView} instance. */ +- constructor(container: HTMLElement, options?: SplitViewOptions, onDidChange?: (sizes: number[]) => void); ++ constructor(container: HTMLElement, options?: SplitViewOptions, onDidChange?: (sizes: number[]) => void, onDidDragStart?: (sizes: number[]) => void, onDidDragEnd?: (sizes: number[]) => void); + /** + * Add a {@link View view} to this {@link SplitView}. + * +@@ -244,4 +246,3 @@ export declare class SplitView extends EventEmitter implements Disposable { + private updateSashEnablement; + private findFirstSnapIndex; + } +-//# sourceMappingURL=split-view.d.ts.map +\ No newline at end of file +diff --git a/node_modules/allotment/dist/types/src/split-view/split-view.test.d.ts b/node_modules/allotment/dist/types/src/split-view/split-view.test.d.ts +index e047a61..cb0ff5c 100644 +--- a/node_modules/allotment/dist/types/src/split-view/split-view.test.d.ts ++++ b/node_modules/allotment/dist/types/src/split-view/split-view.test.d.ts +@@ -1,2 +1 @@ + export {}; +-//# sourceMappingURL=split-view.test.d.ts.map +\ No newline at end of file +diff --git a/node_modules/allotment/dist/types/stories/advanced.stories.d.ts b/node_modules/allotment/dist/types/stories/advanced.stories.d.ts +new file mode 100644 +index 0000000..52db56b +--- /dev/null ++++ b/node_modules/allotment/dist/types/stories/advanced.stories.d.ts +@@ -0,0 +1,5 @@ ++import "@vscode/codicons/dist/codicon.css"; ++import { Meta, Story } from "@storybook/react"; ++declare const _default: Meta; ++export default _default; ++export declare const VisualStudioCode: Story; +diff --git a/node_modules/allotment/dist/types/stories/basic.stories.d.ts b/node_modules/allotment/dist/types/stories/basic.stories.d.ts +new file mode 100644 +index 0000000..29c0a49 +--- /dev/null ++++ b/node_modules/allotment/dist/types/stories/basic.stories.d.ts +@@ -0,0 +1,54 @@ ++/// ++import { Meta, Story } from "@storybook/react"; ++import { AllotmentProps } from "../src"; ++declare const _default: Meta; ++export default _default; ++export declare const Simple: Story; ++export declare const Vertical: Story<{ ++ children: import("react").ReactNode; ++ defaultSizes?: number[] | undefined; ++ proportionalLayout?: boolean | undefined; ++ separator?: boolean | undefined; ++ sizes?: number[] | undefined; ++ vertical?: boolean | undefined; ++ onChange?: ((sizes: number[]) => void) | undefined; ++ onReset?: (() => void) | undefined; ++ onVisibleChange?: ((index: number, visible: boolean) => void) | undefined; ++ onDragStart?: ((sizes: number[]) => void) | undefined; ++ onDragEnd?: ((sizes: number[]) => void) | undefined; ++} & import("../src/allotment").CommonProps & { ++ numViews: number; ++}>; ++export declare const Horizontal: Story<{ ++ children: import("react").ReactNode; ++ defaultSizes?: number[] | undefined; ++ proportionalLayout?: boolean | undefined; ++ separator?: boolean | undefined; ++ sizes?: number[] | undefined; ++ vertical?: boolean | undefined; ++ onChange?: ((sizes: number[]) => void) | undefined; ++ onReset?: (() => void) | undefined; ++ onVisibleChange?: ((index: number, visible: boolean) => void) | undefined; ++ onDragStart?: ((sizes: number[]) => void) | undefined; ++ onDragEnd?: ((sizes: number[]) => void) | undefined; ++} & import("../src/allotment").CommonProps & { ++ numViews: number; ++}>; ++export declare const PersistSizes: Story<{ ++ numViews: number; ++ vertical: boolean; ++}>; ++export declare const Nested: Story; ++export declare const Closable: Story; ++export declare const Reset: Story; ++export declare const CustomReset: Story; ++export declare const Resize: Story; ++export declare const DefaultSize: Story; ++export declare const ConfigureSash: Story; ++export declare const PaneClassName: Story; ++export declare const Visible: Story; ++export declare const VisibleWithAnimation: Story; ++export declare const OnReset: Story; ++export declare const FixedSize: Story; ++export declare const PreferredSize: Story; ++export declare const NoSeparator: Story; +diff --git a/node_modules/allotment/dist/types/stories/components/activity-bar.d.ts b/node_modules/allotment/dist/types/stories/components/activity-bar.d.ts +new file mode 100644 +index 0000000..0391c77 +--- /dev/null ++++ b/node_modules/allotment/dist/types/stories/components/activity-bar.d.ts +@@ -0,0 +1,7 @@ ++import "@vscode/codicons/dist/codicon.css"; ++export type ActivityBarProps = { ++ checked: number; ++ items: string[]; ++ onClick: (index: number) => void; ++}; ++export declare const ActivityBar: ({ checked, items, onClick }: ActivityBarProps) => JSX.Element; +diff --git a/node_modules/allotment/dist/types/stories/components/app/app.d.ts b/node_modules/allotment/dist/types/stories/components/app/app.d.ts +new file mode 100644 +index 0000000..a746308 +--- /dev/null ++++ b/node_modules/allotment/dist/types/stories/components/app/app.d.ts +@@ -0,0 +1,24 @@ ++export interface Document { ++ title: string; ++ icon: string; ++} ++export declare const ACTIVITIES: string[]; ++export declare const DOCUMENTS: { ++ title: string; ++ icon: string; ++}[]; ++export type AppProps = { ++ activity: number; ++ activityBar: boolean; ++ editorVisible: boolean; ++ openEditors: Document[]; ++ panelVisible: boolean; ++ primarySideBar: boolean; ++ primarySideBarPosition: "left" | "right"; ++ secondarySideBar: boolean; ++ onActivityChanged: (activity: number) => void; ++ onEditorVisibleChanged: (visible: boolean) => void; ++ onOpenEditorsChanged: (documents: Document[]) => void; ++ onPanelVisibleChanged: (visible: boolean) => void; ++}; ++export declare const App: ({ activity, activityBar, editorVisible, openEditors, panelVisible, primarySideBar, primarySideBarPosition, secondarySideBar, onActivityChanged, onEditorVisibleChanged, onOpenEditorsChanged, onPanelVisibleChanged, }: AppProps) => JSX.Element; +diff --git a/node_modules/allotment/dist/types/stories/components/app/index.d.ts b/node_modules/allotment/dist/types/stories/components/app/index.d.ts +new file mode 100644 +index 0000000..ac5307d +--- /dev/null ++++ b/node_modules/allotment/dist/types/stories/components/app/index.d.ts +@@ -0,0 +1 @@ ++export * from "./app"; +diff --git a/node_modules/allotment/dist/types/stories/components/auxiliary-bar.d.ts b/node_modules/allotment/dist/types/stories/components/auxiliary-bar.d.ts +new file mode 100644 +index 0000000..21e7290 +--- /dev/null ++++ b/node_modules/allotment/dist/types/stories/components/auxiliary-bar.d.ts +@@ -0,0 +1,2 @@ ++export type AuxiliaryBarProps = {}; ++export declare const AuxiliaryBar: ({}: AuxiliaryBarProps) => JSX.Element; +diff --git a/node_modules/allotment/dist/types/stories/components/editor-group-container.d.ts b/node_modules/allotment/dist/types/stories/components/editor-group-container.d.ts +new file mode 100644 +index 0000000..38986f7 +--- /dev/null ++++ b/node_modules/allotment/dist/types/stories/components/editor-group-container.d.ts +@@ -0,0 +1,9 @@ ++export type EditorGroupContainerProps = { ++ document: { ++ title: string; ++ icon: string; ++ }; ++ onClose: () => void; ++ onSplitEditor: () => void; ++}; ++export declare const EditorGroupContainer: ({ document, onClose, onSplitEditor, }: EditorGroupContainerProps) => JSX.Element; +diff --git a/node_modules/allotment/dist/types/stories/components/editor.d.ts b/node_modules/allotment/dist/types/stories/components/editor.d.ts +new file mode 100644 +index 0000000..90f87d8 +--- /dev/null ++++ b/node_modules/allotment/dist/types/stories/components/editor.d.ts +@@ -0,0 +1,7 @@ ++import "@vscode/codicons/dist/codicon.css"; ++import { Document } from "./app"; ++export type EditorProps = { ++ documents: Document[]; ++ onDocumentsChange: (documents: Document[]) => void; ++}; ++export declare const Editor: ({ documents, onDocumentsChange }: EditorProps) => JSX.Element; +diff --git a/node_modules/allotment/dist/types/stories/components/index.d.ts b/node_modules/allotment/dist/types/stories/components/index.d.ts +new file mode 100644 +index 0000000..ac5307d +--- /dev/null ++++ b/node_modules/allotment/dist/types/stories/components/index.d.ts +@@ -0,0 +1 @@ ++export * from "./app"; +diff --git a/node_modules/allotment/dist/types/stories/components/pane.d.ts b/node_modules/allotment/dist/types/stories/components/pane.d.ts +new file mode 100644 +index 0000000..0bc1976 +--- /dev/null ++++ b/node_modules/allotment/dist/types/stories/components/pane.d.ts +@@ -0,0 +1,7 @@ ++/// ++export type PaneProps = { ++ children: React.ReactNode; ++ expanded: boolean; ++ title: string; ++}; ++export declare const Pane: ({ children, expanded, title }: PaneProps) => JSX.Element; +diff --git a/node_modules/allotment/dist/types/stories/components/panel.d.ts b/node_modules/allotment/dist/types/stories/components/panel.d.ts +new file mode 100644 +index 0000000..415d2e0 +--- /dev/null ++++ b/node_modules/allotment/dist/types/stories/components/panel.d.ts +@@ -0,0 +1,8 @@ ++import "xterm/css/xterm.css"; ++export type PanelProps = { ++ maximized: boolean; ++ onClose: () => void; ++ onMaximize: () => void; ++ onMinimize: () => void; ++}; ++export declare const Panel: ({ maximized, onClose, onMaximize, onMinimize, }: PanelProps) => JSX.Element; +diff --git a/node_modules/allotment/dist/types/stories/components/sidebar.d.ts b/node_modules/allotment/dist/types/stories/components/sidebar.d.ts +new file mode 100644 +index 0000000..6018dda +--- /dev/null ++++ b/node_modules/allotment/dist/types/stories/components/sidebar.d.ts +@@ -0,0 +1,8 @@ ++import { Document } from "./app"; ++export type SidebarProps = { ++ title: string; ++ documents: Document[]; ++ openEditors: Document[]; ++ onOpenEditorsChange: (documents: Document[]) => void; ++}; ++export declare const Sidebar: ({ title, documents, openEditors, onOpenEditorsChange, }: SidebarProps) => JSX.Element; +diff --git a/node_modules/allotment/dist/types/stories/content.d.ts b/node_modules/allotment/dist/types/stories/content.d.ts +new file mode 100644 +index 0000000..0833742 +--- /dev/null ++++ b/node_modules/allotment/dist/types/stories/content.d.ts +@@ -0,0 +1 @@ ++export declare const Content: () => JSX.Element; diff --git a/apps/web/src/views/topics.js b/apps/web/src/views/topics.js index c7ddfdc04..05ab83df5 100644 --- a/apps/web/src/views/topics.js +++ b/apps/web/src/views/topics.js @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -import { useEffect, useState } from "react"; +import { useCallback, useEffect, useRef, useState } from "react"; import ListContainer from "../components/list-container"; import { useStore as useNbStore } from "../stores/notebook-store"; import { useStore as useAppStore } from "../stores/app-store"; @@ -42,6 +42,14 @@ import { showSortMenu } from "../components/group-header"; function Notebook() { const [isCollapsed, setIsCollapsed] = useState(false); + /** + * @type {React.RefObject} + */ + const paneRef = useRef(null); + /** + * @type {React.RefObject<[number, number]>} + */ + const sizes = useRef([]); const selectedNotebook = useNbStore((store) => store.selectedNotebook); const refresh = useNbStore((store) => store.setSelectedNotebook); @@ -60,6 +68,22 @@ function Notebook() { refresh(context.value.id); }, [selectedNotebook, context, refresh]); + useEffect(() => { + toggleCollapse(isCollapsed); + }, [isCollapsed, toggleCollapse]); + + const toggleCollapse = useCallback((isCollapsed) => { + if (!paneRef.current || !sizes.current) return; + + if (!isCollapsed) { + if (sizes.current[1] < 60) { + paneRef.current.reset(); + } else { + paneRef.current.resize(sizes.current); + } + } + }, []); + if (!context) return null; return ( <> @@ -91,7 +115,19 @@ function Notebook() { ))} ) : null} - + { + const [_, topicsPane] = paneSizes; + if (topicsPane > 30 && !isCollapsed) sizes.current = paneSizes; + }} + onDragEnd={([_, topicsPane]) => { + if (topicsPane < 35 && !isCollapsed) { + setIsCollapsed(true); + } + }} + > { + setIsCollapsed((isCollapsed) => !isCollapsed); + }} /> @@ -137,10 +175,15 @@ function Notebook() { } export default Notebook; -function Topics({ selectedNotebook, isCollapsed, setIsCollapsed }) { +function Topics({ selectedNotebook, isCollapsed, onClick }) { const refresh = useNbStore((store) => store.setSelectedNotebook); const topics = useNbStore((store) => store.selectedNotebookTopics); + // sometimes the onClick event is triggered on dragEnd + // which shouldn't happen. To prevent that we make sure + // that onMouseDown & onMouseUp events got called. + const mouseEventCounter = useRef(0); + if (!selectedNotebook) return null; return ( @@ -152,7 +195,16 @@ function Topics({ selectedNotebook, isCollapsed, setIsCollapsed }) { justifyContent: "space-between", cursor: "pointer" }} - onClick={() => setIsCollapsed((s) => !s)} + onMouseDown={() => { + mouseEventCounter.current = 1; + }} + onMouseUp={() => { + mouseEventCounter.current++; + }} + onClick={() => { + if (mouseEventCounter.current === 2) onClick(); + mouseEventCounter.current = 0; + }} > {isCollapsed ? (