/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { ISeriesViewerInteractionManager_$type } from "./ISeriesViewerInteractionManager";
import { HighlightingManager } from "./HighlightingManager";
import { Rect } from "igniteui-react-core/ES2015/Rect";
import { TileZoomManager } from "./TileZoomManager";
import { Base, Point_$type, runOn, fromEnum, markType, PointUtil } from "igniteui-react-core/ES2015/type";
import { Size } from "igniteui-react-core/ES2015/Size";
import { MathUtil } from "igniteui-react-core/ES2015/MathUtil";
import { MouseEventArgs } from "igniteui-react-core/ES2015/MouseEventArgs";
import { MouseButtonEventArgs } from "igniteui-react-core/ES2015/MouseButtonEventArgs";
import { truncate, intDivide, isNaN_ } from "igniteui-react-core/ES2015/number";
export class SeriesViewerInteractionManager extends Base {
    constructor() {
        super();
        this.s = 0;
        this.t = 0;
        this.ag = null;
        this.p = 0;
        this.q = 0;
        this.o = 0;
        this.r = 0;
        this.h = false;
        this.ah = null;
        this.aj = null;
        this.k = false;
        this.e = null;
        this.b = null;
        this.ai = null;
        this.al = null;
        this.i = false;
        this.d = null;
        this.a = null;
        this.g = false;
        this.ai = Rect.empty;
        this.ah = Rect.empty;
    }
    get f$b() {
        if (this.b == null) {
            this.b = new HighlightingManager();
        }
        return this.b;
    }
    f$a(a) {
        if (a.ap != 0) {
            return a.ap;
        }
        let b = 1;
        let c = false;
        let d = false;
        for (let e = 0; e < a.series.count; e++) {
            let f = a.series._inner[e];
            if (f.isStacked) {
                f.hx((g) => {
                    if (g.bc == 2) {
                        c = true;
                    }
                    if (g.bc == 1) {
                        d = true;
                    }
                    return true;
                });
            }
            else {
                if (f.bc == 2) {
                    c = true;
                }
                if (f.bc == 1) {
                    d = true;
                }
            }
        }
        if (d) {
            b = 1;
        }
        if (c) {
            b = 2;
        }
        if (c && d) {
            b = 3;
        }
        return b;
    }
    f$al(a) {
        let b = a.mc;
        let c = b;
        let d = a.bk;
        let e = a.b9();
        let f = a.cb;
        let g = a.c7;
        let h = a.dc;
        if (!e) {
            c = { $type: Point_$type, x: NaN, y: NaN };
        }
        for (let i = 0; i < a.series.count; i++) {
            let j = a.series._inner[i];
            j.h1(c);
        }
        let k = a.bf == 0 && !a.cn && (a.ce || f) && !g && !h;
        let l = a.mx;
        if (k && !isNaN_(b.x) && !l.isEmpty) {
            let m = l.width * (b.x - a.mk.left) / a.mk.width;
            d.ee(l.left + m, l.top, l.left + m, l.bottom);
            d.d3();
            d.d8(m);
        }
        else {
            d.ce();
        }
        if (k && !isNaN_(b.y) && !l.isEmpty) {
            let n = l.height * (b.y - a.mk.top) / a.mk.height;
            d.d7(l.left, l.top + n, l.right, l.top + n);
            d.dz();
        }
        else {
            d.b9();
        }
    }
    f$ae(a) {
        switch (a.bf) {
            case 0:
                a.bk.dv();
                this.f$al(a);
                a.bk.b6();
                break;
            case 1:
                a.bk.dx();
                a.bk.cd();
                this.f$al(a);
                a.bk.b5();
                break;
            case 2:
                a.bk.dx();
                a.bk.cd();
                this.f$al(a);
                a.bk.b7();
                break;
        }
    }
    f$p(a, b) {
        if (b.x >= 0 && b.y >= 0 && b.x <= a.mx.width && b.y <= a.mx.height) {
            this.ac(a, b);
        }
        else {
            a.hj();
        }
    }
    ac(a, b) {
        let c = a.bk;
        let d = a.mx;
        if (a.co || a.cn) {
            return;
        }
        if (a.cb && a.ce) {
            let e = d.height > d.width;
            c.bs(e);
            for (let f of fromEnum(a.series)) {
                if (f.isStacked) {
                    f.hx((g) => {
                        if (g._visibility == 0) {
                            g.i7(b, runOn(c, c.bj));
                        }
                        return true;
                    });
                }
                else {
                    if (f._visibility == 0) {
                        f.i7(b, runOn(c, c.bj));
                    }
                }
            }
            c.d0();
        }
    }
    ab(a, b) {
        if (a.ce || a.cl) {
            a.cb = true;
            a.i1();
            this.ah = new Rect(0, b.x, b.y, 0, 0);
            this.aj = new Rect(0, b.x, b.y, 0, 0);
            a.bf = 0;
            a.hb(a.me(b));
        }
    }
    f$ac(a, b) {
        this.ab(a, b);
        this.ac(a, b);
        this.f$al(a);
    }
    f$q(a, b, c) {
        if (!a.cb) {
            this.ae(a, b, c);
        }
    }
    f$o(a, b) {
        this.ai = Rect.empty;
        a.hj();
    }
    f$aj(a) {
        let b = a.bk;
        this.r = 1;
        a.cb = false;
        b.cc();
        b.b8();
        b.ca();
        a.hb({ $type: Point_$type, x: NaN, y: NaN });
        b.b9();
        b.ce();
        b.cd();
        a.bf = 0;
        this.h = true;
        a.c7 = true;
        a.i2();
    }
    f$ab(a, b) {
        this.f$aj(a);
    }
    f$ak(a, b, c, d, e) {
        this.s = b.x;
        this.t = b.y;
        this.p = c;
        this.q = d;
        this.o = e;
        this.ag = a.mk;
        this.f$aj(a);
    }
    f$aa(a, b) {
        let c = a.bk;
        c.b9();
        c.ce();
        if (c.at) {
            this.x(a, b);
        }
        else {
            this.z(a, b);
            this.r = b;
        }
    }
    f$ag(a, b, c, d, e) {
        let f = a.bk;
        f.b9();
        f.ce();
        this.p = this.p * c;
        this.q = this.q * d;
        this.o = this.o * e;
        if (a.ct) {
            this.p = this.o;
            this.q = this.o;
        }
        let g = a.mk;
        let h = a.mx;
        let i = b.x - this.s;
        let j = b.y - this.t;
        this.s = b.x;
        this.t = b.y;
        let k = g.width;
        let l = g.height;
        let m = this.ag.width / this.p;
        let n = this.ag.height / this.q;
        if (m > 1) {
            m = 1;
        }
        if (n > 1) {
            n = 1;
        }
        let o = { $type: Point_$type, x: b.x, y: b.y };
        let p = { $type: Point_$type, x: (o.x - h.left) / h.width * g.width + g.left, y: (o.y - h.top) / h.height * g.height + g.top };
        let q = new Rect(0, g.left, g.top, m, n);
        let r = { $type: Point_$type, x: (p.x - q.left) / q.width * h.width + h.left, y: (p.y - q.top) / q.height * h.height + h.top };
        let s = (r.x - o.x) - i;
        let t = (r.y - o.y) - j;
        let u = s / h.width * q.width;
        let v = t / h.height * q.height;
        q = new Rect(0, q.left + u, q.top + v, q.width, q.height);
        g = q;
        a.kg(g, true);
    }
    f$x(a, b) {
        this.ah = new Rect(0, b.x, b.y, 0, 0);
        this.aj = new Rect(0, b.x, b.y, 0, 0);
    }
    y(a, b, c) {
        let d = a.mk.width;
        let e = a.mk.height;
        let f = a.mk.left + d / 2;
        let g = a.mk.top + e / 2;
        d = d / b;
        e = e / b;
        let h = f - d / 2;
        let i = g - e / 2;
        a.kg(new Rect(0, h, i, d, e), true);
    }
    f$z(a, b) {
        let c = a.bk;
        if (c.at) {
            this.x(a, b);
        }
        else {
            this.z(a, b);
        }
        this.ah = Rect.empty;
        a.c7 = false;
    }
    f$r(a, b) {
        a.c7 = false;
        this.ah = Rect.empty;
        a.hj();
    }
    f$af(a, b, c, d, e) {
        a.c7 = false;
        this.ah = Rect.empty;
        a.hj();
    }
    x(a, b) {
        let c = a.my;
        let d = 1 / b;
        let e = { $type: Point_$type, x: c.x + c.width / 2, y: c.y + c.height / 2 };
        let f = { $type: Point_$type, x: c.x - e.x, y: c.y - e.y };
        let g = new Rect(0, f.x * d + e.x, f.y * d + e.y, c.width * d, c.height * d);
        a.kg(g, true);
    }
    z(a, b) {
        let c = a.mx;
        let d = a.my;
        let e = b - this.r;
        if (e != 0) {
            let f = 0.03;
            let g = e < 0 ? 1 + f : 1 - f;
            let h = { $type: Point_$type, x: d.x + d.width / 2, y: d.y + d.height / 2 };
            let i = { $type: Point_$type, x: d.x - h.x, y: d.y - h.y };
            let j = new Rect(0, i.x * g + h.x, i.y * g + h.y, d.width * g, d.height * g);
            a.kg(j, true);
        }
    }
    f$m(a, b, c) {
        if (!a.c7) {
            this.h = false;
        }
        this.ae(a, b, c);
    }
    ae(a, b, c) {
        let d;
        let e = a.bk;
        let f = a.bd(c);
        if (e.eo == 0) {
            switch (f) {
                case 1:
                    d = a.cz() ? f : 0;
                    break;
                default:
                    d = f;
                    break;
            }
        }
        else {
            if (e.eo == a.lu) {
                d = 1;
            }
            else if (e.eo == a.lv) {
                d = 2;
            }
            else {
                d = 0;
            }
        }
        switch (d) {
            case 1:
            case 2:
                a.bk.b3();
                a.bk.dg();
                break;
        }
        a.bf = d;
        switch (a.bf) {
            case 1:
                a.hb({ $type: Point_$type, x: NaN, y: NaN });
                this.ah = new Rect(0, b.x, b.y, 0, 0);
                this.aj = new Rect(0, b.x, b.y, 0, 0);
                this.ai = new Rect(0, b.x, b.y, 0, 0);
                e.dy();
                e.d6(this.ah);
                a.i7(Rect.empty, true);
                break;
            case 2:
                this.ah = new Rect(0, b.x, b.y, 0, 0);
                this.ai = new Rect(0, b.x, b.y, 0, 0);
                break;
        }
        this.al = a.mk;
    }
    f$ai(a) {
        a.j2();
        a.bk.db();
    }
    f$ah(a) {
        a.hf();
        a.bk.da();
    }
    f$am(a) {
        if (a.b8 && !this.k) {
            this.k = true;
            this.ad(a);
        }
    }
    f$j(a) {
        if (this.k) {
            this.aa(a);
            this.k = false;
        }
    }
    f$g(a) {
        if (this.e == null) {
            return;
        }
        this.f.ab();
    }
    get f() {
        return this.e;
    }
    ad(a) {
        if (this.e == null) {
            this.e = new TileZoomManager(a, true, a.ez);
            this.e.h = !a.c8;
        }
        a.ck = true;
        a.i6();
        this.e.al();
        a.bk.bo();
        a.bk.bp();
    }
    aa(a) {
        if (this.e == null) {
            return;
        }
        a.ck = false;
        a.bk.c6();
        this.e.ah();
        a.jo();
        a.bk.bv();
    }
    f$i(a) {
        a.g9();
        a.jq();
    }
    m(a) {
        return a.bf == 2;
    }
    n(a, b) {
        return a.ba == 1 || b || a.b8;
    }
    l(a) {
        return a.bf == 1;
    }
    f$l(a, b, c) {
        let d = a.bk;
        if (this.ah.isEmpty && c) {
            this.ae(a, b, c);
        }
        let e = 2;
        if (c) {
            e = 10;
        }
        let f = false;
        let g = new Rect(2, { $type: Point_$type, x: this.ah.x, y: this.ah.y }, b);
        let h = new Rect(0, 0, 0, 0, 0);
        if (!this.ai.isEmpty) {
            h = new Rect(2, { $type: Point_$type, x: this.ai.x, y: this.ai.y }, b);
        }
        if (h.width > e && h.height > e) {
            f = true;
        }
        if (!a.c7) {
            if (f) {
                this.h = false;
            }
        }
        if (!a.c7 && (a.cb || !c)) {
            a.hb(a.me(b));
        }
        if (this.l(a)) {
            if (f) {
                let i = a.mw(g);
                a.i7(i, true);
            }
            else {
                a.i7(Rect.empty, true);
            }
            d.d6(g);
        }
        let j = a.mx;
        let k = a.mk;
        if (this.m(a)) {
            let l = j;
            let m = k.left + k.width * (this.ah.x - b.x) / l.width;
            let n = k.top + k.height * (this.ah.y - b.y) / l.height;
            let o = new Rect(0, m, n, k.width, k.height);
            if (this.n(a, c)) {
                a.i2();
                a.i7(Rect.empty, true);
                a.kg(o, true);
                this.ah = new Rect(3, b, new Size(1, 0, 0));
                this.aj = new Rect(3, b, new Size(1, 0, 0));
            }
            else {
                a.i7(o, true);
            }
        }
        this.aj = new Rect(3, b, new Size(1, 0, 0));
        d.br(b);
    }
    f$k(a, b, c) {
        let d = a.bk;
        let e = 2;
        if (c) {
            e = 10;
        }
        let f = a.mx;
        let g = a.mk;
        if (!this.h) {
            let h = false;
            let i = new Rect(2, { $type: Point_$type, x: this.ah.x, y: this.ah.y }, b);
            if (i.width > e && i.height > e) {
                h = true;
            }
            if (a.bf == 1) {
                d.b8();
                if (h) {
                    a.kg(a.mw(i), true);
                }
            }
            if (a.bf == 2) {
                let j = f;
                let k = g.left + g.width * (this.ah.x - b.x) / j.width;
                let l = g.top + g.height * (this.ah.y - b.y) / j.height;
                a.kg(new Rect(0, k, l, g.width, g.height), true);
            }
        }
        let m = false;
        let n = new Rect(2, { $type: Point_$type, x: this.ai.x, y: this.ai.y }, b);
        if (n.width > e || n.height > e) {
            m = true;
        }
        if (m) {
            a.dc = true;
        }
        a.bf = 0;
        a.i7(Rect.empty, true);
        d.bt();
        a.dc = false;
        d.b9();
        d.ce();
        if (c) {
            d.cd();
            d.b9();
            d.ce();
            d.ca();
        }
        a.hj();
        a.i1();
    }
    f$ad(a) {
        if (this.f != null) {
            this.f.h = !a.c8;
        }
    }
    f$d(a, b) {
        let c = a.bk;
        let d = a.mk;
        if (a.bf == 2 && b == 8) {
            c.bq();
            a.bf = 0;
            a.i1();
            a.i7(Rect.empty, true);
            if (a.ba == 1) {
                a.kg(this.al, true);
            }
            return true;
        }
        if (a.bf == 1 && b == 8) {
            c.bq();
            a.bf = 0;
            a.i1();
            c.b8();
            a.i7(Rect.empty, true);
            return true;
        }
        let e = Rect.empty;
        let f = false;
        switch (b) {
            case 13:
                f = true;
                e = new Rect(0, 0, 0, 1, 1);
                break;
            case 11:
                f = true;
                e = new Rect(0, d.left - 0.1 * d.width, d.top - 0.1 * d.height, 1.2 * d.width, 1.2 * d.height);
                break;
            case 10:
                f = true;
                e = new Rect(0, d.left + 0.1 * d.width, d.top + 0.1 * d.height, 0.8 * d.width, 0.8 * d.height);
                break;
            case 14:
                f = true;
                e = new Rect(0, d.left - 0.1 * d.width, d.top, d.width, d.height);
                e.x = e.x - Math.min(e.left, 0);
                break;
            case 16:
                f = true;
                e = new Rect(0, d.left + 0.1 * d.width, d.top, d.width, d.height);
                e.x = e.x - Math.max(e.right - 1, 0);
                break;
            case 15:
                f = true;
                e = new Rect(0, d.left, d.top - 0.1 * d.height, d.width, d.height);
                e.y = e.y - Math.min(e.top, 0);
                break;
            case 17:
                f = true;
                e = new Rect(0, d.left, d.top + 0.1 * d.height, d.width, d.height);
                e.y = e.y - Math.max(e.bottom - 1, 0);
                break;
        }
        if (!e.isEmpty && Rect.l_op_Inequality(e, d)) {
            a.kg(e, true);
        }
        return f;
    }
    f$e(a, b, c) {
        let d = a.bk;
        let e = a.mk;
        let f = e.left + e.width * b.x / a.mx.width;
        let g = e.top + e.height * b.y / a.mx.height;
        let h = 1 - MathUtil.b(c, -0.5, 0.5);
        let i = Math.max(0, f - h * (f - e.left));
        let j = Math.min(1, g + h * (e.bottom - g));
        let k = Math.min(1, f + h * (e.right - f));
        let l = Math.max(0, g - h * (g - e.top));
        a.i2();
        this.w(a, 1000);
        a.kg(new Rect(0, i, l, k - i, j - l), true);
        return a.cz();
    }
    w(a, b) {
        a.bk.bw(b);
    }
    f$n(a, b) {
        let c = a.mk;
        let d = c.left + c.width * b.x / a.mx.width;
        let e = c.top + c.height * b.y / a.mx.height;
        let f = 0.7;
        let g = Math.max(0, d - f * (d - c.left));
        let h = Math.min(1, e + f * (c.bottom - e));
        let i = Math.min(1, d + f * (c.right - d));
        let j = Math.max(0, e - f * (e - c.top));
        a.kg(new Rect(0, g, j, i - g, h - j), true);
    }
    f$h(a) {
        this.f.ac();
    }
    ak() {
        return this.aj;
    }
    f$c(a, b, c, d, e, f, g) {
        let h = true;
        let i = false;
        let j = false;
        let k = a;
        if (k.ao == 1) {
            h = false;
            i = true;
        }
        if (k.ao == 3 || k.ao == 4) {
            i = true;
        }
        if (k.ao == 4) {
            j = true;
        }
        let l = truncate(Math.round(d.x));
        let m = truncate(Math.round(d.y));
        f = null;
        let n = -1;
        if (h && c != null) {
            let o = l;
            let p = m;
            if (a.d7 != 1) {
                o = truncate(Math.round(d.x * a.d7));
                p = truncate(Math.round(d.y * a.d7));
            }
            let q = c.a(o, p);
            if (q == null || q.length == 0) {
                f = null;
                return {
                    ret: null,
                    p5: f
                };
            }
            if ((q[0] > 0 || q[1] > 0 || q[2] > 0) && q[3] == 255) {
                let num2_ = q[2];
                if (num2_ % 4 != 0) {
                    num2_ = num2_ + (4 - (num2_ % 4));
                }
                let num1_ = q[1];
                if (num1_ % 4 != 0) {
                    num1_ = num1_ + (4 - (num1_ % 4));
                }
                let num0_ = q[0];
                if (num0_ % 4 != 0) {
                    num0_ = num0_ + (4 - (num0_ % 4));
                }
                let num_ = 0;
                num_ = (num2_ >> 2);
                num_ = (num_ << 6);
                num_ = (num_ | (num1_ >> 2));
                num_ = (num_ << 6);
                num_ = (num_ | (num0_ >> 2));
                n = truncate(Math.floor((intDivide(num_, 1000))));
                n--;
            }
        }
        let r = null;
        let s = -1;
        if (n >= 0) {
            let t = false;
            let u = 0;
            for (let v of fromEnum(b)) {
                if (!v.c4) {
                    continue;
                }
                if (t) {
                    break;
                }
                if (v.isStacked) {
                    v.hx((w) => {
                        if (w.fe == n) {
                            r = w;
                            s = u;
                            t = true;
                            return false;
                        }
                        return true;
                    });
                }
                else if (v.fe == n) {
                    r = v;
                    s = u;
                    break;
                }
                u++;
            }
        }
        let w = null;
        if (i) {
            let x = false;
            for (let y = b.count - 1; y >= 0; y--) {
                let z = b._inner[y];
                if (!x && y < s && h && !j) {
                    if (r != null) {
                        w = r;
                        x = true;
                        break;
                    }
                }
                if (z != null && z.bc == 1) {
                    if (z.de(d, g)) {
                        w = z;
                        break;
                    }
                }
            }
            if (h && !x) {
                if (r != null) {
                    w = r;
                    x = true;
                }
            }
        }
        else {
            w = r;
        }
        if (w != null) {
            let aa = w.ar({ $type: Point_$type, x: l, y: m }, g);
            if (aa != null) {
                f = aa;
            }
            return {
                ret: w,
                p5: f
            };
        }
        return {
            ret: null,
            p5: f
        };
    }
    f$f(a, b) {
        if (PointUtil.equals(b, null)) {
            return false;
        }
        let c = b.x;
        let d = b.y;
        if (c >= a.mx.left && d >= a.mx.top && c <= a.mx.left + a.mx.width && d <= a.mx.top + a.mx.height) {
            let e = a.bh;
            if (e != null && e.viewShouldInteract(b)) {
                return false;
            }
            return true;
        }
        return false;
    }
    c(a) {
        if (a != null) {
            return a.a6();
        }
        else {
            return null;
        }
    }
    f$v(a, b, c, d, e, f) {
        if (!f && a.b7) {
            this.af(a, false);
        }
        let g = new MouseEventArgs();
        g.position = d;
        if (a.bf == 2 || a.bf == 1 || a.c7 || (a.bh != null && a.bh.isPinching)) {
            if (this.d != null) {
                this.d.a0.a$x(this.d, g.position, this.a, g);
                this.d = null;
            }
            return;
        }
        let h = null;
        let i = ((() => { let j = this.f$c(a, b, c, d, !e, h, f); h = j.p5; return j.ret; })());
        this.a = h;
        let j = this.c(i);
        if (i != null) {
            let k = false;
            let l = false;
            if (this.d != i) {
                l = true;
            }
            if (this.d == null || l) {
                k = true;
            }
            if (k) {
                if (l) {
                    if (this.d != null) {
                        j = this.c(this.d);
                        this.d.a0.a$x(this.d, g.position, h, g);
                        if (j != null) {
                            j.a0.a$x(j, g.position, h, g);
                        }
                    }
                }
                this.d = i;
                i.ie(g.position, h, g);
                if (j != null) {
                    j.ie(g.position, h, g);
                }
            }
            else {
                this.d = i;
                i.a0.a$z(i, g.position, h, g);
                if (j != null) {
                    j.a0.a$z(j, g.position, h, g);
                }
            }
        }
        else {
            if (this.d != null) {
                j = this.c(this.d);
                this.d.a0.a$x(this.d, g.position, h, g);
                if (j != null) {
                    j.a0.a$x(j, g.position, h, g);
                }
                this.d = null;
            }
            for (let m = 0; m < a.series.count; m++) {
                let n = a.series._inner[m];
                if (n.a0.a$b) {
                    j = this.c(n);
                    n.a0.a$x(n, g.position, n.a0.a$o, g);
                    if (j != null) {
                        j.a0.a$x(j, g.position, n.a0.a$o, g);
                    }
                }
            }
        }
    }
    f$u(a, b) {
        if (this.d != null) {
            let c = this.c(this.d);
            let d = new MouseEventArgs();
            d.position = b;
            this.d.a0.a$x(this.d, d.position, null, d);
            if (c != null) {
                c.a0.a$x(c, d.position, null, d);
            }
            this.d = null;
        }
        a.ii(b);
    }
    f$t(a, b, c) {
        if (this.d != null && !b.ag) {
            this.i = true;
            let d = new MouseButtonEventArgs();
            d.position = c;
            this.d.a0.a$u(this.d, d.position, this.a, d);
        }
    }
    f$w(a, b, c) {
        if (this.d != null && !b.ag) {
            this.i = false;
            let d = new MouseButtonEventArgs();
            d.position = c;
            this.d.a0.a$y(this.d, d.position, this.a, d);
        }
    }
    f$s(a, b, c) {
        if (!c && a.c4) {
            this.af(a, false);
        }
        if (c && !a.c4) {
            this.af(a, true);
        }
        a.h3(b, c);
    }
    af(a, b) {
        if (a != null) {
            if (!this.j) {
                a.b7 = b;
            }
        }
    }
    f$y(a, b) {
        this.g = true;
    }
    get j() {
        return this.g;
    }
}
SeriesViewerInteractionManager.$t = markType(SeriesViewerInteractionManager, 'SeriesViewerInteractionManager', Base.$, [ISeriesViewerInteractionManager_$type]);
