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

Function te

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

Source from the content-addressed store, hash-verified

978 : NaN;
979 }
980 function te(t) {
981 let e, n, r;
982 function i(t, r) {
983 let i =
984 arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0,
985 o =
986 arguments.length > 3 && void 0 !== arguments[3]
987 ? arguments[3]
988 : t.length;
989 if (i < o) {
990 if (0 !== e(r, r)) return o;
991 do {
992 const e = (i + o) >>> 1;
993 n(t[e], r) < 0 ? (i = e + 1) : (o = e);
994 } while (i < o);
995 }
996 return i;
997 }
998 return (
999 2 !== t.length
1000 ? ((e = Qt), (n = (e, n) => Qt(t(e), n)), (r = (e, n) => t(e) - n))
1001 : ((e = t === Qt || t === Kt ? t : ee), (n = t), (r = t)),
1002 {
1003 left: i,
1004 center: function (t, e) {
1005 let n =
1006 arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0;
1007 const o = i(
1008 t,
1009 e,
1010 n,
1011 (arguments.length > 3 && void 0 !== arguments[3]
1012 ? arguments[3]
1013 : t.length) - 1,
1014 );
1015 return o > n && r(t[o - 1], e) > -r(t[o], e) ? o - 1 : o;
1016 },
1017 right: function (t, r) {
1018 let i =
1019 arguments.length > 2 && void 0 !== arguments[2]
1020 ? arguments[2]
1021 : 0,
1022 o =
1023 arguments.length > 3 && void 0 !== arguments[3]
1024 ? arguments[3]
1025 : t.length;
1026 if (i < o) {
1027 if (0 !== e(r, r)) return o;
1028 do {
1029 const e = (i + o) >>> 1;
1030 n(t[e], r) <= 0 ? (i = e + 1) : (o = e);
1031 } while (i < o);
1032 }
1033 return i;
1034 },
1035 }
1036 );
1037 }

Callers 4

vega.min.jsFile · 0.85
sFunction · 0.85
XrFunction · 0.85
dlFunction · 0.85

Calls 6

eFunction · 0.85
QtFunction · 0.70
tFunction · 0.70
iFunction · 0.70
rFunction · 0.70
nFunction · 0.70

Tested by

no test coverage detected