@vitessce/comparative 3.9.7 → 3.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{OrbitControls-kGcNLG0l.js → OrbitControls-CB4_BqU2.js} +1 -1
- package/dist/{ReactNeuroglancer-BtggQLeE.js → ReactNeuroglancer-CE5BWIK4.js} +487 -456
- package/dist/{deflate-jEXLdN2d.js → deflate-CtA97hlB.js} +1 -1
- package/dist/{higlass-DaUGvOUd.js → higlass-D2gNX31w.js} +1 -1
- package/dist/{index-BlHlPnNM.js → index-B9IWYFLb.js} +52846 -52707
- package/dist/{index-ByPsZX9d.js → index-Btns1g6n.js} +2 -2
- package/dist/{index-5cOAIUcH.js → index-SC5sO708.js} +3 -3
- package/dist/index.min.js +1 -1
- package/dist/{jpeg-BhB1s0Cg.js → jpeg-CaNYi5CO.js} +1 -1
- package/dist/{lerc-RGuForS6.js → lerc-ck2zboQd.js} +1 -1
- package/dist/{lzw-C4W9Igdz.js → lzw-Bb-3ohV3.js} +1 -1
- package/dist/{packbits-DSyapts6.js → packbits-CFMBkL5y.js} +1 -1
- package/dist/{raw-DsnnSO3c.js → raw-D3Ae4W6p.js} +1 -1
- package/dist/{troika-three-text.esm-DljcI9bb.js → troika-three-text.esm-CW_spfgD.js} +1 -1
- package/dist/{webimage-DoT-o5Ce.js → webimage-pBpOzOWO.js} +1 -1
- package/package.json +11 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var p_ = Object.defineProperty;
|
|
2
2
|
var g_ = (i, e, t) => e in i ? p_(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
3
|
var Qn = (i, e, t) => g_(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { aI as Qe, b2 as m_, b3 as Ot, b4 as ut, b5 as Hv, b6 as qv, b7 as Gk, b8 as jv, b9 as
|
|
4
|
+
import { aI as Qe, b2 as m_, b3 as Ot, b4 as ut, b5 as Hv, b6 as qv, b7 as Gk, b8 as jv, b9 as Nr, ba as Jv, bb as aa, bc as Ro, bd as Ao, be as Wk, bf as oa, bg as qu, bh as Or, bi as ju, bj as Ju, bk as xs, bl as v_, bm as y_, bn as S_, bo as Ku, bp as b_, bq as w_, br as Hk, bs as Yu, bt as C_, bu as x_, bv as E_, bw as k_, bx as T_, by as Kv, bz as qk, bA as L_, bB as Yv, bC as D_, bD as I_, bE as P_, bF as R_, bG as A_, bH as __, bI as M_, bJ as N_, bK as O_, bL as V_, ao as Hb } from "./index-B9IWYFLb.js";
|
|
5
5
|
import qb from "react";
|
|
6
6
|
var B_ = m_();
|
|
7
7
|
const H = /* @__PURE__ */ Qe(B_);
|
|
@@ -42,7 +42,7 @@ var xd = {}, Bf, Zb;
|
|
|
42
42
|
function Xu() {
|
|
43
43
|
if (Zb) return Bf;
|
|
44
44
|
Zb = 1;
|
|
45
|
-
var i = jv(), e =
|
|
45
|
+
var i = jv(), e = Nr()("toStringTag"), t = i(/* @__PURE__ */ function() {
|
|
46
46
|
return arguments;
|
|
47
47
|
}()) == "Arguments", n = function(r, s) {
|
|
48
48
|
try {
|
|
@@ -59,7 +59,7 @@ var Ff, Qb;
|
|
|
59
59
|
function G_() {
|
|
60
60
|
if (Qb) return Ff;
|
|
61
61
|
Qb = 1;
|
|
62
|
-
var i = Xu(), e =
|
|
62
|
+
var i = Xu(), e = Nr()("iterator"), t = Jv();
|
|
63
63
|
return Ff = ut().isIterable = function(n) {
|
|
64
64
|
var r = Object(n);
|
|
65
65
|
return r[e] !== void 0 || "@@iterator" in r || t.hasOwnProperty(i(r));
|
|
@@ -77,7 +77,7 @@ var $f, nw;
|
|
|
77
77
|
function Xv() {
|
|
78
78
|
if (nw) return $f;
|
|
79
79
|
nw = 1;
|
|
80
|
-
var i = Xu(), e =
|
|
80
|
+
var i = Xu(), e = Nr()("iterator"), t = Jv();
|
|
81
81
|
return $f = ut().getIteratorMethod = function(n) {
|
|
82
82
|
if (n != null) return n[e] || n["@@iterator"] || t[i(n)];
|
|
83
83
|
}, $f;
|
|
@@ -174,7 +174,7 @@ var Yf, dw;
|
|
|
174
174
|
function Yk() {
|
|
175
175
|
if (dw) return Yf;
|
|
176
176
|
dw = 1;
|
|
177
|
-
var i = Jv(), e =
|
|
177
|
+
var i = Jv(), e = Nr()("iterator"), t = Array.prototype;
|
|
178
178
|
return Yf = function(n) {
|
|
179
179
|
return n !== void 0 && (i.Array === n || t[e] === n);
|
|
180
180
|
}, Yf;
|
|
@@ -200,7 +200,7 @@ var Xf, hw;
|
|
|
200
200
|
function Xk() {
|
|
201
201
|
if (hw) return Xf;
|
|
202
202
|
hw = 1;
|
|
203
|
-
var i =
|
|
203
|
+
var i = Or(), e = ut(), t = ju(), n = Ju(), r = Nr()("species");
|
|
204
204
|
return Xf = function(s) {
|
|
205
205
|
var a = typeof e[s] == "function" ? e[s] : i[s];
|
|
206
206
|
n && a && !a[r] && t.f(a, r, {
|
|
@@ -304,7 +304,7 @@ var ep, gw;
|
|
|
304
304
|
function Y_() {
|
|
305
305
|
if (gw) return ep;
|
|
306
306
|
gw = 1;
|
|
307
|
-
var i = xs(), e = b_(), t =
|
|
307
|
+
var i = xs(), e = b_(), t = Nr()("species");
|
|
308
308
|
return ep = function(n) {
|
|
309
309
|
var r;
|
|
310
310
|
return e(n) && (r = n.constructor, typeof r == "function" && (r === Array || e(r.prototype)) && (r = void 0), i(r) && (r = r[t], r === null && (r = void 0))), r === void 0 ? Array : r;
|
|
@@ -352,7 +352,7 @@ var ip, yw;
|
|
|
352
352
|
function eh() {
|
|
353
353
|
if (yw) return ip;
|
|
354
354
|
yw = 1;
|
|
355
|
-
var i =
|
|
355
|
+
var i = Or(), e = Ot(), t = Ku(), n = Hv(), r = Wk(), s = Zu(), a = _o(), l = Qu(), d = xs(), u = Hk(), h = ju().f, g = Zv()(0), v = Ju();
|
|
356
356
|
return ip = function(y, C, w, b, E, T) {
|
|
357
357
|
var P = i[y], R = P, I = E ? "set" : "add", L = R && R.prototype, A = {};
|
|
358
358
|
return !v || typeof R != "function" || !(T || L.forEach && !n(function() {
|
|
@@ -482,7 +482,7 @@ var hp, Mw;
|
|
|
482
482
|
function eT() {
|
|
483
483
|
if (Mw) return hp;
|
|
484
484
|
Mw = 1;
|
|
485
|
-
var i =
|
|
485
|
+
var i = Nr()("iterator"), e = !1;
|
|
486
486
|
try {
|
|
487
487
|
var t = [7][i]();
|
|
488
488
|
t.return = function() {
|
|
@@ -1297,7 +1297,7 @@ function ty(i, e) {
|
|
|
1297
1297
|
i[0] = e[0], i[1] = e[4], i[2] = e[8], i[3] = e[12], i[4] = e[1], i[5] = e[5], i[6] = e[9], i[7] = e[13], i[8] = e[2], i[9] = e[6], i[10] = e[10], i[11] = e[14], i[12] = e[3], i[13] = e[7], i[14] = e[11], i[15] = e[15];
|
|
1298
1298
|
return i;
|
|
1299
1299
|
}
|
|
1300
|
-
function
|
|
1300
|
+
function ms(i, e) {
|
|
1301
1301
|
var t = e[0], n = e[1], r = e[2], s = e[3], a = e[4], l = e[5], d = e[6], u = e[7], h = e[8], g = e[9], v = e[10], y = e[11], C = e[12], w = e[13], b = e[14], E = e[15], T = t * l - n * a, P = t * d - r * a, R = t * u - s * a, I = n * d - r * l, L = n * u - s * l, A = r * u - s * d, M = h * w - g * C, O = h * b - v * C, F = h * E - y * C, q = g * b - v * w, U = g * E - y * w, V = v * E - y * b, $ = T * V - P * U + R * q + I * F - L * O + A * M;
|
|
1302
1302
|
return $ ? ($ = 1 / $, i[0] = (l * V - d * U + u * q) * $, i[1] = (r * U - n * V - s * q) * $, i[2] = (w * A - b * L + E * I) * $, i[3] = (v * L - g * A - y * I) * $, i[4] = (d * F - a * V - u * O) * $, i[5] = (t * V - r * F + s * O) * $, i[6] = (b * R - C * A - E * P) * $, i[7] = (h * A - v * R + y * P) * $, i[8] = (a * U - l * F + u * M) * $, i[9] = (n * F - t * U - s * M) * $, i[10] = (C * L - w * R + E * T) * $, i[11] = (g * R - h * L - y * T) * $, i[12] = (l * O - a * q - d * M) * $, i[13] = (t * q - n * O + r * M) * $, i[14] = (w * P - C * I - b * T) * $, i[15] = (h * I - g * P + v * T) * $, i) : null;
|
|
1303
1303
|
}
|
|
@@ -1438,7 +1438,7 @@ function fm(i, e, t) {
|
|
|
1438
1438
|
var n = Math.sin(t);
|
|
1439
1439
|
return i[0] = n * e[0], i[1] = n * e[1], i[2] = n * e[2], i[3] = Math.cos(t), i;
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1441
|
+
function hs(i, e, t) {
|
|
1442
1442
|
var n = e[0], r = e[1], s = e[2], a = e[3], l = t[0], d = t[1], u = t[2], h = t[3];
|
|
1443
1443
|
return i[0] = n * h + a * l + r * u - s * d, i[1] = r * h + a * d + s * l - n * u, i[2] = s * h + a * u + n * d - r * l, i[3] = a * h - n * l - r * d - s * u, i;
|
|
1444
1444
|
}
|
|
@@ -1886,7 +1886,7 @@ var dC = {}, uC;
|
|
|
1886
1886
|
function EN() {
|
|
1887
1887
|
if (uC) return dC;
|
|
1888
1888
|
uC = 1;
|
|
1889
|
-
var i = Ot(), e =
|
|
1889
|
+
var i = Ot(), e = Or().isFinite;
|
|
1890
1890
|
return i(i.S, "Number", {
|
|
1891
1891
|
isFinite: function(n) {
|
|
1892
1892
|
return typeof n == "number" && e(n);
|
|
@@ -2208,7 +2208,7 @@ function No(i) {
|
|
|
2208
2208
|
* See the License for the specific language governing permissions and
|
|
2209
2209
|
* limitations under the License.
|
|
2210
2210
|
*/
|
|
2211
|
-
const yC = 2 ** -1074, bm = new Float64Array(1),
|
|
2211
|
+
const yC = 2 ** -1074, bm = new Float64Array(1), ss = new Uint32Array(bm.buffer);
|
|
2212
2212
|
function GN(i, e) {
|
|
2213
2213
|
if (isNaN(i) || isNaN(e)) return NaN;
|
|
2214
2214
|
if (i === e) return e;
|
|
@@ -2216,7 +2216,7 @@ function GN(i, e) {
|
|
|
2216
2216
|
return e < 0 ? -yC : yC;
|
|
2217
2217
|
bm[0] = i;
|
|
2218
2218
|
const t = pc === jn.LITTLE ? 0 : 1, n = 1 - t;
|
|
2219
|
-
return e > i == i > 0 ?
|
|
2219
|
+
return e > i == i > 0 ? ss[t] === 4294967295 ? (ss[t] = 0, ss[n] += 1) : ss[t] += 1 : ss[t] === 0 ? (ss[t] = 4294967295, ss[n] -= 1) : ss[t] -= 1, bm[0];
|
|
2220
2220
|
}
|
|
2221
2221
|
var SC = {}, bC;
|
|
2222
2222
|
function WN() {
|
|
@@ -2609,7 +2609,7 @@ var _e;
|
|
|
2609
2609
|
(function(i) {
|
|
2610
2610
|
i[i.POINT = 0] = "POINT", i[i.LINE = 1] = "LINE", i[i.AXIS_ALIGNED_BOUNDING_BOX = 2] = "AXIS_ALIGNED_BOUNDING_BOX", i[i.ELLIPSOID = 3] = "ELLIPSOID", i[i.SPHERE = 4] = "SPHERE";
|
|
2611
2611
|
})(_e || (_e = {}));
|
|
2612
|
-
const Lr = [_e.POINT, _e.LINE, _e.AXIS_ALIGNED_BOUNDING_BOX, _e.ELLIPSOID, _e.SPHERE],
|
|
2612
|
+
const Lr = [_e.POINT, _e.LINE, _e.AXIS_ALIGNED_BOUNDING_BOX, _e.ELLIPSOID, _e.SPHERE], vs = {
|
|
2613
2613
|
rgb: {
|
|
2614
2614
|
serializedBytes() {
|
|
2615
2615
|
return 3;
|
|
@@ -2796,7 +2796,7 @@ function _T(i, e, t) {
|
|
|
2796
2796
|
const r = t.length, s = new Array(r), a = [];
|
|
2797
2797
|
for (let v = 0; v < r; ++v)
|
|
2798
2798
|
s[v] = v;
|
|
2799
|
-
const l = (v) =>
|
|
2799
|
+
const l = (v) => vs[t[v].type].alignment(i);
|
|
2800
2800
|
s.sort((v, y) => l(y) - l(v));
|
|
2801
2801
|
let d = 0;
|
|
2802
2802
|
const u = new Array(r);
|
|
@@ -2805,7 +2805,7 @@ function _T(i, e, t) {
|
|
|
2805
2805
|
h += (4 - h % 4) % 4, n += h, a[d] = h, h = 0, ++d;
|
|
2806
2806
|
};
|
|
2807
2807
|
for (let v = 0; v < r; ++v) {
|
|
2808
|
-
const y = s[v], C = t[y], w =
|
|
2808
|
+
const y = s[v], C = t[y], w = vs[C.type], b = w.serializedBytes(i), E = w.alignment(i), T = (E - h % E) % E, R = h + T + b;
|
|
2809
2809
|
R + (4 - R % 4) % 4 <= iO ? h += T : g(), u[y] = { offset: h, group: d }, h += b;
|
|
2810
2810
|
}
|
|
2811
2811
|
return g(), { serializedBytes: n, offsets: u, propertyGroupBytes: a };
|
|
@@ -2829,7 +2829,7 @@ class MT {
|
|
|
2829
2829
|
const g = n.length;
|
|
2830
2830
|
for (let y = 0; y < g; ++y) {
|
|
2831
2831
|
var v = a[y];
|
|
2832
|
-
const C = v.group, w = v.offset, b = n[y], E =
|
|
2832
|
+
const C = v.group, w = v.offset, b = n[y], E = vs[b.type], T = `properties[${y}]`, P = `groupOffset${C} + ${w}`;
|
|
2833
2833
|
u += E.serializeCode(T, P, e), h += E.deserializeCode(T, P, e);
|
|
2834
2834
|
}
|
|
2835
2835
|
this.serializedBytes = s, this.serialize = new Function("dv", "offset", "annotationIndex", "annotationCount", "isLittleEndian", "properties", u), this.deserialize = new Function("dv", "offset", "annotationIndex", "annotationCount", "isLittleEndian", "properties", h);
|
|
@@ -2869,7 +2869,7 @@ function sO(i) {
|
|
|
2869
2869
|
return e;
|
|
2870
2870
|
}
|
|
2871
2871
|
function aO(i) {
|
|
2872
|
-
if (Le(i), !Object.prototype.hasOwnProperty.call(
|
|
2872
|
+
if (Le(i), !Object.prototype.hasOwnProperty.call(vs, i))
|
|
2873
2873
|
throw new Error("Unsupported property type: $JSON.stringify(obj)}");
|
|
2874
2874
|
return i;
|
|
2875
2875
|
}
|
|
@@ -2884,7 +2884,7 @@ function oO(i) {
|
|
|
2884
2884
|
function lO(i) {
|
|
2885
2885
|
ge(i);
|
|
2886
2886
|
const e = Y(i, "id", sO), t = Y(i, "type", aO), n = ye(i, "description", Le);
|
|
2887
|
-
let r = ye(i, "default", (l) =>
|
|
2887
|
+
let r = ye(i, "default", (l) => vs[t].deserializeJson(l), 0), s, a;
|
|
2888
2888
|
switch (t) {
|
|
2889
2889
|
case "rgb":
|
|
2890
2890
|
case "rgba":
|
|
@@ -2902,7 +2902,7 @@ function cO(i) {
|
|
|
2902
2902
|
id: i.identifier,
|
|
2903
2903
|
description: i.description,
|
|
2904
2904
|
type: i.type,
|
|
2905
|
-
default: e === 0 ? void 0 :
|
|
2905
|
+
default: e === 0 ? void 0 : vs[i.type].serializeJson(e)
|
|
2906
2906
|
};
|
|
2907
2907
|
}
|
|
2908
2908
|
function dO(i) {
|
|
@@ -3055,7 +3055,7 @@ function Em(i, e) {
|
|
|
3055
3055
|
const n = i.relatedSegments;
|
|
3056
3056
|
if (n !== void 0 && n.some((r) => r.length !== 0) && (t.segments = n.map((r) => r.map((s) => s.toString()))), e.properties.length !== 0) {
|
|
3057
3057
|
const r = e.properties;
|
|
3058
|
-
t.props = i.properties.map((s, a) =>
|
|
3058
|
+
t.props = i.properties.map((s, a) => vs[r[a].type].serializeJson(s));
|
|
3059
3059
|
}
|
|
3060
3060
|
return t;
|
|
3061
3061
|
}
|
|
@@ -3068,7 +3068,7 @@ function uO(i, e, t = !1) {
|
|
|
3068
3068
|
return u.length === 0 ? e.relationships.map(() => []) : e.relationships.length === 1 && !Array.isArray(u[0]) ? [We(u, (h) => te.parseString(h))] : We(ji(d, e.relationships.length), (h) => We(h, (g) => te.parseString(g)));
|
|
3069
3069
|
}), a = Y(i, "props", (d) => {
|
|
3070
3070
|
const u = e.properties;
|
|
3071
|
-
return d === void 0 ? u.map((h) => h.default) : We(ji(d, e.properties.length), (h, g) =>
|
|
3071
|
+
return d === void 0 ? u.map((h) => h.default) : We(ji(d, e.properties.length), (h, g) => vs[u[g].type].deserializeJson(h));
|
|
3072
3072
|
}), l = {
|
|
3073
3073
|
id: r,
|
|
3074
3074
|
description: Y(i, "description", Li),
|
|
@@ -4669,7 +4669,7 @@ function rL(i, e) {
|
|
|
4669
4669
|
}
|
|
4670
4670
|
}
|
|
4671
4671
|
const h = Je();
|
|
4672
|
-
|
|
4672
|
+
ms(h, u);
|
|
4673
4673
|
for (let g = d.length; g < 3; ++g)
|
|
4674
4674
|
d[g] = -1;
|
|
4675
4675
|
return {
|
|
@@ -4790,12 +4790,12 @@ var vr;
|
|
|
4790
4790
|
(function(i) {
|
|
4791
4791
|
i[i.numChunks = 0] = "numChunks", i[i.systemMemoryBytes = 1] = "systemMemoryBytes", i[i.gpuMemoryBytes = 2] = "gpuMemoryBytes";
|
|
4792
4792
|
})(vr || (vr = {}));
|
|
4793
|
-
const
|
|
4793
|
+
const ls = 3;
|
|
4794
4794
|
function Gs(i, e) {
|
|
4795
4795
|
return i * aL + e;
|
|
4796
4796
|
}
|
|
4797
4797
|
function JC(i) {
|
|
4798
|
-
return sL * aL *
|
|
4798
|
+
return sL * aL * ls + i;
|
|
4799
4799
|
}
|
|
4800
4800
|
const cV = "ChunkQueueManager", dV = "ChunkManager", uV = "ChunkSource.invalidate", hV = "ChunkQueueManager.requestChunkStatistics", fV = "ChunkManager.chunkLayerStatistics";
|
|
4801
4801
|
class Sy {
|
|
@@ -5120,7 +5120,7 @@ function vV(i, e) {
|
|
|
5120
5120
|
}
|
|
5121
5121
|
function pL(i) {
|
|
5122
5122
|
const e = i.viewMatrix, t = i.viewProjectionMat;
|
|
5123
|
-
|
|
5123
|
+
ms(e, i.invViewMatrix), en(t, i.projectionMat, e), ms(i.invViewProjectionMat, t);
|
|
5124
5124
|
}
|
|
5125
5125
|
/**
|
|
5126
5126
|
* @license
|
|
@@ -5172,7 +5172,7 @@ var KC = {}, Kp, YC;
|
|
|
5172
5172
|
function gL() {
|
|
5173
5173
|
if (YC) return Kp;
|
|
5174
5174
|
YC = 1;
|
|
5175
|
-
var i = Ao(), e = Yu(), t =
|
|
5175
|
+
var i = Ao(), e = Yu(), t = Nr()("species");
|
|
5176
5176
|
return Kp = function(n, r) {
|
|
5177
5177
|
var s = i(n).constructor, a;
|
|
5178
5178
|
return s === void 0 || (a = i(s)[t]) == null ? r : e(a);
|
|
@@ -5201,7 +5201,7 @@ var Xp, ZC;
|
|
|
5201
5201
|
function mL() {
|
|
5202
5202
|
if (ZC) return Xp;
|
|
5203
5203
|
ZC = 1;
|
|
5204
|
-
var i = oa(), e = CV(), t = I_(), n = P_(), r =
|
|
5204
|
+
var i = oa(), e = CV(), t = I_(), n = P_(), r = Or(), s = r.process, a = r.setImmediate, l = r.clearImmediate, d = r.MessageChannel, u = r.Dispatch, h = 0, g = {}, v = "onreadystatechange", y, C, w, b = function() {
|
|
5205
5205
|
var T = +this;
|
|
5206
5206
|
if (g.hasOwnProperty(T)) {
|
|
5207
5207
|
var P = g[T];
|
|
@@ -5238,7 +5238,7 @@ var Zp, QC;
|
|
|
5238
5238
|
function xV() {
|
|
5239
5239
|
if (QC) return Zp;
|
|
5240
5240
|
QC = 1;
|
|
5241
|
-
var i =
|
|
5241
|
+
var i = Or(), e = mL().set, t = i.MutationObserver || i.WebKitMutationObserver, n = i.process, r = i.Promise, s = jv()(n) == "process";
|
|
5242
5242
|
return Zp = function() {
|
|
5243
5243
|
var a, l, d, u = function() {
|
|
5244
5244
|
var y, C;
|
|
@@ -5306,7 +5306,7 @@ var tg, nx;
|
|
|
5306
5306
|
function EV() {
|
|
5307
5307
|
if (nx) return tg;
|
|
5308
5308
|
nx = 1;
|
|
5309
|
-
var i =
|
|
5309
|
+
var i = Or(), e = i.navigator;
|
|
5310
5310
|
return tg = e && e.userAgent || "", tg;
|
|
5311
5311
|
}
|
|
5312
5312
|
var ng, ix;
|
|
@@ -5324,10 +5324,10 @@ var rx;
|
|
|
5324
5324
|
function kV() {
|
|
5325
5325
|
if (rx) return KC;
|
|
5326
5326
|
rx = 1;
|
|
5327
|
-
var i = R_(), e =
|
|
5327
|
+
var i = R_(), e = Or(), t = oa(), n = Xu(), r = Ot(), s = xs(), a = Yu(), l = Qu(), d = _o(), u = gL(), h = mL().set, g = xV()(), v = wy(), y = vL(), C = EV(), w = yL(), b = "Promise", E = e.TypeError, T = e.process, P = T && T.versions, R = P && P.v8 || "", I = e[b], L = n(T) == "process", A = function() {
|
|
5328
5328
|
}, M, O, F, q, U = O = v.f, V = !!function() {
|
|
5329
5329
|
try {
|
|
5330
|
-
var oe = I.resolve(1), he = (oe.constructor = {})[
|
|
5330
|
+
var oe = I.resolve(1), he = (oe.constructor = {})[Nr()("species")] = function(Ae) {
|
|
5331
5331
|
Ae(A, A);
|
|
5332
5332
|
};
|
|
5333
5333
|
return (L || typeof PromiseRejectionEvent == "function") && oe.then(A) instanceof he && R.indexOf("6.6") !== 0 && C.indexOf("Chrome/66") === -1;
|
|
@@ -5454,7 +5454,7 @@ var sx = {}, ax;
|
|
|
5454
5454
|
function TV() {
|
|
5455
5455
|
if (ax) return sx;
|
|
5456
5456
|
ax = 1;
|
|
5457
|
-
var i = Ot(), e = ut(), t =
|
|
5457
|
+
var i = Ot(), e = ut(), t = Or(), n = gL(), r = yL();
|
|
5458
5458
|
return i(i.P + i.R, "Promise", { finally: function(s) {
|
|
5459
5459
|
var a = n(this, e.Promise || t.Promise), l = typeof s == "function";
|
|
5460
5460
|
return this.then(
|
|
@@ -5514,10 +5514,10 @@ class RV {
|
|
|
5514
5514
|
return "CANCELED";
|
|
5515
5515
|
}
|
|
5516
5516
|
}
|
|
5517
|
-
const
|
|
5517
|
+
const ys = new RV();
|
|
5518
5518
|
function AV(i) {
|
|
5519
5519
|
if (i.isCanceled === !0)
|
|
5520
|
-
throw
|
|
5520
|
+
throw ys;
|
|
5521
5521
|
}
|
|
5522
5522
|
const Im = () => {
|
|
5523
5523
|
}, Nt = {
|
|
@@ -5610,7 +5610,7 @@ kt(Pm, function(i) {
|
|
|
5610
5610
|
let e = i.id;
|
|
5611
5611
|
var t = this.get(e);
|
|
5612
5612
|
let n = t.resolve, r = t.reject;
|
|
5613
|
-
this.delete(e), i.hasOwnProperty("value") ? n(i.value) : i.errorName ===
|
|
5613
|
+
this.delete(e), i.hasOwnProperty("value") ? n(i.value) : i.errorName === ys.name ? r(ys) : r(new NV(i.errorName, i.error));
|
|
5614
5614
|
});
|
|
5615
5615
|
const OV = SL ? -1 : 0;
|
|
5616
5616
|
class VV {
|
|
@@ -8392,7 +8392,7 @@ function sF(i, e, t, n, r) {
|
|
|
8392
8392
|
a[4 * v + C] *= y;
|
|
8393
8393
|
}
|
|
8394
8394
|
const l = HB;
|
|
8395
|
-
|
|
8395
|
+
ms(l, a);
|
|
8396
8396
|
const d = _y, u = My, h = 1e-3;
|
|
8397
8397
|
for (let v = 0; v < 3; ++v) {
|
|
8398
8398
|
const y = l[12 + v] + h / s[v], C = Math.abs(l[v]), w = Math.abs(l[4 + v]);
|
|
@@ -8428,7 +8428,7 @@ function Ny(i, e) {
|
|
|
8428
8428
|
const b = Math.max(1, v - g);
|
|
8429
8429
|
n[12 + u] = g, n[5 * u] = b;
|
|
8430
8430
|
}
|
|
8431
|
-
return
|
|
8431
|
+
return ms(r, n), Ga;
|
|
8432
8432
|
}
|
|
8433
8433
|
const aF = "annotation.MetadataChunkSource", oF = "annotation.GeometryChunkSource", lF = "annotation.SubsetGeometryChunkSource", cF = "annotation.reference.add", dF = "annotation.reference.delete", uF = "annotation.commit", hF = "annotation.commit", fF = "annotation/SpatiallyIndexedRenderLayer", pF = "annotation/PerspectiveRenderLayer:updateSources", gF = "annotation/RenderLayer", mF = "annotation/RenderLayer.updateSegmentation", vF = hc();
|
|
8434
8434
|
function yF(i, e, t, n, r, s) {
|
|
@@ -8926,7 +8926,7 @@ let Mm = class extends er {
|
|
|
8926
8926
|
var n = t.promise;
|
|
8927
8927
|
const r = n.resolve, s = n.reject;
|
|
8928
8928
|
if (n.cancellationToken.isCanceled) {
|
|
8929
|
-
s(
|
|
8929
|
+
s(ys);
|
|
8930
8930
|
return;
|
|
8931
8931
|
}
|
|
8932
8932
|
const l = t.key, d = e.chunks.get(l);
|
|
@@ -9035,7 +9035,7 @@ let Nm = class extends er {
|
|
|
9035
9035
|
}
|
|
9036
9036
|
};
|
|
9037
9037
|
Nm = Vy([hi(dV)], Nm);
|
|
9038
|
-
class
|
|
9038
|
+
class Vr extends er {
|
|
9039
9039
|
constructor(e, t = {}) {
|
|
9040
9040
|
super(), this.chunkManager = e, this.chunks = new ce(), this.immediateChunkUpdates = !1;
|
|
9041
9041
|
}
|
|
@@ -9171,7 +9171,7 @@ function Bo(i, e) {
|
|
|
9171
9171
|
}
|
|
9172
9172
|
}
|
|
9173
9173
|
}
|
|
9174
|
-
const
|
|
9174
|
+
const Jt = 40, eD = 0.5, tD = -4;
|
|
9175
9175
|
function jd(i) {
|
|
9176
9176
|
return (Un(i) - tD) / eD;
|
|
9177
9177
|
}
|
|
@@ -9183,7 +9183,7 @@ function ia(i) {
|
|
|
9183
9183
|
}
|
|
9184
9184
|
class yo {
|
|
9185
9185
|
constructor() {
|
|
9186
|
-
this.visibility = new Xl(), this.changed = new be(), this.frameNumber = -1, this.spatialScales = new ce(), this.numHistogramRows = 1, this.value = new Uint32Array(
|
|
9186
|
+
this.visibility = new Xl(), this.changed = new be(), this.frameNumber = -1, this.spatialScales = new ce(), this.numHistogramRows = 1, this.value = new Uint32Array(Jt * this.numHistogramRows * 2);
|
|
9187
9187
|
}
|
|
9188
9188
|
begin(e) {
|
|
9189
9189
|
e !== this.frameNumber && (this.value.fill(0), this.frameNumber = e, this.spatialScales.clear(), this.changed.dispatch());
|
|
@@ -9200,11 +9200,11 @@ class yo {
|
|
|
9200
9200
|
let s = this.spatialScales, a = this.numHistogramRows, l = this.value, d = s.get(e);
|
|
9201
9201
|
if (d === void 0 && (d = s.size, s.set(e, d)), d >= a) {
|
|
9202
9202
|
this.numHistogramRows = a *= 2;
|
|
9203
|
-
const h = new Uint32Array(a *
|
|
9203
|
+
const h = new Uint32Array(a * Jt * 2);
|
|
9204
9204
|
h.set(l), this.value = l = h;
|
|
9205
9205
|
}
|
|
9206
|
-
const u = d *
|
|
9207
|
-
l[u] += n, l[u +
|
|
9206
|
+
const u = d * Jt * 2 + Math.min(Math.max(0, Math.round(jd(t))), Jt - 1);
|
|
9207
|
+
l[u] += n, l[u + Jt] += r;
|
|
9208
9208
|
}
|
|
9209
9209
|
}
|
|
9210
9210
|
class By extends kL {
|
|
@@ -9489,7 +9489,7 @@ let yu = class extends RF {
|
|
|
9489
9489
|
}
|
|
9490
9490
|
};
|
|
9491
9491
|
yu = IF([hi(tF)], yu);
|
|
9492
|
-
class nD extends
|
|
9492
|
+
class nD extends Vr {
|
|
9493
9493
|
constructor(e, t) {
|
|
9494
9494
|
super(e, t), this.spec = t.spec;
|
|
9495
9495
|
}
|
|
@@ -9793,7 +9793,7 @@ let bo = class extends nD {
|
|
|
9793
9793
|
}
|
|
9794
9794
|
};
|
|
9795
9795
|
bo = zy([hi(oF)], bo);
|
|
9796
|
-
let Om = class extends
|
|
9796
|
+
let Om = class extends Vr {
|
|
9797
9797
|
constructor(e, t, n) {
|
|
9798
9798
|
super(e, {}), this.parent = t, this.relationshipIndex = n, this.immediateChunkUpdates = !0;
|
|
9799
9799
|
}
|
|
@@ -9810,7 +9810,7 @@ class OF extends Ls {
|
|
|
9810
9810
|
super(e), this.annotation = ly(t.annotation);
|
|
9811
9811
|
}
|
|
9812
9812
|
}
|
|
9813
|
-
let Vm = class extends
|
|
9813
|
+
let Vm = class extends Vr {
|
|
9814
9814
|
constructor(e, t) {
|
|
9815
9815
|
super(e), this.parent = t;
|
|
9816
9816
|
}
|
|
@@ -10792,7 +10792,7 @@ var Cg = { exports: {} }, Yx;
|
|
|
10792
10792
|
function g3() {
|
|
10793
10793
|
if (Yx) return Cg.exports;
|
|
10794
10794
|
Yx = 1;
|
|
10795
|
-
var i =
|
|
10795
|
+
var i = Or(), e = Zv()(0), t = N_(), n = Ku(), r = O_(), s = vD(), a = xs(), l = Qs(), d = Qs(), u = !i.ActiveXObject && "ActiveXObject" in i, h = "WeakMap", g = n.getWeak, v = Object.isExtensible, y = s.ufstore, C, w = function(T) {
|
|
10796
10796
|
return function() {
|
|
10797
10797
|
return T(this, arguments.length > 0 ? arguments[0] : void 0);
|
|
10798
10798
|
};
|
|
@@ -11225,14 +11225,14 @@ class wo extends X {
|
|
|
11225
11225
|
* versa.
|
|
11226
11226
|
*/
|
|
11227
11227
|
static makeRelative(e, t) {
|
|
11228
|
-
let n = new wo(
|
|
11228
|
+
let n = new wo(hs(Rn(), e.orientation, t)), r = !1;
|
|
11229
11229
|
n.registerDisposer(e.changed.add(() => {
|
|
11230
|
-
r || (s = !0,
|
|
11230
|
+
r || (s = !0, hs(n.orientation, e.orientation, t), n.changed.dispatch(), s = !1);
|
|
11231
11231
|
}));
|
|
11232
11232
|
let s = !1;
|
|
11233
11233
|
const a = iu(Rn(), t);
|
|
11234
11234
|
return n.registerDisposer(n.changed.add(() => {
|
|
11235
|
-
s || (r = !0,
|
|
11235
|
+
s || (r = !0, hs(e.orientation, n.orientation, a), e.changed.dispatch(), r = !1);
|
|
11236
11236
|
})), n;
|
|
11237
11237
|
}
|
|
11238
11238
|
assign(e) {
|
|
@@ -11246,13 +11246,13 @@ class Um extends Pc {
|
|
|
11246
11246
|
isValid: () => !0,
|
|
11247
11247
|
difference: (e, t) => {
|
|
11248
11248
|
const n = Rn();
|
|
11249
|
-
return
|
|
11249
|
+
return hs(n, iu(n, t.orientation), e.orientation);
|
|
11250
11250
|
},
|
|
11251
11251
|
add: (e, t, n) => {
|
|
11252
|
-
|
|
11252
|
+
hs(e.orientation, t.orientation, n), e.changed.dispatch();
|
|
11253
11253
|
},
|
|
11254
11254
|
subtract: (e, t, n) => {
|
|
11255
|
-
|
|
11255
|
+
hs(e.orientation, t.orientation, iu(SD, n)), e.changed.dispatch();
|
|
11256
11256
|
}
|
|
11257
11257
|
});
|
|
11258
11258
|
}
|
|
@@ -11603,7 +11603,7 @@ class Co extends X {
|
|
|
11603
11603
|
var n = Rn();
|
|
11604
11604
|
fm(n, e, t);
|
|
11605
11605
|
var r = this.orientation.orientation;
|
|
11606
|
-
|
|
11606
|
+
hs(r, r, n), this.orientation.changed.dispatch();
|
|
11607
11607
|
}
|
|
11608
11608
|
rotateAbsolute(e, t, n) {
|
|
11609
11609
|
var r = this.position;
|
|
@@ -11620,7 +11620,7 @@ class Co extends X {
|
|
|
11620
11620
|
C[b] = T * g[E] * l[E];
|
|
11621
11621
|
}
|
|
11622
11622
|
const w = iu(SD, y);
|
|
11623
|
-
eo(C, C, w),
|
|
11623
|
+
eo(C, C, w), hs(y, v, y), eo(C, C, y);
|
|
11624
11624
|
for (let b = 0; b < h; ++b) {
|
|
11625
11625
|
const E = u[b];
|
|
11626
11626
|
a[E] = n[E] - C[b] / (g[E] * l[E]);
|
|
@@ -11912,15 +11912,15 @@ function M3(i, e, t, n, r, s, a) {
|
|
|
11912
11912
|
const B = V(-U * O, -U * F, -U * q), le = i.clipLowerBound[0], ne = i.clipLowerBound[1], Ee = i.clipLowerBound[2], se = i.clipUpperBound[0], we = i.clipUpperBound[1], oe = i.clipUpperBound[2], he = Math.sqrt((v * r) ** 2 + (w * s) ** 2), Ae = Math.sqrt((y * r) ** 2 + (b * s) ** 2), De = Math.sqrt((C * r) ** 2 + (E * s) ** 2), ze = Math.max(he, Ae, De);
|
|
11913
11913
|
function Ie(ke, Pe, Ue) {
|
|
11914
11914
|
const Fe = 1 << ke, Ce = Pe * 5, Ke = l[Ce], Vt = l[Ce + 1], Bt = l[Ce + 2], bn = l[Ce + 3], Yt = l[Ce + 4];
|
|
11915
|
-
let cn = Ke * Fe * h[0] + u[0], wn = Vt * Fe * h[1] + u[1], fi = Bt * Fe * h[2] + u[2], qe = cn + Fe * h[0], Yn = wn + Fe * h[1],
|
|
11916
|
-
if (cn = Math.max(cn, le), wn = Math.max(wn, ne), fi = Math.max(fi, Ee), qe = Math.min(qe, se), Yn = Math.min(Yn, we),
|
|
11917
|
-
const
|
|
11918
|
-
if (Ue === 0 ||
|
|
11915
|
+
let cn = Ke * Fe * h[0] + u[0], wn = Vt * Fe * h[1] + u[1], fi = Bt * Fe * h[2] + u[2], qe = cn + Fe * h[0], Yn = wn + Fe * h[1], Ur = fi + Fe * h[2];
|
|
11916
|
+
if (cn = Math.max(cn, le), wn = Math.max(wn, ne), fi = Math.max(fi, Ee), qe = Math.min(qe, se), Yn = Math.min(Yn, we), Ur = Math.min(Ur, oe), xT(cn, wn, fi, qe, Yn, Ur, t)) {
|
|
11917
|
+
const zr = Math.max(B, $(cn, wn, fi, qe, Yn, Ur)) / ze;
|
|
11918
|
+
if (Ue === 0 || zr * n < Ue) {
|
|
11919
11919
|
const Mi = d[ke];
|
|
11920
|
-
if (Mi !== 0 && a(ke, Pe, Mi /
|
|
11920
|
+
if (Mi !== 0 && a(ke, Pe, Mi / zr, Yt >>> 31), ke > 0 && (Mi === 0 || zr * n < Mi)) {
|
|
11921
11921
|
const Ps = Mi === 0 ? Ue : Mi, pi = (Yt & 2147483647) >>> 0;
|
|
11922
|
-
for (let
|
|
11923
|
-
Ie(ke - 1,
|
|
11922
|
+
for (let $r = bn; $r < pi; ++$r)
|
|
11923
|
+
Ie(ke - 1, $r, Ps);
|
|
11924
11924
|
}
|
|
11925
11925
|
}
|
|
11926
11926
|
}
|
|
@@ -13370,7 +13370,7 @@ const ro = "neuroglancer-drag-over", b1 = {
|
|
|
13370
13370
|
right: "left",
|
|
13371
13371
|
top: "bottom",
|
|
13372
13372
|
bottom: "top"
|
|
13373
|
-
},
|
|
13373
|
+
}, as = {
|
|
13374
13374
|
left: "column",
|
|
13375
13375
|
right: "column",
|
|
13376
13376
|
top: "row",
|
|
@@ -13491,7 +13491,7 @@ class CU extends X {
|
|
|
13491
13491
|
makeDropZone(e, t, n, r, s = !1) {
|
|
13492
13492
|
const a = document.createElement("div");
|
|
13493
13493
|
a.className = "neuroglancer-side-panel-drop-zone";
|
|
13494
|
-
const l = 10, d =
|
|
13494
|
+
const l = 10, d = as[r], u = Ad[r];
|
|
13495
13495
|
return a.style[Ha[u]] = `${l}px`, a.style[Ha[d]] = "100%", s ? (a.style.position = "absolute", a.style[r] = "50%", a.style[C1[r]] = "-${size/2}px") : (a.style.position = "relative", a.style[C1[bU[r]]] = `-${l}px`), a.addEventListener("dragenter", (h) => {
|
|
13496
13496
|
this.hasDroppablePanel() && (a.classList.add(ro), h.preventDefault(), Yi(a, "drop", () => document.createTextNode(`Drop side panel as new ${d}`)));
|
|
13497
13497
|
}), a.addEventListener("dragleave", () => {
|
|
@@ -13502,7 +13502,7 @@ class CU extends X {
|
|
|
13502
13502
|
const g = this.dragSource;
|
|
13503
13503
|
if (g === void 0) return;
|
|
13504
13504
|
gn(a, "drop"), a.classList.remove(ro);
|
|
13505
|
-
const v =
|
|
13505
|
+
const v = as[e];
|
|
13506
13506
|
g.dropAsNewPanel({
|
|
13507
13507
|
side: e,
|
|
13508
13508
|
row: v === "column" ? n : t,
|
|
@@ -13577,7 +13577,7 @@ class CU extends X {
|
|
|
13577
13577
|
makeFlexGutter(e, t, n) {
|
|
13578
13578
|
const r = document.createElement("div");
|
|
13579
13579
|
r.style.position = "relative";
|
|
13580
|
-
const s =
|
|
13580
|
+
const s = as[e];
|
|
13581
13581
|
r.className = `neuroglancer-resize-gutter-${s === "row" ? "horizontal" : "vertical"}`, r.addEventListener("pointerdown", (l) => {
|
|
13582
13582
|
if ("button" in l && l.button !== 0)
|
|
13583
13583
|
return;
|
|
@@ -13608,14 +13608,14 @@ class CU extends X {
|
|
|
13608
13608
|
/*flexIndex=*/
|
|
13609
13609
|
n + 0.5,
|
|
13610
13610
|
/*zoneSide=*/
|
|
13611
|
-
w1[
|
|
13611
|
+
w1[as[e]],
|
|
13612
13612
|
/*centered=*/
|
|
13613
13613
|
!0
|
|
13614
13614
|
);
|
|
13615
13615
|
return r.appendChild(a), r;
|
|
13616
13616
|
}
|
|
13617
13617
|
renderSide(e, t, n) {
|
|
13618
|
-
const r = b1[Ad[e]], s = b1[
|
|
13618
|
+
const r = b1[Ad[e]], s = b1[as[e]];
|
|
13619
13619
|
n.sort((d, u) => {
|
|
13620
13620
|
const h = d.location.value, g = u.location.value, v = h[s] - g[s];
|
|
13621
13621
|
return v !== 0 ? v : h[r] - g[r];
|
|
@@ -13635,7 +13635,7 @@ class CU extends X {
|
|
|
13635
13635
|
let b = t[h];
|
|
13636
13636
|
if (b === void 0) {
|
|
13637
13637
|
const T = a.makeCrossGutter(e, h), P = document.createElement("div");
|
|
13638
|
-
P.className = `neuroglancer-side-panel-${
|
|
13638
|
+
P.className = `neuroglancer-side-panel-${as[e]}`, b = t[h] = {
|
|
13639
13639
|
element: P,
|
|
13640
13640
|
gutterElement: T,
|
|
13641
13641
|
cells: [],
|
|
@@ -13647,14 +13647,14 @@ class CU extends X {
|
|
|
13647
13647
|
h,
|
|
13648
13648
|
/*flexIndex=*/
|
|
13649
13649
|
-1 / 0,
|
|
13650
|
-
w1[
|
|
13650
|
+
w1[as[e]]
|
|
13651
13651
|
),
|
|
13652
13652
|
endDropZone: a.makeDropZone(
|
|
13653
13653
|
e,
|
|
13654
13654
|
h,
|
|
13655
13655
|
/*flexIndex=*/
|
|
13656
13656
|
1 / 0,
|
|
13657
|
-
wU[
|
|
13657
|
+
wU[as[e]]
|
|
13658
13658
|
)
|
|
13659
13659
|
};
|
|
13660
13660
|
} else
|
|
@@ -13731,7 +13731,7 @@ function Jn(i, e = "text/plain") {
|
|
|
13731
13731
|
* See the License for the specific language governing permissions and
|
|
13732
13732
|
* limitations under the License.
|
|
13733
13733
|
*/
|
|
13734
|
-
class
|
|
13734
|
+
class Br extends X {
|
|
13735
13735
|
constructor(e, t, n) {
|
|
13736
13736
|
super(), this.target = e, this.eventMap = t, this.registerEventListener(e, "wheel", (r) => {
|
|
13737
13737
|
n !== void 0 && n(r), this.dispatch("wheel", r);
|
|
@@ -13822,7 +13822,7 @@ class E1 extends ua {
|
|
|
13822
13822
|
constructor(e, t, n, r) {
|
|
13823
13823
|
super(e, t.location), this.sidePanelManager = e, this.state = t, this.manager = n, this.selectedLayer = r, this.body = document.createElement("div");
|
|
13824
13824
|
const s = this.element, a = this.body;
|
|
13825
|
-
s.classList.add("neuroglancer-selection-details"), this.registerDisposer(new
|
|
13825
|
+
s.classList.add("neuroglancer-selection-details"), this.registerDisposer(new Br(this.element, bh()));
|
|
13826
13826
|
var l = this.addTitleBar({ title: "Selection" });
|
|
13827
13827
|
const d = l.titleBar, u = pt({
|
|
13828
13828
|
svg: ND,
|
|
@@ -13902,7 +13902,7 @@ const kU = "data:image/svg+xml,%3csvg%20role='img'%20xmlns='http://www.w3.org/20
|
|
|
13902
13902
|
function TU(i = {}) {
|
|
13903
13903
|
return pt(H({ svg: kU }, i));
|
|
13904
13904
|
}
|
|
13905
|
-
class
|
|
13905
|
+
class Ss {
|
|
13906
13906
|
constructor(e, t, n) {
|
|
13907
13907
|
this.key = e, this.value = t, this.label = n;
|
|
13908
13908
|
}
|
|
@@ -13929,7 +13929,7 @@ class LU extends X {
|
|
|
13929
13929
|
u = !1;
|
|
13930
13930
|
else if (typeof e == "number")
|
|
13931
13931
|
s = l = e >>> 0, a = d = e < 0 ? 4294967295 : 0, u = !0;
|
|
13932
|
-
else if (e instanceof
|
|
13932
|
+
else if (e instanceof Ss) {
|
|
13933
13933
|
const h = e.value || e.key;
|
|
13934
13934
|
s = h.low, a = h.high, l = e.key.low, d = e.key.high, u = !0;
|
|
13935
13935
|
} else e instanceof te ? (s = l = e.low, a = d = e.high, u = !0) : u = !1;
|
|
@@ -13954,12 +13954,12 @@ function WD(i, e, t = !1) {
|
|
|
13954
13954
|
if (typeof e == "number" ? n = new te(e >>> 0, e < 0 ? 4294967295 : 0) : typeof e == "string" ? n = te.parseString(e) : n = t ? e.clone() : e, i == null) return n;
|
|
13955
13955
|
var l = i.segmentationGroupState.value;
|
|
13956
13956
|
const d = l.segmentEquivalences, u = l.segmentPropertyMap.value;
|
|
13957
|
-
return d.size !== 0 ? (r = d.get(n), te.equal(r, n) ? s = void 0 : s = r) : r = n, a = u?.getSegmentLabel(r), a === void 0 && s == null ? n : new
|
|
13957
|
+
return d.size !== 0 ? (r = d.get(n), te.equal(r, n) ? s = void 0 : s = r) : r = n, a = u?.getSegmentLabel(r), a === void 0 && s == null ? n : new Ss(n, s, a);
|
|
13958
13958
|
}
|
|
13959
13959
|
function Eo(i, e) {
|
|
13960
|
-
if (e instanceof
|
|
13960
|
+
if (e instanceof Ss) return e;
|
|
13961
13961
|
let t = WD(i, e);
|
|
13962
|
-
return t instanceof te ? new
|
|
13962
|
+
return t instanceof te ? new Ss(t) : t;
|
|
13963
13963
|
}
|
|
13964
13964
|
function k1(i, e) {
|
|
13965
13965
|
const t = e.length;
|
|
@@ -14494,7 +14494,7 @@ class BU extends Ls {
|
|
|
14494
14494
|
super.freeGPUMemory(e), XD(this);
|
|
14495
14495
|
}
|
|
14496
14496
|
}
|
|
14497
|
-
class Mc extends
|
|
14497
|
+
class Mc extends Vr {
|
|
14498
14498
|
constructor(e, t) {
|
|
14499
14499
|
super(e, t), this.fragmentSource = this.registerDisposer(new qm(this.chunkManager, this));
|
|
14500
14500
|
}
|
|
@@ -14508,7 +14508,7 @@ class Mc extends Or {
|
|
|
14508
14508
|
return { key: `${e}/${t}`, fragmentId: t };
|
|
14509
14509
|
}
|
|
14510
14510
|
}
|
|
14511
|
-
let qm = class extends
|
|
14511
|
+
let qm = class extends Vr {
|
|
14512
14512
|
constructor(e, t) {
|
|
14513
14513
|
super(e), this.meshSource = t;
|
|
14514
14514
|
}
|
|
@@ -14625,7 +14625,7 @@ class UU extends Ls {
|
|
|
14625
14625
|
super.freeGPUMemory(e), XD(this);
|
|
14626
14626
|
}
|
|
14627
14627
|
}
|
|
14628
|
-
class wh extends
|
|
14628
|
+
class wh extends Vr {
|
|
14629
14629
|
constructor(e, t) {
|
|
14630
14630
|
super(e, t), this.fragmentSource = this.registerDisposer(new jm(this.chunkManager, this)), this.format = t.format;
|
|
14631
14631
|
}
|
|
@@ -14639,7 +14639,7 @@ class wh extends Or {
|
|
|
14639
14639
|
return new FU(this, e);
|
|
14640
14640
|
}
|
|
14641
14641
|
}
|
|
14642
|
-
let jm = class extends
|
|
14642
|
+
let jm = class extends Vr {
|
|
14643
14643
|
constructor(e, t) {
|
|
14644
14644
|
super(e), this.meshSource = t;
|
|
14645
14645
|
}
|
|
@@ -14897,7 +14897,7 @@ float getRadiusAdjustment(vec3 vertex, float r) {
|
|
|
14897
14897
|
* See the License for the specific language governing permissions and
|
|
14898
14898
|
* limitations under the License.
|
|
14899
14899
|
*/
|
|
14900
|
-
const
|
|
14900
|
+
const fs = iS;
|
|
14901
14901
|
function tr(i, e = !1) {
|
|
14902
14902
|
i.addVertexCode(rS), i.addUniform("highp vec3", "uLineParams"), i.addVarying("highp float", "vLineCoord"), i.addVarying("highp float", "vLineFeatherFraction"), e && (i.addVarying("highp float", "vEndpointFraction"), i.addVarying("highp float", "vLineCoordT"), i.addVarying("highp float", "vLineBorderStartFraction")), i.addVertexCode(yB), i.addVertexCode(`
|
|
14903
14903
|
vec2 getLineOffset() { return getQuadVertexPosition(vec2(0.0, -1.0), vec2(1.0, 1.0)); }
|
|
@@ -15339,7 +15339,7 @@ function iz(i) {
|
|
|
15339
15339
|
e.push(Rc(new yh(), t.dataType, t.numComponents));
|
|
15340
15340
|
return e;
|
|
15341
15341
|
}
|
|
15342
|
-
class Ch extends
|
|
15342
|
+
class Ch extends Vr {
|
|
15343
15343
|
constructor(e, t) {
|
|
15344
15344
|
super(e, t);
|
|
15345
15345
|
}
|
|
@@ -15589,7 +15589,7 @@ class dz extends X {
|
|
|
15589
15589
|
}
|
|
15590
15590
|
});
|
|
15591
15591
|
const r = this.element, s = this.registerDisposer(new _i(r, U1));
|
|
15592
|
-
s.allShortcutsAreGlobal = !0, r.classList.add("neuroglancer-coordinate-space-transform-widget"), this.registerDisposer(new
|
|
15592
|
+
s.allShortcutsAreGlobal = !0, r.classList.add("neuroglancer-coordinate-space-transform-widget"), this.registerDisposer(new Br(r, U1));
|
|
15593
15593
|
const a = dt(() => this.updateView());
|
|
15594
15594
|
this.registerDisposer(e.changed.add(a));
|
|
15595
15595
|
const l = this.coefficientContainer, d = this.translationContainer, u = this.outputNameContainer, h = this.inputNameContainer, g = this.inputScaleContainer, v = this.inputLowerBoundsContainer, y = this.inputUpperBoundsContainer, C = this.outputScaleContainer, w = this.addOutputDimensionCell, b = this.addOutputDimensionIcon, E = this.addSourceDimensionIcon, T = this.resetToIdentityButton, P = this.resetToDefaultButton;
|
|
@@ -16593,7 +16593,7 @@ class Cz extends X {
|
|
|
16593
16593
|
e !== void 0 && e.dispose(), Et(this.element), this.cancelActiveCompletion(), super.disposed();
|
|
16594
16594
|
}
|
|
16595
16595
|
}
|
|
16596
|
-
class
|
|
16596
|
+
class Fr extends X {
|
|
16597
16597
|
constructor(e = new Mt(Mt.VISIBLE)) {
|
|
16598
16598
|
super(), this.visibility = e, this.element = document.createElement("div"), this.element.classList.add("neuroglancer-tab-content");
|
|
16599
16599
|
}
|
|
@@ -16912,7 +16912,7 @@ function oI(i) {
|
|
|
16912
16912
|
}
|
|
16913
16913
|
return !1;
|
|
16914
16914
|
}
|
|
16915
|
-
class Az extends
|
|
16915
|
+
class Az extends Fr {
|
|
16916
16916
|
constructor(e) {
|
|
16917
16917
|
super(), this.layer = e, this.generation = -1, this.sourceViews = new ce(), this.addDataSourceIcon = sI({ title: "Add additional data source" }), this.layerTypeDetection = document.createElement("div"), this.layerTypeElement = document.createElement("span"), this.dataSourcesContainer = document.createElement("div"), this.detectedLayerConstructor = void 0;
|
|
16918
16918
|
const t = this.element, n = this.dataSourcesContainer;
|
|
@@ -17933,7 +17933,7 @@ class bI extends uL {
|
|
|
17933
17933
|
constructor(e, t, n) {
|
|
17934
17934
|
super(e, t, n.visibility), this.viewer = n, this.mouseX = -1, this.mouseY = -1, this.pickRequestPending = !1, this.mouseStateForcer = () => this.blockOnPickRequest(), this.pickingData = [new tE(), new tE()], this.pickRequests = [new nE(), new nE()], this.pickBufferContents = new Float32Array(2 * 4 * nt * nt), this.pickTimerId = -1, this.nextPickRequestTime = 0, this.pendingPickRequestTimerId = -1, this.pendingPickRequestTimerExpired = () => {
|
|
17935
17935
|
this.pendingPickRequestTimerId = -1, this.pickRequestPending && this.attemptToIssuePickRequest();
|
|
17936
|
-
}, this.inputEventMap = n.inputEventMap, t.classList.add("neuroglancer-rendered-data-panel"), t.classList.add("neuroglancer-panel"), t.classList.add("neuroglancer-noselect"), typeof NEUROGLANCER_SHOW_OBJECT_SELECTION_TOOLTIP < "u" && NEUROGLANCER_SHOW_OBJECT_SELECTION_TOOLTIP === !0 && (t.title = "Double click to toggle display of object under mouse pointer. Control+rightclick to pin/unpin selection."), this.registerDisposer(new Th(t)), this.registerDisposer(new _i(t, this.inputEventMap)), this.registerDisposer(new
|
|
17936
|
+
}, this.inputEventMap = n.inputEventMap, t.classList.add("neuroglancer-rendered-data-panel"), t.classList.add("neuroglancer-panel"), t.classList.add("neuroglancer-noselect"), typeof NEUROGLANCER_SHOW_OBJECT_SELECTION_TOOLTIP < "u" && NEUROGLANCER_SHOW_OBJECT_SELECTION_TOOLTIP === !0 && (t.title = "Double click to toggle display of object under mouse pointer. Control+rightclick to pin/unpin selection."), this.registerDisposer(new Th(t)), this.registerDisposer(new _i(t, this.inputEventMap)), this.registerDisposer(new Br(t, this.inputEventMap, (r) => {
|
|
17937
17937
|
this.onMousemove(r);
|
|
17938
17938
|
})), this.registerDisposer(new o$(t, this.inputEventMap)), this.registerEventListener(t, "mousemove", this.onMousemove.bind(this)), this.registerEventListener(t, "touchstart", this.onTouchstart.bind(this)), this.registerEventListener(t, "mouseleave", () => this.onMouseout()), this.registerEventListener(
|
|
17939
17939
|
t,
|
|
@@ -18911,7 +18911,7 @@ class N$ extends X {
|
|
|
18911
18911
|
this.updateDefault();
|
|
18912
18912
|
}), a.appendChild(d), this.registerDisposer(e), this.registerDisposer(n), this.registerDisposer(t.changed.add(this.scheduleUpdateView)), this.registerDisposer(e.changed.add(this.scheduleUpdateView));
|
|
18913
18913
|
const g = this.registerDisposer(new _i(s, rE));
|
|
18914
|
-
g.allShortcutsAreGlobal = !0, this.registerDisposer(new
|
|
18914
|
+
g.allShortcutsAreGlobal = !0, this.registerDisposer(new Br(s, rE)), ve(a, "cancel", () => {
|
|
18915
18915
|
this.updateView();
|
|
18916
18916
|
const w = document.activeElement;
|
|
18917
18917
|
w instanceof HTMLElement && s.contains(w) && w.blur();
|
|
@@ -19407,7 +19407,7 @@ function K$(i) {
|
|
|
19407
19407
|
function sr(i) {
|
|
19408
19408
|
return i.json();
|
|
19409
19409
|
}
|
|
19410
|
-
async function
|
|
19410
|
+
async function bs(i, e, t, n = Nt) {
|
|
19411
19411
|
if (n === Nt) {
|
|
19412
19412
|
const a = await sE(i, e);
|
|
19413
19413
|
return await t(a);
|
|
@@ -19440,7 +19440,7 @@ async function hS(i, e, t, n, r, s, a = Nt) {
|
|
|
19440
19440
|
AV(a), d > 1 && await new xt((u) => setTimeout(u, aE(d - 2))), l = await i.get(l, a);
|
|
19441
19441
|
t: for (let u = 0; ; )
|
|
19442
19442
|
try {
|
|
19443
|
-
return await
|
|
19443
|
+
return await bs(typeof e == "function" ? e(l.credentials) : e, r(l.credentials, t), n, a);
|
|
19444
19444
|
} catch (h) {
|
|
19445
19445
|
if (h instanceof ra) {
|
|
19446
19446
|
if (s(h, l.credentials) === "refresh") {
|
|
@@ -19456,7 +19456,7 @@ async function hS(i, e, t, n, r, s, a = Nt) {
|
|
|
19456
19456
|
}
|
|
19457
19457
|
}
|
|
19458
19458
|
function Ys(i, e, t, n, r = Nt) {
|
|
19459
|
-
return i === void 0 ?
|
|
19459
|
+
return i === void 0 ? bs(e, t, n, r) : hS(i, e, t, n, (s, a) => {
|
|
19460
19460
|
if (!s.accessToken) return a;
|
|
19461
19461
|
const l = new Headers(a.headers);
|
|
19462
19462
|
return l.set("Authorization", `${s.tokenType} ${s.accessToken}`), H(H({}, a), { headers: l });
|
|
@@ -19530,7 +19530,7 @@ class tG extends Uc {
|
|
|
19530
19530
|
constructor(e) {
|
|
19531
19531
|
super(), this.bucket = e, this.get = Eh(async () => {
|
|
19532
19532
|
var t;
|
|
19533
|
-
const n = this.bucket, r = await
|
|
19533
|
+
const n = this.bucket, r = await bs(`https://s3.amazonaws.com/${n}?location`, {}, (d) => d.text()), a = new DOMParser().parseFromString(r, "application/xml").querySelector("LocationConstraint");
|
|
19534
19534
|
if (a === null)
|
|
19535
19535
|
throw new Error(`Unable to determine location of S3 bucket: ${n}`);
|
|
19536
19536
|
return { region: ((t = a.textContent) === null || t === void 0 ? void 0 : t.trim()) || "us-east-1" };
|
|
@@ -19543,7 +19543,7 @@ function II(i) {
|
|
|
19543
19543
|
}
|
|
19544
19544
|
async function nG(i, e, t, n, r, s = Nt) {
|
|
19545
19545
|
const l = (await i.get()).credentials.region;
|
|
19546
|
-
return await
|
|
19546
|
+
return await bs(`https://${e}.s3.${l}.amazonaws.com${t}`, n, r, s);
|
|
19547
19547
|
}
|
|
19548
19548
|
async function iG(i, e, t) {
|
|
19549
19549
|
const s = (await II(i).get()).credentials.region;
|
|
@@ -20100,7 +20100,7 @@ function VI(i) {
|
|
|
20100
20100
|
});
|
|
20101
20101
|
}
|
|
20102
20102
|
const wG = "data:image/svg+xml,%3csvg%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20aria-labelledby='binIconTitle'%3e%3ctitle%20id='binIconTitle'%3eBin%3c/title%3e%3cpath%20d='M19%206L5%206M14%205L10%205M6%2010L6%2020C6%2020.6666667%206.33333333%2021%207%2021%207.66666667%2021%2011%2021%2017%2021%2017.6666667%2021%2018%2020.6666667%2018%2020%2018%2019.3333333%2018%2016%2018%2010'/%3e%3c/svg%3e";
|
|
20103
|
-
function
|
|
20103
|
+
function ps(i = {}) {
|
|
20104
20104
|
const e = pt(H({ svg: wG }, i)), t = e.firstElementChild;
|
|
20105
20105
|
return t && (t.style.fill = "white"), e;
|
|
20106
20106
|
}
|
|
@@ -20224,7 +20224,7 @@ class Rh extends X {
|
|
|
20224
20224
|
}
|
|
20225
20225
|
this.registerDisposer(e.changed.add(this.registerCancellable(dt(() => this.updateView()))));
|
|
20226
20226
|
const a = this.registerDisposer(new _i(r, hE));
|
|
20227
|
-
a.allShortcutsAreGlobal = !0, this.registerDisposer(new
|
|
20227
|
+
a.allShortcutsAreGlobal = !0, this.registerDisposer(new Br(r, hE)), this.registerDisposer(ve(r, "cancel", (l) => {
|
|
20228
20228
|
this.coordinateSpace = void 0, this.updateView(), this.closeDropdown();
|
|
20229
20229
|
const d = l.target;
|
|
20230
20230
|
d instanceof HTMLElement && d.blur();
|
|
@@ -20639,7 +20639,7 @@ class AG extends X {
|
|
|
20639
20639
|
}), y.addEventListener("click", (E) => {
|
|
20640
20640
|
this.panel.layerManager === this.panel.manager.rootLayers ? this.layer.setArchived(!0) : this.layer.containers.size > 2 ? this.panel.layerManager.removeManagedLayer(this.layer) : this.layer.setArchived(!0), E.stopPropagation();
|
|
20641
20641
|
});
|
|
20642
|
-
const w =
|
|
20642
|
+
const w = ps();
|
|
20643
20643
|
w.title = "Delete this layer", w.addEventListener("click", (E) => {
|
|
20644
20644
|
jo(this.layer), E.stopPropagation();
|
|
20645
20645
|
}), r.appendChild(a), g.appendChild(l), g.appendChild(v), v.appendChild(y), v.appendChild(w), r.appendChild(s), !((n = e.layer) === null || n === void 0) && n.allowingRefresh && r.appendChild(C), r.appendChild(g);
|
|
@@ -21506,7 +21506,7 @@ class Pu extends ua {
|
|
|
21506
21506
|
disableTitle: "Unpin panel to this layer"
|
|
21507
21507
|
})).element), this.registerDisposer(Tr((u) => {
|
|
21508
21508
|
r.dataset.neuroglancerLayerPanelPinned = u.toString();
|
|
21509
|
-
}, d)), a.appendChild(
|
|
21509
|
+
}, d)), a.appendChild(ps({
|
|
21510
21510
|
title: "Delete layer",
|
|
21511
21511
|
onClick: () => {
|
|
21512
21512
|
jo(this.layer.managedLayer);
|
|
@@ -21704,7 +21704,7 @@ class XG extends X {
|
|
|
21704
21704
|
enableTitle: "Archive layer (disable and remove from layer groups)",
|
|
21705
21705
|
disableTitle: "Unarchive layer (enable and add to all layer groups)"
|
|
21706
21706
|
})).element), n.appendChild(r), n.appendChild(this.registerDisposer(new KG(t)).element), n.appendChild(this.registerDisposer(new $I(t)).element), n.appendChild(this.registerDisposer(YG(t)).element);
|
|
21707
|
-
const s =
|
|
21707
|
+
const s = ps({
|
|
21708
21708
|
title: "Delete layer",
|
|
21709
21709
|
onClick: () => {
|
|
21710
21710
|
jo(this.layer);
|
|
@@ -21968,14 +21968,14 @@ function Wo() {
|
|
|
21968
21968
|
p[f] = c(o[f], f);
|
|
21969
21969
|
return p;
|
|
21970
21970
|
}
|
|
21971
|
-
function
|
|
21971
|
+
function Ur(o, c, p) {
|
|
21972
21972
|
for (var f = 0, m = p(c); f < o.length && p(o[f]) <= m; )
|
|
21973
21973
|
f++;
|
|
21974
21974
|
o.splice(f, 0, c);
|
|
21975
21975
|
}
|
|
21976
21976
|
function Ko() {
|
|
21977
21977
|
}
|
|
21978
|
-
function
|
|
21978
|
+
function zr(o, c) {
|
|
21979
21979
|
var p;
|
|
21980
21980
|
return Object.create ? p = Object.create(o) : (Ko.prototype = o, p = new Ko()), c && Pe(c, p), p;
|
|
21981
21981
|
}
|
|
@@ -21986,7 +21986,7 @@ function Wo() {
|
|
|
21986
21986
|
function pi(o, c) {
|
|
21987
21987
|
return c ? c.source.indexOf("\\w") > -1 && Ps(o) ? !0 : c.test(o) : Ps(o);
|
|
21988
21988
|
}
|
|
21989
|
-
function
|
|
21989
|
+
function $r(o) {
|
|
21990
21990
|
for (var c in o)
|
|
21991
21991
|
if (o.hasOwnProperty(c) && o[c])
|
|
21992
21992
|
return !1;
|
|
@@ -21996,7 +21996,7 @@ function Wo() {
|
|
|
21996
21996
|
function Rt(o) {
|
|
21997
21997
|
return o.charCodeAt(0) >= 768 && ar.test(o);
|
|
21998
21998
|
}
|
|
21999
|
-
function
|
|
21999
|
+
function Gr(o, c, p) {
|
|
22000
22000
|
for (; (p < 0 ? c > 0 : c < o.length) && Rt(o.charAt(c)); )
|
|
22001
22001
|
c += p;
|
|
22002
22002
|
return c;
|
|
@@ -22011,7 +22011,7 @@ function Wo() {
|
|
|
22011
22011
|
o(S) ? p = S : c = S + f;
|
|
22012
22012
|
}
|
|
22013
22013
|
}
|
|
22014
|
-
function
|
|
22014
|
+
function Wr(o, c, p, f) {
|
|
22015
22015
|
if (!o)
|
|
22016
22016
|
return f(c, p, "ltr", 0);
|
|
22017
22017
|
for (var m = !1, S = 0; S < o.length; ++S) {
|
|
@@ -22021,7 +22021,7 @@ function Wo() {
|
|
|
22021
22021
|
m || f(c, p, "ltr");
|
|
22022
22022
|
}
|
|
22023
22023
|
var Rs = null;
|
|
22024
|
-
function
|
|
22024
|
+
function Hr(o, c, p) {
|
|
22025
22025
|
var f;
|
|
22026
22026
|
Rs = null;
|
|
22027
22027
|
for (var m = 0; m < o.length; ++m) {
|
|
@@ -22060,10 +22060,10 @@ function Wo() {
|
|
|
22060
22060
|
He == "+" && Me == "1" && J[Ve + 1] == "1" ? J[Ve] = "1" : He == "," && Me == J[Ve + 1] && (Me == "1" || Me == "n") && (J[Ve] = Me), Me = He;
|
|
22061
22061
|
}
|
|
22062
22062
|
for (var ht = 0; ht < K; ++ht) {
|
|
22063
|
-
var
|
|
22064
|
-
if (
|
|
22063
|
+
var qt = J[ht];
|
|
22064
|
+
if (qt == ",")
|
|
22065
22065
|
J[ht] = "N";
|
|
22066
|
-
else if (
|
|
22066
|
+
else if (qt == "%") {
|
|
22067
22067
|
var yt = void 0;
|
|
22068
22068
|
for (yt = ht + 1; yt < K && J[yt] == "%"; ++yt)
|
|
22069
22069
|
;
|
|
@@ -22081,30 +22081,30 @@ function Wo() {
|
|
|
22081
22081
|
var _t = void 0;
|
|
22082
22082
|
for (_t = Ft + 1; _t < K && m.test(J[_t]); ++_t)
|
|
22083
22083
|
;
|
|
22084
|
-
for (var Ct = (Ft ? J[Ft - 1] : W) == "L", Dn = (_t < K ? J[_t] : W) == "L", Fa = Ct == Dn ? Ct ? "L" : "R" : W,
|
|
22085
|
-
J[
|
|
22084
|
+
for (var Ct = (Ft ? J[Ft - 1] : W) == "L", Dn = (_t < K ? J[_t] : W) == "L", Fa = Ct == Dn ? Ct ? "L" : "R" : W, rs = Ft; rs < _t; ++rs)
|
|
22085
|
+
J[rs] = Fa;
|
|
22086
22086
|
Ft = _t - 1;
|
|
22087
22087
|
}
|
|
22088
|
-
for (var sn = [], Ui,
|
|
22089
|
-
if (x.test(J[
|
|
22090
|
-
var _f =
|
|
22091
|
-
for (++
|
|
22088
|
+
for (var sn = [], Ui, jt = 0; jt < K; )
|
|
22089
|
+
if (x.test(J[jt])) {
|
|
22090
|
+
var _f = jt;
|
|
22091
|
+
for (++jt; jt < K && x.test(J[jt]); ++jt)
|
|
22092
22092
|
;
|
|
22093
|
-
sn.push(new D(0, _f,
|
|
22093
|
+
sn.push(new D(0, _f, jt));
|
|
22094
22094
|
} else {
|
|
22095
|
-
var pr =
|
|
22096
|
-
for (++
|
|
22095
|
+
var pr = jt, zs = sn.length, $s = z == "rtl" ? 1 : 0;
|
|
22096
|
+
for (++jt; jt < K && J[jt] != "L"; ++jt)
|
|
22097
22097
|
;
|
|
22098
|
-
for (var un = pr; un <
|
|
22098
|
+
for (var un = pr; un < jt; )
|
|
22099
22099
|
if (k.test(J[un])) {
|
|
22100
22100
|
pr < un && (sn.splice(zs, 0, new D(1, pr, un)), zs += $s);
|
|
22101
22101
|
var Ua = un;
|
|
22102
|
-
for (++un; un <
|
|
22102
|
+
for (++un; un < jt && k.test(J[un]); ++un)
|
|
22103
22103
|
;
|
|
22104
22104
|
sn.splice(zs, 0, new D(2, Ua, un)), zs += $s, pr = un;
|
|
22105
22105
|
} else
|
|
22106
22106
|
++un;
|
|
22107
|
-
pr <
|
|
22107
|
+
pr < jt && sn.splice(zs, 0, new D(1, pr, jt));
|
|
22108
22108
|
}
|
|
22109
22109
|
return z == "ltr" && (sn[0].level == 1 && (Ui = _.match(/^\s+/)) && (sn[0].from = Ui[0].length, sn.unshift(new D(0, 0, Ui[0].length))), qe(sn).level == 1 && (Ui = _.match(/\s+$/)) && (qe(sn).to -= Ui[0].length, sn.push(new D(0, K - Ui[0].length, K)))), z == "rtl" ? sn.reverse() : sn;
|
|
22110
22110
|
};
|
|
@@ -22175,7 +22175,7 @@ function Wo() {
|
|
|
22175
22175
|
function Cn(o) {
|
|
22176
22176
|
return o.defaultPrevented != null ? o.defaultPrevented : o.returnValue == !1;
|
|
22177
22177
|
}
|
|
22178
|
-
function
|
|
22178
|
+
function qr(o) {
|
|
22179
22179
|
nn(o), pa(o);
|
|
22180
22180
|
}
|
|
22181
22181
|
function Yo(o) {
|
|
@@ -22200,7 +22200,7 @@ function Wo() {
|
|
|
22200
22200
|
return p.setAttribute("cm-text", ""), p;
|
|
22201
22201
|
}
|
|
22202
22202
|
var Xo;
|
|
22203
|
-
function
|
|
22203
|
+
function jr(o) {
|
|
22204
22204
|
if (Xo != null)
|
|
22205
22205
|
return Xo;
|
|
22206
22206
|
var c = $(o, document.createTextNode("AخA")), p = ne(c, 0, 1).getBoundingClientRect(), f = ne(c, 1, 2).getBoundingClientRect();
|
|
@@ -22219,7 +22219,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
22219
22219
|
return p;
|
|
22220
22220
|
} : function(o) {
|
|
22221
22221
|
return o.split(/\r\n?|\n/);
|
|
22222
|
-
},
|
|
22222
|
+
}, Jr = window.getSelection ? function(o) {
|
|
22223
22223
|
try {
|
|
22224
22224
|
return o.selectionStart != o.selectionEnd;
|
|
22225
22225
|
} catch {
|
|
@@ -22254,7 +22254,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
22254
22254
|
o = yi[o];
|
|
22255
22255
|
else if (o && typeof o.name == "string" && yi.hasOwnProperty(o.name)) {
|
|
22256
22256
|
var c = yi[o.name];
|
|
22257
|
-
typeof c == "string" && (c = { name: c }), o =
|
|
22257
|
+
typeof c == "string" && (c = { name: c }), o = zr(c, o), o.name = c.name;
|
|
22258
22258
|
} else {
|
|
22259
22259
|
if (typeof o == "string" && /^[\w\-]+\/[\w\-]+\+xml$/.test(o))
|
|
22260
22260
|
return va("application/xml");
|
|
@@ -22269,8 +22269,8 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
22269
22269
|
if (!p)
|
|
22270
22270
|
return ya(o, "text/plain");
|
|
22271
22271
|
var f = p(o, c);
|
|
22272
|
-
if (
|
|
22273
|
-
var m =
|
|
22272
|
+
if (Kr.hasOwnProperty(c.name)) {
|
|
22273
|
+
var m = Kr[c.name];
|
|
22274
22274
|
for (var S in m)
|
|
22275
22275
|
m.hasOwnProperty(S) && (f.hasOwnProperty(S) && (f["_" + S] = f[S]), f[S] = m[S]);
|
|
22276
22276
|
}
|
|
@@ -22279,9 +22279,9 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
22279
22279
|
f[x] = c.modeProps[x];
|
|
22280
22280
|
return f;
|
|
22281
22281
|
}
|
|
22282
|
-
var
|
|
22282
|
+
var Kr = {};
|
|
22283
22283
|
function Sa(o, c) {
|
|
22284
|
-
var p =
|
|
22284
|
+
var p = Kr.hasOwnProperty(o) ? Kr[o] : Kr[o] = {};
|
|
22285
22285
|
Pe(c, p);
|
|
22286
22286
|
}
|
|
22287
22287
|
function Oi(o, c) {
|
|
@@ -22446,7 +22446,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
22446
22446
|
function et(o, c) {
|
|
22447
22447
|
return o.sticky == c.sticky && me(o, c) == 0;
|
|
22448
22448
|
}
|
|
22449
|
-
function
|
|
22449
|
+
function $t(o) {
|
|
22450
22450
|
return Z(o.line, o.ch);
|
|
22451
22451
|
}
|
|
22452
22452
|
function xn(o, c) {
|
|
@@ -22848,13 +22848,13 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
22848
22848
|
if (c > o.lastLine())
|
|
22849
22849
|
return c;
|
|
22850
22850
|
var p = Re(o, c), f;
|
|
22851
|
-
if (!
|
|
22851
|
+
if (!Yr(o, p))
|
|
22852
22852
|
return c;
|
|
22853
22853
|
for (; f = Xc(p); )
|
|
22854
22854
|
p = f.find(1, !0).line;
|
|
22855
22855
|
return N(p) + 1;
|
|
22856
22856
|
}
|
|
22857
|
-
function
|
|
22857
|
+
function Yr(o, c) {
|
|
22858
22858
|
var p = cr && c.markedSpans;
|
|
22859
22859
|
if (p) {
|
|
22860
22860
|
for (var f = void 0, m = 0; m < p.length; ++m)
|
|
@@ -22948,7 +22948,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
22948
22948
|
c.measure = {};
|
|
22949
22949
|
for (var m = 0; m <= (c.rest ? c.rest.length : 0); m++) {
|
|
22950
22950
|
var S = m ? c.rest[m - 1] : c.line, x = void 0;
|
|
22951
|
-
f.pos = 0, f.addToken = _R,
|
|
22951
|
+
f.pos = 0, f.addToken = _R, jr(o.display.measure) && (x = je(S, o.doc.direction)) && (f.addToken = NR(f.addToken, x)), f.map = [];
|
|
22952
22952
|
var k = c != o.display.externalMeasured && N(S);
|
|
22953
22953
|
OR(S, f, KS(o, S, k)), S.styleClasses && (S.styleClasses.bgClass && (f.bgClass = oe(S.styleClasses.bgClass, f.bgClass || "")), S.styleClasses.textClass && (f.textClass = oe(S.styleClasses.textClass, f.textClass || ""))), f.map.length == 0 && f.map.push(0, 0, f.content.appendChild(Hc(o.display.measure))), m == 0 ? (c.measure.map = f.map, c.measure.cache = {}) : ((c.measure.maps || (c.measure.maps = [])).push(f.map), (c.measure.caches || (c.measure.caches = [])).push({}));
|
|
22954
22954
|
}
|
|
@@ -23047,8 +23047,8 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
23047
23047
|
} else Me.from > D && J > Me.from && (J = Me.from);
|
|
23048
23048
|
}
|
|
23049
23049
|
if (xe)
|
|
23050
|
-
for (var
|
|
23051
|
-
xe[
|
|
23050
|
+
for (var qt = 0; qt < xe.length; qt += 2)
|
|
23051
|
+
xe[qt + 1] == J && (ie += " " + xe[qt]);
|
|
23052
23052
|
if (!fe || fe.from == D)
|
|
23053
23053
|
for (var yt = 0; yt < pe.length; ++yt)
|
|
23054
23054
|
u0(c, 0, pe[yt]);
|
|
@@ -23091,7 +23091,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
23091
23091
|
}
|
|
23092
23092
|
}
|
|
23093
23093
|
function h0(o, c, p) {
|
|
23094
|
-
this.line = c, this.rest = LR(c), this.size = this.rest ? N(qe(this.rest)) - p + 1 : 1, this.node = this.text = null, this.hidden =
|
|
23094
|
+
this.line = c, this.rest = LR(c), this.size = this.rest ? N(qe(this.rest)) - p + 1 : 1, this.node = this.text = null, this.hidden = Yr(o, c);
|
|
23095
23095
|
}
|
|
23096
23096
|
function Qc(o, c, p) {
|
|
23097
23097
|
for (var f = [], m, S = c; S < p; S = m) {
|
|
@@ -23130,7 +23130,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
23130
23130
|
}
|
|
23131
23131
|
}
|
|
23132
23132
|
var nl = null;
|
|
23133
|
-
function
|
|
23133
|
+
function Gt(o, c) {
|
|
23134
23134
|
var p = or(o, c);
|
|
23135
23135
|
if (p.length) {
|
|
23136
23136
|
var f = Array.prototype.slice.call(arguments, 2), m;
|
|
@@ -23232,7 +23232,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
23232
23232
|
if (c.widgets)
|
|
23233
23233
|
for (var S = il(p), x = 0, k = c.widgets; x < k.length; ++x) {
|
|
23234
23234
|
var D = k[x], _ = B("div", [D.node], "CodeMirror-linewidget" + (D.className ? " " + D.className : ""));
|
|
23235
|
-
D.handleMouseEvents || _.setAttribute("cm-ignore-events", "true"), HR(D, _, p, f), o.display.input.setUneditable(_), m && D.above ? S.insertBefore(_, p.gutter || p.text) : S.appendChild(_),
|
|
23235
|
+
D.handleMouseEvents || _.setAttribute("cm-ignore-events", "true"), HR(D, _, p, f), o.display.input.setUneditable(_), m && D.above ? S.insertBefore(_, p.gutter || p.text) : S.appendChild(_), Gt(D, "redraw");
|
|
23236
23236
|
}
|
|
23237
23237
|
}
|
|
23238
23238
|
function HR(o, c, p, f) {
|
|
@@ -23487,7 +23487,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
23487
23487
|
var fe = k[ie], Se = fe.level == 1;
|
|
23488
23488
|
return x(ue ? Q - 1 : Q, Se != ue);
|
|
23489
23489
|
}
|
|
23490
|
-
var W =
|
|
23490
|
+
var W = Hr(k, D, _), K = Rs, J = z(D, W, _ == "before");
|
|
23491
23491
|
return K != null && (J.other = z(D, K, _ != "before")), J;
|
|
23492
23492
|
}
|
|
23493
23493
|
function D0(o, c) {
|
|
@@ -23554,7 +23554,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
23554
23554
|
var xe = wi(o, Z(p, Q, ue), "line", c, S);
|
|
23555
23555
|
ie = xe.left, fe = m < xe.top ? -1 : m >= xe.bottom ? 1 : 0;
|
|
23556
23556
|
}
|
|
23557
|
-
return Q =
|
|
23557
|
+
return Q = Gr(c.text, Q, 1), Qh(p, Q, ue, fe, f - ie);
|
|
23558
23558
|
}
|
|
23559
23559
|
function ZR(o, c, p, f, m, S, x) {
|
|
23560
23560
|
var k = Ni(function(W) {
|
|
@@ -23632,7 +23632,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
23632
23632
|
function R0(o) {
|
|
23633
23633
|
var c = ka(o.display), p = o.options.lineWrapping, f = p && Math.max(5, o.display.scroller.clientWidth / Ta(o.display) - 3);
|
|
23634
23634
|
return function(m) {
|
|
23635
|
-
if (
|
|
23635
|
+
if (Yr(o.doc, m))
|
|
23636
23636
|
return 0;
|
|
23637
23637
|
var S = 0;
|
|
23638
23638
|
if (m.widgets)
|
|
@@ -23676,25 +23676,25 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
23676
23676
|
c == null && (c = o.doc.first), p == null && (p = o.doc.first + o.doc.size), f || (f = 0);
|
|
23677
23677
|
var m = o.display;
|
|
23678
23678
|
if (f && p < m.viewTo && (m.updateLineNumbers == null || m.updateLineNumbers > c) && (m.updateLineNumbers = c), o.curOp.viewChanged = !0, c >= m.viewTo)
|
|
23679
|
-
cr && Hh(o.doc, c) < m.viewTo &&
|
|
23679
|
+
cr && Hh(o.doc, c) < m.viewTo && Zr(o);
|
|
23680
23680
|
else if (p <= m.viewFrom)
|
|
23681
|
-
cr && l0(o.doc, p + f) > m.viewFrom ?
|
|
23681
|
+
cr && l0(o.doc, p + f) > m.viewFrom ? Zr(o) : (m.viewFrom += f, m.viewTo += f);
|
|
23682
23682
|
else if (c <= m.viewFrom && p >= m.viewTo)
|
|
23683
|
-
|
|
23683
|
+
Zr(o);
|
|
23684
23684
|
else if (c <= m.viewFrom) {
|
|
23685
23685
|
var S = id(o, p, p + f, 1);
|
|
23686
|
-
S ? (m.view = m.view.slice(S.index), m.viewFrom = S.lineN, m.viewTo += f) :
|
|
23686
|
+
S ? (m.view = m.view.slice(S.index), m.viewFrom = S.lineN, m.viewTo += f) : Zr(o);
|
|
23687
23687
|
} else if (p >= m.viewTo) {
|
|
23688
23688
|
var x = id(o, c, c, -1);
|
|
23689
|
-
x ? (m.view = m.view.slice(0, x.index), m.viewTo = x.lineN) :
|
|
23689
|
+
x ? (m.view = m.view.slice(0, x.index), m.viewTo = x.lineN) : Zr(o);
|
|
23690
23690
|
} else {
|
|
23691
23691
|
var k = id(o, c, c, -1), D = id(o, p, p + f, 1);
|
|
23692
|
-
k && D ? (m.view = m.view.slice(0, k.index).concat(Qc(o, k.lineN, D.lineN)).concat(m.view.slice(D.index)), m.viewTo += f) :
|
|
23692
|
+
k && D ? (m.view = m.view.slice(0, k.index).concat(Qc(o, k.lineN, D.lineN)).concat(m.view.slice(D.index)), m.viewTo += f) : Zr(o);
|
|
23693
23693
|
}
|
|
23694
23694
|
var _ = m.externalMeasured;
|
|
23695
23695
|
_ && (p < _.lineN ? _.lineN += f : c < _.lineN + _.size && (m.externalMeasured = null));
|
|
23696
23696
|
}
|
|
23697
|
-
function
|
|
23697
|
+
function Xr(o, c, p) {
|
|
23698
23698
|
o.curOp.viewChanged = !0;
|
|
23699
23699
|
var f = o.display, m = o.display.externalMeasured;
|
|
23700
23700
|
if (m && c >= m.lineN && c < m.lineN + m.size && (f.externalMeasured = null), !(c < f.viewFrom || c >= f.viewTo)) {
|
|
@@ -23705,7 +23705,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
23705
23705
|
}
|
|
23706
23706
|
}
|
|
23707
23707
|
}
|
|
23708
|
-
function
|
|
23708
|
+
function Zr(o) {
|
|
23709
23709
|
o.display.viewFrom = o.display.viewTo = o.doc.first, o.display.view = [], o.display.viewOffset = 0;
|
|
23710
23710
|
}
|
|
23711
23711
|
function id(o, c, p, f) {
|
|
@@ -23784,7 +23784,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
23784
23784
|
height: ` + (Me - xe) + "px"));
|
|
23785
23785
|
}
|
|
23786
23786
|
function W(pe, xe, Ve) {
|
|
23787
|
-
var Me = Re(m, pe), He = Me.text.length, ht,
|
|
23787
|
+
var Me = Re(m, pe), He = Me.text.length, ht, qt;
|
|
23788
23788
|
function yt(At, Ln) {
|
|
23789
23789
|
return nd(o, Z(pe, At), "div", Me, Ln);
|
|
23790
23790
|
}
|
|
@@ -23793,17 +23793,17 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
23793
23793
|
return yt(Ct, _t)[_t];
|
|
23794
23794
|
}
|
|
23795
23795
|
var Tn = je(Me, m.direction);
|
|
23796
|
-
return
|
|
23797
|
-
var _t = Xt == "ltr", Ct = yt(At, _t ? "left" : "right"), Dn = yt(Ln - 1, _t ? "right" : "left"), Fa = xe == null && At == 0,
|
|
23796
|
+
return Wr(Tn, xe || 0, Ve ?? He, function(At, Ln, Xt, Ft) {
|
|
23797
|
+
var _t = Xt == "ltr", Ct = yt(At, _t ? "left" : "right"), Dn = yt(Ln - 1, _t ? "right" : "left"), Fa = xe == null && At == 0, rs = Ve == null && Ln == He, sn = Ft == 0, Ui = !Tn || Ft == Tn.length - 1;
|
|
23798
23798
|
if (Dn.top - Ct.top <= 3) {
|
|
23799
|
-
var
|
|
23799
|
+
var jt = (_ ? Fa : rs) && sn, _f = (_ ? rs : Fa) && Ui, pr = jt ? k : (_t ? Ct : Dn).left, zs = _f ? D : (_t ? Dn : Ct).right;
|
|
23800
23800
|
z(pr, Ct.top, zs - pr, Ct.bottom);
|
|
23801
23801
|
} else {
|
|
23802
23802
|
var $s, un, Ua, Mf;
|
|
23803
|
-
_t ? ($s = _ && Fa && sn ? k : Ct.left, un = _ ? D : Bn(At, Xt, "before"), Ua = _ ? k : Bn(Ln, Xt, "after"), Mf = _ &&
|
|
23803
|
+
_t ? ($s = _ && Fa && sn ? k : Ct.left, un = _ ? D : Bn(At, Xt, "before"), Ua = _ ? k : Bn(Ln, Xt, "after"), Mf = _ && rs && Ui ? D : Dn.right) : ($s = _ ? Bn(At, Xt, "before") : k, un = !_ && Fa && sn ? D : Ct.right, Ua = !_ && rs && Ui ? k : Dn.left, Mf = _ ? Bn(Ln, Xt, "after") : D), z($s, Ct.top, un - $s, Ct.bottom), Ct.bottom < Dn.top && z(k, Ct.bottom, null, Dn.top), z(Ua, Dn.top, Mf - Ua, Dn.bottom);
|
|
23804
23804
|
}
|
|
23805
|
-
(!ht || rd(Ct, ht) < 0) && (ht = Ct), rd(Dn, ht) < 0 && (ht = Dn), (!
|
|
23806
|
-
}), { start: ht, end:
|
|
23805
|
+
(!ht || rd(Ct, ht) < 0) && (ht = Ct), rd(Dn, ht) < 0 && (ht = Dn), (!qt || rd(Ct, qt) < 0) && (qt = Ct), rd(Dn, qt) < 0 && (qt = Dn);
|
|
23806
|
+
}), { start: ht, end: qt };
|
|
23807
23807
|
}
|
|
23808
23808
|
var K = c.from(), J = c.to();
|
|
23809
23809
|
if (K.line == J.line)
|
|
@@ -24162,7 +24162,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24162
24162
|
Us(o);
|
|
24163
24163
|
}
|
|
24164
24164
|
}
|
|
24165
|
-
function
|
|
24165
|
+
function Wt(o, c) {
|
|
24166
24166
|
return function() {
|
|
24167
24167
|
if (o.curOp)
|
|
24168
24168
|
return c.apply(o, arguments);
|
|
@@ -24186,7 +24186,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24186
24186
|
}
|
|
24187
24187
|
};
|
|
24188
24188
|
}
|
|
24189
|
-
function
|
|
24189
|
+
function Ht(o) {
|
|
24190
24190
|
return function() {
|
|
24191
24191
|
var c = this.cm;
|
|
24192
24192
|
if (!c || c.curOp)
|
|
@@ -24221,7 +24221,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24221
24221
|
return ul(o, o.options.workDelay), !0;
|
|
24222
24222
|
}), c.highlightFrontier = f.line, c.modeFrontier = Math.max(c.modeFrontier, f.line), m.length && Vn(o, function() {
|
|
24223
24223
|
for (var S = 0; S < m.length; S++)
|
|
24224
|
-
|
|
24224
|
+
Xr(o, m[S], "text");
|
|
24225
24225
|
});
|
|
24226
24226
|
}
|
|
24227
24227
|
}
|
|
@@ -24261,10 +24261,10 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24261
24261
|
function hf(o, c) {
|
|
24262
24262
|
var p = o.display, f = o.doc;
|
|
24263
24263
|
if (c.editorIsHidden)
|
|
24264
|
-
return
|
|
24264
|
+
return Zr(o), !1;
|
|
24265
24265
|
if (!c.force && c.visible.from >= p.viewFrom && c.visible.to <= p.viewTo && (p.updateLineNumbers == null || p.updateLineNumbers >= p.viewTo) && p.renderedView == p.view && A0(o) == 0)
|
|
24266
24266
|
return !1;
|
|
24267
|
-
G0(o) && (
|
|
24267
|
+
G0(o) && (Zr(o), c.dims = nf(o));
|
|
24268
24268
|
var m = f.first + f.size, S = Math.max(c.visible.from - o.options.viewportMargin, f.first), x = Math.min(m, c.visible.to + o.options.viewportMargin);
|
|
24269
24269
|
p.viewFrom < S && S - p.viewFrom < 20 && (S = Math.max(f.first, p.viewFrom)), p.viewTo > x && p.viewTo - x < 20 && (x = Math.min(m, p.viewTo)), cr && (S = Hh(o.doc, S), x = l0(o.doc, x));
|
|
24270
24270
|
var k = S != p.viewFrom || x != p.viewTo || p.lastWrapHeight != c.wrapperHeight || p.lastWrapWidth != c.wrapperWidth;
|
|
@@ -24321,7 +24321,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24321
24321
|
}
|
|
24322
24322
|
function pf(o) {
|
|
24323
24323
|
var c = o.gutters.offsetWidth;
|
|
24324
|
-
o.sizer.style.marginLeft = c + "px",
|
|
24324
|
+
o.sizer.style.marginLeft = c + "px", Gt(o, "gutterChanged", o);
|
|
24325
24325
|
}
|
|
24326
24326
|
function gf(o, c) {
|
|
24327
24327
|
o.display.sizer.style.minHeight = c.docHeight + "px", o.display.heightForcer.style.top = c.docHeight + "px", o.display.gutters.style.height = c.docHeight + o.display.barHeight + Bi(o) + "px";
|
|
@@ -24449,7 +24449,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24449
24449
|
return !0;
|
|
24450
24450
|
}, Wn.prototype.deepCopy = function() {
|
|
24451
24451
|
for (var o = [], c = 0; c < this.ranges.length; c++)
|
|
24452
|
-
o[c] = new tt(
|
|
24452
|
+
o[c] = new tt($t(this.ranges[c].anchor), $t(this.ranges[c].head));
|
|
24453
24453
|
return new Wn(o, this.primIndex);
|
|
24454
24454
|
}, Wn.prototype.somethingSelected = function() {
|
|
24455
24455
|
for (var o = 0; o < this.ranges.length; o++)
|
|
@@ -24489,10 +24489,10 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24489
24489
|
}
|
|
24490
24490
|
return new Wn(c, p);
|
|
24491
24491
|
}
|
|
24492
|
-
function
|
|
24492
|
+
function Qr(o, c) {
|
|
24493
24493
|
return new Wn([new tt(o, c || o)], 0);
|
|
24494
24494
|
}
|
|
24495
|
-
function
|
|
24495
|
+
function es(o) {
|
|
24496
24496
|
return o.text ? Z(
|
|
24497
24497
|
o.from.line + o.text.length - 1,
|
|
24498
24498
|
qe(o.text).length + (o.text.length == 1 ? o.from.ch : 0)
|
|
@@ -24502,9 +24502,9 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24502
24502
|
if (me(o, c.from) < 0)
|
|
24503
24503
|
return o;
|
|
24504
24504
|
if (me(o, c.to) <= 0)
|
|
24505
|
-
return
|
|
24505
|
+
return es(c);
|
|
24506
24506
|
var p = o.line + c.text.length - (c.to.line - c.from.line) - 1, f = o.ch;
|
|
24507
|
-
return o.line == c.to.line && (f +=
|
|
24507
|
+
return o.line == c.to.line && (f += es(c).ch - c.to.ch), Z(p, f);
|
|
24508
24508
|
}
|
|
24509
24509
|
function vf(o, c) {
|
|
24510
24510
|
for (var p = [], f = 0; f < o.sel.ranges.length; f++) {
|
|
@@ -24521,7 +24521,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24521
24521
|
}
|
|
24522
24522
|
function bA(o, c, p) {
|
|
24523
24523
|
for (var f = [], m = Z(o.first, 0), S = m, x = 0; x < c.length; x++) {
|
|
24524
|
-
var k = c[x], D = J0(k.from, m, S), _ = J0(
|
|
24524
|
+
var k = c[x], D = J0(k.from, m, S), _ = J0(es(k), m, S);
|
|
24525
24525
|
if (m = k.to, S = _, p == "around") {
|
|
24526
24526
|
var z = o.sel.ranges[x], W = me(z.head, z.anchor) < 0;
|
|
24527
24527
|
f[x] = new tt(W ? _ : D, W ? D : _);
|
|
@@ -24546,7 +24546,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24546
24546
|
return p ? p[Se] : null;
|
|
24547
24547
|
}
|
|
24548
24548
|
function S(Se, pe, xe) {
|
|
24549
|
-
DR(Se, pe, xe, f),
|
|
24549
|
+
DR(Se, pe, xe, f), Gt(Se, "change", Se, c);
|
|
24550
24550
|
}
|
|
24551
24551
|
function x(Se, pe) {
|
|
24552
24552
|
for (var xe = [], Ve = Se; Ve < pe; ++Ve)
|
|
@@ -24573,9 +24573,9 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24573
24573
|
var fe = x(1, _.length - 1);
|
|
24574
24574
|
Q > 1 && o.remove(k.line + 1, Q - 1), o.insert(k.line + 1, fe);
|
|
24575
24575
|
}
|
|
24576
|
-
|
|
24576
|
+
Gt(o, "change", o, c);
|
|
24577
24577
|
}
|
|
24578
|
-
function
|
|
24578
|
+
function ts(o, c, p) {
|
|
24579
24579
|
function f(m, S, x) {
|
|
24580
24580
|
if (m.linked)
|
|
24581
24581
|
for (var k = 0; k < m.linked.length; ++k) {
|
|
@@ -24605,8 +24605,8 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24605
24605
|
this.done = [], this.undone = [], this.undoDepth = o ? o.undoDepth : 1 / 0, this.lastModTime = this.lastSelTime = 0, this.lastOp = this.lastSelOp = null, this.lastOrigin = this.lastSelOrigin = null, this.generation = this.maxGeneration = o ? o.maxGeneration : 1;
|
|
24606
24606
|
}
|
|
24607
24607
|
function bf(o, c) {
|
|
24608
|
-
var p = { from:
|
|
24609
|
-
return eb(o, p, c.from.line, c.to.line + 1),
|
|
24608
|
+
var p = { from: $t(c.from), to: es(c), text: lr(o, c.from, c.to) };
|
|
24609
|
+
return eb(o, p, c.from.line, c.to.line + 1), ts(o, function(f) {
|
|
24610
24610
|
return eb(f, p, c.from.line, c.to.line + 1);
|
|
24611
24611
|
}, !0), p;
|
|
24612
24612
|
}
|
|
@@ -24632,7 +24632,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24632
24632
|
m.undone.length = 0;
|
|
24633
24633
|
var S = +/* @__PURE__ */ new Date(), x, k;
|
|
24634
24634
|
if ((m.lastOp == f || m.lastOrigin == c.origin && c.origin && (c.origin.charAt(0) == "+" && m.lastModTime > S - (o.cm ? o.cm.options.historyEventDelay : 500) || c.origin.charAt(0) == "*")) && (x = CA(m, m.lastOp == f)))
|
|
24635
|
-
k = qe(x.changes), me(c.from, c.to) == 0 && me(c.from, k.to) == 0 ? k.to =
|
|
24635
|
+
k = qe(x.changes), me(c.from, c.to) == 0 && me(c.from, k.to) == 0 ? k.to = es(c) : x.changes.push(bf(o, c));
|
|
24636
24636
|
else {
|
|
24637
24637
|
var D = qe(m.done);
|
|
24638
24638
|
for ((!D || !D.ranges) && ud(o.sel, m.done), x = {
|
|
@@ -24738,7 +24738,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24738
24738
|
m[c] = p, rn(o, Ci(o.cm, m, o.sel.primIndex), f);
|
|
24739
24739
|
}
|
|
24740
24740
|
function ib(o, c, p, f) {
|
|
24741
|
-
rn(o,
|
|
24741
|
+
rn(o, Qr(c, p), f);
|
|
24742
24742
|
}
|
|
24743
24743
|
function LA(o, c, p) {
|
|
24744
24744
|
var f = {
|
|
@@ -24768,7 +24768,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24768
24768
|
sb(o, ob(o, c, f, !0)), !(p && p.scroll === !1) && o.cm && o.cm.getOption("readOnly") != "nocursor" && Da(o.cm);
|
|
24769
24769
|
}
|
|
24770
24770
|
function sb(o, c) {
|
|
24771
|
-
c.equals(o.sel) || (o.sel = c, o.cm && (o.cm.curOp.updateInput = 1, o.cm.curOp.selectionChanged = !0, Xn(o.cm)),
|
|
24771
|
+
c.equals(o.sel) || (o.sel = c, o.cm && (o.cm.curOp.updateInput = 1, o.cm.curOp.selectionChanged = !0, Xn(o.cm)), Gt(o, "cursorActivity", o));
|
|
24772
24772
|
}
|
|
24773
24773
|
function ab(o) {
|
|
24774
24774
|
sb(o, ob(o, o.sel, null, !1));
|
|
@@ -24833,7 +24833,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24833
24833
|
function Aa(o, c, p) {
|
|
24834
24834
|
if (o.cm) {
|
|
24835
24835
|
if (!o.cm.curOp)
|
|
24836
|
-
return
|
|
24836
|
+
return Wt(o.cm, Aa)(o, c, p);
|
|
24837
24837
|
if (o.cm.state.suppressEdits)
|
|
24838
24838
|
return;
|
|
24839
24839
|
}
|
|
@@ -24851,7 +24851,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24851
24851
|
var p = vf(o, c);
|
|
24852
24852
|
Q0(o, c, p, o.cm ? o.cm.curOp.id : NaN), pl(o, c, p, Gh(o, c));
|
|
24853
24853
|
var f = [];
|
|
24854
|
-
|
|
24854
|
+
ts(o, function(m, S) {
|
|
24855
24855
|
!S && Ce(f, m.history) == -1 && (gb(m.history, c), f.push(m.history)), pl(m, c, null, Gh(m, c));
|
|
24856
24856
|
});
|
|
24857
24857
|
}
|
|
@@ -24882,9 +24882,9 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24882
24882
|
return k.length = 0, {};
|
|
24883
24883
|
z.push(bf(o, ue));
|
|
24884
24884
|
var fe = ie ? vf(o, ue) : qe(k);
|
|
24885
|
-
pl(o, ue, fe, tb(o, ue)), !ie && o.cm && o.cm.scrollIntoView({ from: ue.from, to:
|
|
24885
|
+
pl(o, ue, fe, tb(o, ue)), !ie && o.cm && o.cm.scrollIntoView({ from: ue.from, to: es(ue) });
|
|
24886
24886
|
var Se = [];
|
|
24887
|
-
|
|
24887
|
+
ts(o, function(pe, xe) {
|
|
24888
24888
|
!xe && Ce(Se, pe.history) == -1 && (gb(pe.history, ue), Se.push(pe.history)), pl(pe, ue, null, tb(pe, ue));
|
|
24889
24889
|
});
|
|
24890
24890
|
}, J = S.changes.length - 1; J >= 0; --J) {
|
|
@@ -24903,12 +24903,12 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24903
24903
|
}), o.sel.primIndex), o.cm)) {
|
|
24904
24904
|
En(o.cm, o.first, o.first - c, c);
|
|
24905
24905
|
for (var p = o.cm.display, f = p.viewFrom; f < p.viewTo; f++)
|
|
24906
|
-
|
|
24906
|
+
Xr(o.cm, f, "gutter");
|
|
24907
24907
|
}
|
|
24908
24908
|
}
|
|
24909
24909
|
function pl(o, c, p, f) {
|
|
24910
24910
|
if (o.cm && !o.cm.curOp)
|
|
24911
|
-
return
|
|
24911
|
+
return Wt(o.cm, pl)(o, c, p, f);
|
|
24912
24912
|
if (c.to.line < o.first) {
|
|
24913
24913
|
hb(o, c.text.length - 1 - (c.to.line - c.from.line));
|
|
24914
24914
|
return;
|
|
@@ -24942,7 +24942,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24942
24942
|
Q > m.maxLineLength && (m.maxLine = J, m.maxLineLength = Q, m.maxLineChanged = !0, k = !1);
|
|
24943
24943
|
}), k && (o.curOp.updateMaxLine = !0)), vR(f, S.line), ul(o, 400);
|
|
24944
24944
|
var _ = c.text.length - (x.line - S.line) - 1;
|
|
24945
|
-
c.full ? En(o) : S.line == x.line && c.text.length == 1 && !K0(o.doc, c) ?
|
|
24945
|
+
c.full ? En(o) : S.line == x.line && c.text.length == 1 && !K0(o.doc, c) ? Xr(o, S.line, "text") : En(o, S.line, x.line + 1, _);
|
|
24946
24946
|
var z = On(o, "changes"), W = On(o, "change");
|
|
24947
24947
|
if (W || z) {
|
|
24948
24948
|
var K = {
|
|
@@ -24952,7 +24952,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24952
24952
|
removed: c.removed,
|
|
24953
24953
|
origin: c.origin
|
|
24954
24954
|
};
|
|
24955
|
-
W &&
|
|
24955
|
+
W && Gt(o, "change", o, K), z && (o.curOp.changeObjs || (o.curOp.changeObjs = [])).push(K);
|
|
24956
24956
|
}
|
|
24957
24957
|
o.display.selForContextMenu = null;
|
|
24958
24958
|
}
|
|
@@ -24990,7 +24990,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
24990
24990
|
}
|
|
24991
24991
|
function gl(o, c, p, f) {
|
|
24992
24992
|
var m = c, S = c;
|
|
24993
|
-
return typeof c == "number" ? S = Re(o, qS(o, c)) : m = N(c), m == null ? null : (f(S, m) && o.cm &&
|
|
24993
|
+
return typeof c == "number" ? S = Re(o, qS(o, c)) : m = N(c), m == null ? null : (f(S, m) && o.cm && Xr(o.cm, m, p), S);
|
|
24994
24994
|
}
|
|
24995
24995
|
function ml(o) {
|
|
24996
24996
|
this.lines = o, this.parent = null;
|
|
@@ -25006,7 +25006,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25006
25006
|
removeInner: function(o, c) {
|
|
25007
25007
|
for (var p = o, f = o + c; p < f; ++p) {
|
|
25008
25008
|
var m = this.lines[p];
|
|
25009
|
-
this.height -= m.height, IR(m),
|
|
25009
|
+
this.height -= m.height, IR(m), Gt(m, "delete");
|
|
25010
25010
|
}
|
|
25011
25011
|
this.lines.splice(o, c);
|
|
25012
25012
|
},
|
|
@@ -25126,15 +25126,15 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25126
25126
|
c.length || (p.widgets = null);
|
|
25127
25127
|
var S = rl(this);
|
|
25128
25128
|
Gn(p, Math.max(0, p.height - S)), o && (Vn(o, function() {
|
|
25129
|
-
mb(o, p, -S),
|
|
25130
|
-
}),
|
|
25129
|
+
mb(o, p, -S), Xr(o, f, "widget");
|
|
25130
|
+
}), Gt(o, "lineWidgetCleared", o, this, f));
|
|
25131
25131
|
}
|
|
25132
25132
|
}, yl.prototype.changed = function() {
|
|
25133
25133
|
var o = this, c = this.height, p = this.doc.cm, f = this.line;
|
|
25134
25134
|
this.height = null;
|
|
25135
25135
|
var m = rl(this) - c;
|
|
25136
|
-
m && (
|
|
25137
|
-
p.curOp.forceUpdate = !0, mb(p, f, m),
|
|
25136
|
+
m && (Yr(this.doc, f) || Gn(f, f.height + m), p && Vn(p, function() {
|
|
25137
|
+
p.curOp.forceUpdate = !0, mb(p, f, m), Gt(p, "lineWidgetChanged", p, o, N(f));
|
|
25138
25138
|
}));
|
|
25139
25139
|
}, gi(yl);
|
|
25140
25140
|
function mb(o, c, p) {
|
|
@@ -25144,35 +25144,35 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25144
25144
|
var m = new yl(o, p, f), S = o.cm;
|
|
25145
25145
|
return S && m.noHScroll && (S.display.alignWidgets = !0), gl(o, c, "widget", function(x) {
|
|
25146
25146
|
var k = x.widgets || (x.widgets = []);
|
|
25147
|
-
if (m.insertAt == null ? k.push(m) : k.splice(Math.min(k.length, Math.max(0, m.insertAt)), 0, m), m.line = x, S && !
|
|
25147
|
+
if (m.insertAt == null ? k.push(m) : k.splice(Math.min(k.length, Math.max(0, m.insertAt)), 0, m), m.line = x, S && !Yr(o, x)) {
|
|
25148
25148
|
var D = dr(x) < o.scrollTop;
|
|
25149
25149
|
Gn(x, x.height + rl(m)), D && uf(S, m.height), S.curOp.forceUpdate = !0;
|
|
25150
25150
|
}
|
|
25151
25151
|
return !0;
|
|
25152
|
-
}), S &&
|
|
25152
|
+
}), S && Gt(S, "lineWidgetAdded", S, m, typeof c == "number" ? c : N(c)), m;
|
|
25153
25153
|
}
|
|
25154
|
-
var vb = 0,
|
|
25154
|
+
var vb = 0, ns = function(o, c) {
|
|
25155
25155
|
this.lines = [], this.type = c, this.doc = o, this.id = ++vb;
|
|
25156
25156
|
};
|
|
25157
|
-
|
|
25157
|
+
ns.prototype.clear = function() {
|
|
25158
25158
|
if (!this.explicitlyCleared) {
|
|
25159
25159
|
var o = this.doc.cm, c = o && !o.curOp;
|
|
25160
25160
|
if (c && Fs(o), On(this, "clear")) {
|
|
25161
25161
|
var p = this.find();
|
|
25162
|
-
p &&
|
|
25162
|
+
p && Gt(this, "clear", p.from, p.to);
|
|
25163
25163
|
}
|
|
25164
25164
|
for (var f = null, m = null, S = 0; S < this.lines.length; ++S) {
|
|
25165
25165
|
var x = this.lines[S], k = tl(x.markedSpans, this);
|
|
25166
|
-
o && !this.collapsed ?
|
|
25166
|
+
o && !this.collapsed ? Xr(o, N(x), "text") : o && (k.to != null && (m = N(x)), k.from != null && (f = N(x))), x.markedSpans = bR(x.markedSpans, k), k.from == null && this.collapsed && !Yr(this.doc, x) && o && Gn(x, ka(o.display));
|
|
25167
25167
|
}
|
|
25168
25168
|
if (o && this.collapsed && !o.options.lineWrapping)
|
|
25169
25169
|
for (var D = 0; D < this.lines.length; ++D) {
|
|
25170
25170
|
var _ = bi(this.lines[D]), z = Zc(_);
|
|
25171
25171
|
z > o.display.maxLineLength && (o.display.maxLine = _, o.display.maxLineLength = z, o.display.maxLineChanged = !0);
|
|
25172
25172
|
}
|
|
25173
|
-
f != null && o && this.collapsed && En(o, f, m + 1), this.lines.length = 0, this.explicitlyCleared = !0, this.atomic && this.doc.cantEdit && (this.doc.cantEdit = !1, o && ab(o.doc)), o &&
|
|
25173
|
+
f != null && o && this.collapsed && En(o, f, m + 1), this.lines.length = 0, this.explicitlyCleared = !0, this.atomic && this.doc.cantEdit && (this.doc.cantEdit = !1, o && ab(o.doc)), o && Gt(o, "markerCleared", o, this, f, m), c && Us(o), this.parent && this.parent.clear();
|
|
25174
25174
|
}
|
|
25175
|
-
},
|
|
25175
|
+
}, ns.prototype.find = function(o, c) {
|
|
25176
25176
|
o == null && this.type == "bookmark" && (o = 1);
|
|
25177
25177
|
for (var p, f, m = 0; m < this.lines.length; ++m) {
|
|
25178
25178
|
var S = this.lines[m], x = tl(S.markedSpans, this);
|
|
@@ -25182,36 +25182,36 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25182
25182
|
return f;
|
|
25183
25183
|
}
|
|
25184
25184
|
return p && { from: p, to: f };
|
|
25185
|
-
},
|
|
25185
|
+
}, ns.prototype.changed = function() {
|
|
25186
25186
|
var o = this, c = this.find(-1, !0), p = this, f = this.doc.cm;
|
|
25187
25187
|
!c || !f || Vn(f, function() {
|
|
25188
25188
|
var m = c.line, S = N(c.line), x = Xh(f, S);
|
|
25189
|
-
if (x && (x0(x), f.curOp.selectionChanged = f.curOp.forceUpdate = !0), f.curOp.updateMaxLine = !0, !
|
|
25189
|
+
if (x && (x0(x), f.curOp.selectionChanged = f.curOp.forceUpdate = !0), f.curOp.updateMaxLine = !0, !Yr(p.doc, m) && p.height != null) {
|
|
25190
25190
|
var k = p.height;
|
|
25191
25191
|
p.height = null;
|
|
25192
25192
|
var D = rl(p) - k;
|
|
25193
25193
|
D && Gn(m, m.height + D);
|
|
25194
25194
|
}
|
|
25195
|
-
|
|
25195
|
+
Gt(f, "markerChanged", f, o);
|
|
25196
25196
|
});
|
|
25197
|
-
},
|
|
25197
|
+
}, ns.prototype.attachLine = function(o) {
|
|
25198
25198
|
if (!this.lines.length && this.doc.cm) {
|
|
25199
25199
|
var c = this.doc.cm.curOp;
|
|
25200
25200
|
(!c.maybeHiddenMarkers || Ce(c.maybeHiddenMarkers, this) == -1) && (c.maybeUnhiddenMarkers || (c.maybeUnhiddenMarkers = [])).push(this);
|
|
25201
25201
|
}
|
|
25202
25202
|
this.lines.push(o);
|
|
25203
|
-
},
|
|
25203
|
+
}, ns.prototype.detachLine = function(o) {
|
|
25204
25204
|
if (this.lines.splice(Ce(this.lines, o), 1), !this.lines.length && this.doc.cm) {
|
|
25205
25205
|
var c = this.doc.cm.curOp;
|
|
25206
25206
|
(c.maybeHiddenMarkers || (c.maybeHiddenMarkers = [])).push(this);
|
|
25207
25207
|
}
|
|
25208
|
-
}, gi(
|
|
25208
|
+
}, gi(ns);
|
|
25209
25209
|
function Ma(o, c, p, f, m) {
|
|
25210
25210
|
if (f && f.shared)
|
|
25211
25211
|
return PA(o, c, p, f, m);
|
|
25212
25212
|
if (o.cm && !o.cm.curOp)
|
|
25213
|
-
return
|
|
25214
|
-
var S = new
|
|
25213
|
+
return Wt(o.cm, Ma)(o, c, p, f, m);
|
|
25214
|
+
var S = new ns(o, m), x = me(c, p);
|
|
25215
25215
|
if (f && Pe(f, S, !1), x > 0 || x == 0 && S.clearWhenEmpty !== !1)
|
|
25216
25216
|
return S;
|
|
25217
25217
|
if (S.replacedWith && (S.collapsed = !0, S.widgetNode = le("span", [S.replacedWith], "CodeMirror-widget"), f.handleMouseEvents || S.widgetNode.setAttribute("cm-ignore-events", "true"), f.insertLeft && (S.widgetNode.insertLeft = !0)), S.collapsed) {
|
|
@@ -25228,7 +25228,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25228
25228
|
k == p.line ? p.ch : null
|
|
25229
25229
|
), o.cm && o.cm.curOp), ++k;
|
|
25230
25230
|
}), S.collapsed && o.iter(c.line, p.line + 1, function(W) {
|
|
25231
|
-
|
|
25231
|
+
Yr(o, W) && Gn(W, 0);
|
|
25232
25232
|
}), S.clearOnEnter && Oe(S, "beforeCursorEnter", function() {
|
|
25233
25233
|
return S.clear();
|
|
25234
25234
|
}), S.readOnly && (yR(), (o.history.done.length || o.history.undone.length) && o.clearHistory()), S.collapsed && (S.id = ++vb, S.atomic = !0), D) {
|
|
@@ -25236,8 +25236,8 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25236
25236
|
En(D, c.line, p.line + 1);
|
|
25237
25237
|
else if (S.className || S.startStyle || S.endStyle || S.css || S.attributes || S.title)
|
|
25238
25238
|
for (var z = c.line; z <= p.line; z++)
|
|
25239
|
-
|
|
25240
|
-
S.atomic && ab(D.doc),
|
|
25239
|
+
Xr(D, z, "text");
|
|
25240
|
+
S.atomic && ab(D.doc), Gt(D, "markerAdded", D, S);
|
|
25241
25241
|
}
|
|
25242
25242
|
return S;
|
|
25243
25243
|
}
|
|
@@ -25251,7 +25251,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25251
25251
|
this.explicitlyCleared = !0;
|
|
25252
25252
|
for (var o = 0; o < this.markers.length; ++o)
|
|
25253
25253
|
this.markers[o].clear();
|
|
25254
|
-
|
|
25254
|
+
Gt(this, "clear");
|
|
25255
25255
|
}
|
|
25256
25256
|
}, Sl.prototype.find = function(o, c) {
|
|
25257
25257
|
return this.primary.find(o, c);
|
|
@@ -25259,7 +25259,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25259
25259
|
function PA(o, c, p, f, m) {
|
|
25260
25260
|
f = Pe(f), f.shared = !1;
|
|
25261
25261
|
var S = [Ma(o, c, p, f, m)], x = S[0], k = f.widgetNode;
|
|
25262
|
-
return
|
|
25262
|
+
return ts(o, function(D) {
|
|
25263
25263
|
k && (f.widgetNode = k.cloneNode(!0)), S.push(Ma(D, $e(D, c), $e(D, p), f, m));
|
|
25264
25264
|
for (var _ = 0; _ < D.linked.length; ++_)
|
|
25265
25265
|
if (D.linked[_].isParent)
|
|
@@ -25284,7 +25284,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25284
25284
|
function AA(o) {
|
|
25285
25285
|
for (var c = function(f) {
|
|
25286
25286
|
var m = o[f], S = [m.primary.doc];
|
|
25287
|
-
|
|
25287
|
+
ts(m.primary.doc, function(D) {
|
|
25288
25288
|
return S.push(D);
|
|
25289
25289
|
});
|
|
25290
25290
|
for (var x = 0; x < m.markers.length; x++) {
|
|
@@ -25298,9 +25298,9 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25298
25298
|
return new kn(o, c, p, f, m);
|
|
25299
25299
|
p == null && (p = 0), vl.call(this, [new ml([new Ca("", null)])]), this.first = p, this.scrollTop = this.scrollLeft = 0, this.cantEdit = !1, this.cleanGeneration = 1, this.modeFrontier = this.highlightFrontier = p;
|
|
25300
25300
|
var S = Z(p, 0);
|
|
25301
|
-
this.sel =
|
|
25301
|
+
this.sel = Qr(S), this.history = new dd(null), this.id = ++_A, this.modeOption = c, this.lineSep = f, this.direction = m == "rtl" ? "rtl" : "ltr", this.extend = !1, typeof o == "string" && (o = this.splitLines(o)), Sf(this, { from: S, to: S, text: o }), rn(this, Qr(S), Bt);
|
|
25302
25302
|
};
|
|
25303
|
-
kn.prototype =
|
|
25303
|
+
kn.prototype = zr(vl.prototype, {
|
|
25304
25304
|
constructor: kn,
|
|
25305
25305
|
// Iterate over the document. Supports two forms -- with only one
|
|
25306
25306
|
// argument, it calls that for each line in the document. With
|
|
@@ -25324,7 +25324,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25324
25324
|
var c = Qo(this, this.first, this.first + this.size);
|
|
25325
25325
|
return o === !1 ? c : c.join(o || this.lineSeparator());
|
|
25326
25326
|
},
|
|
25327
|
-
setValue:
|
|
25327
|
+
setValue: Ht(function(o) {
|
|
25328
25328
|
var c = Z(this.first, 0), p = this.first + this.size - 1;
|
|
25329
25329
|
Aa(this, {
|
|
25330
25330
|
from: c,
|
|
@@ -25332,7 +25332,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25332
25332
|
text: this.splitLines(o),
|
|
25333
25333
|
origin: "setValue",
|
|
25334
25334
|
full: !0
|
|
25335
|
-
}, !0), this.cm && ol(this.cm, 0, 0), rn(this,
|
|
25335
|
+
}, !0), this.cm && ol(this.cm, 0, 0), rn(this, Qr(c), Bt);
|
|
25336
25336
|
}),
|
|
25337
25337
|
replaceRange: function(o, c, p, f) {
|
|
25338
25338
|
c = $e(this, c), p = p ? $e(this, p) : c, _a(this, o, c, p, f);
|
|
@@ -25377,23 +25377,23 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25377
25377
|
somethingSelected: function() {
|
|
25378
25378
|
return this.sel.somethingSelected();
|
|
25379
25379
|
},
|
|
25380
|
-
setCursor:
|
|
25380
|
+
setCursor: Ht(function(o, c, p) {
|
|
25381
25381
|
ib(this, $e(this, typeof o == "number" ? Z(o, c || 0) : o), null, p);
|
|
25382
25382
|
}),
|
|
25383
|
-
setSelection:
|
|
25383
|
+
setSelection: Ht(function(o, c, p) {
|
|
25384
25384
|
ib(this, $e(this, o), $e(this, c || o), p);
|
|
25385
25385
|
}),
|
|
25386
|
-
extendSelection:
|
|
25386
|
+
extendSelection: Ht(function(o, c, p) {
|
|
25387
25387
|
hd(this, $e(this, o), c && $e(this, c), p);
|
|
25388
25388
|
}),
|
|
25389
|
-
extendSelections:
|
|
25389
|
+
extendSelections: Ht(function(o, c) {
|
|
25390
25390
|
nb(this, jS(this, o), c);
|
|
25391
25391
|
}),
|
|
25392
|
-
extendSelectionsBy:
|
|
25392
|
+
extendSelectionsBy: Ht(function(o, c) {
|
|
25393
25393
|
var p = Yn(this.sel.ranges, o);
|
|
25394
25394
|
nb(this, jS(this, p), c);
|
|
25395
25395
|
}),
|
|
25396
|
-
setSelections:
|
|
25396
|
+
setSelections: Ht(function(o, c, p) {
|
|
25397
25397
|
if (o.length) {
|
|
25398
25398
|
for (var f = [], m = 0; m < o.length; m++)
|
|
25399
25399
|
f[m] = new tt(
|
|
@@ -25403,7 +25403,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25403
25403
|
c == null && (c = Math.min(o.length - 1, this.sel.primIndex)), rn(this, Ci(this.cm, f, c), p);
|
|
25404
25404
|
}
|
|
25405
25405
|
}),
|
|
25406
|
-
addSelection:
|
|
25406
|
+
addSelection: Ht(function(o, c, p) {
|
|
25407
25407
|
var f = this.sel.ranges.slice(0);
|
|
25408
25408
|
f.push(new tt($e(this, o), $e(this, c || o))), rn(this, Ci(this.cm, f, f.length - 1), p);
|
|
25409
25409
|
}),
|
|
@@ -25426,7 +25426,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25426
25426
|
f[m] = o;
|
|
25427
25427
|
this.replaceSelections(f, c, p || "+input");
|
|
25428
25428
|
},
|
|
25429
|
-
replaceSelections:
|
|
25429
|
+
replaceSelections: Ht(function(o, c, p) {
|
|
25430
25430
|
for (var f = [], m = this.sel, S = 0; S < m.ranges.length; S++) {
|
|
25431
25431
|
var x = m.ranges[S];
|
|
25432
25432
|
f[S] = { from: x.from(), to: x.to(), text: this.splitLines(o[S]), origin: p };
|
|
@@ -25435,16 +25435,16 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25435
25435
|
Aa(this, f[D]);
|
|
25436
25436
|
k ? rb(this, k) : this.cm && Da(this.cm);
|
|
25437
25437
|
}),
|
|
25438
|
-
undo:
|
|
25438
|
+
undo: Ht(function() {
|
|
25439
25439
|
gd(this, "undo");
|
|
25440
25440
|
}),
|
|
25441
|
-
redo:
|
|
25441
|
+
redo: Ht(function() {
|
|
25442
25442
|
gd(this, "redo");
|
|
25443
25443
|
}),
|
|
25444
|
-
undoSelection:
|
|
25444
|
+
undoSelection: Ht(function() {
|
|
25445
25445
|
gd(this, "undo", !0);
|
|
25446
25446
|
}),
|
|
25447
|
-
redoSelection:
|
|
25447
|
+
redoSelection: Ht(function() {
|
|
25448
25448
|
gd(this, "redo", !0);
|
|
25449
25449
|
}),
|
|
25450
25450
|
setExtending: function(o) {
|
|
@@ -25462,7 +25462,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25462
25462
|
},
|
|
25463
25463
|
clearHistory: function() {
|
|
25464
25464
|
var o = this;
|
|
25465
|
-
this.history = new dd(this.history),
|
|
25465
|
+
this.history = new dd(this.history), ts(this, function(c) {
|
|
25466
25466
|
return c.history = o.history;
|
|
25467
25467
|
}, !0);
|
|
25468
25468
|
},
|
|
@@ -25485,17 +25485,17 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25485
25485
|
var c = this.history = new dd(this.history);
|
|
25486
25486
|
c.done = Pa(o.done.slice(0), null, !0), c.undone = Pa(o.undone.slice(0), null, !0);
|
|
25487
25487
|
},
|
|
25488
|
-
setGutterMarker:
|
|
25488
|
+
setGutterMarker: Ht(function(o, c, p) {
|
|
25489
25489
|
return gl(this, o, "gutter", function(f) {
|
|
25490
25490
|
var m = f.gutterMarkers || (f.gutterMarkers = {});
|
|
25491
|
-
return m[c] = p, !p &&
|
|
25491
|
+
return m[c] = p, !p && $r(m) && (f.gutterMarkers = null), !0;
|
|
25492
25492
|
});
|
|
25493
25493
|
}),
|
|
25494
|
-
clearGutter:
|
|
25494
|
+
clearGutter: Ht(function(o) {
|
|
25495
25495
|
var c = this;
|
|
25496
25496
|
this.iter(function(p) {
|
|
25497
25497
|
p.gutterMarkers && p.gutterMarkers[o] && gl(c, p, "gutter", function() {
|
|
25498
|
-
return p.gutterMarkers[o] = null,
|
|
25498
|
+
return p.gutterMarkers[o] = null, $r(p.gutterMarkers) && (p.gutterMarkers = null), !0;
|
|
25499
25499
|
});
|
|
25500
25500
|
});
|
|
25501
25501
|
}),
|
|
@@ -25517,7 +25517,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25517
25517
|
widgets: o.widgets
|
|
25518
25518
|
};
|
|
25519
25519
|
},
|
|
25520
|
-
addLineClass:
|
|
25520
|
+
addLineClass: Ht(function(o, c, p) {
|
|
25521
25521
|
return gl(this, o, c == "gutter" ? "gutter" : "class", function(f) {
|
|
25522
25522
|
var m = c == "text" ? "textClass" : c == "background" ? "bgClass" : c == "gutter" ? "gutterClass" : "wrapClass";
|
|
25523
25523
|
if (!f[m])
|
|
@@ -25530,7 +25530,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25530
25530
|
return !0;
|
|
25531
25531
|
});
|
|
25532
25532
|
}),
|
|
25533
|
-
removeLineClass:
|
|
25533
|
+
removeLineClass: Ht(function(o, c, p) {
|
|
25534
25534
|
return gl(this, o, c == "gutter" ? "gutter" : "class", function(f) {
|
|
25535
25535
|
var m = c == "text" ? "textClass" : c == "background" ? "bgClass" : c == "gutter" ? "gutterClass" : "wrapClass", S = f[m];
|
|
25536
25536
|
if (S)
|
|
@@ -25547,7 +25547,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25547
25547
|
return !0;
|
|
25548
25548
|
});
|
|
25549
25549
|
}),
|
|
25550
|
-
addLineWidget:
|
|
25550
|
+
addLineWidget: Ht(function(o, c, p) {
|
|
25551
25551
|
return IA(this, o, c, p);
|
|
25552
25552
|
}),
|
|
25553
25553
|
removeLineWidget: function(o) {
|
|
@@ -25645,13 +25645,13 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25645
25645
|
}
|
|
25646
25646
|
if (o.history == this.history) {
|
|
25647
25647
|
var f = [o.id];
|
|
25648
|
-
|
|
25648
|
+
ts(o, function(m) {
|
|
25649
25649
|
return f.push(m.id);
|
|
25650
25650
|
}, !0), o.history = new dd(null), o.history.done = Pa(this.history.done, f), o.history.undone = Pa(this.history.undone, f);
|
|
25651
25651
|
}
|
|
25652
25652
|
},
|
|
25653
25653
|
iterLinkedDocs: function(o) {
|
|
25654
|
-
|
|
25654
|
+
ts(this, o);
|
|
25655
25655
|
},
|
|
25656
25656
|
getMode: function() {
|
|
25657
25657
|
return this.mode;
|
|
@@ -25666,7 +25666,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25666
25666
|
return this.lineSep || `
|
|
25667
25667
|
`;
|
|
25668
25668
|
},
|
|
25669
|
-
setDirection:
|
|
25669
|
+
setDirection: Ht(function(o) {
|
|
25670
25670
|
o != "rtl" && (o = "ltr"), o != this.direction && (this.direction = o, this.iter(function(c) {
|
|
25671
25671
|
return c.order = null;
|
|
25672
25672
|
}), this.cm && wA(this.cm));
|
|
@@ -25681,7 +25681,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25681
25681
|
if (!(!p || c.isReadOnly()))
|
|
25682
25682
|
if (f && f.length && window.FileReader && window.File)
|
|
25683
25683
|
for (var m = f.length, S = Array(m), x = 0, k = function() {
|
|
25684
|
-
++x == m &&
|
|
25684
|
+
++x == m && Wt(c, function() {
|
|
25685
25685
|
p = $e(c.doc, p);
|
|
25686
25686
|
var J = {
|
|
25687
25687
|
from: p,
|
|
@@ -25693,7 +25693,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25693
25693
|
),
|
|
25694
25694
|
origin: "paste"
|
|
25695
25695
|
};
|
|
25696
|
-
Aa(c.doc, J), rb(c.doc,
|
|
25696
|
+
Aa(c.doc, J), rb(c.doc, Qr($e(c.doc, p), $e(c.doc, es(J))));
|
|
25697
25697
|
})();
|
|
25698
25698
|
}, D = function(J, Q) {
|
|
25699
25699
|
if (c.options.allowDropFileTypes && Ce(c.options.allowDropFileTypes, J.type) == -1) {
|
|
@@ -25724,7 +25724,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25724
25724
|
var z = o.dataTransfer.getData("Text");
|
|
25725
25725
|
if (z) {
|
|
25726
25726
|
var W;
|
|
25727
|
-
if (c.state.draggingText && !c.state.draggingText.copy && (W = c.listSelections()), fd(c.doc,
|
|
25727
|
+
if (c.state.draggingText && !c.state.draggingText.copy && (W = c.listSelections()), fd(c.doc, Qr(p, p)), W)
|
|
25728
25728
|
for (var K = 0; K < W.length; ++K)
|
|
25729
25729
|
_a(c.doc, "", W[K].anchor, W[K].head, "drag");
|
|
25730
25730
|
c.replaceSelection(z, "around", "paste"), c.display.input.focus();
|
|
@@ -25736,7 +25736,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25736
25736
|
}
|
|
25737
25737
|
function NA(o, c) {
|
|
25738
25738
|
if (d && (!o.state.draggingText || +/* @__PURE__ */ new Date() - Sb < 100)) {
|
|
25739
|
-
|
|
25739
|
+
qr(c);
|
|
25740
25740
|
return;
|
|
25741
25741
|
}
|
|
25742
25742
|
if (!(bt(o, c) || ur(o.display, c)) && (c.dataTransfer.setData("Text", o.getSelection()), c.dataTransfer.effectAllowed = "copyMove", c.dataTransfer.setDragImage && !w)) {
|
|
@@ -25784,7 +25784,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25784
25784
|
var c = o.display;
|
|
25785
25785
|
c.cachedCharWidth = c.cachedTextHeight = c.cachedPaddingH = null, c.scrollbarsClipped = !1, o.setSize();
|
|
25786
25786
|
}
|
|
25787
|
-
for (var
|
|
25787
|
+
for (var is = {
|
|
25788
25788
|
3: "Pause",
|
|
25789
25789
|
8: "Backspace",
|
|
25790
25790
|
9: "Tab",
|
|
@@ -25842,11 +25842,11 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
25842
25842
|
63277: "PageDown",
|
|
25843
25843
|
63302: "Insert"
|
|
25844
25844
|
}, bl = 0; bl < 10; bl++)
|
|
25845
|
-
|
|
25845
|
+
is[bl + 48] = is[bl + 96] = String(bl);
|
|
25846
25846
|
for (var md = 65; md <= 90; md++)
|
|
25847
|
-
|
|
25847
|
+
is[md] = String.fromCharCode(md);
|
|
25848
25848
|
for (var wl = 1; wl <= 12; wl++)
|
|
25849
|
-
|
|
25849
|
+
is[wl + 111] = is[wl + 63235] = "F" + wl;
|
|
25850
25850
|
var fr = {};
|
|
25851
25851
|
fr.basic = {
|
|
25852
25852
|
Left: "goCharLeft",
|
|
@@ -26005,7 +26005,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26005
26005
|
}
|
|
26006
26006
|
}
|
|
26007
26007
|
function xb(o) {
|
|
26008
|
-
var c = typeof o == "string" ? o :
|
|
26008
|
+
var c = typeof o == "string" ? o : is[o.keyCode];
|
|
26009
26009
|
return c == "Ctrl" || c == "Alt" || c == "Shift" || c == "Mod";
|
|
26010
26010
|
}
|
|
26011
26011
|
function Eb(o, c, p) {
|
|
@@ -26015,7 +26015,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26015
26015
|
function kb(o, c) {
|
|
26016
26016
|
if (C && o.keyCode == 34 && o.char)
|
|
26017
26017
|
return !1;
|
|
26018
|
-
var p =
|
|
26018
|
+
var p = is[o.keyCode];
|
|
26019
26019
|
return p == null || o.altGraphKey ? !1 : (o.keyCode == 3 && o.code && (p = o.code), Eb(p, o, c));
|
|
26020
26020
|
}
|
|
26021
26021
|
function vd(o) {
|
|
@@ -26039,7 +26039,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26039
26039
|
});
|
|
26040
26040
|
}
|
|
26041
26041
|
function xf(o, c, p) {
|
|
26042
|
-
var f =
|
|
26042
|
+
var f = Gr(o.text, c + p, p);
|
|
26043
26043
|
return f < 0 || f > o.text.length ? null : f;
|
|
26044
26044
|
}
|
|
26045
26045
|
function Ef(o, c, p) {
|
|
@@ -26071,7 +26071,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26071
26071
|
if (!m)
|
|
26072
26072
|
return Ef(c, p, f);
|
|
26073
26073
|
p.ch >= c.text.length ? (p.ch = c.text.length, p.sticky = "before") : p.ch <= 0 && (p.ch = 0, p.sticky = "after");
|
|
26074
|
-
var S =
|
|
26074
|
+
var S = Hr(m, p.ch, p.sticky), x = m[S];
|
|
26075
26075
|
if (o.doc.direction == "ltr" && x.level % 2 == 0 && (f > 0 ? x.to > p.ch : x.from < p.ch))
|
|
26076
26076
|
return Ef(c, p, f);
|
|
26077
26077
|
var k = function(fe, Se) {
|
|
@@ -26087,8 +26087,8 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26087
26087
|
}
|
|
26088
26088
|
}
|
|
26089
26089
|
var Q = function(fe, Se, pe) {
|
|
26090
|
-
for (var xe = function(ht,
|
|
26091
|
-
return
|
|
26090
|
+
for (var xe = function(ht, qt) {
|
|
26091
|
+
return qt ? new Z(p.line, k(ht, 1), "before") : new Z(p.line, ht, "after");
|
|
26092
26092
|
}; fe >= 0 && fe < m.length; fe += Se) {
|
|
26093
26093
|
var Ve = m[fe], Me = Se > 0 == (Ve.level != 1), He = Me ? pe.begin : k(pe.end, -1);
|
|
26094
26094
|
if (Ve.from <= He && He < Ve.to || (He = Me ? Ve.from : k(Ve.to, -1), pe.begin <= He && He < pe.end))
|
|
@@ -26382,7 +26382,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26382
26382
|
}
|
|
26383
26383
|
function Db(o, c, p, f) {
|
|
26384
26384
|
var m = WA(o, c, f);
|
|
26385
|
-
return m == "multi" && (o.state.keySeq = c), m == "handled" &&
|
|
26385
|
+
return m == "multi" && (o.state.keySeq = c), m == "handled" && Gt(o, "keyHandled", o, c, p), (m == "handled" || m == "multi") && (nn(p), of(o)), !!m;
|
|
26386
26386
|
}
|
|
26387
26387
|
function Ib(o, c) {
|
|
26388
26388
|
var p = kb(c, !0);
|
|
@@ -26492,7 +26492,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26492
26492
|
o.options.dragDrop && Fh && !o.isReadOnly() && p == "single" && (x = S.contains(c)) > -1 && (me((x = S.ranges[x]).from(), c) < 0 || c.xRel > 0) && (me(x.to(), c) > 0 || c.xRel < 0) ? QA(o, f, c, m) : e_(o, f, c, m);
|
|
26493
26493
|
}
|
|
26494
26494
|
function QA(o, c, p, f) {
|
|
26495
|
-
var m = o.display, S = !1, x =
|
|
26495
|
+
var m = o.display, S = !1, x = Wt(o, function(_) {
|
|
26496
26496
|
h && (m.scroller.draggable = !1), o.state.draggingText = !1, o.state.delayingBlurEvent && (o.hasFocus() ? o.state.delayingBlurEvent = !1 : lf(o)), tn(m.wrapper.ownerDocument, "mouseup", x), tn(m.wrapper.ownerDocument, "mousemove", k), tn(m.scroller, "dragstart", D), tn(m.scroller, "drop", x), S || (nn(_), f.addNew || hd(o.doc, p, null, null, f.extend), h && !w || d && u == 9 ? setTimeout(function() {
|
|
26497
26497
|
m.wrapper.ownerDocument.body.focus({ preventScroll: !0 }), m.input.focus();
|
|
26498
26498
|
}, 20) : m.input.focus());
|
|
@@ -26539,9 +26539,9 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26539
26539
|
function K(pe) {
|
|
26540
26540
|
if (me(W, pe) != 0)
|
|
26541
26541
|
if (W = pe, f.unit == "rectangle") {
|
|
26542
|
-
for (var xe = [], Ve = o.options.tabSize, Me = Ue(Re(S, p.line).text, p.ch, Ve), He = Ue(Re(S, pe.line).text, pe.ch, Ve), ht = Math.min(Me, He),
|
|
26542
|
+
for (var xe = [], Ve = o.options.tabSize, Me = Ue(Re(S, p.line).text, p.ch, Ve), He = Ue(Re(S, pe.line).text, pe.ch, Ve), ht = Math.min(Me, He), qt = Math.max(Me, He), yt = Math.min(p.line, pe.line), Bn = Math.min(o.lastLine(), Math.max(p.line, pe.line)); yt <= Bn; yt++) {
|
|
26543
26543
|
var Tn = Re(S, yt).text, At = cn(Tn, ht, Ve);
|
|
26544
|
-
ht ==
|
|
26544
|
+
ht == qt ? xe.push(new tt(Z(yt, At), Z(yt, At))) : Tn.length > At && xe.push(new tt(Z(yt, At), Z(yt, cn(Tn, qt, Ve))));
|
|
26545
26545
|
}
|
|
26546
26546
|
xe.length || xe.push(new tt(p, p)), rn(
|
|
26547
26547
|
S,
|
|
@@ -26562,12 +26562,12 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26562
26562
|
if (me(Ve, W) != 0) {
|
|
26563
26563
|
o.curOp.focus = se(De(o)), K(Ve);
|
|
26564
26564
|
var Me = ad(m, S);
|
|
26565
|
-
(Ve.line >= Me.to || Ve.line < Me.from) && setTimeout(
|
|
26565
|
+
(Ve.line >= Me.to || Ve.line < Me.from) && setTimeout(Wt(o, function() {
|
|
26566
26566
|
Q == xe && ie(pe);
|
|
26567
26567
|
}), 150);
|
|
26568
26568
|
} else {
|
|
26569
26569
|
var He = pe.clientY < J.top ? -20 : pe.clientY > J.bottom ? 20 : 0;
|
|
26570
|
-
He && setTimeout(
|
|
26570
|
+
He && setTimeout(Wt(o, function() {
|
|
26571
26571
|
Q == xe && (m.scroller.scrollTop += He, ie(pe));
|
|
26572
26572
|
}), 50);
|
|
26573
26573
|
}
|
|
@@ -26575,9 +26575,9 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26575
26575
|
function ue(pe) {
|
|
26576
26576
|
o.state.selectingText = !1, Q = 1 / 0, pe && (nn(pe), m.input.focus()), tn(m.wrapper.ownerDocument, "mousemove", fe), tn(m.wrapper.ownerDocument, "mouseup", Se), S.history.lastSelOrigin = null;
|
|
26577
26577
|
}
|
|
26578
|
-
var fe =
|
|
26578
|
+
var fe = Wt(o, function(pe) {
|
|
26579
26579
|
pe.buttons === 0 || !mi(pe) ? ue(pe) : ie(pe);
|
|
26580
|
-
}), Se =
|
|
26580
|
+
}), Se = Wt(o, ue);
|
|
26581
26581
|
o.state.selectingText = Se, Oe(m.wrapper.ownerDocument, "mousemove", fe), Oe(m.wrapper.ownerDocument, "mouseup", Se);
|
|
26582
26582
|
}
|
|
26583
26583
|
function t_(o, c) {
|
|
@@ -26587,7 +26587,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26587
26587
|
var S = je(m);
|
|
26588
26588
|
if (!S)
|
|
26589
26589
|
return c;
|
|
26590
|
-
var x =
|
|
26590
|
+
var x = Hr(S, p.ch, p.sticky), k = S[x];
|
|
26591
26591
|
if (k.from != p.ch && k.to != p.ch)
|
|
26592
26592
|
return c;
|
|
26593
26593
|
var D = x + (k.from == p.ch == (k.level != 1) ? 0 : 1);
|
|
@@ -26597,7 +26597,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26597
26597
|
if (f.line != p.line)
|
|
26598
26598
|
_ = (f.line - p.line) * (o.doc.direction == "ltr" ? 1 : -1) > 0;
|
|
26599
26599
|
else {
|
|
26600
|
-
var z =
|
|
26600
|
+
var z = Hr(S, f.ch, f.sticky), W = z - x || (f.ch - p.ch) * (k.level == 1 ? -1 : 1);
|
|
26601
26601
|
z == D - 1 || z == D ? _ = W < 0 : _ = W > 0;
|
|
26602
26602
|
}
|
|
26603
26603
|
var K = S[D + (_ ? -1 : 0)], J = _ == (K.level == 1), Q = J ? K.from : K.to, ie = J ? "after" : "before";
|
|
@@ -26775,7 +26775,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26775
26775
|
mt.defaults = Bb, mt.optionHandlers = Sd;
|
|
26776
26776
|
function a_(o) {
|
|
26777
26777
|
var c = o.display;
|
|
26778
|
-
Oe(c.scroller, "mousedown",
|
|
26778
|
+
Oe(c.scroller, "mousedown", Wt(o, _b)), d && u < 11 ? Oe(c.scroller, "dblclick", Wt(o, function(D) {
|
|
26779
26779
|
if (!bt(o, D)) {
|
|
26780
26780
|
var _ = Ns(o, D);
|
|
26781
26781
|
if (!(!_ || Df(o, D) || ur(o.display, D))) {
|
|
@@ -26838,15 +26838,15 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26838
26838
|
return c.wrapper.scrollTop = c.wrapper.scrollLeft = 0;
|
|
26839
26839
|
}), c.dragFunctions = {
|
|
26840
26840
|
enter: function(D) {
|
|
26841
|
-
bt(o, D) ||
|
|
26841
|
+
bt(o, D) || qr(D);
|
|
26842
26842
|
},
|
|
26843
26843
|
over: function(D) {
|
|
26844
|
-
bt(o, D) || (OA(o, D),
|
|
26844
|
+
bt(o, D) || (OA(o, D), qr(D));
|
|
26845
26845
|
},
|
|
26846
26846
|
start: function(D) {
|
|
26847
26847
|
return NA(o, D);
|
|
26848
26848
|
},
|
|
26849
|
-
drop:
|
|
26849
|
+
drop: Wt(o, MA),
|
|
26850
26850
|
leave: function(D) {
|
|
26851
26851
|
bt(o, D) || bb(o);
|
|
26852
26852
|
}
|
|
@@ -26854,7 +26854,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26854
26854
|
var k = c.input.getField();
|
|
26855
26855
|
Oe(k, "keyup", function(D) {
|
|
26856
26856
|
return Rb.call(o, D);
|
|
26857
|
-
}), Oe(k, "keydown",
|
|
26857
|
+
}), Oe(k, "keydown", Wt(o, Pb)), Oe(k, "keypress", Wt(o, Ab)), Oe(k, "focus", function(D) {
|
|
26858
26858
|
return cf(o, D);
|
|
26859
26859
|
}), Oe(k, "blur", function(D) {
|
|
26860
26860
|
return La(o, D);
|
|
@@ -26923,7 +26923,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26923
26923
|
text: _ ? _[K % _.length] : D,
|
|
26924
26924
|
origin: m || (k ? "paste" : o.state.cutIncoming > x ? "cut" : "+input")
|
|
26925
26925
|
};
|
|
26926
|
-
Aa(o.doc, ue),
|
|
26926
|
+
Aa(o.doc, ue), Gt(o, "inputRead", o, ue);
|
|
26927
26927
|
}
|
|
26928
26928
|
c && !k && Ub(o, c), Da(o), o.curOp.updateInput < 2 && (o.curOp.updateInput = W), o.curOp.typing = !0, o.state.pasteIncoming = o.state.cutIncoming = -1;
|
|
26929
26929
|
}
|
|
@@ -26947,7 +26947,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26947
26947
|
break;
|
|
26948
26948
|
}
|
|
26949
26949
|
} else S.electricInput && S.electricInput.test(Re(o.doc, m.head.line).text.slice(0, m.head.ch)) && (x = Tl(o, m.head.line, "smart"));
|
|
26950
|
-
x &&
|
|
26950
|
+
x && Gt(o, "electricInput", o, m.head.line);
|
|
26951
26951
|
}
|
|
26952
26952
|
}
|
|
26953
26953
|
}
|
|
@@ -26974,7 +26974,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26974
26974
|
},
|
|
26975
26975
|
setOption: function(f, m) {
|
|
26976
26976
|
var S = this.options, x = S[f];
|
|
26977
|
-
S[f] == m && f != "mode" || (S[f] = m, c.hasOwnProperty(f) &&
|
|
26977
|
+
S[f] == m && f != "mode" || (S[f] = m, c.hasOwnProperty(f) && Wt(this, c[f])(this, m, x), St(this, "optionChange", this, f));
|
|
26978
26978
|
},
|
|
26979
26979
|
getOption: function(f) {
|
|
26980
26980
|
return this.options[f];
|
|
@@ -26994,7 +26994,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
26994
26994
|
var S = f.token ? f : o.getMode(this.options, f);
|
|
26995
26995
|
if (S.startState)
|
|
26996
26996
|
throw new Error("Overlays may not be stateful.");
|
|
26997
|
-
|
|
26997
|
+
Ur(
|
|
26998
26998
|
this.state.overlays,
|
|
26999
26999
|
{
|
|
27000
27000
|
mode: S,
|
|
@@ -27244,7 +27244,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
27244
27244
|
if (D.widgets) {
|
|
27245
27245
|
for (var _ = 0; _ < D.widgets.length; _++)
|
|
27246
27246
|
if (D.widgets[_].noHScroll) {
|
|
27247
|
-
|
|
27247
|
+
Xr(S, k, "widget");
|
|
27248
27248
|
break;
|
|
27249
27249
|
}
|
|
27250
27250
|
}
|
|
@@ -27266,7 +27266,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
27266
27266
|
}),
|
|
27267
27267
|
swapDoc: dn(function(f) {
|
|
27268
27268
|
var m = this.doc;
|
|
27269
|
-
return m.cm = null, this.state.selectingText && this.state.selectingText(), Y0(this, f), sl(this), this.display.input.reset(), ol(this, f.scrollLeft, f.scrollTop), this.curOp.forceScroll = !0,
|
|
27269
|
+
return m.cm = null, this.state.selectingText && this.state.selectingText(), Y0(this, f), sl(this), this.display.input.reset(), ol(this, f.scrollLeft, f.scrollTop), this.curOp.forceScroll = !0, Gt(this, "swapDoc", this, m), m;
|
|
27270
27270
|
}),
|
|
27271
27271
|
phrase: function(f) {
|
|
27272
27272
|
var m = this.options.phrases;
|
|
@@ -27366,7 +27366,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
27366
27366
|
return !1;
|
|
27367
27367
|
}
|
|
27368
27368
|
Oe(m, "paste", function(k) {
|
|
27369
|
-
!S(k) || bt(f, k) || Fb(k, f) || u <= 11 && setTimeout(
|
|
27369
|
+
!S(k) || bt(f, k) || Fb(k, f) || u <= 11 && setTimeout(Wt(f, function() {
|
|
27370
27370
|
return c.updateFromDOM();
|
|
27371
27371
|
}), 20);
|
|
27372
27372
|
}), Oe(m, "compositionstart", function(k) {
|
|
@@ -27494,7 +27494,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
27494
27494
|
this.rememberSelection();
|
|
27495
27495
|
var p = wd(c, o.anchorNode, o.anchorOffset), f = wd(c, o.focusNode, o.focusOffset);
|
|
27496
27496
|
p && f && Vn(c, function() {
|
|
27497
|
-
rn(c.doc,
|
|
27497
|
+
rn(c.doc, Qr(p, f), Bt), (p.bad || f.bad) && (c.curOp.selectionChanged = !0);
|
|
27498
27498
|
});
|
|
27499
27499
|
}
|
|
27500
27500
|
}
|
|
@@ -27553,7 +27553,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
27553
27553
|
}, ot.prototype.setUneditable = function(o) {
|
|
27554
27554
|
o.contentEditable = "false";
|
|
27555
27555
|
}, ot.prototype.onKeyPress = function(o) {
|
|
27556
|
-
o.charCode == 0 || this.composing || (o.preventDefault(), this.cm.isReadOnly() ||
|
|
27556
|
+
o.charCode == 0 || this.composing || (o.preventDefault(), this.cm.isReadOnly() || Wt(this.cm, Pf)(this.cm, String.fromCharCode(o.charCode == null ? o.keyCode : o.charCode), 0));
|
|
27557
27557
|
}, ot.prototype.readOnlyChanged = function(o) {
|
|
27558
27558
|
this.div.contentEditable = String(o != "nocursor");
|
|
27559
27559
|
}, ot.prototype.onContextMenu = function() {
|
|
@@ -27565,7 +27565,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
27565
27565
|
return null;
|
|
27566
27566
|
var f = Re(o.doc, c.line), m = S0(p, f, c.line), S = je(f, o.doc.direction), x = "left";
|
|
27567
27567
|
if (S) {
|
|
27568
|
-
var k =
|
|
27568
|
+
var k = Hr(S, c.ch);
|
|
27569
27569
|
x = k % 2 ? "right" : "left";
|
|
27570
27570
|
}
|
|
27571
27571
|
var D = C0(m.map, c.ch, x);
|
|
@@ -27784,7 +27784,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
27784
27784
|
c.polling.set(20, p);
|
|
27785
27785
|
}, Tt.prototype.poll = function() {
|
|
27786
27786
|
var o = this, c = this.cm, p = this.textarea, f = this.prevInput;
|
|
27787
|
-
if (this.contextMenuPending || this.resetting || !c.state.focused ||
|
|
27787
|
+
if (this.contextMenuPending || this.resetting || !c.state.focused || Jr(p) && !f && !this.composing || c.isReadOnly() || c.options.disableInput || c.state.keySeq)
|
|
27788
27788
|
return !1;
|
|
27789
27789
|
var m = p.value;
|
|
27790
27790
|
if (m == f && !c.somethingSelected())
|
|
@@ -27823,7 +27823,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
27823
27823
|
if (!S || C)
|
|
27824
27824
|
return;
|
|
27825
27825
|
var k = p.options.resetSelectionOnContextMenu;
|
|
27826
|
-
k && p.doc.sel.contains(S) == -1 &&
|
|
27826
|
+
k && p.doc.sel.contains(S) == -1 && Wt(p, rn)(p.doc, Qr(S), Bt);
|
|
27827
27827
|
var D = m.style.cssText, _ = c.wrapper.style.cssText, z = c.wrapper.offsetParent.getBoundingClientRect();
|
|
27828
27828
|
c.wrapper.style.cssText = "position: static", m.style.cssText = `position: absolute; width: 30px; height: 30px;
|
|
27829
27829
|
top: ` + (o.clientY - z.top - 5) + "px; left: " + (o.clientX - z.left - 5) + `px;
|
|
@@ -27841,13 +27841,13 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
27841
27841
|
if (c.contextMenuPending == J && (c.contextMenuPending = !1, c.wrapper.style.cssText = _, m.style.cssText = D, d && u < 9 && f.scrollbars.setScrollTop(f.scroller.scrollTop = x), m.selectionStart != null)) {
|
|
27842
27842
|
(!d || d && u < 9) && K();
|
|
27843
27843
|
var ie = 0, ue = function() {
|
|
27844
|
-
f.selForContextMenu == p.doc.sel && m.selectionStart == 0 && m.selectionEnd > 0 && c.prevInput == "" ?
|
|
27844
|
+
f.selForContextMenu == p.doc.sel && m.selectionStart == 0 && m.selectionEnd > 0 && c.prevInput == "" ? Wt(p, cb)(p) : ie++ < 10 ? f.detectingSelectAll = setTimeout(ue, 500) : (f.selForContextMenu = null, f.input.reset());
|
|
27845
27845
|
};
|
|
27846
27846
|
f.detectingSelectAll = setTimeout(ue, 200);
|
|
27847
27847
|
}
|
|
27848
27848
|
}
|
|
27849
27849
|
if (d && u >= 9 && K(), F) {
|
|
27850
|
-
|
|
27850
|
+
qr(o);
|
|
27851
27851
|
var Q = function() {
|
|
27852
27852
|
tn(window, "mouseup", Q), setTimeout(J, 20);
|
|
27853
27853
|
};
|
|
@@ -27893,7 +27893,7 @@ b`.split(/\n/).length != 3 ? function(o) {
|
|
|
27893
27893
|
return k;
|
|
27894
27894
|
}
|
|
27895
27895
|
function h_(o) {
|
|
27896
|
-
o.off = tn, o.on = Oe, o.wheelEventPixels = SA, o.Doc = kn, o.splitLines = Zn, o.countColumn = Ue, o.findColumn = cn, o.isWordChar = Ps, o.Pass = Vt, o.signal = St, o.Line = Ca, o.changeEnd =
|
|
27896
|
+
o.off = tn, o.on = Oe, o.wheelEventPixels = SA, o.Doc = kn, o.splitLines = Zn, o.countColumn = Ue, o.findColumn = cn, o.isWordChar = Ps, o.Pass = Vt, o.signal = St, o.Line = Ca, o.changeEnd = es, o.scrollbarModel = F0, o.Pos = Z, o.cmpPos = me, o.modes = ma, o.mimeModes = yi, o.resolveMode = va, o.getMode = ya, o.modeExtensions = Kr, o.extendMode = Sa, o.copyState = Oi, o.startState = ba, o.innerMode = Zo, o.commands = Cl, o.keyMap = fr, o.keyName = kb, o.isModifierKey = xb, o.lookupKey = Na, o.normalizeKeyMap = zA, o.StringStream = wt, o.SharedTextMarker = Sl, o.TextMarker = ns, o.LineWidget = yl, o.e_preventDefault = nn, o.e_stopPropagation = pa, o.e_stop = qr, o.addClass = we, o.contains = Ee, o.rmClass = U, o.keyNames = is;
|
|
27897
27897
|
}
|
|
27898
27898
|
i_(mt), o_(mt);
|
|
27899
27899
|
var f_ = "iter insert remove copy getEditor constructor".split(" ");
|
|
@@ -27925,8 +27925,8 @@ function tW() {
|
|
|
27925
27925
|
})(function(t) {
|
|
27926
27926
|
t.defineMode("javascript", function(n, r) {
|
|
27927
27927
|
var s = n.indentUnit, a = r.statementIndent, l = r.jsonld, d = r.json || l, u = r.trackScope !== !1, h = r.typescript, g = r.wordCharacters || /[\w$\xa1-\uffff]/, v = function() {
|
|
27928
|
-
function N(
|
|
27929
|
-
return { type:
|
|
27928
|
+
function N($t) {
|
|
27929
|
+
return { type: $t, style: "keyword" };
|
|
27930
27930
|
}
|
|
27931
27931
|
var G = N("keyword a"), ee = N("keyword b"), de = N("keyword c"), Z = N("keyword d"), me = N("operator"), et = { type: "atom", style: "atom" };
|
|
27932
27932
|
return {
|
|
@@ -28068,25 +28068,25 @@ function tW() {
|
|
|
28068
28068
|
de && (ee = de.index);
|
|
28069
28069
|
}
|
|
28070
28070
|
for (var Z = 0, me = !1, et = ee - 1; et >= 0; --et) {
|
|
28071
|
-
var
|
|
28071
|
+
var $t = N.string.charAt(et), xn = A.indexOf($t);
|
|
28072
28072
|
if (xn >= 0 && xn < 3) {
|
|
28073
28073
|
if (!Z) {
|
|
28074
28074
|
++et;
|
|
28075
28075
|
break;
|
|
28076
28076
|
}
|
|
28077
28077
|
if (--Z == 0) {
|
|
28078
|
-
|
|
28078
|
+
$t == "(" && (me = !0);
|
|
28079
28079
|
break;
|
|
28080
28080
|
}
|
|
28081
28081
|
} else if (xn >= 3 && xn < 6)
|
|
28082
28082
|
++Z;
|
|
28083
|
-
else if (g.test(
|
|
28083
|
+
else if (g.test($t))
|
|
28084
28084
|
me = !0;
|
|
28085
|
-
else if (/["'\/`]/.test(
|
|
28085
|
+
else if (/["'\/`]/.test($t))
|
|
28086
28086
|
for (; ; --et) {
|
|
28087
28087
|
if (et == 0) return;
|
|
28088
28088
|
var wa = N.string.charAt(et - 1);
|
|
28089
|
-
if (wa ==
|
|
28089
|
+
if (wa == $t && N.string.charAt(et - 2) != "\\") {
|
|
28090
28090
|
et--;
|
|
28091
28091
|
break;
|
|
28092
28092
|
}
|
|
@@ -28221,7 +28221,7 @@ function tW() {
|
|
|
28221
28221
|
ke,
|
|
28222
28222
|
ke,
|
|
28223
28223
|
ze
|
|
28224
|
-
) : N == "case" ? B(Ce, Pe(":")) : N == "default" ? B(Pe(":")) : N == "catch" ? B(Ie("form"), Ae, Fe, Ue, ke, ze) : N == "export" ? B(Ie("stat"), va, ke) : N == "import" ? B(Ie("stat"),
|
|
28224
|
+
) : N == "case" ? B(Ce, Pe(":")) : N == "default" ? B(Pe(":")) : N == "catch" ? B(Ie("form"), Ae, Fe, Ue, ke, ze) : N == "export" ? B(Ie("stat"), va, ke) : N == "import" ? B(Ie("stat"), Kr, ke) : N == "async" ? B(Ue) : G == "@" ? B(Ce, Ue) : $(Ie("stat"), Ce, Pe(";"), ke);
|
|
28225
28225
|
}
|
|
28226
28226
|
function Fe(N) {
|
|
28227
28227
|
if (N == "(") return B(vi, Pe(")"));
|
|
@@ -28242,7 +28242,7 @@ function tW() {
|
|
|
28242
28242
|
if (N == "variable") return $(Ae, Cn, Pe("=>"), de, ze);
|
|
28243
28243
|
}
|
|
28244
28244
|
var Z = ee ? cn : Yt;
|
|
28245
|
-
return O.hasOwnProperty(N) ? B(Z) : N == "function" ? B(Zn, Z) : N == "class" || h && G == "interface" ? (V.marked = "keyword", B(Ie("form"), Uh, ke)) : N == "keyword c" || N == "async" ? B(ee ? Ke : Ce) : N == "(" ? B(Ie(")"), bn, Pe(")"), ke, Z) : N == "operator" || N == "spread" ? B(ee ? Ke : Ce) : N == "[" ? B(Ie("]"), wt, ke, Z) : N == "{" ?
|
|
28245
|
+
return O.hasOwnProperty(N) ? B(Z) : N == "function" ? B(Zn, Z) : N == "class" || h && G == "interface" ? (V.marked = "keyword", B(Ie("form"), Uh, ke)) : N == "keyword c" || N == "async" ? B(ee ? Ke : Ce) : N == "(" ? B(Ie(")"), bn, Pe(")"), ke, Z) : N == "operator" || N == "spread" ? B(ee ? Ke : Ce) : N == "[" ? B(Ie("]"), wt, ke, Z) : N == "{" ? Gr(pi, "}", null, Z) : N == "quasi" ? $(wn, Z) : N == "new" ? B(Ur(ee)) : B();
|
|
28246
28246
|
}
|
|
28247
28247
|
function bn(N) {
|
|
28248
28248
|
return N.match(/[;\}\)\],]/) ? $() : $(Ce);
|
|
@@ -28258,7 +28258,7 @@ function tW() {
|
|
|
28258
28258
|
if (N == "quasi")
|
|
28259
28259
|
return $(wn, de);
|
|
28260
28260
|
if (N != ";") {
|
|
28261
|
-
if (N == "(") return
|
|
28261
|
+
if (N == "(") return Gr(Ke, ")", "call", de);
|
|
28262
28262
|
if (N == ".") return B(Ps, de);
|
|
28263
28263
|
if (N == "[") return B(Ie("]"), bn, Pe("]"), ke, de);
|
|
28264
28264
|
if (h && G == "as")
|
|
@@ -28280,16 +28280,16 @@ function tW() {
|
|
|
28280
28280
|
function Yn(N) {
|
|
28281
28281
|
return M(V.stream, V.state), $(N == "{" ? Ue : Ke);
|
|
28282
28282
|
}
|
|
28283
|
-
function
|
|
28283
|
+
function Ur(N) {
|
|
28284
28284
|
return function(G) {
|
|
28285
|
-
return G == "." ? B(N ?
|
|
28285
|
+
return G == "." ? B(N ? zr : Ko) : G == "variable" && h ? B(On, N ? cn : Yt) : $(N ? Ke : Ce);
|
|
28286
28286
|
};
|
|
28287
28287
|
}
|
|
28288
28288
|
function Ko(N, G) {
|
|
28289
28289
|
if (G == "target")
|
|
28290
28290
|
return V.marked = "keyword", B(Yt);
|
|
28291
28291
|
}
|
|
28292
|
-
function
|
|
28292
|
+
function zr(N, G) {
|
|
28293
28293
|
if (G == "target")
|
|
28294
28294
|
return V.marked = "keyword", B(cn);
|
|
28295
28295
|
}
|
|
@@ -28304,7 +28304,7 @@ function tW() {
|
|
|
28304
28304
|
if (N == "async")
|
|
28305
28305
|
return V.marked = "property", B(pi);
|
|
28306
28306
|
if (N == "variable" || V.style == "keyword") {
|
|
28307
|
-
if (V.marked = "property", G == "get" || G == "set") return B(
|
|
28307
|
+
if (V.marked = "property", G == "get" || G == "set") return B($r);
|
|
28308
28308
|
var ee;
|
|
28309
28309
|
return h && V.state.fatArrowAt == V.stream.start && (ee = V.stream.match(/^\s*:\s*/, !1)) && (V.state.fatArrowAt = V.stream.pos + ee[0].length), B(ar);
|
|
28310
28310
|
} else {
|
|
@@ -28315,7 +28315,7 @@ function tW() {
|
|
|
28315
28315
|
if (h && se(G))
|
|
28316
28316
|
return V.marked = "keyword", B(pi);
|
|
28317
28317
|
if (N == "[")
|
|
28318
|
-
return B(Ce,
|
|
28318
|
+
return B(Ce, Wr, Pe("]"), ar);
|
|
28319
28319
|
if (N == "spread")
|
|
28320
28320
|
return B(Ke, ar);
|
|
28321
28321
|
if (G == "*")
|
|
@@ -28324,7 +28324,7 @@ function tW() {
|
|
|
28324
28324
|
return $(ar);
|
|
28325
28325
|
}
|
|
28326
28326
|
}
|
|
28327
|
-
function
|
|
28327
|
+
function $r(N) {
|
|
28328
28328
|
return N != "variable" ? $(ar) : (V.marked = "property", B(Zn));
|
|
28329
28329
|
}
|
|
28330
28330
|
function ar(N) {
|
|
@@ -28335,8 +28335,8 @@ function tW() {
|
|
|
28335
28335
|
function de(Z, me) {
|
|
28336
28336
|
if (ee ? ee.indexOf(Z) > -1 : Z == ",") {
|
|
28337
28337
|
var et = V.state.lexical;
|
|
28338
|
-
return et.info == "call" && (et.pos = (et.pos || 0) + 1), B(function(
|
|
28339
|
-
return
|
|
28338
|
+
return et.info == "call" && (et.pos = (et.pos || 0) + 1), B(function($t, xn) {
|
|
28339
|
+
return $t == G || xn == G ? $() : $(N);
|
|
28340
28340
|
}, de);
|
|
28341
28341
|
}
|
|
28342
28342
|
return Z == G || me == G ? B() : ee && ee.indexOf(";") > -1 ? $(N) : B(Pe(G));
|
|
@@ -28345,7 +28345,7 @@ function tW() {
|
|
|
28345
28345
|
return Z == G || me == G ? B() : $(N, de);
|
|
28346
28346
|
};
|
|
28347
28347
|
}
|
|
28348
|
-
function
|
|
28348
|
+
function Gr(N, G, ee) {
|
|
28349
28349
|
for (var de = 3; de < arguments.length; de++)
|
|
28350
28350
|
V.cc.push(arguments[de]);
|
|
28351
28351
|
return B(Ie(G, ee), Rt(N, G), ke);
|
|
@@ -28353,16 +28353,16 @@ function tW() {
|
|
|
28353
28353
|
function Ni(N) {
|
|
28354
28354
|
return N == "}" ? B() : $(Ue, Ni);
|
|
28355
28355
|
}
|
|
28356
|
-
function
|
|
28356
|
+
function Wr(N, G) {
|
|
28357
28357
|
if (h) {
|
|
28358
28358
|
if (N == ":") return B(je);
|
|
28359
|
-
if (G == "?") return B(
|
|
28359
|
+
if (G == "?") return B(Wr);
|
|
28360
28360
|
}
|
|
28361
28361
|
}
|
|
28362
28362
|
function Rs(N, G) {
|
|
28363
28363
|
if (h && (N == ":" || G == "in")) return B(je);
|
|
28364
28364
|
}
|
|
28365
|
-
function
|
|
28365
|
+
function Hr(N) {
|
|
28366
28366
|
if (h && N == ":")
|
|
28367
28367
|
return V.stream.match(/^\s*\w+\s+is\b/, !1) ? B(Ce, Bh, je) : B(je);
|
|
28368
28368
|
}
|
|
@@ -28400,7 +28400,7 @@ function tW() {
|
|
|
28400
28400
|
if (N == "[")
|
|
28401
28401
|
return B(Pe("variable"), Rs, Pe("]"), or);
|
|
28402
28402
|
if (N == "(")
|
|
28403
|
-
return $(
|
|
28403
|
+
return $(Jr, or);
|
|
28404
28404
|
if (!N.match(/[;\}\)\],]/))
|
|
28405
28405
|
return B();
|
|
28406
28406
|
}
|
|
@@ -28432,7 +28432,7 @@ function tW() {
|
|
|
28432
28432
|
if (G == "=") return B(je);
|
|
28433
28433
|
}
|
|
28434
28434
|
function pa(N, G) {
|
|
28435
|
-
return G == "enum" ? (V.marked = "keyword", B(Re)) : $(Cn,
|
|
28435
|
+
return G == "enum" ? (V.marked = "keyword", B(Re)) : $(Cn, Wr, mi, Fh);
|
|
28436
28436
|
}
|
|
28437
28437
|
function Cn(N, G) {
|
|
28438
28438
|
if (h && se(G))
|
|
@@ -28440,11 +28440,11 @@ function tW() {
|
|
|
28440
28440
|
if (N == "variable")
|
|
28441
28441
|
return ne(G), B();
|
|
28442
28442
|
if (N == "spread") return B(Cn);
|
|
28443
|
-
if (N == "[") return
|
|
28444
|
-
if (N == "{") return
|
|
28443
|
+
if (N == "[") return Gr(Yo, "]");
|
|
28444
|
+
if (N == "{") return Gr(qr, "}");
|
|
28445
28445
|
}
|
|
28446
|
-
function
|
|
28447
|
-
return N == "variable" && !V.stream.match(/^\s*:/, !1) ? (ne(G), B(mi)) : (N == "variable" && (V.marked = "property"), N == "spread" ? B(Cn) : N == "}" ? $() : N == "[" ? B(Ce, Pe("]"), Pe(":"),
|
|
28446
|
+
function qr(N, G) {
|
|
28447
|
+
return N == "variable" && !V.stream.match(/^\s*:/, !1) ? (ne(G), B(mi)) : (N == "variable" && (V.marked = "property"), N == "spread" ? B(Cn) : N == "}" ? $() : N == "[" ? B(Ce, Pe("]"), Pe(":"), qr) : B(Pe(":"), Cn, mi));
|
|
28448
28448
|
}
|
|
28449
28449
|
function Yo() {
|
|
28450
28450
|
return $(Cn, mi);
|
|
@@ -28463,26 +28463,26 @@ function tW() {
|
|
|
28463
28463
|
if (N == "(") return B(Ie(")"), Xo, ke);
|
|
28464
28464
|
}
|
|
28465
28465
|
function Xo(N) {
|
|
28466
|
-
return N == "var" ? B(pa,
|
|
28466
|
+
return N == "var" ? B(pa, jr) : N == "variable" ? B(jr) : $(jr);
|
|
28467
28467
|
}
|
|
28468
|
-
function
|
|
28469
|
-
return N == ")" ? B() : N == ";" ? B(
|
|
28468
|
+
function jr(N, G) {
|
|
28469
|
+
return N == ")" ? B() : N == ";" ? B(jr) : G == "in" || G == "of" ? (V.marked = "keyword", B(Ce, jr)) : $(Ce, jr);
|
|
28470
28470
|
}
|
|
28471
28471
|
function Zn(N, G) {
|
|
28472
28472
|
if (G == "*")
|
|
28473
28473
|
return V.marked = "keyword", B(Zn);
|
|
28474
28474
|
if (N == "variable")
|
|
28475
28475
|
return ne(G), B(Zn);
|
|
28476
|
-
if (N == "(") return B(Ae, Ie(")"), Rt(vi, ")"), ke,
|
|
28476
|
+
if (N == "(") return B(Ae, Ie(")"), Rt(vi, ")"), ke, Hr, Ue, ze);
|
|
28477
28477
|
if (h && G == "<") return B(Ie(">"), Rt(gi, ">"), ke, Zn);
|
|
28478
28478
|
}
|
|
28479
|
-
function
|
|
28479
|
+
function Jr(N, G) {
|
|
28480
28480
|
if (G == "*")
|
|
28481
|
-
return V.marked = "keyword", B(
|
|
28481
|
+
return V.marked = "keyword", B(Jr);
|
|
28482
28482
|
if (N == "variable")
|
|
28483
|
-
return ne(G), B(
|
|
28484
|
-
if (N == "(") return B(Ae, Ie(")"), Rt(vi, ")"), ke,
|
|
28485
|
-
if (h && G == "<") return B(Ie(">"), Rt(gi, ">"), ke,
|
|
28483
|
+
return ne(G), B(Jr);
|
|
28484
|
+
if (N == "(") return B(Ae, Ie(")"), Rt(vi, ")"), ke, Hr, ze);
|
|
28485
|
+
if (h && G == "<") return B(Ie(">"), Rt(gi, ">"), ke, Jr);
|
|
28486
28486
|
}
|
|
28487
28487
|
function qc(N, G) {
|
|
28488
28488
|
if (N == "keyword" || N == "variable")
|
|
@@ -28491,7 +28491,7 @@ function tW() {
|
|
|
28491
28491
|
return B(Ie(">"), Rt(gi, ">"), ke);
|
|
28492
28492
|
}
|
|
28493
28493
|
function vi(N, G) {
|
|
28494
|
-
return G == "@" && B(Ce, vi), N == "spread" ? B(vi) : h && se(G) ? (V.marked = "keyword", B(vi)) : h && N == "this" ? B(
|
|
28494
|
+
return G == "@" && B(Ce, vi), N == "spread" ? B(vi) : h && se(G) ? (V.marked = "keyword", B(vi)) : h && N == "this" ? B(Wr, mi) : $(Cn, Wr, mi);
|
|
28495
28495
|
}
|
|
28496
28496
|
function Uh(N, G) {
|
|
28497
28497
|
return N == "variable" ? ma(N, G) : yi(N, G);
|
|
@@ -28513,10 +28513,10 @@ function tW() {
|
|
|
28513
28513
|
return V.marked = "property", B(As, Si);
|
|
28514
28514
|
if (N == "number" || N == "string") return B(As, Si);
|
|
28515
28515
|
if (N == "[")
|
|
28516
|
-
return B(Ce,
|
|
28516
|
+
return B(Ce, Wr, Pe("]"), As, Si);
|
|
28517
28517
|
if (G == "*")
|
|
28518
28518
|
return V.marked = "keyword", B(Si);
|
|
28519
|
-
if (h && N == "(") return $(
|
|
28519
|
+
if (h && N == "(") return $(Jr, Si);
|
|
28520
28520
|
if (N == ";" || N == ",") return B(Si);
|
|
28521
28521
|
if (N == "}") return B();
|
|
28522
28522
|
if (G == "@") return B(Ce, Si);
|
|
@@ -28526,7 +28526,7 @@ function tW() {
|
|
|
28526
28526
|
if (N == ":") return B(je, mi);
|
|
28527
28527
|
if (G == "=") return B(Ke);
|
|
28528
28528
|
var ee = V.state.lexical.prev, de = ee && ee.info == "interface";
|
|
28529
|
-
return $(de ?
|
|
28529
|
+
return $(de ? Jr : Zn);
|
|
28530
28530
|
}
|
|
28531
28531
|
function va(N, G) {
|
|
28532
28532
|
return G == "*" ? (V.marked = "keyword", B(ba, Pe(";"))) : G == "default" ? (V.marked = "keyword", B(Ce, Pe(";"))) : N == "{" ? B(Rt(ya, "}"), ba, Pe(";")) : $(Ue);
|
|
@@ -28536,11 +28536,11 @@ function tW() {
|
|
|
28536
28536
|
return V.marked = "keyword", B(Pe("variable"));
|
|
28537
28537
|
if (N == "variable") return $(Ke, ya);
|
|
28538
28538
|
}
|
|
28539
|
-
function
|
|
28539
|
+
function Kr(N) {
|
|
28540
28540
|
return N == "string" ? B() : N == "(" ? $(Ce) : N == "." ? $(Yt) : $(Sa, Oi, ba);
|
|
28541
28541
|
}
|
|
28542
28542
|
function Sa(N, G) {
|
|
28543
|
-
return N == "{" ?
|
|
28543
|
+
return N == "{" ? Gr(Sa, "}") : (N == "variable" && ne(G), G == "*" && (V.marked = "keyword"), B(Zo));
|
|
28544
28544
|
}
|
|
28545
28545
|
function Oi(N) {
|
|
28546
28546
|
if (N == ",") return B(Sa, Oi);
|
|
@@ -28598,8 +28598,8 @@ function tW() {
|
|
|
28598
28598
|
for (; (de.type == "stat" || de.type == "form") && (ee == "}" || (Z = N.cc[N.cc.length - 1]) && (Z == Yt || Z == cn) && !/^[,\.=+\-*:?[\(]/.test(G)); )
|
|
28599
28599
|
de = de.prev;
|
|
28600
28600
|
a && de.type == ")" && de.prev.type == "stat" && (de = de.prev);
|
|
28601
|
-
var
|
|
28602
|
-
return
|
|
28601
|
+
var $t = de.type, xn = ee == $t;
|
|
28602
|
+
return $t == "vardef" ? de.indented + (N.lastType == "operator" || N.lastType == "," ? de.info.length + 1 : 0) : $t == "form" && ee == "{" ? de.indented : $t == "form" ? de.indented + s : $t == "stat" ? de.indented + (Qo(N, G) ? a || s : 0) : de.info == "switch" && !xn && r.doubleIndentSwitch != !1 ? de.indented + (/^(?:case|default)\b/.test(G) ? s : 2 * s) : de.align ? de.column + (xn ? 0 : 1) : de.indented + (xn ? 0 : s);
|
|
28603
28603
|
},
|
|
28604
28604
|
electricInput: /^\s*(?:case .*?:|default:|\{|\})$/,
|
|
28605
28605
|
blockCommentStart: d ? null : "/*",
|
|
@@ -28933,7 +28933,7 @@ function iW() {
|
|
|
28933
28933
|
}
|
|
28934
28934
|
iW();
|
|
28935
28935
|
var rW = Wo();
|
|
28936
|
-
const
|
|
28936
|
+
const ds = /* @__PURE__ */ Qe(rW), sW = 100;
|
|
28937
28937
|
class aW extends Ah {
|
|
28938
28938
|
constructor(e) {
|
|
28939
28939
|
super(), this.viewer = e, this.parsedValue = null, this.debouncedValueUpdater = it(() => {
|
|
@@ -28958,7 +28958,7 @@ class aW extends Ah {
|
|
|
28958
28958
|
getAnnotations: () => [{
|
|
28959
28959
|
message: u,
|
|
28960
28960
|
severity: "error",
|
|
28961
|
-
from:
|
|
28961
|
+
from: ds.Pos(l, d)
|
|
28962
28962
|
}]
|
|
28963
28963
|
});
|
|
28964
28964
|
}
|
|
@@ -28968,7 +28968,7 @@ class aW extends Ah {
|
|
|
28968
28968
|
const n = this.closeButton = document.createElement("button");
|
|
28969
28969
|
n.classList.add("close-button"), n.textContent = "Close", this.content.appendChild(n), n.addEventListener("click", () => this.dispose());
|
|
28970
28970
|
const r = this.downloadButton = document.createElement("button");
|
|
28971
|
-
r.textContent = "Download", r.title = "Download state as a JSON file", this.content.appendChild(r), r.addEventListener("click", () => this.downloadState()), this.textEditor =
|
|
28971
|
+
r.textContent = "Download", r.title = "Download state as a JSON file", this.content.appendChild(r), r.addEventListener("click", () => this.downloadState()), this.textEditor = ds((s) => {
|
|
28972
28972
|
}, {
|
|
28973
28973
|
value: "",
|
|
28974
28974
|
mode: { name: "javascript", json: !0 },
|
|
@@ -29098,29 +29098,29 @@ const vW = 1e3, Wg = [{
|
|
|
29098
29098
|
getter: (i) => {
|
|
29099
29099
|
let e = 0;
|
|
29100
29100
|
for (let t = 0; t < sL; ++t)
|
|
29101
|
-
e += i[Gs(t, mr.VISIBLE) *
|
|
29101
|
+
e += i[Gs(t, mr.VISIBLE) * ls + vr.numChunks];
|
|
29102
29102
|
return e;
|
|
29103
29103
|
}
|
|
29104
29104
|
}, {
|
|
29105
29105
|
label: "Visible chunks/D",
|
|
29106
29106
|
key: "visibleChunksDownloading",
|
|
29107
|
-
getter: (i) => i[Gs(ft.DOWNLOADING, mr.VISIBLE) *
|
|
29107
|
+
getter: (i) => i[Gs(ft.DOWNLOADING, mr.VISIBLE) * ls + vr.numChunks]
|
|
29108
29108
|
}, {
|
|
29109
29109
|
label: "Visible chunks/M",
|
|
29110
29110
|
key: "visibleChunksSystemMemory",
|
|
29111
|
-
getter: (i) => i[Gs(ft.SYSTEM_MEMORY, mr.VISIBLE) *
|
|
29111
|
+
getter: (i) => i[Gs(ft.SYSTEM_MEMORY, mr.VISIBLE) * ls + vr.numChunks] + i[Gs(ft.SYSTEM_MEMORY_WORKER, mr.VISIBLE) * ls + vr.numChunks]
|
|
29112
29112
|
}, {
|
|
29113
29113
|
label: "Visible chunks/G",
|
|
29114
29114
|
key: "visibleChunksGpuMemory",
|
|
29115
|
-
getter: (i) => i[Gs(ft.GPU_MEMORY, mr.VISIBLE) *
|
|
29115
|
+
getter: (i) => i[Gs(ft.GPU_MEMORY, mr.VISIBLE) * ls + vr.numChunks]
|
|
29116
29116
|
}, {
|
|
29117
29117
|
label: "Visible chunks/F",
|
|
29118
29118
|
key: "visibleChunksFailed",
|
|
29119
|
-
getter: (i) => i[Gs(ft.FAILED, mr.VISIBLE) *
|
|
29119
|
+
getter: (i) => i[Gs(ft.FAILED, mr.VISIBLE) * ls + vr.numChunks]
|
|
29120
29120
|
}, {
|
|
29121
29121
|
label: "Visible memory",
|
|
29122
29122
|
key: "visibleGpuMemory",
|
|
29123
|
-
getter: (i) => i[Gs(ft.GPU_MEMORY, mr.VISIBLE) *
|
|
29123
|
+
getter: (i) => i[Gs(ft.GPU_MEMORY, mr.VISIBLE) * ls + vr.gpuMemoryBytes]
|
|
29124
29124
|
}, {
|
|
29125
29125
|
label: "Download latency",
|
|
29126
29126
|
key: "downloadLatency",
|
|
@@ -29487,12 +29487,12 @@ class IW extends mh {
|
|
|
29487
29487
|
}), pn(e, "perspectiveOrientation", t.projectionOrientation), pn(e, "perspectiveZoom", t.projectionScale.legacyJsonView), pn(e, "perspectiveViewBackgroundColor", t.perspectiveViewBackgroundColor);
|
|
29488
29488
|
}
|
|
29489
29489
|
}
|
|
29490
|
-
const
|
|
29490
|
+
const gs = {
|
|
29491
29491
|
expectingExternalUI: !1
|
|
29492
29492
|
};
|
|
29493
29493
|
class PW extends X {
|
|
29494
29494
|
constructor(e, t = {}) {
|
|
29495
|
-
super(), this.display = e, this.title = new Kt(void 0, Le), this.coordinateSpace = new py(), this.position = this.registerDisposer(new Js(this.coordinateSpace)), this.relativeDisplayScales = this.registerDisposer(new ED(this.coordinateSpace)), this.displayDimensions = this.registerDisposer(new TD(this.coordinateSpace)), this.displayDimensionRenderInfo = this.registerDisposer(new kD(this.relativeDisplayScales.addRef(), this.displayDimensions.addRef())), this.crossSectionOrientation = this.registerDisposer(new wo()), this.crossSectionScale = this.registerDisposer(new L3(this.displayDimensionRenderInfo.addRef())), this.projectionOrientation = this.registerDisposer(new wo()), this.crossSectionDepthRange = this.registerDisposer(new $m(-10, this.displayDimensionRenderInfo)), this.projectionDepthRange = this.registerDisposer(new $m(-50, this.displayDimensionRenderInfo)), this.projectionScale = this.registerDisposer(new D3(this.displayDimensionRenderInfo.addRef())), this.navigationState = this.registerDisposer(new xo(new Co(this.position.addRef(), this.displayDimensionRenderInfo.addRef(), this.crossSectionOrientation.addRef()), this.crossSectionScale.addRef(), this.crossSectionDepthRange.addRef())), this.perspectiveNavigationState = this.registerDisposer(new xo(new Co(this.position.addRef(), this.displayDimensionRenderInfo.addRef(), this.projectionOrientation.addRef()), this.projectionScale.addRef(), this.projectionDepthRange.addRef())), this.mouseState = new MW(), this.layerManager = this.registerDisposer(new JI()), this.selectedLayer = this.registerDisposer(new zW(this.layerManager.addRef())), this.showAxisLines = new Ut(!0, !0), this.wireFrame = new Ut(!1, !1), this.showScaleBar = new Ut(!0, !0), this.showPerspectiveSliceViews = new Ut(!0, !0), this.visibleLayerRoles = GV(), this.showDefaultAnnotations = new Ut(!0, !0), this.crossSectionBackgroundColor = new su(lt(0.5, 0.5, 0.5)), this.perspectiveViewBackgroundColor = new su(lt(0, 0, 0)), this.scaleBarOptions = new y$(), this.partialViewport = new gV(), this.statisticsDisplayState = new uW(), this.helpPanelState = new dG(), this.settingsPanelState = new wW(), this.layerSelectedValues = this.registerDisposer(new NW(this.layerManager, this.mouseState)), this.selectionDetailsState = this.registerDisposer(new OW(this.coordinateSpace, this.layerSelectedValues)), this.selectedStateServer = new Kt("", Le), this.layerListPanelState = new JG(), this.resetInitiated = new be(), this.makeUrlFromState = (P) =>
|
|
29495
|
+
super(), this.display = e, this.title = new Kt(void 0, Le), this.coordinateSpace = new py(), this.position = this.registerDisposer(new Js(this.coordinateSpace)), this.relativeDisplayScales = this.registerDisposer(new ED(this.coordinateSpace)), this.displayDimensions = this.registerDisposer(new TD(this.coordinateSpace)), this.displayDimensionRenderInfo = this.registerDisposer(new kD(this.relativeDisplayScales.addRef(), this.displayDimensions.addRef())), this.crossSectionOrientation = this.registerDisposer(new wo()), this.crossSectionScale = this.registerDisposer(new L3(this.displayDimensionRenderInfo.addRef())), this.projectionOrientation = this.registerDisposer(new wo()), this.crossSectionDepthRange = this.registerDisposer(new $m(-10, this.displayDimensionRenderInfo)), this.projectionDepthRange = this.registerDisposer(new $m(-50, this.displayDimensionRenderInfo)), this.projectionScale = this.registerDisposer(new D3(this.displayDimensionRenderInfo.addRef())), this.navigationState = this.registerDisposer(new xo(new Co(this.position.addRef(), this.displayDimensionRenderInfo.addRef(), this.crossSectionOrientation.addRef()), this.crossSectionScale.addRef(), this.crossSectionDepthRange.addRef())), this.perspectiveNavigationState = this.registerDisposer(new xo(new Co(this.position.addRef(), this.displayDimensionRenderInfo.addRef(), this.projectionOrientation.addRef()), this.projectionScale.addRef(), this.projectionDepthRange.addRef())), this.mouseState = new MW(), this.layerManager = this.registerDisposer(new JI()), this.selectedLayer = this.registerDisposer(new zW(this.layerManager.addRef())), this.showAxisLines = new Ut(!0, !0), this.wireFrame = new Ut(!1, !1), this.showScaleBar = new Ut(!0, !0), this.showPerspectiveSliceViews = new Ut(!0, !0), this.visibleLayerRoles = GV(), this.showDefaultAnnotations = new Ut(!0, !0), this.crossSectionBackgroundColor = new su(lt(0.5, 0.5, 0.5)), this.perspectiveViewBackgroundColor = new su(lt(0, 0, 0)), this.scaleBarOptions = new y$(), this.partialViewport = new gV(), this.statisticsDisplayState = new uW(), this.helpPanelState = new dG(), this.settingsPanelState = new wW(), this.layerSelectedValues = this.registerDisposer(new NW(this.layerManager, this.mouseState)), this.selectionDetailsState = this.registerDisposer(new OW(this.coordinateSpace, this.layerSelectedValues)), this.selectedStateServer = new Kt("", Le), this.layerListPanelState = new JG(), this.resetInitiated = new be(), this.makeUrlFromState = (P) => gs.expectingExternalUI ? "/#!" + EW(re(P)) : window.location.toString(), this.uiControlVisibility = {}, this.visible = !0, this.toolInputEventMapBinder = (P, R) => {
|
|
29496
29496
|
R.registerDisposer(this.inputEventBindings.sliceView.addParent(P, Number.POSITIVE_INFINITY)), R.registerDisposer(this.inputEventBindings.perspectiveView.addParent(P, Number.POSITIVE_INFINITY));
|
|
29497
29497
|
}, this.toolBinder = this.registerDisposer(new Fz(this.toolInputEventMapBinder));
|
|
29498
29498
|
var n = t.dataContext;
|
|
@@ -29542,10 +29542,10 @@ class PW extends X {
|
|
|
29542
29542
|
return this.dataContext.chunkQueueManager;
|
|
29543
29543
|
}
|
|
29544
29544
|
get expectingExternalUI() {
|
|
29545
|
-
return
|
|
29545
|
+
return gs.expectingExternalUI;
|
|
29546
29546
|
}
|
|
29547
29547
|
set expectingExternalUI(e) {
|
|
29548
|
-
|
|
29548
|
+
gs.expectingExternalUI = e;
|
|
29549
29549
|
}
|
|
29550
29550
|
makeUiControlVisibilityState(e) {
|
|
29551
29551
|
const t = this.uiConfiguration.showUIControls, n = this.uiConfiguration[e];
|
|
@@ -30289,7 +30289,7 @@ class OW extends X {
|
|
|
30289
30289
|
const e = this.value;
|
|
30290
30290
|
let t;
|
|
30291
30291
|
if (this.location.visible) {
|
|
30292
|
-
if (t = this.location.toJSON(H(H({}, _E), { visible: !
|
|
30292
|
+
if (t = this.location.toJSON(H(H({}, _E), { visible: !gs.expectingExternalUI })), this.pin.value && e !== void 0) {
|
|
30293
30293
|
const n = {};
|
|
30294
30294
|
for (const r of e.layers) {
|
|
30295
30295
|
let a = r.layer.selectionStateToJson(r.state, !1);
|
|
@@ -30318,7 +30318,7 @@ class OW extends X {
|
|
|
30318
30318
|
this.pin.value = !1, this.location.visible = !0, this.value = void 0;
|
|
30319
30319
|
return;
|
|
30320
30320
|
}
|
|
30321
|
-
ge(e), this.location.restoreState(e, H(H({}, _E), { visible: !
|
|
30321
|
+
ge(e), this.location.restoreState(e, H(H({}, _E), { visible: !gs.expectingExternalUI }));
|
|
30322
30322
|
const t = this.coordinateSpace.value, n = t.rank > 0 ? ye(e, "position", (s) => rt(new Float32Array(t.rank), s, vt)) : void 0, r = [];
|
|
30323
30323
|
ye(e, "layers", (s) => {
|
|
30324
30324
|
ge(s);
|
|
@@ -30814,7 +30814,7 @@ function oP(i, e, t) {
|
|
|
30814
30814
|
let n = i;
|
|
30815
30815
|
return n = NE(n, e), n = NE(n, t), qW(n, 8);
|
|
30816
30816
|
}
|
|
30817
|
-
class jW extends
|
|
30817
|
+
class jW extends Vr {
|
|
30818
30818
|
constructor(e, t) {
|
|
30819
30819
|
super(e, t), this.properties = t.properties;
|
|
30820
30820
|
}
|
|
@@ -31997,7 +31997,7 @@ const I4 = 1e-3, P4 = Je();
|
|
|
31997
31997
|
function R4(i, e) {
|
|
31998
31998
|
if (Ar(i), Mu(i), i.addUniform("highp vec3", "uTranslation"), i.addUniform("highp mat4", "uProjectionMatrix"), i.addUniform("highp vec3", "uChunkDataSize"), i.addUniform("highp vec3", "uLowerClipBound"), i.addUniform("highp vec3", "uUpperClipBound"), e) {
|
|
31999
31999
|
tr(i), i.setVertexMain(`
|
|
32000
|
-
int vertexIndex1 = gl_VertexID / ${
|
|
32000
|
+
int vertexIndex1 = gl_VertexID / ${fs};
|
|
32001
32001
|
int vertexIndex2 = vertexIndex1 == 5 ? 0 : vertexIndex1 + 1;
|
|
32002
32002
|
vec3 vertexPosition1 = getBoundingBoxPlaneIntersectionVertexPosition(uChunkDataSize, uTranslation, uLowerClipBound, uUpperClipBound, vertexIndex1);
|
|
32003
32003
|
vec3 vertexPosition2 = getBoundingBoxPlaneIntersectionVertexPosition(uChunkDataSize, uTranslation, uLowerClipBound, uUpperClipBound, vertexIndex2);
|
|
@@ -32527,7 +32527,7 @@ const SP = 0, Nu = SP + 1, hn = Nu + yP, bP = hn + xS, U4 = bP + 6, z4 = Float32
|
|
|
32527
32527
|
1,
|
|
32528
32528
|
// c12
|
|
32529
32529
|
hn + 11
|
|
32530
|
-
]), WE = Je(),
|
|
32530
|
+
]), WE = Je(), os = new Float32Array(6);
|
|
32531
32531
|
let wP = class extends Ec {
|
|
32532
32532
|
constructor() {
|
|
32533
32533
|
super(...arguments), this.vertexIdHelper = this.registerDisposer(rr.get(this.gl));
|
|
@@ -32547,19 +32547,19 @@ let wP = class extends Ec {
|
|
|
32547
32547
|
), e.addUniform("vec3", "uModelSpaceBoundOffsets", 2);
|
|
32548
32548
|
}
|
|
32549
32549
|
enable(e, t, n) {
|
|
32550
|
-
|
|
32550
|
+
ms(WE, t.modelViewProjectionMatrix), dN(WE, os);
|
|
32551
32551
|
const r = t.chunkDisplayTransform.numChunkDisplayDims;
|
|
32552
32552
|
for (let s = 0; s < r; ++s)
|
|
32553
|
-
|
|
32553
|
+
os[s] = 0, os[s + 3] = 0;
|
|
32554
32554
|
for (let s = r; s < 3; ++s) {
|
|
32555
|
-
const a = Math.abs(
|
|
32556
|
-
|
|
32555
|
+
const a = Math.abs(os[s + 3] - os[s]);
|
|
32556
|
+
os[s] -= a, os[s + 3] += a;
|
|
32557
32557
|
}
|
|
32558
32558
|
super.enable(e, t, (s) => {
|
|
32559
32559
|
const a = s.vertexShaderInputBinders.Bounds;
|
|
32560
32560
|
a.enable(1);
|
|
32561
32561
|
const l = this.gl;
|
|
32562
|
-
l.uniform3fv(s.uniform("uModelSpaceBoundOffsets"),
|
|
32562
|
+
l.uniform3fv(s.uniform("uModelSpaceBoundOffsets"), os), l.bindBuffer(WebGL2RenderingContext.ARRAY_BUFFER, t.buffer.buffer), a.bind(this.geometryDataStride, t.bufferOffset);
|
|
32563
32563
|
const d = this.vertexIdHelper;
|
|
32564
32564
|
d.enable(), n(s), d.disable(), a.disable();
|
|
32565
32565
|
});
|
|
@@ -32603,7 +32603,7 @@ class G4 extends wP {
|
|
|
32603
32603
|
/*minorTiles=*/
|
|
32604
32604
|
1,
|
|
32605
32605
|
/*majorTiles=*/
|
|
32606
|
-
|
|
32606
|
+
fs
|
|
32607
32607
|
))), this.edgeShaderGetter = this.getDependentShader("annotation/boundingBox/projection/border", (e) => {
|
|
32608
32608
|
const t = this.rank;
|
|
32609
32609
|
this.defineShader(e), tr(e), e.addAttribute("highp vec3", "aBoxCornerOffset1"), e.addAttribute("highp vec4", "aBoxCornerOffset2"), e.addVarying("highp float", "vClipCoefficient"), hv(e), e.setVertexMain(`
|
|
@@ -32735,7 +32735,7 @@ if (vClipCoefficient == 0.0) {
|
|
|
32735
32735
|
}
|
|
32736
32736
|
vec3 subspacePositionA = projectModelVectorToSubspace(modelPositionA) + uModelSpaceBoundOffsets[0];
|
|
32737
32737
|
vec3 subspacePositionB = projectModelVectorToSubspace(modelPositionB) + uModelSpaceBoundOffsets[1];
|
|
32738
|
-
int vertexIndex1 = gl_VertexID / ${
|
|
32738
|
+
int vertexIndex1 = gl_VertexID / ${fs};
|
|
32739
32739
|
int vertexIndex2 = vertexIndex1 == 5 ? 0 : vertexIndex1 + 1;
|
|
32740
32740
|
vec3 vertexPosition1 = getBoundingBoxPlaneIntersectionVertexPosition(subspacePositionB - subspacePositionA, subspacePositionA, subspacePositionA, subspacePositionB, vertexIndex1);
|
|
32741
32741
|
vec3 vertexPosition2 = getBoundingBoxPlaneIntersectionVertexPosition(subspacePositionB - subspacePositionA, subspacePositionA, subspacePositionA, subspacePositionB, vertexIndex2);
|
|
@@ -33375,7 +33375,7 @@ emitAnnotation(vec4(vColor.rgb, vColor.a * vClipCoefficient));
|
|
|
33375
33375
|
r.projectionMat
|
|
33376
33376
|
);
|
|
33377
33377
|
const a = jE;
|
|
33378
|
-
|
|
33378
|
+
ms(a, s), n.uniformMatrix4fv(
|
|
33379
33379
|
t.uniform("uObjectToViewport"),
|
|
33380
33380
|
/*transpose=*/
|
|
33381
33381
|
!1,
|
|
@@ -33659,7 +33659,7 @@ const vec3[24] boxCornerOffsets = vec3[](
|
|
|
33659
33659
|
vec3(0, 1, 1), vec3(1, 1, 1) // e12
|
|
33660
33660
|
);
|
|
33661
33661
|
`), i.setVertexMain(`
|
|
33662
|
-
int edgeIndex = gl_VertexID / ${
|
|
33662
|
+
int edgeIndex = gl_VertexID / ${fs};
|
|
33663
33663
|
vec3 cornerA = max(uLowerClipBound, min(uUpperClipBound, uTranslation));
|
|
33664
33664
|
vec3 cornerB = max(uLowerClipBound, min(uUpperClipBound, uTranslation + uChunkDataSize));
|
|
33665
33665
|
vec3 vertexPosition1 = mix(cornerA, cornerB, boxCornerOffsets[edgeIndex * 2]);
|
|
@@ -33695,7 +33695,7 @@ emitLine(uProjectionMatrix * vec4(vertexPosition1, 1.0),
|
|
|
33695
33695
|
}, rH = {
|
|
33696
33696
|
defineShader(i) {
|
|
33697
33697
|
Mu(i), PP(i), tr(i), i.setVertexMain(`
|
|
33698
|
-
int vertexIndex1 = gl_VertexID / ${
|
|
33698
|
+
int vertexIndex1 = gl_VertexID / ${fs};
|
|
33699
33699
|
int vertexIndex2 = vertexIndex1 == 5 ? 0 : vertexIndex1 + 1;
|
|
33700
33700
|
vec3 vertexPosition1 = getBoundingBoxPlaneIntersectionVertexPosition(uChunkDataSize, uTranslation, uLowerClipBound, uUpperClipBound, vertexIndex1);
|
|
33701
33701
|
vec3 vertexPosition2 = getBoundingBoxPlaneIntersectionVertexPosition(uChunkDataSize, uTranslation, uLowerClipBound, uUpperClipBound, vertexIndex2);
|
|
@@ -34192,7 +34192,7 @@ function OP(i, e, t) {
|
|
|
34192
34192
|
(a ? VT : kr)(l, e.chunkToLayerTransform, n + 1, r, n), t(l, a);
|
|
34193
34193
|
});
|
|
34194
34194
|
}
|
|
34195
|
-
class mH extends
|
|
34195
|
+
class mH extends Fr {
|
|
34196
34196
|
constructor(e, t) {
|
|
34197
34197
|
super(), this.layer = e, this.displayState = t, this.previousSelectedState = void 0, this.previousHoverId = void 0, this.previousHoverAnnotationLayerState = void 0, this.virtualListSource = {
|
|
34198
34198
|
length: 0,
|
|
@@ -34260,7 +34260,7 @@ class mH extends Br {
|
|
|
34260
34260
|
this.displayState.hoverState.value = void 0;
|
|
34261
34261
|
});
|
|
34262
34262
|
const v = lU();
|
|
34263
|
-
this.registerDisposer(new
|
|
34263
|
+
this.registerDisposer(new Br(this.virtualList.element, v)), this.virtualList.element.title = v.describe(), this.registerDisposer(this.displayState.hoverState.changed.add(() => this.updateHoverView())), this.registerDisposer(this.selectedAnnotationState.changed.add(() => this.updateSelectionView())), this.registerDisposer(this.layer.localCoordinateSpace.changed.add(() => {
|
|
34264
34264
|
this.updateCoordinateSpace(), this.updateView();
|
|
34265
34265
|
})), this.registerDisposer(this.layer.manager.root.coordinateSpace.changed.add(() => {
|
|
34266
34266
|
this.updateCoordinateSpace(), this.updateView();
|
|
@@ -34493,7 +34493,7 @@ class mH extends Br {
|
|
|
34493
34493
|
s.className = "neuroglancer-annotation-icon", s.textContent = Pn[e.type].icon, r.appendChild(s);
|
|
34494
34494
|
let a;
|
|
34495
34495
|
const l = () => {
|
|
34496
|
-
t.source.readonly || a === void 0 && (a =
|
|
34496
|
+
t.source.readonly || a === void 0 && (a = ps({
|
|
34497
34497
|
title: "Delete annotation",
|
|
34498
34498
|
onClick: (h) => {
|
|
34499
34499
|
h.stopPropagation(), h.preventDefault();
|
|
@@ -34547,7 +34547,7 @@ class mH extends Br {
|
|
|
34547
34547
|
return u !== void 0 && u.annotationLayerState === t && u.annotationId === e.id && r.classList.add("neuroglancer-annotation-selected"), r;
|
|
34548
34548
|
}
|
|
34549
34549
|
}
|
|
34550
|
-
class vH extends
|
|
34550
|
+
class vH extends Fr {
|
|
34551
34551
|
constructor(e) {
|
|
34552
34552
|
super(), this.layer = e, this.layerView = this.registerDisposer(new mH(this.layer, this.layer.annotationDisplayState));
|
|
34553
34553
|
const t = this.element;
|
|
@@ -34599,7 +34599,7 @@ class GP extends VP {
|
|
|
34599
34599
|
!0
|
|
34600
34600
|
);
|
|
34601
34601
|
t.source instanceof Ii ? this.sourceSignalUpdated || (t.source.childAdded.add((a) => {
|
|
34602
|
-
a.source === void 0 && this.layer.selectAnnotation(t, a.id, !0, !
|
|
34602
|
+
a.source === void 0 && this.layer.selectAnnotation(t, a.id, !0, !gs.expectingExternalUI);
|
|
34603
34603
|
}), this.sourceSignalUpdated = !0) : this.layer.selectAnnotation(t, s.id, !0), s.dispose();
|
|
34604
34604
|
}
|
|
34605
34605
|
}
|
|
@@ -34623,7 +34623,7 @@ class WP extends VP {
|
|
|
34623
34623
|
if (t !== void 0 && e.updateUnconditionally()) {
|
|
34624
34624
|
const n = () => {
|
|
34625
34625
|
const r = this.inProgressAnnotation, s = r.reference, a = this.getUpdatedAnnotation(s.value, e, t);
|
|
34626
|
-
re(Em(a, t.source)) !== re(Em(s.value, t.source)) && (r.annotationLayer.source.update(s, a), this.layer.selectAnnotation(t, s.id, !0, !
|
|
34626
|
+
re(Em(a, t.source)) !== re(Em(s.value, t.source)) && (r.annotationLayer.source.update(s, a), this.layer.selectAnnotation(t, s.id, !0, !gs.expectingExternalUI));
|
|
34627
34627
|
};
|
|
34628
34628
|
if (this.inProgressAnnotation === void 0) {
|
|
34629
34629
|
const r = t.source.add(
|
|
@@ -34631,7 +34631,7 @@ class WP extends VP {
|
|
|
34631
34631
|
/*commit=*/
|
|
34632
34632
|
!1
|
|
34633
34633
|
);
|
|
34634
|
-
this.layer.selectAnnotation(t, r.id, !0, !
|
|
34634
|
+
this.layer.selectAnnotation(t, r.id, !0, !gs.expectingExternalUI);
|
|
34635
34635
|
const s = e.changed.add(n), a = () => {
|
|
34636
34636
|
s(), r.dispose();
|
|
34637
34637
|
};
|
|
@@ -34779,7 +34779,7 @@ function SH(i, e, t, n) {
|
|
|
34779
34779
|
for (const b of e)
|
|
34780
34780
|
C.set(b, w);
|
|
34781
34781
|
}), d.appendChild(h)), n !== void 0) {
|
|
34782
|
-
const C =
|
|
34782
|
+
const C = ps({
|
|
34783
34783
|
title: "Remove all IDs",
|
|
34784
34784
|
onClick: () => {
|
|
34785
34785
|
n([]);
|
|
@@ -34799,7 +34799,7 @@ function SH(i, e, t, n) {
|
|
|
34799
34799
|
const A = document.createElement("input");
|
|
34800
34800
|
A.classList.add("neuroglancer-segment-list-entry-visible-checkbox"), A.type = "checkbox", E.appendChild(A);
|
|
34801
34801
|
}
|
|
34802
|
-
const P =
|
|
34802
|
+
const P = ps({
|
|
34803
34803
|
title: "Cancel adding new segment ID",
|
|
34804
34804
|
onClick: () => {
|
|
34805
34805
|
b();
|
|
@@ -34840,7 +34840,7 @@ function SH(i, e, t, n) {
|
|
|
34840
34840
|
for (const C of e) {
|
|
34841
34841
|
const w = y.get(C);
|
|
34842
34842
|
if (v.push(w), n !== void 0) {
|
|
34843
|
-
const b =
|
|
34843
|
+
const b = ps({
|
|
34844
34844
|
title: "Remove ID",
|
|
34845
34845
|
onClick: (E) => {
|
|
34846
34846
|
n(e.filter((T) => !te.equal(T, C))), E.stopPropagation();
|
|
@@ -34954,7 +34954,7 @@ function IS(i) {
|
|
|
34954
34954
|
});
|
|
34955
34955
|
}
|
|
34956
34956
|
if (!a.source.readonly) {
|
|
34957
|
-
const O =
|
|
34957
|
+
const O = ps({
|
|
34958
34958
|
title: "Delete annotation",
|
|
34959
34959
|
onClick: () => {
|
|
34960
34960
|
a.source.delete(l);
|
|
@@ -35093,7 +35093,7 @@ const XE = at.fromObject({
|
|
|
35093
35093
|
});
|
|
35094
35094
|
class qP extends X {
|
|
35095
35095
|
constructor(e, t, n, r) {
|
|
35096
|
-
super(), this.element = e, this.dataType = t, this.getModel = n, this.setModel = r, e.title = XE.describe(), this.registerDisposer(new
|
|
35096
|
+
super(), this.element = e, this.dataType = t, this.getModel = n, this.setModel = r, e.title = XE.describe(), this.registerDisposer(new Br(e, XE)), ve(e, "set", (s) => {
|
|
35097
35097
|
const a = s.detail, l = this.getModel(), d = this.getTargetValue(a);
|
|
35098
35098
|
if (d === void 0) return;
|
|
35099
35099
|
const u = Ul(l.window, l.range), h = eO(u, d), g = (v) => {
|
|
@@ -35148,10 +35148,10 @@ class wH extends hL {
|
|
|
35148
35148
|
super(e.display, document.createElement("div"), e.visibility), this.parent = e, this.controller = this.registerDisposer(new qP(this.element, this.parent.dataType, () => this.parent.trackable.value, (n) => {
|
|
35149
35149
|
this.parent.trackable.value = n;
|
|
35150
35150
|
})), this.dataValuesBuffer = this.registerDisposer(Ql(this.gl, WebGL2RenderingContext.ARRAY_BUFFER, () => {
|
|
35151
|
-
const n = new Uint8Array(Nl *
|
|
35151
|
+
const n = new Uint8Array(Nl * fs);
|
|
35152
35152
|
for (let r = 0; r < Nl; ++r)
|
|
35153
|
-
for (let s = 0; s <
|
|
35154
|
-
n[r *
|
|
35153
|
+
for (let s = 0; s < fs; ++s)
|
|
35154
|
+
n[r * fs + s] = r;
|
|
35155
35155
|
return n;
|
|
35156
35156
|
})).value, this.lineShader = this.registerDisposer((() => {
|
|
35157
35157
|
const n = new na(this.gl);
|
|
@@ -35361,7 +35361,7 @@ function kH(i, e, t, n, r) {
|
|
|
35361
35361
|
const s = Math.exp(r), a = e.value, l = Cr(t, i, 0.5 - s / 2 + n), d = Cr(t, i, 0.5 + s / 2 + n);
|
|
35362
35362
|
e.value = H(H({}, a), { range: [l, d] });
|
|
35363
35363
|
}
|
|
35364
|
-
class TH extends
|
|
35364
|
+
class TH extends Fr {
|
|
35365
35365
|
constructor(e, t, n, r, s, a, l) {
|
|
35366
35366
|
super(e), this.display = t, this.dataType = n, this.trackable = r, this.histogramSpecifications = s, this.histogramIndex = a, this.legendShaderOptions = l, this.cdfPanel = this.registerDisposer(new wH(this)), this.boundElements = {
|
|
35367
35367
|
range: ek("range", this.dataType, this.trackable),
|
|
@@ -35558,7 +35558,7 @@ class PH extends To {
|
|
|
35558
35558
|
if (t.useTemporaryVisibleSegments.value = !0, C !== void 0) {
|
|
35559
35559
|
const M = L.computeSplit(y, C);
|
|
35560
35560
|
if (M !== void 0) {
|
|
35561
|
-
E = new
|
|
35561
|
+
E = new Ss(y, M.includeRepresentative), T = new Ss(C, M.excludeRepresentative), t.useTemporarySegmentEquivalences.value = !0;
|
|
35562
35562
|
const O = M.includeRepresentative, F = M.excludeRepresentative, q = t.temporarySegmentEquivalences;
|
|
35563
35563
|
q.clear();
|
|
35564
35564
|
for (const V of M.includeBaseSegments)
|
|
@@ -35630,7 +35630,7 @@ class PH extends To {
|
|
|
35630
35630
|
}
|
|
35631
35631
|
}
|
|
35632
35632
|
function RH() {
|
|
35633
|
-
lc(
|
|
35633
|
+
lc(zt, PS, (i) => new IH(i)), lc(zt, RS, (i) => new PH(i));
|
|
35634
35634
|
}
|
|
35635
35635
|
/**
|
|
35636
35636
|
* /**
|
|
@@ -35728,7 +35728,7 @@ class _H extends To {
|
|
|
35728
35728
|
}
|
|
35729
35729
|
}
|
|
35730
35730
|
function MH() {
|
|
35731
|
-
lc(
|
|
35731
|
+
lc(zt, AS, (i) => new _H(i));
|
|
35732
35732
|
}
|
|
35733
35733
|
const NH = new te();
|
|
35734
35734
|
class OH extends X {
|
|
@@ -36080,7 +36080,7 @@ function zH(i, e) {
|
|
|
36080
36080
|
}
|
|
36081
36081
|
return r;
|
|
36082
36082
|
}
|
|
36083
|
-
class $H extends
|
|
36083
|
+
class $H extends Fr {
|
|
36084
36084
|
constructor(e) {
|
|
36085
36085
|
super(), this.layer = e;
|
|
36086
36086
|
const t = this.element;
|
|
@@ -36206,7 +36206,7 @@ class $H extends Br {
|
|
|
36206
36206
|
const V = h.registerDisposer(new oS({ source: v, horizontalScroll: !0 })), $ = h.registerCancellable(dt(() => {
|
|
36207
36207
|
v.updateRenderedItems(V);
|
|
36208
36208
|
})), B = this.layer.displayState;
|
|
36209
|
-
h.registerDisposer(B.segmentSelectionState.changed.add($)), h.registerDisposer(y.visibleSegments.changed.add($)), h.registerDisposer(B.segmentColorHash.changed.add($)), h.registerDisposer(B.segmentStatedColors.changed.add($)), h.registerDisposer(B.segmentDefaultColor.changed.add($)), V.element.classList.add("neuroglancer-segment-list"), h.registerDisposer(e.bindSegmentListWidth(V.element)), h.registerDisposer(new
|
|
36209
|
+
h.registerDisposer(B.segmentSelectionState.changed.add($)), h.registerDisposer(y.visibleSegments.changed.add($)), h.registerDisposer(B.segmentColorHash.changed.add($)), h.registerDisposer(B.segmentStatedColors.changed.add($)), h.registerDisposer(B.segmentDefaultColor.changed.add($)), V.element.classList.add("neuroglancer-segment-list"), h.registerDisposer(e.bindSegmentListWidth(V.element)), h.registerDisposer(new Br(V.element, bh()));
|
|
36210
36210
|
const le = h.registerDisposer(new UH(d, v.queryResult, g));
|
|
36211
36211
|
{
|
|
36212
36212
|
const se = le.listElement;
|
|
@@ -36675,7 +36675,7 @@ const jH = /* @__PURE__ */ Qe(qH);
|
|
|
36675
36675
|
* See the License for the specific language governing permissions and
|
|
36676
36676
|
* limitations under the License.
|
|
36677
36677
|
*/
|
|
36678
|
-
jH(
|
|
36678
|
+
jH(ds);
|
|
36679
36679
|
const JH = 500;
|
|
36680
36680
|
class OS extends X {
|
|
36681
36681
|
constructor(e) {
|
|
@@ -36686,7 +36686,7 @@ class OS extends X {
|
|
|
36686
36686
|
} finally {
|
|
36687
36687
|
this.changingValue = !1;
|
|
36688
36688
|
}
|
|
36689
|
-
}, JH), this.textEditor =
|
|
36689
|
+
}, JH), this.textEditor = ds((r) => {
|
|
36690
36690
|
}, {
|
|
36691
36691
|
value: this.state.fragmentMain.value,
|
|
36692
36692
|
mode: "glsl",
|
|
@@ -36724,7 +36724,7 @@ class OS extends X {
|
|
|
36724
36724
|
a.push({
|
|
36725
36725
|
message: l.message,
|
|
36726
36726
|
severity: "error",
|
|
36727
|
-
from:
|
|
36727
|
+
from: ds.Pos(l.line)
|
|
36728
36728
|
});
|
|
36729
36729
|
if (n != null)
|
|
36730
36730
|
if (n.name === "ShaderCompilationError")
|
|
@@ -36732,16 +36732,16 @@ class OS extends X {
|
|
|
36732
36732
|
a.push({
|
|
36733
36733
|
message: l.message,
|
|
36734
36734
|
severity: "error",
|
|
36735
|
-
from:
|
|
36735
|
+
from: ds.Pos(l.file === t && l.line || 0)
|
|
36736
36736
|
});
|
|
36737
36737
|
else n.name === "ShaderLinkError" ? a.push({
|
|
36738
36738
|
message: n.log,
|
|
36739
36739
|
severity: "error",
|
|
36740
|
-
from:
|
|
36740
|
+
from: ds.Pos(0)
|
|
36741
36741
|
}) : a.push({
|
|
36742
36742
|
message: n.message,
|
|
36743
36743
|
severity: "error",
|
|
36744
|
-
from:
|
|
36744
|
+
from: ds.Pos(0)
|
|
36745
36745
|
});
|
|
36746
36746
|
return a;
|
|
36747
36747
|
}
|
|
@@ -36901,7 +36901,7 @@ class ZH extends X {
|
|
|
36901
36901
|
const QH = at.fromObject({
|
|
36902
36902
|
"at:shift+wheel": { action: "adjust-via-wheel" }
|
|
36903
36903
|
});
|
|
36904
|
-
function
|
|
36904
|
+
function us(i) {
|
|
36905
36905
|
return {
|
|
36906
36906
|
makeControl: (e, t) => {
|
|
36907
36907
|
var n = i(e);
|
|
@@ -36921,7 +36921,7 @@ function ok(i, e) {
|
|
|
36921
36921
|
const r = n.control;
|
|
36922
36922
|
switch (r.type) {
|
|
36923
36923
|
case "slider":
|
|
36924
|
-
return
|
|
36924
|
+
return us(() => ({
|
|
36925
36925
|
value: n.trackable,
|
|
36926
36926
|
options: { min: r.min, max: r.max, step: r.step }
|
|
36927
36927
|
}));
|
|
@@ -36963,7 +36963,7 @@ function n2(i, e, t) {
|
|
|
36963
36963
|
}
|
|
36964
36964
|
};
|
|
36965
36965
|
}
|
|
36966
|
-
class VS extends
|
|
36966
|
+
class VS extends Fr {
|
|
36967
36967
|
constructor(e, t, n, r = {}) {
|
|
36968
36968
|
super(r.visibility), this.state = e, this.display = t, this.layer = n, this.options = r, this.controlDisposer = void 0;
|
|
36969
36969
|
var s = r.toolId;
|
|
@@ -37031,7 +37031,7 @@ function s2(i) {
|
|
|
37031
37031
|
shaderControlState: i.displayState.skeletonRenderingOptions.shaderControlState
|
|
37032
37032
|
});
|
|
37033
37033
|
}
|
|
37034
|
-
class n6 extends
|
|
37034
|
+
class n6 extends Fr {
|
|
37035
37035
|
constructor(e) {
|
|
37036
37036
|
super(), this.layer = e;
|
|
37037
37037
|
const t = this.element;
|
|
@@ -37344,9 +37344,9 @@ class Ev extends X {
|
|
|
37344
37344
|
constructor(e, t) {
|
|
37345
37345
|
super(), this.histogram = e, this.target = t, this.label = document.createElement("div"), this.element = document.createElement("div"), this.canvas = document.createElement("canvas"), this.legend = document.createElement("div"), this.legendRenderScale = document.createElement("div"), this.legendSpatialScale = document.createElement("div"), this.legendChunks = document.createElement("div"), this.ctx = this.canvas.getContext("2d"), this.hoverTarget = new ct(void 0), this.throttledUpdateView = this.registerCancellable(gh(() => this.debouncedUpdateView(), o6, { leading: !0, trailing: !0 })), this.debouncedUpdateView = this.registerCancellable(it(() => this.updateView(), 0));
|
|
37346
37346
|
const n = this.canvas, r = this.label, s = this.element, a = this.legend, l = this.legendRenderScale, d = this.legendSpatialScale, u = this.legendChunks;
|
|
37347
|
-
r.className = "neuroglancer-render-scale-widget-prompt", s.className = "neuroglancer-render-scale-widget", s.title = lk.describe(), a.className = "neuroglancer-render-scale-widget-legend", s.appendChild(r), s.appendChild(n), s.appendChild(a), l.title = "Target resolution of data in screen pixels", u.title = "Number of chunks rendered", a.appendChild(l), a.appendChild(u), a.appendChild(d), this.registerDisposer(e.changed.add(this.throttledUpdateView)), this.registerDisposer(e.visibility.changed.add(this.debouncedUpdateView)), this.registerDisposer(t.changed.add(this.debouncedUpdateView)), this.registerDisposer(new
|
|
37347
|
+
r.className = "neuroglancer-render-scale-widget-prompt", s.className = "neuroglancer-render-scale-widget", s.title = lk.describe(), a.className = "neuroglancer-render-scale-widget-legend", s.appendChild(r), s.appendChild(n), s.appendChild(a), l.title = "Target resolution of data in screen pixels", u.title = "Number of chunks rendered", a.appendChild(l), a.appendChild(u), a.appendChild(d), this.registerDisposer(e.changed.add(this.throttledUpdateView)), this.registerDisposer(e.visibility.changed.add(this.debouncedUpdateView)), this.registerDisposer(t.changed.add(this.debouncedUpdateView)), this.registerDisposer(new Br(n, lk)), this.registerDisposer(t.changed.add(this.debouncedUpdateView)), this.registerDisposer(this.hoverTarget.changed.add(this.debouncedUpdateView));
|
|
37348
37348
|
const h = (v) => {
|
|
37349
|
-
const y = v.offsetX / n.width *
|
|
37349
|
+
const y = v.offsetX / n.width * Jt;
|
|
37350
37350
|
return DF(y);
|
|
37351
37351
|
};
|
|
37352
37352
|
this.registerEventListener(n, "pointermove", (v) => {
|
|
@@ -37377,7 +37377,7 @@ class Ev extends X {
|
|
|
37377
37377
|
L.textContent = M + " px";
|
|
37378
37378
|
}
|
|
37379
37379
|
function l(L) {
|
|
37380
|
-
return L * n /
|
|
37380
|
+
return L * n / Jt;
|
|
37381
37381
|
}
|
|
37382
37382
|
e.clearRect(0, 0, n, r);
|
|
37383
37383
|
const d = this.histogram, u = d.value, h = d.spatialScales;
|
|
@@ -37388,10 +37388,10 @@ class Ev extends X {
|
|
|
37388
37388
|
let y = 1;
|
|
37389
37389
|
const C = h.size;
|
|
37390
37390
|
let w = 0, b = 0;
|
|
37391
|
-
for (let L = 0; L <
|
|
37391
|
+
for (let L = 0; L < Jt; ++L) {
|
|
37392
37392
|
let A = 0;
|
|
37393
37393
|
for (let M = 0; M < C; ++M) {
|
|
37394
|
-
const O = M *
|
|
37394
|
+
const O = M * Jt * 2 + L, F = u[O], q = u[O + Jt];
|
|
37395
37395
|
w += F, b += q, A += F + q;
|
|
37396
37396
|
}
|
|
37397
37397
|
y = Math.max(A, y);
|
|
@@ -37403,11 +37403,11 @@ class Ev extends X {
|
|
|
37403
37403
|
let R;
|
|
37404
37404
|
if (a !== void 0) {
|
|
37405
37405
|
const L = Math.floor(jd(a[0]));
|
|
37406
|
-
if (L >= 0 && L <
|
|
37406
|
+
if (L >= 0 && L < Jt) {
|
|
37407
37407
|
let A = 0;
|
|
37408
37408
|
const M = a[1];
|
|
37409
37409
|
for (let O = C - 1; O >= 0; --O) {
|
|
37410
|
-
const F = g[O], U = 2 * h.get(F) *
|
|
37410
|
+
const F = g[O], U = 2 * h.get(F) * Jt + L, V = u[U] + u[U + Jt];
|
|
37411
37411
|
if (V === 0) continue;
|
|
37412
37412
|
const $ = Math.round(P(A));
|
|
37413
37413
|
if (A += V, Math.round(P(A)) <= M && M <= $) {
|
|
@@ -37419,10 +37419,10 @@ class Ev extends X {
|
|
|
37419
37419
|
}
|
|
37420
37420
|
if (R !== void 0) {
|
|
37421
37421
|
w = 0, b = 0;
|
|
37422
|
-
const A = 2 * h.get(R) *
|
|
37423
|
-
for (let M = 0; M <
|
|
37422
|
+
const A = 2 * h.get(R) * Jt;
|
|
37423
|
+
for (let M = 0; M < Jt; ++M) {
|
|
37424
37424
|
const O = A + M;
|
|
37425
|
-
w += u[O], b += u[O +
|
|
37425
|
+
w += u[O], b += u[O + Jt];
|
|
37426
37426
|
}
|
|
37427
37427
|
gt(R) ? this.legendSpatialScale.textContent = ta(R, "m", { precision: 2, elide1: !1 }) : this.legendSpatialScale.textContent = "unknown";
|
|
37428
37428
|
} else
|
|
@@ -37437,10 +37437,10 @@ class Ev extends X {
|
|
|
37437
37437
|
const F = An(v);
|
|
37438
37438
|
return [O, F];
|
|
37439
37439
|
});
|
|
37440
|
-
for (let L = 0; L <
|
|
37440
|
+
for (let L = 0; L < Jt; ++L) {
|
|
37441
37441
|
let A = 0;
|
|
37442
37442
|
for (let M = C - 1; M >= 0; --M) {
|
|
37443
|
-
const O = g[M], q = h.get(O) *
|
|
37443
|
+
const O = g[M], q = h.get(O) * Jt * 2 + L, U = u[q], V = u[q + Jt], $ = U + V;
|
|
37444
37444
|
if ($ === 0) continue;
|
|
37445
37445
|
const B = Math.round(l(L)), le = Math.round(l(L + 1)), ne = Math.round(P(A));
|
|
37446
37446
|
A += $;
|
|
@@ -37624,11 +37624,11 @@ class y6 {
|
|
|
37624
37624
|
constructor(e) {
|
|
37625
37625
|
this.layer = e, this.segmentSelectionState = new LU(), this.selectedAlpha = Bl(0.5), this.saturation = Bl(1), this.notSelectedAlpha = Bl(0), this.silhouetteRendering = new Kt(0, IT, 0), this.objectAlpha = Bl(1), this.ignoreNullVisibleSet = new Ut(!0, !0), this.skeletonRenderingOptions = new XU(), this.shaderError = uh(), this.renderScaleHistogram = new yo(), this.renderScaleTarget = ia(1), this.selectSegment = this.layer.selectSegment, this.transparentPickEnabled = this.layer.pick, this.baseSegmentColoring = new Ut(!1, !1), this.filterBySegmentLabel = this.layer.filterBySegmentLabel, this.moveToSegment = (t) => {
|
|
37626
37626
|
this.layer.moveToSegment(t);
|
|
37627
|
-
}, this.linkedSegmentationGroup = this.layer.registerDisposer(new ME(this.layer.manager.rootLayers, this.layer, (t) => t instanceof
|
|
37627
|
+
}, this.linkedSegmentationGroup = this.layer.registerDisposer(new ME(this.layer.manager.rootLayers, this.layer, (t) => t instanceof zt, (t) => t.displayState.linkedSegmentationGroup)), this.linkedSegmentationColorGroup = this.layer.registerDisposer(new ME(this.layer.manager.rootLayers, this.layer, (t) => t instanceof zt, (t) => t.displayState.linkedSegmentationColorGroup)), this.originalSegmentationGroupState = this.layer.registerDisposer(new m6(this.layer)), this.originalSegmentationColorGroupState = this.layer.registerDisposer(new v6(this.layer)), e.displayState = this, this.segmentationGroupState = this.layer.registerDisposer(new gk(this.linkedSegmentationGroup, "originalSegmentationGroupState")), this.segmentationColorGroupState = this.layer.registerDisposer(new gk(this.linkedSegmentationColorGroup, "originalSegmentationColorGroupState")), this.hideSegmentZero = this.layer.registerDisposer(new $d(this.segmentationGroupState, (t) => t.hideSegmentZero)), this.segmentColorHash = this.layer.registerDisposer(new Tp(this.segmentationColorGroupState, (t) => t.segmentColorHash)), this.segmentStatedColors = this.layer.registerDisposer(new Tp(this.segmentationColorGroupState, (t) => t.segmentStatedColors)), this.segmentDefaultColor = this.layer.registerDisposer(new Tp(this.segmentationColorGroupState, (t) => t.segmentDefaultColor)), this.segmentQuery = this.layer.registerDisposer(new $d(this.segmentationGroupState, (t) => t.segmentQuery)), this.segmentPropertyMap = this.layer.registerDisposer(new $d(this.segmentationGroupState, (t) => t.segmentPropertyMap));
|
|
37628
37628
|
}
|
|
37629
37629
|
}
|
|
37630
37630
|
const S6 = IS(Ho);
|
|
37631
|
-
class
|
|
37631
|
+
class zt extends S6 {
|
|
37632
37632
|
constructor(e) {
|
|
37633
37633
|
super(e), this.sliceViewRenderScaleHistogram = new yo(), this.sliceViewRenderScaleTarget = ia(1), this.segmentQueryFocusTime = new ct(Number.NEGATIVE_INFINITY), this.selectSegment = (t, n) => {
|
|
37634
37634
|
this.manager.root.selectionState.captureSingleLayerState(this, (r) => (r.value = t.clone(), !0), n);
|
|
@@ -37789,7 +37789,7 @@ class Jt extends S6 {
|
|
|
37789
37789
|
selectionStateToJson(e, t) {
|
|
37790
37790
|
const n = super.selectionStateToJson(e, t);
|
|
37791
37791
|
let r = e.value;
|
|
37792
|
-
return r instanceof
|
|
37792
|
+
return r instanceof Ss ? t ? n.value = {
|
|
37793
37793
|
key: r.key.toString(),
|
|
37794
37794
|
value: r.value ? r.value.toString() : void 0,
|
|
37795
37795
|
label: r.label
|
|
@@ -37802,7 +37802,7 @@ class Jt extends S6 {
|
|
|
37802
37802
|
return !1;
|
|
37803
37803
|
if (r instanceof te)
|
|
37804
37804
|
s = r.clone();
|
|
37805
|
-
else if (r instanceof
|
|
37805
|
+
else if (r instanceof Ss)
|
|
37806
37806
|
s = r.key.clone();
|
|
37807
37807
|
else
|
|
37808
37808
|
return !1;
|
|
@@ -37863,35 +37863,35 @@ class Jt extends S6 {
|
|
|
37863
37863
|
t || Xe.showTemporaryMessage(`No position information loaded for segment ${e}`);
|
|
37864
37864
|
}
|
|
37865
37865
|
}
|
|
37866
|
-
|
|
37867
|
-
|
|
37868
|
-
|
|
37866
|
+
zt.type = "segmentation";
|
|
37867
|
+
zt.typeAbbreviation = "seg";
|
|
37868
|
+
zt.supportsPickOption = !0;
|
|
37869
37869
|
const b6 = 10;
|
|
37870
37870
|
function mk(i) {
|
|
37871
|
-
return [H({ label: `Skeleton mode (${i})`, toolJson: `${zu}.mode${i}`, isValid: (e) => e.hasSkeletonsLayer }, a2((e) => e.displayState.skeletonRenderingOptions[`params${i}`].mode)), H({ label: `Line width (${i})`, toolJson: `${zu}.lineWidth${i}`, isValid: (e) => e.hasSkeletonsLayer, toolDescription: `Skeleton line width (${i})`, title: `Skeleton line width (${i})` },
|
|
37871
|
+
return [H({ label: `Skeleton mode (${i})`, toolJson: `${zu}.mode${i}`, isValid: (e) => e.hasSkeletonsLayer }, a2((e) => e.displayState.skeletonRenderingOptions[`params${i}`].mode)), H({ label: `Line width (${i})`, toolJson: `${zu}.lineWidth${i}`, isValid: (e) => e.hasSkeletonsLayer, toolDescription: `Skeleton line width (${i})`, title: `Skeleton line width (${i})` }, us((e) => ({
|
|
37872
37872
|
value: e.displayState.skeletonRenderingOptions[`params${i}`].lineWidth,
|
|
37873
37873
|
options: { min: 1, max: 40, step: 1 }
|
|
37874
37874
|
})))];
|
|
37875
37875
|
}
|
|
37876
|
-
const l2 = [H({ label: "Color seed", title: "Color segments based on a hash of their id", toolJson: Av }, u6()), H({ label: "Fixed color", title: "Use a fixed color for all segments without an explicitly-specified color", toolJson: Ov }, h6()), H({ label: "Saturation", toolJson: Dv, title: "Saturation of segment colors" },
|
|
37876
|
+
const l2 = [H({ label: "Color seed", title: "Color segments based on a hash of their id", toolJson: Av }, u6()), H({ label: "Fixed color", title: "Use a fixed color for all segments without an explicitly-specified color", toolJson: Ov }, h6()), H({ label: "Saturation", toolJson: Dv, title: "Saturation of segment colors" }, us((i) => ({ value: i.displayState.saturation }))), H({ label: "Opacity (on)", toolJson: kv, isValid: (i) => i.has2dLayer, title: "Opacity in cross-section views of segments that are selected" }, us((i) => ({ value: i.displayState.selectedAlpha }))), H({ label: "Opacity (off)", toolJson: Tv, isValid: (i) => i.has2dLayer, title: "Opacity in cross-section views of segments that are not selected" }, us((i) => ({ value: i.displayState.notSelectedAlpha }))), H({ label: "Resolution (slice)", toolJson: Mv, isValid: (i) => i.has2dLayer }, Bu((i) => ({
|
|
37877
37877
|
histogram: i.sliceViewRenderScaleHistogram,
|
|
37878
37878
|
target: i.sliceViewRenderScaleTarget
|
|
37879
37879
|
}))), H({ label: "Resolution (mesh)", toolJson: _v, isValid: (i) => i.has3dLayer }, Bu((i) => ({
|
|
37880
37880
|
histogram: i.displayState.renderScaleHistogram,
|
|
37881
37881
|
target: i.displayState.renderScaleTarget
|
|
37882
|
-
}))), H({ label: "Opacity (3d)", toolJson: Lv, isValid: (i) => i.has3dLayer, title: "Opacity of meshes and skeletons" },
|
|
37882
|
+
}))), H({ label: "Opacity (3d)", toolJson: Lv, isValid: (i) => i.has3dLayer, title: "Opacity of meshes and skeletons" }, us((i) => ({ value: i.displayState.objectAlpha }))), H({ label: "Silhouette (3d)", toolJson: Nv, isValid: (i) => i.has3dLayer, title: "Set to a non-zero value to increase transparency of object faces perpendicular to view direction" }, us((i) => ({
|
|
37883
37883
|
value: i.displayState.silhouetteRendering,
|
|
37884
37884
|
options: { min: 0, max: b6, step: 0.1 }
|
|
37885
37885
|
}))), H({ label: "Hide segment ID 0", toolJson: Iv, title: "Disallow selection and display of segment id 0" }, ql((i) => i.displayState.hideSegmentZero)), H({ label: "Base segment coloring", toolJson: Pv, title: "Color base segments individually" }, ql((i) => i.displayState.baseSegmentColoring)), H({ label: "Show all by default", title: "Show all segments if none are selected", toolJson: Rv }, ql((i) => i.displayState.ignoreNullVisibleSet)), ...mk("2d"), ...mk("3d")];
|
|
37886
37886
|
for (const i of l2)
|
|
37887
|
-
e2(
|
|
37888
|
-
qo(
|
|
37889
|
-
iP(mn.SEGMENTATION,
|
|
37887
|
+
e2(zt, i);
|
|
37888
|
+
qo(zt);
|
|
37889
|
+
iP(mn.SEGMENTATION, zt);
|
|
37890
37890
|
yS((i) => {
|
|
37891
37891
|
if (i.mesh !== void 0)
|
|
37892
|
-
return { layerConstructor:
|
|
37892
|
+
return { layerConstructor: zt, priority: 1 };
|
|
37893
37893
|
});
|
|
37894
|
-
BS(
|
|
37894
|
+
BS(zt, (i) => ({
|
|
37895
37895
|
shaderControlState: i.displayState.skeletonRenderingOptions.shaderControlState
|
|
37896
37896
|
}), o2);
|
|
37897
37897
|
RH();
|
|
@@ -37946,13 +37946,13 @@ function x6(i, e) {
|
|
|
37946
37946
|
}
|
|
37947
37947
|
function E6(i) {
|
|
37948
37948
|
const e = i.layer;
|
|
37949
|
-
return e === null || e instanceof
|
|
37949
|
+
return e === null || e instanceof zt;
|
|
37950
37950
|
}
|
|
37951
37951
|
function k6(i) {
|
|
37952
37952
|
if (i === void 0)
|
|
37953
37953
|
return null;
|
|
37954
37954
|
const e = i.layer;
|
|
37955
|
-
return e === null || !(e instanceof
|
|
37955
|
+
return e === null || !(e instanceof zt) ? null : e.displayState;
|
|
37956
37956
|
}
|
|
37957
37957
|
const xk = "linkedSegmentationLayer", Ek = "filterBySegmentation", kk = "ignoreNullSegmentFilter";
|
|
37958
37958
|
class T6 extends X {
|
|
@@ -38088,7 +38088,7 @@ class D6 extends X {
|
|
|
38088
38088
|
}
|
|
38089
38089
|
}
|
|
38090
38090
|
const I6 = IS(Ho);
|
|
38091
|
-
class
|
|
38091
|
+
class Mr extends I6 {
|
|
38092
38092
|
constructor(e) {
|
|
38093
38093
|
super(e), this.annotationProperties = new ct(void 0), this.localAnnotationsJson = void 0, this.pointAnnotationsJson = void 0, this.linkedSegmentationLayers = this.registerDisposer(new T6(this.manager.rootLayers, this.annotationStates, this.annotationDisplayState)), this.linkedSegmentationLayers.changed.add(this.specificationChanged.dispatch), this.annotationDisplayState.ignoreNullSegmentFilter.changed.add(this.specificationChanged.dispatch), this.annotationCrossSectionRenderScaleTarget.changed.add(this.specificationChanged.dispatch), this.tabs.add("rendering", { label: "Rendering", order: -100, getter: () => new R6(this) }), this.tabs.default = "annotations", this.allowingRefresh = !0;
|
|
38094
38094
|
}
|
|
@@ -38209,8 +38209,8 @@ class bs extends I6 {
|
|
|
38209
38209
|
return e[yk] = t && t.length === 1 && t[0] === "segments" ? void 0 : t, e[kk] = this.annotationDisplayState.ignoreNullSegmentFilter.toJSON(), e[wk] = this.annotationDisplayState.shader.toJSON(), e[Ck] = this.annotationDisplayState.shaderControls.toJSON(), H(e, this.linkedSegmentationLayers.toJSON()), e;
|
|
38210
38210
|
}
|
|
38211
38211
|
}
|
|
38212
|
-
|
|
38213
|
-
|
|
38212
|
+
Mr.type = "annotation";
|
|
38213
|
+
Mr.typeAbbreviation = "ann";
|
|
38214
38214
|
function c2(i) {
|
|
38215
38215
|
return new OS({
|
|
38216
38216
|
shaderError: i.annotationDisplayState.shaderError,
|
|
@@ -38222,7 +38222,7 @@ let P6 = class extends Ah {
|
|
|
38222
38222
|
constructor(e) {
|
|
38223
38223
|
super(), this.layer = e, this.codeWidget = this.registerDisposer(c2(this.layer)), this.content.appendChild(this.codeWidget.element), this.codeWidget.textEditor.refresh();
|
|
38224
38224
|
}
|
|
38225
|
-
}, R6 = class extends
|
|
38225
|
+
}, R6 = class extends Fr {
|
|
38226
38226
|
constructor(e) {
|
|
38227
38227
|
super(), this.layer = e, this.codeWidget = this.registerDisposer(c2(this.layer));
|
|
38228
38228
|
const t = this.element;
|
|
@@ -38255,15 +38255,15 @@ let P6 = class extends Ah {
|
|
|
38255
38255
|
})), t.appendChild(n), t.appendChild(this.codeWidget.element), t.appendChild(this.registerDisposer(new VS(e.annotationDisplayState.shaderControls, this.layer.manager.root.display, this.layer, { visibility: this.visibility })).element);
|
|
38256
38256
|
}
|
|
38257
38257
|
};
|
|
38258
|
-
qo(
|
|
38259
|
-
qo(
|
|
38258
|
+
qo(Mr);
|
|
38259
|
+
qo(Mr, "pointAnnotation");
|
|
38260
38260
|
yS((i) => {
|
|
38261
38261
|
if (i.local === Rr.annotations)
|
|
38262
|
-
return { layerConstructor:
|
|
38262
|
+
return { layerConstructor: Mr, priority: 100 };
|
|
38263
38263
|
if (i.annotation !== void 0)
|
|
38264
|
-
return { layerConstructor:
|
|
38264
|
+
return { layerConstructor: Mr, priority: 1 };
|
|
38265
38265
|
});
|
|
38266
|
-
BS(
|
|
38266
|
+
BS(Mr, (i) => ({
|
|
38267
38267
|
shaderControlState: i.annotationDisplayState.shaderControls
|
|
38268
38268
|
}));
|
|
38269
38269
|
function A6(i) {
|
|
@@ -38790,7 +38790,7 @@ function q6(i) {
|
|
|
38790
38790
|
}
|
|
38791
38791
|
function j6(i, e = Nt) {
|
|
38792
38792
|
const t = `${i.url}`, n = { method: i.method, body: i.payload };
|
|
38793
|
-
return
|
|
38793
|
+
return bs(t, n, sr, e);
|
|
38794
38794
|
}
|
|
38795
38795
|
function J6(i, e, t = Nt) {
|
|
38796
38796
|
return K6(i, e.url, { method: e.method, body: e.payload }, sr, t);
|
|
@@ -38806,7 +38806,7 @@ function K6(i, e, t, n, r = Nt) {
|
|
|
38806
38806
|
}, r);
|
|
38807
38807
|
}
|
|
38808
38808
|
async function Y6(i, e = Nt) {
|
|
38809
|
-
return { token: await
|
|
38809
|
+
return { token: await bs(i, { method: "GET", credentials: "include" }, q6, e) };
|
|
38810
38810
|
}
|
|
38811
38811
|
class X6 extends Uc {
|
|
38812
38812
|
constructor(e) {
|
|
@@ -38822,7 +38822,7 @@ class X6 extends Uc {
|
|
|
38822
38822
|
r = void 0, n.dispose();
|
|
38823
38823
|
};
|
|
38824
38824
|
t.add(() => {
|
|
38825
|
-
r !== void 0 && (r.cancel(), r = void 0, n.dispose(), a(
|
|
38825
|
+
r !== void 0 && (r.cancel(), r = void 0, n.dispose(), a(ys));
|
|
38826
38826
|
});
|
|
38827
38827
|
function d(h, g = "DVID authorization required.", v = "Request authorization.") {
|
|
38828
38828
|
n.setText(g + " ");
|
|
@@ -39602,7 +39602,7 @@ class _q extends Uc {
|
|
|
39602
39602
|
s = void 0, r.dispose();
|
|
39603
39603
|
};
|
|
39604
39604
|
n.add(() => {
|
|
39605
|
-
s !== void 0 && (s.cancel(), s = void 0, r.dispose(), l(
|
|
39605
|
+
s !== void 0 && (s.cancel(), s = void 0, r.dispose(), l(ys));
|
|
39606
39606
|
});
|
|
39607
39607
|
const u = (v = "Authorization required.", y = "Request authorization.") => {
|
|
39608
39608
|
if (r.setText(v + " "), this.retry) {
|
|
@@ -39630,7 +39630,7 @@ class _q extends Uc {
|
|
|
39630
39630
|
return Aq(window);
|
|
39631
39631
|
{
|
|
39632
39632
|
const n = new Headers();
|
|
39633
|
-
return
|
|
39633
|
+
return bs(e, { method: "GET", headers: n }, Lk, t).catch(() => bs(e, { method: "GET" }, Lk, t));
|
|
39634
39634
|
}
|
|
39635
39635
|
} else return xt.resolve("");
|
|
39636
39636
|
}
|
|
@@ -41086,7 +41086,7 @@ function H5(i, e = Nt) {
|
|
|
41086
41086
|
});
|
|
41087
41087
|
});
|
|
41088
41088
|
if (s.finished.add(e.add(() => {
|
|
41089
|
-
s.finished.dispatch(void 0,
|
|
41089
|
+
s.finished.dispatch(void 0, ys);
|
|
41090
41090
|
})), i.immediate)
|
|
41091
41091
|
n.relayReadyPromise.then(() => {
|
|
41092
41092
|
if (e.isCanceled)
|
|
@@ -41117,7 +41117,7 @@ class q5 extends Uc {
|
|
|
41117
41117
|
s = void 0, r.dispose();
|
|
41118
41118
|
};
|
|
41119
41119
|
t.add(() => {
|
|
41120
|
-
s !== void 0 && (s.cancel(), s = void 0, r.dispose(), l(
|
|
41120
|
+
s !== void 0 && (s.cancel(), s = void 0, r.dispose(), l(ys));
|
|
41121
41121
|
});
|
|
41122
41122
|
function u(g = `${n.description} authorization required.`, v = "Request authorization.") {
|
|
41123
41123
|
r.setText(g + " ");
|
|
@@ -42090,7 +42090,7 @@ async function sR(i, e, t, n) {
|
|
|
42090
42090
|
if (s.indexOf(void 0) === -1)
|
|
42091
42091
|
return s.reverse(), H({}, ...s);
|
|
42092
42092
|
}
|
|
42093
|
-
function
|
|
42093
|
+
function cs(i, e) {
|
|
42094
42094
|
if (i !== -1 && e !== i)
|
|
42095
42095
|
throw new Error(`Rank mismatch, received ${e} but expected ${i}`);
|
|
42096
42096
|
return e;
|
|
@@ -42104,7 +42104,7 @@ function oR(i) {
|
|
|
42104
42104
|
let t = -1;
|
|
42105
42105
|
return { all: We(e, (r) => {
|
|
42106
42106
|
const s = aR(r);
|
|
42107
|
-
return t =
|
|
42107
|
+
return t = cs(t, s.length), s;
|
|
42108
42108
|
}), single: void 0, rank: t };
|
|
42109
42109
|
}
|
|
42110
42110
|
function Pj(i) {
|
|
@@ -42126,30 +42126,30 @@ function _j(i, e) {
|
|
|
42126
42126
|
ge(e);
|
|
42127
42127
|
let t = -1, n = ye(e, "resolution", (v) => {
|
|
42128
42128
|
const y = Float64Array.from(We(v, Sn));
|
|
42129
|
-
return t =
|
|
42129
|
+
return t = cs(t, y.length), y;
|
|
42130
42130
|
}), r = ye(e, "axes", (v) => {
|
|
42131
42131
|
const y = We(v, Le);
|
|
42132
|
-
return t =
|
|
42132
|
+
return t = cs(t, y.length), y;
|
|
42133
42133
|
}), s = ye(e, "units", (v) => {
|
|
42134
42134
|
const y = We(v, NC);
|
|
42135
|
-
return t =
|
|
42135
|
+
return t = cs(t, y.length), y;
|
|
42136
42136
|
}), a = { unit: "m", exponent: -9 }, l, d;
|
|
42137
42137
|
ye(e, "downsamplingFactors", (v) => {
|
|
42138
42138
|
var y = Pj(v);
|
|
42139
42139
|
const C = y.single, w = y.all, b = y.rank;
|
|
42140
|
-
t =
|
|
42140
|
+
t = cs(t, b), C !== void 0 && (l = C), w !== void 0 && (d = w);
|
|
42141
42141
|
}), ye(e, "pixelResolution", (v) => {
|
|
42142
42142
|
a = Y(v, "unit", NC), ye(v, "dimensions", (y) => {
|
|
42143
|
-
n = Float64Array.from(We(y, Sn)), t =
|
|
42143
|
+
n = Float64Array.from(We(y, Sn)), t = cs(t, n.length);
|
|
42144
42144
|
});
|
|
42145
42145
|
}), ye(e, "scales", (v) => {
|
|
42146
42146
|
var y = oR(v);
|
|
42147
42147
|
const C = y.all, w = y.rank;
|
|
42148
|
-
t =
|
|
42148
|
+
t = cs(t, w), d = C;
|
|
42149
42149
|
});
|
|
42150
42150
|
const u = ye(e, "dimensions", (v) => {
|
|
42151
42151
|
const y = We(v, on);
|
|
42152
|
-
return t =
|
|
42152
|
+
return t = cs(t, y.length), y;
|
|
42153
42153
|
});
|
|
42154
42154
|
if (t === -1)
|
|
42155
42155
|
throw new Error("Unable to determine rank of dataset");
|
|
@@ -42751,7 +42751,7 @@ void main() {
|
|
|
42751
42751
|
const $ = en(Xj, C.viewProjectionMat, O.transform);
|
|
42752
42752
|
h.uniformMatrix4fv(a.uniform("uModelViewProjectionMatrix"), !1, $);
|
|
42753
42753
|
const B = Zj;
|
|
42754
|
-
ru(B, $),
|
|
42754
|
+
ru(B, $), ms($, $), h.uniformMatrix4fv(a.uniform("uInvModelViewProjectionMatrix"), !1, $);
|
|
42755
42755
|
var le = Yj(B, I.lowerClipDisplayBound, I.upperClipDisplayBound);
|
|
42756
42756
|
const ne = le.near, Ee = le.far, se = le.adjustedNear, we = le.adjustedFar, he = (we - se) / (Fv - 1) / (Ee - ne);
|
|
42757
42757
|
h.uniform1f(a.uniform("uBrightnessFactor"), he);
|
|
@@ -43028,10 +43028,10 @@ const fR = [H({ label: "Resolution (slice)", toolJson: $v }, Bu((i) => ({
|
|
|
43028
43028
|
}))), H({ label: "Blending", toolJson: zv }, a2((i) => i.blendMode)), H({ label: "Volume rendering (experimental)", toolJson: Gv }, ql((i) => i.volumeRendering)), H({ label: "Resolution (3d)", toolJson: i8, isValid: (i) => i.volumeRendering }, Bu((i) => ({
|
|
43029
43029
|
histogram: i.volumeRenderingRenderScaleHistogram,
|
|
43030
43030
|
target: i.volumeRenderingRenderScaleTarget
|
|
43031
|
-
}))), H({ label: "Opacity", toolJson: Uv },
|
|
43031
|
+
}))), H({ label: "Opacity", toolJson: Uv }, us((i) => ({ value: i.opacity })))];
|
|
43032
43032
|
for (const i of fR)
|
|
43033
43033
|
e2(fa, i);
|
|
43034
|
-
class s8 extends
|
|
43034
|
+
class s8 extends Fr {
|
|
43035
43035
|
constructor(e) {
|
|
43036
43036
|
super(), this.layer = e, this.codeWidget = this.registerDisposer(hR(this.layer));
|
|
43037
43037
|
const t = this.element;
|
|
@@ -43100,7 +43100,7 @@ function hJ(i, e) {
|
|
|
43100
43100
|
const t = te.parseString(i), n = e ? ws[e] : Cs;
|
|
43101
43101
|
if (n) {
|
|
43102
43102
|
for (const r of n.layerManager.managedLayers)
|
|
43103
|
-
if (r.layer instanceof
|
|
43103
|
+
if (r.layer instanceof zt) {
|
|
43104
43104
|
const { displayState: s } = r.layer, a = jD(s, t);
|
|
43105
43105
|
if (s.segmentSelectionState.isSelected(t))
|
|
43106
43106
|
for (let d = 0; d < 3; d += 1)
|
|
@@ -43128,7 +43128,7 @@ function Wv(i, e) {
|
|
|
43128
43128
|
}
|
|
43129
43129
|
function pR(i, e) {
|
|
43130
43130
|
const t = Wv(i, e);
|
|
43131
|
-
if (t && t.layer instanceof
|
|
43131
|
+
if (t && t.layer instanceof Mr)
|
|
43132
43132
|
return t.layer;
|
|
43133
43133
|
}
|
|
43134
43134
|
function pJ(i, e) {
|
|
@@ -43280,7 +43280,7 @@ class p8 extends qb.Component {
|
|
|
43280
43280
|
if (!this.viewer)
|
|
43281
43281
|
return;
|
|
43282
43282
|
const r = (this.props.viewerState?.layers ?? (this.viewer.state.toJSON().layers || [])).map((s) => {
|
|
43283
|
-
const a = Object.keys(t).find((u) => s.name?.includes(u)), l = { ...t[a] || {} };
|
|
43283
|
+
const a = Object.keys(t).find((u) => s.name?.includes(u)), l = { ...t[a]?.colors || {} };
|
|
43284
43284
|
this.allKnownIdsByLayer || (this.allKnownIdsByLayer = {}), this.allKnownIdsByLayer[a] || (this.allKnownIdsByLayer[a] = /* @__PURE__ */ new Set());
|
|
43285
43285
|
for (const u of Object.keys(l))
|
|
43286
43286
|
this.allKnownIdsByLayer[a].add(u);
|
|
@@ -43322,7 +43322,7 @@ class p8 extends qb.Component {
|
|
|
43322
43322
|
if (t || n) {
|
|
43323
43323
|
this.handlerRemovers = [];
|
|
43324
43324
|
for (const r of this.viewer.layerManager.managedLayers)
|
|
43325
|
-
if (r.layer instanceof
|
|
43325
|
+
if (r.layer instanceof zt) {
|
|
43326
43326
|
const { segmentSelectionState: s } = r.layer.displayState, { visibleSegments: a } = r.layer.displayState.segmentationGroupState.value;
|
|
43327
43327
|
if (s && t) {
|
|
43328
43328
|
const l = this.selectedChanged.bind(void 0, r), d = s.changed.add(l);
|
|
@@ -43379,19 +43379,49 @@ class p8 extends qb.Component {
|
|
|
43379
43379
|
this.disposers.push(this.viewer.projectionScale.changed.add(d)), this.disposers.push(this.viewer.projectionOrientation.changed.add(d)), this.disposers.push(this.viewer.position.changed.add(d)), t && this.withoutEmitting(() => {
|
|
43380
43380
|
this.viewer.state.restoreState(t);
|
|
43381
43381
|
}), a ? ws[a] = this.viewer : Cs = this.viewer;
|
|
43382
|
+
const { visibleChunksChanged: u } = this.viewer.chunkQueueManager;
|
|
43383
|
+
let h = !1;
|
|
43384
|
+
this.disposers.push(u.add(() => {
|
|
43385
|
+
if (!h) {
|
|
43386
|
+
for (const g of this.viewer.layerManager.managedLayers)
|
|
43387
|
+
if (g.layer instanceof zt && g.layer.renderLayers?.some((y) => {
|
|
43388
|
+
const { numVisibleChunksAvailable: C, numVisibleChunksNeeded: w } = y.layerChunkProgressInfo || {};
|
|
43389
|
+
return !w || !C ? !1 : C / w > 0.25;
|
|
43390
|
+
})) {
|
|
43391
|
+
h = !0, requestAnimationFrame(() => {
|
|
43392
|
+
requestAnimationFrame(() => {
|
|
43393
|
+
this.props.onLayerLoadingChange?.(!0);
|
|
43394
|
+
});
|
|
43395
|
+
});
|
|
43396
|
+
return;
|
|
43397
|
+
}
|
|
43398
|
+
}
|
|
43399
|
+
})), this.disposers.push(() => {
|
|
43400
|
+
h = !1;
|
|
43401
|
+
});
|
|
43382
43402
|
}
|
|
43383
43403
|
componentDidUpdate(t, n) {
|
|
43384
43404
|
const { viewerState: r, cellColorMapping: s } = this.props, a = {};
|
|
43385
43405
|
for (const I of this.viewer.layerManager.managedLayers)
|
|
43386
|
-
if (I.layer instanceof
|
|
43406
|
+
if (I.layer instanceof zt) {
|
|
43387
43407
|
const { segmentSelectionState: L } = I.layer.displayState;
|
|
43388
43408
|
a[I.name] = L.selectedSegment;
|
|
43389
43409
|
}
|
|
43390
|
-
for (const I of this.viewer.layerManager.managedLayers)
|
|
43391
|
-
if (I.layer instanceof
|
|
43410
|
+
for (const I of this.viewer.layerManager.managedLayers) {
|
|
43411
|
+
if (I.layer instanceof zt) {
|
|
43392
43412
|
const { segmentSelectionState: L } = I.layer.displayState;
|
|
43393
43413
|
L.set(a[I.name]);
|
|
43414
|
+
const A = Object.keys(s).find((M) => I.name?.includes(M));
|
|
43415
|
+
if (A) {
|
|
43416
|
+
const M = s[A]?.opacity ?? 1;
|
|
43417
|
+
I.layer.displayState.objectAlpha.value = M;
|
|
43418
|
+
}
|
|
43394
43419
|
}
|
|
43420
|
+
if (I.layer instanceof Mr) {
|
|
43421
|
+
const L = (r?.layers || []).find((A) => A.name === I.name);
|
|
43422
|
+
L?.shader && I.layer.annotationDisplayState.shader.value_ !== L.shader && (I.layer.annotationDisplayState.shader.value = L.shader);
|
|
43423
|
+
}
|
|
43424
|
+
}
|
|
43395
43425
|
if (!r)
|
|
43396
43426
|
return;
|
|
43397
43427
|
const l = t.viewerState, d = V_(l, r);
|
|
@@ -43403,15 +43433,15 @@ class p8 extends qb.Component {
|
|
|
43403
43433
|
const I = Array.isArray(r.layers) ? r.layers : [];
|
|
43404
43434
|
this.viewer.state.restoreState({ layers: I }), s && Object.keys(s).length && this.applyColorsAndVisibility(s);
|
|
43405
43435
|
});
|
|
43406
|
-
const u = t.cellColorMapping ? Object.
|
|
43436
|
+
const u = t.cellColorMapping ? Object.values(t.cellColorMapping).reduce((I, L) => I + Object.keys(L?.colors || {}).length, 0) : 0, h = s ? Object.values(s).reduce((I, L) => I + Object.keys(L?.colors || {}).length, 0) : 0, g = t.cellColorMapping !== this.props.cellColorMapping;
|
|
43407
43437
|
!this.didLayersChange(l, r) && (g || u !== h) && this.withoutEmitting(() => {
|
|
43408
43438
|
this.applyColorsAndVisibility(s);
|
|
43409
43439
|
});
|
|
43410
43440
|
const v = (I) => (I || []).map((L) => {
|
|
43411
43441
|
if (!L)
|
|
43412
43442
|
return L;
|
|
43413
|
-
const { segments: A, segmentColors: M,
|
|
43414
|
-
return
|
|
43443
|
+
const { segments: A, segmentColors: M, objectAlpha: O, ...F } = L;
|
|
43444
|
+
return F;
|
|
43415
43445
|
}), y = t.viewerState?.layers, C = r?.layers, w = JSON.stringify(v(y)), b = JSON.stringify(v(C)), E = w !== b, T = y && y[0] && Array.isArray(y[0].segments) ? y[0].segments.length : 0, P = C && C[0] && Array.isArray(C[0].segments) ? C[0].segments.length : 0, R = T === 0 && P > 0;
|
|
43416
43446
|
(E || R) && this.withoutEmitting(() => {
|
|
43417
43447
|
this.viewer.state.restoreState({ layers: C });
|
|
@@ -43458,6 +43488,7 @@ Qn(p8, "defaultProps", {
|
|
|
43458
43488
|
onVisibleChanged: null,
|
|
43459
43489
|
onSelectionDetailsStateChanged: null,
|
|
43460
43490
|
onViewerStateChanged: null,
|
|
43491
|
+
onLayerLoadingChange: null,
|
|
43461
43492
|
key: null,
|
|
43462
43493
|
callbacks: [],
|
|
43463
43494
|
ngServer: "https://neuroglancer-demo.appspot.com/"
|