MCPcopy Create free account
hub / github.com/alignoth/alignoth / SS

Function SS

resources/vega.min.js:26415–26475  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

26413 };
26414 }
26415 function SS(t) {
26416 (Xa.call(
26417 this,
26418 (function () {
26419 let t = 8,
26420 e = [],
26421 n = ES(0),
26422 r = DS(0, t),
26423 i = DS(0, t);
26424 return {
26425 data: () => e,
26426 seen: () =>
26427 (n = (function (t, e, n) {
26428 return t.length >= e
26429 ? t
26430 : ((n = n || new t.constructor(e)).set(t), n);
26431 })(n, e.length)),
26432 add(t) {
26433 for (let n, r = 0, i = e.length, o = t.length; r < o; ++r)
26434 ((n = t[r]), (n._index = i++), e.push(n));
26435 },
26436 remove(t, n) {
26437 const o = e.length,
26438 a = Array(o - t),
26439 s = e;
26440 let u, l, c;
26441 for (l = 0; !n[l] && l < o; ++l) ((a[l] = e[l]), (s[l] = l));
26442 for (c = l; l < o; ++l)
26443 ((u = e[l]),
26444 n[l]
26445 ? (s[l] = -1)
26446 : ((s[l] = c),
26447 (r[c] = r[l]),
26448 (i[c] = i[l]),
26449 (a[c] = u),
26450 (u._index = c++)),
26451 (r[l] = 0));
26452 return ((e = a), s);
26453 },
26454 size: () => e.length,
26455 curr: () => r,
26456 prev: () => i,
26457 reset: (t) => (i[t] = r[t]),
26458 all: () => (t < 257 ? 255 : t < 65537 ? 65535 : 4294967295),
26459 set(t, e) {
26460 r[t] |= e;
26461 },
26462 clear(t, e) {
26463 r[t] &= ~e;
26464 },
26465 resize(e, n) {
26466 (e > r.length || n > t) &&
26467 ((t = Math.max(n, t)), (r = DS(e, t, r)), (i = DS(e, t)));
26468 },
26469 };
26470 })(),
26471 t,
26472 ),

Callers

nothing calls this directly

Calls 3

ESFunction · 0.85
DSFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected